Sid Gifari File Manager
🏠 Root
/
home2
/
iuywvcmy
/
public_html
/
temp
/
wp-content
/
plugins
/
bluehost-wordpress-plugin
/
build
/
Editing: 19-5e9b4b2e3a1f7706f0ba.js
(window.webpackJsonp_bluehost_wordpress_plugin=window.webpackJsonp_bluehost_wordpress_plugin||[]).push([[19],{118:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return _})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return N}));var r=n(32),c=n.n(r),a=n(8),s=n.n(a),u=n(1),o=n(6);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Object(u.useState)(e),n=s()(t,2),r=n[0],a=n[1];function i(e){a([].concat(c()(r),[e]))}function l(e){return r.includes(e)}function p(e){a(Object(o.without)(r,e))}function b(e){l(e)?p(e):i(e)}return[{favorites:r},{addFavorite:i,hasFavorite:l,removeFavorite:p,setFavorites:a,toggleFavorite:b}]}var l=n(117),p=n.n(l),b=n(18),d=n.n(b),m=n(15),g=n.n(m);function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"themes",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(u.useState)(!1),r=s()(n,2),c=r[0],a=r[1],o=Object(u.useState)(!1),i=s()(o,2),l=i[0],b=i[1],m=Object(u.useState)(!1),O=s()(m,2),h=O[0],j=O[1],f=Object(u.useState)(e),_=s()(f,2),v=_[0],w=_[1],E=Object(u.useState)(t),y=s()(E,2),S=y[0],N=y[1],P=Object(u.useState)({}),k=s()(P,2),T=k[0],x=k[1];return Object(u.useEffect)((function(){!function(){var e=p()(d.a.mark((function e(){var t,n,r,c,u,o,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a(!1),b(!1),j(!0),e.prev=3,t=new URLSearchParams(""),n=0,r=Object.entries(S);n<r.length;n++)c=s()(r[n],2),u=c[0],o=c[1],t.append(u,o);return e.next=8,g()({path:"/mojo/v1/"+v+"?"+t.toString()});case 8:i=e.sent,x(i),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),b(!0),x(e.t0);case 16:j(!1),a(!0);case 18:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(){return e.apply(this,arguments)}}()()}),[v,S]),[{done:c,isError:l,isLoading:h,params:S,payload:T},{setType:w,setParams:N}]}function h(e){return[function(t,n){switch(n){case"favorites":return function(t){return Object(o.filter)(t,(function(t){return e.includes(t.id)}))}(t);default:return t}}]}var j=n(122),f=n.n(j);function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Object(u.useState)(e),n=s()(t,2),r=n[0],c=n[1];function a(e){return r?new f.a(e,{threshold:.1,keys:["name","short_description","features","tags"]}).search(r):e}return[{query:r},{search:a,setQuery:c}]}function v(){function e(e){return e.sort((function(e,t){return e.created_timestamp>t.created_timestamp?1:e.created_timestamp<t.created_timestamp?-1:e.name<t.name?1:-1}))}function t(t){return Object(o.reverse)(e(t))}function n(e){return Object(o.sortBy)(e,(function(e){return parseInt(e.prices.single_domain_license,10)}))}function r(e){return Object(o.reverse)(n(e))}function c(e){return e.sort((function(e,t){return e.sales_count>t.sales_count?1:e.sales_count<t.sales_count?-1:e.name<t.name?1:-1}))}function a(e){return Object(o.reverse)(c(e))}return[function(s){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sales",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc";switch(s=Object.values(s),u){case"date":return"desc"===o?t(s):e(s);case"price":return"desc"===o?r(s):n(s);default:return"desc"===o?a(s):c(s)}}]}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=Object(u.useState)(e),c=s()(r,2),a=c[0],i=c[1],l=Object(u.useState)([]),p=s()(l,2),b=p[0],d=p[1],m=Object(u.useState)(t),g=s()(m,2),O=g[0],h=g[1],j=Object(u.useState)([]),f=s()(j,2),_=f[0],v=f[1],w=Object(u.useState)(1),E=s()(w,2),y=E[0],S=E[1],N=Object(u.useState)(n),P=s()(N,2),k=P[0],T=P[1];return Object(u.useEffect)((function(){var e=Object(o.chunk)(a,O);v(e),S(e.length)}),[a]),Object(u.useEffect)((function(){d(_[k-1])}),[_,k]),[{items:b,itemsPerPage:O,pageCount:y,pageNumber:k},{setCollection:i,setItemsPerPage:h,setPageNumber:T}]}var E=n(27),y=n.n(E),S=n(3);function N(){var e=Object(u.useState)(null),t=s()(e,2),n=t[0],r=t[1],c=Object(u.useState)(null),a=s()(c,2),o=a[0],i=a[1],l=Object(u.useState)(null),b=s()(l,2),m=b[0],O=b[1],h=Object(u.useState)(null),j=s()(h,2),f=j[0],_=j[1],v=Object(u.useState)(!1),w=s()(v,2),E=w[0],N=w[1],P=Object(u.useState)(!1),k=s()(P,2),T=k[0],x=k[1],D=Object(u.useState)(!1),L=s()(D,2),U=L[0],C=L[1],F=Object(u.useState)(null),I=s()(F,2),A=I[0],B=I[1],J=Object(u.useState)(null),M=s()(J,2),q=M[0],H=M[1],V=Object(u.useState)(null),Y=s()(V,2),Q=Y[0],W=Y[1],z=Object(u.useState)(null),G=s()(z,2),R=G[0],$=G[1],K=Object(u.useState)(null),X=s()(K,2),Z=X[0],ee=X[1],te=Object(u.useState)(null),ne=s()(te,2),re=ne[0],ce=ne[1],ae=Object(u.useState)(""),se=s()(ae,2),ue=se[0],oe=se[1],ie=Object(S.__)("An unknown error has occurred.","bluehost-wordpress-plugin"),le=function(){var e=p()(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x(!1),C(!0),O(null),e.prev=3,e.next=6,g()(t);case 6:if(!(n=e.sent).hasOwnProperty("status")||"error"!==n.status){e.next=9;break}throw new Error(n.message);case 9:return C(!1),e.abrupt("return",n);case 13:return e.prev=13,e.t0=e.catch(3),C(!1),x(!0),O(("object"===y()(e.t0)?e.t0.message:e.t0)||ie),e.abrupt("return",null);case 19:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(_x){return e.apply(this,arguments)}}(),pe=function(e){e.hasOwnProperty("stagingExists")&&_(e.stagingExists),e.hasOwnProperty("currentEnvironment")&&i("production"===e.currentEnvironment),e.hasOwnProperty("productionDir")&&B(e.productionDir),e.hasOwnProperty("productionThumbnailUrl")&&H(e.productionThumbnailUrl),e.hasOwnProperty("productionUrl")&&W(e.productionUrl),e.hasOwnProperty("stagingDir")&&$(e.stagingDir),e.hasOwnProperty("stagingThumbnailUrl")&&ee(e.stagingThumbnailUrl),e.hasOwnProperty("stagingUrl")&&ce(e.stagingUrl),e.hasOwnProperty("creationDate")&&r(e.creationDate)};function be(){return(be=p()(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),e.next=3,le({path:"/bluehost/v1/staging",method:"POST"});case 3:(t=e.sent)&&(pe(t),O(t.message),x("error"===t.status)),N(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function de(){return(de=p()(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le({path:"/bluehost/v1/staging",method:"DELETE"});case 2:e.sent&&(_(!1),O(Object(S.__)("Staging website destroyed.","bluehost-wordpress-plugin")));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function me(){return(me=p()(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(t),e.next=3,le({path:"/bluehost/v1/staging/switch-to?env=".concat(t)});case 3:(n=e.sent)&&n.hasOwnProperty("load_page")&&(window.location.href=n.load_page);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(){return(ge=p()(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le({path:"/bluehost/v1/staging/clone",method:"POST"});case 2:e.sent&&O(Object(S.__)("Website cloned successfully.","bluehost-wordpress-plugin"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oe(){return(Oe=p()(d.a.mark((function e(){var t,n=arguments;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:"all",e.next=3,le({path:"/bluehost/v1/staging/deploy?type=".concat(t),method:"POST"});case 3:e.sent&&O(Object(S.__)("Changes deployed successfully.","bluehost-wordpress-plugin"));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(u.useEffect)((function(){le({path:"/bluehost/v1/staging"}).then(pe)}),[]),[{creationDate:n,hasStaging:f,isCreatingStaging:E,isError:T,isProduction:o,isLoading:U,notice:m,productionDir:A,productionThumbnailUrl:q,productionUrl:Q,stagingDir:R,stagingThumbnailUrl:Z,stagingUrl:re,switchingTo:ue},{cloneEnv:function(){return ge.apply(this,arguments)},createEnv:function(){return be.apply(this,arguments)},deleteEnv:function(){return de.apply(this,arguments)},deployChanges:function(){return Oe.apply(this,arguments)},setNotice:O,switchToEnv:function(e){return me.apply(this,arguments)}}]}},119:function(e,t,n){},120:function(e,t,n){},121:function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return P}));var r=n(13),c=n.n(r),a=n(1),s=n(5),u=n(23),o=n(3),i=n(2),l=n.n(i),p=n(6),b=n(116),d=n(7),m=n(12),g=function(e){var t=e.type,n=void 0===t?"base":t,r=e.descriptivePageTitle,i=void 0!==r&&r,g=c()(e,["type","descriptivePageTitle"]),O=document.querySelector(".bwa-route-contents"),h=Object(d.useLocation)(),j=Object(m.useSelect)((function(e){return e("bluehost/plugin").getTopLevelPages()}),[]);if(null==j)return!1;var f=function(){var e=Object(o.__)("Bluehost WordPress Plugin","bluehost-wordpress-plugin"),t=document.querySelector("h2");return!1!==i?i:null!==t?t.innerText:e};return Object(a.useEffect)((function(){var e,t,n,r,c;Object(s.d)(j),Object(s.c)((e=!1,t=h.pathname,(n=Object(p.keyBy)(j,"path"))[t]?e=n[t].slug:j.forEach((function(n){t.includes(n.path)&&(e=n.slug)})),e)),O.focus({preventScroll:!0}),r=h,c=f(),void 0!==r.state&&void 0!==r.state.redirect&&"unspecified-or-root"===r.state.redirect||Object(b.speak)(c,"assertive"),Object(s.g)(h,f())}),[h.pathname]),Object(a.createElement)("section",{className:l()(["component-template-"+n,"base-template","animated","fadeIn","page-fade-speed",g.className?g.className:null])},Object(a.createElement)(u.j,null),g.children)},O=n(10),h=n.n(O),j=(n(119),function(e){var t=e.type,n=void 0===t?"common":t,r=e.children,s=c()(e,["type","children"]);return Object(a.createElement)(g,h()({type:n},s),r)}),f=n(32),_=n.n(f),v=n(8),w=n.n(v),E=(n(120),n(9)),y=n(118),S=n(4),N=[{label:Object(o.__)("Popular","bluehost-wordpress-plugin"),value:"sort-sales-desc"},{label:Object(o.__)("Price (High to Low)","bluehost-wordpress-plugin"),value:"sort-price-desc"},{label:Object(o.__)("Price (Low to High)","bluehost-wordpress-plugin"),value:"sort-price-asc"},{label:Object(o.__)("Date Added","bluehost-wordpress-plugin"),value:"sort-date-desc"}],P=function(e){var t=e.type,n=void 0===t?"marketplace":t,r=e.className,s=void 0===r?"":r,i=e.isLoading,p=e.payload,b=e.render,d=e.marketplaceType,m=void 0===d?"themes":d,g=c()(e,["type","className","isLoading","payload","render","marketplaceType"]),O=Object(y.a)(),f=w()(O,2),v=f[0].favorites,P=f[1],k=P.hasFavorite,T=P.toggleFavorite,x=Object(y.c)(v),D=w()(x,1)[0],L=Object(y.f)(),U=w()(L,2),C=U[0],F=C.items,I=C.itemsPerPage,A=C.pageCount,B=C.pageNumber,J=U[1],M=J.setCollection,q=J.setPageNumber,H=Object(a.useState)("sort-sales-desc"),V=w()(H,2),Y=V[0],Q=V[1],W=Object(y.e)(),z=w()(W,1)[0],G=Object(y.d)(),R=w()(G,2),$=R[0].query,K=R[1],X=K.search,Z=K.setQuery;return s=l()("bluehost-marketplace",s),Object(a.useEffect)((function(){var e=p.items||[],t=Y.split("-"),n=w()(t,3),r=n[0],c=n[1],a=n[2];e="filter"===r?D(z(e,"sales"),c):z(e,c,a),e=X(e,$),M(e),q(1)}),[p,Y,$]),Object(a.useEffect)((function(){window.scrollTo(0,0)}),[B]),Object(a.createElement)(j,h()({type:n,className:s,marketplaceType:m},g),Object(a.createElement)("section",{className:"".concat(s,"__header")},Object(a.createElement)("div",{className:"".concat(s,"__header-primary")},Object(a.createElement)(E.c,{level:"h2",size:1,className:"marketplace-page-title"},function(e){switch(e){case"plugins":return Object(o.__)("Premium Plugins","bluehost-wordpress-plugin");case"services":return Object(o.__)("Premium Services","bluehost-wordpress-plugin");default:return Object(o.__)("Premium Themes","bluehost-wordpress-plugin")}}(m)),Object(a.createElement)("div",{className:"".concat(s,"__pagination-container")},Object(a.createElement)(E.f,{callback:q,currentPage:B,pageCount:A}))),Object(a.createElement)("div",{className:"".concat(s,"__header-secondary")},Object(a.createElement)(u.o,{value:$,onChange:Z}),Object(a.createElement)(E.b,{id:"sort-filter",label:Object(o.__)("Sort By","bluehost-wordpress-plugin"),onChange:function(e){return Q(e)},options:N,value:Y,width:178}))),Object(a.createElement)("div",{className:"".concat(s,"__content")},i?Object(a.createElement)(u.n,null,_()(Array(I).keys()).map((function(e){return Object(a.createElement)(u.m,{key:e})}))):F&&F.length?Object(a.createElement)(u.n,null,F.map((function(e){return b({item:e,hasFavorite:k,toggleFavorite:T})}))):"filter-favorites"===Y?Object(a.createElement)("div",{className:"bluehost-no-results"},Object(a.createElement)(S.v,null),Object(a.createElement)("h2",null,Object(o.__)("You don't have any favorites yet.","bluehost-wordpress-plugin")),Object(a.createElement)("p",null,Object(o.__)("Add favorites by starring items you like.","bluehost-wordpress-plugin")),Object(a.createElement)("a",{href:"#",onClick:function(e){e.preventDefault(),Q("sort-sales-desc")}},function(){switch(m){case"plugins":return Object(o.__)("View Plugins","bluehost-wordpress-plugin");case"services":return Object(o.__)("View Services","bluehost-wordpress-plugin");default:return Object(o.__)("View Themes","bluehost-wordpress-plugin")}}())):Object(a.createElement)(u.g,null)),Object(a.createElement)("footer",{className:"".concat(s,"__footer")},Object(a.createElement)("div",{className:"".concat(s,"__ad")}),Object(a.createElement)(E.f,{callback:q,currentPage:B,pageCount:A})))}},168:function(e,t,n){},229:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var r=n(8),c=n.n(r),a=n(1),s=(n(168),n(9)),u=n(3),o=n(121),i=n(4),l=n(35),p=n(5),b=n(169),d=n(7),m=n(118);function g(e){var t=e.id,n=e.redirect,r=void 0!==n&&n,g=Object(a.useState)(null),O=c()(g,2),h=O[0],j=O[1],f=Object(a.useState)(null),_=c()(f,2),v=_[0],w=_[1],E=Object(m.b)("items",{id:t}),y=c()(E,1)[0],S=y.done,N=y.isError,P=y.isLoading,k=y.payload,T=(Object(d.useLocation)(),Object(u.sprintf)(Object(u.__)("Premium %s","bluehost-wordpress-plugin"),v)),x=T;if(Object(a.useEffect)((function(){j(Object(p.b)(["items",0],k))}),[k]),Object(a.useEffect)((function(){h&&w(Object(b.ucFirst)(h.type))}),[h]),!S||P)return Object(a.createElement)(s.h,null);if(N)return Object(a.createElement)("div",null,Object(a.createElement)(i.n,null),Object(a.createElement)("p",null,Object(u.__)("Oops! Something went wrong.","bluehost-wordpress-plugin")),";");var D=h.buy_url,L=h.created,U=h.images.preview_url,C=h.modified,F=h.name,I=h.prices.single_domain_license,A=h.sales_count,B=h.description,J=new Date(L),M=new Date(C),q=[Object(u.__)("January","bluehost-wordpress-plugin"),Object(u.__)("February","bluehost-wordpress-plugin"),Object(u.__)("March","bluehost-wordpress-plugin"),Object(u.__)("April","bluehost-wordpress-plugin"),Object(u.__)("May","bluehost-wordpress-plugin"),Object(u.__)("June","bluehost-wordpress-plugin"),Object(u.__)("July","bluehost-wordpress-plugin"),Object(u.__)("August","bluehost-wordpress-plugin"),Object(u.__)("September","bluehost-wordpress-plugin"),Object(u.__)("October","bluehost-wordpress-plugin"),Object(u.__)("November","bluehost-wordpress-plugin"),Object(u.__)("December","bluehost-wordpress-plugin")],H=parseInt(I,10),V=parseInt(A,10).toLocaleString({useGrouping:!0});return r?Object(a.createElement)(s.g,{to:"/marketplace/"+h.type+"/"+t,currentLocation:{state:{redirect:"legacy-single-product-route"}}}):Object(a.createElement)(o.b,{type:"marketplace",className:"page-product"},Object(a.createElement)("header",{className:"page-product__header"},Object(a.createElement)("h1",null,T)),Object(a.createElement)("div",{className:"page-product__breadcrumbs"},Object(a.createElement)("button",{className:"page-product__breadcrumbs-root",onClick:function(){return window.history.back()}},x),Object(a.createElement)("span",null," / "),Object(a.createElement)("span",null,Object(l.decodeEntities)(F))),Object(a.createElement)("div",{className:"page-product__main"},Object(a.createElement)("div",{className:"page-product__main"},Object(a.createElement)("div",{className:"page-product__content"},Object(a.createElement)("h2",{className:"page-product__title"},Object(l.decodeEntities)(F)),Object(a.createElement)("div",{className:"page-product__image"},Object(a.createElement)("img",{src:U,alt:F})),Object(a.createElement)("div",{className:"page-product__description",dangerouslySetInnerHTML:{__html:B}})),Object(a.createElement)("div",{className:"page-product__sidebar"},Object(a.createElement)("div",{className:"page-product__pricing-panel"},Object(a.createElement)("div",{className:"page-product__pricing-panel-price"},"$",H),Object(a.createElement)("div",{className:"page-product__pricing-panel-currency"},"USD"),Object(a.createElement)(s.a,{className:"page-product__pricing-panel-call-to-action",href:D,target:"_blank",isPrimary:!0},Object(u.__)("Buy Now","bluehost-wordpress-plugin")),Object(a.createElement)("div",{className:"page-product__pricing-panel-terms"},Object(u.__)("One Time Fee","bluehost-wordpress-plugin"))),Object(a.createElement)("div",{className:"page-product__info-panel"},Object(a.createElement)("h3",{className:"page-product__info-panel-title"},Object(u.__)("Item Information","bluehost-wordpress-plugin")),Object(a.createElement)("div",{className:"page-product__info-panel-created"},Object(a.createElement)("strong",null,Object(u.__)("Created: ","bluehost-wordpress-plugin")),"".concat(q[J.getMonth()]," ").concat(J.getDate(),", ").concat(J.getFullYear())),Object(a.createElement)("div",{className:"page-product__info-panel-updated"},Object(a.createElement)("strong",null,Object(u.__)("Updated: ","bluehost-wordpress-plugin")),"".concat(q[M.getMonth()]," ").concat(M.getDate(),", ").concat(M.getFullYear())),Object(a.createElement)("div",{className:"page-product__info-panel-sales"},Object(a.createElement)("strong",null,Object(u.__)("Sales: ","bluehost-wordpress-plugin")),V))))))}}}]);
Save
Cancel