403 Forbidden


Disable Functions:
Path : /opt/wp/plugins/bluehost-wordpress-plugin/build/
File Upload :
Command :
Current File : //opt/wp/plugins/bluehost-wordpress-plugin/build/13-6238ca9f67b8031a1ae7.js

(window.webpackJsonp_bluehost_wordpress_plugin=window.webpackJsonp_bluehost_wordpress_plugin||[]).push([[13],{134:function(e,t){function n(e,t,n,r,o,a,s){try{var i=e[a](s),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var s=e.apply(t,r);function i(e){n(s,o,a,i,c,"next",e)}function c(e){n(s,o,a,i,c,"throw",e)}i(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},135:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),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 y})),n.d(t,"f",(function(){return _})),n.d(t,"g",(function(){return S}));var r=n(38),o=n.n(r),a=n(4),s=n.n(a),i=n(1),c=n(5);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Object(i.useState)(e),n=s()(t,2),r=n[0],a=n[1];function u(e){a([].concat(o()(r),[e]))}function l(e){return r.includes(e)}function p(e){a(Object(c.without)(r,e))}function h(e){l(e)?p(e):u(e)}return[{favorites:r},{addFavorite:u,hasFavorite:l,removeFavorite:p,setFavorites:a,toggleFavorite:h}]}var l=n(134),p=n.n(l),h=n(18),d=n.n(h),b=n(16),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(i.useState)(!1),r=s()(n,2),o=r[0],a=r[1],c=Object(i.useState)(!1),u=s()(c,2),l=u[0],h=u[1],b=Object(i.useState)(!1),g=s()(b,2),m=g[0],v=g[1],O=Object(i.useState)(e),j=s()(O,2),y=j[0],_=j[1],w=Object(i.useState)(t),E=s()(w,2),k=E[0],S=E[1],P=Object(i.useState)({}),x=s()(P,2),M=x[0],N=x[1];return Object(i.useEffect)((function(){!function(){var e=p()(d.a.mark((function e(){var t,n,r,o,i,c,u;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a(!1),h(!1),v(!0),e.prev=3,t=new URLSearchParams(""),n=0,r=Object.entries(k);n<r.length;n++)o=s()(r[n],2),i=o[0],c=o[1],t.append(i,c);return e.next=8,f()({path:"/mojo/v1/"+y+"?"+t.toString()});case 8:u=e.sent,N(u),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(3),h(!0),N(e.t0);case 16:v(!1),a(!0);case 18:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(){return e.apply(this,arguments)}}()()}),[y,k]),[{done:o,isError:l,isLoading:m,params:k,payload:M},{setType:_,setParams:S}]}function m(e){return[function(t,n){switch(n){case"favorites":return function(t){return Object(c.filter)(t,(function(t){return e.includes(t.id)}))}(t);default:return t}}]}var v=n(139),O=n.n(v);function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=Object(i.useState)(e),n=s()(t,2),r=n[0],o=n[1];function a(e){return r?new O.a(e,{threshold:.1,keys:["name","short_description","features","tags"]}).search(r):e}return[{query:r},{search:a,setQuery:o}]}function y(){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(c.reverse)(e(t))}function n(e){return Object(c.sortBy)(e,(function(e){return parseInt(e.prices.single_domain_license,10)}))}function r(e){return Object(c.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 a(e){return Object(c.reverse)(o(e))}return[function(s){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sales",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desc";switch(s=Object.values(s),i){case"date":return"desc"===c?t(s):e(s);case"price":return"desc"===c?r(s):n(s);default:return"desc"===c?a(s):o(s)}}]}function _(){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(i.useState)(e),o=s()(r,2),a=o[0],u=o[1],l=Object(i.useState)([]),p=s()(l,2),h=p[0],d=p[1],b=Object(i.useState)(t),f=s()(b,2),g=f[0],m=f[1],v=Object(i.useState)([]),O=s()(v,2),j=O[0],y=O[1],_=Object(i.useState)(1),w=s()(_,2),E=w[0],k=w[1],S=Object(i.useState)(n),P=s()(S,2),x=P[0],M=P[1];return Object(i.useEffect)((function(){var e=Object(c.chunk)(a,g);y(e),k(e.length)}),[a]),Object(i.useEffect)((function(){d(j[x-1])}),[j,x]),[{items:h,itemsPerPage:g,pageCount:E,pageNumber:x},{setCollection:u,setItemsPerPage:m,setPageNumber:M}]}var w=n(19),E=n.n(w),k=n(2);function S(){var e=Object(i.useState)(null),t=s()(e,2),n=t[0],r=t[1],o=Object(i.useState)(null),a=s()(o,2),c=a[0],u=a[1],l=Object(i.useState)(null),h=s()(l,2),b=h[0],g=h[1],m=Object(i.useState)(null),v=s()(m,2),O=v[0],j=v[1],y=Object(i.useState)(!1),_=s()(y,2),w=_[0],S=_[1],P=Object(i.useState)(!1),x=s()(P,2),M=x[0],N=x[1],C=Object(i.useState)(!1),L=s()(C,2),T=L[0],A=L[1],F=Object(i.useState)(null),I=s()(F,2),D=I[0],z=I[1],U=Object(i.useState)(null),W=s()(U,2),q=W[0],B=W[1],R=Object(i.useState)(null),V=s()(R,2),K=V[0],Y=V[1],H=Object(i.useState)(null),J=s()(H,2),Q=J[0],$=J[1],G=Object(i.useState)(null),X=s()(G,2),Z=X[0],ee=X[1],te=Object(i.useState)(null),ne=s()(te,2),re=ne[0],oe=ne[1],ae=Object(i.useState)(""),se=s()(ae,2),ie=se[0],ce=se[1],ue=Object(k.__)("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 N(!1),A(!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 A(!1),e.abrupt("return",n);case 13:return e.prev=13,e.t0=e.catch(3),A(!1),N(!0),g(("object"===E()(e.t0)?e.t0.message:e.t0)||ue),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")&&u("production"===e.currentEnvironment),e.hasOwnProperty("productionDir")&&z(e.productionDir),e.hasOwnProperty("productionThumbnailUrl")&&B(e.productionThumbnailUrl),e.hasOwnProperty("productionUrl")&&Y(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 S(!0),e.next=3,le({path:"/bluehost/v1/staging",method:"POST"});case 3:(t=e.sent)&&(pe(t),g(t.message),N("error"===t.status)),S(!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&&(j(!1),g(Object(k.__)("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 ce(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 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,le({path:"/bluehost/v1/staging/clone",method:"POST"});case 2:e.sent&&g(Object(k.__)("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,le({path:"/bluehost/v1/staging/deploy?type=".concat(t),method:"POST"});case 3:e.sent&&g(Object(k.__)("Changes deployed successfully.","bluehost-wordpress-plugin"));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return Object(i.useEffect)((function(){le({path:"/bluehost/v1/staging"}).then(pe)}),[]),[{creationDate:n,hasStaging:O,isCreatingStaging:w,isError:M,isProduction:c,isLoading:T,notice:b,productionDir:D,productionThumbnailUrl:q,productionUrl:K,stagingDir:Q,stagingThumbnailUrl:Z,stagingUrl:re,switchingTo:ie},{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)}}]}},136:function(e,t,n){},137:function(e,t,n){},138: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 C}));var r=n(14),o=n.n(r),a=n(1),s=n(10),i=n(26),c=n(2),u=n(3),l=n.n(u),p=n(5),h=n(133),d=n(8),b=n(12),f=function(e){var t=e.type,n=void 0===t?"base":t,r=e.descriptivePageTitle,u=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(c.__)("Bluehost WordPress Plugin","bluehost-wordpress-plugin"),t=document.querySelector("h2");return!1!==u?u:null!==t?t.innerText:e};return Object(a.useEffect)((function(){var e,t,n,r,o;Object(s.d)(v),Object(s.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(s.g)(m,O())}),[m.pathname]),Object(a.createElement)("section",{className:l()(["component-template-"+n,"base-template","animated","fadeIn","page-fade-speed",f.className?f.className:null])},Object(a.createElement)(i.l,null),f.children)},g=n(11),m=n.n(g),v=(n(136),function(e){var t=e.type,n=void 0===t?"common":t,r=e.children,s=o()(e,["type","children"]);return Object(a.createElement)(f,m()({type:n},s),r)}),O=n(9),j=n.n(O),y=n(38),_=n.n(y),w=n(4),E=n.n(w),k=(n(137),n(6)),S=n(135),P=n(7);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){j()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var N=[{label:Object(c.__)("Popular","bluehost-wordpress-plugin"),value:"sort-sales-desc"},{label:Object(c.__)("Price (High to Low)","bluehost-wordpress-plugin"),value:"sort-price-desc"},{label:Object(c.__)("Price (Low to High)","bluehost-wordpress-plugin"),value:"sort-price-asc"},{label:Object(c.__)("Date Added","bluehost-wordpress-plugin"),value:"sort-date-desc"}],C=function(e){var t=e.type,n=void 0===t?"marketplace":t,r=e.className,s=void 0===r?"":r,u=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(S.a)(),O=E()(g,2),j=O[0].favorites,y=O[1],w=y.hasFavorite,x=y.toggleFavorite,C=Object(S.c)(j),L=E()(C,1)[0],T=Object(S.f)(),A=E()(T,2),F=A[0],I=F.items,D=F.itemsPerPage,z=F.pageCount,U=F.pageNumber,W=A[1],q=W.setCollection,B=W.setPageNumber,R=Object(a.useState)("sort-sales-desc"),V=E()(R,2),K=V[0],Y=V[1],H=Object(S.e)(),J=E()(H,1)[0],Q=Object(S.d)(),$=E()(Q,2),G=$[0].query,X=$[1],Z=X.search,ee=X.setQuery;return s=l()("bluehost-marketplace",s),Object(a.useEffect)((function(){var e=p.items||[],t=K.split("-"),n=E()(t,3),r=n[0],o=n[1],a=n[2];e="filter"===r?L(J(e,"sales"),o):J(e,o,a),e=Z(e,G),q(e),B(1)}),[p,K,G]),Object(a.useEffect)((function(){window.scrollTo(0,0)}),[U]),Object(a.createElement)(v,m()({type:n,className:s,marketplaceType:b},f),Object(a.createElement)("section",{className:"".concat(s,"__header")},Object(a.createElement)("div",{className:"".concat(s,"__header-primary")},Object(a.createElement)(k.d,{level:"h2",size:1,className:"marketplace-page-title"},function(e){switch(e){case"plugins":return Object(c.__)("Premium Plugins","bluehost-wordpress-plugin");case"services":return Object(c.__)("Premium Services","bluehost-wordpress-plugin");default:return Object(c.__)("Premium Themes","bluehost-wordpress-plugin")}}(b)),Object(a.createElement)("div",{className:"".concat(s,"__pagination-container")},Object(a.createElement)(k.g,{callback:B,currentPage:U,pageCount:z}))),Object(a.createElement)("div",{className:"".concat(s,"__header-secondary")},Object(a.createElement)(i.q,{value:G,onChange:ee}),Object(a.createElement)(k.c,{id:"sort-filter",label:Object(c.__)("Sort By","bluehost-wordpress-plugin"),onChange:function(e){return Y(e)},options:N,value:K,width:178}))),Object(a.createElement)("div",{className:"".concat(s,"__content")},u?Object(a.createElement)(i.p,null,_()(Array(D).keys()).map((function(e){return Object(a.createElement)(i.o,{key:e})}))):I&&I.length?Object(a.createElement)(i.p,null,I.map((function(e){return h({item:M(M({},e),{},{marketplaceType:b}),hasFavorite:w,toggleFavorite:x})}))):"filter-favorites"===K?Object(a.createElement)("div",{className:"bluehost-no-results"},Object(a.createElement)(P.v,null),Object(a.createElement)("h2",null,Object(c.__)("You don't have any favorites yet.","bluehost-wordpress-plugin")),Object(a.createElement)("p",null,Object(c.__)("Add favorites by starring items you like.","bluehost-wordpress-plugin")),Object(a.createElement)("a",{href:"#",onClick:function(e){e.preventDefault(),Y("sort-sales-desc")}},function(){switch(b){case"plugins":return Object(c.__)("View Plugins","bluehost-wordpress-plugin");case"services":return Object(c.__)("View Services","bluehost-wordpress-plugin");default:return Object(c.__)("View Themes","bluehost-wordpress-plugin")}}())):Object(a.createElement)(i.i,null)),Object(a.createElement)("footer",{className:"".concat(s,"__footer")},Object(a.createElement)("div",{className:"".concat(s,"__ad")}),Object(a.createElement)(k.g,{callback:B,currentPage:U,pageCount:z})))}},139: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),a=n(7),s=a.get,i=(a.deepValue,a.isArray),c=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,a=n.distance,i=void 0===a?100:a,c=n.threshold,u=void 0===c?.6:c,l=n.maxPatternLength,p=void 0===l?32:l,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,y=void 0===j?null:j,_=n.keys,w=void 0===_?[]:_,E=n.shouldSort,k=void 0===E||E,S=n.getFn,P=void 0===S?s:S,x=n.sortFn,M=void 0===x?function(e,t){return e.score-t.score}:x,N=n.tokenize,C=void 0!==N&&N,L=n.matchAllTokens,T=void 0!==L&&L,A=n.includeMatches,F=void 0!==A&&A,I=n.includeScore,D=void 0!==I&&I,z=n.verbose,U=void 0!==z&&z;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options={location:o,distance:i,threshold:u,maxPatternLength:p,isCaseSensitive:d,tokenSeparator:f,findAllMatches:m,minMatchCharLength:O,id:y,keys:w,includeMatches:F,includeScore:D,shouldSort:k,getFn:P,sortFn:M,verbose:U,tokenize:C,matchAllTokens:T},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,a=null,s=0,i=0,c=e.length;i<c;i+=1){var u=e[i];if(!u.hasOwnProperty("name"))throw new Error('Missing "name" property in key object');var l=u.name;if(this._keyNames.push(l),!u.hasOwnProperty("weight"))throw new Error('Missing "weight" property in key object');var p=u.weight;if(p<0||p>1)throw new Error('"weight" property in key must bein the range of [0, 1)');a=null==a?p:Math.max(a,p),o=null==o?p:Math.min(o,p),this._keyWeights[l]=p,s+=p}if(s>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,a=this._search(r,o);return this._computeScore(a),this.options.shouldSort&&this._sort(a),t.limit&&"number"==typeof t.limit&&(a=a.slice(0,t.limit)),this._format(a)}},{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,a=n.length;r<a;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 a=0,s=n.length;a<s;a+=1)this._analyze({key:"",value:n[a],record:a,index:a},{resultMap:r,results:o,tokenSearchers:e,fullSearcher:t});return o}for(var i=0,c=n.length;i<c;i+=1)for(var u=n[i],l=0,p=this._keyNames.length;l<p;l+=1){var h=this._keyNames[l];this._analyze({key:h,value:this.options.getFn(u,h),record:u,index:i},{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,a=void 0===o?-1:o,s=e.value,c=e.record,u=e.index,l=t.tokenSearchers,p=void 0===l?[]:l,h=t.fullSearcher,d=t.resultMap,b=void 0===d?{}:d,f=t.results,g=void 0===f?[]:f;!function e(t,o,a,s){if(null!=o)if("string"==typeof o){var c=!1,u=-1,l=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 y=p[O];n._log('\nPattern: "'.concat(y.pattern,'"'));for(var _=!1,w=0;w<m;w+=1){var E=f[w],k=y.search(E),S={};k.isMatch?(S[E]=k.score,c=!0,_=!0,v.push(k.score)):(S[E]=1,n.options.matchAllTokens||v.push(1)),n._log('Token: "'.concat(E,'", score: ').concat(S[E]))}_&&(l+=1)}u=v[0];for(var P=v.length,x=1;x<P;x+=1)u+=v[x];u/=P,n._log("Token score average:",u)}var M=d.score;u>-1&&(M=(M+u)/2),n._log("Score average:",M);var N=!n.options.tokenize||!n.options.matchAllTokens||l>=p.length;if(n._log("\nCheck Matches: ".concat(N)),(c||d.isMatch)&&N){var C={key:r,arrayIndex:t,value:o,score:M};n.options.includeMatches&&(C.matchedIndices=d.matchedIndices);var L=b[s];L?L.output.push(C):(b[s]={item:a,output:[C]},g.push(b[s]))}}else if(i(o))for(var T=0,A=o.length;T<A;T+=1)e(T,o[T],a,s)}(a,s,c,u)}},{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 a=e[r],s=a.output,i=s.length,c=1,u=0;u<i;u+=1){var l=s[u],p=l.key,h=n?t[p]:1,d=0===l.score&&t&&t[p]>0?Number.EPSILON:l.score;c*=Math.pow(d,h)}a.score=c,this._log(a)}}},{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 a=n[r];if(0!==a.matchedIndices.length){var s={indices:a.matchedIndices,value:a.value};a.key&&(s.key=a.key),a.hasOwnProperty("arrayIndex")&&a.arrayIndex>-1&&(s.arrayIndex=a.arrayIndex),t.matches.push(s)}}})),this.options.includeScore&&o.push((function(e,t){t.score=e.score}));for(var a=0,s=e.length;a<s;a+=1){var i=e[a];if(this.options.id&&(i.item=this.options.getFn(i.item,this.options.id)[0]),o.length){for(var c={item:i.item},u=0,l=o.length;u<l;u+=1)o[u](i,c);t.push(c)}else t.push(i.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=c},function(e,t,n){var r=n(2),o=n(3),a=n(6),s=function(){function e(t,n){var r=n.location,o=void 0===r?0:r,s=n.distance,i=void 0===s?100:s,c=n.threshold,u=void 0===c?.6:c,l=n.maxPatternLength,p=void 0===l?32:l,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,y=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:i,threshold:u,maxPatternLength:p,isCaseSensitive:d,tokenSeparator:f,findAllMatches:m,includeMatches:y,minMatchCharLength:O},this.pattern=d?t:t.toLowerCase(),this.pattern.length<=p&&(this.patternAlphabet=a(this.pattern))}var t;return(t=[{key:"search",value:function(e){var t=this.options,n=t.isCaseSensitive,a=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var s={isMatch:!0,score:0};return a&&(s.matchedIndices=[[0,e.length-1]]),s}var i=this.options,c=i.maxPatternLength,u=i.tokenSeparator;if(this.pattern.length>c)return r(e,this.pattern,u);var l=this.options,p=l.location,h=l.distance,d=l.threshold,b=l.findAllMatches,f=l.minMatchCharLength;return o(e,this.pattern,this.patternAlphabet,{location:p,distance:h,threshold:d,findAllMatches:b,minMatchCharLength:f,includeMatches:a})}}])&&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=s},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,"|")),a=e.match(o),s=!!a,i=[];if(s)for(var c=0,u=a.length;c<u;c+=1){var l=a[c];i.push([e.indexOf(l),l.length-1])}return{score:s?.5:1,isMatch:s,matchedIndices:i}}},function(e,t,n){var r=n(4),o=n(5);e.exports=function(e,t,n,a){for(var s=a.location,i=void 0===s?0:s,c=a.distance,u=void 0===c?100:c,l=a.threshold,p=void 0===l?.6:l,h=a.findAllMatches,d=void 0!==h&&h,b=a.minMatchCharLength,f=void 0===b?1:b,g=a.includeMatches,m=void 0!==g&&g,v=i,O=e.length,j=p,y=e.indexOf(t,v),_=t.length,w=[],E=0;E<O;E+=1)w[E]=0;if(-1!==y){var k=r(t,{errors:0,currentLocation:y,expectedLocation:v,distance:u});if(j=Math.min(k,j),-1!==(y=e.lastIndexOf(t,v+_))){var S=r(t,{errors:0,currentLocation:y,expectedLocation:v,distance:u});j=Math.min(S,j)}}y=-1;for(var P=[],x=1,M=_+O,N=1<<(_<=31?_-1:30),C=0;C<_;C+=1){for(var L=0,T=M;L<T;)r(t,{errors:C,currentLocation:v+T,expectedLocation:v,distance:u})<=j?L=T:M=T,T=Math.floor((M-L)/2+L);M=T;var A=Math.max(1,v-T+1),F=d?O:Math.min(v+T,O)+_,I=Array(F+2);I[F+1]=(1<<C)-1;for(var D=F;D>=A;D-=1){var z=D-1,U=n[e.charAt(z)];if(U&&(w[z]=1),I[D]=(I[D+1]<<1|1)&U,0!==C&&(I[D]|=(P[D+1]|P[D])<<1|1|P[D+1]),I[D]&N&&(x=r(t,{errors:C,currentLocation:z,expectedLocation:v,distance:u}))<=j){if(j=x,(y=z)<=v)break;A=Math.max(1,2*v-y)}}if(r(t,{errors:C+1,currentLocation:v,expectedLocation:v,distance:u})>j)break;P=I}var W={isMatch:y>=0,score:0===x?.001:x};return m&&(W.matchedIndices=o(w,f)),W}},function(e,t){e.exports=function(e,t){var n=t.errors,r=void 0===n?0:n,o=t.currentLocation,a=void 0===o?0:o,s=t.expectedLocation,i=void 0===s?0:s,c=t.distance,u=void 0===c?100:c,l=r/e.length,p=Math.abs(i-a);return u?l+p/u:p?1:l}},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,a=0,s=e.length;a<s;a+=1){var i=e[a];i&&-1===r?r=a:i||-1===r||((o=a-1)-r+1>=t&&n.push([r,o]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-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},a=function(e){return"number"==typeof e};e.exports={get:function(e,t){var s=[];return function e(t,i){if(i){var c=i.indexOf("."),u=i,l=null;-1!==c&&(u=i.slice(0,c),l=i.slice(c+1));var p=t[u];if(null!=p)if(l||!o(p)&&!a(p))if(n(p))for(var h=0,d=p.length;h<d;h+=1)e(p[h],l);else l&&e(p,l);else s.push(r(p))}else s.push(t)}(e,t),s},isArray:n,isString:o,isNum:a,toString:r}}])},185:function(e,t,n){},259:function(e,t,n){"use strict";n.r(t),n.d(t,"Onboarding",(function(){return C}));var r=n(4),o=n.n(r),a=n(1),s=(n(185),n(2)),i=n(39),c=n(12),u=n(13),l=(n(7),n(138)),p=n(6),h=n(26),d=n(5),b=function(e){var t=e.children;return Object(a.createElement)("div",{className:"nf-onboarding-base-step"},t)},f=n(45),g=n(15),m=function(){return Object(a.createElement)(b,null,Object(a.createElement)("img",{className:"illustration",src:f.a,alt:Object(s.__)("Person on lounge chair working on laptop.","bluehost-wordpress-plugin")}),Object(a.createElement)("p",null,Object(s.__)("The homepage is what visitors will see when they visit","bluehost-wordpress-plugin")," ",Object(a.createElement)("strong",null,Object(s.sprintf)("%s",(function(){var e=void 0!==window.bluehostWpAdminUrl&&window.bluehostWpAdminUrl;return!!e&&Object(g.filterURLForDisplay)(Object(d.replace)(e,"/wp-admin",""))})))," ",Object(s.__)("and is often the first contact your visitors have with your site.","bluehost-wordpress-plugin")),Object(a.createElement)("p",null,Object(s.__)("By default this page shows the most recent posts you have made, and you can customize it to offer a better first experience for your visitors!","bluehost-wordpress-plugin")),Object(a.createElement)(p.b,{isPrimary:!0,href:"post-new.php?dcpage=home&dcsrc=plugin"},Object(s.__)("Customize your homepage","bluehost-wordpress-plugin")))},v=n(42),O=function(){return Object(a.createElement)(b,null,Object(a.createElement)("img",{className:"illustration",src:v.a,alt:Object(s.__)("Person throwing paper airplanes.","bluehost-wordpress-plugin")}),Object(a.createElement)("p",null,Object(s.__)("It can be important for visitors to be able to get in touch with you. Adding a contact page to your site is easy and fast, and can both reduce visitor frustration as well as build confidence!","bluehost-wordpress-plugin")),Object(a.createElement)(p.b,{isPrimary:!0,href:"post-new.php?dcpage=contact&dcsrc=plugin"},Object(s.__)("Add contact page","bluehost-wordpress-plugin")))},j=n(41),y=function(){return Object(a.createElement)(b,null,Object(a.createElement)("img",{className:"illustration",src:j.a,alt:Object(s.__)("People around monitor working and pointing.","bluehost-wordpress-plugin")}),Object(a.createElement)("p",null,Object(s.__)("An about page lets you tell your visitors about you, your team, or your company - everything from what you do to what sets you apart.","bluehost-wordpress-plugin")),Object(a.createElement)("p",null,Object(s.__)("Not sure where to start? We give you some content to get you going and help walk you through customizing it!","bluehost-wordpress-plugin")),Object(a.createElement)(p.b,{isPrimary:!0,href:"post-new.php?dcpage=about&dcsrc=plugin"},Object(s.__)("Add about page","bluehost-wordpress-plugin")))},_=n(43),w=function(){return Object(a.createElement)(b,null,Object(a.createElement)("img",{className:"illustration",src:_.a,alt:Object(s.__)("Person on laptop surrounded by gears and leaves with growing ideas.","bluehost-wordpress-plugin")}),Object(a.createElement)("p",null,Object(s.__)("Content is important - it’s how you communicate with your visitors and it’s also what search engines use to help people find your site.","bluehost-wordpress-plugin")),Object(a.createElement)("p",null,Object(s.__)("There are two main types of content - pages and posts. Use a page for content that won't change too often (about page, contact page, portfolio, restaurant menu, etc) and use posts for information that's timely (blog posts, updates).","bluehost-wordpress-plugin")),Object(a.createElement)(p.b,{isPrimary:!0,href:"post-new.php?post_type=page"},Object(s.__)("Add page","bluehost-wordpress-plugin")),Object(a.createElement)(p.b,{isSecondary:!0,href:"post-new.php"},Object(s.__)("Add post","bluehost-wordpress-plugin")))},E=n(44),k=function(){return Object(a.createElement)(b,null,Object(a.createElement)("img",{className:"illustration",src:E.a,alt:Object(s.__)("Designer working on a website","bluehost-wordpress-plugin")}),Object(a.createElement)("p",null,Object(s.__)("You want your site to look just right - maybe you want it to match your company colors, to be serious or fun, simple or bold—whatever's you. Customize the look of your site, or","bluehost-wordpress-plugin")," ",Object(a.createElement)("a",{href:"#/home/onboarding/premium-themes"},Object(s.__)("browse our premium themes","bluehost-wordpress-plugin"))," ",Object(s.__)(" to find something that fits you just right.","bluehost-wordpress-plugin")),Object(a.createElement)(p.b,{isPrimary:!0,href:"customize.php"},Object(s.__)("Customize your site","bluehost-wordpress-plugin")))},S=n(46),P=n(47),x=n(10),M=n(0),N=function(){var e=Object(a.useState)(!1),t=o()(e,2),n=t[0],r=t[1],i=Object(c.useSelect)((function(e){return e("bluehost/plugin").getSetting("comingSoon")}),[]),u=Object(c.useDispatch)("bluehost/plugin").toggleSetting,l=function(e){Object(x.h)(e,(function(){r(!0),u("comingSoon").then((function(){r(!1)}))}))};Object(a.useEffect)((function(){var e=document.getElementById("wp-admin-bar-mojo-home");e&&(e.style.display=i?"block":"none")}),[i]);var h=function(){return Object(a.createElement)(M.Fragment,null,Object(a.createElement)("img",{className:"illustration",src:S.a,alt:Object(s.__)("Person on spaceship with laptop.","bluehost-wordpress-plugin")}),Object(a.createElement)("p",null,Object(s.__)('Your site has a "coming soon" message, which lets people know you\'re working on it. Wondering if you’re ready to launch? Check out',"bluehost-wordpress-plugin")," ",Object(a.createElement)("a",{href:"https://www.bluehost.com/help/article/website-publish-checklist?utm_content=onboarding_site_publish_checklist&utm_term=website%20pre-publishing&utm_source=wp-admin%2Fadmin.php%3Fpage%3Dbluehost%23%2Fhome%2Fonboarding&utm_medium=bluehost_plugin",target:"_blank"},Object(s.__)("our website pre-publishing checklist","bluehost-wordpress-plugin"))," ",Object(s.__)("and then launch with confidence!","bluehost-wordpress-plugin")))},d=function(){return Object(a.createElement)(M.Fragment,null,Object(a.createElement)("img",{className:"illustration",src:P.a,alt:Object(s.__)("People jumping and celebrating.","bluehost-wordpress-plugin")}),Object(a.createElement)("p",null,Object(s.__)("Nice going! Your website is now live to the internet for everyone to visit. Reach out anytime you need help or have questions about next steps!","bluehost-wordpress-plugin")))};return Object(a.createElement)(b,null,Object(a.createElement)((function(){return i?Object(a.createElement)(h,null):Object(a.createElement)(d,null)}),null),Object(a.createElement)(p.b,{isPrimary:!0,onClick:l,onKeyDown:l,disabled:n},Object(s.sprintf)("%s",(function(){return n?i?Object(s.__)("Launching...","bluehost-wordpress-plugin"):Object(s.__)("Reverting...","bluehost-wordpress-plugin"):i?Object(s.__)("Launch your site","bluehost-wordpress-plugin"):Object(s.__)("Restore Coming Soon","bluehost-wordpress-plugin")}))))},C=function(){var e,t=Object(i.useViewportMatch)("medium"),n=Object(a.useState)("onboarding-tabs"),r=o()(n,2),c=r[0],d=r[1],b=Object(a.useMemo)((function(){return[{name:"start-homepage",title:Object(s.__)("Start with your homepage","bluehost-wordpress-plugin"),Content:m},{name:"add-contact",title:Object(s.__)("Add contact page","bluehost-wordpress-plugin"),Content:O},{name:"add-about",title:Object(s.__)("Add about page","bluehost-wordpress-plugin"),Content:y},{name:"add-more-content",title:Object(s.__)("Add more content","bluehost-wordpress-plugin"),Content:w},{name:"look-right",title:Object(s.__)("Make it look just right","bluehost-wordpress-plugin"),Content:k},{name:"launch",title:Object(s.__)("Launch with confidence","bluehost-wordpress-plugin"),Content:N}]}),[t]);return e=t?Object(a.createElement)(u.TabPanel,{className:"nf-onboarding__desktop",activeClass:"is-active",orientation:"vertical",initialTabName:"onboarding-tabs"!==c?c:void 0,onSelect:d,tabs:b},(function(e){return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(e.Content,null))})):Object(a.createElement)(u.__experimentalNavigation,{activeMenu:c,onActivateMenu:d,className:"nf-onboarding__mobile"},Object(a.createElement)(u.__experimentalNavigationMenu,{menu:"onboarding-tabs"},b.map((function(e){return Object(a.createElement)(u.__experimentalNavigationItem,{key:e.name,title:e.title,navigateToMenu:e.name})}))),b.map((function(e){return Object(a.createElement)(u.__experimentalNavigationMenu,{key:"".concat(e.name,"-menu"),menu:e.name,title:e.title,parentMenu:"onboarding-tabs"},Object(a.createElement)(u.__experimentalNavigationItem,null,Object(a.createElement)(e.Content,null)))}))),Object(a.createElement)(l.b,{descriptivePageTitle:Object(s.__)("Onboarding","bluehost-wordpress-plugin")},Object(a.createElement)("header",{className:"nf-onboarding__header"},Object(a.createElement)(p.d,{level:"h2",size:"welcome"},Object(s.__)("Welcome to your WordPress site!","bluehost-wordpress-plugin")),Object(a.createElement)("p",{className:"nf-onboarding__header-desc"},Object(s.__)("WordPress is the","bluehost-wordpress-plugin")," ",Object(a.createElement)("a",{href:"https://wordpress.org/about/features/",target:"_blank"},Object(s.__)("most popular platform","bluehost-wordpress-plugin"))," ",Object(s.__)("for building amazing websites.","bluehost-wordpress-plugin"))),Object(a.createElement)("br",null),Object(a.createElement)(p.a,{className:"nf-onboarding__steps"},Object(a.createElement)(p.d,{level:"h3",size:"product"},Object(s.__)("Let's setup your site","bluehost-wordpress-plugin")),Object(a.createElement)("p",{style:{fontSize:"16px"}},Object(s.__)("Here's what we recommend before launching your site.","bluehost-wordpress-plugin")),e,Object(a.createElement)("br",null)),Object(a.createElement)("div",{className:"grid-col-2"},Object(a.createElement)(h.a,null),Object(a.createElement)(h.g,null)))};t.default=C}}]);

404 Not Found
[ LogOut ]