Full Site Editing - Version 3.7682

Version Description

Download this release

Release Info

Developer automattic
Plugin Icon wp plugin Full Site Editing
Version 3.7682
Comparing to
See all releases

Code changes from version 3.7543 to 3.7682

editor-site-launch/dist/gutenboarding-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-react-i18n', 'wp-url'), 'version' => 'df3f8a2a5f97e86b82fd9b0e72fe1b6e');
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-react-i18n', 'wp-url'), 'version' => 'ba08f61cd6363e9b3070e91d28b988b5');
editor-site-launch/dist/gutenboarding-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,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=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 S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case h:case g:case s:return e;default:return t}}case i:return t}}}function E(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||S(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===h},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===u||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=S},8570:function(e,t,n){"use strict";e.exports=n(6866)},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=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),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),u=n.n(a),s=n(5707),l=n(1200),c=n(5799),d=n(6357),f=n(849),p=n(4655),m=n(9095),g=n(8318),h=n(1157),v=n(8550),y=n(365);r="a8c-editor-site-launch",i={render:function(){var e,t,n=(0,s.useSelect)((function(e){return e(g.sC).getState()})).isSidebarOpen,r=(0,s.useDispatch)(g.sC),i=r.closeSidebar,a=r.setSidebarFullscreen,l=r.unsetSidebarFullscreen;return u().useEffect((function(){window.innerWidth<782?a():l()}),[n,a,l]),u().useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,c.hasAction)(e)&&(0,c.doAction)(e,{hidden:n})}),[n]),n?(0,o.createElement)(f.Iw,{localeSlug:null!==(e=null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)&&void 0!==e?e:p.OP},(0,o.createElement)(d.Z.Provider,{value:{siteId:window._currentSiteId,flow:h.OS,redirectTo:v.gQ,openCheckout:v.Rd,getCurrentLaunchFlowUrl:v.O0,isInIframe:(0,y.y)()}},(0,o.createElement)(m.Z,{onClose:i}))):null}},(0,l.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});var r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=(n(3804),n(5707)),a=n(8675),u=n(8318),s=n(8374);n(1641);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,a.useI18n)().__,l=(0,o.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),c=l.currentStep,d=l.LaunchStep,f=l.LaunchSequence,p=l.isStepCompleted,m=l.isFlowCompleted,g=(t={},(0,r.Z)(t,d.Name,__("Name your site","full-site-editing")),(0,r.Z)(t,d.Domain,__("Select a domain","full-site-editing")),(0,r.Z)(t,d.Plan,__("Select a plan","full-site-editing")),(0,r.Z)(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,o.useDispatch)(u.sC).setStep;return(0,i.createElement)("div",{className:"nux-launch-menu"},(0,i.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,i.createElement)("div",{className:"nux-launch-menu__item-group"},f.map((function(e){return(0,i.createElement)(s.Z,{key:e,title:g[e],isCompleted:p(e),isCurrent:e===c,onClick:function(){return function(e){h(e),n(e)}(e)},isDisabled:e===d.Final&&!m})}))))}},8374:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(7997)),o=n(5869),a=n(9806),u=n(2779),s=n.n(u),l=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"}));t.Z=function(e){var t=e.title,n=e.isCompleted,u=e.isCurrent,c=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:s()("nux-launch-menu__item",{"is-current":u,"is-completed":n}),onClick:d,disabled:c,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:l,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(6470),i=n(3258),o=n(3027),a=n(3804),u=n.n(a),s=n(2779),l=n.n(s),c=n(5707),d=n(3163),f=n(7997),p=n(5869),m=n(1742),g=n(8565),h=n(6357),v=n(3357),y=n(849),b=n(8318),_=n(8398),S=n(2326),E=n(2526),__=(n(6879),d.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,a=u().useContext(h.Z).siteId,s=(0,c.useSelect)((function(e){return e(b.sC).getState()})),d=s.step,w=s.isSidebarFullscreen,A=u().useState(!1),x=(0,i.Z)(A,2),C=x[0],P=x[1],N=u().useState(!1),k=(0,i.Z)(N,2),I=k[0],O=k[1],Z=(0,c.useDispatch)(b.j4).launchSite,L=(0,c.useDispatch)("core/editor").savePost,M=(0,y.bU)(),T=(0,c.useDispatch)(b.sC).setPlanProductId,D=(0,c.useSelect)((function(e){return e(b.Fs).getDefaultFreePlan(M)})),F=u().useCallback((function(){Z(a),P(!0)}),[Z,P,a]);return u().useEffect((function(){n&&!C&&P(!0)}),[C,n]),u().useEffect((function(){var e=function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!I&&null!=D&&D.productIds[0]&&(T(null==D?void 0:D.productIds[0]),O(!0),e(),F())}),[n,I,F,L,D,T]),(0,v.X)(),(0,o.createElement)(f.Modal,{open:!0,className:l()("nux-launch-modal","step-".concat(d),w?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},C?(0,o.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"nux-launch-modal-body"},(0,o.createElement)("div",{className:"nux-launch-modal-header"},(0,o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,o.createElement)(p.Z,{icon:m.Z,size:36})),(0,o.createElement)(E.Z,null)),(0,o.createElement)(_.Z,{onSubmit:F})),(0,o.createElement)("div",{className:"nux-launch-modal-aside"},(0,o.createElement)(S.Z,null)),(0,o.createElement)(f.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,o.createElement)("span",null,(0,o.createElement)(p.Z,{icon:g.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(8675),u=n(8318);n(8560);t.Z=function(){var __=(0,a.useI18n)().__,e=(0,i.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,s=n.indexOf(t)+1,l=n.length,c=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),s,l);return(0,r.createElement)("div",{className:"nux-launch-progress"},c)}},2326:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(5707),a=n(5915),u=n(9211),s=n(6915),l=n(8318),__=(n(9658),i.__);t.Z=function(){var e=(0,o.useDispatch)(l.sC),t=e.setStep,n=e.unsetSidebarFullscreen,i=(0,o.useSelect)((function(e){return e(l.sC).getLaunchSequence()}));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(a.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(a.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(s.Z,{onMenuItemClick:function(){n()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.aW,{onClick:function(){t(i[0]),n()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(3027);n(3804),n(7560);t.Z=function(e){var t=e.children;return(0,r.createElement)(r.Fragment,null,t)}},9270:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(8675),a=n(849),u=n(2999),s=n(3446),l=n(5915),c=n(9211),d=n(6115),f=n(381),p=n(8318),m=n(780),g=n(5144),h=n(6956),v=n(1157);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,y=(0,o.useI18n)(),__=y.__,b=y.hasTranslation,_=(0,a.bU)(),S=(0,m.my)(),E=S.onDomainSelect,w=S.onExistingSubdomainSelect,A=S.currentDomain,x=(0,g.j)().siteSubdomain,C=(0,h.f)(),P=C.domainSearch,N=C.setDomainSearch,k=(0,i.useDispatch)(p.sC).confirmDomainSelection,I=function(){k(),null==n||n()},O=__("Free for the first year with any paid plan.","full-site-editing"),Z=__("Free for the first year with any annual plan.","full-site-editing"),L="en"===_||null!=b&&b("Free for the first year with any annual plan.")?Z:O;return(0,r.createElement)(f.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(l.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(l.D,null,L)),(0,r.createElement)(c.ZP,{sticky:!1},(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(u.ZP,{analyticsFlowId:v.OS,initialDomainSearch:P,onSetDomainSearch:N,onDomainSearchBlur:function(e){(0,d.jN)("calypso_newsite_domain_search_blur",{flow:v.OS,query:e,where:"editor_domain_modal"})},currentDomain:A||(0,s.nf)(null==x?void 0:x.domain),existingSubdomain:(0,s.nf)(null==x?void 0:x.domain),onDomainSelect:E,onExistingSubdomainSelect:w,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:_})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(c.ZP,{sticky:!0},(0,r.createElement)(c.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))))}},4502:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(2779)),a=n.n(o),u=n(50),s=n(3163),l=n(5707),c=n(7997),d=n(5869),f=n(9806),p=n(4557),m=n(5144),g=n(8463),h=n(6956),v=n(849),y=n(7498),b=n(8675),_=n(5915),S=n(9211),E=n(7384),w=n(1806),A=n(7450),x=n(381),C=n(8318),P=(n(2272),(0,i.createElement)(d.Z,{icon:f.Z,size:17}));t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,o=(0,l.useSelect)((function(e){var t=e(C.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),d=o.domain,f=o.LaunchStep,N=o.isStepCompleted,k=o.isFlowCompleted,I=o.planProductId,O=(0,b.useI18n)(),__=O.__,Z=O.hasTranslation,L=(0,v.bU)(),M=(0,l.useSelect)((function(e){return[e(C.Fs).getPlanByProductId(I,L),e(C.Fs).getPlanProductById(I)]})),T=(0,r.Z)(M,2),D=T[0],F=T[1],R=(0,p.Z)().title,$=(0,m.j)().siteSubdomain,j=(0,g.V)(),B=(0,h.f)().domainSearch,U=(0,l.useDispatch)(C.sC).setStep,G=(0,y.Iu)(),V=(0,i.createElement)("div",{className:"nux-launch__summary-item"},(0,i.createElement)("p",null,__("Site","full-site-editing"),": ",R)),H=(0,i.createElement)("div",{className:"nux-launch__summary-item"},null!=d&&d.domain_name?(0,i.createElement)("p",null,__("Custom domain","full-site-editing"),": ",d.domain_name,"MONTHLY"===(null==F?void 0:F.billingPeriod)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,s.sprintf)(__("%s/year","full-site-editing"),d.cost)))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==$?void 0:$.domain),(0,i.createElement)(c.Tip,null,B?(0,i.createInterpolateElement)(__("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,i.createElement)("span",{className:a()("nux-launch__summary-item__domain-name",{"is-loading":!j})},(null==j?void 0:j.domain_name)||"loading-example.com"),Link:(0,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),Y=__("per month, billed as %s annually","full-site-editing"),W="en"===L||null!=Z&&Z("per month, billed as %s annually")?(0,s.sprintf)(Y,null==F?void 0:F.annualPrice):z,q=__("per month, billed monthly","full-site-editing"),K=(0,i.createElement)("div",{className:"nux-launch__summary-item"},D&&F&&!D.isFree?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",D.title),__("Plan subscription","full-site-editing"),": ",F.price," ","ANNUALLY"===F.billingPeriod?W:q):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,i.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,i.createElement)(c.Tip,null,(0,i.createInterpolateElement)((0,s.sprintf)(__("<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,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Plan)}})}))));return(0,i.createElement)(x.Z,null,(0,i.createElement)("div",{className:"nux-launch-step__header"},(0,i.createElement)("div",null,(0,i.createElement)(_.b,null,__("Launch your site","full-site-editing")),(0,i.createElement)(_.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,i.createElement)("div",{className:"nux-launch-step__body"},(0,i.createElement)(u.f6,{theme:E.Z},(0,i.createElement)(w._U,null,N(f.Plan)&&(0,i.createElement)(w.Bb,null,(0,i.createElement)(w.nb,{className:"nux-launch__feature-list"},(0,i.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,i.createElement)("ul",{className:"nux-launch__feature-item-group"},null==D?void 0:D.features.filter((function(e){return"ANNUALLY"===(null==F?void 0:F.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,i.createElement)("li",{key:t,className:"nux-launch__feature-item"},P," ",e.name)}))),(0,i.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,i.createElement)(c.Button,{isLink:!0,href:G("https://wordpress.com/help/contact",L),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,i.createElement)(w.r8,null,(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:N(f.Name),goToThisStep:function(){return U(f.Name)},completeStepContent:V,stepId:"name",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:N(f.Domain),goToThisStep:function(){return U(f.Domain)},completeStepContent:H,stepId:"domain",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:N(f.Plan),goToThisStep:function(){return U(f.Plan)},completeStepContent:K,stepId:"plan",formStatus:A.PX.READY}),(0,i.createElement)(w.ds,null,(0,i.createElement)(c.Button,{isPrimary:!0,disabled:!k,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,i.createElement)("div",{className:"nux-launch-step__footer"},(0,i.createElement)(S.ZP,{sticky:!0},(0,i.createElement)(S.xE,{onClick:function(){null==n||n()}}))))}},958:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(7997),a=n(5915),u=n(9211),s=n(381),l=n(4557),__=(n(5444),i.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,i=(0,l.Z)(),c=i.title,d=i.updateTitle,f=function(){null==n||n()};return(0,r.createElement)(s.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(a.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(a.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(u.ZP,{sticky:!1},(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:f},(0,r.createElement)(o.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:c||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(o.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(5315),u=n(5915),s=n(9211),l=n(3073),c=n(381),d=n(8318),__=(n(12),o.__);t.Z=function(e){var t,n=e.onPrevStep,f=e.onNextStep,p=(0,i.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=p.domain,g=p.LaunchStep,h=p.selectedPlanProductId,v=(0,i.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,l.W)().selectedFeatures,S=m&&!m.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(u.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(u.D,null,(0,o.sprintf)(__("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,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(a.Z,{currentPlanProductId:h,currentDomain:m,onPlanSelect:function(e){y(e),null==f||f()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:S?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:_,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(s.ZP,{sticky:!0},(0,r.createElement)(s.xE,{onClick:function(){null==n||n()}}))))}},8398:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(3804),a=n.n(o),u=n(5707),s=n(958),l=n(9270),c=n(4524),d=n(4502),f=n(8318);n(6020);t.Z=function(e){var t,n=e.onSubmit,o=(0,u.useSelect)((function(e){return e(f.sC).getState()})).step,p=(0,u.useSelect)((function(e){return e(f.sC).getLaunchStep()})),m=(0,u.useSelect)((function(e){return e(f.sC).getLaunchSequence()})),g=(0,u.useSelect)((function(e){return e(f.sC).getFirstIncompleteStep()})),h=(0,u.useDispatch)(f.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},(0,r.Z)(t,p.Name,s.Z),(0,r.Z)(t,p.Domain,l.Z),(0,r.Z)(t,p.Plan,c.Z),(0,r.Z)(t,p.Final,d.Z),t),S=m.indexOf(o),E=_[o];return a().useEffect((function(){g&&g!==p.Name&&v(g)}),[]),(0,i.createElement)(E,{onPrevStep:function(){var e=S-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=S+1;e>m.length-1&&(null==n||n()),b(),v(m[e])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(8681);var r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return s},gQ:function(){return l},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),s=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},l=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=s().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var g=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));l(g)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(1205),a=(n(3421),n(382)),u=n(4898),s=(n(6209),n(1694),n(9377),n(9358)),l=["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 c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var d=new a.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(l,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,o.omitBy)(t,(function(e){return void 0===e})),(0,s.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r,i=n(2389),o=n(1766),a=n(4530),u=n(4059),s=n(3027),l=(n(3804),n(5393)),c=n(6654),d=(0,l.Z)("button")(r||(r=(0,u.Z)(["\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"])),(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"}),m,p,h,f,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),p,(function(e){return e.disabled?"not-allowed":"pointer"}),f,h,p,(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"}),m,g,g,m);function f(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 p(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 m(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 g(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 h(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,u=e.children,l=e.fullWidth,f=(0,a.Z)(e,["className","buttonType","isBusy","children","fullWidth"]),p=(0,c.Z)(["checkout-button"].concat((0,o.Z)(n?["is-status-"+n]:[]),(0,o.Z)(r?["is-busy"]:[]),(0,o.Z)(t?[t]:[])));return(0,s.createElement)(d,(0,i.Z)({fullWidth:l,buttonType:n,className:p},f),u)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(4059),d=n(3027),f=n(3804),p=n.n(f),m=n(8049),g=n.n(m),h=n(5393),v=g()("composite-checkout:checkout-error-boundary"),y=h.Z.div(r||(r=(0,c.Z)(["\n\tmargin: 2em;\n\ttext-align: center;\n"]))),b=function(e){(0,u.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e),(0,l.Z)((0,a.Z)(r),"state",{hasError:!1,currentError:null}),r}return(0,o.Z)(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);v("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,d.createElement)(_,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(p().Component);function _(e){var t=e.errorMessage;return(0,d.createElement)(y,null,t)}},7984:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=(n(3804),n(4790));t.Z=function(e){var t=e.value,n=e.onClick,u=e.ariaLabel,s=(0,i.Z)(e,["value","onClick","ariaLabel"]);return(0,o.createElement)(a.Z,(0,r.Z)({onClick:n,buttonType:"primary","aria-label":u},s),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return L},Bb:function(){return T},nb:function(){return D},r8:function(){return F},ds:function(){return R},V9:function(){return U}});var r,i,o,a,u,s,l,c,d,f,p,m,g,h,v,y,b=n(4059),_=n(3027),S=(n(3804),n(8049)),E=n.n(S),w=n(3980),A=n.n(w),x=n(8675),C=n(6654),P=n(3246),N=n(4790),k=n(5197),I=n(7984),O=n(5393),Z=n(7450),L=(E()("composite-checkout:checkout"),O.Z.div(r||(r=(0,b.Z)(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline})),O.Z.div(i||(i=(0,b.Z)(["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp}))),M=O.Z.div(o||(o=(0,b.Z)(["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),T=function(e){var t=e.children,n=e.className;return(0,_.createElement)(M,{className:(0,C.Z)([n,"checkout__summary-area"])},t)},D=O.Z.div(a||(a=(0,b.Z)(["\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"])),(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 F=O.Z.div(u||(u=(0,b.Z)(["\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"])),(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})),R=O.Z.div(s||(s=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var $=O.Z.div(l||(l=(0,b.Z)(["\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"])),(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})),j=O.Z.div(c||(c=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),B=O.Z.div(d||(d=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function U(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,u=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,c=e.className,d=e.stepNumber,f=e.stepId,p=e.titleContent,m=e.goToThisStep,g=e.goToNextStep,h=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,b=e.onError,__=(0,x.useI18n)().__;return(0,_.createElement)(P.Z,{errorMessage:t||__("There was an error with this step."),onError:b},(0,_.createElement)($,{className:c},(0,_.createElement)(z,{id:f,stepNumber:d,title:p,isActive:s,isComplete:l,onEdit:v===Z.PX.READY&&l&&m&&!s?m:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,_.createElement)(j,{isVisible:s,className:"checkout-steps__step-content"},h,g&&s&&(0,_.createElement)(I.Z,{onClick:g,value:v===Z.PX.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:v===Z.PX.VALIDATING?u||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:v!==Z.PX.READY,isBusy:v===Z.PX.VALIDATING})),l&&y?(0,_.createElement)(B,{isVisible:!s,className:"checkout-steps__step-complete-content"},y):null))}U.propTypes={errorMessage:A().string,onError:A().func,editButtonAriaLabel:A().string,editButtonText:A().string,nextStepButtonText:A().string,nextStepButtonAriaLabel:A().string,isStepActive:A().bool.isRequired,isStepComplete:A().bool.isRequired,className:A().string,stepNumber:A().number,stepId:A().string.isRequired,titleContent:A().node.isRequired,goToThisStep:A().func,goToNextStep:A().func,activeStepContent:A().node,formStatus:A().string,completeStepContent:A().node,validatingButtonText:A().string,validatingButtonAriaLabel:A().string};var G=O.Z.span(f||(f=(0,b.Z)(["\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"])),(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"})),V=O.Z.h2(p||(p=(0,b.Z)(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),H=(0,O.Z)(N.Z)(m||(m=(0,b.Z)(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));function z(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,u=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=(0,x.useI18n)().__,c=!!u;return(0,_.createElement)(V,{isComplete:a,isActive:o,className:(0,C.Z)([n,"checkout-step__header"])},(0,_.createElement)(X,{isComplete:a,isActive:o,id:t},r||null),(0,_.createElement)(G,{fullWidth:!c,isActive:o},i),c&&(0,_.createElement)(H,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:u,"aria-label":l||__("Edit this step")},s||__("Edit")))}var Y=O.Z.div(g||(g=(0,b.Z)(["\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"]))),W=O.Z.div(h||(h=(0,b.Z)(["\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"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),q=O.Z.div(v||(v=(0,b.Z)(["\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"])),(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"})),K=(0,O.Z)(q)(y||(y=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function X(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,_.createElement)(Y,{className:(0,C.Z)([r,"checkout-step__stepper"])},(0,_.createElement)(W,{isComplete:a},(0,_.createElement)(q,{isComplete:a,isActive:n},i),(0,_.createElement)(K,null,(0,_.createElement)(k.nQ,{id:o}))))}z.propTypes={id:A().string,className:A().string,stepNumber:A().number,title:A().node.isRequired,isActive:A().bool,isComplete:A().bool,editButtonText:A().string,editButtonAriaLabel:A().string,onEdit:A().func},X.propTypes={id:A().string,className:A().string,isComplete:A().bool,isActive:A().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return l}});var r,i=n(4059),o=n(3027),a=(n(3804),n(3980)),u=n.n(a),s=n(5393);function l(e){var t=e.className,n=e.id;return(0,o.createElement)(c,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,o.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,o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,o.createElement)("rect",{width:"20",height:"20"})))}l.propTypes={className:u().string,id:u().string};var c=s.Z.svg(r||(r=(0,i.Z)(["\n\tfill: #fff;\n"])))},6654:function(e,t,n){"use strict";function r(e){return e.filter((function(e){return e})).join(" ")}n.d(t,{Z:function(){return r}})},5393:function(e,t,n){"use strict";var r=n(6648);t.Z=r.Z},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777),i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},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"}};t.Z=i},7450:function(e,t,n){"use strict";var r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(584),o=n(3717),a=n(3600),u=n(2269),s=n(267),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.L,{actions:a,controls:l.ai,reducer:o.Z,resolvers:u,selectors:s})),i.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),s={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},l=(0,o.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]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.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?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=l},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return g},getCategories:function(){return h},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(9126),o=n(1481),a=n(6468),u=n.n(a),s=n(3600),l=n(3661),c=n(4211),d=regeneratorRuntime.mark(h),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var g=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,l.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,s.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,s.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function h(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,s.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,s.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,l._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,i.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)((0,o.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,s.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,s.receiveDomainSuggestionsError)(u.t0.message||(0,o.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},l=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return u},_B:function(){return s},o0:function(){return l}});var r=n(9394),i=n(5695),o=n.n(i),a=n(1621),u=o();function s(e,t){return(0,a.ZP)(e,t,{stripZeros:!0})}function l(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return g},updatePlan:function(){return h},openSidebar:function(){return v},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return E},setModalDismissible:function(){return w},unsetModalDismissible:function(){return A},showModalTitle:function(){return x},hideModalTitle:function(){return C},enablePersistentSuccessView:function(){return P},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},l=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),g=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function h(e){return m(e)}var v=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},E=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},A=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},C=function(){return{type:"HIDE_MODAL_TITLE"}},P=function(){return{type:"ENABLE_SUCCESS_VIEW"}},N=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});var r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});var r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9866),i=n(5707),o=n(9149),a=n(4648),u=n(6108),s=n(7092),l=n(594);(0,i.use)(i.plugins.persistence,l.Z);var c=!1;function d(){return c||(c=!0,(0,i.registerStore)(o.Ls,{actions:u,controls:r.controls,reducer:a.Z,selectors:s,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),o.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.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},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod: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},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===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}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(5707),i=n(3610),o=n(9149),a=function(){return i.M},u=function(){return i.y},s=function(e){return e},l=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},g=function(e,t){if(t===i.y.Plan)return!!d(e);if(t===i.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===i.y.Domain&&(0,r.select)(o.Ls).hasSelectedDomainOrSubdomain()},h=function(e){return i.M.slice(0,i.M.length-1).every((function(t){return g(e,t)}))},v=function(e){return i.M.some((function(t){return g(e,t)}))},y=function(e){return i.M.find((function(t){return!g(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",s="business",l="ecommerce",c=[o,a,u,s,l],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),g=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(4703),o=n(9438),a=n(9068),u=n(7738),s=n(5261),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:l.ai,reducer:o.ZP,selectors:u})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.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(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,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(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,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(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return g}});var r=n(9126),i=n(1621),o=n(9068),a=n(4703),u=n(3661),s=regeneratorRuntime.mark(g);function l(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,i.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function d(e){return e.reduce((function(e,t){return e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:a.nN.indexOf(t.id)>-1},e}),{})}function f(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function p(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:f(e,t)}}));return n.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),n}function m(e,t){var n=a.BV.reduce((function(n,r){var o=e.find((function(e){return e.product_slug===r}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===a.bS[t]})),r=e.find((function(e){return e.storeSlug===a.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,u=Math.round(100*(1-o/i));n.annualDiscount=u,r.annualDiscount=u}},n=0;n<a.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,i,l,c,f,g=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=g.length>0&&void 0!==g[0]?g[0]:"en",s.next=3,(0,u._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,u.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,i=n.body,l=d(i.features),c=i.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,l),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===a.TO,isPopular:n===a.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),s.next=13,(0,o.setPlans)(c,e);case 13:return s.next=15,(0,o.setPlanProducts)(f);case 15:return s.next=17,(0,o.setFeatures)(l,e);case 17:return s.next=19,(0,o.setFeaturesByType)(i.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return v},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(5707),i=n(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},s=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},l=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},g=function(e){return e.planProducts},h=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=function(e,t){return t===a.iL},_=function(e,t){return t===a.TO},S=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(9394),i=n(4530),o=n(3661),a=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),u=regeneratorRuntime.mark(b),s=regeneratorRuntime.mark(_),l=regeneratorRuntime.mark(S),c=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},f=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(n){var a,u,s,l,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,a=n.authToken,u=(0,i.Z)(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},l=(0,r.Z)((0,r.Z)((0,r.Z)({},s),u),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:l,token:a});case 8:return c=t.sent,t.next=11,d(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,f(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var m=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},g=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},h=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},v=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function y(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,h(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,v(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function b(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({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()}}),u)}function _(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({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()}}),s)}function S(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,m(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()}}),l,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:S,receiveSiteTitle:m,fetchNewSite:c,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:f,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:p,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:y,launchSiteStart:g,launchSiteSuccess:h,launchSiteFailure:v,getCart:b,setCart:_}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(2005),o=n(2701),a=n(8459),u=n(7862),s=n(4309),l=n(3661),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:l.ai,reducer:o.ZP,resolvers:u,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),s=n(2699),l=(0,u.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}}),c=(0,u.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:l,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(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},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?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.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?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return l}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),u=regeneratorRuntime.mark(l);function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).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()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(2699),a=function(e){return e},u=function(e){return e.newSite.data},s=function(e){return e.newSite.error},l=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},2699:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),u=n(335),s=!1;function l(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return s}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(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 r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(7997)),a=n(5869),u=n(3383),s=n(2779),l=n.n(s),c=n(8675),d=n(5707),f=n(3300);n(8062);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,c.useI18n)().__,s=(0,i.useState)(!1),p=(0,r.Z)(s,2),m=p[0],g=p[1],h=function(e){g(!1),t(e)},v=(0,d.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(a.Z,{icon:u.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return h(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(8675)),o=function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.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,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=n(3804),u=n(6461),s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,["type","disabled"]);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return b}});var r=n(2389),i=n(3258),o=n(3027),a=n(3804),u=n(2779),s=n.n(u),l=n(8675),c=n(6115),d=n(849),f=n(7498),p=n(7997),m=n(1417),g=n(3163),h=n(413),v=n(7226),y="radio",b="button",_="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,u=e.cost,S=e.railcarId,E=e.hstsRequired,w=void 0!==E&&E,A=e.isFree,x=void 0!==A&&A,C=e.isExistingSubdomain,P=void 0!==C&&C,N=e.isRecommended,k=void 0!==N&&N,I=e.onSelect,O=e.onRender,Z=e.selected,L=e.type,M=void 0===L?y:L,T=e.buttonRef,D=(0,l.useI18n)(),__=D.__,F=D.hasTranslation,R=(0,d.bU)(),$=(0,f.Iu)(),j=!(0,m.useViewportMatch)("small",">="),B=n.indexOf("."),U=n.slice(0,B),G=n.slice(B),V=a.useState(),H=(0,i.Z)(V,2),z=H[0],Y=H[1],W=a.useState(),q=(0,i.Z)(W,2),K=q[0],X=q[1],J=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=M===_?J:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===R||null!=F&&F("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===R||null!=F&&F("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});a.useEffect((function(){n!==z&&K!==S&&S&&(O(),Y(n),X(S))}),[n,z,K,S,O]);var se=function(){K&&(0,c.Lo)({action:"domain_selected",railcarId:K}),I(n)},le=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:T,type:M,key:U,className:s()("domain-picker__suggestion-item",{"is-free":x,"is-selected":Z,"is-unavailable":t},"type-".concat(M)),onClick:M!==b?se:void 0,disabled:t},M===y&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("span",{className:s()("domain-picker__suggestion-radio-circle",{"is-checked":Z,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:s()("domain-picker__domain-wrapper",{"with-margin":!w})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},U),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),k&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),w&&(0,o.createElement)(h.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.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,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),P&&M!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:s()("domain-picker__price",{"is-paid":!x})},t&&__("Unavailable","full-site-editing"),x&&!t&&ee,!x&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,g.sprintf)(__("%s/year","full-site-editing"),u)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,g.sprintf)(__("Renews at: %s /year","full-site-editing"),u)))),M===b&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(p.Button,{ref:T,isSecondary:!0,className:s()("domain-picker__suggestion-select-button",{"is-selected":Z&&!t}),disabled:t,onClick:se},Z&&!t?le:ce))))};t.ZP=a.forwardRef((function(e,t){return(0,o.createElement)(S,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(8675),a=n(7226);t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n.n(o),u=n(1205),s=n(7997),l=n(5869),c=n(7108),d=n(6115),f=n(584),p=n(8675),m=n(6461),g=n(1614),h=n(605),v=n(7003),y=n(6325),b=n(5241),_=n(1045),S=n(1071),E=n(3446),w=n(3300),A=(n(3437),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(o.Fragment,null,n)}),x=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,C=e.showDomainCategories,P=e.onDomainSelect,N=e.onExistingSubdomainSelect,k=e.quantity,I=void 0===k?w.SL:k,O=e.quantityExpanded,Z=void 0===O?w.Mm:O,L=e.onDomainSearchBlur,M=e.analyticsFlowId,T=e.analyticsUiAlgo,D=e.initialDomainSearch,F=void 0===D?"":D,R=e.onSetDomainSearch,$=e.currentDomain,j=e.isCheckingDomainAvailability,B=e.existingSubdomain,U=e.segregateFreeAndPaid,G=void 0!==U&&U,V=e.showSearchField,H=void 0===V||V,z=e.itemType,Y=void 0===z?m.fe:z,W=e.locale,q=e.areDependenciesLoading,K=void 0!==q&&q,X=e.orderSubDomainsLast,J=void 0!==X&&X,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,E.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,p.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,o.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],se=ae[1],le=(0,o.useState)(F),ce=(0,r.Z)(le,2),de=ce[0],fe=ce[1],pe=(0,o.useState)(),me=(0,r.Z)(pe,2),ge=me[0],he=me[1],ve=(0,b.O)(de.trim(),Z,ge,W)||{},ye=ve.allDomainSuggestions,be=ve.errorMessage,_e=ve.state,Se=ve.retryRequest,Ee=null==ye?void 0:ye.filter((function(e){return!(B&&e.is_free)})).slice(0,ue?Z-1:I-1),we=null==Ee?void 0:Ee.findIndex((function(e){return!e.is_free&&!e.unavailable})),Ae=(0,_.$)(Ee,B,$);Ae&&(null==Ee||Ee.push(Ae));var xe=(0,S.P)();(0,o.useEffect)((function(){se(!1)}),[de]);var Ce=(0,o.useState)(),Pe=(0,r.Z)(Ce,2),Ne=Pe[0],ke=Pe[1];(0,o.useEffect)((function(){ye&&ke((0,d.k9)("suggestion"))}),[ye,ke]),(0,o.useEffect)((function(){H||fe(F)}),[F,H]);var Ie=a().useRef([]);(0,o.useEffect)((function(){var e,t;ue&&(null===(e=Ie.current[I])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,I]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(M).concat(ge?"/"+ge:"");(0,d.Sn)({uiAlgo:"/".concat(M,"/").concat(T),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Ze=a().useRef(),Le=_e===f.r.Failure,Me=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,Te=!Le&&!Me,De=!Le&&Me,Fe=I;Ae&&(Fe+=1),Q&&(Fe+=1),B&&(Fe-=1);var Re=["professional"];return B&&Re.unshift("sub-domain"),J&&Re.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,H&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Ze||null===(t=Ze.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:c.Z})),(0,i.createElement)(s.TextControl,{ref:function(e){Ze.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),R&&R(e)},onBlur:function(e){L&&L(e.currentTarget.value)},value:de,dir:"ltr"}))),Le&&(0,i.createElement)(s.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},be||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(s.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Se},__("Retry","full-site-editing"))),(Te||K)&&(0,i.createElement)("div",{className:"domain-picker__body"},C&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(v.Z,{selected:ge,onSelect:he})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},Re.map((function(e){return"sub-domain"===e?(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&B&&(0,i.createElement)(m.ZP,{key:null==B?void 0:B.domain_name,domain:null==B?void 0:B.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==B?void 0:B.domain_name,"".concat(Ne,0),0,!1)},selected:(null==$?void 0:$.domain_name)===(null==B?void 0:B.domain_name),onSelect:function(){null==N||N(null==B?void 0:B.domain_name)},type:Y})||(0,i.createElement)(g.Z,{type:Y}))):(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Professional domains","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=B&&B.domain_name?t+1:t,o=t===we,a=null===(n=xe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,i.createElement)(m.ZP,{ref:function(e){Ie.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==$?void 0:$.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){P(e)},selected:(null==$?void 0:$.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(Fe,(function(e){return(0,i.createElement)(g.Z,{type:Y,key:e})})),Q&&!!Ee&&(0,i.createElement)(h.Z,{onClick:Q})))}))),!ue&&I<Z&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>I&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(s.Button,{onClick:function(){return se(!0)},isLink:!0},__("View more results","full-site-editing"))))),De&&!K&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.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,i.createElement)("div",null,(0,i.createElement)(y.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n(2779),u=n.n(a),s=n(7997),l=n(5614);n(101);t.Z=function(e){var t=e.children,n=e.className,a=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,o.useState)(!1),g=(0,r.Z)(m,2),h=g[0],v=g[1];return(0,i.createElement)((function(e){return(0,i.createElement)(s.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,i.createElement)(s.Popover,{id:a,className:u()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return s},vn:function(){return l}});var r=n(8077),i=5,o=10,a=2,u=300,s=r.z(),l=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:s,category_slug:n},l)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),s=u[0],l=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.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&&l(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={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 i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var s=(0,r.Z)((0,r.Z)({},a),n),l=s.decimal,c=s.grouping,d=s.precision,f=s.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:l});return n.stripZeros&&(m=u(m,l)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(8049),a=n.n(o),u=n(7010),s=n(9830),l=n(7839),c=n.n(l),d=n(5079),f=n.n(d),p=n(382),m=n(6668),g=n(3),h=a()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function E(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function w(e){return Array.prototype.slice.call(e)}function A(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&E("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",w(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&E("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",w(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 x(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function C(e,t){for(var n=_.length-1;n>=0;n--){var r=_[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return x(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;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:c()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},P.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},P.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},P.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(0,g.Z)(e,n,r,i)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==S[n+e])return S[n+e];var r=f()().update(e).digest("hex");return S[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)_.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var c=Number(o.substr(5));_.push(u(c))}else for(var d=Number(o.substr(5,l)),p=Number(o.substr(6+l)),m=d;m<=p;m++)_.push(u(m))}}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 s.Z((0,i.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,A([v])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,A([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!C(this,A(arguments))},P.prototype.translate=function(){var e=A(arguments),t=C(this,e);if(t||(t=x(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=m.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){h("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return l}});var r=n(914),i=n(3493),o=n(975),a=n(8373),u=new r.Z,s=u.numberFormat.bind(u),l=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,o.Z)(u),(0,a.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,s.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,l.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,l.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(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,u=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
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,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=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 S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case h:case g:case s:return e;default:return t}}case i:return t}}}function E(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||S(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===h},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===u||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=S},8570:function(e,t,n){"use strict";e.exports=n(6866)},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=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),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),u=n.n(a),s=n(5707),l=n(1200),c=n(5799),d=n(6357),f=n(849),p=n(4655),m=n(9095),g=n(8318),h=n(1157),v=n(8550),y=n(365);r="a8c-editor-site-launch",i={render:function(){var e,t,n=(0,s.useSelect)((function(e){return e(g.sC).getState()})).isSidebarOpen,r=(0,s.useDispatch)(g.sC),i=r.closeSidebar,a=r.setSidebarFullscreen,l=r.unsetSidebarFullscreen;return u().useEffect((function(){window.innerWidth<782?a():l()}),[n,a,l]),u().useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,c.hasAction)(e)&&(0,c.doAction)(e,{hidden:n})}),[n]),n?(0,o.createElement)(f.Iw,{localeSlug:null!==(e=null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)&&void 0!==e?e:p.OP},(0,o.createElement)(d.Z.Provider,{value:{siteId:window._currentSiteId,flow:h.OS,redirectTo:v.gQ,openCheckout:v.Rd,getCurrentLaunchFlowUrl:v.O0,isInIframe:(0,y.y)()}},(0,o.createElement)(m.Z,{onClose:i}))):null}},(0,l.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});var r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=(n(3804),n(5707)),a=n(8675),u=n(8318),s=n(8374);n(1641);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,a.useI18n)().__,l=(0,o.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),c=l.currentStep,d=l.LaunchStep,f=l.LaunchSequence,p=l.isStepCompleted,m=l.isFlowCompleted,g=(t={},(0,r.Z)(t,d.Name,__("Name your site","full-site-editing")),(0,r.Z)(t,d.Domain,__("Select a domain","full-site-editing")),(0,r.Z)(t,d.Plan,__("Select a plan","full-site-editing")),(0,r.Z)(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,o.useDispatch)(u.sC).setStep;return(0,i.createElement)("div",{className:"nux-launch-menu"},(0,i.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,i.createElement)("div",{className:"nux-launch-menu__item-group"},f.map((function(e){return(0,i.createElement)(s.Z,{key:e,title:g[e],isCompleted:p(e),isCurrent:e===c,onClick:function(){return function(e){h(e),n(e)}(e)},isDisabled:e===d.Final&&!m})}))))}},8374:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(7997)),o=n(5869),a=n(9806),u=n(2779),s=n.n(u),l=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"}));t.Z=function(e){var t=e.title,n=e.isCompleted,u=e.isCurrent,c=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:s()("nux-launch-menu__item",{"is-current":u,"is-completed":n}),onClick:d,disabled:c,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:l,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(6470),i=n(3258),o=n(3027),a=n(3804),u=n.n(a),s=n(2779),l=n.n(s),c=n(5707),d=n(3163),f=n(7997),p=n(5869),m=n(1742),g=n(8565),h=n(6357),v=n(3357),y=n(849),b=n(8318),_=n(8398),S=n(2326),E=n(2526),__=(n(6879),d.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,a=u().useContext(h.Z).siteId,s=(0,c.useSelect)((function(e){return e(b.sC).getState()})),d=s.step,w=s.isSidebarFullscreen,A=u().useState(!1),x=(0,i.Z)(A,2),C=x[0],P=x[1],N=u().useState(!1),k=(0,i.Z)(N,2),I=k[0],O=k[1],Z=(0,c.useDispatch)(b.j4).launchSite,L=(0,c.useDispatch)("core/editor").savePost,M=(0,y.bU)(),T=(0,c.useDispatch)(b.sC).setPlanProductId,D=(0,c.useSelect)((function(e){return e(b.Fs).getDefaultFreePlan(M)})),F=u().useCallback((function(){Z(a),P(!0)}),[Z,P,a]);return u().useEffect((function(){n&&!C&&P(!0)}),[C,n]),u().useEffect((function(){var e=function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!I&&null!=D&&D.productIds[0]&&(T(null==D?void 0:D.productIds[0]),O(!0),e(),F())}),[n,I,F,L,D,T]),(0,v.X)(),(0,o.createElement)(f.Modal,{open:!0,className:l()("nux-launch-modal","step-".concat(d),w?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},C?(0,o.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"nux-launch-modal-body"},(0,o.createElement)("div",{className:"nux-launch-modal-header"},(0,o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,o.createElement)(p.Z,{icon:m.Z,size:36})),(0,o.createElement)(E.Z,null)),(0,o.createElement)(_.Z,{onSubmit:F})),(0,o.createElement)("div",{className:"nux-launch-modal-aside"},(0,o.createElement)(S.Z,null)),(0,o.createElement)(f.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,o.createElement)("span",null,(0,o.createElement)(p.Z,{icon:g.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(8675),u=n(8318);n(8560);t.Z=function(){var __=(0,a.useI18n)().__,e=(0,i.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,s=n.indexOf(t)+1,l=n.length,c=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),s,l);return(0,r.createElement)("div",{className:"nux-launch-progress"},c)}},2326:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(5707),a=n(5915),u=n(9211),s=n(6915),l=n(8318),__=(n(9658),i.__);t.Z=function(){var e=(0,o.useDispatch)(l.sC),t=e.setStep,n=e.unsetSidebarFullscreen,i=(0,o.useSelect)((function(e){return e(l.sC).getLaunchSequence()}));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(a.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(a.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(s.Z,{onMenuItemClick:function(){n()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.aW,{onClick:function(){t(i[0]),n()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(3027);n(3804),n(7560);t.Z=function(e){var t=e.children;return(0,r.createElement)(r.Fragment,null,t)}},9270:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(8675),a=n(849),u=n(2999),s=n(3446),l=n(5915),c=n(9211),d=n(6115),f=n(381),p=n(8318),m=n(780),g=n(5144),h=n(6956),v=n(1157);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,y=(0,o.useI18n)(),__=y.__,b=y.hasTranslation,_=(0,a.bU)(),S=(0,m.my)(),E=S.onDomainSelect,w=S.onExistingSubdomainSelect,A=S.currentDomain,x=(0,g.j)().siteSubdomain,C=(0,h.f)(),P=C.domainSearch,N=C.setDomainSearch,k=(0,i.useDispatch)(p.sC).confirmDomainSelection,I=function(){k(),null==n||n()},O=__("Free for the first year with any paid plan.","full-site-editing"),Z=__("Free for the first year with any annual plan.","full-site-editing"),L="en"===_||null!=b&&b("Free for the first year with any annual plan.")?Z:O;return(0,r.createElement)(f.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(l.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(l.D,null,L)),(0,r.createElement)(c.ZP,{sticky:!1},(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(u.ZP,{analyticsFlowId:v.OS,initialDomainSearch:P,onSetDomainSearch:N,onDomainSearchBlur:function(e){(0,d.jN)("calypso_newsite_domain_search_blur",{flow:v.OS,query:e,where:"editor_domain_modal"})},currentDomain:A||(0,s.nf)(null==x?void 0:x.domain),existingSubdomain:(0,s.nf)(null==x?void 0:x.domain),onDomainSelect:E,onExistingSubdomainSelect:w,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:_})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(c.ZP,{sticky:!0},(0,r.createElement)(c.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))))}},4502:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(2779)),a=n.n(o),u=n(50),s=n(3163),l=n(5707),c=n(7997),d=n(5869),f=n(9806),p=n(4557),m=n(5144),g=n(8463),h=n(6956),v=n(849),y=n(7498),b=n(8675),_=n(5915),S=n(9211),E=n(7384),w=n(1806),A=n(7450),x=n(381),C=n(8318),P=(n(2272),(0,i.createElement)(d.Z,{icon:f.Z,size:17}));t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,o=(0,l.useSelect)((function(e){var t=e(C.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),d=o.domain,f=o.LaunchStep,N=o.isStepCompleted,k=o.isFlowCompleted,I=o.planProductId,O=(0,b.useI18n)(),__=O.__,Z=O.hasTranslation,L=(0,v.bU)(),M=(0,l.useSelect)((function(e){return[e(C.Fs).getPlanByProductId(I,L),e(C.Fs).getPlanProductById(I)]})),T=(0,r.Z)(M,2),D=T[0],F=T[1],R=(0,p.Z)().title,$=(0,m.j)().siteSubdomain,j=(0,g.V)(),B=(0,h.f)().domainSearch,U=(0,l.useDispatch)(C.sC).setStep,G=(0,y.Iu)(),V=(0,i.createElement)("div",{className:"nux-launch__summary-item"},(0,i.createElement)("p",null,__("Site","full-site-editing"),": ",R)),H=(0,i.createElement)("div",{className:"nux-launch__summary-item"},null!=d&&d.domain_name?(0,i.createElement)("p",null,__("Custom domain","full-site-editing"),": ",d.domain_name,"MONTHLY"===(null==F?void 0:F.billingPeriod)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,s.sprintf)(__("%s/year","full-site-editing"),d.cost)))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==$?void 0:$.domain),(0,i.createElement)(c.Tip,null,B?(0,i.createInterpolateElement)(__("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,i.createElement)("span",{className:a()("nux-launch__summary-item__domain-name",{"is-loading":!j})},(null==j?void 0:j.domain_name)||"loading-example.com"),Link:(0,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),Y=__("per month, billed as %s annually","full-site-editing"),W="en"===L||null!=Z&&Z("per month, billed as %s annually")?(0,s.sprintf)(Y,null==F?void 0:F.annualPrice):z,q=__("per month, billed monthly","full-site-editing"),K=(0,i.createElement)("div",{className:"nux-launch__summary-item"},D&&F&&!D.isFree?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",D.title),__("Plan subscription","full-site-editing"),": ",F.price," ","ANNUALLY"===F.billingPeriod?W:q):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,i.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,i.createElement)(c.Tip,null,(0,i.createInterpolateElement)((0,s.sprintf)(__("<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,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Plan)}})}))));return(0,i.createElement)(x.Z,null,(0,i.createElement)("div",{className:"nux-launch-step__header"},(0,i.createElement)("div",null,(0,i.createElement)(_.b,null,__("Launch your site","full-site-editing")),(0,i.createElement)(_.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,i.createElement)("div",{className:"nux-launch-step__body"},(0,i.createElement)(u.f6,{theme:E.Z},(0,i.createElement)(w._U,null,N(f.Plan)&&(0,i.createElement)(w.Bb,null,(0,i.createElement)(w.nb,{className:"nux-launch__feature-list"},(0,i.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,i.createElement)("ul",{className:"nux-launch__feature-item-group"},null==D?void 0:D.features.filter((function(e){return"ANNUALLY"===(null==F?void 0:F.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,i.createElement)("li",{key:t,className:"nux-launch__feature-item"},P," ",e.name)}))),(0,i.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,i.createElement)(c.Button,{isLink:!0,href:G("https://wordpress.com/help/contact",L),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,i.createElement)(w.r8,null,(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:N(f.Name),goToThisStep:function(){return U(f.Name)},completeStepContent:V,stepId:"name",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:N(f.Domain),goToThisStep:function(){return U(f.Domain)},completeStepContent:H,stepId:"domain",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:N(f.Plan),goToThisStep:function(){return U(f.Plan)},completeStepContent:K,stepId:"plan",formStatus:A.PX.READY}),(0,i.createElement)(w.ds,null,(0,i.createElement)(c.Button,{isPrimary:!0,disabled:!k,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,i.createElement)("div",{className:"nux-launch-step__footer"},(0,i.createElement)(S.ZP,{sticky:!0},(0,i.createElement)(S.xE,{onClick:function(){null==n||n()}}))))}},958:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(7997),a=n(5915),u=n(9211),s=n(381),l=n(4557),__=(n(5444),i.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,i=(0,l.Z)(),c=i.title,d=i.updateTitle,f=function(){null==n||n()};return(0,r.createElement)(s.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(a.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(a.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(u.ZP,{sticky:!1},(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:f},(0,r.createElement)(o.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:c||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(o.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(5315),u=n(5915),s=n(9211),l=n(3073),c=n(381),d=n(8318),__=(n(12),o.__);t.Z=function(e){var t,n=e.onPrevStep,f=e.onNextStep,p=(0,i.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=p.domain,g=p.LaunchStep,h=p.selectedPlanProductId,v=(0,i.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,l.W)().selectedFeatures,S=m&&!m.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(u.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(u.D,null,(0,o.sprintf)(__("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,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(a.Z,{currentPlanProductId:h,currentDomain:m,onPlanSelect:function(e){y(e),null==f||f()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:S?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:_,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(s.ZP,{sticky:!0},(0,r.createElement)(s.xE,{onClick:function(){null==n||n()}}))))}},8398:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(3804),a=n.n(o),u=n(5707),s=n(958),l=n(9270),c=n(4524),d=n(4502),f=n(8318);n(6020);t.Z=function(e){var t,n=e.onSubmit,o=(0,u.useSelect)((function(e){return e(f.sC).getState()})).step,p=(0,u.useSelect)((function(e){return e(f.sC).getLaunchStep()})),m=(0,u.useSelect)((function(e){return e(f.sC).getLaunchSequence()})),g=(0,u.useSelect)((function(e){return e(f.sC).getFirstIncompleteStep()})),h=(0,u.useDispatch)(f.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},(0,r.Z)(t,p.Name,s.Z),(0,r.Z)(t,p.Domain,l.Z),(0,r.Z)(t,p.Plan,c.Z),(0,r.Z)(t,p.Final,d.Z),t),S=m.indexOf(o),E=_[o];return a().useEffect((function(){g&&g!==p.Name&&v(g)}),[]),(0,i.createElement)(E,{onPrevStep:function(){var e=S-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=S+1;e>m.length-1&&(null==n||n()),b(),v(m[e])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(8681);var r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return s},gQ:function(){return l},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),s=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},l=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=s().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var g=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));l(g)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(1205),a=(n(3421),n(382)),u=n(4898),s=(n(6209),n(1694),n(9377),n(9358)),l=["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 c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var d=new a.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(l,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,o.omitBy)(t,(function(e){return void 0===e})),(0,s.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r,i=n(2389),o=n(1766),a=n(4530),u=n(4059),s=n(3027),l=(n(3804),n(5393)),c=n(6654),d=(0,l.Z)("button")(r||(r=(0,u.Z)(["\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"])),(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"}),m,p,h,f,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),p,(function(e){return e.disabled?"not-allowed":"pointer"}),f,h,p,(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"}),m,g,g,m);function f(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 p(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 m(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 g(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 h(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,u=e.children,l=e.fullWidth,f=(0,a.Z)(e,["className","buttonType","isBusy","children","fullWidth"]),p=(0,c.Z)(["checkout-button"].concat((0,o.Z)(n?["is-status-"+n]:[]),(0,o.Z)(r?["is-busy"]:[]),(0,o.Z)(t?[t]:[])));return(0,s.createElement)(d,(0,i.Z)({fullWidth:l,buttonType:n,className:p},f),u)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(4059),d=n(3027),f=n(3804),p=n.n(f),m=n(8049),g=n.n(m),h=n(5393),v=g()("composite-checkout:checkout-error-boundary"),y=h.Z.div(r||(r=(0,c.Z)(["\n\tmargin: 2em;\n\ttext-align: center;\n"]))),b=function(e){(0,u.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e),(0,l.Z)((0,a.Z)(r),"state",{hasError:!1,currentError:null}),r}return(0,o.Z)(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);v("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,d.createElement)(_,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(p().Component);function _(e){var t=e.errorMessage;return(0,d.createElement)(y,null,t)}},7984:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=(n(3804),n(4790));t.Z=function(e){var t=e.value,n=e.onClick,u=e.ariaLabel,s=(0,i.Z)(e,["value","onClick","ariaLabel"]);return(0,o.createElement)(a.Z,(0,r.Z)({onClick:n,buttonType:"primary","aria-label":u},s),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return L},Bb:function(){return T},nb:function(){return D},r8:function(){return F},ds:function(){return R},V9:function(){return U}});var r,i,o,a,u,s,l,c,d,f,p,m,g,h,v,y,b=n(4059),_=n(3027),S=(n(3804),n(8049)),E=n.n(S),w=n(3980),A=n.n(w),x=n(8675),C=n(6654),P=n(3246),N=n(4790),k=n(5197),I=n(7984),O=n(5393),Z=n(7450),L=(E()("composite-checkout:checkout"),O.Z.div(r||(r=(0,b.Z)(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline})),O.Z.div(i||(i=(0,b.Z)(["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp}))),M=O.Z.div(o||(o=(0,b.Z)(["\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"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),T=function(e){var t=e.children,n=e.className;return(0,_.createElement)(M,{className:(0,C.Z)([n,"checkout__summary-area"])},t)},D=O.Z.div(a||(a=(0,b.Z)(["\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"])),(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 F=O.Z.div(u||(u=(0,b.Z)(["\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"])),(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})),R=O.Z.div(s||(s=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var $=O.Z.div(l||(l=(0,b.Z)(["\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"])),(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})),j=O.Z.div(c||(c=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),B=O.Z.div(d||(d=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function U(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,u=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,c=e.className,d=e.stepNumber,f=e.stepId,p=e.titleContent,m=e.goToThisStep,g=e.goToNextStep,h=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,b=e.onError,__=(0,x.useI18n)().__,S="".concat(f,s?"--visible":"--invisible"),E="".concat(f,s?"--invisible":"--visible");return(0,_.createElement)(P.Z,{errorMessage:t||__("There was an error with this step."),onError:b},(0,_.createElement)($,{className:c},(0,_.createElement)(z,{id:f,stepNumber:d,title:p,isActive:s,isComplete:l,onEdit:v===Z.PX.READY&&l&&m&&!s?m:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,_.createElement)(j,{"data-testid":S,isVisible:s,className:"checkout-steps__step-content"},h,g&&s&&(0,_.createElement)(I.Z,{onClick:g,value:v===Z.PX.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:v===Z.PX.VALIDATING?u||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:v!==Z.PX.READY,isBusy:v===Z.PX.VALIDATING})),l&&y?(0,_.createElement)(B,{"data-testid":E,isVisible:!s,className:"checkout-steps__step-complete-content"},y):null))}U.propTypes={errorMessage:A().string,onError:A().func,editButtonAriaLabel:A().string,editButtonText:A().string,nextStepButtonText:A().string,nextStepButtonAriaLabel:A().string,isStepActive:A().bool.isRequired,isStepComplete:A().bool.isRequired,className:A().string,stepNumber:A().number,stepId:A().string.isRequired,titleContent:A().node.isRequired,goToThisStep:A().func,goToNextStep:A().func,activeStepContent:A().node,formStatus:A().string,completeStepContent:A().node,validatingButtonText:A().string,validatingButtonAriaLabel:A().string};var G=O.Z.span(f||(f=(0,b.Z)(["\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"])),(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"})),V=O.Z.h2(p||(p=(0,b.Z)(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),H=(0,O.Z)(N.Z)(m||(m=(0,b.Z)(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));function z(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,u=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=(0,x.useI18n)().__,c=!!u;return(0,_.createElement)(V,{isComplete:a,isActive:o,className:(0,C.Z)([n,"checkout-step__header"])},(0,_.createElement)(X,{isComplete:a,isActive:o,id:t},r||null),(0,_.createElement)(G,{fullWidth:!c,isActive:o},i),c&&(0,_.createElement)(H,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:u,"aria-label":l||__("Edit this step")},s||__("Edit")))}var Y=O.Z.div(g||(g=(0,b.Z)(["\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"]))),W=O.Z.div(h||(h=(0,b.Z)(["\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"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),q=O.Z.div(v||(v=(0,b.Z)(["\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"])),(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"})),K=(0,O.Z)(q)(y||(y=(0,b.Z)(["\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"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function X(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,_.createElement)(Y,{className:(0,C.Z)([r,"checkout-step__stepper"])},(0,_.createElement)(W,{isComplete:a},(0,_.createElement)(q,{isComplete:a,isActive:n},i),(0,_.createElement)(K,null,(0,_.createElement)(k.nQ,{id:o}))))}z.propTypes={id:A().string,className:A().string,stepNumber:A().number,title:A().node.isRequired,isActive:A().bool,isComplete:A().bool,editButtonText:A().string,editButtonAriaLabel:A().string,onEdit:A().func},X.propTypes={id:A().string,className:A().string,isComplete:A().bool,isActive:A().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return l}});var r,i=n(4059),o=n(3027),a=(n(3804),n(3980)),u=n.n(a),s=n(5393);function l(e){var t=e.className,n=e.id;return(0,o.createElement)(c,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,o.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,o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,o.createElement)("rect",{width:"20",height:"20"})))}l.propTypes={className:u().string,id:u().string};var c=s.Z.svg(r||(r=(0,i.Z)(["\n\tfill: #fff;\n"])))},6654:function(e,t,n){"use strict";function r(e){return e.filter((function(e){return e})).join(" ")}n.d(t,{Z:function(){return r}})},5393:function(e,t,n){"use strict";var r=n(6648);t.Z=r.Z},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777),i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},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"}};t.Z=i},7450:function(e,t,n){"use strict";var r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(584),o=n(3717),a=n(3600),u=n(2269),s=n(267),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.L,{actions:a,controls:l.ai,reducer:o.Z,resolvers:u,selectors:s})),i.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),s={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},l=(0,o.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]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.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?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=l},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return g},getCategories:function(){return h},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(9126),o=n(1481),a=n(6468),u=n.n(a),s=n(3600),l=n(3661),c=n(4211),d=regeneratorRuntime.mark(h),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var g=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,l.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,s.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,s.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function h(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,s.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,s.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,l._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,i.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)((0,o.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,s.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,s.receiveDomainSuggestionsError)(u.t0.message||(0,o.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},l=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return u},_B:function(){return s},o0:function(){return l}});var r=n(9394),i=n(5695),o=n.n(i),a=n(1621),u=o();function s(e,t){return(0,a.ZP)(e,t,{stripZeros:!0})}function l(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return g},updatePlan:function(){return h},openSidebar:function(){return v},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return E},setModalDismissible:function(){return w},unsetModalDismissible:function(){return A},showModalTitle:function(){return x},hideModalTitle:function(){return C},enablePersistentSuccessView:function(){return P},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},l=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),g=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function h(e){return m(e)}var v=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},E=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},A=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},C=function(){return{type:"HIDE_MODAL_TITLE"}},P=function(){return{type:"ENABLE_SUCCESS_VIEW"}},N=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});var r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});var r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9866),i=n(5707),o=n(9149),a=n(4648),u=n(6108),s=n(7092),l=n(594);(0,i.use)(i.plugins.persistence,l.Z);var c=!1;function d(){return c||(c=!0,(0,i.registerStore)(o.Ls,{actions:u,controls:r.controls,reducer:a.Z,selectors:s,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),o.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.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},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod: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},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===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}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(5707),i=n(3610),o=n(9149),a=function(){return i.M},u=function(){return i.y},s=function(e){return e},l=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},g=function(e,t){if(t===i.y.Plan)return!!d(e);if(t===i.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===i.y.Domain&&(0,r.select)(o.Ls).hasSelectedDomainOrSubdomain()},h=function(e){return i.M.slice(0,i.M.length-1).every((function(t){return g(e,t)}))},v=function(e){return i.M.some((function(t){return g(e,t)}))},y=function(e){return i.M.find((function(t){return!g(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",s="business",l="ecommerce",c=[o,a,u,s,l],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),g=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(4703),o=n(9438),a=n(9068),u=n(7738),s=n(5261),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:l.ai,reducer:o.ZP,selectors:u})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.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(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,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(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,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(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return g}});var r=n(9126),i=n(1621),o=n(9068),a=n(4703),u=n(3661),s=regeneratorRuntime.mark(g);function l(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,i.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function d(e){return e.reduce((function(e,t){return e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:a.nN.indexOf(t.id)>-1},e}),{})}function f(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function p(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:f(e,t)}}));return n.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),n}function m(e,t){var n=a.BV.reduce((function(n,r){var o=e.find((function(e){return e.product_slug===r}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===a.bS[t]})),r=e.find((function(e){return e.storeSlug===a.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,u=Math.round(100*(1-o/i));n.annualDiscount=u,r.annualDiscount=u}},n=0;n<a.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,i,l,c,f,g=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=g.length>0&&void 0!==g[0]?g[0]:"en",s.next=3,(0,u._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,u.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,i=n.body,l=d(i.features),c=i.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,l),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===a.TO,isPopular:n===a.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),s.next=13,(0,o.setPlans)(c,e);case 13:return s.next=15,(0,o.setPlanProducts)(f);case 15:return s.next=17,(0,o.setFeatures)(l,e);case 17:return s.next=19,(0,o.setFeaturesByType)(i.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return v},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(5707),i=n(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},s=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},l=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},g=function(e){return e.planProducts},h=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=function(e,t){return t===a.iL},_=function(e,t){return t===a.TO},S=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(9394),i=n(4530),o=n(3661),a=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),u=regeneratorRuntime.mark(b),s=regeneratorRuntime.mark(_),l=regeneratorRuntime.mark(S),c=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},f=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(n){var a,u,s,l,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,a=n.authToken,u=(0,i.Z)(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},l=(0,r.Z)((0,r.Z)((0,r.Z)({},s),u),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:l,token:a});case 8:return c=t.sent,t.next=11,d(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,f(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var m=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},g=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},h=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},v=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function y(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,h(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,v(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function b(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({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()}}),u)}function _(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({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()}}),s)}function S(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,m(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()}}),l,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:S,receiveSiteTitle:m,fetchNewSite:c,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:f,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:p,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:y,launchSiteStart:g,launchSiteSuccess:h,launchSiteFailure:v,getCart:b,setCart:_}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(2005),o=n(2701),a=n(8459),u=n(7862),s=n(4309),l=n(3661),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:l.ai,reducer:o.ZP,resolvers:u,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),s=n(2699),l=(0,u.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}}),c=(0,u.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:l,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(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},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?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.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?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return l}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),u=regeneratorRuntime.mark(l);function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).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()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(2699),a=function(e){return e},u=function(e){return e.newSite.data},s=function(e){return e.newSite.error},l=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},2699:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),u=n(335),s=!1;function l(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return s}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(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 r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(7997)),a=n(5869),u=n(3383),s=n(2779),l=n.n(s),c=n(8675),d=n(5707),f=n(3300);n(8062);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,c.useI18n)().__,s=(0,i.useState)(!1),p=(0,r.Z)(s,2),m=p[0],g=p[1],h=function(e){g(!1),t(e)},v=(0,d.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(a.Z,{icon:u.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return h(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(8675)),o=function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.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,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=n(3804),u=n(6461),s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,["type","disabled"]);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return b}});var r=n(2389),i=n(3258),o=n(3027),a=n(3804),u=n(2779),s=n.n(u),l=n(8675),c=n(6115),d=n(849),f=n(7498),p=n(7997),m=n(1417),g=n(3163),h=n(413),v=n(7226),y="radio",b="button",_="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,u=e.cost,S=e.railcarId,E=e.hstsRequired,w=void 0!==E&&E,A=e.isFree,x=void 0!==A&&A,C=e.isExistingSubdomain,P=void 0!==C&&C,N=e.isRecommended,k=void 0!==N&&N,I=e.onSelect,O=e.onRender,Z=e.selected,L=e.type,M=void 0===L?y:L,T=e.buttonRef,D=(0,l.useI18n)(),__=D.__,F=D.hasTranslation,R=(0,d.bU)(),$=(0,f.Iu)(),j=!(0,m.useViewportMatch)("small",">="),B=n.indexOf("."),U=n.slice(0,B),G=n.slice(B),V=a.useState(),H=(0,i.Z)(V,2),z=H[0],Y=H[1],W=a.useState(),q=(0,i.Z)(W,2),K=q[0],X=q[1],J=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=M===_?J:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===R||null!=F&&F("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===R||null!=F&&F("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});a.useEffect((function(){n!==z&&K!==S&&S&&(O(),Y(n),X(S))}),[n,z,K,S,O]);var se=function(){K&&(0,c.Lo)({action:"domain_selected",railcarId:K}),I(n)},le=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:T,type:M,key:U,className:s()("domain-picker__suggestion-item",{"is-free":x,"is-selected":Z,"is-unavailable":t},"type-".concat(M)),onClick:M!==b?se:void 0,disabled:t},M===y&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("span",{className:s()("domain-picker__suggestion-radio-circle",{"is-checked":Z,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:s()("domain-picker__domain-wrapper",{"with-margin":!w})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},U),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),k&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),w&&(0,o.createElement)(h.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.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,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),P&&M!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:s()("domain-picker__price",{"is-paid":!x})},t&&__("Unavailable","full-site-editing"),x&&!t&&ee,!x&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,g.sprintf)(__("%s/year","full-site-editing"),u)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,g.sprintf)(__("Renews at: %s /year","full-site-editing"),u)))),M===b&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(p.Button,{ref:T,isSecondary:!0,className:s()("domain-picker__suggestion-select-button",{"is-selected":Z&&!t}),disabled:t,onClick:se},Z&&!t?le:ce))))};t.ZP=a.forwardRef((function(e,t){return(0,o.createElement)(S,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(8675),a=n(7226);t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n.n(o),u=n(1205),s=n(7997),l=n(5869),c=n(7108),d=n(6115),f=n(584),p=n(8675),m=n(6461),g=n(1614),h=n(605),v=n(7003),y=n(6325),b=n(5241),_=n(1045),S=n(1071),E=n(3446),w=n(3300),A=(n(3437),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(o.Fragment,null,n)}),x=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,C=e.showDomainCategories,P=e.onDomainSelect,N=e.onExistingSubdomainSelect,k=e.quantity,I=void 0===k?w.SL:k,O=e.quantityExpanded,Z=void 0===O?w.Mm:O,L=e.onDomainSearchBlur,M=e.analyticsFlowId,T=e.analyticsUiAlgo,D=e.initialDomainSearch,F=void 0===D?"":D,R=e.onSetDomainSearch,$=e.currentDomain,j=e.isCheckingDomainAvailability,B=e.existingSubdomain,U=e.segregateFreeAndPaid,G=void 0!==U&&U,V=e.showSearchField,H=void 0===V||V,z=e.itemType,Y=void 0===z?m.fe:z,W=e.locale,q=e.areDependenciesLoading,K=void 0!==q&&q,X=e.orderSubDomainsLast,J=void 0!==X&&X,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,E.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,p.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,o.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],se=ae[1],le=(0,o.useState)(F),ce=(0,r.Z)(le,2),de=ce[0],fe=ce[1],pe=(0,o.useState)(),me=(0,r.Z)(pe,2),ge=me[0],he=me[1],ve=(0,b.O)(de.trim(),Z,ge,W)||{},ye=ve.allDomainSuggestions,be=ve.errorMessage,_e=ve.state,Se=ve.retryRequest,Ee=null==ye?void 0:ye.filter((function(e){return!(B&&e.is_free)})).slice(0,ue?Z-1:I-1),we=null==Ee?void 0:Ee.findIndex((function(e){return!e.is_free&&!e.unavailable})),Ae=(0,_.$)(Ee,B,$);Ae&&(null==Ee||Ee.push(Ae));var xe=(0,S.P)();(0,o.useEffect)((function(){se(!1)}),[de]);var Ce=(0,o.useState)(),Pe=(0,r.Z)(Ce,2),Ne=Pe[0],ke=Pe[1];(0,o.useEffect)((function(){ye&&ke((0,d.k9)("suggestion"))}),[ye,ke]),(0,o.useEffect)((function(){H||fe(F)}),[F,H]);var Ie=a().useRef([]);(0,o.useEffect)((function(){var e,t;ue&&(null===(e=Ie.current[I])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,I]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(M).concat(ge?"/"+ge:"");(0,d.Sn)({uiAlgo:"/".concat(M,"/").concat(T),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Ze=a().useRef(),Le=_e===f.r.Failure,Me=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,Te=!Le&&!Me,De=!Le&&Me,Fe=I;Ae&&(Fe+=1),Q&&(Fe+=1),B&&(Fe-=1);var Re=["professional"];return B&&Re.unshift("sub-domain"),J&&Re.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,H&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Ze||null===(t=Ze.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:c.Z})),(0,i.createElement)(s.TextControl,{ref:function(e){Ze.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),R&&R(e)},onBlur:function(e){L&&L(e.currentTarget.value)},value:de,dir:"ltr"}))),Le&&(0,i.createElement)(s.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},be||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(s.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Se},__("Retry","full-site-editing"))),(Te||K)&&(0,i.createElement)("div",{className:"domain-picker__body"},C&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(v.Z,{selected:ge,onSelect:he})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},Re.map((function(e){return"sub-domain"===e?(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&B&&(0,i.createElement)(m.ZP,{key:null==B?void 0:B.domain_name,domain:null==B?void 0:B.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==B?void 0:B.domain_name,"".concat(Ne,0),0,!1)},selected:(null==$?void 0:$.domain_name)===(null==B?void 0:B.domain_name),onSelect:function(){null==N||N(null==B?void 0:B.domain_name)},type:Y})||(0,i.createElement)(g.Z,{type:Y}))):(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Professional domains","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=B&&B.domain_name?t+1:t,o=t===we,a=null===(n=xe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,i.createElement)(m.ZP,{ref:function(e){Ie.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==$?void 0:$.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){P(e)},selected:(null==$?void 0:$.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(Fe,(function(e){return(0,i.createElement)(g.Z,{type:Y,key:e})})),Q&&!!Ee&&(0,i.createElement)(h.Z,{onClick:Q})))}))),!ue&&I<Z&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>I&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(s.Button,{onClick:function(){return se(!0)},isLink:!0},__("View more results","full-site-editing"))))),De&&!K&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.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,i.createElement)("div",null,(0,i.createElement)(y.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n(2779),u=n.n(a),s=n(7997),l=n(5614);n(101);t.Z=function(e){var t=e.children,n=e.className,a=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,o.useState)(!1),g=(0,r.Z)(m,2),h=g[0],v=g[1];return(0,i.createElement)((function(e){return(0,i.createElement)(s.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,i.createElement)(s.Popover,{id:a,className:u()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return s},vn:function(){return l}});var r=n(8077),i=5,o=10,a=2,u=300,s=r.z(),l=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:s,category_slug:n},l)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),s=u[0],l=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.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&&l(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={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 i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var s=(0,r.Z)((0,r.Z)({},a),n),l=s.decimal,c=s.grouping,d=s.precision,f=s.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:l});return n.stripZeros&&(m=u(m,l)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(8049),a=n.n(o),u=n(7010),s=n(9830),l=n(7839),c=n.n(l),d=n(5079),f=n.n(d),p=n(382),m=n(6668),g=n(3),h=a()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function E(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function w(e){return Array.prototype.slice.call(e)}function A(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&E("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",w(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&E("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",w(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 x(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function C(e,t){for(var n=_.length-1;n>=0;n--){var r=_[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return x(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;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:c()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},P.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},P.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},P.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(0,g.Z)(e,n,r,i)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==S[n+e])return S[n+e];var r=f()().update(e).digest("hex");return S[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)_.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var c=Number(o.substr(5));_.push(u(c))}else for(var d=Number(o.substr(5,l)),p=Number(o.substr(6+l)),m=d;m<=p;m++)_.push(u(m))}}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 s.Z((0,i.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,A([v])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,A([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!C(this,A(arguments))},P.prototype.translate=function(){var e=A(arguments),t=C(this,e);if(t||(t=x(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=m.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){h("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return l}});var r=n(914),i=n(3493),o=n(975),a=n(8373),u=new r.Z,s=u.numberFormat.bind(u),l=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,o.Z)(u),(0,a.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,s.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,l.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,l.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(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,u=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
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: 3.7543
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.7543' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  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: 3.7682
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.7682' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  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: 3.7543
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.7682
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html