Version Description
Download this release
Release Info
Developer | mciampini |
Plugin | Full Site Editing |
Version | 3.1041 |
Comparing to | |
See all releases |
Code changes from version 3.996 to 3.1041
- block-patterns/dist/block-patterns.asset.php +1 -1
- block-patterns/src/premium-block-patterns.tsx +13 -4
- editor-site-launch/dist/focused-launch.asset.php +1 -1
- editor-site-launch/dist/focused-launch.js +1 -1
- editor-site-launch/dist/gutenboarding-launch.asset.php +1 -1
- editor-site-launch/dist/gutenboarding-launch.js +2 -2
- editor-site-launch/dist/launch-button.asset.php +1 -1
- editor-site-launch/src/attach-focused-launch.tsx +1 -1
- editor-site-launch/src/attach-launch-sidebar.tsx +3 -3
- editor-site-launch/src/launch-focused-modal/index.tsx +0 -0
- editor-site-launch/src/launch-menu/index.tsx +1 -1
- editor-site-launch/src/launch-menu/item.tsx +1 -1
- editor-site-launch/src/launch-modal/index.tsx +1 -1
- editor-site-launch/src/launch-progress/index.tsx +1 -1
- editor-site-launch/src/launch-sidebar/index.tsx +1 -1
- editor-site-launch/src/launch-step/index.tsx +1 -1
- editor-site-launch/src/launch-steps/domain-step/index.tsx +1 -1
- editor-site-launch/src/launch-steps/final-step/index.tsx +1 -1
- editor-site-launch/src/launch-steps/name-step/index.tsx +1 -1
- editor-site-launch/src/launch-steps/plan-step/index.tsx +1 -1
- editor-site-launch/src/launch/index.tsx +1 -1
- full-site-editing-plugin.php +2 -2
- readme.txt +1 -1
- whats-new/dist/whats-new.asset.php +1 -1
- wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php +1 -1
- wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.js +1 -1
- wpcom-block-editor-nav-sidebar/src/attach-sidebar.tsx +2 -1
- wpcom-block-editor-nav-sidebar/src/components/create-page/index.tsx +8 -5
- wpcom-block-editor-nav-sidebar/src/components/nav-item/index.tsx +7 -2
- wpcom-block-editor-nav-sidebar/src/components/nav-sidebar/index.tsx +39 -22
- wpcom-block-editor-nav-sidebar/src/components/toggle-sidebar-button/index.tsx +3 -2
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php +1 -1
block-patterns/dist/block-patterns.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('react', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('react', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => 'a06a5d3bdfbbd3e8837014a92a599b00');
|
block-patterns/src/premium-block-patterns.tsx
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { useDispatch, useSelect } from '@wordpress/data';
|
6 |
import { __, sprintf } from '@wordpress/i18n';
|
7 |
import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
|
|
|
8 |
|
9 |
/**
|
10 |
* Internal dependencies
|
@@ -16,13 +17,17 @@ interface PatternTitleProps {
|
|
16 |
description?: string;
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
19 |
interface ExperimentalBlockPattern {
|
20 |
categories: string[];
|
21 |
content: string;
|
22 |
description: string;
|
23 |
isPremium: boolean;
|
24 |
name: string;
|
25 |
-
title:
|
26 |
viewportWidth: number;
|
27 |
}
|
28 |
|
@@ -40,12 +45,16 @@ export const PatternTitleContainer: React.FunctionComponent< PatternTitleProps >
|
|
40 |
export const PremiumBlockPatterns: React.FunctionComponent = () => {
|
41 |
const { __experimentalBlockPatterns } = useSelect( ( select ) =>
|
42 |
select( 'core/block-editor' ).getSettings()
|
|
|
|
|
|
|
|
|
|
|
43 |
);
|
44 |
-
const { updateSettings } = useDispatch( 'core/block-editor' );
|
45 |
|
46 |
if ( __experimentalBlockPatterns ) {
|
47 |
let shouldUpdateBlockPatterns = false;
|
48 |
-
const updatedPatterns:
|
49 |
|
50 |
__experimentalBlockPatterns.forEach( ( originalPattern: ExperimentalBlockPattern ) => {
|
51 |
const pattern = { ...originalPattern };
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React, { ReactNode } from 'react';
|
5 |
import { useDispatch, useSelect } from '@wordpress/data';
|
6 |
import { __, sprintf } from '@wordpress/i18n';
|
7 |
import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
|
8 |
+
import type { EditorSettings } from '@wordpress/block-editor';
|
9 |
|
10 |
/**
|
11 |
* Internal dependencies
|
17 |
description?: string;
|
18 |
}
|
19 |
|
20 |
+
interface ExperimentalEditorSettings extends EditorSettings {
|
21 |
+
__experimentalBlockPatterns: ExperimentalBlockPattern[];
|
22 |
+
}
|
23 |
+
|
24 |
interface ExperimentalBlockPattern {
|
25 |
categories: string[];
|
26 |
content: string;
|
27 |
description: string;
|
28 |
isPremium: boolean;
|
29 |
name: string;
|
30 |
+
title: ReactNode;
|
31 |
viewportWidth: number;
|
32 |
}
|
33 |
|
45 |
export const PremiumBlockPatterns: React.FunctionComponent = () => {
|
46 |
const { __experimentalBlockPatterns } = useSelect( ( select ) =>
|
47 |
select( 'core/block-editor' ).getSettings()
|
48 |
+
) as ExperimentalEditorSettings;
|
49 |
+
const {
|
50 |
+
updateSettings,
|
51 |
+
}: { updateSettings: ( settings: Partial< ExperimentalEditorSettings > ) => void } = useDispatch(
|
52 |
+
'core/block-editor'
|
53 |
);
|
|
|
54 |
|
55 |
if ( __experimentalBlockPatterns ) {
|
56 |
let shouldUpdateBlockPatterns = false;
|
57 |
+
const updatedPatterns: ExperimentalBlockPattern[] = [];
|
58 |
|
59 |
__experimentalBlockPatterns.forEach( ( originalPattern: ExperimentalBlockPattern ) => {
|
60 |
const pattern = { ...originalPattern };
|
editor-site-launch/dist/focused-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'b0330ce6a749b6251a87e583e5a4a440');
|
editor-site-launch/dist/focused-launch.js
CHANGED
@@ -16,7 +16,7 @@ object-assign
|
|
16 |
*
|
17 |
* This source code is licensed under the MIT license found in the
|
18 |
* LICENSE file in the root directory of this source tree.
|
19 |
-
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=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,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case o:case c:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case g:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},7933:function(e,t,n){"use strict";n.d(t,{rU:function(){return h}});var r=n(7267),i=n(5307),o=n(3804),a=n.n(o),c=n(7547),s=(n(3980),n(7560)),u=n(8283),l=n(1898);a().Component;a().Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,c.ob)(e,null,null,t):e},p=function(e){return e},m=a().forwardRef;void 0===m&&(m=p);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=(0,u.Z)(e,["innerRef","navigate","onClick"]),c=o.target,l=(0,s.Z)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=p!==m&&t||n,a().createElement("a",l)}));var h=m((function(e,t){var n=e.component,i=void 0===n?g:n,o=e.replace,c=e.to,h=e.innerRef,v=(0,u.Z)(e,["component","replace","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=e.history,r=f(d(c,e.location),e.location),u=r?n.createHref(r):"",g=(0,s.Z)({},v,{href:u,navigate:function(){var t=d(c,e.location);(o?n.replace:n.push)(t)}});return p!==m?g.ref=t||h:g.innerRef=h,a().createElement(i,g)}))})),v=function(e){return e},y=a().forwardRef;void 0===y&&(y=v);y((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,c=void 0===o?"active":o,p=e.activeStyle,m=e.className,g=e.exact,_=e.isActive,b=e.location,E=e.strict,S=e.style,w=e.to,P=e.innerRef,C=(0,u.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=b||e.location,o=f(d(w,n),n),u=o.pathname,N=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=N?(0,r.LX)(n.pathname,{path:N,exact:g,strict:E}):null,A=!!(_?_(x,n):x),O=A?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(m,c):m,L=A?(0,s.Z)({},S,{},p):S,T=(0,s.Z)({"aria-current":A&&i||null,className:O,style:L,to:o},C);return v!==y?T.ref=t||P:T.innerRef=P,a().createElement(h,T)}))}))},7267:function(e,t,n){"use strict";n.d(t,{VA:function(){return g},l_:function(){return b},AW:function(){return P},F0:function(){return m},rs:function(){return L},s6:function(){return p},LX:function(){return w},k6:function(){return I},TH:function(){return k}});var r=n(5307),i=n(3804),o=n.n(i),a=(n(3980),n(7547)),c=n(8919),s=n(1898),u=n(7560),l=n(99),d=n.n(l),f=(n(8570),n(8283)),p=(n(3463),function(e){var t=(0,c.Z)();return t.displayName=e,t}("Router")),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o().createElement(p.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(o().Component);var g=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,a.PP)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return o().createElement(m,{history:this.history,children:this.props.children})},t}(o().Component);var h=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o().Component);var v={},y=0;function _(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(v[e])return v[e];var t=d().compile(e);return y<1e4&&(v[e]=t,y++),t}(e)(t,{pretty:!0})}function b(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o().createElement(p.Consumer,null,(function(e){e||(0,s.Z)(!1);var r=e.history,c=e.staticContext,l=i?r.push:r.replace,d=(0,a.ob)(t?"string"==typeof n?_(n,t.params):(0,u.Z)({},n,{pathname:_(n.pathname,t.params)}):n);return c?(l(d),null):o().createElement(h,{onMount:function(){l(d)},onUpdate:function(e,t){var n=(0,a.ob)(t.to);(0,a.Hp)(n,(0,u.Z)({},d,{key:n.key}))||l(d)},to:n})}))}var E={},S=0;function w(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=E[n]||(E[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return S<1e4&&(r[e]=o,S++),o}(n,{end:o,strict:c,sensitive:u}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var l=s[0],f=s.slice(1),p=e===l;return o&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o().createElement(p.Consumer,null,(function(t){t||(0,s.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?w(n.pathname,e.props):t.match,i=(0,u.Z)({},t,{location:n,match:r}),a=e.props,c=a.children,l=a.component,d=a.render;return Array.isArray(c)&&0===c.length&&(c=null),o().createElement(p.Provider,{value:i},i.match?c?"function"==typeof c?c(i):c:l?o().createElement(l,i):d?d(i):null:"function"==typeof c?c(i):null)}))},t}(o().Component);function C(e){return"/"===e.charAt(0)?e:"/"+e}function N(e,t){if(!e)return t;var n=C(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function x(e){return"string"==typeof e?e:(0,a.Ep)(e)}function A(e){return function(){(0,s.Z)(!1)}}function O(){}o().Component;var L=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o().createElement(p.Consumer,null,(function(t){t||(0,s.Z)(!1);var n,r,i=e.props.location||t.location;return o().Children.forEach(e.props.children,(function(e){if(null==r&&o().isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?w(i.pathname,(0,u.Z)({},e.props,{path:a})):t.match}})),r?o().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o().Component);var T=o().useContext;function I(){return T(p).history}function k(){return T(p).location}},7613:function(e,t){"use strict";function n(e){return"/"===e.charAt(0)}function r(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}t.Z=function(e,t){void 0===t&&(t="");var i,o=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&n(e),s=t&&n(t),u=c||s;if(e&&n(e)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var l=a[a.length-1];i="."===l||".."===l||""===l}else i=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?r(a,f):".."===p?(r(a,f),d++):d&&(r(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&n(a[0])||a.unshift("");var m=a.join("/");return i&&"/"!==m.substr(-1)&&(m+="/"),m}},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,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},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},272:function(e,t,n){"use strict";n.r(t);n(8318),n(5631)},5631:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),c=n(1200),s=n(5707),u=n(791),l=n(8152),d=n(365),f=n(8318),p=n(8550),m=n(1157);r="a8c-editor-editor-focused-launch",i={render:function(){var e,t=window._currentSiteId,n=(0,s.useSelect)((function(e){return e(f.j4).isSiteLaunched(t)}),[t]),r=(0,s.useSelect)((function(e){return e(f.sC).getState()}),[]).isFocusedLaunchOpen,i=(0,s.useDispatch)(f.sC).openFocusedLaunch;a.useEffect((function(){n&&document.body.classList.add("is-focused-launch-complete")}),[n]);var c=(0,u.hasQueryArg)((0,p.O0)(),m.nU);return a.useEffect((function(){c&&!n&&i()}),[c,n,i]),r?(0,o.createElement)(l.Z,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:p.Rd,redirectTo:p.gQ,siteId:t,getCurrentLaunchFlowUrl:p.O0,isInIframe:(0,d.y)(),isLaunchImmediately:c}):null}},(0,c.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{Js:function(){return r},nU:function(){return i}});var r="focused-launch",i="should_launch"},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i}});n(8681);var r="automattic/site",i="automattic/launch"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return l},gQ:function(){return d},Rd:function(){return f}});var r=n(417),i=n.n(r),o=n(1260),a=n.n(o),c=n(5799),s=n(791),u=n(1157),l=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},d=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))},f=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=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=l().split("?")[0];if((0,c.hasAction)(f)&&p&&!r)(0,c.doAction)(f,{checkoutOnSuccessCallback:o,isFocusedLaunch:!0,redirectTo:(0,s.addQueryArgs)(m,a()({},u.nU,!0))});else{var g=(0,s.addQueryArgs)("/checkout/".concat(n),i()({},!r&&{redirect_to:"/home/".concat(n)}));d(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 p}});n(1068);var r,i=n(417),o=n.n(i),a=(n(5182),n(1205)),c=(n(3421),n(382)),s=n(4898),u=(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 d(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w2.js?1");var f=new c.EventEmitter;function p(e,t){if(t=t||{},(0,u.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,a.includes)(l,e)){if(r){var n=r(t);t=o()(o()({},t),n)}t=(0,a.omitBy)(t,a.isUndefined),(0,u.Z)('Recording event "%s" with actual props %o',e,t),d(["recordEvent",e,t]),f.emit("record-event",e,t)}else(0,u.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 c}});var r=n(6374),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,c=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:c})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function c(){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)},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 c}});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()}},c=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),c=n(2269),s=n(267),u=n(3661),l=!1;function d(e){var t=e.vendor;return l||(l=!0,(0,r.registerStore)(i.L,{actions:a,controls:u.ai,reducer:o.Z,resolvers:c,selectors:(0,s.Z)(t)})),i.L}},3717:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=n(584),u=n(4211),l={state:s.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},d=(0,c.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]:l,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?a()(a()({},e),{},{state:s.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?a()(a()({},e),{},{state:s.r.Success,data:a()(a()({},e.data),{},i()({},(0,u.L)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?a()(a()({},e),{},{state:s.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?a()(a()({},e),{},i()({},t.domainName,t.availability)):e}});t.Z=d},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return f},getCategories:function(){return p},__internalGetDomainSuggestions:function(){return m}});var r=n(417),i=n.n(r),o=n(9126),a=n(1481),c=n(3600),s=n(3661),u=n(4211),l=regeneratorRuntime.mark(p),d=regeneratorRuntime.mark(m),f=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,(0,s.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,c.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,c.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function p(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",(0,c.receiveCategories)(e.body));case 4:case"end":return t.stop()}}),l)}function m(e){var t,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.query){r.next=2;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)("Empty query"));case 2:return r.next=4,(0,c.fetchDomainSuggestions)();case 4:return r.prev=4,r.next=7,(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:t=r.sent,r.next=13;break;case 10:return r.prev=10,r.t0=r.catch(4),r.abrupt("return",(0,c.receiveDomainSuggestionsError)(r.t0.message||(0,a.Iu)("Error while fetching server response")));case 13:if(t&&""!==t){r.next=15;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)((0,a.Iu)("Invalid response from the server")));case 15:return n=t.map((function(e){return i()(i()({},e),e.raw_price&&e.currency_code&&{cost:(0,u._)(e.raw_price,e.currency_code)})})),r.abrupt("return",(0,c.receiveDomainSuggestionsSuccess)(e,n));case 17:case"end":return r.stop()}}),d,null,[[4,10]])}},267:function(e,t,n){"use strict";var r=n(417),i=n.n(r),o=n(5182),a=n.n(o),c=n(5707),s=n(584),u=n(4211);t.Z=function(e){function t(t,n){return i()(i()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(a()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),a()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)(s.L).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)("core/data").isResolving(s.L,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[(0,u.L)(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}}},4211:function(e,t,n){"use strict";n.d(t,{L:function(){return a},_:function(){return c}});var r=n(5695),i=n.n(r),o=n(1621),a=i();function c(e,t){return(0,o.ZP)(e,t,{stripZeros:!0})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return c},setSiteTitle:function(){return s},setDomain:function(){return u},unsetDomain:function(){return l},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 _},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return E},showSiteTitleStep:function(){return S},setModalDismissible:function(){return w},unsetModalDismissible:function(){return P},showModalTitle:function(){return C},hideModalTitle:function(){return N},enablePersistentSuccessView:function(){return x},disablePersistentSuccessView:function(){return A}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},c=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},u=function(e){return{type:"SET_DOMAIN",domain:e}},l=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"}},_=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},b=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},E=function(){return{type:"ENABLE_ANCHOR_FM"}},S=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},P=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},C=function(){return{type:"SHOW_MODAL_TITLE"}},N=function(){return{type:"HIDE_MODAL_TITLE"}},x=function(){return{type:"ENABLE_SUCCESS_VIEW"}},A=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),c=n(6108),s=n(7092),u=n(594);(0,i.use)(i.plugins.persistence,u.Z);var l=!1;function d(){return l||(l=!0,(0,i.registerStore)(o.Ls,{actions:c,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 c},getState:function(){return s},hasPaidDomain:function(){return u},getSelectedDomain:function(){return l},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return _},getCurrentStep:function(){return b},getDomainSearch:function(){return E}});var r=n(5707),i=n(3610),o=n(9149),a=function(){return i.M},c=function(){return i.y},s=function(e){return e},u=function(e){return!!e.domain&&!e.domain.is_free},l=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!!l(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).hasSelectedDomain()},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)}))},_=function(e){return null==e?void 0:e.siteTitle},b=function(e){return e.step},E=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 c}});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}},c=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 c},hx:function(){return s},iL:function(){return u},xT:function(){return l},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",c="premium",s="business",u="ecommerce",l=[o,a,c,s,u],d=c,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),c=n(7738),s=n(5261),u=n(3661),l=!1;function d(){return l||(l=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:u.ai,reducer:o.ZP,selectors:c})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=(0,c.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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},t.locale,t.plans));default:return e}}});t.ZP=s},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),c=n(3661),s=regeneratorRuntime.mark(g);function u(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(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,c=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:c.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?l(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?u(o):l(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,c=Math.round(100*(1-o/i));n.annualDiscount=c,r.annualDiscount=c}},n=0;n<a.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,i,u,l,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,c._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,c.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,u=d(i.features),l=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,u),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,l),s.next=13,(0,o.setPlans)(l,e);case 13:return s.next=15,(0,o.setPlanProducts)(f);case 15:return s.next=17,(0,o.setFeatures)(u,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 c},getFeaturesByType:function(){return s},getPlanByProductId:function(){return u},getPlanProductById:function(){return l},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 _},isPlanFree:function(){return b},isPlanProductFree:function(){return E}});var r=n(5707),i=n(4703),o=n(3613),a=n.n(o),c=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:[]},u=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},l=function(e,t){if(t)return(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.AX}))},p=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.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 a()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(i.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var o=(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(o)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===(null==o?void 0:o.periodAgnosticSlug)}))}},y=function(e,t,n){if(t&&n){var o=(0,r.select)(i.Ls).getPlansProducts();return t===i.TO?o.find((function(e){return e.periodAgnosticSlug===t})):o.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},_=function(e,t){return t===i.iL},b=function(e,t){return t===i.TO},E=function(e,t){return t===i.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(417),i=n.n(r),o=n(2220),a=n.n(o),c=n(3661),s=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),r=regeneratorRuntime.mark(_),o=regeneratorRuntime.mark(b),u=regeneratorRuntime.mark(E),l=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 r,o,s,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,o=a()(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},u=i()(i()(i()({},s),o),{},{validate:!1}),t.next=8,(0,c._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:u,token:r});case 8:return l=t.sent,t.next=11,d(l);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,c._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,s.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,c._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()}}),r)}function b(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,c._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()}}),o)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,c._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()}}),u,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:m,fetchNewSite:l,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:_,setCart:b}}},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),c=n(7862),s=n(4309),u=n(3661),l=!1;function d(e){return l||(l=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:u.ai,reducer:o.ZP,resolvers:c,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(2220),i=n.n(r),o=n(4582),a=n.n(o),c=n(1260),s=n.n(c),u=n(417),l=n.n(u),d=n(5707),f=n(2699),p=(0,d.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}}),m=(0,d.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:p,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 l()(l()({},e),{},s()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],i()(e,[n].map(a())));return l()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?l()(l()({},e),{},s()({},t.siteId,l()(l()({},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?l()(l()({},e),{},s()({},t.siteId,{status:f.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:f.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:f.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?l()(l()({},e),{},s()({},t.siteId,t.domains)):e}});t.ZP=m},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return u}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),c=regeneratorRuntime.mark(u);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 u(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()}}),c,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return c},getNewSiteError:function(){return s},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return l},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},c=function(e){return e.newSite.data},s=function(e){return e.newSite.error},u=function(e){return e.newSite.isFetching},l=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 c}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,c={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 u}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),c=n(335),s=!1;function u(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:c})),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 c},An:function(){return s},ai:function(){return u}});var r,i=n(2954),o=n.n(i),a=n(8552),c=function(e){return{type:"WPCOM_REQUEST",request:e}},s=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},u={WPCOM_REQUEST:function(e){var t=e.request;return(0,a.ZP)(t)},FETCH_AND_PARSE:(r=o()(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,a.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,a.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},3300:function(e,t,n){"use strict";n.d(t,{gB:function(){return i},au:function(){return o},F9:function(){return a},dP:function(){return c},GN:function(){return s},vn:function(){return u}});var r=n(8077),i=5,o=10,a=2,c=300,s=r.z({vendor:"variation2_front"}),u=["available","available_premium"]},4948:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=(n(3804),n(7997)),c=n(5869),s=n(3383),u=n(2779),l=n.n(u),d=n(9215),f=n(5707),p=n(3300);n(988);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,d.QT)().__,r=(0,o.useState)(!1),u=i()(r,2),m=u[0],g=u[1],h=function(e){g(!1),t(e)},v=(0,f.useSelect)((function(e){return e(p.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,o.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,o.createElement)(a.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,o.createElement)("span",null,null!=n?n:y),(0,o.createElement)(c.Z,{icon:s.Z,size:16})),(0,o.createElement)("ul",{className:"domain-categories__item-group"},(0,o.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,o.createElement)(a.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,o.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,o.createElement)(a.Button,{onClick:function(){return h(t)}},r))}))))}},1052:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(9215)),o=function(){var e=(0,i.QT)(),__=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"))))}},7047:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n.n(a),s=n(5707),u=n(1205),l=n(7997),d=n(5869),f=n(7108),p=n(6115),m=n(584),g=n(9215),h=n(947),v=n(7226),y=n(4531),_=n(5241),b=n(1045),E=n(1071),S=n(4948),w=n(3300),P=n(1052),C=(n(8395),function(e){var t=e.groupItems,n=e.children;return t?(0,o.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,o.createElement)(a.Fragment,null,n)}),N=function(e){var t=e.children;return(0,o.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,r=e.showDomainCategories,x=e.onDomainSelect,A=e.onExistingSubdomainSelect,O=e.quantity,L=void 0===O?w.gB:O,T=e.quantityExpanded,I=void 0===T?w.au:T,k=e.onDomainSearchBlur,D=void 0===k?u.noop:k,R=e.analyticsFlowId,F=e.analyticsUiAlgo,Z=e.initialDomainSearch,j=void 0===Z?"":Z,M=e.onSetDomainSearch,U=void 0===M?u.noop:M,B=e.currentDomain,V=e.isCheckingDomainAvailability,H=e.existingSubdomain,z=e.segregateFreeAndPaid,$=void 0!==z&&z,W=e.showSearchField,G=void 0===W||W,q=e.itemType,Y=void 0===q?h.tr:q,K=e.locale,Q=e.areDependenciesLoading,J=void 0!==Q&&Q,X=e.orderSubDomainsLast,ee=void 0!==X&&X,te=e.onUseYourDomainClick,__=(0,g.QT)().__,ne=__("Search for a domain","full-site-editing"),re=(0,a.useState)(!1),ie=i()(re,2),oe=ie[0],ae=ie[1],ce=(0,a.useState)(j),se=i()(ce,2),ue=se[0],le=se[1],de=(0,a.useState)(),fe=i()(de,2),pe=fe[0],me=fe[1],ge=(0,s.useSelect)((function(e){return e(w.GN).getDomainSuggestionVendor()})),he=(0,_.O)(ue.trim(),I,pe,K)||{},ve=he.allDomainSuggestions,ye=he.errorMessage,_e=he.state,be=he.retryRequest,Ee=null==ve?void 0:ve.slice(H?1:0,oe?I:L),Se=(0,b.$)(Ee,H,B);Se&&(null==Ee||Ee.push(Se));var we=(0,E.P)();(0,a.useEffect)((function(){ae(!1)}),[ue]);var Pe=(0,a.useState)(),Ce=i()(Pe,2),Ne=Ce[0],xe=Ce[1];(0,a.useEffect)((function(){ve&&xe((0,p.k9)("suggestion"))}),[ve,xe]),(0,a.useEffect)((function(){G||le(j)}),[j,G]);var Ae=c().useRef([]);(0,a.useEffect)((function(){var e,t;oe&&(null===(e=Ae.current[L])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[oe,L]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(ge,"/").concat(R).concat(pe?"/"+pe:"");(0,p.Sn)({uiAlgo:"/".concat(R,"/").concat(F),fetchAlgo:i,query:ue,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Le=_e===m.r.Failure,Te=(null===(t=ue.trim)||void 0===t?void 0:t.call(ue).length)<=1,Ie=!Le&&!Te,ke=!Le&&Te,De=L;Se&&(De+=1),te&&(De+=1),H&&(De-=1);var Re=["professional"];return H&&Re.unshift("sub-domain"),ee&&Re.reverse(),(0,o.createElement)("div",{className:"domain-picker"},n&&n,G&&(0,o.createElement)("div",{className:"domain-picker__search"},(0,o.createElement)("div",{className:"domain-picker__search-icon"},(0,o.createElement)(d.Z,{icon:f.Z})),(0,o.createElement)(l.TextControl,{hideLabelFromVision:!0,label:ne,placeholder:ne,onChange:function(e){le(e),U(e)},onBlur:function(e){D&&D(e.currentTarget.value)},value:ue,dir:"ltr"})),Le&&(0,o.createElement)(l.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,o.createElement)("p",{className:"domain-picker__error-message"},ye||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,o.createElement)(l.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:be},__("Retry","full-site-editing"))),(Ie||J)&&(0,o.createElement)("div",{className:"domain-picker__body"},r&&(0,o.createElement)("div",{className:"domain-picker__aside"},(0,o.createElement)(S.Z,{selected:pe,onSelect:me})),(0,o.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,o.createElement)("div",{className:"domain-picker__sugggested-items-container"},Re.map((function(e){return"sub-domain"===e?(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(N,null,__("Keep sub-domain","full-site-editing")),(0,o.createElement)(C,{key:e,groupItems:$},!J&&H&&(0,o.createElement)(h.ZP,{key:null==H?void 0:H.domain_name,domain:null==H?void 0:H.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==H?void 0:H.domain_name,"".concat(Ne,0),0,!1)},selected:(null==B?void 0:B.domain_name)===(null==H?void 0:H.domain_name),onSelect:function(){null==A||A(null==H?void 0:H.domain_name)},type:Y})||(0,o.createElement)(v.Z,{type:Y}))):(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(N,null,__("Professional domains","full-site-editing")),(0,o.createElement)(C,{key:e,groupItems:$},!J&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=H&&H.domain_name?t+1:t,i=1===r,a=null===(n=we[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,o.createElement)(h.ZP,{ref:function(e){Ae.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==B?void 0:B.domain_name)===e.domain_name&&V,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:i,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,i)},onSelect:function(){x(e)},selected:(null==B?void 0:B.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(De,(function(e){return(0,o.createElement)(v.Z,{type:Y,key:e})})),te&&!!Ee&&(0,o.createElement)(y.Z,{onClick:te})))}))),!oe&&L<I&&(null==ve?void 0:ve.length)&&(null==ve?void 0:ve.length)>L&&(0,o.createElement)("div",{className:"domain-picker__show-more"},(0,o.createElement)(l.Button,{onClick:function(){return ae(!0)},isLink:!0},__("View more results","full-site-editing"))))),ke&&!J&&(0,o.createElement)("div",{className:"domain-picker__empty-state"},(0,o.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,o.createElement)("div",null,(0,o.createElement)(P.q,null))))}},7226: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"}))}},5179:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=n(3804),u=s.forwardRef((function(e,t){var n=e.type,r=e.disabled,o=a()(e,["type","disabled"]);return"button"===n?(0,c.createElement)("div",o):(0,c.createElement)("button",i()({ref:t,disabled:r},o))}));t.Z=u},947:function(e,t,n){"use strict";n.d(t,{tr:function(){return _},En:function(){return b}});var r=n(8527),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n(2779),l=n.n(u),d=n(9215),f=n(6115),p=n(7498),m=n(7997),g=n(1417),h=n(3163),v=n(1749),y=n(5179),_="radio",b="button",E="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,u=e.hstsRequired,S=void 0!==u&&u,w=e.isFree,P=void 0!==w&&w,C=e.isExistingSubdomain,N=void 0!==C&&C,x=e.isRecommended,A=void 0!==x&&x,O=e.onSelect,L=e.onRender,T=e.selected,I=e.type,k=void 0===I?_:I,D=e.buttonRef,__=(0,d.QT)().__,R=(0,p.Iu)(),F=(0,g.useViewportMatch)("small","<"),Z=n.indexOf("."),j=n.slice(0,Z),M=n.slice(Z),U=s.useState(),B=a()(U,2),V=B[0],H=B[1],z=s.useState(),$=a()(z,2),W=$[0],G=$[1],q=__("Default","full-site-editing"),Y=__("Free","full-site-editing"),K=__("Included in paid plans","full-site-editing"),Q=__("Included with annual plans","full-site-editing"),J=__("<strong>First year included</strong> in paid plans","full-site-editing"),X=k===E?q:Y,ee=F?K:(0,c.createInterpolateElement)(J,{strong:(0,c.createElement)("strong",null)}),te=k===E?ee:F?Y:Q;s.useEffect((function(){n!==V&&W!==o&&o&&(L(),H(n),G(o))}),[n,V,W,o,L]);var ne=function(){W&&(0,f.Lo)({action:"domain_selected",railcarId:W}),O(n)},re=__("Selected","full-site-editing"),ie=__("Select","full-site-editing");return(0,c.createElement)(y.Z,{ref:D,type:k,key:j,className:l()("domain-picker__suggestion-item",{"is-free":P,"is-selected":T,"is-unavailable":t},"type-".concat(k)),onClick:"button"!==k?ne:void 0,disabled:t},k===_&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("span",{className:l()("domain-picker__suggestion-radio-circle",{"is-checked":T,"is-unavailable":t})})),(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,c.createElement)("span",{className:l()("domain-picker__domain-wrapper",{"with-margin":!S})},(0,c.createElement)("span",{className:"domain-picker__domain-sub-domain"},j),(0,c.createElement)("span",{className:"domain-picker__domain-tld"},M)),A&&!t&&(0,c.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),S&&(0,c.createElement)(v.Z,{position:F?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,c.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,c.createElement)("b",null,M),learn_more_link:(0,c.createElement)("a",{target:"_blank",rel:"noreferrer",href:R("https://wordpress.com/support/https-ssl")})}))),N&&k!==E&&(0,c.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,c.createElement)("div",{className:l()("domain-picker__price",{"is-paid":!P})},t&&__("Unavailable","full-site-editing"),P&&!t&&X,!P&&!t&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"domain-picker__price-cost"},(0,h.sprintf)(__("%s/year","full-site-editing"),i)),(0,c.createElement)("span",{className:"domain-picker__price-inclusive"}," ",te," "),(0,c.createElement)("span",{className:"domain-picker__price-renewal"},(0,h.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),k===b&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("div",{className:"domain-picker__action"},(0,c.createElement)(m.Button,{ref:D,isSecondary:!0,className:l()("domain-picker__suggestion-select-button",{"is-selected":T&&!t}),disabled:t,onClick:ne},T&&!t?re:ie))))};t.ZP=s.forwardRef((function(e,t){return(0,c.createElement)(S,i()({},e,{buttonRef:t}))}))},4531:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(9215),a=n(5179);t.Z=function(e){var t=e.onClick,n=(0,o.QT)(),__=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",onClick:t},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},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 l}});var r=n(417),i=n.n(r),o=n(1068),a=n.n(o),c=n(5707),s=n(7127),u=n(3300);function l(){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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=(0,s.Z)(e,u.dP),d=a()(l,1),f=d[0],p=(0,c.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,c.useSelect)((function(e){if(f&&!(f.length<u.F9)){var a=e(u.GN),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(f,i()({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n},o)),state:s(),errorMessage:l(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(5182),i=n.n(r),o=n(1068),a=n.n(o),c=n(3804);function s(e,t,n){var r=c.useState(),o=a()(r,2),s=o[0],u=o[1],l=t&&Array.isArray(e)?[t].concat(i()(e)):e;if(c.useEffect((function(){var e=null==l?void 0:l.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=l&&l.length&&!e&&u(n)}),[n,l]),!(null==l?void 0:l.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},1749:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(2779),s=n.n(c),u=n(7997),l=n(5614);n(6388);t.Z=function(e){var t=e.children,n=e.className,r=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,a.useState)(!1),g=i()(m,2),h=g[0],v=g[1];return(0,o.createElement)((function(e){return(0,o.createElement)(u.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,o.createElement)(u.Popover,{id:r,className:s()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},7356: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:""}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}n.d(t,{n:function(){return r},Q:function(){return i}})},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 c}});var r=n(417),i=n.n(r),o=n(1481),a=n(3759);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.X)(t);if(!r||isNaN(e))return null;var c=i()(i()({},r),n),u=c.decimal,l=c.grouping,d=c.precision,f=c.symbol,p=e<0?"-":"",m=(0,o.Y4)(Math.abs(e),{decimals:d,thousandsSep:l,decPoint:u});return n.stripZeros&&(m=s(m,u)),"".concat(p).concat(f).concat(m)}function s(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(5182),i=n.n(r),o=n(1260),a=n.n(o),c=n(8049),s=n.n(c),u=n(7010),l=n(9830),d=n(7839),f=n.n(d),p=n(5079),m=n.n(p),g=n(382),h=n(6668),v=n(3),y=s()("i18n-calypso"),_="number_format_decimals",b="number_format_thousands_sep",E="messages",S=[function(e){return e}],w={};function P(){O.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function C(e){return Array.prototype.slice.call(e)}function N(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&P("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",C(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&P("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",C(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(E,t.context,t.original,t.plural,t.count)}function A(e,t){for(var n=S.length-1;n>=0;n--){var r=S[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 O(){if(!(this instanceof O))return new O;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:f()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}O.throwErrors=!1,O.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},O.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},O.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},O.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,v.Z)(e,n,r,i)},O.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},O.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==w[n+e])return w[n+e];var r=m()().update(e).digest("hex");return w[n+e]=t?r.substr(0,t):r},c=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)S.push(c(!1));else{var s=i.substr(5).indexOf("-");if(s<0){var u=Number(i.substr(5));S.push(c(u))}else for(var d=Number(i.substr(5,s)),f=Number(i.substr(6+s)),p=d;p<=f;p++)S.push(c(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new l.Z(a()({},E,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,N([_])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,N([b])),this.state.numberFormatSettings.decimal_point===_&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===b&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},O.prototype.getLocale=function(){return this.state.locale},O.prototype.getLocaleSlug=function(){return this.state.localeSlug},O.prototype.getLocaleVariant=function(){return this.state.localeVariant},O.prototype.isRtl=function(){return"rtl"===this.state.textDirection},O.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},O.prototype.hasTranslation=function(){return!!A(this,N(arguments))},O.prototype.translate=function(){var e=N(arguments),t=A(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=h.Z.apply(void 0,i()(n))}catch(o){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[r](o):window.console[r]("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},O.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},O.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},O.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=O},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return u}});var r=n(914),i=n(3493),o=n(975),a=n(8373),c=new r.Z,s=c.numberFormat.bind(c),u=c.translate.bind(c),l=(c.configure.bind(c),c.setLocale.bind(c),c.getLocale.bind(c),c.getLocaleSlug.bind(c),c.getLocaleVariant.bind(c),c.isRtl.bind(c),c.addTranslations.bind(c),c.reRenderTranslations.bind(c),c.registerComponentUpdateHook.bind(c),c.registerTranslateHook.bind(c),c.state,c.stateObserver,c.on.bind(c),c.off.bind(c),c.emit.bind(c),(0,i.Z)(c),(0,o.Z)(c),(0,a.Z)(c));l.useRtl,l.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(417),i=n.n(r),o=n(85),a=n.n(o),c=n(5198),s=n.n(c),u=n(8111),l=n.n(u),d=n(270),f=n.n(d),p=n(4564),m=n.n(p),g=n(1260),h=n.n(g),v=n(3027),y=n(3804),_=n.n(y);function b(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var r,o,c=n.displayName||n.name||"";return o=r=function(r){f()(c,r);var o=m()(c);function c(){var e;a()(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=o.call.apply(o,[this].concat(n)),h()(l()(e),"boundForceUpdate",e.forceUpdate.bind(l()(e))),e}return s()(c,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var r=i()(i()({locale:e.getLocaleSlug()},this.props),t);return(0,v.createElement)(n,r)}}]),c}(_().Component),h()(r,"displayName","Localized("+c+")"),o}}},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,c=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,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=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,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case o:case c:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case g:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},7933:function(e,t,n){"use strict";n.d(t,{rU:function(){return h}});var r=n(7267),i=n(5307),o=n(3804),a=n.n(o),c=n(7547),s=(n(3980),n(7560)),u=n(8283),l=n(1898);a().Component;a().Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?(0,c.ob)(e,null,null,t):e},p=function(e){return e},m=a().forwardRef;void 0===m&&(m=p);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=(0,u.Z)(e,["innerRef","navigate","onClick"]),c=o.target,l=(0,s.Z)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||c&&"_self"!==c||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=p!==m&&t||n,a().createElement("a",l)}));var h=m((function(e,t){var n=e.component,i=void 0===n?g:n,o=e.replace,c=e.to,h=e.innerRef,v=(0,u.Z)(e,["component","replace","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=e.history,r=f(d(c,e.location),e.location),u=r?n.createHref(r):"",g=(0,s.Z)({},v,{href:u,navigate:function(){var t=d(c,e.location);(o?n.replace:n.push)(t)}});return p!==m?g.ref=t||h:g.innerRef=h,a().createElement(i,g)}))})),v=function(e){return e},y=a().forwardRef;void 0===y&&(y=v);y((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,c=void 0===o?"active":o,p=e.activeStyle,m=e.className,g=e.exact,_=e.isActive,b=e.location,E=e.strict,S=e.style,w=e.to,P=e.innerRef,C=(0,u.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=b||e.location,o=f(d(w,n),n),u=o.pathname,N=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=N?(0,r.LX)(n.pathname,{path:N,exact:g,strict:E}):null,A=!!(_?_(x,n):x),O=A?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(m,c):m,L=A?(0,s.Z)({},S,{},p):S,T=(0,s.Z)({"aria-current":A&&i||null,className:O,style:L,to:o},C);return v!==y?T.ref=t||P:T.innerRef=P,a().createElement(h,T)}))}))},7267:function(e,t,n){"use strict";n.d(t,{VA:function(){return g},l_:function(){return b},AW:function(){return P},F0:function(){return m},rs:function(){return L},s6:function(){return p},LX:function(){return w},k6:function(){return I},TH:function(){return k}});var r=n(5307),i=n(3804),o=n.n(i),a=(n(3980),n(7547)),c=n(8919),s=n(1898),u=n(7560),l=n(99),d=n.n(l),f=(n(8570),n(8283)),p=(n(3463),function(e){var t=(0,c.Z)();return t.displayName=e,t}("Router")),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o().createElement(p.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(o().Component);var g=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,a.PP)(t.props),t}return(0,r.Z)(t,e),t.prototype.render=function(){return o().createElement(m,{history:this.history,children:this.props.children})},t}(o().Component);var h=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o().Component);var v={},y=0;function _(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(v[e])return v[e];var t=d().compile(e);return y<1e4&&(v[e]=t,y++),t}(e)(t,{pretty:!0})}function b(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o().createElement(p.Consumer,null,(function(e){e||(0,s.Z)(!1);var r=e.history,c=e.staticContext,l=i?r.push:r.replace,d=(0,a.ob)(t?"string"==typeof n?_(n,t.params):(0,u.Z)({},n,{pathname:_(n.pathname,t.params)}):n);return c?(l(d),null):o().createElement(h,{onMount:function(){l(d)},onUpdate:function(e,t){var n=(0,a.ob)(t.to);(0,a.Hp)(n,(0,u.Z)({},d,{key:n.key}))||l(d)},to:n})}))}var E={},S=0;function w(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,c=void 0!==a&&a,s=n.sensitive,u=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=E[n]||(E[n]={});if(r[e])return r[e];var i=[],o={regexp:d()(e,i,t),keys:i};return S<1e4&&(r[e]=o,S++),o}(n,{end:o,strict:c,sensitive:u}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var l=s[0],f=s.slice(1),p=e===l;return o&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var P=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o().createElement(p.Consumer,null,(function(t){t||(0,s.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?w(n.pathname,e.props):t.match,i=(0,u.Z)({},t,{location:n,match:r}),a=e.props,c=a.children,l=a.component,d=a.render;return Array.isArray(c)&&0===c.length&&(c=null),o().createElement(p.Provider,{value:i},i.match?c?"function"==typeof c?c(i):c:l?o().createElement(l,i):d?d(i):null:"function"==typeof c?c(i):null)}))},t}(o().Component);function C(e){return"/"===e.charAt(0)?e:"/"+e}function N(e,t){if(!e)return t;var n=C(e);return 0!==t.pathname.indexOf(n)?t:(0,u.Z)({},t,{pathname:t.pathname.substr(n.length)})}function x(e){return"string"==typeof e?e:(0,a.Ep)(e)}function A(e){return function(){(0,s.Z)(!1)}}function O(){}o().Component;var L=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return o().createElement(p.Consumer,null,(function(t){t||(0,s.Z)(!1);var n,r,i=e.props.location||t.location;return o().Children.forEach(e.props.children,(function(e){if(null==r&&o().isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?w(i.pathname,(0,u.Z)({},e.props,{path:a})):t.match}})),r?o().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o().Component);var T=o().useContext;function I(){return T(p).history}function k(){return T(p).location}},7613:function(e,t){"use strict";function n(e){return"/"===e.charAt(0)}function r(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}t.Z=function(e,t){void 0===t&&(t="");var i,o=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&n(e),s=t&&n(t),u=c||s;if(e&&n(e)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var l=a[a.length-1];i="."===l||".."===l||""===l}else i=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?r(a,f):".."===p?(r(a,f),d++):d&&(r(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&n(a[0])||a.unshift("");var m=a.join("/");return i&&"/"!==m.substr(-1)&&(m+="/"),m}},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,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},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},272:function(e,t,n){"use strict";n.r(t);n(8318),n(5631)},5631:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),c=n.n(a),s=n(1200),u=n(5707),l=n(791),d=n(8152),f=n(365),p=n(8318),m=n(8550),g=n(1157);r="a8c-editor-editor-focused-launch",i={render:function(){var e,t=window._currentSiteId,n=(0,u.useSelect)((function(e){return e(p.j4).isSiteLaunched(t)}),[t]),r=(0,u.useSelect)((function(e){return e(p.sC).getState()}),[]).isFocusedLaunchOpen,i=(0,u.useDispatch)(p.sC).openFocusedLaunch;c().useEffect((function(){n&&document.body.classList.add("is-focused-launch-complete")}),[n]);var a=(0,l.hasQueryArg)((0,m.O0)(),g.nU);return c().useEffect((function(){a&&!n&&i()}),[a,n,i]),r?(0,o.createElement)(d.Z,{locale:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale,openCheckout:m.Rd,redirectTo:m.gQ,siteId:t,getCurrentLaunchFlowUrl:m.O0,isInIframe:(0,f.y)(),isLaunchImmediately:a}):null}},(0,s.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{Js:function(){return r},nU:function(){return i}});var r="focused-launch",i="should_launch"},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i}});n(8681);var r="automattic/site",i="automattic/launch"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return l},gQ:function(){return d},Rd:function(){return f}});var r=n(417),i=n.n(r),o=n(1260),a=n.n(o),c=n(5799),s=n(791),u=n(1157),l=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},d=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))},f=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=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=l().split("?")[0];if((0,c.hasAction)(f)&&p&&!r)(0,c.doAction)(f,{checkoutOnSuccessCallback:o,isFocusedLaunch:!0,redirectTo:(0,s.addQueryArgs)(m,a()({},u.nU,!0))});else{var g=(0,s.addQueryArgs)("/checkout/".concat(n),i()({},!r&&{redirect_to:"/home/".concat(n)}));d(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 p}});n(1068);var r,i=n(417),o=n.n(i),a=(n(5182),n(1205)),c=(n(3421),n(382)),s=n(4898),u=(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 d(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w2.js?1");var f=new c.EventEmitter;function p(e,t){if(t=t||{},(0,u.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,a.includes)(l,e)){if(r){var n=r(t);t=o()(o()({},t),n)}t=(0,a.omitBy)(t,a.isUndefined),(0,u.Z)('Recording event "%s" with actual props %o',e,t),d(["recordEvent",e,t]),f.emit("record-event",e,t)}else(0,u.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 c}});var r=n(6374),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,c=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:c})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function c(){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)},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 c}});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()}},c=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),c=n(2269),s=n(267),u=n(3661),l=!1;function d(e){var t=e.vendor;return l||(l=!0,(0,r.registerStore)(i.L,{actions:a,controls:u.ai,reducer:o.Z,resolvers:c,selectors:(0,s.Z)(t)})),i.L}},3717:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=n(584),u=n(4211),l={state:s.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},d=(0,c.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]:l,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?a()(a()({},e),{},{state:s.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?a()(a()({},e),{},{state:s.r.Success,data:a()(a()({},e.data),{},i()({},(0,u.L)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?a()(a()({},e),{},{state:s.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?a()(a()({},e),{},i()({},t.domainName,t.availability)):e}});t.Z=d},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return f},getCategories:function(){return p},__internalGetDomainSuggestions:function(){return m}});var r=n(417),i=n.n(r),o=n(9126),a=n(1481),c=n(3600),s=n(3661),u=n(4211),l=regeneratorRuntime.mark(p),d=regeneratorRuntime.mark(m),f=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,(0,s.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,c.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,c.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function p(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",(0,c.receiveCategories)(e.body));case 4:case"end":return t.stop()}}),l)}function m(e){var t,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.query){r.next=2;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)("Empty query"));case 2:return r.next=4,(0,c.fetchDomainSuggestions)();case 4:return r.prev=4,r.next=7,(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:t=r.sent,r.next=13;break;case 10:return r.prev=10,r.t0=r.catch(4),r.abrupt("return",(0,c.receiveDomainSuggestionsError)(r.t0.message||(0,a.Iu)("Error while fetching server response")));case 13:if(t&&""!==t){r.next=15;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)((0,a.Iu)("Invalid response from the server")));case 15:return n=t.map((function(e){return i()(i()({},e),e.raw_price&&e.currency_code&&{cost:(0,u._)(e.raw_price,e.currency_code)})})),r.abrupt("return",(0,c.receiveDomainSuggestionsSuccess)(e,n));case 17:case"end":return r.stop()}}),d,null,[[4,10]])}},267:function(e,t,n){"use strict";var r=n(417),i=n.n(r),o=n(5182),a=n.n(o),c=n(5707),s=n(584),u=n(4211);t.Z=function(e){function t(t,n){return i()(i()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(a()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),a()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)(s.L).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)("core/data").isResolving(s.L,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[(0,u.L)(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}}},4211:function(e,t,n){"use strict";n.d(t,{L:function(){return a},_:function(){return c}});var r=n(5695),i=n.n(r),o=n(1621),a=i();function c(e,t){return(0,o.ZP)(e,t,{stripZeros:!0})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return c},setSiteTitle:function(){return s},setDomain:function(){return u},unsetDomain:function(){return l},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 _},closeFocusedLaunch:function(){return b},enableAnchorFm:function(){return E},showSiteTitleStep:function(){return S},setModalDismissible:function(){return w},unsetModalDismissible:function(){return P},showModalTitle:function(){return C},hideModalTitle:function(){return N},enablePersistentSuccessView:function(){return x},disablePersistentSuccessView:function(){return A}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},c=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},u=function(e){return{type:"SET_DOMAIN",domain:e}},l=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"}},_=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},b=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},E=function(){return{type:"ENABLE_ANCHOR_FM"}},S=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},P=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},C=function(){return{type:"SHOW_MODAL_TITLE"}},N=function(){return{type:"HIDE_MODAL_TITLE"}},x=function(){return{type:"ENABLE_SUCCESS_VIEW"}},A=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),c=n(6108),s=n(7092),u=n(594);(0,i.use)(i.plugins.persistence,u.Z);var l=!1;function d(){return l||(l=!0,(0,i.registerStore)(o.Ls,{actions:c,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 c},getState:function(){return s},hasPaidDomain:function(){return u},getSelectedDomain:function(){return l},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return _},getCurrentStep:function(){return b},getDomainSearch:function(){return E}});var r=n(5707),i=n(3610),o=n(9149),a=function(){return i.M},c=function(){return i.y},s=function(e){return e},u=function(e){return!!e.domain&&!e.domain.is_free},l=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!!l(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).hasSelectedDomain()},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)}))},_=function(e){return null==e?void 0:e.siteTitle},b=function(e){return e.step},E=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 c}});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}},c=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 c},hx:function(){return s},iL:function(){return u},xT:function(){return l},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",c="premium",s="business",u="ecommerce",l=[o,a,c,s,u],d=c,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),c=n(7738),s=n(5261),u=n(3661),l=!1;function d(){return l||(l=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:u.ai,reducer:o.ZP,selectors:c})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=(0,c.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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},t.locale,t.plans));default:return e}}});t.ZP=s},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),c=n(3661),s=regeneratorRuntime.mark(g);function u(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(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,c=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:c.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?l(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?u(o):l(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,c=Math.round(100*(1-o/i));n.annualDiscount=c,r.annualDiscount=c}},n=0;n<a.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,i,u,l,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,c._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,c.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,u=d(i.features),l=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,u),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,l),s.next=13,(0,o.setPlans)(l,e);case 13:return s.next=15,(0,o.setPlanProducts)(f);case 15:return s.next=17,(0,o.setFeatures)(u,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 c},getFeaturesByType:function(){return s},getPlanByProductId:function(){return u},getPlanProductById:function(){return l},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 _},isPlanFree:function(){return b},isPlanProductFree:function(){return E}});var r=n(5707),i=n(4703),o=n(3613),a=n.n(o),c=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:[]},u=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},l=function(e,t){if(t)return(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.AX}))},p=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.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 a()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(i.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var o=(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(o)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===(null==o?void 0:o.periodAgnosticSlug)}))}},y=function(e,t,n){if(t&&n){var o=(0,r.select)(i.Ls).getPlansProducts();return t===i.TO?o.find((function(e){return e.periodAgnosticSlug===t})):o.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},_=function(e,t){return t===i.iL},b=function(e,t){return t===i.TO},E=function(e,t){return t===i.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(417),i=n.n(r),o=n(2220),a=n.n(o),c=n(3661),s=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),r=regeneratorRuntime.mark(_),o=regeneratorRuntime.mark(b),u=regeneratorRuntime.mark(E),l=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 r,o,s,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,o=a()(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},u=i()(i()(i()({},s),o),{},{validate:!1}),t.next=8,(0,c._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:u,token:r});case 8:return l=t.sent,t.next=11,d(l);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,c._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,s.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,c._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()}}),r)}function b(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,c._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()}}),o)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,c._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()}}),u,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:m,fetchNewSite:l,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:_,setCart:b}}},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),c=n(7862),s=n(4309),u=n(3661),l=!1;function d(e){return l||(l=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:u.ai,reducer:o.ZP,resolvers:c,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(2220),i=n.n(r),o=n(4582),a=n.n(o),c=n(1260),s=n.n(c),u=n(417),l=n.n(u),d=n(5707),f=n(2699),p=(0,d.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}}),m=(0,d.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:p,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 l()(l()({},e),{},s()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],i()(e,[n].map(a())));return l()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?l()(l()({},e),{},s()({},t.siteId,l()(l()({},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?l()(l()({},e),{},s()({},t.siteId,{status:f.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:f.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:f.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?l()(l()({},e),{},s()({},t.siteId,t.domains)):e}});t.ZP=m},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return u}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),c=regeneratorRuntime.mark(u);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 u(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()}}),c,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return c},getNewSiteError:function(){return s},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return l},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},c=function(e){return e.newSite.data},s=function(e){return e.newSite.error},u=function(e){return e.newSite.isFetching},l=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 c}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,c={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 u}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),c=n(335),s=!1;function u(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:c})),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 c},An:function(){return s},ai:function(){return u}});var r,i=n(2954),o=n.n(i),a=n(8552),c=function(e){return{type:"WPCOM_REQUEST",request:e}},s=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},u={WPCOM_REQUEST:function(e){var t=e.request;return(0,a.ZP)(t)},FETCH_AND_PARSE:(r=o()(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,a.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,a.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},3300:function(e,t,n){"use strict";n.d(t,{gB:function(){return i},au:function(){return o},F9:function(){return a},dP:function(){return c},GN:function(){return s},vn:function(){return u}});var r=n(8077),i=5,o=10,a=2,c=300,s=r.z({vendor:"variation2_front"}),u=["available","available_premium"]},4948:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=(n(3804),n(7997)),c=n(5869),s=n(3383),u=n(2779),l=n.n(u),d=n(9215),f=n(5707),p=n(3300);n(988);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,d.QT)().__,r=(0,o.useState)(!1),u=i()(r,2),m=u[0],g=u[1],h=function(e){g(!1),t(e)},v=(0,f.useSelect)((function(e){return e(p.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,o.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,o.createElement)(a.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,o.createElement)("span",null,null!=n?n:y),(0,o.createElement)(c.Z,{icon:s.Z,size:16})),(0,o.createElement)("ul",{className:"domain-categories__item-group"},(0,o.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,o.createElement)(a.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,o.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,o.createElement)(a.Button,{onClick:function(){return h(t)}},r))}))))}},1052:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(9215)),o=function(){var e=(0,i.QT)(),__=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"))))}},7047:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n.n(a),s=n(5707),u=n(1205),l=n(7997),d=n(5869),f=n(7108),p=n(6115),m=n(584),g=n(9215),h=n(947),v=n(7226),y=n(4531),_=n(5241),b=n(1045),E=n(1071),S=n(4948),w=n(3300),P=n(1052),C=(n(8395),function(e){var t=e.groupItems,n=e.children;return t?(0,o.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,o.createElement)(a.Fragment,null,n)}),N=function(e){var t=e.children;return(0,o.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,r=e.showDomainCategories,x=e.onDomainSelect,A=e.onExistingSubdomainSelect,O=e.quantity,L=void 0===O?w.gB:O,T=e.quantityExpanded,I=void 0===T?w.au:T,k=e.onDomainSearchBlur,D=void 0===k?u.noop:k,R=e.analyticsFlowId,F=e.analyticsUiAlgo,Z=e.initialDomainSearch,j=void 0===Z?"":Z,M=e.onSetDomainSearch,U=void 0===M?u.noop:M,B=e.currentDomain,V=e.isCheckingDomainAvailability,H=e.existingSubdomain,z=e.segregateFreeAndPaid,$=void 0!==z&&z,W=e.showSearchField,G=void 0===W||W,q=e.itemType,Y=void 0===q?h.tr:q,K=e.locale,Q=e.areDependenciesLoading,J=void 0!==Q&&Q,X=e.orderSubDomainsLast,ee=void 0!==X&&X,te=e.onUseYourDomainClick,__=(0,g.QT)().__,ne=__("Search for a domain","full-site-editing"),re=(0,a.useState)(!1),ie=i()(re,2),oe=ie[0],ae=ie[1],ce=(0,a.useState)(j),se=i()(ce,2),ue=se[0],le=se[1],de=(0,a.useState)(),fe=i()(de,2),pe=fe[0],me=fe[1],ge=(0,s.useSelect)((function(e){return e(w.GN).getDomainSuggestionVendor()})),he=(0,_.O)(ue.trim(),I,pe,K)||{},ve=he.allDomainSuggestions,ye=he.errorMessage,_e=he.state,be=he.retryRequest,Ee=null==ve?void 0:ve.slice(H?1:0,oe?I:L),Se=(0,b.$)(Ee,H,B);Se&&(null==Ee||Ee.push(Se));var we=(0,E.P)();(0,a.useEffect)((function(){ae(!1)}),[ue]);var Pe=(0,a.useState)(),Ce=i()(Pe,2),Ne=Ce[0],xe=Ce[1];(0,a.useEffect)((function(){ve&&xe((0,p.k9)("suggestion"))}),[ve,xe]),(0,a.useEffect)((function(){G||le(j)}),[j,G]);var Ae=c().useRef([]);(0,a.useEffect)((function(){var e,t;oe&&(null===(e=Ae.current[L])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[oe,L]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(ge,"/").concat(R).concat(pe?"/"+pe:"");(0,p.Sn)({uiAlgo:"/".concat(R,"/").concat(F),fetchAlgo:i,query:ue,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Le=_e===m.r.Failure,Te=(null===(t=ue.trim)||void 0===t?void 0:t.call(ue).length)<=1,Ie=!Le&&!Te,ke=!Le&&Te,De=L;Se&&(De+=1),te&&(De+=1),H&&(De-=1);var Re=["professional"];return H&&Re.unshift("sub-domain"),ee&&Re.reverse(),(0,o.createElement)("div",{className:"domain-picker"},n&&n,G&&(0,o.createElement)("div",{className:"domain-picker__search"},(0,o.createElement)("div",{className:"domain-picker__search-icon"},(0,o.createElement)(d.Z,{icon:f.Z})),(0,o.createElement)(l.TextControl,{hideLabelFromVision:!0,label:ne,placeholder:ne,onChange:function(e){le(e),U(e)},onBlur:function(e){D&&D(e.currentTarget.value)},value:ue,dir:"ltr"})),Le&&(0,o.createElement)(l.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,o.createElement)("p",{className:"domain-picker__error-message"},ye||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,o.createElement)(l.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:be},__("Retry","full-site-editing"))),(Ie||J)&&(0,o.createElement)("div",{className:"domain-picker__body"},r&&(0,o.createElement)("div",{className:"domain-picker__aside"},(0,o.createElement)(S.Z,{selected:pe,onSelect:me})),(0,o.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,o.createElement)("div",{className:"domain-picker__sugggested-items-container"},Re.map((function(e){return"sub-domain"===e?(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(N,null,__("Keep sub-domain","full-site-editing")),(0,o.createElement)(C,{key:e,groupItems:$},!J&&H&&(0,o.createElement)(h.ZP,{key:null==H?void 0:H.domain_name,domain:null==H?void 0:H.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==H?void 0:H.domain_name,"".concat(Ne,0),0,!1)},selected:(null==B?void 0:B.domain_name)===(null==H?void 0:H.domain_name),onSelect:function(){null==A||A(null==H?void 0:H.domain_name)},type:Y})||(0,o.createElement)(v.Z,{type:Y}))):(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(N,null,__("Professional domains","full-site-editing")),(0,o.createElement)(C,{key:e,groupItems:$},!J&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=H&&H.domain_name?t+1:t,i=1===r,a=null===(n=we[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,o.createElement)(h.ZP,{ref:function(e){Ae.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==B?void 0:B.domain_name)===e.domain_name&&V,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:i,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,i)},onSelect:function(){x(e)},selected:(null==B?void 0:B.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(De,(function(e){return(0,o.createElement)(v.Z,{type:Y,key:e})})),te&&!!Ee&&(0,o.createElement)(y.Z,{onClick:te})))}))),!oe&&L<I&&(null==ve?void 0:ve.length)&&(null==ve?void 0:ve.length)>L&&(0,o.createElement)("div",{className:"domain-picker__show-more"},(0,o.createElement)(l.Button,{onClick:function(){return ae(!0)},isLink:!0},__("View more results","full-site-editing"))))),ke&&!J&&(0,o.createElement)("div",{className:"domain-picker__empty-state"},(0,o.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,o.createElement)("div",null,(0,o.createElement)(P.q,null))))}},7226: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"}))}},5179:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=n(3804),u=s.forwardRef((function(e,t){var n=e.type,r=e.disabled,o=a()(e,["type","disabled"]);return"button"===n?(0,c.createElement)("div",o):(0,c.createElement)("button",i()({ref:t,disabled:r},o))}));t.Z=u},947:function(e,t,n){"use strict";n.d(t,{tr:function(){return _},En:function(){return b}});var r=n(8527),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n(2779),l=n.n(u),d=n(9215),f=n(6115),p=n(7498),m=n(7997),g=n(1417),h=n(3163),v=n(1749),y=n(5179),_="radio",b="button",E="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,u=e.hstsRequired,S=void 0!==u&&u,w=e.isFree,P=void 0!==w&&w,C=e.isExistingSubdomain,N=void 0!==C&&C,x=e.isRecommended,A=void 0!==x&&x,O=e.onSelect,L=e.onRender,T=e.selected,I=e.type,k=void 0===I?_:I,D=e.buttonRef,__=(0,d.QT)().__,R=(0,p.Iu)(),F=(0,g.useViewportMatch)("small","<"),Z=n.indexOf("."),j=n.slice(0,Z),M=n.slice(Z),U=s.useState(),B=a()(U,2),V=B[0],H=B[1],z=s.useState(),$=a()(z,2),W=$[0],G=$[1],q=__("Default","full-site-editing"),Y=__("Free","full-site-editing"),K=__("Included in paid plans","full-site-editing"),Q=__("Included with annual plans","full-site-editing"),J=__("<strong>First year included</strong> in paid plans","full-site-editing"),X=k===E?q:Y,ee=F?K:(0,c.createInterpolateElement)(J,{strong:(0,c.createElement)("strong",null)}),te=k===E?ee:F?Y:Q;s.useEffect((function(){n!==V&&W!==o&&o&&(L(),H(n),G(o))}),[n,V,W,o,L]);var ne=function(){W&&(0,f.Lo)({action:"domain_selected",railcarId:W}),O(n)},re=__("Selected","full-site-editing"),ie=__("Select","full-site-editing");return(0,c.createElement)(y.Z,{ref:D,type:k,key:j,className:l()("domain-picker__suggestion-item",{"is-free":P,"is-selected":T,"is-unavailable":t},"type-".concat(k)),onClick:"button"!==k?ne:void 0,disabled:t},k===_&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("span",{className:l()("domain-picker__suggestion-radio-circle",{"is-checked":T,"is-unavailable":t})})),(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,c.createElement)("span",{className:l()("domain-picker__domain-wrapper",{"with-margin":!S})},(0,c.createElement)("span",{className:"domain-picker__domain-sub-domain"},j),(0,c.createElement)("span",{className:"domain-picker__domain-tld"},M)),A&&!t&&(0,c.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),S&&(0,c.createElement)(v.Z,{position:F?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,c.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,c.createElement)("b",null,M),learn_more_link:(0,c.createElement)("a",{target:"_blank",rel:"noreferrer",href:R("https://wordpress.com/support/https-ssl")})}))),N&&k!==E&&(0,c.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,c.createElement)("div",{className:l()("domain-picker__price",{"is-paid":!P})},t&&__("Unavailable","full-site-editing"),P&&!t&&X,!P&&!t&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"domain-picker__price-cost"},(0,h.sprintf)(__("%s/year","full-site-editing"),i)),(0,c.createElement)("span",{className:"domain-picker__price-inclusive"}," ",te," "),(0,c.createElement)("span",{className:"domain-picker__price-renewal"},(0,h.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),k===b&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("div",{className:"domain-picker__action"},(0,c.createElement)(m.Button,{ref:D,isSecondary:!0,className:l()("domain-picker__suggestion-select-button",{"is-selected":T&&!t}),disabled:t,onClick:ne},T&&!t?re:ie))))};t.ZP=s.forwardRef((function(e,t){return(0,c.createElement)(S,i()({},e,{buttonRef:t}))}))},4531:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(9215),a=n(5179);t.Z=function(e){var t=e.onClick,n=(0,o.QT)(),__=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",onClick:t},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},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 l}});var r=n(417),i=n.n(r),o=n(1068),a=n.n(o),c=n(5707),s=n(7127),u=n(3300);function l(){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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=(0,s.Z)(e,u.dP),d=a()(l,1),f=d[0],p=(0,c.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,c.useSelect)((function(e){if(f&&!(f.length<u.F9)){var a=e(u.GN),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(f,i()({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n},o)),state:s(),errorMessage:l(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(5182),i=n.n(r),o=n(1068),a=n.n(o),c=n(3804);function s(e,t,n){var r=c.useState(),o=a()(r,2),s=o[0],u=o[1],l=t&&Array.isArray(e)?[t].concat(i()(e)):e;if(c.useEffect((function(){var e=null==l?void 0:l.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=l&&l.length&&!e&&u(n)}),[n,l]),!(null==l?void 0:l.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},1749:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(2779),s=n.n(c),u=n(7997),l=n(5614);n(6388);t.Z=function(e){var t=e.children,n=e.className,r=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,a.useState)(!1),g=i()(m,2),h=g[0],v=g[1];return(0,o.createElement)((function(e){return(0,o.createElement)(u.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,o.createElement)(u.Popover,{id:r,className:s()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},7356: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:""}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}n.d(t,{n:function(){return r},Q:function(){return i}})},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 c}});var r=n(417),i=n.n(r),o=n(1481),a=n(3759);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.X)(t);if(!r||isNaN(e))return null;var c=i()(i()({},r),n),u=c.decimal,l=c.grouping,d=c.precision,f=c.symbol,p=e<0?"-":"",m=(0,o.Y4)(Math.abs(e),{decimals:d,thousandsSep:l,decPoint:u});return n.stripZeros&&(m=s(m,u)),"".concat(p).concat(f).concat(m)}function s(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(5182),i=n.n(r),o=n(1260),a=n.n(o),c=n(8049),s=n.n(c),u=n(7010),l=n(9830),d=n(7839),f=n.n(d),p=n(5079),m=n.n(p),g=n(382),h=n(6668),v=n(3),y=s()("i18n-calypso"),_="number_format_decimals",b="number_format_thousands_sep",E="messages",S=[function(e){return e}],w={};function P(){O.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function C(e){return Array.prototype.slice.call(e)}function N(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&P("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",C(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&P("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",C(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(E,t.context,t.original,t.plural,t.count)}function A(e,t){for(var n=S.length-1;n>=0;n--){var r=S[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 O(){if(!(this instanceof O))return new O;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:f()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}O.throwErrors=!1,O.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},O.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},O.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},O.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,v.Z)(e,n,r,i)},O.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},O.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==w[n+e])return w[n+e];var r=m()().update(e).digest("hex");return w[n+e]=t?r.substr(0,t):r},c=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)S.push(c(!1));else{var s=i.substr(5).indexOf("-");if(s<0){var u=Number(i.substr(5));S.push(c(u))}else for(var d=Number(i.substr(5,s)),f=Number(i.substr(6+s)),p=d;p<=f;p++)S.push(c(p))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new l.Z(a()({},E,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,N([_])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,N([b])),this.state.numberFormatSettings.decimal_point===_&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===b&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},O.prototype.getLocale=function(){return this.state.locale},O.prototype.getLocaleSlug=function(){return this.state.localeSlug},O.prototype.getLocaleVariant=function(){return this.state.localeVariant},O.prototype.isRtl=function(){return"rtl"===this.state.textDirection},O.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},O.prototype.hasTranslation=function(){return!!A(this,N(arguments))},O.prototype.translate=function(){var e=N(arguments),t=A(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=h.Z.apply(void 0,i()(n))}catch(o){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[r](o):window.console[r]("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},O.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},O.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},O.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=O},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return u}});var r=n(914),i=n(3493),o=n(975),a=n(8373),c=new r.Z,s=c.numberFormat.bind(c),u=c.translate.bind(c),l=(c.configure.bind(c),c.setLocale.bind(c),c.getLocale.bind(c),c.getLocaleSlug.bind(c),c.getLocaleVariant.bind(c),c.isRtl.bind(c),c.addTranslations.bind(c),c.reRenderTranslations.bind(c),c.registerComponentUpdateHook.bind(c),c.registerTranslateHook.bind(c),c.state,c.stateObserver,c.on.bind(c),c.off.bind(c),c.emit.bind(c),(0,i.Z)(c),(0,o.Z)(c),(0,a.Z)(c));l.useRtl,l.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(417),i=n.n(r),o=n(85),a=n.n(o),c=n(5198),s=n.n(c),u=n(8111),l=n.n(u),d=n(270),f=n.n(d),p=n(4564),m=n.n(p),g=n(1260),h=n.n(g),v=n(3027),y=n(3804),_=n.n(y);function b(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var r,o,c=n.displayName||n.name||"";return o=r=function(r){f()(c,r);var o=m()(c);function c(){var e;a()(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=o.call.apply(o,[this].concat(n)),h()(l()(e),"boundForceUpdate",e.forceUpdate.bind(l()(e))),e}return s()(c,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var r=i()(i()({locale:e.getLocaleSlug()},this.props),t);return(0,v.createElement)(n,r)}}]),c}(_().Component),h()(r,"displayName","Localized("+c+")"),o}}},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,c=void 0===n?".":n,s="";return(s=(o?
|
20 |
/*
|
21 |
* Exposes number format capability
|
22 |
*
|
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-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cbf3d4bb7f8f89844af84155b66c55f7');
|
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,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=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 E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case o:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case h:case g:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||E(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},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,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},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},7456:function(e,t,n){"use strict";n.r(t);n(8318),n(7989)},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),c=n(5707),s=n(1200),u=n(5799),l=n(6357),d=n(849),p=n(9095),f=n(8318),m=n(1157),g=n(8550),h=n(365);r="a8c-editor-site-launch",i={render:function(){var e,t=(0,c.useSelect)((function(e){return e(f.sC).getState()})),n=t.isSidebarOpen,r=t.isAnchorFm,i=(0,c.useDispatch)(f.sC),s=i.closeSidebar,v=i.setSidebarFullscreen,y=i.unsetSidebarFullscreen;return a.useEffect((function(){window.innerWidth<782?v():y()}),[n,v,y]),a.useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,u.hasAction)(e)&&(0,u.doAction)(e,{hidden:n})}),[n]),n?(0,o.createElement)(d.Iw,{localeSlug:null===(e=window.wpcomEditorSiteLaunch)||void 0===e?void 0:e.locale},(0,o.createElement)(l.Z.Provider,{value:{siteId:window._currentSiteId,flow:m.OS,redirectTo:g.gQ,openCheckout:g.Rd,getCurrentLaunchFlowUrl:g.O0,isInIframe:(0,h.y)()}},(0,o.createElement)(p.Z,{onClose:s,isLaunchImmediately:r}))):null}},(0,s.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(1260),i=n.n(r),o=n(3027),a=(n(3804),n(5707)),c=n(9215),s=n(8318),u=n(8374);n(3184);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,c.QT)().__,r=(0,a.useSelect)((function(e){var t=e(s.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),l=r.currentStep,d=r.LaunchStep,p=r.LaunchSequence,f=r.isStepCompleted,m=r.isFlowCompleted,g=(t={},i()(t,d.Name,__("Name your site","full-site-editing")),i()(t,d.Domain,__("Select a domain","full-site-editing")),i()(t,d.Plan,__("Select a plan","full-site-editing")),i()(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,a.useDispatch)(s.sC).setStep;return(0,o.createElement)("div",{className:"nux-launch-menu"},(0,o.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,o.createElement)("div",{className:"nux-launch-menu__item-group"},p.map((function(e){return(0,o.createElement)(u.Z,{key:e,title:g[e],isCompleted:f(e),isCurrent:e===l,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),c=n(2779),s=n.n(c),u=(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,c=e.isCurrent,l=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:s()("nux-launch-menu__item",{"is-current":c,"is-completed":n}),onClick:d,disabled:l,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:u,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(2954),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n(2779),l=n.n(u),d=n(5707),p=n(3163),f=n(7997),m=n(5869),g=n(1742),h=n(8565),v=n(6357),y=n(3357),b=n(849),_=n(8318),E=n(8398),S=n(2326),w=n(2526),__=(n(2270),p.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,r=s.useContext(v.Z).siteId,o=(0,d.useSelect)((function(e){return e(_.sC).getState()})),u=o.step,p=o.isSidebarFullscreen,C=s.useState(!1),x=a()(C,2),P=x[0],k=x[1],N=s.useState(!1),A=a()(N,2),O=A[0],L=A[1],T=(0,d.useDispatch)(_.j4).launchSite,I=(0,d.useDispatch)("core/editor").savePost,D=(0,b.bU)(),F=(0,d.useDispatch)(_.sC).setPlanProductId,R=(0,d.useSelect)((function(e){return e(_.Fs).getDefaultFreePlan(D)})),Z=s.useCallback((function(){T(r),k(!0)}),[T,k,r]);return s.useEffect((function(){n&&!P&&k(!0)}),[P,n]),s.useEffect((function(){var e=function(){var e=i()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!O&&null!=R&&R.productIds[0]&&(F(null==R?void 0:R.productIds[0]),L(!0),e(),Z())}),[n,O,Z,I,R,F]),(0,y.X)(),(0,c.createElement)(f.Modal,{open:!0,className:l()("nux-launch-modal","step-".concat(u),p?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},P?(0,c.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"nux-launch-modal-body"},(0,c.createElement)("div",{className:"nux-launch-modal-header"},(0,c.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,c.createElement)(m.Z,{icon:g.Z,size:36})),(0,c.createElement)(w.Z,null)),(0,c.createElement)(E.Z,{onSubmit:Z})),(0,c.createElement)("div",{className:"nux-launch-modal-aside"},(0,c.createElement)(S.Z,null)),(0,c.createElement)(f.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,c.createElement)("span",null,(0,c.createElement)(m.Z,{icon:h.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(9215),c=n(8318);n(7650);t.Z=function(){var __=(0,a.QT)().__,e=(0,i.useSelect)((function(e){var t=e(c.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,s=n.indexOf(t)+1,u=n.length,l=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),s,u);return(0,r.createElement)("div",{className:"nux-launch-progress"},l)}},2326:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(5707),a=n(5915),c=n(9211),s=n(6915),u=n(8318),__=(n(5767),i.__);t.Z=function(){var e=(0,o.useDispatch)(u.sC),t=e.setStep,n=e.unsetSidebarFullscreen,i=(0,o.useSelect)((function(e){return e(u.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)(c.ZP,{sticky:!0},(0,r.createElement)(c.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(7949);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(3163),a=n(7047),c=n(7356),s=n(5915),u=n(9211),l=n(6115),d=n(381),p=n(8318),f=n(780),m=n(5144),g=n(6956),h=n(1157),__=o.__;t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,o=(0,f.my)(),v=o.onDomainSelect,y=o.onExistingSubdomainSelect,b=o.currentDomain,_=(0,m.j)().siteSubdomain,E=(0,g.f)(),S=E.domainSearch,w=E.setDomainSearch,C=(0,i.useDispatch)(p.sC).confirmDomainSelection,x=function(){C(),null==n||n()};return(0,r.createElement)(d.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(s.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(s.D,null,__("Free for the first year with any paid plan.","full-site-editing"))),(0,r.createElement)(u.ZP,{sticky:!1},(0,r.createElement)(u.aW,{onClick:x,disabled:!S}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(a.ZP,{analyticsFlowId:h.OS,initialDomainSearch:S,onSetDomainSearch:w,onDomainSearchBlur:function(e){(0,l.jN)("calypso_newsite_domain_search_blur",{flow:h.OS,query:e,where:"editor_domain_modal"})},currentDomain:b||(0,c.n)(null==_?void 0:_.domain),existingSubdomain:(0,c.n)(null==_?void 0:_.domain),onDomainSelect:v,onExistingSubdomainSelect:y,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),(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:x,disabled:!S}))))}},4502:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=(n(3804),n(2779)),c=n.n(a),s=n(50),u=n(3163),l=n(5707),d=n(7997),p=n(5869),f=n(9806),m=n(4557),g=n(5144),h=n(8463),v=n(6956),y=n(7498),b=n(5915),_=n(9211),E=n(7384),S=n(1806),w=n(7450),C=n(849),x=n(381),P=n(8318),__=(n(5862),u.__),k=(0,o.createElement)(p.Z,{icon:f.Z,size:17});t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,r=(0,l.useSelect)((function(e){var t=e(P.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),a=r.domain,p=r.LaunchStep,f=r.isStepCompleted,N=r.isFlowCompleted,A=r.planProductId,O=(0,C.bU)(),L=(0,l.useSelect)((function(e){return[e(P.Fs).getPlanByProductId(A,O),e(P.Fs).getPlanProductById(A)]})),T=i()(L,2),I=T[0],D=T[1],F=(0,m.Z)().title,R=(0,g.j)().siteSubdomain,Z=(0,h.V)(),j=(0,v.f)().domainSearch,M=(0,l.useDispatch)(P.sC).setStep,B=(0,y.Iu)(),U=(0,o.createElement)("div",{className:"nux-launch__summary-item"},(0,o.createElement)("p",null,__("Site","full-site-editing"),": ",F)),V=(0,o.createElement)("div",{className:"nux-launch__summary-item"},null!=a&&a.domain_name?(0,o.createElement)("p",null,__("Custom domain","full-site-editing"),": ",a.domain_name,"MONTHLY"===(null==D?void 0:D.billingPeriod)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("br",null),(0,o.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,u.sprintf)(__("%s/year","full-site-editing"),a.cost)))):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==R?void 0:R.domain),(0,o.createElement)(d.Tip,null,j?(0,o.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,o.createElement)("span",{className:c()("nux-launch__summary-item__domain-name",{"is-loading":!Z})},(null==Z?void 0:Z.domain_name)||"loading-example.com"),Link:(0,o.createElement)(d.Button,{isLink:!0,onClick:function(){return M(p.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),H=__("per month, billed monthly","full-site-editing"),$=(0,o.createElement)("div",{className:"nux-launch__summary-item"},I&&D&&!I.isFree?(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",I.title),__("Plan subscription","full-site-editing"),": ",D.price," ","ANNUALLY"===D.billingPeriod?z:H):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,o.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,o.createElement)(d.Tip,null,(0,o.createInterpolateElement)((0,u.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,o.createElement)(d.Button,{isLink:!0,onClick:function(){return M(p.Plan)}})}))));return(0,o.createElement)(x.Z,null,(0,o.createElement)("div",{className:"nux-launch-step__header"},(0,o.createElement)("div",null,(0,o.createElement)(b.b,null,__("Launch your site","full-site-editing")),(0,o.createElement)(b.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,o.createElement)("div",{className:"nux-launch-step__body"},(0,o.createElement)(s.f6,{theme:E.Z},(0,o.createElement)(S._U,null,f(p.Plan)&&(0,o.createElement)(S.Bb,null,(0,o.createElement)(S.nb,{className:"nux-launch__feature-list"},(0,o.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,o.createElement)("ul",{className:"nux-launch__feature-item-group"},null==I?void 0:I.features.filter((function(e){return"ANNUALLY"===(null==D?void 0:D.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,o.createElement)("li",{key:t,className:"nux-launch__feature-item"},k," ",e.name)}))),(0,o.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,o.createElement)(d.Button,{isLink:!0,href:B("https://wordpress.com/help/contact",O),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,o.createElement)(S.r8,null,(0,o.createElement)(S.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:f(p.Name),goToThisStep:function(){return M(p.Name)},completeStepContent:U,stepId:"name",formStatus:w.PX.READY}),(0,o.createElement)(S.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:f(p.Domain),goToThisStep:function(){return M(p.Domain)},completeStepContent:V,stepId:"domain",formStatus:w.PX.READY}),(0,o.createElement)(S.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:f(p.Plan),goToThisStep:function(){return M(p.Plan)},completeStepContent:$,stepId:"plan",formStatus:w.PX.READY}),(0,o.createElement)(S.ds,null,(0,o.createElement)(d.Button,{isPrimary:!0,disabled:!N,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,o.createElement)("div",{className:"nux-launch-step__footer"},(0,o.createElement)(_.ZP,{sticky:!0},(0,o.createElement)(_.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),c=n(9211),s=n(381),u=n(4557),__=(n(9801),i.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,i=(0,u.Z)(),l=i.title,d=i.updateTitle,p=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)(c.ZP,{sticky:!1},(0,r.createElement)(c.aW,{onClick:p,disabled:!(null!=l&&l.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:p},(0,r.createElement)(o.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:l||"",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)(c.ZP,{sticky:!0},(0,r.createElement)(c.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(c.aW,{onClick:p,disabled:!(null!=l&&l.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(5315),c=n(5915),s=n(9211),u=n(3073),l=n(381),d=n(8318),__=(n(7496),o.__);t.Z=function(e){var t,n=e.onPrevStep,p=e.onNextStep,f=(0,i.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=f.domain,g=f.LaunchStep,h=f.selectedPlanProductId,v=(0,i.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,u.W)().selectedFeatures,E=m&&!m.is_free;return(0,r.createElement)(l.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(c.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(c.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==p||p()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:E?{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(1260),i=n.n(r),o=n(3027),a=n(3804),c=n(5707),s=n(958),u=n(9270),l=n(4524),d=n(4502),p=n(8318);n(63);t.Z=function(e){var t,n=e.onSubmit,r=(0,c.useSelect)((function(e){return e(p.sC).getState()})).step,f=(0,c.useSelect)((function(e){return e(p.sC).getLaunchStep()})),m=(0,c.useSelect)((function(e){return e(p.sC).getLaunchSequence()})),g=(0,c.useSelect)((function(e){return e(p.sC).getFirstIncompleteStep()})),h=(0,c.useDispatch)(p.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},i()(t,f.Name,s.Z),i()(t,f.Domain,u.Z),i()(t,f.Plan,l.Z),i()(t,f.Final,d.Z),t),E=m.indexOf(r),S=_[r];return a.useEffect((function(){g&&g!==f.Name&&v(g)}),[]),(0,o.createElement)(S,{onPrevStep:function(){var e=E-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=E+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 l},gQ:function(){return d},Rd:function(){return p}});var r=n(417),i=n.n(r),o=n(1260),a=n.n(o),c=n(5799),s=n(791),u=n(1157),l=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},d=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))},p=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0,p="a8c.wpcom-block-editor.openCheckoutModal",f=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=l().split("?")[0];if((0,c.hasAction)(p)&&f&&!r)(0,c.doAction)(p,{checkoutOnSuccessCallback:o,isFocusedLaunch:!0,redirectTo:(0,s.addQueryArgs)(m,a()({},u.nU,!0))});else{var g=(0,s.addQueryArgs)("/checkout/".concat(n),i()({},!r&&{redirect_to:"/home/".concat(n)}));d(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}});n(1068);var r,i=n(417),o=n.n(i),a=(n(5182),n(1205)),c=(n(3421),n(382)),s=n(4898),u=(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 d(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w2.js?1");var p=new c.EventEmitter;function f(e,t){if(t=t||{},(0,u.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,a.includes)(l,e)){if(r){var n=r(t);t=o()(o()({},t),n)}t=(0,a.omitBy)(t,a.isUndefined),(0,u.Z)('Recording event "%s" with actual props %o',e,t),d(["recordEvent",e,t]),p.emit("record-event",e,t)}else(0,u.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 c}});var r=n(6374),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,c=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:c})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function c(){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=n(8527),i=n.n(r),o=n(5182),a=n.n(o),c=n(2220),s=n.n(c),u=n(9976),l=n.n(u),d=n(3027),p=(n(3804),n(5393)),f=n(6654);function m(){var e=l()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return m=function(){return e},e}var g=(0,p.Z)("button")(m(),(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"}),y,v,_,h,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),v,(function(e){return e.disabled?"not-allowed":"pointer"}),h,_,v,(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"}),y,b,b,y);function h(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 v(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 y(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 b(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 _(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,o=e.children,c=e.fullWidth,u=s()(e,["className","buttonType","isBusy","children","fullWidth"]),l=(0,f.Z)(["checkout-button"].concat(a()(n?["is-status-"+n]:[]),a()(r?["is-busy"]:[]),a()(t?[t]:[])));return(0,d.createElement)(g,i()({fullWidth:c,buttonType:n,className:l},u),o)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(85),i=n.n(r),o=n(5198),a=n.n(o),c=n(8111),s=n.n(c),u=n(270),l=n.n(u),d=n(4564),p=n.n(d),f=n(1260),m=n.n(f),g=n(9976),h=n.n(g),v=n(3027),y=n(3804),b=n.n(y),_=n(8049),E=n.n(_),S=n(5393);function w(){var e=h()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return w=function(){return e},e}var C=E()("composite-checkout:checkout-error-boundary"),x=S.Z.div(w()),P=function(e){l()(n,e);var t=p()(n);function n(e){var r;return i()(this,n),r=t.call(this,e),m()(s()(r),"state",{hasError:!1,currentError:null}),r}return a()(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);C("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,v.createElement)(k,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(b().Component);function k(e){var t=e.errorMessage;return(0,v.createElement)(x,null,t)}},7984:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=(n(3804),n(4790));t.Z=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,o=a()(e,["value","onClick","ariaLabel"]);return(0,c.createElement)(s.Z,i()({onClick:n,buttonType:"primary","aria-label":r},o),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return D},Bb:function(){return R},nb:function(){return Z},r8:function(){return j},ds:function(){return M},V9:function(){return z}});n(2954),n(1260),n(417),n(5182),n(1068);var r=n(9976),i=n.n(r),o=n(3027),a=(n(3804),n(8049)),c=n.n(a),s=n(3980),u=n.n(s),l=n(9215),d=n(6654),p=n(3246),f=n(4790),m=n(5197),g=n(7984),h=n(5393),v=n(7450);function y(){var e=i()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return y=function(){return e},e}function b(){var e=i()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return b=function(){return e},e}function _(){var e=i()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return _=function(){return e},e}function E(){var e=i()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return E=function(){return e},e}function S(){var e=i()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return S=function(){return e},e}function w(){var e=i()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return w=function(){return e},e}function C(){var e=i()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return C=function(){return e},e}function x(){var e=i()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return x=function(){return e},e}function P(){var e=i()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return P=function(){return e},e}function k(){var e=i()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return k=function(){return e},e}function N(){var e=i()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return N=function(){return e},e}function A(){var e=i()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return A=function(){return e},e}function O(){var e=i()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return O=function(){return e},e}function L(){var e=i()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return L=function(){return e},e}function T(){var e=i()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return T=function(){return e},e}function I(){var e=i()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return I=function(){return e},e}c()("composite-checkout:checkout"),h.Z.div(I(),(function(e){return e.theme.colors.outline}));var D=h.Z.div(T(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),F=h.Z.div(L(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),R=function(e){var t=e.children,n=e.className;return(0,o.createElement)(F,{className:(0,d.Z)([n,"checkout__summary-area"])},t)},Z=h.Z.div(O(),(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 j=h.Z.div(A(),(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})),M=h.Z.div(N(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var B=h.Z.div(k(),(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})),U=h.Z.div(P(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),V=h.Z.div(x(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function z(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,a=e.validatingButtonText,c=e.nextStepButtonAriaLabel,s=e.validatingButtonAriaLabel,u=e.isStepActive,d=e.isStepComplete,f=e.className,m=e.stepNumber,h=e.stepId,y=e.titleContent,b=e.goToThisStep,_=e.goToNextStep,E=e.activeStepContent,S=e.formStatus,w=e.completeStepContent,C=e.onError,__=(0,l.QT)().__;return(0,o.createElement)(p.Z,{errorMessage:t||__("There was an error with this step."),onError:C},(0,o.createElement)(B,{className:f},(0,o.createElement)(q,{id:h,stepNumber:m,title:y,isActive:u,isComplete:d,onEdit:S===v.PX.READY&&d&&b&&!u?b:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,o.createElement)(U,{isVisible:u,className:"checkout-steps__step-content"},E,_&&u&&(0,o.createElement)(g.Z,{onClick:_,value:S===v.PX.VALIDATING?a||__("Please wait…"):i||__("Continue"),ariaLabel:S===v.PX.VALIDATING?s||__("Please wait…"):c||__("Continue to next step"),buttonType:"primary",disabled:S!==v.PX.READY,isBusy:S===v.PX.VALIDATING})),d&&w?(0,o.createElement)(V,{isVisible:!u,className:"checkout-steps__step-complete-content"},w):null))}z.propTypes={errorMessage:u().string,onError:u().func,editButtonAriaLabel:u().string,editButtonText:u().string,nextStepButtonText:u().string,nextStepButtonAriaLabel:u().string,isStepActive:u().bool.isRequired,isStepComplete:u().bool.isRequired,className:u().string,stepNumber:u().number,stepId:u().string.isRequired,titleContent:u().node.isRequired,goToThisStep:u().func,goToNextStep:u().func,activeStepContent:u().node,formStatus:u().string,completeStepContent:u().node,validatingButtonText:u().string,validatingButtonAriaLabel:u().string};var H=h.Z.span(C(),(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"})),$=h.Z.h2(w(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),G=(0,h.Z)(f.Z)(S());function q(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,a=e.isActive,c=e.isComplete,s=e.onEdit,u=e.editButtonText,p=e.editButtonAriaLabel,__=(0,l.QT)().__,f=!!s;return(0,o.createElement)($,{isComplete:c,isActive:a,className:(0,d.Z)([n,"checkout-step__header"])},(0,o.createElement)(X,{isComplete:c,isActive:a,id:t},r||null),(0,o.createElement)(H,{fullWidth:!f,isActive:a},i),f&&(0,o.createElement)(G,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:s,"aria-label":p||__("Edit this step")},u||__("Edit")))}var W=h.Z.div(E()),Y=h.Z.div(_(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),K=h.Z.div(b(),(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"})),Q=(0,h.Z)(K)(y(),(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,a=e.id,c=!n&&t;return(0,o.createElement)(W,{className:(0,d.Z)([r,"checkout-step__stepper"])},(0,o.createElement)(Y,{isComplete:c},(0,o.createElement)(K,{isComplete:c,isActive:n},i),(0,o.createElement)(Q,null,(0,o.createElement)(m.nQ,{id:a}))))}q.propTypes={id:u().string,className:u().string,stepNumber:u().number,title:u().node.isRequired,isActive:u().bool,isComplete:u().bool,editButtonText:u().string,editButtonAriaLabel:u().string,onEdit:u().func},X.propTypes={id:u().string,className:u().string,isComplete:u().bool,isActive:u().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return l}});var r=n(9976),i=n.n(r),o=n(3027),a=(n(3804),n(3980)),c=n.n(a),s=n(5393);function u(){var e=i()(["\n\tfill: #fff;\n"]);return u=function(){return e},e}function l(e){var t=e.className,n=e.id;return(0,o.createElement)(d,{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:c().string,id:c().string};var d=s.Z.svg(u())},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"}(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 c}});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()}},c=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),c=n(2269),s=n(267),u=n(3661),l=!1;function d(e){var t=e.vendor;return l||(l=!0,(0,r.registerStore)(i.L,{actions:a,controls:u.ai,reducer:o.Z,resolvers:c,selectors:(0,s.Z)(t)})),i.L}},3717:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=n(584),u=n(4211),l={state:s.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},d=(0,c.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]:l,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?a()(a()({},e),{},{state:s.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?a()(a()({},e),{},{state:s.r.Success,data:a()(a()({},e.data),{},i()({},(0,u.L)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?a()(a()({},e),{},{state:s.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?a()(a()({},e),{},i()({},t.domainName,t.availability)):e}});t.Z=d},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return p},getCategories:function(){return f},__internalGetDomainSuggestions:function(){return m}});var r=n(417),i=n.n(r),o=n(9126),a=n(1481),c=n(3600),s=n(3661),u=n(4211),l=regeneratorRuntime.mark(f),d=regeneratorRuntime.mark(m),p=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,(0,s.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,c.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,c.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function f(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",(0,c.receiveCategories)(e.body));case 4:case"end":return t.stop()}}),l)}function m(e){var t,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.query){r.next=2;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)("Empty query"));case 2:return r.next=4,(0,c.fetchDomainSuggestions)();case 4:return r.prev=4,r.next=7,(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:t=r.sent,r.next=13;break;case 10:return r.prev=10,r.t0=r.catch(4),r.abrupt("return",(0,c.receiveDomainSuggestionsError)(r.t0.message||(0,a.Iu)("Error while fetching server response")));case 13:if(t&&""!==t){r.next=15;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)((0,a.Iu)("Invalid response from the server")));case 15:return n=t.map((function(e){return i()(i()({},e),e.raw_price&&e.currency_code&&{cost:(0,u._)(e.raw_price,e.currency_code)})})),r.abrupt("return",(0,c.receiveDomainSuggestionsSuccess)(e,n));case 17:case"end":return r.stop()}}),d,null,[[4,10]])}},267:function(e,t,n){"use strict";var r=n(417),i=n.n(r),o=n(5182),a=n.n(o),c=n(5707),s=n(584),u=n(4211);t.Z=function(e){function t(t,n){return i()(i()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(a()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),a()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)(s.L).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)("core/data").isResolving(s.L,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[(0,u.L)(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}}},4211:function(e,t,n){"use strict";n.d(t,{L:function(){return a},_:function(){return c}});var r=n(5695),i=n.n(r),o=n(1621),a=i();function c(e,t){return(0,o.ZP)(e,t,{stripZeros:!0})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return c},setSiteTitle:function(){return s},setDomain:function(){return u},unsetDomain:function(){return l},confirmDomainSelection:function(){return d},setDomainSearch:function(){return p},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 E},showSiteTitleStep:function(){return S},setModalDismissible:function(){return w},unsetModalDismissible:function(){return C},showModalTitle:function(){return x},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return k},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"}},c=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},u=function(e){return{type:"SET_DOMAIN",domain:e}},l=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},p=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},f=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,f(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"}},E=function(){return{type:"ENABLE_ANCHOR_FM"}},S=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},C=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},P=function(){return{type:"HIDE_MODAL_TITLE"}},k=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),c=n(6108),s=n(7092),u=n(594);(0,i.use)(i.plugins.persistence,u.Z);var l=!1;function d(){return l||(l=!0,(0,i.registerStore)(o.Ls,{actions:c,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 c},getState:function(){return s},hasPaidDomain:function(){return u},getSelectedDomain:function(){return l},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return p},isSelectedPlanPaid:function(){return f},hasSelectedDomain: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 E}});var r=n(5707),i=n(3610),o=n(9149),a=function(){return i.M},c=function(){return i.y},s=function(e){return e},u=function(e){return!!e.domain&&!e.domain.is_free},l=function(e){return e.domain},d=function(e){return e.planProductId},p=function(e){return e.planBillingPeriod},f=function(e){return void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!l(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).hasSelectedDomain()},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},E=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 c}});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}},c=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 c},hx:function(){return s},iL:function(){return u},xT:function(){return l},AX:function(){return d},bS:function(){return p},UB:function(){return f},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",c="premium",s="business",u="ecommerce",l=[o,a,c,s,u],d=c,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],f=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(p,f),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),c=n(7738),s=n(5261),u=n(3661),l=!1;function d(){return l||(l=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:u.ai,reducer:o.ZP,selectors:c})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=(0,c.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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},t.locale,t.plans));default:return e}}});t.ZP=s},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),c=n(3661),s=regeneratorRuntime.mark(g);function u(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(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 p(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function f(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:p(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,c=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:c.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?l(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?u(o):l(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,c=Math.round(100*(1-o/i));n.annualDiscount=c,r.annualDiscount=c}},n=0;n<a.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,i,u,l,p,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,c._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,c.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,u=d(i.features),l=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:f(e,u),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}))}})),p=m(t,l),s.next=13,(0,o.setPlans)(l,e);case 13:return s.next=15,(0,o.setPlanProducts)(p);case 15:return s.next=17,(0,o.setFeatures)(u,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 c},getFeaturesByType:function(){return s},getPlanByProductId:function(){return u},getPlanProductById:function(){return l},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return p},getDefaultFreePlan:function(){return f},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 E}});var r=n(5707),i=n(4703),o=n(3613),a=n.n(o),c=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:[]},u=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},l=function(e,t){if(t)return(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},p=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.AX}))},f=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.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 a()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(i.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var o=(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(o)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===(null==o?void 0:o.periodAgnosticSlug)}))}},y=function(e,t,n){if(t&&n){var o=(0,r.select)(i.Ls).getPlansProducts();return t===i.TO?o.find((function(e){return e.periodAgnosticSlug===t})):o.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},b=function(e,t){return t===i.iL},_=function(e,t){return t===i.TO},E=function(e,t){return t===i.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(417),i=n.n(r),o=n(2220),a=n.n(o),c=n(3661),s=n(2699);function u(e){var t=regeneratorRuntime.mark(f),n=regeneratorRuntime.mark(y),r=regeneratorRuntime.mark(b),o=regeneratorRuntime.mark(_),u=regeneratorRuntime.mark(E),l=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},p=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function f(n){var r,o,s,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,o=a()(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},u=i()(i()(i()({},s),o),{},{validate:!1}),t.next=8,(0,c._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:u,token:r});case 8:return l=t.sent,t.next=11,d(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,p(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,c._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,s.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,c._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()}}),r)}function _(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,c._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()}}),o)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,c._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()}}),u,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:m,fetchNewSite:l,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:p,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:f,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),c=n(7862),s=n(4309),u=n(3661),l=!1;function d(e){return l||(l=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:u.ai,reducer:o.ZP,resolvers:c,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(2220),i=n.n(r),o=n(4582),a=n.n(o),c=n(1260),s=n.n(c),u=n(417),l=n.n(u),d=n(5707),p=n(2699),f=(0,d.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}}),m=(0,d.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:f,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 l()(l()({},e),{},s()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],i()(e,[n].map(a())));return l()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?l()(l()({},e),{},s()({},t.siteId,l()(l()({},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?l()(l()({},e),{},s()({},t.siteId,{status:p.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:p.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:p.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?l()(l()({},e),{},s()({},t.siteId,t.domains)):e}});t.ZP=m},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return u}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),c=regeneratorRuntime.mark(u);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 u(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()}}),c,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return c},getNewSiteError:function(){return s},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return l},isNewSite:function(){return d},getSite:function(){return p},getSiteTitle:function(){return f},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},c=function(e){return e.newSite.data},s=function(e){return e.newSite.error},u=function(e){return e.newSite.isFetching},l=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},p=function(e,t){return e.sites[t]},f=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 c}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,c={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 u}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),c=n(335),s=!1;function u(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:c})),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 c},An:function(){return s},ai:function(){return u}});var r,i=n(2954),o=n.n(i),a=n(8552),c=function(e){return{type:"WPCOM_REQUEST",request:e}},s=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},u={WPCOM_REQUEST:function(e){var t=e.request;return(0,a.ZP)(t)},FETCH_AND_PARSE:(r=o()(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,a.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,a.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},3300:function(e,t,n){"use strict";n.d(t,{gB:function(){return i},au:function(){return o},F9:function(){return a},dP:function(){return c},GN:function(){return s},vn:function(){return u}});var r=n(8077),i=5,o=10,a=2,c=300,s=r.z({vendor:"variation2_front"}),u=["available","available_premium"]},4948:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=(n(3804),n(7997)),c=n(5869),s=n(3383),u=n(2779),l=n.n(u),d=n(9215),p=n(5707),f=n(3300);n(988);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,d.QT)().__,r=(0,o.useState)(!1),u=i()(r,2),m=u[0],g=u[1],h=function(e){g(!1),t(e)},v=(0,p.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,o.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,o.createElement)(a.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,o.createElement)("span",null,null!=n?n:y),(0,o.createElement)(c.Z,{icon:s.Z,size:16})),(0,o.createElement)("ul",{className:"domain-categories__item-group"},(0,o.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,o.createElement)(a.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,o.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,o.createElement)(a.Button,{onClick:function(){return h(t)}},r))}))))}},1052:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(9215)),o=function(){var e=(0,i.QT)(),__=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"))))}},7047:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n.n(a),s=n(5707),u=n(1205),l=n(7997),d=n(5869),p=n(7108),f=n(6115),m=n(584),g=n(9215),h=n(947),v=n(7226),y=n(4531),b=n(5241),_=n(1045),E=n(1071),S=n(4948),w=n(3300),C=n(1052),x=(n(8395),function(e){var t=e.groupItems,n=e.children;return t?(0,o.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,o.createElement)(a.Fragment,null,n)}),P=function(e){var t=e.children;return(0,o.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,r=e.showDomainCategories,k=e.onDomainSelect,N=e.onExistingSubdomainSelect,A=e.quantity,O=void 0===A?w.gB:A,L=e.quantityExpanded,T=void 0===L?w.au:L,I=e.onDomainSearchBlur,D=void 0===I?u.noop:I,F=e.analyticsFlowId,R=e.analyticsUiAlgo,Z=e.initialDomainSearch,j=void 0===Z?"":Z,M=e.onSetDomainSearch,B=void 0===M?u.noop:M,U=e.currentDomain,V=e.isCheckingDomainAvailability,z=e.existingSubdomain,H=e.segregateFreeAndPaid,$=void 0!==H&&H,G=e.showSearchField,q=void 0===G||G,W=e.itemType,Y=void 0===W?h.tr:W,K=e.locale,Q=e.areDependenciesLoading,X=void 0!==Q&&Q,J=e.orderSubDomainsLast,ee=void 0!==J&&J,te=e.onUseYourDomainClick,__=(0,g.QT)().__,ne=__("Search for a domain","full-site-editing"),re=(0,a.useState)(!1),ie=i()(re,2),oe=ie[0],ae=ie[1],ce=(0,a.useState)(j),se=i()(ce,2),ue=se[0],le=se[1],de=(0,a.useState)(),pe=i()(de,2),fe=pe[0],me=pe[1],ge=(0,s.useSelect)((function(e){return e(w.GN).getDomainSuggestionVendor()})),he=(0,b.O)(ue.trim(),T,fe,K)||{},ve=he.allDomainSuggestions,ye=he.errorMessage,be=he.state,_e=he.retryRequest,Ee=null==ve?void 0:ve.slice(z?1:0,oe?T:O),Se=(0,_.$)(Ee,z,U);Se&&(null==Ee||Ee.push(Se));var we=(0,E.P)();(0,a.useEffect)((function(){ae(!1)}),[ue]);var Ce=(0,a.useState)(),xe=i()(Ce,2),Pe=xe[0],ke=xe[1];(0,a.useEffect)((function(){ve&&ke((0,f.k9)("suggestion"))}),[ve,ke]),(0,a.useEffect)((function(){q||le(j)}),[j,q]);var Ne=c().useRef([]);(0,a.useEffect)((function(){var e,t;oe&&(null===(e=Ne.current[O])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[oe,O]);var Ae=function(e,t,n,r){var i="/domains/search/".concat(ge,"/").concat(F).concat(fe?"/"+fe:"");(0,f.Sn)({uiAlgo:"/".concat(F,"/").concat(R),fetchAlgo:i,query:ue,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Oe=be===m.r.Failure,Le=(null===(t=ue.trim)||void 0===t?void 0:t.call(ue).length)<=1,Te=!Oe&&!Le,Ie=!Oe&&Le,De=O;Se&&(De+=1),te&&(De+=1),z&&(De-=1);var Fe=["professional"];return z&&Fe.unshift("sub-domain"),ee&&Fe.reverse(),(0,o.createElement)("div",{className:"domain-picker"},n&&n,q&&(0,o.createElement)("div",{className:"domain-picker__search"},(0,o.createElement)("div",{className:"domain-picker__search-icon"},(0,o.createElement)(d.Z,{icon:p.Z})),(0,o.createElement)(l.TextControl,{hideLabelFromVision:!0,label:ne,placeholder:ne,onChange:function(e){le(e),B(e)},onBlur:function(e){D&&D(e.currentTarget.value)},value:ue,dir:"ltr"})),Oe&&(0,o.createElement)(l.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,o.createElement)("p",{className:"domain-picker__error-message"},ye||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,o.createElement)(l.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:_e},__("Retry","full-site-editing"))),(Te||X)&&(0,o.createElement)("div",{className:"domain-picker__body"},r&&(0,o.createElement)("div",{className:"domain-picker__aside"},(0,o.createElement)(S.Z,{selected:fe,onSelect:me})),(0,o.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,o.createElement)("div",{className:"domain-picker__sugggested-items-container"},Fe.map((function(e){return"sub-domain"===e?(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(P,null,__("Keep sub-domain","full-site-editing")),(0,o.createElement)(x,{key:e,groupItems:$},!X&&z&&(0,o.createElement)(h.ZP,{key:null==z?void 0:z.domain_name,domain:null==z?void 0:z.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Pe?"".concat(Pe,0):void 0,onRender:function(){return Ae(null==z?void 0:z.domain_name,"".concat(Pe,0),0,!1)},selected:(null==U?void 0:U.domain_name)===(null==z?void 0:z.domain_name),onSelect:function(){null==N||N(null==z?void 0:z.domain_name)},type:Y})||(0,o.createElement)(v.Z,{type:Y}))):(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(P,null,__("Professional domains","full-site-editing")),(0,o.createElement)(x,{key:e,groupItems:$},!X&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=z&&z.domain_name?t+1:t,i=1===r,a=null===(n=we[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,o.createElement)(h.ZP,{ref:function(e){Ne.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==U?void 0:U.domain_name)===e.domain_name&&V,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:i,railcarId:Pe?"".concat(Pe).concat(r):void 0,onRender:function(){return Ae(e.domain_name,"".concat(Pe).concat(r),r,i)},onSelect:function(){k(e)},selected:(null==U?void 0:U.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(De,(function(e){return(0,o.createElement)(v.Z,{type:Y,key:e})})),te&&!!Ee&&(0,o.createElement)(y.Z,{onClick:te})))}))),!oe&&O<T&&(null==ve?void 0:ve.length)&&(null==ve?void 0:ve.length)>O&&(0,o.createElement)("div",{className:"domain-picker__show-more"},(0,o.createElement)(l.Button,{onClick:function(){return ae(!0)},isLink:!0},__("View more results","full-site-editing"))))),Ie&&!X&&(0,o.createElement)("div",{className:"domain-picker__empty-state"},(0,o.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,o.createElement)("div",null,(0,o.createElement)(C.q,null))))}},7226: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"}))}},5179:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=n(3804),u=s.forwardRef((function(e,t){var n=e.type,r=e.disabled,o=a()(e,["type","disabled"]);return"button"===n?(0,c.createElement)("div",o):(0,c.createElement)("button",i()({ref:t,disabled:r},o))}));t.Z=u},947:function(e,t,n){"use strict";n.d(t,{tr:function(){return b}});var r=n(8527),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n(2779),l=n.n(u),d=n(9215),p=n(6115),f=n(7498),m=n(7997),g=n(1417),h=n(3163),v=n(1749),y=n(5179),b="radio",_="individual-item",E=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,u=e.hstsRequired,E=void 0!==u&&u,S=e.isFree,w=void 0!==S&&S,C=e.isExistingSubdomain,x=void 0!==C&&C,P=e.isRecommended,k=void 0!==P&&P,N=e.onSelect,A=e.onRender,O=e.selected,L=e.type,T=void 0===L?b:L,I=e.buttonRef,__=(0,d.QT)().__,D=(0,f.Iu)(),F=(0,g.useViewportMatch)("small","<"),R=n.indexOf("."),Z=n.slice(0,R),j=n.slice(R),M=s.useState(),B=a()(M,2),U=B[0],V=B[1],z=s.useState(),H=a()(z,2),$=H[0],G=H[1],q=__("Default","full-site-editing"),W=__("Free","full-site-editing"),Y=__("Included in paid plans","full-site-editing"),K=__("Included with annual plans","full-site-editing"),Q=__("<strong>First year included</strong> in paid plans","full-site-editing"),X=T===_?q:W,J=F?Y:(0,c.createInterpolateElement)(Q,{strong:(0,c.createElement)("strong",null)}),ee=T===_?J:F?W:K;s.useEffect((function(){n!==U&&$!==o&&o&&(A(),V(n),G(o))}),[n,U,$,o,A]);var te=function(){$&&(0,p.Lo)({action:"domain_selected",railcarId:$}),N(n)},ne=__("Selected","full-site-editing"),re=__("Select","full-site-editing");return(0,c.createElement)(y.Z,{ref:I,type:T,key:Z,className:l()("domain-picker__suggestion-item",{"is-free":w,"is-selected":O,"is-unavailable":t},"type-".concat(T)),onClick:"button"!==T?te:void 0,disabled:t},T===b&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("span",{className:l()("domain-picker__suggestion-radio-circle",{"is-checked":O,"is-unavailable":t})})),(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,c.createElement)("span",{className:l()("domain-picker__domain-wrapper",{"with-margin":!E})},(0,c.createElement)("span",{className:"domain-picker__domain-sub-domain"},Z),(0,c.createElement)("span",{className:"domain-picker__domain-tld"},j)),k&&!t&&(0,c.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),E&&(0,c.createElement)(v.Z,{position:F?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,c.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,c.createElement)("b",null,j),learn_more_link:(0,c.createElement)("a",{target:"_blank",rel:"noreferrer",href:D("https://wordpress.com/support/https-ssl")})}))),x&&T!==_&&(0,c.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,c.createElement)("div",{className:l()("domain-picker__price",{"is-paid":!w})},t&&__("Unavailable","full-site-editing"),w&&!t&&X,!w&&!t&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"domain-picker__price-cost"},(0,h.sprintf)(__("%s/year","full-site-editing"),i)),(0,c.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ee," "),(0,c.createElement)("span",{className:"domain-picker__price-renewal"},(0,h.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),"button"===T&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("div",{className:"domain-picker__action"},(0,c.createElement)(m.Button,{ref:I,isSecondary:!0,className:l()("domain-picker__suggestion-select-button",{"is-selected":O&&!t}),disabled:t,onClick:te},O&&!t?ne:re))))};t.ZP=s.forwardRef((function(e,t){return(0,c.createElement)(E,i()({},e,{buttonRef:t}))}))},4531:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(9215),a=n(5179);t.Z=function(e){var t=e.onClick,n=(0,o.QT)(),__=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",onClick:t},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},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 l}});var r=n(417),i=n.n(r),o=n(1068),a=n.n(o),c=n(5707),s=n(7127),u=n(3300);function l(){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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=(0,s.Z)(e,u.dP),d=a()(l,1),p=d[0],f=(0,c.useDispatch)(u.GN),m=f.invalidateResolutionForStoreSelector;return(0,c.useSelect)((function(e){if(p&&!(p.length<u.F9)){var a=e(u.GN),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(p,i()({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n},o)),state:s(),errorMessage:l(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[p,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(5182),i=n.n(r),o=n(1068),a=n.n(o),c=n(3804);function s(e,t,n){var r=c.useState(),o=a()(r,2),s=o[0],u=o[1],l=t&&Array.isArray(e)?[t].concat(i()(e)):e;if(c.useEffect((function(){var e=null==l?void 0:l.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=l&&l.length&&!e&&u(n)}),[n,l]),!(null==l?void 0:l.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},1749:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(2779),s=n.n(c),u=n(7997),l=n(5614);n(6388);t.Z=function(e){var t=e.children,n=e.className,r=e.id,c=e.position,d=void 0===c?"bottom center":c,p=e.noArrow,f=void 0===p||p,m=(0,a.useState)(!1),g=i()(m,2),h=g[0],v=g[1];return(0,o.createElement)((function(e){return(0,o.createElement)(u.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,o.createElement)(u.Popover,{id:r,className:s()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:f},t))}},7356: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:""}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}n.d(t,{n:function(){return r},Q:function(){return i}})},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 c}});var r=n(417),i=n.n(r),o=n(1481),a=n(3759);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.X)(t);if(!r||isNaN(e))return null;var c=i()(i()({},r),n),u=c.decimal,l=c.grouping,d=c.precision,p=c.symbol,f=e<0?"-":"",m=(0,o.Y4)(Math.abs(e),{decimals:d,thousandsSep:l,decPoint:u});return n.stripZeros&&(m=s(m,u)),"".concat(f).concat(p).concat(m)}function s(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(5182),i=n.n(r),o=n(1260),a=n.n(o),c=n(8049),s=n.n(c),u=n(7010),l=n(9830),d=n(7839),p=n.n(d),f=n(5079),m=n.n(f),g=n(382),h=n(6668),v=n(3),y=s()("i18n-calypso"),b="number_format_decimals",_="number_format_thousands_sep",E="messages",S=[function(e){return e}],w={};function C(){A.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function x(e){return Array.prototype.slice.call(e)}function P(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&C("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",x(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&C("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",x(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 k(e,t){return e.dcnpgettext(E,t.context,t.original,t.plural,t.count)}function N(e,t){for(var n=S.length-1;n>=0;n--){var r=S[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return k(e.state.tannin,r)}return null}function A(){if(!(this instanceof A))return new A;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:p()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}A.throwErrors=!1,A.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},A.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},A.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},A.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,v.Z)(e,n,r,i)},A.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},A.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==w[n+e])return w[n+e];var r=m()().update(e).digest("hex");return w[n+e]=t?r.substr(0,t):r},c=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)S.push(c(!1));else{var s=i.substr(5).indexOf("-");if(s<0){var u=Number(i.substr(5));S.push(c(u))}else for(var d=Number(i.substr(5,s)),p=Number(i.substr(6+s)),f=d;f<=p;f++)S.push(c(f))}}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 l.Z(a()({},E,this.state.locale)),this.state.numberFormatSettings.decimal_point=k(this.state.tannin,P([b])),this.state.numberFormatSettings.thousands_sep=k(this.state.tannin,P([_])),this.state.numberFormatSettings.decimal_point===b&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===_&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},A.prototype.getLocale=function(){return this.state.locale},A.prototype.getLocaleSlug=function(){return this.state.localeSlug},A.prototype.getLocaleVariant=function(){return this.state.localeVariant},A.prototype.isRtl=function(){return"rtl"===this.state.textDirection},A.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},A.prototype.hasTranslation=function(){return!!N(this,P(arguments))},A.prototype.translate=function(){var e=P(arguments),t=N(this,e);if(t||(t=k(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=h.Z.apply(void 0,i()(n))}catch(o){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[r](o):window.console[r]("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},A.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},A.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},A.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=A},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return u}});var r=n(914),i=n(3493),o=n(975),a=n(8373),c=new r.Z,s=c.numberFormat.bind(c),u=c.translate.bind(c),l=(c.configure.bind(c),c.setLocale.bind(c),c.getLocale.bind(c),c.getLocaleSlug.bind(c),c.getLocaleVariant.bind(c),c.isRtl.bind(c),c.addTranslations.bind(c),c.reRenderTranslations.bind(c),c.registerComponentUpdateHook.bind(c),c.registerTranslateHook.bind(c),c.state,c.stateObserver,c.on.bind(c),c.off.bind(c),c.emit.bind(c),(0,i.Z)(c),(0,o.Z)(c),(0,a.Z)(c));l.useRtl,l.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(417),i=n.n(r),o=n(85),a=n.n(o),c=n(5198),s=n.n(c),u=n(8111),l=n.n(u),d=n(270),p=n.n(d),f=n(4564),m=n.n(f),g=n(1260),h=n.n(g),v=n(3027),y=n(3804),b=n.n(y);function _(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var r,o,c=n.displayName||n.name||"";return o=r=function(r){p()(c,r);var o=m()(c);function c(){var e;a()(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=o.call.apply(o,[this].concat(n)),h()(l()(e),"boundForceUpdate",e.forceUpdate.bind(l()(e))),e}return s()(c,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var r=i()(i()({locale:e.getLocaleSlug()},this.props),t);return(0,v.createElement)(n,r)}}]),c}(b().Component),h()(r,"displayName","Localized("+c+")"),o}}},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,c=void 0===n?".":n,s="";return(s=(o?
|
20 |
/*
|
21 |
* Exposes number format capability
|
22 |
*
|
@@ -24,4 +24,4 @@ object-assign
|
|
24 |
* @license See CREDITS.md
|
25 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
26 |
*/
|
27 |
-
function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}n.d(t,{Z:function(){return r}})},8373:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8527),i=n.n(r),o=n(3027),a=n(3804),c=n(6718),s=n(1417);function u(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,c.useSubscription)(t)}var r=(0,s.createHigherOrderComponent)((function(e){return(0,a.forwardRef)((function(t,r){var a=n();return(0,o.createElement)(e,i()({},t,{isRtl:a,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}},975:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1068),i=n.n(r),o=n(3804),a=n.n(o);function c(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){var n=a().useState(t),r=i()(n,2),o=r[0],c=r[1];return a().useEffect((function(){var n=function(){return c(t)};return e.on("change",n),function(){return e.off("change",n)}}),[]),o}}},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return l}});var r=n(8527),i=n.n(r),o=n(3027),a=n(3804),c=n(1417),s=(0,a.createContext)("en"),u=function(e){var t=e.children,n=e.localeSlug;return(0,o.createElement)(s.Provider,{value:n},t)};function l(){return(0,a.useContext)(s)}(0,c.createHigherOrderComponent)((function(e){return function(t){var n=l();return(0,o.createElement)(e,i()({locale:n},t))}}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{GG:function(){return r},iT:function(){return i},xn:function(){return o},Xb:function(){return a},xN:function(){return c},hI:function(){return s},mL:function(){return u},vS:function(){return l},_r:function(){return d}});var r=["en","ja","es","pt","fr","pt-br"],i=["en","fr","de"],o=["en","fr","de"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["en","en-gb"],s=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{Iu:function(){return h}});var r=n(8527),i=n.n(r),o=n(3027),a=n(3804),c=n(1417),s=n(849),u=n(4655),l="http://__domain__.invalid",d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(u.Xb[r]||r,".").concat(e)),n}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=i+r.pathname),r}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n}},m={"wordpress.com/support/":f(u.hI),"wordpress.com/forums/":f(u.mL),"wordpress.com/blog/":f(u.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(u.vS),"wordpress.com/wp-admin/":d("wordpress.com",u.vS),"wordpress.com/wp-login.php":d("wordpress.com",u.vS),"jetpack.com":d("jetpack.com",u._r),"en.support.wordpress.com":p("/support",u.hI),"en.blog.wordpress.com":p("/blog",u.GG,/^\/$/),"en.forums.wordpress.com":p("/forums",u.mL),"automattic.com/privacy/":f(u.iT),"automattic.com/cookies/":f(u.xn),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(u.hI)(e,t))},"wordpress.com":f(u.vS)};function g(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),l)}catch(c){return e}if(n.origin===l)return e;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));var i=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+t+"/"===i)return n.href;for(var o=[n.host,n.host+i,n.host+n.pathname],a=o.length-1;a>=0;a--)if(o[a]in m)return m[o[a]](n,t,r).href;return e}function h(){var e=(0,s.bU)();return(0,a.useCallback)((function(t,n,r){return g(t,n||e,r)}),[e])}(0,c.createHigherOrderComponent)((function(e){return function(t){var n=h();return(0,o.createElement)(e,i()({localizeUrl:n},t))}}),"withLocalizeUrl")},6357:function(e,t,n){"use strict";var r=n(417),i=n.n(r),o=n(3804),a=n(791),c=function(e){window.location.href=e},s=o.createContext({siteId:0,redirectTo:c,getCurrentLaunchFlowUrl:function(){return window.location.href},openCheckout:function(e,t){c((0,a.addQueryArgs)("/checkout/".concat(e),i()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch",isInIframe:!1});t.Z=s},8039:function(e,t,n){"use strict";n.d(t,{j:function(){return h}});var r=n(417),i=n.n(r),o=n(2954),a=n.n(o),c=n(1068),s=n.n(c),u=n(3804),l=n(5707),d=n(849),p=n(1120),f=n(6357),m=n(6950),g=n(5144);function h(){var e=u.useContext(f.Z),t=e.siteId,n=e.flow,r=e.openCheckout,o=e.isInIframe,c=(0,d.bU)(),h=(0,l.useSelect)((function(e){return[e(p.sC).getSelectedPlanProductId(),e(p.sC).getSelectedDomain()]})),v=s()(h,2),y=v[0],b=v[1],_=(0,l.useSelect)((function(e){var t=e(p.Fs),n=t.getPlanByProductId(y,c);return{planProduct:t.getPlanProductById(y),isEcommercePlan:t.isPlanEcommerce(null==n?void 0:n.periodAgnosticSlug)}}),[y,c]),E=_.planProduct,S=_.isEcommercePlan,w=(0,g.j)().siteSubdomain,C=(0,l.useDispatch)(p.j4),x=C.getCart,P=C.setCart,k=C.launchSite,N=function(){return k(t)},A=u.useState(!1),O=s()(A,2),L=O[0],T=O[1],I=function(){var e=a()(regeneratorRuntime.mark((function e(){var r,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!L){e.next=2;break}return e.abrupt("return");case 2:return T(!0),r=b&&(0,m.K9)(b,n),o=E&&(0,m.An)(E,n),e.next=7,x(t);case 7:return a=e.sent,e.next=10,P(t,i()(i()({},a),{},{products:[o,r]}));case 10:T(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=a()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:r(null==w?void 0:w.domain,S,N);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=a()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o&&!S){e.next=3;break}return e.next=3,k(t);case 3:D();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{goToCheckout:D,goToCheckoutAndLaunch:F,isCartUpdating:L}}},6956:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(5707),i=n(3300),o=n(7356),a=n(1120),c=n(4557),s=n(3073),u=n(5144);function l(){var e,t,n=(0,r.useSelect)((function(e){return e(a.sC).getDomainSearch()}),[]),l=(0,c.Z)(),d=l.isDefaultTitle,p=l.title,f=(0,s.W)().isLoadingSite,m=(0,u.j)().siteSubdomain,g=(0,r.useDispatch)(a.sC).setDomainSearch,h=void 0!==p&&p.length>=i.F9&&!d?p:"";return{domainSearch:null!==(e=n.trim()||function(e){return(0,o.Q)(e)?e:""}(h)||(null==m||null===(t=m.domain)||void 0===t?void 0:t.split(".")[0]))&&void 0!==e?e:"",isLoading:f,setDomainSearch:g}}},780:function(e,t,n){"use strict";n.d(t,{my:function(){return c}});n(2954),n(1068),n(3804);var r=n(5707),i=n(7356),o=n(1120),a=n(5144);function c(){var e,t=(0,r.useDispatch)(o.sC),n=t.setDomain,c=t.unsetDomain,s=t.unsetPlanProductId,u=t.confirmDomainSelection,l=(0,r.useSelect)((function(e){return e(o.sC).getState()})),d=l.domain,p=l.planProductId,f=l.confirmedDomainSelection,m=(0,r.useSelect)((function(e){return e(o.Fs).isPlanProductFree(p)})),g=(0,a.j)(),h=g.siteSubdomain,v=g.hasPaidDomain,y=g.sitePrimaryDomain;return d?e=d:v?e=(0,i.n)(null==y?void 0:y.domain):f&&(e=(0,i.n)(null==h?void 0:h.domain)),{onDomainSelect:function(e){u(),n(e),m&&s()},onExistingSubdomainSelect:function(){u(),c()},selectedDomain:d,currentDomain:e}}},8463:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(5707),i=n(849),o=n(1120),a=n(6956);function c(){var e,t=(0,i.bU)(),n=(0,a.f)().domainSearch;return null===(e=(0,r.useSelect)((function(e){if(n&&!(n.length<2))return e(o.GN).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}},3357:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(3804),i=n(5707),o=n(1120),a=n(6357),c=n(5144),s=n(8039),u=n(3073),l=function(){var e=r.useContext(a.Z),t=e.siteId,n=e.redirectTo,l=(0,i.useSelect)((function(e){return e(o.sC).getState()})).planProductId,d=(0,i.useSelect)((function(e){return e(o.Fs).isPlanProductFree(l)})),p=(0,u.W)().isSiteLaunched,f=(0,c.j)().siteSubdomain,m=(0,s.j)().goToCheckout;r.useEffect((function(){if(p){if(!d)return void m();n("/home/".concat((null==f?void 0:f.domain)||t))}}),[p])}},5144:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(3804),i=n(5707),o=n(1120),a=n(6357);function c(){var e=r.useContext(a.Z).siteId,t=(0,i.useSelect)((function(t){return t(o.j4).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:(0,i.useSelect)((function(t){return t(o.j4).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}},3073:function(e,t,n){"use strict";n.d(t,{W:function(){return u}});var r=n(1068),i=n.n(r),o=n(3804),a=n(5707),c=n(1120),s=n(6357);function u(){var e,t,n=o.useContext(s.Z).siteId,r=(0,a.useSelect)((function(e){var t=e(c.j4);return[t.getSite(n),t.isSiteLaunched(n),t.isSiteLaunching(n),t.isFetchingSiteDetails()]}),[n]),u=i()(r,4),l=u[0],d=u[1],p=u[2],f=u[3];return{sitePlan:null==l?void 0:l.plan,hasPaidPlan:l&&!(null!==(e=l.plan)&&void 0!==e&&e.is_free),isSiteLaunched:d,isSiteLaunching:p,selectedFeatures:null==l||null===(t=l.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!f}}},4557:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(1068),i=n.n(r),o=n(3804),a=n(669),c=n(3163),s=n(5707),u=n(849),l=n(4655),d=n(1120),p=n(6357),__=c.__;function f(){var e=(0,o.useContext)(p.Z).siteId,t=(0,u.bU)(),n=(0,s.useSelect)((function(t){return t(d.j4).getSiteTitle(e)}),[e]),r=(0,s.useSelect)((function(e){return e(d.sC).getSiteTitle()}),[]),c=(0,s.useDispatch)(d.sC).setSiteTitle,f=(0,s.useDispatch)(d.j4).saveSiteTitle,m=(0,a.Z)(f,1e3),g=i()(m,1)[0],h=void 0===r,v=h?n:r;(0,o.useEffect)((function(){h||g(e,r)}),[r,g,e,h]);var y=__("Site Title","full-site-editing"),b=void 0!==v&&v===y,_=void 0!==v&&""!==v&&!b;return-1===l.xN.indexOf(t)&&(b=!(null!=r&&r.trim()),_=void 0!==v&&""!==v),{isDefaultTitle:b,isValidTitle:_,title:v,updateTitle:c}}},1120:function(e,t,n){"use strict";n.d(t,{j4:function(){return c},Fs:function(){return s},GN:function(){return u},sC:function(){return l}});var r=n(2369),i=n(9734),o=n(8077),a=n(1635),c=r.z2({client_id:"",client_secret:""}),s=i.z2(),u=o.z({vendor:"variation2_front"}),l=a.z()},6950:function(e,t,n){"use strict";n.d(t,{An:function(){return r},K9:function(){return i}});var r=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},i=function(e,t){if(null!=e&&e.product_id)return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t},product_cost_display:e.cost,currency_code:e.currency_code,product_slug:e.product_slug,cost:e.raw_price,currency:e.currency_code}}},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return c},lZ:function(){return s},_W:function(){return l},Yt:function(){return d}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function a(){return o}function c(e){return a().has(e)}function s(e,t){var n=a();c(e)?(i('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(i('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=a(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));i(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function l(){var e=this.getAttribute("src");i('Handling successful request for "'.concat(e,'"')),u(e),this.onload=null}function d(){var e=this.getAttribute("src");i('Handling failed request for "'.concat(e,'"')),u(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return c},k:function(){return s}});var r=n(8049),i=n.n(r),o=n(3340),a=i()("lib/load-script/dom-operations");function c(e){a('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function s(e){a("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),a=n(5606);i()("package/load-script");function c(e,t){if(!(0,o.hg)(e)&&(0,a.k)((0,a.C)(e)),"function"!=typeof t)return new Promise((function(t,n){(0,o.lZ)(e,(function(e){null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},9211:function(e,t,n){"use strict";n.d(t,{xE:function(){return g},aW:function(){return h},b4:function(){return v}});var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=(n(3804),n(2779)),u=n.n(s),l=n(7997),d=n(9215),p=n(5869),f=n(1100),m=n(2481);n(19);t.ZP=function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,o="";return!0===i&&(o="is-sticky"),!1===i&&(o="no-sticky"),(0,c.createElement)("div",{className:u()("action-buttons",t,o)},n)};var g=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]),__=(0,d.QT)().__;return(0,c.createElement)(l.Button,i()({className:u()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||__("Go back","full-site-editing"))},h=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]),__=(0,d.QT)().__;return(0,c.createElement)(l.Button,i()({className:u()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||__("Continue","full-site-editing"))},v=function(e){var t=e.className,n=e.children,r=e.arrow,o=void 0===r?"right":r,s=a()(e,["className","children","arrow"]);return(0,c.createElement)(l.Button,i()({className:u()("action_buttons__button action-buttons__arrow action-buttons__arrow--".concat(o),t)},s),"left"===o&&(0,c.createElement)(p.Z,{icon:f.Z}),n,"right"===o&&(0,c.createElement)(p.Z,{icon:m.Z}))}},5915:function(e,t,n){"use strict";n.d(t,{b:function(){return a},D:function(){return c}});var r=n(3804),i=n(2779),o=n.n(i),a=(n(9662),function(e){var t=e.className,n=e.children,i=e.tagName,a=void 0===i?"h1":i;return r.createElement(a,{className:o()("onboarding-title",t)},n)}),c=function(e){var t=e.className,n=e.children,i=e.tagName,a=void 0===i?"h2":i;return r.createElement(a,{className:o()("onboarding-subtitle",t)},n)}},1201:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(5707),i=n(9255),o=function(e,t){var n=(0,r.useSelect)((function(n){var r=n(i.F).getSupportedPlans(e),o=r.map((function(e){return n(i.F).getPlanProduct(e.periodAgnosticSlug,t)})).map((function(e){return null==e?void 0:e.annualDiscount})).filter((function(e){return!!e}));return{supportedPlans:r,annualDiscounts:o}}));return{supportedPlans:n.supportedPlans,maxAnnualDiscount:n.annualDiscounts.reduce((function(e,t){return Math.max(e,t)}),0)}}},130:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i),a=n(9215),c=n(3163),s=n(9211),u=n(5707),l=n(373),d=n(9255),p=(n(9117),(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})));t.Z=function(e){var t,n=e.slug,i=e.name,f=e.description,m=e.features,g=e.billingPeriod,h=e.domain,v=e.badge,y=e.isFree,b=void 0!==y&&y,_=e.isOpen,E=void 0!==_&&_,S=e.isPrimary,w=void 0!==S&&S,C=e.onSelect,x=e.onPickDomainClick,P=e.onToggle,k=e.disabledLabel,__=(0,a.QT)().__,N=(0,u.useSelect)((function(e){return e(d.F).getPlanProduct(n,g)})),A=function(){!k&&(null==P||P(n,!E))},O=__("billed annually","full-site-editing"),L=__("per month, billed monthly","full-site-editing");return(0,r.createElement)("div",{className:o()("plans-accordion-item",{"is-open":E,"is-primary":w,"has-badge":!!v,"is-disabled":!!k})},v&&(0,r.createElement)("div",{className:"plans-accordion-item__badge"},(0,r.createElement)("span",null,v)),(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:A,onKeyDown:function(e){return 32===e.keyCode&&A()},className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},i),(0,r.createElement)("div",{className:"plans-accordion-item__description"},f)),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:o()("plans-accordion-item__price-amount",{"is-loading":!(null!=N&&N.price)})},(null==N?void 0:N.price)||" ",(null==N?void 0:N.price)&&(0,r.createElement)("span",null,__("/mo","full-site-editing"))),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},b&&__("free forever","full-site-editing"),!b&&("ANNUALLY"===g?O:L)),!b&&(0,r.createElement)("div",{className:o()("plans-accordion-item__price-discount",{"plans-accordion-item__price-discount--disabled":"ANNUALLY"!==g})},(0,c.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:null!==(t=null==N?void 0:N.annualDiscount)&&void 0!==t?t:0}))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},k),!E&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},p)),(0,r.createElement)("div",{className:o()("plans-accordion-item__actions",{"plans-accordion-item__actions--paid-plan-margin":!b}),hidden:!E},(0,r.createElement)(s.aW,{"data-e2e-button":b?"freePlan":"paidPlan",onClick:function(){C(null==N?void 0:N.productId)}},__("Select","full-site-editing"))),(0,r.createElement)(l.Z,{features:m,billingPeriod:g,domain:h,isFree:b,isOpen:E,onPickDomain:x,multiColumn:!0}))))}},4416:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i),a=n(9211),c=n(7891),s=(n(9117),(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})));t.Z=function(e){var t=e.isOpen,n=e.isPrimary;return(0,r.createElement)("div",{className:o()("plans-accordion-item",{"is-open":t,"is-primary":n})},(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__description"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},s)),(0,r.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},(0,r.createElement)(a.aW,{disabled:!0},(0,r.createElement)("span",null,""))),(0,r.createElement)(c.Z,{isOpen:t,multiColumn:!0}))))}},222:function(e,t,n){"use strict";var r=n(5182),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n(5707),l=n(9215),d=n(7997),p=n(5869),f=n(130),m=n(4416),g=n(9255),h=n(1201),v=(n(3777),(0,c.createElement)(d.SVG,{viewBox:"0 0 24 24"},(0,c.createElement)(d.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})));t.Z=function(e){var t,n,r=e.selectedFeatures,o=void 0===r?[]:r,y=e.selectedPlanProductId,b=e.onPlanSelect,_=e.onPickDomainClick,E=e.currentDomain,S=e.disabledPlans,w=e.locale,C=e.billingPeriod,__=(0,l.QT)().__,x=(0,h.N)(w,C).supportedPlans,P=!(null!=x&&x.length),k=(0,u.useSelect)((function(e){var t=e(g.F);return{popularPlan:t.getDefaultPaidPlan(w),getPlanProduct:t.getPlanProduct}})),N=k.popularPlan,A=k.getPlanProduct,O=(0,u.useSelect)((function(e){return e(g.J).getRecommendedPlanSlug(o)})),L=(0,u.useSelect)((function(e){return e(g.F).getPlanByPeriodAgnosticSlug(O,w)})),T=L||N,I=__("Recommended for you","full-site-editing"),D=__("Popular","full-site-editing"),F=x.filter((function(e){return e.periodAgnosticSlug!==(null==T?void 0:T.periodAgnosticSlug)})),R=[null==T?void 0:T.periodAgnosticSlug],Z=(0,s.useState)(R),j=a()(Z,2),M=j[0],B=j[1],U=!P&&M.length>=x.length,V=function(e,t){B(t?[].concat(i()(M),[e]):M.filter((function(t){return t!==e})))},z=__("Collapse all plans","full-site-editing"),H=__("Show all plans","full-site-editing");return(0,c.createElement)("div",{className:"plans-accordion"},(0,c.createElement)("div",{className:"plans-accordion__plan-item-group"},P?(0,c.createElement)(m.Z,{isOpen:!0,isPrimary:!0}):T&&(0,c.createElement)(c.Fragment,null,L&&(0,c.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,c.createElement)(p.Z,{icon:v,size:16}),(0,c.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,c.createElement)(f.Z,{key:T.periodAgnosticSlug,slug:T.periodAgnosticSlug,name:null==T?void 0:T.title.toString(),description:null==T?void 0:T.description.toString(),features:null!==(t=T.features)&&void 0!==t?t:[],billingPeriod:C,domain:E,badge:L?I:D,isFree:T.isFree,isOpen:!0,isPrimary:!0,isSelected:!!y&&y===(null===(n=A(T.periodAgnosticSlug,C))||void 0===n?void 0:n.productId),onSelect:b,onPickDomainClick:_}))),(0,c.createElement)("div",{className:"plans-accordion__actions"},(0,c.createElement)(d.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){B(U?R:x.map((function(e){return e.periodAgnosticSlug})))},isLink:!0},U?z:H)),(0,c.createElement)("div",{className:"plans-accordion__plan-item-group"},P?[1,2,3,4].map((function(e){return(0,c.createElement)(m.Z,{key:e})})):F.map((function(e){var t,n;return(0,c.createElement)(f.Z,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],billingPeriod:C,domain:E,isFree:e.isFree,isOpen:M.indexOf(e.periodAgnosticSlug)>-1&&!(null!=S&&S[e.periodAgnosticSlug]),isSelected:!!y&&y===(null===(n=A(e.periodAgnosticSlug,C))||void 0===n?void 0:n.productId),onSelect:b,onPickDomainClick:_,onToggle:V,disabledLabel:null==S?void 0:S[e.periodAgnosticSlug]})}))))}},4689:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i),a=n(9215),c=n(5707),s=n(7997),u=n(5869),l=n(9806),d=n(8565),p=n(9255),f=(n(3062),(0,r.createElement)(u.Z,{icon:l.Z,size:25})),m=(0,r.createElement)(u.Z,{icon:d.Z,size:25});t.Z=function(e){var t=e.onSelect,n=e.locale,i=e.billingPeriod,u=(0,a.QT)(),__=u.__,l=u.hasTranslation,d=(0,c.useSelect)((function(e){var t=e(p.F),r=t.getPlanProduct,o=t.getFeatures,a=t.getFeaturesByType,c=(0,t.getSupportedPlans)(n),s=c.map((function(e){return r(e.periodAgnosticSlug,i)}));return{supportedPlans:c,planProducts:s,features:o(n),featuresByType:a(n)}})),g=d.supportedPlans,h=d.planProducts,v=d.features,y=d.featuresByType,b=!(null!=g&&g.length),_=[1,2,3,4,5],E=__("Monthly price (billed yearly)","full-site-editing"),S=__("Monthly subscription (billed yearly)","full-site-editing"),w="en"===n||null!=l&&l("Monthly price (billed yearly)","full-site-editing")?E:S,C=__("Monthly subscription","full-site-editing"),x=__("Included with annual plans","full-site-editing"),P=__("Only included with annual plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-details"},(0,r.createElement)("table",{className:"plans-details__table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",null,__("Feature","full-site-editing")),b?_.map((function(e){return(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},""))})):g.map((function(e){return(0,r.createElement)("th",{key:e.periodAgnosticSlug},e.title)})))),b?(0,r.createElement)("tbody",null,_.map((function(e,t){return(0,r.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),_.map((function(e){return(0,r.createElement)("td",{key:e})})))}))):y.map((function(e){var t;return(0,r.createElement)("tbody",{key:e.id},e.name&&(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return(0,r.createElement)("tr",{className:o()("plans-details__feature-row",{"plans-details__feature-row--enabled":v[e].requiresAnnuallyBilledPlan&&"ANNUALLY"===i,"plans-details__feature-row--disabled":v[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==i}),key:t},(0,r.createElement)("th",null,v[e].requiresAnnuallyBilledPlan&&(0,r.createElement)("span",{className:"plans-details__feature-annual-nudge","aria-label":"ANNUALLY"===i?x:P},__("Included with annual plans","full-site-editing")),(0,r.createElement)("span",null,v[e].name)),g.map((function(t,n){var o;return"storage"===e?(0,r.createElement)("td",{key:n},t.storage):(0,r.createElement)("td",{key:n},null!==(o=t.featuresSlugs)&&void 0!==o&&o[e]?(0,r.createElement)(r.Fragment,null,v[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==i?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing")),m):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),f)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))})))})))})),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,r.createElement)("th",null,"ANNUALLY"===i?w:C),b?_.map((function(e){return(0,r.createElement)("td",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},""))})):g.map((function(e,t){var n;return(0,r.createElement)("td",{key:e.periodAgnosticSlug},null===(n=h[t])||void 0===n?void 0:n.price)}))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,r.createElement)("th",null),b?_.map((function(e){return(0,r.createElement)("td",{key:e},(0,r.createElement)(s.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):g.map((function(e,n){return(0,r.createElement)("td",{key:e.periodAgnosticSlug},(0,r.createElement)(s.Button,{className:"plans-details__select-button",onClick:function(){var e;t(null===(e=h[n])||void 0===e?void 0:e.productId)},isPrimary:!0},(0,r.createElement)("span",null,__("Select","full-site-editing"))))}))))))}},373:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(3027),a=(n(3804),n(2779)),c=n.n(a),s=n(7997),u=n(5869),l=n(9806),d=n(8565),p=n(9215),f=(n(8173),function(e){var t=e.className;return(0,o.createElement)(u.Z,{className:t,icon:l.Z,size:18})}),m=function(e){var t=e.className;return(0,o.createElement)(u.Z,{className:t,icon:d.Z,size:18})},g=function(e){var t=e.children,n=e.className;return(0,o.createElement)("span",{className:n},t)},h=function(e){var t=e.billingPeriod,__=e.__,n=__("Included with annual plans","full-site-editing"),r=__("Only included with annual plans","full-site-editing");return(0,o.createElement)("span",{className:"plans-feature-list__item-annual-nudge","aria-label":"ANNUALLY"===t?n:r},n)};var v=function(e,t){var n=e.bulletIcon,r=e.textNode,i=e.requiresAnnuallyBilledPlan,a=e.contentWrapperNode,s=void 0===a?g:a,u=e.listItemExtraClassName,l=e.billingPeriod,__=(0,p.QT)().__;return(0,o.createElement)("li",{key:t,className:c()("plans-feature-list__item",{"plans-feature-list__item--requires-annual-enabled":i&&"ANNUALLY"===l,"plans-feature-list__item--requires-annual-disabled":i&&"ANNUALLY"!==l},u)},(0,o.createElement)(s,{className:"plans-feature-list__item-content-wrapper"},(0,o.createElement)(n,{className:"plans-feature-list__item-bullet-icon"}),(0,o.createElement)("span",{className:"plans-feature-list__item-text"},i&&(0,o.createElement)(h,{billingPeriod:l,__:__}),(0,o.createElement)("span",{className:"plans-feature-list__item-description"},r))))};t.Z=function(e){var t=e.features,n=e.domain,r=e.billingPeriod,a=e.isFree,u=void 0!==a&&a,l=e.isOpen,d=void 0!==l&&l,g=e.onPickDomain,h=e.disabledLabel,y=e.multiColumn,b=void 0!==y&&y,__=(0,p.QT)().__,_=function(e,t,n,__){var r="plans-feature-list__item-content-wrapper--domain-button";return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:c()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:m,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:c()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:m,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},PAID_DOMAIN:{FREE_PLAN:{wrapperClassName:c()(r,"is-unavailable"),bulletIcon:m,requiresAnnuallyBilledPlan:!1,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{wrapperClassName:r,bulletIcon:"ANNUALLY"===n?f:m,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(u,n,r,__),E=[];return h?E.push({bulletIcon:m,textNode:h,requiresAnnuallyBilledPlan:!1,listItemExtraClassName:"plans-feature-list__item--disabled-message"}):_&&E.push({bulletIcon:_.bulletIcon,textNode:_.domainMessage,requiresAnnuallyBilledPlan:_.requiresAnnuallyBilledPlan,contentWrapperNode:function(e){var t=e.children,n=e.className;return(0,o.createElement)(s.Button,{className:c()(_.wrapperClassName,n),onClick:g,isLink:!0},t)}}),t.forEach((function(e){var t=e.name,n=e.requiresAnnuallyBilledPlan;return E.push({bulletIcon:n&&"MONTHLY"===r?m:f,textNode:t,requiresAnnuallyBilledPlan:n})})),(0,o.createElement)("div",{className:"plans-feature-list",hidden:!d},(0,o.createElement)("ul",{className:c()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":b})},E.map((function(e,t){return(0,o.createElement)(v,i()({},e,{billingPeriod:r,key:t}))}))))}},7891:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);n(8173);t.Z=function(e){var t=e.isOpen,n=void 0!==t&&t,i=e.multiColumn,a=void 0!==i&&i,c=Array.from(Array(10).keys());return(0,r.createElement)("div",{className:"plans-feature-list",hidden:!n},(0,r.createElement)("ul",{className:o()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":a})},c.map((function(e){return(0,r.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,r.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))}},5315:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(5707),s=n(9215),u=n(5915),l=n(8049),d=n.n(l),p=n(6795),f=n(222),m=n(4689),g=n(1954),h=n(1201),v=n(9255),y=(n(7638),d()("plans-grid"));t.Z=function(e){var t=e.header,n=e.selectedFeatures,r=e.currentPlanProductId,l=e.currentDomain,d=e.onPlanSelect,b=e.onPickDomainClick,_=e.disabledPlans,E=e.isAccordion,S=e.locale,w=e.showPlanTaglines,C=void 0!==w&&w,x=e.CTAVariation,P=void 0===x?"NORMAL":x,k=e.popularBadgeVariation,N=void 0===k?"ON_TOP":k,A=e.customTagLines,O=e.hidePlansComparison,L=void 0!==O&&O,T=e.defaultAllPlansExpanded,I=void 0!==T&&T,D=e.onBillingPeriodChange,__=(0,s.QT)().__,F=(0,c.useSelect)((function(e){var t;return null===(t=e(v.F).getPlanProductById(r))||void 0===t?void 0:t.billingPeriod})),R=a.useState(F||"ANNUALLY"),Z=i()(R,2),j=Z[0],M=Z[1];a.useEffect((function(){D&&D(j)}),[j,D]);var B=(0,h.N)(S,j).maxAnnualDiscount;return E&&y("PlansGrid accordion version is active"),(0,o.createElement)("div",{className:"plans-grid"},t&&(0,o.createElement)("div",{className:"plans-grid__header"},t),(0,o.createElement)(g.Z,{intervalType:j,onChange:M,maxMonthlyDiscountPercentage:B,className:"plans-grid__toggle"}),(0,o.createElement)("div",{className:"plans-grid__table"},(0,o.createElement)("div",{className:"plans-grid__table-container"},E?(0,o.createElement)(f.Z,{selectedFeatures:n,selectedPlanProductId:r,onPlanSelect:d,currentDomain:l,onPickDomainClick:b,disabledPlans:_,locale:S,billingPeriod:j}):(0,o.createElement)(p.Z,{popularBadgeVariation:N,CTAVariation:P,selectedPlanProductId:r,onPlanSelect:d,customTagLines:A,currentDomain:l,onPickDomainClick:b,disabledPlans:_,locale:S,showTaglines:C,defaultAllPlansExpanded:I,billingPeriod:j}))),!L&&(0,o.createElement)("div",{className:"plans-grid__details"},(0,o.createElement)("div",{className:"plans-grid__details-heading"},(0,o.createElement)(u.b,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,o.createElement)("div",{className:"plans-grid__details-container"},(0,o.createElement)(m.Z,{onSelect:d,locale:S,billingPeriod:j}))))}},1954:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9215)),o=n(3163),a=n(7997),c=n(2779),s=n.n(c),u=n(5532),l=(n(4151),function(e){var t=e.children,n={desktop:"middle right",mobile:"bottom center"};return(0,r.createElement)(r.Fragment,null,Object.keys(n).map((function(e){return(0,r.createElement)(a.Popover,{key:e,className:s()("plans-interval-toggle__popover","plans-interval-toggle__popover--".concat(e)),position:n[e],noArrow:!1},t)})))});t.Z=function(e){var t=e.onChange,n=e.intervalType,a=e.maxMonthlyDiscountPercentage,c=e.className,d=void 0===c?"":c,__=(0,i.QT)().__;return(0,r.createElement)("div",{className:s()("plans-interval-toggle",{"plans-interval-toggle--monthly":"MONTHLY"===n},d)},(0,r.createElement)(u.Z,null,(0,r.createElement)(u.Z.Item,{selected:"MONTHLY"===n,onClick:function(){return t("MONTHLY")}},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},__("Pay monthly","full-site-editing"))),(0,r.createElement)(u.Z.Item,{selected:"ANNUALLY"===n,onClick:function(){return t("ANNUALLY")}},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},__("Pay annually","full-site-editing")),"MONTHLY"===n&&a&&(0,r.createElement)(l,null,(0,o.sprintf)(__("Save up to %(maxDiscount)d%% by paying annually and get a free domain for one year","full-site-editing"),{maxDiscount:a})))))}},6795:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(5707),s=n(2893),u=n(1201),l=n(9255);n(8287);t.Z=function(e){var t=e.selectedPlanProductId,n=e.onPlanSelect,r=e.onPickDomainClick,d=e.currentDomain,p=e.disabledPlans,f=e.locale,m=e.billingPeriod,g=e.showTaglines,h=void 0!==g&&g,v=e.CTAVariation,y=void 0===v?"NORMAL":v,b=e.popularBadgeVariation,_=void 0===b?"ON_TOP":b,E=e.customTagLines,S=e.defaultAllPlansExpanded,w=void 0!==S&&S,C=(0,u.N)(f,m).supportedPlans,x=(0,a.useState)(w),P=i()(x,2),k=P[0],N=P[1],A=(0,c.useSelect)((function(e){return e(l.F).getPlanProduct}));return(0,o.createElement)("div",{className:"plans-table"},C.filter((function(e){return!!e})).map((function(e){var i,a,c;return(0,o.createElement)(s.Z,{popularBadgeVariation:_,allPlansExpanded:k,key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,domain:d,tagline:null!==(i=h&&(null==E?void 0:E[e.periodAgnosticSlug]))&&void 0!==i?i:e.description,CTAVariation:y,features:null!==(a=e.features)&&void 0!==a?a:[],billingPeriod:m,isPopular:e.isPopular,isFree:e.isFree,name:null==e?void 0:e.title.toString(),isSelected:!!t&&t===(null===(c=A(e.periodAgnosticSlug,m))||void 0===c?void 0:c.productId),onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return N((function(e){return!e}))},disabledLabel:null==p?void 0:p[e.periodAgnosticSlug]})})))}},2893:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(2779),s=n.n(c),u=n(7997),l=n(1417),d=n(3163),p=n(9215),f=n(5707),m=n(5869),g=n(9806),h=n(373),v=n(9255),y=(0,o.createElement)(m.Z,{icon:g.Z,size:17}),b=(0,o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=function(e){var t,n=e.slug,r=e.name,c=e.tagline,m=e.isPopular,g=void 0!==m&&m,_=e.isFree,E=void 0!==_&&_,S=e.domain,w=e.features,C=e.billingPeriod,x=e.onSelect,P=e.onPickDomainClick,k=e.onToggleExpandAll,N=e.allPlansExpanded,A=e.disabledLabel,O=e.CTAVariation,L=void 0===O?"NORMAL":O,T=e.popularBadgeVariation,I=void 0===T?"ON_TOP":T,D=e.isSelected,__=(0,p.QT)().__,F=(0,f.useSelect)((function(e){return e(v.F).getPlanProduct(n,C)})),R=a.useState(!1),Z=i()(R,2),j=Z[0],M=Z[1],B=(0,l.useViewportMatch)("mobile",">=");a.useEffect((function(){M(N)}),[N]);var U=N||B||g||j,V=__("Choose","full-site-editing"),z=__("Current Selection","full-site-editing"),H=__("Select %s","full-site-editing"),$=__("billed annually","full-site-editing"),G=__("per month, billed monthly","full-site-editing"),q=__("Collapse all plans","full-site-editing"),W=__("Expand all plans","full-site-editing");return(0,o.createElement)("div",{className:s()("plan-item",{"is-popular":g,"is-open":U,"badge-next-to-name":"NEXT_TO_NAME"===I})},g&&"ON_TOP"===I&&(0,o.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,o.createElement)("div",{className:s()("plan-item__viewport",{"is-popular":g})},(0,o.createElement)("div",{className:"plan-item__details"},(0,o.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return M((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&M((function(e){return!e}))},className:"plan-item__summary"},(0,o.createElement)("div",{className:s()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===I})},(0,o.createElement)("div",{className:"plan-item__name"},r),g&&"NEXT_TO_NAME"===I&&(0,o.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),c&&(0,o.createElement)("p",{className:"plan-item__tagline"},c),(0,o.createElement)("div",{className:"plan-item__price"},(0,o.createElement)("div",{className:s()("plan-item__price-amount",{"is-loading":!(null!=F&&F.price)})},(null==F?void 0:F.price)||" ")),!U&&(0,o.createElement)("div",{className:"plan-item__dropdown-chevron"},b)),(0,o.createElement)("div",{hidden:!U},(0,o.createElement)("div",{className:"plan-item__price-note"},E&&__("free forever","full-site-editing"),!E&&("ANNUALLY"===C?$:G)),(0,o.createElement)("div",{className:s()("plan-item__price-discount",{"plan-item__price-discount--disabled":"ANNUALLY"!==C,"plan-item__price-discount--hidden":E}),"aria-hidden":E?"true":"false"},(0,d.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:null!==(t=null==F?void 0:F.annualDiscount)&&void 0!==t?t:0})),(0,o.createElement)("div",{className:"plan-item__actions"},"NORMAL"===L?(0,o.createElement)(u.Button,{className:"plan-item__select-button",onClick:function(){x(null==F?void 0:F.productId)},isPrimary:!0,disabled:!!A},(0,o.createElement)("span",null,null!=A?A:V)):(0,o.createElement)(u.Button,{className:s()("plan-item__select-button full-width",{"is-selected":D,"is-popular":g}),onClick:function(){x(null==F?void 0:F.productId)},isPrimary:g,disabled:!!A},(0,o.createElement)("span",null,null!=A?A:(0,o.createElement)(o.Fragment,null,D?y:"",D?(0,d.sprintf)(z,r):(0,d.sprintf)(H,r))))),(0,o.createElement)(h.Z,{features:w,domain:S,isFree:E,isOpen:U,onPickDomain:P,disabledLabel:A&&(0,d.sprintf)(__("%s is not included","full-site-editing"),null==S?void 0:S.domain_name),billingPeriod:C})))),g&&!B&&(0,o.createElement)(u.Button,{onClick:k,className:"plan-item__mobile-expand-all-plans",isLink:!0},N?q:W))}},5532:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(85),i=n.n(r),o=n(5198),a=n.n(o),c=n(270),s=n.n(c),u=n(4564),l=n.n(u),d=n(1260),p=n.n(d),f=n(3027),m=n(3980),g=n.n(m),h=n(3804),v=n.n(h),y=n(2779),b=n.n(y),_=n(8268),E=(n(4070),function(e){s()(n,e);var t=l()(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e={"is-compact":this.props.compact,"is-primary":this.props.primary};return(0,f.createElement)("ul",{className:b()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.props.children)}}]),n}(v().Component));p()(E,"Item",_.Z),p()(E,"propTypes",{className:g().string,compact:g().bool,primary:g().bool,style:g().object,children:g().node.isRequired})},8268:function(e,t,n){"use strict";var r=n(85),i=n.n(r),o=n(5198),a=n.n(o),c=n(8111),s=n.n(c),u=n(270),l=n.n(u),d=n(4564),p=n.n(d),f=n(1260),m=n.n(f),g=n(3027),h=n(3980),v=n.n(h),y=n(3804),b=n.n(y),_=n(2779),E=n.n(_),S=function(e){l()(n,e);var t=p()(n);function n(){var e;i()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),m()(s()(e),"handleKeyEvent",(function(e){switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}})),e}return a()(n,[{key:"render",value:function(){var e=E()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=E()("segmented-control__link",m()({},"item-index-".concat(this.props.index),null!=this.props.index));return(0,g.createElement)("li",{className:e},(0,g.createElement)("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},(0,g.createElement)("span",{className:"segmented-control__text"},this.props.children)))}}]),n}(b().Component);m()(S,"propTypes",{children:v().node.isRequired,path:v().string,selected:v().bool,title:v().string,value:v().string,onClick:v().func,index:v().number}),m()(S,"defaultProps",{selected:!1}),t.Z=S},9255:function(e,t,n){"use strict";n.d(t,{F:function(){return o},J:function(){return a}});var r=n(9734),i=n(182),o=r.z2(),a=i.z()},9215:function(e,t,n){"use strict";n.d(t,{QT:function(){return m}});var r=n(5182),i=n.n(r),o=n(8527),a=n.n(o),c=(n(1068),n(3027)),s=n(3804),u=n(3163),l=n(1417),d=n(5799),p={__:u.__,_n:u._n,_nx:u._nx,_x:u._x,isRTL:u.isRTL,setLocaleData:u.setLocaleData},f=s.createContext(h()),m=function(){return s.useContext(f)};(0,l.createHigherOrderComponent)((function(e){return function(t){var n=m();return(0,c.createElement)(e,a()({},n,t))}}),"withI18n");function g(e,t,n){var r=e[t],o=n.hasFilter,a=n.applyFilters;return o("preTranslation")||o("postTranslation")?function(){for(var e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];var s=a("preTranslation",o,t,n);return a("postTranslation",r.apply(void 0,i()(s)),s,t,n)}:r}function h(e,t){var n=e?(0,u.createI18n)(e):p,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:(0,d.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:g(n,"__",c),_n:g(n,"_n",c),_nx:g(n,"_nx",c),_x:g(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}},8552:function(e,t,n){"use strict";n.d(t,{Vw:function(){return E},sS:function(){return P}});var r,i=n(2278),o=n(2884),a=n.n(o),c=n(8650),s=n.n(c),u=n(8049),l=n.n(u)()("wpcom-proxy-request"),d="https://public-api.wordpress.com",p=window.location.protocol+"//"+window.location.host,f=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),m=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),g=null,h=!1,v={},y=!!window.ProgressEvent&&!!window.FormData;l('using "origin": %o',p);var b=function(e,t){var n=Object.assign({},e);l("request(%o)",n),g||x();var o=(0,i.Z)();n.callback=o,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=y,n.method=String(n.method||"GET").toUpperCase(),l("params object: %o",n);var a=new window.XMLHttpRequest;if(a.params=n,v[o]=a,"function"==typeof t){var c=!1,s=function(e){if(!c){c=!0;var n=e.error||e.err||e;l("error: ",n),l("headers: ",e.headers),t(n,null,e.headers)}};a.addEventListener("load",(function(e){if(!c){c=!0;var n=e.response||a.response;l("body: ",n),l("headers: ",e.headers),t(null,n,e.headers)}})),a.addEventListener("abort",s),a.addEventListener("error",s)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,h?S(n):(l("buffering API request since proxying <iframe> is not yet loaded"),r.push(n)),a},_=function(e,t){return"function"==typeof t?b(e,t):new Promise((function(t,n){b(e,(function(e,r){e?n(e):t(r)}))}))};function E(){return _({metaAPI:{accessAllUsersBlogs:!0}})}function S(e){l("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!m)return;for(var t=0;t<e.length;t++){var n=C(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),g.contentWindow.postMessage(f?JSON.stringify(e):e,d)}function w(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function C(e){return w(e)?e:"object"==typeof e&&w(e.fileContents)?e.fileContents:null}function x(){l("install()"),g&&(l("uninstall()"),window.removeEventListener("message",k),document.body.removeChild(g),h=!1,g=null),r=[],window.addEventListener("message",k),(g=document.createElement("iframe")).src=d+"/wp-admin/rest-proxy/?v=2.0#"+p,g.style.display="none",document.body.appendChild(g)}var P=function(){x()};function k(e){if(l("onmessage"),e.origin===d)if(e.source===g.contentWindow){var t=e.data;if(!t)return l("no `data`, bailing");if("ready"!==t){if(f&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){l('got "progress" event: %o',e);var t=v[e.callbackId];if(t){var n=new(s())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return l("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in v))return l("bailing, no matching request with callback: %o",n);var i,o=v[n],c=o.params,u=t[0],p=t[1],m=t[2];if(207===p||delete v[n],c.metaAPI?p="metaAPIupdated"===u?200:500:l("got %o status code for URL: %o",p,c.path),"object"==typeof m)if(m.status=p,i=m["Content-Type"],/^application[/]x-ndjson($|;)/.test(i))return void N(o,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),m);if(p&&2===Math.floor(p/100))!function(e,t,n){var r=new(s())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(o,u,m);else N(o,a()(c,p,u),m)}else!function(){if(l('proxy <iframe> "load" event'),h=!0,r){for(var e=0;e<r.length;e++)S(r[e]);r=null}}()}else l("ignoring message... iframe elements do not match");else l("ignoring message... %o !== %o",e.origin,d)}function N(e,t,n){var r=new(s())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}t.ZP=_},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var r=t.formatters[n];if("function"==typeof r){var o=i[u];e=r.call(a,o),i.splice(u,1),u--}return e})),t.formatArgs.call(a,i);var l=a.log||t.log;l.apply(a,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},7127:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3804),i=n(669);function o(e,t){return e===t}function a(e,t,n){var a=n&&n.equalityFn?n.equalityFn:o,c=(0,r.useState)(e),s=c[0],u=c[1],l=(0,i.Z)((0,r.useCallback)((function(e){return u(e)}),[]),t,n),d=l[0],p=l[1],f=(0,r.useRef)(e);return(0,r.useEffect)((function(){a(f.current,e)||(d(e),f.current=e)}),[e,d,a]),[s,p]}},669:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3804);function i(e,t,n){void 0===n&&(n={});var i=n.maxWait,o=(0,r.useRef)(null),a=(0,r.useRef)([]),c=n.leading,s=(0,r.useRef)(!1),u=(0,r.useRef)(null),l=(0,r.useRef)(!1),d=(0,r.useRef)(e);d.current=e;var p=(0,r.useCallback)((function(){clearTimeout(u.current),clearTimeout(o.current),o.current=null,a.current=[],u.current=null,s.current=!1}),[]);(0,r.useEffect)((function(){return function(){l.current=!0}}),[]);return[(0,r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(a.current=e,clearTimeout(u.current),!u.current&&c&&!s.current)return d.current.apply(d,e),void(s.current=!0);u.current=setTimeout((function(){p(),l.current||d.current.apply(d,e)}),t),i&&!o.current&&(o.current=setTimeout((function(){var e=a.current;p(),l.current||d.current.apply(null,e)}),i))}),[i,t,p,c]),p,function(){u.current&&(d.current.apply(null,a.current),p())}]}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var a=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),a({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();a((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},4024:function(e,t){"use strict";for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.Z=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},9771:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},6374:function(e,t,n){"use strict";var r=n(9771),i=n(4024);t.Z=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r.Z)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var c=0;c<16;++c)t[o+c]=a[c];return t||(0,i.Z)(a)}},4947:function(e,t){"use strict";for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.Z=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},4750:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},2278:function(e,t,n){"use strict";var r=n(4750),i=n(4947);t.Z=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r.Z)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var c=0;c<16;++c)t[o+c]=a[c];return t||(0,i.Z)(a)}},3804:function(e){"use strict";e.exports=window.React},8681:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},1205:function(e){"use strict";e.exports=window.lodash},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},9866:function(e){"use strict";e.exports=window.wp.dataControls},3613:function(e){"use strict";e.exports=window.wp.deprecated},3027:function(e){"use strict";e.exports=window.wp.element},5799:function(e){"use strict";e.exports=window.wp.hooks},3163:function(e){"use strict";e.exports=window.wp.i18n},1200:function(e){"use strict";e.exports=window.wp.plugins},2418:function(e){"use strict";e.exports=window.wp.primitives},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(7456)}());
|
16 |
*
|
17 |
* This source code is licensed under the MIT license found in the
|
18 |
* LICENSE file in the root directory of this source tree.
|
19 |
+
*/var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=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 E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case o:case c:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case h:case g:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||E(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===h},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===c},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===c||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=E},8570:function(e,t,n){"use strict";e.exports=n(6866)},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,c;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(c=this.data[e][a])&&c[o]?c[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},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},7456:function(e,t,n){"use strict";n.r(t);n(8318),n(7989)},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),c=n.n(a),s=n(5707),u=n(1200),l=n(5799),d=n(6357),p=n(849),f=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()})),r=n.isSidebarOpen,i=n.isAnchorFm,a=(0,s.useDispatch)(g.sC),u=a.closeSidebar,b=a.setSidebarFullscreen,_=a.unsetSidebarFullscreen;return c().useEffect((function(){window.innerWidth<782?b():_()}),[r,b,_]),c().useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,l.hasAction)(e)&&(0,l.doAction)(e,{hidden:r})}),[r]),r?(0,o.createElement)(p.Iw,{localeSlug:null!==(e=null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)&&void 0!==e?e:f.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:u,isLaunchImmediately:i}))):null}},(0,u.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(1260),i=n.n(r),o=n(3027),a=(n(3804),n(5707)),c=n(9215),s=n(8318),u=n(8374);n(3184);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,c.QT)().__,r=(0,a.useSelect)((function(e){var t=e(s.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),l=r.currentStep,d=r.LaunchStep,p=r.LaunchSequence,f=r.isStepCompleted,m=r.isFlowCompleted,g=(t={},i()(t,d.Name,__("Name your site","full-site-editing")),i()(t,d.Domain,__("Select a domain","full-site-editing")),i()(t,d.Plan,__("Select a plan","full-site-editing")),i()(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,a.useDispatch)(s.sC).setStep;return(0,o.createElement)("div",{className:"nux-launch-menu"},(0,o.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,o.createElement)("div",{className:"nux-launch-menu__item-group"},p.map((function(e){return(0,o.createElement)(u.Z,{key:e,title:g[e],isCompleted:f(e),isCurrent:e===l,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),c=n(2779),s=n.n(c),u=(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,c=e.isCurrent,l=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:s()("nux-launch-menu__item",{"is-current":c,"is-completed":n}),onClick:d,disabled:l,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:u,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(2954),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n.n(s),l=n(2779),d=n.n(l),p=n(5707),f=n(3163),m=n(7997),g=n(5869),h=n(1742),v=n(8565),y=n(6357),b=n(3357),_=n(849),E=n(8318),S=n(8398),w=n(2326),C=n(2526),__=(n(2270),f.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,r=u().useContext(y.Z).siteId,o=(0,p.useSelect)((function(e){return e(E.sC).getState()})),s=o.step,l=o.isSidebarFullscreen,f=u().useState(!1),x=a()(f,2),P=x[0],k=x[1],N=u().useState(!1),A=a()(N,2),O=A[0],L=A[1],T=(0,p.useDispatch)(E.j4).launchSite,I=(0,p.useDispatch)("core/editor").savePost,D=(0,_.bU)(),F=(0,p.useDispatch)(E.sC).setPlanProductId,R=(0,p.useSelect)((function(e){return e(E.Fs).getDefaultFreePlan(D)})),Z=u().useCallback((function(){T(r),k(!0)}),[T,k,r]);return u().useEffect((function(){n&&!P&&k(!0)}),[P,n]),u().useEffect((function(){var e=function(){var e=i()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!O&&null!=R&&R.productIds[0]&&(F(null==R?void 0:R.productIds[0]),L(!0),e(),Z())}),[n,O,Z,I,R,F]),(0,b.X)(),(0,c.createElement)(m.Modal,{open:!0,className:d()("nux-launch-modal","step-".concat(s),l?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},P?(0,c.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"nux-launch-modal-body"},(0,c.createElement)("div",{className:"nux-launch-modal-header"},(0,c.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,c.createElement)(g.Z,{icon:h.Z,size:36})),(0,c.createElement)(C.Z,null)),(0,c.createElement)(S.Z,{onSubmit:Z})),(0,c.createElement)("div",{className:"nux-launch-modal-aside"},(0,c.createElement)(w.Z,null)),(0,c.createElement)(m.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,c.createElement)("span",null,(0,c.createElement)(g.Z,{icon:v.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(9215),c=n(8318);n(7650);t.Z=function(){var __=(0,a.QT)().__,e=(0,i.useSelect)((function(e){var t=e(c.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,s=n.indexOf(t)+1,u=n.length,l=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),s,u);return(0,r.createElement)("div",{className:"nux-launch-progress"},l)}},2326:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(5707),a=n(5915),c=n(9211),s=n(6915),u=n(8318),__=(n(5767),i.__);t.Z=function(){var e=(0,o.useDispatch)(u.sC),t=e.setStep,n=e.unsetSidebarFullscreen,i=(0,o.useSelect)((function(e){return e(u.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)(c.ZP,{sticky:!0},(0,r.createElement)(c.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(7949);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(3163),a=n(7047),c=n(7356),s=n(5915),u=n(9211),l=n(6115),d=n(381),p=n(8318),f=n(780),m=n(5144),g=n(6956),h=n(1157),__=o.__;t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,o=(0,f.my)(),v=o.onDomainSelect,y=o.onExistingSubdomainSelect,b=o.currentDomain,_=(0,m.j)().siteSubdomain,E=(0,g.f)(),S=E.domainSearch,w=E.setDomainSearch,C=(0,i.useDispatch)(p.sC).confirmDomainSelection,x=function(){C(),null==n||n()};return(0,r.createElement)(d.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(s.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(s.D,null,__("Free for the first year with any paid plan.","full-site-editing"))),(0,r.createElement)(u.ZP,{sticky:!1},(0,r.createElement)(u.aW,{onClick:x,disabled:!S}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(a.ZP,{analyticsFlowId:h.OS,initialDomainSearch:S,onSetDomainSearch:w,onDomainSearchBlur:function(e){(0,l.jN)("calypso_newsite_domain_search_blur",{flow:h.OS,query:e,where:"editor_domain_modal"})},currentDomain:b||(0,c.n)(null==_?void 0:_.domain),existingSubdomain:(0,c.n)(null==_?void 0:_.domain),onDomainSelect:v,onExistingSubdomainSelect:y,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:document.documentElement.lang})),(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:x,disabled:!S}))))}},4502:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=(n(3804),n(2779)),c=n.n(a),s=n(50),u=n(3163),l=n(5707),d=n(7997),p=n(5869),f=n(9806),m=n(4557),g=n(5144),h=n(8463),v=n(6956),y=n(7498),b=n(5915),_=n(9211),E=n(7384),S=n(1806),w=n(7450),C=n(849),x=n(381),P=n(8318),__=(n(5862),u.__),k=(0,o.createElement)(p.Z,{icon:f.Z,size:17});t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,r=(0,l.useSelect)((function(e){var t=e(P.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),a=r.domain,p=r.LaunchStep,f=r.isStepCompleted,N=r.isFlowCompleted,A=r.planProductId,O=(0,C.bU)(),L=(0,l.useSelect)((function(e){return[e(P.Fs).getPlanByProductId(A,O),e(P.Fs).getPlanProductById(A)]})),T=i()(L,2),I=T[0],D=T[1],F=(0,m.Z)().title,R=(0,g.j)().siteSubdomain,Z=(0,h.V)(),j=(0,v.f)().domainSearch,M=(0,l.useDispatch)(P.sC).setStep,B=(0,y.Iu)(),U=(0,o.createElement)("div",{className:"nux-launch__summary-item"},(0,o.createElement)("p",null,__("Site","full-site-editing"),": ",F)),V=(0,o.createElement)("div",{className:"nux-launch__summary-item"},null!=a&&a.domain_name?(0,o.createElement)("p",null,__("Custom domain","full-site-editing"),": ",a.domain_name,"MONTHLY"===(null==D?void 0:D.billingPeriod)&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("br",null),(0,o.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,u.sprintf)(__("%s/year","full-site-editing"),a.cost)))):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==R?void 0:R.domain),(0,o.createElement)(d.Tip,null,j?(0,o.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,o.createElement)("span",{className:c()("nux-launch__summary-item__domain-name",{"is-loading":!Z})},(null==Z?void 0:Z.domain_name)||"loading-example.com"),Link:(0,o.createElement)(d.Button,{isLink:!0,onClick:function(){return M(p.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),H=__("per month, billed monthly","full-site-editing"),$=(0,o.createElement)("div",{className:"nux-launch__summary-item"},I&&D&&!I.isFree?(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",I.title),__("Plan subscription","full-site-editing"),": ",D.price," ","ANNUALLY"===D.billingPeriod?z:H):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,o.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,o.createElement)(d.Tip,null,(0,o.createInterpolateElement)((0,u.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,o.createElement)(d.Button,{isLink:!0,onClick:function(){return M(p.Plan)}})}))));return(0,o.createElement)(x.Z,null,(0,o.createElement)("div",{className:"nux-launch-step__header"},(0,o.createElement)("div",null,(0,o.createElement)(b.b,null,__("Launch your site","full-site-editing")),(0,o.createElement)(b.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,o.createElement)("div",{className:"nux-launch-step__body"},(0,o.createElement)(s.f6,{theme:E.Z},(0,o.createElement)(S._U,null,f(p.Plan)&&(0,o.createElement)(S.Bb,null,(0,o.createElement)(S.nb,{className:"nux-launch__feature-list"},(0,o.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,o.createElement)("ul",{className:"nux-launch__feature-item-group"},null==I?void 0:I.features.filter((function(e){return"ANNUALLY"===(null==D?void 0:D.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,o.createElement)("li",{key:t,className:"nux-launch__feature-item"},k," ",e.name)}))),(0,o.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,o.createElement)(d.Button,{isLink:!0,href:B("https://wordpress.com/help/contact",O),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,o.createElement)(S.r8,null,(0,o.createElement)(S.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:f(p.Name),goToThisStep:function(){return M(p.Name)},completeStepContent:U,stepId:"name",formStatus:w.PX.READY}),(0,o.createElement)(S.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:f(p.Domain),goToThisStep:function(){return M(p.Domain)},completeStepContent:V,stepId:"domain",formStatus:w.PX.READY}),(0,o.createElement)(S.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:f(p.Plan),goToThisStep:function(){return M(p.Plan)},completeStepContent:$,stepId:"plan",formStatus:w.PX.READY}),(0,o.createElement)(S.ds,null,(0,o.createElement)(d.Button,{isPrimary:!0,disabled:!N,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,o.createElement)("div",{className:"nux-launch-step__footer"},(0,o.createElement)(_.ZP,{sticky:!0},(0,o.createElement)(_.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),c=n(9211),s=n(381),u=n(4557),__=(n(9801),i.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,i=(0,u.Z)(),l=i.title,d=i.updateTitle,p=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)(c.ZP,{sticky:!1},(0,r.createElement)(c.aW,{onClick:p,disabled:!(null!=l&&l.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:p},(0,r.createElement)(o.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:l||"",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)(c.ZP,{sticky:!0},(0,r.createElement)(c.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(c.aW,{onClick:p,disabled:!(null!=l&&l.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(5315),c=n(5915),s=n(9211),u=n(3073),l=n(381),d=n(8318),__=(n(7496),o.__);t.Z=function(e){var t,n=e.onPrevStep,p=e.onNextStep,f=(0,i.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=f.domain,g=f.LaunchStep,h=f.selectedPlanProductId,v=(0,i.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,u.W)().selectedFeatures,E=m&&!m.is_free;return(0,r.createElement)(l.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(c.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(c.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==p||p()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:E?{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(1260),i=n.n(r),o=n(3027),a=n(3804),c=n.n(a),s=n(5707),u=n(958),l=n(9270),d=n(4524),p=n(4502),f=n(8318);n(63);t.Z=function(e){var t,n=e.onSubmit,r=(0,s.useSelect)((function(e){return e(f.sC).getState()})).step,a=(0,s.useSelect)((function(e){return e(f.sC).getLaunchStep()})),m=(0,s.useSelect)((function(e){return e(f.sC).getLaunchSequence()})),g=(0,s.useSelect)((function(e){return e(f.sC).getFirstIncompleteStep()})),h=(0,s.useDispatch)(f.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},i()(t,a.Name,u.Z),i()(t,a.Domain,l.Z),i()(t,a.Plan,d.Z),i()(t,a.Final,p.Z),t),E=m.indexOf(r),S=_[r];return c().useEffect((function(){g&&g!==a.Name&&v(g)}),[]),(0,o.createElement)(S,{onPrevStep:function(){var e=E-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=E+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 l},gQ:function(){return d},Rd:function(){return p}});var r=n(417),i=n.n(r),o=n(1260),a=n.n(o),c=n(5799),s=n(791),u=n(1157),l=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},d=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))},p=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0,p="a8c.wpcom-block-editor.openCheckoutModal",f=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=l().split("?")[0];if((0,c.hasAction)(p)&&f&&!r)(0,c.doAction)(p,{checkoutOnSuccessCallback:o,isFocusedLaunch:!0,redirectTo:(0,s.addQueryArgs)(m,a()({},u.nU,!0))});else{var g=(0,s.addQueryArgs)("/checkout/".concat(n),i()({},!r&&{redirect_to:"/home/".concat(n)}));d(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}});n(1068);var r,i=n(417),o=n.n(i),a=(n(5182),n(1205)),c=(n(3421),n(382)),s=n(4898),u=(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 d(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w2.js?1");var p=new c.EventEmitter;function f(e,t){if(t=t||{},(0,u.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,a.includes)(l,e)){if(r){var n=r(t);t=o()(o()({},t),n)}t=(0,a.omitBy)(t,a.isUndefined),(0,u.Z)('Recording event "%s" with actual props %o',e,t),d(["recordEvent",e,t]),p.emit("record-event",e,t)}else(0,u.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 c}});var r=n(6374),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,c=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:c})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function c(){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=n(8527),i=n.n(r),o=n(5182),a=n.n(o),c=n(2220),s=n.n(c),u=n(9976),l=n.n(u),d=n(3027),p=(n(3804),n(5393)),f=n(6654);function m(){var e=l()(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: theme.weights.normal;\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return m=function(){return e},e}var g=(0,p.Z)("button")(m(),(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"}),y,v,_,h,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),v,(function(e){return e.disabled?"not-allowed":"pointer"}),h,_,v,(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"}),y,b,b,y);function h(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 v(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 y(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 b(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 _(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,o=e.children,c=e.fullWidth,u=s()(e,["className","buttonType","isBusy","children","fullWidth"]),l=(0,f.Z)(["checkout-button"].concat(a()(n?["is-status-"+n]:[]),a()(r?["is-busy"]:[]),a()(t?[t]:[])));return(0,d.createElement)(g,i()({fullWidth:c,buttonType:n,className:l},u),o)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(85),i=n.n(r),o=n(5198),a=n.n(o),c=n(8111),s=n.n(c),u=n(270),l=n.n(u),d=n(4564),p=n.n(d),f=n(1260),m=n.n(f),g=n(9976),h=n.n(g),v=n(3027),y=n(3804),b=n.n(y),_=n(8049),E=n.n(_),S=n(5393);function w(){var e=h()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return w=function(){return e},e}var C=E()("composite-checkout:checkout-error-boundary"),x=S.Z.div(w()),P=function(e){l()(n,e);var t=p()(n);function n(e){var r;return i()(this,n),r=t.call(this,e),m()(s()(r),"state",{hasError:!1,currentError:null}),r}return a()(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);C("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,v.createElement)(k,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(b().Component);function k(e){var t=e.errorMessage;return(0,v.createElement)(x,null,t)}},7984:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=(n(3804),n(4790));t.Z=function(e){var t=e.value,n=e.onClick,r=e.ariaLabel,o=a()(e,["value","onClick","ariaLabel"]);return(0,c.createElement)(s.Z,i()({onClick:n,buttonType:"primary","aria-label":r},o),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return D},Bb:function(){return R},nb:function(){return Z},r8:function(){return j},ds:function(){return M},V9:function(){return z}});n(2954),n(1260),n(417),n(5182),n(1068);var r=n(9976),i=n.n(r),o=n(3027),a=(n(3804),n(8049)),c=n.n(a),s=n(3980),u=n.n(s),l=n(9215),d=n(6654),p=n(3246),f=n(4790),m=n(5197),g=n(7984),h=n(5393),v=n(7450);function y(){var e=i()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return y=function(){return e},e}function b(){var e=i()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return b=function(){return e},e}function _(){var e=i()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return _=function(){return e},e}function E(){var e=i()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return E=function(){return e},e}function S(){var e=i()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return S=function(){return e},e}function w(){var e=i()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return w=function(){return e},e}function C(){var e=i()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return C=function(){return e},e}function x(){var e=i()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return x=function(){return e},e}function P(){var e=i()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return P=function(){return e},e}function k(){var e=i()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return k=function(){return e},e}function N(){var e=i()(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"]);return N=function(){return e},e}function A(){var e=i()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return A=function(){return e},e}function O(){var e=i()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return O=function(){return e},e}function L(){var e=i()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"]);return L=function(){return e},e}function T(){var e=i()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return T=function(){return e},e}function I(){var e=i()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return I=function(){return e},e}c()("composite-checkout:checkout"),h.Z.div(I(),(function(e){return e.theme.colors.outline}));var D=h.Z.div(T(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),F=h.Z.div(L(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),R=function(e){var t=e.children,n=e.className;return(0,o.createElement)(F,{className:(0,d.Z)([n,"checkout__summary-area"])},t)},Z=h.Z.div(O(),(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 j=h.Z.div(A(),(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})),M=h.Z.div(N(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var B=h.Z.div(k(),(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})),U=h.Z.div(P(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),V=h.Z.div(x(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function z(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,a=e.validatingButtonText,c=e.nextStepButtonAriaLabel,s=e.validatingButtonAriaLabel,u=e.isStepActive,d=e.isStepComplete,f=e.className,m=e.stepNumber,h=e.stepId,y=e.titleContent,b=e.goToThisStep,_=e.goToNextStep,E=e.activeStepContent,S=e.formStatus,w=e.completeStepContent,C=e.onError,__=(0,l.QT)().__;return(0,o.createElement)(p.Z,{errorMessage:t||__("There was an error with this step."),onError:C},(0,o.createElement)(B,{className:f},(0,o.createElement)(q,{id:h,stepNumber:m,title:y,isActive:u,isComplete:d,onEdit:S===v.PX.READY&&d&&b&&!u?b:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,o.createElement)(U,{isVisible:u,className:"checkout-steps__step-content"},E,_&&u&&(0,o.createElement)(g.Z,{onClick:_,value:S===v.PX.VALIDATING?a||__("Please wait…"):i||__("Continue"),ariaLabel:S===v.PX.VALIDATING?s||__("Please wait…"):c||__("Continue to next step"),buttonType:"primary",disabled:S!==v.PX.READY,isBusy:S===v.PX.VALIDATING})),d&&w?(0,o.createElement)(V,{isVisible:!u,className:"checkout-steps__step-complete-content"},w):null))}z.propTypes={errorMessage:u().string,onError:u().func,editButtonAriaLabel:u().string,editButtonText:u().string,nextStepButtonText:u().string,nextStepButtonAriaLabel:u().string,isStepActive:u().bool.isRequired,isStepComplete:u().bool.isRequired,className:u().string,stepNumber:u().number,stepId:u().string.isRequired,titleContent:u().node.isRequired,goToThisStep:u().func,goToNextStep:u().func,activeStepContent:u().node,formStatus:u().string,completeStepContent:u().node,validatingButtonText:u().string,validatingButtonAriaLabel:u().string};var H=h.Z.span(C(),(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"})),$=h.Z.h2(w(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),G=(0,h.Z)(f.Z)(S());function q(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,a=e.isActive,c=e.isComplete,s=e.onEdit,u=e.editButtonText,p=e.editButtonAriaLabel,__=(0,l.QT)().__,f=!!s;return(0,o.createElement)($,{isComplete:c,isActive:a,className:(0,d.Z)([n,"checkout-step__header"])},(0,o.createElement)(X,{isComplete:c,isActive:a,id:t},r||null),(0,o.createElement)(H,{fullWidth:!f,isActive:a},i),f&&(0,o.createElement)(G,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:s,"aria-label":p||__("Edit this step")},u||__("Edit")))}var W=h.Z.div(E()),Y=h.Z.div(_(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),K=h.Z.div(b(),(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"})),Q=(0,h.Z)(K)(y(),(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,a=e.id,c=!n&&t;return(0,o.createElement)(W,{className:(0,d.Z)([r,"checkout-step__stepper"])},(0,o.createElement)(Y,{isComplete:c},(0,o.createElement)(K,{isComplete:c,isActive:n},i),(0,o.createElement)(Q,null,(0,o.createElement)(m.nQ,{id:a}))))}q.propTypes={id:u().string,className:u().string,stepNumber:u().number,title:u().node.isRequired,isActive:u().bool,isComplete:u().bool,editButtonText:u().string,editButtonAriaLabel:u().string,onEdit:u().func},X.propTypes={id:u().string,className:u().string,isComplete:u().bool,isActive:u().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return l}});var r=n(9976),i=n.n(r),o=n(3027),a=(n(3804),n(3980)),c=n.n(a),s=n(5393);function u(){var e=i()(["\n\tfill: #fff;\n"]);return u=function(){return e},e}function l(e){var t=e.className,n=e.id;return(0,o.createElement)(d,{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:c().string,id:c().string};var d=s.Z.svg(u())},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"}(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 c}});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()}},c=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),c=n(2269),s=n(267),u=n(3661),l=!1;function d(e){var t=e.vendor;return l||(l=!0,(0,r.registerStore)(i.L,{actions:a,controls:u.ai,reducer:o.Z,resolvers:c,selectors:(0,s.Z)(t)})),i.L}},3717:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=n(584),u=n(4211),l={state:s.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},d=(0,c.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]:l,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?a()(a()({},e),{},{state:s.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?a()(a()({},e),{},{state:s.r.Success,data:a()(a()({},e.data),{},i()({},(0,u.L)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?a()(a()({},e),{},{state:s.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?a()(a()({},e),{},i()({},t.domainName,t.availability)):e}});t.Z=d},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return p},getCategories:function(){return f},__internalGetDomainSuggestions:function(){return m}});var r=n(417),i=n.n(r),o=n(9126),a=n(1481),c=n(3600),s=n(3661),u=n(4211),l=regeneratorRuntime.mark(f),d=regeneratorRuntime.mark(m),p=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(t),"/is-available?is_cart_pre_check=true"),e.prev=1,e.next=4,(0,s.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,c.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,c.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function f(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=t.sent,t.abrupt("return",(0,c.receiveCategories)(e.body));case 4:case"end":return t.stop()}}),l)}function m(e){var t,n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.query){r.next=2;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)("Empty query"));case 2:return r.next=4,(0,c.fetchDomainSuggestions)();case 4:return r.prev=4,r.next=7,(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:t=r.sent,r.next=13;break;case 10:return r.prev=10,r.t0=r.catch(4),r.abrupt("return",(0,c.receiveDomainSuggestionsError)(r.t0.message||(0,a.Iu)("Error while fetching server response")));case 13:if(t&&""!==t){r.next=15;break}return r.abrupt("return",(0,c.receiveDomainSuggestionsError)((0,a.Iu)("Invalid response from the server")));case 15:return n=t.map((function(e){return i()(i()({},e),e.raw_price&&e.currency_code&&{cost:(0,u._)(e.raw_price,e.currency_code)})})),r.abrupt("return",(0,c.receiveDomainSuggestionsSuccess)(e,n));case 17:case"end":return r.stop()}}),d,null,[[4,10]])}},267:function(e,t,n){"use strict";var r=n(417),i=n.n(r),o=n(5182),a=n.n(o),c=n(5707),s=n(584),u=n(4211);t.Z=function(e){function t(t,n){return i()(i()({include_wordpressdotcom:n.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:e},n),{},{query:t.trim().toLocaleLowerCase()})}return{getCategories:function(e){return[].concat(a()(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),a()(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},getDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)(s.L).__internalGetDomainSuggestions(i)},getDomainState:function(e){return e.domainSuggestions.state},getDomainErrorMessage:function(e){return e.domainSuggestions.errorMessage},getDomainSuggestionVendor:function(){return e},isLoadingDomainSuggestions:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t(n,r);return(0,c.select)("core/data").isResolving(s.L,"__internalGetDomainSuggestions",[i])},__internalGetDomainSuggestions:function(e,t){return e.domainSuggestions.data[(0,u.L)(t)]},isAvailable:function(e,t){return e.availability[t]},getDomainAvailabilities:function(e){return e.availability}}}},4211:function(e,t,n){"use strict";n.d(t,{L:function(){return a},_:function(){return c}});var r=n(5695),i=n.n(r),o=n(1621),a=i();function c(e,t){return(0,o.ZP)(e,t,{stripZeros:!0})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return c},setSiteTitle:function(){return s},setDomain:function(){return u},unsetDomain:function(){return l},confirmDomainSelection:function(){return d},setDomainSearch:function(){return p},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 E},showSiteTitleStep:function(){return S},setModalDismissible:function(){return w},unsetModalDismissible:function(){return C},showModalTitle:function(){return x},hideModalTitle:function(){return P},enablePersistentSuccessView:function(){return k},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"}},c=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},u=function(e){return{type:"SET_DOMAIN",domain:e}},l=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},p=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},f=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,f(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"}},E=function(){return{type:"ENABLE_ANCHOR_FM"}},S=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},C=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},P=function(){return{type:"HIDE_MODAL_TITLE"}},k=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),c=n(6108),s=n(7092),u=n(594);(0,i.use)(i.plugins.persistence,u.Z);var l=!1;function d(){return l||(l=!0,(0,i.registerStore)(o.Ls,{actions:c,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 c},getState:function(){return s},hasPaidDomain:function(){return u},getSelectedDomain:function(){return l},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return p},isSelectedPlanPaid:function(){return f},hasSelectedDomain: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 E}});var r=n(5707),i=n(3610),o=n(9149),a=function(){return i.M},c=function(){return i.y},s=function(e){return e},u=function(e){return!!e.domain&&!e.domain.is_free},l=function(e){return e.domain},d=function(e){return e.planProductId},p=function(e){return e.planBillingPeriod},f=function(e){return void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!l(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).hasSelectedDomain()},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},E=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 c}});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}},c=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 c},hx:function(){return s},iL:function(){return u},xT:function(){return l},AX:function(){return d},bS:function(){return p},UB:function(){return f},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",c="premium",s="business",u="ecommerce",l=[o,a,c,s,u],d=c,p=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],f=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(p,f),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),c=n(7738),s=n(5261),u=n(3661),l=!1;function d(){return l||(l=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:u.ai,reducer:o.ZP,selectors:c})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),a=n.n(o),c=n(5707),s=(0,c.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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},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 a()(a()({},e),{},i()({},t.locale,t.plans));default:return e}}});t.ZP=s},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),c=n(3661),s=regeneratorRuntime.mark(g);function u(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(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 p(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function f(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:p(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,c=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:c.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?l(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?u(o):l(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,c=Math.round(100*(1-o/i));n.annualDiscount=c,r.annualDiscount=c}},n=0;n<a.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,i,u,l,p,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,c._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,c.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,u=d(i.features),l=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:f(e,u),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}))}})),p=m(t,l),s.next=13,(0,o.setPlans)(l,e);case 13:return s.next=15,(0,o.setPlanProducts)(p);case 15:return s.next=17,(0,o.setFeatures)(u,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 c},getFeaturesByType:function(){return s},getPlanByProductId:function(){return u},getPlanProductById:function(){return l},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return p},getDefaultFreePlan:function(){return f},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 E}});var r=n(5707),i=n(4703),o=n(3613),a=n.n(o),c=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:[]},u=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},l=function(e,t){if(t)return(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},p=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.AX}))},f=function(e,t){return(0,r.select)(i.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===i.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 a()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(i.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var o=(0,r.select)(i.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(o)return(0,r.select)(i.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===(null==o?void 0:o.periodAgnosticSlug)}))}},y=function(e,t,n){if(t&&n){var o=(0,r.select)(i.Ls).getPlansProducts();return t===i.TO?o.find((function(e){return e.periodAgnosticSlug===t})):o.find((function(e){return e.billingPeriod===n&&e.periodAgnosticSlug===t}))}},b=function(e,t){return t===i.iL},_=function(e,t){return t===i.TO},E=function(e,t){return t===i.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(417),i=n.n(r),o=n(2220),a=n.n(o),c=n(3661),s=n(2699);function u(e){var t=regeneratorRuntime.mark(f),n=regeneratorRuntime.mark(y),r=regeneratorRuntime.mark(b),o=regeneratorRuntime.mark(_),u=regeneratorRuntime.mark(E),l=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},p=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function f(n){var r,o,s,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,r=n.authToken,o=a()(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},u=i()(i()(i()({},s),o),{},{validate:!1}),t.next=8,(0,c._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:u,token:r});case 8:return l=t.sent,t.next=11,d(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,p(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,c._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,s.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,c._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()}}),r)}function _(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,c._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()}}),o)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,c._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()}}),u,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:m,fetchNewSite:l,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:p,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:f,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),c=n(7862),s=n(4309),u=n(3661),l=!1;function d(e){return l||(l=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:u.ai,reducer:o.ZP,resolvers:c,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(2220),i=n.n(r),o=n(4582),a=n.n(o),c=n(1260),s=n.n(c),u=n(417),l=n.n(u),d=n(5707),p=n(2699),f=(0,d.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}}),m=(0,d.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:f,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 l()(l()({},e),{},s()({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,r=(e[n],i()(e,[n].map(a())));return l()({},r)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?l()(l()({},e),{},s()({},t.siteId,l()(l()({},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?l()(l()({},e),{},s()({},t.siteId,{status:p.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:p.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?l()(l()({},e),{},s()({},t.siteId,{status:p.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?l()(l()({},e),{},s()({},t.siteId,t.domains)):e}});t.ZP=m},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return u}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),c=regeneratorRuntime.mark(u);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 u(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()}}),c,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return c},getNewSiteError:function(){return s},isFetchingSite:function(){return u},isFetchingSiteDetails:function(){return l},isNewSite:function(){return d},getSite:function(){return p},getSiteTitle:function(){return f},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},c=function(e){return e.newSite.data},s=function(e){return e.newSite.error},u=function(e){return e.newSite.isFetching},l=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},p=function(e,t){return e.sites[t]},f=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 c}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,c={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 u}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),c=n(335),s=!1;function u(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:c})),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 c},An:function(){return s},ai:function(){return u}});var r,i=n(2954),o=n.n(i),a=n(8552),c=function(e){return{type:"WPCOM_REQUEST",request:e}},s=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},u={WPCOM_REQUEST:function(e){var t=e.request;return(0,a.ZP)(t)},FETCH_AND_PARSE:(r=o()(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,a.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,a.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},3300:function(e,t,n){"use strict";n.d(t,{gB:function(){return i},au:function(){return o},F9:function(){return a},dP:function(){return c},GN:function(){return s},vn:function(){return u}});var r=n(8077),i=5,o=10,a=2,c=300,s=r.z({vendor:"variation2_front"}),u=["available","available_premium"]},4948:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=(n(3804),n(7997)),c=n(5869),s=n(3383),u=n(2779),l=n.n(u),d=n(9215),p=n(5707),f=n(3300);n(988);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,d.QT)().__,r=(0,o.useState)(!1),u=i()(r,2),m=u[0],g=u[1],h=function(e){g(!1),t(e)},v=(0,p.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,o.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,o.createElement)(a.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,o.createElement)("span",null,null!=n?n:y),(0,o.createElement)(c.Z,{icon:s.Z,size:16})),(0,o.createElement)("ul",{className:"domain-categories__item-group"},(0,o.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,o.createElement)(a.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,o.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,o.createElement)(a.Button,{onClick:function(){return h(t)}},r))}))))}},1052:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(9215)),o=function(){var e=(0,i.QT)(),__=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"))))}},7047:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n.n(a),s=n(5707),u=n(1205),l=n(7997),d=n(5869),p=n(7108),f=n(6115),m=n(584),g=n(9215),h=n(947),v=n(7226),y=n(4531),b=n(5241),_=n(1045),E=n(1071),S=n(4948),w=n(3300),C=n(1052),x=(n(8395),function(e){var t=e.groupItems,n=e.children;return t?(0,o.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,o.createElement)(a.Fragment,null,n)}),P=function(e){var t=e.children;return(0,o.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,r=e.showDomainCategories,k=e.onDomainSelect,N=e.onExistingSubdomainSelect,A=e.quantity,O=void 0===A?w.gB:A,L=e.quantityExpanded,T=void 0===L?w.au:L,I=e.onDomainSearchBlur,D=void 0===I?u.noop:I,F=e.analyticsFlowId,R=e.analyticsUiAlgo,Z=e.initialDomainSearch,j=void 0===Z?"":Z,M=e.onSetDomainSearch,B=void 0===M?u.noop:M,U=e.currentDomain,V=e.isCheckingDomainAvailability,z=e.existingSubdomain,H=e.segregateFreeAndPaid,$=void 0!==H&&H,G=e.showSearchField,q=void 0===G||G,W=e.itemType,Y=void 0===W?h.tr:W,K=e.locale,Q=e.areDependenciesLoading,X=void 0!==Q&&Q,J=e.orderSubDomainsLast,ee=void 0!==J&&J,te=e.onUseYourDomainClick,__=(0,g.QT)().__,ne=__("Search for a domain","full-site-editing"),re=(0,a.useState)(!1),ie=i()(re,2),oe=ie[0],ae=ie[1],ce=(0,a.useState)(j),se=i()(ce,2),ue=se[0],le=se[1],de=(0,a.useState)(),pe=i()(de,2),fe=pe[0],me=pe[1],ge=(0,s.useSelect)((function(e){return e(w.GN).getDomainSuggestionVendor()})),he=(0,b.O)(ue.trim(),T,fe,K)||{},ve=he.allDomainSuggestions,ye=he.errorMessage,be=he.state,_e=he.retryRequest,Ee=null==ve?void 0:ve.slice(z?1:0,oe?T:O),Se=(0,_.$)(Ee,z,U);Se&&(null==Ee||Ee.push(Se));var we=(0,E.P)();(0,a.useEffect)((function(){ae(!1)}),[ue]);var Ce=(0,a.useState)(),xe=i()(Ce,2),Pe=xe[0],ke=xe[1];(0,a.useEffect)((function(){ve&&ke((0,f.k9)("suggestion"))}),[ve,ke]),(0,a.useEffect)((function(){q||le(j)}),[j,q]);var Ne=c().useRef([]);(0,a.useEffect)((function(){var e,t;oe&&(null===(e=Ne.current[O])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[oe,O]);var Ae=function(e,t,n,r){var i="/domains/search/".concat(ge,"/").concat(F).concat(fe?"/"+fe:"");(0,f.Sn)({uiAlgo:"/".concat(F,"/").concat(R),fetchAlgo:i,query:ue,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Oe=be===m.r.Failure,Le=(null===(t=ue.trim)||void 0===t?void 0:t.call(ue).length)<=1,Te=!Oe&&!Le,Ie=!Oe&&Le,De=O;Se&&(De+=1),te&&(De+=1),z&&(De-=1);var Fe=["professional"];return z&&Fe.unshift("sub-domain"),ee&&Fe.reverse(),(0,o.createElement)("div",{className:"domain-picker"},n&&n,q&&(0,o.createElement)("div",{className:"domain-picker__search"},(0,o.createElement)("div",{className:"domain-picker__search-icon"},(0,o.createElement)(d.Z,{icon:p.Z})),(0,o.createElement)(l.TextControl,{hideLabelFromVision:!0,label:ne,placeholder:ne,onChange:function(e){le(e),B(e)},onBlur:function(e){D&&D(e.currentTarget.value)},value:ue,dir:"ltr"})),Oe&&(0,o.createElement)(l.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,o.createElement)("p",{className:"domain-picker__error-message"},ye||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,o.createElement)(l.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:_e},__("Retry","full-site-editing"))),(Te||X)&&(0,o.createElement)("div",{className:"domain-picker__body"},r&&(0,o.createElement)("div",{className:"domain-picker__aside"},(0,o.createElement)(S.Z,{selected:fe,onSelect:me})),(0,o.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,o.createElement)("div",{className:"domain-picker__sugggested-items-container"},Fe.map((function(e){return"sub-domain"===e?(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(P,null,__("Keep sub-domain","full-site-editing")),(0,o.createElement)(x,{key:e,groupItems:$},!X&&z&&(0,o.createElement)(h.ZP,{key:null==z?void 0:z.domain_name,domain:null==z?void 0:z.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Pe?"".concat(Pe,0):void 0,onRender:function(){return Ae(null==z?void 0:z.domain_name,"".concat(Pe,0),0,!1)},selected:(null==U?void 0:U.domain_name)===(null==z?void 0:z.domain_name),onSelect:function(){null==N||N(null==z?void 0:z.domain_name)},type:Y})||(0,o.createElement)(v.Z,{type:Y}))):(0,o.createElement)(a.Fragment,{key:e},$&&(0,o.createElement)(P,null,__("Professional domains","full-site-editing")),(0,o.createElement)(x,{key:e,groupItems:$},!X&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=z&&z.domain_name?t+1:t,i=1===r,a=null===(n=we[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,c=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,o.createElement)(h.ZP,{ref:function(e){Ne.current[r]=e},key:e.domain_name,isUnavailable:!c,domain:e.domain_name,cost:e.cost,isLoading:(null==U?void 0:U.domain_name)===e.domain_name&&V,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:i,railcarId:Pe?"".concat(Pe).concat(r):void 0,onRender:function(){return Ae(e.domain_name,"".concat(Pe).concat(r),r,i)},onSelect:function(){k(e)},selected:(null==U?void 0:U.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(De,(function(e){return(0,o.createElement)(v.Z,{type:Y,key:e})})),te&&!!Ee&&(0,o.createElement)(y.Z,{onClick:te})))}))),!oe&&O<T&&(null==ve?void 0:ve.length)&&(null==ve?void 0:ve.length)>O&&(0,o.createElement)("div",{className:"domain-picker__show-more"},(0,o.createElement)(l.Button,{onClick:function(){return ae(!0)},isLink:!0},__("View more results","full-site-editing"))))),Ie&&!X&&(0,o.createElement)("div",{className:"domain-picker__empty-state"},(0,o.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,o.createElement)("div",null,(0,o.createElement)(C.q,null))))}},7226: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"}))}},5179:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=n(3804),u=s.forwardRef((function(e,t){var n=e.type,r=e.disabled,o=a()(e,["type","disabled"]);return"button"===n?(0,c.createElement)("div",o):(0,c.createElement)("button",i()({ref:t,disabled:r},o))}));t.Z=u},947:function(e,t,n){"use strict";n.d(t,{tr:function(){return b}});var r=n(8527),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n(2779),l=n.n(u),d=n(9215),p=n(6115),f=n(7498),m=n(7997),g=n(1417),h=n(3163),v=n(1749),y=n(5179),b="radio",_="individual-item",E=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,i=e.cost,o=e.railcarId,u=e.hstsRequired,E=void 0!==u&&u,S=e.isFree,w=void 0!==S&&S,C=e.isExistingSubdomain,x=void 0!==C&&C,P=e.isRecommended,k=void 0!==P&&P,N=e.onSelect,A=e.onRender,O=e.selected,L=e.type,T=void 0===L?b:L,I=e.buttonRef,__=(0,d.QT)().__,D=(0,f.Iu)(),F=(0,g.useViewportMatch)("small","<"),R=n.indexOf("."),Z=n.slice(0,R),j=n.slice(R),M=s.useState(),B=a()(M,2),U=B[0],V=B[1],z=s.useState(),H=a()(z,2),$=H[0],G=H[1],q=__("Default","full-site-editing"),W=__("Free","full-site-editing"),Y=__("Included in paid plans","full-site-editing"),K=__("Included with annual plans","full-site-editing"),Q=__("<strong>First year included</strong> in paid plans","full-site-editing"),X=T===_?q:W,J=F?Y:(0,c.createInterpolateElement)(Q,{strong:(0,c.createElement)("strong",null)}),ee=T===_?J:F?W:K;s.useEffect((function(){n!==U&&$!==o&&o&&(A(),V(n),G(o))}),[n,U,$,o,A]);var te=function(){$&&(0,p.Lo)({action:"domain_selected",railcarId:$}),N(n)},ne=__("Selected","full-site-editing"),re=__("Select","full-site-editing");return(0,c.createElement)(y.Z,{ref:I,type:T,key:Z,className:l()("domain-picker__suggestion-item",{"is-free":w,"is-selected":O,"is-unavailable":t},"type-".concat(T)),onClick:"button"!==T?te:void 0,disabled:t},T===b&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("span",{className:l()("domain-picker__suggestion-radio-circle",{"is-checked":O,"is-unavailable":t})})),(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,c.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,c.createElement)("span",{className:l()("domain-picker__domain-wrapper",{"with-margin":!E})},(0,c.createElement)("span",{className:"domain-picker__domain-sub-domain"},Z),(0,c.createElement)("span",{className:"domain-picker__domain-tld"},j)),k&&!t&&(0,c.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),E&&(0,c.createElement)(v.Z,{position:F?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,c.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,c.createElement)("b",null,j),learn_more_link:(0,c.createElement)("a",{target:"_blank",rel:"noreferrer",href:D("https://wordpress.com/support/https-ssl")})}))),x&&T!==_&&(0,c.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,c.createElement)("div",{className:l()("domain-picker__price",{"is-paid":!w})},t&&__("Unavailable","full-site-editing"),w&&!t&&X,!w&&!t&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{className:"domain-picker__price-cost"},(0,h.sprintf)(__("%s/year","full-site-editing"),i)),(0,c.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ee," "),(0,c.createElement)("span",{className:"domain-picker__price-renewal"},(0,h.sprintf)(__("Renews at: %s /year","full-site-editing"),i)))),"button"===T&&(r?(0,c.createElement)(m.Spinner,null):(0,c.createElement)("div",{className:"domain-picker__action"},(0,c.createElement)(m.Button,{ref:I,isSecondary:!0,className:l()("domain-picker__suggestion-select-button",{"is-selected":O&&!t}),disabled:t,onClick:te},O&&!t?ne:re))))};t.ZP=s.forwardRef((function(e,t){return(0,c.createElement)(E,i()({},e,{buttonRef:t}))}))},4531:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(9215),a=n(5179);t.Z=function(e){var t=e.onClick,n=(0,o.QT)(),__=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",onClick:t},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},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 l}});var r=n(417),i=n.n(r),o=n(1068),a=n.n(o),c=n(5707),s=n(7127),u=n(3300);function l(){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,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=(0,s.Z)(e,u.dP),d=a()(l,1),p=d[0],f=(0,c.useDispatch)(u.GN),m=f.invalidateResolutionForStoreSelector;return(0,c.useSelect)((function(e){if(p&&!(p.length<u.F9)){var a=e(u.GN),c=a.getDomainSuggestions,s=a.getDomainState,l=a.getDomainErrorMessage;return{allDomainSuggestions:c(p,i()({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n},o)),state:s(),errorMessage:l(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[p,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return s}});var r=n(5182),i=n.n(r),o=n(1068),a=n.n(o),c=n(3804);function s(e,t,n){var r=c.useState(),o=a()(r,2),s=o[0],u=o[1],l=t&&Array.isArray(e)?[t].concat(i()(e)):e;if(c.useEffect((function(){var e=null==l?void 0:l.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=l&&l.length&&!e&&u(n)}),[n,l]),!(null==l?void 0:l.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},1749:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(2779),s=n.n(c),u=n(7997),l=n(5614);n(6388);t.Z=function(e){var t=e.children,n=e.className,r=e.id,c=e.position,d=void 0===c?"bottom center":c,p=e.noArrow,f=void 0===p||p,m=(0,a.useState)(!1),g=i()(m,2),h=g[0],v=g[1];return(0,o.createElement)((function(e){return(0,o.createElement)(u.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,o.createElement)(u.Popover,{id:r,className:s()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:f},t))}},7356: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:""}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}n.d(t,{n:function(){return r},Q:function(){return i}})},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 c}});var r=n(417),i=n.n(r),o=n(1481),a=n(3759);function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.X)(t);if(!r||isNaN(e))return null;var c=i()(i()({},r),n),u=c.decimal,l=c.grouping,d=c.precision,p=c.symbol,f=e<0?"-":"",m=(0,o.Y4)(Math.abs(e),{decimals:d,thousandsSep:l,decPoint:u});return n.stripZeros&&(m=s(m,u)),"".concat(f).concat(p).concat(m)}function s(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(5182),i=n.n(r),o=n(1260),a=n.n(o),c=n(8049),s=n.n(c),u=n(7010),l=n(9830),d=n(7839),p=n.n(d),f=n(5079),m=n.n(f),g=n(382),h=n(6668),v=n(3),y=s()("i18n-calypso"),b="number_format_decimals",_="number_format_thousands_sep",E="messages",S=[function(e){return e}],w={};function C(){A.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function x(e){return Array.prototype.slice.call(e)}function P(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&C("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",x(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&C("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",x(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 k(e,t){return e.dcnpgettext(E,t.context,t.original,t.plural,t.count)}function N(e,t){for(var n=S.length-1;n>=0;n--){var r=S[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return k(e.state.tannin,r)}return null}function A(){if(!(this instanceof A))return new A;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:p()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new g.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}A.throwErrors=!1,A.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},A.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},A.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},A.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,v.Z)(e,n,r,i)},A.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},A.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==w[n+e])return w[n+e];var r=m()().update(e).digest("hex");return w[n+e]=t?r.substr(0,t):r},c=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)S.push(c(!1));else{var s=i.substr(5).indexOf("-");if(s<0){var u=Number(i.substr(5));S.push(c(u))}else for(var d=Number(i.substr(5,s)),p=Number(i.substr(6+s)),f=d;f<=p;f++)S.push(c(f))}}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 l.Z(a()({},E,this.state.locale)),this.state.numberFormatSettings.decimal_point=k(this.state.tannin,P([b])),this.state.numberFormatSettings.thousands_sep=k(this.state.tannin,P([_])),this.state.numberFormatSettings.decimal_point===b&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===_&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},A.prototype.getLocale=function(){return this.state.locale},A.prototype.getLocaleSlug=function(){return this.state.localeSlug},A.prototype.getLocaleVariant=function(){return this.state.localeVariant},A.prototype.isRtl=function(){return"rtl"===this.state.textDirection},A.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},A.prototype.hasTranslation=function(){return!!N(this,P(arguments))},A.prototype.translate=function(){var e=P(arguments),t=N(this,e);if(t||(t=k(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=h.Z.apply(void 0,i()(n))}catch(o){if(!window||!window.console)return;var r=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[r](o):window.console[r]("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},A.prototype.reRenderTranslations=function(){y("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},A.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},A.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=A},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return u}});var r=n(914),i=n(3493),o=n(975),a=n(8373),c=new r.Z,s=c.numberFormat.bind(c),u=c.translate.bind(c),l=(c.configure.bind(c),c.setLocale.bind(c),c.getLocale.bind(c),c.getLocaleSlug.bind(c),c.getLocaleVariant.bind(c),c.isRtl.bind(c),c.addTranslations.bind(c),c.reRenderTranslations.bind(c),c.registerComponentUpdateHook.bind(c),c.registerTranslateHook.bind(c),c.state,c.stateObserver,c.on.bind(c),c.off.bind(c),c.emit.bind(c),(0,i.Z)(c),(0,o.Z)(c),(0,a.Z)(c));l.useRtl,l.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(417),i=n.n(r),o=n(85),a=n.n(o),c=n(5198),s=n.n(c),u=n(8111),l=n.n(u),d=n(270),p=n.n(d),f=n(4564),m=n.n(f),g=n(1260),h=n.n(g),v=n(3027),y=n(3804),b=n.n(y);function _(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var r,o,c=n.displayName||n.name||"";return o=r=function(r){p()(c,r);var o=m()(c);function c(){var e;a()(this,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=o.call.apply(o,[this].concat(n)),h()(l()(e),"boundForceUpdate",e.forceUpdate.bind(l()(e))),e}return s()(c,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var r=i()(i()({locale:e.getLocaleSlug()},this.props),t);return(0,v.createElement)(n,r)}}]),c}(b().Component),h()(r,"displayName","Localized("+c+")"),o}}},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,c=void 0===n?".":n,s="";return(s=(o?
|
20 |
/*
|
21 |
* Exposes number format capability
|
22 |
*
|
24 |
* @license See CREDITS.md
|
25 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
26 |
*/
|
27 |
+
function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,o):""+Math.round(i)).split("."))[0].length>3&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(s[1]||"").length<o&&(s[1]=s[1]||"",s[1]+=new Array(o-s[1].length+1).join("0")),s.join(c)}n.d(t,{Z:function(){return r}})},8373:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(8527),i=n.n(r),o=n(3027),a=n(3804),c=n(6718),s=n(1417);function u(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,c.useSubscription)(t)}var r=(0,s.createHigherOrderComponent)((function(e){return(0,a.forwardRef)((function(t,r){var a=n();return(0,o.createElement)(e,i()({},t,{isRtl:a,ref:r}))}))}),"WithRTL");return{useRtl:n,withRtl:r}}},975:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(1068),i=n.n(r),o=n(3804),a=n.n(o);function c(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){var n=a().useState(t),r=i()(n,2),o=r[0],c=r[1];return a().useEffect((function(){var n=function(){return c(t)};return e.on("change",n),function(){return e.off("change",n)}}),[]),o}}},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return u},bU:function(){return l}});var r=n(8527),i=n.n(r),o=n(3027),a=n(3804),c=n(1417),s=(0,a.createContext)("en"),u=function(e){var t=e.children,n=e.localeSlug;return(0,o.createElement)(s.Provider,{value:n},t)};function l(){return(0,a.useContext)(s)}(0,c.createHigherOrderComponent)((function(e){return function(t){var n=l();return(0,o.createElement)(e,i()({locale:n},t))}}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},GG:function(){return i},iT:function(){return o},xn:function(){return a},Xb:function(){return c},xN:function(){return s},hI:function(){return u},mL:function(){return l},vS:function(){return d},_r:function(){return p}});var r="en",i=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],a=["en","fr","de"],c={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},s=["en","en-gb"],u=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],l=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],d=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],p=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{Iu:function(){return h}});var r=n(8527),i=n.n(r),o=n(3027),a=n(3804),c=n(1417),s=n(849),u=n(4655),l="http://__domain__.invalid",d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(u.Xb[r]||r,".").concat(e)),n}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=i+r.pathname),r}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n}},m={"wordpress.com/support/":f(u.hI),"wordpress.com/forums/":f(u.mL),"wordpress.com/blog/":f(u.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(u.vS),"wordpress.com/wp-admin/":d("wordpress.com",u.vS),"wordpress.com/wp-login.php":d("wordpress.com",u.vS),"jetpack.com":d("jetpack.com",u._r),"en.support.wordpress.com":p("/support",u.hI),"en.blog.wordpress.com":p("/blog",u.GG,/^\/$/),"en.forums.wordpress.com":p("/forums",u.mL),"automattic.com/privacy/":f(u.iT),"automattic.com/cookies/":f(u.xn),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(u.hI)(e,t))},"wordpress.com":f(u.vS)};function g(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),l)}catch(c){return e}if(n.origin===l)return e;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));var i=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+t+"/"===i)return n.href;for(var o=[n.host,n.host+i,n.host+n.pathname],a=o.length-1;a>=0;a--)if(o[a]in m)return m[o[a]](n,t,r).href;return e}function h(){var e=(0,s.bU)();return(0,a.useCallback)((function(t,n,r){return g(t,n||e,r)}),[e])}(0,c.createHigherOrderComponent)((function(e){return function(t){var n=h();return(0,o.createElement)(e,i()({localizeUrl:n},t))}}),"withLocalizeUrl")},6357:function(e,t,n){"use strict";var r=n(417),i=n.n(r),o=n(3804),a=n(791),c=function(e){window.location.href=e},s=o.createContext({siteId:0,redirectTo:c,getCurrentLaunchFlowUrl:function(){return window.location.href},openCheckout:function(e,t){c((0,a.addQueryArgs)("/checkout/".concat(e),i()({preLaunch:1},!t&&{redirect_to:"/home/".concat(e)})))},flow:"launch",isInIframe:!1});t.Z=s},8039:function(e,t,n){"use strict";n.d(t,{j:function(){return h}});var r=n(417),i=n.n(r),o=n(2954),a=n.n(o),c=n(1068),s=n.n(c),u=n(3804),l=n(5707),d=n(849),p=n(1120),f=n(6357),m=n(6950),g=n(5144);function h(){var e=u.useContext(f.Z),t=e.siteId,n=e.flow,r=e.openCheckout,o=e.isInIframe,c=(0,d.bU)(),h=(0,l.useSelect)((function(e){return[e(p.sC).getSelectedPlanProductId(),e(p.sC).getSelectedDomain()]})),v=s()(h,2),y=v[0],b=v[1],_=(0,l.useSelect)((function(e){var t=e(p.Fs),n=t.getPlanByProductId(y,c);return{planProduct:t.getPlanProductById(y),isEcommercePlan:t.isPlanEcommerce(null==n?void 0:n.periodAgnosticSlug)}}),[y,c]),E=_.planProduct,S=_.isEcommercePlan,w=(0,g.j)().siteSubdomain,C=(0,l.useDispatch)(p.j4),x=C.getCart,P=C.setCart,k=C.launchSite,N=function(){return k(t)},A=u.useState(!1),O=s()(A,2),L=O[0],T=O[1],I=function(){var e=a()(regeneratorRuntime.mark((function e(){var r,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!L){e.next=2;break}return e.abrupt("return");case 2:return T(!0),r=b&&(0,m.K9)(b,n),o=E&&(0,m.An)(E,n),e.next=7,x(t);case 7:return a=e.sent,e.next=10,P(t,i()(i()({},a),{},{products:[o,r]}));case 10:T(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=a()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:r(null==w?void 0:w.domain,S,N);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=a()(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o&&!S){e.next=3;break}return e.next=3,k(t);case 3:D();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{goToCheckout:D,goToCheckoutAndLaunch:F,isCartUpdating:L}}},6956:function(e,t,n){"use strict";n.d(t,{f:function(){return l}});var r=n(5707),i=n(3300),o=n(7356),a=n(1120),c=n(4557),s=n(3073),u=n(5144);function l(){var e,t,n=(0,r.useSelect)((function(e){return e(a.sC).getDomainSearch()}),[]),l=(0,c.Z)(),d=l.isDefaultTitle,p=l.title,f=(0,s.W)().isLoadingSite,m=(0,u.j)().siteSubdomain,g=(0,r.useDispatch)(a.sC).setDomainSearch,h=void 0!==p&&p.length>=i.F9&&!d?p:"";return{domainSearch:null!==(e=n.trim()||function(e){return(0,o.Q)(e)?e:""}(h)||(null==m||null===(t=m.domain)||void 0===t?void 0:t.split(".")[0]))&&void 0!==e?e:"",isLoading:f,setDomainSearch:g}}},780:function(e,t,n){"use strict";n.d(t,{my:function(){return c}});n(2954),n(1068),n(3804);var r=n(5707),i=n(7356),o=n(1120),a=n(5144);function c(){var e,t=(0,r.useDispatch)(o.sC),n=t.setDomain,c=t.unsetDomain,s=t.unsetPlanProductId,u=t.confirmDomainSelection,l=(0,r.useSelect)((function(e){return e(o.sC).getState()})),d=l.domain,p=l.planProductId,f=l.confirmedDomainSelection,m=(0,r.useSelect)((function(e){return e(o.Fs).isPlanProductFree(p)})),g=(0,a.j)(),h=g.siteSubdomain,v=g.hasPaidDomain,y=g.sitePrimaryDomain;return d?e=d:v?e=(0,i.n)(null==y?void 0:y.domain):f&&(e=(0,i.n)(null==h?void 0:h.domain)),{onDomainSelect:function(e){u(),n(e),m&&s()},onExistingSubdomainSelect:function(){u(),c()},selectedDomain:d,currentDomain:e}}},8463:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(5707),i=n(849),o=n(1120),a=n(6956);function c(){var e,t=(0,i.bU)(),n=(0,a.f)().domainSearch;return null===(e=(0,r.useSelect)((function(e){if(n&&!(n.length<2))return e(o.GN).getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:t})}),[n]))||void 0===e?void 0:e[0]}},3357:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(3804),i=n(5707),o=n(1120),a=n(6357),c=n(5144),s=n(8039),u=n(3073),l=function(){var e=r.useContext(a.Z),t=e.siteId,n=e.redirectTo,l=(0,i.useSelect)((function(e){return e(o.sC).getState()})).planProductId,d=(0,i.useSelect)((function(e){return e(o.Fs).isPlanProductFree(l)})),p=(0,u.W)().isSiteLaunched,f=(0,c.j)().siteSubdomain,m=(0,s.j)().goToCheckout;r.useEffect((function(){if(p){if(!d)return void m();n("/home/".concat((null==f?void 0:f.domain)||t))}}),[p])}},5144:function(e,t,n){"use strict";n.d(t,{j:function(){return c}});var r=n(3804),i=n(5707),o=n(1120),a=n(6357);function c(){var e=r.useContext(a.Z).siteId,t=(0,i.useSelect)((function(t){return t(o.j4).getPrimarySiteDomain(e)}));return{sitePrimaryDomain:t,siteSubdomain:(0,i.useSelect)((function(t){return t(o.j4).getSiteSubdomain(e)})),hasPaidDomain:t&&!(null!=t&&t.is_subdomain)}}},3073:function(e,t,n){"use strict";n.d(t,{W:function(){return u}});var r=n(1068),i=n.n(r),o=n(3804),a=n(5707),c=n(1120),s=n(6357);function u(){var e,t,n=o.useContext(s.Z).siteId,r=(0,a.useSelect)((function(e){var t=e(c.j4);return[t.getSite(n),t.isSiteLaunched(n),t.isSiteLaunching(n),t.isFetchingSiteDetails()]}),[n]),u=i()(r,4),l=u[0],d=u[1],p=u[2],f=u[3];return{sitePlan:null==l?void 0:l.plan,hasPaidPlan:l&&!(null!==(e=l.plan)&&void 0!==e&&e.is_free),isSiteLaunched:d,isSiteLaunching:p,selectedFeatures:null==l||null===(t=l.options)||void 0===t?void 0:t.selected_features,isLoadingSite:!!f}}},4557:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(1068),i=n.n(r),o=n(3804),a=n(669),c=n(3163),s=n(5707),u=n(849),l=n(4655),d=n(1120),p=n(6357),__=c.__;function f(){var e=(0,o.useContext)(p.Z).siteId,t=(0,u.bU)(),n=(0,s.useSelect)((function(t){return t(d.j4).getSiteTitle(e)}),[e]),r=(0,s.useSelect)((function(e){return e(d.sC).getSiteTitle()}),[]),c=(0,s.useDispatch)(d.sC).setSiteTitle,f=(0,s.useDispatch)(d.j4).saveSiteTitle,m=(0,a.Z)(f,1e3),g=i()(m,1)[0],h=void 0===r,v=h?n:r;(0,o.useEffect)((function(){h||g(e,r)}),[r,g,e,h]);var y=__("Site Title","full-site-editing"),b=void 0!==v&&v===y,_=void 0!==v&&""!==v&&!b;return-1===l.xN.indexOf(t)&&(b=!(null!=r&&r.trim()),_=void 0!==v&&""!==v),{isDefaultTitle:b,isValidTitle:_,title:v,updateTitle:c}}},1120:function(e,t,n){"use strict";n.d(t,{j4:function(){return c},Fs:function(){return s},GN:function(){return u},sC:function(){return l}});var r=n(2369),i=n(9734),o=n(8077),a=n(1635),c=r.z2({client_id:"",client_secret:""}),s=i.z2(),u=o.z({vendor:"variation2_front"}),l=a.z()},6950:function(e,t,n){"use strict";n.d(t,{An:function(){return r},K9:function(){return i}});var r=function(e,t){return{product_id:e.productId,product_slug:e.storeSlug,extra:{source:t}}},i=function(e,t){if(null!=e&&e.product_id)return{meta:null==e?void 0:e.domain_name,product_id:null==e?void 0:e.product_id,extra:{privacy_available:null==e?void 0:e.supports_privacy,privacy:null==e?void 0:e.supports_privacy,source:t},product_cost_display:e.cost,currency_code:e.currency_code,product_slug:e.product_slug,cost:e.raw_price,currency:e.currency_code}}},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return c},lZ:function(){return s},_W:function(){return l},Yt:function(){return d}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function a(){return o}function c(e){return a().has(e)}function s(e,t){var n=a();c(e)?(i('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(i('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=a(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));i(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function l(){var e=this.getAttribute("src");i('Handling successful request for "'.concat(e,'"')),u(e),this.onload=null}function d(){var e=this.getAttribute("src");i('Handling failed request for "'.concat(e,'"')),u(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return c},k:function(){return s}});var r=n(8049),i=n.n(r),o=n(3340),a=i()("lib/load-script/dom-operations");function c(e){a('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function s(e){a("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),a=n(5606);i()("package/load-script");function c(e,t){if(!(0,o.hg)(e)&&(0,a.k)((0,a.C)(e)),"function"!=typeof t)return new Promise((function(t,n){(0,o.lZ)(e,(function(e){null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},9211:function(e,t,n){"use strict";n.d(t,{xE:function(){return g},aW:function(){return h},b4:function(){return v}});var r=n(8527),i=n.n(r),o=n(2220),a=n.n(o),c=n(3027),s=(n(3804),n(2779)),u=n.n(s),l=n(7997),d=n(9215),p=n(5869),f=n(1100),m=n(2481);n(19);t.ZP=function(e){var t=e.className,n=e.children,r=e.sticky,i=void 0===r?null:r,o="";return!0===i&&(o="is-sticky"),!1===i&&(o="no-sticky"),(0,c.createElement)("div",{className:u()("action-buttons",t,o)},n)};var g=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]),__=(0,d.QT)().__;return(0,c.createElement)(l.Button,i()({className:u()("action_buttons__button action-buttons__back",t),isLink:!0},r),n||__("Go back","full-site-editing"))},h=function(e){var t=e.className,n=e.children,r=a()(e,["className","children"]),__=(0,d.QT)().__;return(0,c.createElement)(l.Button,i()({className:u()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||__("Continue","full-site-editing"))},v=function(e){var t=e.className,n=e.children,r=e.arrow,o=void 0===r?"right":r,s=a()(e,["className","children","arrow"]);return(0,c.createElement)(l.Button,i()({className:u()("action_buttons__button action-buttons__arrow action-buttons__arrow--".concat(o),t)},s),"left"===o&&(0,c.createElement)(p.Z,{icon:f.Z}),n,"right"===o&&(0,c.createElement)(p.Z,{icon:m.Z}))}},5915:function(e,t,n){"use strict";n.d(t,{b:function(){return a},D:function(){return c}});var r=n(3804),i=n(2779),o=n.n(i),a=(n(9662),function(e){var t=e.className,n=e.children,i=e.tagName,a=void 0===i?"h1":i;return r.createElement(a,{className:o()("onboarding-title",t)},n)}),c=function(e){var t=e.className,n=e.children,i=e.tagName,a=void 0===i?"h2":i;return r.createElement(a,{className:o()("onboarding-subtitle",t)},n)}},1201:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(5707),i=n(9255),o=function(e,t){var n=(0,r.useSelect)((function(n){var r=n(i.F).getSupportedPlans(e),o=r.map((function(e){return n(i.F).getPlanProduct(e.periodAgnosticSlug,t)})).map((function(e){return null==e?void 0:e.annualDiscount})).filter((function(e){return!!e}));return{supportedPlans:r,annualDiscounts:o}}));return{supportedPlans:n.supportedPlans,maxAnnualDiscount:n.annualDiscounts.reduce((function(e,t){return Math.max(e,t)}),0)}}},130:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i),a=n(9215),c=n(3163),s=n(9211),u=n(5707),l=n(373),d=n(9255),p=(n(9117),(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})));t.Z=function(e){var t,n=e.slug,i=e.name,f=e.description,m=e.features,g=e.billingPeriod,h=e.domain,v=e.badge,y=e.isFree,b=void 0!==y&&y,_=e.isOpen,E=void 0!==_&&_,S=e.isPrimary,w=void 0!==S&&S,C=e.onSelect,x=e.onPickDomainClick,P=e.onToggle,k=e.disabledLabel,__=(0,a.QT)().__,N=(0,u.useSelect)((function(e){return e(d.F).getPlanProduct(n,g)})),A=function(){!k&&(null==P||P(n,!E))},O=__("billed annually","full-site-editing"),L=__("per month, billed monthly","full-site-editing");return(0,r.createElement)("div",{className:o()("plans-accordion-item",{"is-open":E,"is-primary":w,"has-badge":!!v,"is-disabled":!!k})},v&&(0,r.createElement)("div",{className:"plans-accordion-item__badge"},(0,r.createElement)("span",null,v)),(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",onClick:A,onKeyDown:function(e){return 32===e.keyCode&&A()},className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},i),(0,r.createElement)("div",{className:"plans-accordion-item__description"},f)),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:o()("plans-accordion-item__price-amount",{"is-loading":!(null!=N&&N.price)})},(null==N?void 0:N.price)||" ",(null==N?void 0:N.price)&&(0,r.createElement)("span",null,__("/mo","full-site-editing"))),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},b&&__("free forever","full-site-editing"),!b&&("ANNUALLY"===g?O:L)),!b&&(0,r.createElement)("div",{className:o()("plans-accordion-item__price-discount",{"plans-accordion-item__price-discount--disabled":"ANNUALLY"!==g})},(0,c.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:null!==(t=null==N?void 0:N.annualDiscount)&&void 0!==t?t:0}))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},k),!E&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},p)),(0,r.createElement)("div",{className:o()("plans-accordion-item__actions",{"plans-accordion-item__actions--paid-plan-margin":!b}),hidden:!E},(0,r.createElement)(s.aW,{"data-e2e-button":b?"freePlan":"paidPlan",onClick:function(){C(null==N?void 0:N.productId)}},__("Select","full-site-editing"))),(0,r.createElement)(l.Z,{features:m,billingPeriod:g,domain:h,isFree:b,isOpen:E,onPickDomain:x,multiColumn:!0}))))}},4416:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i),a=n(9211),c=n(7891),s=(n(9117),(0,r.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,r.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"})));t.Z=function(e){var t=e.isOpen,n=e.isPrimary;return(0,r.createElement)("div",{className:o()("plans-accordion-item",{"is-open":t,"is-primary":n})},(0,r.createElement)("div",{className:"plans-accordion-item__viewport"},(0,r.createElement)("div",{className:"plans-accordion-item__details"},(0,r.createElement)("div",{tabIndex:0,role:"button",className:"plans-accordion-item__header"},(0,r.createElement)("div",{className:"plans-accordion-item__heading"},(0,r.createElement)("div",{className:"plans-accordion-item__name"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__description"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__price"},(0,r.createElement)("div",{className:"plans-accordion-item__price-amount"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder"},"")),(0,r.createElement)("div",{className:"plans-accordion-item__price-note"},(0,r.createElement)("span",{className:"plans-accordion-item__placeholder plans-accordion-item__placeholder--wide"},""))),(0,r.createElement)("div",{className:"plans-accordion-item__disabled-label"},""),!t&&(0,r.createElement)("div",{className:"plans-accordion-item__dropdown-chevron"},s)),(0,r.createElement)("div",{className:"plans-accordion-item__actions",hidden:!t},(0,r.createElement)(a.aW,{disabled:!0},(0,r.createElement)("span",null,""))),(0,r.createElement)(c.Z,{isOpen:t,multiColumn:!0}))))}},222:function(e,t,n){"use strict";var r=n(5182),i=n.n(r),o=n(1068),a=n.n(o),c=n(3027),s=n(3804),u=n(5707),l=n(9215),d=n(7997),p=n(5869),f=n(130),m=n(4416),g=n(9255),h=n(1201),v=(n(3777),(0,c.createElement)(d.SVG,{viewBox:"0 0 24 24"},(0,c.createElement)(d.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})));t.Z=function(e){var t,n,r=e.selectedFeatures,o=void 0===r?[]:r,y=e.selectedPlanProductId,b=e.onPlanSelect,_=e.onPickDomainClick,E=e.currentDomain,S=e.disabledPlans,w=e.locale,C=e.billingPeriod,__=(0,l.QT)().__,x=(0,h.N)(w,C).supportedPlans,P=!(null!=x&&x.length),k=(0,u.useSelect)((function(e){var t=e(g.F);return{popularPlan:t.getDefaultPaidPlan(w),getPlanProduct:t.getPlanProduct}})),N=k.popularPlan,A=k.getPlanProduct,O=(0,u.useSelect)((function(e){return e(g.J).getRecommendedPlanSlug(o)})),L=(0,u.useSelect)((function(e){return e(g.F).getPlanByPeriodAgnosticSlug(O,w)})),T=L||N,I=__("Recommended for you","full-site-editing"),D=__("Popular","full-site-editing"),F=x.filter((function(e){return e.periodAgnosticSlug!==(null==T?void 0:T.periodAgnosticSlug)})),R=[null==T?void 0:T.periodAgnosticSlug],Z=(0,s.useState)(R),j=a()(Z,2),M=j[0],B=j[1],U=!P&&M.length>=x.length,V=function(e,t){B(t?[].concat(i()(M),[e]):M.filter((function(t){return t!==e})))},z=__("Collapse all plans","full-site-editing"),H=__("Show all plans","full-site-editing");return(0,c.createElement)("div",{className:"plans-accordion"},(0,c.createElement)("div",{className:"plans-accordion__plan-item-group"},P?(0,c.createElement)(m.Z,{isOpen:!0,isPrimary:!0}):T&&(0,c.createElement)(c.Fragment,null,L&&(0,c.createElement)("div",{className:"plans-accordion__recommend-hint"},(0,c.createElement)(p.Z,{icon:v,size:16}),(0,c.createElement)("span",null,__("Based on the features you selected.","full-site-editing"))),(0,c.createElement)(f.Z,{key:T.periodAgnosticSlug,slug:T.periodAgnosticSlug,name:null==T?void 0:T.title.toString(),description:null==T?void 0:T.description.toString(),features:null!==(t=T.features)&&void 0!==t?t:[],billingPeriod:C,domain:E,badge:L?I:D,isFree:T.isFree,isOpen:!0,isPrimary:!0,isSelected:!!y&&y===(null===(n=A(T.periodAgnosticSlug,C))||void 0===n?void 0:n.productId),onSelect:b,onPickDomainClick:_}))),(0,c.createElement)("div",{className:"plans-accordion__actions"},(0,c.createElement)(d.Button,{className:"plans-accordion__toggle-all-button",onClick:function(){B(U?R:x.map((function(e){return e.periodAgnosticSlug})))},isLink:!0},U?z:H)),(0,c.createElement)("div",{className:"plans-accordion__plan-item-group"},P?[1,2,3,4].map((function(e){return(0,c.createElement)(m.Z,{key:e})})):F.map((function(e){var t,n;return(0,c.createElement)(f.Z,{key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,name:null==e?void 0:e.title.toString(),description:null==e?void 0:e.description.toString(),features:null!==(t=e.features)&&void 0!==t?t:[],billingPeriod:C,domain:E,isFree:e.isFree,isOpen:M.indexOf(e.periodAgnosticSlug)>-1&&!(null!=S&&S[e.periodAgnosticSlug]),isSelected:!!y&&y===(null===(n=A(e.periodAgnosticSlug,C))||void 0===n?void 0:n.productId),onSelect:b,onPickDomainClick:_,onToggle:V,disabledLabel:null==S?void 0:S[e.periodAgnosticSlug]})}))))}},4689:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i),a=n(9215),c=n(5707),s=n(7997),u=n(5869),l=n(9806),d=n(8565),p=n(9255),f=(n(3062),(0,r.createElement)(u.Z,{icon:l.Z,size:25})),m=(0,r.createElement)(u.Z,{icon:d.Z,size:25});t.Z=function(e){var t=e.onSelect,n=e.locale,i=e.billingPeriod,u=(0,a.QT)(),__=u.__,l=u.hasTranslation,d=(0,c.useSelect)((function(e){var t=e(p.F),r=t.getPlanProduct,o=t.getFeatures,a=t.getFeaturesByType,c=(0,t.getSupportedPlans)(n),s=c.map((function(e){return r(e.periodAgnosticSlug,i)}));return{supportedPlans:c,planProducts:s,features:o(n),featuresByType:a(n)}})),g=d.supportedPlans,h=d.planProducts,v=d.features,y=d.featuresByType,b=!(null!=g&&g.length),_=[1,2,3,4,5],E=__("Monthly price (billed yearly)","full-site-editing"),S=__("Monthly subscription (billed yearly)","full-site-editing"),w="en"===n||null!=l&&l("Monthly price (billed yearly)","full-site-editing")?E:S,C=__("Monthly subscription","full-site-editing"),x=__("Included with annual plans","full-site-editing"),P=__("Only included with annual plans","full-site-editing");return(0,r.createElement)("div",{className:"plans-details"},(0,r.createElement)("table",{className:"plans-details__table"},(0,r.createElement)("thead",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",null,__("Feature","full-site-editing")),b?_.map((function(e){return(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},""))})):g.map((function(e){return(0,r.createElement)("th",{key:e.periodAgnosticSlug},e.title)})))),b?(0,r.createElement)("tbody",null,_.map((function(e,t){return(0,r.createElement)("tr",{className:"plans-details__feature-row",key:t},(0,r.createElement)("th",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--wide"},"")),_.map((function(e){return(0,r.createElement)("td",{key:e})})))}))):y.map((function(e){var t;return(0,r.createElement)("tbody",{key:e.id},e.name&&(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},e.name)),null===(t=e.features)||void 0===t?void 0:t.map((function(e,t){return(0,r.createElement)("tr",{className:o()("plans-details__feature-row",{"plans-details__feature-row--enabled":v[e].requiresAnnuallyBilledPlan&&"ANNUALLY"===i,"plans-details__feature-row--disabled":v[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==i}),key:t},(0,r.createElement)("th",null,v[e].requiresAnnuallyBilledPlan&&(0,r.createElement)("span",{className:"plans-details__feature-annual-nudge","aria-label":"ANNUALLY"===i?x:P},__("Included with annual plans","full-site-editing")),(0,r.createElement)("span",null,v[e].name)),g.map((function(t,n){var o;return"storage"===e?(0,r.createElement)("td",{key:n},t.storage):(0,r.createElement)("td",{key:n},null!==(o=t.featuresSlugs)&&void 0!==o&&o[e]?(0,r.createElement)(r.Fragment,null,v[e].requiresAnnuallyBilledPlan&&"ANNUALLY"!==i?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing")),m):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Available","full-site-editing")),f)):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"hidden"},__("Unavailable","full-site-editing"))))})))})))})),(0,r.createElement)("tbody",null,(0,r.createElement)("tr",{className:"plans-details__header-row"},(0,r.createElement)("th",{colSpan:6},__("Sign up","full-site-editing"))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"price"},(0,r.createElement)("th",null,"ANNUALLY"===i?w:C),b?_.map((function(e){return(0,r.createElement)("td",{key:e},(0,r.createElement)("span",{className:"plans-details__placeholder"},""))})):g.map((function(e,t){var n;return(0,r.createElement)("td",{key:e.periodAgnosticSlug},null===(n=h[t])||void 0===n?void 0:n.price)}))),(0,r.createElement)("tr",{className:"plans-details__feature-row",key:"cta"},(0,r.createElement)("th",null),b?_.map((function(e){return(0,r.createElement)("td",{key:e},(0,r.createElement)(s.Button,{className:"plans-details__select-button",isPrimary:!0,disabled:!0},(0,r.createElement)("span",{className:"plans-details__placeholder plans-details__placeholder--narrow"},""))," ")})):g.map((function(e,n){return(0,r.createElement)("td",{key:e.periodAgnosticSlug},(0,r.createElement)(s.Button,{className:"plans-details__select-button",onClick:function(){var e;t(null===(e=h[n])||void 0===e?void 0:e.productId)},isPrimary:!0},(0,r.createElement)("span",null,__("Select","full-site-editing"))))}))))))}},373:function(e,t,n){"use strict";var r=n(8527),i=n.n(r),o=n(3027),a=(n(3804),n(2779)),c=n.n(a),s=n(7997),u=n(5869),l=n(9806),d=n(8565),p=n(9215),f=(n(8173),function(e){var t=e.className;return(0,o.createElement)(u.Z,{className:t,icon:l.Z,size:18})}),m=function(e){var t=e.className;return(0,o.createElement)(u.Z,{className:t,icon:d.Z,size:18})},g=function(e){var t=e.children,n=e.className;return(0,o.createElement)("span",{className:n},t)},h=function(e){var t=e.billingPeriod,__=e.__,n=__("Included with annual plans","full-site-editing"),r=__("Only included with annual plans","full-site-editing");return(0,o.createElement)("span",{className:"plans-feature-list__item-annual-nudge","aria-label":"ANNUALLY"===t?n:r},n)};var v=function(e,t){var n=e.bulletIcon,r=e.textNode,i=e.requiresAnnuallyBilledPlan,a=e.contentWrapperNode,s=void 0===a?g:a,u=e.listItemExtraClassName,l=e.billingPeriod,__=(0,p.QT)().__;return(0,o.createElement)("li",{key:t,className:c()("plans-feature-list__item",{"plans-feature-list__item--requires-annual-enabled":i&&"ANNUALLY"===l,"plans-feature-list__item--requires-annual-disabled":i&&"ANNUALLY"!==l},u)},(0,o.createElement)(s,{className:"plans-feature-list__item-content-wrapper"},(0,o.createElement)(n,{className:"plans-feature-list__item-bullet-icon"}),(0,o.createElement)("span",{className:"plans-feature-list__item-text"},i&&(0,o.createElement)(h,{billingPeriod:l,__:__}),(0,o.createElement)("span",{className:"plans-feature-list__item-description"},r))))};t.Z=function(e){var t=e.features,n=e.domain,r=e.billingPeriod,a=e.isFree,u=void 0!==a&&a,l=e.isOpen,d=void 0!==l&&l,g=e.onPickDomain,h=e.disabledLabel,y=e.multiColumn,b=void 0!==y&&y,__=(0,p.QT)().__,_=function(e,t,n,__){var r="plans-feature-list__item-content-wrapper--domain-button";return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:c()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:m,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{wrapperClassName:c()(r,"is-cta"),bulletIcon:"ANNUALLY"===n?f:m,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,__("Pick a free domain (1 year)","full-site-editing"))}},PAID_DOMAIN:{FREE_PLAN:{wrapperClassName:c()(r,"is-unavailable"),bulletIcon:m,requiresAnnuallyBilledPlan:!1,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is not included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))},PAID_PLAN:{wrapperClassName:r,bulletIcon:"ANNUALLY"===n?f:m,requiresAnnuallyBilledPlan:!0,domainMessage:(0,o.createElement)(o.Fragment,null,(0,o.createInterpolateElement)(__("<url /> is included","full-site-editing"),{url:(0,o.createElement)("span",{className:"plans-feature-list__item-url"},null==t?void 0:t.domain_name)}))}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(u,n,r,__),E=[];return h?E.push({bulletIcon:m,textNode:h,requiresAnnuallyBilledPlan:!1,listItemExtraClassName:"plans-feature-list__item--disabled-message"}):_&&E.push({bulletIcon:_.bulletIcon,textNode:_.domainMessage,requiresAnnuallyBilledPlan:_.requiresAnnuallyBilledPlan,contentWrapperNode:function(e){var t=e.children,n=e.className;return(0,o.createElement)(s.Button,{className:c()(_.wrapperClassName,n),onClick:g,isLink:!0},t)}}),t.forEach((function(e){var t=e.name,n=e.requiresAnnuallyBilledPlan;return E.push({bulletIcon:n&&"MONTHLY"===r?m:f,textNode:t,requiresAnnuallyBilledPlan:n})})),(0,o.createElement)("div",{className:"plans-feature-list",hidden:!d},(0,o.createElement)("ul",{className:c()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":b})},E.map((function(e,t){return(0,o.createElement)(v,i()({},e,{billingPeriod:r,key:t}))}))))}},7891:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);n(8173);t.Z=function(e){var t=e.isOpen,n=void 0!==t&&t,i=e.multiColumn,a=void 0!==i&&i,c=Array.from(Array(10).keys());return(0,r.createElement)("div",{className:"plans-feature-list",hidden:!n},(0,r.createElement)("ul",{className:o()("plans-feature-list__item-group",{"plans-feature-list__item-group--columns":a})},c.map((function(e){return(0,r.createElement)("li",{key:e,className:"plans-feature-list__item"},(0,r.createElement)("span",{className:"plans-feature-list__placeholder"},""))}))))}},5315:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(5707),s=n(9215),u=n(5915),l=n(8049),d=n.n(l),p=n(6795),f=n(222),m=n(4689),g=n(1954),h=n(1201),v=n(9255),y=(n(7638),d()("plans-grid"));t.Z=function(e){var t=e.header,n=e.selectedFeatures,r=e.currentPlanProductId,l=e.currentDomain,d=e.onPlanSelect,b=e.onPickDomainClick,_=e.disabledPlans,E=e.isAccordion,S=e.locale,w=e.showPlanTaglines,C=void 0!==w&&w,x=e.CTAVariation,P=void 0===x?"NORMAL":x,k=e.popularBadgeVariation,N=void 0===k?"ON_TOP":k,A=e.customTagLines,O=e.hidePlansComparison,L=void 0!==O&&O,T=e.defaultAllPlansExpanded,I=void 0!==T&&T,D=e.onBillingPeriodChange,__=(0,s.QT)().__,F=(0,c.useSelect)((function(e){var t;return null===(t=e(v.F).getPlanProductById(r))||void 0===t?void 0:t.billingPeriod})),R=a.useState(F||"ANNUALLY"),Z=i()(R,2),j=Z[0],M=Z[1];a.useEffect((function(){D&&D(j)}),[j,D]);var B=(0,h.N)(S,j).maxAnnualDiscount;return E&&y("PlansGrid accordion version is active"),(0,o.createElement)("div",{className:"plans-grid"},t&&(0,o.createElement)("div",{className:"plans-grid__header"},t),(0,o.createElement)(g.Z,{intervalType:j,onChange:M,maxMonthlyDiscountPercentage:B,className:"plans-grid__toggle"}),(0,o.createElement)("div",{className:"plans-grid__table"},(0,o.createElement)("div",{className:"plans-grid__table-container"},E?(0,o.createElement)(f.Z,{selectedFeatures:n,selectedPlanProductId:r,onPlanSelect:d,currentDomain:l,onPickDomainClick:b,disabledPlans:_,locale:S,billingPeriod:j}):(0,o.createElement)(p.Z,{popularBadgeVariation:N,CTAVariation:P,selectedPlanProductId:r,onPlanSelect:d,customTagLines:A,currentDomain:l,onPickDomainClick:b,disabledPlans:_,locale:S,showTaglines:C,defaultAllPlansExpanded:I,billingPeriod:j}))),!L&&(0,o.createElement)("div",{className:"plans-grid__details"},(0,o.createElement)("div",{className:"plans-grid__details-heading"},(0,o.createElement)(u.b,{tagName:"h2"},__("Detailed comparison","full-site-editing"))),(0,o.createElement)("div",{className:"plans-grid__details-container"},(0,o.createElement)(m.Z,{onSelect:d,locale:S,billingPeriod:j}))))}},1954:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9215)),o=n(3163),a=n(7997),c=n(2779),s=n.n(c),u=n(5532),l=(n(4151),function(e){var t=e.children,n={desktop:"middle right",mobile:"bottom center"};return(0,r.createElement)(r.Fragment,null,Object.keys(n).map((function(e){return(0,r.createElement)(a.Popover,{key:e,className:s()("plans-interval-toggle__popover","plans-interval-toggle__popover--".concat(e)),position:n[e],noArrow:!1},t)})))});t.Z=function(e){var t=e.onChange,n=e.intervalType,a=e.maxMonthlyDiscountPercentage,c=e.className,d=void 0===c?"":c,__=(0,i.QT)().__;return(0,r.createElement)("div",{className:s()("plans-interval-toggle",{"plans-interval-toggle--monthly":"MONTHLY"===n},d)},(0,r.createElement)(u.Z,null,(0,r.createElement)(u.Z.Item,{selected:"MONTHLY"===n,onClick:function(){return t("MONTHLY")}},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},__("Pay monthly","full-site-editing"))),(0,r.createElement)(u.Z.Item,{selected:"ANNUALLY"===n,onClick:function(){return t("ANNUALLY")}},(0,r.createElement)("span",{className:"plans-interval-toggle__label"},__("Pay annually","full-site-editing")),"MONTHLY"===n&&a&&(0,r.createElement)(l,null,(0,o.sprintf)(__("Save up to %(maxDiscount)d%% by paying annually and get a free domain for one year","full-site-editing"),{maxDiscount:a})))))}},6795:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(5707),s=n(2893),u=n(1201),l=n(9255);n(8287);t.Z=function(e){var t=e.selectedPlanProductId,n=e.onPlanSelect,r=e.onPickDomainClick,d=e.currentDomain,p=e.disabledPlans,f=e.locale,m=e.billingPeriod,g=e.showTaglines,h=void 0!==g&&g,v=e.CTAVariation,y=void 0===v?"NORMAL":v,b=e.popularBadgeVariation,_=void 0===b?"ON_TOP":b,E=e.customTagLines,S=e.defaultAllPlansExpanded,w=void 0!==S&&S,C=(0,u.N)(f,m).supportedPlans,x=(0,a.useState)(w),P=i()(x,2),k=P[0],N=P[1],A=(0,c.useSelect)((function(e){return e(l.F).getPlanProduct}));return(0,o.createElement)("div",{className:"plans-table"},C.filter((function(e){return!!e})).map((function(e){var i,a,c;return(0,o.createElement)(s.Z,{popularBadgeVariation:_,allPlansExpanded:k,key:e.periodAgnosticSlug,slug:e.periodAgnosticSlug,domain:d,tagline:null!==(i=h&&(null==E?void 0:E[e.periodAgnosticSlug]))&&void 0!==i?i:e.description,CTAVariation:y,features:null!==(a=e.features)&&void 0!==a?a:[],billingPeriod:m,isPopular:e.isPopular,isFree:e.isFree,name:null==e?void 0:e.title.toString(),isSelected:!!t&&t===(null===(c=A(e.periodAgnosticSlug,m))||void 0===c?void 0:c.productId),onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return N((function(e){return!e}))},disabledLabel:null==p?void 0:p[e.periodAgnosticSlug]})})))}},2893:function(e,t,n){"use strict";var r=n(1068),i=n.n(r),o=n(3027),a=n(3804),c=n(2779),s=n.n(c),u=n(7997),l=n(1417),d=n(3163),p=n(9215),f=n(5707),m=n(5869),g=n(9806),h=n(373),v=n(9255),y=(0,o.createElement)(m.Z,{icon:g.Z,size:17}),b=(0,o.createElement)("svg",{width:"8",viewBox:"0 0 8 4"},(0,o.createElement)("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));t.Z=function(e){var t,n=e.slug,r=e.name,c=e.tagline,m=e.isPopular,g=void 0!==m&&m,_=e.isFree,E=void 0!==_&&_,S=e.domain,w=e.features,C=e.billingPeriod,x=e.onSelect,P=e.onPickDomainClick,k=e.onToggleExpandAll,N=e.allPlansExpanded,A=e.disabledLabel,O=e.CTAVariation,L=void 0===O?"NORMAL":O,T=e.popularBadgeVariation,I=void 0===T?"ON_TOP":T,D=e.isSelected,__=(0,p.QT)().__,F=(0,f.useSelect)((function(e){return e(v.F).getPlanProduct(n,C)})),R=a.useState(!1),Z=i()(R,2),j=Z[0],M=Z[1],B=(0,l.useViewportMatch)("mobile",">=");a.useEffect((function(){M(N)}),[N]);var U=N||B||g||j,V=__("Choose","full-site-editing"),z=__("Current Selection","full-site-editing"),H=__("Select %s","full-site-editing"),$=__("billed annually","full-site-editing"),G=__("per month, billed monthly","full-site-editing"),q=__("Collapse all plans","full-site-editing"),W=__("Expand all plans","full-site-editing");return(0,o.createElement)("div",{className:s()("plan-item",{"is-popular":g,"is-open":U,"badge-next-to-name":"NEXT_TO_NAME"===I})},g&&"ON_TOP"===I&&(0,o.createElement)("span",{className:"plan-item__badge"},__("Popular","full-site-editing")),(0,o.createElement)("div",{className:s()("plan-item__viewport",{"is-popular":g})},(0,o.createElement)("div",{className:"plan-item__details"},(0,o.createElement)("div",{tabIndex:0,role:"button",onClick:function(){return M((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&M((function(e){return!e}))},className:"plan-item__summary"},(0,o.createElement)("div",{className:s()("plan-item__heading",{"badge-next-to-name":"NEXT_TO_NAME"===I})},(0,o.createElement)("div",{className:"plan-item__name"},r),g&&"NEXT_TO_NAME"===I&&(0,o.createElement)("span",{className:"plan-item__badge-next-to-name"},__("Popular","full-site-editing"))),c&&(0,o.createElement)("p",{className:"plan-item__tagline"},c),(0,o.createElement)("div",{className:"plan-item__price"},(0,o.createElement)("div",{className:s()("plan-item__price-amount",{"is-loading":!(null!=F&&F.price)})},(null==F?void 0:F.price)||" ")),!U&&(0,o.createElement)("div",{className:"plan-item__dropdown-chevron"},b)),(0,o.createElement)("div",{hidden:!U},(0,o.createElement)("div",{className:"plan-item__price-note"},E&&__("free forever","full-site-editing"),!E&&("ANNUALLY"===C?$:G)),(0,o.createElement)("div",{className:s()("plan-item__price-discount",{"plan-item__price-discount--disabled":"ANNUALLY"!==C,"plan-item__price-discount--hidden":E}),"aria-hidden":E?"true":"false"},(0,d.sprintf)(__("Save %(discountRate)s%% by paying annually","full-site-editing"),{discountRate:null!==(t=null==F?void 0:F.annualDiscount)&&void 0!==t?t:0})),(0,o.createElement)("div",{className:"plan-item__actions"},"NORMAL"===L?(0,o.createElement)(u.Button,{className:"plan-item__select-button",onClick:function(){x(null==F?void 0:F.productId)},isPrimary:!0,disabled:!!A},(0,o.createElement)("span",null,null!=A?A:V)):(0,o.createElement)(u.Button,{className:s()("plan-item__select-button full-width",{"is-selected":D,"is-popular":g}),onClick:function(){x(null==F?void 0:F.productId)},isPrimary:g,disabled:!!A},(0,o.createElement)("span",null,null!=A?A:(0,o.createElement)(o.Fragment,null,D?y:"",D?(0,d.sprintf)(z,r):(0,d.sprintf)(H,r))))),(0,o.createElement)(h.Z,{features:w,domain:S,isFree:E,isOpen:U,onPickDomain:P,disabledLabel:A&&(0,d.sprintf)(__("%s is not included","full-site-editing"),null==S?void 0:S.domain_name),billingPeriod:C})))),g&&!B&&(0,o.createElement)(u.Button,{onClick:k,className:"plan-item__mobile-expand-all-plans",isLink:!0},N?q:W))}},5532:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(85),i=n.n(r),o=n(5198),a=n.n(o),c=n(270),s=n.n(c),u=n(4564),l=n.n(u),d=n(1260),p=n.n(d),f=n(3027),m=n(3980),g=n.n(m),h=n(3804),v=n.n(h),y=n(2779),b=n.n(y),_=n(8268),E=(n(4070),function(e){s()(n,e);var t=l()(n);function n(){return i()(this,n),t.apply(this,arguments)}return a()(n,[{key:"render",value:function(){var e={"is-compact":this.props.compact,"is-primary":this.props.primary};return(0,f.createElement)("ul",{className:b()("segmented-control",e,this.props.className),style:this.props.style,role:"radiogroup"},this.props.children)}}]),n}(v().Component));p()(E,"Item",_.Z),p()(E,"propTypes",{className:g().string,compact:g().bool,primary:g().bool,style:g().object,children:g().node.isRequired})},8268:function(e,t,n){"use strict";var r=n(85),i=n.n(r),o=n(5198),a=n.n(o),c=n(8111),s=n.n(c),u=n(270),l=n.n(u),d=n(4564),p=n.n(d),f=n(1260),m=n.n(f),g=n(3027),h=n(3980),v=n.n(h),y=n(3804),b=n.n(y),_=n(2779),E=n.n(_),S=function(e){l()(n,e);var t=p()(n);function n(){var e;i()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),m()(s()(e),"handleKeyEvent",(function(e){switch(e.keyCode){case 13:case 32:e.preventDefault(),document.activeElement.click()}})),e}return a()(n,[{key:"render",value:function(){var e=E()({"segmented-control__item":!0,"is-selected":this.props.selected}),t=E()("segmented-control__link",m()({},"item-index-".concat(this.props.index),null!=this.props.index));return(0,g.createElement)("li",{className:e},(0,g.createElement)("a",{href:this.props.path,className:t,onClick:this.props.onClick,title:this.props.title,"data-e2e-value":this.props.value,role:"radio",tabIndex:0,"aria-checked":this.props.selected,onKeyDown:this.handleKeyEvent},(0,g.createElement)("span",{className:"segmented-control__text"},this.props.children)))}}]),n}(b().Component);m()(S,"propTypes",{children:v().node.isRequired,path:v().string,selected:v().bool,title:v().string,value:v().string,onClick:v().func,index:v().number}),m()(S,"defaultProps",{selected:!1}),t.Z=S},9255:function(e,t,n){"use strict";n.d(t,{F:function(){return o},J:function(){return a}});var r=n(9734),i=n(182),o=r.z2(),a=i.z()},9215:function(e,t,n){"use strict";n.d(t,{QT:function(){return m}});var r=n(5182),i=n.n(r),o=n(8527),a=n.n(o),c=(n(1068),n(3027)),s=n(3804),u=n(3163),l=n(1417),d=n(5799),p={__:u.__,_n:u._n,_nx:u._nx,_x:u._x,isRTL:u.isRTL,setLocaleData:u.setLocaleData},f=s.createContext(h()),m=function(){return s.useContext(f)};(0,l.createHigherOrderComponent)((function(e){return function(t){var n=m();return(0,c.createElement)(e,a()({},n,t))}}),"withI18n");function g(e,t,n){var r=e[t],o=n.hasFilter,a=n.applyFilters;return o("preTranslation")||o("postTranslation")?function(){for(var e=arguments.length,o=new Array(e),c=0;c<e;c++)o[c]=arguments[c];var s=a("preTranslation",o,t,n);return a("postTranslation",r.apply(void 0,i()(s)),s,t,n)}:r}function h(e,t){var n=e?(0,u.createI18n)(e):p,r=e?function(t,n){return function(e,t,n){return("string"==typeof n?"".concat(n,"",t):t)in e}(e,t,n)}:void 0,i=null!=t?t:(0,d.createHooks)(),o=i.addFilter,a=i.removeFilter,c={addFilter:o,removeFilter:a,hasFilter:i.hasFilter,applyFilters:i.applyFilters};return{__:g(n,"__",c),_n:g(n,"_n",c),_nx:g(n,"_nx",c),_x:g(n,"_x",c),isRTL:n.isRTL,localeData:e,hasTranslation:r,addFilter:o,removeFilter:a}}},8552:function(e,t,n){"use strict";n.d(t,{Vw:function(){return E},sS:function(){return P}});var r,i=n(2278),o=n(2884),a=n.n(o),c=n(8650),s=n.n(c),u=n(8049),l=n.n(u)()("wpcom-proxy-request"),d="https://public-api.wordpress.com",p=window.location.protocol+"//"+window.location.host,f=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),m=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),g=null,h=!1,v={},y=!!window.ProgressEvent&&!!window.FormData;l('using "origin": %o',p);var b=function(e,t){var n=Object.assign({},e);l("request(%o)",n),g||x();var o=(0,i.Z)();n.callback=o,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=y,n.method=String(n.method||"GET").toUpperCase(),l("params object: %o",n);var a=new window.XMLHttpRequest;if(a.params=n,v[o]=a,"function"==typeof t){var c=!1,s=function(e){if(!c){c=!0;var n=e.error||e.err||e;l("error: ",n),l("headers: ",e.headers),t(n,null,e.headers)}};a.addEventListener("load",(function(e){if(!c){c=!0;var n=e.response||a.response;l("body: ",n),l("headers: ",e.headers),t(null,n,e.headers)}})),a.addEventListener("abort",s),a.addEventListener("error",s)}return"function"==typeof n.onStreamRecord&&delete n.onStreamRecord,h?S(n):(l("buffering API request since proxying <iframe> is not yet loaded"),r.push(n)),a},_=function(e,t){return"function"==typeof t?b(e,t):new Promise((function(t,n){b(e,(function(e,r){e?n(e):t(r)}))}))};function E(){return _({metaAPI:{accessAllUsersBlogs:!0}})}function S(e){l("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!m)return;for(var t=0;t<e.length;t++){var n=C(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),g.contentWindow.postMessage(f?JSON.stringify(e):e,d)}function w(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function C(e){return w(e)?e:"object"==typeof e&&w(e.fileContents)?e.fileContents:null}function x(){l("install()"),g&&(l("uninstall()"),window.removeEventListener("message",k),document.body.removeChild(g),h=!1,g=null),r=[],window.addEventListener("message",k),(g=document.createElement("iframe")).src=d+"/wp-admin/rest-proxy/?v=2.0#"+p,g.style.display="none",document.body.appendChild(g)}var P=function(){x()};function k(e){if(l("onmessage"),e.origin===d)if(e.source===g.contentWindow){var t=e.data;if(!t)return l("no `data`, bailing");if("ready"!==t){if(f&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){l('got "progress" event: %o',e);var t=v[e.callbackId];if(t){var n=new(s())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return l("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in v))return l("bailing, no matching request with callback: %o",n);var i,o=v[n],c=o.params,u=t[0],p=t[1],m=t[2];if(207===p||delete v[n],c.metaAPI?p="metaAPIupdated"===u?200:500:l("got %o status code for URL: %o",p,c.path),"object"==typeof m)if(m.status=p,i=m["Content-Type"],/^application[/]x-ndjson($|;)/.test(i))return void N(o,new Error("stream mode processing is not yet implemented for wpcom-proxy-request"),m);if(p&&2===Math.floor(p/100))!function(e,t,n){var r=new(s())("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(o,u,m);else N(o,a()(c,p,u),m)}else!function(){if(l('proxy <iframe> "load" event'),h=!0,r){for(var e=0;e<r.length;e++)S(r[e]);r=null}}()}else l("ignoring message... iframe elements do not match");else l("ignoring message... %o !== %o",e.origin,d)}function N(e,t,n){var r=new(s())("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}t.ZP=_},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var a=r,c=Number(new Date),s=c-(n||c);a.diff=s,a.prev=n,a.curr=c,n=c,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var r=t.formatters[n];if("function"==typeof r){var o=i[u];e=r.call(a,o),i.splice(u,1),u--}return e})),t.formatArgs.call(a,i);var l=a.log||t.log;l.apply(a,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(a)),r(t.skips.map(a).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var r=n(956);e.exports=function(){var e=r.apply(r,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},7127:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(3804),i=n(669);function o(e,t){return e===t}function a(e,t,n){var a=n&&n.equalityFn?n.equalityFn:o,c=(0,r.useState)(e),s=c[0],u=c[1],l=(0,i.Z)((0,r.useCallback)((function(e){return u(e)}),[]),t,n),d=l[0],p=l[1],f=(0,r.useRef)(e);return(0,r.useEffect)((function(){a(f.current,e)||(d(e),f.current=e)}),[e,d,a]),[s,p]}},669:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(3804);function i(e,t,n){void 0===n&&(n={});var i=n.maxWait,o=(0,r.useRef)(null),a=(0,r.useRef)([]),c=n.leading,s=(0,r.useRef)(!1),u=(0,r.useRef)(null),l=(0,r.useRef)(!1),d=(0,r.useRef)(e);d.current=e;var p=(0,r.useCallback)((function(){clearTimeout(u.current),clearTimeout(o.current),o.current=null,a.current=[],u.current=null,s.current=!1}),[]);(0,r.useEffect)((function(){return function(){l.current=!0}}),[]);return[(0,r.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(a.current=e,clearTimeout(u.current),!u.current&&c&&!s.current)return d.current.apply(d,e),void(s.current=!0);u.current=setTimeout((function(){p(),l.current||d.current.apply(d,e)}),t),i&&!o.current&&(o.current=setTimeout((function(){var e=a.current;p(),l.current||d.current.apply(null,e)}),i))}),[i,t,p,c]),p,function(){u.current&&(d.current.apply(null,a.current),p())}]}},8186:function(e,t,n){"use strict";var r=n(7320),i=n(3804);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,o=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=o[0];var a=o[1];return o=e.value,e.getCurrentValue===t&&e.subscribe===n||(o=t(),a({getCurrentValue:t,subscribe:n,value:o})),i.useDebugValue(o),i.useEffect((function(){function e(){if(!i){var e=t();a((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,o=n(e);return e(),function(){i=!0,o()}}),[t,n]),o}},6718:function(e,t,n){"use strict";e.exports=n(8186)},2884:function(e,t,n){var r=n(3830),i=n(7260);function o(e,t){if(t)if("number"==typeof t)a(e,t);else{t.status_code&&a(e,t.status_code),t.error&&(e.name=s(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)o(e,n.length?n[0]:n);for(var r in t)e[r]=t[r];e.status&&(t.method||t.path)&&c(e)}}function a(e,t){e.name=s(i[t]),e.status=e.statusCode=t,c(e)}function c(e){var t=e.status,n=e.method,r=e.path,i=t+" status code",o=n||r;o&&(i+=' for "'),n&&(i+=n),o&&(i+=" "),r&&(i+=r),o&&(i+='"'),e.message=i}function s(e){return r(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)o(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},7260:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},4024:function(e,t){"use strict";for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.Z=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},9771:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},6374:function(e,t,n){"use strict";var r=n(9771),i=n(4024);t.Z=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r.Z)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var c=0;c<16;++c)t[o+c]=a[c];return t||(0,i.Z)(a)}},4947:function(e,t){"use strict";for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.Z=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},4750:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function o(){if(!r)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},2278:function(e,t,n){"use strict";var r=n(4750),i=n(4947);t.Z=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r.Z)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var c=0;c<16;++c)t[o+c]=a[c];return t||(0,i.Z)(a)}},3804:function(e){"use strict";e.exports=window.React},8681:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},1205:function(e){"use strict";e.exports=window.lodash},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},9866:function(e){"use strict";e.exports=window.wp.dataControls},3613:function(e){"use strict";e.exports=window.wp.deprecated},3027:function(e){"use strict";e.exports=window.wp.element},5799:function(e){"use strict";e.exports=window.wp.hooks},3163:function(e){"use strict";e.exports=window.wp.i18n},1200:function(e){"use strict";e.exports=window.wp.plugins},2418:function(e){"use strict";e.exports=window.wp.primitives},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(7456)}());
|
editor-site-launch/dist/launch-button.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-i18n', 'wp-polyfill'), 'version' => 'b5becb4f616728d93ec4de7c0f29b8c4');
|
editor-site-launch/src/attach-focused-launch.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
|
6 |
import { useSelect, useDispatch } from '@wordpress/data';
|
7 |
import { hasQueryArg } from '@wordpress/url';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
|
6 |
import { useSelect, useDispatch } from '@wordpress/data';
|
7 |
import { hasQueryArg } from '@wordpress/url';
|
editor-site-launch/src/attach-launch-sidebar.tsx
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { useDispatch, useSelect } from '@wordpress/data';
|
6 |
import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
|
7 |
import { doAction, hasAction } from '@wordpress/hooks';
|
8 |
import { LaunchContext } from '@automattic/launch';
|
9 |
-
import { LocaleProvider } from '@automattic/i18n-utils';
|
10 |
|
11 |
/**
|
12 |
* Internal dependencies
|
@@ -47,7 +47,7 @@ registerPlugin( 'a8c-editor-site-launch', {
|
|
47 |
}
|
48 |
|
49 |
return (
|
50 |
-
<LocaleProvider localeSlug={ window.wpcomEditorSiteLaunch?.locale }>
|
51 |
<LaunchContext.Provider
|
52 |
value={ {
|
53 |
siteId: window._currentSiteId,
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { useDispatch, useSelect } from '@wordpress/data';
|
6 |
import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins';
|
7 |
import { doAction, hasAction } from '@wordpress/hooks';
|
8 |
import { LaunchContext } from '@automattic/launch';
|
9 |
+
import { LocaleProvider, i18nDefaultLocaleSlug } from '@automattic/i18n-utils';
|
10 |
|
11 |
/**
|
12 |
* Internal dependencies
|
47 |
}
|
48 |
|
49 |
return (
|
50 |
+
<LocaleProvider localeSlug={ window.wpcomEditorSiteLaunch?.locale ?? i18nDefaultLocaleSlug }>
|
51 |
<LaunchContext.Provider
|
52 |
value={ {
|
53 |
siteId: window._currentSiteId,
|
editor-site-launch/src/launch-focused-modal/index.tsx
DELETED
File without changes
|
editor-site-launch/src/launch-menu/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
import { useI18n } from '@automattic/react-i18n';
|
7 |
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
import { useI18n } from '@automattic/react-i18n';
|
7 |
|
editor-site-launch/src/launch-menu/item.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { Button, SVG, Circle } from '@wordpress/components';
|
6 |
import { Icon, check } from '@wordpress/icons';
|
7 |
import classnames from 'classnames';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { Button, SVG, Circle } from '@wordpress/components';
|
6 |
import { Icon, check } from '@wordpress/icons';
|
7 |
import classnames from 'classnames';
|
editor-site-launch/src/launch-modal/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import classnames from 'classnames';
|
6 |
import { useDispatch, useSelect } from '@wordpress/data';
|
7 |
import { __ } from '@wordpress/i18n';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import classnames from 'classnames';
|
6 |
import { useDispatch, useSelect } from '@wordpress/data';
|
7 |
import { __ } from '@wordpress/i18n';
|
editor-site-launch/src/launch-progress/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { useSelect } from '@wordpress/data';
|
6 |
import { sprintf } from '@wordpress/i18n';
|
7 |
import { useI18n } from '@automattic/react-i18n';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { useSelect } from '@wordpress/data';
|
6 |
import { sprintf } from '@wordpress/i18n';
|
7 |
import { useI18n } from '@automattic/react-i18n';
|
editor-site-launch/src/launch-sidebar/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { __ } from '@wordpress/i18n';
|
6 |
import { useSelect, useDispatch } from '@wordpress/data';
|
7 |
import { Title, SubTitle, ActionButtons, NextButton } from '@automattic/onboarding';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { __ } from '@wordpress/i18n';
|
6 |
import { useSelect, useDispatch } from '@wordpress/data';
|
7 |
import { Title, SubTitle, ActionButtons, NextButton } from '@automattic/onboarding';
|
editor-site-launch/src/launch-step/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
|
6 |
/**
|
7 |
* Internal dependencies
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
|
6 |
/**
|
7 |
* Internal dependencies
|
editor-site-launch/src/launch-steps/domain-step/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { useDispatch } from '@wordpress/data';
|
6 |
import { __ } from '@wordpress/i18n';
|
7 |
import DomainPicker, { mockDomainSuggestion } from '@automattic/domain-picker';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { useDispatch } from '@wordpress/data';
|
6 |
import { __ } from '@wordpress/i18n';
|
7 |
import DomainPicker, { mockDomainSuggestion } from '@automattic/domain-picker';
|
editor-site-launch/src/launch-steps/final-step/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import classnames from 'classnames';
|
6 |
import { ThemeProvider } from 'emotion-theming';
|
7 |
import { createInterpolateElement } from '@wordpress/element';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import classnames from 'classnames';
|
6 |
import { ThemeProvider } from 'emotion-theming';
|
7 |
import { createInterpolateElement } from '@wordpress/element';
|
editor-site-launch/src/launch-steps/name-step/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { __ } from '@wordpress/i18n';
|
6 |
import { TextControl, Tip } from '@wordpress/components';
|
7 |
import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { __ } from '@wordpress/i18n';
|
6 |
import { TextControl, Tip } from '@wordpress/components';
|
7 |
import { Title, SubTitle, ActionButtons, BackButton, NextButton } from '@automattic/onboarding';
|
editor-site-launch/src/launch-steps/plan-step/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
import { __, sprintf } from '@wordpress/i18n';
|
7 |
import PlansGrid from '@automattic/plans-grid';
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
import { __, sprintf } from '@wordpress/i18n';
|
7 |
import PlansGrid from '@automattic/plans-grid';
|
editor-site-launch/src/launch/index.tsx
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
-
import
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
/**
|
7 |
* Internal dependencies
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { useSelect, useDispatch } from '@wordpress/data';
|
6 |
/**
|
7 |
* Internal dependencies
|
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.
|
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.
|
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.1041
|
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.1041' );
|
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.
|
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.1041
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
whats-new/dist/whats-new.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill'), 'version' => '34deec1c21a451a483a25620e9b94e1a');
|
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f06951a7ab73b5d6e699e57ed23f967c');
|
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.js
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,s,u;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=h(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},8032:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=n(9561),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,v=o.g1_256,m=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(v(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],m=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(_,p(b),l(b,y,w),this.k[r],n[r]),E=a(d(i),f(i,o,m));_=w,w=y,y=b,b=a(g,C),g=m,m=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],_)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,c,u){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+a>>>0)<a?1:0,e+n+i+s+c+(l+=(f=f+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,c,u){return t+r+o+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5260:function(){},2683:function(){},9719:function(){},8651:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},702:function(e,t,n){"use strict";n.r(t);n(9753),n(4286)},6970:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r={toggleSidebar:function(){return{type:"TOGGLE_SIDEBAR"}},setSidebarClosing:function(e){return{type:"SET_SIDEBAR_CLOSING",isClosing:e}}}},9753:function(e,t,n){"use strict";var r,i,o=n(1068),s=n.n(o),a=n(3027),c=n(5707),u=n(7649),l=n(1200),f=n(6845),d=n(3999);void 0!==u.__experimentalMainDashboardButton&&(r="a8c-full-site-editing-nav-sidebar",i={render:function(){var e=(0,c.useDispatch)("core").addEntities;(0,a.useEffect)((function(){e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);var t=(0,a.useState)((function(){return document.createElement("div")})),n=s()(t,1)[0];(0,a.useEffect)((function(){return document.body.appendChild(n),function(){document.body.removeChild(n)}}));var r=(0,c.useSelect)((function(e){return!!e("core/edit-site")})),i=(0,c.useSelect)((function(e){return e("core/edit-post").isFeatureActive("fullscreenMode")}));return r||!i?null:(0,a.createElement)(u.__experimentalMainDashboardButton,null,(0,a.createElement)(d.Z,null),(0,a.createPortal)((0,a.createElement)(f.Z,null),n))}},(0,l.registerPlugin)(r,i))},9332:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(2220),i=n.n(r),o=n(3027),s=n(3804),a=n(7997),c=n(5799),u=n(3163),l=n(791),f=n(6115),d=n(8270),__=(n(5260),u.__),p=function(e){var t=e.children,n=i()(e,["children"]);return(0,o.createElement)(a.Button,n,t)};function h(e){var t=e.postType,n=(0,s.get)(t,["labels","add_new_item"],__("Create","full-site-editing")),r=(0,c.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostLabel",n,t.slug),i=(0,l.addQueryArgs)("post-new.php",{post_type:t.slug}),a=(0,c.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostUrl",i,t.slug);return(0,o.createElement)(p,{target:(0,c.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0),isPrimary:!0,className:"wpcom-block-editor-nav-sidebar-create-page",href:a,icon:d.Z,onClick:function(){(0,f.jN)("calypso_editor_sidebar_item_add",{post_type:t.slug})}},r)}},7358:function(e,t,n){"use strict";var r=n(3027),i=n(2779),o=n.n(i),s=n(7997),a=n(3163),c=n(791),u=n(5799),l=n(6115),_x=(n(2683),a._x),f=(0,r.forwardRef)((function(e,t){var n,i,a,f=e.item,d=e.postType,p=e.selected,h=e.statusLabel,v=o()("wpcom-block-editor-nav-item",{"is-selected":p}),m=o()("wpcom-block-editor-nav-item__title",{"is-untitled":!(null!==(n=f.title)&&void 0!==n&&n.raw)}),g=(0,c.addQueryArgs)("post.php",{post:f.id,action:"edit"}),b=(0,u.applyFilters)("a8c.WpcomBlockEditorNavSidebar.editPostUrl",g,f.id,d.slug);return(0,r.createElement)("li",{ref:t},(0,r.createElement)(s.Button,{className:v,href:b,onClick:function(){(0,l.jN)("calypso_editor_sidebar_item_edit",{post_type:d.slug})},target:(0,u.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0)},(0,r.createElement)("div",{className:m,title:null===(i=f.title)||void 0===i?void 0:i.raw},(null===(a=f.title)||void 0===a?void 0:a.raw)||_x("Untitled","post title for posts with no title","full-site-editing")),h&&(0,r.createElement)("div",{className:"wpcom-block-editor-nav-item__label"},h)))}));t.Z=f},6845:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),s=n.n(o),a=n(5182),c=n.n(a),u=n(1068),l=n.n(u),f=n(8527),d=n.n(f),p=n(2220),h=n.n(p),v=n(3027),m=n(1424),g=n(5707),b=n(6115),y=n(7997),w=n(1742),_=n(1100),C=n(3163),E=n(5799),k=n(3804),x=n(791),F=n(2779),S=n.n(F),O=n(3983),L=n(1417),j=n(1765),A=n(9332),N=n(7358),__=(n(9719),C.__),P=(0,v.forwardRef)((function(e,t){var n=e.children,r=h()(e,["children"]);return(0,v.createElement)(y.Button,d()({ref:t},r),n)}));t.Z=(0,L.compose)([y.withConstrainedTabbing])((function(){var e,t,n,r=(0,g.useDispatch)(j.L),o=r.toggleSidebar,a=r.setSidebarClosing,u=(0,g.useSelect)((function(e){var t,n=e("core"),r=n.getPostType,i=n.getSite;return[e(j.L).isSidebarOpened(),e(j.L).isSidebarClosing(),r(e("core/editor").getCurrentPostType()),e("core/editor").getCurrentPostId(),null===(t=i())||void 0===t?void 0:t.title]})),f=l()(u,5),d=f[0],p=f[1],h=f[2],C=f[3],F=f[4],L=(0,g.useSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,i=t.getCurrentPostType,o=t.getEditedPostAttribute,s=e("core").getEntityRecords("root","status");if(!s)return[];var a=s.filter((function(e){return e.show_in_list})).map((function(e){return e.slug})).join(","),u=r(),f=i(),d=e("core").getEntityRecords("postType",f,{_fields:"id,status,title",exclude:[u].concat(c()(j.$)),orderby:"modified",per_page:10,status:a})||[],p={id:u,status:n()?"draft":o("status"),title:{raw:o("title"),rendered:""}},h=(0,k.partition)(d,{status:"draft"}),v=l()(h,2);return{current:[p],drafts:v[0],recent:v[1]}})),T=L.current,M=L.drafts,B=L.recent,R=(0,g.useSelect)((function(e){return(e("core").getEntityRecords("root","status")||[]).reduce((function(e,t){var n=t.name,r=t.slug;return"publish"===r?e:s()(s()({},e),{},i()({},r,n))}),{})})),I=(0,v.useRef)(d);(0,v.useLayoutEffect)((function(){!d&&I.current&&a(!0),I.current=d}),[d,I,a]);var Z=(0,v.useRef)(null);if((0,v.useEffect)((function(){d||p||!Z.current||(Z.current.focus(),Z.current=null)}),[d,p,Z]),!h)return null;if(!d&&!p)return null;var z=(0,x.addQueryArgs)("edit.php",{post_type:h.slug}),D=(0,E.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeUrl",z),W=(0,k.get)(h,["labels","all_items"],__("Back","full-site-editing")),U=(0,E.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeLabel",W),G=(0,k.get)(h,["labels","name"]),H=(0,E.applyFilters)("a8c.WpcomBlockEditorNavSidebar.listHeading",G,h.slug),$="page"===h.slug?__("Contains links to your dashboard or to edit other pages on your site. Press the Escape key to close.","full-site-editing"):__("Contains links to your dashboard or to edit other posts on your site. Press the Escape key to close.","full-site-editing"),q=function(){d&&!p&&((0,b.jN)("calypso_editor_sidebar_dismiss"),o())};return(0,v.createElement)(y.IsolatedEventContainer,{className:S()("wpcom-block-editor-nav-sidebar-nav-sidebar__click-guard",{"is-fading-out":p}),onAnimationEnd:function(e){"wpcom-block-editor-nav-sidebar-nav-sidebar__fade"===e.animationName&&p&&a(!1)},onClick:function(e){e.currentTarget===e.target&&q()},onKeyDown:function(e){e.keyCode===O.ESCAPE&&(e.stopPropagation(),q())}},(0,v.createElement)("div",{"aria-label":__("Block editor sidebar","full-site-editing"),"aria-description":$,className:S()("wpcom-block-editor-nav-sidebar-nav-sidebar__container",{"is-sliding-left":p}),role:"dialog",tabIndex:-1},(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__header"},(0,v.createElement)(P,{label:__("Close block editor sidebar","full-site-editing"),showTooltip:!0,ref:function(e){e&&(Z.current=document.activeElement,e.focus())},className:S()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-nav-sidebar__dismiss-sidebar-button"),icon:w.Z,iconSize:36,onClick:q}),(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__site-title"},(0,v.createElement)("h2",null,(0,m.decodeEntities)(F)))),(0,v.createElement)(P,{"aria-description":__("Returns to the dashboard","full-site-editing"),href:D,className:"wpcom-block-editor-nav-sidebar-nav-sidebar__home-button",icon:_.Z,onClick:function(e){(0,E.hasAction)("a8c.wpcom-block-editor.closeEditor")&&(e.preventDefault(),(0,b.jN)("calypso_editor_sidebar_editor_close"),(0,E.doAction)("a8c.wpcom-block-editor.closeEditor"))}},U),(0,v.createElement)("h2",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-heading"},H),(0,v.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},__("Currently editing","full-site-editing")),!(0,k.isEmpty)(T)&&(0,v.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},(0,v.createElement)(N.Z,{key:null===(e=T[0])||void 0===e?void 0:e.id,item:T[0],postType:h,selected:(null===(t=T[0])||void 0===t?void 0:t.id)===C,statusLabel:R[null===(n=T[0])||void 0===n?void 0:n.status]})),(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__post-scroll-area"},!(0,k.isEmpty)(B)&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},__("Recently edited","full-site-editing")),(0,v.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},B.map((function(e){return(0,v.createElement)(N.Z,{key:e.id,item:e,postType:h,selected:e.id===C,statusLabel:R[e.status]})})))),!(0,k.isEmpty)(M)&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},__("Drafts","full-site-editing")),(0,v.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},M.map((function(e){return(0,v.createElement)(N.Z,{key:e.id,item:e,postType:h,selected:e.id===C})}))))),(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__bottom-buttons"},(0,v.createElement)(A.Z,{postType:h}))))}))},3999:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(2220),i=n.n(r),o=n(3027),s=n(7997),a=n(1742),c=n(5707),u=n(6115),l=n(3163),f=n(2779),d=n.n(f),p=n(1765),__=(n(8651),l.__),h=function(e){var t=e.children,n=i()(e,["children"]);return(0,o.createElement)(s.Button,n,t)};function v(){var e=(0,c.useDispatch)(p.L).toggleSidebar,t=(0,c.useSelect)((function(e){return e(p.L).isSidebarOpened()})),n=(0,c.useSelect)((function(e){return e(p.L).isSidebarClosing()}));return(0,o.createElement)(h,{label:__("Block editor sidebar","full-site-editing"),showTooltip:!0,className:d()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-toggle-sidebar-button__button",{"is-hidden":t||n}),icon:a.Z,iconSize:36,onClick:function(){(0,u.jN)("calypso_editor_sidebar_open"),e()},"aria-haspopup":"dialog","aria-expanded":t})}},1765:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return i},$:function(){return o}});var i="automattic/block-editor-nav-sidebar",o=((null===(r=window.wpcomBlockEditorNavSidebar)||void 0===r?void 0:r.postIdsToExclude)||[]).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}))},4286:function(e,t,n){"use strict";var r=n(5707),i=n(6970),o=n(1765),s=(0,r.combineReducers)({opened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SIDEBAR":return!e;default:return e}},closing: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_SIDEBAR_CLOSING":return t.isClosing;default:return e}}});(0,r.registerStore)(o.L,{actions:i.N,reducer:s,selectors:{isSidebarOpened:function(e){return e.opened},isSidebarClosing:function(e){return e.closing}}})},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);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 p}});n(1068);var r,i=n(417),o=n.n(i),s=(n(5182),n(3804)),a=(n(3421),n(2699)),c=n(4898),u=(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 f(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,c.ve)("//stats.wp.com/w2.js?1");var d=new a.EventEmitter;function p(e,t){if(t=t||{},(0,u.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,s.includes)(l,e)){if(r){var n=r(t);t=o()(o()({},t),n)}t=(0,s.omitBy)(t,s.isUndefined),(0,u.Z)('Recording event "%s" with actual props %o',e,t),f(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,u.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},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)},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return a},lZ:function(){return c},_W:function(){return l},Yt:function(){return f}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function a(e){return s().has(e)}function c(e,t){var n=s();a(e)?(i('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(i('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));i(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function l(){var e=this.getAttribute("src");i('Handling successful request for "'.concat(e,'"')),u(e),this.onload=null}function f(){var e=this.getAttribute("src");i('Handling failed request for "'.concat(e,'"')),u(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return a},k:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=i()("lib/load-script/dom-operations");function a(e){s('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function c(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return a}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function a(e,t){if(!(0,o.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise((function(t,n){(0,o.lZ)(e,(function(e){null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),c=a-(n||a);s.diff=c,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var r=t.formatters[n];if("function"==typeof r){var o=i[u];e=r.call(s,o),i.splice(u,1),u--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3804:function(e){"use strict";e.exports=window.lodash},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},7649:function(e){"use strict";e.exports=window.wp.editPost},3027:function(e){"use strict";e.exports=window.wp.element},5799:function(e){"use strict";e.exports=window.wp.hooks},1424:function(e){"use strict";e.exports=window.wp.htmlEntities},3163:function(e){"use strict";e.exports=window.wp.i18n},3983:function(e){"use strict";e.exports=window.wp.keycodes},1200:function(e){"use strict";e.exports=window.wp.plugins},2418:function(e){"use strict";e.exports=window.wp.primitives},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(702)}());
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var s=i.apply(null,n);s&&e.push(s)}else if("object"===o)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,s,u;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):h(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,l=h(c,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},8032:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=n(9561),a=r.sum32,c=r.sum32_4,u=r.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,v=o.g1_256,m=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(v(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],m=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=u(_,p(b),l(b,y,w),this.k[r],n[r]),E=a(d(i),f(i,o,m));_=w,w=y,y=b,b=a(g,C),g=m,m=o,o=i,i=a(C,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],m),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],_)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var c=0,u=t;return c+=(u=u+r>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+n+i+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,c,u){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+a>>>0)<a?1:0,e+n+i+s+c+(l+=(f=f+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,c,u){return t+r+o+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},5260:function(){},2683:function(){},9719:function(){},8651:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return a(e,o,i,"day");if(o>=r)return a(e,o,r,"hour");if(o>=n)return a(e,o,n,"minute");if(o>=t)return a(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},702:function(e,t,n){"use strict";n.r(t);n(9753),n(4286)},6970:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r={toggleSidebar:function(){return{type:"TOGGLE_SIDEBAR"}},setSidebarClosing:function(e){return{type:"SET_SIDEBAR_CLOSING",isClosing:e}}}},9753:function(e,t,n){"use strict";var r,i,o=n(1068),s=n.n(o),a=n(3027),c=(n(3804),n(5707)),u=n(7649),l=n(1200),f=n(6845),d=n(3999);void 0!==u.__experimentalMainDashboardButton&&(r="a8c-full-site-editing-nav-sidebar",i={render:function(){var e=(0,c.useDispatch)("core").addEntities;(0,a.useEffect)((function(){e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);var t=(0,a.useState)((function(){return document.createElement("div")})),n=s()(t,1)[0];(0,a.useEffect)((function(){return document.body.appendChild(n),function(){document.body.removeChild(n)}}));var r=(0,c.useSelect)((function(e){return!!e("core/edit-site")})),i=(0,c.useSelect)((function(e){return e("core/edit-post").isFeatureActive("fullscreenMode")}));return r||!i?null:(0,a.createElement)(u.__experimentalMainDashboardButton,null,(0,a.createElement)(d.Z,null),(0,a.createPortal)((0,a.createElement)(f.Z,null),n))}},(0,l.registerPlugin)(r,i))},9332:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(2220),i=n.n(r),o=n(3027),s=(n(3804),n(1205)),a=n(7997),c=n(5799),u=n(3163),l=n(791),f=n(6115),d=n(8270),__=(n(5260),u.__),p=function(e){var t=e.children,n=i()(e,["children"]);return(0,o.createElement)(a.Button,n,t)};function h(e){var t=e.postType,n=(0,s.get)(t,["labels","add_new_item"],__("Create","full-site-editing")),r=(0,c.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostLabel",n,t.slug),i=(0,l.addQueryArgs)("post-new.php",{post_type:t.slug}),a=(0,c.applyFilters)("a8c.WpcomBlockEditorNavSidebar.createPostUrl",i,t.slug);return(0,o.createElement)(p,{target:(0,c.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0),isPrimary:!0,className:"wpcom-block-editor-nav-sidebar-create-page",href:a,icon:d.Z,onClick:function(){(0,f.jN)("calypso_editor_sidebar_item_add",{post_type:t.slug})}},r)}},7358:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i),s=n(7997),a=n(3163),c=n(791),u=n(5799),l=n(6115),_x=(n(2683),a._x),f=(0,r.forwardRef)((function(e,t){var n,i,a,f=e.item,d=e.postType,p=e.selected,h=e.statusLabel,v=o()("wpcom-block-editor-nav-item",{"is-selected":p}),m=o()("wpcom-block-editor-nav-item__title",{"is-untitled":!(null!==(n=f.title)&&void 0!==n&&n.raw)}),g=(0,c.addQueryArgs)("post.php",{post:f.id,action:"edit"}),b=(0,u.applyFilters)("a8c.WpcomBlockEditorNavSidebar.editPostUrl",g,f.id,d.slug);return(0,r.createElement)("li",{ref:t},(0,r.createElement)(s.Button,{className:v,href:b,onClick:function(){(0,l.jN)("calypso_editor_sidebar_item_edit",{post_type:d.slug})},target:(0,u.applyFilters)("a8c.WpcomBlockEditorNavSidebar.linkTarget",void 0)},(0,r.createElement)("div",{className:m,title:null===(i=f.title)||void 0===i?void 0:i.raw},(null===(a=f.title)||void 0===a?void 0:a.raw)||_x("Untitled","post title for posts with no title","full-site-editing")),h&&(0,r.createElement)("div",{className:"wpcom-block-editor-nav-item__label"},h)))}));t.Z=f},6845:function(e,t,n){"use strict";var r=n(1260),i=n.n(r),o=n(417),s=n.n(o),a=n(5182),c=n.n(a),u=n(1068),l=n.n(u),f=n(8527),d=n.n(f),p=n(2220),h=n.n(p),v=n(3027),m=(n(3804),n(1424)),g=n(5707),b=n(6115),y=n(7997),w=n(1742),_=n(1100),C=n(3163),E=n(5799),k=n(1205),x=n(791),F=n(2779),S=n.n(F),O=n(3983),L=n(1417),j=n(1765),A=n(9332),N=n(7358),__=(n(9719),C.__),P=(0,v.forwardRef)((function(e,t){var n=e.children,r=h()(e,["children"]);return(0,v.createElement)(y.Button,d()({ref:t},r),n)}));t.Z=(0,L.compose)([y.withConstrainedTabbing])((function(){var e,t,n,r=(0,g.useDispatch)(j.L),o=r.toggleSidebar,a=r.setSidebarClosing,u=(0,g.useSelect)((function(e){var t,n=e("core"),r=n.getPostType,i=n.getSite;return[e(j.L).isSidebarOpened(),e(j.L).isSidebarClosing(),r(e("core/editor").getCurrentPostType()),e("core/editor").getCurrentPostId(),null===(t=i())||void 0===t?void 0:t.title]})),f=l()(u,5),d=f[0],p=f[1],h=f[2],C=f[3],F=f[4],L=(0,g.useSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,i=t.getCurrentPostType,o=t.getEditedPostAttribute,s=e("core").getEntityRecords("root","status");if(!s)return{current:[],drafts:[],recent:[]};var a=s.filter((function(e){return e.show_in_list})).map((function(e){return e.slug})).join(","),u=r(),f=i(),d=e("core").getEntityRecords("postType",f,{_fields:"id,status,title",exclude:[u].concat(c()(j.$)),orderby:"modified",per_page:10,status:a})||[],p={id:u,status:n()?"draft":o("status"),title:{raw:o("title"),rendered:""}},h=(0,k.partition)(d,{status:"draft"}),v=l()(h,2);return{current:[p],drafts:v[0],recent:v[1]}})),T=L.current,M=L.drafts,R=L.recent,B=(0,g.useSelect)((function(e){return(e("core").getEntityRecords("root","status")||[]).reduce((function(e,t){var n=t.name,r=t.slug;return"publish"===r?e:s()(s()({},e),{},i()({},r,n))}),{})})),I=(0,v.useRef)(d);(0,v.useLayoutEffect)((function(){!d&&I.current&&a(!0),I.current=d}),[d,I,a]);var Z=(0,v.useRef)(null);if((0,v.useEffect)((function(){d||p||!Z.current||(Z.current.focus(),Z.current=null)}),[d,p,Z]),!h)return null;if(!d&&!p)return null;var z=(0,x.addQueryArgs)("edit.php",{post_type:h.slug}),D=(0,E.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeUrl",z),W=(0,k.get)(h,["labels","all_items"],__("Back","full-site-editing")),U=(0,E.applyFilters)("a8c.WpcomBlockEditorNavSidebar.closeLabel",W),G=(0,k.get)(h,["labels","name"]),H=(0,E.applyFilters)("a8c.WpcomBlockEditorNavSidebar.listHeading",G,h.slug),$="page"===h.slug?__("Contains links to your dashboard or to edit other pages on your site. Press the Escape key to close.","full-site-editing"):__("Contains links to your dashboard or to edit other posts on your site. Press the Escape key to close.","full-site-editing"),q=function(){d&&!p&&((0,b.jN)("calypso_editor_sidebar_dismiss"),o())};return(0,v.createElement)(y.IsolatedEventContainer,{className:S()("wpcom-block-editor-nav-sidebar-nav-sidebar__click-guard",{"is-fading-out":p}),onAnimationEnd:function(e){"wpcom-block-editor-nav-sidebar-nav-sidebar__fade"===e.animationName&&p&&a(!1)},onClick:function(e){e.currentTarget===e.target&&q()},onKeyDown:function(e){e.keyCode===O.ESCAPE&&(e.stopPropagation(),q())}},(0,v.createElement)("div",{"aria-label":__("Block editor sidebar","full-site-editing"),"aria-description":$,className:S()("wpcom-block-editor-nav-sidebar-nav-sidebar__container",{"is-sliding-left":p}),role:"dialog",tabIndex:-1},(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__header"},(0,v.createElement)(P,{label:__("Close block editor sidebar","full-site-editing"),showTooltip:!0,ref:function(e){e&&(Z.current=document.activeElement,e.focus())},className:S()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-nav-sidebar__dismiss-sidebar-button"),icon:w.Z,iconSize:36,onClick:q}),(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__site-title"},(0,v.createElement)("h2",null,F?(0,m.decodeEntities)(F):""))),(0,v.createElement)(P,{"aria-description":__("Returns to the dashboard","full-site-editing"),href:D,className:"wpcom-block-editor-nav-sidebar-nav-sidebar__home-button",icon:_.Z,onClick:function(e){(0,E.hasAction)("a8c.wpcom-block-editor.closeEditor")&&(e.preventDefault(),(0,b.jN)("calypso_editor_sidebar_editor_close"),(0,E.doAction)("a8c.wpcom-block-editor.closeEditor"))}},U),(0,v.createElement)("h2",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-heading"},H),(0,v.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},__("Currently editing","full-site-editing")),!(0,k.isEmpty)(T)&&(0,v.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},(0,v.createElement)(N.Z,{key:null===(e=T[0])||void 0===e?void 0:e.id,item:T[0],postType:h,selected:(null===(t=T[0])||void 0===t?void 0:t.id)===C,statusLabel:B[null===(n=T[0])||void 0===n?void 0:n.status]})),(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__post-scroll-area"},!(0,k.isEmpty)(R)&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},__("Recently edited","full-site-editing")),(0,v.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},R.map((function(e){return(0,v.createElement)(N.Z,{key:e.id,item:e,postType:h,selected:e.id===C,statusLabel:B[e.status]})})))),!(0,k.isEmpty)(M)&&(0,v.createElement)(v.Fragment,null,(0,v.createElement)("h3",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__list-subheading"},__("Drafts","full-site-editing")),(0,v.createElement)("ul",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__page-list"},M.map((function(e){return(0,v.createElement)(N.Z,{key:e.id,item:e,postType:h,selected:e.id===C})}))))),(0,v.createElement)("div",{className:"wpcom-block-editor-nav-sidebar-nav-sidebar__bottom-buttons"},(0,v.createElement)(A.Z,{postType:h}))))}))},3999:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(2220),i=n.n(r),o=n(3027),s=(n(3804),n(7997)),a=n(1742),c=n(5707),u=n(6115),l=n(3163),f=n(2779),d=n.n(f),p=n(1765),__=(n(8651),l.__),h=function(e){var t=e.children,n=i()(e,["children"]);return(0,o.createElement)(s.Button,n,t)};function v(){var e=(0,c.useDispatch)(p.L).toggleSidebar,t=(0,c.useSelect)((function(e){return e(p.L).isSidebarOpened()})),n=(0,c.useSelect)((function(e){return e(p.L).isSidebarClosing()}));return(0,o.createElement)(h,{label:__("Block editor sidebar","full-site-editing"),showTooltip:!0,className:d()("edit-post-fullscreen-mode-close","wpcom-block-editor-nav-sidebar-toggle-sidebar-button__button",{"is-hidden":t||n}),icon:a.Z,iconSize:36,onClick:function(){(0,u.jN)("calypso_editor_sidebar_open"),e()},"aria-haspopup":"dialog","aria-expanded":t})}},1765:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return i},$:function(){return o}});var i="automattic/block-editor-nav-sidebar",o=((null===(r=window.wpcomBlockEditorNavSidebar)||void 0===r?void 0:r.postIdsToExclude)||[]).map((function(e){return parseInt(e,10)})).filter((function(e){return!isNaN(e)}))},4286:function(e,t,n){"use strict";var r=n(5707),i=n(6970),o=n(1765),s=(0,r.combineReducers)({opened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SIDEBAR":return!e;default:return e}},closing: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_SIDEBAR_CLOSING":return t.isClosing;default:return e}}});(0,r.registerStore)(o.L,{actions:i.N,reducer:s,selectors:{isSidebarOpened:function(e){return e.opened},isSidebarClosing:function(e){return e.closing}}})},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);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 p}});n(1068);var r,i=n(417),o=n.n(i),s=(n(5182),n(1205)),a=(n(3421),n(2699)),c=n(4898),u=(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 f(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,c.ve)("//stats.wp.com/w2.js?1");var d=new a.EventEmitter;function p(e,t){if(t=t||{},(0,u.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,s.includes)(l,e)){if(r){var n=r(t);t=o()(o()({},t),n)}t=(0,s.omitBy)(t,s.isUndefined),(0,u.Z)('Recording event "%s" with actual props %o',e,t),f(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,u.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},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)},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return a},lZ:function(){return c},_W:function(){return l},Yt:function(){return f}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function a(e){return s().has(e)}function c(e,t){var n=s();a(e)?(i('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(i('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));i(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function l(){var e=this.getAttribute("src");i('Handling successful request for "'.concat(e,'"')),u(e),this.onload=null}function f(){var e=this.getAttribute("src");i('Handling failed request for "'.concat(e,'"')),u(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return a},k:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=i()("lib/load-script/dom-operations");function a(e){s('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function c(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return a}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function a(e,t){if(!(0,o.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise((function(t,n){(0,o.lZ)(e,(function(e){null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n;function r(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),c=a-(n||a);s.diff=c,s.prev=n,s.curr=a,n=a,i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var u=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var r=t.formatters[n];if("function"==typeof r){var o=i[u];e=r.call(s,o),i.splice(u,1),u--}return e})),t.formatArgs.call(s,i);var l=s.log||t.log;l.apply(s,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=t.selectColor(e),r.destroy=i,r.extend=o,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}function o(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(s)),r(t.skips.map(s).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),Object.keys(e).forEach((function(n){t[n]=e[n]})),t.instances=[],t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3804:function(e){"use strict";e.exports=window.React},1205:function(e){"use strict";e.exports=window.lodash},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},7649:function(e){"use strict";e.exports=window.wp.editPost},3027:function(e){"use strict";e.exports=window.wp.element},5799:function(e){"use strict";e.exports=window.wp.hooks},1424:function(e){"use strict";e.exports=window.wp.htmlEntities},3163:function(e){"use strict";e.exports=window.wp.i18n},3983:function(e){"use strict";e.exports=window.wp.keycodes},1200:function(e){"use strict";e.exports=window.wp.plugins},2418:function(e){"use strict";e.exports=window.wp.primitives},791:function(e){"use strict";e.exports=window.wp.url}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(702)}());
|
wpcom-block-editor-nav-sidebar/src/attach-sidebar.tsx
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
|
|
4 |
import { useDispatch, useSelect } from '@wordpress/data';
|
5 |
import { useEffect, createPortal, useState } from '@wordpress/element';
|
6 |
import { __experimentalMainDashboardButton as MainDashboardButton } from '@wordpress/edit-post';
|
@@ -13,7 +14,7 @@ import WpcomBlockEditorNavSidebar from './components/nav-sidebar';
|
|
13 |
import ToggleSidebarButton from './components/toggle-sidebar-button';
|
14 |
|
15 |
const registerPlugin = ( name: string, settings: Omit< PluginSettings, 'icon' > ) =>
|
16 |
-
originalRegisterPlugin( name, settings as
|
17 |
|
18 |
if ( typeof MainDashboardButton !== 'undefined' ) {
|
19 |
registerPlugin( 'a8c-full-site-editing-nav-sidebar', {
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { useDispatch, useSelect } from '@wordpress/data';
|
6 |
import { useEffect, createPortal, useState } from '@wordpress/element';
|
7 |
import { __experimentalMainDashboardButton as MainDashboardButton } from '@wordpress/edit-post';
|
14 |
import ToggleSidebarButton from './components/toggle-sidebar-button';
|
15 |
|
16 |
const registerPlugin = ( name: string, settings: Omit< PluginSettings, 'icon' > ) =>
|
17 |
+
originalRegisterPlugin( name, settings as PluginSettings );
|
18 |
|
19 |
if ( typeof MainDashboardButton !== 'undefined' ) {
|
20 |
registerPlugin( 'a8c-full-site-editing-nav-sidebar', {
|
wpcom-block-editor-nav-sidebar/src/components/create-page/index.tsx
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
|
|
4 |
import { get } from 'lodash';
|
5 |
import { Button as OriginalButton } from '@wordpress/components';
|
6 |
import { applyFilters } from '@wordpress/hooks';
|
@@ -17,7 +18,7 @@ import './style.scss';
|
|
17 |
const Button = ( {
|
18 |
children,
|
19 |
...rest
|
20 |
-
}: OriginalButton.Props & { icon?:
|
21 |
<OriginalButton { ...rest }>{ children }</OriginalButton>
|
22 |
);
|
23 |
|
@@ -25,7 +26,7 @@ interface Props {
|
|
25 |
postType: { slug: string };
|
26 |
}
|
27 |
|
28 |
-
export default function CreatePage( { postType }: Props ) {
|
29 |
const defaultLabel = get(
|
30 |
postType,
|
31 |
[ 'labels', 'add_new_item' ],
|
@@ -35,14 +36,14 @@ export default function CreatePage( { postType }: Props ) {
|
|
35 |
'a8c.WpcomBlockEditorNavSidebar.createPostLabel',
|
36 |
defaultLabel,
|
37 |
postType.slug
|
38 |
-
);
|
39 |
|
40 |
const defaultUrl = addQueryArgs( 'post-new.php', { post_type: postType.slug } );
|
41 |
const url = applyFilters(
|
42 |
'a8c.WpcomBlockEditorNavSidebar.createPostUrl',
|
43 |
defaultUrl,
|
44 |
postType.slug
|
45 |
-
);
|
46 |
|
47 |
const trackEvent = () => {
|
48 |
recordTracksEvent( `calypso_editor_sidebar_item_add`, { post_type: postType.slug } );
|
@@ -50,7 +51,9 @@ export default function CreatePage( { postType }: Props ) {
|
|
50 |
|
51 |
return (
|
52 |
<Button
|
53 |
-
target={
|
|
|
|
|
54 |
isPrimary
|
55 |
className="wpcom-block-editor-nav-sidebar-create-page"
|
56 |
href={ url }
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { get } from 'lodash';
|
6 |
import { Button as OriginalButton } from '@wordpress/components';
|
7 |
import { applyFilters } from '@wordpress/hooks';
|
18 |
const Button = ( {
|
19 |
children,
|
20 |
...rest
|
21 |
+
}: OriginalButton.Props & { icon?: unknown; iconSize?: number } ) => (
|
22 |
<OriginalButton { ...rest }>{ children }</OriginalButton>
|
23 |
);
|
24 |
|
26 |
postType: { slug: string };
|
27 |
}
|
28 |
|
29 |
+
export default function CreatePage( { postType }: Props ): JSX.Element {
|
30 |
const defaultLabel = get(
|
31 |
postType,
|
32 |
[ 'labels', 'add_new_item' ],
|
36 |
'a8c.WpcomBlockEditorNavSidebar.createPostLabel',
|
37 |
defaultLabel,
|
38 |
postType.slug
|
39 |
+
) as string;
|
40 |
|
41 |
const defaultUrl = addQueryArgs( 'post-new.php', { post_type: postType.slug } );
|
42 |
const url = applyFilters(
|
43 |
'a8c.WpcomBlockEditorNavSidebar.createPostUrl',
|
44 |
defaultUrl,
|
45 |
postType.slug
|
46 |
+
) as string;
|
47 |
|
48 |
const trackEvent = () => {
|
49 |
recordTracksEvent( `calypso_editor_sidebar_item_add`, { post_type: postType.slug } );
|
51 |
|
52 |
return (
|
53 |
<Button
|
54 |
+
target={
|
55 |
+
applyFilters( 'a8c.WpcomBlockEditorNavSidebar.linkTarget', undefined ) as string | undefined
|
56 |
+
}
|
57 |
isPrimary
|
58 |
className="wpcom-block-editor-nav-sidebar-create-page"
|
59 |
href={ url }
|
wpcom-block-editor-nav-sidebar/src/components/nav-item/index.tsx
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
|
|
4 |
import classNames from 'classnames';
|
5 |
import { Button } from '@wordpress/components';
|
6 |
import { forwardRef } from '@wordpress/element';
|
@@ -38,7 +39,7 @@ const NavItem = forwardRef< HTMLLIElement, NavItemProps >(
|
|
38 |
defaultEditUrl,
|
39 |
item.id,
|
40 |
postType.slug
|
41 |
-
);
|
42 |
const trackEvent = () => {
|
43 |
recordTracksEvent( 'calypso_editor_sidebar_item_edit', { post_type: postType.slug } );
|
44 |
};
|
@@ -49,7 +50,11 @@ const NavItem = forwardRef< HTMLLIElement, NavItemProps >(
|
|
49 |
className={ buttonClasses }
|
50 |
href={ editUrl }
|
51 |
onClick={ trackEvent }
|
52 |
-
target={
|
|
|
|
|
|
|
|
|
53 |
>
|
54 |
<div className={ titleClasses } title={ item.title?.raw }>
|
55 |
{ item.title?.raw ||
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import classNames from 'classnames';
|
6 |
import { Button } from '@wordpress/components';
|
7 |
import { forwardRef } from '@wordpress/element';
|
39 |
defaultEditUrl,
|
40 |
item.id,
|
41 |
postType.slug
|
42 |
+
) as string;
|
43 |
const trackEvent = () => {
|
44 |
recordTracksEvent( 'calypso_editor_sidebar_item_edit', { post_type: postType.slug } );
|
45 |
};
|
50 |
className={ buttonClasses }
|
51 |
href={ editUrl }
|
52 |
onClick={ trackEvent }
|
53 |
+
target={
|
54 |
+
applyFilters( 'a8c.WpcomBlockEditorNavSidebar.linkTarget', undefined ) as
|
55 |
+
| string
|
56 |
+
| undefined
|
57 |
+
}
|
58 |
>
|
59 |
<div className={ titleClasses } title={ item.title?.raw }>
|
60 |
{ item.title?.raw ||
|
wpcom-block-editor-nav-sidebar/src/components/nav-sidebar/index.tsx
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
|
|
4 |
import { forwardRef, useLayoutEffect, useRef, useEffect } from '@wordpress/element';
|
5 |
import { decodeEntities } from '@wordpress/html-entities';
|
6 |
import { useDispatch, useSelect } from '@wordpress/data';
|
@@ -33,10 +34,13 @@ const Button = forwardRef(
|
|
33 |
{
|
34 |
children,
|
35 |
...rest
|
36 |
-
}: OriginalButton.Props & { icon?:
|
37 |
ref
|
38 |
) => (
|
39 |
-
<OriginalButton
|
|
|
|
|
|
|
40 |
{ children }
|
41 |
</OriginalButton>
|
42 |
)
|
@@ -45,7 +49,10 @@ const Button = forwardRef(
|
|
45 |
function WpcomBlockEditorNavSidebar() {
|
46 |
const { toggleSidebar, setSidebarClosing } = useDispatch( STORE_KEY );
|
47 |
const [ isOpen, isClosing, postType, selectedItemId, siteTitle ] = useSelect( ( select ) => {
|
48 |
-
const { getPostType, getSite } = select( 'core' ) as
|
|
|
|
|
|
|
49 |
|
50 |
return [
|
51 |
select( STORE_KEY ).isSidebarOpened(),
|
@@ -72,10 +79,10 @@ function WpcomBlockEditorNavSidebar() {
|
|
72 |
}, [ isOpen, prevIsOpen, setSidebarClosing ] );
|
73 |
|
74 |
// When the sidebar closes the previously focused element should be re-focused
|
75 |
-
const activeElementOnMount = useRef<
|
76 |
-
const dismissButtonMount = ( el:
|
77 |
if ( el ) {
|
78 |
-
activeElementOnMount.current = document.activeElement as
|
79 |
el.focus();
|
80 |
}
|
81 |
};
|
@@ -102,14 +109,20 @@ function WpcomBlockEditorNavSidebar() {
|
|
102 |
// `closeLabel` can be overridden in the same way to correctly label where the user will
|
103 |
// be taken to after closing the editor.
|
104 |
const defaultCloseUrl = addQueryArgs( 'edit.php', { post_type: postType.slug } );
|
105 |
-
const closeUrl = applyFilters(
|
|
|
|
|
|
|
106 |
|
107 |
const defaultCloseLabel = get(
|
108 |
postType,
|
109 |
[ 'labels', 'all_items' ],
|
110 |
__( 'Back', 'full-site-editing' )
|
111 |
);
|
112 |
-
const closeLabel = applyFilters(
|
|
|
|
|
|
|
113 |
|
114 |
const handleClose = ( e: React.MouseEvent ) => {
|
115 |
if ( hasAction( 'a8c.wpcom-block-editor.closeEditor' ) ) {
|
@@ -124,7 +137,7 @@ function WpcomBlockEditorNavSidebar() {
|
|
124 |
'a8c.WpcomBlockEditorNavSidebar.listHeading',
|
125 |
defaultListHeading,
|
126 |
postType.slug
|
127 |
-
);
|
128 |
|
129 |
const dialogDescription =
|
130 |
postType.slug === 'page'
|
@@ -198,7 +211,7 @@ function WpcomBlockEditorNavSidebar() {
|
|
198 |
onClick={ dismissSidebar }
|
199 |
/>
|
200 |
<div className="wpcom-block-editor-nav-sidebar-nav-sidebar__site-title">
|
201 |
-
<h2>{ decodeEntities( siteTitle ) }</h2>
|
202 |
</div>
|
203 |
</div>
|
204 |
<Button
|
@@ -276,7 +289,12 @@ function WpcomBlockEditorNavSidebar() {
|
|
276 |
|
277 |
export default compose( [ withConstrainedTabbing ] )( WpcomBlockEditorNavSidebar );
|
278 |
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
280 |
return useSelect( ( select ) => {
|
281 |
const {
|
282 |
isEditedPostNew,
|
@@ -287,7 +305,7 @@ function useNavItems(): Record< string, Post[] > {
|
|
287 |
const statuses = select( 'core' ).getEntityRecords( 'root', 'status' );
|
288 |
|
289 |
if ( ! statuses ) {
|
290 |
-
return [];
|
291 |
}
|
292 |
|
293 |
const statusFilter = statuses
|
@@ -296,22 +314,21 @@ function useNavItems(): Record< string, Post[] > {
|
|
296 |
.join( ',' );
|
297 |
const currentPostId = getCurrentPostId();
|
298 |
const currentPostType = getCurrentPostType();
|
299 |
-
const items
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
} ) || [];
|
307 |
const current = {
|
308 |
id: currentPostId,
|
309 |
status: isEditedPostNew() ? 'draft' : getEditedPostAttribute( 'status' ),
|
310 |
title: { raw: getEditedPostAttribute( 'title' ), rendered: '' },
|
311 |
-
};
|
312 |
const [ drafts, recent ] = partition( items, { status: 'draft' } );
|
313 |
|
314 |
-
return { current: [ current ], drafts, recent }
|
315 |
} );
|
316 |
}
|
317 |
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { forwardRef, useLayoutEffect, useRef, useEffect } from '@wordpress/element';
|
6 |
import { decodeEntities } from '@wordpress/html-entities';
|
7 |
import { useDispatch, useSelect } from '@wordpress/data';
|
34 |
{
|
35 |
children,
|
36 |
...rest
|
37 |
+
}: OriginalButton.Props & { icon?: unknown; iconSize?: number; showTooltip?: boolean },
|
38 |
ref
|
39 |
) => (
|
40 |
+
<OriginalButton
|
41 |
+
ref={ ref as string | ( ( instance: HTMLElement | null ) => void ) }
|
42 |
+
{ ...rest }
|
43 |
+
>
|
44 |
{ children }
|
45 |
</OriginalButton>
|
46 |
)
|
49 |
function WpcomBlockEditorNavSidebar() {
|
50 |
const { toggleSidebar, setSidebarClosing } = useDispatch( STORE_KEY );
|
51 |
const [ isOpen, isClosing, postType, selectedItemId, siteTitle ] = useSelect( ( select ) => {
|
52 |
+
const { getPostType, getSite } = ( select( 'core' ) as unknown ) as {
|
53 |
+
getPostType: ( postType: string ) => null | { slug: string };
|
54 |
+
getSite: () => null | { title: string };
|
55 |
+
};
|
56 |
|
57 |
return [
|
58 |
select( STORE_KEY ).isSidebarOpened(),
|
79 |
}, [ isOpen, prevIsOpen, setSidebarClosing ] );
|
80 |
|
81 |
// When the sidebar closes the previously focused element should be re-focused
|
82 |
+
const activeElementOnMount = useRef< HTMLButtonElement | null >( null );
|
83 |
+
const dismissButtonMount = ( el: HTMLButtonElement | null ) => {
|
84 |
if ( el ) {
|
85 |
+
activeElementOnMount.current = document.activeElement as HTMLButtonElement;
|
86 |
el.focus();
|
87 |
}
|
88 |
};
|
109 |
// `closeLabel` can be overridden in the same way to correctly label where the user will
|
110 |
// be taken to after closing the editor.
|
111 |
const defaultCloseUrl = addQueryArgs( 'edit.php', { post_type: postType.slug } );
|
112 |
+
const closeUrl = applyFilters(
|
113 |
+
'a8c.WpcomBlockEditorNavSidebar.closeUrl',
|
114 |
+
defaultCloseUrl
|
115 |
+
) as string;
|
116 |
|
117 |
const defaultCloseLabel = get(
|
118 |
postType,
|
119 |
[ 'labels', 'all_items' ],
|
120 |
__( 'Back', 'full-site-editing' )
|
121 |
);
|
122 |
+
const closeLabel = applyFilters(
|
123 |
+
'a8c.WpcomBlockEditorNavSidebar.closeLabel',
|
124 |
+
defaultCloseLabel
|
125 |
+
) as string;
|
126 |
|
127 |
const handleClose = ( e: React.MouseEvent ) => {
|
128 |
if ( hasAction( 'a8c.wpcom-block-editor.closeEditor' ) ) {
|
137 |
'a8c.WpcomBlockEditorNavSidebar.listHeading',
|
138 |
defaultListHeading,
|
139 |
postType.slug
|
140 |
+
) as string;
|
141 |
|
142 |
const dialogDescription =
|
143 |
postType.slug === 'page'
|
211 |
onClick={ dismissSidebar }
|
212 |
/>
|
213 |
<div className="wpcom-block-editor-nav-sidebar-nav-sidebar__site-title">
|
214 |
+
<h2>{ siteTitle ? decodeEntities( siteTitle ) : '' }</h2>
|
215 |
</div>
|
216 |
</div>
|
217 |
<Button
|
289 |
|
290 |
export default compose( [ withConstrainedTabbing ] )( WpcomBlockEditorNavSidebar );
|
291 |
|
292 |
+
type NavItemRecord = {
|
293 |
+
current: Post[];
|
294 |
+
drafts: Post[];
|
295 |
+
recent: Post[];
|
296 |
+
};
|
297 |
+
function useNavItems(): NavItemRecord {
|
298 |
return useSelect( ( select ) => {
|
299 |
const {
|
300 |
isEditedPostNew,
|
305 |
const statuses = select( 'core' ).getEntityRecords( 'root', 'status' );
|
306 |
|
307 |
if ( ! statuses ) {
|
308 |
+
return { current: [], drafts: [], recent: [] };
|
309 |
}
|
310 |
|
311 |
const statusFilter = statuses
|
314 |
.join( ',' );
|
315 |
const currentPostId = getCurrentPostId();
|
316 |
const currentPostType = getCurrentPostType();
|
317 |
+
const items = ( select( 'core' ).getEntityRecords( 'postType', currentPostType, {
|
318 |
+
_fields: 'id,status,title',
|
319 |
+
exclude: [ currentPostId, ...POST_IDS_TO_EXCLUDE ],
|
320 |
+
orderby: 'modified',
|
321 |
+
per_page: 10,
|
322 |
+
status: statusFilter,
|
323 |
+
} ) || [] ) as Post[];
|
|
|
324 |
const current = {
|
325 |
id: currentPostId,
|
326 |
status: isEditedPostNew() ? 'draft' : getEditedPostAttribute( 'status' ),
|
327 |
title: { raw: getEditedPostAttribute( 'title' ), rendered: '' },
|
328 |
+
} as Post;
|
329 |
const [ drafts, recent ] = partition( items, { status: 'draft' } );
|
330 |
|
331 |
+
return { current: [ current ], drafts, recent };
|
332 |
} );
|
333 |
}
|
334 |
|
wpcom-block-editor-nav-sidebar/src/components/toggle-sidebar-button/index.tsx
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
|
|
4 |
import { Button as OriginalButton } from '@wordpress/components';
|
5 |
import { wordpress } from '@wordpress/icons';
|
6 |
import { useDispatch, useSelect } from '@wordpress/data';
|
@@ -17,11 +18,11 @@ import './style.scss';
|
|
17 |
const Button = ( {
|
18 |
children,
|
19 |
...rest
|
20 |
-
}: OriginalButton.Props & { icon?:
|
21 |
<OriginalButton { ...rest }>{ children }</OriginalButton>
|
22 |
);
|
23 |
|
24 |
-
export default function ToggleSidebarButton() {
|
25 |
const { toggleSidebar } = useDispatch( STORE_KEY );
|
26 |
const isSidebarOpen = useSelect( ( select ) => select( STORE_KEY ).isSidebarOpened() );
|
27 |
const isSidebarClosing = useSelect( ( select ) => select( STORE_KEY ).isSidebarClosing() );
|
1 |
/**
|
2 |
* External dependencies
|
3 |
*/
|
4 |
+
import React from 'react';
|
5 |
import { Button as OriginalButton } from '@wordpress/components';
|
6 |
import { wordpress } from '@wordpress/icons';
|
7 |
import { useDispatch, useSelect } from '@wordpress/data';
|
18 |
const Button = ( {
|
19 |
children,
|
20 |
...rest
|
21 |
+
}: OriginalButton.Props & { icon?: unknown; iconSize?: number; showTooltip?: boolean } ) => (
|
22 |
<OriginalButton { ...rest }>{ children }</OriginalButton>
|
23 |
);
|
24 |
|
25 |
+
export default function ToggleSidebarButton(): JSX.Element {
|
26 |
const { toggleSidebar } = useDispatch( STORE_KEY );
|
27 |
const isSidebarOpen = useSelect( ( select ) => select( STORE_KEY ).isSidebarOpened() );
|
28 |
const isSidebarClosing = useSelect( ( select ) => select( STORE_KEY ).isSidebarClosing() );
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '8abe0b41d7fa7c75d1789f4e2d55794c');
|