Full Site Editing - Version 3.17488

Version Description

Download this release

Release Info

Developer automattic
Plugin Icon wp plugin Full Site Editing
Version 3.17488
Comparing to
See all releases

Code changes from version 3.17411 to 3.17488

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' => 'ad447668bdf200be836248a56c0207f3');
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' => 'f4f94f4b4d52552c49249443ab9cdf54');
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.17411
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.17411' );
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.17488
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.17488' );
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.17411
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.17488
7
  Requires PHP: 5.6.20
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
wpcom-block-editor-nux/dist/images/post-published-ca9ddfc04a7c889a72d2.svg ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="158" height="85" viewBox="0 0 158 85" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_3017:1607)">
3
+ <path d="M63.6725 29.3457L74.1184 30.5743L77.4775 50.1798L98.2549 38.0326L101.616 38.3652C101.616 38.3652 131.643 9.19287 130.358 9.58493L63.6725 29.3457Z" fill="#DCDCDE"/>
4
+ <path d="M75.3439 34.0189L112.944 40.743L151.408 0.596808L52.1648 29.8684L68.8082 32.8435" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M98.4081 38.1433L77.6307 50.2905L75.3439 34.0189" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M68.8086 32.8435L129.876 9.97348L75.3442 34.0189" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M77.6309 50.2905L68.8085 32.8435" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
8
+ </g>
9
+ <path d="M8.60233 83.8353C8.2777 83.8366 7.91589 83.6851 7.59206 83.4123C7.26823 83.1395 7.00728 82.7663 6.86342 82.3703C6.67235 81.7793 6.64899 81.2051 6.79706 80.7393C6.95473 80.1688 7.15933 79.6318 7.40895 79.1333C7.66964 78.5283 8.05119 77.6527 8.38979 77.1139C8.79897 76.462 11.2903 72.9316 11.696 72.4793C12.2982 71.8076 14.042 70.2942 14.3832 70.0305C14.6284 69.856 14.8737 69.6816 15.143 69.4899C13.9404 68.063 13.9549 66.7815 14.0964 65.8123C14.2238 64.9413 14.7231 64.3846 15.1572 63.7401C15.9354 62.6064 16.8159 61.5789 17.7914 60.6662C20.7628 57.7634 24.3466 55.7215 27.6543 53.2718C28.3632 52.7423 29.1275 52.2866 29.8781 51.8156C31.6361 50.7103 33.3983 49.6161 35.1646 48.5329C35.677 48.2188 40.0619 45.9342 40.587 45.7284C41.2303 45.4763 43.8847 44.3935 44.5404 44.1745C45.3818 43.8823 47.9752 43.103 48.4046 42.9947C48.834 42.8864 49.3232 42.811 49.7755 42.7074C50.1507 42.6251 51.7752 42.3128 52.2074 42.236C52.4964 42.1899 52.7753 42.1257 53.0643 42.0796C53.8383 41.9484 54.6283 41.8396 55.4145 41.7334C55.4995 41.7191 55.7005 41.7145 55.8901 41.7097C56.0411 41.7017 56.2096 41.7543 56.3707 41.8596C56.5318 41.9649 56.6769 42.1173 56.7845 42.2943C57.2425 43.0678 56.3858 43.4171 56.2733 43.4636C55.9002 43.5635 55.5102 43.6278 55.1064 43.6561C54.8512 43.6907 54.5962 43.6666 54.3604 43.7127C53.4661 43.8873 52.5802 44.0854 51.6767 44.2667C50.9956 44.3988 45.5939 45.9425 45.0441 46.149C44.4943 46.3555 39.0329 48.7473 38.1721 49.1499C38.1015 49.2001 38.0189 49.2295 37.9463 49.2769C35.5867 50.7585 33.1694 52.1551 30.8575 53.7076C27.3223 56.08 23.821 58.5093 20.3537 60.9956C17.2976 63.6691 15.8969 65.9243 15.6165 66.7574C15.4281 67.1179 15.6063 68.4932 16.1522 68.407L16.6296 68.0673C18.3629 66.8342 20.0365 65.5093 21.8591 64.4056C22.8376 63.8144 24.0677 63.577 25.5773 64.3618C26.578 64.8834 27.2409 65.8467 27.682 66.8168C28.1899 67.9239 28.0151 68.8581 27.3333 69.4061C25.384 70.9649 24.276 71.1616 23.6305 71.2809C22.9294 71.4391 22.1943 71.5214 21.4328 71.5269C20.5627 71.4969 19.6709 71.3909 18.7646 71.2099C18.234 71.1091 17.6674 70.824 17.1217 70.6626C16.9505 70.6304 16.7961 70.6636 16.6824 70.757C16.0552 71.2283 15.4241 71.6941 14.8306 72.2129C14.3905 72.5973 13.986 73.0277 13.5796 73.4553C13.2595 73.7921 12.7453 74.3593 12.439 74.7115C12.1328 75.0636 11.8188 75.4129 11.5393 75.7712C11.1048 76.3404 10.6704 76.9096 10.2748 77.5099C9.83414 78.1884 9.39944 78.8753 9.04067 79.6256C8.74827 80.2974 8.49526 81.0012 8.28266 81.7341C8.26703 81.783 8.26227 81.8392 8.26867 81.8993C8.28385 82.1462 8.38806 82.4142 8.55878 82.6453C8.6902 82.794 8.79275 82.9691 8.85381 83.1493C8.91489 83.3295 8.93182 83.5068 8.90254 83.6594C8.87944 83.722 8.84002 83.7707 8.7877 83.8013C8.73538 83.8319 8.67175 83.8436 8.60233 83.8353ZM18.3478 69.3498C18.5906 69.4295 18.832 69.4944 19.071 69.5443C19.8468 69.6554 22.5398 69.6611 23.0608 69.5086C23.7855 69.307 24.4617 69.0113 25.0799 68.626C25.4046 68.4475 25.7058 68.2332 25.9809 67.985C26.1578 67.7983 26.231 67.5056 26.1846 67.1698C26.1383 66.8339 25.9761 66.4819 25.7331 66.1893C25.4361 65.8426 25.1621 65.7564 24.6407 65.7078C23.9559 65.6694 23.3296 65.8087 22.8046 66.1161C21.3766 67.0272 18.4972 69.2058 18.3577 69.3637L18.3478 69.3498Z" fill="#02395C"/>
10
+ <defs>
11
+ <clipPath id="clip0_3017:1607">
12
+ <rect width="145" height="40" fill="white" transform="translate(8.26501 20.1801) rotate(-8)"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
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-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '6112d42f19a262b685285e81c58c01ef');
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-hooks', 'wp-i18n', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'e8162f696a0493b8495ec07916ddb914');
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.css CHANGED
@@ -1 +1 @@
1
- .wpcom-block-editor-draft-post-modal .components-modal__header{height:auto;padding:10px;border-bottom:0}.wpcom-block-editor-draft-post-modal .components-modal__header button{left:unset}.wpcom-block-editor-draft-post-modal .components-modal__header button svg path{transform:scale(1.4);transform-origin:center}.wpcom-block-editor-draft-post-modal .components-modal__content{padding:84px 20px 20px;margin-top:0}.wpcom-block-editor-draft-post-modal .components-modal__content:before{margin:0}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .components-modal__content{text-align:center}}@media(min-width:600px){.wpcom-block-editor-draft-post-modal .components-modal__content{padding:48px 128px}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__image-container{text-align:center}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__image-container img{width:209px;height:95px}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__title{margin:34px 0 0;font-size:2.25rem;font-weight:500;line-height:1.2}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__title{margin-top:24px}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__description{max-width:352px;margin:16px 0 0;font-size:1rem}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__description{margin:20px auto 0;font-size:1.125rem}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons{display:flex;flex-direction:column;justify-content:center;margin-top:24px}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons button{min-width:130px;height:40px;justify-content:center;border-radius:3px;font-size:.875rem}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons button+button{margin-top:12px}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons{flex-direction:row;margin-top:28px}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons button+button{margin-top:0;margin-left:16px}}@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;left:5vw;right:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;left:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;left:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;left:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 0 0 4px}.wpcom-editor-welcome-tour__minimized{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__minimized .components-button{height:44px}.wpcom-editor-welcome-tour__minimized .components-button .wpcom-editor-welcome-tour__minimized-tour-index{color:#949494}.wpcom-editor-welcome-tour__minimized .components-button svg{color:#50575e}.wpcom-editor-welcome-tour__minimized .components-button:hover .wpcom-editor-welcome-tour__minimized-tour-index,.wpcom-editor-welcome-tour__minimized .components-button:hover svg{color:inherit}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;left:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-left:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{height:0;padding-top:66%;position:relative;width:100%}.welcome-tour-card .components-card__media img{left:0;position:absolute;top:0;width:100%}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;left:-2px}.welcome-tour-card__overlay-controls{left:0;padding:12px;position:absolute;right:0;z-index:1}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;transition:opacity .2s;opacity:.7}.welcome-tour-card__overlay-controls .components-button:active{opacity:.9}@media(hover:hover)and (pointer:fine){.welcome-tour-card__overlay-controls .components-button{opacity:0}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:hover,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}}.welcome-tour-card__next-btn{margin-left:12px;justify-content:center;min-width:85px}
1
+ .wpcom-block-editor-nux-modal .components-modal__header{height:auto;padding:10px;border-bottom:0}.wpcom-block-editor-nux-modal .components-modal__header button{left:unset}.wpcom-block-editor-nux-modal .components-modal__header button svg path{transform:scale(1.4);transform-origin:center}.wpcom-block-editor-nux-modal .components-modal__content{padding:84px 20px 20px;margin-top:0}.wpcom-block-editor-nux-modal .components-modal__content:before{margin:0}@media(min-width:480px){.wpcom-block-editor-nux-modal .components-modal__content{text-align:center}}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__image-container{display:flex;justify-content:center}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__title{margin:34px 0 0;font-size:2.25rem;font-weight:500;line-height:1.2}@media(min-width:480px){.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__title{margin-top:24px}}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__description{max-width:352px;margin:16px 0 0;font-size:1rem}@media(min-width:480px){.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__description{margin:20px auto 0;font-size:1.125rem}}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons{display:flex;flex-direction:column;justify-content:center;margin-top:24px}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons .components-button{min-width:130px;height:40px;justify-content:center;border-radius:3px;font-size:.875rem}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons .components-button+.components-button{margin-top:12px}@media(min-width:480px){.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons{flex-direction:row;margin-top:28px}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons .components-button+.components-button{margin-top:0;margin-left:16px}}@media(min-width:600px){.wpcom-block-editor-draft-post-modal .components-modal__content{padding:48px 128px}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-nux-modal__image-container img{width:209px;height:95px}@media(min-width:600px){.wpcom-block-editor-post-published-modal .components-modal__content{padding:48px 90px}}.wpcom-block-editor-post-published-modal .wpcom-block-editor-nux-modal__image-container img{width:158px;height:85px}.wpcom-block-editor-post-published-modal .wpcom-block-editor-nux-modal__buttons .components-button{min-width:113px}@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;left:5vw;right:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;left:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;left:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;left:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 0 0 4px}.wpcom-editor-welcome-tour__minimized{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__minimized .components-button{height:44px}.wpcom-editor-welcome-tour__minimized .components-button .wpcom-editor-welcome-tour__minimized-tour-index{color:#949494}.wpcom-editor-welcome-tour__minimized .components-button svg{color:#50575e}.wpcom-editor-welcome-tour__minimized .components-button:hover .wpcom-editor-welcome-tour__minimized-tour-index,.wpcom-editor-welcome-tour__minimized .components-button:hover svg{color:inherit}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;left:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-left:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{height:0;padding-top:66%;position:relative;width:100%}.welcome-tour-card .components-card__media img{left:0;position:absolute;top:0;width:100%}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;left:-2px}.welcome-tour-card__overlay-controls{left:0;padding:12px;position:absolute;right:0;z-index:1}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;transition:opacity .2s;opacity:.7}.welcome-tour-card__overlay-controls .components-button:active{opacity:.9}@media(hover:hover)and (pointer:fine){.welcome-tour-card__overlay-controls .components-button{opacity:0}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:hover,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}}.welcome-tour-card__next-btn{margin-left:12px;justify-content:center;min-width:85px}
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 c in n)r.call(n,c)&&n[c]&&e.push(c);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 c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,s,u;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=a(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function 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 p(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):f(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(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 a(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 c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)r(a,this,t);else{var u=a.length,l=f(a,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},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 p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,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),c=r.sum32,a=r.sum32_4,u=r.sum32_5,l=o.ch32,d=o.maj32,p=o.s0_256,m=o.s1_256,f=o.g0_256,h=o.g1_256,g=i.BlockHash,w=[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 v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}r.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.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]=a(h(n[r-2]),n[r-7],f(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],w=this.h[3],v=this.h[4],_=this.h[5],y=this.h[6],C=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var b=u(C,m(v),l(v,_,y),this.k[r],n[r]),E=c(p(i),d(i,o,g));C=y,y=_,_=v,v=c(w,b),w=g,g=o,o=i,i=c(b,E)}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],w),this.h[4]=c(this.h[4],v),this.h[5]=c(this.h[5],_),this.h[6]=c(this.h[6],y),this.h[7]=c(this.h[7],C)},v.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 c(e){return 1===e.length?"0"+e:e}function a(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+=c(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+=a(i.toString(16))}return n},t.zero2=c,t.zero8=a,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),c=0,a=t;c<s.length;c++,a+=4){var u;u="big"===i?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[c]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,c){var a=0,u=t;return a+=(u=u+r>>>0)<t?1:0,a+=(u=u+o>>>0)<o?1:0,e+n+i+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,c){return t+r+o+c>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,c,a,u){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+c>>>0)<c?1:0,e+n+i+s+a+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,c,a,u){return t+r+o+c+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},721:function(){},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 c(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\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(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var o=Math.abs(e);if(o>=i)return c(e,o,i,"day");if(o>=r)return c(e,o,r,"hour");if(o>=n)return c(e,o,n,"minute");if(o>=t)return c(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(9307),i=(n(3945),n(849)),o=n(4655),s=n(5609),c=n(9818),a=n(8817),u=n(6483),l=n(3867),d=n(1970),p=n(374),m=n(2753);(0,a.registerPlugin)("wpcom-block-editor-nux",{render:function(){var e;const{show:t,isLoaded:n,variant:a,isManuallyOpened:f,isNewPageLayoutModalOpen:h}=(0,c.useSelect)((e=>{const 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()}}),[]),g=null===(e=(0,c.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");if((0,r.useEffect)((()=>{n||w()}),[w,n]),!t||h)return null;if(a===d.yn&&!f&&g)return g("OPEN_FOR_BLANK_CANVAS"),null;if(a===d.Sz){const e=(0,u.getQueryArg)(window.location.href,"showDraftPostModal");return(0,r.createElement)(i.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??o.OP},e?(0,r.createElement)(l.Z,null):(0,r.createElement)(m.Z,null))}return"modal"===a&&s.Guide&&s.GuidePage?(0,r.createElement)(p.Z,null):null}})},1568:function(e,t,n){"use strict";var r=n(9818);n(462);const i=(0,r.subscribe)((()=>{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)((()=>{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}))}))},3867:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(2694),s=n(5736),c=n(3790);n(721);const __=s.__;t.Z=()=>{const[e,t]=(0,r.useState)(!0),n=()=>t(!1);return e?(0,r.createElement)(i.Modal,{open:e,className:"wpcom-block-editor-draft-post-modal",onRequestClose:n},(0,r.createElement)("div",{className:"wpcom-block-editor-draft-post-modal__image-container"},(0,r.createElement)("img",{src:c,alt:__("Write post","full-site-editing")})),(0,r.createElement)("h1",{className:"wpcom-block-editor-draft-post-modal__title"},__("Write your first post","full-site-editing")),(0,r.createElement)("p",{className:"wpcom-block-editor-draft-post-modal__description"},__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing")),(0,r.createElement)("div",{className:"wpcom-block-editor-draft-post-modal__buttons",justify:"center"},(0,r.createElement)(i.Button,{variant:"primary",onClick:n},__("Start writing","full-site-editing")),(0,r.createElement)(i.Button,{variant:"secondary",onClick:()=>(0,o.doAction)("a8c.wpcom-block-editor.closeEditor")},__("I'm not ready","full-site-editing")))):null}},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 c},yn:function(){return a},z2:function(){return p}});var r=n(6989),i=n.n(r),o=n(9818),s=n(3418);n(3288);const c="tour",a="blank-canvas-tour",u=(0,o.combineReducers)({welcomeGuideManuallyOpened:(e=!1,t)=>{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:(e,t)=>{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:(e,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:(e=c,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===a?c:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return c;default:return e}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},setShowWelcomeGuide:(e,{openedManually:t}={})=>(i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:t}),setTourRating:e=>({type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}),setUsedPageOrPatternsModal:()=>({type:"WPCOM_HAS_USED_PATTERNS_MODAL"}),resetStore:()=>({type:"WPCOM_WELCOME_GUIDE_RESET_STORE"})},d={isWelcomeGuideManuallyOpened:e=>e.welcomeGuideManuallyOpened,isWelcomeGuideShown:e=>!!e.showWelcomeGuide,isWelcomeGuideStatusLoaded:e=>void 0!==e.showWelcomeGuide,getTourRating:e=>e.tourRating,getWelcomeGuideVariant:e=>"modal"===e.welcomeGuideVariant?c:e.welcomeGuideVariant};function p(){return(0,o.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(6115),s=n(5609),c=n(9818),a=n(5736),u=n(9711),l=n(6595),d=n(5486),p=n(7821);n(4727);const __=a.__;function m({pageNumber:e,isLastPage:t,alignBottom:n=!1,heading:r,description:c,imgSrc:a}){return(0,i.useEffect)((()=>{var n;(0,o.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:e,is_last_slide:t,is_gutenboarding:null===(n=window.calypsoifyGutenberg)||void 0===n?void 0:n.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"},r),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__description"},c)),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,i.createElement)("img",{key:a,src:a,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(n?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,c.useSelect)((e=>({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()}))),{setShowWelcomeGuide:a}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");if((0,i.useEffect)((()=>{var r;e&&!t&&(0,o.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const f=[{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:u},{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:p,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:()=>{var e;(0,o.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),a(!1,{openedManually:!1})}},f.map(((e,t)=>(0,i.createElement)(m,(0,r.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===f.length-1},e)))))}},791:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),o=(0,r.useCallback)((t=>{var r;null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,r.useCallback)((t=>{var r;"Tab"===t.key&&(null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1))}),[e]);return(0,r.useEffect)((()=>(document.addEventListener("focusin",i),document.addEventListener("mousedown",o),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",i),document.removeEventListener("mnousedown",o),document.removeEventListener("keyup",s)})),[i,o,s]),t}},4704:function(e,t,n){"use strict";var r=n(9307);t.Z=({onEscape:e,onArrowRight:t,onArrowLeft:n})=>{const i=(0,r.useCallback)((r=>{let i=!1;switch(r.key){case"Escape":e&&(e(),i=!0);break;case"ArrowRight":t&&(t(),i=!0);break;case"ArrowLeft":n&&(n(),i=!0)}i&&(r.preventDefault(),r.stopPropagation())}),[e,t,n]);(0,r.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},8574:function(e,t,n){"use strict";var r=n(9307),i=n(444);const 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"}));t.Z=o},6139:function(e,t,n){"use strict";var r=n(9307),i=n(444);const 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(9307),i=n(444);const 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(9307),i=n(444);const 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},5025:function(e,t,n){"use strict";var r=n(9307),i=(n(9196),n(791)),o=n(4704);t.Z=({onMinimize:e,onDismiss:t,onNextCardProgression:n,onPreviousCardProgression:s,tourContainerRef:c,isMinimized:a})=>(0,i.Z)(c)?a?(0,r.createElement)((function(){return(0,o.Z)({onEscape:t("esc-key-minimized")}),null}),null):(0,r.createElement)((function(){return(0,o.Z)({onEscape:e,onArrowRight:n,onArrowLeft:s}),null}),null):null},9483:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9307),i=n(5609),o=n(5736),s=n(444),c=n(2819);const __=o.__;function a({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":__("Guide controls","full-site-editing")},(0,c.times)(t,(s=>(0,r.createElement)("li",{key:s,"aria-current":s===e?"step":void 0},(0,r.createElement)(i.Button,{key:s,icon:(0,r.createElement)(u,{isSelected:s===e}),"aria-label":(0,o.sprintf)(__("Page %1$d of %2$d","full-site-editing"),s+1,t),onClick:()=>n(s)})))))}const u=({isSelected:e})=>(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:e?"#32373C":"#E1E3E6"}))},2069:function(e,t,n){"use strict";var r=n(9307),i=n(6115),o=n(5609),s=n(9818),c=n(5736),a=n(8565),u=n(2779),l=n.n(u),d=n(6139),p=n(4308),m=n(9425),f=n(9483);n(7807);const __=c.__;function h({currentCardIndex:e,lastCardIndex:t,onDismiss:n,setCurrentCardIndex:i,onNextCardProgression:s,onPreviousCardProgression:c,focusedOnLaunchRef:a}){const u=__("Try it out!","full-site-editing"),l=__("Next","full-site-editing");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(f.Z,{currentPage:e,numberOfPages:t+1,setCurrentPage:i}),(0,r.createElement)("div",null,0===e?(0,r.createElement)(o.Button,{isTertiary:!0,onClick:n("no-thanks-btn")},__("Skip","full-site-editing")):(0,r.createElement)(o.Button,{isTertiary:!0,onClick:c},__("Back","full-site-editing")),(0,r.createElement)(o.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:s,ref:a},0===e?u:l)))}function g({onMinimize:e,onDismiss:t}){const n=l()("welcome-tour-card__overlay-controls");return(0,r.createElement)("div",{className:n},(0,r.createElement)(o.Flex,null,(0,r.createElement)(o.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:d.Z,iconSize:24,onClick:e}),(0,r.createElement)(o.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:a.Z,iconSize:24,onClick:t("close-btn")})))}function w({isGutenboarding:e}){let t=!1;const n=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),{setTourRating:c}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");!t&&n&&(t=!0);const a=n=>{t||(t=!0,c(n?"thumbs-up":"thumbs-down"),(0,i.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:n,is_gutenboarding:e}))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"welcome-tour__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(o.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:l()("welcome-tour__end-icon",{active:"thumbs-up"===n}),disabled:t,icon:m.Z,onClick:()=>a(!0),iconSize:24}),(0,r.createElement)(o.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:l()("welcome-tour__end-icon",{active:"thumbs-down"===n}),disabled:t,icon:p.Z,onClick:()=>a(!1),iconSize:24})))}t.Z=function({cardContent:e,currentCardIndex:t,justMaximized:n,lastCardIndex:s,onMinimize:c,onDismiss:a,setJustMaximized:u,setCurrentCardIndex:l,onNextCardProgression:d,onPreviousCardProgression:p,isGutenboarding:m,focusedOnLaunchRef:f}){const{description:v,heading:_,imgSrc:y}=e,C=t===s;var b;return b=()=>{n?u(!1):(0,i.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:t+1,is_last_slide:C,slide_heading:_,is_gutenboarding:m})},(0,r.useEffect)(b,[]),(0,r.createElement)(o.Card,{className:"welcome-tour-card",isElevated:!0},(0,r.createElement)(g,{onDismiss:a,onMinimize:c}),(0,r.createElement)(o.CardMedia,null,(0,r.createElement)("img",{alt:__("Editor Welcome Tour","full-site-editing"),src:y})),(0,r.createElement)(o.CardBody,null,(0,r.createElement)("h2",{className:"welcome-tour-card__heading"},_),(0,r.createElement)("p",{className:"welcome-tour-card__description"},v,C?(0,r.createElement)(o.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:()=>l(0)},__("Restart tour","full-site-editing")):null)),(0,r.createElement)(o.CardFooter,null,C?(0,r.createElement)(w,{isGutenboarding:m}):(0,r.createElement)(h,{currentCardIndex:t,lastCardIndex:s,onDismiss:a,setCurrentCardIndex:l,onNextCardProgression:d,onPreviousCardProgression:p,focusedOnLaunchRef:f})))}},1227:function(e,t,n){"use strict";var r=n(9307),i=n(7498),o=n(5609),s=n(5736);const __=s.__;t.Z=function(e){return[{heading:__("Welcome to WordPress!","full-site-editing"),description:__("Take this short, interactive 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(9307),i=n(6115),o=n(849),s=n(5609),c=n(9818),a=n(5736),u=n(5869),l=n(8565),d=n(8574),p=n(5025),m=n(2069),f=n(1227);n(7807);const __=a.__;function h(){var e;const t=(0,r.useRef)(null),n=(0,r.useRef)(null),{setShowWelcomeGuide:s}=(0,c.useDispatch)("automattic/wpcom-welcome-guide"),[a,u]=(0,r.useState)(!1),[l,d]=(0,r.useState)(0),[h,w]=(0,r.useState)(!1),v=(0,o.bU)(),_=(0,f.Z)(v),y=_.length-1,C=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,b=e=>()=>{(0,i.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:C,slide_number:l+1,action:e}),s(!1,{openedManually:!1})},E=()=>{y>l&&d(l+1)},k=()=>{l&&d(l-1)},x=()=>{u(!0),(0,i.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:C,slide_number:l+1})};return(0,r.useEffect)((()=>{setTimeout((()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}))}),[]),_.forEach((e=>(new window.Image).src=e.imgSrc)),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,{onMinimize:x,onDismiss:b,onNextCardProgression:E,onPreviousCardProgression:k,tourContainerRef:t,isMinimized:a}),(0,r.createElement)("div",{className:"wpcom-editor-welcome-tour-frame",ref:t},a?(0,r.createElement)(g,{onMaximize:()=>{u(!1),w(!0),(0,i.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:C,slide_number:l+1})},onDismiss:b,currentCardIndex:l,lastCardIndex:y}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.Z,{cardContent:_[l],currentCardIndex:l,justMaximized:h,key:l,lastCardIndex:y,onDismiss:b,onMinimize:x,setJustMaximized:w,setCurrentCardIndex:d,onNextCardProgression:E,onPreviousCardProgression:k,isGutenboarding:C,focusedOnLaunchRef:n}))))}function g({onMaximize:e,onDismiss:t,currentCardIndex:n,lastCardIndex:i}){const o=n+1,c=i+1;return(0,r.createElement)(s.Flex,{gap:0,className:"wpcom-editor-welcome-tour__minimized"},(0,r.createElement)(s.Button,{onClick:e,"aria-label":__("Resume Tour","full-site-editing")},(0,r.createElement)(s.Flex,{gap:13},(0,r.createElement)("p",null,(0,r.createInterpolateElement)((0,a.sprintf)(__("Resume welcome tour <span>(%1$d/%2$d)</span>","full-site-editing"),o,c),{span:(0,r.createElement)("span",{className:"wpcom-editor-welcome-tour__minimized-tour-index"})})),(0,r.createElement)(u.Z,{icon:d.Z,size:24}))),(0,r.createElement)(s.Button,{onClick:t("close-btn-minimized"),"aria-label":__("Close Tour","full-site-editing")},(0,r.createElement)(u.Z,{icon:l.Z,size:24})))}t.Z=function(){const e=(0,r.useRef)(document.createElement("div")).current,{show:t,isNewPageLayoutModalOpen:n,isManuallyOpened:s}=(0,c.useSelect)((e=>({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()}))),a=(0,o.bU)();return(new window.Image).src=(0,f.Z)(a)[0].imgSrc,(0,r.useEffect)((()=>{var r;if(t||n)return e.classList.add("wpcom-editor-welcome-tour-portal-parent"),document.body.appendChild(e),(0,i.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:s}),()=>{document.body.removeChild(e)}}),[n,s,t,e]),!t||n?null:(0,r.createElement)("div",null,(0,r.createPortal)((0,r.createElement)(h,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";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return p}});var r=n(2699),i=n(4898),o=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["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"];let a,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,i.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function p(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(c,e)){if(a){const e=a(t);t={...t,...e}}t=(0,o.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(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 u},bU:function(){return d}});var r=n(7896),i=n(9307),o=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null),u=({children:e,localeSlug:t})=>(0,i.createElement)(a.Provider,{value:t},e);function l(){var e,t;return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(e=s.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,c.useContext)(a),t=!!e,[n,r]=(0,c.useState)(l());return(0,c.useEffect)((()=>{if(!t)return r(l()),s.subscribe((()=>{r(l())}))}),[t]),e||n||"en"}(0,o.createHigherOrderComponent)((e=>t=>{const n=d();return(0,i.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 c},hI:function(){return a},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const r="en",i=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de","es"],s=["en","fr","de","es"],c={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},a=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return f}});var r=n(7896),i=n(9307),o=n(4333),s=n(9196),c=n(849),a=n(4655);const u="http://__domain__.invalid",l=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${a.Xb[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,i)=>(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),p=(e=[],t=null)=>(n,r)=>("object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),m={"wordpress.com/support/":p(a.hI),"wordpress.com/forums/":p(a.mL),"wordpress.com/blog/":p(a.GG,/^\/blog\/?$/),"wordpress.com/tos/":p(a.vS),"wordpress.com/wp-admin/":l("wordpress.com",a.vS),"wordpress.com/wp-login.php":l("wordpress.com",a.vS),"jetpack.com":l("jetpack.com",a._r),"en.support.wordpress.com":d("/support",a.hI),"en.blog.wordpress.com":d("/blog",a.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",a.mL),"automattic.com/privacy/":p(a.iT),"automattic.com/cookies/":p(a.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),p(a.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:p(a.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:p(a.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:p(a.vS)(e,t)};function f(e,t,n=!0){let r;try{r=new URL(String(e),u)}catch(s){return e}if(r.origin===u)return e;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const i=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===i)return e;const o=[r.host,r.host+i,r.host+r.pathname];for(let c=o.length-1;c>=0;c--)if(o[c]in m)return m[o[c]](r,t,n).href;return e}function h(){const e=(0,c.bU)();return(0,s.useCallback)(((t,n,r)=>f(t,n||e,r)),[e])}(0,o.createHigherOrderComponent)((e=>t=>{const 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 c},lZ:function(){return a},_W:function(){return l},Yt:function(){return d}});var r=n(8049);const i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function c(e){return s().has(e)}function a(e,t){const n=s();c(e)?(i(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(i(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e,t=null){const n=s(),r=n.get(e);if(r){i(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");i(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");i(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return c},k:function(){return a}});var r=n(8049),i=n.n(r),o=n(3340);const s=i()("lib/load-script/dom-operations");function c(e){s(`Creating script element for "${e}"`);const 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 a(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function c(e,t){if(!(0,o.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,o.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(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(){let 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=(()=>{let e=!1;return()=>{e||(e=!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||(()=>{}),e.exports=n(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,i,o,s=null;function c(...e){if(!c.enabled)return;const r=c,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=r,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(c),c}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(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(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const 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;let 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((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},7896:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})}},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 c in n)r.call(n,c)&&n[c]&&e.push(c);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 c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var i,o,s,u;if(c(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=a(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function 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 p(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):f(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(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 a(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 c=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw c.context=s,c}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)r(a,this,t);else{var u=a.length,l=f(a,u);for(n=0;n<u;++n)r(l[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},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 p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},o.prototype.listenerCount=m,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),c=r.sum32,a=r.sum32_4,u=r.sum32_5,l=o.ch32,d=o.maj32,p=o.s0_256,m=o.s1_256,f=o.g0_256,h=o.g1_256,g=i.BlockHash,w=[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 v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}r.inherits(v,g),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.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]=a(h(n[r-2]),n[r-7],f(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],g=this.h[2],w=this.h[3],v=this.h[4],_=this.h[5],y=this.h[6],C=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var E=u(C,m(v),l(v,_,y),this.k[r],n[r]),b=c(p(i),d(i,o,g));C=y,y=_,_=v,v=c(w,E),w=g,g=o,o=i,i=c(E,b)}this.h[0]=c(this.h[0],i),this.h[1]=c(this.h[1],o),this.h[2]=c(this.h[2],g),this.h[3]=c(this.h[3],w),this.h[4]=c(this.h[4],v),this.h[5]=c(this.h[5],_),this.h[6]=c(this.h[6],y),this.h[7]=c(this.h[7],C)},v.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 c(e){return 1===e.length?"0"+e:e}function a(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+=c(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+=a(i.toString(16))}return n},t.zero2=c,t.zero8=a,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var s=new Array(o/4),c=0,a=t;c<s.length;c++,a+=4){var u;u="big"===i?e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[c]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,s=(o<r?1:0)+n+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,s,c){var a=0,u=t;return a+=(u=u+r>>>0)<t?1:0,a+=(u=u+o>>>0)<o?1:0,e+n+i+s+(a+=(u=u+c>>>0)<c?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,s,c){return t+r+o+c>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,s,c,a,u){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+c>>>0)<c?1:0,e+n+i+s+a+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,s,c,a,u){return t+r+o+c+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},721:function(){},730:function(){},3335:function(){},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 c(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\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(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===u&&isFinite(e))return a.long?function(e){var o=Math.abs(e);if(o>=i)return c(e,o,i,"day");if(o>=r)return c(e,o,r,"hour");if(o>=n)return c(e,o,n,"minute");if(o>=t)return c(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(9307),i=(n(3945),n(849)),o=n(4655),s=n(5609),c=n(9818),a=n(8817),u=n(6483),l=n(3867),d=n(9935),p=n(1970),m=n(374),f=n(2753);function h(){var e;const{show:t,isLoaded:n,variant:a,isManuallyOpened:d,isNewPageLayoutModalOpen:h}=(0,c.useSelect)((e=>{const 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()}}),[]),g=null===(e=(0,c.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");if((0,r.useEffect)((()=>{n||w()}),[w,n]),!t||h)return null;if(a===p.yn&&!d&&g)return g("OPEN_FOR_BLANK_CANVAS"),null;if(a===p.Sz){const e=(0,u.getQueryArg)(window.location.href,"showDraftPostModal");return(0,r.createElement)(i.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??o.OP},e?(0,r.createElement)(l.Z,null):(0,r.createElement)(f.Z,null))}return"modal"===a&&s.Guide&&s.GuidePage?(0,r.createElement)(m.Z,null):null}(0,a.registerPlugin)("wpcom-block-editor-nux",{render:()=>(0,r.createElement)(r.Fragment,null,(0,r.createElement)(h,null),(0,r.createElement)(d.Z,null))})},1568:function(e,t,n){"use strict";var r=n(9818);n(462);const i=(0,r.subscribe)((()=>{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)((()=>{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}))}))},3867:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(2694),s=n(5736),c=n(3634),a=n(3790);n(721);const __=s.__;t.Z=()=>{const[e,t]=(0,r.useState)(!0),n=()=>t(!1);return(0,r.createElement)(c.Z,{isOpen:e,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","full-site-editing"),description:__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing"),imageSrc:a,actionButtons:(0,r.createElement)(r.Fragment,null,(0,r.createElement)(i.Button,{isPrimary:!0,onClick:n},__("Start writing","full-site-editing")),(0,r.createElement)(i.Button,{isSecondary:!0,onClick:()=>(0,o.doAction)("a8c.wpcom-block-editor.closeEditor")},__("I'm not ready","full-site-editing"))),onRequestClose:n})}},3634:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(2779),s=n.n(o);n(9196),n(730);t.Z=({isOpen:e,className:t,title:n,description:o,imageSrc:c,actionButtons:a,onRequestClose:u})=>e?(0,r.createElement)(i.Modal,{className:s()("wpcom-block-editor-nux-modal",t),open:e,title:"",onRequestClose:u},(0,r.createElement)("div",{className:"wpcom-block-editor-nux-modal__image-container"},(0,r.createElement)("img",{src:c,alt:n})),(0,r.createElement)("h1",{className:"wpcom-block-editor-nux-modal__title"},n),(0,r.createElement)("p",{className:"wpcom-block-editor-nux-modal__description"},o),(0,r.createElement)("div",{className:"wpcom-block-editor-nux-modal__buttons"},a)):null},9935:function(e,t,n){"use strict";var r=n(9307),i=n(5609),o=n(9818),s=n(5736),c=n(3634),a=n(5275);n(3335);const __=s.__;t.Z=()=>{const{link:e}=(0,o.useSelect)((e=>e("core/editor").getCurrentPost())),t=(0,o.useSelect)((e=>e("core/editor").isCurrentPostPublished())),n=(0,r.useRef)(t),s=(0,o.useSelect)((e=>e("automattic/wpcom-welcome-guide").getSiteHasNeverPublishedPost())),[u,l]=(0,r.useState)(!1),{fetchSiteHasNeverPublishedPost:d,setSiteHasNeverPublishedPost:p}=(0,o.useDispatch)("automattic/wpcom-welcome-guide");return(0,r.useEffect)((()=>{d()}),[d]),(0,r.useEffect)((()=>{s&&!n.current&&t&&(n.current=t,p(!1),window.setTimeout((()=>{l(!0)})))}),[s,t,p]),(0,r.createElement)(c.Z,{isOpen:u,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","full-site-editing"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","full-site-editing"),imageSrc:a,actionButtons:(0,r.createElement)(i.Button,{isPrimary:!0,href:e},__("View Post","full-site-editing")),onRequestClose:()=>l(!1)})}},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 c},yn:function(){return a},z2:function(){return p}});var r=n(6989),i=n.n(r),o=n(9818),s=n(3418);n(3288);const c="tour",a="blank-canvas-tour",u=(0,o.combineReducers)({welcomeGuideManuallyOpened:(e=!1,t)=>{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:(e,t)=>{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:(e,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:(e=c,t)=>{switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===a?c:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return c;default:return e}},siteHasNeverPublishedPost:(e=!1,t)=>{switch(t.type){case"WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_FETCH_SUCCESS":case"WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_SET":return t.value;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchSiteHasNeverPublishedPost(){return{type:"WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_FETCH_SUCCESS",value:!!(yield(0,s.apiFetch)({path:"/wpcom/v2/site-has-never-published-post"}))}},setShowWelcomeGuide:(e,{openedManually:t}={})=>(i()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:t}),setTourRating:e=>({type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}),setUsedPageOrPatternsModal:()=>({type:"WPCOM_HAS_USED_PATTERNS_MODAL"}),setSiteHasNeverPublishedPost:e=>({type:"WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_SET",value:e}),resetStore:()=>({type:"WPCOM_WELCOME_GUIDE_RESET_STORE"})},d={isWelcomeGuideManuallyOpened:e=>e.welcomeGuideManuallyOpened,isWelcomeGuideShown:e=>!!e.showWelcomeGuide,isWelcomeGuideStatusLoaded:e=>void 0!==e.showWelcomeGuide,getTourRating:e=>e.tourRating,getWelcomeGuideVariant:e=>"modal"===e.welcomeGuideVariant?c:e.welcomeGuideVariant,getSiteHasNeverPublishedPost:e=>e.siteHasNeverPublishedPost};function p(){return(0,o.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var r=n(7896),i=n(9307),o=n(6115),s=n(5609),c=n(9818),a=n(5736),u=n(9711),l=n(6595),d=n(5486),p=n(7821);n(4727);const __=a.__;function m({pageNumber:e,isLastPage:t,alignBottom:n=!1,heading:r,description:c,imgSrc:a}){return(0,i.useEffect)((()=>{var n;(0,o.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:e,is_last_slide:t,is_gutenboarding:null===(n=window.calypsoifyGutenberg)||void 0===n?void 0:n.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"},r),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__description"},c)),(0,i.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,i.createElement)("img",{key:a,src:a,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(n?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,c.useSelect)((e=>({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()}))),{setShowWelcomeGuide:a}=(0,c.useDispatch)("automattic/wpcom-welcome-guide");if((0,i.useEffect)((()=>{var r;e&&!t&&(0,o.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const f=[{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:u},{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:p,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:()=>{var e;(0,o.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),a(!1,{openedManually:!1})}},f.map(((e,t)=>(0,i.createElement)(m,(0,r.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===f.length-1},e)))))}},791:function(e,t,n){"use strict";var r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),o=(0,r.useCallback)((t=>{var r;null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,r.useCallback)((t=>{var r;"Tab"===t.key&&(null!==(r=e.current)&&void 0!==r&&r.contains(t.target)?n(!0):n(!1))}),[e]);return(0,r.useEffect)((()=>(document.addEventListener("focusin",i),document.addEventListener("mousedown",o),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",i),document.removeEventListener("mnousedown",o),document.removeEventListener("keyup",s)})),[i,o,s]),t}},4704:function(e,t,n){"use strict";var r=n(9307);t.Z=({onEscape:e,onArrowRight:t,onArrowLeft:n})=>{const i=(0,r.useCallback)((r=>{let i=!1;switch(r.key){case"Escape":e&&(e(),i=!0);break;case"ArrowRight":t&&(t(),i=!0);break;case"ArrowLeft":n&&(n(),i=!0)}i&&(r.preventDefault(),r.stopPropagation())}),[e,t,n]);(0,r.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},8574:function(e,t,n){"use strict";var r=n(9307),i=n(444);const 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"}));t.Z=o},6139:function(e,t,n){"use strict";var r=n(9307),i=n(444);const 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(9307),i=n(444);const 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(9307),i=n(444);const 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},5025:function(e,t,n){"use strict";var r=n(9307),i=(n(9196),n(791)),o=n(4704);t.Z=({onMinimize:e,onDismiss:t,onNextCardProgression:n,onPreviousCardProgression:s,tourContainerRef:c,isMinimized:a})=>(0,i.Z)(c)?a?(0,r.createElement)((function(){return(0,o.Z)({onEscape:t("esc-key-minimized")}),null}),null):(0,r.createElement)((function(){return(0,o.Z)({onEscape:e,onArrowRight:n,onArrowLeft:s}),null}),null):null},9483:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(9307),i=n(5609),o=n(5736),s=n(444),c=n(2819);const __=o.__;function a({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,r.createElement)("ul",{className:"components-guide__page-control","aria-label":__("Guide controls","full-site-editing")},(0,c.times)(t,(s=>(0,r.createElement)("li",{key:s,"aria-current":s===e?"step":void 0},(0,r.createElement)(i.Button,{key:s,icon:(0,r.createElement)(u,{isSelected:s===e}),"aria-label":(0,o.sprintf)(__("Page %1$d of %2$d","full-site-editing"),s+1,t),onClick:()=>n(s)})))))}const u=({isSelected:e})=>(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:e?"#32373C":"#E1E3E6"}))},2069:function(e,t,n){"use strict";var r=n(9307),i=n(6115),o=n(5609),s=n(9818),c=n(5736),a=n(8565),u=n(2779),l=n.n(u),d=n(6139),p=n(4308),m=n(9425),f=n(9483);n(7807);const __=c.__;function h({currentCardIndex:e,lastCardIndex:t,onDismiss:n,setCurrentCardIndex:i,onNextCardProgression:s,onPreviousCardProgression:c,focusedOnLaunchRef:a}){const u=__("Try it out!","full-site-editing"),l=__("Next","full-site-editing");return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(f.Z,{currentPage:e,numberOfPages:t+1,setCurrentPage:i}),(0,r.createElement)("div",null,0===e?(0,r.createElement)(o.Button,{isTertiary:!0,onClick:n("no-thanks-btn")},__("Skip","full-site-editing")):(0,r.createElement)(o.Button,{isTertiary:!0,onClick:c},__("Back","full-site-editing")),(0,r.createElement)(o.Button,{className:"welcome-tour-card__next-btn",isPrimary:!0,onClick:s,ref:a},0===e?u:l)))}function g({onMinimize:e,onDismiss:t}){const n=l()("welcome-tour-card__overlay-controls");return(0,r.createElement)("div",{className:n},(0,r.createElement)(o.Flex,null,(0,r.createElement)(o.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"welcome-tour-card__minimize-icon",icon:d.Z,iconSize:24,onClick:e}),(0,r.createElement)(o.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:a.Z,iconSize:24,onClick:t("close-btn")})))}function w({isGutenboarding:e}){let t=!1;const n=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),{setTourRating:c}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");!t&&n&&(t=!0);const a=n=>{t||(t=!0,c(n?"thumbs-up":"thumbs-down"),(0,i.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:n,is_gutenboarding:e}))};return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("p",{className:"welcome-tour__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,r.createElement)("div",null,(0,r.createElement)(o.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:l()("welcome-tour__end-icon",{active:"thumbs-up"===n}),disabled:t,icon:m.Z,onClick:()=>a(!0),iconSize:24}),(0,r.createElement)(o.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:l()("welcome-tour__end-icon",{active:"thumbs-down"===n}),disabled:t,icon:p.Z,onClick:()=>a(!1),iconSize:24})))}t.Z=function({cardContent:e,currentCardIndex:t,justMaximized:n,lastCardIndex:s,onMinimize:c,onDismiss:a,setJustMaximized:u,setCurrentCardIndex:l,onNextCardProgression:d,onPreviousCardProgression:p,isGutenboarding:m,focusedOnLaunchRef:f}){const{description:v,heading:_,imgSrc:y}=e,C=t===s;var E;return E=()=>{n?u(!1):(0,i.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:t+1,is_last_slide:C,slide_heading:_,is_gutenboarding:m})},(0,r.useEffect)(E,[]),(0,r.createElement)(o.Card,{className:"welcome-tour-card",isElevated:!0},(0,r.createElement)(g,{onDismiss:a,onMinimize:c}),(0,r.createElement)(o.CardMedia,null,(0,r.createElement)("img",{alt:__("Editor Welcome Tour","full-site-editing"),src:y})),(0,r.createElement)(o.CardBody,null,(0,r.createElement)("h2",{className:"welcome-tour-card__heading"},_),(0,r.createElement)("p",{className:"welcome-tour-card__description"},v,C?(0,r.createElement)(o.Button,{className:"welcome-tour-card__description",isTertiary:!0,onClick:()=>l(0)},__("Restart tour","full-site-editing")):null)),(0,r.createElement)(o.CardFooter,null,C?(0,r.createElement)(w,{isGutenboarding:m}):(0,r.createElement)(h,{currentCardIndex:t,lastCardIndex:s,onDismiss:a,setCurrentCardIndex:l,onNextCardProgression:d,onPreviousCardProgression:p,focusedOnLaunchRef:f})))}},1227:function(e,t,n){"use strict";var r=n(9307),i=n(7498),o=n(5609),s=n(5736);const __=s.__;t.Z=function(e){return[{heading:__("Welcome to WordPress!","full-site-editing"),description:__("Take this short, interactive 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(9307),i=n(6115),o=n(849),s=n(5609),c=n(9818),a=n(5736),u=n(5869),l=n(8565),d=n(8574),p=n(5025),m=n(2069),f=n(1227);n(7807);const __=a.__;function h(){var e;const t=(0,r.useRef)(null),n=(0,r.useRef)(null),{setShowWelcomeGuide:s}=(0,c.useDispatch)("automattic/wpcom-welcome-guide"),[a,u]=(0,r.useState)(!1),[l,d]=(0,r.useState)(0),[h,w]=(0,r.useState)(!1),v=(0,o.bU)(),_=(0,f.Z)(v),y=_.length-1,C=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,E=e=>()=>{(0,i.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:C,slide_number:l+1,action:e}),s(!1,{openedManually:!1})},b=()=>{y>l&&d(l+1)},S=()=>{l&&d(l-1)},x=()=>{u(!0),(0,i.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:C,slide_number:l+1})};return(0,r.useEffect)((()=>{setTimeout((()=>{var e;return null===(e=n.current)||void 0===e?void 0:e.focus()}))}),[]),_.forEach((e=>(new window.Image).src=e.imgSrc)),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,{onMinimize:x,onDismiss:E,onNextCardProgression:b,onPreviousCardProgression:S,tourContainerRef:t,isMinimized:a}),(0,r.createElement)("div",{className:"wpcom-editor-welcome-tour-frame",ref:t},a?(0,r.createElement)(g,{onMaximize:()=>{u(!1),w(!0),(0,i.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:C,slide_number:l+1})},onDismiss:E,currentCardIndex:l,lastCardIndex:y}):(0,r.createElement)(r.Fragment,null,(0,r.createElement)(m.Z,{cardContent:_[l],currentCardIndex:l,justMaximized:h,key:l,lastCardIndex:y,onDismiss:E,onMinimize:x,setJustMaximized:w,setCurrentCardIndex:d,onNextCardProgression:b,onPreviousCardProgression:S,isGutenboarding:C,focusedOnLaunchRef:n}))))}function g({onMaximize:e,onDismiss:t,currentCardIndex:n,lastCardIndex:i}){const o=n+1,c=i+1;return(0,r.createElement)(s.Flex,{gap:0,className:"wpcom-editor-welcome-tour__minimized"},(0,r.createElement)(s.Button,{onClick:e,"aria-label":__("Resume Tour","full-site-editing")},(0,r.createElement)(s.Flex,{gap:13},(0,r.createElement)("p",null,(0,r.createInterpolateElement)((0,a.sprintf)(__("Resume welcome tour <span>(%1$d/%2$d)</span>","full-site-editing"),o,c),{span:(0,r.createElement)("span",{className:"wpcom-editor-welcome-tour__minimized-tour-index"})})),(0,r.createElement)(u.Z,{icon:d.Z,size:24}))),(0,r.createElement)(s.Button,{onClick:t("close-btn-minimized"),"aria-label":__("Close Tour","full-site-editing")},(0,r.createElement)(u.Z,{icon:l.Z,size:24})))}t.Z=function(){const e=(0,r.useRef)(document.createElement("div")).current,{show:t,isNewPageLayoutModalOpen:n,isManuallyOpened:s}=(0,c.useSelect)((e=>({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()}))),a=(0,o.bU)();return(new window.Image).src=(0,f.Z)(a)[0].imgSrc,(0,r.useEffect)((()=>{var r;if(t||n)return e.classList.add("wpcom-editor-welcome-tour-portal-parent"),document.body.appendChild(e),(0,i.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(r=window.calypsoifyGutenberg)||void 0===r?void 0:r.isGutenboarding,is_manually_opened:s}),()=>{document.body.removeChild(e)}}),[n,s,t,e]),!t||n?null:(0,r.createElement)("div",null,(0,r.createPortal)((0,r.createElement)(h,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";let r=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){r=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return p}});var r=n(2699),i=n(4898),o=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const c=["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"];let a,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,i.ve)("//stats.wp.com/w.js?63"));const d=new r.EventEmitter;function p(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,o.includes)(c,e)){if(a){const e=a(t);t={...t,...e}}t=(0,o.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(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 u},bU:function(){return d}});var r=n(7896),i=n(9307),o=n(4333),s=n(5736),c=n(9196);const a=(0,c.createContext)(null),u=({children:e,localeSlug:t})=>(0,i.createElement)(a.Provider,{value:t},e);function l(){var e,t;return function(e=""){if(!e)return"";const t=e.toLowerCase();return(["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"].includes(t)?t.replace("_","-"):t.replace(/([-_].*)$/i,""))||"en"}(s.getLocaleData?null===(e=s.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function d(){const e=(0,c.useContext)(a),t=!!e,[n,r]=(0,c.useState)(l());return(0,c.useEffect)((()=>{if(!t)return r(l()),s.subscribe((()=>{r(l())}))}),[t]),e||n||"en"}(0,o.createHigherOrderComponent)((e=>t=>{const n=d();return(0,i.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 c},hI:function(){return a},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const r="en",i=["en","ja","es","pt","fr","pt-br"],o=["en","fr","de","es"],s=["en","fr","de","es"],c={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},a=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return f}});var r=n(7896),i=n(9307),o=n(4333),s=n(9196),c=n(849),a=n(4655);const u="http://__domain__.invalid",l=(e,t=[])=>(n,r)=>(t.includes(r)&&"en"!==r&&n.pathname.substr(0,r.length+2)!=="/"+r+"/"&&(n.host=`${a.Xb[r]||r}.${e}`),n),d=(e,t=[],n=null)=>(r,i)=>(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),p=(e=[],t=null)=>(n,r)=>("object"==typeof t&&t instanceof RegExp&&!t.test(n.pathname)||e.includes(r)&&"en"!==r&&(n.pathname=r+n.pathname),n),m={"wordpress.com/support/":p(a.hI),"wordpress.com/forums/":p(a.mL),"wordpress.com/blog/":p(a.GG,/^\/blog\/?$/),"wordpress.com/tos/":p(a.vS),"wordpress.com/wp-admin/":l("wordpress.com",a.vS),"wordpress.com/wp-login.php":l("wordpress.com",a.vS),"jetpack.com":l("jetpack.com",a._r),"en.support.wordpress.com":d("/support",a.hI),"en.blog.wordpress.com":d("/blog",a.GG,/^\/$/),"en.forums.wordpress.com":d("/forums",a.mL),"automattic.com/privacy/":p(a.iT),"automattic.com/cookies/":p(a.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),p(a.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:p(a.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:p(a.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:p(a.vS)(e,t)};function f(e,t,n=!0){let r;try{r=new URL(String(e),u)}catch(s){return e}if(r.origin===u)return e;r.protocol="https:",r.hostname="",r.pathname.endsWith(".php")||(r.pathname=(r.pathname+"/").replace(/\/+$/,"/"));const i=r.pathname.substr(0,1+r.pathname.indexOf("/",1));if("en.wordpress.com"===r.host&&(r.host="wordpress.com"),"/"+t+"/"===i)return e;const o=[r.host,r.host+i,r.host+r.pathname];for(let c=o.length-1;c>=0;c--)if(o[c]in m)return m[o[c]](r,t,n).href;return e}function h(){const e=(0,c.bU)();return(0,s.useCallback)(((t,n,r)=>f(t,n||e,r)),[e])}(0,o.createHigherOrderComponent)((e=>t=>{const 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 c},lZ:function(){return a},_W:function(){return l},Yt:function(){return d}});var r=n(8049);const i=n.n(r)()("lib/load-script/callback-handler"),o=new Map;function s(){return o}function c(e){return s().has(e)}function a(e,t){const n=s();c(e)?(i(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(i(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e,t=null){const n=s(),r=n.get(e);if(r){i(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),r.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");i(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");i(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return c},k:function(){return a}});var r=n(8049),i=n.n(r),o=n(3340);const s=i()("lib/load-script/dom-operations");function c(e){s(`Creating script element for "${e}"`);const 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 a(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return c}});var r=n(8049),i=n.n(r),o=n(3340),s=n(5606);i()("package/load-script");function c(e,t){if(!(0,o.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,o.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,o.lZ)(e,t)}},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(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(){let 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=(()=>{let e=!1;return()=>{e||(e=!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||(()=>{}),e.exports=n(2632)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,i,o,s=null;function c(...e){if(!c.enabled)return;const r=c,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return c.namespace=e,c.useColors=t.useColors(),c.color=t.selectColor(e),c.extend=r,c.destroy=t.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(c),c}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(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(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const 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;let 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((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},5275:function(e,t,n){"use strict";e.exports=n.p+"images/post-published-ca9ddfc04a7c889a72d2.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},7896:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})}},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/dist/wpcom-block-editor-nux.rtl.css CHANGED
@@ -1 +1 @@
1
- .wpcom-block-editor-draft-post-modal .components-modal__header{height:auto;padding:10px;border-bottom:0}.wpcom-block-editor-draft-post-modal .components-modal__header button{right:unset}.wpcom-block-editor-draft-post-modal .components-modal__header button svg path{transform:scale(1.4);transform-origin:center}.wpcom-block-editor-draft-post-modal .components-modal__content{padding:84px 20px 20px;margin-top:0}.wpcom-block-editor-draft-post-modal .components-modal__content:before{margin:0}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .components-modal__content{text-align:center}}@media(min-width:600px){.wpcom-block-editor-draft-post-modal .components-modal__content{padding:48px 128px}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__image-container{text-align:center}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__image-container img{width:209px;height:95px}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__title{margin:34px 0 0;font-size:2.25rem;font-weight:500;line-height:1.2}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__title{margin-top:24px}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__description{max-width:352px;margin:16px 0 0;font-size:1rem}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__description{margin:20px auto 0;font-size:1.125rem}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons{display:flex;flex-direction:column;justify-content:center;margin-top:24px}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons button{min-width:130px;height:40px;justify-content:center;border-radius:3px;font-size:.875rem}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons button+button{margin-top:12px}@media(min-width:480px){.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons{flex-direction:row;margin-top:28px}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-draft-post-modal__buttons button+button{margin-top:0;margin-right:16px}}@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;right:5vw;left:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;right:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;right:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;right:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 4px 0 0}.wpcom-editor-welcome-tour__minimized{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__minimized .components-button{height:44px}.wpcom-editor-welcome-tour__minimized .components-button .wpcom-editor-welcome-tour__minimized-tour-index{color:#949494}.wpcom-editor-welcome-tour__minimized .components-button svg{color:#50575e}.wpcom-editor-welcome-tour__minimized .components-button:hover .wpcom-editor-welcome-tour__minimized-tour-index,.wpcom-editor-welcome-tour__minimized .components-button:hover svg{color:inherit}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;right:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-right:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{height:0;padding-top:66%;position:relative;width:100%}.welcome-tour-card .components-card__media img{right:0;position:absolute;top:0;width:100%}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;right:-2px}.welcome-tour-card__overlay-controls{right:0;padding:12px;position:absolute;left:0;z-index:1}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;transition:opacity .2s;opacity:.7}.welcome-tour-card__overlay-controls .components-button:active{opacity:.9}@media(hover:hover)and (pointer:fine){.welcome-tour-card__overlay-controls .components-button{opacity:0}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:hover,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}}.welcome-tour-card__next-btn{margin-right:12px;justify-content:center;min-width:85px}
1
+ .wpcom-block-editor-nux-modal .components-modal__header{height:auto;padding:10px;border-bottom:0}.wpcom-block-editor-nux-modal .components-modal__header button{right:unset}.wpcom-block-editor-nux-modal .components-modal__header button svg path{transform:scale(1.4);transform-origin:center}.wpcom-block-editor-nux-modal .components-modal__content{padding:84px 20px 20px;margin-top:0}.wpcom-block-editor-nux-modal .components-modal__content:before{margin:0}@media(min-width:480px){.wpcom-block-editor-nux-modal .components-modal__content{text-align:center}}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__image-container{display:flex;justify-content:center}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__title{margin:34px 0 0;font-size:2.25rem;font-weight:500;line-height:1.2}@media(min-width:480px){.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__title{margin-top:24px}}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__description{max-width:352px;margin:16px 0 0;font-size:1rem}@media(min-width:480px){.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__description{margin:20px auto 0;font-size:1.125rem}}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons{display:flex;flex-direction:column;justify-content:center;margin-top:24px}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons .components-button{min-width:130px;height:40px;justify-content:center;border-radius:3px;font-size:.875rem}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons .components-button+.components-button{margin-top:12px}@media(min-width:480px){.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons{flex-direction:row;margin-top:28px}.wpcom-block-editor-nux-modal .wpcom-block-editor-nux-modal__buttons .components-button+.components-button{margin-top:0;margin-right:16px}}@media(min-width:600px){.wpcom-block-editor-draft-post-modal .components-modal__content{padding:48px 128px}}.wpcom-block-editor-draft-post-modal .wpcom-block-editor-nux-modal__image-container img{width:209px;height:95px}@media(min-width:600px){.wpcom-block-editor-post-published-modal .components-modal__content{padding:48px 90px}}.wpcom-block-editor-post-published-modal .wpcom-block-editor-nux-modal__image-container img{width:158px;height:85px}.wpcom-block-editor-post-published-modal .wpcom-block-editor-nux-modal__buttons .components-button{min-width:113px}@font-face{font-display:swap;font-family:Recoleta;font-weight:400;src:url(https://s1.wp.com/i/fonts/recoleta/400.woff2) format("woff2"),url(https://s1.wp.com/i/fonts/recoleta/400.woff) format("woff")}.wp-brand-font{font-family:"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400}[lang*=af] .wp-brand-font,[lang*=ca] .wp-brand-font,[lang*=cs] .wp-brand-font,[lang*=da] .wp-brand-font,[lang*=de] .wp-brand-font,[lang*=en] .wp-brand-font,[lang*=es] .wp-brand-font,[lang*=eu] .wp-brand-font,[lang*=fi] .wp-brand-font,[lang*=fr] .wp-brand-font,[lang*=gl] .wp-brand-font,[lang*=hr] .wp-brand-font,[lang*=hu] .wp-brand-font,[lang*=id] .wp-brand-font,[lang*=is] .wp-brand-font,[lang*=it] .wp-brand-font,[lang*=lv] .wp-brand-font,[lang*=mt] .wp-brand-font,[lang*=nb] .wp-brand-font,[lang*=nl] .wp-brand-font,[lang*=pl] .wp-brand-font,[lang*=pt] .wp-brand-font,[lang*=ro] .wp-brand-font,[lang*=ru] .wp-brand-font,[lang*=sk] .wp-brand-font,[lang*=sl] .wp-brand-font,[lang*=sq] .wp-brand-font,[lang*=sr] .wp-brand-font,[lang*=sv] .wp-brand-font,[lang*=sw] .wp-brand-font,[lang*=tr] .wp-brand-font,[lang*=uz] .wp-brand-font{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif}@keyframes onboarding-loading-pulse{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.wpcom-block-editor-nux.components-modal__frame{overflow:visible;height:65vh;top:calc(17.5vh - 35px)}@media(max-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:90vw;min-width:90vw;right:5vw;left:5vw}}@media(min-width:660px){.wpcom-block-editor-nux.components-modal__frame{width:720px;height:350px;top:calc(50% - 35px)}}.wpcom-block-editor-nux .components-modal__header{position:absolute;max-width:90%;right:5%}@media(min-width:660px){.wpcom-block-editor-nux .components-modal__header{display:none}}.wpcom-block-editor-nux .components-guide__container{margin-top:0}.wpcom-block-editor-nux .components-guide__footer{position:absolute;width:100%;height:70px;bottom:-70px;right:0;padding:20px 0;margin:0;display:flex;justify-content:center;background:#fff;border-top:1px solid #dcdcde}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__footer{border-top:none}}.wpcom-block-editor-nux .components-guide__page{position:absolute;width:100%;max-width:90vw;height:100%;justify-content:start}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page{max-width:100%}}.wpcom-block-editor-nux .components-guide__page-control{position:relative;height:0;top:100%;overflow:visible;margin:0 auto;z-index:2;display:none}.wpcom-block-editor-nux .components-guide__page-control:before{display:inline-block;content:"";height:70px;vertical-align:middle}.wpcom-block-editor-nux .components-guide__page-control li{vertical-align:middle;margin-bottom:0}@media(min-width:660px){.wpcom-block-editor-nux .components-guide__page-control{display:block}}.wpcom-block-editor-nux__page{display:flex;flex-direction:column-reverse;justify-content:flex-end;background:#fff;width:100%;height:90%;max-width:90vw}@media(min-width:660px){.wpcom-block-editor-nux__page{flex-direction:row;justify-content:flex-start;position:absolute;max-width:100%;min-height:350px;bottom:0}}@media(min-width:660px){.wpcom-block-editor-nux__text,.wpcom-block-editor-nux__visual{flex:1 0 50%;min-width:290px}}.wpcom-block-editor-nux__text{padding:0 25px 25px;height:60%}@media(min-width:660px){.wpcom-block-editor-nux__text{height:auto;padding:40px 50px}}.wpcom-block-editor-nux__visual{height:40%;background:#1381d8;text-align:center}@media(min-width:660px){.wpcom-block-editor-nux__visual{height:auto}}.wpcom-block-editor-nux__heading{font-family:Recoleta,"Noto Serif",Georgia,Times New Roman,Times,serif;font-weight:400;letter-spacing:-.4px;color:#1d2327;font-size:32px;line-height:1.19}@media(min-width:660px){.wpcom-block-editor-nux__heading{font-size:42px}}body.locale-de .wpcom-block-editor-nux__heading{font-size:24px}@media(min-width:660px){body.locale-de .wpcom-block-editor-nux__heading{font-size:28px}}.wpcom-block-editor-nux__description{font-size:15px;line-height:22px;color:#50575e}@media(min-width:660px){.wpcom-block-editor-nux__description{font-size:17px;line-height:26px}}.wpcom-block-editor-nux__image{max-width:100%;height:auto;flex:1;align-self:center;max-height:100%}.wpcom-block-editor-nux__image.align-bottom{align-self:flex-end}@media(min-width:660px){.wpcom-block-editor-nux__image{max-height:none}}.wpcom-editor-welcome-tour-frame{background-color:#fff;border-radius:2px;bottom:44px;display:inline;right:16px;position:fixed;z-index:9999;cursor:default}.welcome-tour-card__heading{font-size:1.125rem;margin:.5rem 0}.welcome-tour-card__description{font-size:.875rem;line-height:1.5rem;margin:0}.welcome-tour-card__description .components-button{height:auto;line-height:1;text-decoration:underline;padding:0 4px 0 0}.wpcom-editor-welcome-tour__minimized{border-radius:2px;box-shadow:0 2px 6px rgba(60,66,87,.08),0 0 0 1px rgba(60,66,87,.16),0 1px 1px rgba(0,0,0,.08);background-color:#fff;color:#000}.wpcom-editor-welcome-tour__minimized .components-button{height:44px}.wpcom-editor-welcome-tour__minimized .components-button .wpcom-editor-welcome-tour__minimized-tour-index{color:#949494}.wpcom-editor-welcome-tour__minimized .components-button svg{color:#50575e}.wpcom-editor-welcome-tour__minimized .components-button:hover .wpcom-editor-welcome-tour__minimized-tour-index,.wpcom-editor-welcome-tour__minimized .components-button:hover svg{color:inherit}.wpcom-editor-welcome-tour-card-frame{position:relative}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control{bottom:0;right:16px;margin:0;position:absolute}.wpcom-editor-welcome-tour-card-frame .components-guide__page-control li{margin-bottom:0}.welcome-tour-card{width:400px;max-width:92vw}.welcome-tour-card.welcome-tour-card.is-elevated{box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 4px 0 rgba(0,0,0,.1)}.welcome-tour-card.components-card{border:none;border-radius:4px}.welcome-tour-card .components-card__body{min-height:114px}.welcome-tour-card .components-card__body,.welcome-tour-card .components-card__footer{border-top:none;padding:16px!important}.welcome-tour-card .components-card__footer .welcome-tour__end-text{color:#949494;font-size:.875rem;font-style:italic}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon{background-color:#f6f7f7;border-radius:50%;color:#949494;margin-right:8px}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon path{fill:#949494}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active{background-color:#000;opacity:1}.welcome-tour-card .components-card__footer .welcome-tour__end-icon.components-button.has-icon.active path{fill:#fff}.welcome-tour-card .components-card__media{height:0;padding-top:66%;position:relative;width:100%}.welcome-tour-card .components-card__media img{right:0;position:absolute;top:0;width:100%}.welcome-tour-card .components-guide__page-control{margin:0}.welcome-tour-card .components-guide__page-control .components-button{min-width:auto}.welcome-tour-card .components-guide__page-control .components-button.has-icon{padding:3px}.welcome-tour-card .components-guide__page-control li{margin-bottom:0}.welcome-tour-card__minimize-icon svg{position:relative;right:-2px}.welcome-tour-card__overlay-controls{right:0;padding:12px;position:absolute;left:0;z-index:1}.welcome-tour-card__overlay-controls .components-button{width:32px;min-width:32px;height:32px;background:#32373c;transition:opacity .2s;opacity:.7}.welcome-tour-card__overlay-controls .components-button:active{opacity:.9}@media(hover:hover)and (pointer:fine){.welcome-tour-card__overlay-controls .components-button{opacity:0}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button{opacity:.7}.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:focus-within .welcome-tour-card__overlay-controls .components-button:hover,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:focus,.wpcom-editor-welcome-tour-frame:hover .welcome-tour-card__overlay-controls .components-button:hover{opacity:.9}}.welcome-tour-card__next-btn{margin-right:12px;justify-content:center;min-width:85px}
wpcom-block-editor-nux/src/block-editor-nux.js CHANGED
@@ -10,64 +10,72 @@ import { useEffect } from '@wordpress/element';
10
  import { registerPlugin } from '@wordpress/plugins';
11
  import { getQueryArg } from '@wordpress/url';
12
  import DraftPostModal from './draft-post-modal';
 
13
  import { DEFAULT_VARIANT, BLANK_CANVAS_VARIANT } from './store';
14
  import WpcomNux from './welcome-modal/wpcom-nux';
15
  import LaunchWpcomWelcomeTour from './welcome-tour/tour-launch';
16
 
17
- registerPlugin( 'wpcom-block-editor-nux', {
18
- render: function WpcomBlockEditorNux() {
19
- const { show, isLoaded, variant, isManuallyOpened, isNewPageLayoutModalOpen } = useSelect(
20
- ( select ) => {
21
- const welcomeGuideStoreSelect = select( 'automattic/wpcom-welcome-guide' );
22
- const starterPageLayoutsStoreSelect = select( 'automattic/starter-page-layouts' );
23
- return {
24
- show: welcomeGuideStoreSelect.isWelcomeGuideShown(),
25
- isLoaded: welcomeGuideStoreSelect.isWelcomeGuideStatusLoaded(),
26
- variant: welcomeGuideStoreSelect.getWelcomeGuideVariant(),
27
- isManuallyOpened: welcomeGuideStoreSelect.isWelcomeGuideManuallyOpened(),
28
- isNewPageLayoutModalOpen: starterPageLayoutsStoreSelect?.isOpen(), // Handle the case where SPT is not initalized.
29
- };
30
- },
31
- []
32
- );
33
 
34
- const setOpenState = useDispatch( 'automattic/starter-page-layouts' )?.setOpenState;
35
 
36
- const { fetchWelcomeGuideStatus } = useDispatch( 'automattic/wpcom-welcome-guide' );
37
 
38
- // On mount check if the WPCOM welcome guide status exists in state (from local storage), otherwise fetch it from the API.
39
- useEffect( () => {
40
- if ( ! isLoaded ) {
41
- fetchWelcomeGuideStatus();
42
- }
43
- }, [ fetchWelcomeGuideStatus, isLoaded ] );
44
-
45
- if ( ! show || isNewPageLayoutModalOpen ) {
46
- return null;
47
  }
 
48
 
49
- // Open patterns panel before Welcome Tour if necessary (e.g. when using Blank Canvas theme)
50
- // Do this only when Welcome Tour is not manually opened.
51
- // NOTE: at the moment, 'starter-page-templates' assets are not loaded on /site-editor/ page so 'setOpenState' may be undefined
52
- if ( variant === BLANK_CANVAS_VARIANT && ! isManuallyOpened && setOpenState ) {
53
- setOpenState( 'OPEN_FOR_BLANK_CANVAS' );
54
- return null;
55
- }
56
 
57
- if ( variant === DEFAULT_VARIANT ) {
58
- const showDraftPostModal = getQueryArg( window.location.href, 'showDraftPostModal' );
59
- return (
60
- <LocaleProvider localeSlug={ window.wpcomBlockEditorNuxLocale ?? i18nDefaultLocaleSlug }>
61
- { showDraftPostModal ? <DraftPostModal /> : <LaunchWpcomWelcomeTour /> }
62
- </LocaleProvider>
63
- );
64
- }
65
 
66
- // This case is redundant now and it will be cleaned up in a follow-up PR
67
- if ( variant === 'modal' && Guide && GuidePage ) {
68
- return <WpcomNux />;
69
- }
 
 
 
 
70
 
71
- return null;
72
- },
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  } );
10
  import { registerPlugin } from '@wordpress/plugins';
11
  import { getQueryArg } from '@wordpress/url';
12
  import DraftPostModal from './draft-post-modal';
13
+ import PostPublishedModal from './post-published-modal';
14
  import { DEFAULT_VARIANT, BLANK_CANVAS_VARIANT } from './store';
15
  import WpcomNux from './welcome-modal/wpcom-nux';
16
  import LaunchWpcomWelcomeTour from './welcome-tour/tour-launch';
17
 
18
+ function WelcomeTour() {
19
+ const { show, isLoaded, variant, isManuallyOpened, isNewPageLayoutModalOpen } = useSelect(
20
+ ( select ) => {
21
+ const welcomeGuideStoreSelect = select( 'automattic/wpcom-welcome-guide' );
22
+ const starterPageLayoutsStoreSelect = select( 'automattic/starter-page-layouts' );
23
+ return {
24
+ show: welcomeGuideStoreSelect.isWelcomeGuideShown(),
25
+ isLoaded: welcomeGuideStoreSelect.isWelcomeGuideStatusLoaded(),
26
+ variant: welcomeGuideStoreSelect.getWelcomeGuideVariant(),
27
+ isManuallyOpened: welcomeGuideStoreSelect.isWelcomeGuideManuallyOpened(),
28
+ isNewPageLayoutModalOpen: starterPageLayoutsStoreSelect?.isOpen(), // Handle the case where SPT is not initalized.
29
+ };
30
+ },
31
+ []
32
+ );
 
33
 
34
+ const setOpenState = useDispatch( 'automattic/starter-page-layouts' )?.setOpenState;
35
 
36
+ const { fetchWelcomeGuideStatus } = useDispatch( 'automattic/wpcom-welcome-guide' );
37
 
38
+ // On mount check if the WPCOM welcome guide status exists in state (from local storage), otherwise fetch it from the API.
39
+ useEffect( () => {
40
+ if ( ! isLoaded ) {
41
+ fetchWelcomeGuideStatus();
 
 
 
 
 
42
  }
43
+ }, [ fetchWelcomeGuideStatus, isLoaded ] );
44
 
45
+ if ( ! show || isNewPageLayoutModalOpen ) {
46
+ return null;
47
+ }
 
 
 
 
48
 
49
+ // Open patterns panel before Welcome Tour if necessary (e.g. when using Blank Canvas theme)
50
+ // Do this only when Welcome Tour is not manually opened.
51
+ // NOTE: at the moment, 'starter-page-templates' assets are not loaded on /site-editor/ page so 'setOpenState' may be undefined
52
+ if ( variant === BLANK_CANVAS_VARIANT && ! isManuallyOpened && setOpenState ) {
53
+ setOpenState( 'OPEN_FOR_BLANK_CANVAS' );
54
+ return null;
55
+ }
 
56
 
57
+ if ( variant === DEFAULT_VARIANT ) {
58
+ const showDraftPostModal = getQueryArg( window.location.href, 'showDraftPostModal' );
59
+ return (
60
+ <LocaleProvider localeSlug={ window.wpcomBlockEditorNuxLocale ?? i18nDefaultLocaleSlug }>
61
+ { showDraftPostModal ? <DraftPostModal /> : <LaunchWpcomWelcomeTour /> }
62
+ </LocaleProvider>
63
+ );
64
+ }
65
 
66
+ // This case is redundant now and it will be cleaned up in a follow-up PR
67
+ if ( variant === 'modal' && Guide && GuidePage ) {
68
+ return <WpcomNux />;
69
+ }
70
+
71
+ return null;
72
+ }
73
+
74
+ registerPlugin( 'wpcom-block-editor-nux', {
75
+ render: () => (
76
+ <>
77
+ <WelcomeTour />
78
+ <PostPublishedModal />
79
+ </>
80
+ ),
81
  } );
wpcom-block-editor-nux/src/draft-post-modal/index.js CHANGED
@@ -1,7 +1,8 @@
1
- import { Modal, Button } from '@wordpress/components';
2
  import { useState } from '@wordpress/element';
3
  import { doAction } from '@wordpress/hooks';
4
  import { __ } from '@wordpress/i18n';
 
5
  import draftPostImage from './images/draft-post.svg';
6
  import './style.scss';
7
 
@@ -10,37 +11,28 @@ const DraftPostModal = () => {
10
  const closeModal = () => setIsOpen( false );
11
  const closeEditor = () => doAction( 'a8c.wpcom-block-editor.closeEditor' );
12
 
13
- if ( ! isOpen ) {
14
- return null;
15
- }
16
-
17
  return (
18
- <Modal
19
- open={ isOpen }
20
  className="wpcom-block-editor-draft-post-modal"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  onRequestClose={ closeModal }
22
- >
23
- <div className="wpcom-block-editor-draft-post-modal__image-container">
24
- <img src={ draftPostImage } alt={ __( 'Write post', 'full-site-editing' ) } />
25
- </div>
26
- <h1 className="wpcom-block-editor-draft-post-modal__title">
27
- { __( 'Write your first post', 'full-site-editing' ) }
28
- </h1>
29
- <p className="wpcom-block-editor-draft-post-modal__description">
30
- { __(
31
- 'It’s time to flex those writing muscles and start drafting your first post!',
32
- 'full-site-editing'
33
- ) }
34
- </p>
35
- <div className="wpcom-block-editor-draft-post-modal__buttons" justify="center">
36
- <Button variant="primary" onClick={ closeModal }>
37
- { __( 'Start writing', 'full-site-editing' ) }
38
- </Button>
39
- <Button variant="secondary" onClick={ closeEditor }>
40
- { __( "I'm not ready", 'full-site-editing' ) }
41
- </Button>
42
- </div>
43
- </Modal>
44
  );
45
  };
46
 
1
+ import { Button } from '@wordpress/components';
2
  import { useState } from '@wordpress/element';
3
  import { doAction } from '@wordpress/hooks';
4
  import { __ } from '@wordpress/i18n';
5
+ import NuxModal from '../nux-modal';
6
  import draftPostImage from './images/draft-post.svg';
7
  import './style.scss';
8
 
11
  const closeModal = () => setIsOpen( false );
12
  const closeEditor = () => doAction( 'a8c.wpcom-block-editor.closeEditor' );
13
 
 
 
 
 
14
  return (
15
+ <NuxModal
16
+ isOpen={ isOpen }
17
  className="wpcom-block-editor-draft-post-modal"
18
+ title={ __( 'Write your first post', 'full-site-editing' ) }
19
+ description={ __(
20
+ 'It’s time to flex those writing muscles and start drafting your first post!',
21
+ 'full-site-editing'
22
+ ) }
23
+ imageSrc={ draftPostImage }
24
+ actionButtons={
25
+ <>
26
+ <Button isPrimary onClick={ closeModal }>
27
+ { __( 'Start writing', 'full-site-editing' ) }
28
+ </Button>
29
+ <Button isSecondary onClick={ closeEditor }>
30
+ { __( "I'm not ready", 'full-site-editing' ) }
31
+ </Button>
32
+ </>
33
+ }
34
  onRequestClose={ closeModal }
35
+ />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  );
37
  };
38
 
wpcom-block-editor-nux/src/draft-post-modal/style.scss CHANGED
@@ -1,97 +1,17 @@
1
- @import '@automattic/typography/styles/variables';
2
  @import '@wordpress/base-styles/breakpoints';
3
  @import '@wordpress/base-styles/mixins';
4
 
5
  .wpcom-block-editor-draft-post-modal {
6
- .components-modal__header {
7
- height: auto;
8
- padding: 10px;
9
- border-bottom: 0;
10
-
11
- button {
12
- left: unset;
13
-
14
- svg path {
15
- transform: scale( 1.4 );
16
- transform-origin: center;
17
- }
18
- }
19
- }
20
-
21
  .components-modal__content {
22
- padding: 84px 20px 20px;
23
- margin-top: 0;
24
-
25
- &::before {
26
- margin: 0;
27
- }
28
-
29
- @include break-mobile {
30
- text-align: center;
31
- }
32
-
33
  @include break-small {
34
  padding: 48px 128px;
35
  }
36
  }
37
 
38
- .wpcom-block-editor-draft-post-modal__image-container {
39
- text-align: center;
40
-
41
  img {
42
  width: 209px;
43
  height: 95px;
44
  }
45
  }
46
-
47
- .wpcom-block-editor-draft-post-modal__title {
48
- margin: 34px 0 0;
49
- font-size: $font-headline-small;
50
- font-weight: 500; // stylelint-disable-line scales/font-weights
51
- line-height: 1.2;
52
-
53
- @include break-mobile {
54
- margin-top: 24px;
55
- }
56
- }
57
-
58
- .wpcom-block-editor-draft-post-modal__description {
59
- max-width: 352px;
60
- margin: 16px 0 0;
61
- font-size: $font-body;
62
-
63
- @include break-mobile {
64
- margin: 20px auto 0;
65
- font-size: $font-body-large;
66
- }
67
- }
68
-
69
- .wpcom-block-editor-draft-post-modal__buttons {
70
- display: flex;
71
- flex-direction: column;
72
- justify-content: center;
73
- margin-top: 24px;
74
-
75
- button {
76
- min-width: 130px;
77
- height: 40px;
78
- justify-content: center;
79
- border-radius: 3px; // stylelint-disable-line scales/radii
80
- font-size: $font-body-small;
81
- }
82
-
83
- button + button {
84
- margin-top: 12px;
85
- }
86
-
87
- @include break-mobile {
88
- flex-direction: row;
89
- margin-top: 28px;
90
-
91
- button + button {
92
- margin-top: 0;
93
- margin-left: 16px;
94
- }
95
- }
96
- }
97
  }
 
1
  @import '@wordpress/base-styles/breakpoints';
2
  @import '@wordpress/base-styles/mixins';
3
 
4
  .wpcom-block-editor-draft-post-modal {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  .components-modal__content {
 
 
 
 
 
 
 
 
 
 
 
6
  @include break-small {
7
  padding: 48px 128px;
8
  }
9
  }
10
 
11
+ .wpcom-block-editor-nux-modal__image-container {
 
 
12
  img {
13
  width: 209px;
14
  height: 95px;
15
  }
16
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  }
wpcom-block-editor-nux/src/nux-modal/index.tsx ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Modal } from '@wordpress/components';
2
+ import classnames from 'classnames';
3
+ import React from 'react';
4
+ import './style.scss';
5
+
6
+ interface Props {
7
+ isOpen: boolean;
8
+ className?: string;
9
+ title: string;
10
+ description: string;
11
+ imageSrc: string;
12
+ actionButtons: React.ReactElement;
13
+ onRequestClose: () => void;
14
+ }
15
+
16
+ const NuxModal: React.FC< Props > = ( {
17
+ isOpen,
18
+ className,
19
+ title,
20
+ description,
21
+ imageSrc,
22
+ actionButtons,
23
+ onRequestClose,
24
+ } ) => {
25
+ if ( ! isOpen ) {
26
+ return null;
27
+ }
28
+
29
+ return (
30
+ <Modal
31
+ className={ classnames( 'wpcom-block-editor-nux-modal', className ) }
32
+ open={ isOpen }
33
+ title=""
34
+ onRequestClose={ onRequestClose }
35
+ >
36
+ <div className="wpcom-block-editor-nux-modal__image-container">
37
+ <img src={ imageSrc } alt={ title } />
38
+ </div>
39
+ <h1 className="wpcom-block-editor-nux-modal__title">{ title }</h1>
40
+ <p className="wpcom-block-editor-nux-modal__description">{ description }</p>
41
+ <div className="wpcom-block-editor-nux-modal__buttons">{ actionButtons }</div>
42
+ </Modal>
43
+ );
44
+ };
45
+
46
+ export default NuxModal;
wpcom-block-editor-nux/src/nux-modal/style.scss ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import '@automattic/typography/styles/variables';
2
+ @import '@wordpress/base-styles/breakpoints';
3
+ @import '@wordpress/base-styles/mixins';
4
+
5
+ .wpcom-block-editor-nux-modal {
6
+ .components-modal__header {
7
+ height: auto;
8
+ padding: 10px;
9
+ border-bottom: 0;
10
+
11
+ button {
12
+ left: unset;
13
+
14
+ svg path {
15
+ transform: scale( 1.4 );
16
+ transform-origin: center;
17
+ }
18
+ }
19
+ }
20
+
21
+ .components-modal__content {
22
+ padding: 84px 20px 20px;
23
+ margin-top: 0;
24
+
25
+ &::before {
26
+ margin: 0;
27
+ }
28
+
29
+ @include break-mobile {
30
+ text-align: center;
31
+ }
32
+ }
33
+
34
+ .wpcom-block-editor-nux-modal__image-container {
35
+ display: flex;
36
+ justify-content: center;
37
+ }
38
+
39
+ .wpcom-block-editor-nux-modal__title {
40
+ margin: 34px 0 0;
41
+ font-size: $font-headline-small;
42
+ font-weight: 500; // stylelint-disable-line scales/font-weights
43
+ line-height: 1.2;
44
+
45
+ @include break-mobile {
46
+ margin-top: 24px;
47
+ }
48
+ }
49
+
50
+ .wpcom-block-editor-nux-modal__description {
51
+ max-width: 352px;
52
+ margin: 16px 0 0;
53
+ font-size: $font-body;
54
+
55
+ @include break-mobile {
56
+ margin: 20px auto 0;
57
+ font-size: $font-body-large;
58
+ }
59
+ }
60
+
61
+ .wpcom-block-editor-nux-modal__buttons {
62
+ display: flex;
63
+ flex-direction: column;
64
+ justify-content: center;
65
+ margin-top: 24px;
66
+
67
+ .components-button {
68
+ min-width: 130px;
69
+ height: 40px;
70
+ justify-content: center;
71
+ border-radius: 3px; // stylelint-disable-line scales/radii
72
+ font-size: $font-body-small;
73
+ }
74
+
75
+ .components-button + .components-button {
76
+ margin-top: 12px;
77
+ }
78
+
79
+ @include break-mobile {
80
+ flex-direction: row;
81
+ margin-top: 28px;
82
+
83
+ .components-button + .components-button {
84
+ margin-top: 0;
85
+ margin-left: 16px;
86
+ }
87
+ }
88
+ }
89
+ }
wpcom-block-editor-nux/src/post-published-modal/images/post-published.svg ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg width="158" height="85" viewBox="0 0 158 85" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_3017:1607)">
3
+ <path d="M63.6725 29.3457L74.1184 30.5743L77.4775 50.1798L98.2549 38.0326L101.616 38.3652C101.616 38.3652 131.643 9.19287 130.358 9.58493L63.6725 29.3457Z" fill="#DCDCDE"/>
4
+ <path d="M75.3439 34.0189L112.944 40.743L151.408 0.596808L52.1648 29.8684L68.8082 32.8435" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M98.4081 38.1433L77.6307 50.2905L75.3439 34.0189" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M68.8086 32.8435L129.876 9.97348L75.3442 34.0189" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M77.6309 50.2905L68.8085 32.8435" stroke="#02395C" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
8
+ </g>
9
+ <path d="M8.60233 83.8353C8.2777 83.8366 7.91589 83.6851 7.59206 83.4123C7.26823 83.1395 7.00728 82.7663 6.86342 82.3703C6.67235 81.7793 6.64899 81.2051 6.79706 80.7393C6.95473 80.1688 7.15933 79.6318 7.40895 79.1333C7.66964 78.5283 8.05119 77.6527 8.38979 77.1139C8.79897 76.462 11.2903 72.9316 11.696 72.4793C12.2982 71.8076 14.042 70.2942 14.3832 70.0305C14.6284 69.856 14.8737 69.6816 15.143 69.4899C13.9404 68.063 13.9549 66.7815 14.0964 65.8123C14.2238 64.9413 14.7231 64.3846 15.1572 63.7401C15.9354 62.6064 16.8159 61.5789 17.7914 60.6662C20.7628 57.7634 24.3466 55.7215 27.6543 53.2718C28.3632 52.7423 29.1275 52.2866 29.8781 51.8156C31.6361 50.7103 33.3983 49.6161 35.1646 48.5329C35.677 48.2188 40.0619 45.9342 40.587 45.7284C41.2303 45.4763 43.8847 44.3935 44.5404 44.1745C45.3818 43.8823 47.9752 43.103 48.4046 42.9947C48.834 42.8864 49.3232 42.811 49.7755 42.7074C50.1507 42.6251 51.7752 42.3128 52.2074 42.236C52.4964 42.1899 52.7753 42.1257 53.0643 42.0796C53.8383 41.9484 54.6283 41.8396 55.4145 41.7334C55.4995 41.7191 55.7005 41.7145 55.8901 41.7097C56.0411 41.7017 56.2096 41.7543 56.3707 41.8596C56.5318 41.9649 56.6769 42.1173 56.7845 42.2943C57.2425 43.0678 56.3858 43.4171 56.2733 43.4636C55.9002 43.5635 55.5102 43.6278 55.1064 43.6561C54.8512 43.6907 54.5962 43.6666 54.3604 43.7127C53.4661 43.8873 52.5802 44.0854 51.6767 44.2667C50.9956 44.3988 45.5939 45.9425 45.0441 46.149C44.4943 46.3555 39.0329 48.7473 38.1721 49.1499C38.1015 49.2001 38.0189 49.2295 37.9463 49.2769C35.5867 50.7585 33.1694 52.1551 30.8575 53.7076C27.3223 56.08 23.821 58.5093 20.3537 60.9956C17.2976 63.6691 15.8969 65.9243 15.6165 66.7574C15.4281 67.1179 15.6063 68.4932 16.1522 68.407L16.6296 68.0673C18.3629 66.8342 20.0365 65.5093 21.8591 64.4056C22.8376 63.8144 24.0677 63.577 25.5773 64.3618C26.578 64.8834 27.2409 65.8467 27.682 66.8168C28.1899 67.9239 28.0151 68.8581 27.3333 69.4061C25.384 70.9649 24.276 71.1616 23.6305 71.2809C22.9294 71.4391 22.1943 71.5214 21.4328 71.5269C20.5627 71.4969 19.6709 71.3909 18.7646 71.2099C18.234 71.1091 17.6674 70.824 17.1217 70.6626C16.9505 70.6304 16.7961 70.6636 16.6824 70.757C16.0552 71.2283 15.4241 71.6941 14.8306 72.2129C14.3905 72.5973 13.986 73.0277 13.5796 73.4553C13.2595 73.7921 12.7453 74.3593 12.439 74.7115C12.1328 75.0636 11.8188 75.4129 11.5393 75.7712C11.1048 76.3404 10.6704 76.9096 10.2748 77.5099C9.83414 78.1884 9.39944 78.8753 9.04067 79.6256C8.74827 80.2974 8.49526 81.0012 8.28266 81.7341C8.26703 81.783 8.26227 81.8392 8.26867 81.8993C8.28385 82.1462 8.38806 82.4142 8.55878 82.6453C8.6902 82.794 8.79275 82.9691 8.85381 83.1493C8.91489 83.3295 8.93182 83.5068 8.90254 83.6594C8.87944 83.722 8.84002 83.7707 8.7877 83.8013C8.73538 83.8319 8.67175 83.8436 8.60233 83.8353ZM18.3478 69.3498C18.5906 69.4295 18.832 69.4944 19.071 69.5443C19.8468 69.6554 22.5398 69.6611 23.0608 69.5086C23.7855 69.307 24.4617 69.0113 25.0799 68.626C25.4046 68.4475 25.7058 68.2332 25.9809 67.985C26.1578 67.7983 26.231 67.5056 26.1846 67.1698C26.1383 66.8339 25.9761 66.4819 25.7331 66.1893C25.4361 65.8426 25.1621 65.7564 24.6407 65.7078C23.9559 65.6694 23.3296 65.8087 22.8046 66.1161C21.3766 67.0272 18.4972 69.2058 18.3577 69.3637L18.3478 69.3498Z" fill="#02395C"/>
10
+ <defs>
11
+ <clipPath id="clip0_3017:1607">
12
+ <rect width="145" height="40" fill="white" transform="translate(8.26501 20.1801) rotate(-8)"/>
13
+ </clipPath>
14
+ </defs>
15
+ </svg>
wpcom-block-editor-nux/src/post-published-modal/index.tsx ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { Button } from '@wordpress/components';
2
+ import { useDispatch, useSelect } from '@wordpress/data';
3
+ import { useEffect, useRef, useState } from '@wordpress/element';
4
+ import { __ } from '@wordpress/i18n';
5
+ import NuxModal from '../nux-modal';
6
+ import postPublishedImage from './images/post-published.svg';
7
+ import './style.scss';
8
+
9
+ /**
10
+ * Show the first post publish modal
11
+ */
12
+ const PostPublishedModal: React.FC = () => {
13
+ const { link } = useSelect( ( select ) => select( 'core/editor' ).getCurrentPost() );
14
+ const isCurrentPostPublished = useSelect( ( select ) =>
15
+ select( 'core/editor' ).isCurrentPostPublished()
16
+ );
17
+ const previousIsCurrentPostPublished = useRef( isCurrentPostPublished );
18
+ const siteHasNeverPublishedPost = useSelect( ( select ) =>
19
+ select( 'automattic/wpcom-welcome-guide' ).getSiteHasNeverPublishedPost()
20
+ );
21
+ const [ isOpen, setIsOpen ] = useState( false );
22
+ const closeModal = () => setIsOpen( false );
23
+ const { fetchSiteHasNeverPublishedPost, setSiteHasNeverPublishedPost } = useDispatch(
24
+ 'automattic/wpcom-welcome-guide'
25
+ );
26
+
27
+ useEffect( () => {
28
+ fetchSiteHasNeverPublishedPost();
29
+ }, [ fetchSiteHasNeverPublishedPost ] );
30
+
31
+ useEffect( () => {
32
+ // If the user never published any post before and the current post status changed to publish,
33
+ // open the post publish modal
34
+ if (
35
+ siteHasNeverPublishedPost &&
36
+ ! previousIsCurrentPostPublished.current &&
37
+ isCurrentPostPublished
38
+ ) {
39
+ previousIsCurrentPostPublished.current = isCurrentPostPublished;
40
+ setSiteHasNeverPublishedPost( false );
41
+
42
+ // When the post published panel shows, it is focused automatically.
43
+ // Thus, we need to delay open the modal so that the modal would not be close immediately
44
+ // because the outside of modal is focused
45
+ window.setTimeout( () => {
46
+ setIsOpen( true );
47
+ } );
48
+ }
49
+ }, [ siteHasNeverPublishedPost, isCurrentPostPublished, setSiteHasNeverPublishedPost ] );
50
+
51
+ return (
52
+ <NuxModal
53
+ isOpen={ isOpen }
54
+ className="wpcom-block-editor-post-published-modal"
55
+ title={ __( 'Your first post is published!', 'full-site-editing' ) }
56
+ description={ __(
57
+ 'Congratulations! You did it. View your post to see how it will look on your site.',
58
+ 'full-site-editing'
59
+ ) }
60
+ imageSrc={ postPublishedImage }
61
+ actionButtons={
62
+ <Button isPrimary href={ link }>
63
+ { __( 'View Post', 'full-site-editing' ) }
64
+ </Button>
65
+ }
66
+ onRequestClose={ closeModal }
67
+ />
68
+ );
69
+ };
70
+
71
+ export default PostPublishedModal;
wpcom-block-editor-nux/src/post-published-modal/style.scss ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import '@wordpress/base-styles/breakpoints';
2
+ @import '@wordpress/base-styles/mixins';
3
+
4
+ .wpcom-block-editor-post-published-modal {
5
+ .components-modal__content {
6
+ @include break-small {
7
+ padding: 48px 90px;
8
+ }
9
+ }
10
+
11
+ .wpcom-block-editor-nux-modal__image-container {
12
+ img {
13
+ width: 158px;
14
+ height: 85px;
15
+ }
16
+ }
17
+
18
+ .wpcom-block-editor-nux-modal__buttons {
19
+ .components-button {
20
+ min-width: 113px;
21
+ }
22
+ }
23
+ }
wpcom-block-editor-nux/src/store.js CHANGED
@@ -61,11 +61,24 @@ const welcomeGuideVariantReducer = ( state = DEFAULT_VARIANT, action ) => {
61
  }
62
  };
63
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  const reducer = combineReducers( {
65
  welcomeGuideManuallyOpened: welcomeGuideManuallyOpenedReducer,
66
  showWelcomeGuide: showWelcomeGuideReducer,
67
  tourRating: tourRatingReducer,
68
  welcomeGuideVariant: welcomeGuideVariantReducer,
 
69
  } );
70
 
71
  const actions = {
@@ -77,6 +90,14 @@ const actions = {
77
  response,
78
  };
79
  },
 
 
 
 
 
 
 
 
80
  setShowWelcomeGuide: ( show, { openedManually } = {} ) => {
81
  apiFetch( {
82
  path: '/wpcom/v2/block-editor/nux',
@@ -96,6 +117,9 @@ const actions = {
96
  setUsedPageOrPatternsModal: () => {
97
  return { type: 'WPCOM_HAS_USED_PATTERNS_MODAL' };
98
  },
 
 
 
99
  // The `resetStore` action is only used for testing to reset the
100
  // store inbetween tests.
101
  resetStore: () => ( {
@@ -111,6 +135,7 @@ const selectors = {
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() {
61
  }
62
  };
63
 
64
+ const siteHasNeverPublishedPostReducer = ( state = false, action ) => {
65
+ switch ( action.type ) {
66
+ case 'WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_FETCH_SUCCESS':
67
+ case 'WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_SET':
68
+ return action.value;
69
+ case 'WPCOM_WELCOME_GUIDE_RESET_STORE':
70
+ return false;
71
+ default:
72
+ return state;
73
+ }
74
+ };
75
+
76
  const reducer = combineReducers( {
77
  welcomeGuideManuallyOpened: welcomeGuideManuallyOpenedReducer,
78
  showWelcomeGuide: showWelcomeGuideReducer,
79
  tourRating: tourRatingReducer,
80
  welcomeGuideVariant: welcomeGuideVariantReducer,
81
+ siteHasNeverPublishedPost: siteHasNeverPublishedPostReducer,
82
  } );
83
 
84
  const actions = {
90
  response,
91
  };
92
  },
93
+ *fetchSiteHasNeverPublishedPost() {
94
+ const response = yield apiFetchControls( { path: '/wpcom/v2/site-has-never-published-post' } );
95
+
96
+ return {
97
+ type: 'WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_FETCH_SUCCESS',
98
+ value: !! response,
99
+ };
100
+ },
101
  setShowWelcomeGuide: ( show, { openedManually } = {} ) => {
102
  apiFetch( {
103
  path: '/wpcom/v2/block-editor/nux',
117
  setUsedPageOrPatternsModal: () => {
118
  return { type: 'WPCOM_HAS_USED_PATTERNS_MODAL' };
119
  },
120
+ setSiteHasNeverPublishedPost: ( value ) => {
121
+ return { type: 'WPCOM_SITE_HAS_NEVER_PUBLISHED_POST_SET', value };
122
+ },
123
  // The `resetStore` action is only used for testing to reset the
124
  // store inbetween tests.
125
  resetStore: () => ( {
135
  // the 'modal' variant previously used for mobile has been removed but its slug may still be persisted in local storage
136
  getWelcomeGuideVariant: ( state ) =>
137
  state.welcomeGuideVariant === 'modal' ? DEFAULT_VARIANT : state.welcomeGuideVariant,
138
+ getSiteHasNeverPublishedPost: ( state ) => state.siteHasNeverPublishedPost,
139
  };
140
 
141
  export function register() {