Full Site Editing - Version 2.14

Version Description

  • Hide plugin buttons in header on mobile layouts (https://github.com/Automattic/wp-calypso/pull/49329)
Download this release

Release Info

Developer philipmjackson
Plugin Icon wp plugin Full Site Editing
Version 2.14
Comparing to
See all releases

Code changes from version 2.13 to 2.14

common/dist/data-stores.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '4d40d6cb3202aa2dde7c06143f7e4172');
1
+ <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '7beb7693134ac5f9ff145cc72b68059c');
common/dist/data-stores.js CHANGED
@@ -11,4 +11,4 @@ object-assign
11
  * @license See CREDITS.md
12
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
13
  */
14
- function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(u[1]||"").length<o&&(u[1]=u[1]||"",u[1]+=new Array(o-u[1].length+1).join("0")),u.join(a)}var Y=M()("i18n-calypso"),Q="number_format_decimals",X="number_format_thousands_sep",ee="messages",te=[function(e){return e}],ne={};function re(){ue.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function ie(e){return Array.prototype.slice.call(e)}function oe(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&re("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",ie(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&re("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",ie(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function se(e,t){return e.dcnpgettext(ee,t.context,t.original,t.plural,t.count)}function ae(e,t){for(var n=te.length-1;n>=0;n--){var r=te[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return se(e.state.tannin,r)}return null}function ue(){if(!(this instanceof ue))return new ue;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:G()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new z.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ue.throwErrors=!1,ue.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ue.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ue.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ue.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return J(e,n,r,i)},ue.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ue.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==ne[n+e])return ne[n+e];var r=K()().update(e).digest("hex");return ne[n+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)te.push(s(!1));else{var a=i.substr(5).indexOf("-");if(a<0){var u=Number(i.substr(5));te.push(s(u))}else for(var c=Number(i.substr(5,a)),l=Number(i.substr(6+a)),p=c;p<=l;p++)te.push(s(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new H(E()({},ee,this.state.locale)),this.state.numberFormatSettings.decimal_point=se(this.state.tannin,oe([Q])),this.state.numberFormatSettings.thousands_sep=se(this.state.tannin,oe([X])),this.state.numberFormatSettings.decimal_point===Q&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===X&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ue.prototype.getLocale=function(){return this.state.locale},ue.prototype.getLocaleSlug=function(){return this.state.localeSlug},ue.prototype.getLocaleVariant=function(){return this.state.localeVariant},ue.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ue.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ue.prototype.hasTranslation=function(){return!!ae(this,oe(arguments))},ue.prototype.translate=function(){var e=oe(arguments),t=ae(this,e);if(t||(t=se(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=Z.apply(void 0,N()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,k.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ue.prototype.reRenderTranslations=function(){Y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ue.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ue.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ce=ue,le=n(85),pe=n.n(le),fe=n(5198),de=n.n(fe),ge=n(8111),me=n.n(ge),he=n(270),ye=n.n(he),ve=n(4564),be=n.n(ve),Se=window.wp.element,Ee=n(3804),_e=n.n(Ee);var we=n(1068),Ce=n.n(we);var Oe=n(8527),Pe=n.n(Oe),Ie=n(6718),Te=window.wp.compose;var Re=new ce,xe=Re.numberFormat.bind(Re),Ae=Re.translate.bind(Re),Fe=(Re.configure.bind(Re),Re.setLocale.bind(Re),Re.getLocale.bind(Re),Re.getLocaleSlug.bind(Re),Re.getLocaleVariant.bind(Re),Re.isRtl.bind(Re),Re.addTranslations.bind(Re),Re.reRenderTranslations.bind(Re),Re.registerComponentUpdateHook.bind(Re),Re.registerTranslateHook.bind(Re),Re.state,Re.stateObserver,Re.on.bind(Re),Re.off.bind(Re),Re.emit.bind(Re),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(Re),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Re),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Ie.useSubscription)(t)}var r=(0,Te.createHigherOrderComponent)((function(e){return(0,Ee.forwardRef)((function(t,r){var i=n();return(0,Se.createElement)(e,Pe()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Re)),De=(Fe.useRtl,Fe.withRtl,n(2954)),Le=n.n(De),Ne="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),je=new Uint8Array(16);function Me(){if(!Ne)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ne(je)}for(var ke=[],Ue=0;Ue<256;++Ue)ke[Ue]=(Ue+256).toString(16).substr(1);var Ve=function(e,t){var n=t||0,r=ke;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var Be,He=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||Me)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||Ve(i)},$e=n(2884),Ge=n.n($e),We=n(8650),Ke=n.n(We),ze=M()("wpcom-proxy-request"),qe="https://public-api.wordpress.com",Ze=window.location.protocol+"//"+window.location.host,Je=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),Ye=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Qe=null,Xe=!1,et={},tt=!!window.ProgressEvent&&!!window.FormData;ze('using "origin": %o',Ze);var nt=function(e,t){var n=Object.assign({},e);ze("request(%o)",n),Qe||at();var r=He();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=tt,n.method=String(n.method||"GET").toUpperCase(),ze("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,et[r]=i,"function"==typeof t){var o=!1,s=function(e){if(!o){o=!0;var n=e.error||e.err||e;ze("error: ",n),ze("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;ze("body: ",n),ze("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",s),i.addEventListener("error",s)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,Xe?it(n):(ze("buffering API request since proxying <iframe> is not yet loaded"),Be.push(n)),i},rt=function(e,t){return"function"==typeof t?nt(e,t):new Promise((function(t,n){nt(e,(function(e,r){e?n(e):t(r)}))}))};function it(e){ze("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!Ye)return;for(var t=0;t<e.length;t++){var n=st(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Qe.contentWindow.postMessage(Je?JSON.stringify(e):e,qe)}function ot(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function st(e){return ot(e)?e:"object"==typeof e&&ot(e.fileContents)?e.fileContents:null}function at(){ze("install()"),Qe&&(ze("uninstall()"),window.removeEventListener("message",ut),document.body.removeChild(Qe),Xe=!1,Qe=null),Be=[],window.addEventListener("message",ut),(Qe=document.createElement("iframe")).src=qe+"/wp-admin/rest-proxy/?v=2.0#"+Ze,Qe.style.display="none",document.body.appendChild(Qe)}function ut(e){if(ze("onmessage"),e.origin===qe)if(e.source===Qe.contentWindow){var t=e.data;if(!t)return ze("no `data`, bailing");if("ready"!==t){if(Je&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){ze('got "progress" event: %o',e);var t=et[e.callbackId];if(t){var n=new(Ke())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return ze("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in et))return ze("bailing, no matching request with callback: %o",n);var r,i=et[n],o=i.params,s=t[0],a=t[1],u=t[2];if(207===a||delete et[n],o.metaAPI?a="metaAPIupdated"===s?200:500:ze("got %o status code for URL: %o",a,o.path),"object"==typeof u)if(u.status=a,r=u["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void ct(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),u);if(a&&2===Math.floor(a/100))!function(e,t,n){var r=new(Ke())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,s,u);else ct(i,Ge()(o,a,s),u)}else!function(){if(ze('proxy <iframe> "load" event'),Xe=!0,Be){for(var e=0;e<Be.length;e++)it(Be[e]);Be=null}}()}else ze("ignoring message... iframe elements do not match");else ze("ignoring message... %o !== %o",e.origin,qe)}function ct(e,t,n){var r=new(Ke())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var lt,pt=rt,ft=function(e){return{type:"WPCOM_REQUEST",request:e}},dt=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},gt={WPCOM_REQUEST:function(e){var t=e.request;return pt(t)},FETCH_AND_PARSE:(lt=Le()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return lt.apply(this,arguments)}),RELOAD_PROXY:function(){at()},REQUEST_ALL_BLOGS_ACCESS:function(){return rt({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}},mt=regeneratorRuntime.mark(vt),ht=regeneratorRuntime.mark(bt),yt=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,dt(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",x(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",x(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function vt(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,dt("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",T(e.body));case 4:case"end":return t.stop()}}),mt)}function bt(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",F("Empty query"));case 2:return n.next=4,R();case 4:return n.prev=4,n.next=7,ft({apiVersion:"1.1",path:"/domains/suggestions",query:(0,D.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",F(n.t0.message||Ae("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",F(Ae("Invalid response from the server")));case 15:return n.abrupt("return",A(e,t));case 16:case"end":return n.stop()}}),ht,null,[[4,10]])}var St,Et=function(e){function t(t,n){return w()(w()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(N()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),N()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)(m).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)("core/data").isResolving(m,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[O(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},_t=!1;St={vendor:"variation2_front"}.vendor,_t||(_t=!0,(0,g.registerStore)(m,{actions:r,controls:gt,reducer:I,resolvers:i,selectors:Et(St)}));var wt="Free",Ct="Personal",Ot="Premium",Pt="Business",It="Ecommerce",Tt="automattic/onboard/plans",Rt=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],xt=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],At=[wt,Ct,Ot,Pt,It],Ft=["free_plan"].concat(Rt,xt),Dt=(0,g.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),Lt=function(e){return{type:"SET_FEATURES",features:e}},Nt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},jt=function(e){return{type:"SET_PLANS",plans:e}},Mt=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},kt=function(){return{type:"RESET_PLAN"}},Ut=window.wp.deprecated,Vt=n.n(Ut),Bt=function(e){return e.features},Ht=function(e){return e.featuresByType},$t=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Gt=function(e,t){if(t)return(0,g.select)(Tt).getPlansProducts().find((function(e){return e.productId===t}))},Wt=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Kt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},zt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===wt}))},qt=function(e,t){return e.plans},Zt=function(e,t){return e.planProducts},Jt=function(e,t){return Vt()("getPrices",{alternative:"getPlanProduct().price"}),(0,g.select)(Tt).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},Yt=function(e,t){if(t){var n=(0,g.select)(Tt).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Qt=function(e,t,n){if(t&&n){var r=(0,g.select)(Tt).getPlansProducts();return t===wt?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Xt=function(e,t){return t===It},en=function(e,t){return t===wt},tn=function(e,t){return 1===t},nn={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function rn(e){return nn[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function on(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=rn(t);if(!r||isNaN(e))return null;var i=w()(w()({},r),n),o=i.decimal,s=i.grouping,a=i.precision,u=i.symbol,c=e<0?"-":"",l=xe(Math.abs(e),{decimals:a,thousandsSep:s,decPoint:o});return n.stripZeros&&(l=sn(l,o)),"".concat(c).concat(u).concat(l)}function sn(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}var an=regeneratorRuntime.mark(fn);function un(e){return on(12*e.raw_price,e.currency_code)}function cn(e){return on(e.raw_price,e.currency_code)}function ln(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function pn(e,t){var n=Ft.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,s=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:s.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?cn(i):(o=i,on(o.raw_price/12,o.currency_code)),annualPrice:31===(null==i?void 0:i.bill_period)?un(i):cn(i)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===Rt[t]})),r=e.find((function(e){return e.storeSlug===xt[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,s=Math.round(100*(1-o/i));n.annualDiscount=s,r.annualDiscount=s}},n=0;n<Rt.length;n++)t(n)}(n),n}function fn(){var e,t,n,r,i,o,s,a=arguments;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:"en",u.next=3,ft({path:"/plans",query:(0,D.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=u.sent,u.next=6,dt("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=u.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===wt,isPopular:e.nonlocalized_short_name===Ot,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=pn(t,i),s=ln(r.features),u.next=13,jt(i);case 13:return u.next=15,Mt(o);case 15:return u.next=17,Lt(s);case 17:return u.next=19,Nt(r.features_by_type);case 19:case"end":return u.stop()}}),an)}var dn=!1;dn||(dn=!0,(0,g.registerStore)(Tt,{resolvers:a,actions:o,controls:gt,reducer:Dt,selectors:s}));var gn,mn,hn,yn="automattic/site",vn=n(2220),bn=n.n(vn),Sn=n(4582),En=n.n(Sn);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(gn||(gn={})),function(e){e.INTERNAL="internal"}(mn||(mn={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(hn||(hn={}));var wn=(0,g.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),Cn=(0,g.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:wn,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return w()(w()({},e),{},E()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],bn()(e,[n].map(En())));return w()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?w()(w()({},e),{},E()({},t.siteId,w()(w()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?w()(w()({},e),{},E()({},t.siteId,t.domains)):e}});function On(e){var t=regeneratorRuntime.mark(c),n=regeneratorRuntime.mark(g),r=regeneratorRuntime.mark(m),i=regeneratorRuntime.mark(h),o=regeneratorRuntime.mark(y),s=function(){return{type:"FETCH_NEW_SITE"}},a=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},u=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function c(n){var r,i,o,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=bn()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},s=w()(w()(w()({},o),i),{},{validate:!1}),t.next=8,ft({path:"/sites/new",apiVersion:"1.1",method:"post",body:s,token:r});case 8:return c=t.sent,t.next=11,a(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,u(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var l=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},p=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},f=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},d=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function g(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(e);case 2:return t.prev=2,t.next=5,ft({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,f(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,d(e,mn.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function m(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function h(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function y(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,l(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:y,receiveSiteTitle:l,fetchNewSite:s,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:a,receiveNewSiteFailed:u,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:c,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:g,launchSiteStart:p,launchSiteSuccess:f,launchSiteFailure:d,getCart:m,setCart:h}}var Pn=regeneratorRuntime.mark(Tn),In=regeneratorRuntime.mark(Rn);function Tn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,g.dispatch)(yn).fetchSite();case 2:return n.prev=2,n.next=5,ft({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,g.dispatch)(yn).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,g.dispatch)(yn).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),Pn,null,[[2,10]])}function Rn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,g.dispatch)(yn).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),In,null,[[0,8]])}var xn,An=function(e){return e},Fn=function(e){return e.newSite.data},Dn=function(e){return e.newSite.error},Ln=function(e){return e.newSite.isFetching},Nn=function(e){return e.isFetchingSiteDetails},jn=function(e){return!!e.newSite.data},Mn=function(e,t){return e.sites[t]},kn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSite(t))||void 0===n?void 0:n.name},Un=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.SUCCESS},Vn=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.IN_PROGRESS},Bn=function(e,t){return e.sitesDomains[t]},Hn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},$n=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},Gn=!1;xn={client_id:"",client_secret:""},Gn||(Gn=!0,(0,g.registerStore)(yn,{actions:On(xn),controls:gt,reducer:Cn,resolvers:u,selectors:c}));var Wn=window.wp.dataControls,Kn="automattic/launch",zn="automattic/onboard/plans",qn={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Zn=[qn.Name,qn.Domain,qn.Plan,qn.Final],Jn=(0,g.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),Yn=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Qn=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},Xn=function(e){return{type:"SET_STEP",step:e}},er=function(e){return{type:"SET_SITE_TITLE",title:e}},tr=function(e){return{type:"SET_DOMAIN",domain:e}},nr=function(){return{type:"UNSET_DOMAIN"}},rr=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},ir=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},or=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},sr=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function ar(e){return or(e)}var ur=function(){return{type:"OPEN_SIDEBAR"}},cr=function(){return{type:"CLOSE_SIDEBAR"}},lr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},pr=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},fr=function(){return{type:"ENABLE_EXPERIMENTAL"}},dr=function(){return{type:"SHOW_SITE_TITLE_STEP"}},gr=function(){return{type:"SET_MODAL_DISMISSIBLE"}},mr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},hr=function(){return{type:"SHOW_MODAL_TITLE"}},yr=function(){return{type:"HIDE_MODAL_TITLE"}},vr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},br=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Sr=function(){return Zn},Er=function(){return qn},_r=function(e){return e},wr=function(e){return!!e.domain&&!e.domain.is_free},Cr=function(e){return e.domain},Or=function(e){return e.planProductId},Pr=function(e){return(0,g.select)(zn).getPlanByProductId(e.planProductId)},Ir=function(e){var t=e.planProductId,n=(0,g.select)(zn).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},Tr=function(e){return!!Cr(e)||e.confirmedDomainSelection},Rr=function(e,t){if(t===qn.Plan)return!!Or(e);if(t===qn.Name){var n=(0,g.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===qn.Domain&&(0,g.select)(Kn).hasSelectedDomain()},xr=function(e){return Zn.slice(0,Zn.length-1).every((function(t){return Rr(e,t)}))},Ar=function(e){return Zn.some((function(t){return Rr(e,t)}))},Fr=function(e){return Zn.find((function(t){return!Rr(e,t)}))},Dr=function(e){return null==e?void 0:e.siteTitle},Lr=function(e){return e.step};var Nr,jr,Mr,kr,Ur,Vr,Br=(jr=Nr="WP_LAUNCH",Mr=Nr+"_TS",kr={},Ur={getItem:function(e){return kr.hasOwnProperty(e)?kr[e]:null},setItem:function(e,t){kr[e]=String(t)},removeItem:function(e){delete kr[e]}},Vr=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:Ur,{storageKey:jr,storage:{getItem:function(e){var t=Vr.getItem(Mr);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?Vr.getItem(e):(Vr.removeItem(jr),Vr.removeItem(Mr),null)},setItem:function(e,t){Vr.setItem(Mr,JSON.stringify(Date.now())),Vr.setItem(e,t)}}});(0,g.use)(g.plugins.persistence,Br);var Hr=!1;Hr||(Hr=!0,(0,g.registerStore)(Kn,{actions:l,controls:Wn.controls,reducer:Jn,selectors:p,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]}));var $r="automattic/wpcom-features",Gr={domain:{id:"domain",minSupportedPlan:Ct},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:Pt},plugins:{id:"plugins",minSupportedPlan:Pt},"ad-free":{id:"ad-free",minSupportedPlan:Ct},"image-storage":{id:"image-storage",minSupportedPlan:Ot},"video-storage":{id:"video-storage",minSupportedPlan:Ot},support:{id:"support",minSupportedPlan:Pt}},Wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr;return e},Kr=function(e){return e},zr=function(e,t){var n=Kr(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return At.indexOf(r)>At.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},qr=!1;qr||(qr=!0,(0,g.registerStore)($r,{controls:Wn.controls,reducer:Wr,selectors:f}))},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var s=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),s({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();s((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)s(e,t);else{t.status_code&&s(e,t.status_code),t.error&&(e.name=u(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&a(e)}}function s(e,t){e.name=u(i[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function u(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1467)}());
11
  * @license See CREDITS.md
12
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
13
  */
14
+ function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(u[1]||"").length<o&&(u[1]=u[1]||"",u[1]+=new Array(o-u[1].length+1).join("0")),u.join(a)}var Y=M()("i18n-calypso"),Q="number_format_decimals",X="number_format_thousands_sep",ee="messages",te=[function(e){return e}],ne={};function re(){ue.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function ie(e){return Array.prototype.slice.call(e)}function oe(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&re("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",ie(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&re("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",ie(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function se(e,t){return e.dcnpgettext(ee,t.context,t.original,t.plural,t.count)}function ae(e,t){for(var n=te.length-1;n>=0;n--){var r=te[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return se(e.state.tannin,r)}return null}function ue(){if(!(this instanceof ue))return new ue;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:G()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new z.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ue.throwErrors=!1,ue.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ue.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ue.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ue.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return J(e,n,r,i)},ue.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ue.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==ne[n+e])return ne[n+e];var r=K()().update(e).digest("hex");return ne[n+e]=t?r.substr(0,t):r},s=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)te.push(s(!1));else{var a=i.substr(5).indexOf("-");if(a<0){var u=Number(i.substr(5));te.push(s(u))}else for(var c=Number(i.substr(5,a)),l=Number(i.substr(6+a)),p=c;p<=l;p++)te.push(s(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new H(E()({},ee,this.state.locale)),this.state.numberFormatSettings.decimal_point=se(this.state.tannin,oe([Q])),this.state.numberFormatSettings.thousands_sep=se(this.state.tannin,oe([X])),this.state.numberFormatSettings.decimal_point===Q&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===X&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ue.prototype.getLocale=function(){return this.state.locale},ue.prototype.getLocaleSlug=function(){return this.state.localeSlug},ue.prototype.getLocaleVariant=function(){return this.state.localeVariant},ue.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ue.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ue.prototype.hasTranslation=function(){return!!ae(this,oe(arguments))},ue.prototype.translate=function(){var e=oe(arguments),t=ae(this,e);if(t||(t=se(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=Z.apply(void 0,N()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,k.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},ue.prototype.reRenderTranslations=function(){Y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ue.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ue.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ce=ue,le=n(85),pe=n.n(le),fe=n(5198),de=n.n(fe),ge=n(8111),me=n.n(ge),he=n(270),ye=n.n(he),ve=n(4564),be=n.n(ve),Se=window.wp.element,Ee=n(3804),_e=n.n(Ee);var we=n(1068),Ce=n.n(we);var Oe=n(8527),Pe=n.n(Oe),Ie=n(6718),Te=window.wp.compose;var Re=new ce,xe=Re.numberFormat.bind(Re),Ae=Re.translate.bind(Re),Fe=(Re.configure.bind(Re),Re.setLocale.bind(Re),Re.getLocale.bind(Re),Re.getLocaleSlug.bind(Re),Re.getLocaleVariant.bind(Re),Re.isRtl.bind(Re),Re.addTranslations.bind(Re),Re.reRenderTranslations.bind(Re),Re.registerComponentUpdateHook.bind(Re),Re.registerTranslateHook.bind(Re),Re.state,Re.stateObserver,Re.on.bind(Re),Re.off.bind(Re),Re.emit.bind(Re),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(Re),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Re),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Ie.useSubscription)(t)}var r=(0,Te.createHigherOrderComponent)((function(e){return(0,Ee.forwardRef)((function(t,r){var i=n();return(0,Se.createElement)(e,Pe()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Re)),De=(Fe.useRtl,Fe.withRtl,n(2954)),Le=n.n(De),Ne="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),je=new Uint8Array(16);function Me(){if(!Ne)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ne(je)}for(var ke=[],Ue=0;Ue<256;++Ue)ke[Ue]=(Ue+256).toString(16).substr(1);var Ve=function(e,t){var n=t||0,r=ke;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var Be,He=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||Me)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||Ve(i)},$e=n(2884),Ge=n.n($e),We=n(8650),Ke=n.n(We),ze=M()("wpcom-proxy-request"),qe="https://public-api.wordpress.com",Ze=window.location.protocol+"//"+window.location.host,Je=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),Ye=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Qe=null,Xe=!1,et={},tt=!!window.ProgressEvent&&!!window.FormData;ze('using "origin": %o',Ze);var nt=function(e,t){var n=Object.assign({},e);ze("request(%o)",n),Qe||at();var r=He();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=tt,n.method=String(n.method||"GET").toUpperCase(),ze("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,et[r]=i,"function"==typeof t){var o=!1,s=function(e){if(!o){o=!0;var n=e.error||e.err||e;ze("error: ",n),ze("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;ze("body: ",n),ze("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",s),i.addEventListener("error",s)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,Xe?it(n):(ze("buffering API request since proxying <iframe> is not yet loaded"),Be.push(n)),i},rt=function(e,t){return"function"==typeof t?nt(e,t):new Promise((function(t,n){nt(e,(function(e,r){e?n(e):t(r)}))}))};function it(e){ze("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!Ye)return;for(var t=0;t<e.length;t++){var n=st(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Qe.contentWindow.postMessage(Je?JSON.stringify(e):e,qe)}function ot(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function st(e){return ot(e)?e:"object"==typeof e&&ot(e.fileContents)?e.fileContents:null}function at(){ze("install()"),Qe&&(ze("uninstall()"),window.removeEventListener("message",ut),document.body.removeChild(Qe),Xe=!1,Qe=null),Be=[],window.addEventListener("message",ut),(Qe=document.createElement("iframe")).src=qe+"/wp-admin/rest-proxy/?v=2.0#"+Ze,Qe.style.display="none",document.body.appendChild(Qe)}function ut(e){if(ze("onmessage"),e.origin===qe)if(e.source===Qe.contentWindow){var t=e.data;if(!t)return ze("no `data`, bailing");if("ready"!==t){if(Je&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){ze('got "progress" event: %o',e);var t=et[e.callbackId];if(t){var n=new(Ke())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return ze("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in et))return ze("bailing, no matching request with callback: %o",n);var r,i=et[n],o=i.params,s=t[0],a=t[1],u=t[2];if(207===a||delete et[n],o.metaAPI?a="metaAPIupdated"===s?200:500:ze("got %o status code for URL: %o",a,o.path),"object"==typeof u)if(u.status=a,r=u["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void ct(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),u);if(a&&2===Math.floor(a/100))!function(e,t,n){var r=new(Ke())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,s,u);else ct(i,Ge()(o,a,s),u)}else!function(){if(ze('proxy <iframe> "load" event'),Xe=!0,Be){for(var e=0;e<Be.length;e++)it(Be[e]);Be=null}}()}else ze("ignoring message... iframe elements do not match");else ze("ignoring message... %o !== %o",e.origin,qe)}function ct(e,t,n){var r=new(Ke())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var lt,pt=rt,ft=function(e){return{type:"WPCOM_REQUEST",request:e}},dt=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},gt={WPCOM_REQUEST:function(e){var t=e.request;return pt(t)},FETCH_AND_PARSE:(lt=Le()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return lt.apply(this,arguments)}),RELOAD_PROXY:function(){at()},REQUEST_ALL_BLOGS_ACCESS:function(){return rt({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}},mt=regeneratorRuntime.mark(vt),ht=regeneratorRuntime.mark(bt),yt=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,dt(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",x(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",x(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function vt(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,dt("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",T(e.body));case 4:case"end":return t.stop()}}),mt)}function bt(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",F("Empty query"));case 2:return n.next=4,R();case 4:return n.prev=4,n.next=7,ft({apiVersion:"1.1",path:"/domains/suggestions",query:(0,D.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",F(n.t0.message||Ae("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",F(Ae("Invalid response from the server")));case 15:return n.abrupt("return",A(e,t));case 16:case"end":return n.stop()}}),ht,null,[[4,10]])}var St,Et=function(e){function t(t,n){return w()(w()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(N()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),N()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)(m).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,g.select)("core/data").isResolving(m,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[O(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},_t=!1;St={vendor:"variation2_front"}.vendor,_t||(_t=!0,(0,g.registerStore)(m,{actions:r,controls:gt,reducer:I,resolvers:i,selectors:Et(St)}));var wt="Free",Ct="Personal",Ot="Premium",Pt="Business",It="Ecommerce",Tt="automattic/onboard/plans",Rt=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],xt=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],At=[wt,Ct,Ot,Pt,It],Ft=["free_plan"].concat(Rt,xt),Dt=(0,g.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),Lt=function(e){return{type:"SET_FEATURES",features:e}},Nt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},jt=function(e){return{type:"SET_PLANS",plans:e}},Mt=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},kt=function(){return{type:"RESET_PLAN"}},Ut=window.wp.deprecated,Vt=n.n(Ut),Bt=function(e){return e.features},Ht=function(e){return e.featuresByType},$t=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Gt=function(e,t){if(t)return(0,g.select)(Tt).getPlansProducts().find((function(e){return e.productId===t}))},Wt=function(e,t){if(t)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Kt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},zt=function(e,t){return(0,g.select)(Tt).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===wt}))},qt=function(e,t){return e.plans},Zt=function(e,t){return e.planProducts},Jt=function(e,t){return Vt()("getPrices",{alternative:"getPlanProduct().price"}),(0,g.select)(Tt).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},Yt=function(e,t){if(t){var n=(0,g.select)(Tt).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,g.select)(Tt).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Qt=function(e,t,n){if(t&&n){var r=(0,g.select)(Tt).getPlansProducts();return t===wt?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Xt=function(e,t){return t===It},en=function(e,t){return t===wt},tn=function(e,t){return 1===t},nn={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function rn(e){return nn[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function on(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=rn(t);if(!r||isNaN(e))return null;var i=w()(w()({},r),n),o=i.decimal,s=i.grouping,a=i.precision,u=i.symbol,c=e<0?"-":"",l=xe(Math.abs(e),{decimals:a,thousandsSep:s,decPoint:o});return n.stripZeros&&(l=sn(l,o)),"".concat(c).concat(u).concat(l)}function sn(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}var an=regeneratorRuntime.mark(fn);function un(e){return on(12*e.raw_price,e.currency_code,{stripZeros:!0})}function cn(e){return on(e.raw_price,e.currency_code,{stripZeros:!0})}function ln(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function pn(e,t){var n=Ft.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,s=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:s.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?cn(i):(o=i,on(o.raw_price/12,o.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?un(i):cn(i)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===Rt[t]})),r=e.find((function(e){return e.storeSlug===xt[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,s=Math.round(100*(1-o/i));n.annualDiscount=s,r.annualDiscount=s}},n=0;n<Rt.length;n++)t(n)}(n),n}function fn(){var e,t,n,r,i,o,s,a=arguments;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:"en",u.next=3,ft({path:"/plans",query:(0,D.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=u.sent,u.next=6,dt("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=u.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===wt,isPopular:e.nonlocalized_short_name===Ot,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=pn(t,i),s=ln(r.features),u.next=13,jt(i);case 13:return u.next=15,Mt(o);case 15:return u.next=17,Lt(s);case 17:return u.next=19,Nt(r.features_by_type);case 19:case"end":return u.stop()}}),an)}var dn=!1;dn||(dn=!0,(0,g.registerStore)(Tt,{resolvers:a,actions:o,controls:gt,reducer:Dt,selectors:s}));var gn,mn,hn,yn="automattic/site",vn=n(2220),bn=n.n(vn),Sn=n(4582),En=n.n(Sn);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(gn||(gn={})),function(e){e.INTERNAL="internal"}(mn||(mn={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(hn||(hn={}));var wn=(0,g.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),Cn=(0,g.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:wn,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return w()(w()({},e),{},E()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],bn()(e,[n].map(En())));return w()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?w()(w()({},e),{},E()({},t.siteId,w()(w()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?w()(w()({},e),{},E()({},t.siteId,{status:hn.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?w()(w()({},e),{},E()({},t.siteId,t.domains)):e}});function On(e){var t=regeneratorRuntime.mark(c),n=regeneratorRuntime.mark(g),r=regeneratorRuntime.mark(m),i=regeneratorRuntime.mark(h),o=regeneratorRuntime.mark(y),s=function(){return{type:"FETCH_NEW_SITE"}},a=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},u=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function c(n){var r,i,o,s,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=bn()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},s=w()(w()(w()({},o),i),{},{validate:!1}),t.next=8,ft({path:"/sites/new",apiVersion:"1.1",method:"post",body:s,token:r});case 8:return c=t.sent,t.next=11,a(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,u(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var l=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},p=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},f=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},d=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function g(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(e);case 2:return t.prev=2,t.next=5,ft({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,f(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,d(e,mn.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function m(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function h(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ft({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function y(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,l(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:y,receiveSiteTitle:l,fetchNewSite:s,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:a,receiveNewSiteFailed:u,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:c,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:g,launchSiteStart:p,launchSiteSuccess:f,launchSiteFailure:d,getCart:m,setCart:h}}var Pn=regeneratorRuntime.mark(Tn),In=regeneratorRuntime.mark(Rn);function Tn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,g.dispatch)(yn).fetchSite();case 2:return n.prev=2,n.next=5,ft({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,g.dispatch)(yn).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,g.dispatch)(yn).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),Pn,null,[[2,10]])}function Rn(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,ft({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,g.dispatch)(yn).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),In,null,[[0,8]])}var xn,An=function(e){return e},Fn=function(e){return e.newSite.data},Dn=function(e){return e.newSite.error},Ln=function(e){return e.newSite.isFetching},Nn=function(e){return e.isFetchingSiteDetails},jn=function(e){return!!e.newSite.data},Mn=function(e,t){return e.sites[t]},kn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSite(t))||void 0===n?void 0:n.name},Un=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.SUCCESS},Vn=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===hn.IN_PROGRESS},Bn=function(e,t){return e.sitesDomains[t]},Hn=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},$n=function(e,t){var n;return null===(n=(0,g.select)(yn).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},Gn=!1;xn={client_id:"",client_secret:""},Gn||(Gn=!0,(0,g.registerStore)(yn,{actions:On(xn),controls:gt,reducer:Cn,resolvers:u,selectors:c}));var Wn=window.wp.dataControls,Kn="automattic/launch",zn="automattic/onboard/plans",qn={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Zn=[qn.Name,qn.Domain,qn.Plan,qn.Final],Jn=(0,g.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),Yn=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Qn=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},Xn=function(e){return{type:"SET_STEP",step:e}},er=function(e){return{type:"SET_SITE_TITLE",title:e}},tr=function(e){return{type:"SET_DOMAIN",domain:e}},nr=function(){return{type:"UNSET_DOMAIN"}},rr=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},ir=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},or=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},sr=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function ar(e){return or(e)}var ur=function(){return{type:"OPEN_SIDEBAR"}},cr=function(){return{type:"CLOSE_SIDEBAR"}},lr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},pr=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},fr=function(){return{type:"ENABLE_EXPERIMENTAL"}},dr=function(){return{type:"SHOW_SITE_TITLE_STEP"}},gr=function(){return{type:"SET_MODAL_DISMISSIBLE"}},mr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},hr=function(){return{type:"SHOW_MODAL_TITLE"}},yr=function(){return{type:"HIDE_MODAL_TITLE"}},vr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},br=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Sr=function(){return Zn},Er=function(){return qn},_r=function(e){return e},wr=function(e){return!!e.domain&&!e.domain.is_free},Cr=function(e){return e.domain},Or=function(e){return e.planProductId},Pr=function(e){return(0,g.select)(zn).getPlanByProductId(e.planProductId)},Ir=function(e){var t=e.planProductId,n=(0,g.select)(zn).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},Tr=function(e){return!!Cr(e)||e.confirmedDomainSelection},Rr=function(e,t){if(t===qn.Plan)return!!Or(e);if(t===qn.Name){var n=(0,g.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===qn.Domain&&(0,g.select)(Kn).hasSelectedDomain()},xr=function(e){return Zn.slice(0,Zn.length-1).every((function(t){return Rr(e,t)}))},Ar=function(e){return Zn.some((function(t){return Rr(e,t)}))},Fr=function(e){return Zn.find((function(t){return!Rr(e,t)}))},Dr=function(e){return null==e?void 0:e.siteTitle},Lr=function(e){return e.step};var Nr,jr,Mr,kr,Ur,Vr,Br=(jr=Nr="WP_LAUNCH",Mr=Nr+"_TS",kr={},Ur={getItem:function(e){return kr.hasOwnProperty(e)?kr[e]:null},setItem:function(e,t){kr[e]=String(t)},removeItem:function(e){delete kr[e]}},Vr=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:Ur,{storageKey:jr,storage:{getItem:function(e){var t=Vr.getItem(Mr);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?Vr.getItem(e):(Vr.removeItem(jr),Vr.removeItem(Mr),null)},setItem:function(e,t){Vr.setItem(Mr,JSON.stringify(Date.now())),Vr.setItem(e,t)}}});(0,g.use)(g.plugins.persistence,Br);var Hr=!1;Hr||(Hr=!0,(0,g.registerStore)(Kn,{actions:l,controls:Wn.controls,reducer:Jn,selectors:p,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]}));var $r="automattic/wpcom-features",Gr={domain:{id:"domain",minSupportedPlan:Ct},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:Pt},plugins:{id:"plugins",minSupportedPlan:Pt},"ad-free":{id:"ad-free",minSupportedPlan:Ct},"image-storage":{id:"image-storage",minSupportedPlan:Ot},"video-storage":{id:"video-storage",minSupportedPlan:Ot},support:{id:"support",minSupportedPlan:Pt}},Wr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr;return e},Kr=function(e){return e},zr=function(e,t){var n=Kr(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return At.indexOf(r)>At.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},qr=!1;qr||(qr=!0,(0,g.registerStore)($r,{controls:Wn.controls,reducer:Wr,selectors:f}))},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=t.formatters[n];if("function"==typeof r){var o=i[c];e=r.call(s,o),i.splice(c,1),c--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var s=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),s({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();s((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)s(e,t);else{t.status_code&&s(e,t.status_code),t.error&&(e.name=u(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&a(e)}}function s(e,t){e.name=u(i[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function u(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1467)}());
common/dist/hide-plugin-buttons-mobile.asset.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php return array('dependencies' => array('wp-polyfill'), 'version' => '771e2df257f56646945907801c4b6142');
common/dist/hide-plugin-buttons-mobile.css ADDED
@@ -0,0 +1 @@
 
1
+ @media (max-width:782px){.interface-pinned-items>button:not(:first-child){display:none}}
common/dist/hide-plugin-buttons-mobile.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,r){for(var t in r)e[t]=r[t];r.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,function(){"use strict";var e={2345:function(e,r,t){t.r(r)}},r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{}};return e[o](n,n.exports,t),n.exports}return t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t(2345)}());
common/dist/hide-plugin-buttons-mobile.rtl.css ADDED
@@ -0,0 +1 @@
 
1
+ @media (max-width:782px){.interface-pinned-items>button:not(:first-child){display:none}}
common/hide-plugin-buttons-mobile.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /**
2
+ * Internal dependencies
3
+ */
4
+
5
+ import './hide-plugin-buttons-mobile.scss';
common/hide-plugin-buttons-mobile.scss ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ @import '~@wordpress/base-styles/mixins';
2
+ @import '~@wordpress/base-styles/variables';
3
+ @import '~@wordpress/base-styles/breakpoints';
4
+
5
+ .interface-pinned-items > button:not( :first-child ) {
6
+ @media ( max-width: $break-medium ) {
7
+ display: none;
8
+ }
9
+ }
common/index.php CHANGED
@@ -177,3 +177,24 @@ function get_iso_639_locale( $language ) {
177
 
178
  return $language;
179
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
177
 
178
  return $language;
179
  }
180
+
181
+ /**
182
+ * Hides plugin buttons that appear in the header on mobile devices
183
+ * (because there's not enough room).
184
+ *
185
+ * Can be disabled with the `a8c_fse_enqueue_hide_plugin_buttons_mobile_style` filter.
186
+ */
187
+ function enqueue_hide_plugin_buttons_mobile_style() {
188
+ if ( apply_filters( 'a8c_fse_enqueue_hide_plugin_buttons_mobile_style', true ) ) {
189
+ $style_file = is_rtl()
190
+ ? 'hide-plugin-buttons-mobile.rtl.css'
191
+ : 'hide-plugin-buttons-mobile.css';
192
+ wp_enqueue_style(
193
+ 'a8c-fse-hide-plugin-buttons-mobile',
194
+ plugins_url( 'dist/' . $style_file, __FILE__ ),
195
+ array(),
196
+ filemtime( plugin_dir_path( __FILE__ ) . 'dist/' . $style_file )
197
+ );
198
+ }
199
+ }
200
+ add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\enqueue_hide_plugin_buttons_mobile_style' );
editor-site-launch/dist/editor-site-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '91830dd5e094d5593ffd0b00649c02c8');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '7bb234881ffca062eb7e95d63577519f');
editor-site-launch/dist/editor-site-launch.js CHANGED
@@ -16,7 +16,7 @@ object-assign
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
- */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case c:case a:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case h:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},1164:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,{getSite:function(){return He},getSiteDomains:function(){return Ge}});var i={};n.r(i),n.d(i,{getNewSite:function(){return qe},getNewSiteError:function(){return Ye},getPrimarySiteDomain:function(){return rt},getSite:function(){return Je},getSiteDomains:function(){return nt},getSiteSubdomain:function(){return it},getSiteTitle:function(){return Qe},getState:function(){return We},isFetchingSite:function(){return Ke},isFetchingSiteDetails:function(){return Xe},isNewSite:function(){return Ze},isSiteLaunched:function(){return et},isSiteLaunching:function(){return tt}});var o={};n.r(o),n.d(o,{resetPlan:function(){return Ot},setFeatures:function(){return kt},setFeaturesByType:function(){return Pt},setPlanProducts:function(){return At},setPlans:function(){return Nt}});var a={};n.r(a),n.d(a,{getDefaultFreePlan:function(){return Bt},getDefaultPaidPlan:function(){return Mt},getFeatures:function(){return Dt},getFeaturesByType:function(){return Lt},getPlanByPath:function(){return $t},getPlanByPeriodAgnosticSlug:function(){return jt},getPlanByProductId:function(){return Rt},getPlanProduct:function(){return Ht},getPlanProductById:function(){return Ft},getPlansProducts:function(){return Vt},getPrices:function(){return zt},getSupportedPlans:function(){return Ut},isPlanEcommerce:function(){return Gt},isPlanFree:function(){return Wt},isPlanProductFree:function(){return qt}});var c={};n.r(c),n.d(c,{getSupportedPlans:function(){return Kn}});var s={};n.r(s),n.d(s,{fetchDomainSuggestions:function(){return or},receiveCategories:function(){return ir},receiveDomainAvailability:function(){return ar},receiveDomainSuggestionsError:function(){return sr},receiveDomainSuggestionsSuccess:function(){return cr}});var l={};n.r(l),n.d(l,{__internalGetDomainSuggestions:function(){return mr},getCategories:function(){return pr},isAvailable:function(){return dr}});var u={};n.r(u),n.d(u,{closeFocusedLaunch:function(){return jr},closeSidebar:function(){return Rr},confirmDomainSelection:function(){return Ar},disablePersistentSuccessView:function(){return Gr},enableExperimental:function(){return Mr},enablePersistentSuccessView:function(){return Hr},hideModalTitle:function(){return $r},openFocusedLaunch:function(){return Fr},openSidebar:function(){return Lr},setDomain:function(){return Pr},setDomainSearch:function(){return Or},setModalDismissible:function(){return Ur},setPlanProductId:function(){return Tr},setSidebarFullscreen:function(){return wr},setSiteTitle:function(){return kr},setStep:function(){return xr},showModalTitle:function(){return zr},showSiteTitleStep:function(){return Br},unsetDomain:function(){return Nr},unsetModalDismissible:function(){return Vr},unsetPlanProductId:function(){return Ir},unsetSidebarFullscreen:function(){return Cr},updatePlan:function(){return Dr}});var d={};n.r(d),n.d(d,{getCurrentStep:function(){return ai},getFirstIncompleteStep:function(){return ii},getLaunchSequence:function(){return Wr},getLaunchStep:function(){return qr},getPaidPlanProductId:function(){return Qr},getSelectedDomain:function(){return Xr},getSelectedPlan:function(){return Jr},getSelectedPlanProductId:function(){return Zr},getSiteTitle:function(){return oi},getState:function(){return Yr},hasPaidDomain:function(){return Kr},hasSelectedDomain:function(){return ei},isFlowCompleted:function(){return ni},isFlowStarted:function(){return ri},isStepCompleted:function(){return ti}});var p={};n.r(p),n.d(p,{getAllFeatures:function(){return ua},getRecommendedPlanSlug:function(){return da}});window["a8c-fse-common-data-stores"];var m="automattic/site",f="automattic/launch",h=window.wp.element,g=n(3804),v=n.n(g),y=window.wp.data,b=window.wp.plugins,_=window.wp.hooks,E=n(417),S=n.n(E),w=window.wp.url,C=function(e){window.location.href=e},x=g.createContext({siteId:0,redirectTo:C,getCurrentLaunchFlowUrl:function(){try{return window.location.href}catch(e){return}},openCheckout:function(e,t){C((0,w.addQueryArgs)("/checkout/".concat(e),S()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch"}),k=n(8527),P=n.n(k),N=window.wp.compose,A=(0,g.createContext)("en"),O=function(e){var t=e.children,n=e.localeSlug;return(0,h.createElement)(A.Provider,{value:n},t)};function T(){return(0,g.useContext)(A)}(0,N.createHigherOrderComponent)((function(e){return function(t){var n=T();return(0,h.createElement)(e,P()({locale:n},t))}}),"withLocale");var I=n(1068),D=n.n(I),L=n(2779),R=n.n(L),F=window.wp.i18n,j=window.wp.components;function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function U(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}var V,z,$,H=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=function(e,t){if(null==e)return{};var n,r,i=B(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","size"]);return(0,h.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},G=window.wp.primitives,W=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,h.createElement)(G.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),q=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Y="automattic/site",K=n(2220),X=n.n(K),Z=n(4582),J=n.n(Z),Q=n(1260),ee=n.n(Q);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(V||(V={})),function(e){e.INTERNAL="internal"}(z||(z={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}($||($={}));var te=(0,y.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),ne=(0,y.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:te,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return S()(S()({},e),{},ee()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],X()(e,[n].map(J())));return S()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?S()(S()({},e),{},ee()({},t.siteId,S()(S()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?S()(S()({},e),{},ee()({},t.siteId,t.domains)):e}}),re=n(2954),ie=n.n(re),oe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ae=new Uint8Array(16);function ce(){if(!oe)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oe(ae)}for(var se=[],le=0;le<256;++le)se[le]=(le+256).toString(16).substr(1);var ue=function(e,t){var n=t||0,r=se;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var de,pe=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||ce)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||ue(i)},me=n(2884),fe=n.n(me),he=n(8650),ge=n.n(he),ve=n(8049),ye=n.n(ve),be=ye()("wpcom-proxy-request"),_e="https://public-api.wordpress.com",Ee=window.location.protocol+"//"+window.location.host,Se=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),we=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Ce=null,xe=!1,ke={},Pe=!!window.ProgressEvent&&!!window.FormData;be('using "origin": %o',Ee);var Ne=function(e,t){var n=Object.assign({},e);be("request(%o)",n),Ce||De();var r=pe();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=Pe,n.method=String(n.method||"GET").toUpperCase(),be("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,ke[r]=i,"function"==typeof t){var o=!1,a=function(e){if(!o){o=!0;var n=e.error||e.err||e;be("error: ",n),be("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;be("body: ",n),be("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",a),i.addEventListener("error",a)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,xe?Oe(n):(be("buffering API request since proxying <iframe> is not yet loaded"),de.push(n)),i},Ae=function(e,t){return"function"==typeof t?Ne(e,t):new Promise((function(t,n){Ne(e,(function(e,r){e?n(e):t(r)}))}))};function Oe(e){be("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!we)return;for(var t=0;t<e.length;t++){var n=Ie(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Ce.contentWindow.postMessage(Se?JSON.stringify(e):e,_e)}function Te(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function Ie(e){return Te(e)?e:"object"==typeof e&&Te(e.fileContents)?e.fileContents:null}function De(){be("install()"),Ce&&(be("uninstall()"),window.removeEventListener("message",Le),document.body.removeChild(Ce),xe=!1,Ce=null),de=[],window.addEventListener("message",Le),(Ce=document.createElement("iframe")).src=_e+"/wp-admin/rest-proxy/?v=2.0#"+Ee,Ce.style.display="none",document.body.appendChild(Ce)}function Le(e){if(be("onmessage"),e.origin===_e)if(e.source===Ce.contentWindow){var t=e.data;if(!t)return be("no `data`, bailing");if("ready"!==t){if(Se&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){be('got "progress" event: %o',e);var t=ke[e.callbackId];if(t){var n=new(ge())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return be("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in ke))return be("bailing, no matching request with callback: %o",n);var r,i=ke[n],o=i.params,a=t[0],c=t[1],s=t[2];if(207===c||delete ke[n],o.metaAPI?c="metaAPIupdated"===a?200:500:be("got %o status code for URL: %o",c,o.path),"object"==typeof s)if(s.status=c,r=s["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void Re(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),s);if(c&&2===Math.floor(c/100))!function(e,t,n){var r=new(ge())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,a,s);else Re(i,fe()(o,c,a),s)}else!function(){if(be('proxy <iframe> "load" event'),xe=!0,de){for(var e=0;e<de.length;e++)Oe(de[e]);de=null}}()}else be("ignoring message... iframe elements do not match");else be("ignoring message... %o !== %o",e.origin,_e)}function Re(e,t,n){var r=new(ge())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var Fe,je=Ae,Me=function(e){return{type:"WPCOM_REQUEST",request:e}},Be=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},Ue={WPCOM_REQUEST:function(e){var t=e.request;return je(t)},FETCH_AND_PARSE:(Fe=ie()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return Fe.apply(this,arguments)}),RELOAD_PROXY:function(){De()},REQUEST_ALL_BLOGS_ACCESS:function(){return Ae({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}};function Ve(e){var t=regeneratorRuntime.mark(l),n=regeneratorRuntime.mark(f),r=regeneratorRuntime.mark(h),i=regeneratorRuntime.mark(g),o=regeneratorRuntime.mark(v),a=function(){return{type:"FETCH_NEW_SITE"}},c=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},s=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function l(n){var r,i,o,a,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=X()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},a=S()(S()(S()({},o),i),{},{validate:!1}),t.next=8,Me({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:r});case 8:return l=t.sent,t.next=11,c(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,s(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var u=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},d=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},p=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},m=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function f(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:return t.prev=2,t.next=5,Me({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,p(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,m(e,z.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function h(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Me({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function g(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Me({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function v(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Me({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,u(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:v,receiveSiteTitle:u,fetchNewSite:a,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:c,receiveNewSiteFailed:s,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:l,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:f,launchSiteStart:d,launchSiteSuccess:p,launchSiteFailure:m,getCart:h,setCart:g}}var ze=regeneratorRuntime.mark(He),$e=regeneratorRuntime.mark(Ge);function He(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,y.dispatch)(Y).fetchSite();case 2:return n.prev=2,n.next=5,Me({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,y.dispatch)(Y).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,y.dispatch)(Y).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),ze,null,[[2,10]])}function Ge(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Me({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,y.dispatch)(Y).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),$e,null,[[0,8]])}var We=function(e){return e},qe=function(e){return e.newSite.data},Ye=function(e){return e.newSite.error},Ke=function(e){return e.newSite.isFetching},Xe=function(e){return e.isFetchingSiteDetails},Ze=function(e){return!!e.newSite.data},Je=function(e,t){return e.sites[t]},Qe=function(e,t){var n;return null===(n=(0,y.select)(Y).getSite(t))||void 0===n?void 0:n.name},et=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===$.SUCCESS},tt=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===$.IN_PROGRESS},nt=function(e,t){return e.sitesDomains[t]},rt=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},it=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},ot=!1;var at,ct,st,lt,ut="free_plan",dt="personal-bundle",pt="value_bundle",mt="business-bundle",ft="ecommerce-bundle",ht="Free",gt="Personal",vt="Premium",yt="Business",bt="Ecommerce",_t="automattic/onboard/plans",Et=[dt,pt,mt,ft],St=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],wt=[ht,gt,vt,yt,bt],Ct=[ut].concat(Et,St),xt=(0,y.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),kt=function(e){return{type:"SET_FEATURES",features:e}},Pt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},Nt=function(e){return{type:"SET_PLANS",plans:e}},At=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},Ot=function(){return{type:"RESET_PLAN"}},Tt=window.wp.deprecated,It=n.n(Tt),Dt=function(e){return e.features},Lt=function(e){return e.featuresByType},Rt=function(e,t){if(t)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Ft=function(e,t){if(t)return(0,y.select)(_t).getPlansProducts().find((function(e){return e.productId===t}))},jt=function(e,t){if(t)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Mt=function(e,t){return(0,y.select)(_t).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},Bt=function(e,t){return(0,y.select)(_t).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===ht}))},Ut=function(e,t){return e.plans},Vt=function(e,t){return e.planProducts},zt=function(e,t){return It()("getPrices",{alternative:"getPlanProduct().price"}),(0,y.select)(_t).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},$t=function(e,t){if(t){var n=(0,y.select)(_t).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Ht=function(e,t,n){if(t&&n){var r=(0,y.select)(_t).getPlansProducts();return t===ht?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Gt=function(e,t){return t===bt},Wt=function(e,t){return t===ht},qt=function(e,t){return 1===t},Yt=n(9126),Kt=n(5182),Xt=n.n(Kt),Zt=n(7010);at={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ct=["(","?"],st={")":["("],":":["?","?:"]},lt=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Jt={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Qt(e){var t=function(e){for(var t,n,r,i,o=[],a=[];t=e.match(lt);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=a.pop();){if(st[n]){if(st[n][0]===i){n=st[n][1]||n;break}}else if(ct.indexOf(i)>=0||at[i]<at[n]){a.push(i);break}o.push(i)}st[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&o.push(e),o.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,a,c,s=[];for(n=0;n<e.length;n++){if(a=e[n],o=Jt[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{c=o.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;s.push(c)}return s[0]}(t,e)}}var en={contextDelimiter:"",onMissingKey:null};function tn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},en)this.options[n]=void 0!==t&&n in t?t[n]:en[n]}tn.prototype.getPluralForm=function(e,t){var n,r,i,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=Qt(e);return function(e){return+t({n:e})}}(r)),o=this.pluralForms[e]=i),o(t)},tn.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var nn=n(7839),rn=n.n(nn),on=n(5079),an=n.n(on),cn=n(2699),sn=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function ln(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(sn,(function(){var e,r,i,o,a;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===o?a=parseFloat(a)||0:"d"===o&&(a=parseInt(a)||0),void 0!==i&&("f"===o?a=a.toFixed(i):"s"===o&&(a=a.substr(0,i))),null!=a?a:"")}))}function un(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
@@ -24,4 +24,4 @@ object-assign
24
  * @license See CREDITS.md
25
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
26
  */
27
- function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}var dn=ye()("i18n-calypso"),pn="number_format_decimals",mn="number_format_thousands_sep",fn="messages",hn=[function(e){return e}],gn={};function vn(){wn.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function yn(e){return Array.prototype.slice.call(e)}function bn(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&vn("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",yn(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&vn("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",yn(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function En(e,t){return e.dcnpgettext(fn,t.context,t.original,t.plural,t.count)}function Sn(e,t){for(var n=hn.length-1;n>=0;n--){var r=hn[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return En(e.state.tannin,r)}return null}function wn(){if(!(this instanceof wn))return new wn;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:rn()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new cn.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}wn.throwErrors=!1,wn.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},wn.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},wn.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},wn.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return un(e,n,r,i)},wn.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},wn.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==gn[n+e])return gn[n+e];var r=an()().update(e).digest("hex");return gn[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)hn.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var s=Number(i.substr(5));hn.push(a(s))}else for(var l=Number(i.substr(5,c)),u=Number(i.substr(6+c)),d=l;d<=u;d++)hn.push(a(d))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new tn(ee()({},fn,this.state.locale)),this.state.numberFormatSettings.decimal_point=En(this.state.tannin,bn([pn])),this.state.numberFormatSettings.thousands_sep=En(this.state.tannin,bn([mn])),this.state.numberFormatSettings.decimal_point===pn&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===mn&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},wn.prototype.getLocale=function(){return this.state.locale},wn.prototype.getLocaleSlug=function(){return this.state.localeSlug},wn.prototype.getLocaleVariant=function(){return this.state.localeVariant},wn.prototype.isRtl=function(){return"rtl"===this.state.textDirection},wn.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},wn.prototype.hasTranslation=function(){return!!Sn(this,bn(arguments))},wn.prototype.translate=function(){var e=bn(arguments),t=Sn(this,e);if(t||(t=En(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=ln.apply(void 0,Xt()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,Zt.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},wn.prototype.reRenderTranslations=function(){dn("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},wn.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},wn.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var Cn=wn,xn=n(85),kn=n.n(xn),Pn=n(5198),Nn=n.n(Pn),An=n(8111),On=n.n(An),Tn=n(270),In=n.n(Tn),Dn=n(4564),Ln=n.n(Dn);var Rn=n(6718);var Fn=new Cn,jn=Fn.numberFormat.bind(Fn),Mn=Fn.translate.bind(Fn),Bn=(Fn.configure.bind(Fn),Fn.setLocale.bind(Fn),Fn.getLocale.bind(Fn),Fn.getLocaleSlug.bind(Fn),Fn.getLocaleVariant.bind(Fn),Fn.isRtl.bind(Fn),Fn.addTranslations.bind(Fn),Fn.reRenderTranslations.bind(Fn),Fn.registerComponentUpdateHook.bind(Fn),Fn.registerTranslateHook.bind(Fn),Fn.state,Fn.stateObserver,Fn.on.bind(Fn),Fn.off.bind(Fn),Fn.emit.bind(Fn),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(Fn),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Fn),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Rn.useSubscription)(t)}var r=(0,N.createHigherOrderComponent)((function(e){return(0,g.forwardRef)((function(t,r){var i=n();return(0,h.createElement)(e,P()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Fn)),Un=(Bn.useRtl,Bn.withRtl,{AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}});function Vn(e){return Un[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function zn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(!r||isNaN(e))return null;var i=S()(S()({},r),n),o=i.decimal,a=i.grouping,c=i.precision,s=i.symbol,l=e<0?"-":"",u=jn(Math.abs(e),{decimals:c,thousandsSep:a,decPoint:o});return n.stripZeros&&(u=$n(u,o)),"".concat(l).concat(s).concat(u)}function $n(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}var Hn=regeneratorRuntime.mark(Kn);function Gn(e){return zn(12*e.raw_price,e.currency_code)}function Wn(e){return zn(e.raw_price,e.currency_code)}function qn(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function Yn(e,t){var n=Ct.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,a=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?Wn(i):(o=i,zn(o.raw_price/12,o.currency_code)),annualPrice:31===(null==i?void 0:i.bill_period)?Gn(i):Wn(i)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===Et[t]})),r=e.find((function(e){return e.storeSlug===St[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<Et.length;n++)t(n)}(n),n}function Kn(){var e,t,n,r,i,o,a,c=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:"en",s.next=3,Me({path:"/plans",query:(0,Yt.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,Be("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===ht,isPopular:e.nonlocalized_short_name===vt,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=Yn(t,i),a=qn(r.features),s.next=13,Nt(i);case 13:return s.next=15,At(o);case 15:return s.next=17,kt(a);case 17:return s.next=19,Pt(r.features_by_type);case 19:case"end":return s.stop()}}),Hn)}var Xn=!1;function Zn(){return Xn||(Xn=!0,(0,y.registerStore)(_t,{resolvers:c,actions:o,controls:Ue,reducer:xt,selectors:a})),_t}var Jn,Qn="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(Jn||(Jn={}));var er=n(5695),tr=n.n(er)(),nr={state:Jn.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},rr=(0,y.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nr,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?S()(S()({},e),{},{state:Jn.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?S()(S()({},e),{},{state:Jn.Success,data:S()(S()({},e.data),{},ee()({},tr(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?S()(S()({},e),{},{state:Jn.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?S()(S()({},e),{},ee()({},t.domainName,t.availability)):e}}),ir=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},or=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},ar=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},cr=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},sr=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},lr=regeneratorRuntime.mark(pr),ur=regeneratorRuntime.mark(mr),dr=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,Be(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",ar(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",ar(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function pr(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Be("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",ir(e.body));case 4:case"end":return t.stop()}}),lr)}function mr(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",sr("Empty query"));case 2:return n.next=4,or();case 4:return n.prev=4,n.next=7,Me({apiVersion:"1.1",path:"/domains/suggestions",query:(0,Yt.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",sr(n.t0.message||Mn("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",sr(Mn("Invalid response from the server")));case 15:return n.abrupt("return",cr(e,t));case 16:case"end":return n.stop()}}),ur,null,[[4,10]])}var fr=function(e){function t(t,n){return S()(S()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(Xt()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),Xt()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)(Qn).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)("core/data").isResolving(Qn,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[tr(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},hr=!1;function gr(e){var t=e.vendor;return hr||(hr=!0,(0,y.registerStore)(Qn,{actions:s,controls:Ue,reducer:rr,resolvers:l,selectors:fr(t)})),Qn}var vr=window.wp.dataControls,yr="automattic/launch",br="automattic/onboard/plans",_r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Er=[_r.Name,_r.Domain,_r.Plan,_r.Final],Sr=(0,y.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),wr=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Cr=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},xr=function(e){return{type:"SET_STEP",step:e}},kr=function(e){return{type:"SET_SITE_TITLE",title:e}},Pr=function(e){return{type:"SET_DOMAIN",domain:e}},Nr=function(){return{type:"UNSET_DOMAIN"}},Ar=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},Or=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},Tr=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},Ir=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function Dr(e){return Tr(e)}var Lr=function(){return{type:"OPEN_SIDEBAR"}},Rr=function(){return{type:"CLOSE_SIDEBAR"}},Fr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},jr=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},Mr=function(){return{type:"ENABLE_EXPERIMENTAL"}},Br=function(){return{type:"SHOW_SITE_TITLE_STEP"}},Ur=function(){return{type:"SET_MODAL_DISMISSIBLE"}},Vr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},zr=function(){return{type:"SHOW_MODAL_TITLE"}},$r=function(){return{type:"HIDE_MODAL_TITLE"}},Hr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},Gr=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Wr=function(){return Er},qr=function(){return _r},Yr=function(e){return e},Kr=function(e){return!!e.domain&&!e.domain.is_free},Xr=function(e){return e.domain},Zr=function(e){return e.planProductId},Jr=function(e){return(0,y.select)(br).getPlanByProductId(e.planProductId)},Qr=function(e){var t=e.planProductId,n=(0,y.select)(br).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},ei=function(e){return!!Xr(e)||e.confirmedDomainSelection},ti=function(e,t){if(t===_r.Plan)return!!Zr(e);if(t===_r.Name){var n=(0,y.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===_r.Domain&&(0,y.select)(yr).hasSelectedDomain()},ni=function(e){return Er.slice(0,Er.length-1).every((function(t){return ti(e,t)}))},ri=function(e){return Er.some((function(t){return ti(e,t)}))},ii=function(e){return Er.find((function(t){return!ti(e,t)}))},oi=function(e){return null==e?void 0:e.siteTitle},ai=function(e){return e.step};var ci,si,li,ui,di,pi,mi=(si=ci="WP_LAUNCH",li=ci+"_TS",ui={},di={getItem:function(e){return ui.hasOwnProperty(e)?ui[e]:null},setItem:function(e,t){ui[e]=String(t)},removeItem:function(e){delete ui[e]}},pi=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:di,{storageKey:si,storage:{getItem:function(e){var t=pi.getItem(li);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?pi.getItem(e):(pi.removeItem(si),pi.removeItem(li),null)},setItem:function(e,t){pi.setItem(li,JSON.stringify(Date.now())),pi.setItem(e,t)}}});(0,y.use)(y.plugins.persistence,mi);var fi=!1;var hi,gi=(hi={client_id:"",client_secret:""},ot||(ot=!0,(0,y.registerStore)(Y,{actions:Ve(hi),controls:Ue,reducer:ne,resolvers:r,selectors:i})),Y),vi=Zn(),yi=gr({vendor:"variation2_front"}),bi=(fi||(fi=!0,(0,y.registerStore)(yr,{actions:u,controls:vr.controls,reducer:Sr,selectors:d,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]})),yr);function _i(){var e=g.useContext(x).siteId,t=(0,y.useSelect)((function(t){return t(gi).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:(0,y.useSelect)((function(t){return t(gi).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}var Ei=(0,F.__)("Site Title","full-site-editing"),Si=function(e){var t=e.currentSiteTitle;return(void 0===t?"":t)===Ei},wi=function(e){return""!==e&&!Si({currentSiteTitle:e})},Ci=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},xi=function(e,t){return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t}}},ki=function(e){return!!e.is_domain_registration},Pi=function(e){return[ut,dt,pt,mt,ft].indexOf(e.product_slug)>-1};function Ni(){var e=g.useContext(x),t=e.siteId,n=e.flow,r=e.openCheckout,i=(0,y.useSelect)((function(e){return e(bi).getState()})),o=i.planProductId,a=i.domain,c=(0,y.useSelect)((function(e){return e(vi).getPlanProductById(o)})),s=(0,y.useSelect)((function(e){return e(vi).getPlanByProductId(o)})),l=(0,y.useSelect)((function(e){return e(vi).isPlanEcommerce(null==s?void 0:s.periodAgnosticSlug)})),u=_i().siteSubdomain,d=(0,y.useDispatch)(gi),p=d.getCart,m=d.setCart;return{goToCheckout:function(){var e=ie()(regeneratorRuntime.mark((function e(){var i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a&&xi(a,n),o=c&&Ci(c,n),e.next=4,p(t);case 4:return s=e.sent,e.next=7,m(t,S()(S()({},s),{},{products:[o,i]}));case 7:r((null==u?void 0:u.domain)||t.toString(),l);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}function Ai(){var e,t,n=g.useContext(x).siteId,r=(0,y.useSelect)((function(e){return e(gi).getSite(n)})),i=(0,y.useSelect)((function(e){return e(gi).isSiteLaunched(n)})),o=(0,y.useSelect)((function(e){return e(gi).isSiteLaunching(n)})),a=(0,y.useSelect)((function(e){return e(gi).isFetchingSiteDetails()}));return{sitePlan:null==r?void 0:r.plan,isPaidPlan:r&&!(null!==(e=r.plan)&&void 0!==e&&e.is_free),isSiteLaunched:i,isSiteLaunching:o,selectedFeatures:null==r||null===(t=r.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!a}}var Oi=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h1":r;return g.createElement(i,{className:R()("onboarding-title",t)},n)},Ti=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h2":r;return g.createElement(i,{className:R()("onboarding-subtitle",t)},n)},Ii={__:F.__,_n:F._n,_nx:F._nx,_x:F._x,isRTL:F.isRTL,setLocaleData:F.setLocaleData},Di=g.createContext(Fi()),Li=function(){return g.useContext(Di)};(0,N.createHigherOrderComponent)((function(e){return function(t){var n=Li();return(0,h.createElement)(e,P()({},n,t))}}),"withI18n");function Ri(e,t,n){var r=e[t],i=n.hasFilter,o=n.applyFilters;return i("preTranslation")||i("postTranslation")?function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var c=o("preTranslation",i,t,n);return o("postTranslation",r.apply(void 0,Xt()(c)),c,t,n)}:r}function Fi(e,t){var n=e?(0,F.createI18n)(e):Ii,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:(0,_.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:Ri(n,"__",c),_n:Ri(n,"_n",c),_nx:Ri(n,"_nx",c),_x:Ri(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}var ji=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Mi=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Bi=function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,o="";return!0===i&&(o="is-sticky"),!1===i&&(o="no-sticky"),(0,h.createElement)("div",{className:R()("action-buttons",t,o)},n)},Ui=function(e){var t=e.className,n=e.children,r=X()(e,["className","children"]),__=Li().__;return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||__("Go back","full-site-editing"))},Vi=function(e){var t=e.className,n=e.children,r=X()(e,["className","children"]),__=Li().__;return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||__("Continue","full-site-editing"))},zi=function(e){var t=e.className,n=e.children,r=e.arrow,i=void 0===r?"right":r,o=X()(e,["className","children","arrow"]);return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__arrow action-buttons__arrow--".concat(i),t)},o),"left"===i&&(0,h.createElement)(H,{icon:ji}),n,"right"===i&&(0,h.createElement)(H,{icon:Mi}))},$i=function(e){var t=e.children;return(0,h.createElement)(h.Fragment,null,t)};function Hi(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=(0,g.useRef)(null),o=(0,g.useRef)([]),a=n.leading,c=(0,g.useRef)(!1),s=(0,g.useRef)(null),l=(0,g.useRef)(!1),u=(0,g.useRef)(e);u.current=e;var d=(0,g.useCallback)((function(){clearTimeout(s.current),clearTimeout(i.current),i.current=null,o.current=[],s.current=null,c.current=!1}),[]);(0,g.useEffect)((function(){return function(){l.current=!0}}),[]);return[(0,g.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(s.current),!s.current&&a&&!c.current)return u.current.apply(u,e),void(c.current=!0);s.current=setTimeout((function(){d(),l.current||u.current.apply(u,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;d(),l.current||u.current.apply(null,e)}),r))}),[r,t,d,a]),d,function(){s.current&&(u.current.apply(null,o.current),d())}]}function Gi(){var e=(0,g.useContext)(x).siteId,t=(0,y.useSelect)((function(t){return t(gi).getSiteTitle(e)})),n=(0,y.useSelect)((function(e){return e(bi)})).getSiteTitle(),r=(0,y.useDispatch)(bi).setSiteTitle,i=Hi((0,y.useDispatch)(gi).saveSiteTitle,1e3),o=D()(i,1)[0],a=void 0===n;return(0,g.useEffect)((function(){a||o(e,n)}),[n,o,e,a]),{title:a?t:n,updateTitle:r}}var Wi=function(e){var t=e.onPrevStep,n=e.onNextStep,r=Gi(),i=r.title,o=r.updateTitle,a=function(){null==n||n()};return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Name your site","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Pick a name for your site.","full-site-editing"))),(0,h.createElement)(Bi,{sticky:!1},(0,h.createElement)(Vi,{onClick:a,disabled:!(null!=i&&i.trim())}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)("form",{onSubmit:a},(0,h.createElement)(j.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:o,value:i||"",spellCheck:!1,autoComplete:"off",placeholder:(0,F.__)("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,h.createElement)("div",{className:"nux-launch-step__input-hint"},(0,h.createElement)(j.Tip,{size:18}),(0,h.createElement)("span",null,(0,F.__)("Don't worry, you can change it later.","full-site-editing"))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==t||t()}}),(0,h.createElement)(Vi,{onClick:a,disabled:!(null!=i&&i.trim())}))))},qi=window.lodash,Yi=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),Ki=ye()("calypso:analytics");n(8032);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(3421);var Xi=ye()("lib/load-script/callback-handler"),Zi=new Map;function Ji(){return Zi}function Qi(e){return Ji().has(e)}function eo(e,t){var n=Ji();Qi(e)?(Xi('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(Xi('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function to(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ji(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));Xi(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function no(){var e=this.getAttribute("src");Xi('Handling successful request for "'.concat(e,'"')),to(e),this.onload=null}function ro(){var e=this.getAttribute("src");Xi('Handling failed request for "'.concat(e,'"')),to(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var io=ye()("lib/load-script/dom-operations");ye()("package/load-script");function oo(e,t){var n;if(!Qi(e)&&(n=function(e){io('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=no,t.onerror=ro,t}(e),io("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){eo(e,(function(e){null===e?t():n(e)}))}));eo(e,t)}var ao,co=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function so(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&oo("//stats.wp.com/w2.js?1");var lo=new cn.EventEmitter;function uo(e,t){if(Ki('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,qi.includes)(co,e)){if(ao){var n=ao(t);t=S()(S()({},t),n)}t=(0,qi.omitBy)(t,qi.isUndefined),Ki('Recording event "%s" with actual props %o',e,t),so(["recordEvent",e,t]),lo.emit("record-event",e,t)}else Ki('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var po="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),mo=new Uint8Array(16);function fo(){if(!po)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return po(mo)}for(var ho=[],go=0;go<256;++go)ho[go]=(go+256).toString(16).substr(1);var vo=function(e,t){var n=t||0,r=ho;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var yo=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||fo)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||vo(i)};var bo=["en","ja","es","pt","fr","pt-br"],_o={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},Eo=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],So=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],wo="http://__domain__.invalid",Co=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(_o[r]||r,".").concat(e)),n}},xo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=(_o[i]||i)+r.pathname),r}},ko=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=(_o[r]||r)+n.pathname),n}},Po={"wordpress.com/support/":ko(Eo),"wordpress.com/blog/":ko(bo,/^\/blog\/?$/),"wordpress.com/tos/":Co("wordpress.com",So),"jetpack.com":Co("jetpack.com",["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]),"en.support.wordpress.com":xo("/support",Eo),"en.blog.wordpress.com":xo("/blog",bo,/^\/$/),"en.forums.wordpress.com":Co("forums.wordpress.com",["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"]),"automattic.com/privacy/":ko(["en","fr","de"]),"automattic.com/cookies/":ko(["en","fr","de"]),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),ko(Eo)(e,t))},"wordpress.com":Co("wordpress.com",So)};function No(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),wo)}catch(a){return e}if(n.origin===wo)return e;if(n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/")),(!t||"en"===t)&&"en.wordpress.com"===n.host)return n.host="wordpress.com",n.href;"en.wordpress.com"===n.host&&(n.host="wordpress.com");for(var i=[n.host,n.host+n.pathname,n.host+n.pathname.substr(0,1+n.pathname.indexOf("/",1))],o=i.length-1;o>=0;o--)if(i[o]in Po)return Po[i[o]](n,t,r).href;return e}function Ao(){var e=T();return(0,g.useCallback)((function(t,n,r){return No(t,n||e,r)}),[e])}(0,N.createHigherOrderComponent)((function(e){return function(t){var n=Ao();return(0,h.createElement)(e,P()({localizeUrl:n},t))}}),"withLocalizeUrl");var Oo=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),To=function(e){var t=e.children,n=e.className,r=e.id,i=e.position,o=void 0===i?"bottom center":i,a=e.noArrow,c=void 0===a||a,s=(0,g.useState)(!1),l=D()(s,2),u=l[0],d=l[1];return(0,h.createElement)((function(e){return(0,h.createElement)(j.Button,e)}),{icon:Oo,onClick:function(e){d(!u),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},u&&(0,h.createElement)(j.Popover,{id:r,className:R()("info-tooltip__content",n),onClose:function(){d(!1)},position:o,noArrow:c},t))},Io="radio",Do="button",Lo="individual-item",Ro=g.forwardRef((function(e,t){var n=e.type,r=e.disabled,i=X()(e,["type","disabled"]);return"button"===n?(0,h.createElement)("div",i):(0,h.createElement)("button",P()({ref:t,disabled:r},i))})),Fo=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,a=e.hstsRequired,c=void 0!==a&&a,s=e.isFree,l=void 0!==s&&s,u=e.isExistingSubdomain,d=void 0!==u&&u,p=e.isRecommended,m=void 0!==p&&p,f=e.onSelect,v=e.onRender,y=e.selected,b=e.type,_=void 0===b?Io:b,E=e.buttonRef,__=Li().__,S=Ao(),w=(0,N.useViewportMatch)("small","<"),C=n.indexOf("."),x=n.slice(0,C),k=n.slice(C),P=g.useState(),A=D()(P,2),O=A[0],T=A[1],I=g.useState(),L=D()(I,2),M=L[0],B=L[1],U=__(_===Lo?"Default":"Free","full-site-editing"),V=w?__("Included in paid plans","full-site-editing"):(0,h.createInterpolateElement)(__("<strong>First year included</strong> in paid plans","full-site-editing"),{strong:(0,h.createElement)("strong",null)}),z=_===Lo?V:__(w?"Free":"Included with annual plans","full-site-editing");g.useEffect((function(){n!==O&&M!==o&&o&&(v(),T(n),B(o))}),[n,O,M,o,v]);var $=function(){M&&function(e){uo("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:M}),f(n)};return(0,h.createElement)(Ro,{ref:E,type:_,key:x,className:R()("domain-picker__suggestion-item",{"is-free":l,"is-selected":y,"is-unavailable":t},"type-".concat(_)),onClick:"button"!==_?$:void 0,disabled:t},_===Io&&(r?(0,h.createElement)(j.Spinner,null):(0,h.createElement)("span",{className:R()("domain-picker__suggestion-radio-circle",{"is-checked":y,"is-unavailable":t})})),(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,h.createElement)("span",{className:R()("domain-picker__domain-wrapper",{"with-margin":!c})},(0,h.createElement)("span",{className:"domain-picker__domain-sub-domain"},x),(0,h.createElement)("span",{className:"domain-picker__domain-tld"},k)),m&&!t&&(0,h.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),c&&(0,h.createElement)(To,{position:w?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,h.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,h.createElement)("b",null,k),learn_more_link:(0,h.createElement)("a",{target:"_blank",rel:"noreferrer",href:S("https://wordpress.com/support/https-ssl")})}))),d&&_!==Lo&&(0,h.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,h.createElement)("div",{className:R()("domain-picker__price",{"is-paid":!l})},t&&__("Unavailable","full-site-editing"),l&&!t&&U,!l&&!t&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"domain-picker__price-cost"},(0,F.sprintf)(__("%s/year","full-site-editing"),i)),(0,h.createElement)("span",{className:"domain-picker__price-inclusive"}," ",z," "),(0,h.createElement)("span",{className:"domain-picker__price-renewal"},(0,F.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),_===Do&&(r?(0,h.createElement)(j.Spinner,null):(0,h.createElement)("div",{className:"domain-picker__action"},(0,h.createElement)(j.Button,{ref:E,isSecondary:!0,className:R()("domain-picker__suggestion-select-button",{"is-selected":y&&!t}),disabled:t,onClick:$},__(y&&!t?"Selected":"Select","full-site-editing")))))},jo=g.forwardRef((function(e,t){return(0,h.createElement)(Fo,P()({},e,{buttonRef:t}))})),Mo=function(e){var t=e.type;return(0,h.createElement)("div",{className:R()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,h.createElement)("div",{className:"domain-picker__price placeholder"}))},Bo=function(e){var t=e.onClick;return(0,h.createElement)("label",{className:"domain-picker__suggestion-item contains-link"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},(0,F.__)("Already own a domain?","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)("span",{className:"domain-picker__item-tip"},(0,F._x)("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,h.createElement)(zi,{arrow:"right",onClick:t},(0,F._x)("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))};function Uo(e,t){return e===t}function Vo(e,t,n){var r=n&&n.equalityFn?n.equalityFn:Uo,i=(0,g.useState)(e),o=i[0],a=i[1],c=Hi((0,g.useCallback)((function(e){return a(e)}),[]),t,n),s=c[0],l=c[1],u=(0,g.useRef)(e);return(0,g.useEffect)((function(){r(u.current,e)||(s(e),u.current=e)}),[e,s,r]),[o,l]}var zo=gr({vendor:"variation2_front"}),$o=["available","available_premium"];var Ho=(0,h.createElement)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,h.createElement)(G.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Go=function(e){var t=e.onSelect,n=e.selected,__=Li().__,r=(0,h.useState)(!1),i=D()(r,2),o=i[0],a=i[1],c=function(e){a(!1),t(e)},s=(0,y.useSelect)((function(e){return e(zo).getCategories()}));return(0,h.createElement)("div",{className:R()("domain-categories",{"is-open":o})},(0,h.createElement)(j.Button,{className:"domain-categories__dropdown-button",onClick:function(){return a(!o)}},(0,h.createElement)("span",null,n||__("All Categories","full-site-editing")),(0,h.createElement)(H,{icon:Ho,size:16})),(0,h.createElement)("ul",{className:"domain-categories__item-group"},(0,h.createElement)("li",{className:R()("domain-categories__item",{"is-selected":!n})},(0,h.createElement)(j.Button,{onClick:function(){return c()}},__("View all","full-site-editing"))),s.map((function(e){var t=e.slug,r=e.title;return(0,h.createElement)("li",{key:t,className:R()("domain-categories__item",{"is-selected":t===n})},(0,h.createElement)(j.Button,{onClick:function(){return c(t)}},r))}))))},Wo=function(){var e=Li(),__=e.__,t=e.isRTL;return(0,h.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,h.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,h.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,h.createElement)("tspan",{fill:"#999"},(0,h.createElement)("tspan",null,"https://")),(0,h.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))},qo=function(e){var t=e.groupItems,n=e.children;return t?(0,h.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,h.createElement)(g.Fragment,null,n)},Yo=function(e){var t=e.children;return(0,h.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)},Ko=function(e){var t,n=e.header,r=e.showDomainCategories,i=e.onDomainSelect,o=e.onExistingSubdomainSelect,a=e.quantity,c=void 0===a?5:a,s=e.quantityExpanded,l=void 0===s?10:s,u=e.onDomainSearchBlur,d=void 0===u?qi.noop:u,p=e.analyticsFlowId,m=e.analyticsUiAlgo,f=e.initialDomainSearch,b=void 0===f?"":f,_=e.onSetDomainSearch,E=void 0===_?qi.noop:_,S=e.currentDomain,w=e.isCheckingDomainAvailability,C=e.existingSubdomain,x=e.segregateFreeAndPaid,k=void 0!==x&&x,P=e.showSearchField,N=void 0===P||P,A=e.itemType,O=void 0===A?Io:A,T=e.locale,I=e.areDependenciesLoading,L=void 0!==I&&I,R=e.orderSubDomainsLast,F=void 0!==R&&R,M=e.onUseYourDomainClick,__=Li().__,B=__("Search for a domain","full-site-editing"),U=(0,g.useState)(!1),V=D()(U,2),z=V[0],$=V[1],G=(0,g.useState)(b),W=D()(G,2),q=W[0],Y=W[1],K=(0,g.useState)(),X=D()(K,2),Z=X[0],J=X[1],Q=(0,y.useSelect)((function(e){return e(zo).getDomainSuggestionVendor()})),ee=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",r=Vo(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",300),i=D()(r,1)[0],o=(0,y.useDispatch)(zo).invalidateResolutionForStoreSelector;return(0,y.useSelect)((function(r){if(i&&!(i.length<2)){var a=r(zo),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:e+1,locale:n,category_slug:t}),state:s(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,t,e])}(q.trim(),l,Z,T)||{},te=ee.allDomainSuggestions,ne=ee.errorMessage,re=ee.state,ie=ee.retryRequest,oe=null==te?void 0:te.slice(C?1:0,z?l:c),ae=function(e,t,n){var r=g.useState(),i=D()(r,2),o=i[0],a=i[1],c=t&&Array.isArray(e)?[t].concat(Xt()(e)):e;if(g.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&a(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==o?void 0:o.domain_name)}))))return o}(oe,C,S);ae&&(null==oe||oe.push(ae));var ce=(0,y.useSelect)((function(e){return e(zo).getDomainAvailabilities()}),[]);(0,g.useEffect)((function(){$(!1)}),[q]);var se=(0,g.useState)(),le=D()(se,2),ue=le[0],de=le[1];(0,g.useEffect)((function(){te&&de(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat(yo().replace(/-/g,""),"-").concat(e)}("suggestion"))}),[te,de]),(0,g.useEffect)((function(){N||Y(b)}),[b,N]);var pe=v().useRef([]);(0,g.useEffect)((function(){var e,t;z&&(null===(e=pe.current[c])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[z,c]);var me=function(e,t,n,r){var i,o="/domains/search/".concat(Q,"/").concat(p).concat(Z?"/"+Z:"");uo("calypso_traintracks_render",{railcar:(i={uiAlgo:"/".concat(p,"/").concat(m),fetchAlgo:o,query:q,railcarId:t,result:r?e+"#recommended":e,uiPosition:n}).railcarId,ui_algo:i.uiAlgo,ui_position:i.uiPosition,fetch_algo:i.fetchAlgo,rec_result:i.result,fetch_query:i.query})},fe=re===Jn.Failure,he=(null===(t=q.trim)||void 0===t?void 0:t.call(q).length)<=1,ge=!fe&&!he,ve=!fe&&he,ye=c;ae&&(ye+=1),M&&(ye+=1),C&&(ye-=1);var be=["professional"];return C&&be.unshift("sub-domain"),F&&be.reverse(),(0,h.createElement)("div",{className:"domain-picker"},n&&n,N&&(0,h.createElement)("div",{className:"domain-picker__search"},(0,h.createElement)("div",{className:"domain-picker__search-icon"},(0,h.createElement)(H,{icon:Yi})),(0,h.createElement)(j.TextControl,{hideLabelFromVision:!0,label:B,placeholder:B,onChange:function(e){Y(e),E(e)},onBlur:function(e){d&&d(e.currentTarget.value)},value:q,dir:"ltr"})),fe&&(0,h.createElement)(j.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,h.createElement)("p",{className:"domain-picker__error-message"},ne||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,h.createElement)(j.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ie},__("Retry","full-site-editing"))),(ge||L)&&(0,h.createElement)("div",{className:"domain-picker__body"},r&&(0,h.createElement)("div",{className:"domain-picker__aside"},(0,h.createElement)(Go,{selected:Z,onSelect:J})),(0,h.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,h.createElement)("div",{className:"domain-picker__sugggested-items-container"},be.map((function(e){return"sub-domain"===e?(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Yo,null,__("Keep sub-domain","full-site-editing")),(0,h.createElement)(qo,{key:e,groupItems:k},!L&&C&&(0,h.createElement)(jo,{key:null==C?void 0:C.domain_name,domain:null==C?void 0:C.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:ue?"".concat(ue,0):void 0,onRender:function(){return me(null==C?void 0:C.domain_name,"".concat(ue,0),0,!1)},selected:(null==S?void 0:S.domain_name)===(null==C?void 0:C.domain_name),onSelect:function(){null==o||o(null==C?void 0:C.domain_name)},type:O})||(0,h.createElement)(Mo,{type:O}))):(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Yo,null,__("Professional domains","full-site-editing")),(0,h.createElement)(qo,{key:e,groupItems:k},!L&&(null==oe?void 0:oe.map((function(e,t){var n,r=null!=C&&C.domain_name?t+1:t,o=1===r,a=null===(n=ce[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null==$o?void 0:$o.indexOf(a))>-1;return(0,h.createElement)(jo,{ref:function(e){pe.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==S?void 0:S.domain_name)===e.domain_name&&w,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:o,railcarId:ue?"".concat(ue).concat(r):void 0,onRender:function(){return me(e.domain_name,"".concat(ue).concat(r),r,o)},onSelect:function(){i(e)},selected:(null==S?void 0:S.domain_name)===e.domain_name,type:O})})))||(0,qi.times)(ye,(function(e){return(0,h.createElement)(Mo,{type:O,key:e})})),M&&!!oe&&(0,h.createElement)(Bo,{onClick:M})))}))),!z&&c<l&&(null==te?void 0:te.length)&&(null==te?void 0:te.length)>c&&(0,h.createElement)("div",{className:"domain-picker__show-more"},(0,h.createElement)(j.Button,{onClick:function(){return $(!0)},isLink:!0},__("View more results","full-site-editing"))))),ve&&!L&&(0,h.createElement)("div",{className:"domain-picker__empty-state"},(0,h.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)(Wo,null))))};function Xo(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:""}}function Zo(){var e=function(){var e=g.useContext(x).siteId,t=(0,y.useDispatch)(gi).getCart,n=g.useState(void 0),r=D()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return ki(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.meta;return(0,y.useSelect)((function(e){var n;return t?null===(n=e(yi).getDomainSuggestions(t,{quantity:1,include_wordpressdotcom:!1,include_dotblogsubdomain:!1}))||void 0===n?void 0:n[0]:void 0}))}function Jo(){var e,t=(0,y.useDispatch)(bi),n=t.setDomain,r=t.unsetDomain,i=t.unsetPlanProductId,o=t.confirmDomainSelection,a=(0,y.useSelect)((function(e){return e(bi).getState()})),c=a.domain,s=a.planProductId,l=a.confirmedDomainSelection,u=(0,y.useSelect)((function(e){return e(vi).isPlanProductFree(s)})),d=_i(),p=d.siteSubdomain,m=d.hasPaidDomain,f=d.sitePrimaryDomain;return c?e=c:m?e=Xo(null==f?void 0:f.domain):l&&(e=Xo(null==p?void 0:p.domain)),{onDomainSelect:function(e){o(),n(e),u&&i()},onExistingSubdomainSelect:function(){o(),r()},selectedDomain:c,currentDomain:e}}function Qo(){var e,t,n=(0,y.useSelect)((function(e){return e(bi).getState()})).domainSearch,r=Gi().title,i=Ai().isLoadingSite,o=_i().siteSubdomain,a=(0,y.useDispatch)(bi).setDomainSearch,c=n.trim()||r;c&&!Si({currentSiteTitle:c})||(c=null!==(e=null==o||null===(t=o.domain)||void 0===t?void 0:t.split(".")[0])&&void 0!==e?e:"");return{domainSearch:c,isLoading:i,setDomainSearch:a}}var ea="gutenboarding",ta=function(e){var t=e.onPrevStep,n=e.onNextStep,r=Jo(),i=r.onDomainSelect,o=r.onExistingSubdomainSelect,a=r.currentDomain,c=_i().siteSubdomain,s=Qo(),l=s.domainSearch,u=s.setDomainSearch,d=(0,y.useDispatch)(f).confirmDomainSelection,p=function(){d(),null==n||n()};return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)(Bi,{sticky:!1},(0,h.createElement)(Vi,{onClick:p,disabled:!l}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(Ko,{analyticsFlowId:ea,initialDomainSearch:l,onSetDomainSearch:u,onDomainSearchBlur:function(e){uo("calypso_newsite_domain_search_blur",{flow:ea,query:e,where:"editor_domain_modal"})},currentDomain:a||Xo(null==c?void 0:c.domain),existingSubdomain:Xo(null==c?void 0:c.domain),onDomainSelect:i,onExistingSubdomainSelect:o,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==t||t()}}),(0,h.createElement)(Vi,{onClick:p,disabled:!l}))))},na=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),ra=(0,h.createElement)(H,{icon:na,size:17}),ia=(0,h.createElement)(H,{icon:q,size:17}),oa=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var aa=function(e){var t=e.features,n=e.domain,r=e.isFree,i=void 0!==r&&r,o=e.isOpen,a=void 0!==o&&o,c=e.onPickDomain,s=e.disabledLabel,l=e.multiColumn,u=void 0!==l&&l,d=function(e,t,__){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:ra,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",oa)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:ra,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",oa)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:ia,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{className:"plans-feature-list__domain-summary is-picked",icon:ra,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(i,n,Li().__);return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!a},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":u})},s?(0,h.createElement)("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},ia," ",(0,h.createElement)("span",null,s)):d&&(0,h.createElement)("li",{className:"plans-feature-list__item"},(0,h.createElement)(j.Button,{className:d.className,onClick:c,isLink:!0},d.icon,d.domainMessage)),t.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"plans-feature-list__item"},ra," ",(0,h.createElement)("span",null,e))}))))};var ca="automattic/wpcom-features",sa={domain:{id:"domain",minSupportedPlan:gt},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:yt},plugins:{id:"plugins",minSupportedPlan:yt},"ad-free":{id:"ad-free",minSupportedPlan:gt},"image-storage":{id:"image-storage",minSupportedPlan:vt},"video-storage":{id:"video-storage",minSupportedPlan:vt},support:{id:"support",minSupportedPlan:yt}},la=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sa;return e},ua=function(e){return e},da=function(e,t){var n=ua(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return wt.indexOf(r)>wt.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},pa=!1;var ma=Zn(),fa=(pa||(pa=!0,(0,y.registerStore)(ca,{controls:vr.controls,reducer:la,selectors:p})),ca),ha=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ga=function(e){var t=e.slug,n=e.name,r=e.tagline,i=e.isPopular,o=void 0!==i&&i,a=e.isFree,c=void 0!==a&&a,s=e.domain,l=e.features,u=e.onSelect,d=e.onPickDomainClick,p=e.onToggleExpandAll,m=e.allPlansExpanded,f=e.disabledLabel,v=e.CTAVariation,b=void 0===v?"NORMAL":v,_=e.popularBadgeVariation,E=void 0===_?"ON_TOP":_,__=Li().__,S=(0,y.useSelect)((function(e){return e(ma).getPlanProduct(t,"ANNUALLY")})),w=g.useState(!1),C=D()(w,2),x=C[0],k=C[1],P=(0,N.useViewportMatch)("mobile",">=");g.useEffect((function(){k(m)}),[m]);var A=m||P||o||x;return(0,h.createElement)("div",{className:R()("plan-item",{"is-popular":o,"is-open":A,"badge-next-to-name":"NEXT_TO_NAME"===E})},o&&"ON_TOP"===E&&(0,h.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,h.createElement)("div",{className:R()("plan-item__viewport",{"is-popular":o})},(0,h.createElement)("div",{className:"plan-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return k((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&k((function(e){return!e}))},className:"plan-item__summary"},(0,h.createElement)("div",{className:R()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===E})},(0,h.createElement)("div",{className:"plan-item__name"},n),o&&"NEXT_TO_NAME"===E&&(0,h.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),r&&(0,h.createElement)("p",{className:"plan-item__tagline"},r),(0,h.createElement)("div",{className:"plan-item__price"},(0,h.createElement)("div",{className:R()("plan-item__price-amount",{"is-loading":!(null!=S&&S.price)})},(null==S?void 0:S.price)||" ")),!A&&(0,h.createElement)("div",{className:"plan-item__dropdown-chevron"},ha)),(0,h.createElement)("div",{hidden:!A},(0,h.createElement)("div",{className:"plan-item__price-note"},__(c?"free forever":"per month, billed yearly","full-site-editing")),(0,h.createElement)("div",{className:"plan-item__actions"},"NORMAL"===b?(0,h.createElement)(j.Button,{className:"plan-item__select-button",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:!0,disabled:!!f},(0,h.createElement)("span",null,__(f||"Choose","full-site-editing"))):(0,h.createElement)(j.Button,{className:"plan-item__select-button full-width",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:o,disabled:!!f},(0,h.createElement)("span",null,f?__(f,"full-site-editing"):(0,F.sprintf)(__("Select %s","full-site-editing"),n)))),(0,h.createElement)(aa,{features:l,domain:s,isFree:c,isOpen:A,onPickDomain:d,disabledLabel:f&&(0,F.sprintf)(__("%s is not included","full-site-editing"),null==s?void 0:s.domain_name)})))),o&&!P&&(0,h.createElement)(j.Button,{onClick:p,className:"plan-item__mobile-expand-all-plans",isLink:!0},__(m?"Collapse all plans":"Expand all plans","full-site-editing")))},va=function(e){var t=e.selectedPlanProductId,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,o=e.disabledPlans,a=e.locale,c=e.showTaglines,s=void 0!==c&&c,l=e.CTAVariation,u=void 0===l?"NORMAL":l,d=e.popularBadgeVariation,p=void 0===d?"ON_TOP":d,m=e.customTagLines,f=e.defaultAllPlansExpanded,v=void 0!==f&&f,b=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(a)})),_=(0,g.useState)(v),E=D()(_,2),S=E[0],w=E[1];return(0,h.createElement)("div",{className:"plans-table"},b.map((function(e){var a,c;return e&&(0,h.createElement)(ga,{popularBadgeVariation:p,allPlansExpanded:S,key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,domain:i,tagline:null!==(a=s&&(null==m?void 0:m[e.periodAgnosticSlug]))&&void 0!==a?a:e.description,CTAVariation:u,features:null!==(c=e.features)&&void 0!==c?c:[],isPopular:e.isPopular,isFree:e.isFree,name:null==e?void 0:e.title.toString(),isSelected:e.productIds.indexOf(t)>-1,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return w((function(e){return!e}))},disabledLabel:null==o?void 0:o[e.periodAgnosticSlug]})})))},ya=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ba=function(e){var t=e.slug,n=e.name,r=e.description,i=e.features,o=e.domain,a=e.badge,c=e.isFree,s=void 0!==c&&c,l=e.isOpen,u=void 0!==l&&l,d=e.isPrimary,p=void 0!==d&&d,m=e.onSelect,f=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,__=Li().__,b=(0,y.useSelect)((function(e){return e(br).getPlanProduct(t,"ANNUALLY")})),_=function(){!v&&(null==g||g(t,!u))};return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":u,"is-primary":p,"has-badge":!!a,"is-disabled":!!v})},a&&(0,h.createElement)("div",{className:"plans-accordion-item__badge"},(0,h.createElement)("span",null,a)),(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:_,onKeyDown:function(e){return 32===e.keyCode&&_()},className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},n),(0,h.createElement)("div",{className:"plans-accordion-item__description"},r)),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:R()("plans-accordion-item__price-amount",{"is-loading":!(null!=b&&b.price)})},(null==b?void 0:b.price)||"  ",(null==b?void 0:b.price)&&(0,h.createElement)("span",null,__("/mo","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},__(s?"free forever":"billed annually","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},v),!u&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},ya)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!u},(0,h.createElement)(Vi,{"data-e2e-button":s?"freePlan":"paidPlan",onClick:function(){m(null==b?void 0:b.productId)}},__("Select","full-site-editing"))),(0,h.createElement)(aa,{features:i,domain:o,isFree:s,isOpen:u,onPickDomain:f,multiColumn:!0}))))},_a=function(e){var t=e.isOpen,n=void 0!==t&&t,r=e.multiColumn,i=void 0!==r&&r,o=Array.from(Array(10).keys());return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!n},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":i})},o.map((function(e){return(0,h.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,h.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))},Ea=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Sa=function(e){var t=e.isOpen,n=e.isPrimary;return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":t,"is-primary":n})},(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__description"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},Ea)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},(0,h.createElement)(Vi,{disabled:!0},(0,h.createElement)("span",null,""))),(0,h.createElement)(_a,{isOpen:t,multiColumn:!0}))))},wa=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Ca=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanProductId,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.currentDomain,s=e.disabledPlans,l=e.locale,__=Li().__,u=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(l)})),d=!(null!=u&&u.length),p=(0,y.useSelect)((function(e){return e(ma).getDefaultPaidPlan(l)})),m=(0,y.useSelect)((function(e){return e(fa).getRecommendedPlanSlug(r)})),f=(0,y.useSelect)((function(e){return e(ma).getPlanByPeriodAgnosticSlug(m)})),v=f||p,b=__(f?"Recommended for you":"Popular","full-site-editing"),_=u.filter((function(e){return e.periodAgnosticSlug!==(null==v?void 0:v.periodAgnosticSlug)})),E=[null==v?void 0:v.periodAgnosticSlug],S=(0,g.useState)(E),w=D()(S,2),C=w[0],x=w[1],k=!d&&C.length>=u.length,P=function(e,t){x(t?[].concat(Xt()(C),[e]):C.filter((function(t){return t!==e})))};return(0,h.createElement)("div",{className:"plans-accordion"},(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?(0,h.createElement)(Sa,{isOpen:!0,isPrimary:!0}):v&&(0,h.createElement)(h.Fragment,null,f&&(0,h.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,h.createElement)(H,{icon:wa,size:16}),(0,h.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,h.createElement)(ba,{key:v.periodAgnosticSlug,slug:v.periodAgnosticSlug,name:null==v?void 0:v.title.toString(),description:null==v?void 0:v.description.toString(),features:null!==(t=v.features)&&void 0!==t?t:[],domain:c,badge:b,isFree:v.isFree,isOpen:!0,isPrimary:!0,isSelected:!!i&&v.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a}))),(0,h.createElement)("div",{className:"plans-accordion__actions"},(0,h.createElement)(j.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){x(k?E:u.map((function(e){return e.periodAgnosticSlug})))},isLink:!0},__(k?"Collapse all plans":"Show all plans","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?[1,2,3,4].map((function(e){return(0,h.createElement)(Sa,{key:e})})):_.map((function(e){var t;return(0,h.createElement)(ba,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],domain:c,isFree:e.isFree,isOpen:C.indexOf(e.periodAgnosticSlug)>-1&&!(null!=s&&s[e.periodAgnosticSlug]),isSelected:e.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a,onToggle:P,disabledLabel:null==s?void 0:s[e.periodAgnosticSlug]})}))))},xa=(0,h.createElement)(H,{icon:na,size:25}),ka=function(e){var t=e.onSelect,n=e.locale,__=Li().__,r=(0,y.useSelect)((function(e){return e(ma).getFeatures()})),i=(0,y.useSelect)((function(e){return e(ma).getFeaturesByType()})),o=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(n)})),a=(0,y.useSelect)((function(e){return o.map((function(t){return e(ma).getPlanProduct(t.periodAgnosticSlug,"ANNUALLY")}))})),c=!(null!=o&&o.length),s=[1,2,3,4,5];return(0,h.createElement)("div",{className:"plans-details"},(0,h.createElement)("table",{className:"plans-details__table"},(0,h.createElement)("thead",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",null,__("Feature","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e){return(0,h.createElement)("th",{key:e.periodAgnosticSlug},e.title)})))),c?(0,h.createElement)("tbody",null,s.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),s.map((function(e){return(0,h.createElement)("td",{key:e})})))}))):i.map((function(e){var t;return(0,h.createElement)("tbody",{key:e.id},e.name&&(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",null,r[e].name),o.map((function(t,n){var r;return"storage"===e?(0,h.createElement)("td",{key:n},t.storage):(0,h.createElement)("td",{key:n},null!==(r=t.featuresSlugs)&&void 0!==r&&r[e]?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),xa):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))})))})))})),(0,h.createElement)("tbody",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,h.createElement)("th",null,__("Monthly subscription (billed yearly)","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e,t){var n;return(0,h.createElement)("td",{key:e.periodAgnosticSlug},null===(n=a[t])||void 0===n?void 0:n.price)}))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,h.createElement)("th",null),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)(j.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):o.map((function(e,n){return(0,h.createElement)("td",{key:e.periodAgnosticSlug},(0,h.createElement)(j.Button,{className:"plans-details__select-button",onClick:function(){var e;t(null===(e=a[n])||void 0===e?void 0:e.productId)},isPrimary:!0},(0,h.createElement)("span",null,__("Select","full-site-editing"))))}))))))},Pa=ye()("plans-grid"),Na=function(e){var t=e.header,n=e.selectedFeatures,r=e.currentPlanProductId,i=e.currentDomain,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.disabledPlans,s=e.isAccordion,l=e.locale,u=e.showPlanTaglines,d=void 0!==u&&u,p=e.CTAVariation,m=void 0===p?"NORMAL":p,f=e.popularBadgeVariation,g=void 0===f?"ON_TOP":f,v=e.customTagLines,y=e.hidePlansComparison,b=void 0!==y&&y,_=e.defaultAllPlansExpanded,E=void 0!==_&&_,__=Li().__;return s&&Pa("PlansGrid accordion version is active"),(0,h.createElement)("div",{className:"plans-grid"},t&&(0,h.createElement)("div",{className:"plans-grid__header"},t),(0,h.createElement)("div",{className:"plans-grid__table"},(0,h.createElement)("div",{className:"plans-grid__table-container"},s?(0,h.createElement)(Ca,{selectedFeatures:n,selectedPlanProductId:r,onPlanSelect:o,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l}):(0,h.createElement)(va,{popularBadgeVariation:g,CTAVariation:m,selectedPlanProductId:r,onPlanSelect:o,customTagLines:v,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l,showTaglines:d,defaultAllPlansExpanded:E}))),!b&&(0,h.createElement)("div",{className:"plans-grid__details"},(0,h.createElement)("div",{className:"plans-grid__details-heading"},(0,h.createElement)(Oi,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,h.createElement)("div",{className:"plans-grid__details-container"},(0,h.createElement)(ka,{onSelect:o,locale:l}))))},Aa=function(e){var t,n=e.onPrevStep,r=e.onNextStep,i=(0,y.useSelect)((function(e){var t=e(f);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),o=i.domain,a=i.LaunchStep,c=i.selectedPlanProductId,s=(0,y.useDispatch)(f),l=s.setPlanProductId,u=s.setStep,d=Ai().selectedFeatures,p=o&&!o.is_free;return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.sprintf)((0,F.__)("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(Na,{currentPlanProductId:c,currentDomain:o,onPlanSelect:function(e){l(e),null==r||r()},onPickDomainClick:function(){u(a.Domain)},disabledPlans:p?{Free:(0,F.__)("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:d,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==n||n()}}))))};function Oa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ta=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Ia=function(e){function t(e,r,s,l,p){for(var m,f,h,g,_,S=0,w=0,C=0,x=0,k=0,I=0,L=h=m=0,F=0,j=0,M=0,B=0,U=s.length,V=U-1,z="",$="",H="",G="";F<U;){if(f=s.charCodeAt(F),F===V&&0!==w+x+C+S&&(0!==w&&(f=47===w?10:47),x=C=S=0,U++,V++),0===w+x+C+S){if(F===V&&(0<j&&(z=z.replace(d,"")),0<z.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:z+=s.charAt(F)}f=59}switch(f){case 123:for(m=(z=z.trim()).charCodeAt(0),h=1,B=++F;F<U;){switch(f=s.charCodeAt(F)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(F+1)){case 42:case 47:e:{for(L=F+1;L<V;++L)switch(s.charCodeAt(L)){case 47:if(42===f&&42===s.charCodeAt(L-1)&&F+2!==L){F=L+1;break e}break;case 10:if(47===f){F=L+1;break e}}F=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<V&&s.charCodeAt(F)!==f;);}if(0===h)break;F++}switch(h=s.substring(B,F),0===m&&(m=(z=z.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<j&&(z=z.replace(d,"")),f=z.charCodeAt(1)){case 100:case 109:case 115:case 45:j=r;break;default:j=T}if(B=(h=t(r,j,h,f,p+1)).length,0<D&&(_=c(3,h,j=n(T,z,M),r,N,P,B,f,p,l),z=j.join(""),void 0!==_&&0===(B=(h=_.trim()).length)&&(f=0,h="")),0<B)switch(f){case 115:z=z.replace(E,a);case 100:case 109:case 45:h=z+"{"+h+"}";break;case 107:h=(z=z.replace(v,"$1 $2"))+"{"+h+"}",h=1===O||2===O&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=z+h,112===l&&($+=h,h="")}else h="";break;default:h=t(r,n(r,z,M),h,l,p+1)}H+=h,h=M=j=L=m=0,z="",f=s.charCodeAt(++F);break;case 125:case 59:if(1<(B=(z=(0<j?z.replace(d,""):z).trim()).length))switch(0===L&&(m=z.charCodeAt(0),45===m||96<m&&123>m)&&(B=(z=z.replace(" ",":")).length),0<D&&void 0!==(_=c(1,z,r,e,N,P,$.length,l,p,l))&&0===(B=(z=_.trim()).length)&&(z="\0\0"),m=z.charCodeAt(0),f=z.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){G+=z+s.charAt(F);break}default:58!==z.charCodeAt(B-1)&&($+=i(z,m,f,z.charCodeAt(2)))}M=j=L=m=0,z="",f=s.charCodeAt(++F)}}switch(f){case 13:case 10:47===w?w=0:0===1+m&&107!==l&&0<z.length&&(j=1,z+="\0"),0<D*R&&c(0,z,r,e,N,P,$.length,l,p,l),P=1,N++;break;case 59:case 125:if(0===w+x+C+S){P++;break}default:switch(P++,g=s.charAt(F),f){case 9:case 32:if(0===x+S+w)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+w+S&&(j=M=1,g="\f"+g);break;case 108:if(0===x+w+S+A&&0<L)switch(F-L){case 2:112===k&&58===s.charCodeAt(F-3)&&(A=k);case 8:111===I&&(A=I)}break;case 58:0===x+w+S&&(L=F);break;case 44:0===w+C+x+S&&(j=1,g+="\r");break;case 34:case 39:0===w&&(x=x===f?0:0===x?f:x);break;case 91:0===x+w+C&&S++;break;case 93:0===x+w+C&&S--;break;case 41:0===x+w+S&&C--;break;case 40:if(0===x+w+S){if(0===m)switch(2*k+3*I){case 533:break;default:m=1}C++}break;case 64:0===w+C+x+S+L+h&&(h=1);break;case 42:case 47:if(!(0<x+S+C))switch(w){case 0:switch(2*f+3*s.charCodeAt(F+1)){case 235:w=47;break;case 220:B=F,w=42}break;case 42:47===f&&42===k&&B+2!==F&&(33===s.charCodeAt(B+2)&&($+=s.substring(B,F+1)),g="",w=0)}}0===w&&(z+=g)}I=k,k=f,F++}if(0<(B=$.length)){if(j=r,0<D&&(void 0!==(_=c(2,$,j,e,N,P,B,l,p,l))&&0===($=_).length))return G+$+H;if($=j.join(",")+"{"+$+"}",0!=O*A){switch(2!==O||o($,2)||(A=0),A){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}A=0}}return G+$+H}function n(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<o;++c)t[c]=r(e,t[c],n).trim();break;default:var s=c=0;for(t=[];c<o;++c)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",i[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===O||2===O&&o(s,1)?"-webkit-"+s+s:s}if(0===O||2===O&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return m.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(_,"tb");break;case 232:s=a.replace(_,"tb-rl");break;case 220:s=a.replace(_,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,i,o,a,c,s,u){for(var d,p=0,m=t;p<D;++p)switch(d=I[p].call(l,e,m,n,r,i,o,a,c,s,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?O=1:(O=2,L=e):O=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var i=c(-1,n,r,r,N,P,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(T,r,n,0,0);return 0<D&&(void 0!==(i=c(-2,o,r,r,N,P,o.length,0,0,0))&&(o=i)),"",A=0,P=N=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,w=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,P=1,N=1,A=0,O=1,T=[],I=[],D=0,L=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:D=I.length=0;break;default:if("function"==typeof t)I[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},Da="/*|*/";function La(e){e&&Ra.current.insert(e+"}")}var Ra={current:null},Fa=function(e,t,n,r,i,o,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ra.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+Da;break;case 3:switch(c){case 102:case 112:return Ra.current.insert(n[0]+t),"";default:return t+(0===l?Da:"")}case-2:t.split("/*|*/}").forEach(La)}},ja=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Ia(t);var i,o={};i=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Fa),a=function(e,t,n,i){var o=t.name;Ra.current=n,r(e,t.styles),i&&(s.inserted[o]=!0)};var s={key:n,sheet:new Ta({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return s},Ma=n(7111),Ba=n.n(Ma);var Ua=function(e){for(var t,n=e.length,r=n^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},Va={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var za=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},$a=/[A-Z]|^ms/g,Ha=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ga=function(e){return 45===e.charCodeAt(1)},Wa=function(e){return null!=e&&"boolean"!=typeof e},qa=za((function(e){return Ga(e)?e:e.replace($a,"-$&").toLowerCase()})),Ya=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ha,(function(e,t,n){return Xa={name:t,styles:n,next:Xa},t}))}return 1===Va[e]||Ga(e)||"number"!=typeof t||0===t?t:t+"px"};function Ka(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Xa={name:n.name,styles:n.styles,next:Xa},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)Xa={name:i.name,styles:i.styles,next:Xa},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ka(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Wa(a)&&(r+=qa(o)+":"+Ya(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=Ka(e,t,a,!1);switch(o){case"animation":case"animationName":r+=qa(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)Wa(a[s])&&(r+=qa(o)+":"+Ya(o,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Xa,a=n(e);return Xa=o,Ka(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var Xa,Za=/label:\s*([^\s;\n{]+)\s*;/g;var Ja=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Xa=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Ka(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=Ka(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);Za.lastIndex=0;for(var c,s="";null!==(c=Za.exec(i));)s+="-"+c[1];return{name:Ua(i)+s,styles:i,next:Xa}},Qa=(Object.prototype.hasOwnProperty,(0,g.createContext)("undefined"!=typeof HTMLElement?ja():null)),ec=(0,g.createContext)({}),tc=(Qa.Provider,function(e){var t=function(t,n){return(0,g.createElement)(Qa.Consumer,null,(function(r){return e(t,r,n)}))};return(0,g.forwardRef)(t)});function nc(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var rc=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};g.Component;var ic=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function oc(e,t,n){var r=[],i=nc(e,r,n);return r.length<2?n:i+t(r)}tc((function(e,t){return(0,g.createElement)(ec.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Ja(n,t.registered);return rc(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return oc(t.registered,r,ic(n))},theme:n},o=e.children(i);return!0,o}))}));var ac=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};n(3463);function cc(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}var sc=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},lc=ac((function(e){return ac((function(t){return sc(e,t)}))})),uc=function(e){return(0,g.createElement)(ec.Consumer,null,(function(t){return e.theme!==t&&(t=lc(t)(e.theme)),(0,g.createElement)(ec.Provider,{value:t},e.children)}))};var dc="#F6F7F7",pc="#DCDCDE",mc="#8E9196",fc="#646970",hc="#2C3338",gc="#008A20",vc="#FFF",yc="#000",bc={colors:{background:dc,surface:vc,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#2271B1",highlightBorder:"#043959",highlightOver:"#135E96",success:gc,discount:gc,disabledPaymentButtons:dc,disabledPaymentButtonsAccent:pc,disabledButtons:"#A7AAAD",borderColor:"#C3C4C7",borderColorLight:pc,borderColorDark:fc,upcomingStepBackground:pc,textColor:hc,textColorLight:fc,textColorDark:yc,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:yc,applePayButtonRollOverColor:hc,noticeBackground:hc,defaultNoticeIconBackground:mc,textColorOnDarkBackground:vc,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:dc,placeHolderTextColor:mc},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}},_c=n(9976),Ec=n.n(_c),Sc=n(3980),wc=n.n(Sc);function Cc(e){return e.filter((function(e){return e})).join(" ")}var xc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kc=za((function(e){return xc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Pc=function(e){return"theme"!==e&&"innerRef"!==e},Nc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?kc:Pc};function Ac(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 Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tc=function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof i&&a&&(i=t.__emotion_forwardProp);var s=i||Nc(c),l=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],u[0][m])}var f=tc((function(e,t,n){return(0,g.createElement)(ec.Consumer,null,(function(r){var a=l&&e.as||c,u="",p=[],m=e;if(null==e.theme){for(var f in m={},e)m[f]=e[f];m.theme=r}"string"==typeof e.className?u=nc(t.registered,p,e.className):null!=e.className&&(u=e.className+" ");var h=Ja(d.concat(p),t.registered,m);rc(t,h,"string"==typeof a);u+=t.key+"-"+h.name,void 0!==o&&(u+=" "+o);var v=l&&void 0===i?Nc(a):s,y={};for(var b in e)l&&"as"===b||v(b)&&(y[b]=e[b]);return y.className=u,y.ref=n||e.innerRef,(0,g.createElement)(a,y)}))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=c,f.__emotion_styles=d,f.__emotion_forwardProp=i,Object.defineProperty(f,"toString",{value:function(){return"."+o}}),f.withComponent=function(t,r){return e(t,void 0!==r?Oc({},n||{},{},r):n).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Tc[e]=Tc(e)}));var Ic=Tc;function Dc(){var e=Ec()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return Dc=function(){return e},e}var Lc=ye()("composite-checkout:checkout-error-boundary"),Rc=Ic.div(Dc()),Fc=function(e){In()(n,e);var t=Ln()(n);function n(e){var r;return kn()(this,n),r=t.call(this,e),ee()(On()(r),"state",{hasError:!1,currentError:null}),r}return Nn()(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);Lc("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,h.createElement)(jc,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(v().Component);function jc(e){var t=e.errorMessage;return(0,h.createElement)(Rc,null,t)}function Mc(){var e=Ec()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Mc=function(){return e},e}var Bc=Ic("button")(Mc(),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),$c,zc,Gc,Vc,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),zc,(function(e){return e.disabled?"not-allowed":"pointer"}),Vc,Gc,zc,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),$c,Hc,Hc,$c),Uc=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,o=e.fullWidth,a=X()(e,["className","buttonType","isBusy","children","fullWidth"]),c=Cc(["checkout-button"].concat(Xt()(n?["is-status-"+n]:[]),Xt()(r?["is-busy"]:[]),Xt()(t?[t]:[])));return(0,h.createElement)(Bc,P()({fullWidth:o,buttonType:n,className:c},a),i)};function Vc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function zc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function $c(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function Hc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Gc(e){return"text-button"===e.buttonType?"underline":"none"}function Wc(){var e=Ec()(["\n\tfill: #fff;\n"]);return Wc=function(){return e},e}function qc(e){var t=e.className,n=e.id;return(0,h.createElement)(Yc,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,h.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,h.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,h.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,h.createElement)("rect",{width:"20",height:"20"})))}qc.propTypes={className:wc().string,id:wc().string};var Yc=Ic.svg(Wc());var Kc,Xc,Zc,Jc=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=X()(e,["value","onClick","ariaLabel"]);return(0,h.createElement)(Uc,P()({onClick:n,buttonType:"primary","aria-label":r},i),t)};function Qc(){var e=Ec()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return Qc=function(){return e},e}function es(){var e=Ec()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return es=function(){return e},e}function ts(){var e=Ec()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return ts=function(){return e},e}function ns(){var e=Ec()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return ns=function(){return e},e}function rs(){var e=Ec()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return rs=function(){return e},e}function is(){var e=Ec()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return is=function(){return e},e}function os(){var e=Ec()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return os=function(){return e},e}function as(){var e=Ec()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return as=function(){return e},e}function cs(){var e=Ec()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return cs=function(){return e},e}function ss(){var e=Ec()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return ss=function(){return e},e}function ls(){var e=Ec()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return ls=function(){return e},e}function us(){var e=Ec()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return us=function(){return e},e}function ds(){var e=Ec()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return ds=function(){return e},e}function ps(){var e=Ec()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return ps=function(){return e},e}function ms(){var e=Ec()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return ms=function(){return e},e}function fs(){var e=Ec()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return fs=function(){return e},e}!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(Kc||(Kc={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL"}(Xc||(Xc={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(Zc||(Zc={}));ye()("composite-checkout:checkout"),Ic.div(fs(),(function(e){return e.theme.colors.outline}));var hs=Ic.div(ms(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),gs=Ic.div(ps(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),vs=function(e){var t=e.children,n=e.className;return(0,h.createElement)(gs,{className:Cc([n,"checkout__summary-area"])},t)},ys=Ic.div(ds(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var bs=Ic.div(us(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),_s=Ic.div(ls(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Es=Ic.div(ss(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),Ss=Ic.div(cs(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),ws=Ic.div(as(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function Cs(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,c=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,u=e.className,d=e.stepNumber,p=e.stepId,m=e.titleContent,f=e.goToThisStep,g=e.goToNextStep,v=e.activeStepContent,y=e.formStatus,b=e.completeStepContent,_=e.onError,__=Li().__;return(0,h.createElement)(Fc,{errorMessage:t||__("There was an error with this step."),onError:_},(0,h.createElement)(Es,{className:u},(0,h.createElement)(Ns,{id:p,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:y===Kc.READY&&l&&f&&!s?f:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,h.createElement)(Ss,{isVisible:s,className:"checkout-steps__step-content"},v,g&&s&&(0,h.createElement)(Jc,{onClick:g,value:y===Kc.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:y===Kc.VALIDATING?c||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:y!==Kc.READY,isBusy:y===Kc.VALIDATING})),l&&b?(0,h.createElement)(ws,{isVisible:!s,className:"checkout-steps__step-complete-content"},b):null))}Cs.propTypes={errorMessage:wc().string,onError:wc().func,editButtonAriaLabel:wc().string,editButtonText:wc().string,nextStepButtonText:wc().string,nextStepButtonAriaLabel:wc().string,isStepActive:wc().bool.isRequired,isStepComplete:wc().bool.isRequired,className:wc().string,stepNumber:wc().number,stepId:wc().string.isRequired,titleContent:wc().node.isRequired,goToThisStep:wc().func,goToNextStep:wc().func,activeStepContent:wc().node,formStatus:wc().string,completeStepContent:wc().node,validatingButtonText:wc().string,validatingButtonAriaLabel:wc().string};var xs=Ic.span(os(),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),ks=Ic.h2(is(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),Ps=Ic(Uc)(rs());function Ns(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,c=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=Li().__,u=!!c;return(0,h.createElement)(ks,{isComplete:a,isActive:o,className:Cc([n,"checkout-step__header"])},(0,h.createElement)(Ds,{isComplete:a,isActive:o,id:t},r||null),(0,h.createElement)(xs,{fullWidth:!u,isActive:o},i),u&&(0,h.createElement)(Ps,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||__("Edit this step")},s||__("Edit")))}var As=Ic.div(ns()),Os=Ic.div(ts(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),Ts=Ic.div(es(),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),Is=Ic(Ts)(Qc(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function Ds(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,h.createElement)(As,{className:Cc([r,"checkout-step__stepper"])},(0,h.createElement)(Os,{isComplete:a},(0,h.createElement)(Ts,{isComplete:a,isActive:n},i),(0,h.createElement)(Is,null,(0,h.createElement)(qc,{id:o}))))}Ns.propTypes={id:wc().string,className:wc().string,stepNumber:wc().number,title:wc().node.isRequired,isActive:wc().bool,isComplete:wc().bool,editButtonText:wc().string,editButtonAriaLabel:wc().string,onEdit:wc().func},Ds.propTypes={id:wc().string,className:wc().string,isComplete:wc().bool,isActive:wc().bool};var Ls,Rs,Fs=(0,h.createElement)(H,{icon:na,size:17}),js=function(e){var t=e.onNextStep,n=e.onPrevStep,r=(0,y.useSelect)((function(e){var t=e(f);return{domain:t.getSelectedDomain(),plan:t.getSelectedPlan(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),i=r.domain,o=r.plan,a=r.LaunchStep,c=r.isStepCompleted,s=r.isFlowCompleted,l=r.planProductId,u=(0,y.useSelect)((function(e){return e("automattic/onboard/plans").getPlanProductById(l)})),d=Gi().title,p=_i().siteSubdomain,m=function(){var e,t=T(),n=Qo().domainSearch;return null===(e=(0,y.useSelect)((function(e){if(n&&!(n.length<2))return e(yi).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}(),g=Qo().domainSearch,v=(0,y.useDispatch)(f).setStep,b=(0,h.createElement)("div",{className:"nux-launch__summary-item"},(0,h.createElement)("p",null,(0,F.__)("Site","full-site-editing"),": ",d)),_=(0,h.createElement)("div",{className:"nux-launch__summary-item"},null!=i&&i.domain_name?(0,h.createElement)("p",null,(0,F.__)("Custom domain","full-site-editing"),": ",i.domain_name):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",null,(0,F.__)("Free site address","full-site-editing"),": ",null==p?void 0:p.domain),(0,h.createElement)(j.Tip,null,g?(0,h.createInterpolateElement)((0,F.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,h.createElement)("span",{className:R()("nux-launch__summary-item__domain-name",{"is-loading":!m})},(null==m?void 0:m.domain_name)||"loading-example.com"),Link:(0,h.createElement)(j.Button,{isLink:!0,onClick:function(){return v(a.Domain)}})}):(0,F.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),E=(0,h.createElement)("div",{className:"nux-launch__summary-item"},o&&u&&!o.isFree?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",o.title),(0,F.__)("Plan subscription","full-site-editing"),": ",u.price," ",(0,F.__)("per month, billed yearly","full-site-editing")):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,h.createElement)("p",null,(0,F.__)("Plan subscription: Free forever","full-site-editing")),(0,h.createElement)(j.Tip,null,(0,h.createInterpolateElement)((0,F.sprintf)((0,F.__)("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,h.createElement)(j.Button,{isLink:!0,onClick:function(){return v(a.Plan)}})}))));return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Launch your site","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Your site will be made public and ready to share with others.","full-site-editing")))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(uc,{theme:bc},(0,h.createElement)(hs,null,c(a.Plan)&&(0,h.createElement)(vs,null,(0,h.createElement)(ys,{className:"nux-launch__feature-list"},(0,h.createElement)("h3",{className:"nux-launch__feature-list-title"},(0,F.__)("Included in your plan","full-site-editing")),(0,h.createElement)("ul",{className:"nux-launch__feature-item-group"},null==o?void 0:o.features.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"nux-launch__feature-item"},Fs," ",e)}))),(0,h.createElement)("p",null,(0,F.__)("Questions?","full-site-editing")," ",(0,h.createElement)(j.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},(0,F.__)("Ask a Happiness Engineer","full-site-editing"))))),(0,h.createElement)(bs,null,(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your site name","full-site-editing"),isStepComplete:c(a.Name),goToThisStep:function(){return v(a.Name)},completeStepContent:b,stepId:"name",formStatus:Kc.READY}),(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your domain","full-site-editing"),isStepComplete:c(a.Domain),goToThisStep:function(){return v(a.Domain)},completeStepContent:_,stepId:"domain",formStatus:Kc.READY}),(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your plan","full-site-editing"),isStepComplete:c(a.Plan),goToThisStep:function(){return v(a.Plan)},completeStepContent:E,stepId:"plan",formStatus:Kc.READY}),(0,h.createElement)(_s,null,(0,h.createElement)(j.Button,{isPrimary:!0,disabled:!s,onClick:t,className:"nux-launch__submit-button"},(0,F.__)("Launch your site","full-site-editing"))))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==n||n()}}))))},Ms=function(e){var t,n=e.onSubmit,r=(0,y.useSelect)((function(e){return e(f).getState()})).step,i=(0,y.useSelect)((function(e){return e(f).getLaunchStep()})),o=(0,y.useSelect)((function(e){return e(f).getLaunchSequence()})),a=(0,y.useSelect)((function(e){return e(f).getFirstIncompleteStep()})),c=(0,y.useDispatch)(f),s=c.setStep,l=c.setSidebarFullscreen,u=c.unsetSidebarFullscreen,d=(t={},ee()(t,i.Name,Wi),ee()(t,i.Domain,ta),ee()(t,i.Plan,Aa),ee()(t,i.Final,js),t),p=o.indexOf(r),m=d[r];return g.useEffect((function(){a&&a!==i.Name&&s(a)}),[]),(0,h.createElement)(m,{onPrevStep:function(){var e=p-1;e<0&&(e=0,l()),s(o[e])},onNextStep:function(){var e=p+1;e>o.length-1&&(null==n||n()),u(),s(o[e])}})},Bs=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Circle,{cx:"12",cy:"12",r:"5"})),Us=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,o=e.onClick;return(0,h.createElement)(j.Button,{className:R()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:o,disabled:i,isLink:!0},(0,h.createElement)(H,{icon:n?na:Bs,size:16}),(0,h.createElement)("span",null,t))},Vs=function(e){var t,n=e.onMenuItemClick,__=Li().__,r=(0,y.useSelect)((function(e){var t=e(f);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),i=r.currentStep,o=r.LaunchStep,a=r.LaunchSequence,c=r.isStepCompleted,s=r.isFlowCompleted,l=(t={},ee()(t,o.Name,__("Name your site","full-site-editing")),ee()(t,o.Domain,__("Select a domain","full-site-editing")),ee()(t,o.Plan,__("Select a plan","full-site-editing")),ee()(t,o.Final,__("Launch your site","full-site-editing")),t),u=(0,y.useDispatch)(f).setStep;return(0,h.createElement)("div",{className:"nux-launch-menu"},(0,h.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,h.createElement)("div",{className:"nux-launch-menu__item-group"},a.map((function(e){return(0,h.createElement)(Us,{key:e,title:l[e],isCompleted:c(e),isCurrent:e===i,onClick:function(){return function(e){u(e),n(e)}(e)},isDisabled:e===o.Final&&!s})}))))},zs=function(){var e=(0,y.useDispatch)(f),t=e.setStep,n=e.unsetSidebarFullscreen,r=(0,y.useSelect)((function(e){return e(f).getLaunchSequence()}));return(0,h.createElement)("div",{className:"nux-launch-sidebar"},(0,h.createElement)("div",{className:"nux-launch-sidebar__header"},(0,h.createElement)(Oi,null,(0,F.__)("You're almost there!","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,h.createElement)("div",{className:"nux-launch-sidebar__body"},(0,h.createElement)(Vs,{onMenuItemClick:function(){n()}})),(0,h.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Vi,{onClick:function(){t(r[0]),n()}},(0,F.__)("Get Started","full-site-editing")))))},$s=function(){var __=Li().__,e=(0,y.useSelect)((function(e){var t=e(f);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,r=n.indexOf(t)+1,i=n.length,o=(0,F.sprintf)(__("%1$d of %2$d","full-site-editing"),r,i);return(0,h.createElement)("div",{className:"nux-launch-progress"},o)},Hs=function(e){var t=e.onClose,n=g.useContext(x).siteId,r=(0,y.useSelect)((function(e){return e(f).getState()})),i=r.step,o=r.isSidebarFullscreen,a=g.useState(!1),c=D()(a,2),s=c[0],l=c[1],u=(0,y.useDispatch)(m).launchSite;return function(){var e=g.useContext(x),t=e.siteId,n=e.redirectTo,r=(0,y.useSelect)((function(e){return e(bi).getState()})).planProductId,i=(0,y.useSelect)((function(e){return e(vi).isPlanProductFree(r)})),o=Ai().isSiteLaunched,a=_i().siteSubdomain,c=Ni().goToCheckout;g.useEffect((function(){if(o){if(!i)return void c();n("/home/".concat((null==a?void 0:a.domain)||t))}}),[o])}(),(0,h.createElement)(j.Modal,{open:!0,className:R()("nux-launch-modal","step-".concat(i),o?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},s?(0,h.createElement)("div",{className:"nux-launch-modal-body__launching"},(0,F.__)("Hooray! Your site will be ready shortly.","full-site-editing")):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"nux-launch-modal-body"},(0,h.createElement)("div",{className:"nux-launch-modal-header"},(0,h.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,h.createElement)(H,{icon:W,size:36})),(0,h.createElement)($s,null)),(0,h.createElement)(Ms,{onSubmit:function(){u(n),l(!0)}})),(0,h.createElement)("div",{className:"nux-launch-modal-aside"},(0,h.createElement)(zs,null)),(0,h.createElement)(j.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":(0,F.__)("Close dialog","full-site-editing"),disabled:!t},(0,h.createElement)("span",null,(0,h.createElement)(H,{icon:q,size:24})))))},Gs=function(e){var t=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat("https://wordpress.com").concat(t))},Ws=function(){try{var e,t;return null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl}catch(n){return window.location.href}},qs=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="a8c.wpcom-block-editor.openCheckoutModal",o=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;if((0,_.hasAction)(i)&&o)(0,_.doAction)(i);else{var a=(0,w.addQueryArgs)("/checkout/".concat(e),S()({},!r&&{redirect_to:"/home/".concat(e)}));Gs(a)}};function Ys(){return(Ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ks(e){return"/"===e.charAt(0)}function Xs(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}Ls="a8c-editor-site-launch",Rs={render:function(){var e,t=(0,y.useSelect)((function(e){return e(f).getState()})).isSidebarOpen,n=(0,y.useDispatch)(f),r=n.closeSidebar,i=n.setSidebarFullscreen,o=n.unsetSidebarFullscreen;return g.useEffect((function(){window.innerWidth<782?i():o()}),[t,i,o]),g.useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,_.hasAction)(e)&&(0,_.doAction)(e,{hidden:t})}),[t]),t?(0,h.createElement)(O,{localeSlug:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale},(0,h.createElement)(x.Provider,{value:{siteId:window._currentSiteId,flow:ea,redirectTo:Gs,openCheckout:qs,getCurrentLaunchFlowUrl:Ws}},(0,h.createElement)(Hs,{onClose:r}))):null}},(0,b.registerPlugin)(Ls,Rs);var Zs=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&Ks(e),a=t&&Ks(t),c=o||a;if(e&&Ks(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var s=i[i.length-1];n="."===s||".."===s||""===s}else n=!1;for(var l=0,u=i.length;u>=0;u--){var d=i[u];"."===d?Xs(i,u):".."===d?(Xs(i,u),l++):l&&(Xs(i,u),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&Ks(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function Js(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var Qs=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=Js(t),i=Js(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},el="Invariant failed";var tl=function(e,t){if(!e)throw new Error(el)};function nl(e){return"/"===e.charAt(0)?e:"/"+e}function rl(e){return"/"===e.charAt(0)?e.substr(1):e}function il(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function ol(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function al(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function cl(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Ys({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Zs(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function sl(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var ll=!("undefined"==typeof window||!window.document||!window.document.createElement);function ul(e,t){t(window.confirm(e))}var dl="popstate",pl="hashchange";function ml(){try{return window.history.state||{}}catch(e){return{}}}function fl(e){void 0===e&&(e={}),ll||tl(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,s=o.getUserConfirmation,l=void 0===s?ul:s,u=o.keyLength,d=void 0===u?6:u,p=e.basename?ol(nl(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return p&&(o=il(o,p)),cl(o,r,n)}function f(){return Math.random().toString(36).substr(2,d)}var h=sl();function g(e){Ys(N,e),N.length=n.length,h.notifyListeners(N.location,N.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||_(m(e.state))}function y(){_(m(ml()))}var b=!1;function _(e){if(b)b=!1,g();else{h.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=N.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(b=!0,C(i))}(e)}))}}var E=m(ml()),S=[E.key];function w(e){return p+al(e)}function C(e){n.go(e)}var x=0;function k(e){1===(x+=e)&&1===e?(window.addEventListener(dl,v),i&&window.addEventListener(pl,y)):0===x&&(window.removeEventListener(dl,v),i&&window.removeEventListener(pl,y))}var P=!1;var N={length:n.length,action:"POP",location:E,createHref:w,push:function(e,t){var i="PUSH",o=cl(e,t,f(),N.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var l=S.indexOf(N.location.key),u=S.slice(0,l+1);u.push(o.key),S=u,g({action:i,location:o})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",o=cl(e,t,f(),N.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var l=S.indexOf(N.location.key);-1!==l&&(S[l]=o.key),g({action:i,location:o})}else window.location.replace(t)}}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return P||(k(1),P=!0),function(){return P&&(P=!1,k(-1)),t()}},listen:function(e){var t=h.appendListener(e);return k(1),function(){k(-1),t()}}};return N}var hl="hashchange",gl={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+rl(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:rl,decodePath:nl},slash:{encodePath:nl,decodePath:nl}};function vl(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function yl(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function bl(e){window.location.replace(vl(window.location.href)+"#"+e)}function _l(e){void 0===e&&(e={}),ll||tl(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?ul:r,o=n.hashType,a=void 0===o?"slash":o,c=e.basename?ol(nl(e.basename)):"",s=gl[a],l=s.encodePath,u=s.decodePath;function d(){var e=u(yl());return c&&(e=il(e,c)),cl(e)}var p=sl();function m(e){Ys(x,e),x.length=t.length,p.notifyListeners(x.location,x.action)}var f=!1,h=null;function g(){var e,t,n=yl(),r=l(n);if(n!==r)bl(r);else{var o=d(),a=x.location;if(!f&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(h===al(o))return;h=null,function(e){if(f)f=!1,m();else{var t="POP";p.confirmTransitionTo(e,t,i,(function(n){n?m({action:t,location:e}):function(e){var t=x.location,n=_.lastIndexOf(al(t));-1===n&&(n=0);var r=_.lastIndexOf(al(e));-1===r&&(r=0);var i=n-r;i&&(f=!0,E(i))}(e)}))}}(o)}}var v=yl(),y=l(v);v!==y&&bl(y);var b=d(),_=[al(b)];function E(e){t.go(e)}var S=0;function w(e){1===(S+=e)&&1===e?window.addEventListener(hl,g):0===S&&window.removeEventListener(hl,g)}var C=!1;var x={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=vl(window.location.href)),n+"#"+l(c+al(e))},push:function(e,t){var n="PUSH",r=cl(e,void 0,void 0,x.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=al(r),i=l(c+t);if(yl()!==i){h=t,function(e){window.location.hash=e}(i);var o=_.lastIndexOf(al(x.location)),a=_.slice(0,o+1);a.push(t),_=a,m({action:n,location:r})}else m()}}))},replace:function(e,t){var n="REPLACE",r=cl(e,void 0,void 0,x.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=al(r),i=l(c+t);yl()!==i&&(h=t,bl(i));var o=_.indexOf(al(x.location));-1!==o&&(_[o]=t),m({action:n,location:r})}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return C||(w(1),C=!0),function(){return C&&(C=!1,w(-1)),t()}},listen:function(e){var t=p.appendListener(e);return w(1),function(){w(-1),t()}}};return x}function El(e,t,n){return Math.min(Math.max(e,t),n)}function Sl(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,c=t.keyLength,s=void 0===c?6:c,l=sl();function u(e){Ys(g,e),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function d(){return Math.random().toString(36).substr(2,s)}var p=El(a,0,i.length-1),m=i.map((function(e){return cl(e,void 0,"string"==typeof e?d():e.key||d())})),f=al;function h(e){var t=El(g.index+e,0,g.entries.length-1),r=g.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var g={length:m.length,action:"POP",location:m[p],index:p,entries:m,createHref:f,push:function(e,t){var r="PUSH",i=cl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=cl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(g.entries[g.index]=i,u({action:r,location:i}))}))},go:h,goBack:function(){h(-1)},goForward:function(){h(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return g}var wl=n(8051),Cl=n.n(wl),xl=1073741823;function kl(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var Pl=v().createContext||function(e,t){var n,r,i="__create-react-context-"+Cl()()+"__",o=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=kl(t.props.value),t}Ba()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):xl,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(g.Component);o.childContextTypes=((n={})[i]=wc().object.isRequired,n);var a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Ba()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?xl:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?xl:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(g.Component);return a.contextTypes=((r={})[i]=wc().object,r),{Provider:o,Consumer:a}},Nl=n(99),Al=n.n(Nl),Ol=(n(8570),function(e){var t=Pl();return t.displayName=e,t}("Router")),Tl=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Oa(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return v().createElement(Ol.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(v().Component);var Il=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Sl(t.props),t}return Oa(t,e),t.prototype.render=function(){return v().createElement(Tl,{history:this.history,children:this.props.children})},t}(v().Component);var Dl=function(e){function t(){return e.apply(this,arguments)||this}Oa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(v().Component);var Ll={},Rl=0;function Fl(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Ll[e])return Ll[e];var t=Al().compile(e);return Rl<1e4&&(Ll[e]=t,Rl++),t}(e)(t,{pretty:!0})}function jl(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var r=e.history,o=e.staticContext,a=i?r.push:r.replace,c=cl(t?"string"==typeof n?Fl(n,t.params):Ys({},n,{pathname:Fl(n.pathname,t.params)}):n);return o?(a(c),null):v().createElement(Dl,{onMount:function(){a(c)},onUpdate:function(e,t){var n,r,i=cl(t.to);n=i,r=Ys({},c,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&Qs(n.state,r.state)||a(c)},to:n})}))}var Ml={},Bl=0;function Ul(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Ml[n]||(Ml[n]={});if(r[e])return r[e];var i=[],o={regexp:Al()(e,i,t),keys:i};return Bl<1e4&&(r[e]=o,Bl++),o}(n,{end:o,strict:c,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Vl=function(e){function t(){return e.apply(this,arguments)||this}return Oa(t,e),t.prototype.render=function(){var e=this;return v().createElement(Ol.Consumer,null,(function(t){t||tl(!1);var n=e.props.location||t.location,r=Ys({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?Ul(n.pathname,e.props):t.match}),i=e.props,o=i.children,a=i.component,c=i.render;return Array.isArray(o)&&0===o.length&&(o=null),v().createElement(Ol.Provider,{value:r},r.match?o?"function"==typeof o?o(r):o:a?v().createElement(a,r):c?c(r):null:"function"==typeof o?o(r):null)}))},t}(v().Component);function zl(e){return"/"===e.charAt(0)?e:"/"+e}function $l(e,t){if(!e)return t;var n=zl(e);return 0!==t.pathname.indexOf(n)?t:Ys({},t,{pathname:t.pathname.substr(n.length)})}function Hl(e){return"string"==typeof e?e:al(e)}function Gl(e){return function(){tl(!1)}}function Wl(){}v().Component;var ql=function(e){function t(){return e.apply(this,arguments)||this}return Oa(t,e),t.prototype.render=function(){var e=this;return v().createElement(Ol.Consumer,null,(function(t){t||tl(!1);var n,r,i=e.props.location||t.location;return v().Children.forEach(e.props.children,(function(e){if(null==r&&v().isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?Ul(i.pathname,Ys({},e.props,{path:o})):t.match}})),r?v().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(v().Component);var Yl=v().useContext;function Kl(){return Yl(Ol).history}function Xl(){return Yl(Ol).location}var Zl,Jl=function(e){var t=e.selector,n=Xl().pathname;return g.useEffect((function(){var e;t?null===(e=document.querySelector(t))||void 0===e||e.scrollTo(0,0):window.scrollTo(0,0)}),[t,n]),null};!function(e){e.Summary="/",e.PlanDetails="/plan-details",e.DomainDetails="/domain-details",e.Success="/success"}(Zl||(Zl={}));v().Component;v().Component;var Ql=function(e,t){return"function"==typeof e?e(t):e},eu=function(e,t){return"string"==typeof e?cl(e,null,null,t):e},tu=function(e){return e},nu=v().forwardRef;void 0===nu&&(nu=tu);var ru=nu((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=B(e,["innerRef","navigate","onClick"]),a=o.target,c=Ys({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=tu!==nu&&t||n,v().createElement("a",c)}));var iu=nu((function(e,t){var n=e.component,r=void 0===n?ru:n,i=e.replace,o=e.to,a=e.innerRef,c=B(e,["component","replace","to","innerRef"]);return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var n=e.history,s=eu(Ql(o,e.location),e.location),l=s?n.createHref(s):"",u=Ys({},c,{href:l,navigate:function(){var t=Ql(o,e.location);(i?n.replace:n.push)(t)}});return tu!==nu?u.ref=t||a:u.innerRef=a,v().createElement(r,u)}))})),ou=function(e){return e},au=v().forwardRef;void 0===au&&(au=ou);au((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,a=e.activeStyle,c=e.className,s=e.exact,l=e.isActive,u=e.location,d=e.strict,p=e.style,m=e.to,f=e.innerRef,h=B(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var n=u||e.location,i=eu(Ql(m,n),n),g=i.pathname,y=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=y?Ul(n.pathname,{path:y,exact:s,strict:d}):null,_=!!(l?l(b,n):b),E=_?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,o):c,S=_?Ys({},p,{},a):p,w=Ys({"aria-current":_&&r||null,className:E,style:S,to:i},h);return ou!==au?w.ref=t||f:w.innerRef=f,v().createElement(iu,w)}))}));function cu(){var e=function(){var e=g.useContext(x).siteId,t=(0,y.useDispatch)(gi).getCart,n=g.useState(void 0),r=D()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return Pi(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}();return null==e?void 0:e.product_id}var su=function(e){var t=e.label,n=e.badgeText;return(0,h.createElement)("div",{className:"focused-launch-summary-item__leading-side"},(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},t),n?(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},n):null)},lu=function(e){var t=e.nodeType,n=e.children;return(0,h.createElement)("div",{className:R()({"focused-launch-summary-item__warning-note":"WARNING"===t,"focused-launch-summary-item__price-cost":"PRICE"===t})},n)},uu=function(e){var t=e.children,n=e.isSelected,r=void 0!==n&&n,i=e.readOnly,o=void 0!==i&&i,a=e.isLoading,c=X()(e,["children","isSelected","readOnly","isLoading"]);return(0,h.createElement)("button",P()({},c,{disabled:o,className:R()("focused-launch-summary__item",{"is-selected":r,"is-readonly":o,"is-loading":a})}),null==t?void 0:t[0],null==t?void 0:t[1])},du="focused-launch",pu=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),mu=(0,h.createElement)(j.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},(0,h.createElement)(j.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),(0,h.createElement)(j.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),(0,h.createElement)(j.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),fu=function(e){var t=e.input,n=e.commentary,r=e.highlighted;return(0,h.createElement)("div",{className:R()("focused-launch-summary__step",{highlighted:r})},(0,h.createElement)("div",{className:"focused-launch-summary__data-input"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},t)),(0,h.createElement)("div",{className:"focused-launch-summary__side-commentary"},n))},hu=function(e){var t=e.stepIndex,n=e.value,r=e.onChange,i=e.onBlur;return(0,h.createElement)(fu,{highlighted:!0,input:(0,h.createElement)(j.TextControl,{className:"focused-launch-summary__input",label:(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Name your site","full-site-editing")),value:n,onChange:r,onBlur:i})})},gu=function(e){var t=e.stepIndex,n=e.existingSubdomain,r=e.currentDomain,i=e.initialDomainSearch,o=e.hasPaidDomain,a=e.onDomainSelect,c=e.onExistingSubdomainSelect,s=e.isLoading,l=e.highlighted,u=T();return(0,h.createElement)(fu,{highlighted:!!l,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your domain","full-site-editing"),(0,h.createElement)(j.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},(0,h.createElement)("span",null,mu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)(uu,{readOnly:!0},(0,h.createElement)(su,{label:(null==r?void 0:r.domain_name)||""}),(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)(H,{icon:na,size:18})," ",(0,F.__)("Purchased","full-site-editing")))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)(Ko,{header:(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Confirm your domain","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),areDependenciesLoading:s,existingSubdomain:n,currentDomain:r,onDomainSelect:a,onExistingSubdomainSelect:c,initialDomainSearch:i,showSearchField:!1,analyticsFlowId:du,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:"individual-item",locale:u,orderSubDomainsLast:!0}),(0,h.createElement)(iu,{to:Zl.DomainDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all domains","full-site-editing"))),commentary:(0,h.createElement)(h.Fragment,null,o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Stand out with a unique domain","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Easy to remember and easy to share","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Builds brand recognition and trust","full-site-editing")))))})},vu=function(e){var t,n=e.stepIndex,r=e.highlighted,i=e.hasPaidPlan,o=void 0!==i&&i,a=e.hasPaidDomain,c=void 0!==a&&a,s=e.selectedPaidDomain,l=void 0!==s&&s,u=(0,y.useDispatch)(bi).setPlanProductId,d=(0,y.useSelect)((function(e){return e(bi).getSelectedPlanProductId()})),p=(0,y.useSelect)((function(e){return e(bi).getPaidPlanProductId()})),m=(0,y.useSelect)((function(e){return e(br).getPlanByProductId(d)})),f=(0,y.useSelect)((function(e){return e(br).getPlanByProductId(p)})),v=(t=T(),{defaultPaidPlan:(0,y.useSelect)((function(e){return e(vi).getDefaultPaidPlan(t)})),defaultFreePlan:(0,y.useSelect)((function(e){return e(vi).getDefaultFreePlan(t)}))}),b=v.defaultPaidPlan,_=v.defaultFreePlan,E=g.useState(),S=D()(E,2),w=S[0],C=S[1];g.useEffect((function(){f&&b&&f.periodAgnosticSlug!==b.periodAgnosticSlug&&C(f)}),[f,b,w]);var x=function(e){return e&&e.periodAgnosticSlug===(null==m?void 0:m.periodAgnosticSlug)},k=Ai().sitePlan,P=w?[b,w,_]:[b,_],N=(0,y.useSelect)((function(e){return P.map((function(t){return e(br).getPlanProduct(null==t?void 0:t.periodAgnosticSlug,"ANNUALLY")}))}));return(0,h.createElement)(fu,{highlighted:!!r,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your plan","full-site-editing"),(0,h.createElement)(j.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},(0,h.createElement)("span",null,mu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)("div",null,(0,h.createElement)(uu,{readOnly:!0},(0,h.createElement)(su,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null==k?void 0:k.product_name_short)}),(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)(H,{icon:na,size:18})," ",(0,F.__)("Purchased","full-site-editing"))))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},n&&"".concat(n,". "),(0,F.__)("Confirm your plan","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)}))),(0,h.createElement)("div",null,P.map((function(e,t){var n,r;return e?(0,h.createElement)(uu,{key:e.periodAgnosticSlug,isLoading:!_||!b,onClick:function(){var e;return u(null===(e=N[t])||void 0===e?void 0:e.productId)},isSelected:x(e),readOnly:e.isFree&&(c||l)},(0,h.createElement)(su,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null!==(n=e.title)&&void 0!==n?n:""),badgeText:e.isPopular?(0,F.__)("Popular","full-site-editing"):""}),e.isFree?(0,h.createElement)(lu,{nodeType:c||l?"WARNING":"PRICE"},c||l?(0,F.__)("Not available with your domain selection","full-site-editing"):(0,F.__)("Free","full-site-editing")):(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)("span",null,null===(r=N[t])||void 0===r?void 0:r.price),(0,h.createElement)("span",null,(0,F.__)("/mo","full-site-editing")))):(0,h.createElement)(uu,{key:t,isLoading:!0})}))),(0,h.createElement)(iu,{to:Zl.PlanDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all plans","full-site-editing"))),commentary:o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Advanced tools and customization","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Unlimited premium themes","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Accept payments","full-site-editing"))))})},yu=function(){var e=(0,y.useSelect)((function(e){var t=e(bi).getState(),n=t.isSiteTitleStepVisible,r=t.domain,i=t.planProductId;return[e(bi).hasSelectedDomain(),n,r,i]})),t=D()(e,4),n=t[0],r=t[1],i=t[2],o=t[3],a=(0,y.useSelect)((function(e){return e(br).isPlanProductFree(o)})),c=(0,y.useDispatch)(gi).launchSite,s=(0,y.useDispatch)(bi),l=s.setModalDismissible,u=s.showModalTitle,d=s.showSiteTitleStep,p=Gi(),m=p.title,f=p.updateTitle,v=_i(),b=v.siteSubdomain,_=v.hasPaidDomain,E=Jo(),S=E.onDomainSelect,w=E.onExistingSubdomainSelect,C=E.currentDomain,k=Qo(),P=k.domainSearch,N=k.isLoading,A=Ai().isPaidPlan,O=g.useContext(x),T=O.siteId,I=O.redirectTo,L=Ni().goToCheckout;g.useEffect((function(){l(),u()}),[l,u]),g.useEffect((function(){r||wi(m)||d()}),[m,d,r]);var R=!!o||!!n||wi(m),j=!!n||!!o,M=[],B=[];r&&B.push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(hu,{stepIndex:n?t:void 0,key:t,value:m||"",onChange:f})})),(_?M:B).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(gu,{highlighted:R,stepIndex:n?t:void 0,key:t,existingSubdomain:Xo(null==b?void 0:b.domain),currentDomain:C,initialDomainSearch:P,hasPaidDomain:_,isLoading:N,onDomainSelect:S,onExistingSubdomainSelect:w})})),(A?M:B).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(vu,{highlighted:j,hasPaidPlan:A,selectedPaidDomain:i&&!i.is_free,hasPaidDomain:_,stepIndex:n?t:void 0,key:t})}));var U=m&&(_||n)&&(A||o);return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},(0,h.createElement)(Oi,{tagName:"h2"},_&&A?(0,F.__)("You're ready to launch","full-site-editing"):(0,F.__)("You're almost there","full-site-editing")),(0,h.createElement)(Ti,{tagName:"p",className:"focused-launch-summary__caption"},_&&A?(0,F.__)("You're good to go! Launch your site and share your site address.","full-site-editing"):(0,F.__)("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing"))),M.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:!1})})),B.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:B.length>1})})),(0,h.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},(0,h.createElement)(Bi,{className:"focused-launch-summary__launch-action-bar"},(0,h.createElement)(Vi,{className:"focused-launch-summary__launch-button",disabled:!U,onClick:function(){c(T),!i&&a||L()}},(0,F.__)("Launch your site","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-summary__ask-for-help"},(0,h.createElement)("p",null,(0,F.__)("Questions? Our experts can assist.","full-site-editing")),(0,h.createElement)("a",{href:"/help",onClick:function(e){var t=e.target.getAttribute("href");t&&(I(t),e.preventDefault())}},(0,F.__)("Ask a Happiness Engineer","full-site-editing")))))},bu=function(e){var t=e.className,n=X()(e,["className"]);return(0,h.createElement)(Ui,P()({},n,{className:R()("go-back-button__focused-launch",t)}),(0,h.createElement)(H,{icon:ji}),(0,F.__)("Go back","full-site-editing"))},_u="domain_step",Eu=function(){var e=g.useContext(x),t=e.getCurrentLaunchFlowUrl,n=e.redirectTo,r=T(),i=_i().siteSubdomain,o=Qo(),a=o.domainSearch,c=o.setDomainSearch,s=Jo(),l=s.onDomainSelect,u=s.onExistingSubdomainSelect,d=s.currentDomain,p=Kl(),m=function(){p.goBack()},f=t();return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(bu,{onClick:m})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(Oi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(Ko,{initialDomainSearch:a,onSetDomainSearch:c,onDomainSearchBlur:function(e){uo("calypso_newsite_domain_search_blur",{flow:du,query:e,where:_u})},currentDomain:d,existingSubdomain:Xo(null==i?void 0:i.domain),onDomainSelect:function(e){l(e),m()},onExistingSubdomainSelect:function(){u(),m()},analyticsFlowId:du,analyticsUiAlgo:_u,segregateFreeAndPaid:!0,locale:r,itemType:Do,onUseYourDomainClick:function(){var e="/start/new-launch/domains-launch/use-your-domain?siteSlug=".concat(null==i?void 0:i.domain,"&source=").concat(f);n(e)}})))},Su=function(){var e=T(),t=(0,y.useSelect)((function(e){return e(bi).getSelectedDomain()})),n=(0,y.useSelect)((function(e){return e(bi).getSelectedPlanProductId()})),r=Kl(),i=(0,y.useDispatch)(bi).updatePlan,o=t&&!t.is_free,a=function(){r.goBack()};return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(bu,{onClick:a})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(Oi,{tagName:"h2"},(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ti,{tagName:"h3"},(0,F.sprintf)((0,F.__)("There's no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(Na,{currentDomain:t,onPlanSelect:function(e){i(e),a()},currentPlanProductId:n,onPickDomainClick:a,customTagLines:{Free:(0,F.__)("Best for getting started","full-site-editing"),Business:(0,F.__)("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:o?ee()({},"Free",(0,F.__)("Unavailable with domain","full-site-editing")):void 0,CTAVariation:"FULL_WIDTH",locale:e,hidePlansComparison:!0,defaultAllPlansExpanded:!0})))},wu=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),Cu=function(e){var t=e.className;return(0,h.createElement)(j.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:t},(0,h.createElement)(j.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),(0,h.createElement)(j.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),(0,h.createElement)(j.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),(0,h.createElement)(j.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),(0,h.createElement)(j.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),(0,h.createElement)(j.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),(0,h.createElement)(j.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),(0,h.createElement)(j.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),(0,h.createElement)(j.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),(0,h.createElement)(j.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),(0,h.createElement)(j.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),(0,h.createElement)(j.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),(0,h.createElement)(j.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),(0,h.createElement)(j.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#09A884"}),(0,h.createElement)(j.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},xu=function(){var e=g.useContext(x),t=e.redirectTo,n=e.siteId,r=(0,y.useSelect)((function(e){return e(gi).isSiteLaunching(n)})),i=(0,y.useDispatch)(bi),o=i.unsetModalDismissible,a=i.hideModalTitle,c=i.closeFocusedLaunch,s=i.disablePersistentSuccessView,l=_i(),u=l.siteSubdomain,d=l.sitePrimaryDomain,p=g.useState(""),m=D()(p,2),f=m[0],v=m[1],b=g.useState(!1),_=D()(b,2),E=_[0],S=_[1];g.useEffect((function(){v("https://".concat(null==d?void 0:d.domain))}),[d]),g.useEffect((function(){o(),a()}),[o,a]);return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},(0,h.createElement)(Cu,{className:"focused-launch-success__confetti"}),(0,h.createElement)(Oi,{tagName:"h2"},(0,F.__)("Hooray!","full-site-editing")),(0,h.createElement)(Ti,{tagName:"h3"},r?(0,F.__)("Your site will be live shortly.","__i18n_text_domain__"):(0,F.__)("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing")),!r&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"focused-launch-success__url-wrapper"},(0,h.createElement)("span",{className:"focused-launch-success__url-field"},f),(0,h.createElement)("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":(0,F.__)("Visit site","full-site-editing")},(0,h.createElement)(H,{icon:wu,size:16})),(0,h.createElement)(j.ClipboardButton,{text:f,onCopy:function(){return S(!0)},onFinishCopy:function(){return S(!1)},className:"focused-launch-success__url-copy-button"},E?(0,F.__)("Copied!","full-site-editing"):(0,F.__)("Copy Link","full-site-editing"))),(0,h.createElement)(Vi,{onClick:function(){s(),c()},className:"focused-launch-success__continue-editing-button"},(0,F.__)("Continue Editing","full-site-editing")),(0,h.createElement)(Ui,{onClick:function(){s(),t("/home/".concat(null==u?void 0:u.domain))}},(0,F.__)("Back home","full-site-editing"))))},ku=function(){var e=Ai(),t=e.isSiteLaunched,n=e.isSiteLaunching,r=(0,y.useDispatch)(bi).enablePersistentSuccessView,i=(0,y.useSelect)((function(e){var t=e(bi).getState(),n=t.planProductId,r=t.shouldDisplaySuccessView;return[e(bi).hasSelectedDomain(),n,r]})),o=D()(i,3),a=o[0],c=o[1],s=o[2];g.useEffect((function(){t&&r()}),[t,r]);var l=Zo(),u=(0,y.useDispatch)(bi).setDomain;g.useEffect((function(){!a&&l&&u(l)}),[a,l,u]);var d=cu(),p=(0,y.useDispatch)(bi).setPlanProductId;return g.useEffect((function(){!c&&d&&p(d)}),[c,d,p]),(0,h.createElement)(Il,{initialEntries:[Zl.Summary,Zl.Success],initialIndex:s?1:0},(0,h.createElement)(Jl,{selector:".components-modal__content"}),(t||n)&&(0,h.createElement)(jl,{to:Zl.Success}),(0,h.createElement)(ql,null,(0,h.createElement)(Vl,{path:Zl.DomainDetails},(0,h.createElement)(Eu,null)),(0,h.createElement)(Vl,{path:Zl.PlanDetails},(0,h.createElement)(Su,null)),(0,h.createElement)(Vl,{path:Zl.Success},(0,h.createElement)(xu,null)),(0,h.createElement)(Vl,{path:Zl.Summary},(0,h.createElement)(yu,null))))},Pu=function(e){var t=e.locale,n=void 0===t?"en":t,r=e.siteId,i=e.openCheckout,o=e.redirectTo,a=e.getCurrentLaunchFlowUrl,c=(0,y.useSelect)((function(e){return e(bi).getState()})),s=c.isModalDismissible,l=c.isModalTitleVisible,u=c.shouldDisplaySuccessView,d=(0,y.useDispatch)(bi).closeFocusedLaunch;return(0,h.createElement)(O,{localeSlug:n},(0,h.createElement)(j.Modal,{open:!0,className:R()("launch__focused-modal",{"launch__focused-modal--hide-title":!l}),overlayClassName:R()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":u}),bodyOpenClassName:"has-focused-launch-modal",onRequestClose:d,title:(0,F.__)("Complete setup","full-site-editing"),icon:(0,h.createElement)(H,{icon:W,size:36}),isDismissible:s,shouldCloseOnEsc:s,shouldCloseOnClickOutside:s},(0,h.createElement)("div",{className:"launch__focused-modal-body"},(0,h.createElement)(x.Provider,{value:{siteId:r,redirectTo:o,openCheckout:i,flow:du,getCurrentLaunchFlowUrl:a}},(0,h.createElement)(ku,null)))))};!function(e,t){(0,b.registerPlugin)(e,t)}("a8c-editor-editor-focused-launch",{render:function(){var e,t=window._currentSiteId,n=(0,y.useSelect)((function(e){var n=e(f).getState();return[n.isFocusedLaunchOpen,n.shouldDisplaySuccessView,e(m).isSiteLaunched(t)]})),r=D()(n,3),i=r[0],o=r[1],a=r[2];return g.useEffect((function(){a&&document.body.classList.add("is-focused-launch-complete")}),[a]),i||o?(0,h.createElement)(Pu,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:qs,redirectTo:Gs,siteId:t,getCurrentLaunchFlowUrl:Ws}):null}})},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=t.formatters[n];if("function"==typeof r){var o=i[l];e=r.call(a,o),i.splice(l,1),l--}return e})),t.formatArgs.call(a,i);var u=a.log||t.log;u.apply(a,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var a=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),a({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();a((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1164)}());
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
+ */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case c:case a:case m:return e;default:switch(e=e&&e.$$typeof){case l:case p:case g:case h:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},1164:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,{getSite:function(){return He},getSiteDomains:function(){return Ge}});var i={};n.r(i),n.d(i,{getNewSite:function(){return qe},getNewSiteError:function(){return Ye},getPrimarySiteDomain:function(){return rt},getSite:function(){return Je},getSiteDomains:function(){return nt},getSiteSubdomain:function(){return it},getSiteTitle:function(){return Qe},getState:function(){return We},isFetchingSite:function(){return Ke},isFetchingSiteDetails:function(){return Ze},isNewSite:function(){return Xe},isSiteLaunched:function(){return et},isSiteLaunching:function(){return tt}});var o={};n.r(o),n.d(o,{resetPlan:function(){return Ot},setFeatures:function(){return kt},setFeaturesByType:function(){return Pt},setPlanProducts:function(){return At},setPlans:function(){return Nt}});var a={};n.r(a),n.d(a,{getDefaultFreePlan:function(){return Bt},getDefaultPaidPlan:function(){return Mt},getFeatures:function(){return Dt},getFeaturesByType:function(){return Lt},getPlanByPath:function(){return $t},getPlanByPeriodAgnosticSlug:function(){return jt},getPlanByProductId:function(){return Rt},getPlanProduct:function(){return Ht},getPlanProductById:function(){return Ft},getPlansProducts:function(){return Vt},getPrices:function(){return zt},getSupportedPlans:function(){return Ut},isPlanEcommerce:function(){return Gt},isPlanFree:function(){return Wt},isPlanProductFree:function(){return qt}});var c={};n.r(c),n.d(c,{getSupportedPlans:function(){return Kn}});var s={};n.r(s),n.d(s,{fetchDomainSuggestions:function(){return or},receiveCategories:function(){return ir},receiveDomainAvailability:function(){return ar},receiveDomainSuggestionsError:function(){return sr},receiveDomainSuggestionsSuccess:function(){return cr}});var l={};n.r(l),n.d(l,{__internalGetDomainSuggestions:function(){return mr},getCategories:function(){return pr},isAvailable:function(){return dr}});var u={};n.r(u),n.d(u,{closeFocusedLaunch:function(){return jr},closeSidebar:function(){return Rr},confirmDomainSelection:function(){return Ar},disablePersistentSuccessView:function(){return Gr},enableExperimental:function(){return Mr},enablePersistentSuccessView:function(){return Hr},hideModalTitle:function(){return $r},openFocusedLaunch:function(){return Fr},openSidebar:function(){return Lr},setDomain:function(){return Pr},setDomainSearch:function(){return Or},setModalDismissible:function(){return Ur},setPlanProductId:function(){return Tr},setSidebarFullscreen:function(){return wr},setSiteTitle:function(){return kr},setStep:function(){return xr},showModalTitle:function(){return zr},showSiteTitleStep:function(){return Br},unsetDomain:function(){return Nr},unsetModalDismissible:function(){return Vr},unsetPlanProductId:function(){return Ir},unsetSidebarFullscreen:function(){return Cr},updatePlan:function(){return Dr}});var d={};n.r(d),n.d(d,{getCurrentStep:function(){return ai},getFirstIncompleteStep:function(){return ii},getLaunchSequence:function(){return Wr},getLaunchStep:function(){return qr},getPaidPlanProductId:function(){return Qr},getSelectedDomain:function(){return Zr},getSelectedPlan:function(){return Jr},getSelectedPlanProductId:function(){return Xr},getSiteTitle:function(){return oi},getState:function(){return Yr},hasPaidDomain:function(){return Kr},hasSelectedDomain:function(){return ei},isFlowCompleted:function(){return ni},isFlowStarted:function(){return ri},isStepCompleted:function(){return ti}});var p={};n.r(p),n.d(p,{getAllFeatures:function(){return ua},getRecommendedPlanSlug:function(){return da}});window["a8c-fse-common-data-stores"];var m="automattic/site",f="automattic/launch",h=window.wp.element,g=n(3804),v=n.n(g),y=window.wp.data,b=window.wp.plugins,_=window.wp.hooks,E=n(417),S=n.n(E),w=window.wp.url,C=function(e){window.location.href=e},x=g.createContext({siteId:0,redirectTo:C,getCurrentLaunchFlowUrl:function(){try{return window.location.href}catch(e){return}},openCheckout:function(e,t){C((0,w.addQueryArgs)("/checkout/".concat(e),S()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch"}),k=n(8527),P=n.n(k),N=window.wp.compose,A=(0,g.createContext)("en"),O=function(e){var t=e.children,n=e.localeSlug;return(0,h.createElement)(A.Provider,{value:n},t)};function T(){return(0,g.useContext)(A)}(0,N.createHigherOrderComponent)((function(e){return function(t){var n=T();return(0,h.createElement)(e,P()({locale:n},t))}}),"withLocale");var I=n(1068),D=n.n(I),L=n(2779),R=n.n(L),F=window.wp.i18n,j=window.wp.components;function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function U(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}var V,z,$,H=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=function(e,t){if(null==e)return{};var n,r,i=B(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["icon","size"]);return(0,h.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},G=window.wp.primitives,W=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,h.createElement)(G.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),q=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Y="automattic/site",K=n(2220),Z=n.n(K),X=n(4582),J=n.n(X),Q=n(1260),ee=n.n(Q);!function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(V||(V={})),function(e){e.INTERNAL="internal"}(z||(z={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}($||($={}));var te=(0,y.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),ne=(0,y.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:te,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return S()(S()({},e),{},ee()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],Z()(e,[n].map(J())));return S()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?S()(S()({},e),{},ee()({},t.siteId,S()(S()({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?S()(S()({},e),{},ee()({},t.siteId,{status:$.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?S()(S()({},e),{},ee()({},t.siteId,t.domains)):e}}),re=n(2954),ie=n.n(re),oe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ae=new Uint8Array(16);function ce(){if(!oe)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return oe(ae)}for(var se=[],le=0;le<256;++le)se[le]=(le+256).toString(16).substr(1);var ue=function(e,t){var n=t||0,r=se;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var de,pe=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||ce)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||ue(i)},me=n(2884),fe=n.n(me),he=n(8650),ge=n.n(he),ve=n(8049),ye=n.n(ve),be=ye()("wpcom-proxy-request"),_e="https://public-api.wordpress.com",Ee=window.location.protocol+"//"+window.location.host,Se=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),we=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),Ce=null,xe=!1,ke={},Pe=!!window.ProgressEvent&&!!window.FormData;be('using "origin": %o',Ee);var Ne=function(e,t){var n=Object.assign({},e);be("request(%o)",n),Ce||De();var r=pe();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=Pe,n.method=String(n.method||"GET").toUpperCase(),be("params object: %o",n);var i=new window.XMLHttpRequest;if(i.params=n,ke[r]=i,"function"==typeof t){var o=!1,a=function(e){if(!o){o=!0;var n=e.error||e.err||e;be("error: ",n),be("headers: ",e.headers),t(n,null,e.headers)}};i.addEventListener("load",(function(e){if(!o){o=!0;var n=e.response||i.response;be("body: ",n),be("headers: ",e.headers),t(null,n,e.headers)}})),i.addEventListener("abort",a),i.addEventListener("error",a)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,xe?Oe(n):(be("buffering API request since proxying <iframe> is not yet loaded"),de.push(n)),i},Ae=function(e,t){return"function"==typeof t?Ne(e,t):new Promise((function(t,n){Ne(e,(function(e,r){e?n(e):t(r)}))}))};function Oe(e){be("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!we)return;for(var t=0;t<e.length;t++){var n=Ie(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),Ce.contentWindow.postMessage(Se?JSON.stringify(e):e,_e)}function Te(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function Ie(e){return Te(e)?e:"object"==typeof e&&Te(e.fileContents)?e.fileContents:null}function De(){be("install()"),Ce&&(be("uninstall()"),window.removeEventListener("message",Le),document.body.removeChild(Ce),xe=!1,Ce=null),de=[],window.addEventListener("message",Le),(Ce=document.createElement("iframe")).src=_e+"/wp-admin/rest-proxy/?v=2.0#"+Ee,Ce.style.display="none",document.body.appendChild(Ce)}function Le(e){if(be("onmessage"),e.origin===_e)if(e.source===Ce.contentWindow){var t=e.data;if(!t)return be("no `data`, bailing");if("ready"!==t){if(Se&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){be('got "progress" event: %o',e);var t=ke[e.callbackId];if(t){var n=new(ge())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return be("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in ke))return be("bailing, no matching request with callback: %o",n);var r,i=ke[n],o=i.params,a=t[0],c=t[1],s=t[2];if(207===c||delete ke[n],o.metaAPI?c="metaAPIupdated"===a?200:500:be("got %o status code for URL: %o",c,o.path),"object"==typeof s)if(s.status=c,r=s["Content-Type"],/^application[/]x-ndjson($|;)/.test(r))return void Re(i,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),s);if(c&&2===Math.floor(c/100))!function(e,t,n){var r=new(ge())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(i,a,s);else Re(i,fe()(o,c,a),s)}else!function(){if(be('proxy <iframe> "load" event'),xe=!0,de){for(var e=0;e<de.length;e++)Oe(de[e]);de=null}}()}else be("ignoring message... iframe elements do not match");else be("ignoring message... %o !== %o",e.origin,_e)}function Re(e,t,n){var r=new(ge())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}var Fe,je=Ae,Me=function(e){return{type:"WPCOM_REQUEST",request:e}},Be=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},Ue={WPCOM_REQUEST:function(e){var t=e.request;return je(t)},FETCH_AND_PARSE:(Fe=ie()(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return Fe.apply(this,arguments)}),RELOAD_PROXY:function(){De()},REQUEST_ALL_BLOGS_ACCESS:function(){return Ae({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}};function Ve(e){var t=regeneratorRuntime.mark(l),n=regeneratorRuntime.mark(f),r=regeneratorRuntime.mark(h),i=regeneratorRuntime.mark(g),o=regeneratorRuntime.mark(v),a=function(){return{type:"FETCH_NEW_SITE"}},c=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},s=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function l(n){var r,i,o,a,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,i=Z()(n,["authToken"]),o={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},a=S()(S()(S()({},o),i),{},{validate:!1}),t.next=8,Me({path:"/sites/new",apiVersion:"1.1",method:"post",body:a,token:r});case 8:return l=t.sent,t.next=11,c(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,s(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var u=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},d=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},p=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},m=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function f(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:return t.prev=2,t.next=5,Me({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,p(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,m(e,z.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function h(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Me({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),r)}function g(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Me({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),i)}function v(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Me({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,u(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),o,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:v,receiveSiteTitle:u,fetchNewSite:a,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:c,receiveNewSiteFailed:s,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:l,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:f,launchSiteStart:d,launchSiteSuccess:p,launchSiteFailure:m,getCart:h,setCart:g}}var ze=regeneratorRuntime.mark(He),$e=regeneratorRuntime.mark(Ge);function He(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,y.dispatch)(Y).fetchSite();case 2:return n.prev=2,n.next=5,Me({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,y.dispatch)(Y).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,y.dispatch)(Y).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),ze,null,[[2,10]])}function Ge(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Me({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,y.dispatch)(Y).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),$e,null,[[0,8]])}var We=function(e){return e},qe=function(e){return e.newSite.data},Ye=function(e){return e.newSite.error},Ke=function(e){return e.newSite.isFetching},Ze=function(e){return e.isFetchingSiteDetails},Xe=function(e){return!!e.newSite.data},Je=function(e,t){return e.sites[t]},Qe=function(e,t){var n;return null===(n=(0,y.select)(Y).getSite(t))||void 0===n?void 0:n.name},et=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===$.SUCCESS},tt=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===$.IN_PROGRESS},nt=function(e,t){return e.sitesDomains[t]},rt=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},it=function(e,t){var n;return null===(n=(0,y.select)(Y).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))},ot=!1;var at,ct,st,lt,ut="free_plan",dt="personal-bundle",pt="value_bundle",mt="business-bundle",ft="ecommerce-bundle",ht="Free",gt="Personal",vt="Premium",yt="Business",bt="Ecommerce",_t="automattic/onboard/plans",Et=[dt,pt,mt,ft],St=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],wt=[ht,gt,vt,yt,bt],Ct=[ut].concat(Et,St),xt=(0,y.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return t.features;default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return t.featuresByType;default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return t.plans;default:return e}}}),kt=function(e){return{type:"SET_FEATURES",features:e}},Pt=function(e){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e}},Nt=function(e){return{type:"SET_PLANS",plans:e}},At=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},Ot=function(){return{type:"RESET_PLAN"}},Tt=window.wp.deprecated,It=n.n(Tt),Dt=function(e){return e.features},Lt=function(e){return e.featuresByType},Rt=function(e,t){if(t)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.productIds.indexOf(t)>-1}))},Ft=function(e,t){if(t)return(0,y.select)(_t).getPlansProducts().find((function(e){return e.productId===t}))},jt=function(e,t){if(t)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===t}))},Mt=function(e,t){return(0,y.select)(_t).getSupportedPlans(t).find((function(e){return"Premium"===e.periodAgnosticSlug}))},Bt=function(e,t){return(0,y.select)(_t).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===ht}))},Ut=function(e,t){return e.plans},Vt=function(e,t){return e.planProducts},zt=function(e,t){return It()("getPrices",{alternative:"getPlanProduct().price"}),(0,y.select)(_t).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},$t=function(e,t){if(t){var n=(0,y.select)(_t).getPlansProducts().find((function(e){return e.pathSlug===t}));if(n)return(0,y.select)(_t).getSupportedPlans().find((function(e){return e.periodAgnosticSlug===(null==n?void 0:n.periodAgnosticSlug)}))}},Ht=function(e,t,n){if(t&&n){var r=(0,y.select)(_t).getPlansProducts();return t===ht?r.find((function(e){return e.periodAgnosticSlug===t})):r.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},Gt=function(e,t){return t===bt},Wt=function(e,t){return t===ht},qt=function(e,t){return 1===t},Yt=n(9126),Kt=n(5182),Zt=n.n(Kt),Xt=n(7010);at={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},ct=["(","?"],st={")":["("],":":["?","?:"]},lt=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Jt={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function Qt(e){var t=function(e){for(var t,n,r,i,o=[],a=[];t=e.match(lt);){for(n=t[0],(r=e.substr(0,t.index).trim())&&o.push(r);i=a.pop();){if(st[n]){if(st[n][0]===i){n=st[n][1]||n;break}}else if(ct.indexOf(i)>=0||at[i]<at[n]){a.push(i);break}o.push(i)}st[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&o.push(e),o.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,i,o,a,c,s=[];for(n=0;n<e.length;n++){if(a=e[n],o=Jt[a]){for(r=o.length,i=Array(r);r--;)i[r]=s.pop();try{c=o.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;s.push(c)}return s[0]}(t,e)}}var en={contextDelimiter:"",onMissingKey:null};function tn(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},en)this.options[n]=void 0!==t&&n in t?t[n]:en[n]}tn.prototype.getPluralForm=function(e,t){var n,r,i,o=this.pluralForms[e];return o||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=Qt(e);return function(e){return+t({n:e})}}(r)),o=this.pluralForms[e]=i),o(t)},tn.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)};var nn=n(7839),rn=n.n(nn),on=n(5079),an=n.n(on),cn=n(2699),sn=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function ln(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(sn,(function(){var e,r,i,o,a;return e=arguments[3],r=arguments[5],"%"===(o=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===o?a=parseFloat(a)||0:"d"===o&&(a=parseInt(a)||0),void 0!==i&&("f"===o?a=a.toFixed(i):"s"===o&&(a=a.substr(0,i))),null!=a?a:"")}))}function un(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,c=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
24
  * @license See CREDITS.md
25
  * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
26
  */
27
+ function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}var dn=ye()("i18n-calypso"),pn="number_format_decimals",mn="number_format_thousands_sep",fn="messages",hn=[function(e){return e}],gn={};function vn(){wn.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function yn(e){return Array.prototype.slice.call(e)}function bn(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&vn("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",yn(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&vn("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",yn(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function En(e,t){return e.dcnpgettext(fn,t.context,t.original,t.plural,t.count)}function Sn(e,t){for(var n=hn.length-1;n>=0;n--){var r=hn[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return En(e.state.tannin,r)}return null}function wn(){if(!(this instanceof wn))return new wn;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:rn()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new cn.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}wn.throwErrors=!1,wn.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},wn.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},wn.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},wn.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return un(e,n,r,i)},wn.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},wn.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==gn[n+e])return gn[n+e];var r=an()().update(e).digest("hex");return gn[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)hn.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var s=Number(i.substr(5));hn.push(a(s))}else for(var l=Number(i.substr(5,c)),u=Number(i.substr(6+c)),d=l;d<=u;d++)hn.push(a(d))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new tn(ee()({},fn,this.state.locale)),this.state.numberFormatSettings.decimal_point=En(this.state.tannin,bn([pn])),this.state.numberFormatSettings.thousands_sep=En(this.state.tannin,bn([mn])),this.state.numberFormatSettings.decimal_point===pn&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===mn&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},wn.prototype.getLocale=function(){return this.state.locale},wn.prototype.getLocaleSlug=function(){return this.state.localeSlug},wn.prototype.getLocaleVariant=function(){return this.state.localeVariant},wn.prototype.isRtl=function(){return"rtl"===this.state.textDirection},wn.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},wn.prototype.hasTranslation=function(){return!!Sn(this,bn(arguments))},wn.prototype.translate=function(){var e=bn(arguments),t=Sn(this,e);if(t||(t=En(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=ln.apply(void 0,Zt()(n))}catch(i){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[r](i):window.console[r]("i18n sprintf error:",n)}}return e.components&&(t=(0,Xt.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},wn.prototype.reRenderTranslations=function(){dn("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},wn.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},wn.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var Cn=wn,xn=n(85),kn=n.n(xn),Pn=n(5198),Nn=n.n(Pn),An=n(8111),On=n.n(An),Tn=n(270),In=n.n(Tn),Dn=n(4564),Ln=n.n(Dn);var Rn=n(6718);var Fn=new Cn,jn=Fn.numberFormat.bind(Fn),Mn=Fn.translate.bind(Fn),Bn=(Fn.configure.bind(Fn),Fn.setLocale.bind(Fn),Fn.getLocale.bind(Fn),Fn.getLocaleSlug.bind(Fn),Fn.getLocaleVariant.bind(Fn),Fn.isRtl.bind(Fn),Fn.addTranslations.bind(Fn),Fn.reRenderTranslations.bind(Fn),Fn.registerComponentUpdateHook.bind(Fn),Fn.registerTranslateHook.bind(Fn),Fn.state,Fn.stateObserver,Fn.on.bind(Fn),Fn.off.bind(Fn),Fn.emit.bind(Fn),function(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)}}(Fn),function(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}}(Fn),function(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,Rn.useSubscription)(t)}var r=(0,N.createHigherOrderComponent)((function(e){return(0,g.forwardRef)((function(t,r){var i=n();return(0,h.createElement)(e,P()({},t,{isRtl:i,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}(Fn)),Un=(Bn.useRtl,Bn.withRtl,{AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}});function Vn(e){return Un[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}function zn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(!r||isNaN(e))return null;var i=S()(S()({},r),n),o=i.decimal,a=i.grouping,c=i.precision,s=i.symbol,l=e<0?"-":"",u=jn(Math.abs(e),{decimals:c,thousandsSep:a,decPoint:o});return n.stripZeros&&(u=$n(u,o)),"".concat(l).concat(s).concat(u)}function $n(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}var Hn=regeneratorRuntime.mark(Kn);function Gn(e){return zn(12*e.raw_price,e.currency_code,{stripZeros:!0})}function Wn(e){return zn(e.raw_price,e.currency_code,{stripZeros:!0})}function qn(e){return e.reduce((function(e,t){var n;return e[t.id]={id:t.id,name:t.name,description:t.description,type:null!==(n=t.type)&&void 0!==n?n:"checkbox"},e}),{})}function Yn(e,t){var n=Ct.reduce((function(n,r){var i=e.find((function(e){return e.product_slug===r}));if(!i)return n;var o,a=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return n.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?Wn(i):(o=i,zn(o.raw_price/12,o.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?Gn(i):Wn(i)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===Et[t]})),r=e.find((function(e){return e.storeSlug===St[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<Et.length;n++)t(n)}(n),n}function Kn(){var e,t,n,r,i,o,a,c=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:"en",s.next=3,Me({path:"/plans",query:(0,Yt.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,Be("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,r=n.body,i=r.plans.map((function(e){return{description:e.tagline,features:e.highlighted_features,storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:e.nonlocalized_short_name===ht,isPopular:e.nonlocalized_short_name===vt,periodAgnosticSlug:e.nonlocalized_short_name,productIds:e.products.map((function(e){return e.plan_id}))}})),o=Yn(t,i),a=qn(r.features),s.next=13,Nt(i);case 13:return s.next=15,At(o);case 15:return s.next=17,kt(a);case 17:return s.next=19,Pt(r.features_by_type);case 19:case"end":return s.stop()}}),Hn)}var Zn=!1;function Xn(){return Zn||(Zn=!0,(0,y.registerStore)(_t,{resolvers:c,actions:o,controls:Ue,reducer:xt,selectors:a})),_t}var Jn,Qn="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(Jn||(Jn={}));var er=n(5695),tr=n.n(er)(),nr={state:Jn.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},rr=(0,y.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nr,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?S()(S()({},e),{},{state:Jn.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?S()(S()({},e),{},{state:Jn.Success,data:S()(S()({},e.data),{},ee()({},tr(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?S()(S()({},e),{},{state:Jn.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?S()(S()({},e),{},ee()({},t.domainName,t.availability)):e}}),ir=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},or=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},ar=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},cr=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},sr=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}},lr=regeneratorRuntime.mark(pr),ur=regeneratorRuntime.mark(mr),dr=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,Be(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",ar(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",ar(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function pr(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Be("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",ir(e.body));case 4:case"end":return t.stop()}}),lr)}function mr(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.query){n.next=2;break}return n.abrupt("return",sr("Empty query"));case 2:return n.next=4,or();case 4:return n.prev=4,n.next=7,Me({apiVersion:"1.1",path:"/domains/suggestions",query:(0,Yt.stringify)(e)});case 7:t=n.sent,n.next=13;break;case 10:return n.prev=10,n.t0=n.catch(4),n.abrupt("return",sr(n.t0.message||Mn("Error while fetching server response")));case 13:if(t&&""!==t){n.next=15;break}return n.abrupt("return",sr(Mn("Invalid response from the server")));case 15:return n.abrupt("return",cr(e,t));case 16:case"end":return n.stop()}}),ur,null,[[4,10]])}var fr=function(e){function t(t,n){return S()(S()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(Zt()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),Zt()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)(Qn).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,y.select)("core/data").isResolving(Qn,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[tr(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}},hr=!1;function gr(e){var t=e.vendor;return hr||(hr=!0,(0,y.registerStore)(Qn,{actions:s,controls:Ue,reducer:rr,resolvers:l,selectors:fr(t)})),Qn}var vr=window.wp.dataControls,yr="automattic/launch",br="automattic/onboard/plans",_r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},Er=[_r.Name,_r.Domain,_r.Plan,_r.Final],Sr=(0,y.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isExperimental:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_EXPERIMENTAL"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e},shouldDisplaySuccessView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_SUCCESS_VIEW"===t.type||"DISABLE_SUCCESS_VIEW"!==t.type&&e}}),wr=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},Cr=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},xr=function(e){return{type:"SET_STEP",step:e}},kr=function(e){return{type:"SET_SITE_TITLE",title:e}},Pr=function(e){return{type:"SET_DOMAIN",domain:e}},Nr=function(){return{type:"UNSET_DOMAIN"}},Ar=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},Or=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},Tr=function(e){return{type:"SET_PLAN_PRODUCT_ID",planProductId:e}},Ir=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function Dr(e){return Tr(e)}var Lr=function(){return{type:"OPEN_SIDEBAR"}},Rr=function(){return{type:"CLOSE_SIDEBAR"}},Fr=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},jr=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},Mr=function(){return{type:"ENABLE_EXPERIMENTAL"}},Br=function(){return{type:"SHOW_SITE_TITLE_STEP"}},Ur=function(){return{type:"SET_MODAL_DISMISSIBLE"}},Vr=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},zr=function(){return{type:"SHOW_MODAL_TITLE"}},$r=function(){return{type:"HIDE_MODAL_TITLE"}},Hr=function(){return{type:"ENABLE_SUCCESS_VIEW"}},Gr=function(){return{type:"DISABLE_SUCCESS_VIEW"}},Wr=function(){return Er},qr=function(){return _r},Yr=function(e){return e},Kr=function(e){return!!e.domain&&!e.domain.is_free},Zr=function(e){return e.domain},Xr=function(e){return e.planProductId},Jr=function(e){return(0,y.select)(br).getPlanByProductId(e.planProductId)},Qr=function(e){var t=e.planProductId,n=(0,y.select)(br).isPlanProductFree(t);return t&&!n?e.planProductId:void 0},ei=function(e){return!!Zr(e)||e.confirmedDomainSelection},ti=function(e,t){if(t===_r.Plan)return!!Xr(e);if(t===_r.Name){var n=(0,y.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===_r.Domain&&(0,y.select)(yr).hasSelectedDomain()},ni=function(e){return Er.slice(0,Er.length-1).every((function(t){return ti(e,t)}))},ri=function(e){return Er.some((function(t){return ti(e,t)}))},ii=function(e){return Er.find((function(t){return!ti(e,t)}))},oi=function(e){return null==e?void 0:e.siteTitle},ai=function(e){return e.step};var ci,si,li,ui,di,pi,mi=(si=ci="WP_LAUNCH",li=ci+"_TS",ui={},di={getItem:function(e){return ui.hasOwnProperty(e)?ui[e]:null},setItem:function(e,t){ui[e]=String(t)},removeItem:function(e){delete ui[e]}},pi=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:di,{storageKey:si,storage:{getItem:function(e){var t=pi.getItem(li);return t&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(t)&&!new URLSearchParams(window.location.search).has("fresh")?pi.getItem(e):(pi.removeItem(si),pi.removeItem(li),null)},setItem:function(e,t){pi.setItem(li,JSON.stringify(Date.now())),pi.setItem(e,t)}}});(0,y.use)(y.plugins.persistence,mi);var fi=!1;var hi,gi=(hi={client_id:"",client_secret:""},ot||(ot=!0,(0,y.registerStore)(Y,{actions:Ve(hi),controls:Ue,reducer:ne,resolvers:r,selectors:i})),Y),vi=Xn(),yi=gr({vendor:"variation2_front"}),bi=(fi||(fi=!0,(0,y.registerStore)(yr,{actions:u,controls:vr.controls,reducer:Sr,selectors:d,persist:["domain","domainSearch","planProductId","confirmedDomainSelection","isExperimental","isSiteTitleStepVisible","shouldDisplaySuccessView"]})),yr);function _i(){var e=g.useContext(x).siteId,t=(0,y.useSelect)((function(t){return t(gi).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:(0,y.useSelect)((function(t){return t(gi).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}var Ei=(0,F.__)("Site Title","full-site-editing"),Si=function(e){var t=e.currentSiteTitle;return(void 0===t?"":t)===Ei},wi=function(e){return""!==e&&!Si({currentSiteTitle:e})},Ci=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},xi=function(e,t){return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t}}},ki=function(e){return!!e.is_domain_registration},Pi=function(e){return[ut,dt,pt,mt,ft].indexOf(e.product_slug)>-1};function Ni(){var e=g.useContext(x),t=e.siteId,n=e.flow,r=e.openCheckout,i=(0,y.useSelect)((function(e){return e(bi).getState()})),o=i.planProductId,a=i.domain,c=(0,y.useSelect)((function(e){return e(vi).getPlanProductById(o)})),s=(0,y.useSelect)((function(e){return e(vi).getPlanByProductId(o)})),l=(0,y.useSelect)((function(e){return e(vi).isPlanEcommerce(null==s?void 0:s.periodAgnosticSlug)})),u=_i().siteSubdomain,d=(0,y.useDispatch)(gi),p=d.getCart,m=d.setCart;return{goToCheckout:function(){var e=ie()(regeneratorRuntime.mark((function e(){var i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a&&xi(a,n),o=c&&Ci(c,n),e.next=4,p(t);case 4:return s=e.sent,e.next=7,m(t,S()(S()({},s),{},{products:[o,i]}));case 7:r((null==u?void 0:u.domain)||t.toString(),l);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}function Ai(){var e,t,n=g.useContext(x).siteId,r=(0,y.useSelect)((function(e){return e(gi).getSite(n)})),i=(0,y.useSelect)((function(e){return e(gi).isSiteLaunched(n)})),o=(0,y.useSelect)((function(e){return e(gi).isSiteLaunching(n)})),a=(0,y.useSelect)((function(e){return e(gi).isFetchingSiteDetails()}));return{sitePlan:null==r?void 0:r.plan,isPaidPlan:r&&!(null!==(e=r.plan)&&void 0!==e&&e.is_free),isSiteLaunched:i,isSiteLaunching:o,selectedFeatures:null==r||null===(t=r.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!a}}var Oi=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h1":r;return g.createElement(i,{className:R()("onboarding-title",t)},n)},Ti=function(e){var t=e.className,n=e.children,r=e.tagName,i=void 0===r?"h2":r;return g.createElement(i,{className:R()("onboarding-subtitle",t)},n)},Ii={__:F.__,_n:F._n,_nx:F._nx,_x:F._x,isRTL:F.isRTL,setLocaleData:F.setLocaleData},Di=g.createContext(Fi()),Li=function(){return g.useContext(Di)};(0,N.createHigherOrderComponent)((function(e){return function(t){var n=Li();return(0,h.createElement)(e,P()({},n,t))}}),"withI18n");function Ri(e,t,n){var r=e[t],i=n.hasFilter,o=n.applyFilters;return i("preTranslation")||i("postTranslation")?function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];var c=o("preTranslation",i,t,n);return o("postTranslation",r.apply(void 0,Zt()(c)),c,t,n)}:r}function Fi(e,t){var n=e?(0,F.createI18n)(e):Ii,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:(0,_.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:Ri(n,"__",c),_n:Ri(n,"_n",c),_nx:Ri(n,"_nx",c),_x:Ri(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}var ji=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),Mi=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),Bi=function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,o="";return!0===i&&(o="is-sticky"),!1===i&&(o="no-sticky"),(0,h.createElement)("div",{className:R()("action-buttons",t,o)},n)},Ui=function(e){var t=e.className,n=e.children,r=Z()(e,["className","children"]),__=Li().__;return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||__("Go back","full-site-editing"))},Vi=function(e){var t=e.className,n=e.children,r=Z()(e,["className","children"]),__=Li().__;return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||__("Continue","full-site-editing"))},zi=function(e){var t=e.className,n=e.children,r=e.arrow,i=void 0===r?"right":r,o=Z()(e,["className","children","arrow"]);return(0,h.createElement)(j.Button,P()({className:R()("action_buttons__button action-buttons__arrow action-buttons__arrow--".concat(i),t)},o),"left"===i&&(0,h.createElement)(H,{icon:ji}),n,"right"===i&&(0,h.createElement)(H,{icon:Mi}))},$i=function(e){var t=e.children;return(0,h.createElement)(h.Fragment,null,t)};function Hi(e,t,n){void 0===n&&(n={});var r=n.maxWait,i=(0,g.useRef)(null),o=(0,g.useRef)([]),a=n.leading,c=(0,g.useRef)(!1),s=(0,g.useRef)(null),l=(0,g.useRef)(!1),u=(0,g.useRef)(e);u.current=e;var d=(0,g.useCallback)((function(){clearTimeout(s.current),clearTimeout(i.current),i.current=null,o.current=[],s.current=null,c.current=!1}),[]);(0,g.useEffect)((function(){return function(){l.current=!0}}),[]);return[(0,g.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(o.current=e,clearTimeout(s.current),!s.current&&a&&!c.current)return u.current.apply(u,e),void(c.current=!0);s.current=setTimeout((function(){d(),l.current||u.current.apply(u,e)}),t),r&&!i.current&&(i.current=setTimeout((function(){var e=o.current;d(),l.current||u.current.apply(null,e)}),r))}),[r,t,d,a]),d,function(){s.current&&(u.current.apply(null,o.current),d())}]}function Gi(){var e=(0,g.useContext)(x).siteId,t=(0,y.useSelect)((function(t){return t(gi).getSiteTitle(e)})),n=(0,y.useSelect)((function(e){return e(bi)})).getSiteTitle(),r=(0,y.useDispatch)(bi).setSiteTitle,i=Hi((0,y.useDispatch)(gi).saveSiteTitle,1e3),o=D()(i,1)[0],a=void 0===n;return(0,g.useEffect)((function(){a||o(e,n)}),[n,o,e,a]),{title:a?t:n,updateTitle:r}}var Wi=function(e){var t=e.onPrevStep,n=e.onNextStep,r=Gi(),i=r.title,o=r.updateTitle,a=function(){null==n||n()};return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Name your site","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Pick a name for your site.","full-site-editing"))),(0,h.createElement)(Bi,{sticky:!1},(0,h.createElement)(Vi,{onClick:a,disabled:!(null!=i&&i.trim())}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)("form",{onSubmit:a},(0,h.createElement)(j.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:o,value:i||"",spellCheck:!1,autoComplete:"off",placeholder:(0,F.__)("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,h.createElement)("div",{className:"nux-launch-step__input-hint"},(0,h.createElement)(j.Tip,{size:18}),(0,h.createElement)("span",null,(0,F.__)("Don't worry, you can change it later.","full-site-editing"))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==t||t()}}),(0,h.createElement)(Vi,{onClick:a,disabled:!(null!=i&&i.trim())}))))},qi=window.lodash,Yi=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),Ki=ye()("calypso:analytics");n(8032);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(3421);var Zi=ye()("lib/load-script/callback-handler"),Xi=new Map;function Ji(){return Xi}function Qi(e){return Ji().has(e)}function eo(e,t){var n=Ji();Qi(e)?(Zi('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(Zi('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function to(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Ji(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));Zi(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function no(){var e=this.getAttribute("src");Zi('Handling successful request for "'.concat(e,'"')),to(e),this.onload=null}function ro(){var e=this.getAttribute("src");Zi('Handling failed request for "'.concat(e,'"')),to(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var io=ye()("lib/load-script/dom-operations");ye()("package/load-script");function oo(e,t){var n;if(!Qi(e)&&(n=function(e){io('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=no,t.onerror=ro,t}(e),io("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){eo(e,(function(e){null===e?t():n(e)}))}));eo(e,t)}var ao,co=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function so(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&oo("//stats.wp.com/w2.js?1");var lo=new cn.EventEmitter;function uo(e,t){if(Ki('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||(0,qi.includes)(co,e)){if(ao){var n=ao(t);t=S()(S()({},t),n)}t=(0,qi.omitBy)(t,qi.isUndefined),Ki('Recording event "%s" with actual props %o',e,t),so(["recordEvent",e,t]),lo.emit("record-event",e,t)}else Ki('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var po="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),mo=new Uint8Array(16);function fo(){if(!po)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return po(mo)}for(var ho=[],go=0;go<256;++go)ho[go]=(go+256).toString(16).substr(1);var vo=function(e,t){var n=t||0,r=ho;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var yo=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||fo)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[r+o]=i[o];return t||vo(i)};var bo=["en","ja","es","pt","fr","pt-br"],_o={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},Eo=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],So=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],wo="http://__domain__.invalid",Co=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(_o[r]||r,".").concat(e)),n}},xo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=(_o[i]||i)+r.pathname),r}},ko=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=(_o[r]||r)+n.pathname),n}},Po={"wordpress.com/support/":ko(Eo),"wordpress.com/blog/":ko(bo,/^\/blog\/?$/),"wordpress.com/tos/":Co("wordpress.com",So),"jetpack.com":Co("jetpack.com",["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]),"en.support.wordpress.com":xo("/support",Eo),"en.blog.wordpress.com":xo("/blog",bo,/^\/$/),"en.forums.wordpress.com":Co("forums.wordpress.com",["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"]),"automattic.com/privacy/":ko(["en","fr","de"]),"automattic.com/cookies/":ko(["en","fr","de"]),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),ko(Eo)(e,t))},"wordpress.com":Co("wordpress.com",So)};function No(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),wo)}catch(a){return e}if(n.origin===wo)return e;if(n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/")),(!t||"en"===t)&&"en.wordpress.com"===n.host)return n.host="wordpress.com",n.href;"en.wordpress.com"===n.host&&(n.host="wordpress.com");for(var i=[n.host,n.host+n.pathname,n.host+n.pathname.substr(0,1+n.pathname.indexOf("/",1))],o=i.length-1;o>=0;o--)if(i[o]in Po)return Po[i[o]](n,t,r).href;return e}function Ao(){var e=T();return(0,g.useCallback)((function(t,n,r){return No(t,n||e,r)}),[e])}(0,N.createHigherOrderComponent)((function(e){return function(t){var n=Ao();return(0,h.createElement)(e,P()({localizeUrl:n},t))}}),"withLocalizeUrl");var Oo=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),To=function(e){var t=e.children,n=e.className,r=e.id,i=e.position,o=void 0===i?"bottom center":i,a=e.noArrow,c=void 0===a||a,s=(0,g.useState)(!1),l=D()(s,2),u=l[0],d=l[1];return(0,h.createElement)((function(e){return(0,h.createElement)(j.Button,e)}),{icon:Oo,onClick:function(e){d(!u),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},u&&(0,h.createElement)(j.Popover,{id:r,className:R()("info-tooltip__content",n),onClose:function(){d(!1)},position:o,noArrow:c},t))},Io="radio",Do="button",Lo="individual-item",Ro=g.forwardRef((function(e,t){var n=e.type,r=e.disabled,i=Z()(e,["type","disabled"]);return"button"===n?(0,h.createElement)("div",i):(0,h.createElement)("button",P()({ref:t,disabled:r},i))})),Fo=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,a=e.hstsRequired,c=void 0!==a&&a,s=e.isFree,l=void 0!==s&&s,u=e.isExistingSubdomain,d=void 0!==u&&u,p=e.isRecommended,m=void 0!==p&&p,f=e.onSelect,v=e.onRender,y=e.selected,b=e.type,_=void 0===b?Io:b,E=e.buttonRef,__=Li().__,S=Ao(),w=(0,N.useViewportMatch)("small","<"),C=n.indexOf("."),x=n.slice(0,C),k=n.slice(C),P=g.useState(),A=D()(P,2),O=A[0],T=A[1],I=g.useState(),L=D()(I,2),M=L[0],B=L[1],U=__(_===Lo?"Default":"Free","full-site-editing"),V=w?__("Included in paid plans","full-site-editing"):(0,h.createInterpolateElement)(__("<strong>First year included</strong> in paid plans","full-site-editing"),{strong:(0,h.createElement)("strong",null)}),z=_===Lo?V:__(w?"Free":"Included with annual plans","full-site-editing");g.useEffect((function(){n!==O&&M!==o&&o&&(v(),T(n),B(o))}),[n,O,M,o,v]);var $=function(){M&&function(e){uo("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:M}),f(n)};return(0,h.createElement)(Ro,{ref:E,type:_,key:x,className:R()("domain-picker__suggestion-item",{"is-free":l,"is-selected":y,"is-unavailable":t},"type-".concat(_)),onClick:"button"!==_?$:void 0,disabled:t},_===Io&&(r?(0,h.createElement)(j.Spinner,null):(0,h.createElement)("span",{className:R()("domain-picker__suggestion-radio-circle",{"is-checked":y,"is-unavailable":t})})),(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,h.createElement)("span",{className:R()("domain-picker__domain-wrapper",{"with-margin":!c})},(0,h.createElement)("span",{className:"domain-picker__domain-sub-domain"},x),(0,h.createElement)("span",{className:"domain-picker__domain-tld"},k)),m&&!t&&(0,h.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),c&&(0,h.createElement)(To,{position:w?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,h.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,h.createElement)("b",null,k),learn_more_link:(0,h.createElement)("a",{target:"_blank",rel:"noreferrer",href:S("https://wordpress.com/support/https-ssl")})}))),d&&_!==Lo&&(0,h.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,h.createElement)("div",{className:R()("domain-picker__price",{"is-paid":!l})},t&&__("Unavailable","full-site-editing"),l&&!t&&U,!l&&!t&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"domain-picker__price-cost"},(0,F.sprintf)(__("%s/year","full-site-editing"),i)),(0,h.createElement)("span",{className:"domain-picker__price-inclusive"}," ",z," "),(0,h.createElement)("span",{className:"domain-picker__price-renewal"},(0,F.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),_===Do&&(r?(0,h.createElement)(j.Spinner,null):(0,h.createElement)("div",{className:"domain-picker__action"},(0,h.createElement)(j.Button,{ref:E,isSecondary:!0,className:R()("domain-picker__suggestion-select-button",{"is-selected":y&&!t}),disabled:t,onClick:$},__(y&&!t?"Selected":"Select","full-site-editing")))))},jo=g.forwardRef((function(e,t){return(0,h.createElement)(Fo,P()({},e,{buttonRef:t}))})),Mo=function(e){var t=e.type;return(0,h.createElement)("div",{className:R()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,h.createElement)("div",{className:"domain-picker__price placeholder"}))},Bo=function(e){var t=e.onClick;return(0,h.createElement)("label",{className:"domain-picker__suggestion-item contains-link"},(0,h.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,h.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},(0,F.__)("Already own a domain?","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)("span",{className:"domain-picker__item-tip"},(0,F._x)("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,h.createElement)(zi,{arrow:"right",onClick:t},(0,F._x)("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))};function Uo(e,t){return e===t}function Vo(e,t,n){var r=n&&n.equalityFn?n.equalityFn:Uo,i=(0,g.useState)(e),o=i[0],a=i[1],c=Hi((0,g.useCallback)((function(e){return a(e)}),[]),t,n),s=c[0],l=c[1],u=(0,g.useRef)(e);return(0,g.useEffect)((function(){r(u.current,e)||(s(e),u.current=e)}),[e,s,r]),[o,l]}var zo=gr({vendor:"variation2_front"}),$o=["available","available_premium"];var Ho=(0,h.createElement)(G.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,h.createElement)(G.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Go=function(e){var t=e.onSelect,n=e.selected,__=Li().__,r=(0,h.useState)(!1),i=D()(r,2),o=i[0],a=i[1],c=function(e){a(!1),t(e)},s=(0,y.useSelect)((function(e){return e(zo).getCategories()}));return(0,h.createElement)("div",{className:R()("domain-categories",{"is-open":o})},(0,h.createElement)(j.Button,{className:"domain-categories__dropdown-button",onClick:function(){return a(!o)}},(0,h.createElement)("span",null,n||__("All Categories","full-site-editing")),(0,h.createElement)(H,{icon:Ho,size:16})),(0,h.createElement)("ul",{className:"domain-categories__item-group"},(0,h.createElement)("li",{className:R()("domain-categories__item",{"is-selected":!n})},(0,h.createElement)(j.Button,{onClick:function(){return c()}},__("View all","full-site-editing"))),s.map((function(e){var t=e.slug,r=e.title;return(0,h.createElement)("li",{key:t,className:R()("domain-categories__item",{"is-selected":t===n})},(0,h.createElement)(j.Button,{onClick:function(){return c(t)}},r))}))))},Wo=function(){var e=Li(),__=e.__,t=e.isRTL;return(0,h.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,h.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,h.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,h.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,h.createElement)("tspan",{fill:"#999"},(0,h.createElement)("tspan",null,"https://")),(0,h.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))},qo=function(e){var t=e.groupItems,n=e.children;return t?(0,h.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,h.createElement)(g.Fragment,null,n)},Yo=function(e){var t=e.children;return(0,h.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)},Ko=function(e){var t,n=e.header,r=e.showDomainCategories,i=e.onDomainSelect,o=e.onExistingSubdomainSelect,a=e.quantity,c=void 0===a?5:a,s=e.quantityExpanded,l=void 0===s?10:s,u=e.onDomainSearchBlur,d=void 0===u?qi.noop:u,p=e.analyticsFlowId,m=e.analyticsUiAlgo,f=e.initialDomainSearch,b=void 0===f?"":f,_=e.onSetDomainSearch,E=void 0===_?qi.noop:_,S=e.currentDomain,w=e.isCheckingDomainAvailability,C=e.existingSubdomain,x=e.segregateFreeAndPaid,k=void 0!==x&&x,P=e.showSearchField,N=void 0===P||P,A=e.itemType,O=void 0===A?Io:A,T=e.locale,I=e.areDependenciesLoading,L=void 0!==I&&I,R=e.orderSubDomainsLast,F=void 0!==R&&R,M=e.onUseYourDomainClick,__=Li().__,B=__("Search for a domain","full-site-editing"),U=(0,g.useState)(!1),V=D()(U,2),z=V[0],$=V[1],G=(0,g.useState)(b),W=D()(G,2),q=W[0],Y=W[1],K=(0,g.useState)(),Z=D()(K,2),X=Z[0],J=Z[1],Q=(0,y.useSelect)((function(e){return e(zo).getDomainSuggestionVendor()})),ee=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",r=Vo(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",300),i=D()(r,1)[0],o=(0,y.useDispatch)(zo).invalidateResolutionForStoreSelector;return(0,y.useSelect)((function(r){if(i&&!(i.length<2)){var a=r(zo),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(i,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:e+1,locale:n,category_slug:t}),state:s(),errorMessage:l(),retryRequest:function(){o("__internalGetDomainSuggestions")}}}}),[i,t,e])}(q.trim(),l,X,T)||{},te=ee.allDomainSuggestions,ne=ee.errorMessage,re=ee.state,ie=ee.retryRequest,oe=null==te?void 0:te.slice(C?1:0,z?l:c),ae=function(e,t,n){var r=g.useState(),i=D()(r,2),o=i[0],a=i[1],c=t&&Array.isArray(e)?[t].concat(Zt()(e)):e;if(g.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&a(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==o?void 0:o.domain_name)}))))return o}(oe,C,S);ae&&(null==oe||oe.push(ae));var ce=(0,y.useSelect)((function(e){return e(zo).getDomainAvailabilities()}),[]);(0,g.useEffect)((function(){$(!1)}),[q]);var se=(0,g.useState)(),le=D()(se,2),ue=le[0],de=le[1];(0,g.useEffect)((function(){te&&de(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat(yo().replace(/-/g,""),"-").concat(e)}("suggestion"))}),[te,de]),(0,g.useEffect)((function(){N||Y(b)}),[b,N]);var pe=v().useRef([]);(0,g.useEffect)((function(){var e,t;z&&(null===(e=pe.current[c])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[z,c]);var me=function(e,t,n,r){var i,o="/domains/search/".concat(Q,"/").concat(p).concat(X?"/"+X:"");uo("calypso_traintracks_render",{railcar:(i={uiAlgo:"/".concat(p,"/").concat(m),fetchAlgo:o,query:q,railcarId:t,result:r?e+"#recommended":e,uiPosition:n}).railcarId,ui_algo:i.uiAlgo,ui_position:i.uiPosition,fetch_algo:i.fetchAlgo,rec_result:i.result,fetch_query:i.query})},fe=re===Jn.Failure,he=(null===(t=q.trim)||void 0===t?void 0:t.call(q).length)<=1,ge=!fe&&!he,ve=!fe&&he,ye=c;ae&&(ye+=1),M&&(ye+=1),C&&(ye-=1);var be=["professional"];return C&&be.unshift("sub-domain"),F&&be.reverse(),(0,h.createElement)("div",{className:"domain-picker"},n&&n,N&&(0,h.createElement)("div",{className:"domain-picker__search"},(0,h.createElement)("div",{className:"domain-picker__search-icon"},(0,h.createElement)(H,{icon:Yi})),(0,h.createElement)(j.TextControl,{hideLabelFromVision:!0,label:B,placeholder:B,onChange:function(e){Y(e),E(e)},onBlur:function(e){d&&d(e.currentTarget.value)},value:q,dir:"ltr"})),fe&&(0,h.createElement)(j.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,h.createElement)("p",{className:"domain-picker__error-message"},ne||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,h.createElement)(j.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:ie},__("Retry","full-site-editing"))),(ge||L)&&(0,h.createElement)("div",{className:"domain-picker__body"},r&&(0,h.createElement)("div",{className:"domain-picker__aside"},(0,h.createElement)(Go,{selected:X,onSelect:J})),(0,h.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,h.createElement)("div",{className:"domain-picker__sugggested-items-container"},be.map((function(e){return"sub-domain"===e?(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Yo,null,__("Keep sub-domain","full-site-editing")),(0,h.createElement)(qo,{key:e,groupItems:k},!L&&C&&(0,h.createElement)(jo,{key:null==C?void 0:C.domain_name,domain:null==C?void 0:C.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:ue?"".concat(ue,0):void 0,onRender:function(){return me(null==C?void 0:C.domain_name,"".concat(ue,0),0,!1)},selected:(null==S?void 0:S.domain_name)===(null==C?void 0:C.domain_name),onSelect:function(){null==o||o(null==C?void 0:C.domain_name)},type:O})||(0,h.createElement)(Mo,{type:O}))):(0,h.createElement)(g.Fragment,{key:e},k&&(0,h.createElement)(Yo,null,__("Professional domains","full-site-editing")),(0,h.createElement)(qo,{key:e,groupItems:k},!L&&(null==oe?void 0:oe.map((function(e,t){var n,r=null!=C&&C.domain_name?t+1:t,o=1===r,a=null===(n=ce[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null==$o?void 0:$o.indexOf(a))>-1;return(0,h.createElement)(jo,{ref:function(e){pe.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==S?void 0:S.domain_name)===e.domain_name&&w,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:o,railcarId:ue?"".concat(ue).concat(r):void 0,onRender:function(){return me(e.domain_name,"".concat(ue).concat(r),r,o)},onSelect:function(){i(e)},selected:(null==S?void 0:S.domain_name)===e.domain_name,type:O})})))||(0,qi.times)(ye,(function(e){return(0,h.createElement)(Mo,{type:O,key:e})})),M&&!!oe&&(0,h.createElement)(Bo,{onClick:M})))}))),!z&&c<l&&(null==te?void 0:te.length)&&(null==te?void 0:te.length)>c&&(0,h.createElement)("div",{className:"domain-picker__show-more"},(0,h.createElement)(j.Button,{onClick:function(){return $(!0)},isLink:!0},__("View more results","full-site-editing"))))),ve&&!L&&(0,h.createElement)("div",{className:"domain-picker__empty-state"},(0,h.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,h.createElement)("div",null,(0,h.createElement)(Wo,null))))};function Zo(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:""}}function Xo(){var e=function(){var e=g.useContext(x).siteId,t=(0,y.useDispatch)(gi).getCart,n=g.useState(void 0),r=D()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return ki(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}(),t=null==e?void 0:e.meta;return(0,y.useSelect)((function(e){var n;return t?null===(n=e(yi).getDomainSuggestions(t,{quantity:1,include_wordpressdotcom:!1,include_dotblogsubdomain:!1}))||void 0===n?void 0:n[0]:void 0}))}function Jo(){var e,t=(0,y.useDispatch)(bi),n=t.setDomain,r=t.unsetDomain,i=t.unsetPlanProductId,o=t.confirmDomainSelection,a=(0,y.useSelect)((function(e){return e(bi).getState()})),c=a.domain,s=a.planProductId,l=a.confirmedDomainSelection,u=(0,y.useSelect)((function(e){return e(vi).isPlanProductFree(s)})),d=_i(),p=d.siteSubdomain,m=d.hasPaidDomain,f=d.sitePrimaryDomain;return c?e=c:m?e=Zo(null==f?void 0:f.domain):l&&(e=Zo(null==p?void 0:p.domain)),{onDomainSelect:function(e){o(),n(e),u&&i()},onExistingSubdomainSelect:function(){o(),r()},selectedDomain:c,currentDomain:e}}function Qo(){var e,t,n=(0,y.useSelect)((function(e){return e(bi).getState()})).domainSearch,r=Gi().title,i=Ai().isLoadingSite,o=_i().siteSubdomain,a=(0,y.useDispatch)(bi).setDomainSearch,c=n.trim()||r;c&&!Si({currentSiteTitle:c})||(c=null!==(e=null==o||null===(t=o.domain)||void 0===t?void 0:t.split(".")[0])&&void 0!==e?e:"");return{domainSearch:c,isLoading:i,setDomainSearch:a}}var ea="gutenboarding",ta=function(e){var t=e.onPrevStep,n=e.onNextStep,r=Jo(),i=r.onDomainSelect,o=r.onExistingSubdomainSelect,a=r.currentDomain,c=_i().siteSubdomain,s=Qo(),l=s.domainSearch,u=s.setDomainSearch,d=(0,y.useDispatch)(f).confirmDomainSelection,p=function(){d(),null==n||n()};return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)(Bi,{sticky:!1},(0,h.createElement)(Vi,{onClick:p,disabled:!l}))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(Ko,{analyticsFlowId:ea,initialDomainSearch:l,onSetDomainSearch:u,onDomainSearchBlur:function(e){uo("calypso_newsite_domain_search_blur",{flow:ea,query:e,where:"editor_domain_modal"})},currentDomain:a||Zo(null==c?void 0:c.domain),existingSubdomain:Zo(null==c?void 0:c.domain),onDomainSelect:i,onExistingSubdomainSelect:o,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==t||t()}}),(0,h.createElement)(Vi,{onClick:p,disabled:!l}))))},na=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"})),ra=(0,h.createElement)(H,{icon:na,size:17}),ia=(0,h.createElement)(H,{icon:q,size:17}),oa=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var aa=function(e){var t=e.features,n=e.domain,r=e.isFree,i=void 0!==r&&r,o=e.isOpen,a=void 0!==o&&o,c=e.onPickDomain,s=e.disabledLabel,l=e.multiColumn,u=void 0!==l&&l,d=function(e,t,__){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:ra,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",oa)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plans-feature-list__domain-summary is-cta",icon:ra,domainMessage:(0,h.createElement)(h.Fragment,null,__("Pick a free domain (1 year)","full-site-editing")," ",oa)}},PAID_DOMAIN:{FREE_PLAN:{className:"plans-feature-list__domain-summary is-free",icon:ia,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{className:"plans-feature-list__domain-summary is-picked",icon:ra,domainMessage:(0,h.createElement)("span",null,(0,h.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,h.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(i,n,Li().__);return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!a},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":u})},s?(0,h.createElement)("li",{className:"plans-feature-list__item plans-feature-list__item--disabled-message"},ia," ",(0,h.createElement)("span",null,s)):d&&(0,h.createElement)("li",{className:"plans-feature-list__item"},(0,h.createElement)(j.Button,{className:d.className,onClick:c,isLink:!0},d.icon,d.domainMessage)),t.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"plans-feature-list__item"},ra," ",(0,h.createElement)("span",null,e))}))))};var ca="automattic/wpcom-features",sa={domain:{id:"domain",minSupportedPlan:gt},store:{id:"store",minSupportedPlan:"Ecommerce"},seo:{id:"seo",minSupportedPlan:yt},plugins:{id:"plugins",minSupportedPlan:yt},"ad-free":{id:"ad-free",minSupportedPlan:gt},"image-storage":{id:"image-storage",minSupportedPlan:vt},"video-storage":{id:"video-storage",minSupportedPlan:vt},support:{id:"support",minSupportedPlan:yt}},la=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sa;return e},ua=function(e){return e},da=function(e,t){var n=ua(e);if(t.length)return t.reduce((function(e,t){var r=n[t].minSupportedPlan;return wt.indexOf(r)>wt.indexOf(e)?r:e}),n[t[0]].minSupportedPlan)},pa=!1;var ma=Xn(),fa=(pa||(pa=!0,(0,y.registerStore)(ca,{controls:vr.controls,reducer:la,selectors:p})),ca),ha=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ga=function(e){var t=e.slug,n=e.name,r=e.tagline,i=e.isPopular,o=void 0!==i&&i,a=e.isFree,c=void 0!==a&&a,s=e.domain,l=e.features,u=e.onSelect,d=e.onPickDomainClick,p=e.onToggleExpandAll,m=e.allPlansExpanded,f=e.disabledLabel,v=e.CTAVariation,b=void 0===v?"NORMAL":v,_=e.popularBadgeVariation,E=void 0===_?"ON_TOP":_,__=Li().__,S=(0,y.useSelect)((function(e){return e(ma).getPlanProduct(t,"ANNUALLY")})),w=g.useState(!1),C=D()(w,2),x=C[0],k=C[1],P=(0,N.useViewportMatch)("mobile",">=");g.useEffect((function(){k(m)}),[m]);var A=m||P||o||x;return(0,h.createElement)("div",{className:R()("plan-item",{"is-popular":o,"is-open":A,"badge-next-to-name":"NEXT_TO_NAME"===E})},o&&"ON_TOP"===E&&(0,h.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,h.createElement)("div",{className:R()("plan-item__viewport",{"is-popular":o})},(0,h.createElement)("div",{className:"plan-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return k((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&k((function(e){return!e}))},className:"plan-item__summary"},(0,h.createElement)("div",{className:R()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===E})},(0,h.createElement)("div",{className:"plan-item__name"},n),o&&"NEXT_TO_NAME"===E&&(0,h.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),r&&(0,h.createElement)("p",{className:"plan-item__tagline"},r),(0,h.createElement)("div",{className:"plan-item__price"},(0,h.createElement)("div",{className:R()("plan-item__price-amount",{"is-loading":!(null!=S&&S.price)})},(null==S?void 0:S.price)||" ")),!A&&(0,h.createElement)("div",{className:"plan-item__dropdown-chevron"},ha)),(0,h.createElement)("div",{hidden:!A},(0,h.createElement)("div",{className:"plan-item__price-note"},__(c?"free forever":"per month, billed yearly","full-site-editing")),(0,h.createElement)("div",{className:"plan-item__actions"},"NORMAL"===b?(0,h.createElement)(j.Button,{className:"plan-item__select-button",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:!0,disabled:!!f},(0,h.createElement)("span",null,__(f||"Choose","full-site-editing"))):(0,h.createElement)(j.Button,{className:"plan-item__select-button full-width",onClick:function(){u(null==S?void 0:S.productId)},isPrimary:o,disabled:!!f},(0,h.createElement)("span",null,f?__(f,"full-site-editing"):(0,F.sprintf)(__("Select %s","full-site-editing"),n)))),(0,h.createElement)(aa,{features:l,domain:s,isFree:c,isOpen:A,onPickDomain:d,disabledLabel:f&&(0,F.sprintf)(__("%s is not included","full-site-editing"),null==s?void 0:s.domain_name)})))),o&&!P&&(0,h.createElement)(j.Button,{onClick:p,className:"plan-item__mobile-expand-all-plans",isLink:!0},__(m?"Collapse all plans":"Expand all plans","full-site-editing")))},va=function(e){var t=e.selectedPlanProductId,n=e.onPlanSelect,r=e.onPickDomainClick,i=e.currentDomain,o=e.disabledPlans,a=e.locale,c=e.showTaglines,s=void 0!==c&&c,l=e.CTAVariation,u=void 0===l?"NORMAL":l,d=e.popularBadgeVariation,p=void 0===d?"ON_TOP":d,m=e.customTagLines,f=e.defaultAllPlansExpanded,v=void 0!==f&&f,b=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(a)})),_=(0,g.useState)(v),E=D()(_,2),S=E[0],w=E[1];return(0,h.createElement)("div",{className:"plans-table"},b.map((function(e){var a,c;return e&&(0,h.createElement)(ga,{popularBadgeVariation:p,allPlansExpanded:S,key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,domain:i,tagline:null!==(a=s&&(null==m?void 0:m[e.periodAgnosticSlug]))&&void 0!==a?a:e.description,CTAVariation:u,features:null!==(c=e.features)&&void 0!==c?c:[],isPopular:e.isPopular,isFree:e.isFree,name:null==e?void 0:e.title.toString(),isSelected:e.productIds.indexOf(t)>-1,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return w((function(e){return!e}))},disabledLabel:null==o?void 0:o[e.periodAgnosticSlug]})})))},ya=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),ba=function(e){var t=e.slug,n=e.name,r=e.description,i=e.features,o=e.domain,a=e.badge,c=e.isFree,s=void 0!==c&&c,l=e.isOpen,u=void 0!==l&&l,d=e.isPrimary,p=void 0!==d&&d,m=e.onSelect,f=e.onPickDomainClick,g=e.onToggle,v=e.disabledLabel,__=Li().__,b=(0,y.useSelect)((function(e){return e(br).getPlanProduct(t,"ANNUALLY")})),_=function(){!v&&(null==g||g(t,!u))};return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":u,"is-primary":p,"has-badge":!!a,"is-disabled":!!v})},a&&(0,h.createElement)("div",{className:"plans-accordion-item__badge"},(0,h.createElement)("span",null,a)),(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",onClick:_,onKeyDown:function(e){return 32===e.keyCode&&_()},className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},n),(0,h.createElement)("div",{className:"plans-accordion-item__description"},r)),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:R()("plans-accordion-item__price-amount",{"is-loading":!(null!=b&&b.price)})},(null==b?void 0:b.price)||"  ",(null==b?void 0:b.price)&&(0,h.createElement)("span",null,__("/mo","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},__(s?"free forever":"billed annually","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},v),!u&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},ya)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!u},(0,h.createElement)(Vi,{"data-e2e-button":s?"freePlan":"paidPlan",onClick:function(){m(null==b?void 0:b.productId)}},__("Select","full-site-editing"))),(0,h.createElement)(aa,{features:i,domain:o,isFree:s,isOpen:u,onPickDomain:f,multiColumn:!0}))))},_a=function(e){var t=e.isOpen,n=void 0!==t&&t,r=e.multiColumn,i=void 0!==r&&r,o=Array.from(Array(10).keys());return(0,h.createElement)("div",{className:"plans-feature-list",hidden:!n},(0,h.createElement)("ul",{className:R()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":i})},o.map((function(e){return(0,h.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,h.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))},Ea=(0,h.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,h.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})),Sa=function(e){var t=e.isOpen,n=e.isPrimary;return(0,h.createElement)("div",{className:R()("plans-accordion-item",{"is-open":t,"is-primary":n})},(0,h.createElement)("div",{className:"plans-accordion-item__viewport"},(0,h.createElement)("div",{className:"plans-accordion-item__details"},(0,h.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,h.createElement)("div",{className:"plans-accordion-item__heading"},(0,h.createElement)("div",{className:"plans-accordion-item__name"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__description"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__price"},(0,h.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,h.createElement)("div",{className:"plans-accordion-item__price-note"},(0,h.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,h.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&(0,h.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},Ea)),(0,h.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},(0,h.createElement)(Vi,{disabled:!0},(0,h.createElement)("span",null,""))),(0,h.createElement)(_a,{isOpen:t,multiColumn:!0}))))},wa=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Ca=function(e){var t,n=e.selectedFeatures,r=void 0===n?[]:n,i=e.selectedPlanProductId,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.currentDomain,s=e.disabledPlans,l=e.locale,__=Li().__,u=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(l)})),d=!(null!=u&&u.length),p=(0,y.useSelect)((function(e){return e(ma).getDefaultPaidPlan(l)})),m=(0,y.useSelect)((function(e){return e(fa).getRecommendedPlanSlug(r)})),f=(0,y.useSelect)((function(e){return e(ma).getPlanByPeriodAgnosticSlug(m)})),v=f||p,b=__(f?"Recommended for you":"Popular","full-site-editing"),_=u.filter((function(e){return e.periodAgnosticSlug!==(null==v?void 0:v.periodAgnosticSlug)})),E=[null==v?void 0:v.periodAgnosticSlug],S=(0,g.useState)(E),w=D()(S,2),C=w[0],x=w[1],k=!d&&C.length>=u.length,P=function(e,t){x(t?[].concat(Zt()(C),[e]):C.filter((function(t){return t!==e})))};return(0,h.createElement)("div",{className:"plans-accordion"},(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?(0,h.createElement)(Sa,{isOpen:!0,isPrimary:!0}):v&&(0,h.createElement)(h.Fragment,null,f&&(0,h.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,h.createElement)(H,{icon:wa,size:16}),(0,h.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,h.createElement)(ba,{key:v.periodAgnosticSlug,slug:v.periodAgnosticSlug,name:null==v?void 0:v.title.toString(),description:null==v?void 0:v.description.toString(),features:null!==(t=v.features)&&void 0!==t?t:[],domain:c,badge:b,isFree:v.isFree,isOpen:!0,isPrimary:!0,isSelected:!!i&&v.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a}))),(0,h.createElement)("div",{className:"plans-accordion__actions"},(0,h.createElement)(j.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){x(k?E:u.map((function(e){return e.periodAgnosticSlug})))},isLink:!0},__(k?"Collapse all plans":"Show all plans","full-site-editing"))),(0,h.createElement)("div",{className:"plans-accordion__plan-item-group"},d?[1,2,3,4].map((function(e){return(0,h.createElement)(Sa,{key:e})})):_.map((function(e){var t;return(0,h.createElement)(ba,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],domain:c,isFree:e.isFree,isOpen:C.indexOf(e.periodAgnosticSlug)>-1&&!(null!=s&&s[e.periodAgnosticSlug]),isSelected:e.productIds.indexOf(i)>-1,onSelect:o,onPickDomainClick:a,onToggle:P,disabledLabel:null==s?void 0:s[e.periodAgnosticSlug]})}))))},xa=(0,h.createElement)(H,{icon:na,size:25}),ka=function(e){var t=e.onSelect,n=e.locale,__=Li().__,r=(0,y.useSelect)((function(e){return e(ma).getFeatures()})),i=(0,y.useSelect)((function(e){return e(ma).getFeaturesByType()})),o=(0,y.useSelect)((function(e){return e(ma).getSupportedPlans(n)})),a=(0,y.useSelect)((function(e){return o.map((function(t){return e(ma).getPlanProduct(t.periodAgnosticSlug,"ANNUALLY")}))})),c=!(null!=o&&o.length),s=[1,2,3,4,5];return(0,h.createElement)("div",{className:"plans-details"},(0,h.createElement)("table",{className:"plans-details__table"},(0,h.createElement)("thead",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",null,__("Feature","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e){return(0,h.createElement)("th",{key:e.periodAgnosticSlug},e.title)})))),c?(0,h.createElement)("tbody",null,s.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),s.map((function(e){return(0,h.createElement)("td",{key:e})})))}))):i.map((function(e){var t;return(0,h.createElement)("tbody",{key:e.id},e.name&&(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return(0,h.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,h.createElement)("th",null,r[e].name),o.map((function(t,n){var r;return"storage"===e?(0,h.createElement)("td",{key:n},t.storage):(0,h.createElement)("td",{key:n},null!==(r=t.featuresSlugs)&&void 0!==r&&r[e]?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),xa):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))})))})))})),(0,h.createElement)("tbody",null,(0,h.createElement)("tr",{className:"plans-details__header-row"},(0,h.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,h.createElement)("th",null,__("Monthly subscription (billed yearly)","full-site-editing")),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)("span",{className:"plans-details__placeholder"},""))})):o.map((function(e,t){var n;return(0,h.createElement)("td",{key:e.periodAgnosticSlug},null===(n=a[t])||void 0===n?void 0:n.price)}))),(0,h.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,h.createElement)("th",null),c?s.map((function(e){return(0,h.createElement)("td",{key:e},(0,h.createElement)(j.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,h.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):o.map((function(e,n){return(0,h.createElement)("td",{key:e.periodAgnosticSlug},(0,h.createElement)(j.Button,{className:"plans-details__select-button",onClick:function(){var e;t(null===(e=a[n])||void 0===e?void 0:e.productId)},isPrimary:!0},(0,h.createElement)("span",null,__("Select","full-site-editing"))))}))))))},Pa=ye()("plans-grid"),Na=function(e){var t=e.header,n=e.selectedFeatures,r=e.currentPlanProductId,i=e.currentDomain,o=e.onPlanSelect,a=e.onPickDomainClick,c=e.disabledPlans,s=e.isAccordion,l=e.locale,u=e.showPlanTaglines,d=void 0!==u&&u,p=e.CTAVariation,m=void 0===p?"NORMAL":p,f=e.popularBadgeVariation,g=void 0===f?"ON_TOP":f,v=e.customTagLines,y=e.hidePlansComparison,b=void 0!==y&&y,_=e.defaultAllPlansExpanded,E=void 0!==_&&_,__=Li().__;return s&&Pa("PlansGrid accordion version is active"),(0,h.createElement)("div",{className:"plans-grid"},t&&(0,h.createElement)("div",{className:"plans-grid__header"},t),(0,h.createElement)("div",{className:"plans-grid__table"},(0,h.createElement)("div",{className:"plans-grid__table-container"},s?(0,h.createElement)(Ca,{selectedFeatures:n,selectedPlanProductId:r,onPlanSelect:o,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l}):(0,h.createElement)(va,{popularBadgeVariation:g,CTAVariation:m,selectedPlanProductId:r,onPlanSelect:o,customTagLines:v,currentDomain:i,onPickDomainClick:a,disabledPlans:c,locale:l,showTaglines:d,defaultAllPlansExpanded:E}))),!b&&(0,h.createElement)("div",{className:"plans-grid__details"},(0,h.createElement)("div",{className:"plans-grid__details-heading"},(0,h.createElement)(Oi,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,h.createElement)("div",{className:"plans-grid__details-container"},(0,h.createElement)(ka,{onSelect:o,locale:l}))))},Aa=function(e){var t,n=e.onPrevStep,r=e.onNextStep,i=(0,y.useSelect)((function(e){var t=e(f);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),o=i.domain,a=i.LaunchStep,c=i.selectedPlanProductId,s=(0,y.useDispatch)(f),l=s.setPlanProductId,u=s.setStep,d=Ai().selectedFeatures,p=o&&!o.is_free;return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.sprintf)((0,F.__)("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(Na,{currentPlanProductId:c,currentDomain:o,onPlanSelect:function(e){l(e),null==r||r()},onPickDomainClick:function(){u(a.Domain)},disabledPlans:p?{Free:(0,F.__)("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:d,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==n||n()}}))))};function Oa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ta=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);i.insertRule(e,o?0:i.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var Ia=function(e){function t(e,r,s,l,p){for(var m,f,h,g,_,S=0,w=0,C=0,x=0,k=0,I=0,L=h=m=0,F=0,j=0,M=0,B=0,U=s.length,V=U-1,z="",$="",H="",G="";F<U;){if(f=s.charCodeAt(F),F===V&&0!==w+x+C+S&&(0!==w&&(f=47===w?10:47),x=C=S=0,U++,V++),0===w+x+C+S){if(F===V&&(0<j&&(z=z.replace(d,"")),0<z.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:z+=s.charAt(F)}f=59}switch(f){case 123:for(m=(z=z.trim()).charCodeAt(0),h=1,B=++F;F<U;){switch(f=s.charCodeAt(F)){case 123:h++;break;case 125:h--;break;case 47:switch(f=s.charCodeAt(F+1)){case 42:case 47:e:{for(L=F+1;L<V;++L)switch(s.charCodeAt(L)){case 47:if(42===f&&42===s.charCodeAt(L-1)&&F+2!==L){F=L+1;break e}break;case 10:if(47===f){F=L+1;break e}}F=L}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<V&&s.charCodeAt(F)!==f;);}if(0===h)break;F++}switch(h=s.substring(B,F),0===m&&(m=(z=z.replace(u,"").trim()).charCodeAt(0)),m){case 64:switch(0<j&&(z=z.replace(d,"")),f=z.charCodeAt(1)){case 100:case 109:case 115:case 45:j=r;break;default:j=T}if(B=(h=t(r,j,h,f,p+1)).length,0<D&&(_=c(3,h,j=n(T,z,M),r,N,P,B,f,p,l),z=j.join(""),void 0!==_&&0===(B=(h=_.trim()).length)&&(f=0,h="")),0<B)switch(f){case 115:z=z.replace(E,a);case 100:case 109:case 45:h=z+"{"+h+"}";break;case 107:h=(z=z.replace(v,"$1 $2"))+"{"+h+"}",h=1===O||2===O&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=z+h,112===l&&($+=h,h="")}else h="";break;default:h=t(r,n(r,z,M),h,l,p+1)}H+=h,h=M=j=L=m=0,z="",f=s.charCodeAt(++F);break;case 125:case 59:if(1<(B=(z=(0<j?z.replace(d,""):z).trim()).length))switch(0===L&&(m=z.charCodeAt(0),45===m||96<m&&123>m)&&(B=(z=z.replace(" ",":")).length),0<D&&void 0!==(_=c(1,z,r,e,N,P,$.length,l,p,l))&&0===(B=(z=_.trim()).length)&&(z="\0\0"),m=z.charCodeAt(0),f=z.charCodeAt(1),m){case 0:break;case 64:if(105===f||99===f){G+=z+s.charAt(F);break}default:58!==z.charCodeAt(B-1)&&($+=i(z,m,f,z.charCodeAt(2)))}M=j=L=m=0,z="",f=s.charCodeAt(++F)}}switch(f){case 13:case 10:47===w?w=0:0===1+m&&107!==l&&0<z.length&&(j=1,z+="\0"),0<D*R&&c(0,z,r,e,N,P,$.length,l,p,l),P=1,N++;break;case 59:case 125:if(0===w+x+C+S){P++;break}default:switch(P++,g=s.charAt(F),f){case 9:case 32:if(0===x+S+w)switch(k){case 44:case 58:case 9:case 32:g="";break;default:32!==f&&(g=" ")}break;case 0:g="\\0";break;case 12:g="\\f";break;case 11:g="\\v";break;case 38:0===x+w+S&&(j=M=1,g="\f"+g);break;case 108:if(0===x+w+S+A&&0<L)switch(F-L){case 2:112===k&&58===s.charCodeAt(F-3)&&(A=k);case 8:111===I&&(A=I)}break;case 58:0===x+w+S&&(L=F);break;case 44:0===w+C+x+S&&(j=1,g+="\r");break;case 34:case 39:0===w&&(x=x===f?0:0===x?f:x);break;case 91:0===x+w+C&&S++;break;case 93:0===x+w+C&&S--;break;case 41:0===x+w+S&&C--;break;case 40:if(0===x+w+S){if(0===m)switch(2*k+3*I){case 533:break;default:m=1}C++}break;case 64:0===w+C+x+S+L+h&&(h=1);break;case 42:case 47:if(!(0<x+S+C))switch(w){case 0:switch(2*f+3*s.charCodeAt(F+1)){case 235:w=47;break;case 220:B=F,w=42}break;case 42:47===f&&42===k&&B+2!==F&&(33===s.charCodeAt(B+2)&&($+=s.substring(B,F+1)),g="",w=0)}}0===w&&(z+=g)}I=k,k=f,F++}if(0<(B=$.length)){if(j=r,0<D&&(void 0!==(_=c(2,$,j,e,N,P,B,l,p,l))&&0===($=_).length))return G+$+H;if($=j.join(",")+"{"+$+"}",0!=O*A){switch(2!==O||o($,2)||(A=0),A){case 111:$=$.replace(b,":-moz-$1")+$;break;case 112:$=$.replace(y,"::-webkit-input-$1")+$.replace(y,"::-moz-$1")+$.replace(y,":-ms-input-$1")+$}A=0}}return G+$+H}function n(e,t,n){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<o;++c)t[c]=r(e,t[c],n).trim();break;default:var s=c=0;for(t=[];c<o;++c)for(var l=0;l<a;++l)t[s++]=r(e[l]+" ",i[c],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",c=2*t+3*n+4*r;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===O||2===O&&o(s,1)?"-webkit-"+s+s:s}if(0===O||2===O&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return m.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(_,"tb");break;case 232:s=a.replace(_,"tb-rl");break;case 220:s=a.replace(_,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===x.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),L(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function c(e,t,n,r,i,o,a,c,s,u){for(var d,p=0,m=t;p<D;++p)switch(d=I[p].call(l,e,m,n,r,i,o,a,c,s,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(L=null,e?"function"!=typeof e?O=1:(O=2,L=e):O=0),s}function l(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<D){var i=c(-1,n,r,r,N,P,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(T,r,n,0,0);return 0<D&&(void 0!==(i=c(-2,o,r,r,N,P,o.length,0,0,0))&&(o=i)),"",A=0,P=N=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,f=/([,: ])(transform)/g,h=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,w=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,x=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,P=1,N=1,A=0,O=1,T=[],I=[],D=0,L=null,R=0;return l.use=function e(t){switch(t){case void 0:case null:D=I.length=0;break;default:if("function"==typeof t)I[D++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},l.set=s,void 0!==e&&s(e),l},Da="/*|*/";function La(e){e&&Ra.current.insert(e+"}")}var Ra={current:null},Fa=function(e,t,n,r,i,o,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ra.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+Da;break;case 3:switch(c){case 102:case 112:return Ra.current.insert(n[0]+t),"";default:return t+(0===l?Da:"")}case-2:t.split("/*|*/}").forEach(La)}},ja=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new Ia(t);var i,o={};i=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){o[e]=!0})),e.parentNode!==i&&i.appendChild(e)})),r.use(e.stylisPlugins)(Fa),a=function(e,t,n,i){var o=t.name;Ra.current=n,r(e,t.styles),i&&(s.inserted[o]=!0)};var s={key:n,sheet:new Ta({key:n,container:i,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:o,registered:{},insert:a};return s},Ma=n(7111),Ba=n.n(Ma);var Ua=function(e){for(var t,n=e.length,r=n^n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},Va={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var za=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},$a=/[A-Z]|^ms/g,Ha=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ga=function(e){return 45===e.charCodeAt(1)},Wa=function(e){return null!=e&&"boolean"!=typeof e},qa=za((function(e){return Ga(e)?e:e.replace($a,"-$&").toLowerCase()})),Ya=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ha,(function(e,t,n){return Za={name:t,styles:n,next:Za},t}))}return 1===Va[e]||Ga(e)||"number"!=typeof t||0===t?t:t+"px"};function Ka(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Za={name:n.name,styles:n.styles,next:Za},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)Za={name:i.name,styles:i.styles,next:Za},i=i.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ka(e,t,n[i],!1);else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":Wa(a)&&(r+=qa(o)+":"+Ya(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=Ka(e,t,a,!1);switch(o){case"animation":case"animationName":r+=qa(o)+":"+c+";";break;default:r+=o+"{"+c+"}"}}else for(var s=0;s<a.length;s++)Wa(a[s])&&(r+=qa(o)+":"+Ya(o,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Za,a=n(e);return Za=o,Ka(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var Za,Xa=/label:\s*([^\s;\n{]+)\s*;/g;var Ja=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Za=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Ka(n,t,o,!1)):i+=o[0];for(var a=1;a<e.length;a++)i+=Ka(n,t,e[a],46===i.charCodeAt(i.length-1)),r&&(i+=o[a]);Xa.lastIndex=0;for(var c,s="";null!==(c=Xa.exec(i));)s+="-"+c[1];return{name:Ua(i)+s,styles:i,next:Za}},Qa=(Object.prototype.hasOwnProperty,(0,g.createContext)("undefined"!=typeof HTMLElement?ja():null)),ec=(0,g.createContext)({}),tc=(Qa.Provider,function(e){var t=function(t,n){return(0,g.createElement)(Qa.Consumer,null,(function(r){return e(t,r,n)}))};return(0,g.forwardRef)(t)});function nc(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var rc=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert("."+r,i,e.sheet,!0);i=i.next}while(void 0!==i)}};g.Component;var ic=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var c in a="",o)o[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};function oc(e,t,n){var r=[],i=nc(e,r,n);return r.length<2?n:i+t(r)}tc((function(e,t){return(0,g.createElement)(ec.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=Ja(n,t.registered);return rc(t,i,!1),t.key+"-"+i.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return oc(t.registered,r,ic(n))},theme:n},o=e.children(i);return!0,o}))}));var ac=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};n(3463);function cc(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}var sc=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},lc=ac((function(e){return ac((function(t){return sc(e,t)}))})),uc=function(e){return(0,g.createElement)(ec.Consumer,null,(function(t){return e.theme!==t&&(t=lc(t)(e.theme)),(0,g.createElement)(ec.Provider,{value:t},e.children)}))};var dc="#F6F7F7",pc="#DCDCDE",mc="#8E9196",fc="#646970",hc="#2C3338",gc="#008A20",vc="#FFF",yc="#000",bc={colors:{background:dc,surface:vc,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#2271B1",highlightBorder:"#043959",highlightOver:"#135E96",success:gc,discount:gc,disabledPaymentButtons:dc,disabledPaymentButtonsAccent:pc,disabledButtons:"#A7AAAD",borderColor:"#C3C4C7",borderColorLight:pc,borderColorDark:fc,upcomingStepBackground:pc,textColor:hc,textColorLight:fc,textColorDark:yc,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:yc,applePayButtonRollOverColor:hc,noticeBackground:hc,defaultNoticeIconBackground:mc,textColorOnDarkBackground:vc,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:dc,placeHolderTextColor:mc},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}},_c=n(9976),Ec=n.n(_c),Sc=n(3980),wc=n.n(Sc);function Cc(e){return e.filter((function(e){return e})).join(" ")}var xc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,kc=za((function(e){return xc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Pc=function(e){return"theme"!==e&&"innerRef"!==e},Nc=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?kc:Pc};function Ac(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 Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(n,!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tc=function e(t,n){var r,i,o;void 0!==n&&(r=n.label,o=n.target,i=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof i&&a&&(i=t.__emotion_forwardProp);var s=i||Nc(c),l=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],u[0][m])}var f=tc((function(e,t,n){return(0,g.createElement)(ec.Consumer,null,(function(r){var a=l&&e.as||c,u="",p=[],m=e;if(null==e.theme){for(var f in m={},e)m[f]=e[f];m.theme=r}"string"==typeof e.className?u=nc(t.registered,p,e.className):null!=e.className&&(u=e.className+" ");var h=Ja(d.concat(p),t.registered,m);rc(t,h,"string"==typeof a);u+=t.key+"-"+h.name,void 0!==o&&(u+=" "+o);var v=l&&void 0===i?Nc(a):s,y={};for(var b in e)l&&"as"===b||v(b)&&(y[b]=e[b]);return y.className=u,y.ref=n||e.innerRef,(0,g.createElement)(a,y)}))}));return f.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=c,f.__emotion_styles=d,f.__emotion_forwardProp=i,Object.defineProperty(f,"toString",{value:function(){return"."+o}}),f.withComponent=function(t,r){return e(t,void 0!==r?Oc({},n||{},{},r):n).apply(void 0,d)},f}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Tc[e]=Tc(e)}));var Ic=Tc;function Dc(){var e=Ec()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return Dc=function(){return e},e}var Lc=ye()("composite-checkout:checkout-error-boundary"),Rc=Ic.div(Dc()),Fc=function(e){In()(n,e);var t=Ln()(n);function n(e){var r;return kn()(this,n),r=t.call(this,e),ee()(On()(r),"state",{hasError:!1,currentError:null}),r}return Nn()(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);Lc("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,h.createElement)(jc,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(v().Component);function jc(e){var t=e.errorMessage;return(0,h.createElement)(Rc,null,t)}function Mc(){var e=Ec()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Mc=function(){return e},e}var Bc=Ic("button")(Mc(),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),$c,zc,Gc,Vc,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),zc,(function(e){return e.disabled?"not-allowed":"pointer"}),Vc,Gc,zc,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),$c,Hc,Hc,$c),Uc=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,i=e.children,o=e.fullWidth,a=Z()(e,["className","buttonType","isBusy","children","fullWidth"]),c=Cc(["checkout-button"].concat(Zt()(n?["is-status-"+n]:[]),Zt()(r?["is-busy"]:[]),Zt()(t?[t]:[])));return(0,h.createElement)(Bc,P()({fullWidth:o,buttonType:n,className:c},a),i)};function Vc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function zc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function $c(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function Hc(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function Gc(e){return"text-button"===e.buttonType?"underline":"none"}function Wc(){var e=Ec()(["\n\tfill: #fff;\n"]);return Wc=function(){return e},e}function qc(e){var t=e.className,n=e.id;return(0,h.createElement)(Yc,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,h.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,h.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,h.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,h.createElement)("rect",{width:"20",height:"20"})))}qc.propTypes={className:wc().string,id:wc().string};var Yc=Ic.svg(Wc());var Kc,Zc,Xc,Jc=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,i=Z()(e,["value","onClick","ariaLabel"]);return(0,h.createElement)(Uc,P()({onClick:n,buttonType:"primary","aria-label":r},i),t)};function Qc(){var e=Ec()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return Qc=function(){return e},e}function es(){var e=Ec()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return es=function(){return e},e}function ts(){var e=Ec()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return ts=function(){return e},e}function ns(){var e=Ec()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return ns=function(){return e},e}function rs(){var e=Ec()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return rs=function(){return e},e}function is(){var e=Ec()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return is=function(){return e},e}function os(){var e=Ec()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return os=function(){return e},e}function as(){var e=Ec()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return as=function(){return e},e}function cs(){var e=Ec()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return cs=function(){return e},e}function ss(){var e=Ec()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return ss=function(){return e},e}function ls(){var e=Ec()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return ls=function(){return e},e}function us(){var e=Ec()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return us=function(){return e},e}function ds(){var e=Ec()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return ds=function(){return e},e}function ps(){var e=Ec()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return ps=function(){return e},e}function ms(){var e=Ec()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return ms=function(){return e},e}function fs(){var e=Ec()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return fs=function(){return e},e}!function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(Kc||(Kc={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL"}(Zc||(Zc={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(Xc||(Xc={}));ye()("composite-checkout:checkout"),Ic.div(fs(),(function(e){return e.theme.colors.outline}));var hs=Ic.div(ms(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),gs=Ic.div(ps(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),vs=function(e){var t=e.children,n=e.className;return(0,h.createElement)(gs,{className:Cc([n,"checkout__summary-area"])},t)},ys=Ic.div(ds(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var bs=Ic.div(us(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),_s=Ic.div(ls(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Es=Ic.div(ss(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),Ss=Ic.div(cs(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),ws=Ic.div(as(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function Cs(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,c=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,u=e.className,d=e.stepNumber,p=e.stepId,m=e.titleContent,f=e.goToThisStep,g=e.goToNextStep,v=e.activeStepContent,y=e.formStatus,b=e.completeStepContent,_=e.onError,__=Li().__;return(0,h.createElement)(Fc,{errorMessage:t||__("There was an error with this step."),onError:_},(0,h.createElement)(Es,{className:u},(0,h.createElement)(Ns,{id:p,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:y===Kc.READY&&l&&f&&!s?f:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,h.createElement)(Ss,{isVisible:s,className:"checkout-steps__step-content"},v,g&&s&&(0,h.createElement)(Jc,{onClick:g,value:y===Kc.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:y===Kc.VALIDATING?c||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:y!==Kc.READY,isBusy:y===Kc.VALIDATING})),l&&b?(0,h.createElement)(ws,{isVisible:!s,className:"checkout-steps__step-complete-content"},b):null))}Cs.propTypes={errorMessage:wc().string,onError:wc().func,editButtonAriaLabel:wc().string,editButtonText:wc().string,nextStepButtonText:wc().string,nextStepButtonAriaLabel:wc().string,isStepActive:wc().bool.isRequired,isStepComplete:wc().bool.isRequired,className:wc().string,stepNumber:wc().number,stepId:wc().string.isRequired,titleContent:wc().node.isRequired,goToThisStep:wc().func,goToNextStep:wc().func,activeStepContent:wc().node,formStatus:wc().string,completeStepContent:wc().node,validatingButtonText:wc().string,validatingButtonAriaLabel:wc().string};var xs=Ic.span(os(),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),ks=Ic.h2(is(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),Ps=Ic(Uc)(rs());function Ns(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,c=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=Li().__,u=!!c;return(0,h.createElement)(ks,{isComplete:a,isActive:o,className:Cc([n,"checkout-step__header"])},(0,h.createElement)(Ds,{isComplete:a,isActive:o,id:t},r||null),(0,h.createElement)(xs,{fullWidth:!u,isActive:o},i),u&&(0,h.createElement)(Ps,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||__("Edit this step")},s||__("Edit")))}var As=Ic.div(ns()),Os=Ic.div(ts(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),Ts=Ic.div(es(),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),Is=Ic(Ts)(Qc(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function Ds(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,h.createElement)(As,{className:Cc([r,"checkout-step__stepper"])},(0,h.createElement)(Os,{isComplete:a},(0,h.createElement)(Ts,{isComplete:a,isActive:n},i),(0,h.createElement)(Is,null,(0,h.createElement)(qc,{id:o}))))}Ns.propTypes={id:wc().string,className:wc().string,stepNumber:wc().number,title:wc().node.isRequired,isActive:wc().bool,isComplete:wc().bool,editButtonText:wc().string,editButtonAriaLabel:wc().string,onEdit:wc().func},Ds.propTypes={id:wc().string,className:wc().string,isComplete:wc().bool,isActive:wc().bool};var Ls,Rs,Fs=(0,h.createElement)(H,{icon:na,size:17}),js=function(e){var t=e.onNextStep,n=e.onPrevStep,r=(0,y.useSelect)((function(e){var t=e(f);return{domain:t.getSelectedDomain(),plan:t.getSelectedPlan(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),i=r.domain,o=r.plan,a=r.LaunchStep,c=r.isStepCompleted,s=r.isFlowCompleted,l=r.planProductId,u=(0,y.useSelect)((function(e){return e("automattic/onboard/plans").getPlanProductById(l)})),d=Gi().title,p=_i().siteSubdomain,m=function(){var e,t=T(),n=Qo().domainSearch;return null===(e=(0,y.useSelect)((function(e){if(n&&!(n.length<2))return e(yi).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}(),g=Qo().domainSearch,v=(0,y.useDispatch)(f).setStep,b=(0,h.createElement)("div",{className:"nux-launch__summary-item"},(0,h.createElement)("p",null,(0,F.__)("Site","full-site-editing"),": ",d)),_=(0,h.createElement)("div",{className:"nux-launch__summary-item"},null!=i&&i.domain_name?(0,h.createElement)("p",null,(0,F.__)("Custom domain","full-site-editing"),": ",i.domain_name):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",null,(0,F.__)("Free site address","full-site-editing"),": ",null==p?void 0:p.domain),(0,h.createElement)(j.Tip,null,g?(0,h.createInterpolateElement)((0,F.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,h.createElement)("span",{className:R()("nux-launch__summary-item__domain-name",{"is-loading":!m})},(null==m?void 0:m.domain_name)||"loading-example.com"),Link:(0,h.createElement)(j.Button,{isLink:!0,onClick:function(){return v(a.Domain)}})}):(0,F.__)("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),E=(0,h.createElement)("div",{className:"nux-launch__summary-item"},o&&u&&!o.isFree?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",o.title),(0,F.__)("Plan subscription","full-site-editing"),": ",u.price," ",(0,F.__)("per month, billed yearly","full-site-editing")):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,h.createElement)("p",null,(0,F.__)("Plan subscription: Free forever","full-site-editing")),(0,h.createElement)(j.Tip,null,(0,h.createInterpolateElement)((0,F.sprintf)((0,F.__)("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,h.createElement)(j.Button,{isLink:!0,onClick:function(){return v(a.Plan)}})}))));return(0,h.createElement)($i,null,(0,h.createElement)("div",{className:"nux-launch-step__header"},(0,h.createElement)("div",null,(0,h.createElement)(Oi,null,(0,F.__)("Launch your site","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Your site will be made public and ready to share with others.","full-site-editing")))),(0,h.createElement)("div",{className:"nux-launch-step__body"},(0,h.createElement)(uc,{theme:bc},(0,h.createElement)(hs,null,c(a.Plan)&&(0,h.createElement)(vs,null,(0,h.createElement)(ys,{className:"nux-launch__feature-list"},(0,h.createElement)("h3",{className:"nux-launch__feature-list-title"},(0,F.__)("Included in your plan","full-site-editing")),(0,h.createElement)("ul",{className:"nux-launch__feature-item-group"},null==o?void 0:o.features.map((function(e,t){return(0,h.createElement)("li",{key:t,className:"nux-launch__feature-item"},Fs," ",e)}))),(0,h.createElement)("p",null,(0,F.__)("Questions?","full-site-editing")," ",(0,h.createElement)(j.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},(0,F.__)("Ask a Happiness Engineer","full-site-editing"))))),(0,h.createElement)(bs,null,(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your site name","full-site-editing"),isStepComplete:c(a.Name),goToThisStep:function(){return v(a.Name)},completeStepContent:b,stepId:"name",formStatus:Kc.READY}),(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your domain","full-site-editing"),isStepComplete:c(a.Domain),goToThisStep:function(){return v(a.Domain)},completeStepContent:_,stepId:"domain",formStatus:Kc.READY}),(0,h.createElement)(Cs,{isStepActive:!1,titleContent:(0,F.__)("Your plan","full-site-editing"),isStepComplete:c(a.Plan),goToThisStep:function(){return v(a.Plan)},completeStepContent:E,stepId:"plan",formStatus:Kc.READY}),(0,h.createElement)(_s,null,(0,h.createElement)(j.Button,{isPrimary:!0,disabled:!s,onClick:t,className:"nux-launch__submit-button"},(0,F.__)("Launch your site","full-site-editing"))))))),(0,h.createElement)("div",{className:"nux-launch-step__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Ui,{onClick:function(){null==n||n()}}))))},Ms=function(e){var t,n=e.onSubmit,r=(0,y.useSelect)((function(e){return e(f).getState()})).step,i=(0,y.useSelect)((function(e){return e(f).getLaunchStep()})),o=(0,y.useSelect)((function(e){return e(f).getLaunchSequence()})),a=(0,y.useSelect)((function(e){return e(f).getFirstIncompleteStep()})),c=(0,y.useDispatch)(f),s=c.setStep,l=c.setSidebarFullscreen,u=c.unsetSidebarFullscreen,d=(t={},ee()(t,i.Name,Wi),ee()(t,i.Domain,ta),ee()(t,i.Plan,Aa),ee()(t,i.Final,js),t),p=o.indexOf(r),m=d[r];return g.useEffect((function(){a&&a!==i.Name&&s(a)}),[]),(0,h.createElement)(m,{onPrevStep:function(){var e=p-1;e<0&&(e=0,l()),s(o[e])},onNextStep:function(){var e=p+1;e>o.length-1&&(null==n||n()),u(),s(o[e])}})},Bs=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Circle,{cx:"12",cy:"12",r:"5"})),Us=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,o=e.onClick;return(0,h.createElement)(j.Button,{className:R()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:o,disabled:i,isLink:!0},(0,h.createElement)(H,{icon:n?na:Bs,size:16}),(0,h.createElement)("span",null,t))},Vs=function(e){var t,n=e.onMenuItemClick,__=Li().__,r=(0,y.useSelect)((function(e){var t=e(f);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),i=r.currentStep,o=r.LaunchStep,a=r.LaunchSequence,c=r.isStepCompleted,s=r.isFlowCompleted,l=(t={},ee()(t,o.Name,__("Name your site","full-site-editing")),ee()(t,o.Domain,__("Select a domain","full-site-editing")),ee()(t,o.Plan,__("Select a plan","full-site-editing")),ee()(t,o.Final,__("Launch your site","full-site-editing")),t),u=(0,y.useDispatch)(f).setStep;return(0,h.createElement)("div",{className:"nux-launch-menu"},(0,h.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,h.createElement)("div",{className:"nux-launch-menu__item-group"},a.map((function(e){return(0,h.createElement)(Us,{key:e,title:l[e],isCompleted:c(e),isCurrent:e===i,onClick:function(){return function(e){u(e),n(e)}(e)},isDisabled:e===o.Final&&!s})}))))},zs=function(){var e=(0,y.useDispatch)(f),t=e.setStep,n=e.unsetSidebarFullscreen,r=(0,y.useSelect)((function(e){return e(f).getLaunchSequence()}));return(0,h.createElement)("div",{className:"nux-launch-sidebar"},(0,h.createElement)("div",{className:"nux-launch-sidebar__header"},(0,h.createElement)(Oi,null,(0,F.__)("You're almost there!","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,h.createElement)("div",{className:"nux-launch-sidebar__body"},(0,h.createElement)(Vs,{onMenuItemClick:function(){n()}})),(0,h.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,h.createElement)(Bi,{sticky:!0},(0,h.createElement)(Vi,{onClick:function(){t(r[0]),n()}},(0,F.__)("Get Started","full-site-editing")))))},$s=function(){var __=Li().__,e=(0,y.useSelect)((function(e){var t=e(f);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,r=n.indexOf(t)+1,i=n.length,o=(0,F.sprintf)(__("%1$d of %2$d","full-site-editing"),r,i);return(0,h.createElement)("div",{className:"nux-launch-progress"},o)},Hs=function(e){var t=e.onClose,n=g.useContext(x).siteId,r=(0,y.useSelect)((function(e){return e(f).getState()})),i=r.step,o=r.isSidebarFullscreen,a=g.useState(!1),c=D()(a,2),s=c[0],l=c[1],u=(0,y.useDispatch)(m).launchSite;return function(){var e=g.useContext(x),t=e.siteId,n=e.redirectTo,r=(0,y.useSelect)((function(e){return e(bi).getState()})).planProductId,i=(0,y.useSelect)((function(e){return e(vi).isPlanProductFree(r)})),o=Ai().isSiteLaunched,a=_i().siteSubdomain,c=Ni().goToCheckout;g.useEffect((function(){if(o){if(!i)return void c();n("/home/".concat((null==a?void 0:a.domain)||t))}}),[o])}(),(0,h.createElement)(j.Modal,{open:!0,className:R()("nux-launch-modal","step-".concat(i),o?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},s?(0,h.createElement)("div",{className:"nux-launch-modal-body__launching"},(0,F.__)("Hooray! Your site will be ready shortly.","full-site-editing")):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"nux-launch-modal-body"},(0,h.createElement)("div",{className:"nux-launch-modal-header"},(0,h.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,h.createElement)(H,{icon:W,size:36})),(0,h.createElement)($s,null)),(0,h.createElement)(Ms,{onSubmit:function(){u(n),l(!0)}})),(0,h.createElement)("div",{className:"nux-launch-modal-aside"},(0,h.createElement)(zs,null)),(0,h.createElement)(j.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":(0,F.__)("Close dialog","full-site-editing"),disabled:!t},(0,h.createElement)("span",null,(0,h.createElement)(H,{icon:q,size:24})))))},Gs=function(e){var t=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat("https://wordpress.com").concat(t))},Ws=function(){try{var e,t;return null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.currentCalypsoUrl}catch(n){return window.location.href}},qs=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="a8c.wpcom-block-editor.openCheckoutModal",o=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.isFocusedLaunchFlow;if((0,_.hasAction)(i)&&o)(0,_.doAction)(i);else{var a=(0,w.addQueryArgs)("/checkout/".concat(e),S()({},!r&&{redirect_to:"/home/".concat(e)}));Gs(a)}};function Ys(){return(Ys=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ks(e){return"/"===e.charAt(0)}function Zs(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}Ls="a8c-editor-site-launch",Rs={render:function(){var e,t=(0,y.useSelect)((function(e){return e(f).getState()})).isSidebarOpen,n=(0,y.useDispatch)(f),r=n.closeSidebar,i=n.setSidebarFullscreen,o=n.unsetSidebarFullscreen;return g.useEffect((function(){window.innerWidth<782?i():o()}),[t,i,o]),g.useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,_.hasAction)(e)&&(0,_.doAction)(e,{hidden:t})}),[t]),t?(0,h.createElement)(O,{localeSlug:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale},(0,h.createElement)(x.Provider,{value:{siteId:window._currentSiteId,flow:ea,redirectTo:Gs,openCheckout:qs,getCurrentLaunchFlowUrl:Ws}},(0,h.createElement)(Hs,{onClose:r}))):null}},(0,b.registerPlugin)(Ls,Rs);var Xs=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&Ks(e),a=t&&Ks(t),c=o||a;if(e&&Ks(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var s=i[i.length-1];n="."===s||".."===s||""===s}else n=!1;for(var l=0,u=i.length;u>=0;u--){var d=i[u];"."===d?Zs(i,u):".."===d?(Zs(i,u),l++):l&&(Zs(i,u),l--)}if(!c)for(;l--;l)i.unshift("..");!c||""===i[0]||i[0]&&Ks(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function Js(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var Qs=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=Js(t),i=Js(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},el="Invariant failed";var tl=function(e,t){if(!e)throw new Error(el)};function nl(e){return"/"===e.charAt(0)?e:"/"+e}function rl(e){return"/"===e.charAt(0)?e.substr(1):e}function il(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function ol(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function al(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function cl(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Ys({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Xs(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function sl(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var ll=!("undefined"==typeof window||!window.document||!window.document.createElement);function ul(e,t){t(window.confirm(e))}var dl="popstate",pl="hashchange";function ml(){try{return window.history.state||{}}catch(e){return{}}}function fl(e){void 0===e&&(e={}),ll||tl(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,c=void 0!==a&&a,s=o.getUserConfirmation,l=void 0===s?ul:s,u=o.keyLength,d=void 0===u?6:u,p=e.basename?ol(nl(e.basename)):"";function m(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return p&&(o=il(o,p)),cl(o,r,n)}function f(){return Math.random().toString(36).substr(2,d)}var h=sl();function g(e){Ys(N,e),N.length=n.length,h.notifyListeners(N.location,N.action)}function v(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||_(m(e.state))}function y(){_(m(ml()))}var b=!1;function _(e){if(b)b=!1,g();else{h.confirmTransitionTo(e,"POP",l,(function(t){t?g({action:"POP",location:e}):function(e){var t=N.location,n=S.indexOf(t.key);-1===n&&(n=0);var r=S.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(b=!0,C(i))}(e)}))}}var E=m(ml()),S=[E.key];function w(e){return p+al(e)}function C(e){n.go(e)}var x=0;function k(e){1===(x+=e)&&1===e?(window.addEventListener(dl,v),i&&window.addEventListener(pl,y)):0===x&&(window.removeEventListener(dl,v),i&&window.removeEventListener(pl,y))}var P=!1;var N={length:n.length,action:"POP",location:E,createHref:w,push:function(e,t){var i="PUSH",o=cl(e,t,f(),N.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var l=S.indexOf(N.location.key),u=S.slice(0,l+1);u.push(o.key),S=u,g({action:i,location:o})}else window.location.href=t}}))},replace:function(e,t){var i="REPLACE",o=cl(e,t,f(),N.location);h.confirmTransitionTo(o,i,l,(function(e){if(e){var t=w(o),a=o.key,s=o.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var l=S.indexOf(N.location.key);-1!==l&&(S[l]=o.key),g({action:i,location:o})}else window.location.replace(t)}}))},go:C,goBack:function(){C(-1)},goForward:function(){C(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return P||(k(1),P=!0),function(){return P&&(P=!1,k(-1)),t()}},listen:function(e){var t=h.appendListener(e);return k(1),function(){k(-1),t()}}};return N}var hl="hashchange",gl={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+rl(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:rl,decodePath:nl},slash:{encodePath:nl,decodePath:nl}};function vl(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function yl(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function bl(e){window.location.replace(vl(window.location.href)+"#"+e)}function _l(e){void 0===e&&(e={}),ll||tl(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?ul:r,o=n.hashType,a=void 0===o?"slash":o,c=e.basename?ol(nl(e.basename)):"",s=gl[a],l=s.encodePath,u=s.decodePath;function d(){var e=u(yl());return c&&(e=il(e,c)),cl(e)}var p=sl();function m(e){Ys(x,e),x.length=t.length,p.notifyListeners(x.location,x.action)}var f=!1,h=null;function g(){var e,t,n=yl(),r=l(n);if(n!==r)bl(r);else{var o=d(),a=x.location;if(!f&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(h===al(o))return;h=null,function(e){if(f)f=!1,m();else{var t="POP";p.confirmTransitionTo(e,t,i,(function(n){n?m({action:t,location:e}):function(e){var t=x.location,n=_.lastIndexOf(al(t));-1===n&&(n=0);var r=_.lastIndexOf(al(e));-1===r&&(r=0);var i=n-r;i&&(f=!0,E(i))}(e)}))}}(o)}}var v=yl(),y=l(v);v!==y&&bl(y);var b=d(),_=[al(b)];function E(e){t.go(e)}var S=0;function w(e){1===(S+=e)&&1===e?window.addEventListener(hl,g):0===S&&window.removeEventListener(hl,g)}var C=!1;var x={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=vl(window.location.href)),n+"#"+l(c+al(e))},push:function(e,t){var n="PUSH",r=cl(e,void 0,void 0,x.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=al(r),i=l(c+t);if(yl()!==i){h=t,function(e){window.location.hash=e}(i);var o=_.lastIndexOf(al(x.location)),a=_.slice(0,o+1);a.push(t),_=a,m({action:n,location:r})}else m()}}))},replace:function(e,t){var n="REPLACE",r=cl(e,void 0,void 0,x.location);p.confirmTransitionTo(r,n,i,(function(e){if(e){var t=al(r),i=l(c+t);yl()!==i&&(h=t,bl(i));var o=_.indexOf(al(x.location));-1!==o&&(_[o]=t),m({action:n,location:r})}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&(e=!1);var t=p.setPrompt(e);return C||(w(1),C=!0),function(){return C&&(C=!1,w(-1)),t()}},listen:function(e){var t=p.appendListener(e);return w(1),function(){w(-1),t()}}};return x}function El(e,t,n){return Math.min(Math.max(e,t),n)}function Sl(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,c=t.keyLength,s=void 0===c?6:c,l=sl();function u(e){Ys(g,e),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function d(){return Math.random().toString(36).substr(2,s)}var p=El(a,0,i.length-1),m=i.map((function(e){return cl(e,void 0,"string"==typeof e?d():e.key||d())})),f=al;function h(e){var t=El(g.index+e,0,g.entries.length-1),r=g.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var g={length:m.length,action:"POP",location:m[p],index:p,entries:m,createHref:f,push:function(e,t){var r="PUSH",i=cl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=g.index+1,n=g.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=cl(e,t,d(),g.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(g.entries[g.index]=i,u({action:r,location:i}))}))},go:h,goBack:function(){h(-1)},goForward:function(){h(1)},canGo:function(e){var t=g.index+e;return t>=0&&t<g.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return g}var wl=n(8051),Cl=n.n(wl),xl=1073741823;function kl(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var Pl=v().createContext||function(e,t){var n,r,i="__create-react-context-"+Cl()()+"__",o=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=kl(t.props.value),t}Ba()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):xl,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(g.Component);o.childContextTypes=((n={})[i]=wc().object.isRequired,n);var a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Ba()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?xl:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?xl:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(g.Component);return a.contextTypes=((r={})[i]=wc().object,r),{Provider:o,Consumer:a}},Nl=n(99),Al=n.n(Nl),Ol=(n(8570),function(e){var t=Pl();return t.displayName=e,t}("Router")),Tl=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Oa(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return v().createElement(Ol.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(v().Component);var Il=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Sl(t.props),t}return Oa(t,e),t.prototype.render=function(){return v().createElement(Tl,{history:this.history,children:this.props.children})},t}(v().Component);var Dl=function(e){function t(){return e.apply(this,arguments)||this}Oa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(v().Component);var Ll={},Rl=0;function Fl(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(Ll[e])return Ll[e];var t=Al().compile(e);return Rl<1e4&&(Ll[e]=t,Rl++),t}(e)(t,{pretty:!0})}function jl(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var r=e.history,o=e.staticContext,a=i?r.push:r.replace,c=cl(t?"string"==typeof n?Fl(n,t.params):Ys({},n,{pathname:Fl(n.pathname,t.params)}):n);return o?(a(c),null):v().createElement(Dl,{onMount:function(){a(c)},onUpdate:function(e,t){var n,r,i=cl(t.to);n=i,r=Ys({},c,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&Qs(n.state,r.state)||a(c)},to:n})}))}var Ml={},Bl=0;function Ul(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Ml[n]||(Ml[n]={});if(r[e])return r[e];var i=[],o={regexp:Al()(e,i,t),keys:i};return Bl<1e4&&(r[e]=o,Bl++),o}(n,{end:o,strict:c,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var u=s[0],d=s.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Vl=function(e){function t(){return e.apply(this,arguments)||this}return Oa(t,e),t.prototype.render=function(){var e=this;return v().createElement(Ol.Consumer,null,(function(t){t||tl(!1);var n=e.props.location||t.location,r=Ys({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?Ul(n.pathname,e.props):t.match}),i=e.props,o=i.children,a=i.component,c=i.render;return Array.isArray(o)&&0===o.length&&(o=null),v().createElement(Ol.Provider,{value:r},r.match?o?"function"==typeof o?o(r):o:a?v().createElement(a,r):c?c(r):null:"function"==typeof o?o(r):null)}))},t}(v().Component);function zl(e){return"/"===e.charAt(0)?e:"/"+e}function $l(e,t){if(!e)return t;var n=zl(e);return 0!==t.pathname.indexOf(n)?t:Ys({},t,{pathname:t.pathname.substr(n.length)})}function Hl(e){return"string"==typeof e?e:al(e)}function Gl(e){return function(){tl(!1)}}function Wl(){}v().Component;var ql=function(e){function t(){return e.apply(this,arguments)||this}return Oa(t,e),t.prototype.render=function(){var e=this;return v().createElement(Ol.Consumer,null,(function(t){t||tl(!1);var n,r,i=e.props.location||t.location;return v().Children.forEach(e.props.children,(function(e){if(null==r&&v().isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?Ul(i.pathname,Ys({},e.props,{path:o})):t.match}})),r?v().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(v().Component);var Yl=v().useContext;function Kl(){return Yl(Ol).history}function Zl(){return Yl(Ol).location}var Xl,Jl=function(e){var t=e.selector,n=Zl().pathname;return g.useEffect((function(){var e;t?null===(e=document.querySelector(t))||void 0===e||e.scrollTo(0,0):window.scrollTo(0,0)}),[t,n]),null};!function(e){e.Summary="/",e.PlanDetails="/plan-details",e.DomainDetails="/domain-details",e.Success="/success"}(Xl||(Xl={}));v().Component;v().Component;var Ql=function(e,t){return"function"==typeof e?e(t):e},eu=function(e,t){return"string"==typeof e?cl(e,null,null,t):e},tu=function(e){return e},nu=v().forwardRef;void 0===nu&&(nu=tu);var ru=nu((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=B(e,["innerRef","navigate","onClick"]),a=o.target,c=Ys({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=tu!==nu&&t||n,v().createElement("a",c)}));var iu=nu((function(e,t){var n=e.component,r=void 0===n?ru:n,i=e.replace,o=e.to,a=e.innerRef,c=B(e,["component","replace","to","innerRef"]);return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var n=e.history,s=eu(Ql(o,e.location),e.location),l=s?n.createHref(s):"",u=Ys({},c,{href:l,navigate:function(){var t=Ql(o,e.location);(i?n.replace:n.push)(t)}});return tu!==nu?u.ref=t||a:u.innerRef=a,v().createElement(r,u)}))})),ou=function(e){return e},au=v().forwardRef;void 0===au&&(au=ou);au((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.activeClassName,o=void 0===i?"active":i,a=e.activeStyle,c=e.className,s=e.exact,l=e.isActive,u=e.location,d=e.strict,p=e.style,m=e.to,f=e.innerRef,h=B(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return v().createElement(Ol.Consumer,null,(function(e){e||tl(!1);var n=u||e.location,i=eu(Ql(m,n),n),g=i.pathname,y=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=y?Ul(n.pathname,{path:y,exact:s,strict:d}):null,_=!!(l?l(b,n):b),E=_?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(c,o):c,S=_?Ys({},p,{},a):p,w=Ys({"aria-current":_&&r||null,className:E,style:S,to:i},h);return ou!==au?w.ref=t||f:w.innerRef=f,v().createElement(iu,w)}))}));function cu(){var e=function(){var e=g.useContext(x).siteId,t=(0,y.useDispatch)(gi).getCart,n=g.useState(void 0),r=D()(n,2),i=r[0],o=r[1];return g.useEffect((function(){ie()(regeneratorRuntime.mark((function n(){var r,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t(e);case 2:i=n.sent,a=null===(r=i.products)||void 0===r?void 0:r.find((function(e){return Pi(e)})),o(a);case 5:case"end":return n.stop()}}),n)})))()}),[e,t,o]),i}();return null==e?void 0:e.product_id}var su=function(e){var t=e.label,n=e.badgeText;return(0,h.createElement)("div",{className:"focused-launch-summary-item__leading-side"},(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-label"},t),n?(0,h.createElement)("span",{className:"focused-launch-summary-item__leading-side-badge"},n):null)},lu=function(e){var t=e.nodeType,n=e.children;return(0,h.createElement)("div",{className:R()({"focused-launch-summary-item__warning-note":"WARNING"===t,"focused-launch-summary-item__price-cost":"PRICE"===t})},n)},uu=function(e){var t=e.children,n=e.isSelected,r=void 0!==n&&n,i=e.readOnly,o=void 0!==i&&i,a=e.isLoading,c=Z()(e,["children","isSelected","readOnly","isLoading"]);return(0,h.createElement)("button",P()({},c,{disabled:o,className:R()("focused-launch-summary__item",{"is-selected":r,"is-readonly":o,"is-loading":a})}),null==t?void 0:t[0],null==t?void 0:t[1])},du="focused-launch",pu=(0,h.createElement)(j.SVG,{viewBox:"0 0 24 24"},(0,h.createElement)(j.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),mu=(0,h.createElement)(j.SVG,{className:"focused-launch-summary__info-icon",viewBox:"0 0 24 24",width:"16"},(0,h.createElement)(j.Circle,{cx:"12",cy:"12",stroke:"#8C8F94",strokeWidth:"2",r:"10",fill:"transparent"}),(0,h.createElement)(j.Rect,{x:"10.5",y:"5",width:"3",height:"3",fill:"#8C8F94"}),(0,h.createElement)(j.Rect,{x:"10.5",y:"10",width:"3",height:"8",fill:"#8C8F94"})),fu=function(e){var t=e.input,n=e.commentary,r=e.highlighted;return(0,h.createElement)("div",{className:R()("focused-launch-summary__step",{highlighted:r})},(0,h.createElement)("div",{className:"focused-launch-summary__data-input"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},t)),(0,h.createElement)("div",{className:"focused-launch-summary__side-commentary"},n))},hu=function(e){var t=e.stepIndex,n=e.value,r=e.onChange,i=e.onBlur;return(0,h.createElement)(fu,{highlighted:!0,input:(0,h.createElement)(j.TextControl,{className:"focused-launch-summary__input",label:(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Name your site","full-site-editing")),value:n,onChange:r,onBlur:i})})},gu=function(e){var t=e.stepIndex,n=e.existingSubdomain,r=e.currentDomain,i=e.initialDomainSearch,o=e.hasPaidDomain,a=e.onDomainSelect,c=e.onExistingSubdomainSelect,s=e.isLoading,l=e.highlighted,u=T();return(0,h.createElement)(fu,{highlighted:!!l,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your domain","full-site-editing"),(0,h.createElement)(j.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased domain can be managed from your Domains page.","full-site-editing")},(0,h.createElement)("span",null,mu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)(uu,{readOnly:!0},(0,h.createElement)(su,{label:(null==r?void 0:r.domain_name)||""}),(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)(H,{icon:na,size:18})," ",(0,F.__)("Purchased","full-site-editing")))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)(Ko,{header:(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},t&&"".concat(t,". "),(0,F.__)("Confirm your domain","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),areDependenciesLoading:s,existingSubdomain:n,currentDomain:r,onDomainSelect:a,onExistingSubdomainSelect:c,initialDomainSearch:i,showSearchField:!1,analyticsFlowId:du,analyticsUiAlgo:"summary_domain_step",quantity:3,quantityExpanded:3,itemType:"individual-item",locale:u,orderSubDomainsLast:!0}),(0,h.createElement)(iu,{to:Xl.DomainDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all domains","full-site-editing"))),commentary:(0,h.createElement)(h.Fragment,null,o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>Unique domains</strong> help build brand recognition and trust","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("<strong>46.9%</strong> of globally registered domains are <strong>.com</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Stand out with a unique domain","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Easy to remember and easy to share","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Builds brand recognition and trust","full-site-editing")))))})},vu=function(e){var t,n=e.stepIndex,r=e.highlighted,i=e.hasPaidPlan,o=void 0!==i&&i,a=e.hasPaidDomain,c=void 0!==a&&a,s=e.selectedPaidDomain,l=void 0!==s&&s,u=(0,y.useDispatch)(bi).setPlanProductId,d=(0,y.useSelect)((function(e){return e(bi).getSelectedPlanProductId()})),p=(0,y.useSelect)((function(e){return e(bi).getPaidPlanProductId()})),m=(0,y.useSelect)((function(e){return e(br).getPlanByProductId(d)})),f=(0,y.useSelect)((function(e){return e(br).getPlanByProductId(p)})),v=(t=T(),{defaultPaidPlan:(0,y.useSelect)((function(e){return e(vi).getDefaultPaidPlan(t)})),defaultFreePlan:(0,y.useSelect)((function(e){return e(vi).getDefaultFreePlan(t)}))}),b=v.defaultPaidPlan,_=v.defaultFreePlan,E=g.useState(),S=D()(E,2),w=S[0],C=S[1];g.useEffect((function(){f&&b&&f.periodAgnosticSlug!==b.periodAgnosticSlug&&C(f)}),[f,b,w]);var x=function(e){return e&&e.periodAgnosticSlug===(null==m?void 0:m.periodAgnosticSlug)},k=Ai().sitePlan,P=w?[b,w,_]:[b,_],N=(0,y.useSelect)((function(e){return P.map((function(t){return e(br).getPlanProduct(null==t?void 0:t.periodAgnosticSlug,"ANNUALLY")}))}));return(0,h.createElement)(fu,{highlighted:!!r,input:o?(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},(0,F.__)("Your plan","full-site-editing"),(0,h.createElement)(j.Tooltip,{position:"top center",text:(0,F.__)("Changes to your purchased plan can be managed from your Plans page.","full-site-editing")},(0,h.createElement)("span",null,mu)),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})))),(0,h.createElement)("div",null,(0,h.createElement)(uu,{readOnly:!0},(0,h.createElement)(su,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null==k?void 0:k.product_name_short)}),(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)(H,{icon:na,size:18})," ",(0,F.__)("Purchased","full-site-editing"))))):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("label",{className:"focused-launch-summary__label"},n&&"".concat(n,". "),(0,F.__)("Confirm your plan","full-site-editing")),(0,h.createElement)("p",{className:"focused-launch-summary__mobile-commentary focused-launch-summary__mobile-only"},(0,h.createElement)(H,{icon:pu}),(0,h.createElement)("span",null,(0,h.createInterpolateElement)((0,F.__)("Grow your business with <strong>WordPress Business</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)}))),(0,h.createElement)("div",null,P.map((function(e,t){var n,r;return e?(0,h.createElement)(uu,{key:e.periodAgnosticSlug,isLoading:!_||!b,onClick:function(){var e;return u(null===(e=N[t])||void 0===e?void 0:e.productId)},isSelected:x(e),readOnly:e.isFree&&(c||l)},(0,h.createElement)(su,{label:(0,F.sprintf)((0,F.__)("%s Plan","full-site-editing"),null!==(n=e.title)&&void 0!==n?n:""),badgeText:e.isPopular?(0,F.__)("Popular","full-site-editing"):""}),e.isFree?(0,h.createElement)(lu,{nodeType:c||l?"WARNING":"PRICE"},c||l?(0,F.__)("Not available with your domain selection","full-site-editing"):(0,F.__)("Free","full-site-editing")):(0,h.createElement)(lu,{nodeType:"PRICE"},(0,h.createElement)("span",null,null===(r=N[t])||void 0===r?void 0:r.price),(0,h.createElement)("span",null,(0,F.__)("/mo","full-site-editing")))):(0,h.createElement)(uu,{key:t,isLoading:!0})}))),(0,h.createElement)(iu,{to:Xl.PlanDetails,className:"focused-launch-summary__details-link"},(0,F.__)("View all plans","full-site-editing"))),commentary:o?(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("More than <strong>38%</strong> of the internet uses <strong>WordPress</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})):(0,h.createElement)(h.Fragment,null,(0,h.createElement)("p",{className:"focused-launch-summary__side-commentary-title"},(0,h.createInterpolateElement)((0,F.__)("Monetize your site with <strong>WordPress Premium</strong>","full-site-editing"),{strong:(0,h.createElement)("strong",null)})),(0,h.createElement)("ul",{className:"focused-launch-summary__side-commentary-list"},(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Advanced tools and customization","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Unlimited premium themes","full-site-editing")),(0,h.createElement)("li",{className:"focused-launch-summary__side-commentary-list-item"},(0,h.createElement)(H,{icon:na}),(0,F.__)("Accept payments","full-site-editing"))))})},yu=function(){var e=(0,y.useSelect)((function(e){var t=e(bi).getState(),n=t.isSiteTitleStepVisible,r=t.domain,i=t.planProductId;return[e(bi).hasSelectedDomain(),n,r,i]})),t=D()(e,4),n=t[0],r=t[1],i=t[2],o=t[3],a=(0,y.useSelect)((function(e){return e(br).isPlanProductFree(o)})),c=(0,y.useDispatch)(gi).launchSite,s=(0,y.useDispatch)(bi),l=s.setModalDismissible,u=s.showModalTitle,d=s.showSiteTitleStep,p=Gi(),m=p.title,f=p.updateTitle,v=_i(),b=v.siteSubdomain,_=v.hasPaidDomain,E=Jo(),S=E.onDomainSelect,w=E.onExistingSubdomainSelect,C=E.currentDomain,k=Qo(),P=k.domainSearch,N=k.isLoading,A=Ai().isPaidPlan,O=g.useContext(x),T=O.siteId,I=O.redirectTo,L=Ni().goToCheckout;g.useEffect((function(){l(),u()}),[l,u]),g.useEffect((function(){r||wi(m)||d()}),[m,d,r]);var R=!!o||!!n||wi(m),j=!!n||!!o,M=[],B=[];r&&B.push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(hu,{stepIndex:n?t:void 0,key:t,value:m||"",onChange:f})})),(_?M:B).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(gu,{highlighted:R,stepIndex:n?t:void 0,key:t,existingSubdomain:Zo(null==b?void 0:b.domain),currentDomain:C,initialDomainSearch:P,hasPaidDomain:_,isLoading:N,onDomainSelect:S,onExistingSubdomainSelect:w})})),(A?M:B).push((function(e){var t=e.stepIndex,n=e.forwardStepIndex;return(0,h.createElement)(vu,{highlighted:j,hasPaidPlan:A,selectedPaidDomain:i&&!i.is_free,hasPaidDomain:_,stepIndex:n?t:void 0,key:t})}));var U=m&&(_||n)&&(A||o);return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-summary__section"},(0,h.createElement)(Oi,{tagName:"h2"},_&&A?(0,F.__)("You're ready to launch","full-site-editing"):(0,F.__)("You're almost there","full-site-editing")),(0,h.createElement)(Ti,{tagName:"p",className:"focused-launch-summary__caption"},_&&A?(0,F.__)("You're good to go! Launch your site and share your site address.","full-site-editing"):(0,F.__)("Prepare for launch! Confirm a few final things before you take it live.","full-site-editing"))),M.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:!1})})),B.map((function(e,t){return e({stepIndex:t+1,forwardStepIndex:B.length>1})})),(0,h.createElement)("div",{className:"focused-launch-summary__actions-wrapper"},(0,h.createElement)(Bi,{className:"focused-launch-summary__launch-action-bar"},(0,h.createElement)(Vi,{className:"focused-launch-summary__launch-button",disabled:!U,onClick:function(){c(T),!i&&a||L()}},(0,F.__)("Launch your site","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-summary__ask-for-help"},(0,h.createElement)("p",null,(0,F.__)("Questions? Our experts can assist.","full-site-editing")),(0,h.createElement)("a",{href:"/help",onClick:function(e){var t=e.target.getAttribute("href");t&&(I(t),e.preventDefault())}},(0,F.__)("Ask a Happiness Engineer","full-site-editing")))))},bu=function(e){var t=e.className,n=Z()(e,["className"]);return(0,h.createElement)(Ui,P()({},n,{className:R()("go-back-button__focused-launch",t)}),(0,h.createElement)(H,{icon:ji}),(0,F.__)("Go back","full-site-editing"))},_u="domain_step",Eu=function(){var e=g.useContext(x),t=e.getCurrentLaunchFlowUrl,n=e.redirectTo,r=T(),i=_i().siteSubdomain,o=Qo(),a=o.domainSearch,c=o.setDomainSearch,s=Jo(),l=s.onDomainSelect,u=s.onExistingSubdomainSelect,d=s.currentDomain,p=Kl(),m=function(){p.goBack()},f=t();return(0,h.createElement)("div",{className:"focused-launch-container"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(bu,{onClick:m})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(Oi,null,(0,F.__)("Choose a domain","full-site-editing")),(0,h.createElement)(Ti,null,(0,F.__)("Free for the first year with any paid plan.","full-site-editing"))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(Ko,{initialDomainSearch:a,onSetDomainSearch:c,onDomainSearchBlur:function(e){uo("calypso_newsite_domain_search_blur",{flow:du,query:e,where:_u})},currentDomain:d,existingSubdomain:Zo(null==i?void 0:i.domain),onDomainSelect:function(e){l(e),m()},onExistingSubdomainSelect:function(){u(),m()},analyticsFlowId:du,analyticsUiAlgo:_u,segregateFreeAndPaid:!0,locale:r,itemType:Do,onUseYourDomainClick:function(){var e="/start/new-launch/domains-launch/use-your-domain?siteSlug=".concat(null==i?void 0:i.domain,"&source=").concat(f);n(e)}})))},Su=function(){var e=T(),t=(0,y.useSelect)((function(e){return e(bi).getSelectedDomain()})),n=(0,y.useSelect)((function(e){return e(bi).getSelectedPlanProductId()})),r=Kl(),i=(0,y.useDispatch)(bi).updatePlan,o=t&&!t.is_free,a=function(){r.goBack()};return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-container--wide"},(0,h.createElement)("div",{className:"focused-launch-details__back-button-wrapper"},(0,h.createElement)(bu,{onClick:a})),(0,h.createElement)("div",{className:"focused-launch-details__header"},(0,h.createElement)(Oi,{tagName:"h2"},(0,F.__)("Select a plan","full-site-editing")),(0,h.createElement)(Ti,{tagName:"h3"},(0,F.sprintf)((0,F.__)("There's no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14))),(0,h.createElement)("div",{className:"focused-launch-details__body"},(0,h.createElement)(Na,{currentDomain:t,onPlanSelect:function(e){i(e),a()},currentPlanProductId:n,onPickDomainClick:a,customTagLines:{Free:(0,F.__)("Best for getting started","full-site-editing"),Business:(0,F.__)("Best for small businesses","full-site-editing")},showPlanTaglines:!0,popularBadgeVariation:"NEXT_TO_NAME",disabledPlans:o?ee()({},"Free",(0,F.__)("Unavailable with domain","full-site-editing")):void 0,CTAVariation:"FULL_WIDTH",locale:e,hidePlansComparison:!0,defaultAllPlansExpanded:!0})))},wu=(0,h.createElement)(G.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,h.createElement)(G.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),Cu=function(e){var t=e.className;return(0,h.createElement)(j.SVG,{fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 356 136",role:"presentation",className:t},(0,h.createElement)(j.Rect,{x:"314.913",y:"59.963",width:"7",height:"22",rx:"3.5",transform:"rotate(-50 314.913 59.963)",fill:"#984A9C"}),(0,h.createElement)(j.Rect,{y:"121.876",width:"5.091",height:"16",rx:"2.545",transform:"rotate(-50 0 121.876)",fill:"#64CA43"}),(0,h.createElement)(j.Rect,{x:"21.447",y:"85.104",width:"7",height:"22",rx:"3.5",transform:"rotate(-120 21.447 85.104)",fill:"#37E788"}),(0,h.createElement)(j.Rect,{x:"75",y:"61.64",width:"4",height:"12.571",rx:"2",transform:"rotate(130 75 61.64)",fill:"#FF2D55"}),(0,h.createElement)(j.Rect,{x:"247.461",y:"63.86",width:"4.773",height:"15",rx:"2.386",transform:"rotate(118 247.461 63.86)",fill:"#E7C037"}),(0,h.createElement)(j.Rect,{x:"97",y:"2.529",width:"4.773",height:"15",rx:"2.386",transform:"rotate(-32 97 2.53)",fill:"#117AC9"}),(0,h.createElement)(j.Rect,{x:"323.638",y:"110.513",width:"5.091",height:"16",rx:"2.545",transform:"rotate(40 323.638 110.513)",fill:"#3361CC"}),(0,h.createElement)(j.Rect,{x:"160.138",y:"27",width:"7",height:"22",rx:"3.5",transform:"rotate(40 160.138 27)",fill:"#FF8085"}),(0,h.createElement)(j.Circle,{cx:"40.5",cy:"101.095",r:"4.5",fill:"#F0B849"}),(0,h.createElement)(j.Circle,{cx:"20.928",cy:"47.751",r:"3",fill:"#BF5AF2"}),(0,h.createElement)(j.Circle,{cx:"341",cy:"134",r:"2",fill:"#F0C930"}),(0,h.createElement)(j.Circle,{cx:"131",cy:"83",r:"2",fill:"#3361CC"}),(0,h.createElement)(j.Circle,{cx:"214.5",cy:"13.5",r:"2.5",fill:"#37E688"}),(0,h.createElement)(j.Circle,{cx:"352.763",cy:"98.263",r:"3",fill:"#09A884"}),(0,h.createElement)(j.Circle,{cx:"285.181",cy:"60.541",r:"3",fill:"#FF3B30"}))},xu=function(){var e=g.useContext(x),t=e.redirectTo,n=e.siteId,r=(0,y.useSelect)((function(e){return e(gi).isSiteLaunching(n)})),i=(0,y.useDispatch)(bi),o=i.unsetModalDismissible,a=i.hideModalTitle,c=i.closeFocusedLaunch,s=i.disablePersistentSuccessView,l=_i(),u=l.siteSubdomain,d=l.sitePrimaryDomain,p=g.useState(""),m=D()(p,2),f=m[0],v=m[1],b=g.useState(!1),_=D()(b,2),E=_[0],S=_[1];g.useEffect((function(){v("https://".concat(null==d?void 0:d.domain))}),[d]),g.useEffect((function(){o(),a()}),[o,a]);return(0,h.createElement)("div",{className:"focused-launch-container focused-launch-success__wrapper"},(0,h.createElement)(Cu,{className:"focused-launch-success__confetti"}),(0,h.createElement)(Oi,{tagName:"h2"},(0,F.__)("Hooray!","full-site-editing")),(0,h.createElement)(Ti,{tagName:"h3"},r?(0,F.__)("Your site will be live shortly.","__i18n_text_domain__"):(0,F.__)("Congratulations, your website is now live. We're excited to watch you grow with WordPress.","full-site-editing")),!r&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)("div",{className:"focused-launch-success__url-wrapper"},(0,h.createElement)("span",{className:"focused-launch-success__url-field"},f),(0,h.createElement)("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"focused-launch-success__url-link","aria-label":(0,F.__)("Visit site","full-site-editing")},(0,h.createElement)(H,{icon:wu,size:16})),(0,h.createElement)(j.ClipboardButton,{text:f,onCopy:function(){return S(!0)},onFinishCopy:function(){return S(!1)},className:"focused-launch-success__url-copy-button"},E?(0,F.__)("Copied!","full-site-editing"):(0,F.__)("Copy Link","full-site-editing"))),(0,h.createElement)(Vi,{onClick:function(){s(),c()},className:"focused-launch-success__continue-editing-button"},(0,F.__)("Continue Editing","full-site-editing")),(0,h.createElement)(Ui,{onClick:function(){s(),t("/home/".concat(null==u?void 0:u.domain))}},(0,F.__)("Back home","full-site-editing"))))},ku=function(){var e=Ai(),t=e.isSiteLaunched,n=e.isSiteLaunching,r=(0,y.useDispatch)(bi).enablePersistentSuccessView,i=(0,y.useSelect)((function(e){var t=e(bi).getState(),n=t.planProductId,r=t.shouldDisplaySuccessView;return[e(bi).hasSelectedDomain(),n,r]})),o=D()(i,3),a=o[0],c=o[1],s=o[2];g.useEffect((function(){t&&r()}),[t,r]);var l=Xo(),u=(0,y.useDispatch)(bi).setDomain;g.useEffect((function(){!a&&l&&u(l)}),[a,l,u]);var d=cu(),p=(0,y.useDispatch)(bi).setPlanProductId;return g.useEffect((function(){!c&&d&&p(d)}),[c,d,p]),(0,h.createElement)(Il,{initialEntries:[Xl.Summary,Xl.Success],initialIndex:s?1:0},(0,h.createElement)(Jl,{selector:".components-modal__content"}),(t||n)&&(0,h.createElement)(jl,{to:Xl.Success}),(0,h.createElement)(ql,null,(0,h.createElement)(Vl,{path:Xl.DomainDetails},(0,h.createElement)(Eu,null)),(0,h.createElement)(Vl,{path:Xl.PlanDetails},(0,h.createElement)(Su,null)),(0,h.createElement)(Vl,{path:Xl.Success},(0,h.createElement)(xu,null)),(0,h.createElement)(Vl,{path:Xl.Summary},(0,h.createElement)(yu,null))))},Pu=function(e){var t=e.locale,n=void 0===t?"en":t,r=e.siteId,i=e.openCheckout,o=e.redirectTo,a=e.getCurrentLaunchFlowUrl,c=(0,y.useSelect)((function(e){return e(bi).getState()})),s=c.isModalDismissible,l=c.isModalTitleVisible,u=c.shouldDisplaySuccessView,d=(0,y.useDispatch)(bi).closeFocusedLaunch;return(0,h.createElement)(O,{localeSlug:n},(0,h.createElement)(j.Modal,{open:!0,className:R()("launch__focused-modal",{"launch__focused-modal--hide-title":!l}),overlayClassName:R()("launch__focused-modal-overlay",{"launch__focused-modal-overlay--delay-animation-in":u}),bodyOpenClassName:"has-focused-launch-modal",onRequestClose:d,title:(0,F.__)("Complete setup","full-site-editing"),icon:(0,h.createElement)(H,{icon:W,size:36}),isDismissible:s,shouldCloseOnEsc:s,shouldCloseOnClickOutside:s},(0,h.createElement)("div",{className:"launch__focused-modal-body"},(0,h.createElement)(x.Provider,{value:{siteId:r,redirectTo:o,openCheckout:i,flow:du,getCurrentLaunchFlowUrl:a}},(0,h.createElement)(ku,null)))))};!function(e,t){(0,b.registerPlugin)(e,t)}("a8c-editor-editor-focused-launch",{render:function(){var e,t=window._currentSiteId,n=(0,y.useSelect)((function(e){var n=e(f).getState();return[n.isFocusedLaunchOpen,n.shouldDisplaySuccessView,e(m).isSiteLaunched(t)]})),r=D()(n,3),i=r[0],o=r[1],a=r[2];return g.useEffect((function(){a&&document.body.classList.add("is-focused-launch-complete")}),[a]),i||o?(0,h.createElement)(Pu,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:qs,redirectTo:Gs,siteId:t,getCurrentLaunchFlowUrl:Ws}):null}})},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var l=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;l++;var r=t.formatters[n];if("function"==typeof r){var o=i[l];e=r.call(a,o),i.splice(l,1),l--}return e})),t.formatArgs.call(a,i);var u=a.log||t.log;u.apply(a,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var a=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),a({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();a((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},3804:function(e){"use strict";e.exports=window.React}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(1164)}());
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 2.13
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -35,7 +35,7 @@ namespace A8C\FSE;
35
  *
36
  * @var string
37
  */
38
- define( 'PLUGIN_VERSION', '2.13' );
39
 
40
  // Always include these helper files for dotcom FSE.
41
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 2.14
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
35
  *
36
  * @var string
37
  */
38
+ define( 'PLUGIN_VERSION', '2.14' );
39
 
40
  // Always include these helper files for dotcom FSE.
41
  require_once __DIR__ . '/dotcom-fse/helpers.php';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 2.13
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -40,6 +40,9 @@ This plugin is experimental, so we don't provide any support for it outside of w
40
 
41
  == Changelog ==
42
 
 
 
 
43
  = 2.13 =
44
  * New Onboarding Launch: fix plans data-store integration (https://github.com/Automattic/wp-calypso/pull/49304)
45
  * Refunds: update copy to reflect 14-day refunds (https://github.com/Automattic/wp-calypso/pull/48872)
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 2.14
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
40
 
41
  == Changelog ==
42
 
43
+ = 2.14 =
44
+ * Hide plugin buttons in header on mobile layouts (https://github.com/Automattic/wp-calypso/pull/49329)
45
+
46
  = 2.13 =
47
  * New Onboarding Launch: fix plans data-store integration (https://github.com/Automattic/wp-calypso/pull/49304)
48
  * Refunds: update copy to reflect 14-day refunds (https://github.com/Automattic/wp-calypso/pull/48872)