Sid Gifari File Manager
🏠Root
/
home2
/
iuywvcmy
/
public_html
/
temp
/
wp-content
/
plugins
/
bluehost-wordpress-plugin
/
build
/
Editing: 9-27ff7ddacba929d4e31e.js
(window.webpackJsonp_bluehost_wordpress_plugin=window.webpackJsonp_bluehost_wordpress_plugin||[]).push([[9],{117:function(e,t){function n(e,t,n,r,o,s,a){try{var c=e[s](a),i=c.value}catch(e){return void n(e)}c.done?t(i):Promise.resolve(i).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,s){var a=e.apply(t,r);function c(e){n(a,o,s,c,i,"next",e)}function i(e){n(a,o,s,c,i,"throw",e)}c(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},118:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return j})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return k}));var r=n(32),o=n.n(r),s=n(8),a=n.n(s),c=n(1),i=n(6);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Object(c.useState)(e),n=a()(t,2),r=n[0],s=n[1];function l(e){s([].concat(o()(r),[e]))}function u(e){return r.includes(e)}function p(e){s(Object(i.without)(r,e))}function h(e){u(e)?p(e):l(e)}return[{favorites:r},{addFavorite:l,hasFavorite:u,removeFavorite:p,setFavorites:s,toggleFavorite:h}]}var u=n(117),p=n.n(u),h=n(18),d=n.n(h),b=n(15),f=n.n(b);function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"themes",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(c.useState)(!1),r=a()(n,2),o=r[0],s=r[1],i=Object(c.useState)(!1),l=a()(i,2),u=l[0],h=l[1],b=Object(c.useState)(!1),g=a()(b,2),m=g[0],v=g[1],O=Object(c.useState)(e),j=a()(O,2),_=j[0],y=j[1],w=Object(c.useState)(t),E=a()(w,2),S=E[0],k=E[1],P=Object(c.useState)({}),x=a()(P,2),M=x[0],C=x[1];return Object(c.useEffect)((function(){!function(){var e=p()(d.a.mark((function e(){var t,n,r,o,c,i,l;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s(!1),h(!1),v(!0),e.prev=3,t=new URLSearchParams(""),n=0,r=Object.entries(S);n<r.length;n++)o=a()(r[n],2),c=o[0],i=o[1],t.append(c,i);return e.next=8,f()({path:"/mojo/v1/"+_+"?"+t.toString()});case 8:l=e.sent,C(l),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),h(!0),C(e.t0);case 16:v(!1),s(!0);case 18:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(){return e.apply(this,arguments)}}()()}),[_,S]),[{done:o,isError:u,isLoading:m,params:S,payload:M},{setType:y,setParams:k}]}function m(e){return[function(t,n){switch(n){case"favorites":return function(t){return Object(i.filter)(t,(function(t){return e.includes(t.id)}))}(t);default:return t}}]}var v=n(122),O=n.n(v);function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Object(c.useState)(e),n=a()(t,2),r=n[0],o=n[1];function s(e){return r?new O.a(e,{threshold:.1,keys:["name","short_description","features","tags"]}).search(r):e}return[{query:r},{search:s,setQuery:o}]}function _(){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(i.reverse)(e(t))}function n(e){return Object(i.sortBy)(e,(function(e){return parseInt(e.prices.single_domain_license,10)}))}function r(e){return Object(i.reverse)(n(e))}function o(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 s(e){return Object(i.reverse)(o(e))}return[function(a){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sales",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc";switch(a=Object.values(a),c){case"date":return"desc"===i?t(a):e(a);case"price":return"desc"===i?r(a):n(a);default:return"desc"===i?s(a):o(a)}}]}function y(){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(c.useState)(e),o=a()(r,2),s=o[0],l=o[1],u=Object(c.useState)([]),p=a()(u,2),h=p[0],d=p[1],b=Object(c.useState)(t),f=a()(b,2),g=f[0],m=f[1],v=Object(c.useState)([]),O=a()(v,2),j=O[0],_=O[1],y=Object(c.useState)(1),w=a()(y,2),E=w[0],S=w[1],k=Object(c.useState)(n),P=a()(k,2),x=P[0],M=P[1];return Object(c.useEffect)((function(){var e=Object(i.chunk)(s,g);_(e),S(e.length)}),[s]),Object(c.useEffect)((function(){d(j[x-1])}),[j,x]),[{items:h,itemsPerPage:g,pageCount:E,pageNumber:x},{setCollection:l,setItemsPerPage:m,setPageNumber:M}]}var w=n(27),E=n.n(w),S=n(3);function k(){var e=Object(c.useState)(null),t=a()(e,2),n=t[0],r=t[1],o=Object(c.useState)(null),s=a()(o,2),i=s[0],l=s[1],u=Object(c.useState)(null),h=a()(u,2),b=h[0],g=h[1],m=Object(c.useState)(null),v=a()(m,2),O=v[0],j=v[1],_=Object(c.useState)(!1),y=a()(_,2),w=y[0],k=y[1],P=Object(c.useState)(!1),x=a()(P,2),M=x[0],C=x[1],L=Object(c.useState)(!1),A=a()(L,2),N=A[0],T=A[1],F=Object(c.useState)(null),I=a()(F,2),z=I[0],U=I[1],D=Object(c.useState)(null),B=a()(D,2),W=B[0],q=B[1],H=Object(c.useState)(null),J=a()(H,2),R=J[0],V=J[1],K=Object(c.useState)(null),Q=a()(K,2),Y=Q[0],$=Q[1],G=Object(c.useState)(null),X=a()(G,2),Z=X[0],ee=X[1],te=Object(c.useState)(null),ne=a()(te,2),re=ne[0],oe=ne[1],se=Object(c.useState)(""),ae=a()(se,2),ce=ae[0],ie=ae[1],le=Object(S.__)("An unknown error has occurred.","bluehost-wordpress-plugin"),ue=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 C(!1),T(!0),g(null),e.prev=3,e.next=6,f()(t);case 6:if(!(n=e.sent).hasOwnProperty("status")||"error"!==n.status){e.next=9;break}throw new Error(n.message);case 9:return T(!1),e.abrupt("return",n);case 13:return e.prev=13,e.t0=e.catch(3),T(!1),C(!0),g(("object"===E()(e.t0)?e.t0.message:e.t0)||le),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")&&j(e.stagingExists),e.hasOwnProperty("currentEnvironment")&&l("production"===e.currentEnvironment),e.hasOwnProperty("productionDir")&&U(e.productionDir),e.hasOwnProperty("productionThumbnailUrl")&&q(e.productionThumbnailUrl),e.hasOwnProperty("productionUrl")&&V(e.productionUrl),e.hasOwnProperty("stagingDir")&&$(e.stagingDir),e.hasOwnProperty("stagingThumbnailUrl")&&ee(e.stagingThumbnailUrl),e.hasOwnProperty("stagingUrl")&&oe(e.stagingUrl),e.hasOwnProperty("creationDate")&&r(e.creationDate)};function he(){return(he=p()(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),e.next=3,ue({path:"/bluehost/v1/staging",method:"POST"});case 3:(t=e.sent)&&(pe(t),g(t.message),C("error"===t.status)),k(!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,ue({path:"/bluehost/v1/staging",method:"DELETE"});case 2:e.sent&&(j(!1),g(Object(S.__)("Staging website destroyed.","bluehost-wordpress-plugin")));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function be(){return(be=p()(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ie(t),e.next=3,ue({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 fe(){return(fe=p()(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue({path:"/bluehost/v1/staging/clone",method:"POST"});case 2:e.sent&&g(Object(S.__)("Website cloned successfully.","bluehost-wordpress-plugin"));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ge(){return(ge=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,ue({path:"/bluehost/v1/staging/deploy?type=".concat(t),method:"POST"});case 3:e.sent&&g(Object(S.__)("Changes deployed successfully.","bluehost-wordpress-plugin"));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(c.useEffect)((function(){ue({path:"/bluehost/v1/staging"}).then(pe)}),[]),[{creationDate:n,hasStaging:O,isCreatingStaging:w,isError:M,isProduction:i,isLoading:N,notice:b,productionDir:z,productionThumbnailUrl:W,productionUrl:R,stagingDir:Y,stagingThumbnailUrl:Z,stagingUrl:re,switchingTo:ce},{cloneEnv:function(){return fe.apply(this,arguments)},createEnv:function(){return he.apply(this,arguments)},deleteEnv:function(){return de.apply(this,arguments)},deployChanges:function(){return ge.apply(this,arguments)},setNotice:g,switchToEnv:function(e){return be.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 f})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return P}));var r=n(13),o=n.n(r),s=n(1),a=n(5),c=n(23),i=n(3),l=n(2),u=n.n(l),p=n(6),h=n(116),d=n(7),b=n(12),f=function(e){var t=e.type,n=void 0===t?"base":t,r=e.descriptivePageTitle,l=void 0!==r&&r,f=o()(e,["type","descriptivePageTitle"]),g=document.querySelector(".bwa-route-contents"),m=Object(d.useLocation)(),v=Object(b.useSelect)((function(e){return e("bluehost/plugin").getTopLevelPages()}),[]);if(null==v)return!1;var O=function(){var e=Object(i.__)("Bluehost WordPress Plugin","bluehost-wordpress-plugin"),t=document.querySelector("h2");return!1!==l?l:null!==t?t.innerText:e};return Object(s.useEffect)((function(){var e,t,n,r,o;Object(a.d)(v),Object(a.c)((e=!1,t=m.pathname,(n=Object(p.keyBy)(v,"path"))[t]?e=n[t].slug:v.forEach((function(n){t.includes(n.path)&&(e=n.slug)})),e)),g.focus({preventScroll:!0}),r=m,o=O(),void 0!==r.state&&void 0!==r.state.redirect&&"unspecified-or-root"===r.state.redirect||Object(h.speak)(o,"assertive"),Object(a.g)(m,O())}),[m.pathname]),Object(s.createElement)("section",{className:u()(["component-template-"+n,"base-template","animated","fadeIn","page-fade-speed",f.className?f.className:null])},Object(s.createElement)(c.j,null),f.children)},g=n(10),m=n.n(g),v=(n(119),function(e){var t=e.type,n=void 0===t?"common":t,r=e.children,a=o()(e,["type","children"]);return Object(s.createElement)(f,m()({type:n},a),r)}),O=n(32),j=n.n(O),_=n(8),y=n.n(_),w=(n(120),n(9)),E=n(118),S=n(4),k=[{label:Object(i.__)("Popular","bluehost-wordpress-plugin"),value:"sort-sales-desc"},{label:Object(i.__)("Price (High to Low)","bluehost-wordpress-plugin"),value:"sort-price-desc"},{label:Object(i.__)("Price (Low to High)","bluehost-wordpress-plugin"),value:"sort-price-asc"},{label:Object(i.__)("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,a=void 0===r?"":r,l=e.isLoading,p=e.payload,h=e.render,d=e.marketplaceType,b=void 0===d?"themes":d,f=o()(e,["type","className","isLoading","payload","render","marketplaceType"]),g=Object(E.a)(),O=y()(g,2),_=O[0].favorites,P=O[1],x=P.hasFavorite,M=P.toggleFavorite,C=Object(E.c)(_),L=y()(C,1)[0],A=Object(E.f)(),N=y()(A,2),T=N[0],F=T.items,I=T.itemsPerPage,z=T.pageCount,U=T.pageNumber,D=N[1],B=D.setCollection,W=D.setPageNumber,q=Object(s.useState)("sort-sales-desc"),H=y()(q,2),J=H[0],R=H[1],V=Object(E.e)(),K=y()(V,1)[0],Q=Object(E.d)(),Y=y()(Q,2),$=Y[0].query,G=Y[1],X=G.search,Z=G.setQuery;return a=u()("bluehost-marketplace",a),Object(s.useEffect)((function(){var e=p.items||[],t=J.split("-"),n=y()(t,3),r=n[0],o=n[1],s=n[2];e="filter"===r?L(K(e,"sales"),o):K(e,o,s),e=X(e,$),B(e),W(1)}),[p,J,$]),Object(s.useEffect)((function(){window.scrollTo(0,0)}),[U]),Object(s.createElement)(v,m()({type:n,className:a,marketplaceType:b},f),Object(s.createElement)("section",{className:"".concat(a,"__header")},Object(s.createElement)("div",{className:"".concat(a,"__header-primary")},Object(s.createElement)(w.c,{level:"h2",size:1,className:"marketplace-page-title"},function(e){switch(e){case"plugins":return Object(i.__)("Premium Plugins","bluehost-wordpress-plugin");case"services":return Object(i.__)("Premium Services","bluehost-wordpress-plugin");default:return Object(i.__)("Premium Themes","bluehost-wordpress-plugin")}}(b)),Object(s.createElement)("div",{className:"".concat(a,"__pagination-container")},Object(s.createElement)(w.f,{callback:W,currentPage:U,pageCount:z}))),Object(s.createElement)("div",{className:"".concat(a,"__header-secondary")},Object(s.createElement)(c.o,{value:$,onChange:Z}),Object(s.createElement)(w.b,{id:"sort-filter",label:Object(i.__)("Sort By","bluehost-wordpress-plugin"),onChange:function(e){return R(e)},options:k,value:J,width:178}))),Object(s.createElement)("div",{className:"".concat(a,"__content")},l?Object(s.createElement)(c.n,null,j()(Array(I).keys()).map((function(e){return Object(s.createElement)(c.m,{key:e})}))):F&&F.length?Object(s.createElement)(c.n,null,F.map((function(e){return h({item:e,hasFavorite:x,toggleFavorite:M})}))):"filter-favorites"===J?Object(s.createElement)("div",{className:"bluehost-no-results"},Object(s.createElement)(S.v,null),Object(s.createElement)("h2",null,Object(i.__)("You don't have any favorites yet.","bluehost-wordpress-plugin")),Object(s.createElement)("p",null,Object(i.__)("Add favorites by starring items you like.","bluehost-wordpress-plugin")),Object(s.createElement)("a",{href:"#",onClick:function(e){e.preventDefault(),R("sort-sales-desc")}},function(){switch(b){case"plugins":return Object(i.__)("View Plugins","bluehost-wordpress-plugin");case"services":return Object(i.__)("View Services","bluehost-wordpress-plugin");default:return Object(i.__)("View Themes","bluehost-wordpress-plugin")}}())):Object(s.createElement)(c.g,null)),Object(s.createElement)("footer",{className:"".concat(a,"__footer")},Object(s.createElement)("div",{className:"".concat(a,"__ad")}),Object(s.createElement)(w.f,{callback:W,currentPage:U,pageCount:z})))}},122:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=n(1),s=n(7),a=s.get,c=(s.deepValue,s.isArray),i=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,s=n.distance,c=void 0===s?100:s,i=n.threshold,l=void 0===i?.6:i,u=n.maxPatternLength,p=void 0===u?32:u,h=n.caseSensitive,d=void 0!==h&&h,b=n.tokenSeparator,f=void 0===b?/ +/g:b,g=n.findAllMatches,m=void 0!==g&&g,v=n.minMatchCharLength,O=void 0===v?1:v,j=n.id,_=void 0===j?null:j,y=n.keys,w=void 0===y?[]:y,E=n.shouldSort,S=void 0===E||E,k=n.getFn,P=void 0===k?a:k,x=n.sortFn,M=void 0===x?function(e,t){return e.score-t.score}:x,C=n.tokenize,L=void 0!==C&&C,A=n.matchAllTokens,N=void 0!==A&&A,T=n.includeMatches,F=void 0!==T&&T,I=n.includeScore,z=void 0!==I&&I,U=n.verbose,D=void 0!==U&&U;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:c,threshold:l,maxPatternLength:p,isCaseSensitive:d,tokenSeparator:f,findAllMatches:m,minMatchCharLength:O,id:_,keys:w,includeMatches:F,includeScore:z,shouldSort:S,getFn:P,sortFn:M,verbose:D,tokenize:L,matchAllTokens:N},this.setCollection(t),this._processKeys(w)}var t;return(t=[{key:"setCollection",value:function(e){return this.list=e,e}},{key:"_processKeys",value:function(e){if(this._keyWeights={},this._keyNames=[],e.length&&"string"==typeof e[0])for(var t=0,n=e.length;t<n;t+=1){var r=e[t];this._keyWeights[r]=1,this._keyNames.push(r)}else{for(var o=null,s=null,a=0,c=0,i=e.length;c<i;c+=1){var l=e[c];if(!l.hasOwnProperty("name"))throw new Error('Missing "name" property in key object');var u=l.name;if(this._keyNames.push(u),!l.hasOwnProperty("weight"))throw new Error('Missing "weight" property in key object');var p=l.weight;if(p<0||p>1)throw new Error('"weight" property in key must bein the range of [0, 1)');s=null==s?p:Math.max(s,p),o=null==o?p:Math.min(o,p),this._keyWeights[u]=p,a+=p}if(a>1)throw new Error("Total of weights cannot exceed 1")}}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(e,'"'));var n=this._prepareSearchers(e),r=n.tokenSearchers,o=n.fullSearcher,s=this._search(r,o);return this._computeScore(s),this.options.shouldSort&&this._sort(s),t.limit&&"number"==typeof t.limit&&(s=s.slice(0,t.limit)),this._format(s)}},{key:"_prepareSearchers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var n=e.split(this.options.tokenSeparator),r=0,s=n.length;r<s;r+=1)t.push(new o(n[r],this.options));return{tokenSearchers:t,fullSearcher:new o(e,this.options)}}},{key:"_search",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.list,r={},o=[];if("string"==typeof n[0]){for(var s=0,a=n.length;s<a;s+=1)this._analyze({key:"",value:n[s],record:s,index:s},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t});return o}for(var c=0,i=n.length;c<i;c+=1)for(var l=n[c],u=0,p=this._keyNames.length;u<p;u+=1){var h=this._keyNames[u];this._analyze({key:h,value:this.options.getFn(l,h),record:l,index:c},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t})}return o}},{key:"_analyze",value:function(e,t){var n=this,r=e.key,o=e.arrayIndex,s=void 0===o?-1:o,a=e.value,i=e.record,l=e.index,u=t.tokenSearchers,p=void 0===u?[]:u,h=t.fullSearcher,d=t.resultMap,b=void 0===d?{}:d,f=t.results,g=void 0===f?[]:f;!function e(t,o,s,a){if(null!=o)if("string"==typeof o){var i=!1,l=-1,u=0;n._log("\nKey: ".concat(""===r?"--":r));var d=h.search(o);if(n._log('Full text: "'.concat(o,'", score: ').concat(d.score)),n.options.tokenize){for(var f=o.split(n.options.tokenSeparator),m=f.length,v=[],O=0,j=p.length;O<j;O+=1){var _=p[O];n._log('\nPattern: "'.concat(_.pattern,'"'));for(var y=!1,w=0;w<m;w+=1){var E=f[w],S=_.search(E),k={};S.isMatch?(k[E]=S.score,i=!0,y=!0,v.push(S.score)):(k[E]=1,n.options.matchAllTokens||v.push(1)),n._log('Token: "'.concat(E,'", score: ').concat(k[E]))}y&&(u+=1)}l=v[0];for(var P=v.length,x=1;x<P;x+=1)l+=v[x];l/=P,n._log("Token score average:",l)}var M=d.score;l>-1&&(M=(M+l)/2),n._log("Score average:",M);var C=!n.options.tokenize||!n.options.matchAllTokens||u>=p.length;if(n._log("\nCheck Matches: ".concat(C)),(i||d.isMatch)&&C){var L={key:r,arrayIndex:t,value:o,score:M};n.options.includeMatches&&(L.matchedIndices=d.matchedIndices);var A=b[a];A?A.output.push(L):(b[a]={item:s,output:[L]},g.push(b[a]))}}else if(c(o))for(var N=0,T=o.length;N<T;N+=1)e(N,o[N],s,a)}(s,a,i,l)}},{key:"_computeScore",value:function(e){this._log("\n\nComputing score:\n");for(var t=this._keyWeights,n=!!Object.keys(t).length,r=0,o=e.length;r<o;r+=1){for(var s=e[r],a=s.output,c=a.length,i=1,l=0;l<c;l+=1){var u=a[l],p=u.key,h=n?t[p]:1,d=0===u.score&&t&&t[p]>0?Number.EPSILON:u.score;i*=Math.pow(d,h)}s.score=i,this._log(s)}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var t=[];if(this.options.verbose){var n=[];this._log("\n\nOutput:\n\n",JSON.stringify(e,(function(e,t){if("object"===r(t)&&null!==t){if(-1!==n.indexOf(t))return;n.push(t)}return t}),2)),n=null}var o=[];this.options.includeMatches&&o.push((function(e,t){var n=e.output;t.matches=[];for(var r=0,o=n.length;r<o;r+=1){var s=n[r];if(0!==s.matchedIndices.length){var a={indices:s.matchedIndices,value:s.value};s.key&&(a.key=s.key),s.hasOwnProperty("arrayIndex")&&s.arrayIndex>-1&&(a.arrayIndex=s.arrayIndex),t.matches.push(a)}}})),this.options.includeScore&&o.push((function(e,t){t.score=e.score}));for(var s=0,a=e.length;s<a;s+=1){var c=e[s];if(this.options.id&&(c.item=this.options.getFn(c.item,this.options.id)[0]),o.length){for(var i={item:c.item},l=0,u=o.length;l<u;l+=1)o[l](c,i);t.push(i)}else t.push(c.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();e.exports=i},function(e,t,n){var r=n(2),o=n(3),s=n(6),a=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,a=n.distance,c=void 0===a?100:a,i=n.threshold,l=void 0===i?.6:i,u=n.maxPatternLength,p=void 0===u?32:u,h=n.isCaseSensitive,d=void 0!==h&&h,b=n.tokenSeparator,f=void 0===b?/ +/g:b,g=n.findAllMatches,m=void 0!==g&&g,v=n.minMatchCharLength,O=void 0===v?1:v,j=n.includeMatches,_=void 0!==j&&j;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:c,threshold:l,maxPatternLength:p,isCaseSensitive:d,tokenSeparator:f,findAllMatches:m,includeMatches:_,minMatchCharLength:O},this.pattern=d?t:t.toLowerCase(),this.pattern.length<=p&&(this.patternAlphabet=s(this.pattern))}var t;return(t=[{key:"search",value:function(e){var t=this.options,n=t.isCaseSensitive,s=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var a={isMatch:!0,score:0};return s&&(a.matchedIndices=[[0,e.length-1]]),a}var c=this.options,i=c.maxPatternLength,l=c.tokenSeparator;if(this.pattern.length>i)return r(e,this.pattern,l);var u=this.options,p=u.location,h=u.distance,d=u.threshold,b=u.findAllMatches,f=u.minMatchCharLength;return o(e,this.pattern,this.patternAlphabet,{location:p,distance:h,threshold:d,findAllMatches:b,minMatchCharLength:f,includeMatches:s})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();e.exports=a},function(e,t){var n=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,o=new RegExp(t.replace(n,"\\$&").replace(r,"|")),s=e.match(o),a=!!s,c=[];if(a)for(var i=0,l=s.length;i<l;i+=1){var u=s[i];c.push([e.indexOf(u),u.length-1])}return{score:a?.5:1,isMatch:a,matchedIndices:c}}},function(e,t,n){var r=n(4),o=n(5);e.exports=function(e,t,n,s){for(var a=s.location,c=void 0===a?0:a,i=s.distance,l=void 0===i?100:i,u=s.threshold,p=void 0===u?.6:u,h=s.findAllMatches,d=void 0!==h&&h,b=s.minMatchCharLength,f=void 0===b?1:b,g=s.includeMatches,m=void 0!==g&&g,v=c,O=e.length,j=p,_=e.indexOf(t,v),y=t.length,w=[],E=0;E<O;E+=1)w[E]=0;if(-1!==_){var S=r(t,{errors:0,currentLocation:_,expectedLocation:v,distance:l});if(j=Math.min(S,j),-1!==(_=e.lastIndexOf(t,v+y))){var k=r(t,{errors:0,currentLocation:_,expectedLocation:v,distance:l});j=Math.min(k,j)}}_=-1;for(var P=[],x=1,M=y+O,C=1<<(y<=31?y-1:30),L=0;L<y;L+=1){for(var A=0,N=M;A<N;)r(t,{errors:L,currentLocation:v+N,expectedLocation:v,distance:l})<=j?A=N:M=N,N=Math.floor((M-A)/2+A);M=N;var T=Math.max(1,v-N+1),F=d?O:Math.min(v+N,O)+y,I=Array(F+2);I[F+1]=(1<<L)-1;for(var z=F;z>=T;z-=1){var U=z-1,D=n[e.charAt(U)];if(D&&(w[U]=1),I[z]=(I[z+1]<<1|1)&D,0!==L&&(I[z]|=(P[z+1]|P[z])<<1|1|P[z+1]),I[z]&C&&(x=r(t,{errors:L,currentLocation:U,expectedLocation:v,distance:l}))<=j){if(j=x,(_=U)<=v)break;T=Math.max(1,2*v-_)}}if(r(t,{errors:L+1,currentLocation:v,expectedLocation:v,distance:l})>j)break;P=I}var B={isMatch:_>=0,score:0===x?.001:x};return m&&(B.matchedIndices=o(w,f)),B}},function(e,t){e.exports=function(e,t){var n=t.errors,r=void 0===n?0:n,o=t.currentLocation,s=void 0===o?0:o,a=t.expectedLocation,c=void 0===a?0:a,i=t.distance,l=void 0===i?100:i,u=r/e.length,p=Math.abs(c-s);return l?u+p/l:p?1:u}},function(e,t){e.exports=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[],r=-1,o=-1,s=0,a=e.length;s<a;s+=1){var c=e[s];c&&-1===r?r=s:c||-1===r||((o=s-1)-r+1>=t&&n.push([r,o]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}},function(e,t){e.exports=function(e){for(var t={},n=e.length,r=0;r<n;r+=1)t[e.charAt(r)]=0;for(var o=0;o<n;o+=1)t[e.charAt(o)]|=1<<n-o-1;return t}},function(e,t){var n=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},r=function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)},o=function(e){return"string"==typeof e},s=function(e){return"number"==typeof e};e.exports={get:function(e,t){var a=[];return function e(t,c){if(c){var i=c.indexOf("."),l=c,u=null;-1!==i&&(l=c.slice(0,i),u=c.slice(i+1));var p=t[l];if(null!=p)if(u||!o(p)&&!s(p))if(n(p))for(var h=0,d=p.length;h<d;h+=1)e(p[h],u);else u&&e(p,u);else a.push(r(p))}else a.push(t)}(e,t),a},isArray:n,isString:o,isNum:s,toString:r}}])},165:function(e,t,n){},166:function(e,t,n){},239:function(e,t,n){"use strict";n.r(t);var r=n(1),o=(n(165),n(7)),s=n(121),a=n(23),c=n(9),i=n(3),l=n(12),u=Object(l.select)("bluehost/plugin").getAdminUrl(),p=function(){return Object(r.createElement)(a.b,{icon:"admin-post",title:Object(i.__)("Blog Posts","bluehost-wordpress-plugin"),desc:Object(i.__)("Add blog posts or organize existing pages.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:u+"post-new.php",isSecondary:!0},Object(i.__)("New Post","bluehost-wordpress-plugin")),Object(r.createElement)(c.a,{href:u+"edit-tags.php?taxonomy=category",isLink:!0},Object(i.__)("Manage Categories","bluehost-wordpress-plugin")))},h=function(){return Object(r.createElement)(a.b,{icon:"admin-page",title:Object(i.__)("Pages","bluehost-wordpress-plugin"),desc:Object(i.__)("Add fresh pages to your website.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:u+"post-new.php?post_type=page",isSecondary:!0},Object(i.__)("New Page","bluehost-wordpress-plugin")))},d=function(){return Object(r.createElement)(a.b,{icon:"menu",title:Object(i.__)("Navigation Menus","bluehost-wordpress-plugin"),desc:Object(i.__)("Adjust or edit your site's navigation menus.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:u+"customize.php?autofocus[panel]=nav_menus",isSecondary:!0},Object(i.__)("Manage Menus","bluehost-wordpress-plugin")))},b=function(){return Object(l.select)("bluehost/plugin").isWooActive()?Object(r.createElement)(a.b,{icon:"cart",title:Object(i.__)("Products","bluehost-wordpress-plugin"),desc:Object(i.__)("Manage products in your online store.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:u+"edit.php?post_type=product",isSecondary:!0},Object(i.__)("Manage Products","bluehost-wordpress-plugin"))):null},f=function(){return Object(l.select)("bluehost/plugin").getWP().hasReusableBlocks?Object(r.createElement)(a.b,{icon:"schedule",title:Object(i.__)("Reusable Blocks","bluehost-wordpress-plugin"),desc:Object(i.__)("Reuse and manage the same content in multiple pages.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:u+"edit.php?post_type=wp_block",isSecondary:!0},Object(i.__)("Reusable Blocks","bluehost-wordpress-plugin"))):null},g=function(){return Object(r.createElement)(a.a,{title:Object(i.__)("Content","bluehost-wordpress-plugin"),className:"content"},Object(r.createElement)(r.Fragment,null,Object(r.createElement)(p,null),Object(r.createElement)(h,null),Object(r.createElement)(b,null),Object(r.createElement)(f,null),Object(r.createElement)(d,null)))},m=Object(l.select)("bluehost/plugin").getAdminUrl(),v=function(){return Object(r.createElement)(a.b,{icon:"admin-customizer",title:Object(i.__)("Customizer","bluehost-wordpress-plugin"),desc:Object(i.__)("Make edits and see changes before you update.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:m+"customize.php",isSecondary:!0},Object(i.__)("Customize Theme","bluehost-wordpress-plugin")))},O=function(){return Object(r.createElement)(a.b,{icon:"admin-appearance",title:Object(i.__)("WordPress Themes","bluehost-wordpress-plugin"),desc:Object(i.__)("Browse themes to find one that inspires you!","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:m+"admin.php?page=bluehost#/marketplace/themes",isSecondary:!0},Object(i.__)("Premium Themes","bluehost-wordpress-plugin")),Object(r.createElement)(c.a,{href:m+"themes.php",isLink:!0},Object(i.__)("Free Themes","bluehost-wordpress-plugin")))},j=function(e){return Object(r.createElement)(a.a,{title:Object(i.__)("Design & Build","bluehost-wordpress-plugin"),className:"design"},Object(r.createElement)(v,null),Object(r.createElement)(O,null))},_=function(){return Object(r.createElement)(a.b,{icon:"desktop",title:Object(i.__)("Manage My Sites","bluehost-wordpress-plugin"),desc:Object(i.__)("Manage your site from Bluehost's control panel. You can create backups, set security, and improve performance.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:"https://my.bluehost.com/hosting/app?lil=1#/sites",isSecondary:!0,utmContent:"home_hosting_mysites_link"},Object(i.__)("Manage","bluehost-wordpress-plugin")))},y=function(){return Object(r.createElement)(a.b,{icon:"email",title:Object(i.__)("Email","bluehost-wordpress-plugin"),desc:Object(i.__)("Create email accounts, compose, send, and receive your email from your Bluehost control panel.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:"https://my.bluehost.com/hosting/app?lil=1#/email-office",isSecondary:!0,utmContent:"home_hosting_email_link"},Object(i.__)("Manage","bluehost-wordpress-plugin")))},w=function(){return Object(r.createElement)(a.b,{icon:"admin-site",title:Object(i.__)("Domains","bluehost-wordpress-plugin"),desc:Object(i.__)("Find a new domain and assign it to your site or start a new site with a fresh domain.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:"https://my.bluehost.com/hosting/app?lil=1#/domains",isSecondary:!0,utmContent:"home_hosting_find_domain_link"},Object(i.__)("Find a Domain","bluehost-wordpress-plugin")))},E=function(){return Object(r.createElement)(a.b,{icon:"editor-help",title:Object(i.__)("Help","bluehost-wordpress-plugin"),desc:Object(i.__)("Get help from Bluehost’s U.S.-based award-winning support team. It’s available 24/7 through phone and chat.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:"https://my.bluehost.com/hosting/help",isSecondary:!0,utmContent:"home_hosting_help_link"},Object(i.__)("Help Me","bluehost-wordpress-plugin")))},S=function(){return Object(r.createElement)(a.a,{title:Object(i.__)("Hosting","bluehost-wordpress-plugin"),className:"hosting"},Object(r.createElement)(_,null),Object(r.createElement)(y,null),Object(r.createElement)(w,null),Object(r.createElement)(E,null))},k=n(4),P=Object(l.select)("bluehost/plugin").getAdminUrl(),x=function(){return Object(r.createElement)(a.b,{isCentered:!0,icon:"performance",title:Object(i.__)("Page Cache","bluehost-wordpress-plugin"),desc:Object(i.__)("Configure your caching to give you the best performance for your site’s needs.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:P+"admin.php?page=bluehost#/settings",isSecondary:!0},Object(i.__)("Configure Caching","bluehost-wordpress-plugin")))},M=function(){return Object(l.select)("bluehost/plugin").isJetpackActive()?Object(r.createElement)(a.b,{isCentered:!0,icon:Object(r.createElement)(k.q,null),title:Object(i.__)("Site Accelerator","bluehost-wordpress-plugin"),desc:Object(i.__)("Site acceleration service will resize your images and serve them from Jetpack's CDN.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:P+"admin.php?page=jetpack#/performance",isSecondary:!0},Object(i.__)("Configure Site Accelerator","bluehost-wordpress-plugin"))):null},C=function(){return Object(r.createElement)(a.a,{title:"Performance",className:"performance"},Object(r.createElement)(r.Fragment,null,Object(r.createElement)(x,null),Object(r.createElement)(M,null)))},L=Object(l.select)("bluehost/plugin").getAdminUrl();function A(){return Object(r.createElement)(a.b,{icon:"share",title:Object(i.__)("Social","bluehost-wordpress-plugin"),desc:Object(i.__)("Add social sharing buttons so site visitors can share your content and help grow your traffic.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:L+"admin.php?page=jetpack#/sharing",isSecondary:!0},Object(i.__)("Manage Social","bluehost-wordpress-plugin")))}function N(){return Object(r.createElement)(a.b,{icon:"megaphone",title:Object(i.__)("Publicize","bluehost-wordpress-plugin"),desc:Object(i.__)("Set your site to automatically share new content with your social networks.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:L+"admin.php?page=jetpack#/sharing",isSecondary:!0},Object(i.__)("Set Sharing","bluehost-wordpress-plugin")))}function T(){return Object(r.createElement)(a.b,{isCentered:!0,icon:"chart-bar",title:Object(i.__)("Stats","bluehost-wordpress-plugin"),desc:Object(i.__)("Learn which posts are the most popular and stay informed when your traffic surges.","bluehost-wordpress-plugin")},Object(r.createElement)(c.a,{href:L+"admin.php?page=stats",isSecondary:!0},Object(i.__)("View Stats","bluehost-wordpress-plugin")))}var F=function(){return Object(l.select)("bluehost/plugin").isJetpackActive()?Object(r.createElement)(a.a,{title:Object(i.__)("Traffic & Engagement","bluehost-wordpress-plugin"),className:"traffic"},Object(r.createElement)(A,null),Object(r.createElement)(N,null),Object(r.createElement)(T,null)):null},I=(n(166),function(){return Object(r.createElement)("div",{className:"welcome-section"},Object(r.createElement)(c.c,{level:"h2",size:"welcome"},Object(i.__)("Welcome to your WordPress site!","bluehost-wordpress-plugin")),Object(r.createElement)("p",null,Object(i.__)("From here, you can quickly add content to your site, manage for-sale products, work on your site’s design and performance, manage hosting, and access tools to increase your traffic.","bluehost-wordpress-plugin")))});t.default=function(){var e=Object(o.useLocation)(),t=Object(l.useSelect)((function(e){return e("bluehost/plugin").getBluehostPluginDaysSinceInstall()}),[]),n=!Object(l.useSelect)((function(e){return!e("bluehost/plugin").getSetting("comingSoon")}),[])||t<=30;return e.state&&void 0!==e.state.redirect&&"override"===e.state.redirect&&(n=!1),n?Object(r.createElement)(c.g,{to:"/home/onboarding",currentLocation:e}):Object(r.createElement)(s.b,{descriptivePageTitle:Object(i.__)("Home","bluehost-wordpress-plugin")},Object(r.createElement)("div",{className:"page-home__container"},Object(r.createElement)(I,null),Object(r.createElement)(g,null),Object(r.createElement)(j,null),Object(r.createElement)(F,null),Object(r.createElement)(C,null),Object(r.createElement)(S,null)))}}}]);
Save
Cancel