Full Site Editing - Version 3.10777

Version Description

Download this release

Release Info

Developer grantmkin
Plugin Icon wp plugin Full Site Editing
Version 3.10777
Comparing to
See all releases

Code changes from version 3.10516 to 3.10777

common/dist/data-stores.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => '7de4e32ecbbfd08c97f23e26ee9d3a73');
1
+ <?php return array('dependencies' => array('react', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-polyfill'), 'version' => 'a836916bffcfb1104ac92c3e67b5a5e5');
common/dist/data-stores.js CHANGED
@@ -3,7 +3,7 @@
3
  object-assign
4
  (c) Sindre Sorhus
5
  @license MIT
6
- */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var u,a,s=o(e),c=1;c<arguments.length;c++){for(var l in u=Object(arguments[c]))r.call(u,l)&&(s[l]=u[l]);if(t){a=t(u);for(var f=0;f<a.length;f++)n.call(u,a[f])&&(s[a[f]]=u[a[f]])}}return s}},8650:function(e){var t,r=window.ProgressEvent,n=!!r;try{t=new r("loaded"),n="loaded"===t.type,t=null}catch(o){n=!1}e.exports=n?r:"function"==typeof document.createEvent?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,!1,!1),t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(e,t){var r=document.createEventObject();return r.type=e,t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},5527:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r(2493),u={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:u.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},u)},9126:function(e,t,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);e.exports={formats:i,parse:o,stringify:n}},9166:function(e,t,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,u={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(a=u.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var u,a=e[i];if("[]"===a&&r.parseArrays)u=[].concat(o);else{u=r.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(u=[])[l]=o:u[c]=o:u={0:o}}o=u}return o}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return u;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?u.charset:e.charset;return{allowDots:void 0===e.allowDots?u.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:u.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:u.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:u.comma,decoder:"function"==typeof e.decoder?e.decoder:u.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:u.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:u.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:u.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:u.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:u.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,g=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?g="utf-8":"utf8=%26%2310003%3B"===d[r]&&(g="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var m,v,h=d[r],y=h.indexOf("]="),b=-1===y?h.indexOf("="):y+1;-1===b?(m=t.decoder(h,u.decoder,g,"key"),v=t.strictNullHandling?null:""):(m=t.decoder(h.slice(0,b),u.decoder,g,"key"),v=n.maybeMap(s(h.slice(b+1),t),(function(e){return t.decoder(e,u.decoder,g,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===g&&(v=a(v)),h.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(c,m)?c[m]=n.combine(c[m],v):c[m]=v}return c}(e,r):e,f=r.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var g=d[p],m=c(g,l[g],r,"string"==typeof e);f=n.merge(f,m,r)}return n.compact(f)}},6845:function(e,t,r){"use strict";var n=r(2493),o=r(5527),i=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,c=function(e,t){s.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,u,s,l,f,p,g,m,v,h){var y,b=t;if("function"==typeof l?b=l(r,b):b instanceof Date?b=g(b):"comma"===o&&a(b)&&(b=n.maybeMap(b,(function(e){return e instanceof Date?g(e):e})).join(",")),null===b){if(i)return s&&!v?s(r,d.encoder,h,"key"):r;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||n.isBuffer(b))return s?[m(v?r:s(r,d.encoder,h,"key"))+"="+m(s(b,d.encoder,h,"value"))]:[m(r)+"="+m(String(b))];var _,S=[];if(void 0===b)return S;if(a(l))_=l;else{var A=Object.keys(b);_=f?A.sort(f):A}for(var E=0;E<_.length;++E){var w=_[E],C=b[w];if(!u||null!==C){var x=a(b)?"function"==typeof o?o(r,w):r:r+(p?"."+w:"["+w+"]");c(S,e(C,x,o,i,u,s,l,f,p,g,m,v,h))}}return S};e.exports=function(e,t){var r,n=e,s=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],u=d.filter;return("function"==typeof e.filter||a(e.filter))&&(u=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:u,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof s.filter?n=(0,s.filter)("",n):a(s.filter)&&(r=s.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[l];r||(r=Object.keys(n)),s.sort&&r.sort(s.sort);for(var m=0;m<r.length;++m){var v=r[m];s.skipNulls&&null===n[v]||c(f,p(n[v],v,g,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var h=f.join(s.delimiter),y=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),h.length>0?y+h:""}},2493:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],u=i.obj[i.prop],a=Object.keys(u),s=0;s<a.length;++s){var c=a[s],l=u[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:u,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",u=0;u<o.length;++u){var a=o.charCodeAt(u);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=o.charAt(u):a<128?i+=n[a]:a<2048?i+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?i+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(u+=1,a=65536+((1023&a)<<10|1023&o.charCodeAt(u)),i+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(n,i,u){if(!i)return n;if("object"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(u&&(u.plainObjects||u.allowPrototypes)||!t.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var a=n;return r(n)&&!r(i)&&(a=o(n,u)),r(n)&&r(i)?(i.forEach((function(r,o){if(t.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=e(i,r,u):n.push(r)}else n[o]=r})),n):Object.keys(i).reduce((function(r,n){var o=i[n];return t.call(r,n)?r[n]=e(r[n],o,u):r[n]=o,r}),a)}}},3631:function(e,t,r){"use strict";var n=r(3804),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=r(7201),u=r(4983),a=r(6590),s="function"==typeof Symbol&&Symbol.iterator;function c(e,t){return e&&"object"==typeof e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function l(e,t,r,n){var i,a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===o)return r(n,e,""===t?"."+c(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)f+=l(i=e[p],d+c(i,p),r,n);else{var g=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(g){0;for(var m,v=g.call(e),h=0;!(m=v.next()).done;)f+=l(i=m.value,d+c(i,h++),r,n)}else if("object"===a){0;var y=""+e;u(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function d(e){return(""+e).replace(f,"$&/")}var p,g,m=v,v=function(e){var t=this;if(t.instancePool.length){var r=t.instancePool.pop();return t.call(r,e),r}return new t(e)},h=function(e){var t=this;u(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function y(e,t,r,n){this.result=e,this.keyPrefix=t,this.func=r,this.context=n,this.count=0}function b(e,t,r){var o,u,a=e.result,s=e.keyPrefix,c=e.func,l=e.context,f=c.call(l,t,e.count++);Array.isArray(f)?_(f,a,r,i.thatReturnsArgument):null!=f&&(n.isValidElement(f)&&(o=f,u=s+(!f.key||t&&t.key===f.key?"":d(f.key)+"/")+r,f=n.cloneElement(o,{key:u},void 0!==o.props?o.props.children:void 0)),a.push(f))}function _(e,t,r,n,o){var i="";null!=r&&(i=d(r)+"/");var u=y.getPooled(t,i,n,o);!function(e,t,r){null==e||l(e,"",t,r)}(e,b,u),y.release(u)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,r,n){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,r,n),i}return new o(e,t,r,n)},(g=y).instancePool=[],g.getPooled=p||m,g.poolSize||(g.poolSize=10),g.release=h;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return a(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(n.isValidElement(e))return a(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;u(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var r in e)_(e[r],t,r,i.thatReturnsArgument);return t}},9830:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,u=this.pluralForms[e];return u||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=(0,n.Z)(o)),u=this.pluralForms[e]=i),u(t)},i.prototype.dcnpgettext=function(e,t,r,n,o){var i,u,a;return i=void 0===o?0:this.getPluralForm(e,o),u=r,t&&(u=t+this.options.contextDelimiter+r),(a=this.data[e][u])&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)}},6274:function(e,t,r){"use strict";r(8077).z()},5608:function(e,t,r){"use strict";r(1635).z()},3857:function(e,t,r){"use strict";r(9734).z2()},561:function(e,t,r){"use strict";r(2369).z2({client_id:"",client_secret:""})},9512:function(e,t,r){"use strict";r(182).z()},3600:function(e,t,r){"use strict";r.r(t),r.d(t,{receiveCategories:function(){return n},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return u},receiveDomainSuggestionsError:function(){return a}});var n=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},o=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},i=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},u=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},a=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,r){"use strict";r.d(t,{L:function(){return o},r:function(){return n}});var n,o="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(n||(n={}))},8077:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(5707),o=r(584),i=r(3717),u=r(3600),a=r(2269),s=r(267),c=r(3661),l=!1;function f(){return l||(l=!0,(0,n.registerStore)(o.L,{actions:u,controls:c.ai,reducer:i.Z,resolvers:a,selectors:s})),o.L}},3717:function(e,t,r){"use strict";var n=r(1119),o=r(9394),i=r(5707),u=r(584),a=r(4211),s={state:u.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},c=(0,i.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,o.Z)((0,o.Z)({},e),{},{state:u.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,o.Z)((0,o.Z)({},e),{},{state:u.r.Success,data:(0,o.Z)((0,o.Z)({},e.data),{},(0,n.Z)({},(0,a.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,o.Z)((0,o.Z)({},e),{},{state:u.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.domainName,t.availability)):e}});t.Z=c},2269:function(e,t,r){"use strict";r.r(t),r.d(t,{isAvailable:function(){return m},getCategories:function(){return v},__internalGetDomainSuggestions:function(){return h}});var n=r(9394),o=r(9126),i=r(1481),u=r(6468),a=r.n(u),s=r(3600),c=r(3661),l=r(4211),f=regeneratorRuntime.mark(v),d=regeneratorRuntime.mark(h);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function g(e,t){return a().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var m=regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p(t),e.prev=1,e.next=4,(0,c.An)(r);case 4:return n=e.sent,o=n.body,e.abrupt("return",(0,s.receiveDomainAvailability)(t,o));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,s.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function v(){var e,t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,c.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=r.sent,t=e.body,r.abrupt("return",(0,s.receiveCategories)(t));case 5:case"end":return r.stop()}}),f)}function h(e){var t,r,u;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.query){a.next=2;break}return a.abrupt("return",(0,s.receiveDomainSuggestionsError)("Empty query"));case 2:return a.next=4,(0,s.fetchDomainSuggestions)();case 4:return a.prev=4,a.next=7,(0,c._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:if(t=a.sent,Array.isArray(t)){a.next=10;break}return a.abrupt("return",(0,s.receiveDomainSuggestionsError)((0,i.Iu)("Invalid response from the server")));case 10:return g(t,e.query)&&(r={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(r)),u=t.map((function(e){return e.unavailable?e:(0,n.Z)((0,n.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,l._B)(e.raw_price,e.currency_code)})})),a.abrupt("return",(0,s.receiveDomainSuggestionsSuccess)(e,u));case 15:return a.prev=15,a.t0=a.catch(4),a.abrupt("return",(0,s.receiveDomainSuggestionsError)(a.t0.message||(0,i.Iu)("Error while fetching server response")));case 18:case"end":return a.stop()}}),d,null,[[4,15]])}},267:function(e,t,r){"use strict";r.r(t),r.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return s},getDomainState:function(){return c},getDomainErrorMessage:function(){return l},isLoadingDomainSuggestions:function(){return f},__internalGetDomainSuggestions:function(){return d},isAvailable:function(){return p},getDomainAvailabilities:function(){return g}});var n=r(1766),o=r(5707),i=r(584),u=r(4211),a=function(e){return[].concat((0,n.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,n.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,u.o0)(t,r);return(0,o.select)(i.L).__internalGetDomainSuggestions(n)},c=function(e){return e.domainSuggestions.state},l=function(e){return e.domainSuggestions.errorMessage},f=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,u.o0)(t,r);return(0,o.select)("core/data").isResolving(i.L,"__internalGetDomainSuggestions",[n])},d=function(e,t){return e.domainSuggestions.data[(0,u.Le)(t)]},p=function(e,t){return e.availability[t]},g=function(e){return e.availability}},4211:function(e,t,r){"use strict";r.d(t,{Le:function(){return a},_B:function(){return s},o0:function(){return c}});var n=r(9394),o=r(5695),i=r.n(o),u=r(1621),a=i();function s(e,t){return(0,u.ZP)(e,t,{stripZeros:!0})}function c(e,t){return(0,n.Z)((0,n.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,r){"use strict";r.r(t),r.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return u},setStep:function(){return a},setSiteTitle:function(){return s},setDomain:function(){return c},unsetDomain:function(){return l},confirmDomainSelection:function(){return f},setDomainSearch:function(){return d},setPlanProductId:function(){return g},unsetPlanProductId:function(){return m},updatePlan:function(){return v},openSidebar:function(){return h},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return A},setModalDismissible:function(){return E},unsetModalDismissible:function(){return w},showModalTitle:function(){return C},hideModalTitle:function(){return x},enablePersistentSuccessView:function(){return O},disablePersistentSuccessView:function(){return P}});var n=r(5707),o=r(9149),i=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},u=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},a=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},c=function(e){return{type:"SET_DOMAIN",domain:e}},l=function(){return{type:"UNSET_DOMAIN"}},f=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},d=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},g=regeneratorRuntime.mark((function e(t){var r,i,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,n.select)(o.Fs).isPlanProductFree(t)){e.next=6;break}return i=(0,n.select)(o.Fs).getPlanProductById(t),u=null!==(r=null==i?void 0:i.billingPeriod)&&void 0!==r?r:"ANNUALLY",e.next=6,p(u);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),m=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function v(e){return g(e)}var h=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},A=function(){return{type:"SHOW_SITE_TITLE_STEP"}},E=function(){return{type:"SET_MODAL_DISMISSIBLE"}},w=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},C=function(){return{type:"SHOW_MODAL_TITLE"}},x=function(){return{type:"HIDE_MODAL_TITLE"}},O=function(){return{type:"ENABLE_SUCCESS_VIEW"}},P=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Fs:function(){return o}});var n="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,r){"use strict";r.d(t,{y:function(){return n},M:function(){return o}});var n={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[n.Name,n.Domain,n.Plan,n.Final]},1635:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(9866),o=r(5707),i=r(9149),u=r(4648),a=r(6108),s=r(7092),c=r(594);(0,o.use)(o.plugins.persistence,c.Z);var l=!1;function f(){return l||(l=!0,(0,o.registerStore)(i.Ls,{actions:a,controls:n.controls,reducer:u.Z,selectors:s,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),i.Ls}},594:function(e,t,r){"use strict";var n=r(492);t.Z=(0,n.Z)("WP_LAUNCH")},4648:function(e,t,r){"use strict";var n=r(5707),o=r(3610),i=(0,n.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.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=i},7092:function(e,t,r){"use strict";r.r(t),r.d(t,{getLaunchSequence:function(){return u},getLaunchStep:function(){return a},getState:function(){return s},hasPaidDomain:function(){return c},getSelectedDomain:function(){return l},getSelectedPlanProductId:function(){return f},getLastPlanBillingPeriod:function(){return d},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return g},isStepCompleted:function(){return m},isFlowCompleted:function(){return v},isFlowStarted:function(){return h},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var n=r(5707),o=r(3610),i=r(9149),u=function(){return o.M},a=function(){return o.y},s=function(e){return e},c=function(e){return!!e.domain&&!e.domain.is_free},l=function(e){return e.domain},f=function(e){return e.planProductId},d=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,n.select)(i.Fs).isPlanProductFree(e.planProductId)},g=function(e){return!!l(e)||e.confirmedDomainSelection},m=function(e,t){if(t===o.y.Plan)return!!f(e);if(t===o.y.Name){var r=(0,n.select)("core").getEntityRecord("root","site",void 0);return!(null==r||!r.title)}return t===o.y.Domain&&(0,n.select)(i.Ls).hasSelectedDomainOrSubdomain()},v=function(e){return o.M.slice(0,o.M.length-1).every((function(t){return m(e,t)}))},h=function(e){return o.M.some((function(t){return m(e,t)}))},y=function(e){return o.M.find((function(t){return!m(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,r){"use strict";function n(e){var t=e,r=e+"_TS",n={},o={getItem:function(e){return n.hasOwnProperty(e)?n[e]:null},setItem:function(e,t){n[e]=String(t)},removeItem:function(e){delete n[e]}},i=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:o;return{storageKey:t,storage:{getItem:function(e){var n=i.getItem(r);return n&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(n)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(r),null)},setItem:function(e,t){i.setItem(r,JSON.stringify(Date.now())),i.setItem(e,t)}}}}r.d(t,{Z:function(){return n}})},9068:function(e,t,r){"use strict";r.r(t),r.d(t,{setFeatures:function(){return n},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return u},resetPlan:function(){return a}});var n=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},o=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},i=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},u=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},a=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Ho:function(){return o},TO:function(){return i},YS:function(){return u},Gz:function(){return a},hx:function(){return s},iL:function(){return c},xT:function(){return l},AX:function(){return f},bS:function(){return d},UB:function(){return p},BV:function(){return g},nN:function(){return m}});var n="automattic/onboard/plans",o=1,i="free",u="personal",a="premium",s="business",c="ecommerce",l=[i,u,a,s,c],f=a,d=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan"].concat(d,p),m=["custom-domain","support-live","priority-support"]},9734:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(5707),o=r(4703),i=r(9438),u=r(9068),a=r(7738),s=r(5261),c=r(3661),l=!1;function f(){return l||(l=!0,(0,n.registerStore)(o.Ls,{resolvers:s,actions:u,controls:c.ai,reducer:i.ZP,selectors:a})),o.Ls}},9438:function(e,t,r){"use strict";var n=r(1119),o=r(9394),i=r(5707),u=(0,i.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.locale,t.plans));default:return e}}});t.ZP=u},5261:function(e,t,r){"use strict";r.r(t),r.d(t,{getSupportedPlans:function(){return m}});var n=r(9126),o=r(1621),i=r(9068),u=r(4703),a=r(3661),s=regeneratorRuntime.mark(m);function c(e){return(0,o.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(e){return(0,o.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function f(e){return e.reduce((function(e,t){return e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:u.nN.indexOf(t.id)>-1},e}),{})}function d(e,t){var r=Object.keys(t).find((function(r){return t[r].name===e}));return!!r&&t[r].requiresAnnuallyBilledPlan}function p(e,t){var r=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:d(e,t)}}));return r.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),r}function g(e,t){var r=u.BV.reduce((function(r,n){var i=e.find((function(e){return e.product_slug===n}));if(!i)return r;var u,a=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return r.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?l(i):(u=i,(0,o.ZP)(u.raw_price/12,u.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?c(i):l(i)}),r}),[]);return function(e){for(var t=function(t){var r=e.find((function(e){return e.storeSlug===u.bS[t]})),n=e.find((function(e){return e.storeSlug===u.UB[t]}));if(r&&n){var o=12*n.rawPrice,i=r.rawPrice,a=Math.round(100*(1-i/o));r.annualDiscount=a,n.annualDiscount=a}},r=0;r<u.bS.length;r++)t(r)}(r),r}function m(){var e,t,r,o,c,l,d,m=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=m.length>0&&void 0!==m[0]?m[0]:"en",s.next=3,(0,a._9)({path:"/plans",query:(0,n.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,a.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return r=s.sent,o=r.body,c=f(o.features),l=o.plans.map((function(e){var t,r=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,c),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:r===u.TO,isPopular:r===u.Gz,periodAgnosticSlug:r,productIds:e.products.map((function(e){return e.plan_id}))}})),d=g(t,l),s.next=13,(0,i.setPlans)(l,e);case 13:return s.next=15,(0,i.setPlanProducts)(d);case 15:return s.next=17,(0,i.setFeatures)(c,e);case 17:return s.next=19,(0,i.setFeaturesByType)(o.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,r){"use strict";r.r(t),r.d(t,{getFeatures:function(){return a},getFeaturesByType:function(){return s},getPlanByProductId:function(){return c},getPlanProductById:function(){return l},getPlanByPeriodAgnosticSlug:function(){return f},getDefaultPaidPlan:function(){return d},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return g},getPlansProducts:function(){return m},getPrices:function(){return v},getPlanByPath:function(){return h},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var n=r(5707),o=r(3613),i=r.n(o),u=r(4703),a=function(e,t){var r;return null!==(r=e.features[t])&&void 0!==r?r:{}},s=function(e,t){var r;return null!==(r=e.featuresByType[t])&&void 0!==r?r:[]},c=function(e,t,r){if(t)return(0,n.select)(u.Ls).getSupportedPlans(r).find((function(e){return e.productIds.indexOf(t)>-1}))},l=function(e,t){if(t)return(0,n.select)(u.Ls).getPlansProducts().find((function(e){return e.productId===t}))},f=function(e,t,r){if(t)return(0,n.select)(u.Ls).getSupportedPlans(r).find((function(e){return e.periodAgnosticSlug===t}))},d=function(e,t){return(0,n.select)(u.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===u.AX}))},p=function(e,t){return(0,n.select)(u.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===u.TO}))},g=function(e,t){var r;return null!==(r=e.plans[t])&&void 0!==r?r:[]},m=function(e){return e.planProducts},v=function(e,t){return i()("getPrices",{alternative:"getPlanProduct().price"}),(0,n.select)(u.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},h=function(e,t,r){if(t){var o=(0,n.select)(u.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(o)return(0,n.select)(u.Ls).getSupportedPlans(r).find((function(e){return e.periodAgnosticSlug===o.periodAgnosticSlug}))}},y=function(e,t,r){if(t&&r)return(0,n.select)(u.Ls).getPlansProducts().find((function(e){var n=e.periodAgnosticSlug===t,o=t===u.TO||e.billingPeriod===r;return n&&o}))},b=function(e,t){return t===u.iL},_=function(e,t){return t===u.TO},S=function(e,t){return t===u.Ho}},8459:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});var n=r(9394),o=r(4530),i=r(3661),u=r(9639);function a(e){var t=regeneratorRuntime.mark(p),r=regeneratorRuntime.mark(y),a=regeneratorRuntime.mark(b),s=regeneratorRuntime.mark(_),c=regeneratorRuntime.mark(S),l=function(){return{type:"FETCH_NEW_SITE"}},f=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},d=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(r){var u,a,s,c,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,u=r.authToken,a=(0,o.Z)(r,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},c=(0,n.Z)((0,n.Z)((0,n.Z)({},s),a),{},{validate:!1}),t.next=8,(0,i._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:c,token:u});case 8:return l=t.sent,t.next=11,f(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,d(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var g=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},m=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},v=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},h=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,m(e);case 2:return t.prev=2,t.next=5,(0,i._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,v(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,h(e,u.Hc.INTERNAL);case 13:case"end":return t.stop()}}),r,null,[[2,9]])}function b(e){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,i._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=r.sent,r.abrupt("return",t);case 4:case"end":return r.stop()}}),a)}function _(e,t){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,i._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return r=n.sent,n.abrupt("return",r);case 4:case"end":return n.stop()}}),s)}function S(e,t){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,i._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return r.next=5,g(e,t);case 5:r.next=9;break;case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),c,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:S,receiveSiteTitle:g,fetchNewSite:l,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:f,receiveNewSiteFailed:d,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:m,launchSiteSuccess:v,launchSiteFailure:h,getCart:b,setCart:_}}},2005:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});var n="automattic/site"},2369:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(5707),o=r(2005),i=r(2701),u=r(8459),a=r(7862),s=r(4309),c=r(3661),l=!1;function f(e){return l||(l=!0,(0,n.registerStore)(o.L,{actions:(0,u.d)(e),controls:c.ai,reducer:i.ZP,resolvers:a,selectors:s})),o.L}},2701:function(e,t,r){"use strict";var n=r(4530),o=r(60),i=r(1119),u=r(9394),a=r(5707),s=r(9639),c=(0,a.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}}),l=(0,a.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:c,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var r=t.siteId,a=(e[r],(0,n.Z)(e,[r].map(o.Z)));return(0,u.Z)({},a)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,(0,u.Z)((0,u.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,{status:s.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,t.domains)):e}});t.ZP=l},7862:function(e,t,r){"use strict";r.r(t),r.d(t,{getSite:function(){return s},getSiteDomains:function(){return c}});var n=r(5707),o=r(3661),i=r(2005),u=regeneratorRuntime.mark(s),a=regeneratorRuntime.mark(c);function s(e){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,n.dispatch)(i.L).fetchSite();case 2:return r.prev=2,r.next=5,(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=r.sent,r.next=8,(0,n.dispatch)(i.L).receiveSite(e,t);case 8:r.next=14;break;case 10:return r.prev=10,r.t0=r.catch(2),r.next=14,(0,n.dispatch)(i.L).receiveSiteFailed(e,void 0);case 14:case"end":return r.stop()}}),u,null,[[2,10]])}function c(e){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=r.sent,r.next=6,(0,n.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:r.next=10;break;case 8:r.prev=8,r.t0=r.catch(0);case 10:case"end":return r.stop()}}),a,null,[[0,8]])}},4309:function(e,t,r){"use strict";r.r(t),r.d(t,{getState:function(){return u},getNewSite:function(){return a},getNewSiteError:function(){return s},isFetchingSite:function(){return c},isFetchingSiteDetails:function(){return l},isNewSite:function(){return f},getSite:function(){return d},getSiteTitle:function(){return p},isSiteLaunched:function(){return g},isSiteLaunching:function(){return m},getSiteDomains:function(){return v},getPrimarySiteDomain:function(){return h},getSiteSubdomain:function(){return y}});var n=r(5707),o=r(2005),i=r(9639),u=function(e){return e},a=function(e){return e.newSite.data},s=function(e){return e.newSite.error},c=function(e){return e.newSite.isFetching},l=function(e){return e.isFetchingSiteDetails},f=function(e){return!!e.newSite.data},d=function(e,t){return e.sites[t]},p=function(e,t){var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.name},g=function(e,t){var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.SUCCESS},m=function(e,t){var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.IN_PROGRESS},v=function(e,t){return e.sitesDomains[t]},h=function(e,t){var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((function(e){return e.primary_domain}))},y=function(e,t){var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((function(e){return e.is_subdomain}))}},9639:function(e,t,r){"use strict";var n,o,i;r.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(n||(n={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});var n="automattic/wpcom-features"},2613:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var n=r(4703),o=n.YS,i=n.Gz,u=n.hx,a={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:n.iL},seo:{id:"seo",minSupportedPlan:u},plugins:{id:"plugins",minSupportedPlan:u},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:u}}},182:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(9866),o=r(5707),i=r(4366),u=r(8638),a=r(335),s=!1;function c(){return s||(s=!0,(0,o.registerStore)(i.L,{controls:n.controls,reducer:u.Z,selectors:a})),i.L}},8638:function(e,t,r){"use strict";var n=r(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.$;return e}},335:function(e,t,r){"use strict";r.r(t),r.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var n=r(4703),o=function(e){return e},i=function(e,t){var r=o(e);if(t.length)return t.reduce((function(e,t){var o=r[t].minSupportedPlan;return n.xT.indexOf(o)>n.xT.indexOf(e)?o:e}),r[t[0]].minSupportedPlan)}},3661:function(e,t,r){"use strict";r.d(t,{_9:function(){return u},An:function(){return a},ai:function(){return s}});var n,o=r(6470),i=r(8552),u=function(e){return{type:"WPCOM_REQUEST",request:e}},a=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,i.ZP)(t)},FETCH_AND_PARSE:(n=(0,o.Z)(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.resource,n=t.options,e.next=3,window.fetch(r,n);case 3:return o=e.sent,e.t0=o.ok,e.next=7,o.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 n.apply(this,arguments)}),RELOAD_PROXY:function(){(0,i.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,i.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},3759:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});var n={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 o(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,r){"use strict";r.d(t,{ZP:function(){return u}});var n=r(9394),o=r(1481),i=r(3759);function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=(0,i.X)(t);if(!u||isNaN(e))return null;var s=(0,n.Z)((0,n.Z)({},u),r),c=s.decimal,l=s.grouping,f=s.precision,d=s.symbol,p=e<0?"-":"",g=(0,o.Y4)(Math.abs(e),{decimals:f,thousandsSep:l,decPoint:c});return r.stripZeros&&(g=a(g,c)),"".concat(p).concat(d).concat(g)}function a(e,t){var r=new RegExp("\\".concat(t,"0+$"));return e.replace(r,"")}},914:function(e,t,r){"use strict";var n=r(1766),o=r(1119),i=r(8049),u=r.n(i),a=r(7010),s=r(9830),c=r(7839),l=r.n(c),f=r(5079),d=r.n(f),p=r(2699),g=r(6668),m=r(3),v=u()("i18n-calypso"),h="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function A(){O.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function E(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&A("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",E(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&A("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",E(e));for(var r={},n=0;n<e.length;n++)"object"==typeof e[n]&&(r=e[n]);if("string"==typeof t?r.original=t:"object"==typeof r.original&&(r.plural=r.original.plural,r.count=r.original.count,r.original=r.original.single),"string"==typeof e[1]&&(r.plural=e[1]),void 0===r.original)throw new Error("Translate called without a `string` value as first argument.");return r}function C(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function x(e,t){for(var r=_.length-1;r>=0;r--){var n=_[r](Object.assign({},t)),o=n.context?n.context+""+n.original:n.original;if(e.state.locale[o])return C(e.state.tannin,n)}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:l()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.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]:{},r="number"==typeof t?t:t.decimals||0,n=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,m.Z)(e,r,n,o)},O.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},O.prototype.setLocale=function(e){var t,r,n;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],u=function(e,t){var r=!1===t?"":String(t);if(void 0!==S[r+e])return S[r+e];var n=d()().update(e).digest("hex");return S[r+e]=t?n.substr(0,t):n},a=function(e){return function(t){return t.context?(t.original=u(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=u(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)_.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var l=Number(i.substr(5));_.push(a(l))}else for(var f=Number(i.substr(5,c)),p=Number(i.substr(6+c)),g=f;g<=p;g++)_.push(a(g))}}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===(r=this.state.locale[""])||void 0===r||null===(n=r.momentjs_locale)||void 0===n?void 0:n.textDirection),this.state.tannin=new s.Z((0,o.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=C(this.state.tannin,w([h])),this.state.numberFormatSettings.thousands_sep=C(this.state.tannin,w([y])),this.state.numberFormatSettings.decimal_point===h&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(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!!x(this,w(arguments))},O.prototype.translate=function(){var e=w(arguments),t=x(this,e);if(t||(t=C(this.state.tannin,e)),e.args){var r=Array.isArray(e.args)?e.args.slice(0):[e.args];r.unshift(t);try{t=g.Z.apply(void 0,(0,n.Z)(r))}catch(i){if(!window||!window.console)return;var o=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[o](i):window.console[o]("i18n sprintf error:",r)}}return e.components&&(t=(0,a.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(r){t=r(t,e)})),t},O.prototype.reRenderTranslations=function(){v("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,r){"use strict";r.d(t,{Y4:function(){return s},Iu:function(){return c}});var n=r(914),o=r(3493),i=r(975),u=r(8373),a=new n.Z,s=a.numberFormat.bind(a),c=a.translate.bind(a),l=(a.configure.bind(a),a.setLocale.bind(a),a.getLocale.bind(a),a.getLocaleSlug.bind(a),a.getLocaleVariant.bind(a),a.isRtl.bind(a),a.addTranslations.bind(a),a.reRenderTranslations.bind(a),a.registerComponentUpdateHook.bind(a),a.registerTranslateHook.bind(a),a.state,a.stateObserver,a.on.bind(a),a.off.bind(a),a.emit.bind(a),(0,o.Z)(a),(0,i.Z)(a),(0,u.Z)(a));l.useRtl,l.withRtl},3493:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(9394),o=r(4659),i=r(4730),u=r(3989),a=r(5663),s=r(9049),c=r(1119),l=r(3027),f=r(3804),d=r.n(f);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(r){var f,p,g=r.displayName||r.name||"";return p=f=function(f){(0,a.Z)(p,f);var d=(0,s.Z)(p);function p(){var e;(0,o.Z)(this,p);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e=d.call.apply(d,[this].concat(r)),(0,c.Z)((0,u.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,u.Z)(e))),e}return(0,i.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var o=(0,n.Z)((0,n.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,l.createElement)(r,o)}}]),p}(d().Component),(0,c.Z)(f,"displayName","Localized("+g+")"),p}}},3:function(e,t,r){"use strict";function n(e,t,r,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,u=void 0===n?",":n,a=void 0===r?".":r,s="";return(s=(i?
7
  /*
8
  * Exposes number format capability
9
  *
3
  object-assign
4
  (c) Sindre Sorhus
5
  @license MIT
6
+ */var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,i){for(var u,a,s=o(e),c=1;c<arguments.length;c++){for(var l in u=Object(arguments[c]))r.call(u,l)&&(s[l]=u[l]);if(t){a=t(u);for(var f=0;f<a.length;f++)n.call(u,a[f])&&(s[a[f]]=u[a[f]])}}return s}},8650:function(e){var t,r=window.ProgressEvent,n=!!r;try{t=new r("loaded"),n="loaded"===t.type,t=null}catch(o){n=!1}e.exports=n?r:"function"==typeof document.createEvent?function(e,t){var r=document.createEvent("Event");return r.initEvent(e,!1,!1),t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}:function(e,t){var r=document.createEventObject();return r.type=e,t?(r.lengthComputable=Boolean(t.lengthComputable),r.loaded=Number(t.loaded)||0,r.total=Number(t.total)||0):(r.lengthComputable=!1,r.loaded=r.total=0),r}},5527:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g,i=r(2493),u={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:u.RFC3986,formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return String(e)}}},u)},9126:function(e,t,r){"use strict";var n=r(6845),o=r(9166),i=r(5527);e.exports={formats:i,parse:o,stringify:n}},9166:function(e,t,r){"use strict";var n=r(2493),o=Object.prototype.hasOwnProperty,i=Array.isArray,u={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},s=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=a?i.slice(0,a.index):i,l=[];if(c){if(!r.plainObjects&&o.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var f=0;r.depth>0&&null!==(a=u.exec(i))&&f<r.depth;){if(f+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:s(t,r),i=e.length-1;i>=0;--i){var u,a=e[i];if("[]"===a&&r.parseArrays)u=[].concat(o);else{u=r.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&a!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(u=[])[l]=o:u[c]=o:u={0:o}}o=u}return o}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return u;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?u.charset:e.charset;return{allowDots:void 0===e.allowDots?u.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:u.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:u.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:u.comma,decoder:"function"==typeof e.decoder?e.decoder:u.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:u.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:u.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:u.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:u.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:u.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,c={},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,f),p=-1,g=t.charset;if(t.charsetSentinel)for(r=0;r<d.length;++r)0===d[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[r]?g="utf-8":"utf8=%26%2310003%3B"===d[r]&&(g="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var m,v,h=d[r],y=h.indexOf("]="),b=-1===y?h.indexOf("="):y+1;-1===b?(m=t.decoder(h,u.decoder,g,"key"),v=t.strictNullHandling?null:""):(m=t.decoder(h.slice(0,b),u.decoder,g,"key"),v=n.maybeMap(s(h.slice(b+1),t),(function(e){return t.decoder(e,u.decoder,g,"value")}))),v&&t.interpretNumericEntities&&"iso-8859-1"===g&&(v=a(v)),h.indexOf("[]=")>-1&&(v=i(v)?[v]:v),o.call(c,m)?c[m]=n.combine(c[m],v):c[m]=v}return c}(e,r):e,f=r.plainObjects?Object.create(null):{},d=Object.keys(l),p=0;p<d.length;++p){var g=d[p],m=c(g,l[g],r,"string"==typeof e);f=n.merge(f,m,r)}return n.compact(f)}},6845:function(e,t,r){"use strict";var n=r(2493),o=r(5527),i=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,c=function(e,t){s.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,f=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:o.formatters[f],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,u,s,l,f,p,g,m,v,h){var y,b=t;if("function"==typeof l?b=l(r,b):b instanceof Date?b=g(b):"comma"===o&&a(b)&&(b=n.maybeMap(b,(function(e){return e instanceof Date?g(e):e})).join(",")),null===b){if(i)return s&&!v?s(r,d.encoder,h,"key"):r;b=""}if("string"==typeof(y=b)||"number"==typeof y||"boolean"==typeof y||"symbol"==typeof y||"bigint"==typeof y||n.isBuffer(b))return s?[m(v?r:s(r,d.encoder,h,"key"))+"="+m(s(b,d.encoder,h,"value"))]:[m(r)+"="+m(String(b))];var _,S=[];if(void 0===b)return S;if(a(l))_=l;else{var A=Object.keys(b);_=f?A.sort(f):A}for(var E=0;E<_.length;++E){var w=_[E],C=b[w];if(!u||null!==C){var x=a(b)?"function"==typeof o?o(r,w):r:r+(p?"."+w:"["+w+"]");c(S,e(C,x,o,i,u,s,l,f,p,g,m,v,h))}}return S};e.exports=function(e,t){var r,n=e,s=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],u=d.filter;return("function"==typeof e.filter||a(e.filter))&&(u=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:u,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}}(t);"function"==typeof s.filter?n=(0,s.filter)("",n):a(s.filter)&&(r=s.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=u[l];r||(r=Object.keys(n)),s.sort&&r.sort(s.sort);for(var m=0;m<r.length;++m){var v=r[m];s.skipNulls&&null===n[v]||c(f,p(n[v],v,g,s.strictNullHandling,s.skipNulls,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.formatter,s.encodeValuesOnly,s.charset))}var h=f.join(s.delimiter),y=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),h.length>0?y+h:""}},2493:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r=Array.isArray,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],u=i.obj[i.prop],a=Object.keys(u),s=0;s<a.length;++s){var c=a[s],l=u[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:u,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&o.push(n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(o){return n}},encode:function(e,t,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",u=0;u<o.length;++u){var a=o.charCodeAt(u);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=o.charAt(u):a<128?i+=n[a]:a<2048?i+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?i+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(u+=1,a=65536+((1023&a)<<10|1023&o.charCodeAt(u)),i+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(n,i,u){if(!i)return n;if("object"!=typeof i){if(r(n))n.push(i);else{if(!n||"object"!=typeof n)return[n,i];(u&&(u.plainObjects||u.allowPrototypes)||!t.call(Object.prototype,i))&&(n[i]=!0)}return n}if(!n||"object"!=typeof n)return[n].concat(i);var a=n;return r(n)&&!r(i)&&(a=o(n,u)),r(n)&&r(i)?(i.forEach((function(r,o){if(t.call(n,o)){var i=n[o];i&&"object"==typeof i&&r&&"object"==typeof r?n[o]=e(i,r,u):n.push(r)}else n[o]=r})),n):Object.keys(i).reduce((function(r,n){var o=i[n];return t.call(r,n)?r[n]=e(r[n],o,u):r[n]=o,r}),a)}}},3631:function(e,t,r){"use strict";var n=r(3804),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,i=r(7201),u=r(4983),a=r(6590),s="function"==typeof Symbol&&Symbol.iterator;function c(e,t){return e&&"object"==typeof e&&null!=e.key?(r=e.key,n={"=":"=0",":":"=2"},"$"+(""+r).replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function l(e,t,r,n){var i,a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===o)return r(n,e,""===t?"."+c(e,0):t),1;var f=0,d=""===t?".":t+":";if(Array.isArray(e))for(var p=0;p<e.length;p++)f+=l(i=e[p],d+c(i,p),r,n);else{var g=function(e){var t=e&&(s&&e[s]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(g){0;for(var m,v=g.call(e),h=0;!(m=v.next()).done;)f+=l(i=m.value,d+c(i,h++),r,n)}else if("object"===a){0;var y=""+e;u(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===y?"object with keys {"+Object.keys(e).join(", ")+"}":y,"")}}return f}var f=/\/+/g;function d(e){return(""+e).replace(f,"$&/")}var p,g,m=v,v=function(e){var t=this;if(t.instancePool.length){var r=t.instancePool.pop();return t.call(r,e),r}return new t(e)},h=function(e){var t=this;u(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)};function y(e,t,r,n){this.result=e,this.keyPrefix=t,this.func=r,this.context=n,this.count=0}function b(e,t,r){var o,u,a=e.result,s=e.keyPrefix,c=e.func,l=e.context,f=c.call(l,t,e.count++);Array.isArray(f)?_(f,a,r,i.thatReturnsArgument):null!=f&&(n.isValidElement(f)&&(o=f,u=s+(!f.key||t&&t.key===f.key?"":d(f.key)+"/")+r,f=n.cloneElement(o,{key:u},void 0!==o.props?o.props.children:void 0)),a.push(f))}function _(e,t,r,n,o){var i="";null!=r&&(i=d(r)+"/");var u=y.getPooled(t,i,n,o);!function(e,t,r){null==e||l(e,"",t,r)}(e,b,u),y.release(u)}y.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p=function(e,t,r,n){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,r,n),i}return new o(e,t,r,n)},(g=y).instancePool=[],g.getPooled=p||m,g.poolSize||(g.poolSize=10),g.release=h;e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return a(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(n.isValidElement(e))return a(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;u(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var r in e)_(e[r],t,r,i.thatReturnsArgument);return t}},9830:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(1184),o={contextDelimiter:"",onMissingKey:null};function i(e,t){var r;for(r in this.data=e,this.pluralForms={},this.options={},o)this.options[r]=void 0!==t&&r in t?t[r]:o[r]}i.prototype.getPluralForm=function(e,t){var r,o,i,u=this.pluralForms[e];return u||("function"!=typeof(i=(r=this.data[e][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(o=function(e){var t,r,n;for(t=e.split(";"),r=0;r<t.length;r++)if(0===(n=t[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=(0,n.Z)(o)),u=this.pluralForms[e]=i),u(t)},i.prototype.dcnpgettext=function(e,t,r,n,o){var i,u,a;return i=void 0===o?0:this.getPluralForm(e,o),u=r,t&&(u=t+this.options.contextDelimiter+r),(a=this.data[e][u])&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(r,e),0===i?r:n)}},6274:function(e,t,r){"use strict";r(8077).z()},5608:function(e,t,r){"use strict";r(1635).z()},3857:function(e,t,r){"use strict";r(9734).z2()},561:function(e,t,r){"use strict";r(2369).z2({client_id:"",client_secret:""})},9512:function(e,t,r){"use strict";r(182).z()},3600:function(e,t,r){"use strict";r.r(t),r.d(t,{receiveCategories:function(){return n},fetchDomainSuggestions:function(){return o},receiveDomainAvailability:function(){return i},receiveDomainSuggestionsSuccess:function(){return u},receiveDomainSuggestionsError:function(){return a}});var n=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},o=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},i=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},u=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},a=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,r){"use strict";r.d(t,{L:function(){return o},r:function(){return n}});var n,o="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(n||(n={}))},8077:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(5707),o=r(3661),i=r(3600),u=r(584),a=r(3717),s=r(2269),c=r(267),l=!1;function f(){return l||(l=!0,(0,n.registerStore)(u.L,{actions:i,controls:o.ai,reducer:a.Z,resolvers:s,selectors:c})),u.L}},3717:function(e,t,r){"use strict";var n=r(1119),o=r(9394),i=r(5707),u=r(584),a=r(4211),s={state:u.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},c=(0,i.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,o.Z)((0,o.Z)({},e),{},{state:u.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,o.Z)((0,o.Z)({},e),{},{state:u.r.Success,data:(0,o.Z)((0,o.Z)({},e.data),{},(0,n.Z)({},(0,a.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,o.Z)((0,o.Z)({},e),{},{state:u.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.domainName,t.availability)):e}});t.Z=c},2269:function(e,t,r){"use strict";r.r(t),r.d(t,{isAvailable:function(){return m},getCategories:function(){return v},__internalGetDomainSuggestions:function(){return h}});var n=r(9394),o=r(1481),i=r(9126),u=r(6468),a=r.n(u),s=r(3661),c=r(3600),l=r(4211),f=regeneratorRuntime.mark(v),d=regeneratorRuntime.mark(h);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function g(e,t){return a().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var m=regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p(t),e.prev=1,e.next=4,(0,s.An)(r);case 4:return n=e.sent,o=n.body,e.abrupt("return",(0,c.receiveDomainAvailability)(t,o));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 v(){var e,t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=r.sent,t=e.body,r.abrupt("return",(0,c.receiveCategories)(t));case 5:case"end":return r.stop()}}),f)}function h(e){var t,r,u;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.query){a.next=2;break}return a.abrupt("return",(0,c.receiveDomainSuggestionsError)("Empty query"));case 2:return a.next=4,(0,c.fetchDomainSuggestions)();case 4:return a.prev=4,a.next=7,(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,i.stringify)(e)});case 7:if(t=a.sent,Array.isArray(t)){a.next=10;break}return a.abrupt("return",(0,c.receiveDomainSuggestionsError)((0,o.Iu)("Invalid response from the server")));case 10:return g(t,e.query)&&(r={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(r)),u=t.map((function(e){return e.unavailable?e:(0,n.Z)((0,n.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,l._B)(e.raw_price,e.currency_code)})})),a.abrupt("return",(0,c.receiveDomainSuggestionsSuccess)(e,u));case 15:return a.prev=15,a.t0=a.catch(4),a.abrupt("return",(0,c.receiveDomainSuggestionsError)(a.t0.message||(0,o.Iu)("Error while fetching server response")));case 18:case"end":return a.stop()}}),d,null,[[4,15]])}},267:function(e,t,r){"use strict";r.r(t),r.d(t,{getCategories:function(){return a},getDomainSuggestions:function(){return s},getDomainState:function(){return c},getDomainErrorMessage:function(){return l},isLoadingDomainSuggestions:function(){return f},__internalGetDomainSuggestions:function(){return d},isAvailable:function(){return p},getDomainAvailabilities:function(){return g}});var n=r(1766),o=r(5707),i=r(584),u=r(4211),a=function(e){return[].concat((0,n.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,n.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,u.o0)(t,r);return(0,o.select)(i.L).__internalGetDomainSuggestions(n)},c=function(e){return e.domainSuggestions.state},l=function(e){return e.domainSuggestions.errorMessage},f=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,u.o0)(t,r);return(0,o.select)("core/data").isResolving(i.L,"__internalGetDomainSuggestions",[n])},d=function(e,t){return e.domainSuggestions.data[(0,u.Le)(t)]},p=function(e,t){return e.availability[t]},g=function(e){return e.availability}},4211:function(e,t,r){"use strict";r.d(t,{Le:function(){return u},_B:function(){return a},o0:function(){return s}});var n=r(9394),o=r(1621),i=r(5695),u=r.n(i)();function a(e,t){return(0,o.ZP)(e,t,{stripZeros:!0})}function s(e,t){return(0,n.Z)((0,n.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,r){"use strict";r.r(t),r.d(t,{setSidebarFullscreen:function(){return i},unsetSidebarFullscreen:function(){return u},setStep:function(){return a},setSiteTitle:function(){return s},setDomain:function(){return c},unsetDomain:function(){return l},confirmDomainSelection:function(){return f},setDomainSearch:function(){return d},setPlanProductId:function(){return g},unsetPlanProductId:function(){return m},updatePlan:function(){return v},openSidebar:function(){return h},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return A},setModalDismissible:function(){return E},unsetModalDismissible:function(){return w},showModalTitle:function(){return C},hideModalTitle:function(){return x},enablePersistentSuccessView:function(){return O},disablePersistentSuccessView:function(){return P}});var n=r(5707),o=r(9149),i=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},u=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},a=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},c=function(e){return{type:"SET_DOMAIN",domain:e}},l=function(){return{type:"UNSET_DOMAIN"}},f=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},d=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},g=regeneratorRuntime.mark((function e(t){var r,i,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,n.select)(o.Fs).isPlanProductFree(t)){e.next=6;break}return i=(0,n.select)(o.Fs).getPlanProductById(t),u=null!==(r=null==i?void 0:i.billingPeriod)&&void 0!==r?r:"ANNUALLY",e.next=6,p(u);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),m=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function v(e){return g(e)}var h=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},A=function(){return{type:"SHOW_SITE_TITLE_STEP"}},E=function(){return{type:"SET_MODAL_DISMISSIBLE"}},w=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},C=function(){return{type:"SHOW_MODAL_TITLE"}},x=function(){return{type:"HIDE_MODAL_TITLE"}},O=function(){return{type:"ENABLE_SUCCESS_VIEW"}},P=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Fs:function(){return o}});var n="automattic/launch",o="automattic/onboard/plans"},3610:function(e,t,r){"use strict";r.d(t,{y:function(){return n},M:function(){return o}});var n={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},o=[n.Name,n.Domain,n.Plan,n.Final]},1635:function(e,t,r){"use strict";r.d(t,{z:function(){return f}});var n=r(5707),o=r(9866),i=r(6108),u=r(9149),a=r(594),s=r(4648),c=r(7092);(0,n.use)(n.plugins.persistence,a.Z);var l=!1;function f(){return l||(l=!0,(0,n.registerStore)(u.Ls,{actions:i,controls:o.controls,reducer:s.Z,selectors:c,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),u.Ls}},594:function(e,t,r){"use strict";var n=r(492);t.Z=(0,n.Z)("WP_LAUNCH")},4648:function(e,t,r){"use strict";var n=r(5707),o=r(3610),i=(0,n.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.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=i},7092:function(e,t,r){"use strict";r.r(t),r.d(t,{getLaunchSequence:function(){return u},getLaunchStep:function(){return a},getState:function(){return s},hasPaidDomain:function(){return c},getSelectedDomain:function(){return l},getSelectedPlanProductId:function(){return f},getLastPlanBillingPeriod:function(){return d},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return g},isStepCompleted:function(){return m},isFlowCompleted:function(){return v},isFlowStarted:function(){return h},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var n=r(5707),o=r(9149),i=r(3610),u=function(){return i.M},a=function(){return i.y},s=function(e){return e},c=function(e){return!!e.domain&&!e.domain.is_free},l=function(e){return e.domain},f=function(e){return e.planProductId},d=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,n.select)(o.Fs).isPlanProductFree(e.planProductId)},g=function(e){return!!l(e)||e.confirmedDomainSelection},m=function(e,t){if(t===i.y.Plan)return!!f(e);if(t===i.y.Name){var r=(0,n.select)("core").getEntityRecord("root","site",void 0);return!(null==r||!r.title)}return t===i.y.Domain&&(0,n.select)(o.Ls).hasSelectedDomainOrSubdomain()},v=function(e){return i.M.slice(0,i.M.length-1).every((function(t){return m(e,t)}))},h=function(e){return i.M.some((function(t){return m(e,t)}))},y=function(e){return i.M.find((function(t){return!m(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,r){"use strict";function n(e){var t=e,r=e+"_TS",n={},o={getItem:function(e){return n.hasOwnProperty(e)?n[e]:null},setItem:function(e,t){n[e]=String(t)},removeItem:function(e){delete n[e]}},i=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:o;return{storageKey:t,storage:{getItem:function(e){var n=i.getItem(r);return n&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(n)&&!new URLSearchParams(window.location.search).has("fresh")?i.getItem(e):(i.removeItem(t),i.removeItem(r),null)},setItem:function(e,t){i.setItem(r,JSON.stringify(Date.now())),i.setItem(e,t)}}}}r.d(t,{Z:function(){return n}})},9068:function(e,t,r){"use strict";r.r(t),r.d(t,{setFeatures:function(){return n},setFeaturesByType:function(){return o},setPlans:function(){return i},setPlanProducts:function(){return u},resetPlan:function(){return a}});var n=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},o=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},i=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},u=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},a=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,r){"use strict";r.d(t,{Ls:function(){return n},Ho:function(){return o},TO:function(){return i},YS:function(){return u},Gz:function(){return a},hx:function(){return s},iL:function(){return c},xT:function(){return l},AX:function(){return f},bS:function(){return d},UB:function(){return p},BV:function(){return g},nN:function(){return m}});var n="automattic/onboard/plans",o=1,i="free",u="personal",a="premium",s="business",c="ecommerce",l=[i,u,a,s,c],f=a,d=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],g=["free_plan"].concat(d,p),m=["custom-domain","support-live","priority-support"]},9734:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(5707),o=r(3661),i=r(9068),u=r(4703),a=r(9438),s=r(5261),c=r(7738),l=!1;function f(){return l||(l=!0,(0,n.registerStore)(u.Ls,{resolvers:s,actions:i,controls:o.ai,reducer:a.ZP,selectors:c})),u.Ls}},9438:function(e,t,r){"use strict";var n=r(1119),o=r(9394),i=r(5707),u=(0,i.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,o.Z)((0,o.Z)({},e),{},(0,n.Z)({},t.locale,t.plans));default:return e}}});t.ZP=u},5261:function(e,t,r){"use strict";r.r(t),r.d(t,{getSupportedPlans:function(){return m}});var n=r(1621),o=r(9126),i=r(3661),u=r(9068),a=r(4703),s=regeneratorRuntime.mark(m);function c(e){return(0,n.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function l(e){return(0,n.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function f(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 d(e,t){var r=Object.keys(t).find((function(r){return t[r].name===e}));return!!r&&t[r].requiresAnnuallyBilledPlan}function p(e,t){var r=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:d(e,t)}}));return r.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),r}function g(e,t){var r=a.BV.reduce((function(r,o){var i=e.find((function(e){return e.product_slug===o}));if(!i)return r;var u,a=t.find((function(e){return e.productIds.indexOf(i.product_id)>-1}));return r.push({productId:i.product_id,billingPeriod:31===i.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:a.periodAgnosticSlug,storeSlug:i.product_slug,rawPrice:i.raw_price,pathSlug:i.path_slug,price:31===(null==i?void 0:i.bill_period)||0===i.raw_price?l(i):(u=i,(0,n.ZP)(u.raw_price/12,u.currency_code,{stripZeros:!0})),annualPrice:31===(null==i?void 0:i.bill_period)?c(i):l(i)}),r}),[]);return function(e){for(var t=function(t){var r=e.find((function(e){return e.storeSlug===a.bS[t]})),n=e.find((function(e){return e.storeSlug===a.UB[t]}));if(r&&n){var o=12*n.rawPrice,i=r.rawPrice,u=Math.round(100*(1-i/o));r.annualDiscount=u,n.annualDiscount=u}},r=0;r<a.bS.length;r++)t(r)}(r),r}function m(){var e,t,r,n,c,l,d,m=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=m.length>0&&void 0!==m[0]?m[0]:"en",s.next=3,(0,i._9)({path:"/plans",query:(0,o.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,i.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return r=s.sent,n=r.body,c=f(n.features),l=n.plans.map((function(e){var t,r=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,c),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:r===a.TO,isPopular:r===a.Gz,periodAgnosticSlug:r,productIds:e.products.map((function(e){return e.plan_id}))}})),d=g(t,l),s.next=13,(0,u.setPlans)(l,e);case 13:return s.next=15,(0,u.setPlanProducts)(d);case 15:return s.next=17,(0,u.setFeatures)(c,e);case 17:return s.next=19,(0,u.setFeaturesByType)(n.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,r){"use strict";r.r(t),r.d(t,{getFeatures:function(){return a},getFeaturesByType:function(){return s},getPlanByProductId:function(){return c},getPlanProductById:function(){return l},getPlanByPeriodAgnosticSlug:function(){return f},getDefaultPaidPlan:function(){return d},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return g},getPlansProducts:function(){return m},getPrices:function(){return v},getPlanByPath:function(){return h},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var n=r(5707),o=r(3613),i=r.n(o),u=r(4703),a=function(e,t){var r;return null!==(r=e.features[t])&&void 0!==r?r:{}},s=function(e,t){var r;return null!==(r=e.featuresByType[t])&&void 0!==r?r:[]},c=function(e,t,r){if(t)return(0,n.select)(u.Ls).getSupportedPlans(r).find((function(e){return e.productIds.indexOf(t)>-1}))},l=function(e,t){if(t)return(0,n.select)(u.Ls).getPlansProducts().find((function(e){return e.productId===t}))},f=function(e,t,r){if(t)return(0,n.select)(u.Ls).getSupportedPlans(r).find((function(e){return e.periodAgnosticSlug===t}))},d=function(e,t){return(0,n.select)(u.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===u.AX}))},p=function(e,t){return(0,n.select)(u.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===u.TO}))},g=function(e,t){var r;return null!==(r=e.plans[t])&&void 0!==r?r:[]},m=function(e){return e.planProducts},v=function(e,t){return i()("getPrices",{alternative:"getPlanProduct().price"}),(0,n.select)(u.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},h=function(e,t,r){if(t){var o=(0,n.select)(u.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(o)return(0,n.select)(u.Ls).getSupportedPlans(r).find((function(e){return e.periodAgnosticSlug===o.periodAgnosticSlug}))}},y=function(e,t,r){if(t&&r)return(0,n.select)(u.Ls).getPlansProducts().find((function(e){var n=e.periodAgnosticSlug===t,o=t===u.TO||e.billingPeriod===r;return n&&o}))},b=function(e,t){return t===u.iL},_=function(e,t){return t===u.TO},S=function(e,t){return t===u.Ho}},8459:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});var n=r(9394),o=r(4530),i=r(3661),u=r(9639);function a(e){var t=regeneratorRuntime.mark(p),r=regeneratorRuntime.mark(y),a=regeneratorRuntime.mark(b),s=regeneratorRuntime.mark(_),c=regeneratorRuntime.mark(S),l=function(){return{type:"FETCH_NEW_SITE"}},f=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},d=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(r){var u,a,s,c,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,u=r.authToken,a=(0,o.Z)(r,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},c=(0,n.Z)((0,n.Z)((0,n.Z)({},s),a),{},{validate:!1}),t.next=8,(0,i._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:c,token:u});case 8:return l=t.sent,t.next=11,f(l);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,d(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var g=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},m=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},v=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},h=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,m(e);case 2:return t.prev=2,t.next=5,(0,i._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,v(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,h(e,u.Hc.INTERNAL);case 13:case"end":return t.stop()}}),r,null,[[2,9]])}function b(e){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,i._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=r.sent,r.abrupt("return",t);case 4:case"end":return r.stop()}}),a)}function _(e,t){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,i._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return r=n.sent,n.abrupt("return",r);case 4:case"end":return n.stop()}}),s)}function S(e,t){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,i._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return r.next=5,g(e,t);case 5:r.next=9;break;case 7:r.prev=7,r.t0=r.catch(0);case 9:case"end":return r.stop()}}),c,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:S,receiveSiteTitle:g,fetchNewSite:l,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:f,receiveNewSiteFailed:d,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:m,launchSiteSuccess:v,launchSiteFailure:h,getCart:b,setCart:_}}},2005:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});var n="automattic/site"},2369:function(e,t,r){"use strict";r.d(t,{z2:function(){return f}});var n=r(5707),o=r(3661),i=r(8459),u=r(2005),a=r(2701),s=r(7862),c=r(4309),l=!1;function f(e){return l||(l=!0,(0,n.registerStore)(u.L,{actions:(0,i.d)(e),controls:o.ai,reducer:a.ZP,resolvers:s,selectors:c})),u.L}},2701:function(e,t,r){"use strict";var n=r(4530),o=r(60),i=r(1119),u=r(9394),a=r(5707),s=r(9639),c=(0,a.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}}),l=(0,a.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:c,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var r=t.siteId,a=(e[r],(0,n.Z)(e,[r].map(o.Z)));return(0,u.Z)({},a)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,(0,u.Z)((0,u.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,{status:s.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,u.Z)((0,u.Z)({},e),{},(0,i.Z)({},t.siteId,t.domains)):e}});t.ZP=l},7862:function(e,t,r){"use strict";r.r(t),r.d(t,{getSite:function(){return s},getSiteDomains:function(){return c}});var n=r(5707),o=r(3661),i=r(2005),u=regeneratorRuntime.mark(s),a=regeneratorRuntime.mark(c);function s(e){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,n.dispatch)(i.L).fetchSite();case 2:return r.prev=2,r.next=5,(0,o._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=r.sent,r.next=8,(0,n.dispatch)(i.L).receiveSite(e,t);case 8:r.next=14;break;case 10:return r.prev=10,r.t0=r.catch(2),r.next=14,(0,n.dispatch)(i.L).receiveSiteFailed(e,void 0);case 14:case"end":return r.stop()}}),u,null,[[2,10]])}function c(e){var t;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,(0,o._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=r.sent,r.next=6,(0,n.dispatch)(i.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:r.next=10;break;case 8:r.prev=8,r.t0=r.catch(0);case 10:case"end":return r.stop()}}),a,null,[[0,8]])}},4309:function(e,t,r){"use strict";r.r(t),r.d(t,{getState:function(){return u},getNewSite:function(){return a},getNewSiteError:function(){return s},isFetchingSite:function(){return c},isFetchingSiteDetails:function(){return l},isNewSite:function(){return f},getSite:function(){return d},getSiteTitle:function(){return p},isSiteLaunched:function(){return g},isSiteLaunching:function(){return m},getSiteDomains:function(){return v},getPrimarySiteDomain:function(){return h},getSiteSubdomain:function(){return y}});var n=r(5707),o=r(2005),i=r(9639),u=function(e){return e},a=function(e){return e.newSite.data},s=function(e){return e.newSite.error},c=function(e){return e.newSite.isFetching},l=function(e){return e.isFetchingSiteDetails},f=function(e){return!!e.newSite.data},d=function(e,t){return e.sites[t]},p=function(e,t){var r;return null===(r=(0,n.select)(o.L).getSite(t))||void 0===r?void 0:r.name},g=function(e,t){var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.SUCCESS},m=function(e,t){var r;return(null===(r=e.launchStatus[t])||void 0===r?void 0:r.status)===i.uS.IN_PROGRESS},v=function(e,t){return e.sitesDomains[t]},h=function(e,t){var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((function(e){return e.primary_domain}))},y=function(e,t){var r;return null===(r=(0,n.select)(o.L).getSiteDomains(t))||void 0===r?void 0:r.find((function(e){return e.is_subdomain}))}},9639:function(e,t,r){"use strict";var n,o,i;r.d(t,{Hc:function(){return o},uS:function(){return i}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(n||(n={})),function(e){e.INTERNAL="internal"}(o||(o={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(i||(i={}))},4366:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});var n="automattic/wpcom-features"},2613:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var n=r(4703),o=n.YS,i=n.Gz,u=n.hx,a={domain:{id:"domain",minSupportedPlan:o},store:{id:"store",minSupportedPlan:n.iL},seo:{id:"seo",minSupportedPlan:u},plugins:{id:"plugins",minSupportedPlan:u},"ad-free":{id:"ad-free",minSupportedPlan:o},"image-storage":{id:"image-storage",minSupportedPlan:i},"video-storage":{id:"video-storage",minSupportedPlan:i},support:{id:"support",minSupportedPlan:u}}},182:function(e,t,r){"use strict";r.d(t,{z:function(){return c}});var n=r(5707),o=r(9866),i=r(4366),u=r(8638),a=r(335),s=!1;function c(){return s||(s=!0,(0,n.registerStore)(i.L,{controls:o.controls,reducer:u.Z,selectors:a})),i.L}},8638:function(e,t,r){"use strict";var n=r(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.$;return e}},335:function(e,t,r){"use strict";r.r(t),r.d(t,{getAllFeatures:function(){return o},getRecommendedPlanSlug:function(){return i}});var n=r(4703),o=function(e){return e},i=function(e,t){var r=o(e);if(t.length)return t.reduce((function(e,t){var o=r[t].minSupportedPlan;return n.xT.indexOf(o)>n.xT.indexOf(e)?o:e}),r[t[0]].minSupportedPlan)}},3661:function(e,t,r){"use strict";r.d(t,{_9:function(){return u},An:function(){return a},ai:function(){return s}});var n,o=r(6470),i=r(8552),u=function(e){return{type:"WPCOM_REQUEST",request:e}},a=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,i.ZP)(t)},FETCH_AND_PARSE:(n=(0,o.Z)(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.resource,n=t.options,e.next=3,window.fetch(r,n);case 3:return o=e.sent,e.t0=o.ok,e.next=7,o.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 n.apply(this,arguments)}),RELOAD_PROXY:function(){(0,i.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,i.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},3759:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});var n={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 o(e){return n[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,r){"use strict";r.d(t,{ZP:function(){return u}});var n=r(9394),o=r(1481),i=r(3759);function u(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=(0,i.X)(t);if(!u||isNaN(e))return null;var s=(0,n.Z)((0,n.Z)({},u),r),c=s.decimal,l=s.grouping,f=s.precision,d=s.symbol,p=e<0?"-":"",g=(0,o.Y4)(Math.abs(e),{decimals:f,thousandsSep:l,decPoint:c});return r.stripZeros&&(g=a(g,c)),"".concat(p).concat(d).concat(g)}function a(e,t){var r=new RegExp("\\".concat(t,"0+$"));return e.replace(r,"")}},914:function(e,t,r){"use strict";var n=r(1766),o=r(1119),i=r(8049),u=r.n(i),a=r(7010),s=r(9830),c=r(7839),l=r.n(c),f=r(5079),d=r.n(f),p=r(2699),g=r(6668),m=r(3),v=u()("i18n-calypso"),h="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function A(){O.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function E(e){return Array.prototype.slice.call(e)}function w(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&A("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",E(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&A("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",E(e));for(var r={},n=0;n<e.length;n++)"object"==typeof e[n]&&(r=e[n]);if("string"==typeof t?r.original=t:"object"==typeof r.original&&(r.plural=r.original.plural,r.count=r.original.count,r.original=r.original.single),"string"==typeof e[1]&&(r.plural=e[1]),void 0===r.original)throw new Error("Translate called without a `string` value as first argument.");return r}function C(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function x(e,t){for(var r=_.length-1;r>=0;r--){var n=_[r](Object.assign({},t)),o=n.context?n.context+""+n.original:n.original;if(e.state.locale[o])return C(e.state.tannin,n)}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:l()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.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]:{},r="number"==typeof t?t:t.decimals||0,n=t.decPoint||this.state.numberFormatSettings.decimal_point||".",o=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,m.Z)(e,r,n,o)},O.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},O.prototype.setLocale=function(e){var t,r,n;if(e&&e[""]&&e[""]["key-hash"]){var i=e[""]["key-hash"],u=function(e,t){var r=!1===t?"":String(t);if(void 0!==S[r+e])return S[r+e];var n=d()().update(e).digest("hex");return S[r+e]=t?n.substr(0,t):n},a=function(e){return function(t){return t.context?(t.original=u(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=u(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)_.push(a(!1));else{var c=i.substr(5).indexOf("-");if(c<0){var l=Number(i.substr(5));_.push(a(l))}else for(var f=Number(i.substr(5,c)),p=Number(i.substr(6+c)),g=f;g<=p;g++)_.push(a(g))}}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===(r=this.state.locale[""])||void 0===r||null===(n=r.momentjs_locale)||void 0===n?void 0:n.textDirection),this.state.tannin=new s.Z((0,o.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=C(this.state.tannin,w([h])),this.state.numberFormatSettings.thousands_sep=C(this.state.tannin,w([y])),this.state.numberFormatSettings.decimal_point===h&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(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!!x(this,w(arguments))},O.prototype.translate=function(){var e=w(arguments),t=x(this,e);if(t||(t=C(this.state.tannin,e)),e.args){var r=Array.isArray(e.args)?e.args.slice(0):[e.args];r.unshift(t);try{t=g.Z.apply(void 0,(0,n.Z)(r))}catch(i){if(!window||!window.console)return;var o=this.throwErrors?"error":"warn";"string"!=typeof i?window.console[o](i):window.console[o]("i18n sprintf error:",r)}}return e.components&&(t=(0,a.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(r){t=r(t,e)})),t},O.prototype.reRenderTranslations=function(){v("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,r){"use strict";r.d(t,{Y4:function(){return s},Iu:function(){return c}});var n=r(914),o=r(3493),i=r(975),u=r(8373),a=new n.Z,s=a.numberFormat.bind(a),c=a.translate.bind(a),l=(a.configure.bind(a),a.setLocale.bind(a),a.getLocale.bind(a),a.getLocaleSlug.bind(a),a.getLocaleVariant.bind(a),a.isRtl.bind(a),a.addTranslations.bind(a),a.reRenderTranslations.bind(a),a.registerComponentUpdateHook.bind(a),a.registerTranslateHook.bind(a),a.state,a.stateObserver,a.on.bind(a),a.off.bind(a),a.emit.bind(a),(0,o.Z)(a),(0,i.Z)(a),(0,u.Z)(a));l.useRtl,l.withRtl},3493:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(9394),o=r(4659),i=r(4730),u=r(3989),a=r(5663),s=r(9049),c=r(1119),l=r(3027),f=r(3804),d=r.n(f);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(r){var f,p,g=r.displayName||r.name||"";return p=f=function(f){(0,a.Z)(p,f);var d=(0,s.Z)(p);function p(){var e;(0,o.Z)(this,p);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e=d.call.apply(d,[this].concat(r)),(0,c.Z)((0,u.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,u.Z)(e))),e}return(0,i.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var o=(0,n.Z)((0,n.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,l.createElement)(r,o)}}]),p}(d().Component),(0,c.Z)(f,"displayName","Localized("+g+")"),p}}},3:function(e,t,r){"use strict";function n(e,t,r,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,u=void 0===n?",":n,a=void 0===r?".":r,s="";return(s=(i?
7
  /*
8
  * Exposes number format capability
9
  *
dotcom-fse/dist/dotcom-fse.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => 'b61c55e3a8fd407116c529a02b013d41');
1
+ <?php return array('dependencies' => array('lodash', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-server-side-render', 'wp-url'), 'version' => '7b4c67a40cfaa03de11eea46a0951729');
dotcom-fse/dist/dotcom-fse.js CHANGED
@@ -3,4 +3,4 @@
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&t.push(l)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},6959:function(){},7148:function(){},3920:function(){},9861:function(){},6913:function(){},7252:function(){},784:function(){},6254:function(){},1428:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(9314);function o(){for(var t=(0,r.getCategories)(),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=function(){var e=c[l];if(t.some((function(t){return t.slug===e})))return{v:e}},l=0,c=n;l<c.length;l++){var s=i();if("object"==typeof s)return s.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}},49:function(t,e,n){"use strict";var r=n(3027),o=n(9775),i=n.n(o),l=n(1417),c=n(3163),s=n(6399),a=n(7997),u=n(5707),__=c.__;e.Z=(0,l.compose)([(0,s.withColors)("backgroundColor",{textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,u.withSelect)((function(t){return{isPublished:t("core/editor").isCurrentPostPublished()}}))])((function(t){var e=t.attributes,n=t.backgroundColor,o=t.fontSize,l=t.setAttributes,c=t.setBackgroundColor,u=t.setFontSize,d=t.setTextColor,f=t.textColor,p=t.isPublished,m=e.customFontSize,g=e.textAlign,v=m||o.size;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(s.AlignmentToolbar,{value:g,onChange:function(t){l({textAlign:t})}})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(a.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,r.createElement)(s.FontSizePicker,{onChange:u,value:v})),(0,r.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:c,label:__("Background Color","full-site-editing")},{value:f.color,onChange:d,label:__("Text Color","full-site-editing")}]},(0,r.createElement)(s.ContrastChecker,{textColor:f.color,backgroundColor:n.color,fontSize:v}))),(0,r.createElement)(i(),{isPublished:p,block:"a8c/navigation-menu",attributes:e}))}))},4018:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(49),c=n(1428),__=(n(6959),i.__),s=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));(0,o.registerBlockType)("a8c/navigation-menu",{title:__("Navigation Menu","full-site-editing"),description:__("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:s,category:(0,c.R)("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:l.Z,save:function(){return null}})},966:function(t,e,n){"use strict";var r=n(1119),o=n(4659),i=n(4730),l=n(5663),c=n(9049),s=n(3027),a=n(2779),u=n.n(a),d=n(1417),f=n(5707),p=n(8885),m=n(6399),g=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n,[{key:"toggleEditing",value:function(){var t=this.props,e=t.isEditing;(0,t.setState)({isEditing:!e})}},{key:"onSelectPost",value:function(t){var e=t.id,n=t.type;this.props.setState({isEditing:!1,selectedPostId:e,selectedPostType:n})}},{key:"render",value:function(){var t=this.props.attributes.align;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:u()("post-content-block",(0,r.Z)({},"align".concat(t),t))},(0,s.createElement)(p.PostTitle,null),(0,s.createElement)(m.InnerBlocks,{templateLock:!1})))}}]),n}(s.Component);e.Z=(0,d.compose)([(0,d.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),(0,f.withSelect)((function(t,e){var n=e.selectedPostId,r=e.selectedPostType;return{selectedPost:(0,t("core").getEntityRecord)("postType",r,n)}}))])(g)},7308:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(9314),c=n(3163),s=n(5799),a=n(966),u=n(3175),d=n(1428),__=(n(7148),c.__);(0,l.registerBlockType)("a8c/post-content",{title:__("Content","full-site-editing"),description:__("The page content.","full-site-editing"),icon:"layout",category:(0,d.R)("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:a.Z,save:u.Z});var f=(0,i.createHigherOrderComponent)((function(t){return function(e){return"a8c/post-content"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"post-content__block"}))}}),"addContentSlotClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",f,9)},3175:function(t,e,n){"use strict";var r=n(3027),o=n(6399);e.Z=function(){return(0,r.createElement)(o.InnerBlocks.Content,null)}},1097:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(7997),a=n(1417),u=n(3163),d=n(6284),f=n(8558),__=u.__,p=fullSiteEditing,m=p.footerCreditOptions,g=p.defaultCreditOption;e.Z=(0,a.compose)([(0,d.g)({siteTitleOption:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:__("Footer credit loading…","full-site-editing")}})])((function(t){var e=t.attributes.textAlign,n=void 0===e?"center":e,i=t.isSelected,a=t.setAttributes,u=t.footerCreditOption,d=u.value,p=u.updateValue,v=t.siteTitleOption.value,b=d||g;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:n,onChange:function(t){a({textAlign:t})}})),(0,o.createElement)("div",{className:l()("site-info","site-credit__block",(0,r.Z)({},"has-text-align-".concat(n),n))},(0,o.createElement)("span",{className:"site-name"},v),(0,o.createElement)("span",{className:"comma"},","),(0,o.createElement)("span",{className:"site-credit__selection"},i?(0,o.createElement)(s.SelectControl,{onChange:p,value:b,options:m}):(0,o.createElement)(f.U,{choice:b}))))}))},8558:function(t,e,n){"use strict";n.d(e,{U:function(){return c}});var r=n(9394),o=n(3027),i=n(7997),l=fullSiteEditing.footerCreditOptions,c=function(t){var e=t.choice,n=l.find((function(t){return t.value===e}));if(!n)return null;var c=n.renderType,s=n.renderProps,a=n.label,u=(0,r.Z)({label:a},s);return"icon"===c?(0,o.createElement)(i.Icon,u):(0,o.createElement)("span",null," ",u.label," ")}},6367:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1097),l=n(1428),__=(n(3920),o.__);(0,r.registerBlockType)("a8c/site-credit",{title:__("WordPress.com Credit","full-site-editing"),description:__("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:i.Z,save:function(){return null}})},942:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(1417),a=n(5707),u=n(3163),d=n(7997),f=n(6284),__=u.__,p=function(){};e.Z=(0,s.compose)([(0,c.withColors)("backgroundColor",{textColor:"color"}),(0,c.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteDescription:{optionName:"description",defaultValue:__("Site description loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.backgroundColor,s=t.className,a=t.fontSize,u=t.insertDefaultBlock,f=t.setAttributes,m=t.setBackgroundColor,g=t.setFontSize,v=t.setTextColor,b=t.siteDescription,y=t.textColor,h=n.customFontSize,w=n.textAlign,S=h||a.size,E=b.value,k=b.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:w,onChange:function(t){f({textAlign:t})}})),(0,o.createElement)(c.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(c.FontSizePicker,{onChange:g,value:S})),(0,o.createElement)(c.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:i.color,onChange:m,label:__("Background Color","full-site-editing")},{value:y.color,onChange:v,label:__("Text Color","full-site-editing")}]},(0,o.createElement)(c.ContrastChecker,{textColor:y.color,backgroundColor:i.color,fontSize:S}))),(0,o.createElement)(c.RichText,{allowedFormats:[],"aria-label":__("Site Description","full-site-editing"),className:l()("site-description",s,(e={"has-text-color":y.color,"has-background":i.color},(0,r.Z)(e,"has-text-align-".concat(w),w),(0,r.Z)(e,i.class,i.class),(0,r.Z)(e,y.class,y.class),(0,r.Z)(e,a.class,!h&&a.class),e)),identifier:"content",onChange:k,onReplace:u,onSplit:p,placeholder:__("Add a Site Description","full-site-editing"),style:{backgroundColor:i.color,color:y.color,fontSize:S?S+"px":void 0},tagName:"p",value:E}))}))},5129:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(942),c=n(1428),__=(n(9861),i.__);(0,o.registerBlockType)("a8c/site-description",{title:__("Site Description","full-site-editing"),description:__("Site description, also known as the tagline.","full-site-editing"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:(0,c.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:l.Z,save:function(){return null}})},512:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(3163),s=n(6399),a=n(5707),u=n(1417),d=n(7997),f=n(6284),__=c.__,p=function(){};e.Z=(0,u.compose)([(0,s.withColors)({textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteTitle:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.className,c=t.fontSize,a=t.insertDefaultBlock,u=t.setAttributes,f=t.setFontSize,m=t.setTextColor,g=t.siteTitle,v=t.textColor,b=n.customFontSize,y=n.textAlign,h=b||c.size,w=g.value,S=g.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.BlockControls,null,(0,o.createElement)(s.AlignmentToolbar,{value:y,onChange:function(t){u({textAlign:t})}})),(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(s.FontSizePicker,{onChange:f,value:h})),(0,o.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:v.color,onChange:m,label:__("Text Color","full-site-editing")}]})),(0,o.createElement)(s.RichText,{allowedFormats:[],"aria-label":__("Site Title","full-site-editing"),className:l()("site-title",i,(e={"has-text-color":v.color},(0,r.Z)(e,"has-text-align-".concat(y),y),(0,r.Z)(e,v.class,v.class),(0,r.Z)(e,c.class,!b&&c.class),e)),identifier:"content",onChange:S,onReplace:a,onSplit:p,placeholder:__("Add a Site Title","full-site-editing"),style:{color:v.color,fontSize:h?h+"px":void 0},tagName:"h1",value:w}))}))},5725:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(512),l=n(1428),__=(n(6913),o.__);(0,r.registerBlockType)("a8c/site-title",{title:__("Site Title","full-site-editing"),description:__("Your site title.","full-site-editing"),icon:"layout",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:i.Z,save:function(){return null}})},6594:function(t,e,n){"use strict";var r=n(1119),o=n(3258),i=n(3027),l=n(2779),c=n.n(l),s=n(3804),a=n(9314),u=n(6399),d=n(7997),f=n(1417),p=n(5707),m=n(3163),g=n(791),__=(n(7252),m.__),v=function(){},b=(0,f.compose)((0,f.withState)({templateClientId:null}),(0,p.withSelect)((function(t,e){var n=e.attributes,r=e.templateClientId,o=t("core").getEntityRecord,i=t("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,a=t("core/block-editor"),u=a.getBlock,d=a.getSelectedBlock,f=t("core/edit-post").isEditorSidebarOpened,p=n.templateId,m=l(),v=p&&o("postType","wp_template_part",p),b=(0,g.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:m}),y=d();return{currentPostId:m,editTemplateUrl:b,template:v,templateBlock:u(r),templateTitle:(0,s.get)(v,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!f(),isAnyTemplateBlockSelected:y&&"a8c/template"===y.name}})),(0,p.withDispatch)((function(t,e){var n=t("core/block-editor").receiveBlocks,r=t("core/edit-post").openGeneralSidebar,o=e.template,i=e.templateClientId,l=e.setState;return{savePost:t("core/editor").savePost,receiveTemplateBlocks:function(){if(o&&!i){var t=(0,a.parse)((0,s.get)(o,["content","raw"],"")),e=(0,a.createBlock)("core/group",{},t);n([e]),l({templateClientId:e.clientId})}},openGeneralSidebar:r}})))((function(t){var e,n=t.attributes,l=t.editTemplateUrl,s=t.receiveTemplateBlocks,a=t.template,f=t.templateBlock,p=t.templateTitle,g=t.isDirty,b=t.savePost,y=t.isEditorSidebarOpened,h=t.openGeneralSidebar,w=t.isAnyTemplateBlockSelected;if(!a)return(0,i.createElement)(d.Placeholder,{className:"template-block__placeholder"},(0,i.createElement)(d.Spinner,null));var S=(0,i.createRef)(),E=(0,i.useState)(!1),k=(0,o.Z)(E,2),C=k[0],Z=k[1];(0,i.useEffect)((function(){C&&!g&&S.current.click(),s()})),(0,i.useEffect)((function(){var t=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(y&&t){if(w)return h("edit-post/document"),void t.classList.add("hidden");t.classList.remove("hidden")}}),[w,y,h]);var _=n.align,P=n.className,x=function(t){t.stopPropagation(),Z(!0),g&&(t.preventDefault(),b())};return(0,i.createElement)("div",{className:c()("template-block",(e={},(0,r.Z)(e,"align".concat(_),_),(0,r.Z)(e,"is-navigating-to-template",C),e))},f&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.Disabled,null,(0,i.createElement)("div",{className:P},(0,i.createElement)(u.BlockEdit,{attributes:f.attributes,block:f,clientId:f.clientId,isSelected:!1,name:f.name,setAttributes:v}))),(0,i.createElement)(d.Placeholder,{className:"template-block__overlay",onClick:x},C&&(0,i.createElement)("div",{className:"template-block__loading"},(0,i.createElement)(d.Spinner,null)," ",(0,m.sprintf)(__("Loading editor for: %s","full-site-editing"),p)),(0,i.createElement)(d.Button,{className:C?"hidden":null,href:l,onClick:x,isDefault:!0,isLarge:!0,ref:S},(0,m.sprintf)(__("Edit %s","full-site-editing"),p)))))}));e.Z=b},4987:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(3163),c=n(1417),s=n(5799),a=n(6594),u=n(1428),__=(n(7252),n(4498),l.__);"wp_template_part"!==fullSiteEditing.editorPostType&&(0,i.registerBlockType)("a8c/template",{title:__("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:__("Display a Template Part.","full-site-editing"),icon:"layout",category:(0,u.R)("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:a.Z,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var d=(0,c.createHigherOrderComponent)((function(t){return function(e){return"a8c/template"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__block-container"}))}}),"addFSETemplateClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",d,9)},4498:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(5799),c=(0,i.createHigherOrderComponent)((function(t){return function(e){return"fse-site-logo"!==e.attributes.className?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");(0,l.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",c)},9987:function(t,e,n){"use strict";var r=n(3027),o=n(7531),i=n.n(o),l=n(8259),c="fse-post-content-block-inserter";function s(){if(!document.getElementById(c)){var t=document.querySelector(".edit-post-header-toolbar");if(t){var e=document.createElement("div");e.className="fse-post-content-block-inserter",e.id=c,t.insertBefore(e,t.firstChild),(0,r.render)((0,r.createElement)(l.Z,null),e)}}}i()((function(){if("page"===fullSiteEditing.editorPostType)var t=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(t),s(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(s).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}))},8259:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(1417),l=n(5707),c=(0,i.compose)((0,l.withSelect)((function(t){var e=t("core/editor").getEditorSettings,n=t("core/block-editor").getBlocks,r=t("core/edit-post").getEditorMode,o=n().find((function(t){return"a8c/post-content"===t.name}));return{rootClientId:o?o.clientId:"",showInserter:"visual"===r()&&e().richEditingEnabled}})))((function(t){var e=t.rootClientId,n=t.showInserter;return(0,r.createElement)(o.Inserter,{rootClientId:e,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})}));e.Z=c},6970:function(t,e,n){"use strict";var r=n(9394),o=n(5799),i=["logo","brand","emblem","hallmark"];(0,o.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(t,e){return"core/image"!==e?t:t=(0,r.Z)((0,r.Z)({},t),{},{keywords:t.keywords.concat(i)})}))},7111:function(t,e,n){"use strict";n(9987),n(1860),n(6970),n(784),n(3644),n(711),n(1321)},1321:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){var t=(0,r.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&t("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&t("post-status"),o()}))},711:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;if("core/editor"===e&&n.editPost&&"wp_template_part"===o){var i=n.editPost;n.editPost=function(t){"draft"!==t.status&&i(t)}}return n}}}))},3644:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;return"core/editor"===e&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}}))},1860:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return o();!1===(0,r.select)("core/block-editor").isValidTemplate()&&(0,r.dispatch)("core/block-editor").setTemplateValidity(!0)}))},6284:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});var r=n(4825)},4825:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});n(4351);var r=n(29)},5333:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(3027);function o(t){var e=(0,r.useRef)();return(0,r.useEffect)((function(){e.current=t}),[t]),e.current}},4351:function(t,e,n){"use strict";n.d(e,{s:function(){return f}});var r=n(1119),o=n(9394),i=n(3258),l=n(3163),c=n(3027),s=n(7606),a=n.n(s),u=n(1424),d=n(5333),__=l.__;function f(t,e,n,s,f,p){var m=(0,c.useState)({option:e,previousOption:"",loaded:!1,error:!1}),g=(0,i.Z)(m,2),v=g[0],b=g[1],y=(0,d.D)(s),h=(0,d.D)(f);function w(){b((0,o.Z)((0,o.Z)({},v),{},{option:v.previousOption,isSaving:!1}))}return(0,c.useEffect)((function(){v.loaded||v.error?function(){var e=v.option,i=v.previousOption,c=!i&&!e||e&&i&&e.trim()===i.trim(),u=!e||0===e.trim().length;!s&&y&&u&&w();if(!f||c)return;!h&&f&&function(e){b((0,o.Z)((0,o.Z)({},v),{},{isSaving:!0})),a()({path:"/wp/v2/settings",method:"POST",data:(0,r.Z)({},t,e)}).then((function(){return function(t){b((0,o.Z)((0,o.Z)({},v),{},{previousOption:t,isDirty:!1,isSaving:!1}))}(e)})).catch((function(){n((0,l.sprintf)(__("Unable to save site %s","full-site-editing"),t)),w()}))}(e)}():a()({path:"/wp/v2/settings"}).then((function(e){return b((0,o.Z)((0,o.Z)({},v),{},{option:(0,u.decodeEntities)(e[t]),previousOption:(0,u.decodeEntities)(e[t]),loaded:!0,error:!1}))})).catch((function(){n((0,l.sprintf)(__("Unable to load site %s","full-site-editing"),t)),b((0,o.Z)((0,o.Z)({},v),{},{option:(0,l.sprintf)(__("Error loading site %s","full-site-editing"),t),error:!0}))}))})),{siteOptions:v,handleChange:function(t){p({updated:Date.now()}),b((0,o.Z)((0,o.Z)({},v),{},{option:t}))}}}},29:function(t,e,n){"use strict";n.d(e,{g:function(){return s}});var r=n(7560),o=n(3027),i=n(1417),l=n(5707),c=n(4351),s=function(t){return(0,i.createHigherOrderComponent)((function(e){return(0,i.pure)((function(n){var i=(0,l.useSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isPublishingPost,o=e.isAutosavingPost,i=e.isCurrentPostPublished;return(n()&&i()||r())&&!o()})),s=(0,l.useDispatch)((function(t){return t("core/notices").createErrorNotice})),a=n.isSelected,u=n.setAttributes,d=Object.keys(t).reduce((function(e,n){var r=t[n],o=r.optionName,l=r.defaultValue,d=(0,c.s)(o,l,s,a,i,u),f=d.siteOptions,p=d.handleChange;return e[n]={value:f.option,updateValue:p,loaded:f.loaded},e}),{});return(0,o.createElement)(e,(0,r.Z)({},n,d))}))}),"withSiteOptions")}},3427:function(t,e,n){"use strict";var r=n(3258),o=n(3027),i=n(7531),l=n.n(i),c=n(7196),s=n.n(c),a=n(3163),u=n(7997),__=(n(6254),a.__);function d(t){var e=t.defaultLabel,n=t.defaultUrl,i=(0,o.useState)(e),l=(0,r.Z)(i,2),c=l[0],s=l[1],a=(0,o.useState)(n),d=(0,r.Z)(a,2),f=d[0],p=d[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(t){s(t.label),p(t.closeUrl)})),(0,o.createElement)("a",{href:f,"aria-label":c},(0,o.createElement)(u.Button,{className:"components-button components-icon-button"},(0,o.createElement)(u.Dashicon,{icon:"arrow-left-alt2"}),(0,o.createElement)("div",{className:"close-button-override__label"},c)))}l()((function(){var t=fullSiteEditing.editorPostType;if("wp_template_part"===t||"page"===t||"post"===t)var e=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(e);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var i=fullSiteEditing,l=i.closeButtonLabel,c=i.closeButtonUrl,a=window.calypsoifyGutenberg;a&&a.closeUrl&&(c=a.closeUrl),a&&a.closeButtonLabel&&(l=a.closeButtonLabel);var u=c||"edit.php?post_type=".concat(t),f=l||"Back";"page"!==t||l?"post"!==t||l?"wp_template_part"!==t||l||(f=__("Template Parts","full-site-editing")):f=__("Posts","full-site-editing"):f=__("Pages","full-site-editing"),s().render((0,o.createElement)(d,{defaultLabel:f,defaultUrl:u}),r)}}))}))},601:function(t,e,n){"use strict";var r=n(1766),o=n(2779),i=n.n(o),l=n(3804),c=n(5707),s=n(1200),a=(0,c.withSelect)((function(t){var e=t("core").getEntityRecord,n=t("core/editor").getEditedPostAttribute;return{templateClasses:(0,l.map)(n("template_part_types"),(function(t){var n=(0,l.get)(e("taxonomy","wp_template_part_type",t),"name","");return n.endsWith("-header")?"fse-header":n.endsWith("-footer")?"fse-footer":void 0}))}}))((function(t){var e=t.templateClasses,n=setInterval((function(){var t=document.querySelector(".editor-styles-wrapper");t&&(clearInterval(n),t.className=i().apply(void 0,["editor-styles-wrapper","a8c-template-editor fse-template-part"].concat((0,r.Z)(e))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&(0,s.registerPlugin)("fse-editor-template-classes",{render:a})},5052:function(t,e,n){"use strict";var r=n(7531),o=n.n(r),i=n(5707),l=n(3163),__=l.__;o()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&(0,i.dispatch)("core/notices").createNotice("info",__("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}))},7196:function(t){"use strict";t.exports=window.ReactDOM},3804:function(t){"use strict";t.exports=window.lodash},7606:function(t){"use strict";t.exports=window.wp.apiFetch},6399:function(t){"use strict";t.exports=window.wp.blockEditor},9314:function(t){"use strict";t.exports=window.wp.blocks},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},7531:function(t){"use strict";t.exports=window.wp.domReady},8885:function(t){"use strict";t.exports=window.wp.editor},3027:function(t){"use strict";t.exports=window.wp.element},5799:function(t){"use strict";t.exports=window.wp.hooks},1424:function(t){"use strict";t.exports=window.wp.htmlEntities},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},9775:function(t){"use strict";t.exports=window.wp.serverSideRender},791:function(t){"use strict";t.exports=window.wp.url}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(4018),n(7308),n(6367),n(5129),n(5725),n(4987),n(3427),n(601),n(5052),n(7111)}(),window.EditingToolkit=r}();
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var l=o.apply(null,n);l&&t.push(l)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var c in n)r.call(n,c)&&n[c]&&t.push(c);else t.push(n.toString())}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},6959:function(){},7148:function(){},3920:function(){},9861:function(){},6913:function(){},7252:function(){},784:function(){},6254:function(){},1428:function(t,e,n){"use strict";n.d(e,{R:function(){return o}});var r=n(9314);function o(){for(var t=(0,r.getCategories)(),e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=function(){var e=c[l];if(t.some((function(t){return t.slug===e})))return{v:e}},l=0,c=n;l<c.length;l++){var s=i();if("object"==typeof s)return s.v}throw new Error("Could not find a category from the provided list: ".concat(n.join(",")))}},49:function(t,e,n){"use strict";var r=n(3027),o=n(9775),i=n.n(o),l=n(1417),c=n(3163),s=n(6399),a=n(7997),u=n(5707),__=c.__;e.Z=(0,l.compose)([(0,s.withColors)("backgroundColor",{textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,u.withSelect)((function(t){return{isPublished:t("core/editor").isCurrentPostPublished()}}))])((function(t){var e=t.attributes,n=t.backgroundColor,o=t.fontSize,l=t.setAttributes,c=t.setBackgroundColor,u=t.setFontSize,d=t.setTextColor,f=t.textColor,p=t.isPublished,m=e.customFontSize,g=e.textAlign,v=m||o.size;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(s.BlockControls,null,(0,r.createElement)(s.AlignmentToolbar,{value:g,onChange:function(t){l({textAlign:t})}})),(0,r.createElement)(s.InspectorControls,null,(0,r.createElement)(a.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,r.createElement)(s.FontSizePicker,{onChange:u,value:v})),(0,r.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:n.color,onChange:c,label:__("Background Color","full-site-editing")},{value:f.color,onChange:d,label:__("Text Color","full-site-editing")}]},(0,r.createElement)(s.ContrastChecker,{textColor:f.color,backgroundColor:n.color,fontSize:v}))),(0,r.createElement)(i(),{isPublished:p,block:"a8c/navigation-menu",attributes:e}))}))},4018:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(49),c=n(1428),__=(n(6959),i.__),s=(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,r.createElement)("path",{d:"M12 7.27l4.28 10.43-3.47-1.53-.81-.36-.81.36-3.47 1.53L12 7.27M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71L12 2z"}));(0,o.registerBlockType)("a8c/navigation-menu",{title:__("Navigation Menu","full-site-editing"),description:__("Visual placeholder for site-wide navigation and menus.","full-site-editing"),icon:s,category:(0,c.R)("design","layout"),supports:{align:["wide","full","right","left"],html:!1,reusable:!1},edit:l.Z,save:function(){return null}})},966:function(t,e,n){"use strict";var r=n(1119),o=n(4659),i=n(4730),l=n(5663),c=n(9049),s=n(3027),a=n(2779),u=n.n(a),d=n(1417),f=n(5707),p=n(8885),m=n(6399),g=function(t){(0,l.Z)(n,t);var e=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),e.apply(this,arguments)}return(0,i.Z)(n,[{key:"toggleEditing",value:function(){var t=this.props,e=t.isEditing;(0,t.setState)({isEditing:!e})}},{key:"onSelectPost",value:function(t){var e=t.id,n=t.type;this.props.setState({isEditing:!1,selectedPostId:e,selectedPostType:n})}},{key:"render",value:function(){var t=this.props.attributes.align;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:u()("post-content-block",(0,r.Z)({},"align".concat(t),t))},(0,s.createElement)(p.PostTitle,null),(0,s.createElement)(m.InnerBlocks,{templateLock:!1})))}}]),n}(s.Component);e.Z=(0,d.compose)([(0,d.withState)({isEditing:!1,selectedPostId:void 0,selectedPostType:void 0}),(0,f.withSelect)((function(t,e){var n=e.selectedPostId,r=e.selectedPostType;return{selectedPost:(0,t("core").getEntityRecord)("postType",r,n)}}))])(g)},7308:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(9314),c=n(3163),s=n(5799),a=n(966),u=n(3175),d=n(1428),__=(n(7148),c.__);(0,l.registerBlockType)("a8c/post-content",{title:__("Content","full-site-editing"),description:__("The page content.","full-site-editing"),icon:"layout",category:(0,d.R)("design","layout"),supports:{align:["full"],anchor:!1,customClassName:!1,html:!1,inserter:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"full"}},edit:a.Z,save:u.Z});var f=(0,i.createHigherOrderComponent)((function(t){return function(e){return"a8c/post-content"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"post-content__block"}))}}),"addContentSlotClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/post-content",f,9)},3175:function(t,e,n){"use strict";var r=n(3027),o=n(6399);e.Z=function(){return(0,r.createElement)(o.InnerBlocks.Content,null)}},1097:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(7997),a=n(1417),u=n(3163),d=n(6284),f=n(8558),__=u.__,p=fullSiteEditing,m=p.footerCreditOptions,g=p.defaultCreditOption;e.Z=(0,a.compose)([(0,d.g)({siteTitleOption:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")},footerCreditOption:{optionName:"footer_credit",defaultValue:__("Footer credit loading…","full-site-editing")}})])((function(t){var e=t.attributes.textAlign,n=void 0===e?"center":e,i=t.isSelected,a=t.setAttributes,u=t.footerCreditOption,d=u.value,p=u.updateValue,v=t.siteTitleOption.value,b=d||g;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:n,onChange:function(t){a({textAlign:t})}})),(0,o.createElement)("div",{className:l()("site-info","site-credit__block",(0,r.Z)({},"has-text-align-".concat(n),n))},(0,o.createElement)("span",{className:"site-name"},v),(0,o.createElement)("span",{className:"comma"},","),(0,o.createElement)("span",{className:"site-credit__selection"},i?(0,o.createElement)(s.SelectControl,{onChange:p,value:b,options:m}):(0,o.createElement)(f.U,{choice:b}))))}))},8558:function(t,e,n){"use strict";n.d(e,{U:function(){return c}});var r=n(9394),o=n(3027),i=n(7997),l=fullSiteEditing.footerCreditOptions,c=function(t){var e=t.choice,n=l.find((function(t){return t.value===e}));if(!n)return null;var c=n.renderType,s=n.renderProps,a=n.label,u=(0,r.Z)({label:a},s);return"icon"===c?(0,o.createElement)(i.Icon,u):(0,o.createElement)("span",null," ",u.label," ")}},6367:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(1097),l=n(1428),__=(n(3920),o.__);(0,r.registerBlockType)("a8c/site-credit",{title:__("WordPress.com Credit","full-site-editing"),description:__("This block tells the world that you're using WordPress.com.","full-site-editing"),icon:"wordpress-alt",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1,removal:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"}},edit:i.Z,save:function(){return null}})},942:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(6399),s=n(1417),a=n(5707),u=n(3163),d=n(7997),f=n(6284),__=u.__,p=function(){};e.Z=(0,s.compose)([(0,c.withColors)("backgroundColor",{textColor:"color"}),(0,c.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteDescription:{optionName:"description",defaultValue:__("Site description loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.backgroundColor,s=t.className,a=t.fontSize,u=t.insertDefaultBlock,f=t.setAttributes,m=t.setBackgroundColor,g=t.setFontSize,v=t.setTextColor,b=t.siteDescription,y=t.textColor,h=n.customFontSize,w=n.textAlign,S=h||a.size,E=b.value,k=b.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(c.BlockControls,null,(0,o.createElement)(c.AlignmentToolbar,{value:w,onChange:function(t){f({textAlign:t})}})),(0,o.createElement)(c.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(c.FontSizePicker,{onChange:g,value:S})),(0,o.createElement)(c.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:i.color,onChange:m,label:__("Background Color","full-site-editing")},{value:y.color,onChange:v,label:__("Text Color","full-site-editing")}]},(0,o.createElement)(c.ContrastChecker,{textColor:y.color,backgroundColor:i.color,fontSize:S}))),(0,o.createElement)(c.RichText,{allowedFormats:[],"aria-label":__("Site Description","full-site-editing"),className:l()("site-description",s,(e={"has-text-color":y.color,"has-background":i.color},(0,r.Z)(e,"has-text-align-".concat(w),w),(0,r.Z)(e,i.class,i.class),(0,r.Z)(e,y.class,y.class),(0,r.Z)(e,a.class,!h&&a.class),e)),identifier:"content",onChange:k,onReplace:u,onSplit:p,placeholder:__("Add a Site Description","full-site-editing"),style:{backgroundColor:i.color,color:y.color,fontSize:S?S+"px":void 0},tagName:"p",value:E}))}))},5129:function(t,e,n){"use strict";var r=n(3027),o=n(9314),i=n(3163),l=n(942),c=n(1428),__=(n(9861),i.__);(0,o.registerBlockType)("a8c/site-description",{title:__("Site Description","full-site-editing"),description:__("Site description, also known as the tagline.","full-site-editing"),icon:(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,r.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,r.createElement)("path",{d:"M4 9h16v2H4V9zm0 4h10v2H4v-2z"})),category:(0,c.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},fontSize:{type:"string",default:"small"},customFontSize:{type:"number"}},edit:l.Z,save:function(){return null}})},512:function(t,e,n){"use strict";var r=n(1119),o=n(3027),i=n(2779),l=n.n(i),c=n(3163),s=n(6399),a=n(5707),u=n(1417),d=n(7997),f=n(6284),__=c.__,p=function(){};e.Z=(0,u.compose)([(0,s.withColors)({textColor:"color"}),(0,s.withFontSizes)("fontSize"),(0,a.withSelect)((function(t,e){var n=e.clientId,r=t("core/block-editor"),o=r.getBlockIndex,i=r.getBlockRootClientId,l=r.getTemplateLock,c=i(n);return{blockIndex:o(n,c),isLocked:!!l(c),rootClientId:c}})),(0,a.withDispatch)((function(t,e){var n=e.blockIndex,r=e.rootClientId;return{insertDefaultBlock:function(){return t("core/block-editor").insertDefaultBlock({},r,n+1)}}})),(0,f.g)({siteTitle:{optionName:"title",defaultValue:__("Site title loading…","full-site-editing")}})])((function(t){var e,n=t.attributes,i=t.className,c=t.fontSize,a=t.insertDefaultBlock,u=t.setAttributes,f=t.setFontSize,m=t.setTextColor,g=t.siteTitle,v=t.textColor,b=n.customFontSize,y=n.textAlign,h=b||c.size,w=g.value,S=g.updateValue;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(s.BlockControls,null,(0,o.createElement)(s.AlignmentToolbar,{value:y,onChange:function(t){u({textAlign:t})}})),(0,o.createElement)(s.InspectorControls,null,(0,o.createElement)(d.PanelBody,{className:"blocks-font-size",title:__("Text Settings","full-site-editing")},(0,o.createElement)(s.FontSizePicker,{onChange:f,value:h})),(0,o.createElement)(s.PanelColorSettings,{title:__("Color Settings","full-site-editing"),initialOpen:!1,colorSettings:[{value:v.color,onChange:m,label:__("Text Color","full-site-editing")}]})),(0,o.createElement)(s.RichText,{allowedFormats:[],"aria-label":__("Site Title","full-site-editing"),className:l()("site-title",i,(e={"has-text-color":v.color},(0,r.Z)(e,"has-text-align-".concat(y),y),(0,r.Z)(e,v.class,v.class),(0,r.Z)(e,c.class,!b&&c.class),e)),identifier:"content",onChange:S,onReplace:a,onSplit:p,placeholder:__("Add a Site Title","full-site-editing"),style:{color:v.color,fontSize:h?h+"px":void 0},tagName:"h1",value:w}))}))},5725:function(t,e,n){"use strict";var r=n(9314),o=n(3163),i=n(512),l=n(1428),__=(n(6913),o.__);(0,r.registerBlockType)("a8c/site-title",{title:__("Site Title","full-site-editing"),description:__("Your site title.","full-site-editing"),icon:"layout",category:(0,l.R)("design","layout"),supports:{align:["wide","full"],html:!1,multiple:!1,reusable:!1},attributes:{align:{type:"string",default:"wide"},textAlign:{type:"string",default:"center"},textColor:{type:"string"},customTextColor:{type:"string"},fontSize:{type:"string",default:"normal"},customFontSize:{type:"number"}},edit:i.Z,save:function(){return null}})},6594:function(t,e,n){"use strict";var r=n(1119),o=n(3258),i=n(3027),l=n(2779),c=n.n(l),s=n(3804),a=n(9314),u=n(6399),d=n(7997),f=n(1417),p=n(5707),m=n(3163),g=n(791),__=(n(7252),m.__),v=function(){},b=(0,f.compose)((0,f.withState)({templateClientId:null}),(0,p.withSelect)((function(t,e){var n=e.attributes,r=e.templateClientId,o=t("core").getEntityRecord,i=t("core/editor"),l=i.getCurrentPostId,c=i.isEditedPostDirty,a=t("core/block-editor"),u=a.getBlock,d=a.getSelectedBlock,f=t("core/edit-post").isEditorSidebarOpened,p=n.templateId,m=l(),v=p&&o("postType","wp_template_part",p),b=(0,g.addQueryArgs)(fullSiteEditing.editTemplateBaseUrl,{post:p,fse_parent_post:m}),y=d();return{currentPostId:m,editTemplateUrl:b,template:v,templateBlock:u(r),templateTitle:(0,s.get)(v,["title","rendered"],""),isDirty:c(),isEditorSidebarOpened:!!f(),isAnyTemplateBlockSelected:y&&"a8c/template"===y.name}})),(0,p.withDispatch)((function(t,e){var n=t("core/block-editor").receiveBlocks,r=t("core/edit-post").openGeneralSidebar,o=e.template,i=e.templateClientId,l=e.setState;return{savePost:t("core/editor").savePost,receiveTemplateBlocks:function(){if(o&&!i){var t=(0,a.parse)((0,s.get)(o,["content","raw"],"")),e=(0,a.createBlock)("core/group",{},t);n([e]),l({templateClientId:e.clientId})}},openGeneralSidebar:r}})))((function(t){var e,n=t.attributes,l=t.editTemplateUrl,s=t.receiveTemplateBlocks,a=t.template,f=t.templateBlock,p=t.templateTitle,g=t.isDirty,b=t.savePost,y=t.isEditorSidebarOpened,h=t.openGeneralSidebar,w=t.isAnyTemplateBlockSelected;if(!a)return(0,i.createElement)(d.Placeholder,{className:"template-block__placeholder"},(0,i.createElement)(d.Spinner,null));var S=(0,i.createRef)(),E=(0,i.useState)(!1),k=(0,o.Z)(E,2),C=k[0],Z=k[1];(0,i.useEffect)((function(){C&&!g&&S.current.click(),s()})),(0,i.useEffect)((function(){var t=document.querySelector(".edit-post-sidebar__panel-tabs ul li:last-child");if(y&&t){if(w)return h("edit-post/document"),void t.classList.add("hidden");t.classList.remove("hidden")}}),[w,y,h]);var _=n.align,P=n.className,x=function(t){t.stopPropagation(),Z(!0),g&&(t.preventDefault(),b())};return(0,i.createElement)("div",{className:c()("template-block",(e={},(0,r.Z)(e,"align".concat(_),_),(0,r.Z)(e,"is-navigating-to-template",C),e))},f&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)(d.Disabled,null,(0,i.createElement)("div",{className:P},(0,i.createElement)(u.BlockEdit,{attributes:f.attributes,block:f,clientId:f.clientId,isSelected:!1,name:f.name,setAttributes:v}))),(0,i.createElement)(d.Placeholder,{className:"template-block__overlay",onClick:x},C&&(0,i.createElement)("div",{className:"template-block__loading"},(0,i.createElement)(d.Spinner,null)," ",(0,m.sprintf)(__("Loading editor for: %s","full-site-editing"),p)),(0,i.createElement)(d.Button,{className:C?"hidden":null,href:l,onClick:x,isDefault:!0,isLarge:!0,ref:S},(0,m.sprintf)(__("Edit %s","full-site-editing"),p)))))}));e.Z=b},4987:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(9314),l=n(3163),c=n(1417),s=n(5799),a=n(6594),u=n(1428),__=(n(7252),n(4498),l.__);"wp_template_part"!==fullSiteEditing.editorPostType&&(0,i.registerBlockType)("a8c/template",{title:__("Template Part","full-site-editing"),__experimentalDisplayName:"label",description:__("Display a Template Part.","full-site-editing"),icon:"layout",category:(0,u.R)("design","layout"),attributes:{templateId:{type:"number"},className:{type:"string"},label:{type:"string"}},supports:{anchor:!1,customClassName:!1,html:!1,inserter:!1,reusable:!1},edit:a.Z,save:function(){return null},getEditWrapperProps:function(){return{"data-align":"full"}}});var d=(0,c.createHigherOrderComponent)((function(t){return function(e){return"a8c/template"!==e.name?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__block-container"}))}}),"addFSETemplateClassname");(0,s.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",d,9)},4498:function(t,e,n){"use strict";var r=n(7560),o=n(3027),i=n(1417),l=n(5799),c=(0,i.createHigherOrderComponent)((function(t){return function(e){return"fse-site-logo"!==e.attributes.className?(0,o.createElement)(t,e):(0,o.createElement)(t,(0,r.Z)({},e,{className:"template__site-logo"}))}}),"addFSESiteLogoClassname");(0,l.addFilter)("editor.BlockListBlock","full-site-editing/blocks/template",c)},9987:function(t,e,n){"use strict";var r=n(3027),o=n(7531),i=n.n(o),l=n(8259),c="fse-post-content-block-inserter";function s(){if(!document.getElementById(c)){var t=document.querySelector(".edit-post-header-toolbar");if(t){var e=document.createElement("div");e.className="fse-post-content-block-inserter",e.id=c,t.insertBefore(e,t.firstChild),(0,r.render)((0,r.createElement)(l.Z,null),e)}}}i()((function(){if("page"===fullSiteEditing.editorPostType)var t=setInterval((function(){document.querySelector(".edit-post-header-toolbar")&&(clearInterval(t),s(),document.getElementById("wpbody")&&void 0!==window.MutationObserver&&new window.MutationObserver(s).observe(document.getElementById("wpbody"),{subtree:!0,childList:!0}))}))}))},8259:function(t,e,n){"use strict";var r=n(3027),o=n(6399),i=n(1417),l=n(5707),c=(0,i.compose)((0,l.withSelect)((function(t){var e=t("core/editor").getEditorSettings,n=t("core/block-editor").getBlocks,r=t("core/edit-post").getEditorMode,o=n().find((function(t){return"a8c/post-content"===t.name}));return{rootClientId:o?o.clientId:"",showInserter:"visual"===r()&&e().richEditingEnabled}})))((function(t){var e=t.rootClientId,n=t.showInserter;return(0,r.createElement)(o.Inserter,{rootClientId:e,disabled:!n,position:"bottom right",toggleProps:{isPrimary:!0}})}));e.Z=c},6970:function(t,e,n){"use strict";var r=n(9394),o=n(5799),i=["logo","brand","emblem","hallmark"];(0,o.addFilter)("blocks.registerBlockType","full-site-editing/editor/image-block-keywords",(function(t,e){return"core/image"!==e?t:t=(0,r.Z)((0,r.Z)({},t),{},{keywords:t.keywords.concat(i)})}))},7111:function(t,e,n){"use strict";n(9987),n(1860),n(6970),n(784),n(3644),n(711),n(1321)},1321:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){var t=(0,r.dispatch)("core/edit-post").removeEditorPanel;return"page"===fullSiteEditing.editorPostType&&t("featured-image"),"wp_template_part"===fullSiteEditing.editorPostType&&t("post-status"),o()}))},711:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;if("core/editor"===e&&n.editPost&&"wp_template_part"===o){var i=n.editPost;n.editPost=function(t){"draft"!==t.status&&i(t)}}return n}}}))},3644:function(t,e,n){"use strict";var r=n(9394),o=n(5707);(0,o.use)((function(t){return{dispatch:function(e){var n=(0,r.Z)({},t.dispatch(e)),o=fullSiteEditing.editorPostType;return"core/editor"===e&&n.trashPost&&"wp_template_part"===o&&(n.trashPost=function(){}),n}}}))},1860:function(t,e,n){"use strict";var r=n(5707),o=(0,r.subscribe)((function(){if("page"!==fullSiteEditing.editorPostType)return o();!1===(0,r.select)("core/block-editor").isValidTemplate()&&(0,r.dispatch)("core/block-editor").setTemplateValidity(!0)}))},6284:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});var r=n(4825)},4825:function(t,e,n){"use strict";n.d(e,{g:function(){return r.g}});n(4351);var r=n(29)},5333:function(t,e,n){"use strict";n.d(e,{D:function(){return o}});var r=n(3027);function o(t){var e=(0,r.useRef)();return(0,r.useEffect)((function(){e.current=t}),[t]),e.current}},4351:function(t,e,n){"use strict";n.d(e,{s:function(){return f}});var r=n(1119),o=n(9394),i=n(3258),l=n(3163),c=n(3027),s=n(7606),a=n.n(s),u=n(1424),d=n(5333),__=l.__;function f(t,e,n,s,f,p){var m=(0,c.useState)({option:e,previousOption:"",loaded:!1,error:!1}),g=(0,i.Z)(m,2),v=g[0],b=g[1],y=(0,d.D)(s),h=(0,d.D)(f);function w(){b((0,o.Z)((0,o.Z)({},v),{},{option:v.previousOption,isSaving:!1}))}return(0,c.useEffect)((function(){v.loaded||v.error?function(){var e=v.option,i=v.previousOption,c=!i&&!e||e&&i&&e.trim()===i.trim(),u=!e||0===e.trim().length;!s&&y&&u&&w();if(!f||c)return;!h&&f&&function(e){b((0,o.Z)((0,o.Z)({},v),{},{isSaving:!0})),a()({path:"/wp/v2/settings",method:"POST",data:(0,r.Z)({},t,e)}).then((function(){return function(t){b((0,o.Z)((0,o.Z)({},v),{},{previousOption:t,isDirty:!1,isSaving:!1}))}(e)})).catch((function(){n((0,l.sprintf)(__("Unable to save site %s","full-site-editing"),t)),w()}))}(e)}():a()({path:"/wp/v2/settings"}).then((function(e){return b((0,o.Z)((0,o.Z)({},v),{},{option:(0,u.decodeEntities)(e[t]),previousOption:(0,u.decodeEntities)(e[t]),loaded:!0,error:!1}))})).catch((function(){n((0,l.sprintf)(__("Unable to load site %s","full-site-editing"),t)),b((0,o.Z)((0,o.Z)({},v),{},{option:(0,l.sprintf)(__("Error loading site %s","full-site-editing"),t),error:!0}))}))})),{siteOptions:v,handleChange:function(t){p({updated:Date.now()}),b((0,o.Z)((0,o.Z)({},v),{},{option:t}))}}}},29:function(t,e,n){"use strict";n.d(e,{g:function(){return s}});var r=n(7560),o=n(3027),i=n(1417),l=n(5707),c=n(4351),s=function(t){return(0,i.createHigherOrderComponent)((function(e){return(0,i.pure)((function(n){var i=(0,l.useSelect)((function(t){var e=t("core/editor"),n=e.isSavingPost,r=e.isPublishingPost,o=e.isAutosavingPost,i=e.isCurrentPostPublished;return(n()&&i()||r())&&!o()})),s=(0,l.useDispatch)((function(t){return t("core/notices").createErrorNotice})),a=n.isSelected,u=n.setAttributes,d=Object.keys(t).reduce((function(e,n){var r=t[n],o=r.optionName,l=r.defaultValue,d=(0,c.s)(o,l,s,a,i,u),f=d.siteOptions,p=d.handleChange;return e[n]={value:f.option,updateValue:p,loaded:f.loaded},e}),{});return(0,o.createElement)(e,(0,r.Z)({},n,d))}))}),"withSiteOptions")}},3427:function(t,e,n){"use strict";var r=n(3258),o=n(3027),i=n(7531),l=n.n(i),c=n(7196),s=n.n(c),a=n(3163),u=n(7997),__=(n(6254),a.__);function d(t){var e=t.defaultLabel,n=t.defaultUrl,i=(0,o.useState)(e),l=(0,r.Z)(i,2),c=l[0],s=l[1],a=(0,o.useState)(n),d=(0,r.Z)(a,2),f=d[0],p=d[1];return window.wp.hooks.addAction("updateCloseButtonOverrides","a8c-fse",(function(t){s(t.label),p(t.closeUrl)})),(0,o.createElement)("a",{href:f,"aria-label":c},(0,o.createElement)(u.Button,{className:"components-button components-icon-button"},(0,o.createElement)(u.Dashicon,{icon:"arrow-left-alt2"}),(0,o.createElement)("div",{className:"close-button-override__label"},c)))}l()((function(){var t=fullSiteEditing.editorPostType;if("wp_template_part"===t||"page"===t||"post"===t)var e=setInterval((function(){var n=document.querySelector(".edit-post-header__toolbar");if(n){clearInterval(e);var r=document.createElement("div");r.className="components-toolbar edit-post-fullscreen-mode-close__toolbar edit-post-fullscreen-mode-close__toolbar__override",n.prepend(r);var i=fullSiteEditing,l=i.closeButtonLabel,c=i.closeButtonUrl,a=window.calypsoifyGutenberg;a&&a.closeUrl&&(c=a.closeUrl),a&&a.closeButtonLabel&&(l=a.closeButtonLabel);var u=c||"edit.php?post_type=".concat(t),f=l||"Back";"page"!==t||l?"post"!==t||l?"wp_template_part"!==t||l||(f=__("Template Parts","full-site-editing")):f=__("Posts","full-site-editing"):f=__("Pages","full-site-editing"),s().render((0,o.createElement)(d,{defaultLabel:f,defaultUrl:u}),r)}}))}))},601:function(t,e,n){"use strict";var r=n(1766),o=n(2779),i=n.n(o),l=n(3804),c=n(5707),s=n(1200),a=(0,c.withSelect)((function(t){var e=t("core").getEntityRecord,n=t("core/editor").getEditedPostAttribute;return{templateClasses:(0,l.map)(n("template_part_types"),(function(t){var n=(0,l.get)(e("taxonomy","wp_template_part_type",t),"name","");return n.endsWith("-header")?"fse-header":n.endsWith("-footer")?"fse-footer":void 0}))}}))((function(t){var e=t.templateClasses,n=setInterval((function(){var t=document.querySelector(".block-editor-writing-flow");t&&(clearInterval(n),t.className=i().apply(void 0,["block-editor-writing-flow","a8c-template-editor fse-template-part"].concat((0,r.Z)(e))))}));return null}));"wp_template_part"===fullSiteEditing.editorPostType&&(0,s.registerPlugin)("fse-editor-template-classes",{render:a})},5052:function(t,e,n){"use strict";var r=n(7531),o=n.n(r),i=n(5707),l=n(3163),__=l.__;o()((function(){"wp_template_part"===fullSiteEditing.editorPostType&&(0,i.dispatch)("core/notices").createNotice("info",__("Updates to this template will affect all pages on your site.","full-site-editing"),{isDismissible:!1})}))},7196:function(t){"use strict";t.exports=window.ReactDOM},3804:function(t){"use strict";t.exports=window.lodash},7606:function(t){"use strict";t.exports=window.wp.apiFetch},6399:function(t){"use strict";t.exports=window.wp.blockEditor},9314:function(t){"use strict";t.exports=window.wp.blocks},7997:function(t){"use strict";t.exports=window.wp.components},1417:function(t){"use strict";t.exports=window.wp.compose},5707:function(t){"use strict";t.exports=window.wp.data},7531:function(t){"use strict";t.exports=window.wp.domReady},8885:function(t){"use strict";t.exports=window.wp.editor},3027:function(t){"use strict";t.exports=window.wp.element},5799:function(t){"use strict";t.exports=window.wp.hooks},1424:function(t){"use strict";t.exports=window.wp.htmlEntities},3163:function(t){"use strict";t.exports=window.wp.i18n},1200:function(t){"use strict";t.exports=window.wp.plugins},9775:function(t){"use strict";t.exports=window.wp.serverSideRender},791:function(t){"use strict";t.exports=window.wp.url}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){"use strict";n.r(r);n(4018),n(7308),n(6367),n(5129),n(5725),n(4987),n(3427),n(601),n(5052),n(7111)}(),window.EditingToolkit=r}();
dotcom-fse/plugins/editor-template-classes/index.js CHANGED
@@ -30,7 +30,7 @@ const EditorTemplateClasses = withSelect( ( select ) => {
30
  return { templateClasses };
31
  } )( ( { templateClasses } ) => {
32
  const blockListInception = setInterval( () => {
33
- const blockListParent = document.querySelector( '.editor-styles-wrapper' );
34
 
35
  if ( ! blockListParent ) {
36
  return;
@@ -38,7 +38,7 @@ const EditorTemplateClasses = withSelect( ( select ) => {
38
  clearInterval( blockListInception );
39
 
40
  blockListParent.className = classNames(
41
- 'editor-styles-wrapper',
42
  'a8c-template-editor fse-template-part',
43
  ...templateClasses
44
  );
30
  return { templateClasses };
31
  } )( ( { templateClasses } ) => {
32
  const blockListInception = setInterval( () => {
33
+ const blockListParent = document.querySelector( '.block-editor-writing-flow' );
34
 
35
  if ( ! blockListParent ) {
36
  return;
38
  clearInterval( blockListInception );
39
 
40
  blockListParent.className = classNames(
41
+ 'block-editor-writing-flow',
42
  'a8c-template-editor fse-template-part',
43
  ...templateClasses
44
  );
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-react-i18n', 'wp-url'), 'version' => 'ebde93aff42e5fd39fe973e8a09ae705');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => 'fe5a85631e4e9ee24fd80f2e9cfef3c2');
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,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=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 c:case d:case o:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case h:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===u},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===u||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||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 g}});var r=n(7267),i=n(5307),o=n(3804),a=n.n(o),u=n(7547),s=(n(3980),n(7560)),l=n(8283),c=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,u.ob)(e,null,null,t):e},p=function(e){return e},m=a().forwardRef;void 0===m&&(m=p);var h=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=(0,l.Z)(e,["innerRef","navigate","onClick"]),u=o.target,c=(0,s.Z)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==m&&t||n,a().createElement("a",c)}));var g=m((function(e,t){var n=e.component,i=void 0===n?h:n,o=e.replace,u=e.to,g=e.innerRef,v=(0,l.Z)(e,["component","replace","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=f(d(u,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.Z)({},v,{href:l,navigate:function(){var t=d(u,e.location);(o?n.replace:n.push)(t)}});return p!==m?h.ref=t||g:h.innerRef=g,a().createElement(i,h)}))})),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,u=void 0===o?"active":o,p=e.activeStyle,m=e.className,h=e.exact,_=e.isActive,b=e.location,E=e.strict,S=e.style,w=e.to,A=e.innerRef,P=(0,l.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,c.Z)(!1);var n=b||e.location,o=f(d(w,n),n),l=o.pathname,x=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=x?(0,r.LX)(n.pathname,{path:x,exact:h,strict:E}):null,N=!!(_?_(C,n):C),I=N?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,u):m,Z=N?(0,s.Z)({},S,{},p):S,O=(0,s.Z)({"aria-current":N&&i||null,className:I,style:Z,to:o},P);return v!==y?O.ref=t||A:O.innerRef=A,a().createElement(g,O)}))}))},7267:function(e,t,n){"use strict";n.d(t,{VA:function(){return h},l_:function(){return b},AW:function(){return A},F0:function(){return m},rs:function(){return Z},s6:function(){return p},LX:function(){return w},k6:function(){return M},TH:function(){return L}});var r=n(5307),i=n(3804),o=n.n(i),a=(n(3980),n(7547)),u=n(1549),s=n(1898),l=n(7560),c=n(99),d=n.n(c),f=(n(8570),n(8283)),p=(n(3463),function(e){var t=(0,u.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 h=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 g=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,u=e.staticContext,c=i?r.push:r.replace,d=(0,a.ob)(t?"string"==typeof n?_(n,t.params):(0,l.Z)({},n,{pathname:_(n.pathname,t.params)}):n);return u?(c(d),null):o().createElement(g,{onMount:function(){c(d)},onUpdate:function(e,t){var n=(0,a.ob)(t.to);(0,a.Hp)(n,(0,l.Z)({},d,{key:n.key}))||c(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,u=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=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:u,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var c=s[0],f=s.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=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,l.Z)({},t,{location:n,match:r}),a=e.props,u=a.children,c=a.component,d=a.render;return Array.isArray(u)&&0===u.length&&(u=null),o().createElement(p.Provider,{value:i},i.match?u?"function"==typeof u?u(i):u:c?o().createElement(c,i):d?d(i):null:"function"==typeof u?u(i):null)}))},t}(o().Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function x(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:(0,l.Z)({},t,{pathname:t.pathname.substr(n.length)})}function C(e){return"string"==typeof e?e:(0,a.Ep)(e)}function N(e){return function(){(0,s.Z)(!1)}}function I(){}o().Component;var Z=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,l.Z)({},e.props,{path:a})):t.match}})),r?o().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o().Component);var O=o().useContext;function M(){return O(p).history}function L(){return O(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("/")||[],u=e&&n(e),s=t&&n(t),l=u||s;if(e&&n(e)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var c=a[a.length-1];i="."===c||".."===c||""===c}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(!l)for(;d--;d)a.unshift("..");!l||""===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,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},5631:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),u=n.n(a),s=n(1200),l=n(5707),c=n(791),d=n(8152),f=n(365),p=n(8318),m=n(8550),h=n(1157);r="a8c-editor-editor-focused-launch",i={render:function(){var e,t=window._currentSiteId,n=(0,l.useSelect)((function(e){return e(p.j4).isSiteLaunched(t)}),[t]),r=(0,l.useSelect)((function(e){return e(p.sC).getState()}),[]),i=r.isFocusedLaunchOpen,a=r.isAnchorFm,s=(0,l.useDispatch)(p.sC).openFocusedLaunch;u().useEffect((function(){n&&document.body.classList.add("is-focused-launch-complete")}),[n]);var g=(0,c.hasQueryArg)((0,m.O0)(),h.nU);return u().useEffect((function(){g&&!n&&s()}),[g,n,s]),i?(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:g||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 s},gQ:function(){return l},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),s=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},l=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=s().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var h=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));l(h)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(1205),a=(n(3421),n(382)),u=n(4898),s=(n(6209),n(1694),n(9377),n(9358)),l=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var d=new a.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(l,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,o.omitBy)(t,(function(e){return void 0===e})),(0,s.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(584),o=n(3717),a=n(3600),u=n(2269),s=n(267),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.L,{actions:a,controls:l.ai,reducer:o.Z,resolvers:u,selectors:s})),i.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),s={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},l=(0,o.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=l},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return h},getCategories:function(){return g},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(9126),o=n(1481),a=n(6468),u=n.n(a),s=n(3600),l=n(3661),c=n(4211),d=regeneratorRuntime.mark(g),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var h=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,l.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,s.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,s.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function g(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,s.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,s.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,l._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,i.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)((0,o.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,s.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,s.receiveDomainSuggestionsError)(u.t0.message||(0,o.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},l=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return u},_B:function(){return s},o0:function(){return l}});var r=n(9394),i=n(5695),o=n.n(i),a=n(1621),u=o();function s(e,t){return(0,a.ZP)(e,t,{stripZeros:!0})}function l(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return h},updatePlan:function(){return g},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 A},showModalTitle:function(){return P},hideModalTitle:function(){return x},enablePersistentSuccessView:function(){return C},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},l=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),h=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function g(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"}},A=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},P=function(){return{type:"SHOW_MODAL_TITLE"}},x=function(){return{type:"HIDE_MODAL_TITLE"}},C=function(){return{type:"ENABLE_SUCCESS_VIEW"}},N=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});var r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});var r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9866),i=n(5707),o=n(9149),a=n(4648),u=n(6108),s=n(7092),l=n(594);(0,i.use)(i.plugins.persistence,l.Z);var c=!1;function d(){return c||(c=!0,(0,i.registerStore)(o.Ls,{actions:u,controls:r.controls,reducer:a.Z,selectors:s,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),o.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return h},isFlowCompleted:function(){return g},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},u=function(){return i.y},s=function(e){return e},l=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},h=function(e,t){if(t===i.y.Plan)return!!d(e);if(t===i.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===i.y.Domain&&(0,r.select)(o.Ls).hasSelectedDomainOrSubdomain()},g=function(e){return i.M.slice(0,i.M.length-1).every((function(t){return h(e,t)}))},v=function(e){return i.M.some((function(t){return h(e,t)}))},y=function(e){return i.M.find((function(t){return!h(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 u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return h}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",s="business",l="ecommerce",c=[o,a,u,s,l],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),h=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(4703),o=n(9438),a=n(9068),u=n(7738),s=n(5261),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:l.ai,reducer:o.ZP,selectors:u})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return h}});var r=n(9126),i=n(1621),o=n(9068),a=n(4703),u=n(3661),s=regeneratorRuntime.mark(h);function l(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,i.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function d(e){return e.reduce((function(e,t){return e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:a.nN.indexOf(t.id)>-1},e}),{})}function f(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function p(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:f(e,t)}}));return n.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),n}function m(e,t){var n=a.BV.reduce((function(n,r){var o=e.find((function(e){return e.product_slug===r}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===a.bS[t]})),r=e.find((function(e){return e.storeSlug===a.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,u=Math.round(100*(1-o/i));n.annualDiscount=u,r.annualDiscount=u}},n=0;n<a.bS.length;n++)t(n)}(n),n}function h(){var e,t,n,i,l,c,f,h=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:"en",s.next=3,(0,u._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,u.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,i=n.body,l=d(i.features),c=i.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,l),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===a.TO,isPopular:n===a.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),s.next=13,(0,o.setPlans)(c,e);case 13:return s.next=15,(0,o.setPlanProducts)(f);case 15:return s.next=17,(0,o.setFeatures)(l,e);case 17:return s.next=19,(0,o.setFeaturesByType)(i.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return h},getPrices:function(){return g},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(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},s=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},l=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},h=function(e){return e.planProducts},g=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},_=function(e,t){return t===a.iL},b=function(e,t){return t===a.TO},E=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(9394),i=n(4530),o=n(3661),a=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),u=regeneratorRuntime.mark(_),s=regeneratorRuntime.mark(b),l=regeneratorRuntime.mark(E),c=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},f=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(n){var a,u,s,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,a=n.authToken,u=(0,i.Z)(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},l=(0,r.Z)((0,r.Z)((0,r.Z)({},s),u),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:l,token:a});case 8:return c=t.sent,t.next=11,d(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,f(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var m=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},h=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},g=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,h(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,g(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,v(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),u)}function b(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),s)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,m(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),l,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:m,fetchNewSite:c,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:f,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:p,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:y,launchSiteStart:h,launchSiteSuccess:g,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),u=n(7862),s=n(4309),l=n(3661),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:l.ai,reducer:o.ZP,resolvers:u,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),s=n(2699),l=(0,u.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),c=(0,u.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:l,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return l}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),u=regeneratorRuntime.mark(l);function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return h},getSiteDomains:function(){return g},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(2699),a=function(e){return e},u=function(e){return e.newSite.data},s=function(e){return e.newSite.error},l=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},h=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},g=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},2699:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),u=n(335),s=!1;function l(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return s}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(7997)),a=n(5869),u=n(3383),s=n(2779),l=n.n(s),c=n(8675),d=n(5707),f=n(3300);n(8062);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,c.useI18n)().__,s=(0,i.useState)(!1),p=(0,r.Z)(s,2),m=p[0],h=p[1],g=function(e){h(!1),t(e)},v=(0,d.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return h(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(a.Z,{icon:u.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return g()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return g(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(8675)),o=function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(7560),i=n(4530),o=n(3027),a=n(3804),u=n(6461),s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,["type","disabled"]);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return _},vv:function(){return b}});var r=n(7560),i=n(3258),o=n(3027),a=n(3804),u=n(2779),s=n.n(u),l=n(8675),c=n(6115),d=n(849),f=n(7498),p=n(7997),m=n(1417),h=n(3163),g=n(413),v=n(7226),y="radio",_="button",b="individual-item",E=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,u=e.cost,E=e.railcarId,S=e.hstsRequired,w=void 0!==S&&S,A=e.isFree,P=void 0!==A&&A,x=e.isExistingSubdomain,C=void 0!==x&&x,N=e.isRecommended,I=void 0!==N&&N,Z=e.onSelect,O=e.onRender,M=e.selected,L=e.type,T=void 0===L?y:L,D=e.buttonRef,F=(0,l.useI18n)(),__=F.__,R=F.hasTranslation,$=(0,d.bU)(),k=(0,f.Iu)(),j=!(0,m.useViewportMatch)("small",">="),U=n.indexOf("."),B=n.slice(0,U),G=n.slice(U),V=a.useState(),H=(0,i.Z)(V,2),Y=H[0],z=H[1],W=a.useState(),K=(0,i.Z)(W,2),q=K[0],J=K[1],X=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=T===b?X:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===$||null!=R&&R("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===$||null!=R&&R("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});a.useEffect((function(){n!==Y&&q!==E&&E&&(O(),z(n),J(E))}),[n,Y,q,E,O]);var se=function(){q&&(0,c.Lo)({action:"domain_selected",railcarId:q}),Z(n)},le=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:D,type:T,key:B,className:s()("domain-picker__suggestion-item",{"is-free":P,"is-selected":M,"is-unavailable":t},"type-".concat(T)),onClick:T!==_?se:void 0,disabled:t},T===y&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("span",{className:s()("domain-picker__suggestion-radio-circle",{"is-checked":M,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:s()("domain-picker__domain-wrapper",{"with-margin":!w})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},B),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),I&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),w&&(0,o.createElement)(g.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:k("https://wordpress.com/support/https-ssl")})}))),C&&T!==b&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:s()("domain-picker__price",{"is-paid":!P})},t&&__("Unavailable","full-site-editing"),P&&!t&&ee,!P&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,h.sprintf)(__("%s/year","full-site-editing"),u)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,h.sprintf)(__("Renews at: %s /year","full-site-editing"),u)))),T===_&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(p.Button,{ref:D,isSecondary:!0,className:s()("domain-picker__suggestion-select-button",{"is-selected":M&&!t}),disabled:t,onClick:se},M&&!t?le:ce))))};t.ZP=a.forwardRef((function(e,t){return(0,o.createElement)(E,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(8675),a=n(7226);t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n.n(o),u=n(1205),s=n(7997),l=n(5869),c=n(7108),d=n(6115),f=n(584),p=n(8675),m=n(6461),h=n(1614),g=n(605),v=n(7003),y=n(6325),_=n(5241),b=n(1045),E=n(1071),S=n(3446),w=n(3300),A=(n(3437),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(o.Fragment,null,n)}),P=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,x=e.showDomainCategories,C=e.onDomainSelect,N=e.onExistingSubdomainSelect,I=e.quantity,Z=void 0===I?w.SL:I,O=e.quantityExpanded,M=void 0===O?w.Mm:O,L=e.onDomainSearchBlur,T=e.analyticsFlowId,D=e.analyticsUiAlgo,F=e.initialDomainSearch,R=void 0===F?"":F,$=e.onSetDomainSearch,k=e.currentDomain,j=e.isCheckingDomainAvailability,U=e.existingSubdomain,B=e.segregateFreeAndPaid,G=void 0!==B&&B,V=e.showSearchField,H=void 0===V||V,Y=e.itemType,z=void 0===Y?m.fe:Y,W=e.locale,K=e.areDependenciesLoading,q=void 0!==K&&K,J=e.orderSubDomainsLast,X=void 0!==J&&J,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,S.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,p.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,o.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],se=ae[1],le=(0,o.useState)(R),ce=(0,r.Z)(le,2),de=ce[0],fe=ce[1],pe=(0,o.useState)(),me=(0,r.Z)(pe,2),he=me[0],ge=me[1],ve=(0,_.O)(de.trim(),M,he,W)||{},ye=ve.allDomainSuggestions,_e=ve.errorMessage,be=ve.state,Ee=ve.retryRequest,Se=null==ye?void 0:ye.filter((function(e){return!(U&&e.is_free)})).slice(0,ue?M-1:Z-1),we=null==Se?void 0:Se.findIndex((function(e){return!e.is_free&&!e.unavailable})),Ae=(0,b.$)(Se,U,k);Ae&&(null==Se||Se.push(Ae));var Pe=(0,E.P)();(0,o.useEffect)((function(){se(!1)}),[de]);var xe=(0,o.useState)(),Ce=(0,r.Z)(xe,2),Ne=Ce[0],Ie=Ce[1];(0,o.useEffect)((function(){ye&&Ie((0,d.k9)("suggestion"))}),[ye,Ie]),(0,o.useEffect)((function(){H||fe(R)}),[R,H]);var Ze=a().useRef([]);(0,o.useEffect)((function(){var e,t;ue&&(null===(e=Ze.current[Z])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,Z]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(T).concat(he?"/"+he:"");(0,d.Sn)({uiAlgo:"/".concat(T,"/").concat(D),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Me=a().useRef(),Le=be===f.r.Failure,Te=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,De=!Le&&!Te,Fe=!Le&&Te,Re=Z;Ae&&(Re+=1),Q&&(Re+=1),U&&(Re-=1);var $e=["professional"];return U&&$e.unshift("sub-domain"),X&&$e.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,H&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Me||null===(t=Me.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:c.Z})),(0,i.createElement)(s.TextControl,{ref:function(e){Me.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),$&&$(e)},onBlur:function(e){L&&L(e.currentTarget.value)},value:de,dir:"ltr"}))),Le&&(0,i.createElement)(s.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},_e||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(s.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Ee},__("Retry","full-site-editing"))),(De||q)&&(0,i.createElement)("div",{className:"domain-picker__body"},x&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(v.Z,{selected:he,onSelect:ge})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},$e.map((function(e){return"sub-domain"===e?(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(P,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!q&&U&&(0,i.createElement)(m.ZP,{key:null==U?void 0:U.domain_name,domain:null==U?void 0:U.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==U?void 0:U.domain_name,"".concat(Ne,0),0,!1)},selected:(null==k?void 0:k.domain_name)===(null==U?void 0:U.domain_name),onSelect:function(){null==N||N(null==U?void 0:U.domain_name)},type:z})||(0,i.createElement)(h.Z,{type:z}))):(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(P,null,__("Professional domains","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!q&&(null==Se?void 0:Se.map((function(e,t){var n,r=null!=U&&U.domain_name?t+1:t,o=t===we,a=null===(n=Pe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,i.createElement)(m.ZP,{ref:function(e){Ze.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==k?void 0:k.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){C(e)},selected:(null==k?void 0:k.domain_name)===e.domain_name,type:z})})))||(0,u.times)(Re,(function(e){return(0,i.createElement)(h.Z,{type:z,key:e})})),Q&&!!Se&&(0,i.createElement)(g.Z,{onClick:Q})))}))),!ue&&Z<M&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>Z&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(s.Button,{onClick:function(){return se(!0)},isLink:!0},__("View more results","full-site-editing"))))),Fe&&!q&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(y.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n(2779),u=n.n(a),s=n(7997),l=n(5614);n(101);t.Z=function(e){var t=e.children,n=e.className,a=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,o.useState)(!1),h=(0,r.Z)(m,2),g=h[0],v=h[1];return(0,i.createElement)((function(e){return(0,i.createElement)(s.Button,e)}),{icon:l.Z,onClick:function(e){v(!g),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},g&&(0,i.createElement)(s.Popover,{id:a,className:u()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return s},vn:function(){return l}});var r=n(8077),i=5,o=10,a=2,u=300,s=r.z(),l=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:s,category_slug:n},l)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),s=u[0],l=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&l(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var s=(0,r.Z)((0,r.Z)({},a),n),l=s.decimal,c=s.grouping,d=s.precision,f=s.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:l});return n.stripZeros&&(m=u(m,l)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(8049),a=n.n(o),u=n(7010),s=n(9830),l=n(7839),c=n.n(l),d=n(5079),f=n.n(d),p=n(382),m=n(6668),h=n(3),g=a()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",_="messages",b=[function(e){return e}],E={};function S(){C.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function w(e){return Array.prototype.slice.call(e)}function A(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&S("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",w(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&S("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",w(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function P(e,t){return e.dcnpgettext(_,t.context,t.original,t.plural,t.count)}function x(e,t){for(var n=b.length-1;n>=0;n--){var r=b[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return P(e.state.tannin,r)}return null}function C(){if(!(this instanceof C))return new C;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:c()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}C.throwErrors=!1,C.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},C.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},C.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},C.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,h.Z)(e,n,r,i)},C.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},C.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==E[n+e])return E[n+e];var r=f()().update(e).digest("hex");return E[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)b.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var c=Number(o.substr(5));b.push(u(c))}else for(var d=Number(o.substr(5,l)),p=Number(o.substr(6+l)),m=d;m<=p;m++)b.push(u(m))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new s.Z((0,i.Z)({},_,this.state.locale)),this.state.numberFormatSettings.decimal_point=P(this.state.tannin,A([v])),this.state.numberFormatSettings.thousands_sep=P(this.state.tannin,A([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},C.prototype.getLocale=function(){return this.state.locale},C.prototype.getLocaleSlug=function(){return this.state.localeSlug},C.prototype.getLocaleVariant=function(){return this.state.localeVariant},C.prototype.isRtl=function(){return"rtl"===this.state.textDirection},C.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},C.prototype.hasTranslation=function(){return!!x(this,A(arguments))},C.prototype.translate=function(){var e=A(arguments),t=x(this,e);if(t||(t=P(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=m.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},C.prototype.reRenderTranslations=function(){g("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},C.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},C.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=C},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return l}});var r=n(914),i=n(3493),o=n(975),a=n(8373),u=new r.Z,s=u.numberFormat.bind(u),l=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,o.Z)(u),(0,a.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,s.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,l.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,l.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,u=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
+ */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=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 c:case d:case o:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case h:case s:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=h,t.Portal=i,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===u},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===u||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||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 g}});var r=n(7267),i=n(5307),o=n(3804),a=n.n(o),u=n(7547),s=(n(3980),n(7560)),l=n(8283),c=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,u.ob)(e,null,null,t):e},p=function(e){return e},m=a().forwardRef;void 0===m&&(m=p);var h=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=(0,l.Z)(e,["innerRef","navigate","onClick"]),u=o.target,c=(0,s.Z)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||u&&"_self"!==u||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=p!==m&&t||n,a().createElement("a",c)}));var g=m((function(e,t){var n=e.component,i=void 0===n?h:n,o=e.replace,u=e.to,g=e.innerRef,v=(0,l.Z)(e,["component","replace","to","innerRef"]);return a().createElement(r.s6.Consumer,null,(function(e){e||(0,c.Z)(!1);var n=e.history,r=f(d(u,e.location),e.location),l=r?n.createHref(r):"",h=(0,s.Z)({},v,{href:l,navigate:function(){var t=d(u,e.location);(o?n.replace:n.push)(t)}});return p!==m?h.ref=t||g:h.innerRef=g,a().createElement(i,h)}))})),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,u=void 0===o?"active":o,p=e.activeStyle,m=e.className,h=e.exact,_=e.isActive,b=e.location,E=e.strict,S=e.style,w=e.to,A=e.innerRef,P=(0,l.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,c.Z)(!1);var n=b||e.location,o=f(d(w,n),n),l=o.pathname,x=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),C=x?(0,r.LX)(n.pathname,{path:x,exact:h,strict:E}):null,N=!!(_?_(C,n):C),I=N?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,u):m,Z=N?(0,s.Z)({},S,{},p):S,O=(0,s.Z)({"aria-current":N&&i||null,className:I,style:Z,to:o},P);return v!==y?O.ref=t||A:O.innerRef=A,a().createElement(g,O)}))}))},7267:function(e,t,n){"use strict";n.d(t,{VA:function(){return h},l_:function(){return b},AW:function(){return A},F0:function(){return m},rs:function(){return Z},s6:function(){return p},LX:function(){return w},k6:function(){return M},TH:function(){return L}});var r=n(5307),i=n(3804),o=n.n(i),a=(n(3980),n(7547)),u=n(1549),s=n(1898),l=n(7560),c=n(99),d=n.n(c),f=(n(8570),n(8283)),p=(n(3463),function(e){var t=(0,u.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 h=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 g=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,u=e.staticContext,c=i?r.push:r.replace,d=(0,a.ob)(t?"string"==typeof n?_(n,t.params):(0,l.Z)({},n,{pathname:_(n.pathname,t.params)}):n);return u?(c(d),null):o().createElement(g,{onMount:function(){c(d)},onUpdate:function(e,t){var n=(0,a.ob)(t.to);(0,a.Hp)(n,(0,l.Z)({},d,{key:n.key}))||c(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,u=void 0!==a&&a,s=n.sensitive,l=void 0!==s&&s;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=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:u,sensitive:l}),i=r.regexp,a=r.keys,s=i.exec(e);if(!s)return null;var c=s[0],f=s.slice(1),p=e===c;return o&&!p?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var A=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,l.Z)({},t,{location:n,match:r}),a=e.props,u=a.children,c=a.component,d=a.render;return Array.isArray(u)&&0===u.length&&(u=null),o().createElement(p.Provider,{value:i},i.match?u?"function"==typeof u?u(i):u:c?o().createElement(c,i):d?d(i):null:"function"==typeof u?u(i):null)}))},t}(o().Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function x(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:(0,l.Z)({},t,{pathname:t.pathname.substr(n.length)})}function C(e){return"string"==typeof e?e:(0,a.Ep)(e)}function N(e){return function(){(0,s.Z)(!1)}}function I(){}o().Component;var Z=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,l.Z)({},e.props,{path:a})):t.match}})),r?o().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o().Component);var O=o().useContext;function M(){return O(p).history}function L(){return O(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("/")||[],u=e&&n(e),s=t&&n(t),l=u||s;if(e&&n(e)?a=o:o.length&&(a.pop(),a=a.concat(o)),!a.length)return"/";if(a.length){var c=a[a.length-1];i="."===c||".."===c||""===c}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(!l)for(;d--;d)a.unshift("..");!l||""===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,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},5631:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),u=n.n(a),s=n(1200),l=n(5707),c=n(791),d=n(8152),f=n(365),p=n(8318),m=n(8550),h=n(1157);r="a8c-editor-editor-focused-launch",i={render:function(){var e,t=window._currentSiteId,n=(0,l.useSelect)((function(e){return e(p.j4).isSiteLaunched(t)}),[t]),r=(0,l.useSelect)((function(e){return e(p.sC).getState()}),[]),i=r.isFocusedLaunchOpen,a=r.isAnchorFm,s=(0,l.useDispatch)(p.sC).openFocusedLaunch;u().useEffect((function(){n&&document.body.classList.add("is-focused-launch-complete")}),[n]);var g=(0,c.hasQueryArg)((0,m.O0)(),h.nU);return u().useEffect((function(){g&&!n&&s()}),[g,n,s]),i?(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:g||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 s},gQ:function(){return l},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),s=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},l=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=s().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var h=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));l(h)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(1205),a=(n(3421),n(382)),u=n(4898),s=(n(6209),n(1694),n(9377),n(9358)),l=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var d=new a.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(l,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,o.omitBy)(t,(function(e){return void 0===e})),(0,s.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(3661),o=n(3600),a=n(584),u=n(3717),s=n(2269),l=n(267),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:o,controls:i.ai,reducer:u.Z,resolvers:s,selectors:l})),a.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),s={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},l=(0,o.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=l},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return h},getCategories:function(){return g},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(1481),o=n(9126),a=n(6468),u=n.n(a),s=n(3661),l=n(3600),c=n(4211),d=regeneratorRuntime.mark(g),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var h=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,s.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,l.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,l.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function g(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,l.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,l.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,l.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,l.receiveDomainSuggestionsError)((0,i.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,l.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,l.receiveDomainSuggestionsError)(u.t0.message||(0,i.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},l=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return a},_B:function(){return u},o0:function(){return s}});var r=n(9394),i=n(1621),o=n(5695),a=n.n(o)();function u(e,t){return(0,i.ZP)(e,t,{stripZeros:!0})}function s(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return h},updatePlan:function(){return g},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 A},showModalTitle:function(){return P},hideModalTitle:function(){return x},enablePersistentSuccessView:function(){return C},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},l=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),h=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function g(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"}},A=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},P=function(){return{type:"SHOW_MODAL_TITLE"}},x=function(){return{type:"HIDE_MODAL_TITLE"}},C=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(5707),i=n(9866),o=n(6108),a=n(9149),u=n(594),s=n(4648),l=n(7092);(0,r.use)(r.plugins.persistence,u.Z);var c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:o,controls:i.controls,reducer:s.Z,selectors:l,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return h},isFlowCompleted:function(){return g},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(9149),o=n(3610),a=function(){return o.M},u=function(){return o.y},s=function(e){return e},l=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(i.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},h=function(e,t){if(t===o.y.Plan)return!!d(e);if(t===o.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===o.y.Domain&&(0,r.select)(i.Ls).hasSelectedDomainOrSubdomain()},g=function(e){return o.M.slice(0,o.M.length-1).every((function(t){return h(e,t)}))},v=function(e){return o.M.some((function(t){return h(e,t)}))},y=function(e){return o.M.find((function(t){return!h(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 u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return h}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",s="business",l="ecommerce",c=[o,a,u,s,l],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),h=["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(3661),o=n(9068),a=n(4703),u=n(9438),s=n(5261),l=n(7738),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:s,actions:o,controls:i.ai,reducer:u.ZP,selectors:l})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return h}});var r=n(1621),i=n(9126),o=n(3661),a=n(9068),u=n(4703),s=regeneratorRuntime.mark(h);function l(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,r.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:u.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=u.BV.reduce((function(n,i){var o=e.find((function(e){return e.product_slug===i}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,r.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===u.bS[t]})),r=e.find((function(e){return e.storeSlug===u.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<u.bS.length;n++)t(n)}(n),n}function h(){var e,t,n,r,l,c,f,h=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:"en",s.next=3,(0,o._9)({path:"/plans",query:(0,i.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,o.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,r=n.body,l=d(r.features),c=r.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,l),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===u.TO,isPopular:n===u.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),s.next=13,(0,a.setPlans)(c,e);case 13:return s.next=15,(0,a.setPlanProducts)(f);case 15:return s.next=17,(0,a.setFeatures)(l,e);case 17:return s.next=19,(0,a.setFeaturesByType)(r.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return h},getPrices:function(){return g},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(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},s=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},l=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},h=function(e){return e.planProducts},g=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},_=function(e,t){return t===a.iL},b=function(e,t){return t===a.TO},E=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(9394),i=n(4530),o=n(3661),a=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),u=regeneratorRuntime.mark(_),s=regeneratorRuntime.mark(b),l=regeneratorRuntime.mark(E),c=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},f=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(n){var a,u,s,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,a=n.authToken,u=(0,i.Z)(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},l=(0,r.Z)((0,r.Z)((0,r.Z)({},s),u),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:l,token:a});case 8:return c=t.sent,t.next=11,d(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,f(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var m=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},h=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},g=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,h(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,g(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,v(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function _(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),u)}function b(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),s)}function E(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,m(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),l,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:E,receiveSiteTitle:m,fetchNewSite:c,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:f,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:p,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:y,launchSiteStart:h,launchSiteSuccess:g,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(3661),o=n(8459),a=n(2005),u=n(2701),s=n(7862),l=n(4309),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,o.d)(e),controls:i.ai,reducer:u.ZP,resolvers:s,selectors:l})),a.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),s=n(2699),l=(0,u.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),c=(0,u.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:l,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return l}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),u=regeneratorRuntime.mark(l);function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return h},getSiteDomains:function(){return g},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(2699),a=function(e){return e},u=function(e){return e.newSite.data},s=function(e){return e.newSite.error},l=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},h=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},g=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},2699:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(5707),i=n(9866),o=n(4366),a=n(8638),u=n(335),s=!1;function l(){return s||(s=!0,(0,r.registerStore)(o.L,{controls:i.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return s}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(7997)),a=n(5869),u=n(3383),s=n(2779),l=n.n(s),c=n(8675),d=n(5707),f=n(3300);n(8062);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,c.useI18n)().__,s=(0,i.useState)(!1),p=(0,r.Z)(s,2),m=p[0],h=p[1],g=function(e){h(!1),t(e)},v=(0,d.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return h(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(a.Z,{icon:u.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return g()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return g(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(8675)),o=function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(7560),i=n(4530),o=n(3027),a=n(3804),u=n(6461),s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,["type","disabled"]);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return _},vv:function(){return b}});var r=n(7560),i=n(3258),o=n(3027),a=n(3804),u=n(2779),s=n.n(u),l=n(8675),c=n(6115),d=n(849),f=n(7498),p=n(7997),m=n(1417),h=n(3163),g=n(413),v=n(7226),y="radio",_="button",b="individual-item",E=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,u=e.cost,E=e.railcarId,S=e.hstsRequired,w=void 0!==S&&S,A=e.isFree,P=void 0!==A&&A,x=e.isExistingSubdomain,C=void 0!==x&&x,N=e.isRecommended,I=void 0!==N&&N,Z=e.onSelect,O=e.onRender,M=e.selected,L=e.type,T=void 0===L?y:L,D=e.buttonRef,F=(0,l.useI18n)(),__=F.__,R=F.hasTranslation,$=(0,d.bU)(),k=(0,f.Iu)(),j=!(0,m.useViewportMatch)("small",">="),U=n.indexOf("."),B=n.slice(0,U),G=n.slice(U),V=a.useState(),H=(0,i.Z)(V,2),Y=H[0],z=H[1],W=a.useState(),K=(0,i.Z)(W,2),q=K[0],J=K[1],X=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=T===b?X:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===$||null!=R&&R("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===$||null!=R&&R("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});a.useEffect((function(){n!==Y&&q!==E&&E&&(O(),z(n),J(E))}),[n,Y,q,E,O]);var se=function(){q&&(0,c.Lo)({action:"domain_selected",railcarId:q}),Z(n)},le=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:D,type:T,key:B,className:s()("domain-picker__suggestion-item",{"is-free":P,"is-selected":M,"is-unavailable":t},"type-".concat(T)),onClick:T!==_?se:void 0,disabled:t},T===y&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("span",{className:s()("domain-picker__suggestion-radio-circle",{"is-checked":M,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:s()("domain-picker__domain-wrapper",{"with-margin":!w})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},B),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),I&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),w&&(0,o.createElement)(g.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:k("https://wordpress.com/support/https-ssl")})}))),C&&T!==b&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:s()("domain-picker__price",{"is-paid":!P})},t&&__("Unavailable","full-site-editing"),P&&!t&&ee,!P&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,h.sprintf)(__("%s/year","full-site-editing"),u)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,h.sprintf)(__("Renews at: %s /year","full-site-editing"),u)))),T===_&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(p.Button,{ref:D,isSecondary:!0,className:s()("domain-picker__suggestion-select-button",{"is-selected":M&&!t}),disabled:t,onClick:se},M&&!t?le:ce))))};t.ZP=a.forwardRef((function(e,t){return(0,o.createElement)(E,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(8675),a=n(7226);t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n.n(o),u=n(1205),s=n(7997),l=n(5869),c=n(7108),d=n(6115),f=n(584),p=n(8675),m=n(6461),h=n(1614),g=n(605),v=n(7003),y=n(6325),_=n(5241),b=n(1045),E=n(1071),S=n(3446),w=n(3300),A=(n(3437),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(o.Fragment,null,n)}),P=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,x=e.showDomainCategories,C=e.onDomainSelect,N=e.onExistingSubdomainSelect,I=e.quantity,Z=void 0===I?w.SL:I,O=e.quantityExpanded,M=void 0===O?w.Mm:O,L=e.onDomainSearchBlur,T=e.analyticsFlowId,D=e.analyticsUiAlgo,F=e.initialDomainSearch,R=void 0===F?"":F,$=e.onSetDomainSearch,k=e.currentDomain,j=e.isCheckingDomainAvailability,U=e.existingSubdomain,B=e.segregateFreeAndPaid,G=void 0!==B&&B,V=e.showSearchField,H=void 0===V||V,Y=e.itemType,z=void 0===Y?m.fe:Y,W=e.locale,K=e.areDependenciesLoading,q=void 0!==K&&K,J=e.orderSubDomainsLast,X=void 0!==J&&J,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,S.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,p.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,o.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],se=ae[1],le=(0,o.useState)(R),ce=(0,r.Z)(le,2),de=ce[0],fe=ce[1],pe=(0,o.useState)(),me=(0,r.Z)(pe,2),he=me[0],ge=me[1],ve=(0,_.O)(de.trim(),M,he,W)||{},ye=ve.allDomainSuggestions,_e=ve.errorMessage,be=ve.state,Ee=ve.retryRequest,Se=null==ye?void 0:ye.filter((function(e){return!(U&&e.is_free)})).slice(0,ue?M-1:Z-1),we=null==Se?void 0:Se.findIndex((function(e){return!e.is_free&&!e.unavailable})),Ae=(0,b.$)(Se,U,k);Ae&&(null==Se||Se.push(Ae));var Pe=(0,E.P)();(0,o.useEffect)((function(){se(!1)}),[de]);var xe=(0,o.useState)(),Ce=(0,r.Z)(xe,2),Ne=Ce[0],Ie=Ce[1];(0,o.useEffect)((function(){ye&&Ie((0,d.k9)("suggestion"))}),[ye,Ie]),(0,o.useEffect)((function(){H||fe(R)}),[R,H]);var Ze=a().useRef([]);(0,o.useEffect)((function(){var e,t;ue&&(null===(e=Ze.current[Z])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,Z]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(T).concat(he?"/"+he:"");(0,d.Sn)({uiAlgo:"/".concat(T,"/").concat(D),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Me=a().useRef(),Le=be===f.r.Failure,Te=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,De=!Le&&!Te,Fe=!Le&&Te,Re=Z;Ae&&(Re+=1),Q&&(Re+=1),U&&(Re-=1);var $e=["professional"];return U&&$e.unshift("sub-domain"),X&&$e.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,H&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Me||null===(t=Me.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:c.Z})),(0,i.createElement)(s.TextControl,{ref:function(e){Me.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),$&&$(e)},onBlur:function(e){L&&L(e.currentTarget.value)},value:de,dir:"ltr"}))),Le&&(0,i.createElement)(s.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},_e||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(s.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Ee},__("Retry","full-site-editing"))),(De||q)&&(0,i.createElement)("div",{className:"domain-picker__body"},x&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(v.Z,{selected:he,onSelect:ge})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},$e.map((function(e){return"sub-domain"===e?(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(P,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!q&&U&&(0,i.createElement)(m.ZP,{key:null==U?void 0:U.domain_name,domain:null==U?void 0:U.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==U?void 0:U.domain_name,"".concat(Ne,0),0,!1)},selected:(null==k?void 0:k.domain_name)===(null==U?void 0:U.domain_name),onSelect:function(){null==N||N(null==U?void 0:U.domain_name)},type:z})||(0,i.createElement)(h.Z,{type:z}))):(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(P,null,__("Professional domains","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!q&&(null==Se?void 0:Se.map((function(e,t){var n,r=null!=U&&U.domain_name?t+1:t,o=t===we,a=null===(n=Pe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,i.createElement)(m.ZP,{ref:function(e){Ze.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==k?void 0:k.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){C(e)},selected:(null==k?void 0:k.domain_name)===e.domain_name,type:z})})))||(0,u.times)(Re,(function(e){return(0,i.createElement)(h.Z,{type:z,key:e})})),Q&&!!Se&&(0,i.createElement)(g.Z,{onClick:Q})))}))),!ue&&Z<M&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>Z&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(s.Button,{onClick:function(){return se(!0)},isLink:!0},__("View more results","full-site-editing"))))),Fe&&!q&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(y.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n(2779),u=n.n(a),s=n(7997),l=n(5614);n(101);t.Z=function(e){var t=e.children,n=e.className,a=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,o.useState)(!1),h=(0,r.Z)(m,2),g=h[0],v=h[1];return(0,i.createElement)((function(e){return(0,i.createElement)(s.Button,e)}),{icon:l.Z,onClick:function(e){v(!g),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},g&&(0,i.createElement)(s.Popover,{id:a,className:u()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return s},vn:function(){return l}});var r=n(8077),i=5,o=10,a=2,u=300,s=r.z(),l=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:s,category_slug:n},l)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),s=u[0],l=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&l(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var s=(0,r.Z)((0,r.Z)({},a),n),l=s.decimal,c=s.grouping,d=s.precision,f=s.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:l});return n.stripZeros&&(m=u(m,l)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(8049),a=n.n(o),u=n(7010),s=n(9830),l=n(7839),c=n.n(l),d=n(5079),f=n.n(d),p=n(382),m=n(6668),h=n(3),g=a()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",_="messages",b=[function(e){return e}],E={};function S(){C.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function w(e){return Array.prototype.slice.call(e)}function A(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&S("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",w(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&S("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",w(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function P(e,t){return e.dcnpgettext(_,t.context,t.original,t.plural,t.count)}function x(e,t){for(var n=b.length-1;n>=0;n--){var r=b[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return P(e.state.tannin,r)}return null}function C(){if(!(this instanceof C))return new C;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:c()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}C.throwErrors=!1,C.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},C.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},C.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},C.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,h.Z)(e,n,r,i)},C.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},C.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==E[n+e])return E[n+e];var r=f()().update(e).digest("hex");return E[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)b.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var c=Number(o.substr(5));b.push(u(c))}else for(var d=Number(o.substr(5,l)),p=Number(o.substr(6+l)),m=d;m<=p;m++)b.push(u(m))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new s.Z((0,i.Z)({},_,this.state.locale)),this.state.numberFormatSettings.decimal_point=P(this.state.tannin,A([v])),this.state.numberFormatSettings.thousands_sep=P(this.state.tannin,A([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},C.prototype.getLocale=function(){return this.state.locale},C.prototype.getLocaleSlug=function(){return this.state.localeSlug},C.prototype.getLocaleVariant=function(){return this.state.localeVariant},C.prototype.isRtl=function(){return"rtl"===this.state.textDirection},C.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},C.prototype.hasTranslation=function(){return!!x(this,A(arguments))},C.prototype.translate=function(){var e=A(arguments),t=x(this,e);if(t||(t=P(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=m.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},C.prototype.reRenderTranslations=function(){g("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},C.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},C.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=C},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return l}});var r=n(914),i=n(3493),o=n(975),a=n(8373),u=new r.Z,s=u.numberFormat.bind(u),l=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,o.Z)(u),(0,a.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,s.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,l.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,l.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,u=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
editor-site-launch/dist/gutenboarding-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '732621bf2cb40e72dfb17e42bf9a250d');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '9080fd4181ccd6d229a623ff5314b145');
editor-site-launch/dist/gutenboarding-launch.js CHANGED
@@ -16,7 +16,7 @@ object-assign
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
- */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case h:case g:case s:return e;default:return t}}case i:return t}}}function E(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||S(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===h},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===u||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=S},8570:function(e,t,n){"use strict";e.exports=n(6866)},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),u=n.n(a),s=n(5707),l=n(1200),c=n(5799),d=n(6357),f=n(849),p=n(4655),m=n(9095),g=n(8318),h=n(1157),v=n(8550),y=n(365);r="a8c-editor-site-launch",i={render:function(){var e,t,n=(0,s.useSelect)((function(e){return e(g.sC).getState()})).isSidebarOpen,r=(0,s.useDispatch)(g.sC),i=r.closeSidebar,a=r.setSidebarFullscreen,l=r.unsetSidebarFullscreen;return u().useEffect((function(){window.innerWidth<782?a():l()}),[n,a,l]),u().useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,c.hasAction)(e)&&(0,c.doAction)(e,{hidden:n})}),[n]),n?(0,o.createElement)(f.Iw,{localeSlug:null!==(e=null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)&&void 0!==e?e:p.OP},(0,o.createElement)(d.Z.Provider,{value:{siteId:window._currentSiteId,flow:h.OS,redirectTo:v.gQ,openCheckout:v.Rd,getCurrentLaunchFlowUrl:v.O0,isInIframe:(0,y.y)()}},(0,o.createElement)(m.Z,{onClose:i}))):null}},(0,l.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});var r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=(n(3804),n(5707)),a=n(8675),u=n(8318),s=n(8374);n(1641);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,a.useI18n)().__,l=(0,o.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),c=l.currentStep,d=l.LaunchStep,f=l.LaunchSequence,p=l.isStepCompleted,m=l.isFlowCompleted,g=(t={},(0,r.Z)(t,d.Name,__("Name your site","full-site-editing")),(0,r.Z)(t,d.Domain,__("Select a domain","full-site-editing")),(0,r.Z)(t,d.Plan,__("Select a plan","full-site-editing")),(0,r.Z)(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,o.useDispatch)(u.sC).setStep;return(0,i.createElement)("div",{className:"nux-launch-menu"},(0,i.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,i.createElement)("div",{className:"nux-launch-menu__item-group"},f.map((function(e){return(0,i.createElement)(s.Z,{key:e,title:g[e],isCompleted:p(e),isCurrent:e===c,onClick:function(){return function(e){h(e),n(e)}(e)},isDisabled:e===d.Final&&!m})}))))}},8374:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(7997)),o=n(5869),a=n(9806),u=n(2779),s=n.n(u),l=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"}));t.Z=function(e){var t=e.title,n=e.isCompleted,u=e.isCurrent,c=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:s()("nux-launch-menu__item",{"is-current":u,"is-completed":n}),onClick:d,disabled:c,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:l,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(6470),i=n(3258),o=n(3027),a=n(3804),u=n.n(a),s=n(2779),l=n.n(s),c=n(5707),d=n(3163),f=n(7997),p=n(5869),m=n(1742),g=n(8565),h=n(6357),v=n(3357),y=n(849),b=n(8318),_=n(8398),S=n(2326),E=n(2526),__=(n(6879),d.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,a=u().useContext(h.Z).siteId,s=(0,c.useSelect)((function(e){return e(b.sC).getState()})),d=s.step,w=s.isSidebarFullscreen,A=u().useState(!1),x=(0,i.Z)(A,2),C=x[0],P=x[1],N=u().useState(!1),k=(0,i.Z)(N,2),I=k[0],O=k[1],Z=(0,c.useDispatch)(b.j4).launchSite,L=(0,c.useDispatch)("core/editor").savePost,M=(0,y.bU)(),T=(0,c.useDispatch)(b.sC).setPlanProductId,D=(0,c.useSelect)((function(e){return e(b.Fs).getDefaultFreePlan(M)})),F=u().useCallback((function(){Z(a),P(!0)}),[Z,P,a]);return u().useEffect((function(){n&&!C&&P(!0)}),[C,n]),u().useEffect((function(){var e=function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!I&&null!=D&&D.productIds[0]&&(T(null==D?void 0:D.productIds[0]),O(!0),e(),F())}),[n,I,F,L,D,T]),(0,v.X)(),(0,o.createElement)(f.Modal,{open:!0,className:l()("nux-launch-modal","step-".concat(d),w?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},C?(0,o.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"nux-launch-modal-body"},(0,o.createElement)("div",{className:"nux-launch-modal-header"},(0,o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,o.createElement)(p.Z,{icon:m.Z,size:36})),(0,o.createElement)(E.Z,null)),(0,o.createElement)(_.Z,{onSubmit:F})),(0,o.createElement)("div",{className:"nux-launch-modal-aside"},(0,o.createElement)(S.Z,null)),(0,o.createElement)(f.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,o.createElement)("span",null,(0,o.createElement)(p.Z,{icon:g.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(8675),u=n(8318);n(8560);t.Z=function(){var __=(0,a.useI18n)().__,e=(0,i.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,s=n.indexOf(t)+1,l=n.length,c=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),s,l);return(0,r.createElement)("div",{className:"nux-launch-progress"},c)}},2326:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(5707),a=n(5915),u=n(9211),s=n(6915),l=n(8318),__=(n(9658),i.__);t.Z=function(){var e=(0,o.useDispatch)(l.sC),t=e.setStep,n=e.unsetSidebarFullscreen,i=(0,o.useSelect)((function(e){return e(l.sC).getLaunchSequence()}));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(a.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(a.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(s.Z,{onMenuItemClick:function(){n()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.aW,{onClick:function(){t(i[0]),n()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(3027);n(3804),n(7560);t.Z=function(e){var t=e.children;return(0,r.createElement)(r.Fragment,null,t)}},9270:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(8675),a=n(849),u=n(2999),s=n(3446),l=n(5915),c=n(9211),d=n(6115),f=n(381),p=n(8318),m=n(780),g=n(5144),h=n(6956),v=n(1157);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,y=(0,o.useI18n)(),__=y.__,b=y.hasTranslation,_=(0,a.bU)(),S=(0,m.my)(),E=S.onDomainSelect,w=S.onExistingSubdomainSelect,A=S.currentDomain,x=(0,g.j)().siteSubdomain,C=(0,h.f)(),P=C.domainSearch,N=C.setDomainSearch,k=(0,i.useDispatch)(p.sC).confirmDomainSelection,I=function(){k(),null==n||n()},O=__("Free for the first year with any paid plan.","full-site-editing"),Z=__("Free for the first year with any annual plan.","full-site-editing"),L="en"===_||null!=b&&b("Free for the first year with any annual plan.")?Z:O;return(0,r.createElement)(f.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(l.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(l.D,null,L)),(0,r.createElement)(c.ZP,{sticky:!1},(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(u.ZP,{analyticsFlowId:v.OS,initialDomainSearch:P,onSetDomainSearch:N,onDomainSearchBlur:function(e){(0,d.jN)("calypso_newsite_domain_search_blur",{flow:v.OS,query:e,where:"editor_domain_modal"})},currentDomain:A||(0,s.nf)(null==x?void 0:x.domain),existingSubdomain:(0,s.nf)(null==x?void 0:x.domain),onDomainSelect:E,onExistingSubdomainSelect:w,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:_})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(c.ZP,{sticky:!0},(0,r.createElement)(c.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))))}},4502:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(2779)),a=n.n(o),u=n(50),s=n(3163),l=n(5707),c=n(7997),d=n(5869),f=n(9806),p=n(4557),m=n(5144),g=n(8463),h=n(6956),v=n(849),y=n(7498),b=n(8675),_=n(5915),S=n(9211),E=n(7384),w=n(1806),A=n(7450),x=n(381),C=n(8318),P=(n(2272),(0,i.createElement)(d.Z,{icon:f.Z,size:17}));t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,o=(0,l.useSelect)((function(e){var t=e(C.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),d=o.domain,f=o.LaunchStep,N=o.isStepCompleted,k=o.isFlowCompleted,I=o.planProductId,O=(0,b.useI18n)(),__=O.__,Z=O.hasTranslation,L=(0,v.bU)(),M=(0,l.useSelect)((function(e){return[e(C.Fs).getPlanByProductId(I,L),e(C.Fs).getPlanProductById(I)]})),T=(0,r.Z)(M,2),D=T[0],F=T[1],R=(0,p.Z)().title,$=(0,m.j)().siteSubdomain,j=(0,g.V)(),B=(0,h.f)().domainSearch,U=(0,l.useDispatch)(C.sC).setStep,G=(0,y.Iu)(),V=(0,i.createElement)("div",{className:"nux-launch__summary-item"},(0,i.createElement)("p",null,__("Site","full-site-editing"),": ",R)),H=(0,i.createElement)("div",{className:"nux-launch__summary-item"},null!=d&&d.domain_name?(0,i.createElement)("p",null,__("Custom domain","full-site-editing"),": ",d.domain_name,"MONTHLY"===(null==F?void 0:F.billingPeriod)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,s.sprintf)(__("%s/year","full-site-editing"),d.cost)))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==$?void 0:$.domain),(0,i.createElement)(c.Tip,null,B?(0,i.createInterpolateElement)(__("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,i.createElement)("span",{className:a()("nux-launch__summary-item__domain-name",{"is-loading":!j})},(null==j?void 0:j.domain_name)||"loading-example.com"),Link:(0,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),Y=__("per month, billed as %s annually","full-site-editing"),W="en"===L||null!=Z&&Z("per month, billed as %s annually")?(0,s.sprintf)(Y,null==F?void 0:F.annualPrice):z,q=__("per month, billed monthly","full-site-editing"),K=(0,i.createElement)("div",{className:"nux-launch__summary-item"},D&&F&&!D.isFree?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",D.title),__("Plan subscription","full-site-editing"),": ",F.price," ","ANNUALLY"===F.billingPeriod?W:q):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,i.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,i.createElement)(c.Tip,null,(0,i.createInterpolateElement)((0,s.sprintf)(__("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Plan)}})}))));return(0,i.createElement)(x.Z,null,(0,i.createElement)("div",{className:"nux-launch-step__header"},(0,i.createElement)("div",null,(0,i.createElement)(_.b,null,__("Launch your site","full-site-editing")),(0,i.createElement)(_.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,i.createElement)("div",{className:"nux-launch-step__body"},(0,i.createElement)(u.f6,{theme:E.Z},(0,i.createElement)(w._U,null,N(f.Plan)&&(0,i.createElement)(w.Bb,null,(0,i.createElement)(w.nb,{className:"nux-launch__feature-list"},(0,i.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,i.createElement)("ul",{className:"nux-launch__feature-item-group"},null==D?void 0:D.features.filter((function(e){return"ANNUALLY"===(null==F?void 0:F.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,i.createElement)("li",{key:t,className:"nux-launch__feature-item"},P," ",e.name)}))),(0,i.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,i.createElement)(c.Button,{isLink:!0,href:G("https://wordpress.com/help/contact",L),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,i.createElement)(w.r8,null,(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:N(f.Name),goToThisStep:function(){return U(f.Name)},completeStepContent:V,stepId:"name",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:N(f.Domain),goToThisStep:function(){return U(f.Domain)},completeStepContent:H,stepId:"domain",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:N(f.Plan),goToThisStep:function(){return U(f.Plan)},completeStepContent:K,stepId:"plan",formStatus:A.PX.READY}),(0,i.createElement)(w.ds,null,(0,i.createElement)(c.Button,{isPrimary:!0,disabled:!k,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,i.createElement)("div",{className:"nux-launch-step__footer"},(0,i.createElement)(S.ZP,{sticky:!0},(0,i.createElement)(S.xE,{onClick:function(){null==n||n()}}))))}},958:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(7997),a=n(5915),u=n(9211),s=n(381),l=n(4557),__=(n(5444),i.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,i=(0,l.Z)(),c=i.title,d=i.updateTitle,f=function(){null==n||n()};return(0,r.createElement)(s.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(a.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(a.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(u.ZP,{sticky:!1},(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:f},(0,r.createElement)(o.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:c||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(o.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(5315),u=n(5915),s=n(9211),l=n(3073),c=n(381),d=n(8318),__=(n(12),o.__);t.Z=function(e){var t,n=e.onPrevStep,f=e.onNextStep,p=(0,i.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=p.domain,g=p.LaunchStep,h=p.selectedPlanProductId,v=(0,i.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,l.W)().selectedFeatures,S=m&&!m.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(u.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(u.D,null,(0,o.sprintf)(__("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(a.Z,{currentPlanProductId:h,currentDomain:m,onPlanSelect:function(e){y(e),null==f||f()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:S?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:_,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(s.ZP,{sticky:!0},(0,r.createElement)(s.xE,{onClick:function(){null==n||n()}}))))}},8398:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(3804),a=n.n(o),u=n(5707),s=n(958),l=n(9270),c=n(4524),d=n(4502),f=n(8318);n(6020);t.Z=function(e){var t,n=e.onSubmit,o=(0,u.useSelect)((function(e){return e(f.sC).getState()})).step,p=(0,u.useSelect)((function(e){return e(f.sC).getLaunchStep()})),m=(0,u.useSelect)((function(e){return e(f.sC).getLaunchSequence()})),g=(0,u.useSelect)((function(e){return e(f.sC).getFirstIncompleteStep()})),h=(0,u.useDispatch)(f.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},(0,r.Z)(t,p.Name,s.Z),(0,r.Z)(t,p.Domain,l.Z),(0,r.Z)(t,p.Plan,c.Z),(0,r.Z)(t,p.Final,d.Z),t),S=m.indexOf(o),E=_[o];return a().useEffect((function(){g&&g!==p.Name&&v(g)}),[]),(0,i.createElement)(E,{onPrevStep:function(){var e=S-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=S+1;e>m.length-1&&(null==n||n()),b(),v(m[e])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(8681);var r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return s},gQ:function(){return l},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),s=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},l=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=s().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var g=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));l(g)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(1205),a=(n(3421),n(382)),u=n(4898),s=(n(6209),n(1694),n(9377),n(9358)),l=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var d=new a.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(l,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,o.omitBy)(t,(function(e){return void 0===e})),(0,s.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r,i=n(2389),o=n(1766),a=n(4530),u=n(4059),s=n(3027),l=(n(3804),n(5393)),c=n(6654),d=(0,l.Z)("button")(r||(r=(0,u.Z)(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"])),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),m,p,(function(e){return e.theme.weights.normal}),h,f,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),p,(function(e){return e.disabled?"not-allowed":"pointer"}),f,h,p,(function(e){var t=e.buttonType;return"grayscale( ".concat("primary"===t||"paypal"===t?"0":"100"," ) invert( 0 );")}),(function(e){var t=e.buttonType;return"primary"===t||"paypal"===t?"1":"0.5"}),m,g,g,m);function f(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function p(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledButtons;switch(n){case"primary":case"secondary":return r.surface;case"text-button":return r.highlight;default:return r.textColor}}function m(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtons;switch(n){case"paypal":return r.paypalGold;case"primary":return r.primary;case"secondary":return r.highlight;default:return"none"}}function g(e){var t=e.disabled,n=e.buttonType,r=e.theme.colors;if(t)return r.disabledPaymentButtonsAccent;switch(n){case"paypal":return r.paypalGoldHover;case"primary":return r.primaryOver;case"secondary":return r.highlightOver;case"text-button":case"borderless":default:return"none"}}function h(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,u=e.children,l=e.fullWidth,f=(0,a.Z)(e,["className","buttonType","isBusy","children","fullWidth"]),p=(0,c.Z)(["checkout-button"].concat((0,o.Z)(n?["is-status-"+n]:[]),(0,o.Z)(r?["is-busy"]:[]),(0,o.Z)(t?[t]:[])));return(0,s.createElement)(d,(0,i.Z)({fullWidth:l,buttonType:n,className:p},f),u)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(4059),d=n(3027),f=n(3804),p=n.n(f),m=n(8049),g=n.n(m),h=n(5393),v=g()("composite-checkout:checkout-error-boundary"),y=h.Z.div(r||(r=(0,c.Z)(["\n\tmargin: 2em;\n\ttext-align: center;\n"]))),b=function(e){(0,u.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e),(0,l.Z)((0,a.Z)(r),"state",{hasError:!1}),r}return(0,o.Z)(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);v("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,d.createElement)(_,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),n}(p().Component);function _(e){var t=e.errorMessage;return(0,d.createElement)(y,null,t)}},7984:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=(n(3804),n(4790));t.Z=function(e){var t=e.value,n=e.onClick,u=e.ariaLabel,s=(0,i.Z)(e,["value","onClick","ariaLabel"]);return(0,o.createElement)(a.Z,(0,r.Z)({onClick:n,buttonType:"primary","aria-label":u},s),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return L},Bb:function(){return T},nb:function(){return D},r8:function(){return F},ds:function(){return R},V9:function(){return U}});var r,i,o,a,u,s,l,c,d,f,p,m,g,h,v,y,b=n(4059),_=n(3027),S=(n(3804),n(8049)),E=n.n(S),w=n(3980),A=n.n(w),x=n(8675),C=n(6654),P=n(3246),N=n(4790),k=n(5197),I=n(7984),O=n(5393),Z=n(7450),L=(E()("composite-checkout:checkout"),O.Z.div(r||(r=(0,b.Z)(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline})),O.Z.div(i||(i=(0,b.Z)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp}))),M=O.Z.div(o||(o=(0,b.Z)(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),T=function(e){var t=e.children,n=e.className;return(0,_.createElement)(M,{className:(0,C.Z)([n,"checkout__summary-area"])},t)},D=O.Z.div(a||(a=(0,b.Z)(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var F=O.Z.div(u||(u=(0,b.Z)(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),R=O.Z.div(s||(s=(0,b.Z)(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var $=O.Z.div(l||(l=(0,b.Z)(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),j=O.Z.div(c||(c=(0,b.Z)(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),B=O.Z.div(d||(d=(0,b.Z)(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function U(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,u=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,c=e.className,d=e.stepNumber,f=e.stepId,p=e.titleContent,m=e.goToThisStep,g=e.goToNextStep,h=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,b=e.onError,__=(0,x.useI18n)().__,S="".concat(f,s?"--visible":"--invisible"),E="".concat(f,s?"--invisible":"--visible");return(0,_.createElement)(P.Z,{errorMessage:t||__("There was an error with this step."),onError:b},(0,_.createElement)($,{className:c},(0,_.createElement)(z,{id:f,stepNumber:d,title:p,isActive:s,isComplete:l,onEdit:v===Z.PX.READY&&l&&m&&!s?m:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,_.createElement)(j,{"data-testid":S,isVisible:s,className:"checkout-steps__step-content"},h,g&&s&&(0,_.createElement)(I.Z,{onClick:g,value:v===Z.PX.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:v===Z.PX.VALIDATING?u||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:v!==Z.PX.READY,isBusy:v===Z.PX.VALIDATING})),l&&y?(0,_.createElement)(B,{"data-testid":E,isVisible:!s,className:"checkout-steps__step-complete-content"},y):null))}U.propTypes={errorMessage:A().string,onError:A().func,editButtonAriaLabel:A().string,editButtonText:A().string,nextStepButtonText:A().string,nextStepButtonAriaLabel:A().string,isStepActive:A().bool.isRequired,isStepComplete:A().bool.isRequired,className:A().string,stepNumber:A().number,stepId:A().string.isRequired,titleContent:A().node.isRequired,goToThisStep:A().func,goToNextStep:A().func,activeStepContent:A().node,formStatus:A().string,completeStepContent:A().node,validatingButtonText:A().string,validatingButtonAriaLabel:A().string};var G=O.Z.span(f||(f=(0,b.Z)(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"])),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),V=O.Z.h2(p||(p=(0,b.Z)(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),H=(0,O.Z)(N.Z)(m||(m=(0,b.Z)(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));function z(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,u=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=(0,x.useI18n)().__,c=!!u;return(0,_.createElement)(V,{isComplete:a,isActive:o,className:(0,C.Z)([n,"checkout-step__header"])},(0,_.createElement)(X,{isComplete:a,isActive:o,id:t},r||null),(0,_.createElement)(G,{fullWidth:!c,isActive:o},i),c&&(0,_.createElement)(H,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:u,"aria-label":l||__("Edit this step")},s||__("Edit")))}var Y=O.Z.div(g||(g=(0,b.Z)(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]))),W=O.Z.div(h||(h=(0,b.Z)(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),q=O.Z.div(v||(v=(0,b.Z)(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"])),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),K=(0,O.Z)(q)(y||(y=(0,b.Z)(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function X(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,_.createElement)(Y,{className:(0,C.Z)([r,"checkout-step__stepper"])},(0,_.createElement)(W,{isComplete:a},(0,_.createElement)(q,{isComplete:a,isActive:n},i),(0,_.createElement)(K,null,(0,_.createElement)(k.nQ,{id:o}))))}z.propTypes={id:A().string,className:A().string,stepNumber:A().number,title:A().node.isRequired,isActive:A().bool,isComplete:A().bool,editButtonText:A().string,editButtonAriaLabel:A().string,onEdit:A().func},X.propTypes={id:A().string,className:A().string,isComplete:A().bool,isActive:A().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return l}});var r,i=n(4059),o=n(3027),a=(n(3804),n(3980)),u=n.n(a),s=n(5393);function l(e){var t=e.className,n=e.id;return(0,o.createElement)(c,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,o.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,o.createElement)("rect",{width:"20",height:"20"})))}l.propTypes={className:u().string,id:u().string};var c=s.Z.svg(r||(r=(0,i.Z)(["\n\tfill: #fff;\n"])))},6654:function(e,t,n){"use strict";function r(e){return e.filter((function(e){return e})).join(" ")}n.d(t,{Z:function(){return r}})},5393:function(e,t,n){"use strict";var r=n(6648);t.Z=r.Z},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777),i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}};t.Z=i},7450:function(e,t,n){"use strict";var r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(584),o=n(3717),a=n(3600),u=n(2269),s=n(267),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.L,{actions:a,controls:l.ai,reducer:o.Z,resolvers:u,selectors:s})),i.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),s={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},l=(0,o.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=l},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return g},getCategories:function(){return h},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(9126),o=n(1481),a=n(6468),u=n.n(a),s=n(3600),l=n(3661),c=n(4211),d=regeneratorRuntime.mark(h),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var g=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,l.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,s.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,s.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function h(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,l.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,s.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,s.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,l._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,i.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,s.receiveDomainSuggestionsError)((0,o.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,s.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,s.receiveDomainSuggestionsError)(u.t0.message||(0,o.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},l=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return u},_B:function(){return s},o0:function(){return l}});var r=n(9394),i=n(5695),o=n.n(i),a=n(1621),u=o();function s(e,t){return(0,a.ZP)(e,t,{stripZeros:!0})}function l(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return g},updatePlan:function(){return h},openSidebar:function(){return v},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return E},setModalDismissible:function(){return w},unsetModalDismissible:function(){return A},showModalTitle:function(){return x},hideModalTitle:function(){return C},enablePersistentSuccessView:function(){return P},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},l=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),g=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function h(e){return m(e)}var v=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},E=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},A=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},C=function(){return{type:"HIDE_MODAL_TITLE"}},P=function(){return{type:"ENABLE_SUCCESS_VIEW"}},N=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});var r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});var r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(9866),i=n(5707),o=n(9149),a=n(4648),u=n(6108),s=n(7092),l=n(594);(0,i.use)(i.plugins.persistence,l.Z);var c=!1;function d(){return c||(c=!0,(0,i.registerStore)(o.Ls,{actions:u,controls:r.controls,reducer:a.Z,selectors:s,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),o.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(5707),i=n(3610),o=n(9149),a=function(){return i.M},u=function(){return i.y},s=function(e){return e},l=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(o.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},g=function(e,t){if(t===i.y.Plan)return!!d(e);if(t===i.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===i.y.Domain&&(0,r.select)(o.Ls).hasSelectedDomainOrSubdomain()},h=function(e){return i.M.slice(0,i.M.length-1).every((function(t){return g(e,t)}))},v=function(e){return i.M.some((function(t){return g(e,t)}))},y=function(e){return i.M.find((function(t){return!g(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",s="business",l="ecommerce",c=[o,a,u,s,l],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),g=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(4703),o=n(9438),a=n(9068),u=n(7738),s=n(5261),l=n(3661),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(i.Ls,{resolvers:s,actions:a,controls:l.ai,reducer:o.ZP,selectors:u})),i.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return g}});var r=n(9126),i=n(1621),o=n(9068),a=n(4703),u=n(3661),s=regeneratorRuntime.mark(g);function l(e){return(0,i.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,i.ZP)(e.raw_price,e.currency_code,{stripZeros:!0})}function d(e){return e.reduce((function(e,t){return e[t.id]={id:t.id,name:t.name,description:t.description,type:"checkbox",requiresAnnuallyBilledPlan:a.nN.indexOf(t.id)>-1},e}),{})}function f(e,t){var n=Object.keys(t).find((function(n){return t[n].name===e}));return!!n&&t[n].requiresAnnuallyBilledPlan}function p(e,t){var n=e.highlighted_features.map((function(e){return{name:e,requiresAnnuallyBilledPlan:f(e,t)}}));return n.sort((function(e,t){return Number(t.requiresAnnuallyBilledPlan)-Number(e.requiresAnnuallyBilledPlan)})),n}function m(e,t){var n=a.BV.reduce((function(n,r){var o=e.find((function(e){return e.product_slug===r}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,i.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===a.bS[t]})),r=e.find((function(e){return e.storeSlug===a.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,u=Math.round(100*(1-o/i));n.annualDiscount=u,r.annualDiscount=u}},n=0;n<a.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,i,l,c,f,g=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=g.length>0&&void 0!==g[0]?g[0]:"en",s.next=3,(0,u._9)({path:"/plans",query:(0,r.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,u.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,i=n.body,l=d(i.features),c=i.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,l),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===a.TO,isPopular:n===a.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),s.next=13,(0,o.setPlans)(c,e);case 13:return s.next=15,(0,o.setPlanProducts)(f);case 15:return s.next=17,(0,o.setFeatures)(l,e);case 17:return s.next=19,(0,o.setFeaturesByType)(i.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return v},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(5707),i=n(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},s=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},l=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},g=function(e){return e.planProducts},h=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=function(e,t){return t===a.iL},_=function(e,t){return t===a.TO},S=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(9394),i=n(4530),o=n(3661),a=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),u=regeneratorRuntime.mark(b),s=regeneratorRuntime.mark(_),l=regeneratorRuntime.mark(S),c=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},f=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(n){var a,u,s,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,a=n.authToken,u=(0,i.Z)(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},l=(0,r.Z)((0,r.Z)((0,r.Z)({},s),u),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:l,token:a});case 8:return c=t.sent,t.next=11,d(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,f(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var m=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},g=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},h=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},v=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function y(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,h(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,v(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function b(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),u)}function _(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),s)}function S(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,m(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),l,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:S,receiveSiteTitle:m,fetchNewSite:c,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:f,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:p,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:y,launchSiteStart:g,launchSiteSuccess:h,launchSiteFailure:v,getCart:b,setCart:_}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(2005),o=n(2701),a=n(8459),u=n(7862),s=n(4309),l=n(3661),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(i.L,{actions:(0,a.d)(e),controls:l.ai,reducer:o.ZP,resolvers:u,selectors:s})),i.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),s=n(2699),l=(0,u.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),c=(0,u.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:l,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return l}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),u=regeneratorRuntime.mark(l);function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(2699),a=function(e){return e},u=function(e){return e.newSite.data},s=function(e){return e.newSite.error},l=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},2699:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(9866),i=n(5707),o=n(4366),a=n(8638),u=n(335),s=!1;function l(){return s||(s=!0,(0,i.registerStore)(o.L,{controls:r.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return s}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(7997)),a=n(5869),u=n(3383),s=n(2779),l=n.n(s),c=n(8675),d=n(5707),f=n(3300);n(8062);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,c.useI18n)().__,s=(0,i.useState)(!1),p=(0,r.Z)(s,2),m=p[0],g=p[1],h=function(e){g(!1),t(e)},v=(0,d.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(a.Z,{icon:u.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return h(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(8675)),o=function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=n(3804),u=n(6461),s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,["type","disabled"]);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return b}});var r=n(2389),i=n(3258),o=n(3027),a=n(3804),u=n(2779),s=n.n(u),l=n(8675),c=n(6115),d=n(849),f=n(7498),p=n(7997),m=n(1417),g=n(3163),h=n(413),v=n(7226),y="radio",b="button",_="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,u=e.cost,S=e.railcarId,E=e.hstsRequired,w=void 0!==E&&E,A=e.isFree,x=void 0!==A&&A,C=e.isExistingSubdomain,P=void 0!==C&&C,N=e.isRecommended,k=void 0!==N&&N,I=e.onSelect,O=e.onRender,Z=e.selected,L=e.type,M=void 0===L?y:L,T=e.buttonRef,D=(0,l.useI18n)(),__=D.__,F=D.hasTranslation,R=(0,d.bU)(),$=(0,f.Iu)(),j=!(0,m.useViewportMatch)("small",">="),B=n.indexOf("."),U=n.slice(0,B),G=n.slice(B),V=a.useState(),H=(0,i.Z)(V,2),z=H[0],Y=H[1],W=a.useState(),q=(0,i.Z)(W,2),K=q[0],X=q[1],J=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=M===_?J:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===R||null!=F&&F("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===R||null!=F&&F("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});a.useEffect((function(){n!==z&&K!==S&&S&&(O(),Y(n),X(S))}),[n,z,K,S,O]);var se=function(){K&&(0,c.Lo)({action:"domain_selected",railcarId:K}),I(n)},le=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:T,type:M,key:U,className:s()("domain-picker__suggestion-item",{"is-free":x,"is-selected":Z,"is-unavailable":t},"type-".concat(M)),onClick:M!==b?se:void 0,disabled:t},M===y&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("span",{className:s()("domain-picker__suggestion-radio-circle",{"is-checked":Z,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:s()("domain-picker__domain-wrapper",{"with-margin":!w})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},U),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),k&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),w&&(0,o.createElement)(h.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),P&&M!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:s()("domain-picker__price",{"is-paid":!x})},t&&__("Unavailable","full-site-editing"),x&&!t&&ee,!x&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,g.sprintf)(__("%s/year","full-site-editing"),u)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,g.sprintf)(__("Renews at: %s /year","full-site-editing"),u)))),M===b&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(p.Button,{ref:T,isSecondary:!0,className:s()("domain-picker__suggestion-select-button",{"is-selected":Z&&!t}),disabled:t,onClick:se},Z&&!t?le:ce))))};t.ZP=a.forwardRef((function(e,t){return(0,o.createElement)(S,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(8675),a=n(7226);t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n.n(o),u=n(1205),s=n(7997),l=n(5869),c=n(7108),d=n(6115),f=n(584),p=n(8675),m=n(6461),g=n(1614),h=n(605),v=n(7003),y=n(6325),b=n(5241),_=n(1045),S=n(1071),E=n(3446),w=n(3300),A=(n(3437),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(o.Fragment,null,n)}),x=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,C=e.showDomainCategories,P=e.onDomainSelect,N=e.onExistingSubdomainSelect,k=e.quantity,I=void 0===k?w.SL:k,O=e.quantityExpanded,Z=void 0===O?w.Mm:O,L=e.onDomainSearchBlur,M=e.analyticsFlowId,T=e.analyticsUiAlgo,D=e.initialDomainSearch,F=void 0===D?"":D,R=e.onSetDomainSearch,$=e.currentDomain,j=e.isCheckingDomainAvailability,B=e.existingSubdomain,U=e.segregateFreeAndPaid,G=void 0!==U&&U,V=e.showSearchField,H=void 0===V||V,z=e.itemType,Y=void 0===z?m.fe:z,W=e.locale,q=e.areDependenciesLoading,K=void 0!==q&&q,X=e.orderSubDomainsLast,J=void 0!==X&&X,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,E.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,p.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,o.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],se=ae[1],le=(0,o.useState)(F),ce=(0,r.Z)(le,2),de=ce[0],fe=ce[1],pe=(0,o.useState)(),me=(0,r.Z)(pe,2),ge=me[0],he=me[1],ve=(0,b.O)(de.trim(),Z,ge,W)||{},ye=ve.allDomainSuggestions,be=ve.errorMessage,_e=ve.state,Se=ve.retryRequest,Ee=null==ye?void 0:ye.filter((function(e){return!(B&&e.is_free)})).slice(0,ue?Z-1:I-1),we=null==Ee?void 0:Ee.findIndex((function(e){return!e.is_free&&!e.unavailable})),Ae=(0,_.$)(Ee,B,$);Ae&&(null==Ee||Ee.push(Ae));var xe=(0,S.P)();(0,o.useEffect)((function(){se(!1)}),[de]);var Ce=(0,o.useState)(),Pe=(0,r.Z)(Ce,2),Ne=Pe[0],ke=Pe[1];(0,o.useEffect)((function(){ye&&ke((0,d.k9)("suggestion"))}),[ye,ke]),(0,o.useEffect)((function(){H||fe(F)}),[F,H]);var Ie=a().useRef([]);(0,o.useEffect)((function(){var e,t;ue&&(null===(e=Ie.current[I])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,I]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(M).concat(ge?"/"+ge:"");(0,d.Sn)({uiAlgo:"/".concat(M,"/").concat(T),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Ze=a().useRef(),Le=_e===f.r.Failure,Me=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,Te=!Le&&!Me,De=!Le&&Me,Fe=I;Ae&&(Fe+=1),Q&&(Fe+=1),B&&(Fe-=1);var Re=["professional"];return B&&Re.unshift("sub-domain"),J&&Re.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,H&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Ze||null===(t=Ze.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:c.Z})),(0,i.createElement)(s.TextControl,{ref:function(e){Ze.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),R&&R(e)},onBlur:function(e){L&&L(e.currentTarget.value)},value:de,dir:"ltr"}))),Le&&(0,i.createElement)(s.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},be||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(s.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Se},__("Retry","full-site-editing"))),(Te||K)&&(0,i.createElement)("div",{className:"domain-picker__body"},C&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(v.Z,{selected:ge,onSelect:he})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},Re.map((function(e){return"sub-domain"===e?(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&B&&(0,i.createElement)(m.ZP,{key:null==B?void 0:B.domain_name,domain:null==B?void 0:B.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==B?void 0:B.domain_name,"".concat(Ne,0),0,!1)},selected:(null==$?void 0:$.domain_name)===(null==B?void 0:B.domain_name),onSelect:function(){null==N||N(null==B?void 0:B.domain_name)},type:Y})||(0,i.createElement)(g.Z,{type:Y}))):(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Professional domains","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=B&&B.domain_name?t+1:t,o=t===we,a=null===(n=xe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,i.createElement)(m.ZP,{ref:function(e){Ie.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==$?void 0:$.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){P(e)},selected:(null==$?void 0:$.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(Fe,(function(e){return(0,i.createElement)(g.Z,{type:Y,key:e})})),Q&&!!Ee&&(0,i.createElement)(h.Z,{onClick:Q})))}))),!ue&&I<Z&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>I&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(s.Button,{onClick:function(){return se(!0)},isLink:!0},__("View more results","full-site-editing"))))),De&&!K&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(y.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n(2779),u=n.n(a),s=n(7997),l=n(5614);n(101);t.Z=function(e){var t=e.children,n=e.className,a=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,o.useState)(!1),g=(0,r.Z)(m,2),h=g[0],v=g[1];return(0,i.createElement)((function(e){return(0,i.createElement)(s.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,i.createElement)(s.Popover,{id:a,className:u()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return s},vn:function(){return l}});var r=n(8077),i=5,o=10,a=2,u=300,s=r.z(),l=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:s,category_slug:n},l)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),s=u[0],l=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&l(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var s=(0,r.Z)((0,r.Z)({},a),n),l=s.decimal,c=s.grouping,d=s.precision,f=s.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:l});return n.stripZeros&&(m=u(m,l)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(8049),a=n.n(o),u=n(7010),s=n(9830),l=n(7839),c=n.n(l),d=n(5079),f=n.n(d),p=n(382),m=n(6668),g=n(3),h=a()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function E(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function w(e){return Array.prototype.slice.call(e)}function A(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&E("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",w(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&E("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",w(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function x(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function C(e,t){for(var n=_.length-1;n>=0;n--){var r=_[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return x(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:c()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},P.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},P.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},P.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,g.Z)(e,n,r,i)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==S[n+e])return S[n+e];var r=f()().update(e).digest("hex");return S[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)_.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var c=Number(o.substr(5));_.push(u(c))}else for(var d=Number(o.substr(5,l)),p=Number(o.substr(6+l)),m=d;m<=p;m++)_.push(u(m))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new s.Z((0,i.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,A([v])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,A([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!C(this,A(arguments))},P.prototype.translate=function(){var e=A(arguments),t=C(this,e);if(t||(t=x(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=m.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){h("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return l}});var r=n(914),i=n(3493),o=n(975),a=n(8373),u=new r.Z,s=u.numberFormat.bind(u),l=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,o.Z)(u),(0,a.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,s.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,l.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,l.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,u=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
+ */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case u:case a:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case h:case g:case s:return e;default:return t}}case i:return t}}}function E(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=h,t.Memo=g,t.Portal=i,t.Profiler=u,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||S(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===h},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===u||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===s||e.$$typeof===l||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===_||e.$$typeof===v)},t.typeOf=S},8570:function(e,t,n){"use strict";e.exports=n(6866)},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1184),i={contextDelimiter:"",onMissingKey:null};function o(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}o.prototype.getPluralForm=function(e,t){var n,i,o,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),o=(0,r.Z)(i)),a=this.pluralForms[e]=o),a(t)},o.prototype.dcnpgettext=function(e,t,n,r,i){var o,a,u;return o=void 0===i?0:this.getPluralForm(e,i),a=n,t&&(a=t+this.options.contextDelimiter+n),(u=this.data[e][a])&&u[o]?u[o]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===o?n:r)}},365:function(e,t,n){"use strict";n.d(t,{y:function(){return r}});var r=function(){try{return window.self!==window.top}catch(e){return!0}};!window||!window._currentSiteType||window._currentSiteType},7989:function(e,t,n){"use strict";var r,i,o=n(3027),a=n(3804),u=n.n(a),s=n(5707),l=n(1200),c=n(5799),d=n(6357),f=n(849),p=n(4655),m=n(9095),g=n(8318),h=n(1157),v=n(8550),y=n(365);r="a8c-editor-site-launch",i={render:function(){var e,t,n=(0,s.useSelect)((function(e){return e(g.sC).getState()})).isSidebarOpen,r=(0,s.useDispatch)(g.sC),i=r.closeSidebar,a=r.setSidebarFullscreen,l=r.unsetSidebarFullscreen;return u().useEffect((function(){window.innerWidth<782?a():l()}),[n,a,l]),u().useEffect((function(){var e="a8c.wpcom-block-editor.toggleInlineHelpButton";(0,c.hasAction)(e)&&(0,c.doAction)(e,{hidden:n})}),[n]),n?(0,o.createElement)(f.Iw,{localeSlug:null!==(e=null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)&&void 0!==e?e:p.OP},(0,o.createElement)(d.Z.Provider,{value:{siteId:window._currentSiteId,flow:h.OS,redirectTo:v.gQ,openCheckout:v.Rd,getCurrentLaunchFlowUrl:v.O0,isInIframe:(0,y.y)()}},(0,o.createElement)(m.Z,{onClose:i}))):null}},(0,l.registerPlugin)(r,i)},1157:function(e,t,n){"use strict";n.d(t,{OS:function(){return r},Js:function(){return i},nU:function(){return o}});var r="gutenboarding",i="focused-launch",o="should_launch"},6915:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=(n(3804),n(5707)),a=n(8675),u=n(8318),s=n(8374);n(1641);t.Z=function(e){var t,n=e.onMenuItemClick,__=(0,a.useI18n)().__,l=(0,o.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchStep:t.getLaunchStep(),LaunchSequence:t.getLaunchSequence(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted()}})),c=l.currentStep,d=l.LaunchStep,f=l.LaunchSequence,p=l.isStepCompleted,m=l.isFlowCompleted,g=(t={},(0,r.Z)(t,d.Name,__("Name your site","full-site-editing")),(0,r.Z)(t,d.Domain,__("Select a domain","full-site-editing")),(0,r.Z)(t,d.Plan,__("Select a plan","full-site-editing")),(0,r.Z)(t,d.Final,__("Launch your site","full-site-editing")),t),h=(0,o.useDispatch)(u.sC).setStep;return(0,i.createElement)("div",{className:"nux-launch-menu"},(0,i.createElement)("h4",null,__("Site Launch Steps","full-site-editing")),(0,i.createElement)("div",{className:"nux-launch-menu__item-group"},f.map((function(e){return(0,i.createElement)(s.Z,{key:e,title:g[e],isCompleted:p(e),isCurrent:e===c,onClick:function(){return function(e){h(e),n(e)}(e)},isDisabled:e===d.Final&&!m})}))))}},8374:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(7997)),o=n(5869),a=n(9806),u=n(2779),s=n.n(u),l=(0,r.createElement)(i.SVG,{viewBox:"0 0 24 24"},(0,r.createElement)(i.Circle,{cx:"12",cy:"12",r:"5"}));t.Z=function(e){var t=e.title,n=e.isCompleted,u=e.isCurrent,c=e.isDisabled,d=e.onClick;return(0,r.createElement)(i.Button,{className:s()("nux-launch-menu__item",{"is-current":u,"is-completed":n}),onClick:d,disabled:c,isLink:!0},(0,r.createElement)(o.Z,{icon:n?a.Z:l,size:16}),(0,r.createElement)("span",null,t))}},9095:function(e,t,n){"use strict";var r=n(6470),i=n(3258),o=n(3027),a=n(3804),u=n.n(a),s=n(2779),l=n.n(s),c=n(5707),d=n(3163),f=n(7997),p=n(5869),m=n(1742),g=n(8565),h=n(6357),v=n(3357),y=n(849),b=n(8318),_=n(8398),S=n(2326),E=n(2526),__=(n(6879),d.__);t.Z=function(e){var t=e.onClose,n=e.isLaunchImmediately,a=u().useContext(h.Z).siteId,s=(0,c.useSelect)((function(e){return e(b.sC).getState()})),d=s.step,w=s.isSidebarFullscreen,A=u().useState(!1),x=(0,i.Z)(A,2),C=x[0],P=x[1],N=u().useState(!1),k=(0,i.Z)(N,2),I=k[0],O=k[1],Z=(0,c.useDispatch)(b.j4).launchSite,L=(0,c.useDispatch)("core/editor").savePost,M=(0,y.bU)(),T=(0,c.useDispatch)(b.sC).setPlanProductId,D=(0,c.useSelect)((function(e){return e(b.Fs).getDefaultFreePlan(M)})),F=u().useCallback((function(){Z(a),P(!0)}),[Z,P,a]);return u().useEffect((function(){n&&!C&&P(!0)}),[C,n]),u().useEffect((function(){var e=function(){var e=(0,r.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n&&!I&&null!=D&&D.productIds[0]&&(T(null==D?void 0:D.productIds[0]),O(!0),e(),F())}),[n,I,F,L,D,T]),(0,v.X)(),(0,o.createElement)(f.Modal,{open:!0,className:l()("nux-launch-modal","step-".concat(d),w?"is-sidebar-fullscreen":""),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},C?(0,o.createElement)("div",{className:"nux-launch-modal-body__launching"},__("Hooray! Your site will be ready shortly.","full-site-editing")):(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"nux-launch-modal-body"},(0,o.createElement)("div",{className:"nux-launch-modal-header"},(0,o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},(0,o.createElement)(p.Z,{icon:m.Z,size:36})),(0,o.createElement)(E.Z,null)),(0,o.createElement)(_.Z,{onSubmit:F})),(0,o.createElement)("div",{className:"nux-launch-modal-aside"},(0,o.createElement)(S.Z,null)),(0,o.createElement)(f.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":__("Close dialog","full-site-editing"),disabled:!t},(0,o.createElement)("span",null,(0,o.createElement)(p.Z,{icon:g.Z,size:24})))))}},2526:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(8675),u=n(8318);n(8560);t.Z=function(){var __=(0,a.useI18n)().__,e=(0,i.useSelect)((function(e){var t=e(u.sC);return{currentStep:t.getCurrentStep(),LaunchSequence:t.getLaunchSequence()}})),t=e.currentStep,n=e.LaunchSequence,s=n.indexOf(t)+1,l=n.length,c=(0,o.sprintf)(__("%1$d of %2$d","full-site-editing"),s,l);return(0,r.createElement)("div",{className:"nux-launch-progress"},c)}},2326:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(5707),a=n(5915),u=n(9211),s=n(6915),l=n(8318),__=(n(9658),i.__);t.Z=function(){var e=(0,o.useDispatch)(l.sC),t=e.setStep,n=e.unsetSidebarFullscreen,i=(0,o.useSelect)((function(e){return e(l.sC).getLaunchSequence()}));return(0,r.createElement)("div",{className:"nux-launch-sidebar"},(0,r.createElement)("div",{className:"nux-launch-sidebar__header"},(0,r.createElement)(a.b,null,__("You're almost there!","full-site-editing")),(0,r.createElement)(a.D,null,__("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing"))),(0,r.createElement)("div",{className:"nux-launch-sidebar__body"},(0,r.createElement)(s.Z,{onMenuItemClick:function(){n()}})),(0,r.createElement)("div",{className:"nux-launch-sidebar__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.aW,{onClick:function(){t(i[0]),n()}},__("Get Started","full-site-editing")))))}},381:function(e,t,n){"use strict";var r=n(3027);n(3804),n(7560);t.Z=function(e){var t=e.children;return(0,r.createElement)(r.Fragment,null,t)}},9270:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(8675),a=n(849),u=n(2999),s=n(3446),l=n(5915),c=n(9211),d=n(6115),f=n(381),p=n(8318),m=n(780),g=n(5144),h=n(6956),v=n(1157);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,y=(0,o.useI18n)(),__=y.__,b=y.hasTranslation,_=(0,a.bU)(),S=(0,m.my)(),E=S.onDomainSelect,w=S.onExistingSubdomainSelect,A=S.currentDomain,x=(0,g.j)().siteSubdomain,C=(0,h.f)(),P=C.domainSearch,N=C.setDomainSearch,k=(0,i.useDispatch)(p.sC).confirmDomainSelection,I=function(){k(),null==n||n()},O=__("Free for the first year with any paid plan.","full-site-editing"),Z=__("Free for the first year with any annual plan.","full-site-editing"),L="en"===_||null!=b&&b("Free for the first year with any annual plan.")?Z:O;return(0,r.createElement)(f.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(l.b,null,__("Choose a domain","full-site-editing")),(0,r.createElement)(l.D,null,L)),(0,r.createElement)(c.ZP,{sticky:!1},(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(u.ZP,{analyticsFlowId:v.OS,initialDomainSearch:P,onSetDomainSearch:N,onDomainSearchBlur:function(e){(0,d.jN)("calypso_newsite_domain_search_blur",{flow:v.OS,query:e,where:"editor_domain_modal"})},currentDomain:A||(0,s.nf)(null==x?void 0:x.domain),existingSubdomain:(0,s.nf)(null==x?void 0:x.domain),onDomainSelect:E,onExistingSubdomainSelect:w,analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0,locale:_})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(c.ZP,{sticky:!0},(0,r.createElement)(c.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(c.aW,{onClick:I,disabled:!P}))))}},4502:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(2779)),a=n.n(o),u=n(50),s=n(3163),l=n(5707),c=n(7997),d=n(5869),f=n(9806),p=n(4557),m=n(5144),g=n(8463),h=n(6956),v=n(849),y=n(7498),b=n(8675),_=n(5915),S=n(9211),E=n(7384),w=n(1806),A=n(7450),x=n(381),C=n(8318),P=(n(2272),(0,i.createElement)(d.Z,{icon:f.Z,size:17}));t.Z=function(e){var t=e.onNextStep,n=e.onPrevStep,o=(0,l.useSelect)((function(e){var t=e(C.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),isStepCompleted:t.isStepCompleted,isFlowCompleted:t.isFlowCompleted(),planProductId:t.getSelectedPlanProductId()}})),d=o.domain,f=o.LaunchStep,N=o.isStepCompleted,k=o.isFlowCompleted,I=o.planProductId,O=(0,b.useI18n)(),__=O.__,Z=O.hasTranslation,L=(0,v.bU)(),M=(0,l.useSelect)((function(e){return[e(C.Fs).getPlanByProductId(I,L),e(C.Fs).getPlanProductById(I)]})),T=(0,r.Z)(M,2),D=T[0],F=T[1],R=(0,p.Z)().title,$=(0,m.j)().siteSubdomain,j=(0,g.V)(),B=(0,h.f)().domainSearch,U=(0,l.useDispatch)(C.sC).setStep,G=(0,y.Iu)(),V=(0,i.createElement)("div",{className:"nux-launch__summary-item"},(0,i.createElement)("p",null,__("Site","full-site-editing"),": ",R)),H=(0,i.createElement)("div",{className:"nux-launch__summary-item"},null!=d&&d.domain_name?(0,i.createElement)("p",null,__("Custom domain","full-site-editing"),": ",d.domain_name,"MONTHLY"===(null==F?void 0:F.billingPeriod)&&(0,i.createElement)(i.Fragment,null,(0,i.createElement)("br",null),(0,i.createElement)("span",{className:"nux-launch__summary-item__domain-price"},__("Domain Registration","full-site-editing"),":"," ",(0,s.sprintf)(__("%s/year","full-site-editing"),d.cost)))):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",null,__("Free site address","full-site-editing"),": ",null==$?void 0:$.domain),(0,i.createElement)(c.Tip,null,B?(0,i.createInterpolateElement)(__("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:(0,i.createElement)("span",{className:a()("nux-launch__summary-item__domain-name",{"is-loading":!j})},(null==j?void 0:j.domain_name)||"loading-example.com"),Link:(0,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Domain)}})}):__("A custom site address is more unique and can help with your SEO ranking.","full-site-editing")))),z=__("billed annually","full-site-editing"),Y=__("per month, billed as %s annually","full-site-editing"),W="en"===L||null!=Z&&Z("per month, billed as %s annually")?(0,s.sprintf)(Y,null==F?void 0:F.annualPrice):z,q=__("per month, billed monthly","full-site-editing"),K=(0,i.createElement)("div",{className:"nux-launch__summary-item"},D&&F&&!D.isFree?(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",D.title),__("Plan subscription","full-site-editing"),": ",F.price," ","ANNUALLY"===F.billingPeriod?W:q):(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),(0,i.createElement)("p",null,__("Plan subscription: Free forever","full-site-editing")),(0,i.createElement)(c.Tip,null,(0,i.createInterpolateElement)((0,s.sprintf)(__("<Link>Upgrade to Premium</Link> to get access to 13GB storage space, payment collection options, 24/7 Live Chat support, and more. Not sure? Give it a spin—we offer %1$d-day full-refunds, guaranteed.","full-site-editing"),14),{Link:(0,i.createElement)(c.Button,{isLink:!0,onClick:function(){return U(f.Plan)}})}))));return(0,i.createElement)(x.Z,null,(0,i.createElement)("div",{className:"nux-launch-step__header"},(0,i.createElement)("div",null,(0,i.createElement)(_.b,null,__("Launch your site","full-site-editing")),(0,i.createElement)(_.D,null,__("Your site will be made public and ready to share with others.","full-site-editing")))),(0,i.createElement)("div",{className:"nux-launch-step__body"},(0,i.createElement)(u.f6,{theme:E.Z},(0,i.createElement)(w._U,null,N(f.Plan)&&(0,i.createElement)(w.Bb,null,(0,i.createElement)(w.nb,{className:"nux-launch__feature-list"},(0,i.createElement)("h3",{className:"nux-launch__feature-list-title"},__("Included in your plan","full-site-editing")),(0,i.createElement)("ul",{className:"nux-launch__feature-item-group"},null==D?void 0:D.features.filter((function(e){return"ANNUALLY"===(null==F?void 0:F.billingPeriod)||!e.requiresAnnuallyBilledPlan})).map((function(e,t){return(0,i.createElement)("li",{key:t,className:"nux-launch__feature-item"},P," ",e.name)}))),(0,i.createElement)("p",null,__("Questions?","full-site-editing")," ",(0,i.createElement)(c.Button,{isLink:!0,href:G("https://wordpress.com/help/contact",L),target:"_blank",rel:"noopener noreferrer"},__("Ask a Happiness Engineer","full-site-editing"))))),(0,i.createElement)(w.r8,null,(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your site name","full-site-editing"),isStepComplete:N(f.Name),goToThisStep:function(){return U(f.Name)},completeStepContent:V,stepId:"name",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your domain","full-site-editing"),isStepComplete:N(f.Domain),goToThisStep:function(){return U(f.Domain)},completeStepContent:H,stepId:"domain",formStatus:A.PX.READY}),(0,i.createElement)(w.V9,{isStepActive:!1,titleContent:__("Your plan","full-site-editing"),isStepComplete:N(f.Plan),goToThisStep:function(){return U(f.Plan)},completeStepContent:K,stepId:"plan",formStatus:A.PX.READY}),(0,i.createElement)(w.ds,null,(0,i.createElement)(c.Button,{isPrimary:!0,disabled:!k,onClick:t,className:"nux-launch__submit-button"},__("Launch your site","full-site-editing"))))))),(0,i.createElement)("div",{className:"nux-launch-step__footer"},(0,i.createElement)(S.ZP,{sticky:!0},(0,i.createElement)(S.xE,{onClick:function(){null==n||n()}}))))}},958:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(3163)),o=n(7997),a=n(5915),u=n(9211),s=n(381),l=n(4557),__=(n(5444),i.__);t.Z=function(e){var t=e.onPrevStep,n=e.onNextStep,i=(0,l.Z)(),c=i.title,d=i.updateTitle,f=function(){null==n||n()};return(0,r.createElement)(s.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(a.b,null,__("Name your site","full-site-editing")),(0,r.createElement)(a.D,null,__("Pick a name for your site.","full-site-editing"))),(0,r.createElement)(u.ZP,{sticky:!1},(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)("form",{onSubmit:f},(0,r.createElement)(o.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:d,value:c||"",spellCheck:!1,autoComplete:"off",placeholder:__("Enter site name","full-site-editing"),autoCorrect:"off"}),(0,r.createElement)("div",{className:"nux-launch-step__input-hint"},(0,r.createElement)(o.Tip,{size:18}),(0,r.createElement)("span",null,__("Don't worry, you can change it later.","full-site-editing"))))),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(u.ZP,{sticky:!0},(0,r.createElement)(u.xE,{onClick:function(){null==t||t()}}),(0,r.createElement)(u.aW,{onClick:f,disabled:!(null!=c&&c.trim())}))))}},4524:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(5707)),o=n(3163),a=n(5315),u=n(5915),s=n(9211),l=n(3073),c=n(381),d=n(8318),__=(n(12),o.__);t.Z=function(e){var t,n=e.onPrevStep,f=e.onNextStep,p=(0,i.useSelect)((function(e){var t=e(d.sC);return{domain:t.getSelectedDomain(),LaunchStep:t.getLaunchStep(),selectedPlanProductId:t.getSelectedPlanProductId()}})),m=p.domain,g=p.LaunchStep,h=p.selectedPlanProductId,v=(0,i.useDispatch)(d.sC),y=v.setPlanProductId,b=v.setStep,_=(0,l.W)().selectedFeatures,S=m&&!m.is_free;return(0,r.createElement)(c.Z,null,(0,r.createElement)("div",{className:"nux-launch-step__header"},(0,r.createElement)("div",null,(0,r.createElement)(u.b,null,__("Select a plan","full-site-editing")),(0,r.createElement)(u.D,null,(0,o.sprintf)(__("Pick a plan that’s right for you. Switch plans as your needs change. There’s no risk, you can cancel for a full refund within %1$d days.","full-site-editing"),14)))),(0,r.createElement)("div",{className:"nux-launch-step__body"},(0,r.createElement)(a.Z,{currentPlanProductId:h,currentDomain:m,onPlanSelect:function(e){y(e),null==f||f()},onPickDomainClick:function(){b(g.Domain)},disabledPlans:S?{free:__("Unavailable with domain","full-site-editing")}:void 0,isAccordion:!0,selectedFeatures:_,locale:(null===(t=window.wpcomEditorSiteLaunch)||void 0===t?void 0:t.locale)||"en"})),(0,r.createElement)("div",{className:"nux-launch-step__footer"},(0,r.createElement)(s.ZP,{sticky:!0},(0,r.createElement)(s.xE,{onClick:function(){null==n||n()}}))))}},8398:function(e,t,n){"use strict";var r=n(1119),i=n(3027),o=n(3804),a=n.n(o),u=n(5707),s=n(958),l=n(9270),c=n(4524),d=n(4502),f=n(8318);n(6020);t.Z=function(e){var t,n=e.onSubmit,o=(0,u.useSelect)((function(e){return e(f.sC).getState()})).step,p=(0,u.useSelect)((function(e){return e(f.sC).getLaunchStep()})),m=(0,u.useSelect)((function(e){return e(f.sC).getLaunchSequence()})),g=(0,u.useSelect)((function(e){return e(f.sC).getFirstIncompleteStep()})),h=(0,u.useDispatch)(f.sC),v=h.setStep,y=h.setSidebarFullscreen,b=h.unsetSidebarFullscreen,_=(t={},(0,r.Z)(t,p.Name,s.Z),(0,r.Z)(t,p.Domain,l.Z),(0,r.Z)(t,p.Plan,c.Z),(0,r.Z)(t,p.Final,d.Z),t),S=m.indexOf(o),E=_[o];return a().useEffect((function(){g&&g!==p.Name&&v(g)}),[]),(0,i.createElement)(E,{onPrevStep:function(){var e=S-1;e<0&&(e=0,y()),v(m[e])},onNextStep:function(){var e=S+1;e>m.length-1&&(null==n||n()),b(),v(m[e])}})}},8318:function(e,t,n){"use strict";n.d(t,{j4:function(){return r},sC:function(){return i},Fs:function(){return o}});n(8681);var r="automattic/site",i="automattic/launch",o="automattic/onboard/plans"},8550:function(e,t,n){"use strict";n.d(t,{O0:function(){return s},gQ:function(){return l},Rd:function(){return c}});var r=n(9394),i=n(1119),o=n(5799),a=n(791),u=n(1157),s=function(){var e,t,n;return null!==(e=null===(t=window)||void 0===t||null===(n=t.calypsoifyGutenberg)||void 0===n?void 0:n.currentCalypsoUrl)&&void 0!==e?e:window.location.href},l=function(e){var t="https://wordpress.com";try{var n,r;t=new URL((null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.currentCalypsoUrl)||"").origin}catch(o){}var i=e.startsWith("/")?e:"/".concat(e);!function(e){window.top.location.href=e}("".concat(t).concat(i))},c=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window._currentSiteId.toString(),c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2?arguments[2]:void 0,f="a8c.wpcom-block-editor.openCheckoutModal",p=(null===(e=window)||void 0===e||null===(t=e.wpcomEditorSiteLaunch)||void 0===t?void 0:t.launchFlow)===u.Js,m=s().split("?")[0];if((0,o.hasAction)(f)&&p&&!c)(0,o.doAction)(f,{checkoutOnSuccessCallback:d,isFocusedLaunch:!0,redirectTo:(0,a.addQueryArgs)(m,(0,i.Z)({},u.nU,!0))});else{var g=(0,a.addQueryArgs)("/checkout/".concat(n),(0,r.Z)({},!c&&{redirect_to:"/home/".concat(n)}));l(g)}}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN},Sn:function(){return i.Sn},Lo:function(){return i.Lo},k9:function(){return i.k9}});n(1694),n(6209),n(9377);var r=n(9792),i=n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(1205),a=(n(3421),n(382)),u=n(4898),s=(n(6209),n(1694),n(9377),n(9358)),l=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];Promise.resolve();function c(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,u.ve)("//stats.wp.com/w.js?63");var d=new a.EventEmitter;function f(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(l,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,o.omitBy)(t,(function(e){return void 0===e})),(0,s.Z)('Recording event "%s" with actual props %o',e,t),c(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n.d(t,{Sn:function(){return o},Lo:function(){return a},k9:function(){return u}});var r=n(8767),i=n(9792);function o(e){var t=e.railcarId,n=e.uiAlgo,r=e.uiPosition,o=e.fetchAlgo,a=e.result,u=e.query;(0,i.jN)("calypso_traintracks_render",{railcar:t,ui_algo:n,ui_position:r,fetch_algo:o,rec_result:a,fetch_query:u})}function a(e){var t=e.railcarId,n=e.action;(0,i.jN)("calypso_traintracks_interact",{railcar:t,action:n})}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"recommendation";return"".concat((0,r.Z)().replace(/-/g,""),"-").concat(e)}},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},4790:function(e,t,n){"use strict";var r,i=n(2389),o=n(1766),a=n(4530),u=n(4059),s=n(3027),l=(n(3804),n(6654)),c=(0,n(5393).Z)("button")(r||(r=(0,u.Z)(["\n\tdisplay: block;\n\twidth: ",";\n\tfont-size: 16px;\n\tborder-radius: ",";\n\tpadding: ",";\n\tborder: ",";\n\tbackground: ",";\n\tcolor: ",";\n\tfont-weight: ",";\n\ttext-decoration: ",";\n\n\t:hover {\n\t\tbackground: ",";\n\t\tborder-color: ",";\n\t\ttext-decoration: none;\n\t\tcolor: ",";\n\t\tcursor: ",";\n\t}\n\n\t:active {\n\t\tbackground: ",";\n\t\ttext-decoration: ",";\n\t\tcolor: ",";\n\t}\n\n\tsvg {\n\t\tmargin-bottom: -1px;\n\t\ttransform: translateY( 2px );\n\t\tfilter: ",";\n\t\topacity: ",";\n\t}\n\n\t&.is-busy {\n\t\tanimation: components-button__busy-animation 2500ms infinite linear;\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t"," 28%,\n\t\t\t"," 28%,\n\t\t\t"," 72%,\n\t\t\t"," 72%\n\t\t);\n\t\tbackground-size: 200px 100%;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"])),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return"paypal"===e.buttonType?"50px":"2px"}),(function(e){return"text-button"===e.buttonType?"0":"10px 15px"}),(function(e){return!e.buttonType||e.disabled?"1px solid "+e.theme.colors.borderColor:"0"}),p,f,(function(e){return e.theme.weights.normal}),g,d,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),f,(function(e){return e.disabled?"not-allowed":"pointer"}),d,g,f,(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"}),p,m,m,p);function d(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 f(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 p(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 m(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 g(e){return"text-button"===e.buttonType?"underline":"none"}t.Z=function(e){var t=e.className,n=e.buttonType,r=e.isBusy,u=e.children,d=e.fullWidth,f=(0,a.Z)(e,["className","buttonType","isBusy","children","fullWidth"]),p=(0,l.Z)(["checkout-button"].concat((0,o.Z)(n?["is-status-"+n]:[]),(0,o.Z)(r?["is-busy"]:[]),(0,o.Z)(t?[t]:[])));return(0,s.createElement)(c,(0,i.Z)({fullWidth:d,buttonType:n,className:p},f),u)}},3246:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(4059),d=n(3027),f=n(8049),p=n.n(f),m=n(3804),g=n.n(m),h=n(5393),v=p()("composite-checkout:checkout-error-boundary"),y=h.Z.div(r||(r=(0,c.Z)(["\n\tmargin: 2em;\n\ttext-align: center;\n"]))),b=function(e){(0,u.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e),(0,l.Z)((0,a.Z)(r),"state",{hasError:!1}),r}return(0,o.Z)(n,[{key:"componentDidCatch",value:function(e,t){if(this.props.onError){var n="".concat(e.message,"; Stack: ").concat(e.stack,"; Component Stack: ").concat(t.componentStack);v("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?(0,d.createElement)(_,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),n}(g().Component);function _(e){var t=e.errorMessage;return(0,d.createElement)(y,null,t)}},7984:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=(n(3804),n(4790));t.Z=function(e){var t=e.value,n=e.onClick,u=e.ariaLabel,s=(0,i.Z)(e,["value","onClick","ariaLabel"]);return(0,o.createElement)(a.Z,(0,r.Z)({onClick:n,buttonType:"primary","aria-label":u},s),t)}},1806:function(e,t,n){"use strict";n.d(t,{_U:function(){return L},Bb:function(){return T},nb:function(){return D},r8:function(){return F},ds:function(){return R},V9:function(){return U}});var r,i,o,a,u,s,l,c,d,f,p,m,g,h,v,y,b=n(4059),_=n(3027),S=n(8675),E=n(8049),w=n.n(E),A=n(3980),x=n.n(A),C=(n(3804),n(6654)),P=n(5393),N=n(7450),k=n(4790),I=n(3246),O=n(7984),Z=n(5197),L=(w()("composite-checkout:checkout"),P.Z.div(r||(r=(0,b.Z)(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"])),(function(e){return e.theme.colors.outline})),P.Z.div(i||(i=(0,b.Z)(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp}))),M=P.Z.div(o||(o=(0,b.Z)(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),T=function(e){var t=e.children,n=e.className;return(0,_.createElement)(M,{className:(0,C.Z)([n,"checkout__summary-area"])},t)},D=P.Z.div(a||(a=(0,b.Z)(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.desktopUp}),(function(e){return e.theme.colors.borderColorLight}));var F=P.Z.div(u||(u=(0,b.Z)(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"])),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.smallPhoneUp}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),R=P.Z.div(s||(s=(0,b.Z)(["\n\tbackground: ",";\n\tpadding: 24px;\n\tbottom: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tz-index: 10;\n\tborder-top-width: 0;\n\tborder-top-style: solid;\n\tborder-top-color: ",";\n\n\t.checkout__step-wrapper--last-step & {\n\t\tborder-top-width: 1px;\n\t\tposition: fixed;\n\t}\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t.checkout-button {\n\t\twidth: calc( 100% - 60px );\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout-button {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\t\t}\n\t}\n"])),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var $=P.Z.div(l||(l=(0,b.Z)(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"])),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp})),j=P.Z.div(c||(c=(0,b.Z)(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),B=P.Z.div(d||(d=(0,b.Z)(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"])),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function U(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,i=e.nextStepButtonText,o=e.validatingButtonText,a=e.nextStepButtonAriaLabel,u=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,c=e.className,d=e.stepNumber,f=e.stepId,p=e.titleContent,m=e.goToThisStep,g=e.goToNextStep,h=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,b=e.onError,__=(0,S.useI18n)().__,E="".concat(f,s?"--visible":"--invisible"),w="".concat(f,s?"--invisible":"--visible");return(0,_.createElement)(I.Z,{errorMessage:t||__("There was an error with this step."),onError:b},(0,_.createElement)($,{className:c},(0,_.createElement)(z,{id:f,stepNumber:d,title:p,isActive:s,isComplete:l,onEdit:v===N.PX.READY&&l&&m&&!s?m:void 0,editButtonText:n||__("Edit"),editButtonAriaLabel:r||__("Edit this step")}),(0,_.createElement)(j,{"data-testid":E,isVisible:s,className:"checkout-steps__step-content"},h,g&&s&&(0,_.createElement)(O.Z,{onClick:g,value:v===N.PX.VALIDATING?o||__("Please wait…"):i||__("Continue"),ariaLabel:v===N.PX.VALIDATING?u||__("Please wait…"):a||__("Continue to next step"),buttonType:"primary",disabled:v!==N.PX.READY,isBusy:v===N.PX.VALIDATING})),l&&y?(0,_.createElement)(B,{"data-testid":w,isVisible:!s,className:"checkout-steps__step-complete-content"},y):null))}U.propTypes={errorMessage:x().string,onError:x().func,editButtonAriaLabel:x().string,editButtonText:x().string,nextStepButtonText:x().string,nextStepButtonAriaLabel:x().string,isStepActive:x().bool.isRequired,isStepComplete:x().bool.isRequired,className:x().string,stepNumber:x().number,stepId:x().string.isRequired,titleContent:x().node.isRequired,goToThisStep:x().func,goToNextStep:x().func,activeStepContent:x().node,formStatus:x().string,completeStepContent:x().node,validatingButtonText:x().string,validatingButtonAriaLabel:x().string};var G=P.Z.span(f||(f=(0,b.Z)(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: 1;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"])),(function(e){return e.isActive?e.theme.colors.textColorDark:e.theme.colors.textColor}),(function(e){return e.isActive?e.theme.weights.bold:e.theme.weights.normal}),(function(e){return e.fullWidth?"0":"8px"}),(function(e){return e.fullWidth?"0":"8px"})),V=P.Z.h2(p||(p=(0,b.Z)(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"])),(function(e){return e.isComplete||e.isActive?"8px":"0"})),H=(0,P.Z)(k.Z)(m||(m=(0,b.Z)(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"])));function z(e){var t=e.id,n=e.className,r=e.stepNumber,i=e.title,o=e.isActive,a=e.isComplete,u=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,__=(0,S.useI18n)().__,c=!!u;return(0,_.createElement)(V,{isComplete:a,isActive:o,className:(0,C.Z)([n,"checkout-step__header"])},(0,_.createElement)(X,{isComplete:a,isActive:o,id:t},r||null),(0,_.createElement)(G,{fullWidth:!c,isActive:o},i),c&&(0,_.createElement)(H,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:u,"aria-label":l||__("Edit this step")},s||__("Edit")))}var Y=P.Z.div(g||(g=(0,b.Z)(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]))),W=P.Z.div(h||(h=(0,b.Z)(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"])),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),q=P.Z.div(v||(v=(0,b.Z)(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"])),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(n)return r.colors.highlight;if(t)return r.colors.success;return r.colors.upcomingStepBackground}),(function(e){var t=e.isComplete,n=e.isActive,r=e.theme;if(t||n)return r.colors.surface;return r.colors.textColor}),(function(e){return e.isComplete?"0":"1"})),K=(0,P.Z)(q)(y||(y=(0,b.Z)(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"])),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"}));function X(e){var t=e.isComplete,n=e.isActive,r=e.className,i=e.children,o=e.id,a=!n&&t;return(0,_.createElement)(Y,{className:(0,C.Z)([r,"checkout-step__stepper"])},(0,_.createElement)(W,{isComplete:a},(0,_.createElement)(q,{isComplete:a,isActive:n},i),(0,_.createElement)(K,null,(0,_.createElement)(Z.nQ,{id:o}))))}z.propTypes={id:x().string,className:x().string,stepNumber:x().number,title:x().node.isRequired,isActive:x().bool,isComplete:x().bool,editButtonText:x().string,editButtonAriaLabel:x().string,onEdit:x().func},X.propTypes={id:x().string,className:x().string,isComplete:x().bool,isActive:x().bool}},5197:function(e,t,n){"use strict";n.d(t,{nQ:function(){return l}});var r,i=n(4059),o=n(3027),a=n(3980),u=n.n(a),s=(n(3804),n(5393));function l(e){var t=e.className,n=e.id;return(0,o.createElement)(c,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},(0,o.createElement)("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},(0,o.createElement)("path",{d:"M7.32916 13.2292L3.85416 9.75417L2.67083 10.9292L7.32916 15.5875L17.3292 5.58751L16.1542 4.41251L7.32916 13.2292Z"})),(0,o.createElement)("g",{mask:"url(#"+n+"-check-icon-mask)"},(0,o.createElement)("rect",{width:"20",height:"20"})))}l.propTypes={className:u().string,id:u().string};var c=s.Z.svg(r||(r=(0,i.Z)(["\n\tfill: #fff;\n"])))},6654:function(e,t,n){"use strict";function r(e){return e.filter((function(e){return e})).join(" ")}n.d(t,{Z:function(){return r}})},5393:function(e,t,n){"use strict";var r=n(6648);t.Z=r.Z},5777:function(e,t,n){"use strict";n.d(t,{I:function(){return r}});var r={wordpressBlue5:"#BEDAE6",wordpressBlue40:"#187AA2",wordpressBlue50:"#006088",wordpressBlue60:"#004E6E",wordpressBlue80:"#002C40",blue5:"#BBE0FA",blue30:"#399CE3",blue40:"#1689DB",blue50:"#0675C4",blue60:"#055D9C",blue80:"#02395C",gray0:"#F6F7F7",gray5:"#DCDCDE",gray10:"#C3C4C7",gray20:"#A7AAAD",gray30:"#8E9196",gray50:"#646970",gray80:"#2C3338",pink50:"#C9356E",pink60:"#AB235A",pink80:"#700F3B",green50:"#008A20",red50:"#D63638",red0:"#F7EBEC",white:"#FFF",black:"#000"}},7384:function(e,t,n){"use strict";var r=n(5777),i={colors:{background:r.I.gray0,surface:r.I.white,primary:r.I.pink50,primaryBorder:r.I.pink80,primaryOver:r.I.pink60,highlight:r.I.blue50,highlightBorder:r.I.blue80,highlightOver:r.I.blue60,success:r.I.green50,discount:r.I.green50,disabledPaymentButtons:r.I.gray0,disabledPaymentButtonsAccent:r.I.gray5,disabledButtons:r.I.gray20,borderColor:r.I.gray10,borderColorLight:r.I.gray5,borderColorDark:r.I.gray50,upcomingStepBackground:r.I.gray5,textColor:r.I.gray80,textColorLight:r.I.gray50,textColorDark:r.I.black,error:r.I.red50,warningBackground:r.I.red0,outline:r.I.blue30,applePayButtonColor:r.I.black,applePayButtonRollOverColor:r.I.gray80,noticeBackground:r.I.gray80,defaultNoticeIconBackground:r.I.gray30,textColorOnDarkBackground:r.I.white,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:r.I.gray0,placeHolderTextColor:r.I.gray30},breakpoints:{desktopUp:"min-width: 960px",tabletUp:"min-width: 700px",bigPhoneUp:"min-width: 480px",smallPhoneUp:"min-width: 400px"},weights:{bold:"600",normal:"400"},fonts:{body:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif'},fontSize:{small:"14px"}};t.Z=i},7450:function(e,t,n){"use strict";var r,i,o;n.d(t,{PX:function(){return r}}),function(e){e.LOADING="loading",e.READY="ready",e.SUBMITTING="submitting",e.VALIDATING="validating",e.COMPLETE="complete"}(r||(r={})),function(e){e.SUCCESS="SUCCESS",e.REDIRECT="REDIRECT",e.MANUAL="MANUAL",e.ERROR="ERROR"}(i||(i={})),function(e){e.NOT_STARTED="not-started",e.PENDING="pending",e.COMPLETE="complete",e.REDIRECTING="redirecting",e.ERROR="error"}(o||(o={}))},3600:function(e,t,n){"use strict";n.r(t),n.d(t,{receiveCategories:function(){return r},fetchDomainSuggestions:function(){return i},receiveDomainAvailability:function(){return o},receiveDomainSuggestionsSuccess:function(){return a},receiveDomainSuggestionsError:function(){return u}});var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},i=function(){return{type:"FETCH_DOMAIN_SUGGESTIONS",timeStamp:Date.now()}},o=function(e,t){return{type:"RECEIVE_DOMAIN_AVAILABILITY",domainName:e,availability:t}},a=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS",queryObject:e,suggestions:t,timeStamp:Date.now()}},u=function(e){return{type:"RECEIVE_DOMAIN_SUGGESTIONS_ERROR",errorMessage:e,timeStamp:Date.now()}}},584:function(e,t,n){"use strict";n.d(t,{L:function(){return i},r:function(){return r}});var r,i="automattic/domains/suggestions";!function(e){e.Failure="failure",e.Pending="pending",e.Success="success",e.Uninitialized="uninitialized"}(r||(r={}))},8077:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(3661),o=n(3600),a=n(584),u=n(3717),s=n(2269),l=n(267),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.L,{actions:o,controls:i.ai,reducer:u.Z,resolvers:s,selectors:l})),a.L}},3717:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=n(584),u=n(4211),s={state:a.r.Uninitialized,data:{},errorMessage:null,lastUpdated:-1/0,pendingSince:void 0},l=(0,o.combineReducers)({categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CATEGORIES"===t.type?t.categories:e},domainSuggestions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=arguments.length>1?arguments[1]:void 0;return"FETCH_DOMAIN_SUGGESTIONS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Pending,errorMessage:null,pendingSince:t.timeStamp}):"RECEIVE_DOMAIN_SUGGESTIONS_SUCCESS"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Success,data:(0,i.Z)((0,i.Z)({},e.data),{},(0,r.Z)({},(0,u.Le)(t.queryObject),t.suggestions)),errorMessage:null,lastUpdated:t.timeStamp,pendingSince:void 0}):"RECEIVE_DOMAIN_SUGGESTIONS_ERROR"===t.type?(0,i.Z)((0,i.Z)({},e),{},{state:a.r.Failure,errorMessage:t.errorMessage,lastUpdated:t.timeStamp,pendingSince:void 0}):e},availability:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_DOMAIN_AVAILABILITY"===t.type?(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.domainName,t.availability)):e}});t.Z=l},2269:function(e,t,n){"use strict";n.r(t),n.d(t,{isAvailable:function(){return g},getCategories:function(){return h},__internalGetDomainSuggestions:function(){return v}});var r=n(9394),i=n(1481),o=n(9126),a=n(6468),u=n.n(a),s=n(3661),l=n(3600),c=n(4211),d=regeneratorRuntime.mark(h),f=regeneratorRuntime.mark(v);function p(e){return"https://public-api.wordpress.com/rest/v1.3/domains/".concat(encodeURIComponent(e),"/is-available?is_cart_pre_check=true")}function m(e,t){return u().isFQDN(t)&&!e.some((function(e){return e.domain_name.toLowerCase()===t}))}var g=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p(t),e.prev=1,e.next=4,(0,s.An)(n);case 4:return r=e.sent,i=r.body,e.abrupt("return",(0,l.receiveDomainAvailability)(t,i));case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",(0,l.receiveDomainAvailability)(t,{domain_name:t,mappable:"unknown",status:"unknown",supports_privacy:!1}));case 12:case"end":return e.stop()}}),e,null,[[1,9]])}));function h(){var e,t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,s.An)("https://public-api.wordpress.com/wpcom/v2/onboarding/domains/categories");case 2:return e=n.sent,t=e.body,n.abrupt("return",(0,l.receiveCategories)(t));case 5:case"end":return n.stop()}}),d)}function v(e){var t,n,a;return regeneratorRuntime.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(e.query){u.next=2;break}return u.abrupt("return",(0,l.receiveDomainSuggestionsError)("Empty query"));case 2:return u.next=4,(0,l.fetchDomainSuggestions)();case 4:return u.prev=4,u.next=7,(0,s._9)({apiVersion:"1.1",path:"/domains/suggestions",query:(0,o.stringify)(e)});case 7:if(t=u.sent,Array.isArray(t)){u.next=10;break}return u.abrupt("return",(0,l.receiveDomainSuggestionsError)((0,i.Iu)("Invalid response from the server")));case 10:return m(t,e.query)&&(n={domain_name:e.query,unavailable:!0,cost:"",raw_price:0,currency_code:""},t.unshift(n)),a=t.map((function(e){return e.unavailable?e:(0,r.Z)((0,r.Z)({},e),e.raw_price&&e.currency_code&&{cost:(0,c._B)(e.raw_price,e.currency_code)})})),u.abrupt("return",(0,l.receiveDomainSuggestionsSuccess)(e,a));case 15:return u.prev=15,u.t0=u.catch(4),u.abrupt("return",(0,l.receiveDomainSuggestionsError)(u.t0.message||(0,i.Iu)("Error while fetching server response")));case 18:case"end":return u.stop()}}),f,null,[[4,15]])}},267:function(e,t,n){"use strict";n.r(t),n.d(t,{getCategories:function(){return u},getDomainSuggestions:function(){return s},getDomainState:function(){return l},getDomainErrorMessage:function(){return c},isLoadingDomainSuggestions:function(){return d},__internalGetDomainSuggestions:function(){return f},isAvailable:function(){return p},getDomainAvailabilities:function(){return m}});var r=n(1766),i=n(5707),o=n(584),a=n(4211),u=function(e){return[].concat((0,r.Z)(e.categories.filter((function(e){return null!==e.tier})).sort((function(e,t){return e>t?1:-1}))),(0,r.Z)(e.categories.filter((function(e){return null===e.tier})).sort((function(e,t){return e.title.localeCompare(t.title)}))))},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)(o.L).__internalGetDomainSuggestions(r)},l=function(e){return e.domainSuggestions.state},c=function(e){return e.domainSuggestions.errorMessage},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,a.o0)(t,n);return(0,i.select)("core/data").isResolving(o.L,"__internalGetDomainSuggestions",[r])},f=function(e,t){return e.domainSuggestions.data[(0,a.Le)(t)]},p=function(e,t){return e.availability[t]},m=function(e){return e.availability}},4211:function(e,t,n){"use strict";n.d(t,{Le:function(){return a},_B:function(){return u},o0:function(){return s}});var r=n(9394),i=n(1621),o=n(5695),a=n.n(o)();function u(e,t){return(0,i.ZP)(e,t,{stripZeros:!0})}function s(e,t){return(0,r.Z)((0,r.Z)({include_wordpressdotcom:t.only_wordpressdotcom||!1,include_dotblogsubdomain:!1,only_wordpressdotcom:!1,quantity:5,vendor:"variation2_front"},t),{},{query:e.trim().toLocaleLowerCase()})}},6108:function(e,t,n){"use strict";n.r(t),n.d(t,{setSidebarFullscreen:function(){return o},unsetSidebarFullscreen:function(){return a},setStep:function(){return u},setSiteTitle:function(){return s},setDomain:function(){return l},unsetDomain:function(){return c},confirmDomainSelection:function(){return d},setDomainSearch:function(){return f},setPlanProductId:function(){return m},unsetPlanProductId:function(){return g},updatePlan:function(){return h},openSidebar:function(){return v},closeSidebar:function(){return y},openFocusedLaunch:function(){return b},closeFocusedLaunch:function(){return _},enableAnchorFm:function(){return S},showSiteTitleStep:function(){return E},setModalDismissible:function(){return w},unsetModalDismissible:function(){return A},showModalTitle:function(){return x},hideModalTitle:function(){return C},enablePersistentSuccessView:function(){return P},disablePersistentSuccessView:function(){return N}});var r=n(5707),i=n(9149),o=function(){return{type:"SET_SIDEBAR_FULLSCREEN"}},a=function(){return{type:"UNSET_SIDEBAR_FULLSCREEN"}},u=function(e){return{type:"SET_STEP",step:e}},s=function(e){return{type:"SET_SITE_TITLE",title:e}},l=function(e){return{type:"SET_DOMAIN",domain:e}},c=function(){return{type:"UNSET_DOMAIN"}},d=function(){return{type:"CONFIRM_DOMAIN_SELECTION"}},f=function(e){return{type:"SET_DOMAIN_SEARCH",domainSearch:e}},p=function(e){return{type:"SET_PLAN_BILLING_PERIOD",billingPeriod:e}},m=regeneratorRuntime.mark((function e(t){var n,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,r.select)(i.Fs).isPlanProductFree(t)){e.next=6;break}return o=(0,r.select)(i.Fs).getPlanProductById(t),a=null!==(n=null==o?void 0:o.billingPeriod)&&void 0!==n?n:"ANNUALLY",e.next=6,p(a);case 6:return e.abrupt("return",{type:"SET_PLAN_PRODUCT_ID",planProductId:t});case 7:case"end":return e.stop()}}),e)})),g=function(){return{type:"UNSET_PLAN_PRODUCT_ID"}};function h(e){return m(e)}var v=function(){return{type:"OPEN_SIDEBAR"}},y=function(){return{type:"CLOSE_SIDEBAR"}},b=function(){return{type:"OPEN_FOCUSED_LAUNCH"}},_=function(){return{type:"CLOSE_FOCUSED_LAUNCH"}},S=function(){return{type:"ENABLE_ANCHOR_FM"}},E=function(){return{type:"SHOW_SITE_TITLE_STEP"}},w=function(){return{type:"SET_MODAL_DISMISSIBLE"}},A=function(){return{type:"UNSET_MODAL_DISMISSIBLE"}},x=function(){return{type:"SHOW_MODAL_TITLE"}},C=function(){return{type:"HIDE_MODAL_TITLE"}},P=function(){return{type:"ENABLE_SUCCESS_VIEW"}},N=function(){return{type:"DISABLE_SUCCESS_VIEW"}}},9149:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Fs:function(){return i}});var r="automattic/launch",i="automattic/onboard/plans"},3610:function(e,t,n){"use strict";n.d(t,{y:function(){return r},M:function(){return i}});var r={Name:"name",Domain:"domain",Plan:"plan",Final:"final"},i=[r.Name,r.Domain,r.Plan,r.Final]},1635:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var r=n(5707),i=n(9866),o=n(6108),a=n(9149),u=n(594),s=n(4648),l=n(7092);(0,r.use)(r.plugins.persistence,u.Z);var c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{actions:o,controls:i.controls,reducer:s.Z,selectors:l,persist:["domain","domainSearch","planProductId","planBillingPeriod","confirmedDomainSelection","isAnchorFm","isSiteTitleStepVisible","siteTitle"]})),a.Ls}},594:function(e,t,n){"use strict";var r=n(492);t.Z=(0,r.Z)("WP_LAUNCH")},4648:function(e,t,n){"use strict";var r=n(5707),i=n(3610),o=(0,r.combineReducers)({step:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.y.Name,t=arguments.length>1?arguments[1]:void 0;return"SET_STEP"===t.type?t.step:e},siteTitle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;return"SET_SITE_TITLE"===t.type?t.title:e},domain:function(e,t){return"SET_DOMAIN"===t.type?t.domain:"UNSET_DOMAIN"!==t.type?e:void 0},confirmedDomainSelection:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"CONFIRM_DOMAIN_SELECTION"===t.type||e},domainSearch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"SET_DOMAIN_SEARCH"===t.type?t.domainSearch:e},planBillingPeriod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ANNUALLY",t=arguments.length>1?arguments[1]:void 0;return"SET_PLAN_BILLING_PERIOD"===t.type?t.billingPeriod:e},planProductId:function(e,t){return"SET_PLAN_PRODUCT_ID"===t.type?t.planProductId:"UNSET_PLAN_PRODUCT_ID"!==t.type?e:void 0},isSidebarOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_SIDEBAR"===t.type||"CLOSE_SIDEBAR"!==t.type&&e},isSidebarFullscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_SIDEBAR_FULLSCREEN"===t.type||"UNSET_SIDEBAR_FULLSCREEN"!==t.type&&e},isAnchorFm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"ENABLE_ANCHOR_FM"===t.type||e},isFocusedLaunchOpen:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"OPEN_FOCUSED_LAUNCH"===t.type||"CLOSE_FOCUSED_LAUNCH"!==t.type&&e},isSiteTitleStepVisible:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_SITE_TITLE_STEP"===t.type||e},isModalDismissible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SET_MODAL_DISMISSIBLE"===t.type||"UNSET_MODAL_DISMISSIBLE"!==t.type&&e},isModalTitleVisible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;return"SHOW_MODAL_TITLE"===t.type||"HIDE_MODAL_TITLE"!==t.type&&e}});t.Z=o},7092:function(e,t,n){"use strict";n.r(t),n.d(t,{getLaunchSequence:function(){return a},getLaunchStep:function(){return u},getState:function(){return s},hasPaidDomain:function(){return l},getSelectedDomain:function(){return c},getSelectedPlanProductId:function(){return d},getLastPlanBillingPeriod:function(){return f},isSelectedPlanPaid:function(){return p},hasSelectedDomainOrSubdomain:function(){return m},isStepCompleted:function(){return g},isFlowCompleted:function(){return h},isFlowStarted:function(){return v},getFirstIncompleteStep:function(){return y},getSiteTitle:function(){return b},getCurrentStep:function(){return _},getDomainSearch:function(){return S}});var r=n(5707),i=n(9149),o=n(3610),a=function(){return o.M},u=function(){return o.y},s=function(e){return e},l=function(e){return!!e.domain&&!e.domain.is_free},c=function(e){return e.domain},d=function(e){return e.planProductId},f=function(e){return e.planBillingPeriod},p=function(e){return void 0!==e.planProductId&&!(0,r.select)(i.Fs).isPlanProductFree(e.planProductId)},m=function(e){return!!c(e)||e.confirmedDomainSelection},g=function(e,t){if(t===o.y.Plan)return!!d(e);if(t===o.y.Name){var n=(0,r.select)("core").getEntityRecord("root","site",void 0);return!(null==n||!n.title)}return t===o.y.Domain&&(0,r.select)(i.Ls).hasSelectedDomainOrSubdomain()},h=function(e){return o.M.slice(0,o.M.length-1).every((function(t){return g(e,t)}))},v=function(e){return o.M.some((function(t){return g(e,t)}))},y=function(e){return o.M.find((function(t){return!g(e,t)}))},b=function(e){return null==e?void 0:e.siteTitle},_=function(e){return e.step},S=function(e){return e.domainSearch}},492:function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},i={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[e]}},o=function(){try{return window.localStorage.setItem("WP_ONBOARD_TEST","1"),window.localStorage.removeItem("WP_ONBOARD_TEST"),!0}catch(e){return!1}}()?window.localStorage:i;return{storageKey:t,storage:{getItem:function(e){var r=o.getItem(n);return r&&function(e){var t=Number(e);return Boolean(t)&&t+6048e5>Date.now()}(r)&&!new URLSearchParams(window.location.search).has("fresh")?o.getItem(e):(o.removeItem(t),o.removeItem(n),null)},setItem:function(e,t){o.setItem(n,JSON.stringify(Date.now())),o.setItem(e,t)}}}}n.d(t,{Z:function(){return r}})},9068:function(e,t,n){"use strict";n.r(t),n.d(t,{setFeatures:function(){return r},setFeaturesByType:function(){return i},setPlans:function(){return o},setPlanProducts:function(){return a},resetPlan:function(){return u}});var r=function(e,t){return{type:"SET_FEATURES",features:e,locale:t}},i=function(e,t){return{type:"SET_FEATURES_BY_TYPE",featuresByType:e,locale:t}},o=function(e,t){return{type:"SET_PLANS",plans:e,locale:t}},a=function(e){return{type:"SET_PLAN_PRODUCTS",products:e}},u=function(){return{type:"RESET_PLAN"}}},4703:function(e,t,n){"use strict";n.d(t,{Ls:function(){return r},Ho:function(){return i},TO:function(){return o},YS:function(){return a},Gz:function(){return u},hx:function(){return s},iL:function(){return l},xT:function(){return c},AX:function(){return d},bS:function(){return f},UB:function(){return p},BV:function(){return m},nN:function(){return g}});var r="automattic/onboard/plans",i=1,o="free",a="personal",u="premium",s="business",l="ecommerce",c=[o,a,u,s,l],d=u,f=["personal-bundle","value_bundle","business-bundle","ecommerce-bundle"],p=["personal-bundle-monthly","value_bundle_monthly","business-bundle-monthly","ecommerce-bundle-monthly"],m=["free_plan"].concat(f,p),g=["custom-domain","support-live","priority-support"]},9734:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(9068),a=n(4703),u=n(9438),s=n(5261),l=n(7738),c=!1;function d(){return c||(c=!0,(0,r.registerStore)(a.Ls,{resolvers:s,actions:o,controls:i.ai,reducer:u.ZP,selectors:l})),a.Ls}},9438:function(e,t,n){"use strict";var r=n(1119),i=n(9394),o=n(5707),a=(0,o.combineReducers)({features:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.features));default:return e}},featuresByType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_FEATURES_BY_TYPE":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.featuresByType));default:return e}},planProducts:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLAN_PRODUCTS":return t.products;default:return e}},plans:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PLANS":return(0,i.Z)((0,i.Z)({},e),{},(0,r.Z)({},t.locale,t.plans));default:return e}}});t.ZP=a},5261:function(e,t,n){"use strict";n.r(t),n.d(t,{getSupportedPlans:function(){return g}});var r=n(1621),i=n(9126),o=n(3661),a=n(9068),u=n(4703),s=regeneratorRuntime.mark(g);function l(e){return(0,r.ZP)(12*e.raw_price,e.currency_code,{stripZeros:!0})}function c(e){return(0,r.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:u.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=u.BV.reduce((function(n,i){var o=e.find((function(e){return e.product_slug===i}));if(!o)return n;var a,u=t.find((function(e){return e.productIds.indexOf(o.product_id)>-1}));return n.push({productId:o.product_id,billingPeriod:31===o.bill_period?"MONTHLY":"ANNUALLY",periodAgnosticSlug:u.periodAgnosticSlug,storeSlug:o.product_slug,rawPrice:o.raw_price,pathSlug:o.path_slug,price:31===(null==o?void 0:o.bill_period)||0===o.raw_price?c(o):(a=o,(0,r.ZP)(a.raw_price/12,a.currency_code,{stripZeros:!0})),annualPrice:31===(null==o?void 0:o.bill_period)?l(o):c(o)}),n}),[]);return function(e){for(var t=function(t){var n=e.find((function(e){return e.storeSlug===u.bS[t]})),r=e.find((function(e){return e.storeSlug===u.UB[t]}));if(n&&r){var i=12*r.rawPrice,o=n.rawPrice,a=Math.round(100*(1-o/i));n.annualDiscount=a,r.annualDiscount=a}},n=0;n<u.bS.length;n++)t(n)}(n),n}function g(){var e,t,n,r,l,c,f,g=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=g.length>0&&void 0!==g[0]?g[0]:"en",s.next=3,(0,o._9)({path:"/plans",query:(0,i.stringify)({locale:e}),apiVersion:"1.5"});case 3:return t=s.sent,s.next=6,(0,o.An)("https://public-api.wordpress.com/wpcom/v2/plans/details?locale=".concat(encodeURIComponent(e)),{mode:"cors",credentials:"omit"});case 6:return n=s.sent,r=n.body,l=d(r.features),c=r.plans.map((function(e){var t,n=null===(t=e.nonlocalized_short_name)||void 0===t?void 0:t.toLowerCase();return{description:e.tagline,features:p(e,l),storage:e.storage,title:e.short_name,featuresSlugs:e.features.reduce((function(e,t){return e[t]=!0,e}),{}),isFree:n===u.TO,isPopular:n===u.Gz,periodAgnosticSlug:n,productIds:e.products.map((function(e){return e.plan_id}))}})),f=m(t,c),s.next=13,(0,a.setPlans)(c,e);case 13:return s.next=15,(0,a.setPlanProducts)(f);case 15:return s.next=17,(0,a.setFeatures)(l,e);case 17:return s.next=19,(0,a.setFeaturesByType)(r.features_by_type,e);case 19:case"end":return s.stop()}}),s)}},7738:function(e,t,n){"use strict";n.r(t),n.d(t,{getFeatures:function(){return u},getFeaturesByType:function(){return s},getPlanByProductId:function(){return l},getPlanProductById:function(){return c},getPlanByPeriodAgnosticSlug:function(){return d},getDefaultPaidPlan:function(){return f},getDefaultFreePlan:function(){return p},getSupportedPlans:function(){return m},getPlansProducts:function(){return g},getPrices:function(){return h},getPlanByPath:function(){return v},getPlanProduct:function(){return y},isPlanEcommerce:function(){return b},isPlanFree:function(){return _},isPlanProductFree:function(){return S}});var r=n(5707),i=n(3613),o=n.n(i),a=n(4703),u=function(e,t){var n;return null!==(n=e.features[t])&&void 0!==n?n:{}},s=function(e,t){var n;return null!==(n=e.featuresByType[t])&&void 0!==n?n:[]},l=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.productIds.indexOf(t)>-1}))},c=function(e,t){if(t)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.productId===t}))},d=function(e,t,n){if(t)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===t}))},f=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.AX}))},p=function(e,t){return(0,r.select)(a.Ls).getSupportedPlans(t).find((function(e){return e.periodAgnosticSlug===a.TO}))},m=function(e,t){var n;return null!==(n=e.plans[t])&&void 0!==n?n:[]},g=function(e){return e.planProducts},h=function(e,t){return o()("getPrices",{alternative:"getPlanProduct().price"}),(0,r.select)(a.Ls).getPlansProducts().reduce((function(e,t){return e[t.storeSlug]=t.price,e}),{})},v=function(e,t,n){if(t){var i=(0,r.select)(a.Ls).getPlansProducts().find((function(e){return e.pathSlug===t}));if(i)return(0,r.select)(a.Ls).getSupportedPlans(n).find((function(e){return e.periodAgnosticSlug===i.periodAgnosticSlug}))}},y=function(e,t,n){if(t&&n)return(0,r.select)(a.Ls).getPlansProducts().find((function(e){var r=e.periodAgnosticSlug===t,i=t===a.TO||e.billingPeriod===n;return r&&i}))},b=function(e,t){return t===a.iL},_=function(e,t){return t===a.TO},S=function(e,t){return t===a.Ho}},8459:function(e,t,n){"use strict";n.d(t,{d:function(){return u}});var r=n(9394),i=n(4530),o=n(3661),a=n(2699);function u(e){var t=regeneratorRuntime.mark(p),n=regeneratorRuntime.mark(y),u=regeneratorRuntime.mark(b),s=regeneratorRuntime.mark(_),l=regeneratorRuntime.mark(S),c=function(){return{type:"FETCH_NEW_SITE"}},d=function(e){return{type:"RECEIVE_NEW_SITE",response:e}},f=function(e){return{type:"RECEIVE_NEW_SITE_FAILED",error:e}};function p(n){var a,u,s,l,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,{type:"FETCH_NEW_SITE"};case 2:return t.prev=2,a=n.authToken,u=(0,i.Z)(n,["authToken"]),s={client_id:e.client_id,client_secret:e.client_secret,find_available_url:!0,public:-1},l=(0,r.Z)((0,r.Z)((0,r.Z)({},s),u),{},{validate:!1}),t.next=8,(0,o._9)({path:"/sites/new",apiVersion:"1.1",method:"post",body:l,token:a});case 8:return c=t.sent,t.next=11,d(c);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t0=t.catch(2),t.next=18,f(t.t0);case 18:return t.abrupt("return",!1);case 19:case"end":return t.stop()}}),t,null,[[2,14]])}var m=function(e,t){return{type:"RECEIVE_SITE_TITLE",siteId:e,title:t}},g=function(e){return{type:"LAUNCH_SITE_START",siteId:e}},h=function(e){return{type:"LAUNCH_SITE_SUCCESS",siteId:e}},v=function(e,t){return{type:"LAUNCH_SITE_FAILURE",siteId:e,error:t}};function y(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,g(e);case 2:return t.prev=2,t.next=5,(0,o._9)({path:"/sites/".concat(e,"/launch"),apiVersion:"1.1",method:"post"});case 5:return t.next=7,h(e);case 7:t.next=13;break;case 9:return t.prev=9,t.t0=t.catch(2),t.next=13,v(e,a.Hc.INTERNAL);case 13:case"end":return t.stop()}}),n,null,[[2,9]])}function b(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"GET"});case 2:return t=n.sent,n.abrupt("return",t);case 4:case"end":return n.stop()}}),u)}function _(e,t){var n;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,(0,o._9)({path:"/me/shopping-cart/"+e,apiVersion:"1.1",method:"POST",body:t});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),s)}function S(e,t){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,o._9)({path:"/sites/".concat(encodeURIComponent(e),"/settings"),apiVersion:"1.4",body:{blogname:t},method:"POST"});case 3:return n.next=5,m(e,t);case 5:n.next=9;break;case 7:n.prev=7,n.t0=n.catch(0);case 9:case"end":return n.stop()}}),l,null,[[0,7]])}return{receiveSiteDomains:function(e,t){return{type:"RECEIVE_SITE_DOMAINS",siteId:e,domains:t}},saveSiteTitle:S,receiveSiteTitle:m,fetchNewSite:c,fetchSite:function(){return{type:"FETCH_SITE"}},receiveNewSite:d,receiveNewSiteFailed:f,resetNewSiteFailed:function(){return{type:"RESET_RECEIVE_NEW_SITE_FAILED"}},createSite:p,receiveSite:function(e,t){return{type:"RECEIVE_SITE",siteId:e,response:t}},receiveSiteFailed:function(e,t){return{type:"RECEIVE_SITE_FAILED",siteId:e,response:t}},reset:function(){return{type:"RESET_SITE_STORE"}},launchSite:y,launchSiteStart:g,launchSiteSuccess:h,launchSiteFailure:v,getCart:b,setCart:_}}},2005:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/site"},2369:function(e,t,n){"use strict";n.d(t,{z2:function(){return d}});var r=n(5707),i=n(3661),o=n(8459),a=n(2005),u=n(2701),s=n(7862),l=n(4309),c=!1;function d(e){return c||(c=!0,(0,r.registerStore)(a.L,{actions:(0,o.d)(e),controls:i.ai,reducer:u.ZP,resolvers:s,selectors:l})),a.L}},2701:function(e,t,n){"use strict";var r=n(4530),i=n(60),o=n(1119),a=n(9394),u=n(5707),s=n(2699),l=(0,u.combineReducers)({data:function(e,t){return"RECEIVE_NEW_SITE"===t.type?t.response.blog_details:"RECEIVE_NEW_SITE_FAILED"!==t.type&&"RESET_SITE_STORE"!==t.type?e:void 0},error:function(e,t){switch(t.type){case"FETCH_NEW_SITE":case"RECEIVE_NEW_SITE":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return;case"RECEIVE_NEW_SITE_FAILED":return{error:t.error.error,status:t.error.status,statusCode:t.error.statusCode,name:t.error.name,message:t.error.message}}return e},isFetching:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_NEW_SITE":return!0;case"RECEIVE_NEW_SITE":case"RECEIVE_NEW_SITE_FAILED":case"RESET_SITE_STORE":case"RESET_RECEIVE_NEW_SITE_FAILED":return!1}return e}}),c=(0,u.combineReducers)({isFetchingSiteDetails:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_SITE":return!0;case"RECEIVE_SITE":case"RECEIVE_SITE_FAILED":return!1}return e},newSite:l,sites:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("RECEIVE_SITE"===t.type)return(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.response));if("RECEIVE_SITE_FAILED"===t.type){var n=t.siteId,u=(e[n],(0,r.Z)(e,[n].map(i.Z)));return(0,a.Z)({},u)}return"RESET_SITE_STORE"===t.type?{}:"RECEIVE_SITE_TITLE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,(0,a.Z)((0,a.Z)({},e[t.siteId]),{},{name:t.title}))):e},launchStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"LAUNCH_SITE_START"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.IN_PROGRESS,errorCode:void 0})):"LAUNCH_SITE_SUCCESS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.SUCCESS,errorCode:void 0})):"LAUNCH_SITE_FAILURE"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,{status:s.uS.FAILURE,errorCode:t.error})):e},sitesDomains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_SITE_DOMAINS"===t.type?(0,a.Z)((0,a.Z)({},e),{},(0,o.Z)({},t.siteId,t.domains)):e}});t.ZP=c},7862:function(e,t,n){"use strict";n.r(t),n.d(t,{getSite:function(){return s},getSiteDomains:function(){return l}});var r=n(5707),i=n(3661),o=n(2005),a=regeneratorRuntime.mark(s),u=regeneratorRuntime.mark(l);function s(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,r.dispatch)(o.L).fetchSite();case 2:return n.prev=2,n.next=5,(0,i._9)({path:"/sites/"+encodeURIComponent(e),apiVersion:"1.1"});case 5:return t=n.sent,n.next=8,(0,r.dispatch)(o.L).receiveSite(e,t);case 8:n.next=14;break;case 10:return n.prev=10,n.t0=n.catch(2),n.next=14,(0,r.dispatch)(o.L).receiveSiteFailed(e,void 0);case 14:case"end":return n.stop()}}),a,null,[[2,10]])}function l(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,(0,i._9)({path:"/sites/"+encodeURIComponent(e)+"/domains",apiVersion:"1.2"});case 3:return t=n.sent,n.next=6,(0,r.dispatch)(o.L).receiveSiteDomains(e,null==t?void 0:t.domains);case 6:n.next=10;break;case 8:n.prev=8,n.t0=n.catch(0);case 10:case"end":return n.stop()}}),u,null,[[0,8]])}},4309:function(e,t,n){"use strict";n.r(t),n.d(t,{getState:function(){return a},getNewSite:function(){return u},getNewSiteError:function(){return s},isFetchingSite:function(){return l},isFetchingSiteDetails:function(){return c},isNewSite:function(){return d},getSite:function(){return f},getSiteTitle:function(){return p},isSiteLaunched:function(){return m},isSiteLaunching:function(){return g},getSiteDomains:function(){return h},getPrimarySiteDomain:function(){return v},getSiteSubdomain:function(){return y}});var r=n(5707),i=n(2005),o=n(2699),a=function(e){return e},u=function(e){return e.newSite.data},s=function(e){return e.newSite.error},l=function(e){return e.newSite.isFetching},c=function(e){return e.isFetchingSiteDetails},d=function(e){return!!e.newSite.data},f=function(e,t){return e.sites[t]},p=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSite(t))||void 0===n?void 0:n.name},m=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.SUCCESS},g=function(e,t){var n;return(null===(n=e.launchStatus[t])||void 0===n?void 0:n.status)===o.uS.IN_PROGRESS},h=function(e,t){return e.sitesDomains[t]},v=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.primary_domain}))},y=function(e,t){var n;return null===(n=(0,r.select)(i.L).getSiteDomains(t))||void 0===n?void 0:n.find((function(e){return e.is_subdomain}))}},2699:function(e,t,n){"use strict";var r,i,o;n.d(t,{Hc:function(){return i},uS:function(){return o}}),function(e){e[e.PublicIndexed=1]="PublicIndexed",e[e.PublicNotIndexed=0]="PublicNotIndexed",e[e.Private=-1]="Private"}(r||(r={})),function(e){e.INTERNAL="internal"}(i||(i={})),function(e){e.UNINITIALIZED="unintialized",e.IN_PROGRESS="in_progress",e.SUCCESS="success",e.FAILURE="failure"}(o||(o={}))},4366:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="automattic/wpcom-features"},2613:function(e,t,n){"use strict";n.d(t,{$:function(){return u}});var r=n(4703),i=r.YS,o=r.Gz,a=r.hx,u={domain:{id:"domain",minSupportedPlan:i},store:{id:"store",minSupportedPlan:r.iL},seo:{id:"seo",minSupportedPlan:a},plugins:{id:"plugins",minSupportedPlan:a},"ad-free":{id:"ad-free",minSupportedPlan:i},"image-storage":{id:"image-storage",minSupportedPlan:o},"video-storage":{id:"video-storage",minSupportedPlan:o},support:{id:"support",minSupportedPlan:a}}},182:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(5707),i=n(9866),o=n(4366),a=n(8638),u=n(335),s=!1;function l(){return s||(s=!0,(0,r.registerStore)(o.L,{controls:i.controls,reducer:a.Z,selectors:u})),o.L}},8638:function(e,t,n){"use strict";var r=n(2613);t.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.$;return e}},335:function(e,t,n){"use strict";n.r(t),n.d(t,{getAllFeatures:function(){return i},getRecommendedPlanSlug:function(){return o}});var r=n(4703),i=function(e){return e},o=function(e,t){var n=i(e);if(t.length)return t.reduce((function(e,t){var i=n[t].minSupportedPlan;return r.xT.indexOf(i)>r.xT.indexOf(e)?i:e}),n[t[0]].minSupportedPlan)}},3661:function(e,t,n){"use strict";n.d(t,{_9:function(){return a},An:function(){return u},ai:function(){return s}});var r,i=n(6470),o=n(8552),a=function(e){return{type:"WPCOM_REQUEST",request:e}},u=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},s={WPCOM_REQUEST:function(e){var t=e.request;return(0,o.ZP)(t)},FETCH_AND_PARSE:(r=(0,i.Z)(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resource,r=t.options,e.next=3,window.fetch(n,r);case 3:return i=e.sent,e.t0=i.ok,e.next=7,i.json();case 7:return e.t1=e.sent,e.abrupt("return",{ok:e.t0,body:e.t1});case 9:case"end":return e.stop()}}),e)}))),function(_x){return r.apply(this,arguments)}),RELOAD_PROXY:function(){(0,o.sS)()},REQUEST_ALL_BLOGS_ACCESS:function(){return(0,o.Vw)()},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},7003:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=(n(3804),n(7997)),a=n(5869),u=n(3383),s=n(2779),l=n.n(s),c=n(8675),d=n(5707),f=n(3300);n(8062);t.Z=function(e){var t=e.onSelect,n=e.selected,__=(0,c.useI18n)().__,s=(0,i.useState)(!1),p=(0,r.Z)(s,2),m=p[0],g=p[1],h=function(e){g(!1),t(e)},v=(0,d.useSelect)((function(e){return e(f.GN).getCategories()})),y=__("All Categories","full-site-editing");return(0,i.createElement)("div",{className:l()("domain-categories",{"is-open":m})},(0,i.createElement)(o.Button,{className:"domain-categories__dropdown-button",onClick:function(){return g(!m)}},(0,i.createElement)("span",null,null!=n?n:y),(0,i.createElement)(a.Z,{icon:u.Z,size:16})),(0,i.createElement)("ul",{className:"domain-categories__item-group"},(0,i.createElement)("li",{className:l()("domain-categories__item",{"is-selected":!n})},(0,i.createElement)(o.Button,{onClick:function(){return h()}},__("View all","full-site-editing"))),v.map((function(e){var t=e.slug,r=e.title;return(0,i.createElement)("li",{key:t,className:l()("domain-categories__item",{"is-selected":t===n})},(0,i.createElement)(o.Button,{onClick:function(){return h(t)}},r))}))))}},6325:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(3027),i=(n(3804),n(8675)),o=function(){var e=(0,i.useI18n)(),__=e.__,t=e.isRTL;return(0,r.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 300 40",xmlSpace:"preserve",width:"300",style:t()?{transform:"scaleX(-1)"}:void 0},(0,r.createElement)("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),(0,r.createElement)("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),(0,r.createElement)("text",{x:"80",y:"26",direction:"ltr",textAnchor:t()?"end":"start",transform:t()?"scale(-1,1) translate(-160,0)":void 0},(0,r.createElement)("tspan",{fill:"#999"},(0,r.createElement)("tspan",null,"https://")),(0,r.createElement)("tspan",{fill:"#515151",dx:"4.5"},__("example.com","full-site-editing"))))}},1614:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(2779)),o=n.n(i);t.Z=function(e){var t=e.type;return(0,r.createElement)("div",{className:o()("domain-picker__suggestion-item placeholder","type-".concat(t))},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name placeholder"}),(0,r.createElement)("div",{className:"domain-picker__price placeholder"}))}},7226:function(e,t,n){"use strict";var r=n(2389),i=n(4530),o=n(3027),a=n(3804),u=n(6461),s=a.forwardRef((function(e,t){var n=e.type,a=e.disabled,s=(0,i.Z)(e,["type","disabled"]);return n===u.ln?(0,o.createElement)("div",s):(0,o.createElement)("button",(0,r.Z)({ref:t,disabled:a},s))}));t.Z=s},6461:function(e,t,n){"use strict";n.d(t,{fe:function(){return y},ln:function(){return b}});var r=n(2389),i=n(3258),o=n(3027),a=n(3804),u=n(2779),s=n.n(u),l=n(8675),c=n(6115),d=n(849),f=n(7498),p=n(7997),m=n(1417),g=n(3163),h=n(413),v=n(7226),y="radio",b="button",_="individual-item",S=function(e){var t=e.isUnavailable,n=e.domain,r=e.isLoading,u=e.cost,S=e.railcarId,E=e.hstsRequired,w=void 0!==E&&E,A=e.isFree,x=void 0!==A&&A,C=e.isExistingSubdomain,P=void 0!==C&&C,N=e.isRecommended,k=void 0!==N&&N,I=e.onSelect,O=e.onRender,Z=e.selected,L=e.type,M=void 0===L?y:L,T=e.buttonRef,D=(0,l.useI18n)(),__=D.__,F=D.hasTranslation,R=(0,d.bU)(),$=(0,f.Iu)(),j=!(0,m.useViewportMatch)("small",">="),B=n.indexOf("."),U=n.slice(0,B),G=n.slice(B),V=a.useState(),H=(0,i.Z)(V,2),z=H[0],Y=H[1],W=a.useState(),q=(0,i.Z)(W,2),K=q[0],X=q[1],J=__("Default","full-site-editing"),Q=__("Free","full-site-editing"),ee=M===_?J:Q,te=__("Included with annual plans","full-site-editing"),ne=__("Included in annual plans","full-site-editing"),re="en"===R||null!=F&&F("Included in annual plans")?ne:te,ie=__("<strong>First year included</strong> in paid plans","full-site-editing"),oe=__("<strong>First year included</strong> in annual plans","full-site-editing"),ae="en"===R||null!=F&&F("<strong>First year included</strong> in annual plans")?oe:ie,ue=j?re:(0,o.createInterpolateElement)(ae,{strong:(0,o.createElement)("strong",null)});a.useEffect((function(){n!==z&&K!==S&&S&&(O(),Y(n),X(S))}),[n,z,K,S,O]);var se=function(){K&&(0,c.Lo)({action:"domain_selected",railcarId:K}),I(n)},le=__("Selected","full-site-editing"),ce=__("Select","full-site-editing");return(0,o.createElement)(v.Z,{ref:T,type:M,key:U,className:s()("domain-picker__suggestion-item",{"is-free":x,"is-selected":Z,"is-unavailable":t},"type-".concat(M)),onClick:M!==b?se:void 0,disabled:t},M===y&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("span",{className:s()("domain-picker__suggestion-radio-circle",{"is-checked":Z,"is-unavailable":t})})),(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,o.createElement)("div",{className:"domain-picker__suggestion-item-name-inner"},(0,o.createElement)("span",{className:s()("domain-picker__domain-wrapper",{"with-margin":!w})},(0,o.createElement)("span",{className:"domain-picker__domain-sub-domain"},U),(0,o.createElement)("span",{className:"domain-picker__domain-tld"},G)),k&&!t&&(0,o.createElement)("div",{className:"domain-picker__badge is-recommended"},__("Recommended","full-site-editing")),w&&(0,o.createElement)(h.Z,{position:j?"bottom center":"middle right",noArrow:!1,className:"domain-picker__info-tooltip"},(0,o.createInterpolateElement)(__("All domains ending with <tld /> require an SSL certificate to host a website. When you host this domain at WordPress.com an SSL certificate is included. <learn_more_link>Learn more</learn_more_link>","full-site-editing"),{tld:(0,o.createElement)("b",null,G),learn_more_link:(0,o.createElement)("a",{target:"_blank",rel:"noreferrer",href:$("https://wordpress.com/support/https-ssl")})}))),P&&M!==_&&(0,o.createElement)("div",{className:"domain-picker__change-subdomain-tip"},__("You can change your free subdomain later under Domain Settings.","full-site-editing"))),(0,o.createElement)("div",{className:s()("domain-picker__price",{"is-paid":!x})},t&&__("Unavailable","full-site-editing"),x&&!t&&ee,!x&&!t&&(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:"domain-picker__price-cost"},(0,g.sprintf)(__("%s/year","full-site-editing"),u)),(0,o.createElement)("span",{className:"domain-picker__price-inclusive"}," ",ue," "),(0,o.createElement)("span",{className:"domain-picker__price-renewal"},(0,g.sprintf)(__("Renews at: %s /year","full-site-editing"),u)))),M===b&&(r?(0,o.createElement)(p.Spinner,null):(0,o.createElement)("div",{className:"domain-picker__action"},(0,o.createElement)(p.Button,{ref:T,isSecondary:!0,className:s()("domain-picker__suggestion-select-button",{"is-selected":Z&&!t}),disabled:t,onClick:se},Z&&!t?le:ce))))};t.ZP=a.forwardRef((function(e,t){return(0,o.createElement)(S,(0,r.Z)({},e,{buttonRef:t}))}))},605:function(e,t,n){"use strict";var r=n(3027),i=(n(3804),n(9211)),o=n(8675),a=n(7226);t.Z=function(e){var t=e.onClick,n=(0,o.useI18n)(),__=n.__,_x=n._x;return(0,r.createElement)(a.Z,{type:"button",className:"domain-picker__suggestion-item type-link",onClick:t},(0,r.createElement)("div",{className:"domain-picker__suggestion-item-name"},(0,r.createElement)("span",{className:"domain-picker__domain-wrapper with-margin with-bold-text"},__("Already own a domain?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)("span",{className:"domain-picker__item-tip"},_x("You can use it as your site's address.","Upgrades: Register domain description","full-site-editing")))),(0,r.createElement)(i.b4,{arrow:"right"},_x("Use a domain I own","Domain transfer or mapping suggestion button","full-site-editing")))}},2999:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n.n(o),u=n(1205),s=n(7997),l=n(5869),c=n(7108),d=n(6115),f=n(584),p=n(8675),m=n(6461),g=n(1614),h=n(605),v=n(7003),y=n(6325),b=n(5241),_=n(1045),S=n(1071),E=n(3446),w=n(3300),A=(n(3437),function(e){var t=e.groupItems,n=e.children;return t?(0,i.createElement)("div",{className:"domain-picker__suggestion-item-group"},n):(0,i.createElement)(o.Fragment,null,n)}),x=function(e){var t=e.children;return(0,i.createElement)("p",{className:"domain-picker__suggestion-group-label"},t)};t.ZP=function(e){var t,n=e.header,C=e.showDomainCategories,P=e.onDomainSelect,N=e.onExistingSubdomainSelect,k=e.quantity,I=void 0===k?w.SL:k,O=e.quantityExpanded,Z=void 0===O?w.Mm:O,L=e.onDomainSearchBlur,M=e.analyticsFlowId,T=e.analyticsUiAlgo,D=e.initialDomainSearch,F=void 0===D?"":D,R=e.onSetDomainSearch,$=e.currentDomain,j=e.isCheckingDomainAvailability,B=e.existingSubdomain,U=e.segregateFreeAndPaid,G=void 0!==U&&U,V=e.showSearchField,H=void 0===V||V,z=e.itemType,Y=void 0===z?m.fe:z,W=e.locale,q=e.areDependenciesLoading,K=void 0!==q&&q,X=e.orderSubDomainsLast,J=void 0!==X&&X,Q=e.onUseYourDomainClick,ee=e.vendor,te=void 0===ee?(0,E.iY)():ee,ne=e.showRecommendationLabel,re=void 0===ne||ne,__=(0,p.useI18n)().__,ie=__("Search for a domain","full-site-editing"),oe=(0,o.useState)(!1),ae=(0,r.Z)(oe,2),ue=ae[0],se=ae[1],le=(0,o.useState)(F),ce=(0,r.Z)(le,2),de=ce[0],fe=ce[1],pe=(0,o.useState)(),me=(0,r.Z)(pe,2),ge=me[0],he=me[1],ve=(0,b.O)(de.trim(),Z,ge,W)||{},ye=ve.allDomainSuggestions,be=ve.errorMessage,_e=ve.state,Se=ve.retryRequest,Ee=null==ye?void 0:ye.filter((function(e){return!(B&&e.is_free)})).slice(0,ue?Z-1:I-1),we=null==Ee?void 0:Ee.findIndex((function(e){return!e.is_free&&!e.unavailable})),Ae=(0,_.$)(Ee,B,$);Ae&&(null==Ee||Ee.push(Ae));var xe=(0,S.P)();(0,o.useEffect)((function(){se(!1)}),[de]);var Ce=(0,o.useState)(),Pe=(0,r.Z)(Ce,2),Ne=Pe[0],ke=Pe[1];(0,o.useEffect)((function(){ye&&ke((0,d.k9)("suggestion"))}),[ye,ke]),(0,o.useEffect)((function(){H||fe(F)}),[F,H]);var Ie=a().useRef([]);(0,o.useEffect)((function(){var e,t;ue&&(null===(e=Ie.current[I])||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))}),[ue,I]);var Oe=function(e,t,n,r){var i="/domains/search/".concat(te,"/").concat(M).concat(ge?"/"+ge:"");(0,d.Sn)({uiAlgo:"/".concat(M,"/").concat(T),fetchAlgo:i,query:de,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})},Ze=a().useRef(),Le=_e===f.r.Failure,Me=(null===(t=de.trim)||void 0===t?void 0:t.call(de).length)<=1,Te=!Le&&!Me,De=!Le&&Me,Fe=I;Ae&&(Fe+=1),Q&&(Fe+=1),B&&(Fe-=1);var Re=["professional"];return B&&Re.unshift("sub-domain"),J&&Re.reverse(),(0,i.createElement)("div",{className:"domain-picker"},n&&n,H&&(0,i.createElement)("div",{className:"domain-picker__search"},(0,i.createElement)("form",{action:"",onSubmit:function(e){var t;e.preventDefault(),null==Ze||null===(t=Ze.current)||void 0===t||t.blur()}},(0,i.createElement)("div",{className:"domain-picker__search-icon"},(0,i.createElement)(l.Z,{icon:c.Z})),(0,i.createElement)(s.TextControl,{ref:function(e){Ze.current=e},hideLabelFromVision:!0,name:"search",label:ie,placeholder:ie,onChange:function(e){fe(e),R&&R(e)},onBlur:function(e){L&&L(e.currentTarget.value)},value:de,dir:"ltr"}))),Le&&(0,i.createElement)(s.Notice,{className:"domain-picker__error",status:"error",isDismissible:!1},(0,i.createElement)("p",{className:"domain-picker__error-message"},be||__("An error has occurred, please check your connection and retry.","full-site-editing")),(0,i.createElement)(s.Button,{isPrimary:!0,className:"domain-picker__error-retry-btn",onClick:Se},__("Retry","full-site-editing"))),(Te||K)&&(0,i.createElement)("div",{className:"domain-picker__body"},C&&(0,i.createElement)("div",{className:"domain-picker__aside"},(0,i.createElement)(v.Z,{selected:ge,onSelect:he})),(0,i.createElement)("div",{className:"domain-picker__suggestion-sections"},(0,i.createElement)("div",{className:"domain-picker__sugggested-items-container"},Re.map((function(e){return"sub-domain"===e?(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Keep sub-domain","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&B&&(0,i.createElement)(m.ZP,{key:null==B?void 0:B.domain_name,domain:null==B?void 0:B.domain_name,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:Ne?"".concat(Ne,0):void 0,onRender:function(){return Oe(null==B?void 0:B.domain_name,"".concat(Ne,0),0,!1)},selected:(null==$?void 0:$.domain_name)===(null==B?void 0:B.domain_name),onSelect:function(){null==N||N(null==B?void 0:B.domain_name)},type:Y})||(0,i.createElement)(g.Z,{type:Y}))):(0,i.createElement)(o.Fragment,{key:e},G&&(0,i.createElement)(x,null,__("Professional domains","full-site-editing")),(0,i.createElement)(A,{key:e,groupItems:G},!K&&(null==Ee?void 0:Ee.map((function(e,t){var n,r=null!=B&&B.domain_name?t+1:t,o=t===we,a=null===(n=xe[null==e?void 0:e.domain_name])||void 0===n?void 0:n.status,u=!a||(null===w.vn||void 0===w.vn?void 0:w.vn.indexOf(a))>-1;return(0,i.createElement)(m.ZP,{ref:function(e){Ie.current[r]=e},key:e.domain_name,domain:e.domain_name,cost:e.cost,isUnavailable:!u||(null==e?void 0:e.unavailable),isLoading:(null==$?void 0:$.domain_name)===e.domain_name&&j,hstsRequired:e.hsts_required,isFree:e.is_free,isRecommended:re&&o,railcarId:Ne?"".concat(Ne).concat(r):void 0,onRender:function(){return Oe(e.domain_name,"".concat(Ne).concat(r),r,o)},onSelect:function(){P(e)},selected:(null==$?void 0:$.domain_name)===e.domain_name,type:Y})})))||(0,u.times)(Fe,(function(e){return(0,i.createElement)(g.Z,{type:Y,key:e})})),Q&&!!Ee&&(0,i.createElement)(h.Z,{onClick:Q})))}))),!ue&&I<Z&&(null==ye?void 0:ye.length)&&(null==ye?void 0:ye.length)>I&&(0,i.createElement)("div",{className:"domain-picker__show-more"},(0,i.createElement)(s.Button,{onClick:function(){return se(!0)},isLink:!0},__("View more results","full-site-editing"))))),De&&!K&&(0,i.createElement)("div",{className:"domain-picker__empty-state"},(0,i.createElement)("p",{className:"domain-picker__empty-state--text"},__("A domain name is the site address people type in their browser to visit your site.","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(y.q,null))))}},413:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(3804),a=n(2779),u=n.n(a),s=n(7997),l=n(5614);n(101);t.Z=function(e){var t=e.children,n=e.className,a=e.id,c=e.position,d=void 0===c?"bottom center":c,f=e.noArrow,p=void 0===f||f,m=(0,o.useState)(!1),g=(0,r.Z)(m,2),h=g[0],v=g[1];return(0,i.createElement)((function(e){return(0,i.createElement)(s.Button,e)}),{icon:l.Z,onClick:function(e){v(!h),e.stopPropagation()},className:"info-tooltip","data-testid":"info-tooltip"},h&&(0,i.createElement)(s.Popover,{id:a,className:u()("info-tooltip__content",n),onClose:function(){v(!1)},position:d,noArrow:p},t))}},3300:function(e,t,n){"use strict";n.d(t,{SL:function(){return i},Mm:function(){return o},F9:function(){return a},dP:function(){return u},GN:function(){return s},vn:function(){return l}});var r=n(8077),i=5,o=10,a=2,u=300,s=r.z(),l=["available","available_premium"]},1071:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(5707),i=n(3300);function o(){return(0,r.useSelect)((function(e){return e(i.GN).getDomainAvailabilities()}),[])}},5241:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(9394),i=n(3258),o=n(5707),a=n(7127),u=n(3300);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"en",l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=(0,a.Z)(e,u.dP),d=(0,i.Z)(c,1),f=d[0],p=(0,o.useDispatch)(u.GN),m=p.invalidateResolutionForStoreSelector;return(0,o.useSelect)((function(e){if(f&&!(f.length<u.F9)){var i=e(u.GN),o=i.getDomainSuggestions,a=i.getDomainState,c=i.getDomainErrorMessage;return{allDomainSuggestions:o(f,(0,r.Z)({include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:s,category_slug:n},l)),state:a(),errorMessage:c(),retryRequest:function(){m("__internalGetDomainSuggestions")}}}}),[f,n,t])}},1045:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(1766),i=n(3258),o=n(3804);function a(e,t,n){var a=o.useState(),u=(0,i.Z)(a,2),s=u[0],l=u[1],c=t&&Array.isArray(e)?[t].concat((0,r.Z)(e)):e;if(o.useEffect((function(){var e=null==c?void 0:c.some((function(e){return e.domain_name===(null==n?void 0:n.domain_name)}));null!=c&&c.length&&!e&&l(n)}),[n,c]),!(null==c?void 0:c.some((function(e){return(null==e?void 0:e.domain_name)===(null==s?void 0:s.domain_name)}))))return s}},3446:function(e,t,n){"use strict";function r(e){if(e)return{domain_name:e,relevance:1,supports_privacy:!0,vendor:"",cost:"",product_id:0,product_slug:"",raw_price:0,currency_code:"",unavailable:!1}}function i(e){return void 0!==e.normalize&&!!e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(/[a-z0-9-.\s]/i)}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.isSignup&&!e.isDomainOnly?"variation4_front":e.isPremium?"variation8_front":"variation2_front"}n.d(t,{nf:function(){return r},Qi:function(){return i},iY:function(){return o}})},3759:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},1621:function(e,t,n){"use strict";n.d(t,{ZP:function(){return a}});var r=n(9394),i=n(1481),o=n(3759);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=(0,o.X)(t);if(!a||isNaN(e))return null;var s=(0,r.Z)((0,r.Z)({},a),n),l=s.decimal,c=s.grouping,d=s.precision,f=s.symbol,p=e<0?"-":"",m=(0,i.Y4)(Math.abs(e),{decimals:d,thousandsSep:c,decPoint:l});return n.stripZeros&&(m=u(m,l)),"".concat(p).concat(f).concat(m)}function u(e,t){var n=new RegExp("\\".concat(t,"0+$"));return e.replace(n,"")}},914:function(e,t,n){"use strict";var r=n(1766),i=n(1119),o=n(8049),a=n.n(o),u=n(7010),s=n(9830),l=n(7839),c=n.n(l),d=n(5079),f=n.n(d),p=n(382),m=n(6668),g=n(3),h=a()("i18n-calypso"),v="number_format_decimals",y="number_format_thousands_sep",b="messages",_=[function(e){return e}],S={};function E(){P.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function w(e){return Array.prototype.slice.call(e)}function A(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&E("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",w(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&E("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",w(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function x(e,t){return e.dcnpgettext(b,t.context,t.original,t.plural,t.count)}function C(e,t){for(var n=_.length-1;n>=0;n--){var r=_[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return x(e.state.tannin,r)}return null}function P(){if(!(this instanceof P))return new P;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:c()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new p.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}P.throwErrors=!1,P.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},P.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},P.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},P.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,g.Z)(e,n,r,i)},P.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},P.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==S[n+e])return S[n+e];var r=f()().update(e).digest("hex");return S[n+e]=t?r.substr(0,t):r},u=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)_.push(u(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var c=Number(o.substr(5));_.push(u(c))}else for(var d=Number(o.substr(5,l)),p=Number(o.substr(6+l)),m=d;m<=p;m++)_.push(u(m))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new s.Z((0,i.Z)({},b,this.state.locale)),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,A([v])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,A([y])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===y&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},P.prototype.getLocale=function(){return this.state.locale},P.prototype.getLocaleSlug=function(){return this.state.localeSlug},P.prototype.getLocaleVariant=function(){return this.state.localeVariant},P.prototype.isRtl=function(){return"rtl"===this.state.textDirection},P.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},P.prototype.hasTranslation=function(){return!!C(this,A(arguments))},P.prototype.translate=function(){var e=A(arguments),t=C(this,e);if(t||(t=x(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=m.Z.apply(void 0,(0,r.Z)(n))}catch(o){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof o?window.console[i](o):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,u.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},P.prototype.reRenderTranslations=function(){h("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},P.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},P.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=P},1481:function(e,t,n){"use strict";n.d(t,{Y4:function(){return s},Iu:function(){return l}});var r=n(914),i=n(3493),o=n(975),a=n(8373),u=new r.Z,s=u.numberFormat.bind(u),l=u.translate.bind(u),c=(u.configure.bind(u),u.setLocale.bind(u),u.getLocale.bind(u),u.getLocaleSlug.bind(u),u.getLocaleVariant.bind(u),u.isRtl.bind(u),u.addTranslations.bind(u),u.reRenderTranslations.bind(u),u.registerComponentUpdateHook.bind(u),u.registerTranslateHook.bind(u),u.state,u.stateObserver,u.on.bind(u),u.off.bind(u),u.emit.bind(u),(0,i.Z)(u),(0,o.Z)(u),(0,a.Z)(u));c.useRtl,c.withRtl},3493:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(9394),i=n(4659),o=n(4730),a=n(3989),u=n(5663),s=n(9049),l=n(1119),c=n(3027),d=n(3804),f=n.n(d);function p(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var d,p,m=n.displayName||n.name||"";return p=d=function(d){(0,u.Z)(p,d);var f=(0,s.Z)(p);function p(){var e;(0,i.Z)(this,p);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=f.call.apply(f,[this].concat(n)),(0,l.Z)((0,a.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,a.Z)(e))),e}return(0,o.Z)(p,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)((0,r.Z)({locale:e.getLocaleSlug()},this.props),t);return(0,c.createElement)(n,i)}}]),p}(f().Component),(0,l.Z)(d,"displayName","Localized("+m+")"),p}}},3:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,u=void 0===n?".":n,s="";return(s=(o?
20
  /*
21
  * Exposes number format capability
22
  *
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.10516
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.10516' );
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.10777
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.10777' );
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.10516
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.10777
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html