From 3eed2012a01f7f12aaa29b4430c0f32ac8d8b460 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Tue, 7 Nov 2023 16:50:26 +0530 Subject: [PATCH] Bump Onboarding to 1.11.8 --- bootstrap.php | 2 +- build/{1.11.7 => 1.11.8}/111.js | 0 build/{1.11.7 => 1.11.8}/128.js | 0 build/{1.11.7 => 1.11.8}/244.js | 0 build/{1.11.7 => 1.11.8}/310.js | 0 build/{1.11.7 => 1.11.8}/33.js | 0 build/{1.11.7 => 1.11.8}/405.js | 0 build/{1.11.7 => 1.11.8}/420.js | 0 build/{1.11.7 => 1.11.8}/449.js | 0 build/{1.11.7 => 1.11.8}/465.js | 0 build/{1.11.7 => 1.11.8}/491.js | 0 build/{1.11.7 => 1.11.8}/537.js | 0 build/{1.11.7 => 1.11.8}/574.js | 0 build/{1.11.7 => 1.11.8}/58.js | 0 build/{1.11.7 => 1.11.8}/657.js | 0 build/{1.11.7 => 1.11.8}/662.js | 0 build/{1.11.7 => 1.11.8}/696.js | 0 build/{1.11.7 => 1.11.8}/704.js | 0 build/{1.11.7 => 1.11.8}/719.js | 0 build/{1.11.7 => 1.11.8}/73.js | 0 build/{1.11.7 => 1.11.8}/76.js | 0 build/{1.11.7 => 1.11.8}/792.js | 0 build/{1.11.7 => 1.11.8}/849.js | 0 build/{1.11.7 => 1.11.8}/856.js | 0 build/{1.11.7 => 1.11.8}/993.js | 0 build/{1.11.7 => 1.11.8}/994.js | 0 .../{1.11.7 => 1.11.8}/images/bluesky.733ebcbf.png | Bin .../{1.11.7 => 1.11.8}/images/content.fb050ea1.png | Bin build/{1.11.7 => 1.11.8}/images/design.cc6a697f.png | Bin .../{1.11.7 => 1.11.8}/images/features.593fb09c.png | Bin .../images/full-service.7f58f410.png | Bin .../images/full-service.adb3abd6.png | Bin build/{1.11.7 => 1.11.8}/images/help.19cc7e75.png | Bin .../images/step-interstitial.00b15f9e.png | Bin .../{1.11.7 => 1.11.8}/images/wp-admin.2908b886.png | Bin .../{1.11.7 => 1.11.8}/images/wp-admin.6c8af0b4.png | Bin .../{1.11.7 => 1.11.8}/images/wp-admin.d8650899.png | Bin build/{1.11.7 => 1.11.8}/onboarding.asset.php | 2 +- build/{1.11.7 => 1.11.8}/onboarding.css | 0 build/{1.11.7 => 1.11.8}/onboarding.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 42 files changed, 6 insertions(+), 6 deletions(-) rename build/{1.11.7 => 1.11.8}/111.js (100%) rename build/{1.11.7 => 1.11.8}/128.js (100%) rename build/{1.11.7 => 1.11.8}/244.js (100%) rename build/{1.11.7 => 1.11.8}/310.js (100%) rename build/{1.11.7 => 1.11.8}/33.js (100%) rename build/{1.11.7 => 1.11.8}/405.js (100%) rename build/{1.11.7 => 1.11.8}/420.js (100%) rename build/{1.11.7 => 1.11.8}/449.js (100%) rename build/{1.11.7 => 1.11.8}/465.js (100%) rename build/{1.11.7 => 1.11.8}/491.js (100%) rename build/{1.11.7 => 1.11.8}/537.js (100%) rename build/{1.11.7 => 1.11.8}/574.js (100%) rename build/{1.11.7 => 1.11.8}/58.js (100%) rename build/{1.11.7 => 1.11.8}/657.js (100%) rename build/{1.11.7 => 1.11.8}/662.js (100%) rename build/{1.11.7 => 1.11.8}/696.js (100%) rename build/{1.11.7 => 1.11.8}/704.js (100%) rename build/{1.11.7 => 1.11.8}/719.js (100%) rename build/{1.11.7 => 1.11.8}/73.js (100%) rename build/{1.11.7 => 1.11.8}/76.js (100%) rename build/{1.11.7 => 1.11.8}/792.js (100%) rename build/{1.11.7 => 1.11.8}/849.js (100%) rename build/{1.11.7 => 1.11.8}/856.js (100%) rename build/{1.11.7 => 1.11.8}/993.js (100%) rename build/{1.11.7 => 1.11.8}/994.js (100%) rename build/{1.11.7 => 1.11.8}/images/bluesky.733ebcbf.png (100%) rename build/{1.11.7 => 1.11.8}/images/content.fb050ea1.png (100%) rename build/{1.11.7 => 1.11.8}/images/design.cc6a697f.png (100%) rename build/{1.11.7 => 1.11.8}/images/features.593fb09c.png (100%) rename build/{1.11.7 => 1.11.8}/images/full-service.7f58f410.png (100%) rename build/{1.11.7 => 1.11.8}/images/full-service.adb3abd6.png (100%) rename build/{1.11.7 => 1.11.8}/images/help.19cc7e75.png (100%) rename build/{1.11.7 => 1.11.8}/images/step-interstitial.00b15f9e.png (100%) rename build/{1.11.7 => 1.11.8}/images/wp-admin.2908b886.png (100%) rename build/{1.11.7 => 1.11.8}/images/wp-admin.6c8af0b4.png (100%) rename build/{1.11.7 => 1.11.8}/images/wp-admin.d8650899.png (100%) rename build/{1.11.7 => 1.11.8}/onboarding.asset.php (83%) rename build/{1.11.7 => 1.11.8}/onboarding.css (100%) rename build/{1.11.7 => 1.11.8}/onboarding.js (95%) diff --git a/bootstrap.php b/bootstrap.php index 8688b6e02..02d798e95 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -22,7 +22,7 @@ function nfd_wp_module_onboarding_register() { // Set Global Constants if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { - define( 'NFD_ONBOARDING_VERSION', '1.11.7' ); + define( 'NFD_ONBOARDING_VERSION', '1.11.8' ); } if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { define( 'NFD_ONBOARDING_DIR', __DIR__ ); diff --git a/build/1.11.7/111.js b/build/1.11.8/111.js similarity index 100% rename from build/1.11.7/111.js rename to build/1.11.8/111.js diff --git a/build/1.11.7/128.js b/build/1.11.8/128.js similarity index 100% rename from build/1.11.7/128.js rename to build/1.11.8/128.js diff --git a/build/1.11.7/244.js b/build/1.11.8/244.js similarity index 100% rename from build/1.11.7/244.js rename to build/1.11.8/244.js diff --git a/build/1.11.7/310.js b/build/1.11.8/310.js similarity index 100% rename from build/1.11.7/310.js rename to build/1.11.8/310.js diff --git a/build/1.11.7/33.js b/build/1.11.8/33.js similarity index 100% rename from build/1.11.7/33.js rename to build/1.11.8/33.js diff --git a/build/1.11.7/405.js b/build/1.11.8/405.js similarity index 100% rename from build/1.11.7/405.js rename to build/1.11.8/405.js diff --git a/build/1.11.7/420.js b/build/1.11.8/420.js similarity index 100% rename from build/1.11.7/420.js rename to build/1.11.8/420.js diff --git a/build/1.11.7/449.js b/build/1.11.8/449.js similarity index 100% rename from build/1.11.7/449.js rename to build/1.11.8/449.js diff --git a/build/1.11.7/465.js b/build/1.11.8/465.js similarity index 100% rename from build/1.11.7/465.js rename to build/1.11.8/465.js diff --git a/build/1.11.7/491.js b/build/1.11.8/491.js similarity index 100% rename from build/1.11.7/491.js rename to build/1.11.8/491.js diff --git a/build/1.11.7/537.js b/build/1.11.8/537.js similarity index 100% rename from build/1.11.7/537.js rename to build/1.11.8/537.js diff --git a/build/1.11.7/574.js b/build/1.11.8/574.js similarity index 100% rename from build/1.11.7/574.js rename to build/1.11.8/574.js diff --git a/build/1.11.7/58.js b/build/1.11.8/58.js similarity index 100% rename from build/1.11.7/58.js rename to build/1.11.8/58.js diff --git a/build/1.11.7/657.js b/build/1.11.8/657.js similarity index 100% rename from build/1.11.7/657.js rename to build/1.11.8/657.js diff --git a/build/1.11.7/662.js b/build/1.11.8/662.js similarity index 100% rename from build/1.11.7/662.js rename to build/1.11.8/662.js diff --git a/build/1.11.7/696.js b/build/1.11.8/696.js similarity index 100% rename from build/1.11.7/696.js rename to build/1.11.8/696.js diff --git a/build/1.11.7/704.js b/build/1.11.8/704.js similarity index 100% rename from build/1.11.7/704.js rename to build/1.11.8/704.js diff --git a/build/1.11.7/719.js b/build/1.11.8/719.js similarity index 100% rename from build/1.11.7/719.js rename to build/1.11.8/719.js diff --git a/build/1.11.7/73.js b/build/1.11.8/73.js similarity index 100% rename from build/1.11.7/73.js rename to build/1.11.8/73.js diff --git a/build/1.11.7/76.js b/build/1.11.8/76.js similarity index 100% rename from build/1.11.7/76.js rename to build/1.11.8/76.js diff --git a/build/1.11.7/792.js b/build/1.11.8/792.js similarity index 100% rename from build/1.11.7/792.js rename to build/1.11.8/792.js diff --git a/build/1.11.7/849.js b/build/1.11.8/849.js similarity index 100% rename from build/1.11.7/849.js rename to build/1.11.8/849.js diff --git a/build/1.11.7/856.js b/build/1.11.8/856.js similarity index 100% rename from build/1.11.7/856.js rename to build/1.11.8/856.js diff --git a/build/1.11.7/993.js b/build/1.11.8/993.js similarity index 100% rename from build/1.11.7/993.js rename to build/1.11.8/993.js diff --git a/build/1.11.7/994.js b/build/1.11.8/994.js similarity index 100% rename from build/1.11.7/994.js rename to build/1.11.8/994.js diff --git a/build/1.11.7/images/bluesky.733ebcbf.png b/build/1.11.8/images/bluesky.733ebcbf.png similarity index 100% rename from build/1.11.7/images/bluesky.733ebcbf.png rename to build/1.11.8/images/bluesky.733ebcbf.png diff --git a/build/1.11.7/images/content.fb050ea1.png b/build/1.11.8/images/content.fb050ea1.png similarity index 100% rename from build/1.11.7/images/content.fb050ea1.png rename to build/1.11.8/images/content.fb050ea1.png diff --git a/build/1.11.7/images/design.cc6a697f.png b/build/1.11.8/images/design.cc6a697f.png similarity index 100% rename from build/1.11.7/images/design.cc6a697f.png rename to build/1.11.8/images/design.cc6a697f.png diff --git a/build/1.11.7/images/features.593fb09c.png b/build/1.11.8/images/features.593fb09c.png similarity index 100% rename from build/1.11.7/images/features.593fb09c.png rename to build/1.11.8/images/features.593fb09c.png diff --git a/build/1.11.7/images/full-service.7f58f410.png b/build/1.11.8/images/full-service.7f58f410.png similarity index 100% rename from build/1.11.7/images/full-service.7f58f410.png rename to build/1.11.8/images/full-service.7f58f410.png diff --git a/build/1.11.7/images/full-service.adb3abd6.png b/build/1.11.8/images/full-service.adb3abd6.png similarity index 100% rename from build/1.11.7/images/full-service.adb3abd6.png rename to build/1.11.8/images/full-service.adb3abd6.png diff --git a/build/1.11.7/images/help.19cc7e75.png b/build/1.11.8/images/help.19cc7e75.png similarity index 100% rename from build/1.11.7/images/help.19cc7e75.png rename to build/1.11.8/images/help.19cc7e75.png diff --git a/build/1.11.7/images/step-interstitial.00b15f9e.png b/build/1.11.8/images/step-interstitial.00b15f9e.png similarity index 100% rename from build/1.11.7/images/step-interstitial.00b15f9e.png rename to build/1.11.8/images/step-interstitial.00b15f9e.png diff --git a/build/1.11.7/images/wp-admin.2908b886.png b/build/1.11.8/images/wp-admin.2908b886.png similarity index 100% rename from build/1.11.7/images/wp-admin.2908b886.png rename to build/1.11.8/images/wp-admin.2908b886.png diff --git a/build/1.11.7/images/wp-admin.6c8af0b4.png b/build/1.11.8/images/wp-admin.6c8af0b4.png similarity index 100% rename from build/1.11.7/images/wp-admin.6c8af0b4.png rename to build/1.11.8/images/wp-admin.6c8af0b4.png diff --git a/build/1.11.7/images/wp-admin.d8650899.png b/build/1.11.8/images/wp-admin.d8650899.png similarity index 100% rename from build/1.11.7/images/wp-admin.d8650899.png rename to build/1.11.8/images/wp-admin.d8650899.png diff --git a/build/1.11.7/onboarding.asset.php b/build/1.11.8/onboarding.asset.php similarity index 83% rename from build/1.11.7/onboarding.asset.php rename to build/1.11.8/onboarding.asset.php index d9173fe97..0bf869085 100644 --- a/build/1.11.7/onboarding.asset.php +++ b/build/1.11.8/onboarding.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => '092fe7124e99a4499139'); + array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-dom-ready', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-preferences', 'wp-primitives', 'wp-style-engine', 'wp-url'), 'version' => '7eaab9d3ad5ddcc33bd2'); diff --git a/build/1.11.7/onboarding.css b/build/1.11.8/onboarding.css similarity index 100% rename from build/1.11.7/onboarding.css rename to build/1.11.8/onboarding.css diff --git a/build/1.11.7/onboarding.js b/build/1.11.8/onboarding.js similarity index 95% rename from build/1.11.7/onboarding.js rename to build/1.11.8/onboarding.js index 6a045d27e..2c2ec7a78 100644 --- a/build/1.11.7/onboarding.js +++ b/build/1.11.8/onboarding.js @@ -50,7 +50,7 @@ /* translators: %s: site or store */ (0,r.__)("Use professionally-designed templates for common site pages to assemble a beautiful, high-quality %s.","wp-module-onboarding"),(0,p.I)("site")),icon:I},illustration:{icon:"nfd-onboarding-sidebar-learn-more-pages-illustration"},information:{headingWithDescriptions:[{heading:(0,r.__)("Rapidly deliver ideas with templates primed for your content","wp-module-onboarding"),description:(0,r.sprintf)( /* translators: 1: site or store 2: site or store */ -(0,r.__)("We’ve baked everything we know about making great designs and content for common %1$s needs into ease-to-use templates. Pick templates and we’ll add them as Page drafts to your WordPress %2$s.","wp-module-onboarding"),(0,p.I)("site"),(0,p.I)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(s,c);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-pages"},(0,o.createElement)($,{heading:m.introduction.heading,subheading:m.introduction.subheading,icon:m.introduction.icon}),!1!==(null==h||null===(e=h.views)||void 0===e||null===(t=e.sidebar)||void 0===t||null===(n=t.illustration)||void 0===n?void 0:n.shown)&&(0,o.createElement)(L,{cssIcon:m.illustration.icon}),(0,o.createElement)(O,{headingWithDescriptions:m.information.headingWithDescriptions}),(0,o.createElement)(A,null,!1!==(null==h||null===(i=h.views)||void 0===i||null===(a=i.sidebar)||void 0===a||null===(l=a.fullService)||void 0===l?void 0:l.shown)&&m.help.fullService.link&&(0,o.createElement)(R,{text:m.help.fullService.text,onClick:()=>window.open(m.help.fullService.link,"_blank")}),(0,o.createElement)(z,{text:m.help.support.text,link:m.help.support.link})))}]}},data:{tooltipText:(0,r.__)("You have ideas, we have page templates","wp-module-onboarding"),patternId:"site-pages"}});var F=n(9702),U=n(6515);const W=new c.h({path:`/${U.H}/step/interstitial/${i.$3}`,Component:a.Z}),B=[_,P,H],Z=new F.W({id:i.$3,name:(0,r.__)("Layout & Content","wp-module-onboarding"),steps:B,interstitialSteps:[W]})},682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(4184),a=n.n(i);const o=e=>{let{type:t,after:n=!0,children:i,className:o="",duration:l=!1,timingFunction:s=!1}=e;const c="animate";return n?(0,r.createElement)("div",{className:a()(function(){if(t){let e="";switch(t){case"fade-in":e=c.concat("__fade-in");break;case"fade-in-disabled":e=c.concat("__fade-in--disabled");break;case"fade-in-right":e=c.concat("__fade-in--right");break;case"fade-in-left":e=c.concat("__fade-in--left");break;case"fade-in-up":e=c.concat("__fade-in--up");break;case"shine":e=c.concat("__shine");break;case"shine-placeholder":e=c.concat("__shine--placeholder");break;case"dropdown":e=c.concat("__dropdown");break;case"load":e=c.concat("__load")}return e}}(),o),style:{animationDuration:l,animationTimingFunction:s}},i):(0,r.createElement)("div",{className:"animate__blank"},i)}},5378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9307),i=n(5609),a=n(1984),o=n(4184),l=n.n(o);const s=e=>{let{className:t,text:n,onClick:o,icon:s}=e;return(0,r.createElement)(i.Button,{className:l()("nfd-onboarding-button--white",t),onClick:"function"==typeof o&&o},(0,r.createElement)("span",{className:`${t}__text`},n),s&&(0,r.createElement)(a.Z,{className:`${t}__icon`,icon:s}))}},2058:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(9307),i=n(5609),a=n(4184),o=n.n(a);const l=e=>{let{className:t,text:n,onClick:a=!1}=e;return(0,r.createElement)(i.Button,{variant:"primary",className:o()("nfd-onboarding-button--background",t),onClick:"function"==typeof a&&a},n)}},9519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307);const i=(0,r.memo)((e=>{let{heading:t,subHeading:n,question:i}=e;return(0,r.createElement)("div",null,t&&(0,r.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,r.createElement)("h3",{className:i?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),i&&(0,r.createElement)("h3",{className:"nfd-step-card-question"},i))}))},1526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307);const i=e=>{let{title:t,subtitle:n,children:i}=e;return(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},t),n&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),i)}},5634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(9307),i=n(4184),a=n.n(i);const o=window.wp.a11y;var l=n(9250),s=n(8297),c=n(6342);const d=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const i=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,r.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Showing new Onboarding Page";(0,o.speak)(e,"assertive")}("Override"),(0,s.uW)(new s.Z_(c.Az))}),[i.pathname]),(0,r.createElement)("div",{className:a()("nfd-onboarding-layout",t)},n)};var u=n(682);const p=e=>{let{children:t}=e;return(0,r.createElement)("section",{className:"is-contained"},t)},h=e=>{let{className:t="",children:n,isBgPrimary:i=!1,isCentered:o=!1,isVerticallyCentered:l=!1,isContained:s=!1,isPadded:c=!1,isFadeIn:h=!0}=e;const m=s?p:r.Fragment;return(0,r.createElement)(u.Z,{type:h&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(d,{className:a()("nfd-onboarding-layout__common",t,{"is-bg-primary":i},{"is-centered":o},{"is-vertically-centered":l},{"is-padded":c})},(0,r.createElement)(m,null,n)))}},1054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(5736),a=n(6332);const o=e=>{let{count:t,watch:n,callback:o,className:l,viewportWidth:s,isWithCard:c=!1}=e;const[d,u]=(0,r.useState)(0);return(0,r.useEffect)((()=>u(1)),[n]),n?(0,r.createElement)(r.Fragment,null,n?(0,r.createElement)("div",{style:{display:"none"}},d):null,o()):c?(()=>{const e=[];for(let n=0;n{const e=[];for(let n=0;n{"use strict";n.d(t,{V3:()=>T,i5:()=>f,H:()=>S,T9:()=>C,r9:()=>w.Z});var r=n(9307),i=n(9818),a=n(2175),o=n(4981),l=n(7462),s=n(5609),c=n(4333);let d;const u=6e3;function p(e){var t,n;let{viewportWidth:i,settings:o,containerWidth:l,minHeight:p,additionalStyles:h=[]}=e;i||(i=l);const[m,{height:g}]=(0,c.useResizeObserver)(),{styles:v,assets:f,duotone:w}={styles:o.styles,assets:o.__unstableResolvedAssets,duotone:null===(t=o.__experimentalFeatures)||void 0===t||null===(n=t.color)||void 0===n?void 0:n.duotone},b=(0,r.useMemo)((()=>v?[...v,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...h]:v),[v,h]),_=(0,r.useMemo)((()=>{var e,t;return[...null!==(e=null==w?void 0:w.default)&&void 0!==e?e:[],...null!==(t=null==w?void 0:w.theme)&&void 0!==t?t:[]]}),[w]);d=d||(0,c.pure)(a.BlockList);const y=l/i;return(0,r.createElement)(s.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${y})`,height:g*y,maxHeight:g>u?u*y:void 0,minHeight:p}},(0,r.createElement)(a.__unstableIframe,{assets:f,contentRef:(0,c.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%",e.spellcheck=0}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:i,height:g,pointerEvents:"none",maxHeight:u,minHeight:0!==y&&y<1&&p?p/y:p}},(0,r.createElement)(a.__unstableEditorStyles,{styles:b}),m,_.map((e=>(0,r.createElement)(a.__unstablePresetDuotoneFilter,{preset:e,key:e.slug}))),(0,r.createElement)(d,{renderAppender:!1})))}function h(e){const[t,{width:n}]=(0,c.useResizeObserver)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,r.createElement)("div",{className:"block-editor-block-preview__container"},n&&(0,r.createElement)(p,(0,l.Z)({},e,{containerWidth:n}))))}var m=n(6690),g=n(2503),v=n(682);const f=(0,r.memo)((e=>{let{blockGrammer:t,viewportWidth:n=1300,styling:l="large",setIsLoadingParent:s=!1,previewSettings:c=!1,skeletonLoadingTime:d=2500}=e;const[u,p]=(0,r.useState)(),[f,w]=(0,r.useState)(),[b,_]=(0,r.useState)(!0);(0,r.useEffect)((()=>{if(d){const e=setTimeout((()=>{_(!1),s&&s(!1)}),d);return()=>clearTimeout(e)}_(!1),s&&s(!1)}),[d]);const{currentData:y,storedPreviewSettings:E}=(0,i.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings()})),[]);(0,r.useEffect)((()=>{w(c?(0,m.NF)(c,E):E)}),[]),(0,r.useEffect)((()=>{t&&p((0,o.parse)(t))}),[t]),(0,r.useEffect)((()=>{c||w(E)}),[E,y]);const S=(0,r.memo)((()=>(0,r.createElement)("div",{className:"live-preview__container--is-skeleton"},(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-header"},(0,r.createElement)(v.Z,{type:"shine",className:"live-preview__container--is-skeleton--shimmer"})),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-1"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-2"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-footer"}))));return(0,r.createElement)("div",{className:`live-preview__container-${l}`},b&&(0,r.createElement)(S,null),u&&f&&(0,r.createElement)(a.BlockEditorProvider,{value:u,settings:f.settings},(0,r.createElement)(h,{viewportWidth:n,settings:f.settings})))}));var w=n(1054),b=n(1984),_=n(8184),y=n(444);const E=(0,r.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(y.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),S=e=>{let{className:t="live-preview--selectable-card",selected:n=!1,blockGrammer:i,viewportWidth:a=1500,styling:o="large",previewSettings:l,overlay:s=!1,onClick:c=!1,skeletonLoadingTime:d=2500}=e;const[u,p]=(0,r.useState)(!0);return(0,r.createElement)("div",{className:`${t}`,role:"button",tabIndex:0,onClick:()=>{u||"function"!=typeof c||c()},onKeyDown:()=>{u||"function"!=typeof c||c()}},(0,r.createElement)("div",{className:`${t}__title-bar`},(0,r.createElement)("div",{className:`${t}__title-bar__browser`},(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`})),(0,r.createElement)("div",{className:n?`${t}__title-bar--selected live-preview-selected-check`:`${t}__title-bar--unselected`},(0,r.createElement)(b.Z,{className:`${t}__title-bar--selected__path`,icon:_.Z,size:64}))),(0,r.createElement)("div",{className:`${t}__live-preview-container`},(0,r.createElement)(f,{styling:o,blockGrammer:i,viewportWidth:a,previewSettings:l,setIsLoadingParent:p,skeletonLoadingTime:d}),s&&!u&&(0,r.createElement)("div",{className:`${t}__live-preview-container__overlay`},(0,r.createElement)(b.Z,{className:`${t}__live-preview-container__overlay__icon`,size:64,icon:E}))))};var k=n(6058);const C=e=>{let{className:t="live-preview--selectable-card--title-description",selected:n=!1,blockGrammer:i,viewportWidth:a=1500,styling:o="large",previewSettings:l,onClick:c=!1,skeletonLoadingTime:d=2500,title:u=!1,description:p=!1,slug:h}=e;const[m,g]=(0,r.useState)(!1),w=e=>{"function"==typeof c&&c(e,h,u)};return(0,r.createElement)("div",{className:`${t}`},(0,r.createElement)("div",{className:`${t}__live-preview-container`,onClick:()=>w(!n),role:"presentation"},(0,r.createElement)(f,{styling:o,blockGrammer:i,viewportWidth:a,previewSettings:l,skeletonLoadingTime:d})),(0,r.createElement)("div",{className:`${t}__information`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("div",{className:`${t}__information__title-question`},(0,r.createElement)("div",{className:`${t}__information__title-question__checkbox`},(0,r.createElement)(s.CheckboxControl,{label:(0,r.createElement)("b",null,u),onChange:()=>w(!n),checked:n})),(0,r.createElement)("div",{className:`${t}__information__title-question__question`},(0,r.createElement)(b.Z,{className:`${t}__information__title-question__question__icon`,icon:k.Z,style:{fill:m&&"var(--wp-admin-theme-color-darker-10)"},onClick:()=>g(!m)})))),m&&(0,r.createElement)(v.Z,{type:"dropdown",className:`${t}__description--container ${m?"highlighted":"not-highlighted"}`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("p",{className:`${t}__description--text`},p)))};var x=n(7625),N=n(2200);const T=e=>{let{children:t}=e;const[n,a]=(0,r.useState)(!1),{currentData:o,storedPreviewSettings:l,themeStatus:s}=(0,i.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings(),themeStatus:e(g.h).getThemeStatus()})),[]),{updateThemeStatus:c,updatePreviewSettings:d,enqueueRequest:u}=(0,i.useDispatch)(g.h);return(0,r.useEffect)((()=>{n||N.GV!==s||(async()=>{let e;if(null!=l&&l.title&&null!=l&&l.settings)e=l;else{var t;const n=await(0,x.oC)();if(null!=n&&n.error)return c(N.a0);o.data.theme.variation?e=n.body.filter((e=>e.title===o.data.theme.variation))[0]:0===(null===(t=n.body[0])||void 0===t?void 0:t.id)&&(e=n.body[0]),d((0,m.NF)(e,l))}e&&u(N.Az.SET_GLOBAL_STYLES,(()=>(0,x.cw)({...e,title:o.data.theme.variation,version:2}))),a(!0)})()}),[n,s]),t}},5107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(9307),i=n(9818),a=n(9250),o=n(1984),l=n(5024),s=n(2503),c=n(9519),d=n(5634),u=n(349),p=n(5736),h=n(1392);var m=n(2058),g=n(5378),v=n(3421),f=n(8297),w=n(2200),b=n(7533),_=n(6342),y=n(3568);const E=()=>{const[e,t]=(0,r.useState)(15),n=(0,a.s0)(),{setIsDrawerSuppressed:E,setSidebarActiveView:S}=(0,i.useDispatch)(s.h);async function k(){var e;N&&(N.isComplete=(new Date).getTime(),(0,b.kB)(N),(0,y.a)(null==N||null===(e=N.data)||void 0===e?void 0:e.comingSoon)),(0,v.jd)(),(0,f.uW)(new f.Z_(_.pd)),window.location.replace(w.br)}(0,r.useEffect)((()=>{const n=setInterval((()=>{t(e-1)}),1e3);return 0===e&&(clearInterval(n),k()),()=>{clearInterval(n)}}),[e]),(0,r.useEffect)((()=>{E(!0),S(!1)}),[]);const{brandName:C,nextStep:x,currentData:N}=(0,i.useSelect)((e=>({brandName:e(s.h).getNewfoldBrandName(),nextStep:e(s.h).getNextStep(),currentData:e(s.h).getCurrentOnboardingData()}))),T=(e=>({heading:(0,p.__)("A great foundation to build from","wp-module-onboarding"),subheading:(0,p.sprintf)( +(0,r.__)("We’ve baked everything we know about making great designs and content for common %1$s needs into ease-to-use templates. Pick templates and we’ll add them as Page drafts to your WordPress %2$s.","wp-module-onboarding"),(0,p.I)("site"),(0,p.I)("site"))}]},help:{fullService:{text:(0,r.__)("Hire Our Full-Service Creative Studio","wp-module-onboarding"),link:t},support:{text:(0,r.__)("Technical Support","wp-module-onboarding"),link:e}}}))(s,c);return(0,o.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__site-pages"},(0,o.createElement)($,{heading:m.introduction.heading,subheading:m.introduction.subheading,icon:m.introduction.icon}),!1!==(null==h||null===(e=h.views)||void 0===e||null===(t=e.sidebar)||void 0===t||null===(n=t.illustration)||void 0===n?void 0:n.shown)&&(0,o.createElement)(L,{cssIcon:m.illustration.icon}),(0,o.createElement)(O,{headingWithDescriptions:m.information.headingWithDescriptions}),(0,o.createElement)(A,null,!1!==(null==h||null===(i=h.views)||void 0===i||null===(a=i.sidebar)||void 0===a||null===(l=a.fullService)||void 0===l?void 0:l.shown)&&m.help.fullService.link&&(0,o.createElement)(R,{text:m.help.fullService.text,onClick:()=>window.open(m.help.fullService.link,"_blank")}),(0,o.createElement)(z,{text:m.help.support.text,link:m.help.support.link})))}]}},data:{tooltipText:(0,r.__)("You have ideas, we have page templates","wp-module-onboarding"),patternId:"site-pages"}});var F=n(9702),U=n(6515);const W=new c.h({path:`/${U.H}/step/interstitial/${i.$3}`,Component:a.Z}),B=[_,P,H],Z=new F.W({id:i.$3,name:(0,r.__)("Layout & Content","wp-module-onboarding"),steps:B,interstitialSteps:[W]})},682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(4184),a=n.n(i);const o=e=>{let{type:t,after:n=!0,children:i,className:o="",duration:l=!1,timingFunction:s=!1}=e;const c="animate";return n?(0,r.createElement)("div",{className:a()(function(){if(t){let e="";switch(t){case"fade-in":e=c.concat("__fade-in");break;case"fade-in-disabled":e=c.concat("__fade-in--disabled");break;case"fade-in-right":e=c.concat("__fade-in--right");break;case"fade-in-left":e=c.concat("__fade-in--left");break;case"fade-in-up":e=c.concat("__fade-in--up");break;case"shine":e=c.concat("__shine");break;case"shine-placeholder":e=c.concat("__shine--placeholder");break;case"dropdown":e=c.concat("__dropdown");break;case"load":e=c.concat("__load")}return e}}(),o),style:{animationDuration:l,animationTimingFunction:s}},i):(0,r.createElement)("div",{className:"animate__blank"},i)}},5378:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(9307),i=n(5609),a=n(1984),o=n(4184),l=n.n(o);const s=e=>{let{className:t,text:n,onClick:o,icon:s}=e;return(0,r.createElement)(i.Button,{className:l()("nfd-onboarding-button--white",t),onClick:"function"==typeof o&&o},(0,r.createElement)("span",{className:`${t}__text`},n),s&&(0,r.createElement)(a.Z,{className:`${t}__icon`,icon:s}))}},2058:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(9307),i=n(5609),a=n(4184),o=n.n(a);const l=e=>{let{className:t,text:n,onClick:a=!1}=e;return(0,r.createElement)(i.Button,{variant:"primary",className:o()("nfd-onboarding-button--background",t),onClick:"function"==typeof a&&a},n)}},9519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307);const i=(0,r.memo)((e=>{let{heading:t,subHeading:n,question:i}=e;return(0,r.createElement)("div",null,t&&(0,r.createElement)("h2",{className:"nfd-step-card-heading"},t),n&&(0,r.createElement)("h3",{className:i?"nfd-step-card-subheading-other":"nfd-step-card-subheading"},n),i&&(0,r.createElement)("h3",{className:"nfd-step-card-question"},i))}))},1526:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307);const i=e=>{let{title:t,subtitle:n,children:i}=e;return(0,r.createElement)("div",{className:"nfd-main-heading"},(0,r.createElement)("h2",{className:"nfd-main-heading__title"},t),n&&(0,r.createElement)("h3",{className:"nfd-main-heading__subtitle"},n),i)}},5634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(9307),i=n(4184),a=n.n(i);const o=window.wp.a11y;var l=n(9250),s=n(8297),c=n(6342);const d=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const i=(0,l.TH)(),d=document.querySelector(".nfd-onboard-content");return(0,r.useEffect)((()=>{null==d||d.focus({preventScroll:!0}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Showing new Onboarding Page";(0,o.speak)(e,"assertive")}("Override"),(0,s.uW)(new s.Z_(c.Az))}),[i.pathname]),(0,r.createElement)("div",{className:a()("nfd-onboarding-layout",t)},n)};var u=n(682);const p=e=>{let{children:t}=e;return(0,r.createElement)("section",{className:"is-contained"},t)},h=e=>{let{className:t="",children:n,isBgPrimary:i=!1,isCentered:o=!1,isVerticallyCentered:l=!1,isContained:s=!1,isPadded:c=!1,isFadeIn:h=!0}=e;const m=s?p:r.Fragment;return(0,r.createElement)(u.Z,{type:h&&"fade-in",duration:"233ms",timingFunction:"ease-in-out"},(0,r.createElement)(d,{className:a()("nfd-onboarding-layout__common",t,{"is-bg-primary":i},{"is-centered":o},{"is-vertically-centered":l},{"is-padded":c})},(0,r.createElement)(m,null,n)))}},1054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307),i=n(5736),a=n(6332);const o=e=>{let{count:t,watch:n,callback:o,className:l,viewportWidth:s,isWithCard:c=!1}=e;const[d,u]=(0,r.useState)(0);return(0,r.useEffect)((()=>u(1)),[n]),n?(0,r.createElement)(r.Fragment,null,n?(0,r.createElement)("div",{style:{display:"none"}},d):null,o()):c?(()=>{const e=[];for(let n=0;n{const e=[];for(let n=0;n{"use strict";n.d(t,{V3:()=>T,i5:()=>f,H:()=>S,T9:()=>C,r9:()=>w.Z});var r=n(9307),i=n(9818),a=n(2175),o=n(4981),l=n(7462),s=n(5609),c=n(4333);let d;const u=6e3;function p(e){let{viewportWidth:t,settings:n,containerWidth:i,minHeight:o,additionalStyles:l=[]}=e;t||(t=i);const[p,{height:h}]=(0,c.useResizeObserver)(),{styles:m,assets:g}={styles:n.styles,assets:n.__unstableResolvedAssets},v=(0,r.useMemo)((()=>m?[...m,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...l]:m),[m,l]);d=d||(0,c.pure)(a.BlockList);const f=i/t,w=h?i/(h*f):0;return(0,r.createElement)(s.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${f})`,aspectRatio:w,maxHeight:h>u?u*f:void 0,minHeight:o}},(0,r.createElement)(a.__unstableIframe,{assets:g,contentRef:(0,c.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%",e.spellcheck=0}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:t,height:h,pointerEvents:"none",maxHeight:u,minHeight:0!==f&&f<1&&o?o/f:o}},(0,r.createElement)(a.__unstableEditorStyles,{styles:v}),p,(0,r.createElement)(d,{renderAppender:!1})))}function h(e){const[t,{width:n}]=(0,c.useResizeObserver)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,r.createElement)("div",{className:"block-editor-block-preview__container"},n&&(0,r.createElement)(p,(0,l.Z)({},e,{containerWidth:n}))))}var m=n(6690),g=n(2503),v=n(682);const f=(0,r.memo)((e=>{let{blockGrammer:t,viewportWidth:n=1300,styling:l="large",setIsLoadingParent:s=!1,previewSettings:c=!1,skeletonLoadingTime:d=2500}=e;const[u,p]=(0,r.useState)(),[f,w]=(0,r.useState)(),[b,_]=(0,r.useState)(!0);(0,r.useEffect)((()=>{if(d){const e=setTimeout((()=>{_(!1),s&&s(!1)}),d);return()=>clearTimeout(e)}_(!1),s&&s(!1)}),[d]);const{currentData:y,storedPreviewSettings:E}=(0,i.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings()})),[]);(0,r.useEffect)((()=>{w(c?(0,m.NF)(c,E):E)}),[]),(0,r.useEffect)((()=>{t&&p((0,o.parse)(t))}),[t]),(0,r.useEffect)((()=>{c||w(E)}),[E,y]);const S=(0,r.memo)((()=>(0,r.createElement)("div",{className:"live-preview__container--is-skeleton"},(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-header"},(0,r.createElement)(v.Z,{type:"shine",className:"live-preview__container--is-skeleton--shimmer"})),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-1"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-body-2"}),(0,r.createElement)("div",{className:"live-preview__container--is-skeleton--box live-preview__container--is-skeleton--box-footer"}))));return(0,r.createElement)("div",{className:`live-preview__container-${l}`},b&&(0,r.createElement)(S,null),u&&f&&(0,r.createElement)(a.BlockEditorProvider,{value:u,settings:f.settings},(0,r.createElement)(h,{viewportWidth:n,settings:f.settings})))}));var w=n(1054),b=n(1984),_=n(8184),y=n(444);const E=(0,r.createElement)(y.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(y.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),S=e=>{let{className:t="live-preview--selectable-card",selected:n=!1,blockGrammer:i,viewportWidth:a=1500,styling:o="large",previewSettings:l,overlay:s=!1,onClick:c=!1,skeletonLoadingTime:d=2500}=e;const[u,p]=(0,r.useState)(!0);return(0,r.createElement)("div",{className:`${t}`,role:"button",tabIndex:0,onClick:()=>{u||"function"!=typeof c||c()},onKeyDown:()=>{u||"function"!=typeof c||c()}},(0,r.createElement)("div",{className:`${t}__title-bar`},(0,r.createElement)("div",{className:`${t}__title-bar__browser`},(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`}),(0,r.createElement)("span",{className:`${t}__title-bar__browser__dot`})),(0,r.createElement)("div",{className:n?`${t}__title-bar--selected live-preview-selected-check`:`${t}__title-bar--unselected`},(0,r.createElement)(b.Z,{className:`${t}__title-bar--selected__path`,icon:_.Z,size:64}))),(0,r.createElement)("div",{className:`${t}__live-preview-container`},(0,r.createElement)(f,{styling:o,blockGrammer:i,viewportWidth:a,previewSettings:l,setIsLoadingParent:p,skeletonLoadingTime:d}),s&&!u&&(0,r.createElement)("div",{className:`${t}__live-preview-container__overlay`},(0,r.createElement)(b.Z,{className:`${t}__live-preview-container__overlay__icon`,size:64,icon:E}))))};var k=n(6058);const C=e=>{let{className:t="live-preview--selectable-card--title-description",selected:n=!1,blockGrammer:i,viewportWidth:a=1500,styling:o="large",previewSettings:l,onClick:c=!1,skeletonLoadingTime:d=2500,title:u=!1,description:p=!1,slug:h}=e;const[m,g]=(0,r.useState)(!1),w=e=>{"function"==typeof c&&c(e,h,u)};return(0,r.createElement)("div",{className:`${t}`},(0,r.createElement)("div",{className:`${t}__live-preview-container`,onClick:()=>w(!n),role:"presentation"},(0,r.createElement)(f,{styling:o,blockGrammer:i,viewportWidth:a,previewSettings:l,skeletonLoadingTime:d})),(0,r.createElement)("div",{className:`${t}__information`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("div",{className:`${t}__information__title-question`},(0,r.createElement)("div",{className:`${t}__information__title-question__checkbox`},(0,r.createElement)(s.CheckboxControl,{label:(0,r.createElement)("b",null,u),onChange:()=>w(!n),checked:n})),(0,r.createElement)("div",{className:`${t}__information__title-question__question`},(0,r.createElement)(b.Z,{className:`${t}__information__title-question__question__icon`,icon:k.Z,style:{fill:m&&"var(--wp-admin-theme-color-darker-10)"},onClick:()=>g(!m)})))),m&&(0,r.createElement)(v.Z,{type:"dropdown",className:`${t}__description--container ${m?"highlighted":"not-highlighted"}`,style:{backgroundColor:m?"var(--nfd-onboarding-light-gray-highlighted)":"var(--nfd-onboarding-light-gray-3)"}},(0,r.createElement)("p",{className:`${t}__description--text`},p)))};var x=n(7625),N=n(2200);const T=e=>{let{children:t}=e;const[n,a]=(0,r.useState)(!1),{currentData:o,storedPreviewSettings:l,themeStatus:s}=(0,i.useSelect)((e=>({currentData:e(g.h).getCurrentOnboardingData(),storedPreviewSettings:e(g.h).getPreviewSettings(),themeStatus:e(g.h).getThemeStatus()})),[]),{updateThemeStatus:c,updatePreviewSettings:d,enqueueRequest:u}=(0,i.useDispatch)(g.h);return(0,r.useEffect)((()=>{n||N.GV!==s||(async()=>{let e;if(null!=l&&l.title&&null!=l&&l.settings)e=l;else{var t;const n=await(0,x.oC)();if(null!=n&&n.error)return c(N.a0);o.data.theme.variation?e=n.body.filter((e=>e.title===o.data.theme.variation))[0]:0===(null===(t=n.body[0])||void 0===t?void 0:t.id)&&(e=n.body[0]),d((0,m.NF)(e,l))}e&&u(N.Az.SET_GLOBAL_STYLES,(()=>(0,x.cw)({...e,title:o.data.theme.variation,version:2}))),a(!0)})()}),[n,s]),t}},5107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(9307),i=n(9818),a=n(9250),o=n(1984),l=n(5024),s=n(2503),c=n(9519),d=n(5634),u=n(349),p=n(5736),h=n(1392);var m=n(2058),g=n(5378),v=n(3421),f=n(8297),w=n(2200),b=n(7533),_=n(6342),y=n(3568);const E=()=>{const[e,t]=(0,r.useState)(15),n=(0,a.s0)(),{setIsDrawerSuppressed:E,setSidebarActiveView:S}=(0,i.useDispatch)(s.h);async function k(){var e;N&&(N.isComplete=(new Date).getTime(),(0,b.kB)(N),(0,y.a)(null==N||null===(e=N.data)||void 0===e?void 0:e.comingSoon)),(0,v.jd)(),(0,f.uW)(new f.Z_(_.pd)),window.location.replace(w.br)}(0,r.useEffect)((()=>{const n=setInterval((()=>{t(e-1)}),1e3);return 0===e&&(clearInterval(n),k()),()=>{clearInterval(n)}}),[e]),(0,r.useEffect)((()=>{E(!0),S(!1)}),[]);const{brandName:C,nextStep:x,currentData:N}=(0,i.useSelect)((e=>({brandName:e(s.h).getNewfoldBrandName(),nextStep:e(s.h).getNextStep(),currentData:e(s.h).getCurrentOnboardingData()}))),T=(e=>({heading:(0,p.__)("A great foundation to build from","wp-module-onboarding"),subheading:(0,p.sprintf)( /* translators: Brand */ (0,p.__)("with WordPress and %s","wp-module-onboarding"),e),content:{heading:(0,p.sprintf)( /* translators: site or store */ diff --git a/package-lock.json b/package-lock.json index ce5e71f5a..ba473679b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.11.7", + "version": "1.11.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.11.7", + "version": "1.11.8", "license": "GPL-2.0-or-later", "dependencies": { "@newfold-labs/js-utility-ui-analytics": "1.2.0", diff --git a/package.json b/package.json index 10d2091eb..98b3644c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "1.11.7", + "version": "1.11.8", "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "license": "GPL-2.0-or-later", "private": true,