Version Description
- Fix error in editor when accessing page as a non-user super admin.
Download this release
Release Info
Developer | andrewserong |
Plugin | Full Site Editing |
Version | 1.19 |
Comparing to | |
See all releases |
Code changes from version 1.18 to 1.19
common/dist/data-stores.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=85)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return u}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return R})),n.d(t,"b",(function(){return I})),n.d(t,"a",(function(){return k}));var r=n(0),o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function a(){if(!o)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}for(var s=[],u=0;u<256;++u)s[u]=(u+256).toString(16).substr(1);var c=function(e,t){var n=t||0,r=s;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var l,f=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||c(o)},p=n(31),d=n.n(p),h=n(14),m=n.n(h),y=n(11),g=n.n(y)()("wpcom-proxy-request"),v="https://public-api.wordpress.com",b=window.location.protocol+"//"+window.location.host,S=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),O=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),E=null,w=!1,_={},C=!!window.ProgressEvent&&!!window.FormData;g('using "origin": %o',b);var j=function(e,t){var n=Object.assign({},e);g("request(%o)",n),E||N();var r=f();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=C,n.method=String(n.method||"GET").toUpperCase(),g("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,_[r]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var n=e.error||e.err||e;g("error: ",n),g("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var n=e.response||o.response;g("body: ",n),g("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return w?T(n):(g("buffering API request since proxying <iframe> is not yet loaded"),l.push(n)),o},x=function(e,t){return"function"==typeof t?j(e,t):new Promise((function(t,n){j(e,(function(e,r){e?n(e):t(r)}))}))};function T(e){g("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!O)return;for(var t=0;t<e.length;t++){var n=P(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),E.contentWindow.postMessage(S?JSON.stringify(e):e,v)}function A(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function P(e){return A(e)?e:"object"==typeof e&&A(e.fileContents)?e.fileContents:null}function N(){g("install()"),E&&(g("uninstall()"),window.removeEventListener("message",F),document.body.removeChild(E),w=!1,E=null),l=[],window.addEventListener("message",F),(E=document.createElement("iframe")).src=v+"/wp-admin/rest-proxy/?v=2.0#"+b,E.style.display="none",document.body.appendChild(E)}function F(e){if(g("onmessage"),e.origin===v){var t=e.data;if(!t)return g("no `data`, bailing");if("ready"!==t){if(S&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){g('got "progress" event: %o',e);var t=_[e.callbackId];if(t){var n=new m.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return g("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in _))return g("bailing, no matching request with callback: %o",n);var r=_[n],o=r.params,i=t[0],a=t[1],s=t[2];if(207===a||delete _[n],o.metaAPI?a="metaAPIupdated"===i?200:500:g("got %o status code for URL: %o",a,o.path),"object"==typeof s&&(s.status=a),a&&2===Math.floor(a/100))!function(e,t,n){var r=new m.a("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,i,s);else!function(e,t,n){var r=new m.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(r,d()(o,a,i),s)}else!function(){if(g('proxy <iframe> "load" event'),w=!0,l){for(var e=0;e<l.length;e++)T(l[e]);l=null}}()}else g("ignoring message... %o !== %o",e.origin,v)}var L=x,R=function(e){return{type:"WPCOM_REQUEST",request:e}},I=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},k={WPCOM_REQUEST:function(e){var t=e.request;return L(t)},FETCH_AND_PARSE:function(e){var t=e.resource,n=e.options;return Object(r.b)(void 0,void 0,void 0,(function(){var e,o;return Object(r.c)(this,(function(r){switch(r.label){case 0:return[4,window.fetch(t,n)];case 1:return e=r.sent(),o={ok:e.ok},[4,e.json()];case 2:return[2,(o.body=r.sent(),o)]}}))}))},RELOAD_PROXY:function(){N()},REQUEST_ALL_BLOGS_ACCESS:function(){return x({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t,n){"use strict";var r=n(19);n.d(t,"DomainSuggestions",(function(){return r}));var o=n(30);n.d(t,"Plans",(function(){return o}));var i=n(24);n.d(t,"Site",(function(){return i}))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/domains/suggestions"},function(e,t,n){"use strict";n.r(t),n.d(t,"receiveCategories",(function(){return r})),n.d(t,"receiveDomainSuggestions",(function(){return o}));var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},o=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS",queryObject:e,suggestions:t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/site"},function(e,t,n){var r=n(63),o=n(64),i=n(22),a=n(65);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(62)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33),o=n.n(r).a},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){var n,r=window.ProgressEvent,o=!!r;try{n=new r("loaded"),o="loaded"===n.type,n=null}catch(i){o=!1}e.exports=o?r:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},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(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),s)}}},function(e,t,n){"use strict";var r=n(28),o=n(27);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=a(o)),n+=u(o.toString(16))}return n},t.zero2=s,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var a=new Array(i/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===o?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,a=(i<r?1:0)+n+o;e[t]=a>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,a,s){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+i>>>0)<i?1:0,e+n+o+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,s,u,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+s>>>0)<s?1:0,e+n+o+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,s,u,c){return t+r+i+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,s;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):y(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=y(u,c);for(n=0;n<c;++n)i(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(6);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(7),i=n(32),a=n(8),s=n(34),u=n(36),c=n(2),l=n(20);for(var f in l)["register","default"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){var t=e.vendor;return p||(p=!0,Object(r.registerStore)(o.a,{actions:a,controls:c.a,reducer:i.a,resolvers:s,selectors:Object(u.a)(t)})),o.a}},function(e,t){},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(15),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(9),i=n(38),a=n(37),s=n(39),u=n(40),c=n(2),l=n(25);for(var f in l)["register","default"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){return p||(p=!0,Object(r.registerStore)(o.a,{actions:Object(a.a)(e),controls:c.a,reducer:i.a,resolvers:s,selectors:u})),o.a}},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},o={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[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 r=i.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")?i.getItem(e):(i.removeItem(t),i.removeItem(n),null)},setItem:function(e,t){i.setItem(n,JSON.stringify(Date.now())),i.setItem(e,t)}}}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"plansPaths",(function(){return Ce})),n.d(t,"PLAN_FREE",(function(){return p})),n.d(t,"PLAN_PERSONAL",(function(){return d})),n.d(t,"PLAN_PREMIUM",(function(){return h})),n.d(t,"PLAN_BUSINESS",(function(){return m})),n.d(t,"PLAN_ECOMMERCE",(function(){return y})),n.d(t,"register",(function(){return Ge}));var r={};n.r(r),n.d(r,"setPrices",(function(){return Pe})),n.d(r,"resetPlan",(function(){return Ne}));var o={};n.r(o),n.d(o,"getPlanBySlug",(function(){return Le})),n.d(o,"getDefaultPaidPlan",(function(){return Re})),n.d(o,"getSupportedPlans",(function(){return Ie})),n.d(o,"getPlanByPath",(function(){return ke})),n.d(o,"getPlansDetails",(function(){return Me})),n.d(o,"getPlansPaths",(function(){return De})),n.d(o,"getPrices",(function(){return Ue})),n.d(o,"isPlanEcommerce",(function(){return He})),n.d(o,"isPlanFree",(function(){return Be}));var i={};n.r(i),n.d(i,"getPrices",(function(){return Ve}));var a,s,u,c,l=n(4),f=n(1),p="free_plan",d="personal-bundle",h="value_bundle",m="business-bundle",y="ecommerce-bundle",g=h,v={USD:{format:"SYMBOL_THEN_AMOUNT",symbol:"$",decimal:2},GBP:{format:"SYMBOL_THEN_AMOUNT",symbol:"£",decimal:2},JPY:{format:"SYMBOL_THEN_AMOUNT",symbol:"¥",decimal:0},BRL:{format:"SYMBOL_THEN_AMOUNT",symbol:"R$",decimal:2},EUR:{format:"SYMBOL_THEN_AMOUNT",symbol:"€",decimal:2},NZD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NZ$",decimal:2},AUD:{format:"SYMBOL_THEN_AMOUNT",symbol:"A$",decimal:2},CAD:{format:"SYMBOL_THEN_AMOUNT",symbol:"C$",decimal:2},IDR:{format:"AMOUNT_THEN_SYMBOL",symbol:"Rp",decimal:0},INR:{format:"AMOUNT_THEN_SYMBOL",symbol:"₹",decimal:0},ILS:{format:"AMOUNT_THEN_SYMBOL",symbol:"₪",decimal:2},RUB:{format:"AMOUNT_THEN_SYMBOL",symbol:"₽",decimal:2},MXN:{format:"SYMBOL_THEN_AMOUNT",symbol:"MX$",decimal:2},SEK:{format:"AMOUNT_THEN_SYMBOL",symbol:"SEK",decimal:2},HUF:{format:"AMOUNT_THEN_SYMBOL",symbol:"Ft",decimal:0},CHF:{format:"AMOUNT_THEN_SYMBOL",symbol:"CHF",decimal:2},CZK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kč",decimal:2},DKK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Dkr",decimal:2},HKD:{format:"AMOUNT_THEN_SYMBOL",symbol:"HK$",decimal:2},NOK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kr",decimal:2},PHP:{format:"AMOUNT_THEN_SYMBOL",symbol:"₱",decimal:2},PLN:{format:"AMOUNT_THEN_SYMBOL",symbol:"PLN",decimal:2},SGD:{format:"SYMBOL_THEN_AMOUNT",symbol:"S$",decimal:2},TWD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NT$",decimal:0},THB:{format:"SYMBOL_THEN_AMOUNT",symbol:"฿",decimal:2},TRY:{format:"AMOUNT_THEN_SYMBOL",symbol:"TL",decimal:2}},b=n(0),S=n(10),O=n.n(S),E=n(6),w=n.n(E),_=n(11),C=n.n(_),j=n(41),x=n.n(j);a={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],u={")":["("],":":["?","?:"]},c=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var T={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function A(e){var t=function(e){for(var t,n,r,o,i=[],l=[];t=e.match(c);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=l.pop();){if(u[n]){if(u[n][0]===o){n=u[n][1]||n;break}}else if(s.indexOf(o)>=0||a[o]<a[n]){l.push(o);break}i.push(o)}u[n]||l.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(l.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,s,u=[];for(n=0;n<e.length;n++){if(a=e[n],i=T[a]){for(r=i.length,o=Array(r);r--;)o[r]=u.pop();try{s=i.apply(null,o)}catch(c){return c}}else s=t.hasOwnProperty(a)?t[a]:+a;u.push(s)}return u[0]}(t,e)}}var P={contextDelimiter:"",onMissingKey:null};function N(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},P)this.options[n]=void 0!==t&&n in t?t[n]:P[n]}N.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=A(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},N.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var F=n(42),L=n.n(F),R=n(43),I=n.n(R),k=n(17),M=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function D(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(M,(function(){var e,r,o,i,a;return e=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===i?a=parseFloat(a)||0:"d"===i&&(a=parseInt(a)||0),void 0!==o&&("f"===i?a=a.toFixed(o):"s"===i&&(a=a.substr(0,o))),null!=a?a:"")}))}
|
2 |
/*
|
3 |
* Exposes number format capability
|
4 |
*
|
1 |
+
!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=85)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return u}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r.throw(e))}catch(t){i(t)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";n.d(t,"c",(function(){return R})),n.d(t,"b",(function(){return I})),n.d(t,"a",(function(){return k}));var r=n(0),o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function a(){if(!o)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}for(var s=[],u=0;u<256;++u)s[u]=(u+256).toString(16).substr(1);var c=function(e,t){var n=t||0,r=s;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var l,f=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||c(o)},p=n(31),d=n.n(p),h=n(14),m=n.n(h),y=n(11),g=n.n(y)()("wpcom-proxy-request"),v="https://public-api.wordpress.com",b=window.location.protocol+"//"+window.location.host,S=function(){var e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e}(),O=function(){try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}}(),E=null,w=!1,_={},C=!!window.ProgressEvent&&!!window.FormData;g('using "origin": %o',b);var j=function(e,t){var n=Object.assign({},e);g("request(%o)",n),E||N();var r=f();n.callback=r,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=C,n.method=String(n.method||"GET").toUpperCase(),g("params object: %o",n);var o=new window.XMLHttpRequest;if(o.params=n,_[r]=o,"function"==typeof t){var i=!1,a=function(e){if(!i){i=!0;var n=e.error||e.err||e;g("error: ",n),g("headers: ",e.headers),t(n,null,e.headers)}};o.addEventListener("load",(function(e){if(!i){i=!0;var n=e.response||o.response;g("body: ",n),g("headers: ",e.headers),t(null,n,e.headers)}})),o.addEventListener("abort",a),o.addEventListener("error",a)}return w?T(n):(g("buffering API request since proxying <iframe> is not yet loaded"),l.push(n)),o},x=function(e,t){return"function"==typeof t?j(e,t):new Promise((function(t,n){j(e,(function(e,r){e?n(e):t(r)}))}))};function T(e){g("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!O)return;for(var t=0;t<e.length;t++){var n=P(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),E.contentWindow.postMessage(S?JSON.stringify(e):e,v)}function A(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function P(e){return A(e)?e:"object"==typeof e&&A(e.fileContents)?e.fileContents:null}function N(){g("install()"),E&&(g("uninstall()"),window.removeEventListener("message",F),document.body.removeChild(E),w=!1,E=null),l=[],window.addEventListener("message",F),(E=document.createElement("iframe")).src=v+"/wp-admin/rest-proxy/?v=2.0#"+b,E.style.display="none",document.body.appendChild(E)}function F(e){if(g("onmessage"),e.origin===v){var t=e.data;if(!t)return g("no `data`, bailing");if("ready"!==t){if(S&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){g('got "progress" event: %o',e);var t=_[e.callbackId];if(t){var n=new m.a("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return g("`e.data` doesn't appear to be an Array, bailing...");var n=t[t.length-1];if(!(n in _))return g("bailing, no matching request with callback: %o",n);var r=_[n],o=r.params,i=t[0],a=t[1],s=t[2];if(207===a||delete _[n],o.metaAPI?a="metaAPIupdated"===i?200:500:g("got %o status code for URL: %o",a,o.path),"object"==typeof s&&(s.status=a),a&&2===Math.floor(a/100))!function(e,t,n){var r=new m.a("load");r.data=r.body=r.response=t,r.headers=n,e.dispatchEvent(r)}(r,i,s);else!function(e,t,n){var r=new m.a("error");r.error=r.err=t,r.headers=n,e.dispatchEvent(r)}(r,d()(o,a,i),s)}else!function(){if(g('proxy <iframe> "load" event'),w=!0,l){for(var e=0;e<l.length;e++)T(l[e]);l=null}}()}else g("ignoring message... %o !== %o",e.origin,v)}var L=x,R=function(e){return{type:"WPCOM_REQUEST",request:e}},I=function(e,t){return{type:"FETCH_AND_PARSE",resource:e,options:t}},k={WPCOM_REQUEST:function(e){var t=e.request;return L(t)},FETCH_AND_PARSE:function(e){var t=e.resource,n=e.options;return Object(r.b)(void 0,void 0,void 0,(function(){var e,o;return Object(r.c)(this,(function(r){switch(r.label){case 0:return[4,window.fetch(t,n)];case 1:return e=r.sent(),o={ok:e.ok},[4,e.json()];case 2:return[2,(o.body=r.sent(),o)]}}))}))},RELOAD_PROXY:function(){N()},REQUEST_ALL_BLOGS_ACCESS:function(){return x({metaAPI:{accessAllUsersBlogs:!0}})},WAIT:function(e){var t=e.ms;return new Promise((function(e){return setTimeout(e,t)}))}}},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.dataControls}()},function(e,t,n){"use strict";var r=n(19);n.d(t,"DomainSuggestions",(function(){return r}));var o=n(30);n.d(t,"Plans",(function(){return o}));var i=n(24);n.d(t,"Site",(function(){return i}))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/domains/suggestions"},function(e,t,n){"use strict";n.r(t),n.d(t,"receiveCategories",(function(){return r})),n.d(t,"receiveDomainSuggestions",(function(){return o}));var r=function(e){return{type:"RECEIVE_CATEGORIES",categories:e}},o=function(e,t){return{type:"RECEIVE_DOMAIN_SUGGESTIONS",queryObject:e,suggestions:t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="automattic/site"},function(e,t,n){var r=n(63),o=n(64),i=n(22),a=n(65);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){t.log=function(){var e;return"object"==typeof console&&console.log&&(e=console).log.apply(e,arguments)},t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(62)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33),o=n.n(r).a},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){var n,r=window.ProgressEvent,o=!!r;try{n=new r("loaded"),o="loaded"===n.type,n=null}catch(i){o=!1}e.exports=o?r:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?o+=r.charAt(a):s<128?o+=i[s]:s<2048?o+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?o+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),o+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return o},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(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),s)}}},function(e,t,n){"use strict";var r=n(28),o=n(27);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=a(o)),n+=u(o.toString(16))}return n},t.zero2=s,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var a=new Array(i/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===o?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var i=e[r];"big"===t?(n[o]=i>>>24,n[o+1]=i>>>16&255,n[o+2]=i>>>8&255,n[o+3]=255&i):(n[o+3]=i>>>24,n[o+2]=i>>>16&255,n[o+1]=i>>>8&255,n[o]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],i=r+e[t+1]>>>0,a=(i<r?1:0)+n+o;e[t]=a>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,o,i,a,s){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+i>>>0)<i?1:0,e+n+o+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,a,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,a,s,u,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+i>>>0)<i?1:0,l+=(f=f+s>>>0)<s?1:0,e+n+o+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,a,s,u,c){return t+r+i+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,s;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):y(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=y(u,c);for(n=0;n<c;++n)i(l[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(6);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(7),i=n(32),a=n(8),s=n(34),u=n(36),c=n(2),l=n(20);for(var f in l)["default","register"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){var t=e.vendor;return p||(p=!0,Object(r.registerStore)(o.a,{actions:a,controls:c.a,reducer:i.a,resolvers:s,selectors:Object(u.a)(t)})),o.a}},function(e,t){},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(15),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";n.r(t),n.d(t,"register",(function(){return d}));var r=n(1),o=n(9),i=n(38),a=n(37),s=n(39),u=n(40),c=n(2),l=n(25);for(var f in l)["default","register"].indexOf(f)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(f);var p=!1;function d(e){return p||(p=!0,Object(r.registerStore)(o.a,{actions:Object(a.a)(e),controls:c.a,reducer:i.a,resolvers:s,selectors:u})),o.a}},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";function r(e){var t=e,n=e+"_TS",r={},o={getItem:function(e){return r.hasOwnProperty(e)?r[e]:null},setItem:function(e,t){r[e]=String(t)},removeItem:function(e){delete r[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 r=i.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")?i.getItem(e):(i.removeItem(t),i.removeItem(n),null)},setItem:function(e,t){i.setItem(n,JSON.stringify(Date.now())),i.setItem(e,t)}}}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"plansPaths",(function(){return Ce})),n.d(t,"PLAN_FREE",(function(){return p})),n.d(t,"PLAN_PERSONAL",(function(){return d})),n.d(t,"PLAN_PREMIUM",(function(){return h})),n.d(t,"PLAN_BUSINESS",(function(){return m})),n.d(t,"PLAN_ECOMMERCE",(function(){return y})),n.d(t,"register",(function(){return Ge}));var r={};n.r(r),n.d(r,"setPrices",(function(){return Pe})),n.d(r,"resetPlan",(function(){return Ne}));var o={};n.r(o),n.d(o,"getPlanBySlug",(function(){return Le})),n.d(o,"getDefaultPaidPlan",(function(){return Re})),n.d(o,"getSupportedPlans",(function(){return Ie})),n.d(o,"getPlanByPath",(function(){return ke})),n.d(o,"getPlansDetails",(function(){return Me})),n.d(o,"getPlansPaths",(function(){return De})),n.d(o,"getPrices",(function(){return Ue})),n.d(o,"isPlanEcommerce",(function(){return He})),n.d(o,"isPlanFree",(function(){return Be}));var i={};n.r(i),n.d(i,"getPrices",(function(){return Ve}));var a,s,u,c,l=n(4),f=n(1),p="free_plan",d="personal-bundle",h="value_bundle",m="business-bundle",y="ecommerce-bundle",g=h,v={USD:{format:"SYMBOL_THEN_AMOUNT",symbol:"$",decimal:2},GBP:{format:"SYMBOL_THEN_AMOUNT",symbol:"£",decimal:2},JPY:{format:"SYMBOL_THEN_AMOUNT",symbol:"¥",decimal:0},BRL:{format:"SYMBOL_THEN_AMOUNT",symbol:"R$",decimal:2},EUR:{format:"SYMBOL_THEN_AMOUNT",symbol:"€",decimal:2},NZD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NZ$",decimal:2},AUD:{format:"SYMBOL_THEN_AMOUNT",symbol:"A$",decimal:2},CAD:{format:"SYMBOL_THEN_AMOUNT",symbol:"C$",decimal:2},IDR:{format:"AMOUNT_THEN_SYMBOL",symbol:"Rp",decimal:0},INR:{format:"AMOUNT_THEN_SYMBOL",symbol:"₹",decimal:0},ILS:{format:"AMOUNT_THEN_SYMBOL",symbol:"₪",decimal:2},RUB:{format:"AMOUNT_THEN_SYMBOL",symbol:"₽",decimal:2},MXN:{format:"SYMBOL_THEN_AMOUNT",symbol:"MX$",decimal:2},SEK:{format:"AMOUNT_THEN_SYMBOL",symbol:"SEK",decimal:2},HUF:{format:"AMOUNT_THEN_SYMBOL",symbol:"Ft",decimal:0},CHF:{format:"AMOUNT_THEN_SYMBOL",symbol:"CHF",decimal:2},CZK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kč",decimal:2},DKK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Dkr",decimal:2},HKD:{format:"AMOUNT_THEN_SYMBOL",symbol:"HK$",decimal:2},NOK:{format:"AMOUNT_THEN_SYMBOL",symbol:"Kr",decimal:2},PHP:{format:"AMOUNT_THEN_SYMBOL",symbol:"₱",decimal:2},PLN:{format:"AMOUNT_THEN_SYMBOL",symbol:"PLN",decimal:2},SGD:{format:"SYMBOL_THEN_AMOUNT",symbol:"S$",decimal:2},TWD:{format:"SYMBOL_THEN_AMOUNT",symbol:"NT$",decimal:0},THB:{format:"SYMBOL_THEN_AMOUNT",symbol:"฿",decimal:2},TRY:{format:"AMOUNT_THEN_SYMBOL",symbol:"TL",decimal:2}},b=n(0),S=n(10),O=n.n(S),E=n(6),w=n.n(E),_=n(11),C=n.n(_),j=n(41),x=n.n(j);a={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],u={")":["("],":":["?","?:"]},c=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var T={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function A(e){var t=function(e){for(var t,n,r,o,i=[],l=[];t=e.match(c);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=l.pop();){if(u[n]){if(u[n][0]===o){n=u[n][1]||n;break}}else if(s.indexOf(o)>=0||a[o]<a[n]){l.push(o);break}i.push(o)}u[n]||l.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(l.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,s,u=[];for(n=0;n<e.length;n++){if(a=e[n],i=T[a]){for(r=i.length,o=Array(r);r--;)o[r]=u.pop();try{s=i.apply(null,o)}catch(c){return c}}else s=t.hasOwnProperty(a)?t[a]:+a;u.push(s)}return u[0]}(t,e)}}var P={contextDelimiter:"",onMissingKey:null};function N(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},P)this.options[n]=void 0!==t&&n in t?t[n]:P[n]}N.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=A(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},N.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};var F=n(42),L=n.n(F),R=n(43),I=n.n(R),k=n(17),M=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function D(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(M,(function(){var e,r,o,i,a;return e=arguments[3],r=arguments[5],"%"===(i=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(a=t[0][r]):(void 0===e&&(e=n),n++,a=t[e-1]),"f"===i?a=parseFloat(a)||0:"d"===i&&(a=parseInt(a)||0),void 0!==o&&("f"===i?a=a.toFixed(o):"s"===i&&(a=a.substr(0,o))),null!=a?a:"")}))}
|
2 |
/*
|
3 |
* Exposes number format capability
|
4 |
*
|
editor-site-launch/dist/editor-site-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '784bdfd69f24860bccfcefe78cbfd408');
|
editor-site-launch/dist/editor-site-launch.js
CHANGED
@@ -37,4 +37,4 @@ object-assign
|
|
37 |
*
|
38 |
* This source code is licensed under the MIT license found in the
|
39 |
* LICENSE file in the root directory of this source tree.
|
40 |
-
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case d:case a:case s:case c:case m:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case b:case l:return e;default:return t}}case i:return t}}}function O(e){return w(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=b,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return O(e)||w(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===b},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},function(e,t,n){},function(e,t,n){"use strict";var r=n(95);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(33);var r="automattic/launch",o=n(1),i=n(3),a=n(43),c=n(7),s=n.n(c),l=n(0),u=n.n(l),p=n(4),d=n(6);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=m(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},g=n(11),v=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(g.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),y=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),x=n(9),_=n.n(x),w=n(8),O=n.n(w),E=n(17),k=(n(66),function(e){var t=e.children;return l.createElement("h1",{className:"onboarding-title"},t)}),S=function(e){var t=e.children;return l.createElement("h2",{className:"onboarding-subtitle"},t)},C=n(10),j=n(18),N=l.createContext(A()),P=function(){return l.useContext(N)};Object(j.createHigherOrderComponent)((function(e){return function(t){var n=P();return l.createElement(e,Object(C.a)({},n,t))}}),"withI18n");function A(e){var t,n,r=Object(p.createI18n)(e),o=null!==(n=null===(t=null==e?void 0:e[""])||void 0===t?void 0:t.localeSlug)&&void 0!==n?n:"en";return{__:r.__.bind(r),_n:r._n.bind(r),_nx:r._nx.bind(r),_x:r._x.bind(r),isRTL:r.isRTL.bind(r),i18nLocale:o}}n(67);var L=function(e){var t=e.className,n=e.children;return l.createElement("div",{className:_()("action-buttons",t)},n)},T=function(e){var t=e.className,n=e.children,r=Object(C.c)(e,["className","children"]),o=P().__;return l.createElement(d.Button,Object(C.a)({className:_()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||o("Continue"))},F="name",M="domain",R="plan",D=(n(64),function(e){var t=e.className,n=e.children;return Object(o.createElement)("div",{className:_()("nux-launch-step",t)},n)}),B=(n(65),function(e){var t=e.onNextStep,n=Object(i.useSelect)((function(e){return e(r).getSelectedDomain()})),a=Object(i.useDispatch)(r),c=a.setStepComplete,l=a.setStepIncomplete,u=a.setDomainSearch,f=Object(E.useEntityProp)("root","site","title"),m=s()(f,2),h=m[0],b=m[1],g=Object(i.useDispatch)("core").saveEditedEntityRecord,v=function(){var e=h.trim();b(e),g("root","site"),!n&&u(e),e?c(F):l(F)},y=function(){v(),null==t||t()};return Object(o.createElement)(D,{className:"nux-launch-name-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Name your site","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("Pick a name for your site.","full-site-editing"))),Object(o.createElement)(L,null,Object(o.createElement)(T,{onClick:y,disabled:!(null==h?void 0:h.trim())}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)("form",{onSubmit:y},Object(o.createElement)(d.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:b,onBlur:v,value:h,spellCheck:!1,autoComplete:"off",placeholder:Object(p.__)("Enter site name","full-site-editing"),autoCorrect:"off","data-hj-whitelist":!0}),Object(o.createElement)("p",{className:"nux-launch-step__input-hint"},Object(o.createElement)(d.Tip,{size:18}),Object(o.createElement)("span",null,Object(p.__)("Don't worry, you can change it later.","full-site-editing"))))))}),I=n(16);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var U=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=m(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},H=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),$=n(12),q=n.n($),V=q()("calypso:analytics");n(44);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(31);var Y=n(20),G=q()("lib/load-script/callback-handler"),W=new Map;function K(){return W}function X(e){return K().has(e)}function Z(e,t){var n=K();X(e)?(G('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(G('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=K(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));G(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function Q(){var e=this.getAttribute("src");G('Handling successful request for "'.concat(e,'"')),J(e),this.onload=null}function ee(){var e=this.getAttribute("src");G('Handling failed request for "'.concat(e,'"')),J(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var te=q()("lib/load-script/dom-operations");q()("package/load-script");function ne(e,t){var n;if(!X(e)&&(n=function(e){te('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=Q,t.onerror=ee,t}(e),te("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){Z(e,(function(e){null===e?t():n(e)}))}));Z(e,t)}var re,oe=["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"];Promise.resolve();function ie(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&ne("//stats.wp.com/w.js?61");var ae=new Y.EventEmitter;function ce(e,t){if(V('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(I.includes)(oe,e)){if(re){var n=re(t);t=Object(C.a)(Object(C.a)({},t),n)}t=Object(I.omitBy)(t,I.isUndefined),V('Recording event "%s" with actual props %o',e,t),ie(["recordEvent",e,t]),ae.emit("record-event",e,t)}else V('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var se="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),le=new Uint8Array(16);function ue(){if(!se)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return se(le)}for(var pe=[],de=0;de<256;++de)pe[de]=(de+256).toString(16).substr(1);var fe=function(e,t){var n=t||0,r=pe;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var me=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||ue)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||fe(o)};var he=function(e){var t=e.domain,n=e.cost,r=e.railcarId,o=e.isFree,i=void 0!==o&&o,a=e.isExistingSubdomain,c=void 0!==a&&a,s=e.isRecommended,d=void 0!==s&&s,f=e.onSelect,m=e.onRender,h=e.selected,b=P().__,g=t.indexOf("."),v=t.slice(0,g),y=t.slice(g),x=Object(l.useState)(),w=x[0],O=x[1],E=Object(l.useState)(),k=E[0],S=E[1],C=me();Object(l.useEffect)((function(){t!==w&&k!==r&&r&&(m(),O(t),S(r))}),[t,w,k,r,m]);return u.a.createElement("label",{className:_()("domain-picker__suggestion-item",{"is-free":i,"is-selected":h})},u.a.createElement("input",{"aria-labelledby":C,className:"domain-picker__suggestion-radio-button",type:"radio",name:"domain-picker-suggestion-option",onChange:function(){k&&function(e){ce("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:k}),f(t)},checked:h}),u.a.createElement("div",{className:"domain-picker__suggestion-item-name"},u.a.createElement("div",null,u.a.createElement("span",{className:"domain-picker__domain-name"},v),u.a.createElement("span",{className:"domain-picker__domain-tld"},y),d&&u.a.createElement("div",{className:"domain-picker__badge is-recommended"},b("Recommended"))),c&&u.a.createElement("div",{className:"domain-picker__change-subdomain-tip"},b("You can change your free subdomain later under Domain Settings."))),u.a.createElement("div",{className:_()("domain-picker__price",{"is-paid":!i})},i?b("Free"):u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"domain-picker__price-inclusive"}," ",b("Included in plans")," "),u.a.createElement("span",{className:"domain-picker__price-cost"},Object(p.sprintf)(b("%s/year"),n)))))},be=function(){return u.a.createElement("div",{className:"domain-picker__suggestion-item placeholder"},u.a.createElement("div",{className:"domain-picker__suggestion-item-name placeholder"}),u.a.createElement("div",{className:"domain-picker__price placeholder"}))};function ge(e,t){return e===t}function ve(e,t,n){var r=n&&n.equalityFn?n.equalityFn:ge,o=Object(l.useState)(e),i=o[0],a=o[1],c=function(e,t,n){void 0===n&&(n={});var r=n.maxWait,o=Object(l.useRef)(null),i=Object(l.useRef)([]),a=n.leading,c=Object(l.useRef)(!1),s=Object(l.useRef)(null),u=Object(l.useRef)(!1),p=Object(l.useRef)(e);p.current=e;var d=Object(l.useCallback)((function(){clearTimeout(s.current),clearTimeout(o.current),o.current=null,i.current=[],s.current=null,c.current=!1}),[]);return Object(l.useEffect)((function(){return function(){u.current=!0}}),[]),[Object(l.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(i.current=e,clearTimeout(s.current),!s.current&&a&&!c.current)return p.current.apply(p,e),void(c.current=!0);s.current=setTimeout((function(){d(),u.current||p.current.apply(p,e)}),t),r&&!o.current&&(o.current=setTimeout((function(){var e=i.current;d(),u.current||p.current.apply(null,e)}),r))}),[r,t,d,a]),d,function(){s.current&&(p.current.apply(null,i.current),d())}]}(Object(l.useCallback)((function(e){return a(e)}),[]),t,n),s=c[0],u=c[1],p=Object(l.useRef)(e);return Object(l.useEffect)((function(){r(p.current,e)||(s(e),p.current=e)}),[e,s,r]),[i,u]}var ye=Object(o.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(g.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),xe=(n(74),function(e){var t=e.onSelect,n=e.selected,r=P().__,a=Object(o.useState)(!1),c=a[0],s=a[1],u=function(e){s(!1),t(e)},p=Object(i.useSelect)((function(e){return e("automattic/domains/suggestions").getCategories()}));return l.createElement("div",{className:_()("domain-categories",{"is-open":c})},l.createElement(d.Button,{className:"domain-categories__dropdown-button",onClick:function(){return s(!c)}},l.createElement("span",null,n||r("All Categories")),l.createElement(U,{icon:ye,size:16})),l.createElement("ul",{className:"domain-categories__item-group"},l.createElement("li",{className:_()("domain-categories__item",{"is-selected":!n})},l.createElement(d.Button,{onClick:function(){return u()}},r("View all"))),p.map((function(e){var t=e.slug,r=e.title;return l.createElement("li",{key:t,className:_()("domain-categories__item",{"is-selected":t===n})},l.createElement(d.Button,{onClick:function(){return u(t)}},r))}))))}),_e=function(){return u.a.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"},u.a.createElement("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),u.a.createElement("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("text",{x:"80",y:"26",fill:"#999"},"https://"),u.a.createElement("text",{x:"133",y:"26",fill:"#515151"},"example.com"))},we=(n(73),function(e){var t=e.groupItems,n=e.children;return t?u.a.createElement("div",{className:"domain-picker__suggestion-item-group"},n):u.a.createElement(u.a.Fragment,null,n)}),Oe=function(e){var t,n,r=e.header,o=e.showDomainCategories,a=e.onDomainSelect,c=e.onExistingSubdomainSelect,s=e.quantity,p=void 0===s?5:s,f=e.quantityExpanded,m=void 0===f?10:f,h=e.onDomainSearchBlur,b=e.analyticsFlowId,g=e.analyticsUiAlgo,v=e.initialDomainSearch,y=void 0===v?"":v,x=e.onSetDomainSearch,_=e.currentDomain,w=e.existingSubdomain,O=e.segregateFreeAndPaid,E=void 0!==O&&O,k=P().__,S=k("Search for a domain"),C=Object(l.useState)(!1),j=C[0],N=C[1],A=Object(l.useState)(y),L=A[0],T=A[1],F=Object(l.useState)(),M=F[0],R=F[1],D=Object(i.useSelect)((function(e){return e("automattic/domains/suggestions").getDomainSuggestionVendor()})),B=function(e,t,n,r){void 0===e&&(e=""),void 0===r&&(r="en");var o=ve(e,300)[0];return Object(i.useSelect)((function(e){if(o&&!(o.length<2))return e("automattic/domains/suggestions").getDomainSuggestions(o,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n})}),[o,n,t])}(L.trim(),m,M,P().i18nLocale),z=null==B?void 0:B.slice(w?1:0,j?m:p);Object(l.useEffect)((function(){N(!1)}),[L]);var $=Object(l.useState)(),q=$[0],V=$[1];Object(l.useEffect)((function(){var e;B&&V((void 0===(e="suggestion")&&(e="recommendation"),me().replace(/-/g,"")+"-"+e))}),[B,V]);var Y=function(e,t,n,r){!function(e){ce("calypso_traintracks_render",{railcar:e.railcarId,ui_algo:e.uiAlgo,ui_position:e.uiPosition,fetch_algo:e.fetchAlgo,rec_result:e.result,fetch_query:e.query})}({uiAlgo:"/"+b+"/"+g,fetchAlgo:"/domains/search/"+D+"/"+b+(M?"/"+M:""),query:L,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})};return u.a.createElement("div",{className:"domain-picker"},r&&r,u.a.createElement("div",{className:"domain-picker__search"},u.a.createElement("div",{className:"domain-picker__search-icon"},u.a.createElement(U,{icon:H})),u.a.createElement(d.TextControl,{"data-hj-whitelist":!0,hideLabelFromVision:!0,label:S,placeholder:S,onChange:function(e){T(e),x(e)},onBlur:function(e){h&&h(e.currentTarget.value)},value:L})),(null===(t=L.trim())||void 0===t?void 0:t.length)>1?u.a.createElement("div",{className:"domain-picker__body"},o&&u.a.createElement("div",{className:"domain-picker__aside"},u.a.createElement(xe,{selected:M,onSelect:R})),u.a.createElement("div",{className:"domain-picker__suggestion-sections"},u.a.createElement(u.a.Fragment,null,E&&u.a.createElement("p",{className:"domain-picker__suggestion-group-label"},k("Keep sub-domain")),u.a.createElement(we,{groupItems:E},w&&u.a.createElement(he,{key:w,domain:w,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:q?""+q+0:void 0,onRender:function(){return Y(w,""+q+0,0,!1)},selected:_===w,onSelect:function(){null==c||c(w)}})),E&&u.a.createElement("p",{className:"domain-picker__suggestion-group-label"},k("Professional domains")),u.a.createElement(we,{groupItems:E},null!==(n=null==z?void 0:z.map((function(e,t){var n=w?t+1:t,r=1===n;return u.a.createElement(he,{key:e.domain_name,domain:e.domain_name,cost:e.cost,isFree:e.is_free,isRecommended:r,railcarId:q?""+q+n:void 0,onRender:function(){return Y(e.domain_name,""+q+n,n,r)},onSelect:function(){a(e)},selected:_===e.domain_name})})))&&void 0!==n?n:Object(I.times)(p,(function(e){return u.a.createElement(be,{key:e})})))),!j&&(null==B?void 0:B.length)&&(null==B?void 0:B.length)>p&&u.a.createElement("div",{className:"domain-picker__show-more"},u.a.createElement(d.Button,{onClick:function(){return N(!0)}},k("View more results"))))):u.a.createElement("div",{className:"domain-picker__empty-state"},u.a.createElement("p",{className:"domain-picker__empty-state--text"},k("A domain name is the site address people type in their browser to visit your site.")),u.a.createElement("div",null,u.a.createElement(_e,null))))};function Ee(){return Object(i.useSelect)((function(e){return e("automattic/site").getSite(window._currentSiteId)}))}var ke=function(e){var t,n=e.onSelect,r=Ee(),a=function(){var e=Ee();return(null==e?void 0:e.URL)&&new URL(null==e?void 0:e.URL).hostname||""}(),c=Object(i.useSelect)((function(e){return e("automattic/launch").getState()})),s=c.domain,l=c.domainSearch,u=Object(i.useDispatch)("automattic/launch"),p=u.setDomain,d=u.unsetDomain,f=u.setDomainSearch,m=null!==(t=l.trim()||(null==r?void 0:r.name))&&void 0!==t?t:"";return Object(o.createElement)(Oe,{analyticsFlowId:"gutenboarding",initialDomainSearch:m,onSetDomainSearch:f,onDomainSearchBlur:function(e){ce("calypso_newsite_domain_search_blur",{flow:"gutenboarding",query:e,where:"editor_domain_modal"})},currentDomain:(null==s?void 0:s.domain_name)||a,existingSubdomain:a,onDomainSelect:function(e){p(e),null==n||n()},onExistingSubdomainSelect:function(){d()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0})},Se=(n(75),function(e){var t=e.onNextStep,n=Object(i.useDispatch)(r).setStepComplete;return Object(o.createElement)(D,{className:"nux-launch-domain-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Choose a domain","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("Free for the first year with any paid plan","full-site-editing"))),Object(o.createElement)(L,null,Object(o.createElement)(T,{onClick:function(){n(M),null==t||t()}}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(ke,{onSelect:function(){n(M)}})))}),Ce=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),je=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Ne=l.createElement(U,{icon:Ce,size:17}),Pe=l.createElement(U,{icon:je,size:17}),Ae=l.createElement("svg",{width:"8",viewBox:"0 0 8 4"},l.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var Le=function(e){var t=e.slug,n=e.name,r=e.price,o=e.isPopular,i=void 0!==o&&o,a=e.isFree,c=void 0!==a&&a,s=e.domain,u=e.features,f=e.onSelect,m=e.onPickDomainClick,h=e.onToggleExpandAll,b=e.allPlansExpanded,g=e.disabledLabel,v=P().__,y=l.useState(!1),x=y[0],w=y[1],O=Object(j.useViewportMatch)("mobile",">="),E=function(e,t,n){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Ne,domainMessage:l.createElement(l.Fragment,null,n("Pick a free domain (1 year)")," ",Ae)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Ne,domainMessage:l.createElement(l.Fragment,null,n("Pick a free domain (1 year)")," ",Ae)}},PAID_DOMAIN:{FREE_PLAN:{className:"plan-item__domain-summary is-free",icon:Pe,domainMessage:Object(p.sprintf)(n("%s is not included"),null==t?void 0:t.domain_name)},PAID_PLAN:{className:"plan-item__domain-summary is-picked",icon:Ne,domainMessage:Object(p.sprintf)(n("%s is included"),null==t?void 0:t.domain_name)}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(c,s,v);l.useEffect((function(){w(b)}),[b]);var k=b||O||i||x;return l.createElement("div",{className:_()("plan-item",{"is-popular":i,"is-open":k})},i&&l.createElement("span",{className:"plan-item__badge"},v("Popular")),l.createElement("div",{className:_()("plan-item__viewport",{"is-popular":i})},l.createElement("div",{className:"plan-item__details"},l.createElement("div",{tabIndex:0,role:"button",onClick:function(){return w((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&w((function(e){return!e}))},className:"plan-item__summary"},l.createElement("div",{className:"plan-item__heading"},l.createElement("div",{className:"plan-item__name"},n)),l.createElement("div",{className:"plan-item__price"},l.createElement("div",{className:_()("plan-item__price-amount",{"is-loading":!r})},r||" ")),!k&&l.createElement("div",{className:"plan-item__dropdown-chevron"},Ae)),l.createElement("div",{hidden:!k},l.createElement("div",{className:"plan-item__price-note"},v(c?"free forever":"per month, billed yearly")),l.createElement("div",{className:"plan-item__actions"},l.createElement(d.Button,{className:"plan-item__select-button",onClick:function(){f(t)},isPrimary:!0,isLarge:!0,disabled:!!g},l.createElement("span",null,v("Choose")))),l.createElement("div",{className:"plan-item__features"},l.createElement("ul",{className:"plan-item__feature-item-group"},l.createElement("li",{className:"plan-item__feature-item"},g?l.createElement("span",{className:"plan-item__disabled-message"},l.createElement(d.Tip,null,g)):E&&l.createElement(d.Button,{className:E.className,onClick:m,isLink:!0},E.icon,E.domainMessage)),u.map((function(e,t){return l.createElement("li",{key:t,className:"plan-item__feature-item"},Ne," ",e)}))))))),i&&!O&&l.createElement(d.Button,{onClick:h,className:"plan-item__mobile-expand-all-plans",isLink:!0},v(b?"Collapse all plans":"Expand all plans")))},Te=(n(77),function(e){var t=e.selectedPlanSlug,n=e.onPlanSelect,r=e.onPickDomainClick,o=e.currentDomain,a=e.disabledPlans,c=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getSupportedPlans()})),s=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),p=Object(l.useState)(!1),d=p[0],f=p[1];return u.a.createElement("div",{className:"plans-table"},c.map((function(e){var i;return e&&u.a.createElement(Le,{allPlansExpanded:d,key:e.storeSlug,slug:e.storeSlug,domain:o,features:null!==(i=e.features)&&void 0!==i?i:[],isPopular:e.isPopular,isFree:e.isFree,price:s[e.storeSlug],name:null==e?void 0:e.title.toString(),isSelected:e.storeSlug===t,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return f((function(e){return!e}))},disabledLabel:null==a?void 0:a[e.storeSlug]})})))}),Fe=(n(78),u.a.createElement(U,{icon:Ce,size:25})),Me=function(e){var t=e.onSelect,n=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPlansDetails()})),r=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),o=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getSupportedPlans()})),a=P().__;return u.a.createElement("div",{className:"plans-details"},u.a.createElement("table",{className:"plans-details__table"},u.a.createElement("thead",null,u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",null,a("Feature")),o.map((function(e){return u.a.createElement("th",{key:e.storeSlug},e.title)})))),n.map((function(e){return u.a.createElement("tbody",{key:e.id},e.name&&u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",{colSpan:6},e.name)),e.features.map((function(e,t){return u.a.createElement("tr",{className:"plans-details__feature-row",key:t},u.a.createElement("th",null,e.name),e.data.map((function(t,n){return u.a.createElement("td",{key:n},"checkbox"===e.type&&(t?u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"hidden"},a("Available")),Fe):u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"hidden"},a("Unavailable")," "))),"text"===e.type&&t)})))})))})),u.a.createElement("tbody",null,u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",{colSpan:6},a("Sign up"))),u.a.createElement("tr",{className:"plans-details__feature-row",key:"price"},u.a.createElement("th",null,a("Monthly subscription (billed yearly)")),o.map((function(e){return u.a.createElement("td",{key:e.storeSlug},r[e.storeSlug])}))),u.a.createElement("tr",{className:"plans-details__feature-row",key:"cta"},u.a.createElement("th",null),o.map((function(e){return u.a.createElement("td",{key:e.storeSlug},u.a.createElement(d.Button,{onClick:function(){t(e.storeSlug)},isPrimary:!0,isLarge:!0},u.a.createElement("span",null,a("Choose"))))}))))))},Re=(n(76),function(e){var t,n=e.header,r=e.currentPlan,o=e.currentDomain,i=e.onPlanSelect,a=e.onPickDomainClick,c=e.disabledPlans,s=P().__;return l.createElement("div",{className:"plans-grid"},n&&l.createElement("div",{className:"plans-grid__header"},n),l.createElement("div",{className:"plans-grid__table"},l.createElement("div",{className:"plans-grid__table-container"},l.createElement(Te,{selectedPlanSlug:null!==(t=null==r?void 0:r.storeSlug)&&void 0!==t?t:"",onPlanSelect:i,currentDomain:o,onPickDomainClick:a,disabledPlans:c}))),l.createElement("div",{className:"plans-grid__details"},l.createElement("div",{className:"plans-grid__details-heading"},l.createElement(k,null,s("Detailed comparison"))),l.createElement("div",{className:"plans-grid__details-container"},l.createElement(Me,{onSelect:i}))))}),De=n(45),Be=function(e){var t=e.onSelect,n=Object(i.useSelect)((function(e){return e("automattic/launch").getState()})).domain,r=Object(i.useSelect)((function(e){return e("automattic/launch").getLaunchStep()})),a=Object(i.useDispatch)("automattic/launch"),c=a.updatePlan,s=a.setStep;return Object(o.createElement)(Re,{currentDomain:n,onPlanSelect:function(e){c(e),null==t||t()},onPickDomainClick:function(){s(r.Domain)},disabledPlans:n&&!n.is_free?O()({},De.Plans.PLAN_FREE,Object(p.__)("Not available with custom domain","full-site-editing")):void 0})},Ie=(n(90),function(e){var t=e.onNextStep,n=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),a=Object(i.useDispatch)(r).setStepComplete;return Object(o.createElement)(D,{className:"nux-launch-plan-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Choose a plan","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("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 30 days.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(Be,{onSelect:function(){a(n.Plan),null==t||t()}})))}),ze=n(50),Ue=n.n(ze);var He=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var $e=function(e){function t(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var l=0;l<a;++l)t[s++]=n(e[l]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===N||2===N&&o(s,1)?"-webkit-"+s+s:s}if(0===N||2===N&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(y,"tb");break;case 232:s=a.replace(y,"tb-rl");break;case 220:s=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(O,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,l,u){for(var p,d=0,f=t;d<L;++d)switch(p=A[d].call(s,e,f,n,r,o,i,a,c,l,u)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?N=1:(N=2,T=e):N=0),c}function s(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<L){var s=a(-1,n,c,c,C,S,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var p=function e(n,c,s,p,d){for(var f,m,h,y,_,w=0,O=0,E=0,k=0,A=0,T=0,M=h=f=0,R=0,D=0,B=0,I=0,z=s.length,U=z-1,H="",$="",q="",V="";R<z;){if(m=s.charCodeAt(R),R===U&&0!==O+k+E+w&&(0!==O&&(m=47===O?10:47),k=E=w=0,z++,U++),0===O+k+E+w){if(R===U&&(0<D&&(H=H.replace(u,"")),0<H.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(R)}m=59}switch(m){case 123:for(f=(H=H.trim()).charCodeAt(0),h=1,I=++R;R<z;){switch(m=s.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(R+1)){case 42:case 47:e:{for(M=R+1;M<U;++M)switch(s.charCodeAt(M)){case 47:if(42===m&&42===s.charCodeAt(M-1)&&R+2!==M){R=M+1;break e}break;case 10:if(47===m){R=M+1;break e}}R=M}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<U&&s.charCodeAt(R)!==m;);}if(0===h)break;R++}switch(h=s.substring(I,R),0===f&&(f=(H=H.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<D&&(H=H.replace(u,"")),m=H.charCodeAt(1)){case 100:case 109:case 115:case 45:D=c;break;default:D=P}if(I=(h=e(c,D,h,m,d+1)).length,0<L&&(_=a(3,h,D=t(P,H,B),c,C,S,I,m,d,p),H=D.join(""),void 0!==_&&0===(I=(h=_.trim()).length)&&(m=0,h="")),0<I)switch(m){case 115:H=H.replace(x,i);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(b,"$1 $2"))+"{"+h+"}",h=1===N||2===N&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===p&&($+=h,h="")}else h="";break;default:h=e(c,t(c,H,B),h,p,d+1)}q+=h,h=B=D=M=f=0,H="",m=s.charCodeAt(++R);break;case 125:case 59:if(1<(I=(H=(0<D?H.replace(u,""):H).trim()).length))switch(0===M&&(f=H.charCodeAt(0),45===f||96<f&&123>f)&&(I=(H=H.replace(" ",":")).length),0<L&&void 0!==(_=a(1,H,c,n,C,S,$.length,p,d,p))&&0===(I=(H=_.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),m=H.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=H+s.charAt(R);break}default:58!==H.charCodeAt(I-1)&&($+=r(H,f,m,H.charCodeAt(2)))}B=D=M=f=0,H="",m=s.charCodeAt(++R)}}switch(m){case 13:case 10:47===O?O=0:0===1+f&&107!==p&&0<H.length&&(D=1,H+="\0"),0<L*F&&a(0,H,c,n,C,S,$.length,p,d,p),S=1,C++;break;case 59:case 125:if(0===O+k+E+w){S++;break}default:switch(S++,y=s.charAt(R),m){case 9:case 32:if(0===k+w+O)switch(A){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===k+O+w&&(D=B=1,y="\f"+y);break;case 108:if(0===k+O+w+j&&0<M)switch(R-M){case 2:112===A&&58===s.charCodeAt(R-3)&&(j=A);case 8:111===T&&(j=T)}break;case 58:0===k+O+w&&(M=R);break;case 44:0===O+E+k+w&&(D=1,y+="\r");break;case 34:case 39:0===O&&(k=k===m?0:0===k?m:k);break;case 91:0===k+O+E&&w++;break;case 93:0===k+O+E&&w--;break;case 41:0===k+O+w&&E--;break;case 40:if(0===k+O+w){if(0===f)switch(2*A+3*T){case 533:break;default:f=1}E++}break;case 64:0===O+E+k+w+M+h&&(h=1);break;case 42:case 47:if(!(0<k+w+E))switch(O){case 0:switch(2*m+3*s.charCodeAt(R+1)){case 235:O=47;break;case 220:I=R,O=42}break;case 42:47===m&&42===A&&I+2!==R&&(33===s.charCodeAt(I+2)&&($+=s.substring(I,R+1)),y="",O=0)}}0===O&&(H+=y)}T=A,A=m,R++}if(0<(I=$.length)){if(D=c,0<L&&(void 0!==(_=a(2,$,D,n,C,S,I,p,d,p))&&0===($=_).length))return V+$+q;if($=D.join(",")+"{"+$+"}",0!=N*j){switch(2!==N||o($,2)||(j=0),j){case 111:$=$.replace(v,":-moz-$1")+$;break;case 112:$=$.replace(g,"::-webkit-input-$1")+$.replace(g,"::-moz-$1")+$.replace(g,":-ms-input-$1")+$}j=0}}return V+$+q}(P,c,n,0,0);return 0<L&&(void 0!==(s=a(-2,p,c,c,C,S,p.length,0,0,0))&&(p=s)),"",j=0,S=C=1,p}var l=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,w=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,S=1,C=1,j=0,N=1,P=[],A=[],L=0,T=null,F=0;return s.use=function e(t){switch(t){case void 0:case null:L=A.length=0;break;default:if("function"==typeof t)A[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},s.set=c,void 0!==e&&c(e),s},qe=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function Ve(e){e&&Ye.current.insert(e+"}")}var Ye={current:null},Ge=function(e,t,n,r,o,i,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ye.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+"/*|*/";break;case 3:switch(c){case 102:case 112:return Ye.current.insert(n[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Ve)}},We=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new $e(t);var o,i={};o=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Ge),a=function(e,t,n,o){var i=t.name;Ye.current=n,r(e,t.styles),o&&(s.inserted[i]=!0)};var s={key:n,sheet:new He({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return s};function Ke(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Xe=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Ze=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},Je={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Qe=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},et=/[A-Z]|^ms/g,tt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nt=function(e){return 45===e.charCodeAt(1)},rt=function(e){return null!=e&&"boolean"!=typeof e},ot=Qe((function(e){return nt(e)?e:e.replace(et,"-$&").toLowerCase()})),it=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(tt,(function(e,t,n){return ct={name:t,styles:n,next:ct},t}))}return 1===Je[e]||nt(e)||"number"!=typeof t||0===t?t:t+"px"};function at(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ct={name:n.name,styles:n.styles,next:ct},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ct={name:o.name,styles:o.styles,next:ct},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=at(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":rt(a)&&(r+=ot(i)+":"+it(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=at(e,t,a,!1);switch(i){case"animation":case"animationName":r+=ot(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)rt(a[s])&&(r+=ot(i)+":"+it(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=ct,a=n(e);return ct=i,at(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var ct,st=/label:\s*([^\s;\n{]+)\s*;/g;var lt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ct=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=at(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=at(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);st.lastIndex=0;for(var c,s="";null!==(c=st.exec(o));)s+="-"+c[1];return{name:Ze(o)+s,styles:o,next:ct}};var ut=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return lt(t)},pt=Object(l.createContext)("undefined"!=typeof HTMLElement?We():null),dt=Object(l.createContext)({}),ft=(pt.Provider,function(e){return Object(l.forwardRef)((function(t,n){return Object(l.createElement)(pt.Consumer,null,(function(r){return e(t,r,n)}))}))});Object.prototype.hasOwnProperty;l.Component;var mt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function ht(e,t,n){var r=[],o=Ke(e,r,n);return r.length<2?n:o+t(r)}ft((function(e,t){return Object(l.createElement)(dt.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=lt(n,t.registered);return Xe(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return ht(t.registered,r,mt(n))},theme:n},i=e.children(o);return!0,i}))}));var bt=n(15),gt=n.n(bt);n(51);function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yt=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(n,!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},xt=qe((function(e){return qe((function(t){return yt(e,t)}))})),_t=function(e){return Object(l.createElement)(dt.Consumer,null,(function(t){return e.theme!==t&&(t=xt(t)(e.theme)),Object(l.createElement)(dt.Provider,{value:t},e.children)}))};var wt=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Ot="#F6F7F7",Et="#DCDCDE",kt="#A7AAAD",St="#8E9196",Ct="#646970",jt="#2C3338",Nt="#008A20",Pt="#FFF",At="#000",Lt={colors:{background:Ot,surface:Pt,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#006088",highlightBorder:"#002C40",highlightOver:"#004E6E",success:Nt,discount:Nt,disabledPaymentButtons:Ot,disabledPaymentButtonsAccent:Et,disabledButtons:kt,borderColor:kt,borderColorLight:Et,borderColorDark:Ct,upcomingStepBackground:Et,textColor:jt,textColorLight:Ct,textColorDark:At,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:At,applePayButtonRollOverColor:jt,noticeBackground:jt,defaultNoticeIconBackground:St,textColorOnDarkBackground:Pt,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:Ot,placeHolderTextColor:St},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"}},Tt=n(29),Ft=n.n(Tt),Mt=n(14),Rt=n.n(Mt),Dt=n(5),Bt=n.n(Dt),It=n(13),zt=n.n(It),Ut=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ht=Qe((function(e){return Ut.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),$t=function(e){return"theme"!==e&&"innerRef"!==e},qt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ht:$t};function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(n,!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt=function e(t,n){var r,o,i;void 0!==n&&(r=n.label,i=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof o&&a&&(o=t.__emotion_forwardProp);var s=o||qt(c),u=!s("as");return function(){var p=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==p[0]||void 0===p[0].raw)d.push.apply(d,p);else{0,d.push(p[0][0]);for(var f=p.length,m=1;m<f;m++)d.push(p[m],p[0][m])}var h=ft((function(e,t,n){return Object(l.createElement)(dt.Consumer,null,(function(r){var a=u&&e.as||c,p="",f=[],m=e;if(null==e.theme){for(var h in m={},e)m[h]=e[h];m.theme=r}"string"==typeof e.className?p=Ke(t.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=lt(d.concat(f),t.registered,m);Xe(t,b,"string"==typeof a);p+=t.key+"-"+b.name,void 0!==i&&(p+=" "+i);var g=u&&void 0===o?qt(a):s,v={};for(var y in e)u&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=p,v.ref=n||e.innerRef,Object(l.createElement)(a,v)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=c,h.__emotion_styles=d,h.__emotion_forwardProp=o,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,void 0!==r?Yt({},n||{},{},r):n).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Gt[e]=Gt(e)}));var Wt=Gt,Kt=n(2),Xt=n.n(Kt);function Zt(e){return e.filter((function(e){return e})).join(" ")}var Jt=n(24),Qt=n.n(Jt),en=n(25),tn=n.n(en),nn=n(27),rn=n.n(nn),on=n(28),an=n.n(on);function cn(){var e=Bt()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return cn=function(){return e},e}var sn=q()("composite-checkout:checkout-error-boundary"),ln=function(e){rn()(n,e);var t=an()(n);function n(e){var r;return Qt()(this,n),(r=t.call(this,e)).state={hasError:!1,currentError:null},r}return tn()(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);sn("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?u.a.createElement(un,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(u.a.Component);function un(e){var t=e.errorMessage;return u.a.createElement(pn,null,t)}ln.propTypes={errorMessage:Xt.a.node.isRequired,onError:Xt.a.func};var pn=Wt.div(cn()),dn=Object(l.createContext)({});q()("composite-checkout:form-status");function fn(){var e=Object(l.useContext)(dn),t=e.formStatus,n=e.setFormStatus,r=Object(l.useMemo)((function(){return{setFormLoading:function(){return n("loading")},setFormReady:function(){return n("ready")},setFormSubmitting:function(){return n("submitting")},setFormValidating:function(){return n("validating")},setFormComplete:function(){return n("complete")}}}),[n]);return Object(l.useMemo)((function(){return Rt()(Rt()({},r),{},{formStatus:t})}),[t,r])}function mn(){var e=Bt()(["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"]);return mn=function(){return e},e}function hn(){var e=Bt()(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"]);return hn=function(){return e},e}function bn(){var e=Bt()(["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"]);return bn=function(){return e},e}function gn(){var e=Bt()(["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return gn=function(){return e},e}function vn(){var e=Bt()(["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"]);return vn=function(){return e},e}function yn(){var e=Bt()(["\n\tbackground: ",";\n\twidth: 100%;\n\tbox-sizing: border-box;\n\tmargin-bottom: 0;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmargin: 32px auto;\n\t\tbox-sizing: border-box;\n\t\tmax-width: 556px;\n\t}\n"]);return yn=function(){return e},e}Wt.div(yn(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight})),Wt.div(vn(),(function(e){return e.theme.colors.borderColorLight}));var xn=function(){var e=ut.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(gn()),_n=(Wt.h1(bn(),(function(e){return e.theme.weights.normal}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),xn,(function(e){return e.theme.colors.borderColorLight})),Wt.p(hn(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),xn),Wt.div(mn(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight})),q()("composite-checkout:payment-methods"));function wn(){var e=Object(l.useContext)(dn),t=e.paymentMethodId,n=e.setPaymentMethodId,r=On();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!t)return null;var o=r.find((function(e){return e.id===t}));return o||(_n("No payment method found matching id '".concat(t,"' in"),r),null)}function On(){var e=Object(l.useContext)(dn).allPaymentMethods;if(!e)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return e}var En=n(30),kn=n.n(En);function Sn(){var e=Bt()(["\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;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Sn=function(){return e},e}function Cn(e){var t=e.className,n=e.buttonType,r=e.isBusy,o=e.children,i=kn()(e,["className","buttonType","isBusy","children"]),a=Zt(["checkout-button"].concat(zt()(n?["is-status-"+n]:[]),zt()(r?["is-busy"]:[]),zt()(t?[t]:[])));return u.a.createElement(jn,gt()({buttonType:n,isBusy:r,className:a},i),o)}Cn.propTypes={buttonType:Xt.a.oneOf(["primary","secondary","text-button","borderless","paypal"]),fullWidth:Xt.a.bool,isBusy:Xt.a.bool};var jn=Wt.button(Sn(),(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"}),An,Pn,(function(e){var t=e.disabled,n=e.buttonType,r=e.theme;if(t||"text-button"===n)return r.weights.normal;return r.weights.bold}),Tn,Nn,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),Pn,(function(e){return e.disabled?"not-allowed":"pointer"}),Nn,Tn,Pn,(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"}),An,Ln,Ln,An);function Nn(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 Pn(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 An(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 Ln(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 Tn(e){return"text-button"===e.buttonType?"underline":"none"}function Fn(){var e=Bt()(["\n\tfill: #fff;\n"]);return Fn=function(){return e},e}function Mn(e){var t=e.className,n=e.id;return u.a.createElement(Rn,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},u.a.createElement("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},u.a.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"})),u.a.createElement("g",{mask:"url(#"+n+"-check-icon-mask)"},u.a.createElement("rect",{width:"20",height:"20"})))}Mn.propTypes={className:Xt.a.string,id:Xt.a.string};var Rn=Wt.svg(Fn());function Dn(e){var t=e.value,n=e.onClick,r=e.ariaLabel,o=kn()(e,["value","onClick","ariaLabel"]);return u.a.createElement(Cn,gt()({onClick:n,buttonType:"primary","aria-label":r},o),t)}var Bn=Object(l.createContext)({});function In(){var e=Object(l.useContext)(Bn),t=e.items,n=e.total;if(!t||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[t,n]}function zn(){var e=Bt()(["\n\tfont-weight: ",";\n"]);return zn=function(){return e},e}function Un(){var e=Bt()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Un=function(){return e},e}function Hn(){var e=Bt()(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"]);return Hn=function(){return e},e}function $n(){var e=Bt()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"]);return $n=function(){return e},e}function qn(){var e=Bt()(["\n\tfont-weight: ",";\n"]);return qn=function(){return e},e}function Vn(){var e=Bt()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Vn=function(){return e},e}function Yn(){var e=Bt()(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"]);return Yn=function(){return e},e}function Gn(){var e=Bt()(["\n\tmargin: 0;\n\tpadding: 0;\n"]);return Gn=function(){return e},e}Wt.ul(Gn()),Wt.li(Yn());Wt.span(Vn()),Wt.span(qn(),(function(e){return e.theme.weights.bold}));Wt.div($n(),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.weights.bold})),Wt.div(Hn(),(function(e){return e.theme.colors.borderColorLight}));var Wn=Wt.div(Un());Wt(Wn)(zn(),(function(e){return e.theme.weights.bold}));function Kn(){var e=Bt()(["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"]);return Kn=function(){return e},e}function Xn(){var e=Bt()(["\n\tmargin-bottom: 16px;\n"]);return Xn=function(){return e},e}function Zn(e){var t=e.children,n=e.className;return u.a.createElement(Jn,{className:Zt([n,"order-review-section"])},t)}Zn.propTypes={className:Xt.a.string};var Jn=Wt.div(Xn());function Qn(e){var t=e.item,n=e.className,r="checkout-line-item-".concat(t.id);return u.a.createElement("div",{className:Zt([n,"checkout-line-item"])},u.a.createElement("span",{id:r},t.label),u.a.createElement("span",{"aria-labelledby":r},t.amount.displayValue))}Qn.propTypes={className:Xt.a.string,total:Xt.a.bool,isSummaryVisible:Xt.a.bool,item:Xt.a.shape({label:Xt.a.string,amount:Xt.a.shape({displayValue:Xt.a.string})})};var er=Wt(Qn)(Kn(),(function(e){var t=e.theme;return e.total?t.weights.bold:t.weights.normal}),(function(e){var t=e.theme;return e.total?t.colors.textColorDark:"inherit"}),(function(e){return e.total?"1.2em":"1em"}),(function(e){var t=e.total;return e.isSummaryVisible||t?0:"24px 0"}),(function(e){var t=e.theme,n=e.total;return e.isSummaryVisible||n?0:"1px solid "+t.colors.borderColorLight}));function tr(e){var t=e.total,n=e.className;return u.a.createElement("div",{className:Zt([n,"order-review-total"])},u.a.createElement(er,{total:!0,item:t}))}function nr(e){var t=e.items,n=e.className,r=e.isSummaryVisible;return u.a.createElement("div",{className:Zt([n,"order-review-line-items"])},t.map((function(e){return u.a.createElement(er,{isSummaryVisible:r,key:e.id,item:e})})))}function rr(e){var t=e.className,n=In(),r=s()(n,2),o=r[0],i=r[1];return u.a.createElement("div",{className:Zt([t,"checkout-review-order"])},u.a.createElement(Zn,null,u.a.createElement(nr,{items:o})),u.a.createElement(Zn,null,u.a.createElement(tr,{total:i})))}function or(){var e=Bt()(["\n\tdisplay: ",";\n"]);return or=function(){return e},e}function ir(){var e=Bt()(["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"]);return ir=function(){return e},e}function ar(){var e=Bt()(["\n\tposition: absolute;\n\topacity: 0 !important;\n"]);return ar=function(){return e},e}function cr(){var e=Bt()(["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"]);return cr=function(){return e},e}function sr(e){var t=e.checked,n=e.name,r=e.value,o=e.onChange,i=e.children,a=e.label,c=e.disabled,p=e.id,d=e.ariaLabel,f=Object(l.useState)(!1),m=s()(f,2),h=m[0],b=m[1];return u.a.createElement(lr,{disabled:c,isFocused:h,checked:t},u.a.createElement(ur,{type:"radio",name:n,id:p,disabled:c,value:r,checked:t,onChange:o,onFocus:function(){b(!0)},onBlur:function(){b(!1)},readOnly:!o,"aria-label":d}),u.a.createElement(pr,{checked:t,htmlFor:p,disabled:c},a),i&&u.a.createElement(dr,{checked:t},i))}nr.propTypes={className:Xt.a.string,isSummaryVisible:Xt.a.bool,items:Xt.a.arrayOf(Xt.a.shape({label:Xt.a.string,amount:Xt.a.shape({displayValue:Xt.a.string})}))},rr.propTypes={className:Xt.a.string},Xt.a.shape({label:Xt.a.string,amount:Xt.a.shape({displayValue:Xt.a.string})}),sr.propTypes={name:Xt.a.string.isRequired,id:Xt.a.string.isRequired,label:Xt.a.node.isRequired,disabled:Xt.a.bool,checked:Xt.a.bool,value:Xt.a.string.isRequired,onChange:Xt.a.func,ariaLabel:Xt.a.string.isRequired};var lr=Wt.div(cr(),(function(e){var t=e.isFocused,n=e.theme;if(t)return n.colors.outline+" solid 2px";return"0"}),(function(e){return e.checked?"3px":"1px"}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.borderColor}),(function(e){return e.theme.colors.highlight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),fr,(function(e){return e.theme.breakpoints.smallPhoneUp}),fr,(function(e){if(!e.disabled)return null;return"\n\t\t::before,\n\t\t:hover::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t}\n\n\t\tsvg,\n\t\t:hover svg {\n\t\t\tfilter: grayscale( 100% );\n\t\t\topacity: 50%;\n\t\t}\n\t"}));var ur=Wt.input(ar()),pr=Wt.label(ir(),(function(e){return e.theme.colors.borderColor}),(function(e){return e.theme.colors.surface}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.surface}),(function(e){if(!e.disabled)return null;return"\n\t\tcolor: lightgray;\n\t\tfont-style: italic;\n\n\t\t:hover {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t\tbackground: lightgray;\n\t\t}\n\n\t\t::after {\n\t\t\tbackground: white;\n\t\t}\n\n\t\tspan {\n\t\t\tcolor: lightgray;\n\t\t}\n\t"}));var dr=Wt.div(or(),(function(e){return e.checked?"block":"none"}));function fr(e){return e.checked?0:"100%"}function mr(){var e=Object(l.useContext)(dn).onEvent;if(!e)throw new Error("useEvents can only be used inside a CheckoutProvider");return e}function hr(){var e=Bt()(["\n\tmargin-bottom: 16px;\n"]);return hr=function(){return e},e}var br=q()("composite-checkout:checkout-payment-methods");function gr(e){var t=e.summary,n=e.isComplete,r=e.className,o=P().__,i=mr(),a=Object(l.useCallback)((function(e){return i({type:"PAYMENT_METHOD_LOAD_ERROR",payload:e})}),[i]),c=wn(),d=function(){var e=Object(l.useContext)(dn),t=e.paymentMethodId,n=e.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[t,n]}(),f=s()(d,2)[1],m=function(e){br("setting payment method to",e),i({type:"PAYMENT_METHOD_SELECT",payload:e}),f(e)},h=On();return t&&n&&c?(br("rendering selected paymentMethod",c),u.a.createElement("div",{className:Zt([r,"checkout-payment-methods"])},u.a.createElement(ln,{errorMessage:o("There was a problem with this payment method."),onError:a},u.a.createElement(vr,gt()({},c,{checked:!0,summary:!0,ariaLabel:c.getAriaLabel(o)}))))):t?(br("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",c),null):(br("rendering paymentMethods",h),u.a.createElement("div",{className:Zt([r,"checkout-payment-methods"])},u.a.createElement(yr,null,h.map((function(e){return u.a.createElement(ln,{key:e.id,errorMessage:Object(p.sprintf)(o("There was a problem with the payment method: %s"),e.id),onError:a},u.a.createElement(vr,gt()({},e,{checked:(null==c?void 0:c.id)===e.id,onClick:m,ariaLabel:e.getAriaLabel(o)})))})))))}function vr(e){var t=e.id,n=e.label,r=e.activeContent,o=e.inactiveContent,i=e.checked,a=e.onClick,c=e.ariaLabel,s=e.summary,l=fn().formStatus;return s?o:u.a.createElement(sr,{name:"paymentMethod",value:t,id:t,checked:i,disabled:"ready"!==l,onChange:a?function(){return a(t)}:null,ariaLabel:c,label:n},r&&r)}gr.propTypes={summary:Xt.a.bool,isComplete:Xt.a.bool.isRequired,className:Xt.a.string},vr.propTypes={id:Xt.a.string.isRequired,onClick:Xt.a.func,checked:Xt.a.bool.isRequired,ariaLabel:Xt.a.string.isRequired,activeContent:Xt.a.node,label:Xt.a.node,inactiveContent:Xt.a.node,summary:Xt.a.bool};var yr=Wt.div(hr());function xr(){var e=Bt()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return xr=function(){return e},e}function _r(){var e=Bt()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return _r=function(){return e},e}function wr(){var e=Bt()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return wr=function(){return e},e}function Or(){var e=Bt()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return Or=function(){return e},e}function Er(){var e=Bt()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return Er=function(){return e},e}function kr(){var e=Bt()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return kr=function(){return e},e}function Sr(){var e=Bt()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return Sr=function(){return e},e}function Cr(){var e=Bt()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return Cr=function(){return e},e}function jr(){var e=Bt()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: ",";\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return jr=function(){return e},e}function Nr(){var e=Bt()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return Nr=function(){return e},e}function Pr(){var e=Bt()(["\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: 100%;\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\twidth: calc( 100% - 60px );\n\t\t}\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\n\t\t\t.checkout-button {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"]);return Pr=function(){return e},e}function Ar(){var e=Bt()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return Ar=function(){return e},e}function Lr(){var e=Bt()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left; 0;\n\t\t}\n\t}\n"]);return Lr=function(){return e},e}function Tr(){var e=Bt()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return Tr=function(){return e},e}function Fr(){var e=Bt()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return Fr=function(){return e},e}function Mr(){var e=Bt()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return Mr=function(){return e},e}var Rr=q()("composite-checkout:checkout"),Dr=u.a.createContext(),Br=u.a.createContext();function Ir(e){var t=e.children,n=e.className;return u.a.createElement(Vr,{className:Zt([n,"checkout__summary-area"])},t)}var zr=Wt.div(Mr(),(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}));function Ur(e){var t=e.children,n=e.areStepsActive,r=void 0===n||n,o=0,i=1,a=u.a.Children.toArray(t).filter((function(e){return e})),c=a.length,s=Object(l.useContext)(Dr),p=s.activeStepNumber,d=s.stepCompleteStatus,f=s.setTotalSteps;return Object(l.useEffect)((function(){f(c)}),[c,f]),Rr("active step",p,"step complete status",d,"total steps",c),a.map((function(e){i=(o=i)===c?null:o+1;var t=r&&p===o,n=!!d[o];return u.a.createElement(Br.Provider,{key:"checkout-step-"+o,value:{stepNumber:o,nextStepNumber:i,isStepActive:t,isStepComplete:n,areStepsActive:r}},e)}))}function Hr(e){var t=e.activeStepContent,n=e.completeStepContent,r=e.titleContent,o=e.stepId,i=e.className,a=e.isCompleteCallback,c=e.editButtonText,s=e.editButtonAriaLabel,p=e.nextStepButtonText,d=e.nextStepButtonAriaLabel,f=e.validatingButtonText,m=e.validatingButtonAriaLabel,h=P().__,b=Object(l.useContext)(Dr),g=b.setActiveStepNumber,v=b.setStepCompleteStatus,y=b.stepCompleteStatus,x=Object(l.useContext)(Br),_=x.stepNumber,w=x.nextStepNumber,E=x.isStepActive,k=x.isStepComplete,S=x.areStepsActive,C=fn(),j=C.formStatus,N=C.setFormValidating,A=C.setFormReady,L=mr(),T=wn(),F=function(e){var t,n;(t=!!e,v(Rt()(Rt()({},y),{},O()({},_,t))),e)&&(L({type:"STEP_NUMBER_CHANGED",payload:{stepNumber:w,previousStepNumber:_,paymentMethodId:null!==(n=null==T?void 0:T.id)&&void 0!==n?n:""}}),ao(w),g(w));A()},M=function(){var e=Ft()(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=a()).then){e.next=8;break}return N(),e.next=5,t;case 5:return n=e.sent,F(n),e.abrupt("return");case 8:F(t);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=["checkout-step"].concat(zt()(E?["is-active"]:[]),zt()(k?["is-complete"]:[]),zt()(i?[i]:[])),D=Object(l.useCallback)((function(e){return L({type:"STEP_LOAD_ERROR",payload:{message:e,stepId:o}})}),[L,o]);return u.a.createElement($r,{onError:D,editButtonText:c||h("Edit"),editButtonAriaLabel:s||h("Edit this step"),nextStepButtonText:p||h("Continue"),nextStepButtonAriaLabel:d||h("Continue to the next step"),validatingButtonText:f||h("Please wait…"),validatingButtonAriaLabel:m||h("Please wait…"),isStepActive:E,isStepComplete:k,stepNumber:_,stepId:o,titleContent:r,goToThisStep:S?function(){return g(_)}:void 0,goToNextStep:w>0?M:void 0,activeStepContent:t,formStatus:j,completeStepContent:n,className:Zt(R)})}function $r(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,o=e.nextStepButtonText,i=e.validatingButtonText,a=e.nextStepButtonAriaLabel,c=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,p=e.className,d=e.stepNumber,f=e.stepId,m=e.titleContent,h=e.goToThisStep,b=e.goToNextStep,g=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,x=e.onError,_=P().__;return u.a.createElement(ln,{errorMessage:t||_("There was an error with this step."),onError:x},u.a.createElement(Wr,{isActive:s,isComplete:l,className:p},u.a.createElement(Kr,{id:f,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:"ready"===v&&l&&h&&!s?h:null,editButtonText:n||_("Edit"),editButtonAriaLabel:r||_("Edit this step")}),u.a.createElement(oo,{isVisible:s,className:"checkout-steps__step-content"},g,b&&s&&u.a.createElement(Dn,{onClick:b,value:"validating"===v?i||_("Please wait…"):o||_("Continue"),ariaLabel:"validating"===v?c||_("Please wait…"):a||_("Continue to next step"),buttonType:"primary",disabled:"ready"!==v,isBusy:"validating"===v})),l&&y?u.a.createElement(io,{isVisible:!s,className:"checkout-steps__step-complete-content"},y):null))}Hr.propTypes={submitButtonHeader:Xt.a.node},Ur.propTypes={areStepsActive:Xt.a.bool},Hr.propTypes={nextStepNumber:Xt.a.number},$r.propTypes={errorMessage:Xt.a.string,onError:Xt.a.func,editButtonAriaLabel:Xt.a.string,editButtonText:Xt.a.string,nextStepButtonText:Xt.a.string,nextStepButtonAriaLabel:Xt.a.string,isStepActive:Xt.a.bool.isRequired,isStepComplete:Xt.a.bool.isRequired,className:Xt.a.string,stepNumber:Xt.a.number,stepId:Xt.a.string.isRequired,titleContent:Xt.a.node.isRequired,goToThisStep:Xt.a.func,goToNextStep:Xt.a.func,activeStepContent:Xt.a.node,formStatus:Xt.a.string,completeStepContent:Xt.a.node};Wt.div(Fr(),(function(e){return e.theme.colors.outline}));var qr=Wt.div(Tr(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Vr=Wt.div(Lr(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Yr=Wt.div(Ar(),(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})),Gr=Wt.div(Pr(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Wr=Wt.div(Nr(),(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}));function Kr(e){var t=e.id,n=e.className,r=e.stepNumber,o=e.title,i=e.isActive,a=e.isComplete,c=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,p=P().__,d=!!c;return u.a.createElement(Jr,{isComplete:a,isActive:i,className:Zt([n,"checkout-step__header"])},u.a.createElement(Xr,{isComplete:a,isActive:i,id:t},r||null),u.a.createElement(Zr,{fullWidth:!d,isActive:i},o),d&&u.a.createElement(ro,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||p("Edit this step")},s||p("Edit")))}function Xr(e){var t=e.isComplete,n=e.isActive,r=e.className,o=e.children,i=e.id,a=!n&&t;return u.a.createElement(Qr,{className:Zt([r,"checkout-step__stepper"])},u.a.createElement(eo,{isComplete:a},u.a.createElement(to,{isComplete:a,isActive:n},o),u.a.createElement(no,null,u.a.createElement(Mn,{id:i}))))}Kr.propTypes={id:Xt.a.string,className:Xt.a.string,title:Xt.a.node.isRequired,isActive:Xt.a.bool,isComplete:Xt.a.bool,editButtonText:Xt.a.string,editButtonAriaLabel:Xt.a.string,onEdit:Xt.a.func},Xr.propTypes={id:Xt.a.string,className:Xt.a.string,isComplete:Xt.a.bool,isActive:Xt.a.bool};var Zr=Wt.span(jr(),(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?"1":"inherit"}),(function(e){return e.fullWidth?"0":"8px"})),Jr=Wt.h2(Cr(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),Qr=Wt.div(Sr()),eo=Wt.div(kr(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),to=Wt.div(Er(),(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"})),no=Wt(to)(Or(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"})),ro=Wt(Cn)(wr());var oo=Wt.div(_r(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),io=Wt.div(xr(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function ao(e){var t;if(null===(t=window.history)||void 0===t?void 0:t.pushState){var n=e>1?"#step".concat(e):"";if(window.location.hash!==n){var r=window.location.hash?window.location.href.replace(window.location.hash,n):window.location.href+n;Rr("updating url to",r),window.history.pushState(null,null,r)}}}function co(){var e=Object(i.useSelect)((function(e){return e("automattic/site").getSite(window._currentSiteId)})),t=Object(i.useSelect)((function(e){return e("automattic/site").isLaunched(window._currentSiteId)}));return{isFreePlan:null==e?void 0:e.plan.is_free,launchStatus:t,currentDomainName:(null==e?void 0:e.URL)&&new URL(null==e?void 0:e.URL).hostname}}n(93);var so,lo,uo=Object(o.createElement)(b,{icon:wt,size:17}),po=function(e){var t,n,a=e.onNextStep,c=Object(E.useEntityProp)("root","site","title"),l=s()(c,1)[0],u=co().currentDomainName,f=Object(i.useSelect)((function(e){return e(r).getSelectedDomain()})),m=Object(i.useSelect)((function(e){return e(r).getSelectedPlan()})),h=Object(i.useSelect)((function(e){return e(r).getState()})).completedSteps,b=Object(i.useDispatch)(r).setStep,g=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),v=(n=Object(i.useSelect)((function(e){return e(r).getState()})).domainSearch,null===(t=Object(i.useSelect)((function(e){if(n&&!(n.length<2))return e("automattic/domains/suggestions").getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:"en"})}),[n]))||void 0===t?void 0:t[0]),y=Object(o.createElement)("div",{className:"nux-launch__summary-item"},Object(o.createElement)("p",null,Object(p.__)("Site","full-site-editing"),": ",l)),x=Object(o.createElement)("div",{className:"nux-launch__summary-item"},(null==f?void 0:f.domain_name)?Object(o.createElement)("p",null,Object(p.__)("Custom domain","full-site-editing"),": ",f.domain_name):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(p.__)("Free site address","full-site-editing"),": ",u),Object(o.createElement)(d.Tip,null,Object(o.createInterpolateElement)(Object(p.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:Object(o.createElement)("span",{className:_()("nux-launch__summary-item__domain-name",{"is-loading":!v})},(null==v?void 0:v.domain_name)||"loading-example.com"),Link:Object(o.createElement)(d.Button,{isLink:!0,onClick:function(){return b(M)}})})))),w=Object(o.createElement)("div",{className:"nux-launch__summary-item"},m&&!(null==m?void 0:m.isFree)?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",m.title),Object(p.__)("Plan subscription","full-site-editing"),": ",g[m.storeSlug]," ",Object(p.__)("per month, billed yearly","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(o.createElement)("p",null,Object(p.__)("Plan subscription: Free forever","full-site-editing")),Object(o.createElement)(d.Tip,null,Object(o.createInterpolateElement)(Object(p.__)("<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 30-day full-refunds, guaranteed.","full-site-editing"),{Link:Object(o.createElement)(d.Button,{isLink:!0,onClick:function(){return b(R)}})}))));return Object(o.createElement)(D,{className:"nux-launch-final-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Launch your site","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(_t,{theme:Lt},Object(o.createElement)(qr,null,h.includes(R)&&Object(o.createElement)(Ir,null,Object(o.createElement)(zr,{className:"nux-launch__feature-list"},Object(o.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(p.__)("Included in your plan","full-site-editing")),Object(o.createElement)("ul",{className:"nux-launch__feature-item-group"},null==m?void 0:m.features.map((function(e,t){return Object(o.createElement)("li",{key:t,className:"nux-launch__feature-item"},uo," ",e)}))),Object(o.createElement)("p",null,Object(p.__)("Questions?","full-site-editing")," ",Object(o.createElement)(d.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(p.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(o.createElement)(Yr,null,Object(o.createElement)($r,{titleContent:Object(p.__)("Your site name","full-site-editing"),isStepComplete:h.includes(F),goToThisStep:function(){return b(F)},completeStepContent:y,stepId:"name",formStatus:"ready"}),Object(o.createElement)($r,{titleContent:Object(p.__)("Your domain","full-site-editing"),isStepComplete:h.includes(M),goToThisStep:function(){return b(M)},completeStepContent:x,stepId:"domain",formStatus:"ready"}),Object(o.createElement)($r,{titleContent:Object(p.__)("Your plan","full-site-editing"),isStepComplete:h.includes(R),goToThisStep:function(){return b(R)},completeStepContent:w,stepId:"plan",formStatus:"ready"}),Object(o.createElement)(Gr,null,Object(o.createElement)(d.Button,{isPrimary:!0,disabled:h.length<3,onClick:a,className:"nux-launch__submit-button"},Object(p.__)("Launch your site","full-site-editing"))))))))},fo=(n(97),function(e){var t,n=e.onSubmit,a=Object(i.useSelect)((function(e){return e(r).getState()})).step,c=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),s=Object(i.useSelect)((function(e){return e(r).getLaunchSequence()})),l=Object(i.useDispatch)(r).setStep,u=(t={},O()(t,c.Name,B),O()(t,c.Domain,Se),O()(t,c.Plan,Ie),O()(t,c.Final,po),t),p=s.indexOf(a),d=u[a];return Object(o.createElement)("div",{className:"nux-launch"},Object(o.createElement)(E.EntityProvider,{kind:"root",type:"site"},Object(o.createElement)(d,{onPrevStep:function(){var e=p-1;e<0&&(e=0),l(s[e])},onNextStep:function(){var e=p+1;e>s.length-1&&(null==n||n()),l(s[e])}})))}),mo=Object(o.createElement)(d.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(d.Circle,{cx:"12",cy:"12",r:"5"})),ho=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,a=e.onClick;return Object(o.createElement)(d.Button,{className:_()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:a,disabled:i,isLink:!0},Object(o.createElement)(b,{icon:n?wt:mo,size:16}),Object(o.createElement)("span",null,t))},bo=(n(98),function(){var e,t=Object(i.useSelect)((function(e){return e(r).getState()})),n=t.step,a=t.completedSteps,c=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),s=Object(i.useSelect)((function(e){return e(r).getLaunchSequence()})),l=(e={},O()(e,c.Name,Object(p.__)("Name your site","full-site-editing")),O()(e,c.Domain,Object(p.__)("Select a domain","full-site-editing")),O()(e,c.Plan,Object(p.__)("Select a plan","full-site-editing")),O()(e,c.Final,Object(p.__)("Launch your site","full-site-editing")),e),u=Object(i.useDispatch)(r).setStep;return Object(o.createElement)("div",{className:"nux-launch-menu"},Object(o.createElement)("h4",null,Object(p.__)("Site Launch Steps","full-site-editing")),Object(o.createElement)("div",{className:"nux-launch-menu__item-group"},s.map((function(e){return Object(o.createElement)(ho,{title:l[e],isCompleted:a.includes(e),isCurrent:e===n,onClick:function(){return u(e)},isDisabled:e===c.Final&&!a.length})}))))}),go=(n(99),function(){return Object(o.createElement)("div",{className:"nux-launch-sidebar"},Object(o.createElement)("h2",null,Object(p.__)("You're almost there!","full-site-editing")),Object(o.createElement)("h3",null,Object(p.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing")),Object(o.createElement)(bo,null))}),vo=(n(100),function(e){var t=e.onClose,n=Object(i.useSelect)((function(e){return e(r).getState()})).step,a=Object(i.useDispatch)(r).launchSite,c=l.useState(!1),u=s()(c,2),f=u[0],m=u[1],h=function(){m(!0),a()};return co().isFreePlan||f||h(),Object(o.createElement)(d.Modal,{open:!0,className:_()("nux-launch-modal","step-".concat(n)),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},f?Object(o.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(p.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"nux-launch-modal-header"},Object(o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(o.createElement)(b,{icon:v,size:36}))),Object(o.createElement)("div",{className:"nux-launch-modal-body"},Object(o.createElement)(fo,{onSubmit:h})),Object(o.createElement)("div",{className:"nux-launch-modal-aside"},Object(o.createElement)(d.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":Object(p.__)("Close dialog","full-site-editing"),disabled:!t},Object(o.createElement)(b,{icon:y,size:24})),Object(o.createElement)(go,null))))});so="a8c-editor-site-launch",lo={render:function(){var e=Object(i.useSelect)((function(e){return e(r).getState()})).isSidebarOpen,t=Object(i.useDispatch)(r).closeSidebar;return function(){var e=co().launchStatus,t=Object(i.useSelect)((function(e){return e(r).getState()})),n=t.plan,o=t.domain,a=Object(i.useDispatch)("automattic/site"),c=a.getCart,s=a.setCart;l.useEffect((function(){if(e){if(n&&!(null==n?void 0:n.isFree)){var t={product_id:n.productId,product_slug:n.storeSlug,extra:{source:"gutenboarding"}},r={meta:null==o?void 0:o.domain_name,product_id:null==o?void 0:o.product_id,extra:{privacy_available:null==o?void 0:o.supports_privacy,privacy:null==o?void 0:o.supports_privacy,source:"gutenboarding"}};return void function(){var e=Ft()(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(window._currentSiteId);case 2:return n=e.sent,e.next=5,s(window._currentSiteId,Rt()(Rt()({},n),{},{products:[].concat(zt()(n.products),[t,r])}));case 5:window.top.location.href="https://wordpress.com/checkout/".concat(window._currentSiteId,"?preLaunch=1");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}window.top.location.href="https://wordpress.com/home/".concat(window._currentSiteId)}}),[e])}(),e?Object(o.createElement)(vo,{onClose:t}):null}},Object(a.registerPlugin)(so,lo)}]));
|
37 |
*
|
38 |
* This source code is licensed under the MIT license found in the
|
39 |
* LICENSE file in the root directory of this source tree.
|
40 |
+
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,p=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case p:case d:case a:case s:case c:case m:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case b:case l:return e;default:return t}}case i:return t}}}function O(e){return w(e)===d}t.AsyncMode=p,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=b,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return O(e)||w(e)===p},t.isConcurrentMode=O,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===b},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===s||e===c||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},function(e,t,n){},function(e,t,n){"use strict";var r=n(95);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(33);var r="automattic/launch",o=n(1),i=n(3),a=n(43),c=n(7),s=n.n(c),l=n(0),u=n.n(l),p=n(4),d=n(6);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var b=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=m(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},g=n(11),v=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(o.createElement)(g.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),y=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),x=n(9),_=n.n(x),w=n(8),O=n.n(w),E=n(17),k=(n(66),function(e){var t=e.children;return l.createElement("h1",{className:"onboarding-title"},t)}),S=function(e){var t=e.children;return l.createElement("h2",{className:"onboarding-subtitle"},t)},C=n(10),j=n(18),N=l.createContext(A()),P=function(){return l.useContext(N)};Object(j.createHigherOrderComponent)((function(e){return function(t){var n=P();return l.createElement(e,Object(C.a)({},n,t))}}),"withI18n");function A(e){var t,n,r=Object(p.createI18n)(e),o=null!==(n=null===(t=null==e?void 0:e[""])||void 0===t?void 0:t.localeSlug)&&void 0!==n?n:"en";return{__:r.__.bind(r),_n:r._n.bind(r),_nx:r._nx.bind(r),_x:r._x.bind(r),isRTL:r.isRTL.bind(r),i18nLocale:o}}n(67);var L=function(e){var t=e.className,n=e.children;return l.createElement("div",{className:_()("action-buttons",t)},n)},T=function(e){var t=e.className,n=e.children,r=Object(C.c)(e,["className","children"]),o=P().__;return l.createElement(d.Button,Object(C.a)({className:_()("action_buttons__button action-buttons__next",t),isPrimary:!0},r),n||o("Continue"))},F="name",M="domain",R="plan",D=(n(64),function(e){var t=e.className,n=e.children;return Object(o.createElement)("div",{className:_()("nux-launch-step",t)},n)}),B=(n(65),function(e){var t=e.onNextStep,n=Object(i.useSelect)((function(e){return e(r).getSelectedDomain()})),a=Object(i.useDispatch)(r),c=a.setStepComplete,l=a.setStepIncomplete,u=a.setDomainSearch,f=Object(E.useEntityProp)("root","site","title"),m=s()(f,2),h=m[0],b=m[1],g=Object(i.useDispatch)("core").saveEditedEntityRecord,v=function(){var e=h.trim();b(e),g("root","site"),!n&&u(e),e?c(F):l(F)},y=function(){v(),null==t||t()};return Object(o.createElement)(D,{className:"nux-launch-name-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Name your site","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("Pick a name for your site.","full-site-editing"))),Object(o.createElement)(L,null,Object(o.createElement)(T,{onClick:y,disabled:!(null==h?void 0:h.trim())}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)("form",{onSubmit:y},Object(o.createElement)(d.TextControl,{id:"nux-launch-step__input",className:"nux-launch-step__input",onChange:b,onBlur:v,value:h,spellCheck:!1,autoComplete:"off",placeholder:Object(p.__)("Enter site name","full-site-editing"),autoCorrect:"off","data-hj-whitelist":!0}),Object(o.createElement)("p",{className:"nux-launch-step__input-hint"},Object(o.createElement)(d.Tip,{size:18}),Object(o.createElement)("span",null,Object(p.__)("Don't worry, you can change it later.","full-site-editing"))))))}),I=n(16);function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var U=function(e){var t=e.icon,n=e.size,r=void 0===n?24:n,i=m(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:r,height:r},i))},H=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),$=n(12),q=n.n($),V=q()("calypso:analytics");n(44);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));n(31);var Y=n(20),G=q()("lib/load-script/callback-handler"),W=new Map;function K(){return W}function X(e){return K().has(e)}function Z(e,t){var n=K();X(e)?(G('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(G('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=K(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));G(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function Q(){var e=this.getAttribute("src");G('Handling successful request for "'.concat(e,'"')),J(e),this.onload=null}function ee(){var e=this.getAttribute("src");G('Handling failed request for "'.concat(e,'"')),J(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var te=q()("lib/load-script/dom-operations");q()("package/load-script");function ne(e,t){var n;if(!X(e)&&(n=function(e){te('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=Q,t.onerror=ee,t}(e),te("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){Z(e,(function(e){null===e?t():n(e)}))}));Z(e,t)}var re,oe=["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"];Promise.resolve();function ie(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&ne("//stats.wp.com/w.js?61");var ae=new Y.EventEmitter;function ce(e,t){if(V('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(I.includes)(oe,e)){if(re){var n=re(t);t=Object(C.a)(Object(C.a)({},t),n)}t=Object(I.omitBy)(t,I.isUndefined),V('Recording event "%s" with actual props %o',e,t),ie(["recordEvent",e,t]),ae.emit("record-event",e,t)}else V('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}var se="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),le=new Uint8Array(16);function ue(){if(!se)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return se(le)}for(var pe=[],de=0;de<256;++de)pe[de]=(de+256).toString(16).substr(1);var fe=function(e,t){var n=t||0,r=pe;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var me=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||ue)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||fe(o)};var he=function(e){var t=e.domain,n=e.cost,r=e.railcarId,o=e.isFree,i=void 0!==o&&o,a=e.isExistingSubdomain,c=void 0!==a&&a,s=e.isRecommended,d=void 0!==s&&s,f=e.onSelect,m=e.onRender,h=e.selected,b=P().__,g=t.indexOf("."),v=t.slice(0,g),y=t.slice(g),x=Object(l.useState)(),w=x[0],O=x[1],E=Object(l.useState)(),k=E[0],S=E[1],C=me();Object(l.useEffect)((function(){t!==w&&k!==r&&r&&(m(),O(t),S(r))}),[t,w,k,r,m]);return u.a.createElement("label",{className:_()("domain-picker__suggestion-item",{"is-free":i,"is-selected":h})},u.a.createElement("input",{"aria-labelledby":C,className:"domain-picker__suggestion-radio-button",type:"radio",name:"domain-picker-suggestion-option",onChange:function(){k&&function(e){ce("calypso_traintracks_interact",{railcar:e.railcarId,action:e.action})}({action:"domain_selected",railcarId:k}),f(t)},checked:h}),u.a.createElement("div",{className:"domain-picker__suggestion-item-name"},u.a.createElement("div",null,u.a.createElement("span",{className:"domain-picker__domain-name"},v),u.a.createElement("span",{className:"domain-picker__domain-tld"},y),d&&u.a.createElement("div",{className:"domain-picker__badge is-recommended"},b("Recommended"))),c&&u.a.createElement("div",{className:"domain-picker__change-subdomain-tip"},b("You can change your free subdomain later under Domain Settings."))),u.a.createElement("div",{className:_()("domain-picker__price",{"is-paid":!i})},i?b("Free"):u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"domain-picker__price-inclusive"}," ",b("Included in plans")," "),u.a.createElement("span",{className:"domain-picker__price-cost"},Object(p.sprintf)(b("%s/year"),n)))))},be=function(){return u.a.createElement("div",{className:"domain-picker__suggestion-item placeholder"},u.a.createElement("div",{className:"domain-picker__suggestion-item-name placeholder"}),u.a.createElement("div",{className:"domain-picker__price placeholder"}))};function ge(e,t){return e===t}function ve(e,t,n){var r=n&&n.equalityFn?n.equalityFn:ge,o=Object(l.useState)(e),i=o[0],a=o[1],c=function(e,t,n){void 0===n&&(n={});var r=n.maxWait,o=Object(l.useRef)(null),i=Object(l.useRef)([]),a=n.leading,c=Object(l.useRef)(!1),s=Object(l.useRef)(null),u=Object(l.useRef)(!1),p=Object(l.useRef)(e);p.current=e;var d=Object(l.useCallback)((function(){clearTimeout(s.current),clearTimeout(o.current),o.current=null,i.current=[],s.current=null,c.current=!1}),[]);return Object(l.useEffect)((function(){return function(){u.current=!0}}),[]),[Object(l.useCallback)((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(i.current=e,clearTimeout(s.current),!s.current&&a&&!c.current)return p.current.apply(p,e),void(c.current=!0);s.current=setTimeout((function(){d(),u.current||p.current.apply(p,e)}),t),r&&!o.current&&(o.current=setTimeout((function(){var e=i.current;d(),u.current||p.current.apply(null,e)}),r))}),[r,t,d,a]),d,function(){s.current&&(p.current.apply(null,i.current),d())}]}(Object(l.useCallback)((function(e){return a(e)}),[]),t,n),s=c[0],u=c[1],p=Object(l.useRef)(e);return Object(l.useEffect)((function(){r(p.current,e)||(s(e),p.current=e)}),[e,s,r]),[i,u]}var ye=Object(o.createElement)(g.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(o.createElement)(g.Path,{d:"M17 9.4L12 14 7 9.4l-1 1.2 6 5.4 6-5.4z"})),xe=(n(74),function(e){var t=e.onSelect,n=e.selected,r=P().__,a=Object(o.useState)(!1),c=a[0],s=a[1],u=function(e){s(!1),t(e)},p=Object(i.useSelect)((function(e){return e("automattic/domains/suggestions").getCategories()}));return l.createElement("div",{className:_()("domain-categories",{"is-open":c})},l.createElement(d.Button,{className:"domain-categories__dropdown-button",onClick:function(){return s(!c)}},l.createElement("span",null,n||r("All Categories")),l.createElement(U,{icon:ye,size:16})),l.createElement("ul",{className:"domain-categories__item-group"},l.createElement("li",{className:_()("domain-categories__item",{"is-selected":!n})},l.createElement(d.Button,{onClick:function(){return u()}},r("View all"))),p.map((function(e){var t=e.slug,r=e.title;return l.createElement("li",{key:t,className:_()("domain-categories__item",{"is-selected":t===n})},l.createElement(d.Button,{onClick:function(){return u(t)}},r))}))))}),_e=function(){return u.a.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"},u.a.createElement("rect",{x:"0",width:"310",height:"50",rx:"10",fill:"#D8D8D8"}),u.a.createElement("rect",{x:"8",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("rect",{x:"40",y:"8",width:"25",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("rect",{x:"72",y:"8",width:"300",height:"25",rx:"5",fill:"#fff"}),u.a.createElement("text",{x:"80",y:"26",fill:"#999"},"https://"),u.a.createElement("text",{x:"133",y:"26",fill:"#515151"},"example.com"))},we=(n(73),function(e){var t=e.groupItems,n=e.children;return t?u.a.createElement("div",{className:"domain-picker__suggestion-item-group"},n):u.a.createElement(u.a.Fragment,null,n)}),Oe=function(e){var t,n,r=e.header,o=e.showDomainCategories,a=e.onDomainSelect,c=e.onExistingSubdomainSelect,s=e.quantity,p=void 0===s?5:s,f=e.quantityExpanded,m=void 0===f?10:f,h=e.onDomainSearchBlur,b=e.analyticsFlowId,g=e.analyticsUiAlgo,v=e.initialDomainSearch,y=void 0===v?"":v,x=e.onSetDomainSearch,_=e.currentDomain,w=e.existingSubdomain,O=e.segregateFreeAndPaid,E=void 0!==O&&O,k=P().__,S=k("Search for a domain"),C=Object(l.useState)(!1),j=C[0],N=C[1],A=Object(l.useState)(y),L=A[0],T=A[1],F=Object(l.useState)(),M=F[0],R=F[1],D=Object(i.useSelect)((function(e){return e("automattic/domains/suggestions").getDomainSuggestionVendor()})),B=function(e,t,n,r){void 0===e&&(e=""),void 0===r&&(r="en");var o=ve(e,300)[0];return Object(i.useSelect)((function(e){if(o&&!(o.length<2))return e("automattic/domains/suggestions").getDomainSuggestions(o,{include_wordpressdotcom:!0,include_dotblogsubdomain:!1,quantity:t+1,locale:r,category_slug:n})}),[o,n,t])}(L.trim(),m,M,P().i18nLocale),z=null==B?void 0:B.slice(w?1:0,j?m:p);Object(l.useEffect)((function(){N(!1)}),[L]);var $=Object(l.useState)(),q=$[0],V=$[1];Object(l.useEffect)((function(){var e;B&&V((void 0===(e="suggestion")&&(e="recommendation"),me().replace(/-/g,"")+"-"+e))}),[B,V]);var Y=function(e,t,n,r){!function(e){ce("calypso_traintracks_render",{railcar:e.railcarId,ui_algo:e.uiAlgo,ui_position:e.uiPosition,fetch_algo:e.fetchAlgo,rec_result:e.result,fetch_query:e.query})}({uiAlgo:"/"+b+"/"+g,fetchAlgo:"/domains/search/"+D+"/"+b+(M?"/"+M:""),query:L,railcarId:t,result:r?e+"#recommended":e,uiPosition:n})};return u.a.createElement("div",{className:"domain-picker"},r&&r,u.a.createElement("div",{className:"domain-picker__search"},u.a.createElement("div",{className:"domain-picker__search-icon"},u.a.createElement(U,{icon:H})),u.a.createElement(d.TextControl,{"data-hj-whitelist":!0,hideLabelFromVision:!0,label:S,placeholder:S,onChange:function(e){T(e),x(e)},onBlur:function(e){h&&h(e.currentTarget.value)},value:L})),(null===(t=L.trim())||void 0===t?void 0:t.length)>1?u.a.createElement("div",{className:"domain-picker__body"},o&&u.a.createElement("div",{className:"domain-picker__aside"},u.a.createElement(xe,{selected:M,onSelect:R})),u.a.createElement("div",{className:"domain-picker__suggestion-sections"},u.a.createElement(u.a.Fragment,null,E&&u.a.createElement("p",{className:"domain-picker__suggestion-group-label"},k("Keep sub-domain")),u.a.createElement(we,{groupItems:E},w&&u.a.createElement(he,{key:w,domain:w,cost:"Free",isFree:!0,isExistingSubdomain:!0,railcarId:q?""+q+0:void 0,onRender:function(){return Y(w,""+q+0,0,!1)},selected:_===w,onSelect:function(){null==c||c(w)}})),E&&u.a.createElement("p",{className:"domain-picker__suggestion-group-label"},k("Professional domains")),u.a.createElement(we,{groupItems:E},null!==(n=null==z?void 0:z.map((function(e,t){var n=w?t+1:t,r=1===n;return u.a.createElement(he,{key:e.domain_name,domain:e.domain_name,cost:e.cost,isFree:e.is_free,isRecommended:r,railcarId:q?""+q+n:void 0,onRender:function(){return Y(e.domain_name,""+q+n,n,r)},onSelect:function(){a(e)},selected:_===e.domain_name})})))&&void 0!==n?n:Object(I.times)(p,(function(e){return u.a.createElement(be,{key:e})})))),!j&&(null==B?void 0:B.length)&&(null==B?void 0:B.length)>p&&u.a.createElement("div",{className:"domain-picker__show-more"},u.a.createElement(d.Button,{onClick:function(){return N(!0)}},k("View more results"))))):u.a.createElement("div",{className:"domain-picker__empty-state"},u.a.createElement("p",{className:"domain-picker__empty-state--text"},k("A domain name is the site address people type in their browser to visit your site.")),u.a.createElement("div",null,u.a.createElement(_e,null))))};function Ee(){return Object(i.useSelect)((function(e){return e("automattic/site").getSite(window._currentSiteId)}))}var ke=function(e){var t,n=e.onSelect,r=Ee(),a=function(){var e=Ee();return(null==e?void 0:e.URL)&&new URL(null==e?void 0:e.URL).hostname||""}(),c=Object(i.useSelect)((function(e){return e("automattic/launch").getState()})),s=c.domain,l=c.domainSearch,u=Object(i.useDispatch)("automattic/launch"),p=u.setDomain,d=u.unsetDomain,f=u.setDomainSearch,m=null!==(t=l.trim()||(null==r?void 0:r.name))&&void 0!==t?t:"";return Object(o.createElement)(Oe,{analyticsFlowId:"gutenboarding",initialDomainSearch:m,onSetDomainSearch:f,onDomainSearchBlur:function(e){ce("calypso_newsite_domain_search_blur",{flow:"gutenboarding",query:e,where:"editor_domain_modal"})},currentDomain:(null==s?void 0:s.domain_name)||a,existingSubdomain:a,onDomainSelect:function(e){p(e),null==n||n()},onExistingSubdomainSelect:function(){d()},analyticsUiAlgo:"editor_domain_modal",segregateFreeAndPaid:!0})},Se=(n(75),function(e){var t=e.onNextStep,n=Object(i.useDispatch)(r).setStepComplete;return Object(o.createElement)(D,{className:"nux-launch-domain-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Choose a domain","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("Free for the first year with any paid plan","full-site-editing"))),Object(o.createElement)(L,null,Object(o.createElement)(T,{onClick:function(){n(M),null==t||t()}}))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(ke,{onSelect:function(){n(M)}})))}),Ce=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),je=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Ne=l.createElement(U,{icon:Ce,size:17}),Pe=l.createElement(U,{icon:je,size:17}),Ae=l.createElement("svg",{width:"8",viewBox:"0 0 8 4"},l.createElement("path",{d:"M0 0 L8 0 L4 4 L0 0",fill:"currentColor"}));var Le=function(e){var t=e.slug,n=e.name,r=e.price,o=e.isPopular,i=void 0!==o&&o,a=e.isFree,c=void 0!==a&&a,s=e.domain,u=e.features,f=e.onSelect,m=e.onPickDomainClick,h=e.onToggleExpandAll,b=e.allPlansExpanded,g=e.disabledLabel,v=P().__,y=l.useState(!1),x=y[0],w=y[1],O=Object(j.useViewportMatch)("mobile",">="),E=function(e,t,n){return{NO_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Ne,domainMessage:l.createElement(l.Fragment,null,n("Pick a free domain (1 year)")," ",Ae)}},FREE_DOMAIN:{FREE_PLAN:null,PAID_PLAN:{className:"plan-item__domain-summary is-cta",icon:Ne,domainMessage:l.createElement(l.Fragment,null,n("Pick a free domain (1 year)")," ",Ae)}},PAID_DOMAIN:{FREE_PLAN:{className:"plan-item__domain-summary is-free",icon:Pe,domainMessage:Object(p.sprintf)(n("%s is not included"),null==t?void 0:t.domain_name)},PAID_PLAN:{className:"plan-item__domain-summary is-picked",icon:Ne,domainMessage:Object(p.sprintf)(n("%s is included"),null==t?void 0:t.domain_name)}}}[t&&(t.is_free?"FREE_DOMAIN":"PAID_DOMAIN")||"NO_DOMAIN"][e?"FREE_PLAN":"PAID_PLAN"]}(c,s,v);l.useEffect((function(){w(b)}),[b]);var k=b||O||i||x;return l.createElement("div",{className:_()("plan-item",{"is-popular":i,"is-open":k})},i&&l.createElement("span",{className:"plan-item__badge"},v("Popular")),l.createElement("div",{className:_()("plan-item__viewport",{"is-popular":i})},l.createElement("div",{className:"plan-item__details"},l.createElement("div",{tabIndex:0,role:"button",onClick:function(){return w((function(e){return!e}))},onKeyDown:function(e){return 32===e.keyCode&&w((function(e){return!e}))},className:"plan-item__summary"},l.createElement("div",{className:"plan-item__heading"},l.createElement("div",{className:"plan-item__name"},n)),l.createElement("div",{className:"plan-item__price"},l.createElement("div",{className:_()("plan-item__price-amount",{"is-loading":!r})},r||" ")),!k&&l.createElement("div",{className:"plan-item__dropdown-chevron"},Ae)),l.createElement("div",{hidden:!k},l.createElement("div",{className:"plan-item__price-note"},v(c?"free forever":"per month, billed yearly")),l.createElement("div",{className:"plan-item__actions"},l.createElement(d.Button,{className:"plan-item__select-button",onClick:function(){f(t)},isPrimary:!0,isLarge:!0,disabled:!!g},l.createElement("span",null,v("Choose")))),l.createElement("div",{className:"plan-item__features"},l.createElement("ul",{className:"plan-item__feature-item-group"},l.createElement("li",{className:"plan-item__feature-item"},g?l.createElement("span",{className:"plan-item__disabled-message"},l.createElement(d.Tip,null,g)):E&&l.createElement(d.Button,{className:E.className,onClick:m,isLink:!0},E.icon,E.domainMessage)),u.map((function(e,t){return l.createElement("li",{key:t,className:"plan-item__feature-item"},Ne," ",e)}))))))),i&&!O&&l.createElement(d.Button,{onClick:h,className:"plan-item__mobile-expand-all-plans",isLink:!0},v(b?"Collapse all plans":"Expand all plans")))},Te=(n(77),function(e){var t=e.selectedPlanSlug,n=e.onPlanSelect,r=e.onPickDomainClick,o=e.currentDomain,a=e.disabledPlans,c=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getSupportedPlans()})),s=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),p=Object(l.useState)(!1),d=p[0],f=p[1];return u.a.createElement("div",{className:"plans-table"},c.map((function(e){var i;return e&&u.a.createElement(Le,{allPlansExpanded:d,key:e.storeSlug,slug:e.storeSlug,domain:o,features:null!==(i=e.features)&&void 0!==i?i:[],isPopular:e.isPopular,isFree:e.isFree,price:s[e.storeSlug],name:null==e?void 0:e.title.toString(),isSelected:e.storeSlug===t,onSelect:n,onPickDomainClick:r,onToggleExpandAll:function(){return f((function(e){return!e}))},disabledLabel:null==a?void 0:a[e.storeSlug]})})))}),Fe=(n(78),u.a.createElement(U,{icon:Ce,size:25})),Me=function(e){var t=e.onSelect,n=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPlansDetails()})),r=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),o=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getSupportedPlans()})),a=P().__;return u.a.createElement("div",{className:"plans-details"},u.a.createElement("table",{className:"plans-details__table"},u.a.createElement("thead",null,u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",null,a("Feature")),o.map((function(e){return u.a.createElement("th",{key:e.storeSlug},e.title)})))),n.map((function(e){return u.a.createElement("tbody",{key:e.id},e.name&&u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",{colSpan:6},e.name)),e.features.map((function(e,t){return u.a.createElement("tr",{className:"plans-details__feature-row",key:t},u.a.createElement("th",null,e.name),e.data.map((function(t,n){return u.a.createElement("td",{key:n},"checkbox"===e.type&&(t?u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"hidden"},a("Available")),Fe):u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"hidden"},a("Unavailable")," "))),"text"===e.type&&t)})))})))})),u.a.createElement("tbody",null,u.a.createElement("tr",{className:"plans-details__header-row"},u.a.createElement("th",{colSpan:6},a("Sign up"))),u.a.createElement("tr",{className:"plans-details__feature-row",key:"price"},u.a.createElement("th",null,a("Monthly subscription (billed yearly)")),o.map((function(e){return u.a.createElement("td",{key:e.storeSlug},r[e.storeSlug])}))),u.a.createElement("tr",{className:"plans-details__feature-row",key:"cta"},u.a.createElement("th",null),o.map((function(e){return u.a.createElement("td",{key:e.storeSlug},u.a.createElement(d.Button,{onClick:function(){t(e.storeSlug)},isPrimary:!0,isLarge:!0},u.a.createElement("span",null,a("Choose"))))}))))))},Re=(n(76),function(e){var t,n=e.header,r=e.currentPlan,o=e.currentDomain,i=e.onPlanSelect,a=e.onPickDomainClick,c=e.disabledPlans,s=P().__;return l.createElement("div",{className:"plans-grid"},n&&l.createElement("div",{className:"plans-grid__header"},n),l.createElement("div",{className:"plans-grid__table"},l.createElement("div",{className:"plans-grid__table-container"},l.createElement(Te,{selectedPlanSlug:null!==(t=null==r?void 0:r.storeSlug)&&void 0!==t?t:"",onPlanSelect:i,currentDomain:o,onPickDomainClick:a,disabledPlans:c}))),l.createElement("div",{className:"plans-grid__details"},l.createElement("div",{className:"plans-grid__details-heading"},l.createElement(k,null,s("Detailed comparison"))),l.createElement("div",{className:"plans-grid__details-container"},l.createElement(Me,{onSelect:i}))))}),De=n(45),Be=function(e){var t=e.onSelect,n=Object(i.useSelect)((function(e){return e("automattic/launch").getState()})).domain,r=Object(i.useSelect)((function(e){return e("automattic/launch").getLaunchStep()})),a=Object(i.useDispatch)("automattic/launch"),c=a.updatePlan,s=a.setStep;return Object(o.createElement)(Re,{currentDomain:n,onPlanSelect:function(e){c(e),null==t||t()},onPickDomainClick:function(){s(r.Domain)},disabledPlans:n&&!n.is_free?O()({},De.Plans.PLAN_FREE,Object(p.__)("Not available with custom domain","full-site-editing")):void 0})},Ie=(n(90),function(e){var t=e.onNextStep,n=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),a=Object(i.useDispatch)(r).setStepComplete;return Object(o.createElement)(D,{className:"nux-launch-plan-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Choose a plan","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("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 30 days.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(Be,{onSelect:function(){a(n.Plan),null==t||t()}})))}),ze=n(50),Ue=n.n(ze);var He=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(a){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var $e=function(e){function t(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var s=c=0;for(t=[];c<i;++c)for(var l=0;l<a;++l)t[s++]=n(e[l]+" ",o[c],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",c=2*t+3*n+4*i;if(944===c){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===N||2===N&&o(s,1)?"-webkit-"+s+s:s}if(0===N||2===N&&!o(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(y,"tb");break;case 232:s=a.replace(y,"tb-rl");break;case 220:s=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(w,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(w,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),T(2!==t?r:r.replace(O,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,c,l,u){for(var p,d=0,f=t;d<L;++d)switch(p=A[d].call(s,e,f,n,r,o,i,a,c,l,u)){case void 0:case!1:case!0:case null:break;default:f=p}if(f!==t)return f}function c(e){return void 0!==(e=e.prefix)&&(T=null,e?"function"!=typeof e?N=1:(N=2,T=e):N=0),c}function s(e,n){var c=e;if(33>c.charCodeAt(0)&&(c=c.trim()),c=[c],0<L){var s=a(-1,n,c,c,C,S,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var p=function e(n,c,s,p,d){for(var f,m,h,y,_,w=0,O=0,E=0,k=0,A=0,T=0,M=h=f=0,R=0,D=0,B=0,I=0,z=s.length,U=z-1,H="",$="",q="",V="";R<z;){if(m=s.charCodeAt(R),R===U&&0!==O+k+E+w&&(0!==O&&(m=47===O?10:47),k=E=w=0,z++,U++),0===O+k+E+w){if(R===U&&(0<D&&(H=H.replace(u,"")),0<H.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(R)}m=59}switch(m){case 123:for(f=(H=H.trim()).charCodeAt(0),h=1,I=++R;R<z;){switch(m=s.charCodeAt(R)){case 123:h++;break;case 125:h--;break;case 47:switch(m=s.charCodeAt(R+1)){case 42:case 47:e:{for(M=R+1;M<U;++M)switch(s.charCodeAt(M)){case 47:if(42===m&&42===s.charCodeAt(M-1)&&R+2!==M){R=M+1;break e}break;case 10:if(47===m){R=M+1;break e}}R=M}}break;case 91:m++;case 40:m++;case 34:case 39:for(;R++<U&&s.charCodeAt(R)!==m;);}if(0===h)break;R++}switch(h=s.substring(I,R),0===f&&(f=(H=H.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<D&&(H=H.replace(u,"")),m=H.charCodeAt(1)){case 100:case 109:case 115:case 45:D=c;break;default:D=P}if(I=(h=e(c,D,h,m,d+1)).length,0<L&&(_=a(3,h,D=t(P,H,B),c,C,S,I,m,d,p),H=D.join(""),void 0!==_&&0===(I=(h=_.trim()).length)&&(m=0,h="")),0<I)switch(m){case 115:H=H.replace(x,i);case 100:case 109:case 45:h=H+"{"+h+"}";break;case 107:h=(H=H.replace(b,"$1 $2"))+"{"+h+"}",h=1===N||2===N&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=H+h,112===p&&($+=h,h="")}else h="";break;default:h=e(c,t(c,H,B),h,p,d+1)}q+=h,h=B=D=M=f=0,H="",m=s.charCodeAt(++R);break;case 125:case 59:if(1<(I=(H=(0<D?H.replace(u,""):H).trim()).length))switch(0===M&&(f=H.charCodeAt(0),45===f||96<f&&123>f)&&(I=(H=H.replace(" ",":")).length),0<L&&void 0!==(_=a(1,H,c,n,C,S,$.length,p,d,p))&&0===(I=(H=_.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),m=H.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){V+=H+s.charAt(R);break}default:58!==H.charCodeAt(I-1)&&($+=r(H,f,m,H.charCodeAt(2)))}B=D=M=f=0,H="",m=s.charCodeAt(++R)}}switch(m){case 13:case 10:47===O?O=0:0===1+f&&107!==p&&0<H.length&&(D=1,H+="\0"),0<L*F&&a(0,H,c,n,C,S,$.length,p,d,p),S=1,C++;break;case 59:case 125:if(0===O+k+E+w){S++;break}default:switch(S++,y=s.charAt(R),m){case 9:case 32:if(0===k+w+O)switch(A){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===k+O+w&&(D=B=1,y="\f"+y);break;case 108:if(0===k+O+w+j&&0<M)switch(R-M){case 2:112===A&&58===s.charCodeAt(R-3)&&(j=A);case 8:111===T&&(j=T)}break;case 58:0===k+O+w&&(M=R);break;case 44:0===O+E+k+w&&(D=1,y+="\r");break;case 34:case 39:0===O&&(k=k===m?0:0===k?m:k);break;case 91:0===k+O+E&&w++;break;case 93:0===k+O+E&&w--;break;case 41:0===k+O+w&&E--;break;case 40:if(0===k+O+w){if(0===f)switch(2*A+3*T){case 533:break;default:f=1}E++}break;case 64:0===O+E+k+w+M+h&&(h=1);break;case 42:case 47:if(!(0<k+w+E))switch(O){case 0:switch(2*m+3*s.charCodeAt(R+1)){case 235:O=47;break;case 220:I=R,O=42}break;case 42:47===m&&42===A&&I+2!==R&&(33===s.charCodeAt(I+2)&&($+=s.substring(I,R+1)),y="",O=0)}}0===O&&(H+=y)}T=A,A=m,R++}if(0<(I=$.length)){if(D=c,0<L&&(void 0!==(_=a(2,$,D,n,C,S,I,p,d,p))&&0===($=_).length))return V+$+q;if($=D.join(",")+"{"+$+"}",0!=N*j){switch(2!==N||o($,2)||(j=0),j){case 111:$=$.replace(v,":-moz-$1")+$;break;case 112:$=$.replace(g,"::-webkit-input-$1")+$.replace(g,"::-moz-$1")+$.replace(g,":-ms-input-$1")+$}j=0}}return V+$+q}(P,c,n,0,0);return 0<L&&(void 0!==(s=a(-2,p,c,c,C,S,p.length,0,0,0))&&(p=s)),"",j=0,S=C=1,p}var l=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,w=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,S=1,C=1,j=0,N=1,P=[],A=[],L=0,T=null,F=0;return s.use=function e(t){switch(t){case void 0:case null:L=A.length=0;break;default:if("function"==typeof t)A[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},s.set=c,void 0!==e&&c(e),s},qe=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function Ve(e){e&&Ye.current.insert(e+"}")}var Ye={current:null},Ge=function(e,t,n,r,o,i,a,c,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return Ye.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===c)return t+"/*|*/";break;case 3:switch(c){case 102:case 112:return Ye.current.insert(n[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(Ve)}},We=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new $e(t);var o,i={};o=e.container||document.head;var a,c=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(c,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(Ge),a=function(e,t,n,o){var i=t.name;Ye.current=n,r(e,t.styles),o&&(s.inserted[i]=!0)};var s={key:n,sheet:new He({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return s};function Ke(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var Xe=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var Ze=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},Je={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Qe=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},et=/[A-Z]|^ms/g,tt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nt=function(e){return 45===e.charCodeAt(1)},rt=function(e){return null!=e&&"boolean"!=typeof e},ot=Qe((function(e){return nt(e)?e:e.replace(et,"-$&").toLowerCase()})),it=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(tt,(function(e,t,n){return ct={name:t,styles:n,next:ct},t}))}return 1===Je[e]||nt(e)||"number"!=typeof t||0===t?t:t+"px"};function at(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ct={name:n.name,styles:n.styles,next:ct},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ct={name:o.name,styles:o.styles,next:ct},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=at(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":rt(a)&&(r+=ot(i)+":"+it(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var c=at(e,t,a,!1);switch(i){case"animation":case"animationName":r+=ot(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var s=0;s<a.length;s++)rt(a[s])&&(r+=ot(i)+":"+it(i,a[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=ct,a=n(e);return ct=i,at(e,t,a,r)}break;case"string":}if(null==t)return n;var c=t[n];return void 0===c||r?n:c}var ct,st=/label:\s*([^\s;\n{]+)\s*;/g;var lt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ct=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=at(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=at(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);st.lastIndex=0;for(var c,s="";null!==(c=st.exec(o));)s+="-"+c[1];return{name:Ze(o)+s,styles:o,next:ct}};var ut=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return lt(t)},pt=Object(l.createContext)("undefined"!=typeof HTMLElement?We():null),dt=Object(l.createContext)({}),ft=(pt.Provider,function(e){return Object(l.forwardRef)((function(t,n){return Object(l.createElement)(pt.Consumer,null,(function(r){return e(t,r,n)}))}))});Object.prototype.hasOwnProperty;l.Component;var mt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var c in a="",i)i[c]&&c&&(a&&(a+=" "),a+=c);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function ht(e,t,n){var r=[],o=Ke(e,r,n);return r.length<2?n:o+t(r)}ft((function(e,t){return Object(l.createElement)(dt.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=lt(n,t.registered);return Xe(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return ht(t.registered,r,mt(n))},theme:n},i=e.children(o);return!0,i}))}));var bt=n(15),gt=n.n(bt);n(51);function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yt=function(e,t){return"function"==typeof t?t(e):function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(n,!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},xt=qe((function(e){return qe((function(t){return yt(e,t)}))})),_t=function(e){return Object(l.createElement)(dt.Consumer,null,(function(t){return e.theme!==t&&(t=xt(t)(e.theme)),Object(l.createElement)(dt.Provider,{value:t},e.children)}))};var wt=Object(o.createElement)(g.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(o.createElement)(g.Path,{d:"M9 18.6L3.5 13l1-1L9 16.4l9.5-9.9 1 1z"})),Ot="#F6F7F7",Et="#DCDCDE",kt="#A7AAAD",St="#8E9196",Ct="#646970",jt="#2C3338",Nt="#008A20",Pt="#FFF",At="#000",Lt={colors:{background:Ot,surface:Pt,primary:"#C9356E",primaryBorder:"#700F3B",primaryOver:"#AB235A",highlight:"#006088",highlightBorder:"#002C40",highlightOver:"#004E6E",success:Nt,discount:Nt,disabledPaymentButtons:Ot,disabledPaymentButtonsAccent:Et,disabledButtons:kt,borderColor:kt,borderColorLight:Et,borderColorDark:Ct,upcomingStepBackground:Et,textColor:jt,textColorLight:Ct,textColorDark:At,error:"#D63638",warningBackground:"#F7EBEC",outline:"#5198D9",applePayButtonColor:At,applePayButtonRollOverColor:jt,noticeBackground:jt,defaultNoticeIconBackground:St,textColorOnDarkBackground:Pt,paypalGold:"#F0C443",paypalGoldHover:"#FFB900",modalBackground:"rgba( 255,255,255,0.9 )",disabledField:Ot,placeHolderTextColor:St},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"}},Tt=n(29),Ft=n.n(Tt),Mt=n(14),Rt=n.n(Mt),Dt=n(5),Bt=n.n(Dt),It=n(13),zt=n.n(It),Ut=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ht=Qe((function(e){return Ut.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),$t=function(e){return"theme"!==e&&"innerRef"!==e},qt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ht:$t};function Vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(n,!0).forEach((function(t){O()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt=function e(t,n){var r,o,i;void 0!==n&&(r=n.label,i=n.target,o=t.__emotion_forwardProp&&n.shouldForwardProp?function(e){return t.__emotion_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var a=t.__emotion_real===t,c=a&&t.__emotion_base||t;"function"!=typeof o&&a&&(o=t.__emotion_forwardProp);var s=o||qt(c),u=!s("as");return function(){var p=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==p[0]||void 0===p[0].raw)d.push.apply(d,p);else{0,d.push(p[0][0]);for(var f=p.length,m=1;m<f;m++)d.push(p[m],p[0][m])}var h=ft((function(e,t,n){return Object(l.createElement)(dt.Consumer,null,(function(r){var a=u&&e.as||c,p="",f=[],m=e;if(null==e.theme){for(var h in m={},e)m[h]=e[h];m.theme=r}"string"==typeof e.className?p=Ke(t.registered,f,e.className):null!=e.className&&(p=e.className+" ");var b=lt(d.concat(f),t.registered,m);Xe(t,b,"string"==typeof a);p+=t.key+"-"+b.name,void 0!==i&&(p+=" "+i);var g=u&&void 0===o?qt(a):s,v={};for(var y in e)u&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=p,v.ref=n||e.innerRef,Object(l.createElement)(a,v)}))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=c,h.__emotion_styles=d,h.__emotion_forwardProp=o,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,void 0!==r?Yt({},n||{},{},r):n).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Gt[e]=Gt(e)}));var Wt=Gt,Kt=n(2),Xt=n.n(Kt);function Zt(e){return e.filter((function(e){return e})).join(" ")}var Jt=n(24),Qt=n.n(Jt),en=n(25),tn=n.n(en),nn=n(27),rn=n.n(nn),on=n(28),an=n.n(on);function cn(){var e=Bt()(["\n\tmargin: 2em;\n\ttext-align: center;\n"]);return cn=function(){return e},e}var sn=q()("composite-checkout:checkout-error-boundary"),ln=function(e){rn()(n,e);var t=an()(n);function n(e){var r;return Qt()(this,n),(r=t.call(this,e)).state={hasError:!1,currentError:null},r}return tn()(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);sn("reporting the error",n),this.props.onError(n)}}},{key:"render",value:function(){return this.state.hasError?u.a.createElement(un,{errorMessage:this.props.errorMessage}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{currentError:e,hasError:!0}}}]),n}(u.a.Component);function un(e){var t=e.errorMessage;return u.a.createElement(pn,null,t)}ln.propTypes={errorMessage:Xt.a.node.isRequired,onError:Xt.a.func};var pn=Wt.div(cn()),dn=Object(l.createContext)({});q()("composite-checkout:form-status");function fn(){var e=Object(l.useContext)(dn),t=e.formStatus,n=e.setFormStatus,r=Object(l.useMemo)((function(){return{setFormLoading:function(){return n("loading")},setFormReady:function(){return n("ready")},setFormSubmitting:function(){return n("submitting")},setFormValidating:function(){return n("validating")},setFormComplete:function(){return n("complete")}}}),[n]);return Object(l.useMemo)((function(){return Rt()(Rt()({},r),{},{formStatus:t})}),[t,r])}function mn(){var e=Bt()(["\n\tbackground: ",";\n\tcontent: '';\n\tborder-top: 1px solid ",";\n\tpadding: 24px;\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 3px;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t\theight: 40px;\n\t}\n"]);return mn=function(){return e},e}function hn(){var e=Bt()(["\n\tfont-size: 14px;\n\theight: 16px;\n\tcontent: '';\n\tbackground: ",";\n\tcolor: ",";\n\tmargin: 8px 0 0 35px;\n\tpadding: 0;\n\tanimation: "," 2s ease-in-out infinite;\n\n\t.rtl & {\n\t\tmargin: 8px 35px 0 0;\n\t}\n"]);return hn=function(){return e},e}function bn(){var e=Bt()(["\n\tfont-size: 14px;\n\tcontent: '';\n\tfont-weight: ",";\n\tbackground: ",";\n\tcolor: ",";\n\twidth: 40%;\n\tmargin: 3px 0 0 35px;\n\tpadding: 0;\n\tposition: relative;\n\tanimation: "," 2s ease-in-out infinite;\n\theight: 20px;\n\n\t.rtl & {\n\t\tmargin: 3px 35px 0 0;\n\t}\n\n\t::before {\n\t\tcontent: '';\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tleft: -35px;\n\t\ttop: -3px;\n\t\twidth: 27px;\n\t\theight: 27px;\n\t\tbackground: ",";\n\t\tborder-radius: 100%;\n\n\t\t.rtl & {\n\t\t\tright: -35px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n"]);return bn=function(){return e},e}function gn(){var e=Bt()(["\n 0% {\n opacity: 1;\n }\n\n 70% {\n \topacity: 0.5;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return gn=function(){return e},e}function vn(){var e=Bt()(["\n\tpadding: 24px;\n\tborder-top: 1px solid ",";\n\n\t:first-of-type {\n\t\tborder-top: 0;\n\t}\n"]);return vn=function(){return e},e}function yn(){var e=Bt()(["\n\tbackground: ",";\n\twidth: 100%;\n\tbox-sizing: border-box;\n\tmargin-bottom: 0;\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tmargin: 32px auto;\n\t\tbox-sizing: border-box;\n\t\tmax-width: 556px;\n\t}\n"]);return yn=function(){return e},e}Wt.div(yn(),(function(e){return e.theme.colors.surface}),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.colors.borderColorLight})),Wt.div(vn(),(function(e){return e.theme.colors.borderColorLight}));var xn=function(){var e=ut.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(gn()),_n=(Wt.h1(bn(),(function(e){return e.theme.weights.normal}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),xn,(function(e){return e.theme.colors.borderColorLight})),Wt.p(hn(),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight}),xn),Wt.div(mn(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.colors.borderColorLight})),q()("composite-checkout:payment-methods"));function wn(){var e=Object(l.useContext)(dn),t=e.paymentMethodId,n=e.setPaymentMethodId,r=On();if(!n)throw new Error("usePaymentMethod can only be used inside a CheckoutProvider");if(!t)return null;var o=r.find((function(e){return e.id===t}));return o||(_n("No payment method found matching id '".concat(t,"' in"),r),null)}function On(){var e=Object(l.useContext)(dn).allPaymentMethods;if(!e)throw new Error("useAllPaymentMethods cannot be used outside of CheckoutProvider");return e}var En=n(30),kn=n.n(En);function Sn(){var e=Bt()(["\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;\n\t\topacity: 1;\n\t}\n\n\t@keyframes components-button__busy-animation {\n\t\t0% {\n\t\t\tbackground-position: 200px 0;\n\t\t}\n\t}\n"]);return Sn=function(){return e},e}function Cn(e){var t=e.className,n=e.buttonType,r=e.isBusy,o=e.children,i=kn()(e,["className","buttonType","isBusy","children"]),a=Zt(["checkout-button"].concat(zt()(n?["is-status-"+n]:[]),zt()(r?["is-busy"]:[]),zt()(t?[t]:[])));return u.a.createElement(jn,gt()({buttonType:n,isBusy:r,className:a},i),o)}Cn.propTypes={buttonType:Xt.a.oneOf(["primary","secondary","text-button","borderless","paypal"]),fullWidth:Xt.a.bool,isBusy:Xt.a.bool};var jn=Wt.button(Sn(),(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"}),An,Pn,(function(e){var t=e.disabled,n=e.buttonType,r=e.theme;if(t||"text-button"===n)return r.weights.normal;return r.weights.bold}),Tn,Nn,(function(e){return e.buttonType?"inherit":e.theme.colors.borderColorDark}),Pn,(function(e){return e.disabled?"not-allowed":"pointer"}),Nn,Tn,Pn,(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"}),An,Ln,Ln,An);function Nn(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 Pn(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 An(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 Ln(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 Tn(e){return"text-button"===e.buttonType?"underline":"none"}function Fn(){var e=Bt()(["\n\tfill: #fff;\n"]);return Fn=function(){return e},e}function Mn(e){var t=e.className,n=e.id;return u.a.createElement(Rn,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:t},u.a.createElement("mask",{id:n+"-check-icon-mask","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"4",width:"16",height:"12"},u.a.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"})),u.a.createElement("g",{mask:"url(#"+n+"-check-icon-mask)"},u.a.createElement("rect",{width:"20",height:"20"})))}Mn.propTypes={className:Xt.a.string,id:Xt.a.string};var Rn=Wt.svg(Fn());function Dn(e){var t=e.value,n=e.onClick,r=e.ariaLabel,o=kn()(e,["value","onClick","ariaLabel"]);return u.a.createElement(Cn,gt()({onClick:n,buttonType:"primary","aria-label":r},o),t)}var Bn=Object(l.createContext)({});function In(){var e=Object(l.useContext)(Bn),t=e.items,n=e.total;if(!t||!n)throw new Error("useLineItems can only be used inside a CheckoutProvider");return[t,n]}function zn(){var e=Bt()(["\n\tfont-weight: ",";\n"]);return zn=function(){return e},e}function Un(){var e=Bt()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Un=function(){return e},e}function Hn(){var e=Bt()(["\n\tborder-top: 1px solid ",";\n\tpadding: 24px 20px;\n"]);return Hn=function(){return e},e}function $n(){var e=Bt()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tpadding: 24px 20px;\n"]);return $n=function(){return e},e}function qn(){var e=Bt()(["\n\tfont-weight: ",";\n"]);return qn=function(){return e},e}function Vn(){var e=Bt()(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n"]);return Vn=function(){return e},e}function Yn(){var e=Bt()(["\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style-type: none;\n"]);return Yn=function(){return e},e}function Gn(){var e=Bt()(["\n\tmargin: 0;\n\tpadding: 0;\n"]);return Gn=function(){return e},e}Wt.ul(Gn()),Wt.li(Yn());Wt.span(Vn()),Wt.span(qn(),(function(e){return e.theme.weights.bold}));Wt.div($n(),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.weights.bold})),Wt.div(Hn(),(function(e){return e.theme.colors.borderColorLight}));var Wn=Wt.div(Un());Wt(Wn)(zn(),(function(e){return e.theme.weights.bold}));function Kn(){var e=Bt()(["\n\tdisplay: flex;\n\twidth: 100%;\n\tjustify-content: space-between;\n\tfont-weight: ",";\n\tcolor: ",";\n\tfont-size: ",";\n\tpadding: ",";\n\tborder-bottom: ",";\n\n\t:first-of-type {\n\t\tpadding-top: 0;\n\t}\n"]);return Kn=function(){return e},e}function Xn(){var e=Bt()(["\n\tmargin-bottom: 16px;\n"]);return Xn=function(){return e},e}function Zn(e){var t=e.children,n=e.className;return u.a.createElement(Jn,{className:Zt([n,"order-review-section"])},t)}Zn.propTypes={className:Xt.a.string};var Jn=Wt.div(Xn());function Qn(e){var t=e.item,n=e.className,r="checkout-line-item-".concat(t.id);return u.a.createElement("div",{className:Zt([n,"checkout-line-item"])},u.a.createElement("span",{id:r},t.label),u.a.createElement("span",{"aria-labelledby":r},t.amount.displayValue))}Qn.propTypes={className:Xt.a.string,total:Xt.a.bool,isSummaryVisible:Xt.a.bool,item:Xt.a.shape({label:Xt.a.string,amount:Xt.a.shape({displayValue:Xt.a.string})})};var er=Wt(Qn)(Kn(),(function(e){var t=e.theme;return e.total?t.weights.bold:t.weights.normal}),(function(e){var t=e.theme;return e.total?t.colors.textColorDark:"inherit"}),(function(e){return e.total?"1.2em":"1em"}),(function(e){var t=e.total;return e.isSummaryVisible||t?0:"24px 0"}),(function(e){var t=e.theme,n=e.total;return e.isSummaryVisible||n?0:"1px solid "+t.colors.borderColorLight}));function tr(e){var t=e.total,n=e.className;return u.a.createElement("div",{className:Zt([n,"order-review-total"])},u.a.createElement(er,{total:!0,item:t}))}function nr(e){var t=e.items,n=e.className,r=e.isSummaryVisible;return u.a.createElement("div",{className:Zt([n,"order-review-line-items"])},t.map((function(e){return u.a.createElement(er,{isSummaryVisible:r,key:e.id,item:e})})))}function rr(e){var t=e.className,n=In(),r=s()(n,2),o=r[0],i=r[1];return u.a.createElement("div",{className:Zt([t,"checkout-review-order"])},u.a.createElement(Zn,null,u.a.createElement(nr,{items:o})),u.a.createElement(Zn,null,u.a.createElement(tr,{total:i})))}function or(){var e=Bt()(["\n\tdisplay: ",";\n"]);return or=function(){return e},e}function ir(){var e=Bt()(["\n\tposition: relative;\n\tpadding: 16px 14px 16px 40px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n\talign-items: flex-start;\n\tfont-size: 14px;\n\n\t.rtl & {\n\t\tpadding: 16px 40px 16px 14px;\n\t}\n\n\t:hover {\n\t\tcursor: pointer;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 16px;\n\t\theight: 16px;\n\t\tcontent: '';\n\t\tborder: 1px solid ",";\n\t\tborder-radius: 100%;\n\t\ttop: 19px;\n\t\tleft: 16px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 2;\n\n\t\t.rtl & {\n\t\t\tright: 16px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t::after {\n\t\tdisplay: block;\n\t\twidth: 8px;\n\t\theight: 8px;\n\t\tcontent: '';\n\t\tborder-radius: 100%;\n\t\ttop: 23px;\n\t\tleft: 20px;\n\t\tposition: absolute;\n\t\tbackground: ",";\n\t\tbox-sizing: border-box;\n\t\tz-index: 3;\n\n\t\t.rtl & {\n\t\t\tright: 20px;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t",";\n"]);return ir=function(){return e},e}function ar(){var e=Bt()(["\n\tposition: absolute;\n\topacity: 0 !important;\n"]);return ar=function(){return e},e}function cr(){var e=Bt()(["\n\tposition: relative;\n\tmargin-top: 8px;\n\tborder-radius: 3px;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\toutline: ",";\n\n\t:first-of-type {\n\t\tmargin: 0;\n\t}\n\n\t::before {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t\tcontent: '';\n\t\tborder: "," solid ",";\n\t\tborder-radius: 3px;\n\t\tbox-sizing: border-box;\n\n\t\t.rtl & {\n\t\t\tright: 0;\n\t\t\tleft: auto;\n\t\t}\n\t}\n\n\t:hover::before {\n\t\tborder: 3px solid ",";\n\t}\n\n\t.payment-logos {\n\t\tdisplay: none;\n\n\t\t@media ( "," ) {\n\t\t\tdisplay: block;\n\t\t\tfilter: grayscale( "," );\n\t\t}\n\t}\n\n\t:hover .payment-logos {\n\t\t@media ( "," ) {\n\t\t\tfilter: grayscale( 0 );\n\t\t}\n\t}\n\n\tsvg {\n\t\tfilter: grayscale( "," );\n\t}\n\n\t:hover svg {\n\t\tfilter: grayscale( 0 );\n\t}\n\n\t",";\n"]);return cr=function(){return e},e}function sr(e){var t=e.checked,n=e.name,r=e.value,o=e.onChange,i=e.children,a=e.label,c=e.disabled,p=e.id,d=e.ariaLabel,f=Object(l.useState)(!1),m=s()(f,2),h=m[0],b=m[1];return u.a.createElement(lr,{disabled:c,isFocused:h,checked:t},u.a.createElement(ur,{type:"radio",name:n,id:p,disabled:c,value:r,checked:t,onChange:o,onFocus:function(){b(!0)},onBlur:function(){b(!1)},readOnly:!o,"aria-label":d}),u.a.createElement(pr,{checked:t,htmlFor:p,disabled:c},a),i&&u.a.createElement(dr,{checked:t},i))}nr.propTypes={className:Xt.a.string,isSummaryVisible:Xt.a.bool,items:Xt.a.arrayOf(Xt.a.shape({label:Xt.a.string,amount:Xt.a.shape({displayValue:Xt.a.string})}))},rr.propTypes={className:Xt.a.string},Xt.a.shape({label:Xt.a.string,amount:Xt.a.shape({displayValue:Xt.a.string})}),sr.propTypes={name:Xt.a.string.isRequired,id:Xt.a.string.isRequired,label:Xt.a.node.isRequired,disabled:Xt.a.bool,checked:Xt.a.bool,value:Xt.a.string.isRequired,onChange:Xt.a.func,ariaLabel:Xt.a.string.isRequired};var lr=Wt.div(cr(),(function(e){var t=e.isFocused,n=e.theme;if(t)return n.colors.outline+" solid 2px";return"0"}),(function(e){return e.checked?"3px":"1px"}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.borderColor}),(function(e){return e.theme.colors.highlight}),(function(e){return e.theme.breakpoints.smallPhoneUp}),fr,(function(e){return e.theme.breakpoints.smallPhoneUp}),fr,(function(e){if(!e.disabled)return null;return"\n\t\t::before,\n\t\t:hover::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t}\n\n\t\tsvg,\n\t\t:hover svg {\n\t\t\tfilter: grayscale( 100% );\n\t\t\topacity: 50%;\n\t\t}\n\t"}));var ur=Wt.input(ar()),pr=Wt.label(ir(),(function(e){return e.theme.colors.borderColor}),(function(e){return e.theme.colors.surface}),(function(e){var t=e.checked,n=e.theme;return t?n.colors.highlight:n.colors.surface}),(function(e){if(!e.disabled)return null;return"\n\t\tcolor: lightgray;\n\t\tfont-style: italic;\n\n\t\t:hover {\n\t\t\tcursor: default;\n\t\t}\n\n\t\t::before {\n\t\t\tborder: 1px solid lightgray;\n\t\t\tbackground: lightgray;\n\t\t}\n\n\t\t::after {\n\t\t\tbackground: white;\n\t\t}\n\n\t\tspan {\n\t\t\tcolor: lightgray;\n\t\t}\n\t"}));var dr=Wt.div(or(),(function(e){return e.checked?"block":"none"}));function fr(e){return e.checked?0:"100%"}function mr(){var e=Object(l.useContext)(dn).onEvent;if(!e)throw new Error("useEvents can only be used inside a CheckoutProvider");return e}function hr(){var e=Bt()(["\n\tmargin-bottom: 16px;\n"]);return hr=function(){return e},e}var br=q()("composite-checkout:checkout-payment-methods");function gr(e){var t=e.summary,n=e.isComplete,r=e.className,o=P().__,i=mr(),a=Object(l.useCallback)((function(e){return i({type:"PAYMENT_METHOD_LOAD_ERROR",payload:e})}),[i]),c=wn(),d=function(){var e=Object(l.useContext)(dn),t=e.paymentMethodId,n=e.setPaymentMethodId;if(!n)throw new Error("usePaymentMethodId can only be used inside a CheckoutProvider");return[t,n]}(),f=s()(d,2)[1],m=function(e){br("setting payment method to",e),i({type:"PAYMENT_METHOD_SELECT",payload:e}),f(e)},h=On();return t&&n&&c?(br("rendering selected paymentMethod",c),u.a.createElement("div",{className:Zt([r,"checkout-payment-methods"])},u.a.createElement(ln,{errorMessage:o("There was a problem with this payment method."),onError:a},u.a.createElement(vr,gt()({},c,{checked:!0,summary:!0,ariaLabel:c.getAriaLabel(o)}))))):t?(br("summary requested, but no complete paymentMethod is selected; isComplete:",n,"paymentMethod:",c),null):(br("rendering paymentMethods",h),u.a.createElement("div",{className:Zt([r,"checkout-payment-methods"])},u.a.createElement(yr,null,h.map((function(e){return u.a.createElement(ln,{key:e.id,errorMessage:Object(p.sprintf)(o("There was a problem with the payment method: %s"),e.id),onError:a},u.a.createElement(vr,gt()({},e,{checked:(null==c?void 0:c.id)===e.id,onClick:m,ariaLabel:e.getAriaLabel(o)})))})))))}function vr(e){var t=e.id,n=e.label,r=e.activeContent,o=e.inactiveContent,i=e.checked,a=e.onClick,c=e.ariaLabel,s=e.summary,l=fn().formStatus;return s?o:u.a.createElement(sr,{name:"paymentMethod",value:t,id:t,checked:i,disabled:"ready"!==l,onChange:a?function(){return a(t)}:null,ariaLabel:c,label:n},r&&r)}gr.propTypes={summary:Xt.a.bool,isComplete:Xt.a.bool.isRequired,className:Xt.a.string},vr.propTypes={id:Xt.a.string.isRequired,onClick:Xt.a.func,checked:Xt.a.bool.isRequired,ariaLabel:Xt.a.string.isRequired,activeContent:Xt.a.node,label:Xt.a.node,inactiveContent:Xt.a.node,summary:Xt.a.bool};var yr=Wt.div(hr());function xr(){var e=Bt()(["\n\tcolor: ",";\n\tfont-size: 14px;\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return xr=function(){return e},e}function _r(){var e=Bt()(["\n\tcolor: ",";\n\tdisplay: ",";\n\tpadding-left: 35px;\n\n\t.rtl & {\n\t\tpadding-right: 35px;\n\t\tpadding-left: 0;\n\t}\n"]);return _r=function(){return e},e}function wr(){var e=Bt()(["\n\tfont-size: 14px;\n\tpadding-top: 1px;\n"]);return wr=function(){return e},e}function Or(){var e=Bt()(["\n\tbackground: ",";\n\ttransform: rotateY( 180deg );\n\t// Reason: media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tbackface-visibility: visible;\n\t\tz-index: ",";\n\t}\n\n\tsvg {\n\t\tmargin-top: 4px;\n\t}\n"]);return Or=function(){return e},e}function Er(){var e=Bt()(["\n\tbackground: ",";\n\tfont-weight: normal;\n\twidth: 27px;\n\theight: 27px;\n\tline-height: 27px;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tborder-radius: 50%;\n\tcolor: ",";\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tbackface-visibility: hidden;\n\n\t.rtl & {\n\t\tright: 0;\n\t\tleft: auto;\n\t}\n\n\t// Reason: The IE media query needs to not have spaces within brackets otherwise ie11 doesn't read them\n\t// prettier-ignore\n\t@media all and (-ms-high-contrast:none), (-ms-high-contrast:active) {\n\t\tz-index: ",";\n\t}\n"]);return Er=function(){return e},e}function kr(){var e=Bt()(["\n\tposition: relative;\n\ttransform-origin: center center;\n\ttransition: transform 0.3s 0.1s ease-out;\n\ttransform-style: preserve-3d;\n\ttransform: ",";\n"]);return kr=function(){return e},e}function Sr(){var e=Bt()(["\n\tposition: relative;\n\twidth: 27px;\n\theight: 27px;\n\tmargin-right: 8px;\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: 8px;\n\t}\n"]);return Sr=function(){return e},e}function Cr(){var e=Bt()(["\n\tfont-size: 16px;\n\tdisplay: flex;\n\twidth: 100%;\n\talign-items: center;\n\tmargin: 0 0 ",";\n"]);return Cr=function(){return e},e}function jr(){var e=Bt()(["\n\tcolor: ",";\n\tfont-weight: ",";\n\tmargin-right: ",";\n\tflex: ",";\n\n\t.rtl & {\n\t\tmargin-right: 0;\n\t\tmargin-left: ",";\n\t}\n"]);return jr=function(){return e},e}function Nr(){var e=Bt()(["\n\tposition: relative;\n\tborder-bottom: 1px solid ",";\n\tpadding: 16px;\n\n\t&.checkout-step {\n\t\tbackground: ",";\n\t}\n\n\t&.checkout-step.is-active,\n\t&.checkout-step.is-complete {\n\t\tbackground: ",";\n\t}\n\n\t@media ( "," ) {\n\t\tpadding: 24px;\n\t}\n"]);return Nr=function(){return e},e}function Pr(){var e=Bt()(["\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: 100%;\n\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\twidth: calc( 100% - 60px );\n\t\t}\n\t}\n\n\t@media ( "," ) {\n\t\t.checkout__step-wrapper--last-step & {\n\t\t\tposition: relative;\n\t\t\tborder: 0;\n\n\t\t\t.checkout-button {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n"]);return Pr=function(){return e},e}function Ar(){var e=Bt()(["\n\tbackground: ",";\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t&.checkout__step-wrapper--last-step {\n\t\tmargin-bottom: 100px;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin: 0;\n\t\torder: 1;\n\t\twidth: 556px;\n\t}\n"]);return Ar=function(){return e},e}function Lr(){var e=Bt()(["\n\tbox-sizing: border-box;\n\tmargin: 0 auto;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmax-width: 556px;\n\t}\n\n\t@media ( "," ) {\n\t\tmargin-right: 0;\n\t\tmargin-left: 24px;\n\t\torder: 2;\n\t\twidth: 328px;\n\n\t\t.rtl & {\n\t\t\tmargin-right: 24px;\n\t\t\tmargin-left; 0;\n\t\t}\n\t}\n"]);return Lr=function(){return e},e}function Tr(){var e=Bt()(["\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 100%;\n\n\t@media ( "," ) {\n\t\tmargin: 0 auto 32px;\n\t}\n\n\t@media ( "," ) {\n\t\talign-items: flex-start;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tmax-width: none;\n\t}\n"]);return Tr=function(){return e},e}function Fr(){var e=Bt()(["\n\t*:focus {\n\t\toutline: "," solid 2px;\n\t}\n"]);return Fr=function(){return e},e}function Mr(){var e=Bt()(["\n\tbackground: ",";\n\tborder-bottom: 1px solid ",";\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t\tborder-bottom: none 0;\n\t}\n\n\t@media ( "," ) {\n\t\tborder: 1px solid ",";\n\t}\n"]);return Mr=function(){return e},e}var Rr=q()("composite-checkout:checkout"),Dr=u.a.createContext(),Br=u.a.createContext();function Ir(e){var t=e.children,n=e.className;return u.a.createElement(Vr,{className:Zt([n,"checkout__summary-area"])},t)}var zr=Wt.div(Mr(),(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}));function Ur(e){var t=e.children,n=e.areStepsActive,r=void 0===n||n,o=0,i=1,a=u.a.Children.toArray(t).filter((function(e){return e})),c=a.length,s=Object(l.useContext)(Dr),p=s.activeStepNumber,d=s.stepCompleteStatus,f=s.setTotalSteps;return Object(l.useEffect)((function(){f(c)}),[c,f]),Rr("active step",p,"step complete status",d,"total steps",c),a.map((function(e){i=(o=i)===c?null:o+1;var t=r&&p===o,n=!!d[o];return u.a.createElement(Br.Provider,{key:"checkout-step-"+o,value:{stepNumber:o,nextStepNumber:i,isStepActive:t,isStepComplete:n,areStepsActive:r}},e)}))}function Hr(e){var t=e.activeStepContent,n=e.completeStepContent,r=e.titleContent,o=e.stepId,i=e.className,a=e.isCompleteCallback,c=e.editButtonText,s=e.editButtonAriaLabel,p=e.nextStepButtonText,d=e.nextStepButtonAriaLabel,f=e.validatingButtonText,m=e.validatingButtonAriaLabel,h=P().__,b=Object(l.useContext)(Dr),g=b.setActiveStepNumber,v=b.setStepCompleteStatus,y=b.stepCompleteStatus,x=Object(l.useContext)(Br),_=x.stepNumber,w=x.nextStepNumber,E=x.isStepActive,k=x.isStepComplete,S=x.areStepsActive,C=fn(),j=C.formStatus,N=C.setFormValidating,A=C.setFormReady,L=mr(),T=wn(),F=function(e){var t,n;(t=!!e,v(Rt()(Rt()({},y),{},O()({},_,t))),e)&&(L({type:"STEP_NUMBER_CHANGED",payload:{stepNumber:w,previousStepNumber:_,paymentMethodId:null!==(n=null==T?void 0:T.id)&&void 0!==n?n:""}}),ao(w),g(w));A()},M=function(){var e=Ft()(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=a()).then){e.next=8;break}return N(),e.next=5,t;case 5:return n=e.sent,F(n),e.abrupt("return");case 8:F(t);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),R=["checkout-step"].concat(zt()(E?["is-active"]:[]),zt()(k?["is-complete"]:[]),zt()(i?[i]:[])),D=Object(l.useCallback)((function(e){return L({type:"STEP_LOAD_ERROR",payload:{message:e,stepId:o}})}),[L,o]);return u.a.createElement($r,{onError:D,editButtonText:c||h("Edit"),editButtonAriaLabel:s||h("Edit this step"),nextStepButtonText:p||h("Continue"),nextStepButtonAriaLabel:d||h("Continue to the next step"),validatingButtonText:f||h("Please wait…"),validatingButtonAriaLabel:m||h("Please wait…"),isStepActive:E,isStepComplete:k,stepNumber:_,stepId:o,titleContent:r,goToThisStep:S?function(){return g(_)}:void 0,goToNextStep:w>0?M:void 0,activeStepContent:t,formStatus:j,completeStepContent:n,className:Zt(R)})}function $r(e){var t=e.errorMessage,n=e.editButtonText,r=e.editButtonAriaLabel,o=e.nextStepButtonText,i=e.validatingButtonText,a=e.nextStepButtonAriaLabel,c=e.validatingButtonAriaLabel,s=e.isStepActive,l=e.isStepComplete,p=e.className,d=e.stepNumber,f=e.stepId,m=e.titleContent,h=e.goToThisStep,b=e.goToNextStep,g=e.activeStepContent,v=e.formStatus,y=e.completeStepContent,x=e.onError,_=P().__;return u.a.createElement(ln,{errorMessage:t||_("There was an error with this step."),onError:x},u.a.createElement(Wr,{isActive:s,isComplete:l,className:p},u.a.createElement(Kr,{id:f,stepNumber:d,title:m,isActive:s,isComplete:l,onEdit:"ready"===v&&l&&h&&!s?h:null,editButtonText:n||_("Edit"),editButtonAriaLabel:r||_("Edit this step")}),u.a.createElement(oo,{isVisible:s,className:"checkout-steps__step-content"},g,b&&s&&u.a.createElement(Dn,{onClick:b,value:"validating"===v?i||_("Please wait…"):o||_("Continue"),ariaLabel:"validating"===v?c||_("Please wait…"):a||_("Continue to next step"),buttonType:"primary",disabled:"ready"!==v,isBusy:"validating"===v})),l&&y?u.a.createElement(io,{isVisible:!s,className:"checkout-steps__step-complete-content"},y):null))}Hr.propTypes={submitButtonHeader:Xt.a.node},Ur.propTypes={areStepsActive:Xt.a.bool},Hr.propTypes={nextStepNumber:Xt.a.number},$r.propTypes={errorMessage:Xt.a.string,onError:Xt.a.func,editButtonAriaLabel:Xt.a.string,editButtonText:Xt.a.string,nextStepButtonText:Xt.a.string,nextStepButtonAriaLabel:Xt.a.string,isStepActive:Xt.a.bool.isRequired,isStepComplete:Xt.a.bool.isRequired,className:Xt.a.string,stepNumber:Xt.a.number,stepId:Xt.a.string.isRequired,titleContent:Xt.a.node.isRequired,goToThisStep:Xt.a.func,goToNextStep:Xt.a.func,activeStepContent:Xt.a.node,formStatus:Xt.a.string,completeStepContent:Xt.a.node};Wt.div(Fr(),(function(e){return e.theme.colors.outline}));var qr=Wt.div(Tr(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Vr=Wt.div(Lr(),(function(e){return e.theme.breakpoints.tabletUp}),(function(e){return e.theme.breakpoints.desktopUp})),Yr=Wt.div(Ar(),(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})),Gr=Wt.div(Pr(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.borderColorLight}),(function(e){return e.theme.breakpoints.tabletUp}));var Wr=Wt.div(Nr(),(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}));function Kr(e){var t=e.id,n=e.className,r=e.stepNumber,o=e.title,i=e.isActive,a=e.isComplete,c=e.onEdit,s=e.editButtonText,l=e.editButtonAriaLabel,p=P().__,d=!!c;return u.a.createElement(Jr,{isComplete:a,isActive:i,className:Zt([n,"checkout-step__header"])},u.a.createElement(Xr,{isComplete:a,isActive:i,id:t},r||null),u.a.createElement(Zr,{fullWidth:!d,isActive:i},o),d&&u.a.createElement(ro,{className:"checkout-step__edit-button",buttonType:"text-button",onClick:c,"aria-label":l||p("Edit this step")},s||p("Edit")))}function Xr(e){var t=e.isComplete,n=e.isActive,r=e.className,o=e.children,i=e.id,a=!n&&t;return u.a.createElement(Qr,{className:Zt([r,"checkout-step__stepper"])},u.a.createElement(eo,{isComplete:a},u.a.createElement(to,{isComplete:a,isActive:n},o),u.a.createElement(no,null,u.a.createElement(Mn,{id:i}))))}Kr.propTypes={id:Xt.a.string,className:Xt.a.string,title:Xt.a.node.isRequired,isActive:Xt.a.bool,isComplete:Xt.a.bool,editButtonText:Xt.a.string,editButtonAriaLabel:Xt.a.string,onEdit:Xt.a.func},Xr.propTypes={id:Xt.a.string,className:Xt.a.string,isComplete:Xt.a.bool,isActive:Xt.a.bool};var Zr=Wt.span(jr(),(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?"1":"inherit"}),(function(e){return e.fullWidth?"0":"8px"})),Jr=Wt.h2(Cr(),(function(e){return e.isComplete||e.isActive?"8px":"0"})),Qr=Wt.div(Sr()),eo=Wt.div(kr(),(function(e){return e.isComplete?"rotateY(180deg)":"rotateY(0)"})),to=Wt.div(Er(),(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"})),no=Wt(to)(Or(),(function(e){return e.theme.colors.success}),(function(e){return e.isComplete?"1":"0"})),ro=Wt(Cn)(wr());var oo=Wt.div(_r(),(function(e){return e.theme.colors.textColor}),(function(e){return e.isVisible?"block":"none"})),io=Wt.div(xr(),(function(e){return e.theme.colors.textColorLight}),(function(e){return e.isVisible?"block":"none"}));function ao(e){var t;if(null===(t=window.history)||void 0===t?void 0:t.pushState){var n=e>1?"#step".concat(e):"";if(window.location.hash!==n){var r=window.location.hash?window.location.href.replace(window.location.hash,n):window.location.href+n;Rr("updating url to",r),window.history.pushState(null,null,r)}}}function co(){var e,t=Object(i.useSelect)((function(e){return e("automattic/site").getSite(window._currentSiteId)})),n=Object(i.useSelect)((function(e){return e("automattic/site").isLaunched(window._currentSiteId)}));return{isFreePlan:null==t||null===(e=t.plan)||void 0===e?void 0:e.is_free,launchStatus:n,currentDomainName:(null==t?void 0:t.URL)&&new URL(null==t?void 0:t.URL).hostname}}n(93);var so,lo,uo=Object(o.createElement)(b,{icon:wt,size:17}),po=function(e){var t,n,a=e.onNextStep,c=Object(E.useEntityProp)("root","site","title"),l=s()(c,1)[0],u=co().currentDomainName,f=Object(i.useSelect)((function(e){return e(r).getSelectedDomain()})),m=Object(i.useSelect)((function(e){return e(r).getSelectedPlan()})),h=Object(i.useSelect)((function(e){return e(r).getState()})).completedSteps,b=Object(i.useDispatch)(r).setStep,g=Object(i.useSelect)((function(e){return e("automattic/onboard/plans").getPrices()})),v=(n=Object(i.useSelect)((function(e){return e(r).getState()})).domainSearch,null===(t=Object(i.useSelect)((function(e){if(n&&!(n.length<2))return e("automattic/domains/suggestions").getDomainSuggestions(n,{include_wordpressdotcom:!1,include_dotblogsubdomain:!1,quantity:1,locale:"en"})}),[n]))||void 0===t?void 0:t[0]),y=Object(o.createElement)("div",{className:"nux-launch__summary-item"},Object(o.createElement)("p",null,Object(p.__)("Site","full-site-editing"),": ",l)),x=Object(o.createElement)("div",{className:"nux-launch__summary-item"},(null==f?void 0:f.domain_name)?Object(o.createElement)("p",null,Object(p.__)("Custom domain","full-site-editing"),": ",f.domain_name):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",null,Object(p.__)("Free site address","full-site-editing"),": ",u),Object(o.createElement)(d.Tip,null,Object(o.createInterpolateElement)(Object(p.__)("A custom site address like <DomainName /> (<Link>now available!</Link>) is more unique and can help with your SEO ranking.","full-site-editing"),{DomainName:Object(o.createElement)("span",{className:_()("nux-launch__summary-item__domain-name",{"is-loading":!v})},(null==v?void 0:v.domain_name)||"loading-example.com"),Link:Object(o.createElement)(d.Button,{isLink:!0,onClick:function(){return b(M)}})})))),w=Object(o.createElement)("div",{className:"nux-launch__summary-item"},m&&!(null==m?void 0:m.isFree)?Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com ",m.title),Object(p.__)("Plan subscription","full-site-editing"),": ",g[m.storeSlug]," ",Object(p.__)("per month, billed yearly","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("p",{className:"nux-launch__summary-item__plan-name"},"WordPress.com Free"),Object(o.createElement)("p",null,Object(p.__)("Plan subscription: Free forever","full-site-editing")),Object(o.createElement)(d.Tip,null,Object(o.createInterpolateElement)(Object(p.__)("<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 30-day full-refunds, guaranteed.","full-site-editing"),{Link:Object(o.createElement)(d.Button,{isLink:!0,onClick:function(){return b(R)}})}))));return Object(o.createElement)(D,{className:"nux-launch-final-step"},Object(o.createElement)("div",{className:"nux-launch-step__header"},Object(o.createElement)("div",null,Object(o.createElement)(k,null,Object(p.__)("Launch your site","full-site-editing")),Object(o.createElement)(S,null,Object(p.__)("Your site will be made public and ready to share with others.","full-site-editing")))),Object(o.createElement)("div",{className:"nux-launch-step__body"},Object(o.createElement)(_t,{theme:Lt},Object(o.createElement)(qr,null,h.includes(R)&&Object(o.createElement)(Ir,null,Object(o.createElement)(zr,{className:"nux-launch__feature-list"},Object(o.createElement)("h3",{className:"nux-launch__feature-list-title"},Object(p.__)("Included in your plan","full-site-editing")),Object(o.createElement)("ul",{className:"nux-launch__feature-item-group"},null==m?void 0:m.features.map((function(e,t){return Object(o.createElement)("li",{key:t,className:"nux-launch__feature-item"},uo," ",e)}))),Object(o.createElement)("p",null,Object(p.__)("Questions?","full-site-editing")," ",Object(o.createElement)(d.Button,{isLink:!0,href:"https://wordpress.com/help/contact",target:"_blank"},Object(p.__)("Ask a Happiness Engineer","full-site-editing"))))),Object(o.createElement)(Yr,null,Object(o.createElement)($r,{titleContent:Object(p.__)("Your site name","full-site-editing"),isStepComplete:h.includes(F),goToThisStep:function(){return b(F)},completeStepContent:y,stepId:"name",formStatus:"ready"}),Object(o.createElement)($r,{titleContent:Object(p.__)("Your domain","full-site-editing"),isStepComplete:h.includes(M),goToThisStep:function(){return b(M)},completeStepContent:x,stepId:"domain",formStatus:"ready"}),Object(o.createElement)($r,{titleContent:Object(p.__)("Your plan","full-site-editing"),isStepComplete:h.includes(R),goToThisStep:function(){return b(R)},completeStepContent:w,stepId:"plan",formStatus:"ready"}),Object(o.createElement)(Gr,null,Object(o.createElement)(d.Button,{isPrimary:!0,disabled:h.length<3,onClick:a,className:"nux-launch__submit-button"},Object(p.__)("Launch your site","full-site-editing"))))))))},fo=(n(97),function(e){var t,n=e.onSubmit,a=Object(i.useSelect)((function(e){return e(r).getState()})).step,c=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),s=Object(i.useSelect)((function(e){return e(r).getLaunchSequence()})),l=Object(i.useDispatch)(r).setStep,u=(t={},O()(t,c.Name,B),O()(t,c.Domain,Se),O()(t,c.Plan,Ie),O()(t,c.Final,po),t),p=s.indexOf(a),d=u[a];return Object(o.createElement)("div",{className:"nux-launch"},Object(o.createElement)(E.EntityProvider,{kind:"root",type:"site"},Object(o.createElement)(d,{onPrevStep:function(){var e=p-1;e<0&&(e=0),l(s[e])},onNextStep:function(){var e=p+1;e>s.length-1&&(null==n||n()),l(s[e])}})))}),mo=Object(o.createElement)(d.SVG,{viewBox:"0 0 24 24"},Object(o.createElement)(d.Circle,{cx:"12",cy:"12",r:"5"})),ho=function(e){var t=e.title,n=e.isCompleted,r=e.isCurrent,i=e.isDisabled,a=e.onClick;return Object(o.createElement)(d.Button,{className:_()("nux-launch-menu__item",{"is-current":r,"is-completed":n}),onClick:a,disabled:i,isLink:!0},Object(o.createElement)(b,{icon:n?wt:mo,size:16}),Object(o.createElement)("span",null,t))},bo=(n(98),function(){var e,t=Object(i.useSelect)((function(e){return e(r).getState()})),n=t.step,a=t.completedSteps,c=Object(i.useSelect)((function(e){return e(r).getLaunchStep()})),s=Object(i.useSelect)((function(e){return e(r).getLaunchSequence()})),l=(e={},O()(e,c.Name,Object(p.__)("Name your site","full-site-editing")),O()(e,c.Domain,Object(p.__)("Select a domain","full-site-editing")),O()(e,c.Plan,Object(p.__)("Select a plan","full-site-editing")),O()(e,c.Final,Object(p.__)("Launch your site","full-site-editing")),e),u=Object(i.useDispatch)(r).setStep;return Object(o.createElement)("div",{className:"nux-launch-menu"},Object(o.createElement)("h4",null,Object(p.__)("Site Launch Steps","full-site-editing")),Object(o.createElement)("div",{className:"nux-launch-menu__item-group"},s.map((function(e){return Object(o.createElement)(ho,{title:l[e],isCompleted:a.includes(e),isCurrent:e===n,onClick:function(){return u(e)},isDisabled:e===c.Final&&!a.length})}))))}),go=(n(99),function(){return Object(o.createElement)("div",{className:"nux-launch-sidebar"},Object(o.createElement)("h2",null,Object(p.__)("You're almost there!","full-site-editing")),Object(o.createElement)("h3",null,Object(p.__)("Complete the following steps to launch your site. Your site will remain private until you Launch.","full-site-editing")),Object(o.createElement)(bo,null))}),vo=(n(100),function(e){var t=e.onClose,n=Object(i.useSelect)((function(e){return e(r).getState()})).step,a=Object(i.useDispatch)(r).launchSite,c=l.useState(!1),u=s()(c,2),f=u[0],m=u[1],h=function(){m(!0),a()};return co().isFreePlan||f||h(),Object(o.createElement)(d.Modal,{open:!0,className:_()("nux-launch-modal","step-".concat(n)),overlayClassName:"nux-launch-modal-overlay",bodyOpenClassName:"has-nux-launch-modal",onRequestClose:t,title:""},f?Object(o.createElement)("div",{className:"nux-launch-modal-body__launching"},Object(p.__)("Hooray! Your site will be ready shortly.","full-site-editing")):Object(o.createElement)(o.Fragment,null,Object(o.createElement)("div",{className:"nux-launch-modal-header"},Object(o.createElement)("div",{className:"nux-launch-modal-header__wp-logo"},Object(o.createElement)(b,{icon:v,size:36}))),Object(o.createElement)("div",{className:"nux-launch-modal-body"},Object(o.createElement)(fo,{onSubmit:h})),Object(o.createElement)("div",{className:"nux-launch-modal-aside"},Object(o.createElement)(d.Button,{isLink:!0,className:"nux-launch-modal__close-button",onClick:t,"aria-label":Object(p.__)("Close dialog","full-site-editing"),disabled:!t},Object(o.createElement)(b,{icon:y,size:24})),Object(o.createElement)(go,null))))});so="a8c-editor-site-launch",lo={render:function(){var e=Object(i.useSelect)((function(e){return e(r).getState()})).isSidebarOpen,t=Object(i.useDispatch)(r).closeSidebar;return function(){var e=co().launchStatus,t=Object(i.useSelect)((function(e){return e(r).getState()})),n=t.plan,o=t.domain,a=Object(i.useDispatch)("automattic/site"),c=a.getCart,s=a.setCart;l.useEffect((function(){if(e){if(n&&!(null==n?void 0:n.isFree)){var t={product_id:n.productId,product_slug:n.storeSlug,extra:{source:"gutenboarding"}},r={meta:null==o?void 0:o.domain_name,product_id:null==o?void 0:o.product_id,extra:{privacy_available:null==o?void 0:o.supports_privacy,privacy:null==o?void 0:o.supports_privacy,source:"gutenboarding"}};return void function(){var e=Ft()(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(window._currentSiteId);case 2:return n=e.sent,e.next=5,s(window._currentSiteId,Rt()(Rt()({},n),{},{products:[].concat(zt()(n.products),[t,r])}));case 5:window.top.location.href="https://wordpress.com/checkout/".concat(window._currentSiteId,"?preLaunch=1");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()()}window.top.location.href="https://wordpress.com/home/".concat(window._currentSiteId)}}),[e])}(),e?Object(o.createElement)(vo,{onClose:t}):null}},Object(a.registerPlugin)(so,lo)}]));
|
editor-site-launch/src/hooks/use-site.ts
CHANGED
@@ -21,7 +21,7 @@ export function useSite() {
|
|
21 |
);
|
22 |
|
23 |
return {
|
24 |
-
isFreePlan: site?.plan
|
25 |
launchStatus,
|
26 |
currentDomainName: site?.URL && new URL( site?.URL ).hostname,
|
27 |
};
|
21 |
);
|
22 |
|
23 |
return {
|
24 |
+
isFreePlan: site?.plan?.is_free,
|
25 |
launchStatus,
|
26 |
currentDomainName: site?.URL && new URL( site?.URL ).hostname,
|
27 |
};
|
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: 1.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -35,7 +35,7 @@ namespace A8C\FSE;
|
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
-
define( 'PLUGIN_VERSION', '1.
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 1.19
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
35 |
*
|
36 |
* @var string
|
37 |
*/
|
38 |
+
define( 'PLUGIN_VERSION', '1.19' );
|
39 |
|
40 |
// Always include these helper files for dotcom FSE.
|
41 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: alexislloyd, allancole, automattic, bartkalisz, codebykat, copons,
|
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.4
|
6 |
-
Stable tag: 1.
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -40,6 +40,9 @@ This plugin is experimental, so we don't provide any support for it outside of w
|
|
40 |
|
41 |
== Changelog ==
|
42 |
|
|
|
|
|
|
|
43 |
= 1.18 =
|
44 |
* Fix broken link on mobile when selecting launch flow.
|
45 |
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 1.19
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
40 |
|
41 |
== Changelog ==
|
42 |
|
43 |
+
= 1.19 =
|
44 |
+
* Fix error in editor when accessing page as a non-user super admin.
|
45 |
+
|
46 |
= 1.18 =
|
47 |
* Fix broken link on mobile when selecting launch flow.
|
48 |
|