Version Description
- Fix broken link on mobile when selecting launch flow.
Download this release
Release Info
Developer | yansern |
Plugin | Full Site Editing |
Version | 1.18 |
Comparing to | |
See all releases |
Code changes from version 1.17 to 1.18
- editor-gutenboarding-launch/dist/editor-gutenboarding-launch.asset.php +1 -1
- editor-gutenboarding-launch/dist/editor-gutenboarding-launch.js +2 -2
- editor-gutenboarding-launch/index.ts +9 -7
- editor-site-launch/dist/editor-site-launch.asset.php +1 -1
- editor-site-launch/dist/editor-site-launch.js +2 -2
- full-site-editing-plugin.php +2 -2
- readme.txt +4 -1
editor-gutenboarding-launch/dist/editor-gutenboarding-launch.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '76422c1a3bb0e32527ced432958a7771');
|
editor-gutenboarding-launch/dist/editor-gutenboarding-launch.js
CHANGED
@@ -1,7 +1,7 @@
|
|
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
|
2 |
/*!
|
3 |
* cookie
|
4 |
* Copyright(c) 2012-2014 Roman Shtylman
|
5 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
6 |
* MIT Licensed
|
7 |
-
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},o=t||{},s=e.split(i),u=o.decode||r,c=0;c<s.length;c++){var f=s[c],l=f.indexOf("=");if(!(l<0)){var h=f.substr(0,l).trim(),p=f.substr(++l,f.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[h]&&(n[h]=a(p,u))}}return n},t.serialize=function(e,t,n){var r=n||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var a=i(t);if(a&&!s.test(a))throw new TypeError("argument val is invalid");var u=e+"="+a;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");u+="; Max-Age="+Math.floor(c)}if(r.domain){if(!s.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw new TypeError("option path is invalid");u+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(u+="; HttpOnly");r.secure&&(u+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,o=encodeURIComponent,i=/; */,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},function(e,t,n){"use strict";var r=n(4),o=n(20);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function 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 s=e.charCodeAt(o);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):i(e,o)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++o)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(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+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=s(o)),n+=u(o.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,o){var i=n-t;r(i%4==0);for(var s=new Array(i/4),a=0,u=t;a<s.length;a++,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],s[a]=c>>>0}return s},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,s=(i<r?1:0)+n+o;e[t]=s>>>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,s,a){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+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,i,s,a){return t+r+i+a>>>0},t.sum64_5_hi=function(e,t,n,r,o,i,s,a,u,c){var f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+i>>>0)<i?1:0,f+=(l=l+a>>>0)<a?1:0,e+n+o+s+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,i,s,a,u,c){return t+r+i+a+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){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){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.data}()},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){function n(e,t,n,r,o,i,s){try{var a=e[i](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var s=e.apply(t,r);function a(e){n(s,o,i,a,u,"next",e)}function u(e){n(s,o,i,a,u,"throw",e)}a(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";var r=n(3),o=n(21),i=n(22),s=n(4),a=r.sum32,u=r.sum32_4,c=r.sum32_5,f=i.ch32,l=i.maj32,h=i.s0_256,p=i.s1_256,d=i.g0_256,v=i.g1_256,g=o.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(v(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var o=this.h[0],i=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],C=this.h[5],w=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=c(b,p(y),f(y,C,w),this.k[r],n[r]),F=a(h(o),l(o,i,g));b=w,w=C,C=y,y=a(m,_),m=g,g=i,i=o,o=a(_,F)}this.h[0]=a(this.h[0],o),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],C),this.h[6]=a(this.h[6],w),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},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 s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.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 f(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,i,s,a;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),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(o=f(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function h(){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 p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=h.bind(r);return o.listener=n,r.wrapFn=o,o}function d(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):g(o,o.length)}function v(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 g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.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},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(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},a.prototype.getMaxListeners=function(){return f(this)},a.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 s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,f=g(u,c);for(n=0;n<c;++n)i(f[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,o,i,s;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){s=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,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.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},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},a.prototype.listenerCount=v,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(14);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return o.colors[Math.abs(t)%o.colors.length]}function o(e){var n;function r(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,t[0]=o.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=o.formatters[n];if("function"==typeof r){var i=t[c];e=r.call(s,i),t.splice(c,1),c--}return e})),o.formatArgs.call(s,t);var f=s.log||o.log;f.apply(s,t)}}return r.namespace=e,r.enabled=o.enabled(e),r.useColors=o.useColors(),r.color=t(e),r.destroy=i,r.extend=s,"function"==typeof o.init&&o.init(r),o.instances.push(r),r}function i(){var e=o.instances.indexOf(this);return-1!==e&&(o.instances.splice(e,1),!0)}function s(e,t){var n=o(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return o.debug=o,o.default=o,o.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},o.disable=function(){var e=[].concat(r(o.names.map(a)),r(o.skips.map(a).map((function(e){return"-"+e})))).join(",");return o.enable(""),e},o.enable=function(e){var t;o.save(e),o.names=[],o.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?o.skips.push(new RegExp("^"+e.substr(1)+"$")):o.names.push(new RegExp("^"+e+"$")));for(t=0;t<o.instances.length;t++){var i=o.instances[t];i.enabled=o.enabled(i.namespace)}},o.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=o.skips.length;t<n;t++)if(o.skips[t].test(e))return!1;for(t=0,n=o.names.length;t<n;t++)if(o.names[t].test(e))return!0;return!1},o.humanize=n(19),Object.keys(e).forEach((function(t){o[t]=e[t]})),o.instances=[],o.names=[],o.skips=[],o.formatters={},o.selectColor=t,o.enable(o.load()),o}},function(e,t,n){var r=n(15),o=n(16),i=n(17),s=n(18);e.exports=function(e){return r(e)||o(e)||i(e)||s()}},function(e,t,n){var r=n(7);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(7);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){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n=1e3,r=6e4,o=60*r,i=24*o;function s(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*o;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=o)return s(e,t,o,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},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,n){"use strict";var r=n(3),o=n(4);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var o=1;o<n;o++)r[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,i=8;i<this.padLength;i++)r[o++]=0;return r}},function(e,t,n){"use strict";var r=n(3).rotr32;function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?s(t,n,r):2===e?i(t,n,r):void 0},t.ch32=o,t.maj32=i,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t){!function(){e.exports=this["a8c-fse-common-data-stores"]}()},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(8),o=n.n(r),i=n(5),s=n(9),a=n.n(s),u=n(10),c=n(6),f=n(0),l=n.n(f),h=l()("calypso:analytics");n(11);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var p=function(){return(p=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)};var d=n(1),v=(n(2),n(12)),g=l()("lib/load-script/callback-handler"),m=new Map;function y(){return m}function C(e){return y().has(e)}function w(e,t){var n=y();C(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 b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=y(),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 _(){var e=this.getAttribute("src");g('Handling successful request for "'.concat(e,'"')),b(e),this.onload=null}function F(){var e=this.getAttribute("src");g('Handling failed request for "'.concat(e,'"')),b(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var x=l()("lib/load-script/dom-operations");l()("package/load-script");function S(e,t){var n;if(!C(e)&&(n=function(e){x('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=_,t.onerror=F,t}(e),x("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){w(e,(function(e){null===e?t():n(e)}))}));w(e,t)}var L,A=["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 E(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&S("//stats.wp.com/w.js?61");var O=new v.EventEmitter;function j(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(d.includes)(A,e)){if(L){var n=L(t);t=p(p({},t),n)}t=Object(d.omitBy)(t,d.isUndefined),h('Recording event "%s" with actual props %o',e,t),E(["recordEvent",e,t]),O.emit("record-event",e,t)}else h('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),new Uint8Array(16);for(var k=[],M=0;M<256;++M)k[M]=(M+256).toString(16).substr(1);n(23),n(24),n(25);a()((function(){P(),Object(u.addAction)("setGutenboardingStatus","a8c-gutenboarding",P)}));var T=!1;function P(){var e,t,n,r;if(!T&&(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding)&&(null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.frankenflowUrl)){T=!0;var s=setInterval((function(){var e,t,n=document.querySelector(".edit-post-header__settings");if(n){clearInterval(s),document.querySelector("body").classList.add("editor-gutenberg-launch__fse-overrides");var r=n.querySelector(".editor-post-publish-button__button"),a=document.createElement("a"),u=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.frankenflowUrl,f="new-launch"===u;a.href=u,a.target="_top",a.className="editor-gutenberg-launch__launch-button components-button is-primary";var l=f?Object(i.__)("Complete setup","full-site-editing"):Object(i.__)("Launch","full-site-editing"),h=document.createTextNode(l);a.appendChild(h);var p=function(){var e=o()(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,Object(c.dispatch)("core/editor").savePost();case 3:j("calypso_newsite_editor_launch_click"),!f||window.innerWidth<768?window.top.location.href=u:Object(c.dispatch)("automattic/launch").openSidebar();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();a.addEventListener("click",p),n.prepend(a),r&&n.prepend(r)}}))}}}]));
|
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 i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));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=26)}([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,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.exports=n(13)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,n){"use strict";
|
2 |
/*!
|
3 |
* cookie
|
4 |
* Copyright(c) 2012-2014 Roman Shtylman
|
5 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
6 |
* MIT Licensed
|
7 |
+
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},s=e.split(o),u=i.decode||r,c=0;c<s.length;c++){var f=s[c],l=f.indexOf("=");if(!(l<0)){var h=f.substr(0,l).trim(),p=f.substr(++l,f.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[h]&&(n[h]=a(p,u))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!s.test(e))throw new TypeError("argument name is invalid");var a=o(t);if(a&&!s.test(a))throw new TypeError("argument val is invalid");var u=e+"="+a;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");u+="; Max-Age="+Math.floor(c)}if(r.domain){if(!s.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw new TypeError("option path is invalid");u+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(u+="; HttpOnly");r.secure&&(u+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function a(e,t){try{return t(e)}catch(n){return e}}},function(e,t,n){"use strict";var r=n(4),i=n(20);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function 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=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=u(i.toString(16))}return n},t.zero2=a,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var c;c="big"===i?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],s[a]=c>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,a){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+s+(u+=(c=c+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,a){return t+r+o+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,a,u,c){var f=0,l=t;return f+=(l=l+r>>>0)<t?1:0,f+=(l=l+o>>>0)<o?1:0,f+=(l=l+a>>>0)<a?1:0,e+n+i+s+u+(f+=(l=l+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,a,u,c){return t+r+o+a+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){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){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.data}()},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){function n(e,t,n,r,i,o,s){try{var a=e[o](s),u=a.value}catch(c){return void n(c)}a.done?t(u):Promise.resolve(u).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,u,"next",e)}function u(e){n(s,i,o,a,u,"throw",e)}a(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.domReady}()},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t,n){"use strict";var r=n(3),i=n(21),o=n(22),s=n(4),a=r.sum32,u=r.sum32_4,c=r.sum32_5,f=o.ch32,l=o.maj32,h=o.s0_256,p=o.s1_256,d=o.g0_256,v=o.g1_256,g=i.BlockHash,m=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=m,this.W=new Array(64)}r.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(v(n[r-2]),n[r-7],d(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],m=this.h[3],y=this.h[4],w=this.h[5],C=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var _=c(b,p(y),f(y,w,C),this.k[r],n[r]),F=a(h(i),l(i,o,g));b=C,C=w,w=y,y=a(m,_),m=g,g=o,o=i,i=a(_,F)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],m),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],w),this.h[6]=a(this.h[6],C),this.h[7]=a(this.h[7],b)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.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 f(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,s,a;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=f(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function h(){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 p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function v(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 g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.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},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(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},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var c=u.length,f=g(u,c);for(n=0;n<c;++n)o(f[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return c(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,o,s;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(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},a.prototype.listenerCount=v,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){var r=n(14);e.exports=function(e){function t(e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){var n;function r(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(r.enabled){var s=r,a=Number(new Date),u=a-(n||a);s.diff=u,s.prev=n,s.curr=a,n=a,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");var c=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;c++;var r=i.formatters[n];if("function"==typeof r){var o=t[c];e=r.call(s,o),t.splice(c,1),c--}return e})),i.formatArgs.call(s,t);var f=s.log||i.log;f.apply(s,t)}}return r.namespace=e,r.enabled=i.enabled(e),r.useColors=i.useColors(),r.color=t(e),r.destroy=o,r.extend=s,"function"==typeof i.init&&i.init(r),i.instances.push(r),r}function o(){var e=i.instances.indexOf(this);return-1!==e&&(i.instances.splice(e,1),!0)}function s(e,t){var n=i(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},i.disable=function(){var e=[].concat(r(i.names.map(a)),r(i.skips.map(a).map((function(e){return"-"+e})))).join(",");return i.enable(""),e},i.enable=function(e){var t;i.save(e),i.names=[],i.skips=[];var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&("-"===(e=n[t].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+e.substr(1)+"$")):i.names.push(new RegExp("^"+e+"$")));for(t=0;t<i.instances.length;t++){var o=i.instances[t];o.enabled=i.enabled(o.namespace)}},i.enabled=function(e){if("*"===e[e.length-1])return!0;var t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1},i.humanize=n(19),Object.keys(e).forEach((function(t){i[t]=e[t]})),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}},function(e,t,n){var r=n(15),i=n(16),o=n(17),s=n(18);e.exports=function(e){return r(e)||i(e)||o(e)||s()}},function(e,t,n){var r=n(7);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(7);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){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n=1e3,r=6e4,i=60*r,o=24*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===a&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=o)return s(e,t,o,"day");if(t>=i)return s(e,t,i,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=o)return Math.round(e/o)+"d";if(t>=i)return Math.round(e/i)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},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,n){"use strict";var r=n(3),i=n(4);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";var r=n(3).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t){!function(){e.exports=this["a8c-fse-common-data-stores"]}()},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(8),i=n.n(r),o=n(5),s=n(9),a=n.n(s),u=n(10),c=n(6),f=n(0),l=n.n(f),h=l()("calypso:analytics");n(11);"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}));var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};var d=n(1),v=(n(2),n(12)),g=l()("lib/load-script/callback-handler"),m=new Map;function y(){return m}function w(e){return y().has(e)}function C(e,t){var n=y();w(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 b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=y(),r=n.get(e);if(r){var i='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));g(i),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function _(){var e=this.getAttribute("src");g('Handling successful request for "'.concat(e,'"')),b(e),this.onload=null}function F(){var e=this.getAttribute("src");g('Handling failed request for "'.concat(e,'"')),b(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}var x=l()("lib/load-script/dom-operations");l()("package/load-script");function S(e,t){var n;if(!w(e)&&(n=function(e){x('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=_,t.onerror=F,t}(e),x("Attaching element to head"),document.head.appendChild(n)),"function"!=typeof t)return new Promise((function(t,n){C(e,(function(e){null===e?t():n(e)}))}));C(e,t)}var L,A=["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 E(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&S("//stats.wp.com/w.js?61");var O=new v.EventEmitter;function j(e,t){if(h('Record event "%s" called with props %o',e,t=t||{}),e.startsWith("calypso_")||Object(d.includes)(A,e)){if(L){var n=L(t);t=p(p({},t),n)}t=Object(d.omitBy)(t,d.isUndefined),h('Recording event "%s" with actual props %o',e,t),E(["recordEvent",e,t]),O.emit("record-event",e,t)}else h('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),new Uint8Array(16);for(var k=[],M=0;M<256;++M)k[M]=(M+256).toString(16).substr(1);n(23),n(24),n(25);a()((function(){P(),Object(u.addAction)("setGutenboardingStatus","a8c-gutenboarding",P)}));var T=!1;function P(){var e,t,n,r;if(!T&&(null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding)&&(null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.frankenflowUrl)){T=!0;var s=setInterval((function(){var e,t,n,r,a=document.querySelector(".edit-post-header__settings");if(a){clearInterval(s);var u=window.innerWidth<768,f=null===(e=window)||void 0===e||null===(t=e.calypsoifyGutenberg)||void 0===t?void 0:t.isNewLaunch;document.querySelector("body").classList.add("editor-gutenberg-launch__fse-overrides");var l=a.querySelector(".editor-post-publish-button__button"),h=document.createElement("a"),p=null===(n=window)||void 0===n||null===(r=n.calypsoifyGutenberg)||void 0===r?void 0:r.frankenflowUrl;h.href=p,h.target="_top",h.className="editor-gutenberg-launch__launch-button components-button is-primary";var d=u?Object(o.__)("Launch","full-site-editing"):Object(o.__)("Complete setup","full-site-editing"),v=document.createTextNode(d);h.appendChild(v);var g=function(){var e=i()(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,Object(c.dispatch)("core/editor").savePost();case 3:j("calypso_newsite_editor_launch_click"),f&&!u?Object(c.dispatch)("automattic/launch").openSidebar():window.top.location.href=p;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();h.addEventListener("click",g),a.prepend(h),l&&a.prepend(l)}}))}}}]));
|
editor-gutenboarding-launch/index.ts
CHANGED
@@ -49,6 +49,10 @@ function updateEditor() {
|
|
49 |
return;
|
50 |
}
|
51 |
clearInterval( awaitSettingsBar );
|
|
|
|
|
|
|
|
|
52 |
const body = document.querySelector( 'body' );
|
53 |
body.classList.add( 'editor-gutenberg-launch__fse-overrides' );
|
54 |
|
@@ -64,16 +68,14 @@ function updateEditor() {
|
|
64 |
// Assert reason: We have an early return above with optional and falsy values. This should be a string.
|
65 |
const launchHref = window?.calypsoifyGutenberg?.frankenflowUrl as string;
|
66 |
|
67 |
-
// Temporary solution to test new launch flow
|
68 |
-
const isNewLaunch = launchHref === 'new-launch';
|
69 |
-
|
70 |
launchLink.href = launchHref;
|
71 |
launchLink.target = '_top';
|
72 |
launchLink.className = 'editor-gutenberg-launch__launch-button components-button is-primary';
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
77 |
|
78 |
const textContent = document.createTextNode( launchLabel );
|
79 |
launchLink.appendChild( textContent );
|
@@ -85,7 +87,7 @@ function updateEditor() {
|
|
85 |
|
86 |
recordTracksEvent( 'calypso_newsite_editor_launch_click' );
|
87 |
|
88 |
-
if ( isNewLaunch && !
|
89 |
// Open editor-site-launch sidebar
|
90 |
dispatch( 'automattic/launch' ).openSidebar();
|
91 |
} else {
|
49 |
return;
|
50 |
}
|
51 |
clearInterval( awaitSettingsBar );
|
52 |
+
|
53 |
+
const isMobile = window.innerWidth < 768;
|
54 |
+
const isNewLaunch = window?.calypsoifyGutenberg?.isNewLaunch;
|
55 |
+
|
56 |
const body = document.querySelector( 'body' );
|
57 |
body.classList.add( 'editor-gutenberg-launch__fse-overrides' );
|
58 |
|
68 |
// Assert reason: We have an early return above with optional and falsy values. This should be a string.
|
69 |
const launchHref = window?.calypsoifyGutenberg?.frankenflowUrl as string;
|
70 |
|
|
|
|
|
|
|
71 |
launchLink.href = launchHref;
|
72 |
launchLink.target = '_top';
|
73 |
launchLink.className = 'editor-gutenberg-launch__launch-button components-button is-primary';
|
74 |
|
75 |
+
// On mobile there is not enough space to display "Complete setup" label.
|
76 |
+
const launchLabel = isMobile
|
77 |
+
? __( 'Launch', 'full-site-editing' )
|
78 |
+
: __( 'Complete setup', 'full-site-editing' );
|
79 |
|
80 |
const textContent = document.createTextNode( launchLabel );
|
81 |
launchLink.appendChild( textContent );
|
87 |
|
88 |
recordTracksEvent( 'calypso_newsite_editor_launch_click' );
|
89 |
|
90 |
+
if ( isNewLaunch && ! isMobile ) {
|
91 |
// Open editor-site-launch sidebar
|
92 |
dispatch( 'automattic/launch' ).openSidebar();
|
93 |
} else {
|
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' => '20a1206285d7e73ba43cf9659c8f0be5');
|
editor-site-launch/dist/editor-site-launch.js
CHANGED
@@ -30,11 +30,11 @@ object-assign
|
|
30 |
(c) Sindre Sorhus
|
31 |
@license MIT
|
32 |
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,c,s=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(s[u]=n[u]);if(r){c=r(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(s[c[p]]=n[c[p]])}}return s}},function(e,t,n){},function(e,t,n){"use strict";e.exports=n(92)},function(e,t,n){"use strict";
|
33 |
-
/** @license React v16.
|
34 |
* react-is.production.min.js
|
35 |
*
|
36 |
* Copyright (c) Facebook, Inc. and its affiliates.
|
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 |
-
*/Object.defineProperty(t,"__esModule",{value:!0});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.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function _(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 w(e){return _(e)===d}t.typeOf=_,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.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===v||e.$$typeof===y||e.$$typeof===x)},t.isAsyncMode=function(e){return w(e)||_(e)===p},t.isConcurrentMode=w,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===b},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===c},t.isSuspense=function(e){return _(e)===m}},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)}]));
|
30 |
(c) Sindre Sorhus
|
31 |
@license MIT
|
32 |
*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,c,s=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))o.call(n,u)&&(s[u]=n[u]);if(r){c=r(n);for(var p=0;p<c.length;p++)i.call(n,c[p])&&(s[c[p]]=n[c[p]])}}return s}},function(e,t,n){},function(e,t,n){"use strict";e.exports=n(92)},function(e,t,n){"use strict";
|
33 |
+
/** @license React v16.13.1
|
34 |
* react-is.production.min.js
|
35 |
*
|
36 |
* Copyright (c) Facebook, Inc. and its affiliates.
|
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)}]));
|
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.18
|
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.18' );
|
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.17 =
|
44 |
* Site setup list: fix bug opening customer home inside iframe
|
45 |
* Site setup list: show clickable links in launch summary step
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.4
|
6 |
+
Stable tag: 1.18
|
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.18 =
|
44 |
+
* Fix broken link on mobile when selecting launch flow.
|
45 |
+
|
46 |
= 1.17 =
|
47 |
* Site setup list: fix bug opening customer home inside iframe
|
48 |
* Site setup list: show clickable links in launch summary step
|