Full Site Editing - Version 3.13942

Version Description

Download this release

Release Info

Developer chriskmnds
Plugin Icon wp plugin Full Site Editing
Version 3.13942
Comparing to
See all releases

Code changes from version 3.13822 to 3.13942

editor-site-launch/dist/focused-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '612f89cfef33e3aaac1678675b4d348c');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => 'fad4fed2da4681145e883988ae696535');
editor-site-launch/dist/gutenboarding-launch.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '4bfa7b9eaac7b54fa0561ed8de593589');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-react-i18n', 'wp-url'), 'version' => '9bae359a9152b58175f60d170099baa7');
editor-site-launch/dist/launch-button.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-i18n', 'wp-polyfill'), 'version' => 'c8dbad65e8675fbdf9e11e4d3ed263e5');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'wp-data', 'wp-dom-ready', 'wp-editor', 'wp-i18n', 'wp-polyfill'), 'version' => 'ef37dcf2a745d580f5f99de2f8d32f4f');
full-site-editing-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
- * Version: 3.13822
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
@@ -42,7 +42,7 @@ namespace A8C\FSE;
42
  *
43
  * @var string
44
  */
45
- define( 'A8C_ETK_PLUGIN_VERSION', '3.13822' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
2
  /**
3
  * Plugin Name: WordPress.com Editing Toolkit
4
  * Description: Enhances your page creation workflow within the Block Editor.
5
+ * Version: 3.13942
6
  * Author: Automattic
7
  * Author URI: https://automattic.com/wordpress-plugins/
8
  * License: GPLv2 or later
42
  *
43
  * @var string
44
  */
45
+ define( 'A8C_ETK_PLUGIN_VERSION', '3.13942' );
46
 
47
  // Always include these helper files for dotcom FSE.
48
  require_once __DIR__ . '/dotcom-fse/helpers.php';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
- Stable tag: 3.13822
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Tags: block, blocks, editor, gutenberg, page
4
  Requires at least: 5.5
5
  Tested up to: 5.6
6
+ Stable tag: 3.13942
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
whats-new/dist/whats-new.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => '8c8e1de11a82f83b0d1be76b9521efab');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-plugins', 'wp-polyfill', 'wp-react-i18n'), 'version' => 'd6890fa93abd2f0eddcfa66bbebfeec0');
wpcom-block-editor-nav-sidebar/dist/wpcom-block-editor-nav-sidebar.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '021c93c555c00aaaf6f3a994ad46d675');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'wp-components', 'wp-compose', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'f330b8a5d45609cf484c606412f2bfc1');
wpcom-block-editor-nux/class-wp-rest-wpcom-block-editor-nux-status-controller.php CHANGED
@@ -78,10 +78,7 @@ class WP_REST_WPCOM_Block_Editor_NUX_Status_Controller extends \WP_REST_Controll
78
 
79
  $should_open_patterns_panel = (bool) get_option( 'was_created_with_blank_canvas_design' );
80
 
81
- if ( wp_is_mobile() ) {
82
- // Designs for welcome tour on mobile are in progress, until then do not show on mobile.
83
- $variant = 'modal';
84
- } elseif ( $should_open_patterns_panel ) {
85
  $variant = 'blank-canvas-tour';
86
  } else {
87
  $variant = 'tour';
78
 
79
  $should_open_patterns_panel = (bool) get_option( 'was_created_with_blank_canvas_design' );
80
 
81
+ if ( $should_open_patterns_panel ) {
 
 
 
82
  $variant = 'blank-canvas-tour';
83
  } else {
84
  $variant = 'tour';
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '274699a271cc4ccd6f58500e1cdde049');
1
+ <?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '88c742323bd4981e8b089b58187a67f0');
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js CHANGED
@@ -3,4 +3,4 @@
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var u in n)r.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,n,r){var i,o,s,a;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(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):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var a=c.length,l=m(c,a);for(n=0;n<a;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},8032:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=n(9561),u=r.sum32,c=r.sum32_4,a=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,m=o.g0_256,h=o.g1_256,g=i.BlockHash,v=[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 w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(h(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=a(b,p(w),l(w,y,_),this.k[r],n[r]),E=u(f(i),d(i,o,g));b=_,_=y,y=w,w=u(v,C),v=g,g=o,o=i,i=u(C,E)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],g),this.h[3]=u(this.h[3],v),this.h[4]=u(this.h[4],w),this.h[5]=u(this.h[5],y),this.h[6]=u(this.h[6],_),this.h[7]=u(this.h[7],b)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=u,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),u=0,c=t;u<s.length;u++,c+=4){var a;a="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[u]=a>>>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,u){var c=0,a=t;return c+=(a=a+r>>>0)<t?1:0,c+=(a=a+o>>>0)<o?1:0,e+n+i+s+(c+=(a=a+u>>>0)<u?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,u){return t+r+o+u>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,u,c,a){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+u>>>0)<u?1:0,e+n+i+s+c+(l+=(d=d+a>>>0)<a?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,u,c,a){return t+r+o+u+a>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},4727:function(){},7807:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function u(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var u=/^(-?(?:\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(!u)return;var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===a&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return u(e,o,i,"day");if(o>=r)return u(e,o,r,"hour");if(o>=n)return u(e,o,n,"minute");if(o>=t)return u(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7869:function(e,t,n){"use strict";var r=n(3027),i=(n(3945),n(849)),o=n(4655),s=n(7997),u=n(5707),c=n(1200),a=n(1970),l=n(374),d=n(2753);(0,c.registerPlugin)("wpcom-block-editor-nux",{render:function(){var e,t,n=(0,u.useSelect)((function(e){var t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),c=n.show,f=n.isLoaded,p=n.variant,m=n.isManuallyOpened,h=n.isNewPageLayoutModalOpen,g=null===(e=(0,u.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,v=(0,u.useDispatch)("automattic/wpcom-welcome-guide").fetchWelcomeGuideStatus;return(0,r.useEffect)((function(){f||v()}),[v,f]),!c||h?null:p===a.yn&&!m&&g?(g("OPEN_FOR_BLANK_CANVAS"),null):p===a.Sz?(0,r.createElement)(i.Iw,{localeSlug:null!==(t=window.wpcomBlockEditorNuxLocale)&&void 0!==t?t:o.OP},(0,r.createElement)(d.Z,null),";"):"modal"===p&&s.Guide&&s.GuidePage?(0,r.createElement)(l.Z,null):null}})},1568:function(e,t,n){"use strict";var r=n(5707),i=(n(5742),(0,r.subscribe)((function(){var e;(0,r.dispatch)("core/nux").disableTips(),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),i()})));(0,r.subscribe)((function(){var e;(0,r.select)("core/nux").areTipsEnabled()&&((0,r.dispatch)("core/nux").disableTips(),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return u},yn:function(){return c},z2:function(){return f}});var r=n(7606),i=n.n(r),o=n(5707),s=n(9866),u=(n(8681),"tour"),c="blank-canvas-tour",a=(0,o.combineReducers)({welcomeGuideManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_SHOW_SET":return void 0!==t.openedManually?t.openedManually:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}},showWelcomeGuide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.show_welcome_guide;case"WPCOM_WELCOME_GUIDE_SHOW_SET":return t.show;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},tourRating:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===c?u:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return u;default:return e}}}),l={fetchWelcomeGuideStatus:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"});case 2:return t=e.sent,e.abrupt("return",{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:t});case 4:case"end":return e.stop()}}),e)})),setShowWelcomeGuide:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.openedManually;return i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:n}},setTourRating:function(e){return{type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}},setUsedPageOrPatternsModal:function(){return{type:"WPCOM_HAS_USED_PATTERNS_MODAL"}},resetStore:function(){return{type:"WPCOM_WELCOME_GUIDE_RESET_STORE"}}},d={isWelcomeGuideManuallyOpened:function(e){return e.welcomeGuideManuallyOpened},isWelcomeGuideShown:function(e){return!!e.showWelcomeGuide},isWelcomeGuideStatusLoaded:function(e){return void 0!==e.showWelcomeGuide},getTourRating:function(e){return e.tourRating},getWelcomeGuideVariant:function(e){return e.welcomeGuideVariant}};function f(){return(0,o.registerStore)("automattic/wpcom-welcome-guide",{reducer:a,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var r=n(7560),i=n(3027),o=n(6115),s=n(7997),u=n(5707),c=n(3163),a=n(9056),l=n(1956),d=n(3943),f=n(452),__=(n(4727),c.__);function p(e){var t=e.pageNumber,n=e.isLastPage,r=e.alignBottom,u=void 0!==r&&r,c=e.heading,a=e.description,l=e.imgSrc;return(0,i.useEffect)((function(){var e;(0,o.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,i.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,i.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,i.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},c),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__description"},a)),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,i.createElement)("img",{key:l,src:l,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(u?" align-bottom":"")})))}t.Z=function(){var e=(0,u.useSelect)((function(e){return{show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}})),t=e.show,n=e.isNewPageLayoutModalOpen,c=e.isManuallyOpened,m=(0,u.useDispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide;if((0,i.useEffect)((function(){var e;t&&!n&&(0,o.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,is_manually_opened:c})}),[c,n,t]),!t||n)return null;var h=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:a},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:f,alignBottom:!0}];return(0,i.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:function(){var e;(0,o.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),m(!1,{openedManually:!1})}},h.map((function(e,t){return(0,i.createElement)(p,(0,r.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===h.length-1},e))})))}},8574:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z",fill:"#50575E"}));t.Z=o},6139:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"}));t.Z=o},4308:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"}));t.Z=o},9425:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"}));t.Z=o},9483:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3027),i=n(7997),o=n(3163),s=n(2418),u=n(3804),__=o.__;function c(e){var t=e.currentPage,n=e.numberOfPages,s=e.setCurrentPage;return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":__("Guide controls","full-site-editing")},(0,u.times)(n,(function(e){return(0,r.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,r.createElement)(i.Button,{key:e,icon:(0,r.createElement)(a,{isSelected:e===t}),"aria-label":(0,o.sprintf)(__("Page %1$d of %2$d","full-site-editing"),e+1,n),onClick:function(){return s(e)}}))})))}var a=function(e){var t=e.isSelected;return(0,r.createElement)(s.SVG,{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.Circle,{cx:"3",cy:"3",r:"3",fill:t?"#32373C":"#E1E3E6"}))}},2069:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(6115),s=n(6268),u=n(7997),c=n(5707),a=n(3163),l=n(8565),d=n(2779),f=n.n(d),p=n(6139),m=n(4308),h=n(9425),g=n(9483),__=(n(7807),a.__),v=function(e){return(0,i.useEffect)(e,[])};function w(e){var t=e.cardIndex,n=e.lastCardIndex,r=e.onDismiss,o=e.setCurrentCardIndex,s=__("Start Tour","full-site-editing"),c=__("Next","full-site-editing");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Z,{currentPage:t,numberOfPages:n+1,setCurrentPage:o}),(0,i.createElement)("div",null,0===t?(0,i.createElement)(u.Button,{isTertiary:!0,onClick:function(){return r("no-thanks-btn")}},__("Skip","full-site-editing")):(0,i.createElement)(u.Button,{isTertiary:!0,onClick:function(){return o(t-1)}},__("Back","full-site-editing")),(0,i.createElement)(u.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:function(){return o(t+1)}},0===t?s:c)))}function y(e){var t=e.onMinimize,n=e.onDismiss,c=e.slideNumber,a=(0,i.useState)(!1),d=(0,r.Z)(a,2),m=d[0],h=d[1];v((function(){var e=(0,s.Pw)((function(e){return h(e)}));return function(){e()}}));var g=f()("welcome-tour-card__overlay-controls",{"welcome-tour-card__overlay-controls-visible":m});return(0,i.createElement)("div",{className:g},(0,i.createElement)(u.Flex,null,(0,i.createElement)(u.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:p.Z,iconSize:24,onClick:function(){var e;t(!0),(0,o.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:c})}}),(0,i.createElement)(u.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:l.Z,iconSize:24,onClick:function(){return n("close-btn")}})))}function _(){var e=!1,t=(0,c.useSelect)((function(e){return e("automattic/wpcom-welcome-guide").getTourRating()})),n=(0,c.useDispatch)("automattic/wpcom-welcome-guide").setTourRating;!e&&t&&(e=!0);var r=function(t){var r;e||(e=!0,n(t?"thumbs-up":"thumbs-down"),(0,o.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:t,is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding}))};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"welcome-tour__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(u.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:f()("welcome-tour__end-icon",{active:"thumbs-up"===t}),disabled:e,icon:h.Z,onClick:function(){return r(!0)},iconSize:24}),(0,i.createElement)(u.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:f()("welcome-tour__end-icon",{active:"thumbs-down"===t}),disabled:e,icon:m.Z,onClick:function(){return r(!1)},iconSize:24})))}t.Z=function(e){var t=e.cardContent,n=e.cardIndex,r=e.justMaximized,s=e.lastCardIndex,c=e.onMinimize,a=e.onDismiss,l=e.setJustMaximized,d=e.setCurrentCardIndex,f=t.description,p=t.heading,m=t.imgSrc,h=n===s;return v((function(){var e;r?l(!1):(0,o.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:n+1,is_last_slide:h,slide_heading:p,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})})),(0,i.createElement)(u.Card,{className:"welcome-tour-card",isElevated:!0},(0,i.createElement)(y,{setJustMaximized:l,onDismiss:a,onMinimize:c,slideNumber:n+1}),(0,i.createElement)(u.CardMedia,null,(0,i.createElement)("img",{alt:__("Editor Welcome Tour","full-site-editing"),src:m})),(0,i.createElement)(u.CardBody,null,(0,i.createElement)("h2",{className:"welcome-tour-card__heading"},p),(0,i.createElement)("p",{className:"welcome-tour-card__description"},f,h?(0,i.createElement)(u.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:function(){return d(0)}},__("Restart tour","full-site-editing")):null)),(0,i.createElement)(u.CardFooter,null,h?(0,i.createElement)(_,null):(0,i.createElement)(w,{cardIndex:n,lastCardIndex:s,onDismiss:a,setCurrentCardIndex:d})))}},1227:function(e,t,n){"use strict";var r=n(3027),i=n(7498),o=n(7997),s=n(3163),__=s.__;t.Z=function(e){return[{heading:__("Welcome to WordPress!","full-site-editing"),description:__("Continue on with this short tour to learn the fundamentals of the WordPress editor.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-welcome.png",animation:null},{heading:__("Everything is a block","full-site-editing"),description:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-all-blocks.gif",animation:null},{heading:__("Adding a new block","full-site-editing"),description:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-add-block.gif",animation:"block-inserter"},{heading:__("Click a block to change it","full-site-editing"),description:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-make-bold.gif",animation:null},{heading:__("More Options","full-site-editing"),description:__("Click the settings icon to see even more options.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-more-options.gif",animation:null},{heading:__("Undo any mistake","full-site-editing"),description:__("Click the Undo button if you've made a mistake.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-undo.gif",animation:"undo-button"},{heading:__("Drag & drop","full-site-editing"),description:__("To move blocks around, click and drag the handle.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-move-block.gif",animation:"undo-button"},{heading:__("Congratulations!","full-site-editing"),description:(0,r.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,r.createElement)(o.ExternalLink,{href:(0,i.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,r.createElement)(o.ExternalLink,{href:(0,i.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-finish.png",animation:"block-inserter"}]}},2753:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(6115),s=n(849),u=n(7997),c=n(5707),a=n(3163),l=n(5869),d=n(8574),f=n(2069),p=n(1227),__=(n(7807),a.__);function m(){var e=(0,s.bU)(),t=(0,p.Z)(e),n=(0,i.useState)(!1),u=(0,r.Z)(n,2),a=u[0],l=u[1],d=(0,i.useState)(0),m=(0,r.Z)(d,2),g=m[0],v=m[1],w=(0,i.useState)(!1),y=(0,r.Z)(w,2),_=y[0],b=y[1],C=(0,c.useDispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide;t.forEach((function(e){return(new window.Image).src=e.imgSrc}));return(0,i.createElement)("div",{className:"wpcom-editor-welcome-tour-frame",onMouseDownCapture:function(e){e.preventDefault()}},a?(0,i.createElement)(h,{onMaximize:l,setJustMaximized:b,slideNumber:g+1}):(0,i.createElement)(f.Z,{cardContent:t[g],cardIndex:g,justMaximized:_,key:g,lastCardIndex:t.length-1,onDismiss:function(e){var t;(0,o.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,slide_number:g+1,action:e}),C(!1,{openedManually:!1})},onMinimize:l,setJustMaximized:b,setCurrentCardIndex:v}))}function h(e){var t=e.onMaximize,n=e.setJustMaximized,r=e.slideNumber;return(0,i.createElement)(u.Button,{onClick:function(){var e;t(!1),n(!0),(0,o.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})},className:"wpcom-editor-welcome-tour__resume-btn"},(0,i.createElement)(u.Flex,{gap:13},(0,i.createElement)("p",null,__("Click to resume tutorial","full-site-editing")),(0,i.createElement)(l.Z,{icon:d.Z,size:24})))}t.Z=function(){var e=(0,i.useRef)(document.createElement("div")).current,t=(0,c.useSelect)((function(e){return{show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}})),n=t.show,r=t.isNewPageLayoutModalOpen,u=t.isManuallyOpened,a=(0,s.bU)();return(new window.Image).src=(0,p.Z)(a)[0].imgSrc,(0,i.useEffect)((function(){var t;if(n||r)return e.classList.add("wpcom-editor-welcome-tour-portal-parent"),document.body.appendChild(e),(0,o.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,is_manually_opened:u}),function(){document.body.removeChild(e)}}),[r,u,n,e]),!n||r?null:(0,i.createElement)("div",null,(0,i.createPortal)((0,i.createElement)(m,null),e))}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(2699),s=n(4898),u=(n(3421),n(3804)),c=(n(9377),n(6209),n(9358)),a=(n(1694),["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"]);Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w.js?63");var d=new o.EventEmitter;function f(e,t){if(t=t||{},(0,c.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,u.includes)(a,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,u.omitBy)(t,(function(e){return void 0===e})),(0,c.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,c.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return l},bU:function(){return f}});var r=n(7560),i=n(3258),o=n(3027),s=n(1417),u=n(3163),c=n(6141),a=(0,c.createContext)(null),l=function(e){var t=e.children,n=e.localeSlug;return(0,o.createElement)(a.Provider,{value:n},t)};function d(){var e,t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";var t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(u.getLocaleData?null===(e=u.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function f(){var e=(0,c.useContext)(a),t=!!e,n=(0,c.useState)(d()),r=(0,i.Z)(n,2),o=r[0],s=r[1];return(0,c.useEffect)((function(){if(!t)return s(d()),u.subscribe((function(){s(d())}))}),[t]),e||o||"en"}(0,s.createHigherOrderComponent)((function(e){return function(t){var n=f();return(0,o.createElement)(e,(0,r.Z)({locale:n},t))}}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},GG:function(){return i},iT:function(){return o},xn:function(){return s},Xb:function(){return u},hI:function(){return c},mL:function(){return a},vS:function(){return l},_r:function(){return d}});var r="en",i=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],s=["en","fr","de"],u={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],a=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return m}});var r=n(7560),i=n(3027),o=n(1417),s=n(6141),u=n(849),c=n(4655),a="http://__domain__.invalid",l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(c.Xb[r]||r,".").concat(e)),n}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=i+r.pathname),r}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n}},p={"wordpress.com/support/":f(c.hI),"wordpress.com/forums/":f(c.mL),"wordpress.com/blog/":f(c.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(c.vS),"wordpress.com/wp-admin/":l("wordpress.com",c.vS),"wordpress.com/wp-login.php":l("wordpress.com",c.vS),"jetpack.com":l("jetpack.com",c._r),"en.support.wordpress.com":d("/support",c.hI),"en.blog.wordpress.com":d("/blog",c.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",c.mL),"automattic.com/privacy/":f(c.iT),"automattic.com/cookies/":f(c.xn),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(c.hI)(e,t))},"wordpress.com":function(e,t){return/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:f(c.vS)(e,t)},"wordpress.com/theme/":function(e,t,n){return n?e:f(c.vS)(e,t)},"wordpress.com/themes/":function(e,t,n){return n?e:f(c.vS)(e,t)}};function m(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),a)}catch(u){return e}if(n.origin===a)return e;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));var i=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+t+"/"===i)return e;for(var o=[n.host,n.host+i,n.host+n.pathname],s=o.length-1;s>=0;s--)if(o[s]in p)return p[o[s]](n,t,r).href;return e}function h(){var e=(0,u.bU)();return(0,s.useCallback)((function(t,n,r){return m(t,n||e,r)}),[e])}(0,o.createHigherOrderComponent)((function(e){return function(t){var n=h();return(0,i.createElement)(e,(0,r.Z)({localizeUrl:n},t))}}),"withLocalizeUrl")},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return u},lZ:function(){return c},_W:function(){return l},Yt:function(){return d}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function u(e){return s().has(e)}function c(e,t){var n=s();u(e)?(i('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(i('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));i(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function l(){var e=this.getAttribute("src");i('Handling successful request for "'.concat(e,'"')),a(e),this.onload=null}function d(){var e=this.getAttribute("src");i('Handling failed request for "'.concat(e,'"')),a(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return u},k:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=i()("lib/load-script/dom-operations");function u(e){s('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function c(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return u}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function u(e,t){if(!(0,o.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise((function(t,n){(0,o.lZ)(e,(function(e){null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},6268:function(e,t,n){"use strict";n.d(t,{Pw:function(){return d}});var r=769,i="<480px",o="undefined"==typeof window||!window.matchMedia,s=function(){return null};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?o?{matches:r>t&&r<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?o?{matches:r>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(o?{matches:r<=n}:window.matchMedia("(max-width: ".concat(n,"px)")))}var c={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function a(e){if(c.hasOwnProperty(e))return c[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function l(e,t){if(!t)return s;var n=a(e);if(n&&!o){var r=function(e){return t(e.matches)};return n.addListener(r),function(){return n.removeListener(r)}}return s}function d(e){return l(i,e)}},8049:function(e,t,n){var r;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.destroy=(r=!1,function(){r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n,r,o,s=null;function u(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(u.enabled){var o=u,s=Number(new Date),c=s-(n||s);o.diff=c,o.prev=n,o.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return"%";a++;var i=t.formatters[n];if("function"==typeof i){var s=r[a];e=i.call(o,s),r.splice(a,1),a--}return e})),t.formatArgs.call(o,r);var l=o.log||t.log;l.apply(o,r)}}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=i,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==s?s:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o)},set:function(e){s=e}}),"function"==typeof t.init&&t.init(u),u}function i(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(o)),r(t.skips.map(o).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},6141:function(e){"use strict";e.exports=window.React},8681:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},3804:function(e){"use strict";e.exports=window.lodash},7606:function(e){"use strict";e.exports=window.wp.apiFetch},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},9866:function(e){"use strict";e.exports=window.wp.dataControls},3027:function(e){"use strict";e.exports=window.wp.element},3163:function(e){"use strict";e.exports=window.wp.i18n},5742:function(e){"use strict";e.exports=window.wp.nux},1200:function(e){"use strict";e.exports=window.wp.plugins},2418:function(e){"use strict";e.exports=window.wp.primitives}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var r={};!function(){"use strict";n.r(r);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=r}();
3
  Copyright (c) 2018 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var u in n)r.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,r=encodeURIComponent,i=/; */,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function a(e,t,n,r){var i,o,s,a;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function f(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):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var a=c.length,l=m(c,a);for(n=0;n<a;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return a(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return a(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return f(this,e,!0)},o.prototype.rawListeners=function(e){return f(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var r=n(212),i=n(9561);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},8032:function(e,t,n){"use strict";var r=n(212),i=n(4495),o=n(713),s=n(9561),u=r.sum32,c=r.sum32_4,a=r.sum32_5,l=o.ch32,d=o.maj32,f=o.s0_256,p=o.s1_256,m=o.g0_256,h=o.g1_256,g=i.BlockHash,v=[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 w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(h(n[r-2]),n[r-7],m(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],_=this.h[6],b=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var C=a(b,p(w),l(w,y,_),this.k[r],n[r]),E=u(f(i),d(i,o,g));b=_,_=y,y=w,w=u(v,C),v=g,g=o,o=i,i=u(C,E)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],g),this.h[3]=u(this.h[3],v),this.h[4]=u(this.h[4],w),this.h[5]=u(this.h[5],y),this.h[6]=u(this.h[6],_),this.h[7]=u(this.h[7],b)},w.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},713:function(e,t,n){"use strict";var r=n(212).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?s(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},212:function(e,t,n){"use strict";var r=n(9561),i=n(1285);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=u(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=s(i)),n+=c(i.toString(16))}return n},t.zero2=u,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),u=0,c=t;u<s.length;u++,c+=4){var a;a="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[u]=a>>>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,u){var c=0,a=t;return c+=(a=a+r>>>0)<t?1:0,c+=(a=a+o>>>0)<o?1:0,e+n+i+s+(c+=(a=a+u>>>0)<u?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,u){return t+r+o+u>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,u,c,a){var l=0,d=t;return l+=(d=d+r>>>0)<t?1:0,l+=(d=d+o>>>0)<o?1:0,l+=(d=d+u>>>0)<u?1:0,e+n+i+s+c+(l+=(d=d+a>>>0)<a?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,u,c,a){return t+r+o+u+a>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},4727:function(){},7807:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},1378:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i,s=365.25*i;function u(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if((e=String(e)).length>100)return;var u=/^(-?(?:\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(!u)return;var c=parseFloat(u[1]);switch((u[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===a&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=i)return u(e,o,i,"day");if(o>=r)return u(e,o,r,"hour");if(o>=n)return u(e,o,n,"minute");if(o>=t)return u(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=i)return Math.round(e/i)+"d";if(o>=r)return Math.round(e/r)+"h";if(o>=n)return Math.round(e/n)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7869:function(e,t,n){"use strict";var r=n(3027),i=(n(3945),n(849)),o=n(4655),s=n(7997),u=n(5707),c=n(1200),a=n(1970),l=n(374),d=n(2753);(0,c.registerPlugin)("wpcom-block-editor-nux",{render:function(){var e,t,n=(0,u.useSelect)((function(e){var t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),c=n.show,f=n.isLoaded,p=n.variant,m=n.isManuallyOpened,h=n.isNewPageLayoutModalOpen,g=null===(e=(0,u.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,v=(0,u.useDispatch)("automattic/wpcom-welcome-guide").fetchWelcomeGuideStatus;return(0,r.useEffect)((function(){f||v()}),[v,f]),!c||h?null:p===a.yn&&!m&&g?(g("OPEN_FOR_BLANK_CANVAS"),null):p===a.Sz?(0,r.createElement)(i.Iw,{localeSlug:null!==(t=window.wpcomBlockEditorNuxLocale)&&void 0!==t?t:o.OP},(0,r.createElement)(d.Z,null),";"):"modal"===p&&s.Guide&&s.GuidePage?(0,r.createElement)(l.Z,null):null}})},1568:function(e,t,n){"use strict";var r=n(5707),i=(n(5742),(0,r.subscribe)((function(){var e;(0,r.dispatch)("core/nux").disableTips(),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&(0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),i()})));(0,r.subscribe)((function(){var e;(0,r.select)("core/nux").areTipsEnabled()&&((0,r.dispatch)("core/nux").disableTips(),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,r.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,r.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,r.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return u},yn:function(){return c},z2:function(){return f}});var r=n(7606),i=n.n(r),o=n(5707),s=n(9866),u=(n(8681),"tour"),c="blank-canvas-tour",a=(0,o.combineReducers)({welcomeGuideManuallyOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_SHOW_SET":return void 0!==t.openedManually?t.openedManually:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}},showWelcomeGuide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.show_welcome_guide;case"WPCOM_WELCOME_GUIDE_SHOW_SET":return t.show;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},tourRating:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===c?u:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return u;default:return e}}}),l={fetchWelcomeGuideStatus:regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"});case 2:return t=e.sent,e.abrupt("return",{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:t});case 4:case"end":return e.stop()}}),e)})),setShowWelcomeGuide:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.openedManually;return i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:n}},setTourRating:function(e){return{type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}},setUsedPageOrPatternsModal:function(){return{type:"WPCOM_HAS_USED_PATTERNS_MODAL"}},resetStore:function(){return{type:"WPCOM_WELCOME_GUIDE_RESET_STORE"}}},d={isWelcomeGuideManuallyOpened:function(e){return e.welcomeGuideManuallyOpened},isWelcomeGuideShown:function(e){return!!e.showWelcomeGuide},isWelcomeGuideStatusLoaded:function(e){return void 0!==e.showWelcomeGuide},getTourRating:function(e){return e.tourRating},getWelcomeGuideVariant:function(e){return"modal"===e.welcomeGuideVariant?u:e.welcomeGuideVariant}};function f(){return(0,o.registerStore)("automattic/wpcom-welcome-guide",{reducer:a,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var r=n(7560),i=n(3027),o=n(6115),s=n(7997),u=n(5707),c=n(3163),a=n(9056),l=n(1956),d=n(3943),f=n(452),__=(n(4727),c.__);function p(e){var t=e.pageNumber,n=e.isLastPage,r=e.alignBottom,u=void 0!==r&&r,c=e.heading,a=e.description,l=e.imgSrc;return(0,i.useEffect)((function(){var e;(0,o.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,i.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,i.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,i.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},c),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__description"},a)),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,i.createElement)("img",{key:l,src:l,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(u?" align-bottom":"")})))}t.Z=function(){var e=(0,u.useSelect)((function(e){return{show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}})),t=e.show,n=e.isNewPageLayoutModalOpen,c=e.isManuallyOpened,m=(0,u.useDispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide;if((0,i.useEffect)((function(){var e;t&&!n&&(0,o.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,is_manually_opened:c})}),[c,n,t]),!t||n)return null;var h=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:a},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:f,alignBottom:!0}];return(0,i.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:function(){var e;(0,o.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),m(!1,{openedManually:!1})}},h.map((function(e,t){return(0,i.createElement)(p,(0,r.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===h.length-1},e))})))}},8574:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z",fill:"#50575E"}));t.Z=o},6139:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"}));t.Z=o},4308:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"}));t.Z=o},9425:function(e,t,n){"use strict";var r=n(3027),i=n(2418),o=(0,r.createElement)(i.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,r.createElement)(i.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"}));t.Z=o},9483:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(3027),i=n(7997),o=n(3163),s=n(2418),u=n(3804),__=o.__;function c(e){var t=e.currentPage,n=e.numberOfPages,s=e.setCurrentPage;return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":__("Guide controls","full-site-editing")},(0,u.times)(n,(function(e){return(0,r.createElement)("li",{key:e,"aria-current":e===t?"step":void 0},(0,r.createElement)(i.Button,{key:e,icon:(0,r.createElement)(a,{isSelected:e===t}),"aria-label":(0,o.sprintf)(__("Page %1$d of %2$d","full-site-editing"),e+1,n),onClick:function(){return s(e)}}))})))}var a=function(e){var t=e.isSelected;return(0,r.createElement)(s.SVG,{width:"6",height:"6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.createElement)(s.Circle,{cx:"3",cy:"3",r:"3",fill:t?"#32373C":"#E1E3E6"}))}},2069:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(6115),s=n(6268),u=n(7997),c=n(5707),a=n(3163),l=n(8565),d=n(2779),f=n.n(d),p=n(6139),m=n(4308),h=n(9425),g=n(9483),__=(n(7807),a.__),v=function(e){return(0,i.useEffect)(e,[])};function w(e){var t=e.cardIndex,n=e.lastCardIndex,r=e.onDismiss,o=e.setCurrentCardIndex,s=__("Start Tour","full-site-editing"),c=__("Next","full-site-editing");return(0,i.createElement)(i.Fragment,null,(0,i.createElement)(g.Z,{currentPage:t,numberOfPages:n+1,setCurrentPage:o}),(0,i.createElement)("div",null,0===t?(0,i.createElement)(u.Button,{isTertiary:!0,onClick:function(){return r("no-thanks-btn")}},__("Skip","full-site-editing")):(0,i.createElement)(u.Button,{isTertiary:!0,onClick:function(){return o(t-1)}},__("Back","full-site-editing")),(0,i.createElement)(u.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:function(){return o(t+1)}},0===t?s:c)))}function y(e){var t=e.onMinimize,n=e.onDismiss,c=e.slideNumber,a=(0,i.useState)((0,s.tq)()),d=(0,r.Z)(a,2),m=d[0],h=d[1];v((function(){var e=(0,s.Pw)((function(e){return h(e)}));return function(){e()}}));var g=f()("welcome-tour-card__overlay-controls",{"welcome-tour-card__overlay-controls-visible":m});return(0,i.createElement)("div",{className:g},(0,i.createElement)(u.Flex,null,(0,i.createElement)(u.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:p.Z,iconSize:24,onClick:function(){var e;t(!0),(0,o.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:c})}}),(0,i.createElement)(u.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:l.Z,iconSize:24,onClick:function(){return n("close-btn")}})))}function _(){var e=!1,t=(0,c.useSelect)((function(e){return e("automattic/wpcom-welcome-guide").getTourRating()})),n=(0,c.useDispatch)("automattic/wpcom-welcome-guide").setTourRating;!e&&t&&(e=!0);var r=function(t){var r;e||(e=!0,n(t?"thumbs-up":"thumbs-down"),(0,o.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:t,is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding}))};return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("p",{className:"welcome-tour__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,i.createElement)("div",null,(0,i.createElement)(u.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:f()("welcome-tour__end-icon",{active:"thumbs-up"===t}),disabled:e,icon:h.Z,onClick:function(){return r(!0)},iconSize:24}),(0,i.createElement)(u.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:f()("welcome-tour__end-icon",{active:"thumbs-down"===t}),disabled:e,icon:m.Z,onClick:function(){return r(!1)},iconSize:24})))}t.Z=function(e){var t=e.cardContent,n=e.cardIndex,r=e.justMaximized,s=e.lastCardIndex,c=e.onMinimize,a=e.onDismiss,l=e.setJustMaximized,d=e.setCurrentCardIndex,f=t.description,p=t.heading,m=t.imgSrc,h=n===s;return v((function(){var e;r?l(!1):(0,o.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:n+1,is_last_slide:h,slide_heading:p,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})})),(0,i.createElement)(u.Card,{className:"welcome-tour-card",isElevated:!0},(0,i.createElement)(y,{setJustMaximized:l,onDismiss:a,onMinimize:c,slideNumber:n+1}),(0,i.createElement)(u.CardMedia,null,(0,i.createElement)("img",{alt:__("Editor Welcome Tour","full-site-editing"),src:m})),(0,i.createElement)(u.CardBody,null,(0,i.createElement)("h2",{className:"welcome-tour-card__heading"},p),(0,i.createElement)("p",{className:"welcome-tour-card__description"},f,h?(0,i.createElement)(u.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:function(){return d(0)}},__("Restart tour","full-site-editing")):null)),(0,i.createElement)(u.CardFooter,null,h?(0,i.createElement)(_,null):(0,i.createElement)(w,{cardIndex:n,lastCardIndex:s,onDismiss:a,setCurrentCardIndex:d})))}},1227:function(e,t,n){"use strict";var r=n(3027),i=n(7498),o=n(7997),s=n(3163),__=s.__;t.Z=function(e){return[{heading:__("Welcome to WordPress!","full-site-editing"),description:__("Continue on with this short tour to learn the fundamentals of the WordPress editor.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-welcome.png",animation:null},{heading:__("Everything is a block","full-site-editing"),description:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-all-blocks.gif",animation:null},{heading:__("Adding a new block","full-site-editing"),description:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-add-block.gif",animation:"block-inserter"},{heading:__("Click a block to change it","full-site-editing"),description:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-make-bold.gif",animation:null},{heading:__("More Options","full-site-editing"),description:__("Click the settings icon to see even more options.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-more-options.gif",animation:null},{heading:__("Undo any mistake","full-site-editing"),description:__("Click the Undo button if you've made a mistake.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-undo.gif",animation:"undo-button"},{heading:__("Drag & drop","full-site-editing"),description:__("To move blocks around, click and drag the handle.","full-site-editing"),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-move-block.gif",animation:"undo-button"},{heading:__("Congratulations!","full-site-editing"),description:(0,r.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,r.createElement)(o.ExternalLink,{href:(0,i.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,r.createElement)(o.ExternalLink,{href:(0,i.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),imgSrc:"https://s0.wp.com/i/editor-welcome-tour/slide-finish.png",animation:"block-inserter"}]}},2753:function(e,t,n){"use strict";var r=n(3258),i=n(3027),o=n(6115),s=n(849),u=n(7997),c=n(5707),a=n(3163),l=n(5869),d=n(8574),f=n(2069),p=n(1227),__=(n(7807),a.__);function m(){var e=(0,s.bU)(),t=(0,p.Z)(e),n=(0,i.useState)(!1),u=(0,r.Z)(n,2),a=u[0],l=u[1],d=(0,i.useState)(0),m=(0,r.Z)(d,2),g=m[0],v=m[1],w=(0,i.useState)(!1),y=(0,r.Z)(w,2),_=y[0],b=y[1],C=(0,c.useDispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide;t.forEach((function(e){return(new window.Image).src=e.imgSrc}));return(0,i.createElement)("div",{className:"wpcom-editor-welcome-tour-frame",onMouseDownCapture:function(e){e.preventDefault()}},a?(0,i.createElement)(h,{onMaximize:l,setJustMaximized:b,slideNumber:g+1}):(0,i.createElement)(f.Z,{cardContent:t[g],cardIndex:g,justMaximized:_,key:g,lastCardIndex:t.length-1,onDismiss:function(e){var t;(0,o.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,slide_number:g+1,action:e}),C(!1,{openedManually:!1})},onMinimize:l,setJustMaximized:b,setCurrentCardIndex:v}))}function h(e){var t=e.onMaximize,n=e.setJustMaximized,r=e.slideNumber;return(0,i.createElement)(u.Button,{onClick:function(){var e;t(!1),n(!0),(0,o.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,slide_number:r})},className:"wpcom-editor-welcome-tour__resume-btn"},(0,i.createElement)(u.Flex,{gap:13},(0,i.createElement)("p",null,__("Click to resume tutorial","full-site-editing")),(0,i.createElement)(l.Z,{icon:d.Z,size:24})))}t.Z=function(){var e=(0,i.useRef)(document.createElement("div")).current,t=(0,c.useSelect)((function(e){return{show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}})),n=t.show,r=t.isNewPageLayoutModalOpen,u=t.isManuallyOpened,a=(0,s.bU)();return(new window.Image).src=(0,p.Z)(a)[0].imgSrc,(0,i.useEffect)((function(){var t;if(n||r)return e.classList.add("wpcom-editor-welcome-tour-portal-parent"),document.body.appendChild(e),(0,o.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(t=window.calypsoifyGutenberg)||void 0===t?void 0:t.isGutenboarding,is_manually_opened:u}),function(){document.body.removeChild(e)}}),[r,u,n,e]),!n||r?null:(0,i.createElement)("div",null,(0,i.createPortal)((0,i.createElement)(m,null),e))}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return r.jN}});n(1694),n(6209),n(9377);var r=n(9792);n(3722)},9377:function(e,t,n){"use strict";"undefined"!=typeof window&&window.addEventListener("popstate",(function(){null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return f}});var r,i=n(9394),o=n(2699),s=n(4898),u=(n(3421),n(3804)),c=(n(9377),n(6209),n(9358)),a=(n(1694),["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"]);Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(0,s.ve)("//stats.wp.com/w.js?63");var d=new o.EventEmitter;function f(e,t){if(t=t||{},(0,c.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,u.includes)(a,e)){if(r){var n=r(t);t=(0,i.Z)((0,i.Z)({},t),n)}t=(0,u.omitBy)(t,(function(e){return void 0===e})),(0,c.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,c.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var r=n(8049),i=n.n(r);t.Z=i()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return l},bU:function(){return f}});var r=n(7560),i=n(3258),o=n(3027),s=n(1417),u=n(3163),c=n(6141),a=(0,c.createContext)(null),l=function(e){var t=e.children,n=e.localeSlug;return(0,o.createElement)(a.Provider,{value:n},t)};function d(){var e,t;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";var t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(u.getLocaleData?null===(e=u.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function f(){var e=(0,c.useContext)(a),t=!!e,n=(0,c.useState)(d()),r=(0,i.Z)(n,2),o=r[0],s=r[1];return(0,c.useEffect)((function(){if(!t)return s(d()),u.subscribe((function(){s(d())}))}),[t]),e||o||"en"}(0,s.createHigherOrderComponent)((function(e){return function(t){var n=f();return(0,o.createElement)(e,(0,r.Z)({locale:n},t))}}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return r},GG:function(){return i},iT:function(){return o},xn:function(){return s},Xb:function(){return u},hI:function(){return c},mL:function(){return a},vS:function(){return l},_r:function(){return d}});var r="en",i=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de"],s=["en","fr","de"],u={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],a=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return m}});var r=n(7560),i=n(3027),o=n(1417),s=n(6141),u=n(849),c=n(4655),a="http://__domain__.invalid",l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n,r){return t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host="".concat(c.Xb[r]||r,".").concat(e)),n}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(r,i){return r.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(r.pathname)&&(t=[]),r.pathname=e+r.pathname,t.includes(i)&&"en"!==i&&(r.pathname=i+r.pathname),r}},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){return"object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n}},p={"wordpress.com/support/":f(c.hI),"wordpress.com/forums/":f(c.mL),"wordpress.com/blog/":f(c.GG,/^\/blog\/?$/),"wordpress.com/tos/":f(c.vS),"wordpress.com/wp-admin/":l("wordpress.com",c.vS),"wordpress.com/wp-login.php":l("wordpress.com",c.vS),"jetpack.com":l("jetpack.com",c._r),"en.support.wordpress.com":d("/support",c.hI),"en.blog.wordpress.com":d("/blog",c.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",c.mL),"automattic.com/privacy/":f(c.iT),"automattic.com/cookies/":f(c.xn),"wordpress.com/help/contact/":function(e,t,n){return n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),f(c.hI)(e,t))},"wordpress.com":function(e,t){return/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:f(c.vS)(e,t)},"wordpress.com/theme/":function(e,t,n){return n?e:f(c.vS)(e,t)},"wordpress.com/themes/":function(e,t,n){return n?e:f(c.vS)(e,t)}};function m(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{n=new URL(String(e),a)}catch(u){return e}if(n.origin===a)return e;n.protocol="https:",n.hostname="",n.pathname.endsWith(".php")||(n.pathname=(n.pathname+"/").replace(/\/+$/,"/"));var i=n.pathname.substr(0,1+n.pathname.indexOf("/",1));if("en.wordpress.com"===n.host&&(n.host="wordpress.com"),"/"+t+"/"===i)return e;for(var o=[n.host,n.host+i,n.host+n.pathname],s=o.length-1;s>=0;s--)if(o[s]in p)return p[o[s]](n,t,r).href;return e}function h(){var e=(0,u.bU)();return(0,s.useCallback)((function(t,n,r){return m(t,n||e,r)}),[e])}(0,o.createHigherOrderComponent)((function(e){return function(t){var n=h();return(0,i.createElement)(e,(0,r.Z)({localizeUrl:n},t))}}),"withLocalizeUrl")},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return u},lZ:function(){return c},_W:function(){return l},Yt:function(){return d}});var r=n(8049),i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function u(e){return s().has(e)}function c(e,t){var n=s();u(e)?(i('Adding a callback for an existing script from "'.concat(e,'"')),n.get(e).add(t)):(i('Adding a callback for a new script from "'.concat(e,'"')),n.set(e,new Set([t])))}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(),r=n.get(e);if(r){var o='Executing callbacks for "'.concat(e,'"')+(null===t?" with success":' with error "'.concat(t,'"'));i(o),r.forEach((function(e){"function"==typeof e&&e(t)})),n.delete(e)}}function l(){var e=this.getAttribute("src");i('Handling successful request for "'.concat(e,'"')),a(e),this.onload=null}function d(){var e=this.getAttribute("src");i('Handling failed request for "'.concat(e,'"')),a(e,new Error('Failed to load script "'.concat(e,'"'))),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return u},k:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=i()("lib/load-script/dom-operations");function u(e){s('Creating script element for "'.concat(e,'"'));var t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=o._W,t.onerror=o.Yt,t}function c(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return u}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function u(e,t){if(!(0,o.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise((function(t,n){(0,o.lZ)(e,(function(e){null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},6268:function(e,t,n){"use strict";n.d(t,{tq:function(){return f},Pw:function(){return p}});var r=769,i="<480px",o="undefined"==typeof window||!window.matchMedia,s=function(){return null};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?o?{matches:r>t&&r<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?o?{matches:r>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(o?{matches:r<=n}:window.matchMedia("(max-width: ".concat(n,"px)")))}var c={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function a(e){if(c.hasOwnProperty(e))return c[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function l(e){var t=a(e);return t?t.matches:void 0}function d(e,t){if(!t)return s;var n=a(e);if(n&&!o){var r=function(e){return t(e.matches)};return n.addListener(r),function(){return n.removeListener(r)}}return s}function f(){return l(i)}function p(e){return d(i,e)}},8049:function(e,t,n){var r;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.destroy=(r=!1,function(){r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=n(2632)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){var r=n(5182);e.exports=function(e){function t(e){var n,r,o,s=null;function u(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(u.enabled){var o=u,s=Number(new Date),c=s-(n||s);o.diff=c,o.prev=n,o.curr=s,n=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var a=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return"%";a++;var i=t.formatters[n];if("function"==typeof i){var s=r[a];e=i.call(o,s),r.splice(a,1),a--}return e})),t.formatArgs.call(o,r);var l=o.log||t.log;l.apply(o,r)}}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=i,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==s?s:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o)},set:function(e){s=e}}),"function"==typeof t.init&&t.init(u),u}function i(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){var e=[].concat(r(t.names.map(o)),r(t.skips.map(o).map((function(e){return"-"+e})))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},6141:function(e){"use strict";e.exports=window.React},8681:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},3804:function(e){"use strict";e.exports=window.lodash},7606:function(e){"use strict";e.exports=window.wp.apiFetch},7997:function(e){"use strict";e.exports=window.wp.components},1417:function(e){"use strict";e.exports=window.wp.compose},5707:function(e){"use strict";e.exports=window.wp.data},9866:function(e){"use strict";e.exports=window.wp.dataControls},3027:function(e){"use strict";e.exports=window.wp.element},3163:function(e){"use strict";e.exports=window.wp.i18n},5742:function(e){"use strict";e.exports=window.wp.nux},1200:function(e){"use strict";e.exports=window.wp.plugins},2418:function(e){"use strict";e.exports=window.wp.primitives}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var r={};!function(){"use strict";n.r(r);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=r}();
wpcom-block-editor-nux/src/block-editor-nux.js CHANGED
@@ -60,6 +60,7 @@ registerPlugin( 'wpcom-block-editor-nux', {
60
  );
61
  }
62
 
 
63
  if ( variant === 'modal' && Guide && GuidePage ) {
64
  return <WpcomNux />;
65
  }
60
  );
61
  }
62
 
63
+ // This case is redundant now and it will be cleaned up in a follow-up PR
64
  if ( variant === 'modal' && Guide && GuidePage ) {
65
  return <WpcomNux />;
66
  }
wpcom-block-editor-nux/src/store.js CHANGED
@@ -108,7 +108,9 @@ const selectors = {
108
  isWelcomeGuideShown: ( state ) => !! state.showWelcomeGuide,
109
  isWelcomeGuideStatusLoaded: ( state ) => typeof state.showWelcomeGuide !== 'undefined',
110
  getTourRating: ( state ) => state.tourRating,
111
- getWelcomeGuideVariant: ( state ) => state.welcomeGuideVariant,
 
 
112
  };
113
 
114
  export function register() {
108
  isWelcomeGuideShown: ( state ) => !! state.showWelcomeGuide,
109
  isWelcomeGuideStatusLoaded: ( state ) => typeof state.showWelcomeGuide !== 'undefined',
110
  getTourRating: ( state ) => state.tourRating,
111
+ // the 'modal' variant previously used for mobile has been removed but its slug may still be persisted in local storage
112
+ getWelcomeGuideVariant: ( state ) =>
113
+ state.welcomeGuideVariant === 'modal' ? DEFAULT_VARIANT : state.welcomeGuideVariant,
114
  };
115
 
116
  export function register() {
wpcom-block-editor-nux/src/welcome-tour/icons/thumbs_up.js CHANGED
@@ -1,6 +1,3 @@
1
- /**
2
- * WordPress dependencies
3
- */
4
  import { SVG, Path } from '@wordpress/primitives';
5
 
6
  const thumbsUp = (
 
 
 
1
  import { SVG, Path } from '@wordpress/primitives';
2
 
3
  const thumbsUp = (
wpcom-block-editor-nux/src/welcome-tour/tour-card.js CHANGED
@@ -1,5 +1,5 @@
1
  import { recordTracksEvent } from '@automattic/calypso-analytics';
2
- import { subscribeIsMobile } from '@automattic/viewport';
3
  import { Button, Card, CardBody, CardFooter, CardMedia, Flex } from '@wordpress/components';
4
  import { useDispatch, useSelect } from '@wordpress/data';
5
  import { useEffect, useState } from '@wordpress/element';
@@ -121,10 +121,10 @@ function CardNavigation( { cardIndex, lastCardIndex, onDismiss, setCurrentCardIn
121
  }
122
 
123
  function CardOverlayControls( { onMinimize, onDismiss, slideNumber } ) {
124
- const [ isMobile, setIsMobile ] = useState( false );
125
 
126
  useEffectOnlyOnce( () => {
127
- const unsubscribe = subscribeIsMobile( ( isNarrow ) => setIsMobile( isNarrow ) );
128
  return function cleanup() {
129
  unsubscribe();
130
  };
@@ -138,7 +138,7 @@ function CardOverlayControls( { onMinimize, onDismiss, slideNumber } ) {
138
  } );
139
  };
140
  const buttonClasses = classNames( 'welcome-tour-card__overlay-controls', {
141
- 'welcome-tour-card__overlay-controls-visible': isMobile,
142
  } );
143
 
144
  return (
1
  import { recordTracksEvent } from '@automattic/calypso-analytics';
2
+ import { subscribeIsMobile, isMobile } from '@automattic/viewport';
3
  import { Button, Card, CardBody, CardFooter, CardMedia, Flex } from '@wordpress/components';
4
  import { useDispatch, useSelect } from '@wordpress/data';
5
  import { useEffect, useState } from '@wordpress/element';
121
  }
122
 
123
  function CardOverlayControls( { onMinimize, onDismiss, slideNumber } ) {
124
+ const [ isMobileView, setIsMobileView ] = useState( isMobile() );
125
 
126
  useEffectOnlyOnce( () => {
127
+ const unsubscribe = subscribeIsMobile( ( isNarrow ) => setIsMobileView( isNarrow ) );
128
  return function cleanup() {
129
  unsubscribe();
130
  };
138
  } );
139
  };
140
  const buttonClasses = classNames( 'welcome-tour-card__overlay-controls', {
141
+ 'welcome-tour-card__overlay-controls-visible': isMobileView,
142
  } );
143
 
144
  return (