From 784c4f9d07e65b71132f8ba612062906ef8cfc1a Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Wed, 20 Mar 2024 15:30:35 +0530 Subject: [PATCH] Bump Onboarding to 2.1.8 --- bootstrap.php | 2 +- build/2.1.7/287.js | 1 - build/2.1.7/619.js | 1 - build/2.1.7/705.js | 1 - build/{2.1.7 => 2.1.8}/100.css | 0 build/{2.1.7 => 2.1.8}/100.js | 0 build/{2.1.7 => 2.1.8}/106.js | 0 build/{2.1.7 => 2.1.8}/202.js | 0 build/{2.1.7 => 2.1.8}/206.js | 0 build/{2.1.7 => 2.1.8}/270.js | 0 build/2.1.8/287.js | 1 + build/{2.1.7 => 2.1.8}/325.js | 0 build/{2.1.7 => 2.1.8}/328.js | 0 build/{2.1.7 => 2.1.8}/340.js | 0 build/{2.1.7 => 2.1.8}/356.js | 0 build/{2.1.7 => 2.1.8}/366.js | 0 build/{2.1.7 => 2.1.8}/367.js | 0 build/{2.1.7 => 2.1.8}/377.js | 2 +- build/{2.1.7 => 2.1.8}/396.css | 0 build/{2.1.7 => 2.1.8}/396.js | 0 build/{2.1.7 => 2.1.8}/40.js | 0 build/{2.1.7 => 2.1.8}/403.js | 0 build/{2.1.7 => 2.1.8}/426.js | 0 build/{2.1.7 => 2.1.8}/508.js | 0 build/{2.1.7 => 2.1.8}/51.js | 0 build/{2.1.7 => 2.1.8}/546.js | 0 build/{2.1.7 => 2.1.8}/560.js | 0 build/{2.1.7 => 2.1.8}/585.js | 0 build/{2.1.7 => 2.1.8}/595.js | 0 build/2.1.8/619.js | 1 + build/{2.1.7 => 2.1.8}/622.js | 0 build/{2.1.7 => 2.1.8}/627.js | 0 build/{2.1.7 => 2.1.8}/632.js | 0 build/{2.1.7 => 2.1.8}/672.js | 0 build/2.1.8/705.js | 1 + build/{2.1.7 => 2.1.8}/74.js | 0 build/{2.1.7 => 2.1.8}/761.js | 0 build/{2.1.7 => 2.1.8}/796.js | 0 build/{2.1.7 => 2.1.8}/803.js | 0 build/{2.1.7 => 2.1.8}/859.js | 0 build/{2.1.7 => 2.1.8}/871.js | 0 build/{2.1.7 => 2.1.8}/910.js | 0 build/{2.1.7 => 2.1.8}/97.js | 0 build/{2.1.7 => 2.1.8}/971.js | 0 build/{2.1.7 => 2.1.8}/978.js | 0 build/{2.1.7 => 2.1.8}/993.js | 0 build/{2.1.7 => 2.1.8}/994.js | 0 .../{2.1.7 => 2.1.8}/images/ai_bg.55900f2d.png | Bin .../images/ai_bg_low.d8292556.png | Bin .../images/bluesky.733ebcbf.png | Bin .../images/content.fb050ea1.png | Bin .../{2.1.7 => 2.1.8}/images/design.cc6a697f.png | Bin .../images/features.593fb09c.png | Bin .../images/full-service.7f58f410.png | Bin .../images/full-service.adb3abd6.png | Bin build/{2.1.7 => 2.1.8}/images/help.19cc7e75.png | Bin .../images/step-interstitial.00b15f9e.png | Bin .../images/toggle-light-mode.8d7afd07.png | Bin .../images/wp-admin.2908b886.png | Bin .../images/wp-admin.6c8af0b4.png | Bin .../images/wp-admin.d8650899.png | Bin build/{2.1.7 => 2.1.8}/onboarding.asset.php | 2 +- build/{2.1.7 => 2.1.8}/onboarding.css | 0 build/{2.1.7 => 2.1.8}/onboarding.js | 2 +- .../sitegen-theme-marker.asset.php | 0 .../sitegen-theme-marker.css.asset.php | 0 .../sitegen-theme-marker.css.css | 0 .../sitegen-theme-marker.css.js | 0 build/{2.1.7 => 2.1.8}/sitegen-theme-marker.js | 0 composer.lock | 12 ++++++------ package-lock.json | 16 +++++++--------- package.json | 2 +- 72 files changed, 21 insertions(+), 23 deletions(-) delete mode 100644 build/2.1.7/287.js delete mode 100644 build/2.1.7/619.js delete mode 100644 build/2.1.7/705.js rename build/{2.1.7 => 2.1.8}/100.css (100%) rename build/{2.1.7 => 2.1.8}/100.js (100%) rename build/{2.1.7 => 2.1.8}/106.js (100%) rename build/{2.1.7 => 2.1.8}/202.js (100%) rename build/{2.1.7 => 2.1.8}/206.js (100%) rename build/{2.1.7 => 2.1.8}/270.js (100%) create mode 100644 build/2.1.8/287.js rename build/{2.1.7 => 2.1.8}/325.js (100%) rename build/{2.1.7 => 2.1.8}/328.js (100%) rename build/{2.1.7 => 2.1.8}/340.js (100%) rename build/{2.1.7 => 2.1.8}/356.js (100%) rename build/{2.1.7 => 2.1.8}/366.js (100%) rename build/{2.1.7 => 2.1.8}/367.js (100%) rename build/{2.1.7 => 2.1.8}/377.js (64%) rename build/{2.1.7 => 2.1.8}/396.css (100%) rename build/{2.1.7 => 2.1.8}/396.js (100%) rename build/{2.1.7 => 2.1.8}/40.js (100%) rename build/{2.1.7 => 2.1.8}/403.js (100%) rename build/{2.1.7 => 2.1.8}/426.js (100%) rename build/{2.1.7 => 2.1.8}/508.js (100%) rename build/{2.1.7 => 2.1.8}/51.js (100%) rename build/{2.1.7 => 2.1.8}/546.js (100%) rename build/{2.1.7 => 2.1.8}/560.js (100%) rename build/{2.1.7 => 2.1.8}/585.js (100%) rename build/{2.1.7 => 2.1.8}/595.js (100%) create mode 100644 build/2.1.8/619.js rename build/{2.1.7 => 2.1.8}/622.js (100%) rename build/{2.1.7 => 2.1.8}/627.js (100%) rename build/{2.1.7 => 2.1.8}/632.js (100%) rename build/{2.1.7 => 2.1.8}/672.js (100%) create mode 100644 build/2.1.8/705.js rename build/{2.1.7 => 2.1.8}/74.js (100%) rename build/{2.1.7 => 2.1.8}/761.js (100%) rename build/{2.1.7 => 2.1.8}/796.js (100%) rename build/{2.1.7 => 2.1.8}/803.js (100%) rename build/{2.1.7 => 2.1.8}/859.js (100%) rename build/{2.1.7 => 2.1.8}/871.js (100%) rename build/{2.1.7 => 2.1.8}/910.js (100%) rename build/{2.1.7 => 2.1.8}/97.js (100%) rename build/{2.1.7 => 2.1.8}/971.js (100%) rename build/{2.1.7 => 2.1.8}/978.js (100%) rename build/{2.1.7 => 2.1.8}/993.js (100%) rename build/{2.1.7 => 2.1.8}/994.js (100%) rename build/{2.1.7 => 2.1.8}/images/ai_bg.55900f2d.png (100%) rename build/{2.1.7 => 2.1.8}/images/ai_bg_low.d8292556.png (100%) rename build/{2.1.7 => 2.1.8}/images/bluesky.733ebcbf.png (100%) rename build/{2.1.7 => 2.1.8}/images/content.fb050ea1.png (100%) rename build/{2.1.7 => 2.1.8}/images/design.cc6a697f.png (100%) rename build/{2.1.7 => 2.1.8}/images/features.593fb09c.png (100%) rename build/{2.1.7 => 2.1.8}/images/full-service.7f58f410.png (100%) rename build/{2.1.7 => 2.1.8}/images/full-service.adb3abd6.png (100%) rename build/{2.1.7 => 2.1.8}/images/help.19cc7e75.png (100%) rename build/{2.1.7 => 2.1.8}/images/step-interstitial.00b15f9e.png (100%) rename build/{2.1.7 => 2.1.8}/images/toggle-light-mode.8d7afd07.png (100%) rename build/{2.1.7 => 2.1.8}/images/wp-admin.2908b886.png (100%) rename build/{2.1.7 => 2.1.8}/images/wp-admin.6c8af0b4.png (100%) rename build/{2.1.7 => 2.1.8}/images/wp-admin.d8650899.png (100%) rename build/{2.1.7 => 2.1.8}/onboarding.asset.php (80%) rename build/{2.1.7 => 2.1.8}/onboarding.css (100%) rename build/{2.1.7 => 2.1.8}/onboarding.js (81%) rename build/{2.1.7 => 2.1.8}/sitegen-theme-marker.asset.php (100%) rename build/{2.1.7 => 2.1.8}/sitegen-theme-marker.css.asset.php (100%) rename build/{2.1.7 => 2.1.8}/sitegen-theme-marker.css.css (100%) rename build/{2.1.7 => 2.1.8}/sitegen-theme-marker.css.js (100%) rename build/{2.1.7 => 2.1.8}/sitegen-theme-marker.js (100%) diff --git a/bootstrap.php b/bootstrap.php index b134362e2..e40aa12e5 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -24,7 +24,7 @@ function nfd_wp_module_onboarding_register() { // Set Global Constants if ( ! defined( 'NFD_ONBOARDING_VERSION' ) ) { - define( 'NFD_ONBOARDING_VERSION', '2.1.7' ); + define( 'NFD_ONBOARDING_VERSION', '2.1.8' ); } if ( ! defined( 'NFD_ONBOARDING_DIR' ) ) { define( 'NFD_ONBOARDING_DIR', __DIR__ ); diff --git a/build/2.1.7/287.js b/build/2.1.7/287.js deleted file mode 100644 index 5082f5431..000000000 --- a/build/2.1.7/287.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[287],{7673:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(1609),o=n(8468);const r=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,o.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const a=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(a)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(a))}))}))}),[]),(0,a.createElement)("span",{className:"wnd-ai-logo",style:t},(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,a.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},8844:(e,t,n)=>{n.d(t,{A:()=>f});var a=n(1609),o=n(8468),r=n(9491),i=n(7143),s=n(7723);var l=n(6427),d=n(7675),c=n(3988),_=n(7673),g=n(8744),u=n(2940),m=n(7835),b=n(148),p=n(8969);const w=()=>{const e=(0,b.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:w,setDrawerActiveView:f,setHideFooterNav:E,setIsHeaderNavigationEnabled:h,updateAllSteps:v,updateTopSteps:N,updateRoutes:S,updateDesignRoutes:y,updateInitialize:k,setCurrentOnboardingData:x,updateSiteGenErrorStatus:A}=(0,i.useDispatch)(d.M);(0,o.useEffect)((()=>{E(!0),t(!0),n(!1),w(p.Ix),h(!0),f(!1)}));const{brandConfig:C,currentData:D}=(0,i.useSelect)((e=>({brandConfig:e(d.M).getNewfoldBrandConfig(),currentData:e(d.M).getCurrentOnboardingData()}))),I=(0,r.useViewportMatch)("small"),F={heading:(0,s.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,s.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,s.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,s.__)("Try again","wp-module-onboarding"),buttonSkip:(0,s.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,s.__)("exit to WordPress","wp-module-onboarding")},M=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:g.rA,O=()=>{A(!1)};return(0,a.createElement)(c.A,{className:"nfd-onboarding-step--site-gen__error"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,a.createElement)(_.A,{height:"100px"})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},F.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},F.subHeading),(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},F.message,(0,a.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:p.R0},F.buttonExit))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,a.createElement)(l.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,u.nC)(C,t))return!1;const n=window.nfdOnboarding.currentFlow,a=(0,m.Sg)(t)();v(a.steps),N(a?.topSteps),S(a.routes),y(a?.designRoutes),g.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,D.activeFlow=t,D.continueWithoutAi=!0,x(D),A(!1),g.d0!==t&&k(!0),e(a.steps[1].path)})(M)}},F.buttonSkip),I?(0,a.createElement)(l.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText)):(0,a.createElement)(l.Fill,{name:`${p.Sr}/${p.gb}`},(0,a.createElement)(l.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText))))))},f=({children:e})=>{const{siteGenErrorStatus:t}=(0,i.useSelect)((e=>({siteGenErrorStatus:e(d.M).getSiteGenErrorStatus()})));return(0,a.createElement)(o.Fragment,null,t?(0,a.createElement)(w,null):e)}},5287:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var a=n(1609),o=n(7143),r=n(8468),i=n(7723);var s=n(8969),l=n(7675),d=n(3988),c=n(6942),_=n.n(c),g=n(7677),u=n(6655);const m=(0,r.memo)((({idx:e,title:t,desc:n,isSelected:o,callback:r})=>(0,a.createElement)("div",{key:e,role:"button",tabIndex:0,className:"nfd__option_heading_subheading",onClick:()=>{r&&"function"==typeof r&&r(e+1)},onKeyDown:()=>{r&&"function"==typeof r&&r(e+1)}},(0,a.createElement)("div",{className:_()("nfd__option_heading_subheading__wrapper",o&&"nfd__option_heading_subheading__wrapper--selected")},(0,a.createElement)("div",{className:"nfd__option_heading_subheading__left"},(0,a.createElement)("div",{className:"nfd__option_heading_subheading__left_top"},t),(0,a.createElement)("div",{className:"nfd__option_heading_subheading__left_bottom"},n)),(0,a.createElement)(g.A,{className:"nfd__option_heading_subheading__right",icon:u.A}))))),b=(0,r.memo)((({title:e,options:t,selection:n,callback:o})=>(0,a.createElement)("div",{className:"nfd-sg-card"},(0,a.createElement)("div",{className:"nfd-sg-card__title"},e),(0,a.createElement)("div",{className:"nfd-sg-card__data"},t.map(((e,t)=>(0,a.createElement)(m,{key:t,idx:t,title:e.title,desc:e.desc,isSelected:e.key===n,callback:o})))))));var p=n(148);const w=(0,r.memo)((({customNavPercentage:e,watcher:t=null})=>{let n=0;const s={title:(0,i.__)("Building Website","wp-module-onboarding"),status:[{title:(0,i.__)("Generating Website","wp-module-onboarding")},{title:(0,i.__)("Finding Font Pairings","wp-module-onboarding")},{title:(0,i.__)("Building Custom Color Palettes","wp-module-onboarding")},{title:(0,i.__)("Populating Images","wp-module-onboarding")},{title:(0,i.__)("Finalizing Previews","wp-module-onboarding")},{title:(0,i.__)("Packaging Website","wp-module-onboarding")}]},d=(0,p.Zp)(),[c,_]=(0,r.useState)(0),[g,u]=(0,r.useState)(s.status[n].title),{currentData:m,nextStep:b}=(0,o.useSelect)((e=>({currentData:e(l.M).getCurrentOnboardingData(),nextStep:e(l.M).getNextStep()})));return(0,r.useEffect)((()=>{const e=setInterval((()=>{n+=1,n===s.status.length&&(n=0),u(s.status[n].title)}),3e3);return()=>{clearInterval(e)}}),[]),(0,r.useEffect)((()=>{_(m?.sitegen?.siteGenMetaStatus?.currentStatus/m?.sitegen?.siteGenMetaStatus?.totalCount*100)}),[m?.sitegen?.siteGenMetaStatus?.currentStatus]),(0,r.useEffect)((()=>{if(c===e&&b){if(null!==t&&!1===t)return;d(b.path)}}),[c,t]),(0,a.createElement)("div",{className:"nfd-sg-loader"},(0,a.createElement)("div",{className:"nfd-sg-loader__title"},s.title),(0,a.createElement)("div",{className:"nfd-sg-loader__progress"},(0,a.createElement)("div",{className:"nfd-sg-loader__progress_bars"},(0,a.createElement)("div",{className:"nfd-sg-loader__progress_bars_bg"}),(0,a.createElement)("div",{className:"nfd-sg-loader__progress_bars_bar",style:{width:`${c}%`}}))),(0,a.createElement)("div",{className:"nfd-sg-loader__status"},`${g}...`))}));var f=n(8844),E=n(1056),h=n(2202),v=n(8744);const N=()=>{const e={heading:(0,i.__)("How familiar are you with using WordPress?","wp-module-onboarding"),options:[{key:1,title:(0,i.__)("Beginner","wp-module-onboarding"),desc:(0,i.__)("First time building a website using WordPress","wp-module-onboarding")},{key:2,title:(0,i.__)("Intermediate","wp-module-onboarding"),desc:(0,i.__)("I’ve built a few sites for myself or others","wp-module-onboarding")},{key:3,title:(0,i.__)("Expert","wp-module-onboarding"),desc:(0,i.__)("I do this frequently","wp-module-onboarding")}]},[t,n]=(0,r.useState)(0),{currentData:c}=(0,o.useSelect)((e=>({currentData:e(l.M).getCurrentOnboardingData()}))),{setIsHeaderEnabled:_,setSidebarActiveView:g,setHeaderActiveView:u,setDrawerActiveView:m,setHideFooterNav:p,setCurrentOnboardingData:N,setIsHeaderNavigationEnabled:S}=(0,o.useDispatch)(l.M);return(0,r.useEffect)((()=>{p(!0),_(!0),g(!1),S(!1),u(s.Ix),m(!1),c.sitegen.experience?.level&&n(c.sitegen.experience.level)})),(0,a.createElement)(f.A,null,(0,a.createElement)(d.A,{isCentered:!0},(0,a.createElement)("div",{className:"nfd-sg-experience-level"},(0,a.createElement)(w,{watcher:0!==t,customNavPercentage:100}),(0,a.createElement)(b,{title:e.heading,options:e.options,selection:t,callback:e=>{n(e),c.sitegen.experience.level=e,N(c);let t=!1;switch(e){case 1:t="novice";break;case 2:t="intermediate";break;case 3:t="expert"}t&&(0,E.v)(new E.iC(h.k2,t,{source:v.d0}))}}))))}}}]); \ No newline at end of file diff --git a/build/2.1.7/619.js b/build/2.1.7/619.js deleted file mode 100644 index 8417e15f3..000000000 --- a/build/2.1.7/619.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[619],{7673:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1609),r=n(8468);const i=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,r.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const a=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(a)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(a))}))}))}),[]),(0,a.createElement)("span",{className:"wnd-ai-logo",style:t},(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,a.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},8844:(e,t,n)=>{n.d(t,{A:()=>f});var a=n(1609),r=n(8468),i=n(9491),o=n(7143),s=n(7723);var d=n(6427),l=n(7675),c=n(3988),g=n(7673),_=n(8744),u=n(2940),m=n(7835),p=n(148),w=n(8969);const b=()=>{const e=(0,p.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:b,setDrawerActiveView:f,setHideFooterNav:v,setIsHeaderNavigationEnabled:E,updateAllSteps:h,updateTopSteps:y,updateRoutes:N,updateDesignRoutes:S,updateInitialize:C,setCurrentOnboardingData:k,updateSiteGenErrorStatus:x}=(0,o.useDispatch)(l.M);(0,r.useEffect)((()=>{v(!0),t(!0),n(!1),b(w.Ix),E(!0),f(!1)}));const{brandConfig:A,currentData:F}=(0,o.useSelect)((e=>({brandConfig:e(l.M).getNewfoldBrandConfig(),currentData:e(l.M).getCurrentOnboardingData()}))),D=(0,i.useViewportMatch)("small"),I={heading:(0,s.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,s.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,s.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,s.__)("Try again","wp-module-onboarding"),buttonSkip:(0,s.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,s.__)("exit to WordPress","wp-module-onboarding")},G=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:_.rA,O=()=>{x(!1)};return(0,a.createElement)(c.A,{className:"nfd-onboarding-step--site-gen__error"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,a.createElement)(g.A,{height:"100px"})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},I.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},I.subHeading),(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},I.message,(0,a.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:w.R0},I.buttonExit))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,a.createElement)(d.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,u.nC)(A,t))return!1;const n=window.nfdOnboarding.currentFlow,a=(0,m.Sg)(t)();h(a.steps),y(a?.topSteps),N(a.routes),S(a?.designRoutes),_.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,F.activeFlow=t,F.continueWithoutAi=!0,k(F),x(!1),_.d0!==t&&C(!0),e(a.steps[1].path)})(G)}},I.buttonSkip),D?(0,a.createElement)(d.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},I.buttonText)):(0,a.createElement)(d.Fill,{name:`${w.Sr}/${w.gb}`},(0,a.createElement)(d.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},I.buttonText))))))},f=({children:e})=>{const{siteGenErrorStatus:t}=(0,o.useSelect)((e=>({siteGenErrorStatus:e(l.M).getSiteGenErrorStatus()})));return(0,a.createElement)(r.Fragment,null,t?(0,a.createElement)(b,null):e)}},619:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var a=n(1609),r=n(8468),i=n(7143),o=n(148),s=n(6087),d=n(3988),l=n(7675),c=n(8969),g=n(7044),_=n(7723);const u=()=>(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"24",viewBox:"-5 -2 36 24",fill:"none",className:"heart"},(0,a.createElement)("g",{id:"State=Active"},(0,a.createElement)("path",{id:"Vector",d:"M10 19.1585L8.975 18.2335C7.20833 16.6168 5.75 15.221 4.6 14.046C3.45 12.871 2.53333 11.821 1.85 10.896C1.16667 9.971 0.6875 9.1335 0.4125 8.3835C0.1375 7.6335 0 6.87516 0 6.1085C0 4.6085 0.504167 3.35433 1.5125 2.346C2.52083 1.33766 3.76667 0.833496 5.25 0.833496C6.2 0.833496 7.07917 1.0585 7.8875 1.5085C8.69583 1.9585 9.4 2.6085 10 3.4585C10.7 2.5585 11.4417 1.896 12.225 1.471C13.0083 1.046 13.85 0.833496 14.75 0.833496C16.2333 0.833496 17.4792 1.33766 18.4875 2.346C19.4958 3.35433 20 4.6085 20 6.1085C20 6.87516 19.8625 7.6335 19.5875 8.3835C19.3125 9.1335 18.8333 9.971 18.15 10.896C17.4667 11.821 16.55 12.871 15.4 14.046C14.25 15.221 12.7917 16.6168 11.025 18.2335L10 19.1585Z",fill:"#EF4A71"}))),m=function({count:e=1,isRegenerating:t}){const n=[];for(let r=0;r{const e=(0,o.Zp)(),[t,n]=(0,r.useState)(!1),[y,N]=(0,r.useState)(!1),[S,C]=(0,r.useState)(!1),[k,x]=(0,r.useState)(!1),A=(0,r.useRef)(),{setIsHeaderEnabled:F,setSidebarActiveView:D,setHeaderActiveView:I,setDrawerActiveView:G,setCurrentOnboardingData:O,updateInitialize:H,setHideFooterNav:R,updateSiteGenErrorStatus:M,setIsHeaderNavigationEnabled:T}=(0,i.useDispatch)(l.M),{currentData:V,nextStep:B,siteGenErrorStatus:L}=(0,i.useSelect)((e=>({currentData:e(l.M).getCurrentOnboardingData(),nextStep:e(l.M).getNextStep(),siteGenErrorStatus:e(l.M).getSiteGenErrorStatus()})));(0,r.useEffect)((()=>{F(!0),R(!0),D(!1),I(c.Ix),G(!1),H(!0),T(!1)}),[V]),(0,r.useEffect)((()=>{!0===A.current&&!1===L&&(z(),W()),A.current=L}),[L]);const z=async()=>{if(C(!0),!(0,s.isEmpty)(V.sitegen.homepages.data))return n(V.sitegen.homepages.data),C(!1),void q();if(""===V.sitegen.siteDetails?.prompt)return void C(!1);const e=await(0,p.c7)(V.sitegen.siteDetails.prompt);if(e.error)return C(!1),void M(!0);V.sitegen.homepages.data=e.body,n(e.body),O(V),C(!1),q()},q=()=>{window.nfdOnboarding.siteGenTimerInterval&&(clearInterval(window.nfdOnboarding.siteGenTimerInterval),(0,v.v)(new v.iC(E.uv,window.nfdOnboarding.siteGenTime,{source:h.d0})))},W=async()=>{const e=await(0,w.w6)();e.error?C(!1):x(e.body)};(0,r.useEffect)((()=>{z(),W()}),[]);const Z=(n,a)=>{if(!(n in t))return!1;V.sitegen.homepages.active=t[n],V.sitegen.skipCache=!1,O(V),(0,v.v)(new v.iC(E.Wi,n,{position:a,source:h.d0})),e(B.path)},P=(e,a)=>{if(!(e in t))return;const r=!t[e].isFavorite;t[e].isFavorite=r,V.sitegen.homepages.data=t,n(t),O(V),(0,v.v)(new v.iC(E.Nz,e,{favorite:r,placement:"preview_grid",position:a,source:h.d0}))},$=async(e,a,r,i)=>{if(document.getElementsByClassName("nfd-onboarding-step--site-gen__preview__note")&&document.getElementsByClassName("nfd-onboarding-step--site-gen__preview__note")[0].scrollIntoView({behavior:"smooth",block:"end"}),N(!0),!(e in t))return void N(!1);if(""===V.sitegen.siteDetails?.prompt)return void N(!1);const o=await(0,p.HA)(V.sitegen.siteDetails.prompt,e,a,r);if(o.error)return void N(!1);const s=o.body;t[s.slug]=s,V.sitegen.homepages.data=t,n(t),O(V),N(!1),(0,v.v)(new v.iC(E.Hf,e,{position:i,source:h.d0,placement:"preview_grid"}))},j={heading:(0,_.__)("Presto, here are 3 versions","wp-module-onboarding"),subheading:(0,_.__)("We've created 3 unique website designs for you to start with, preview click around or start over.","wp-module-onboarding"),favouriteNote:(0,_.__)("Favorite a generated version to find and use again in the future.","wp-module-onboarding"),generating:(0,_.__)("Generating Site","wp-module-onboarding"),regenerating:(0,_.__)("Regenerating Site","wp-module-onboarding")};return(0,a.createElement)(b.A,null,(0,a.createElement)(d.A,{className:"nfd-onboarding-step--site-gen__preview"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__container"},!S&&(0,a.createElement)(f.A,{type:"fade-in"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__preview__container__heading__text"},j.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__preview__container__sub-heading__text"},j.subheading)))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__options"},t&&k&&!S?Object.keys(t).map(((e,n)=>{const r=t[e],i=(0,s.cloneDeep)(k[0]);i.settings.color.palette=r.color.palette;const o=r.styles?.blocks[0]?.["core/body"]?.typography?.fontFamily,d=r.styles?.blocks[0]?.["core/heading"]?.typography?.fontFamily;i.styles.typography&&o&&(i.styles.typography.fontFamily=o),i.styles.blocks["core/heading"].typography&&d&&(i.styles.blocks["core/heading"].typography.fontFamily=d);let l="";return["header","content","footer"].forEach((e=>{e in r&&(l+=r[e])})),(0,a.createElement)(g.GZ,{key:n,blockGrammar:l,previewSettings:i,slug:e,position:n+1,title:r.title,isFavorite:r.isFavorite,palette:r.color,styling:"custom",overlay:!0,tabIndex:"0",role:"button",handleFavorite:P,handleRegenerate:$,handlePreview:Z,isRegenerating:y})})):(0,a.createElement)(m,{count:3,isRegenerating:!1}),y&&(0,a.createElement)(m,{count:1,isRegenerating:!0})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__note"},(0,a.createElement)(u,null),(0,a.createElement)("span",null,j.favouriteNote))))}}}]); \ No newline at end of file diff --git a/build/2.1.7/705.js b/build/2.1.7/705.js deleted file mode 100644 index 72db40204..000000000 --- a/build/2.1.7/705.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[705],{6999:(e,t,n)=>{n.d(t,{A:()=>g});var a=n(1609),o=n(6942),r=n.n(o),i=n(148),s=n(7143),l=n(6427),d=n(7677),c=n(6655),u=n(7675);const g=({text:e,className:t,callback:n=null,disabled:o=!1,showChevronRight:g=!0})=>{const _=(0,i.Zp)(),{nextStep:m}=(0,s.useSelect)((e=>({nextStep:e(u.M).getNextStep()})));return(0,a.createElement)(l.Button,{className:r()("nfd-onboarding-button--site-gen-next",{"nfd-onboarding-button--site-gen-next--disabled":o},t),onClick:()=>{o||(n&&"function"==typeof n&&n(),m&&_(m.path))}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},e),g&&(0,a.createElement)(d.A,{className:"nfd-onboarding-button--site-gen-next--icon",icon:c.A}))}},513:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1609),o=n(8468),r=n(7673);const i=(0,o.memo)((({title:e})=>(0,a.createElement)("div",{className:"ai-heading"},(0,a.createElement)(r.A,{height:"40px"}),(0,a.createElement)("div",{className:"ai-heading--title"},e))))},7673:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(1609),o=n(8468);const r=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,o.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const a=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(a)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(a))}))}))}),[]),(0,a.createElement)("span",{className:"wnd-ai-logo",style:t},(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,a.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},8844:(e,t,n)=>{n.d(t,{A:()=>w});var a=n(1609),o=n(8468),r=n(9491),i=n(7143),s=n(7723);var l=n(6427),d=n(7675),c=n(3988),u=n(7673),g=n(8744),_=n(2940),m=n(7835),p=n(148),b=n(8969);const h=()=>{const e=(0,p.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:h,setDrawerActiveView:w,setHideFooterNav:f,setIsHeaderNavigationEnabled:E,updateAllSteps:N,updateTopSteps:v,updateRoutes:x,updateDesignRoutes:S,updateInitialize:A,setCurrentOnboardingData:y,updateSiteGenErrorStatus:C}=(0,i.useDispatch)(d.M);(0,o.useEffect)((()=>{f(!0),t(!0),n(!1),h(b.Ix),E(!0),w(!1)}));const{brandConfig:k,currentData:I}=(0,i.useSelect)((e=>({brandConfig:e(d.M).getNewfoldBrandConfig(),currentData:e(d.M).getCurrentOnboardingData()}))),D=(0,r.useViewportMatch)("small"),H={heading:(0,s.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,s.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,s.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,s.__)("Try again","wp-module-onboarding"),buttonSkip:(0,s.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,s.__)("exit to WordPress","wp-module-onboarding")},F=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:g.rA,T=()=>{C(!1)};return(0,a.createElement)(c.A,{className:"nfd-onboarding-step--site-gen__error"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,a.createElement)(u.A,{height:"100px"})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},H.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},H.subHeading),(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},H.message,(0,a.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:b.R0},H.buttonExit))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,a.createElement)(l.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,_.nC)(k,t))return!1;const n=window.nfdOnboarding.currentFlow,a=(0,m.Sg)(t)();N(a.steps),v(a?.topSteps),x(a.routes),S(a?.designRoutes),g.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,I.activeFlow=t,I.continueWithoutAi=!0,y(I),C(!1),g.d0!==t&&A(!0),e(a.steps[1].path)})(F)}},H.buttonSkip),D?(0,a.createElement)(l.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{T()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},H.buttonText)):(0,a.createElement)(l.Fill,{name:`${b.Sr}/${b.gb}`},(0,a.createElement)(l.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{T()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},H.buttonText))))))},w=({children:e})=>{const{siteGenErrorStatus:t}=(0,i.useSelect)((e=>({siteGenErrorStatus:e(d.M).getSiteGenErrorStatus()})));return(0,a.createElement)(o.Fragment,null,t?(0,a.createElement)(h,null):e)}},8705:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var a=n(1609),o=n(9491),r=n(7143),i=n(8468),s=n(7723);var l=n(431),d=n(8969),c=n(7675),u=n(513),g=n(3988),_=n(6942),m=n.n(_);const p=(0,i.memo)((({hint:e,height:t,children:n,placeholder:o,customerInput:r,setIsValidInput:l,setCustomerInput:d,setCustomerInputStrength:c,customChildren:u=!1})=>{const g=(0,i.useRef)(null),[_,p]=(0,i.useState)(0),[b,h]=(0,i.useState)("nfd-sg-input-box__field");(0,i.useEffect)((()=>{g.current.style.height=t;const e=g.current.scrollHeight;g.current.style.height=e+"px";const n=w(r?.trim());p(n),c(n),l(n>=2)}),[r]);const w=e=>{const t=e?.length;let n=0;return t>200?n=3:t>150?n=2:t>100&&(n=1),n},f=e=>{if(e<=_)return"nfd-sg-input-box__info-icon--selected"};return(0,a.createElement)("div",{className:"nfd-sg-input"},(0,a.createElement)("label",{htmlFor:b},(0,a.createElement)("div",{className:"nfd-sg-input-box"},(0,a.createElement)("textarea",{"data-wnd-ai-logo":!0,type:"text",className:b,ref:g,style:{height:"47px"},placeholder:o,value:r,onChange:e=>(e=>{e.preventDefault(),d(e.target.value),h("nfd-sg-input-box__field")})(e)})),(0,a.createElement)("div",{className:"nfd-sg-input-box_bottom"},r?(0,a.createElement)("div",{className:"nfd-sg-input-box__info"},(0,a.createElement)("div",{className:"nfd-sg-input-box__info-text"},(0,s.__)("Detail","wp-module-onboarding")),(()=>{const e=[];for(let t=1;t<=3;t++)e.push((0,a.createElement)("div",{className:m()("nfd-sg-input-box__info-icon",f(t))}));return e})()):(0,a.createElement)("p",{className:"nfd-sg-input-box__hint"},e),u&&n)))}));var b=n(6999),h=n(8844),w=n(1056),f=n(2202),E=n(8744);const N=()=>{const e={heading:(0,s.__)("Tell me some details about the site you want created?","wp-module-onboarding"),inputPlaceholder:(0,s.__)("I want a site for my company that sells…","wp-module-onboarding"),inputHint:(0,s.__)("The more detail the better","wp-module-onboarding"),buttonText:(0,s.__)("Next","wp-module-onboarding"),walkThroughText:(0,s.__)("Not sure what to say? We can walk you through it.","wp-module-onboarding"),walkThroughlink:(0,s.__)("click here","wp-module-onboarding")},t=(0,o.useViewportMatch)("small"),[n,_]=(0,i.useState)(),[m,N]=(0,i.useState)(0),[v,x]=(0,i.useState)(!1),{currentData:S}=(0,r.useSelect)((e=>({currentData:e(c.M).getCurrentOnboardingData()}))),{setIsFooterNavAllowed:A,setIsHeaderEnabled:y,setSidebarActiveView:C,setHeaderActiveView:k,setDrawerActiveView:I,setHideFooterNav:D,setCurrentOnboardingData:H,setIsHeaderNavigationEnabled:F}=(0,r.useDispatch)(c.M);return(0,i.useEffect)((()=>{if(D(!1),y(!0),C(!1),k(d.Ix),F(!0),I(!1),""!==S.sitegen.siteDetails?.prompt)return x(!0),A(!0),_(S.sitegen.siteDetails.prompt);A(!1)}),[]),(0,i.useEffect)((()=>{void 0!==n&&""!==n&&n!==S.sitegen.siteDetails.prompt&&(S.sitegen.siteDetails.prompt=n?.trim(),S.sitegen.siteDetails.mode="simple",S.sitegen.skipCache=!0,S.sitegen.sitemapPagesGenerated=!1,S.sitegen.homepages.active={},S.sitegen.homepages.data={},H(S)),A(v)}),[n]),(0,a.createElement)(h.A,null,(0,a.createElement)(g.A,{isCentered:!0},(0,a.createElement)(l.A,{type:"fade-in"},(0,a.createElement)("div",{className:"nfd-sg-site-details"},(0,a.createElement)(u.A,{title:e.heading}),(0,a.createElement)(p,{placeholder:e.inputPlaceholder,hint:e.inputHint,height:"40px",customerInput:n,setIsValidInput:x,setCustomerInput:_,setCustomerInputStrength:N,customChildren:!0},t&&(0,a.createElement)("div",{className:"nfd-sg-site-details-endrow"},(0,a.createElement)(b.A,{className:"nfd-sg-site-details--next-btn",callback:()=>{(()=>{let e=!1;switch(m){case 2:e="MEDIUM";break;case 3:e="HIGH"}e&&(0,w.v)(new w.iC(f.WN,n,{strength:e,source:E.d0}))})()},text:e.buttonText,disabled:!v})))))))}}}]); \ No newline at end of file diff --git a/build/2.1.7/100.css b/build/2.1.8/100.css similarity index 100% rename from build/2.1.7/100.css rename to build/2.1.8/100.css diff --git a/build/2.1.7/100.js b/build/2.1.8/100.js similarity index 100% rename from build/2.1.7/100.js rename to build/2.1.8/100.js diff --git a/build/2.1.7/106.js b/build/2.1.8/106.js similarity index 100% rename from build/2.1.7/106.js rename to build/2.1.8/106.js diff --git a/build/2.1.7/202.js b/build/2.1.8/202.js similarity index 100% rename from build/2.1.7/202.js rename to build/2.1.8/202.js diff --git a/build/2.1.7/206.js b/build/2.1.8/206.js similarity index 100% rename from build/2.1.7/206.js rename to build/2.1.8/206.js diff --git a/build/2.1.7/270.js b/build/2.1.8/270.js similarity index 100% rename from build/2.1.7/270.js rename to build/2.1.8/270.js diff --git a/build/2.1.8/287.js b/build/2.1.8/287.js new file mode 100644 index 000000000..f69e56448 --- /dev/null +++ b/build/2.1.8/287.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[287],{7673:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(1609),o=n(8468);const r=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,o.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const a=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(a)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(a))}))}))}),[]),(0,a.createElement)("span",{className:"wnd-ai-logo",style:t},(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,a.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},8844:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(1609),o=n(8468),r=n(7143),i=n(7675),s=n(1056),l=n(2202),d=n(8744),c=n(9491),_=n(7723);var g=n(6427),u=n(3988),m=n(7673),b=n(2940),p=n(7835),w=n(148),f=n(8969);const E=()=>{const e=(0,w.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:s,setDrawerActiveView:l,setHideFooterNav:E,setIsHeaderNavigationEnabled:h,updateAllSteps:v,updateTopSteps:N,updateRoutes:S,updateDesignRoutes:y,updateInitialize:k,setCurrentOnboardingData:x,updateSiteGenErrorStatus:A}=(0,r.useDispatch)(i.M);(0,o.useEffect)((()=>{E(!0),t(!0),n(!1),s(f.Ix),h(!0),l(!1)}));const{brandConfig:C,currentData:D}=(0,r.useSelect)((e=>({brandConfig:e(i.M).getNewfoldBrandConfig(),currentData:e(i.M).getCurrentOnboardingData()}))),I=(0,c.useViewportMatch)("small"),F={heading:(0,_.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,_.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,_.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,_.__)("Try again","wp-module-onboarding"),buttonSkip:(0,_.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,_.__)("exit to WordPress","wp-module-onboarding")},M=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:d.rA,O=()=>{A(!1)};return(0,a.createElement)(u.A,{className:"nfd-onboarding-step--site-gen__error"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,a.createElement)(m.A,{height:"100px"})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},F.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},F.subHeading),(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},F.message,(0,a.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:f.R0},F.buttonExit))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,a.createElement)(g.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,b.nC)(C,t))return!1;const n=window.nfdOnboarding.currentFlow,a=(0,p.Sg)(t)();v(a.steps),N(a?.topSteps),S(a.routes),y(a?.designRoutes),d.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,D.activeFlow=t,D.continueWithoutAi=!0,x(D),A(!1),d.d0!==t&&k(!0),e(a.steps[1].path)})(M)}},F.buttonSkip),I?(0,a.createElement)(g.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText)):(0,a.createElement)(g.Fill,{name:`${f.Sr}/${f.gb}`},(0,a.createElement)(g.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},F.buttonText))))))},h=({children:e})=>{const{siteGenErrorStatus:t}=(0,r.useSelect)((e=>({siteGenErrorStatus:e(i.M).getSiteGenErrorStatus()})));return(0,o.useEffect)((()=>{!0===t&&(0,s.v)(new s.iC(l.cW,void 0,{source:d.d0}))}),[t]),(0,a.createElement)(o.Fragment,null,t?(0,a.createElement)(E,null):e)}},5287:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var a=n(1609),o=n(7143),r=n(8468),i=n(7723);var s=n(8969),l=n(7675),d=n(3988),c=n(6942),_=n.n(c),g=n(7677),u=n(6655);const m=(0,r.memo)((({idx:e,title:t,desc:n,isSelected:o,callback:r})=>(0,a.createElement)("div",{key:e,role:"button",tabIndex:0,className:"nfd__option_heading_subheading",onClick:()=>{r&&"function"==typeof r&&r(e+1)},onKeyDown:()=>{r&&"function"==typeof r&&r(e+1)}},(0,a.createElement)("div",{className:_()("nfd__option_heading_subheading__wrapper",o&&"nfd__option_heading_subheading__wrapper--selected")},(0,a.createElement)("div",{className:"nfd__option_heading_subheading__left"},(0,a.createElement)("div",{className:"nfd__option_heading_subheading__left_top"},t),(0,a.createElement)("div",{className:"nfd__option_heading_subheading__left_bottom"},n)),(0,a.createElement)(g.A,{className:"nfd__option_heading_subheading__right",icon:u.A}))))),b=(0,r.memo)((({title:e,options:t,selection:n,callback:o})=>(0,a.createElement)("div",{className:"nfd-sg-card"},(0,a.createElement)("div",{className:"nfd-sg-card__title"},e),(0,a.createElement)("div",{className:"nfd-sg-card__data"},t.map(((e,t)=>(0,a.createElement)(m,{key:t,idx:t,title:e.title,desc:e.desc,isSelected:e.key===n,callback:o})))))));var p=n(148);const w=(0,r.memo)((({customNavPercentage:e,watcher:t=null})=>{let n=0;const s={title:(0,i.__)("Building Website","wp-module-onboarding"),status:[{title:(0,i.__)("Generating Website","wp-module-onboarding")},{title:(0,i.__)("Finding Font Pairings","wp-module-onboarding")},{title:(0,i.__)("Building Custom Color Palettes","wp-module-onboarding")},{title:(0,i.__)("Populating Images","wp-module-onboarding")},{title:(0,i.__)("Finalizing Previews","wp-module-onboarding")},{title:(0,i.__)("Packaging Website","wp-module-onboarding")}]},d=(0,p.Zp)(),[c,_]=(0,r.useState)(0),[g,u]=(0,r.useState)(s.status[n].title),{currentData:m,nextStep:b}=(0,o.useSelect)((e=>({currentData:e(l.M).getCurrentOnboardingData(),nextStep:e(l.M).getNextStep()})));return(0,r.useEffect)((()=>{const e=setInterval((()=>{n+=1,n===s.status.length&&(n=0),u(s.status[n].title)}),3e3);return()=>{clearInterval(e)}}),[]),(0,r.useEffect)((()=>{_(m?.sitegen?.siteGenMetaStatus?.currentStatus/m?.sitegen?.siteGenMetaStatus?.totalCount*100)}),[m?.sitegen?.siteGenMetaStatus?.currentStatus]),(0,r.useEffect)((()=>{if(c===e&&b){if(null!==t&&!1===t)return;d(b.path)}}),[c,t]),(0,a.createElement)("div",{className:"nfd-sg-loader"},(0,a.createElement)("div",{className:"nfd-sg-loader__title"},s.title),(0,a.createElement)("div",{className:"nfd-sg-loader__progress"},(0,a.createElement)("div",{className:"nfd-sg-loader__progress_bars"},(0,a.createElement)("div",{className:"nfd-sg-loader__progress_bars_bg"}),(0,a.createElement)("div",{className:"nfd-sg-loader__progress_bars_bar",style:{width:`${c}%`}}))),(0,a.createElement)("div",{className:"nfd-sg-loader__status"},`${g}...`))}));var f=n(8844),E=n(1056),h=n(2202),v=n(8744);const N=()=>{const e={heading:(0,i.__)("How familiar are you with using WordPress?","wp-module-onboarding"),options:[{key:1,title:(0,i.__)("Beginner","wp-module-onboarding"),desc:(0,i.__)("First time building a website using WordPress","wp-module-onboarding")},{key:2,title:(0,i.__)("Intermediate","wp-module-onboarding"),desc:(0,i.__)("I’ve built a few sites for myself or others","wp-module-onboarding")},{key:3,title:(0,i.__)("Expert","wp-module-onboarding"),desc:(0,i.__)("I do this frequently","wp-module-onboarding")}]},[t,n]=(0,r.useState)(0),{currentData:c}=(0,o.useSelect)((e=>({currentData:e(l.M).getCurrentOnboardingData()}))),{setIsHeaderEnabled:_,setSidebarActiveView:g,setHeaderActiveView:u,setDrawerActiveView:m,setHideFooterNav:p,setCurrentOnboardingData:N,setIsHeaderNavigationEnabled:S}=(0,o.useDispatch)(l.M);return(0,r.useEffect)((()=>{p(!0),_(!0),g(!1),S(!1),u(s.Ix),m(!1),c.sitegen.experience?.level&&n(c.sitegen.experience.level)})),(0,a.createElement)(f.A,null,(0,a.createElement)(d.A,{isCentered:!0},(0,a.createElement)("div",{className:"nfd-sg-experience-level"},(0,a.createElement)(w,{watcher:0!==t,customNavPercentage:100}),(0,a.createElement)(b,{title:e.heading,options:e.options,selection:t,callback:e=>{n(e),c.sitegen.experience.level=e,N(c);let t=!1;switch(e){case 1:t="novice";break;case 2:t="intermediate";break;case 3:t="expert"}t&&(0,E.v)(new E.iC(h.k2,t,{source:v.d0}))}}))))}}}]); \ No newline at end of file diff --git a/build/2.1.7/325.js b/build/2.1.8/325.js similarity index 100% rename from build/2.1.7/325.js rename to build/2.1.8/325.js diff --git a/build/2.1.7/328.js b/build/2.1.8/328.js similarity index 100% rename from build/2.1.7/328.js rename to build/2.1.8/328.js diff --git a/build/2.1.7/340.js b/build/2.1.8/340.js similarity index 100% rename from build/2.1.7/340.js rename to build/2.1.8/340.js diff --git a/build/2.1.7/356.js b/build/2.1.8/356.js similarity index 100% rename from build/2.1.7/356.js rename to build/2.1.8/356.js diff --git a/build/2.1.7/366.js b/build/2.1.8/366.js similarity index 100% rename from build/2.1.7/366.js rename to build/2.1.8/366.js diff --git a/build/2.1.7/367.js b/build/2.1.8/367.js similarity index 100% rename from build/2.1.7/367.js rename to build/2.1.8/367.js diff --git a/build/2.1.7/377.js b/build/2.1.8/377.js similarity index 64% rename from build/2.1.7/377.js rename to build/2.1.8/377.js index 45c3da29e..13fddc3bb 100644 --- a/build/2.1.7/377.js +++ b/build/2.1.8/377.js @@ -1 +1 @@ -(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[377],{5706:(e,t)=>{(()=>{var e={537:(e,t)=>{!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{NewfoldRuntime:function(){return a}});var o=window.wp.url;const a={hasCapability:e=>!0===window.NewfoldRuntime?.capabilities[e],adminUrl:e=>window.NewfoldRuntime?.admin_url+e,createApiUrl:(e,t={})=>(0,o.addQueryArgs)(window.NewfoldRuntime?.base_url,{rest_route:e,...t}),get siteDetails(){return window.NewfoldRuntime?.site},get sdk(){return window.NewfoldRuntime?.sdk},get isWoo(){return window.NewfoldRuntime?.isWoocommerceActive},get ecommerce(){return window.NewfoldRuntime?.ecommerce},get plugin(){return window.NewfoldRuntime?.plugin},get wpversion(){return window.NewfoldRuntime?.wpversion},get siteTitle(){return window.NewfoldRuntime?.siteTitle}};var r=t;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})}()},967:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";o.r(a),o.d(a,{FacebookConnectButton:()=>_,FacebookConnectPluginView:()=>p,facebookConnectHelper:()=>g,getFacebookUserProfileDetails:()=>s});const e=window.React,t=window.wp.components,n=window.wp.apiFetch;var r=o.n(n),i=o(537);const c={facebook_module:{base_url:"https://graph.facebook.com/v18.0",debug_token:"/debug_token",token_phrase:"secret_token_phrase"},wordpress:{access:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/hiive"),fb_token:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/fb_token"),facebook_details:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/details"),facebook_logout:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/logout")},cf_worker:{login_screen:"https://hiive.cloud/workers/facebook-connect/",get_token:"https://hiive.cloud/workers/facebook-connect/get/token?hiive_token=",delete_token:"https://hiive.cloud/workers/facebook-connect/delete/token?hiive_token="}},s=()=>r()({url:c.wordpress.facebook_details}).then((e=>{if(e?.details?.error)throw{message:"failed to load the data",error:e?.details?.error};return e?.details})).catch((e=>{throw{message:"failed to load the data",errorMsg:e}})),l=window.wp.i18n;var d=o(967),u=o.n(d);const _=({className:n,children:o,showData:a,onConnect:i,onDisconnect:d,onFailure:_,onClick:p})=>{const[g,m]=(0,e.useState)(""),[f,w]=(0,e.useState)(!1),[b,h]=(0,e.useState)([]),[v,k]=(0,e.useState)(!1);function E(e){var t;e.origin.search("https://hiive.cloud")<0||(k(!0),window.removeEventListener("message",E),(t=e.data,r()({url:`${c.wordpress.fb_token}`,data:t,method:"POST"})).then((e=>{y()})).catch((()=>k(!1))))}const y=()=>{s().then((e=>{"token not found!"!==e&&(w(!0),h(e),k(!1),"function"==typeof i&&i(e))})).catch((()=>r()({url:c.wordpress.access}).then((e=>{s().then((e=>{"token not found!"!==e&&(w(!0),h(e),"function"==typeof i&&i(e)),k(!1)})).catch((e=>{k(!1),"function"==typeof _&&_(e),console.error(e)})),m(e.token)})).catch((e=>{k(!1),"function"==typeof _&&_(e),console.error(e)}))))};return(0,e.useEffect)((()=>{!g&&r()({url:c.wordpress.access}).then((e=>{e.token&&m(e.token)})),y()}),[]),(0,e.createElement)("div",null,f?(0,e.createElement)("div",null,(0,e.createElement)(t.Button,{className:u()("nfd-facebook-button--connected",`${n}--connected`)},(0,l.__)("Connected","wp-module-facebook")),a&&(0,e.createElement)("div",null,b?.map((t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{style:{paddingTop:"20px"}},(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Facebook ID: ",t?.User?.profile?.id)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Name: ",t?.User?.profile?.name)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Email: ",t?.User?.profile?.email)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Profile pic:",t?.User?.profile?.picture?.data?.url))),(0,e.createElement)("img",{src:`https://graph.facebook.com/${t?.id}/picture?type=small`,height:t?.picture?.height,width:t?.picture?.width})))))):(0,e.createElement)(t.Button,{type:"submit",disabled:v,className:u()("nfd-facebook-button--connect",`${n}--connect`),onClick:()=>(window.open(`${c.cf_worker.login_screen}?token_hiive=${g}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),window.addEventListener("message",E,!1),void("function"==typeof p&&p()))},o,(0,l.__)("Connect Facebook","wp-module-facebook"),v&&(0,e.createElement)(t.Spinner,null)))},p=({fbLogin:n,loginInfo:o,getFbDetails:a})=>{const[i,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>s(!1)),[]),n&&(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:"20px"}},(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",width:"30px",fill:"#405795",viewBox:"0 0 24 24",style:{marginRight:"10px"}},(0,e.createElement)("path",{d:"M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"})),(0,e.createElement)("p",{style:{fontSize:"0.9rem",fontWeight:"600",paddingLeft:"15px"}},"Facebook -",(0,e.createElement)("span",{style:{fontWeight:"normal"}},o?.user?.profile?.email))),i?(0,e.createElement)(t.Spinner,null):(0,e.createElement)("button",{style:{color:"#286BDE"},onClick:()=>(async()=>{s(!0),await r()({url:c.wordpress.facebook_logout}).then((e=>e)).catch((e=>{throw{message:"failed to load the data",errorMsg:e}})).then((()=>{a()})),s(!1)})()},"Disconnect"))},g=async e=>{let t="",n=null,o=[];const a=()=>r()({url:c.wordpress.access}).then((e=>{r()({url:`${c.wordpress.fb_token}`,headers:{method:"GET","content-type":"application/json","Accept-Encoding":"gzip, deflate, br","Access-Control-Allow-Origin":"*"}}).then((e=>{var t;e.token&&(t=e.token,r()({url:c.wordpress.settings,method:"post",data:{fb_token:t}}).then((e=>e)).catch((e=>{console.error(e)})),n=e.token)})).catch((e=>{console.error(e)})),t=e.token})).catch((e=>{console.error(e)}));await a(),await r()({url:c.wordpress.fb_token}).then((async r=>{if(r?.fb_token)await s().then((e=>(n=r.fb_token,o=[e],o)));else{const n=window.open(`${c.cf_worker.login_screen}?token_hiive=${t}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),o=setInterval((async function(){n?.closed&&(clearInterval(o),await a(),e())}),1e3)}}))}})();var r=t;for(var i in a)r[i]=a[i];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()},6999:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var o=n(1609),a=n(6942),r=n.n(a),i=n(148),c=n(7143),s=n(6427),l=n(7677),d=n(6655),u=n(7675);const _=({text:e,className:t,callback:n=null,disabled:a=!1,showChevronRight:_=!0})=>{const p=(0,i.Zp)(),{nextStep:g}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep()})));return(0,o.createElement)(s.Button,{className:r()("nfd-onboarding-button--site-gen-next",{"nfd-onboarding-button--site-gen-next--disabled":a},t),onClick:()=>{a||(n&&"function"==typeof n&&n(),g&&p(g.path))}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},e),_&&(0,o.createElement)(l.A,{className:"nfd-onboarding-button--site-gen-next--icon",icon:d.A}))}},513:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(1609),a=n(8468),r=n(7673);const i=(0,a.memo)((({title:e})=>(0,o.createElement)("div",{className:"ai-heading"},(0,o.createElement)(r.A,{height:"40px"}),(0,o.createElement)("div",{className:"ai-heading--title"},e))))},7673:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(1609),a=n(8468);const r=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,a.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const o=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(o)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(o))}))}))}),[]),(0,o.createElement)("span",{className:"wnd-ai-logo",style:t},(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,o.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},2607:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var o=n(1609),a=n(7723),r=n(8468),i=n(6427),c=n(7143),s=n(148),l=n(4371),d=n(6079),u=n(7675),_=n(2014),p=n(8969),g=n(2202),m=n(6942),f=n.n(m);const w=(0,r.memo)((({callback:e=!1,className:t,text:n})=>{const r=(0,s.Zp)(),m=(0,s.zy)(),{nextStep:w,currentData:b,socialData:h}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep(),currentData:e(u.M).getCurrentOnboardingData(),socialData:e(u.M).getOnboardingSocialData()})),[]),v=null===w||!1===w,{setOnboardingSocialData:k}=(0,c.useDispatch)(u.M);return(0,o.createElement)(i.Button,{className:f()("skip-button",t),onClick:v?()=>async function(e){if(b){if(b.isComplete=(new Date).getTime(),e?.includes("basic-info")){const e=await async function(){const e=await(0,_.mt)(),t=await(0,_.oc)(h);return null!==t?.error?e?.body:t?.body}();e&&k(e),await l.y.dispatchEvents(g.XJ)}(0,d.V1)(b)}window.location.replace(p.R0)}(m.pathname):()=>("function"==typeof e&&e(),void r(w.path))},n||(0,a.__)("Skip this Step","wp-module-onboarding"))}))},8844:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var o=n(1609),a=n(8468),r=n(9491),i=n(7143),c=n(7723);var s=n(6427),l=n(7675),d=n(3988),u=n(7673),_=n(8744),p=n(2940),g=n(7835),m=n(148),f=n(8969);const w=()=>{const e=(0,m.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:w,setDrawerActiveView:b,setHideFooterNav:h,setIsHeaderNavigationEnabled:v,updateAllSteps:k,updateTopSteps:E,updateRoutes:y,updateDesignRoutes:N,updateInitialize:S,setCurrentOnboardingData:x,updateSiteGenErrorStatus:A}=(0,i.useDispatch)(l.M);(0,a.useEffect)((()=>{h(!0),t(!0),n(!1),w(f.Ix),v(!0),b(!1)}));const{brandConfig:C,currentData:D}=(0,i.useSelect)((e=>({brandConfig:e(l.M).getNewfoldBrandConfig(),currentData:e(l.M).getCurrentOnboardingData()}))),F=(0,r.useViewportMatch)("small"),O={heading:(0,c.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,c.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,c.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,c.__)("Try again","wp-module-onboarding"),buttonSkip:(0,c.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,c.__)("exit to WordPress","wp-module-onboarding")},M=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:_.rA,R=()=>{A(!1)};return(0,o.createElement)(d.A,{className:"nfd-onboarding-step--site-gen__error"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,o.createElement)(u.A,{height:"100px"})),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,o.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},O.heading)),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,o.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},O.subHeading),(0,o.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},O.message,(0,o.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:f.R0},O.buttonExit))),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,o.createElement)(s.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,p.nC)(C,t))return!1;const n=window.nfdOnboarding.currentFlow,o=(0,g.Sg)(t)();k(o.steps),E(o?.topSteps),y(o.routes),N(o?.designRoutes),_.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,D.activeFlow=t,D.continueWithoutAi=!0,x(D),A(!1),_.d0!==t&&S(!0),e(o.steps[1].path)})(M)}},O.buttonSkip),F?(0,o.createElement)(s.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{R()}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},O.buttonText)):(0,o.createElement)(s.Fill,{name:`${f.Sr}/${f.gb}`},(0,o.createElement)(s.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{R()}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},O.buttonText))))))},b=({children:e})=>{const{siteGenErrorStatus:t}=(0,i.useSelect)((e=>({siteGenErrorStatus:e(l.M).getSiteGenErrorStatus()})));return(0,o.createElement)(a.Fragment,null,t?(0,o.createElement)(w,null):e)}},5377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var o=n(1609),a=n(7143),r=n(8468),i=n(9491),c=n(7723);var s=n(8969),l=n(2607),d=n(7675),u=n(3988),_=n(513),p=n(6999),g=n(5706),m=n(148),f=n(8844),w=n(1056),b=n(2202),h=n(8744);const v=(0,r.memo)((()=>{const e=(0,i.useViewportMatch)("small"),t=(0,m.Zp)(),[n,v]=(0,r.useState)(!1),[k,E]=(0,r.useState)(!1),{setIsHeaderEnabled:y,setSidebarActiveView:N,setHeaderActiveView:S,setDrawerActiveView:x,setIsFooterNavAllowed:A,updateSiteGenErrorStatus:C,setIsHeaderNavigationEnabled:D}=(0,a.useDispatch)(d.M);(0,r.useEffect)((()=>{y(!0),N(!1),S(s.Ix),x(!1),D(!0)}));const{nextStep:F}=(0,a.useSelect)((e=>({nextStep:e(d.M).getNextStep()})));(0,r.useEffect)((()=>{A(n),k&&n&&t(F.path)}),[k,n]);const O={heading:(0,c.__)("Do you want to include any content from Facebook?","wp-module-onboarding"),facebookTitle:(0,c.__)("Connect a Facebook Account","wp-module-onboarding"),facebookDesc:(0,c.__)("By connecting a Facebook profile, we can fetch relevant data to increase the accuracy of your AI generated site.","wp-module-onboarding"),facebookButton:(0,c.__)("Connect Facebook","wp-module-onboarding"),buttons:{skip:(0,c.__)("Skip for now","wp-module-onboarding"),next:(0,c.__)("Next","wp-module-onboarding")}};return(0,o.createElement)(f.A,null,(0,o.createElement)(u.A,{isCentered:!0,className:"nfd-onboarding-step--site-gen__social-media"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container"},(0,o.createElement)(_.A,{title:O.heading}),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain "},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containleft "},(0,o.createElement)("span",null,O.facebookTitle),(0,o.createElement)("p",null,O.facebookDesc)),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright "},(0,o.createElement)(g.FacebookConnectButton,{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button",onConnect:()=>{(0,w.v)(new w.iC(b.$2,"facebook",{source:h.d0})),v(!0)},onClick:()=>E(!0),onFailure:()=>{C(!0)}},(0,o.createElement)("i",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button__icon"})))),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container__buttons"},(0,o.createElement)(l.A,{callback:()=>{(0,w.v)(new w.iC(b.$x,void 0,{source:h.d0}))},className:"nfd-onboarding-step--site-gen__social-media__container__buttons__skip",text:O.buttons.skip}),e&&(0,o.createElement)(p.A,{text:O.buttons.next,disabled:!n})))))}))}}]); \ No newline at end of file +(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[377],{5706:(e,t)=>{(()=>{var e={537:(e,t)=>{!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{NewfoldRuntime:function(){return a}});var o=window.wp.url;const a={hasCapability:e=>!0===window.NewfoldRuntime?.capabilities[e],adminUrl:e=>window.NewfoldRuntime?.admin_url+e,createApiUrl:(e,t={})=>(0,o.addQueryArgs)(window.NewfoldRuntime?.base_url,{rest_route:e,...t}),get siteDetails(){return window.NewfoldRuntime?.site},get sdk(){return window.NewfoldRuntime?.sdk},get isWoo(){return window.NewfoldRuntime?.isWoocommerceActive},get ecommerce(){return window.NewfoldRuntime?.ecommerce},get plugin(){return window.NewfoldRuntime?.plugin},get wpversion(){return window.NewfoldRuntime?.wpversion},get siteTitle(){return window.NewfoldRuntime?.siteTitle}};var r=t;for(var i in n)r[i]=n[i];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})}()},967:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{"use strict";o.r(a),o.d(a,{FacebookConnectButton:()=>_,FacebookConnectPluginView:()=>p,facebookConnectHelper:()=>g,getFacebookUserProfileDetails:()=>s});const e=window.React,t=window.wp.components,n=window.wp.apiFetch;var r=o.n(n),i=o(537);const c={facebook_module:{base_url:"https://graph.facebook.com/v18.0",debug_token:"/debug_token",token_phrase:"secret_token_phrase"},wordpress:{access:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/hiive"),fb_token:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/fb_token"),facebook_details:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/details"),facebook_logout:i.NewfoldRuntime.createApiUrl("/newfold-facebook/v1/facebook/logout")},cf_worker:{login_screen:"https://hiive.cloud/workers/facebook-connect/",get_token:"https://hiive.cloud/workers/facebook-connect/get/token?hiive_token=",delete_token:"https://hiive.cloud/workers/facebook-connect/delete/token?hiive_token="}},s=()=>r()({url:c.wordpress.facebook_details}).then((e=>{if(e?.details?.error)throw{message:"failed to load the data",error:e?.details?.error};return e?.details})).catch((e=>{throw{message:"failed to load the data",errorMsg:e}})),l=window.wp.i18n;var d=o(967),u=o.n(d);const _=({className:n,children:o,showData:a,onConnect:i,onDisconnect:d,onFailure:_,onClick:p})=>{const[g,m]=(0,e.useState)(""),[f,w]=(0,e.useState)(!1),[b,h]=(0,e.useState)([]),[v,k]=(0,e.useState)(!1);function E(e){var t;e.origin.search("https://hiive.cloud")<0||(k(!0),window.removeEventListener("message",E),(t=e.data,r()({url:`${c.wordpress.fb_token}`,data:t,method:"POST"})).then((e=>{y()})).catch((()=>k(!1))))}const y=()=>{s().then((e=>{"token not found!"!==e&&(w(!0),h(e),k(!1),"function"==typeof i&&i(e))})).catch((()=>r()({url:c.wordpress.access}).then((e=>{s().then((e=>{"token not found!"!==e&&(w(!0),h(e),"function"==typeof i&&i(e)),k(!1)})).catch((e=>{k(!1),"function"==typeof _&&_(e),console.error(e)})),m(e.token)})).catch((e=>{k(!1),"function"==typeof _&&_(e),console.error(e)}))))};return(0,e.useEffect)((()=>{!g&&r()({url:c.wordpress.access}).then((e=>{e.token&&m(e.token)})),y()}),[]),(0,e.createElement)("div",null,f?(0,e.createElement)("div",null,(0,e.createElement)(t.Button,{className:u()("nfd-facebook-button--connected",`${n}--connected`)},(0,l.__)("Connected","wp-module-facebook")),a&&(0,e.createElement)("div",null,b?.map((t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{style:{paddingTop:"20px"}},(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Facebook ID: ",t?.User?.profile?.id)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Name: ",t?.User?.profile?.name)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"User Email: ",t?.User?.profile?.email)),(0,e.createElement)("li",null,(0,e.createElement)("p",null,"Profile pic:",t?.User?.profile?.picture?.data?.url))),(0,e.createElement)("img",{src:`https://graph.facebook.com/${t?.id}/picture?type=small`,height:t?.picture?.height,width:t?.picture?.width})))))):(0,e.createElement)(t.Button,{type:"submit",disabled:v,className:u()("nfd-facebook-button--connect",`${n}--connect`),onClick:()=>(window.open(`${c.cf_worker.login_screen}?token_hiive=${g}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),window.addEventListener("message",E,!1),void("function"==typeof p&&p()))},o,(0,l.__)("Connect Facebook","wp-module-facebook"),v&&(0,e.createElement)(t.Spinner,null)))},p=({fbLogin:n,loginInfo:o,getFbDetails:a})=>{const[i,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>s(!1)),[]),n&&(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:"20px"}},(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"30px",width:"30px",fill:"#405795",viewBox:"0 0 24 24",style:{marginRight:"10px"}},(0,e.createElement)("path",{d:"M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"})),(0,e.createElement)("p",{style:{fontSize:"0.9rem",fontWeight:"600",paddingLeft:"15px"}},"Facebook -",(0,e.createElement)("span",{style:{fontWeight:"normal"}},o?.user?.profile?.email))),i?(0,e.createElement)(t.Spinner,null):(0,e.createElement)("button",{style:{color:"#286BDE"},onClick:()=>(async()=>{s(!0),await r()({url:c.wordpress.facebook_logout}).then((e=>e)).catch((e=>{throw{message:"failed to load the data",errorMsg:e}})).then((()=>{a()})),s(!1)})()},"Disconnect"))},g=async e=>{let t="",n=null,o=[];const a=()=>r()({url:c.wordpress.access}).then((e=>{r()({url:`${c.wordpress.fb_token}`,headers:{method:"GET","content-type":"application/json","Accept-Encoding":"gzip, deflate, br","Access-Control-Allow-Origin":"*"}}).then((e=>{var t;e.token&&(t=e.token,r()({url:c.wordpress.settings,method:"post",data:{fb_token:t}}).then((e=>e)).catch((e=>{console.error(e)})),n=e.token)})).catch((e=>{console.error(e)})),t=e.token})).catch((e=>{console.error(e)}));await a(),await r()({url:c.wordpress.fb_token}).then((async r=>{if(r?.fb_token)await s().then((e=>(n=r.fb_token,o=[e],o)));else{const n=window.open(`${c.cf_worker.login_screen}?token_hiive=${t}&redirect=${window.location.href}`,"ModalPopUp",`toolbar=no,scrollbars=no,location=no,width=${window.innerWidth/2+200},height=${window.innerHeight/2+200},top=200,left=200`),o=setInterval((async function(){n?.closed&&(clearInterval(o),await a(),e())}),1e3)}}))}})();var r=t;for(var i in a)r[i]=a[i];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()},6999:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var o=n(1609),a=n(6942),r=n.n(a),i=n(148),c=n(7143),s=n(6427),l=n(7677),d=n(6655),u=n(7675);const _=({text:e,className:t,callback:n=null,disabled:a=!1,showChevronRight:_=!0})=>{const p=(0,i.Zp)(),{nextStep:g}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep()})));return(0,o.createElement)(s.Button,{className:r()("nfd-onboarding-button--site-gen-next",{"nfd-onboarding-button--site-gen-next--disabled":a},t),onClick:()=>{a||(n&&"function"==typeof n&&n(),g&&p(g.path))}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},e),_&&(0,o.createElement)(l.A,{className:"nfd-onboarding-button--site-gen-next--icon",icon:d.A}))}},513:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(1609),a=n(8468),r=n(7673);const i=(0,a.memo)((({title:e})=>(0,o.createElement)("div",{className:"ai-heading"},(0,o.createElement)(r.A,{height:"40px"}),(0,o.createElement)("div",{className:"ai-heading--title"},e))))},7673:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(1609),a=n(8468);const r=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,a.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const o=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(o)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(o))}))}))}),[]),(0,o.createElement)("span",{className:"wnd-ai-logo",style:t},(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,o.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,o.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},2607:(e,t,n)=>{"use strict";n.d(t,{A:()=>w});var o=n(1609),a=n(7723),r=n(8468),i=n(6427),c=n(7143),s=n(148),l=n(4371),d=n(6079),u=n(7675),_=n(2014),p=n(8969),g=n(2202),m=n(6942),f=n.n(m);const w=(0,r.memo)((({callback:e=!1,className:t,text:n})=>{const r=(0,s.Zp)(),m=(0,s.zy)(),{nextStep:w,currentData:b,socialData:h}=(0,c.useSelect)((e=>({nextStep:e(u.M).getNextStep(),currentData:e(u.M).getCurrentOnboardingData(),socialData:e(u.M).getOnboardingSocialData()})),[]),v=null===w||!1===w,{setOnboardingSocialData:k}=(0,c.useDispatch)(u.M);return(0,o.createElement)(i.Button,{className:f()("skip-button",t),onClick:v?()=>async function(e){if(b){if(b.isComplete=(new Date).getTime(),e?.includes("basic-info")){const e=await async function(){const e=await(0,_.mt)(),t=await(0,_.oc)(h);return null!==t?.error?e?.body:t?.body}();e&&k(e),await l.y.dispatchEvents(g.XJ)}(0,d.V1)(b)}window.location.replace(p.R0)}(m.pathname):()=>("function"==typeof e&&e(),void r(w.path))},n||(0,a.__)("Skip this Step","wp-module-onboarding"))}))},8844:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var o=n(1609),a=n(8468),r=n(7143),i=n(7675),c=n(1056),s=n(2202),l=n(8744),d=n(9491),u=n(7723);var _=n(6427),p=n(3988),g=n(7673),m=n(2940),f=n(7835),w=n(148),b=n(8969);const h=()=>{const e=(0,w.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:c,setDrawerActiveView:s,setHideFooterNav:h,setIsHeaderNavigationEnabled:v,updateAllSteps:k,updateTopSteps:E,updateRoutes:y,updateDesignRoutes:N,updateInitialize:S,setCurrentOnboardingData:x,updateSiteGenErrorStatus:A}=(0,r.useDispatch)(i.M);(0,a.useEffect)((()=>{h(!0),t(!0),n(!1),c(b.Ix),v(!0),s(!1)}));const{brandConfig:C,currentData:D}=(0,r.useSelect)((e=>({brandConfig:e(i.M).getNewfoldBrandConfig(),currentData:e(i.M).getCurrentOnboardingData()}))),F=(0,d.useViewportMatch)("small"),O={heading:(0,u.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,u.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,u.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,u.__)("Try again","wp-module-onboarding"),buttonSkip:(0,u.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,u.__)("exit to WordPress","wp-module-onboarding")},M=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:l.rA,R=()=>{A(!1)};return(0,o.createElement)(p.A,{className:"nfd-onboarding-step--site-gen__error"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,o.createElement)(g.A,{height:"100px"})),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,o.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},O.heading)),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,o.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},O.subHeading),(0,o.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},O.message,(0,o.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:b.R0},O.buttonExit))),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,o.createElement)(_.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,m.nC)(C,t))return!1;const n=window.nfdOnboarding.currentFlow,o=(0,f.Sg)(t)();k(o.steps),E(o?.topSteps),y(o.routes),N(o?.designRoutes),l.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,D.activeFlow=t,D.continueWithoutAi=!0,x(D),A(!1),l.d0!==t&&S(!0),e(o.steps[1].path)})(M)}},O.buttonSkip),F?(0,o.createElement)(_.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{R()}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},O.buttonText)):(0,o.createElement)(_.Fill,{name:`${b.Sr}/${b.gb}`},(0,o.createElement)(_.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{R()}},(0,o.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},O.buttonText))))))},v=({children:e})=>{const{siteGenErrorStatus:t}=(0,r.useSelect)((e=>({siteGenErrorStatus:e(i.M).getSiteGenErrorStatus()})));return(0,a.useEffect)((()=>{!0===t&&(0,c.v)(new c.iC(s.cW,void 0,{source:l.d0}))}),[t]),(0,o.createElement)(a.Fragment,null,t?(0,o.createElement)(h,null):e)}},5377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var o=n(1609),a=n(7143),r=n(8468),i=n(9491),c=n(7723);var s=n(8969),l=n(2607),d=n(7675),u=n(3988),_=n(513),p=n(6999),g=n(5706),m=n(148),f=n(8844),w=n(1056),b=n(2202),h=n(8744);const v=(0,r.memo)((()=>{const e=(0,i.useViewportMatch)("small"),t=(0,m.Zp)(),[n,v]=(0,r.useState)(!1),[k,E]=(0,r.useState)(!1),{setIsHeaderEnabled:y,setSidebarActiveView:N,setHeaderActiveView:S,setDrawerActiveView:x,setIsFooterNavAllowed:A,updateSiteGenErrorStatus:C,setIsHeaderNavigationEnabled:D}=(0,a.useDispatch)(d.M);(0,r.useEffect)((()=>{y(!0),N(!1),S(s.Ix),x(!1),D(!0)}));const{nextStep:F}=(0,a.useSelect)((e=>({nextStep:e(d.M).getNextStep()})));(0,r.useEffect)((()=>{A(n),k&&n&&t(F.path)}),[k,n]);const O={heading:(0,c.__)("Do you want to include any content from Facebook?","wp-module-onboarding"),facebookTitle:(0,c.__)("Connect a Facebook Account","wp-module-onboarding"),facebookDesc:(0,c.__)("By connecting a Facebook profile, we can fetch relevant data to increase the accuracy of your AI generated site.","wp-module-onboarding"),facebookButton:(0,c.__)("Connect Facebook","wp-module-onboarding"),buttons:{skip:(0,c.__)("Skip for now","wp-module-onboarding"),next:(0,c.__)("Next","wp-module-onboarding")}};return(0,o.createElement)(f.A,null,(0,o.createElement)(u.A,{isCentered:!0,className:"nfd-onboarding-step--site-gen__social-media"},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container"},(0,o.createElement)(_.A,{title:O.heading}),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain "},(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containleft "},(0,o.createElement)("span",null,O.facebookTitle),(0,o.createElement)("p",null,O.facebookDesc)),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright "},(0,o.createElement)(g.FacebookConnectButton,{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button",onConnect:()=>{(0,w.v)(new w.iC(b.$2,"facebook",{source:h.d0})),v(!0)},onClick:()=>E(!0),onFailure:()=>{C(!0)}},(0,o.createElement)("i",{className:"nfd-onboarding-step--site-gen__social-media__contain__containright__button__icon"})))),(0,o.createElement)("div",{className:"nfd-onboarding-step--site-gen__social-media__container__buttons"},(0,o.createElement)(l.A,{callback:()=>{(0,w.v)(new w.iC(b.$x,void 0,{source:h.d0}))},className:"nfd-onboarding-step--site-gen__social-media__container__buttons__skip",text:O.buttons.skip}),e&&(0,o.createElement)(p.A,{text:O.buttons.next,disabled:!n})))))}))}}]); \ No newline at end of file diff --git a/build/2.1.7/396.css b/build/2.1.8/396.css similarity index 100% rename from build/2.1.7/396.css rename to build/2.1.8/396.css diff --git a/build/2.1.7/396.js b/build/2.1.8/396.js similarity index 100% rename from build/2.1.7/396.js rename to build/2.1.8/396.js diff --git a/build/2.1.7/40.js b/build/2.1.8/40.js similarity index 100% rename from build/2.1.7/40.js rename to build/2.1.8/40.js diff --git a/build/2.1.7/403.js b/build/2.1.8/403.js similarity index 100% rename from build/2.1.7/403.js rename to build/2.1.8/403.js diff --git a/build/2.1.7/426.js b/build/2.1.8/426.js similarity index 100% rename from build/2.1.7/426.js rename to build/2.1.8/426.js diff --git a/build/2.1.7/508.js b/build/2.1.8/508.js similarity index 100% rename from build/2.1.7/508.js rename to build/2.1.8/508.js diff --git a/build/2.1.7/51.js b/build/2.1.8/51.js similarity index 100% rename from build/2.1.7/51.js rename to build/2.1.8/51.js diff --git a/build/2.1.7/546.js b/build/2.1.8/546.js similarity index 100% rename from build/2.1.7/546.js rename to build/2.1.8/546.js diff --git a/build/2.1.7/560.js b/build/2.1.8/560.js similarity index 100% rename from build/2.1.7/560.js rename to build/2.1.8/560.js diff --git a/build/2.1.7/585.js b/build/2.1.8/585.js similarity index 100% rename from build/2.1.7/585.js rename to build/2.1.8/585.js diff --git a/build/2.1.7/595.js b/build/2.1.8/595.js similarity index 100% rename from build/2.1.7/595.js rename to build/2.1.8/595.js diff --git a/build/2.1.8/619.js b/build/2.1.8/619.js new file mode 100644 index 000000000..526c77e8b --- /dev/null +++ b/build/2.1.8/619.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[619],{7673:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1609),r=n(8468);const i=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,r.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const a=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(a)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(a))}))}))}),[]),(0,a.createElement)("span",{className:"wnd-ai-logo",style:t},(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,a.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},8844:(e,t,n)=>{n.d(t,{A:()=>E});var a=n(1609),r=n(8468),i=n(7143),o=n(7675),s=n(1056),d=n(2202),l=n(8744),c=n(9491),g=n(7723);var _=n(6427),u=n(3988),m=n(7673),p=n(2940),w=n(7835),b=n(148),f=n(8969);const v=()=>{const e=(0,b.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:s,setDrawerActiveView:d,setHideFooterNav:v,setIsHeaderNavigationEnabled:E,updateAllSteps:h,updateTopSteps:y,updateRoutes:N,updateDesignRoutes:S,updateInitialize:C,setCurrentOnboardingData:k,updateSiteGenErrorStatus:x}=(0,i.useDispatch)(o.M);(0,r.useEffect)((()=>{v(!0),t(!0),n(!1),s(f.Ix),E(!0),d(!1)}));const{brandConfig:A,currentData:F}=(0,i.useSelect)((e=>({brandConfig:e(o.M).getNewfoldBrandConfig(),currentData:e(o.M).getCurrentOnboardingData()}))),D=(0,c.useViewportMatch)("small"),I={heading:(0,g.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,g.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,g.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,g.__)("Try again","wp-module-onboarding"),buttonSkip:(0,g.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,g.__)("exit to WordPress","wp-module-onboarding")},G=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:l.rA,O=()=>{x(!1)};return(0,a.createElement)(u.A,{className:"nfd-onboarding-step--site-gen__error"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,a.createElement)(m.A,{height:"100px"})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},I.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},I.subHeading),(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},I.message,(0,a.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:f.R0},I.buttonExit))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,a.createElement)(_.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,p.nC)(A,t))return!1;const n=window.nfdOnboarding.currentFlow,a=(0,w.Sg)(t)();h(a.steps),y(a?.topSteps),N(a.routes),S(a?.designRoutes),l.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,F.activeFlow=t,F.continueWithoutAi=!0,k(F),x(!1),l.d0!==t&&C(!0),e(a.steps[1].path)})(G)}},I.buttonSkip),D?(0,a.createElement)(_.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},I.buttonText)):(0,a.createElement)(_.Fill,{name:`${f.Sr}/${f.gb}`},(0,a.createElement)(_.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{O()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},I.buttonText))))))},E=({children:e})=>{const{siteGenErrorStatus:t}=(0,i.useSelect)((e=>({siteGenErrorStatus:e(o.M).getSiteGenErrorStatus()})));return(0,r.useEffect)((()=>{!0===t&&(0,s.v)(new s.iC(d.cW,void 0,{source:l.d0}))}),[t]),(0,a.createElement)(r.Fragment,null,t?(0,a.createElement)(v,null):e)}},619:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var a=n(1609),r=n(8468),i=n(7143),o=n(148),s=n(6087),d=n(3988),l=n(7675),c=n(8969),g=n(7044),_=n(7723);const u=()=>(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"24",viewBox:"-5 -2 36 24",fill:"none",className:"heart"},(0,a.createElement)("g",{id:"State=Active"},(0,a.createElement)("path",{id:"Vector",d:"M10 19.1585L8.975 18.2335C7.20833 16.6168 5.75 15.221 4.6 14.046C3.45 12.871 2.53333 11.821 1.85 10.896C1.16667 9.971 0.6875 9.1335 0.4125 8.3835C0.1375 7.6335 0 6.87516 0 6.1085C0 4.6085 0.504167 3.35433 1.5125 2.346C2.52083 1.33766 3.76667 0.833496 5.25 0.833496C6.2 0.833496 7.07917 1.0585 7.8875 1.5085C8.69583 1.9585 9.4 2.6085 10 3.4585C10.7 2.5585 11.4417 1.896 12.225 1.471C13.0083 1.046 13.85 0.833496 14.75 0.833496C16.2333 0.833496 17.4792 1.33766 18.4875 2.346C19.4958 3.35433 20 4.6085 20 6.1085C20 6.87516 19.8625 7.6335 19.5875 8.3835C19.3125 9.1335 18.8333 9.971 18.15 10.896C17.4667 11.821 16.55 12.871 15.4 14.046C14.25 15.221 12.7917 16.6168 11.025 18.2335L10 19.1585Z",fill:"#EF4A71"}))),m=function({count:e=1,isRegenerating:t}){const n=[];for(let r=0;r{const e=(0,o.Zp)(),[t,n]=(0,r.useState)(!1),[y,N]=(0,r.useState)(!1),[S,C]=(0,r.useState)(!1),[k,x]=(0,r.useState)(!1),A=(0,r.useRef)(),{setIsHeaderEnabled:F,setSidebarActiveView:D,setHeaderActiveView:I,setDrawerActiveView:G,setCurrentOnboardingData:O,updateInitialize:H,setHideFooterNav:R,updateSiteGenErrorStatus:M,setIsHeaderNavigationEnabled:T}=(0,i.useDispatch)(l.M),{currentData:V,nextStep:B,siteGenErrorStatus:L}=(0,i.useSelect)((e=>({currentData:e(l.M).getCurrentOnboardingData(),nextStep:e(l.M).getNextStep(),siteGenErrorStatus:e(l.M).getSiteGenErrorStatus()})));(0,r.useEffect)((()=>{F(!0),R(!0),D(!1),I(c.Ix),G(!1),H(!0),T(!1)}),[V]),(0,r.useEffect)((()=>{!0===A.current&&!1===L&&(z(),q()),A.current=L}),[L]);const z=async()=>{if(C(!0),!(0,s.isEmpty)(V.sitegen.homepages.data))return n(V.sitegen.homepages.data),C(!1),void W();if(""===V.sitegen.siteDetails?.prompt)return void C(!1);const e=await(0,p.c7)(V.sitegen.siteDetails.prompt);if(e.error)return C(!1),void M(!0);V.sitegen.homepages.data=e.body,n(e.body),O(V),C(!1),W()},W=()=>{window.nfdOnboarding.siteGenTimerInterval&&(clearInterval(window.nfdOnboarding.siteGenTimerInterval),(0,v.v)(new v.iC(E.uv,window.nfdOnboarding.siteGenTime,{source:h.d0})))},q=async()=>{const e=await(0,w.w6)();e.error?C(!1):x(e.body)};(0,r.useEffect)((()=>{z(),q()}),[]);const Z=(n,a)=>{if(!(n in t))return!1;V.sitegen.homepages.active=t[n],V.sitegen.skipCache=!1,O(V),(0,v.v)(new v.iC(E.Wi,n,{position:a,source:h.d0})),e(B.path)},P=(e,a)=>{if(!(e in t))return;const r=!t[e].isFavorite;t[e].isFavorite=r,V.sitegen.homepages.data=t,n(t),O(V),(0,v.v)(new v.iC(E.Nz,e,{favorite:r,placement:"preview_grid",position:a,source:h.d0}))},$=async(e,a,r,i)=>{if(document.getElementsByClassName("nfd-onboarding-step--site-gen__preview__note")&&document.getElementsByClassName("nfd-onboarding-step--site-gen__preview__note")[0].scrollIntoView({behavior:"smooth",block:"end"}),N(!0),!(e in t))return void N(!1);if(""===V.sitegen.siteDetails?.prompt)return void N(!1);const o=await(0,p.HA)(V.sitegen.siteDetails.prompt,e,a,r);if(o.error)return void N(!1);const s=o.body;t[s.slug]=s,V.sitegen.homepages.data=t,n(t),O(V),N(!1),(0,v.v)(new v.iC(E.Hf,e,{position:i,source:h.d0,placement:"preview_grid"}))},j={heading:(0,_.__)("Presto, here are 3 versions","wp-module-onboarding"),subheading:(0,_.__)("We've created 3 unique website designs for you to start with, preview click around or start over.","wp-module-onboarding"),favouriteNote:(0,_.__)("Favorite a generated version to find and use again in the future.","wp-module-onboarding"),generating:(0,_.__)("Generating Site","wp-module-onboarding"),regenerating:(0,_.__)("Regenerating Site","wp-module-onboarding")};return(0,a.createElement)(b.A,null,(0,a.createElement)(d.A,{className:"nfd-onboarding-step--site-gen__preview"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__container"},!S&&(0,a.createElement)(f.A,{type:"fade-in"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__preview__container__heading__text"},j.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__preview__container__sub-heading__text"},j.subheading)))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__options"},t&&k&&!S?Object.keys(t).map(((e,n)=>{const r=t[e],i=(0,s.cloneDeep)(k[0]);i.settings.color.palette=r.color.palette;const o=r.styles?.blocks[0]?.["core/body"]?.typography?.fontFamily,d=r.styles?.blocks[0]?.["core/heading"]?.typography?.fontFamily;i.styles.typography&&o&&(i.styles.typography.fontFamily=o),i.styles.blocks["core/heading"].typography&&d&&(i.styles.blocks["core/heading"].typography.fontFamily=d);let l="";return["header","content","footer"].forEach((e=>{e in r&&(l+=r[e])})),(0,a.createElement)(g.GZ,{key:n,blockGrammar:l,previewSettings:i,slug:e,position:n+1,title:r.title,isFavorite:r.isFavorite,palette:r.color,styling:"custom",overlay:!0,tabIndex:"0",role:"button",handleFavorite:P,handleRegenerate:$,handlePreview:Z,isRegenerating:y})})):(0,a.createElement)(m,{count:3,isRegenerating:!1}),y&&(0,a.createElement)(m,{count:1,isRegenerating:!0})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__preview__note"},(0,a.createElement)(u,null),(0,a.createElement)("span",null,j.favouriteNote))))}}}]); \ No newline at end of file diff --git a/build/2.1.7/622.js b/build/2.1.8/622.js similarity index 100% rename from build/2.1.7/622.js rename to build/2.1.8/622.js diff --git a/build/2.1.7/627.js b/build/2.1.8/627.js similarity index 100% rename from build/2.1.7/627.js rename to build/2.1.8/627.js diff --git a/build/2.1.7/632.js b/build/2.1.8/632.js similarity index 100% rename from build/2.1.7/632.js rename to build/2.1.8/632.js diff --git a/build/2.1.7/672.js b/build/2.1.8/672.js similarity index 100% rename from build/2.1.7/672.js rename to build/2.1.8/672.js diff --git a/build/2.1.8/705.js b/build/2.1.8/705.js new file mode 100644 index 000000000..1270a8fd4 --- /dev/null +++ b/build/2.1.8/705.js @@ -0,0 +1 @@ +"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[705],{6999:(e,t,n)=>{n.d(t,{A:()=>g});var a=n(1609),o=n(6942),i=n.n(o),r=n(148),s=n(7143),l=n(6427),d=n(7677),c=n(6655),u=n(7675);const g=({text:e,className:t,callback:n=null,disabled:o=!1,showChevronRight:g=!0})=>{const _=(0,r.Zp)(),{nextStep:m}=(0,s.useSelect)((e=>({nextStep:e(u.M).getNextStep()})));return(0,a.createElement)(l.Button,{className:i()("nfd-onboarding-button--site-gen-next",{"nfd-onboarding-button--site-gen-next--disabled":o},t),onClick:()=>{o||(n&&"function"==typeof n&&n(),m&&_(m.path))}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},e),g&&(0,a.createElement)(d.A,{className:"nfd-onboarding-button--site-gen-next--icon",icon:c.A}))}},513:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(1609),o=n(8468),i=n(7673);const r=(0,o.memo)((({title:e})=>(0,a.createElement)("div",{className:"ai-heading"},(0,a.createElement)(i.A,{height:"40px"}),(0,a.createElement)("div",{className:"ai-heading--title"},e))))},7673:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(1609),o=n(8468);const i=({height:e="80px"})=>{const t={"--wnd-ai-logo-size":e,height:`var(--wnd-ai-logo-size, ${e})`};return(0,o.useEffect)((()=>{document.querySelectorAll("[data-wnd-ai-logo]").forEach((function(e){let t=!1,n=null;const a=()=>{t?document.body.classList.add("wnd-ai-logo-keydown"):document.body.classList.remove("wnd-ai-logo-keydown"),n=null};e.addEventListener("keydown",(function(){t||(t=!0,n||(n=window.requestAnimationFrame(a)))})),e.addEventListener("keyup",(function(){t=!1,n||(n=window.requestAnimationFrame(a))}))}))}),[]),(0,a.createElement)("span",{className:"wnd-ai-logo",style:t},(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--bg"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--1"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--2"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--3"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--4"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--5"}),(0,a.createElement)("span",{className:"wnd-ai-logo__circle wnd-ai-logo__circle--6"}),(0,a.createElement)("span",{className:"wnd-ai-logo__spinner"}))}},8844:(e,t,n)=>{n.d(t,{A:()=>E});var a=n(1609),o=n(8468),i=n(7143),r=n(7675),s=n(1056),l=n(2202),d=n(8744),c=n(9491),u=n(7723);var g=n(6427),_=n(3988),m=n(7673),p=n(2940),b=n(7835),h=n(148),w=n(8969);const f=()=>{const e=(0,h.Zp)(),{setIsHeaderEnabled:t,setSidebarActiveView:n,setHeaderActiveView:s,setDrawerActiveView:l,setHideFooterNav:f,setIsHeaderNavigationEnabled:E,updateAllSteps:N,updateTopSteps:v,updateRoutes:x,updateDesignRoutes:S,updateInitialize:A,setCurrentOnboardingData:y,updateSiteGenErrorStatus:C}=(0,i.useDispatch)(r.M);(0,o.useEffect)((()=>{f(!0),t(!0),n(!1),s(w.Ix),E(!0),l(!1)}));const{brandConfig:k,currentData:I}=(0,i.useSelect)((e=>({brandConfig:e(r.M).getNewfoldBrandConfig(),currentData:e(r.M).getCurrentOnboardingData()}))),D=(0,c.useViewportMatch)("small"),H={heading:(0,u.__)("Sorry, we're having trouble communicating with our AI service.","wp-module-onboarding"),subHeading:(0,u.__)("Do you keep getting this error?","wp-module-onboarding"),message:(0,u.__)("If you continue to get this error, you may either continue creating your site without using our AI assistant, or you can ","wp-module-onboarding"),buttonText:(0,u.__)("Try again","wp-module-onboarding"),buttonSkip:(0,u.__)("Continue without AI","wp-module-onboarding"),buttonExit:(0,u.__)("exit to WordPress","wp-module-onboarding")},F=window.nfdOnboarding?.oldFlow?window.nfdOnboarding.oldFlow:d.rA,T=()=>{C(!1)};return(0,a.createElement)(_.A,{className:"nfd-onboarding-step--site-gen__error"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container"},(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__orb"},(0,a.createElement)(m.A,{height:"100px"})),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__heading__text"},H.heading)),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading"},(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__text"},H.subHeading),(0,a.createElement)("p",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__message"},H.message,(0,a.createElement)("a",{className:"nfd-onboarding-step--site-gen__error__container__sub-heading__exit",href:w.R0},H.buttonExit))),(0,a.createElement)("div",{className:"nfd-onboarding-step--site-gen__error__container__buttons"},(0,a.createElement)(g.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__skip",onClick:()=>{(t=>{if(!(0,p.nC)(k,t))return!1;const n=window.nfdOnboarding.currentFlow,a=(0,b.Sg)(t)();N(a.steps),v(a?.topSteps),x(a.routes),S(a?.designRoutes),d.d0!==n&&(window.nfdOnboarding.oldFlow=n),window.nfdOnboarding.currentFlow=t,I.activeFlow=t,I.continueWithoutAi=!0,y(I),C(!1),d.d0!==t&&A(!0),e(a.steps[1].path)})(F)}},H.buttonSkip),D?(0,a.createElement)(g.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{T()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},H.buttonText)):(0,a.createElement)(g.Fill,{name:`${w.Sr}/${w.gb}`},(0,a.createElement)(g.Button,{className:"nfd-onboarding-step--site-gen__error__container__buttons__retry",onClick:()=>{T()}},(0,a.createElement)("p",{className:"nfd-onboarding-button--site-gen-next--text"},H.buttonText))))))},E=({children:e})=>{const{siteGenErrorStatus:t}=(0,i.useSelect)((e=>({siteGenErrorStatus:e(r.M).getSiteGenErrorStatus()})));return(0,o.useEffect)((()=>{!0===t&&(0,s.v)(new s.iC(l.cW,void 0,{source:d.d0}))}),[t]),(0,a.createElement)(o.Fragment,null,t?(0,a.createElement)(f,null):e)}},8705:(e,t,n)=>{n.r(t),n.d(t,{default:()=>N});var a=n(1609),o=n(9491),i=n(7143),r=n(8468),s=n(7723);var l=n(431),d=n(8969),c=n(7675),u=n(513),g=n(3988),_=n(6942),m=n.n(_);const p=(0,r.memo)((({hint:e,height:t,children:n,placeholder:o,customerInput:i,setIsValidInput:l,setCustomerInput:d,setCustomerInputStrength:c,customChildren:u=!1})=>{const g=(0,r.useRef)(null),[_,p]=(0,r.useState)(0),[b,h]=(0,r.useState)("nfd-sg-input-box__field");(0,r.useEffect)((()=>{g.current.style.height=t;const e=g.current.scrollHeight;g.current.style.height=e+"px";const n=w(i?.trim());p(n),c(n),l(n>=2)}),[i]);const w=e=>{const t=e?.length;let n=0;return t>200?n=3:t>150?n=2:t>100&&(n=1),n},f=e=>{if(e<=_)return"nfd-sg-input-box__info-icon--selected"};return(0,a.createElement)("div",{className:"nfd-sg-input"},(0,a.createElement)("label",{htmlFor:b},(0,a.createElement)("div",{className:"nfd-sg-input-box"},(0,a.createElement)("textarea",{"data-wnd-ai-logo":!0,type:"text",className:b,ref:g,style:{height:"47px"},placeholder:o,value:i,onChange:e=>(e=>{e.preventDefault(),d(e.target.value),h("nfd-sg-input-box__field")})(e)})),(0,a.createElement)("div",{className:"nfd-sg-input-box_bottom"},i?(0,a.createElement)("div",{className:"nfd-sg-input-box__info"},(0,a.createElement)("div",{className:"nfd-sg-input-box__info-text"},(0,s.__)("Detail","wp-module-onboarding")),(()=>{const e=[];for(let t=1;t<=3;t++)e.push((0,a.createElement)("div",{className:m()("nfd-sg-input-box__info-icon",f(t))}));return e})()):(0,a.createElement)("p",{className:"nfd-sg-input-box__hint"},e),u&&n)))}));var b=n(6999),h=n(8844),w=n(1056),f=n(2202),E=n(8744);const N=()=>{const e={heading:(0,s.__)("Tell me some details about the site you want created?","wp-module-onboarding"),inputPlaceholder:(0,s.__)("I want a site for my company that sells…","wp-module-onboarding"),inputHint:(0,s.__)("The more detail the better","wp-module-onboarding"),buttonText:(0,s.__)("Next","wp-module-onboarding"),walkThroughText:(0,s.__)("Not sure what to say? We can walk you through it.","wp-module-onboarding"),walkThroughlink:(0,s.__)("click here","wp-module-onboarding")},t=(0,o.useViewportMatch)("small"),[n,_]=(0,r.useState)(),[m,N]=(0,r.useState)(0),[v,x]=(0,r.useState)(!1),{currentData:S}=(0,i.useSelect)((e=>({currentData:e(c.M).getCurrentOnboardingData()}))),{setIsFooterNavAllowed:A,setIsHeaderEnabled:y,setSidebarActiveView:C,setHeaderActiveView:k,setDrawerActiveView:I,setHideFooterNav:D,setCurrentOnboardingData:H,setIsHeaderNavigationEnabled:F}=(0,i.useDispatch)(c.M);return(0,r.useEffect)((()=>{if(D(!1),y(!0),C(!1),k(d.Ix),F(!0),I(!1),""!==S.sitegen.siteDetails?.prompt)return x(!0),A(!0),_(S.sitegen.siteDetails.prompt);A(!1)}),[]),(0,r.useEffect)((()=>{void 0!==n&&""!==n&&n!==S.sitegen.siteDetails.prompt&&(S.sitegen.siteDetails.prompt=n?.trim(),S.sitegen.siteDetails.mode="simple",S.sitegen.skipCache=!0,S.sitegen.sitemapPagesGenerated=!1,S.sitegen.homepages.active={},S.sitegen.homepages.data={},H(S)),A(v)}),[n]),(0,a.createElement)(h.A,null,(0,a.createElement)(g.A,{isCentered:!0},(0,a.createElement)(l.A,{type:"fade-in"},(0,a.createElement)("div",{className:"nfd-sg-site-details"},(0,a.createElement)(u.A,{title:e.heading}),(0,a.createElement)(p,{placeholder:e.inputPlaceholder,hint:e.inputHint,height:"40px",customerInput:n,setIsValidInput:x,setCustomerInput:_,setCustomerInputStrength:N,customChildren:!0},t&&(0,a.createElement)("div",{className:"nfd-sg-site-details-endrow"},(0,a.createElement)(b.A,{className:"nfd-sg-site-details--next-btn",callback:()=>{(()=>{let e=!1;switch(m){case 2:e="MEDIUM";break;case 3:e="HIGH"}e&&(0,w.v)(new w.iC(f.WN,n,{strength:e,source:E.d0}))})()},text:e.buttonText,disabled:!v})))))))}}}]); \ No newline at end of file diff --git a/build/2.1.7/74.js b/build/2.1.8/74.js similarity index 100% rename from build/2.1.7/74.js rename to build/2.1.8/74.js diff --git a/build/2.1.7/761.js b/build/2.1.8/761.js similarity index 100% rename from build/2.1.7/761.js rename to build/2.1.8/761.js diff --git a/build/2.1.7/796.js b/build/2.1.8/796.js similarity index 100% rename from build/2.1.7/796.js rename to build/2.1.8/796.js diff --git a/build/2.1.7/803.js b/build/2.1.8/803.js similarity index 100% rename from build/2.1.7/803.js rename to build/2.1.8/803.js diff --git a/build/2.1.7/859.js b/build/2.1.8/859.js similarity index 100% rename from build/2.1.7/859.js rename to build/2.1.8/859.js diff --git a/build/2.1.7/871.js b/build/2.1.8/871.js similarity index 100% rename from build/2.1.7/871.js rename to build/2.1.8/871.js diff --git a/build/2.1.7/910.js b/build/2.1.8/910.js similarity index 100% rename from build/2.1.7/910.js rename to build/2.1.8/910.js diff --git a/build/2.1.7/97.js b/build/2.1.8/97.js similarity index 100% rename from build/2.1.7/97.js rename to build/2.1.8/97.js diff --git a/build/2.1.7/971.js b/build/2.1.8/971.js similarity index 100% rename from build/2.1.7/971.js rename to build/2.1.8/971.js diff --git a/build/2.1.7/978.js b/build/2.1.8/978.js similarity index 100% rename from build/2.1.7/978.js rename to build/2.1.8/978.js diff --git a/build/2.1.7/993.js b/build/2.1.8/993.js similarity index 100% rename from build/2.1.7/993.js rename to build/2.1.8/993.js diff --git a/build/2.1.7/994.js b/build/2.1.8/994.js similarity index 100% rename from build/2.1.7/994.js rename to build/2.1.8/994.js diff --git a/build/2.1.7/images/ai_bg.55900f2d.png b/build/2.1.8/images/ai_bg.55900f2d.png similarity index 100% rename from build/2.1.7/images/ai_bg.55900f2d.png rename to build/2.1.8/images/ai_bg.55900f2d.png diff --git a/build/2.1.7/images/ai_bg_low.d8292556.png b/build/2.1.8/images/ai_bg_low.d8292556.png similarity index 100% rename from build/2.1.7/images/ai_bg_low.d8292556.png rename to build/2.1.8/images/ai_bg_low.d8292556.png diff --git a/build/2.1.7/images/bluesky.733ebcbf.png b/build/2.1.8/images/bluesky.733ebcbf.png similarity index 100% rename from build/2.1.7/images/bluesky.733ebcbf.png rename to build/2.1.8/images/bluesky.733ebcbf.png diff --git a/build/2.1.7/images/content.fb050ea1.png b/build/2.1.8/images/content.fb050ea1.png similarity index 100% rename from build/2.1.7/images/content.fb050ea1.png rename to build/2.1.8/images/content.fb050ea1.png diff --git a/build/2.1.7/images/design.cc6a697f.png b/build/2.1.8/images/design.cc6a697f.png similarity index 100% rename from build/2.1.7/images/design.cc6a697f.png rename to build/2.1.8/images/design.cc6a697f.png diff --git a/build/2.1.7/images/features.593fb09c.png b/build/2.1.8/images/features.593fb09c.png similarity index 100% rename from build/2.1.7/images/features.593fb09c.png rename to build/2.1.8/images/features.593fb09c.png diff --git a/build/2.1.7/images/full-service.7f58f410.png b/build/2.1.8/images/full-service.7f58f410.png similarity index 100% rename from build/2.1.7/images/full-service.7f58f410.png rename to build/2.1.8/images/full-service.7f58f410.png diff --git a/build/2.1.7/images/full-service.adb3abd6.png b/build/2.1.8/images/full-service.adb3abd6.png similarity index 100% rename from build/2.1.7/images/full-service.adb3abd6.png rename to build/2.1.8/images/full-service.adb3abd6.png diff --git a/build/2.1.7/images/help.19cc7e75.png b/build/2.1.8/images/help.19cc7e75.png similarity index 100% rename from build/2.1.7/images/help.19cc7e75.png rename to build/2.1.8/images/help.19cc7e75.png diff --git a/build/2.1.7/images/step-interstitial.00b15f9e.png b/build/2.1.8/images/step-interstitial.00b15f9e.png similarity index 100% rename from build/2.1.7/images/step-interstitial.00b15f9e.png rename to build/2.1.8/images/step-interstitial.00b15f9e.png diff --git a/build/2.1.7/images/toggle-light-mode.8d7afd07.png b/build/2.1.8/images/toggle-light-mode.8d7afd07.png similarity index 100% rename from build/2.1.7/images/toggle-light-mode.8d7afd07.png rename to build/2.1.8/images/toggle-light-mode.8d7afd07.png diff --git a/build/2.1.7/images/wp-admin.2908b886.png b/build/2.1.8/images/wp-admin.2908b886.png similarity index 100% rename from build/2.1.7/images/wp-admin.2908b886.png rename to build/2.1.8/images/wp-admin.2908b886.png diff --git a/build/2.1.7/images/wp-admin.6c8af0b4.png b/build/2.1.8/images/wp-admin.6c8af0b4.png similarity index 100% rename from build/2.1.7/images/wp-admin.6c8af0b4.png rename to build/2.1.8/images/wp-admin.6c8af0b4.png diff --git a/build/2.1.7/images/wp-admin.d8650899.png b/build/2.1.8/images/wp-admin.d8650899.png similarity index 100% rename from build/2.1.7/images/wp-admin.d8650899.png rename to build/2.1.8/images/wp-admin.d8650899.png diff --git a/build/2.1.7/onboarding.asset.php b/build/2.1.8/onboarding.asset.php similarity index 80% rename from build/2.1.7/onboarding.asset.php rename to build/2.1.8/onboarding.asset.php index 543c17509..a53bdb226 100644 --- a/build/2.1.7/onboarding.asset.php +++ b/build/2.1.8/onboarding.asset.php @@ -1 +1 @@ - array('lodash', 'react', 'react-dom', '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' => '4141c161648c11d7dfe6'); + array('lodash', 'react', 'react-dom', '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' => '7d55e272207c2fa638b7'); diff --git a/build/2.1.7/onboarding.css b/build/2.1.8/onboarding.css similarity index 100% rename from build/2.1.7/onboarding.css rename to build/2.1.8/onboarding.css diff --git a/build/2.1.7/onboarding.js b/build/2.1.8/onboarding.js similarity index 81% rename from build/2.1.7/onboarding.js rename to build/2.1.8/onboarding.js index 2a228c18f..3d0dc82ca 100644 --- a/build/2.1.7/onboarding.js +++ b/build/2.1.8/onboarding.js @@ -38,7 +38,7 @@ (0,l.__)("WordPress is free %s software","wp-module-onboarding"),(0,c.P)("website")),description:(0,l.sprintf)(/* translators: 1: website or store 2: website or store */ /* translators: 1: website or store 2: website or store */ (0,l.__)("When you set up this new WordPress %1$s, you’re joining millions of website owners who publish their %2$s using the free, community-built software project we’re proud to support.","wp-module-onboarding"),(0,c.P)("website"),(0,c.P)("website"),(0,c.P)("website"))},{heading:(0,l.sprintf)(/* translators: 1: Brand 2: website or store */ /* translators: 1: Brand 2: website or store */ (0,l.__)("%1$s is your %2$s partner","wp-module-onboarding"),e,(0,c.P)("website")),description:(0,l.sprintf)(/* translators: 1: website or store 2: Brand 3. site or store */ /* translators: 1: website or store 2: Brand 3. site or store */ -(0,l.__)("A WordPress %1$s hosted by %2$s has tons of unique and proven solutions to help you get farther, faster with your WordPress. We put our expertise, partnerships and solutions to work on your %3$s.","wp-module-onboarding"),(0,c.P)("website"),e,(0,c.P)("site"))}]},help:{experts:{text:(0,l.__)("1-1 Expert Solutions & Coaching","wp-module-onboarding"),link:t},fullService:{text:(0,l.__)("Hire Our Full-Service Creative Team","wp-module-onboarding"),link:a},support:{text:(0,l.__)("Technical Support","wp-module-onboarding"),link:n}}}))(e,t,n,a),v=w?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?b.information.headingWithDescriptions.filter(((e,t)=>w?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes(t))):b.information.headingWithDescriptions;return(0,i.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-welcome"},(0,i.createElement)(f,{heading:b.introduction.heading,subheading:b.introduction.subheading,icon:b.introduction.icon}),!1!==w?.views?.sidebar?.illustration?.shown&&(0,i.createElement)(d,{cssIcon:b.illustration.icon}),(0,i.createElement)(u,{headingWithDescriptions:v}),(0,i.createElement)(p,null,!1!==w?.views?.sidebar?.experts?.shown&&b.help.experts.link&&(0,i.createElement)(m,{text:b.help.experts.text,onClick:()=>window.open(b.help.experts.link,"_blank")}),!1!==w?.views?.sidebar?.fullService?.shown&&b.help.fullService.link&&(0,i.createElement)(h,{text:b.help.fullService.text,onClick:()=>window.open(b.help.fullService.link,"_blank")}),(0,i.createElement)(g,{text:b.help.support.text,link:b.help.support.link})))}]}},data:{tooltipText:(0,l.__)("Welcome","wp-module-onboarding")}})},4487:(e,t,n)=>{"use strict";n.d(t,{b:()=>F});var r=n(5822),a=n(8468),i=n(7723),o=n(2502),s=n(1609),l=n(6427),c=n(7677),d=n(6655),u=n(7143),p=n(9491),m=n(6087),h=n(8969),g=n(7675),f=n(6079),w=n(6478),b=n(7708),v=n(6786),_=n(5573);const E=(0,s.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(_.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var y=n(3013),S=n(8087);const k=(0,a.memo)((({onRegenerate:e,onCustomize:t,onRenameItemSelect:n,onViewAll:r,isLargeViewport:a,onToggle:o})=>{const d=e=>()=>{e(),o()};return(0,s.createElement)(l.MenuGroup,{className:"nfd-onboarding-header__version_dropdown-menu"},!a&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.MenuItem,{onClick:d(e)},(0,s.createElement)(c.A,{icon:v.A}),(0,i.__)("Regenerate","wp-module-onboarding")),(0,s.createElement)(l.MenuItem,{onClick:d(t)},(0,s.createElement)("div",{className:"nfd-onboarding-header__version_dropdown-menu__customize-button__icon"}),(0,i.__)("Customize","wp-module-onboarding"))),(0,s.createElement)(l.MenuItem,{onClick:d(n)},(0,i.__)("Rename","wp-module-onboarding")),(0,s.createElement)(l.MenuItem,{onClick:d(r)},(0,i.__)("View All","wp-module-onboarding")))})),C=(0,a.memo)((({isFavorite:e,homepageTitle:t,onFavorite:n,onRename:r,inputRef:o,onRegenerate:d,onCustomize:u,onRenameItemSelect:p,onViewAll:m,isLargeViewport:h,isInputEnabled:g,enableInput:f})=>{const[w,b]=(0,a.useState)(t),v=()=>{b(o.current.value)},_=()=>{const e=o.current.value.trim();e&&e!==t&&r(e),f(!1)};return(0,a.useEffect)((()=>{g&&o.current?.focus()}),[g,o]),(0,a.useEffect)((()=>{b(t)}),[t]),(0,s.createElement)(l.Dropdown,{renderToggle:({isOpen:t,onToggle:r})=>(0,s.createElement)("div",{role:"button",tabIndex:"0","aria-expanded":t,"aria-label":(0,i.__)("Regenerate","wp-module-onboarding"),className:"navigation-buttons-editor"},(0,s.createElement)("div",{className:"navigation-buttons-editor__favorite",role:"button",tabIndex:0,onKeyDown:n,onClick:n},e?(0,s.createElement)(S.h,null):(0,s.createElement)(y.h,null)),(0,s.createElement)("input",{ref:o,disabled:!g,className:"nfd-onboarding-header__center-input",type:"text",value:w,onBlur:_,onChange:v}),(0,s.createElement)(c.A,{className:"nfd-onboarding-header__center-dropdown_icon",icon:E,onClick:r,onKeyDown:e=>{"Enter"===e.key&&r()}})),renderContent:({onToggle:e})=>(0,s.createElement)(k,{onRegenerate:d,onCustomize:u,onRenameItemSelect:p,onViewAll:m,isLargeViewport:h,onToggle:e})})})),T=({handleFavorite:e,handleRename:t,handleViewAll:n,handleRegenerate:r,handleCustomize:i,homepageTitle:o,isFavorite:l})=>{const c=(0,p.useViewportMatch)("medium"),d=(0,a.useRef)(null),[u,m]=(0,a.useState)(!1),h=e=>{m(e),e&&d.current?.focus()},g=()=>{if("function"==typeof g)return e()};return(0,s.createElement)("div",{className:"nfd-onboarding-header__step-navigation"},(0,s.createElement)(C,{isFavorite:l,homepageTitle:o,onFavorite:g,onRename:e=>{"function"==typeof t&&t(e)},inputRef:d,onRegenerate:()=>{if("function"==typeof r)return r()},onCustomize:()=>{if("function"==typeof i)return i()},onRenameItemSelect:()=>{h(!0)},onViewAll:()=>{if("function"==typeof n)return n()},isLargeViewport:c,isInputEnabled:u,enableInput:h}))};var N=n(7517),A=n(7044),x=n(1455),D=n.n(x),P=n(8674),O=n(5435),I=n(1056),M=n(2202),L=n(8744);const z=(0,a.lazy)((()=>n.e(396).then(n.bind(n,9396)))),R=(0,a.lazy)((()=>n.e(100).then(n.bind(n,1100)))),V=(0,s.forwardRef)(((e,t)=>{const[n,r]=(0,a.useState)(!0),{updateCustomizeSidebarData:o}=(0,u.useDispatch)(g.M),l=(0,s.createRef)(),c=(0,s.createRef)(),d=()=>{c.current.resetToDefaultFonts(),l.current.resetToDefaultColors()};if((0,s.useImperativeHandle)(t,(()=>({resetCustomizationCallback:d}))),(0,a.useEffect)((()=>{(async()=>{const e=await(0,b.gK)();o(e?.body),r(!1)})()}),[]),n)return(0,s.createElement)("div",null,"...");const p={introduction:{heading:(0,i.__)("Colors","wp-module-onboarding")}};return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,s.createElement)(R,{heading:p.introduction.heading,ref:l}),(0,s.createElement)(z,{ref:c}))})),$=(0,a.lazy)((()=>n.e(426).then(n.bind(n,426)))),F=new o.p({path:"/sitegen/step/editor",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:$,icon:r.A,sidebars:{Customize:{SidebarComponents:[V]}},header:()=>{const[e,t]=(0,a.useState)(),[n,r]=(0,a.useState)(!1),[o,v]=(0,a.useState)(!1),[_,E]=(0,a.useState)(!1),y=(0,p.useViewportMatch)("medium"),{setCurrentOnboardingData:S,setSidebarActiveView:k,setIsSidebarOpened:C,setInteractionDisabled:x}=(0,u.useDispatch)(g.M),{currentData:z,sideBarView:R,isSidebarOpened:V}=(0,u.useSelect)((e=>({currentData:e(g.M).getCurrentOnboardingData(),sideBarView:e(g.M).getSidebarView(),isSidebarOpened:e(g.M).isSidebarOpened()}))),$=async()=>{if(n)return;if(v(!0),""===z.sitegen.siteDetails?.prompt)return void v(!1);const t=z.sitegen.homepages.data;if(!(e.slug in t))return void v(!1);const{slug:r,title:a,color:i,isFavorite:o}=e||{},s=await(0,b.HA)(z.sitegen.siteDetails.prompt,r,i,o);if(s.error)return void v(!1);const l=s.body;if(o){const e=`${a} (Copy)`;e!==l?.title&&(l.title=e)}t[l.slug]=l,z.sitegen.homepages.data=t,z.sitegen.homepages.active=l,S(z),v(!1),(0,I.v)(new I.iC(M.Hf,r,{source:L.d0,placement:"editor_toolbar"}))},F=async()=>{const e="Customize"===R?!V:V;k("Customize"),C(e),!0===e&&(0,I.v)(new I.iC(M.cB,"customize"));const t=await(0,N.w6)();E(t.body)},H=async()=>{r(!0);const e=z.sitegen.homepages.data,t=z.sitegen.homepages.active,n=((e,t)=>(0,s.createElement)("div",{className:"nfd-onboarding-screenshot-container__pages"},Object.keys(e).map(((n,r)=>{const a=e[n];if(!a.isFavorite&&n!==t.slug)return!1;const i=(0,m.cloneDeep)(_[0]);i.settings.color.palette=a.color.palette;let o="";return["header","content","footer"].forEach((e=>{e in a&&(o+=a[e])})),(0,s.createElement)(A.pA,{key:r,blockGrammer:o,previewSettings:i,slug:n,tabIndex:"0",role:"button"})}))))(e,t),i=document.querySelector(".nfd-onboarding-screenshot-container");if(i){(0,a.render)(n,i);const r=e=>new Promise((t=>setTimeout(t,e)));await r(5e3);const o=await Promise.all(Object.keys(e).map((n=>!(!e[n].isFavorite&&n!==t.slug)&&async function(e){return await(0,O.h)(D()({url:(0,P.fG)("block-render/screenshot"),method:"POST",data:{width:1200,height:900,content:e}}).then())}(i.querySelector(`div > div[data-slug="nfd-onboarding-block-preview-${n}"] > .block-editor-block-preview__container > div > iframe`).contentWindow.document.querySelector(".block-editor-block-preview__content-iframe").innerHTML))));Object.keys(e).forEach(((n,r)=>{o[r]?.body?.screenshot&&(e[n].screenshot=o[r].body.screenshot,n===t.slug&&(t.screenshot=o[r].body.screenshot))})),z.sitegen.homepages.data=e,z.sitegen.homepages.active=t,S(z)}await(0,f.V1)(z),await(0,f.IS)(),(0,I.SV)(new I.iC(M.Vg,{source:L.d0})),window.location.replace(h.R0)};return(0,a.useEffect)((()=>{F()}),[]),(0,a.useEffect)((()=>{z?.sitegen?.homepages?.active&&t(z.sitegen.homepages.active)}),[z]),(0,a.useEffect)((()=>(x(!(!n&&!o)),()=>{x(!1)})),[n,o]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.nK}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start"},y&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__start__regenerate ${n&&"nfd-onboarding-header--sitegen__editor__start__regenerate__disabled"}`,role:"button",tabIndex:0,onClick:$,onKeyDown:$},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__text"},(0,i.__)("Regenerate","wp-module-onboarding")),o&&(0,s.createElement)(w.A,{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__spinner"})))),(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.me}`},e&&(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__center"},(0,s.createElement)(T,{handleFavorite:()=>{if(n)return;const t=z.sitegen.homepages.data;if(!(e.slug in t))return;const r=!e.isFavorite;e.isFavorite=r,z.sitegen.homepages.data[e.slug]=e,z.sitegen.homepages.active=e,S(z),(0,I.v)(new I.iC(M.Nz,e.slug,{favorite:r,placement:"editor_toolbar",source:L.d0}))},handleViewAll:()=>{V&&R===h.V_||(k(h.V_),C(!0),(0,I.v)(new I.iC(M.cB,"all_versions",{source:L.d0})))},handleCustomize:F,handleRegenerate:$,handleRename:t=>{e.title=t,z.sitegen.homepages.data[e.slug]=e,z.sitegen.homepages.active=e,S(z),(0,I.v)(new I.iC(M.TH,e.slug,{name:t,source:L.d0}))},homepageTitle:e.title,isFavorite:e.isFavorite}))),(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.KZ}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end"},y&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__end__customize-button ${n&&"nfd-onboarding-header--sitegen__editor__end__customize-button__disabled"}`,onClick:F,onKeyDown:F,role:"presentation"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__text"},(0,i.__)("Customize","wp-module-onboarding"))),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button__text",onClick:H,role:"button",tabIndex:0,onKeyDown:H},y?(0,i.__)("Save & Continue","wp-module-onboarding"):(0,i.__)("Next","wp-module-onboarding")),n?(0,s.createElement)(w.A,{className:"nfd-onboarding-header--sitegen__editor__end__save-button__spinner"}):(0,s.createElement)(c.A,{icon:d.A,className:"nfd-onboarding-header--sitegen__editor__end__save-button__text"})))))}})},4635:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(619).then(n.bind(n,619)))),l=new o.p({path:"/sitegen/step/preview",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},4805:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(632).then(n.bind(n,5632)))),l=new o.p({path:"/sitegen/step/site-logo",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},9034:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(106).then(n.bind(n,3106)))),l=new o.p({path:"/wp-setup/step/fork",title:(0,i.__)("The Fork","wp-module-onboarding"),Component:s,icon:r.A,drawerNavigation:!1,sidebars:{LearnMore:{SidebarComponents:[]}}})},7675:(e,t,n)=>{"use strict";n.d(t,{M:()=>mt});var r={};n.r(r),n.d(r,{dequeueRequest:()=>I,enqueueRequest:()=>O,flushQueue:()=>M,resetNavError:()=>R,setActiveChapter:()=>p,setActiveFlow:()=>d,setActiveHomepage:()=>$,setActiveStep:()=>u,setContinueWithoutAi:()=>B,setCurrentOnboardingData:()=>m,setDrawerActiveView:()=>s,setFooterActiveView:()=>C,setHeaderActiveView:()=>y,setHeaderMenuData:()=>P,setHideFooterNav:()=>k,setHomepagesData:()=>V,setInteractionDisabled:()=>U,setIsDrawerOpened:()=>l,setIsDrawerSuppressed:()=>c,setIsFooterNavAllowed:()=>S,setIsHeaderEnabled:()=>E,setIsHeaderNavigationEnabled:()=>_,setIsSidebarOpened:()=>b,setNavErrorContinuePath:()=>z,setOnboardingSocialData:()=>h,setRuntime:()=>o,setSidebarActiveView:()=>v,showNavErrorDialog:()=>L,toggleFavorite:()=>F,updateAllSteps:()=>A,updateCustomizeSidebarData:()=>H,updateDesignRoutes:()=>D,updateInitialize:()=>w,updatePreviewSettings:()=>T,updateRoutes:()=>N,updateSettings:()=>g,updateSiteGenErrorStatus:()=>W,updateThemeStatus:()=>f,updateTopSteps:()=>x});var a={};n.r(a),n.d(a,{getActiveDrawerView:()=>j,getActiveHomepage:()=>qe,getAllHomepages:()=>je,getAllSteps:()=>me,getCurrentChapter:()=>_e,getCurrentOnboardingData:()=>ce,getCurrentStep:()=>ve,getCurrentStepPath:()=>fe,getCurrentUserDetails:()=>Be,getCustomizeSidebarData:()=>Qe,getDesignRoutes:()=>ge,getExperienceLevel:()=>We,getExpertsUrl:()=>Ie,getFirstStep:()=>we,getFooterActiveView:()=>te,getFooters:()=>X,getHeaderActiveView:()=>ee,getHeaderMenuData:()=>Oe,getHeaders:()=>J,getHideFooterNav:()=>re,getHireExpertsUrl:()=>le,getHomepagesData:()=>Ge,getInitialize:()=>De,getInteractionDisabled:()=>Ze,getIsFooterNavAllowed:()=>ne,getLastStep:()=>be,getMigrationUrl:()=>ze,getNavErrorPath:()=>He,getNewfoldBrand:()=>ae,getNewfoldBrandConfig:()=>oe,getNewfoldBrandName:()=>ie,getNewfoldBrandUrl:()=>se,getNextStep:()=>Se,getOnboardingFlow:()=>ue,getOnboardingSocialData:()=>de,getPluginInstallHash:()=>Re,getPreviewSettings:()=>Ne,getPreviousStep:()=>ye,getQueuePeek:()=>Ve,getRoutes:()=>pe,getSettings:()=>Ae,getShowErrorDialog:()=>Fe,getSidebarView:()=>Ce,getSidebars:()=>Te,getSiteGenErrorStatus:()=>Ke,getStepFromPath:()=>Ee,getStepPreviewData:()=>Pe,getTechSupportUrl:()=>Le,getThemeStatus:()=>xe,getTopPriority:()=>Ue,getTopSteps:()=>he,getfullServiceCreativeTeamUrl:()=>Me,isDrawerOpened:()=>Q,isDrawerSuppressed:()=>K,isHeaderEnabled:()=>Y,isHeaderNavigationEnabled:()=>Z,isQueueEmpty:()=>$e,isSidebarOpened:()=>ke});var i=n(8744);function o(e){var t;return window.nfdOnboarding={buildUrl:e.buildUrl,siteUrl:e.siteUrl,migrated:!0,currentFlow:null!==(t=e.currentFlow)&&void 0!==t?t:i.rA,stepPreviewData:e.previewSettings.stepPreviewData},{type:"SET_RUNTIME",runtime:e}}function s(e){return{type:"SET_DRAWER_ACTIVE_VIEW",view:e}}function l(e){return{type:"SET_DRAWER_OPENED",isOpen:e}}function c(e){return{type:"SET_DRAWER_SUPPRESSED",isSuppressed:e}}function d(e){return{type:"SET_ACTIVE_FLOW",flow:e}}function u(e){return{type:"SET_ACTIVE_STEP",path:e=e.replace(/\/$/,"")}}function p(e){return{type:"SET_ACTIVE_CHAPTER",chapter:e}}function m(e){return{type:"SET_CURRENT_DATA",flowData:e}}function h(e){return{type:"SET_SOCIAL_DATA",socialData:e}}function g(e){return{type:"UPDATE_SETTINGS",settings:e}}function f(e){return{type:"UPDATE_THEME_STATUS",themeStatus:e}}function w(e){return{type:"UPDATE_INITIALIZE",initialize:e}}function b(e){return{type:"SET_SIDEBAR_OPENED",isOpen:e}}function v(e){return{type:"SET_SIDEBAR_ACTIVE_VIEW",view:e}}function _(e){return{type:"SET_HEADER_NAVIGATION_ENABLED",isNavigationEnabled:e}}function E(e){return{type:"SET_HEADER_ENABLED",isEnabled:e}}function y(e){return{type:"SET_HEADER_ACTIVE_VIEW",view:e}}function S(e){return{type:"SET_IS_FOOTER_NAV_ALLOWED",isNavAllowed:e}}function k(e){return{type:"SET_HIDE_FOOTER_NAV",hideFooterNav:e}}function C(e){return{type:"SET_FOOTER_ACTIVE_VIEW",view:e}}function T(e){return{type:"SET_PREVIEW_SETTINGS",previewSettings:e}}function N(e){return{type:"UPDATE_ROUTES",routes:e}}function A(e){return{type:"UPDATE_ALL_STEPS",allSteps:e}}function x(e){return{type:"UPDATE_TOP_STEPS",topSteps:e}}function D(e){return{type:"UPDATE_DESIGN_ROUTES",designRoutes:e}}function P(e){return{type:"UPDATE_HEADER_MENU_DATA",menu:e}}function O(e,t){return{type:"ENQUEUE_REQUEST",id:e,request:t}}function I(){return{type:"DEQUEUE_REQUEST"}}function M(){return{type:"FLUSH_QUEUE"}}function L(e){return{type:"SHOW_NAV_ERROR_DIALOG",showDialog:e}}function z(e){return{type:"SET_NAV_ERROR_CONTINUE_PATH",continuePath:e}}function R(){return{type:"RESET_NAV_ERROR"}}const V=e=>({type:"SET_HOMEPAGES_DATA",homepagesData:e}),$=e=>({type:"SET_ACTIVE_HOMEPAGE",activeHomepage:e}),F=e=>({type:"TOGGLE_FAVORITE",slug:e});function H(e){return{type:"CUSTOMIZE_SIDEBAR_DATA",customizeSidebarData:e}}function W(e){return{type:"SET_SITEGEN_AI_ERROR_STATUS",siteGenErrorStatus:e}}function U(e){return{type:"SET_INTERACTION_DISABLED",interactionDisabled:e}}function B(e){return{type:"SET_FLOW_WITHOUT_AI",continueWithoutAi:e}}var G=n(6087),q=n(3832);function j(e){return e.drawer.view}function Q(e){return e.drawer.isOpen}function K(e){return e.drawer.isSuppressed}function Z(e){return e.header.isNavigationEnabled}function Y(e){return e.header.isEnabled}function J(e){return e.header.headers}function X(e){return e.footer.footers}function ee(e){return e.header.view}function te(e){return e.footer.view}function ne(e){return e.footer.isNavAllowed}function re(e){return e.footer.hideFooterNav}function ae(e){return e.runtime.currentBrand.brand}function ie(e){return e.runtime.currentBrand.name}function oe(e){return e.runtime.currentBrand.config}function se(e){return e.runtime.currentBrand.url}function le(e){const t=e.runtime.currentBrand.hireExpertsInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParameters)+(t?.fragment||"")}function ce(e){return e.data.flowData}function de(e){return e.data.socialData}function ue(e){var t;return null!==(t=e.runtime.currentFlow)&&void 0!==t?t:i.rA}function pe(e){return e.flow.steps.routes}function me(e){return e.flow.steps.allSteps}function he(e){return e.flow.steps.topSteps}function ge(e){return e.flow.steps.designRoutes}function fe(e){return e.flow.steps.currentStep}function we(e){return e.flow.steps.allSteps[0]}function be(e){return e.flow.steps.allSteps[e.flow.steps.allSteps.length-1]}function ve(e){return(0,G.filter)(e.flow.steps.allSteps,["path",e.flow.steps.currentStep])[0]}function _e(e){return e.flow.chapter}function Ee(e,t){return(0,G.filter)(e.flow.steps.allSteps,["path",t])[0]}function ye(e){const t=(0,G.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return 0===t?null:-1!==t&&e.flow.steps.allSteps[t-1]}function Se(e){const t=e.flow.steps.allSteps.length-1,n=(0,G.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return t===n?null:-1!==n&&e.flow.steps.allSteps[n+1]}function ke(e){return e.sidebar.isOpen}function Ce(e){return e.sidebar.view}function Te(e){return(0,G.filter)(e.sidebar.sidebars,["enabled",!0])}function Ne(e){return e.runtime.previewSettings.settings}function Ae(e){return e.settings}function xe(e){return e.settings.themeStatus}function De(e){return e.settings.initialize}function Pe(e){return e.runtime.previewSettings.stepPreviewData}function Oe(e){return e.header.menu}function Ie(e){const t=e.runtime.currentBrand.expertsInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Me(e){const t=e.runtime.currentBrand.fullServiceCreativeTeamInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Le(e){const t=e.runtime.currentBrand.techSupportInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function ze(e){const t=e.runtime.currentBrand.migrationInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Re(e){return e.runtime.pluginInstallHash}function Ve(e){var t;return null!==(t=e?.queue[0])&&void 0!==t?t:null}function $e(e){return 0===e?.queue?.length}function Fe(e){return e.flow.steps.error.showDialog}function He(e){return e.flow.steps.error.continuePath}function We(e){return e.data.flowData.data.wpComfortLevel}function Ue(e){return e.data.flowData.data.topPriority.priority1}function Be(e){return e.runtime.currentUserDetails}const Ge=e=>e.data.flowData.sitegen.homepages,qe=e=>e.data.flowData.sitegen.homepages.active,je=e=>e.data.flowData.sitegen.homepages.data;function Qe(e){return e.runtime.customizeSidebarData}function Ke(e){return e.data.flowData.sitegen.siteGenErrorStatus}function Ze(e){return e.flow.interactionDisabled}var Ye=n(7143),Je=n(8969),Xe=n(7835),et=n(8468);const tt=(0,et.lazy)((()=>n.e(202).then(n.bind(n,4202)))),nt=(0,et.lazy)((()=>n.e(356).then(n.bind(n,2356)))),rt=(0,et.lazy)((()=>n.e(803).then(n.bind(n,8803)))),at=(0,et.lazy)((()=>n.e(910).then(n.bind(n,3910)))),it=(0,et.lazy)((()=>n.e(40).then(n.bind(n,5040)))),ot=[{id:Je.Qe,menu:tt,sidebar:nt,enabled:!0},{id:Je.V_,sidebar:rt,enabled:!0},{id:Je.jK,menu:at,sidebar:it,enabled:!0}],st=(0,et.lazy)((()=>n.e(403).then(n.bind(n,1403)))),lt=(0,et.lazy)((()=>n.e(796).then(n.bind(n,5796)))),ct=[{id:Je.Ix,header:st,enabled:!0},{id:Je.Mw,header:lt,enabled:!0}],dt=(0,et.lazy)((()=>n.e(971).then(n.bind(n,1971)))),ut=[{id:Je.Sr,footer:dt,enabled:!0}],pt={reducer:(0,Ye.combineReducers)({drawer:function(e={isOpen:!1,isSuppressed:!1,view:Je.vO},t){switch(t.type){case"SET_DRAWER_OPENED":return{...e,isOpen:t.isOpen};case"SET_DRAWER_ACTIVE_VIEW":return{...e,view:t.view};case"SET_DRAWER_SUPPRESSED":return{...e,isSuppressed:t.isSuppressed,isOpen:!t.isSuppressed&&e.isOpen}}return e},runtime:function(e={},t){switch(t.type){case"SET_RUNTIME":return{...e,...t.runtime};case"SET_PREVIEW_SETTINGS":return{...e,previewSettings:{...e.previewSettings,settings:t.previewSettings}};case"CUSTOMIZE_SIDEBAR_DATA":return{...e,customizeSidebarData:t.customizeSidebarData}}return e},data:function(e={},t){switch(t.type){case"SET_CURRENT_DATA":return{...e,flowData:{...t.flowData}};case"SET_SOCIAL_DATA":return{...e,socialData:{...t.socialData}};case"SET_HOMEPAGES_DATA":return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,homepages:t.homepagesData}}};case"SET_ACTIVE_HOMEPAGE":return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,homepages:{...e.flowData.sitegen.homepages,active:t.activeHomepage}}}};case"SET_SITEGEN_AI_ERROR_STATUS":return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,siteGenErrorStatus:t.siteGenErrorStatus}}}}return e},settings:function(e={themeStatus:Je.So,initialize:!1},t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings};case"UPDATE_THEME_STATUS":return{...e,themeStatus:t.themeStatus};case"UPDATE_INITIALIZE":return{...e,initialize:t.initialize}}return e},flow:function(e={flow:i.rA,steps:{routes:Xe.FI,allSteps:Xe.o2,topSteps:Xe.Zq,designRoutes:Xe.Tk,currentStep:"",error:{showDialog:!1,continuePath:""}},chapter:void 0,interactionDisabled:!1},t){switch(t.type){case"SET_ACTIVE_STEP":return{...e,steps:{...e.steps,currentStep:t.path}};case"SET_ACTIVE_FLOW":return{...e,flow:t.flow};case"UPDATE_ROUTES":return{...e,steps:{...e.steps,routes:t.routes}};case"UPDATE_ALL_STEPS":return{...e,steps:{...e.steps,allSteps:t.allSteps}};case"UPDATE_TOP_STEPS":return{...e,steps:{...e.steps,topSteps:t.topSteps}};case"UPDATE_DESIGN_ROUTES":return{...e,steps:{...e.steps,designRoutes:t.designRoutes}};case"SHOW_NAV_ERROR_DIALOG":return{...e,steps:{...e.steps,error:{...e.steps.error,showDialog:t.showDialog}}};case"SET_NAV_ERROR_CONTINUE_PATH":return{...e,steps:{...e.steps,error:{...e.steps.error,continuePath:t.continuePath}}};case"RESET_NAV_ERROR":return{...e,steps:{...e.steps,error:{showDialog:!1,continuePath:""}}};case"SET_ACTIVE_CHAPTER":return{...e,chapter:t.chapter};case"SET_INTERACTION_DISABLED":return{...e,interactionDisabled:t.interactionDisabled};case"SET_FLOW_WITHOUT_AI":return{...e,flow:t.continueWithoutAi}}return e},sidebar:function(e={isOpen:!1,view:"LearnMore",sidebars:ot},t){switch(t.type){case"SET_SIDEBAR_OPENED":return{...e,isOpen:t.isOpen};case"SET_SIDEBAR_ACTIVE_VIEW":return{...e,view:t.view}}return e},header:function(e={isNavigationEnabled:!0,menu:"",isEnabled:!0,headers:ct,view:Je.Mw},t){switch(t.type){case"SET_HEADER_NAVIGATION_ENABLED":return{...e,isNavigationEnabled:t.isNavigationEnabled};case"SET_HEADER_ENABLED":return{...e,isEnabled:t.isEnabled};case"UPDATE_HEADER_MENU_DATA":return{...e,menu:t.menu};case"SET_HEADER_ACTIVE_VIEW":return{...e,view:t.view}}return e},footer:function(e={footers:ut,isNavAllowed:!0,hideFooterNav:!1,view:Je.Sr},t){switch(t.type){case"SET_IS_FOOTER_NAV_ALLOWED":return{...e,isNavAllowed:t.isNavAllowed};case"SET_HIDE_FOOTER_NAV":return{...e,hideFooterNav:t.hideFooterNav};case"SET_FOOTER_ACTIVE_VIEW":return{...e,view:t.view}}return e},queue:function(e=[],t){switch(t.type){case"ENQUEUE_REQUEST":return e=e.filter((e=>e[0]!==t.id)),[...e,[t.id,t.request]];case"DEQUEUE_REQUEST":return[...e.slice(1)];case"FLUSH_QUEUE":return(async e=>{const t=e,n=async(e=1)=>{t[0]&&await t[0][1]().then((t=>{t.error&&et.shift())).then(n)};await n()})(e),[]}return e}}),actions:r,selectors:a},mt=(0,Ye.createReduxStore)("newfold/onboarding",pt);(0,Ye.register)(mt)},2202:(e,t,n)=>{"use strict";n.d(t,{$2:()=>N,$x:()=>A,DN:()=>g,Dl:()=>R,Ep:()=>p,Fi:()=>v,Hf:()=>P,N0:()=>o,Nz:()=>O,Qh:()=>C,Qp:()=>x,TH:()=>I,Vg:()=>a,WN:()=>T,WT:()=>_,Wi:()=>D,XJ:()=>z,Zt:()=>w,aq:()=>c,cB:()=>M,ce:()=>m,f2:()=>E,gH:()=>l,hi:()=>u,j7:()=>y,k2:()=>d,o3:()=>f,oA:()=>i,p$:()=>r,r2:()=>h,rf:()=>b,uv:()=>L,vO:()=>s,vY:()=>S,wo:()=>k});const r="onboarding_started",a="onboarding_complete",i="pageview",o="onboarding_top_priority_set",s="onboarding_step_skipped",l="primary_type_set",c="secondary_type_set",d="experience_level_set",u="theme_style_selected",p="colors_selected",m="fonts_selected",h="header_selected",g="homepage_layout_selected",f="starter_pages_selected",w="feature_added",b="site_title_set",v="tagline_set",_="logo_added",E="onboarding_exited",y="onboarding_chapter_started",S="onboarding_chapter_complete",k="social_added",C="fork_option_selected",T="site_details_prompt_set",N="social_connected",A="social_connect_skipped",x="logo_skipped",D="homepage_selected",P="homepage_regenerated",O="homepage_favorited",I="homepage_renamed",M="sidebar_opened",L="site_generation_time",z="wonder_start",R={[o]:"top_priority",[s]:"step",[l]:"primary_type",[c]:"secondary_type",[d]:"experience_level",[u]:"theme_style",[p]:"color_palette",[m]:"font_set",[h]:"header",[g]:"layout",[f]:"pages",[w]:"feature",[b]:"title",[v]:"tagline",[E]:"step",[y]:"chapter",[S]:"chapter",[k]:"platform",[C]:"flow",[T]:"prompt",[N]:"platform",[D]:"version",[P]:"version",[O]:"version",[M]:"type",[I]:"version",[L]:"time"}},1056:(e,t,n)=>{"use strict";n.d(t,{iC:()=>i,Co:()=>l,SV:()=>s,v:()=>o});var r=n(4371),a=n(2202);class i extends r.c{constructor(e,t,n,r){const i=l(e);super(a.XJ,e,{label_key:i,[i]:t,...n,page:r||window.location.href},a.XJ)}}const o=e=>r.y.track(e),s=e=>r.y.send(e),l=e=>{if(e in a.Dl)return a.Dl[e]}},8674:(e,t,n)=>{"use strict";n.d(t,{EG:()=>i,fG:()=>a,zV:()=>o});var r=n(8969);const a=e=>`${r.Xi}/${e}`+(window.nfdOnboarding?.currentFlow?`&flow=${window.nfdOnboarding.currentFlow}`:""),i=e=>`${r.g5}/${e}`,o=e=>`${r.h0}/${e}`},5171:(e,t,n)=>{"use strict";n.d(t,{Im:()=>o,JK:()=>s,mj:()=>l});var r=n(1455),a=n.n(r),i=n(8674);const o=e=>0===Object.keys(e).length;async function s(){return a()({url:(0,i.zV)("settings")})}async function l(e){return a()({url:(0,i.zV)("settings"),method:"POST",data:e})}},6079:(e,t,n)=>{"use strict";n.d(t,{HR:()=>u,IS:()=>d,V1:()=>c,lv:()=>l});var r=n(5435),a=n(8674),i=n(1455),o=n.n(i);let s;async function l(){return await(0,r.h)(o()({url:(0,a.fG)("flow")}).then())}async function c(e){s&&s.abort("New setFlow request placed!"),s=new AbortController;const{signal:t}=s;return await(0,r.h)(o()({url:(0,a.fG)("flow"),signal:t,method:"POST",data:e}).then())}async function d(){return await(0,r.h)(o()({url:(0,a.fG)("flow/complete"),method:"POST"}).then())}async function u(e){return await(0,r.h)(o()({url:(0,a.fG)("flow/switch"),method:"POST",data:{flow:e}}).then())}},8520:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(5435),a=n(8674),i=n(1455),o=n.n(i);async function s(e=!1,t=!1){return await(0,r.h)(o()({url:(0,a.fG)("patterns"+(e?`&step=${e}&squash=${t}`:""))}).then())}},8559:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>c,YR:()=>u,ze:()=>d});var r=n(1455),a=n.n(r),i=n(8674),o=n(3272),s=n(5435),l=n(8969);const c=e=>{if((0,o.qn)(l.z3))return!0;a()({url:(0,i.fG)("plugins/initialize"),method:"POST",headers:{"X-NFD-INSTALLER":e||window.nfdOnboarding.pluginInstallHash}}).catch((e=>{console.error(e)}))},d=async()=>await(0,s.h)(a()({url:(0,i.fG)("plugins/site-features")}));async function u(){return await(0,s.h)(a()({url:(0,i.fG)("plugins/initialize/activate"),method:"POST"}).then())}},5435:(e,t,n)=>{"use strict";async function r(e){const t={body:null,error:null};try{t.body=await e}catch(e){t.error=e}return t}n.d(t,{h:()=>r})},2014:(e,t,n)=>{"use strict";n.d(t,{mt:()=>l,n_:()=>d,oc:()=>c});var r=n(1455),a=n.n(r),i=n(5435),o=n(8969),s=n(8674);async function l(){return await(0,i.h)(a()({url:(0,s.fG)("settings")}).then())}async function c(e){return await(0,i.h)(a()({url:(0,s.fG)("settings"),method:"POST",data:e}).then())}const d=(e=0)=>!(e>=o.lp)&&a()({url:(0,s.fG)("settings/initialize"),method:"POST"}).catch((()=>{d(e+=1)}))},7708:(e,t,n)=>{"use strict";n.d(t,{HA:()=>d,c7:()=>c,gK:()=>u,iQ:()=>l,kA:()=>s,rZ:()=>p});var r=n(1455),a=n.n(r),i=n(5435),o=n(8674);async function s(){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/identifiers")}).then())}async function l(e,t,n=!0){return await a()({url:(0,o.fG)("sitegen/generate"),method:"POST",data:{site_info:e,identifier:t,skip_cache:n}})}async function c(e){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/homepages"),method:"POST",data:{site_description:e}}).then())}async function d(e,t,n,r){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/homepages/regenerate"),method:"POST",data:{site_description:e,slug:t,palette:n,isFavorite:r}}).then())}async function u(){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/customize-data")}).then())}async function p(e){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/pages/sitemap"),method:"POST",data:{site_description:e}}).then())}},7517:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>c,_t:()=>g,ai:()=>d,kt:()=>f,oy:()=>m,qv:()=>h,w6:()=>p,xN:()=>u});var r=n(1455),a=n.n(r),i=n(8674),o=n(5435),s=n(3272),l=n(8969);const c=()=>{if((0,s.qn)(l.X0))return!0;a()({url:(0,i.fG)("themes/initialize"),method:"POST"}).catch((e=>{console.error(e)}))},d=async(e,t=!0,n=!0)=>"string"==typeof e&&await(0,o.h)(a()({url:(0,i.EG)("themes/install"),method:"POST",data:{theme:e,activate:t,queue:n}})),u=async(e,t=!0)=>"string"==typeof e&&await(0,o.h)(a()({url:(0,i.EG)("themes/expedite"),method:"POST",data:{theme:e,activate:t}})),p=async(e=!1)=>await(0,o.h)(a()({url:(0,i.fG)("themes/variations&variations="+e)}).then()),m=async e=>await(0,o.h)(a()({url:(0,i.fG)("themes/variations"),method:"POST",data:e}).then()),h=async e=>await(0,o.h)(a()({url:(0,i.EG)("themes/status"+(e?`&theme=${e}`:""))})),g=async()=>await(0,o.h)(a()({url:(0,i.fG)("themes/fonts")})),f=async()=>await(0,o.h)(a()({url:(0,i.fG)("themes/colors")}))},7225:(e,t,n)=>{"use strict";n.d(t,{AN:()=>_});var r=n(1609),a=n(6087),i=n(4997);const o=window.wp.styleEngine;var s=n(4715);function l(e,t={}){if(!e)return null;const{coerceTo:n,rootSizeValue:r,acceptableUnits:a}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=a?.join("|"),o=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),s=e.match(o);if(!s||s.length<3)return null;let[,l,c]=s,d=parseFloat(l);return"px"!==n||"em"!==c&&"rem"!==c||(d*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(d/=r,c=n),{value:d,unit:c}}function c(e,t=3){return Number.isFinite(e)?parseFloat(e.toFixed(t)):void 0}const d="body",u=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["typography","fontSizes"],valueFunc:(e,{typography:t})=>function(e,t){const{size:n}=e;if(!0!==t?.fluid)return n;if(!1===e?.fluid)return n;const r=e?.fluid||{};let a=r?.min,i=r?.max;const o=l(n);return o?.unit?(a||(a=.75*o.value+o.unit),i||(i=1.5*o.value+o.unit),function({maximumViewPortWidth:e,minimumViewPortWidth:t,maximumFontSize:n,minimumFontSize:r,scaleFactor:a}){const i=l(r),o=i?.unit||"rem",s=l(n,{coerceTo:o});if(!i||!s)return null;const d=l(r,{coerceTo:"rem"}),u=l(e,{coerceTo:o}),p=l(t,{coerceTo:o});if(!u||!p||!d)return null;const m=c(p.value/100,3)+o;let h=(s.value-i.value)/(u.value-p.value)*100;h=c(h,3)||1;const g=h*a;return`clamp(${r}, ${d.value}${d.unit} + ((1vw - ${m}) * ${g}), ${n})`}({maximumViewPortWidth:"1600px",minimumViewPortWidth:"768px",maximumFontSize:i,minimumFontSize:a,scaleFactor:1})||n):n}(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],p={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function m(e){return e?.startsWith?.("var:")?`var(--wp--${e.slice(4).split("|").join("--")})`:e}function h(e={},t,n){let r=[];return Object.keys(e).forEach((i=>{const o=t+(0,a.kebabCase)(i.replace("/","-")),s=e[i];if(s instanceof Object){const e=o+n;r=[...r,...h(s,e,n)]}else r.push(`${o}: ${s}`)})),r}function g(e={},t="",n,r={}){const s=d===t,l=(0,a.reduce)(i.__EXPERIMENTAL_STYLE_PROPERTY,((t,{value:r,properties:i,rootOnly:o},l)=>{if(o&&!s)return t;const c=r;if("elements"===c[0])return t;const d=(0,a.get)(e,c);if("--wp--style--root--padding"===l&&("string"==typeof d||!n))return t;if(i&&"string"!=typeof d)Object.entries(i).forEach((e=>{const[n,r]=e;if(!(0,a.get)(d,[r],!1))return;const i=n.startsWith("--")?n:(0,a.kebabCase)(n);t.push(`${i}: ${m((0,a.get)(d,[r]))}`)}));else if((0,a.get)(e,c,!1)){const n=l.startsWith("--")?l:(0,a.kebabCase)(l);t.push(`${n}: ${m((0,a.get)(e,c))}`)}return t}),[]);return(0,o.getCSSRules)(e).forEach((e=>{if(s&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:(0,a.kebabCase)(e.key);let i=e.value;if("string"!=typeof i&&i?.ref){const e=i.ref.split(".");if(i=(0,a.get)(r,e),!i||i?.ref)return}l.push(`${t}: ${i}`)})),l}const f=(e,t)=>{var n;const r=[];if(!e?.settings)return r;const i=e=>{const t={};return u.forEach((({path:n})=>{const r=(0,a.get)(e,n,!1);!1!==r&&(0,a.set)(t,n,r)})),t},o=i(e.settings),s=e.settings?.custom;return(0,a.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:d}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const o=i(n),s=n.custom;(0,a.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:t[e].selector})})),r},w=(e,t)=>{const n=f(e,t);let r="";return n.forEach((({presets:t,custom:n,selector:i})=>{const o=function(e={},t){return(0,a.reduce)(u,((n,{path:r,valueKey:i,valueFunc:o,cssVarInfix:s})=>{const l=(0,a.get)(e,r,[]);return l&&Array.isArray(l)&&l.forEach((e=>{i&&!o?n.push(`--wp--preset--${s}--${(0,a.kebabCase)(e.slug)}: ${e[i]}`):o&&"function"==typeof o&&n.push(`--wp--preset--${s}--${(0,a.kebabCase)(e.slug)}: ${o(e,t)}`)})),n}),[])}(t,e?.settings),s=h(n,"--wp--custom--","--");s.length>0&&o.push(...s),o.length>0&&(r+=`${i}{${o.join(";")};}`)})),r},b=(e,t,n,r,o=!1)=>{const l=((e,t)=>{var n;const r=[];if(!e?.styles)return r;const o=e=>(0,a.pickBy)(e,((e,t)=>["border","color","spacing","typography","filter"].includes(t))),s=o(e.styles);return s&&r.push({styles:s,selector:d}),Object.entries(i.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements&&e.styles?.elements[t]&&r.push({styles:e.styles?.elements[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var a;const s=o(n);s&&t?.[e]?.selector&&r.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:s,featureSelectors:t[e].featureSelectors}),Object.entries(null!==(a=n?.elements)&&void 0!==a?a:{}).forEach((([n,a])=>{a&&t?.[e]&&i.__EXPERIMENTAL_ELEMENTS?.[n]&&r.push({styles:a,selector:t[e].selector.split(",").map((e=>i.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),r})(e,t),c=f(e,t),p=e?.settings?.useRootPaddingAwareAlignments,{contentSize:m,wideSize:h}=e?.settings?.layout||{};let w="body {margin: 0;";if(m&&(w+=` --wp--style--global--content-size: ${m};`),h&&(w+=` --wp--style--global--wide-size: ${h};`),p&&(w+='padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } \n\t\t\t .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; } \n\t\t\t .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; } \n\t\t\t .has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;'),w+="}",l.forEach((({selector:t,duotoneSelector:a,styles:i,fallbackGapValue:l,hasLayoutSupport:c,featureSelectors:u})=>{u&&Object.entries(u).forEach((([e,t])=>{if(i?.[e]){const n=g({[e]:i[e]});delete i[e],n.length&&(w+=`${t}{${n.join(";")} }`)}}));const m={};if(i?.filter&&(m.filter=i.filter,delete i.filter),a){const e=g(m);e.length>0&&(w+=`${a}{${e.join(";")};}`)}o||d!==t&&!c||(w+=function({tree:e,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:a,fallbackGapValue:i}){let o="",l=r?(0,s.__experimentalGetGapCSSValue)(t?.spacing?.blockGap):"";if(a&&(n===d?l=l||"0.5em":!r&&i&&(l=i)),l&&e?.settings?.layout?.definitions&&(Object.values(e.settings.layout.definitions).forEach((({className:e,name:t,spacingStyles:a})=>{(r||"flex"===t)&&a?.length&&a.forEach((t=>{const a=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{a.push(`${e}: ${t||l}`)})),a.length){let i="";i=r?n===d?`${n} .${e}${t?.selector||""}`:`${n}.${e}${t?.selector||""}`:n===d?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,o+=`${i} { ${a.join("; ")}; }`}}))})),n===d&&r&&(o+=`${n} { --wp--style--block-gap: ${l}; }`)),n===d&&e?.settings?.layout?.definitions){const t=["block","flex","grid"];Object.values(e.settings.layout.definitions).forEach((({className:e,displayMode:r,baseStyles:a})=>{r&&t.includes(r)&&(o+=`${n} .${e} { display:${r}; }`),a?.length&&a.forEach((t=>{const r=[];t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t}`)})),r.length&&(o+=`${n} .${e}${t?.selector||""} { ${r.join("; ")}; }`)}))}))}return o}({tree:e,style:i,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:r,fallbackGapValue:l}));const h=g(i,t,p,e);h?.length&&(w+=`${t}{${h.join(";")};}`);const f=Object.entries(i).filter((([e])=>e.startsWith(":")));f?.length&&f.forEach((([e,n])=>{const r=g(n);if(!r?.length)return;const a=`${t.split(",").map((t=>t+e)).join(",")}{${r.join(";")};}`;w+=a}))})),w+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",w+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",w+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",!o&&n){const t=(0,s.__experimentalGetGapCSSValue)(e?.styles?.spacing?.blockGap)||"0.5em";w+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",w+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return c.forEach((({selector:e,presets:t})=>{d===e&&(e="");const n=function(e,t={}){return(0,a.reduce)(u,((n,{path:r,cssVarInfix:i,classes:o})=>{if(!o)return n;const s=(0,a.get)(t,r,[]);return s&&Array.isArray(s)&&s.forEach((({slug:t})=>{o.forEach((({classSuffix:r,propertyName:o})=>{const s=`.has-${(0,a.kebabCase)(t)}-${r}`,l=e.split(",").map((e=>`${e}${s}`)).join(","),c=`var(--wp--preset--${i}--${(0,a.kebabCase)(t)})`;n+=`${l}{${o}: ${c} !important;}`}))})),n}),"")}(e,t);(0,a.isEmpty)(n)||(w+=n)})),w};const v=e=>{const t={};return e.forEach((e=>{var n,r;const a=e.name,i=null!==(n=e?.supports?.__experimentalSelector)&&void 0!==n?n:".wp-block-"+a.replace("core/","").replace("/","-"),o=null!==(r=e?.supports?.color?.__experimentalDuotone)&&void 0!==r?r:null,s=!!e?.supports?.__experimentalLayout,l=e?.supports?.spacing?.blockGap?.__experimentalDefault,c={};Object.entries(p).forEach((([t,n])=>{const r=e?.supports?.[t]?.__experimentalSelector;r&&(c[n]=function(e,t){const n=e.split(","),r=t.split(","),a=[];return n.forEach((e=>{r.forEach((t=>{a.push(`${e.trim()} ${t.trim()}`)}))})),a.join(", ")}(i,r))})),t[a]={duotoneSelector:o,fallbackGapValue:l,featureSelectors:Object.keys(c).length?c:void 0,hasLayoutSupport:s,name:a,selector:i}})),t};function _(e,t){const n=t.settings.__experimentalFeatures.spacing.blockGap,o=!n,l=!t.settings?.disableLayoutStyles||t.settings.disableLayoutStyles;if(!e?.styles&&!e?.settings&&!e?.globalStyles)return;const c={settings:e.settings,styles:e?.globalStyles?e.globalStyles:e.styles},d=v((0,i.getBlockTypes)()),p=w(c,d),m=b(c,d,n,o,l),h=function(e,t){return f(e,t).flatMap((({presets:e})=>function(e={}){return u.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,a.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,r.createElement)(s.__unstablePresetDuotoneFilter,{preset:e,key:e.slug})))))}))}(e)))}(c,d),g=[...t.settings.styles.filter((e=>!(e.hasOwnProperty("id")&&("customProperty"===e.id||"globalStyle"===e.id)))),{id:"customProperty",css:p,isGlobalStyles:!0},{id:"globalStyle",css:m,isGlobalStyles:!0},{assets:h,__unstableType:"svg",isGlobalStyles:!0}];return e.settings.styles=g,e.settings.__unstableResolvedAssets=t.settings.__unstableResolvedAssets,e.settings.__experimentalFeatures=t.settings.__experimentalFeatures,e}},3272:(e,t,n)=>{"use strict";n.d(t,{g2:()=>s,qm:()=>o,qn:()=>i});var r=n(3832),a=n(6087);const i=e=>new URLSearchParams(window.location.search).get(e),o=(e,t)=>(0,r.hasQueryArg)(e,t)?(0,r.removeQueryArgs)(e,t):e,s=e=>(0,a.transform)(e,((e,t,n)=>{e[(0,a.snakeCase)(n)]=t}))},3474:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(8744),a=n(7723);const i={[r.rA]:{site:{noun:(0,a._x)("site","noun","wp-module-onboarding")},website:{noun:(0,a._x)("website","noun","wp-module-onboarding")}},[r.eS]:{site:{noun:(0,a._x)("store","noun","wp-module-onboarding")},website:{noun:(0,a._x)("store","noun","wp-module-onboarding")}},[r.d0]:{site:{noun:(0,a._x)("site","noun","wp-module-onboarding")},website:{noun:(0,a._x)("website","noun","wp-module-onboarding")}}},o=(e,t="noun")=>{const n=window?.nfdOnboarding?.currentFlow||r.rA,a=i[n][e.toLowerCase()][t];return e===e.toUpperCase()?a.toUpperCase():e[0]===e[0].toUpperCase()?a[0].toUpperCase()+a.substring(1):a}},8969:(e,t,n)=>{"use strict";n.d(t,{$P:()=>ie,At:()=>ee,CL:()=>k,Cx:()=>v,EF:()=>re,Er:()=>Y,F4:()=>te,HJ:()=>S,Ie:()=>ue,Ix:()=>I,KJ:()=>b,KK:()=>L,KZ:()=>V,L5:()=>ce,Mw:()=>O,PE:()=>_,Qe:()=>D,Qs:()=>A,R0:()=>h,R2:()=>ne,SF:()=>l,SJ:()=>y,SQ:()=>J,So:()=>Q,Sr:()=>M,St:()=>N,VG:()=>f,V_:()=>x,Vw:()=>le,W6:()=>oe,WH:()=>B,X0:()=>q,Xi:()=>u,ZH:()=>o,db:()=>W,eT:()=>i,eY:()=>T,f1:()=>j,fO:()=>Z,fS:()=>se,g5:()=>p,gR:()=>X,gb:()=>F,h0:()=>d,iQ:()=>E,jK:()=>P,jN:()=>de,lf:()=>C,lp:()=>U,me:()=>R,mp:()=>K,nK:()=>z,qy:()=>ae,vO:()=>g,vd:()=>$,yY:()=>w,z3:()=>G,zm:()=>H});var r,a=n(3832);const i="nfd-onboarding",o="object"==typeof window?.nfdOnboarding&&"buildUrl"in window.nfdOnboarding,s=window.nfdOnboarding.adminUrl,l=window.nfdOnboarding.siteUrl,c=window.nfdOnboarding.restUrl,d=`${c}/wp/v2`,u=`${c}/newfold-onboarding/v1`,p=`${c}/newfold-installer/v1`,m=(0,a.addQueryArgs)(`${s}index.php`,window.nfdOnboarding.currentBrand?.dashboardRedirectParams),h=null!==(r=(0,a.addQueryArgs)(window.nfdOnboarding.currentBrand?.pluginDashboardPage,window.nfdOnboarding.currentBrand?.dashboardRedirectParams))&&void 0!==r?r:m,g="nav-primary",f="nav-design",w="nav-page",b="design-themes",v="design-theme-styles-menu",_="design-theme-styles-preview",E="design-colors",y="design-fonts",S="design-header-menu",k="design-homepage-menu",C="nav-get-started",T="nav-ecommerce-store-info",N="Sidebar",A="HeaderMenu",x="SitegenEditorPatterns",D="LearnMore",P="Customize",O="HeaderSiteBuild",I="HeaderSiteGen",M="FooterSiteGen",L="HeaderTop",z="HeaderStart",R="HeaderCenter",V="HeaderEnd",$="FooterStart",F="FooterEnd",H=2,W=2,U=2,B=2,G="nfd_plugins",q="nfd_themes",j="nfd_slug_yith_wonder",Q="init",K="inactive",Z="installing",Y="activated",J="failed",X="demographic",ee="commerce",te="design",ne="layout_and_content",re="features",ae="core",ie="design",oe="features",se="dark",le="light",ce={SET_FLOW:"SET_FLOW",SET_GLOBAL_STYLES:"SET_GLOBAL_STYLES"},de=20,ue="database_update_failed"},148:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,BV:()=>x,Ix:()=>A,Rq:()=>s,Zp:()=>f,jb:()=>l,qh:()=>N,sp:()=>o,x$:()=>w,zy:()=>h});var r=n(1609),a=n(5588);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,i({fromRouteId:t},a)))}),[e,t])}():function(){m()||(0,a.Oi)(!1);let e=r.useContext(o),{basename:t,future:n,navigator:i}=r.useContext(l),{matches:s}=r.useContext(d),{pathname:c}=h(),u=JSON.stringify((0,a.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return g((()=>{p.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void i.go(n);let o=(0,a.Gh)(n,JSON.parse(u),c,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:(0,a.HS)([t,o.pathname])),(r.replace?i.replace:i.push)(o,r.state,r)}),[t,i,u,c,e])}()}function w(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=r.useContext(l),{matches:o}=r.useContext(d),{pathname:s}=h(),c=JSON.stringify((0,a.yD)(o,i.v7_relativeSplatPath));return r.useMemo((()=>(0,a.Gh)(e,JSON.parse(c),s,"path"===n)),[e,c,s,n])}function b(e,t,n,o){m()||(0,a.Oi)(!1);let{navigator:s}=r.useContext(l),{matches:u}=r.useContext(d),p=u[u.length-1],g=p?p.params:{},f=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let w,b=h();if(t){var v;let e="string"==typeof t?(0,a.Rr)(t):t;"/"===f||(null==(v=e.pathname)?void 0:v.startsWith(f))||(0,a.Oi)(!1),w=e}else w=b;let S=w.pathname||"/",k=S;if("/"!==f){let e=f.replace(/^\//,"").split("/");k="/"+S.replace(/^\//,"").split("/").slice(e.length).join("/")}let C=(0,a.ue)(e,{pathname:k}),N=function(e,t,n,i){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let l=e,c=null==(o=n)?void 0:o.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||(0,a.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let d=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let e=0;e=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight(((e,a,i)=>{let o,s=!1,p=null,m=null;var h;n&&(o=c&&a.route.id?c[a.route.id]:void 0,p=a.route.errorElement||_,d&&(u<0&&0===i?(T[h="route-fallback"]||(T[h]=!0),s=!0,m=null):u===i&&(s=!0,m=a.route.hydrateFallbackElement||null)));let g=t.concat(l.slice(0,i+1)),f=()=>{let t;return t=o?p:s?m:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(y,{match:a,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?r.createElement(E,{location:n.location,revalidation:n.revalidation,component:p,error:o,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()}),null)}(C&&C.map((e=>Object.assign({},e,{params:Object.assign({},g,e.params),pathname:(0,a.HS)([f,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:(0,a.HS)([f,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),u,n,o);return t&&N?r.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:a.rc.Pop}},N):N}function v(){let e=function(){var e;let t=r.useContext(u),n=function(e){let t=r.useContext(s);return t||(0,a.Oi)(!1),t}(k.UseRouteError),i=C(k.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[i]}(),t=(0,a.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,null)}const _=r.createElement(v,null);class E extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(d.Provider,{value:this.props.routeContext},r.createElement(u.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y(e){let{routeContext:t,match:n,children:a}=e,i=r.useContext(o);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(d.Provider,{value:t},a)}var S=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(S||{}),k=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(k||{});function C(e){let t=function(e){let t=r.useContext(d);return t||(0,a.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.Oi)(!1),n.route.id}const T={};function N(e){(0,a.Oi)(!1)}function A(e){let{basename:t="/",children:n=null,location:o,navigationType:s=a.rc.Pop,navigator:d,static:u=!1,future:p}=e;m()&&(0,a.Oi)(!1);let h=t.replace(/^\/*/,"/"),g=r.useMemo((()=>({basename:h,navigator:d,static:u,future:i({v7_relativeSplatPath:!1},p)})),[h,p,d,u]);"string"==typeof o&&(o=(0,a.Rr)(o));let{pathname:f="/",search:w="",hash:b="",state:v=null,key:_="default"}=o,E=r.useMemo((()=>{let e=(0,a.pb)(f,h);return null==e?null:{location:{pathname:e,search:w,hash:b,state:v,key:_},navigationType:s}}),[h,f,w,b,v,_,s]);return null==E?null:r.createElement(l.Provider,{value:g},r.createElement(c.Provider,{children:n,value:E}))}function x(e){let{children:t,location:n}=e;return b(D(t),n)}function D(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,i)=>{if(!r.isValidElement(e))return;let o=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,D(e.props.children,o));e.type!==N&&(0,a.Oi)(!1),e.props.index&&e.props.children&&(0,a.Oi)(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=D(e.props.children,o)),n.push(s)})),n}r.startTransition,new Promise((()=>{})),r.Component},1609:e=>{"use strict";e.exports=window.React},6087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4997:e=>{"use strict";e.exports=window.wp.blocks},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},7143:e=>{"use strict";e.exports=window.wp.data},8107:e=>{"use strict";e.exports=window.wp.dom},8468:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>e+".js",a.miniCssF=e=>e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="newfold.Onboarding:",a.l=(n,r,i,o)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(m);var a=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(r))),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e={352:0};a.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{100:1,396:1}[t]&&n.push(e[t]=(e=>new Promise(((t,n)=>{var r=a.miniCssF(e),i=a.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var o=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=s,i.parentNode&&i.parentNode.removeChild(i),a(l)}},i.href=t,document.head.appendChild(i)})(e,i,0,t,n)})))(t).then((()=>{e[t]=0}),(n=>{throw delete e[t],n})))}}})(),(()=>{var e={352:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,c=0;if(o.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);c{"use strict";a.r(i);var e={};a.r(e),a.d(e,{closeModal:()=>T,disableComplementaryArea:()=>v,enableComplementaryArea:()=>b,openModal:()=>C,pinItem:()=>_,setDefaultComplementaryArea:()=>w,setFeatureDefaults:()=>k,setFeatureValue:()=>S,toggleFeature:()=>y,unpinItem:()=>E});var t={};a.r(t),a.d(t,{getActiveComplementaryArea:()=>N,isComplementaryAreaLoading:()=>A,isFeatureActive:()=>D,isItemPinned:()=>x,isModalActive:()=>P});var n=a(8969);const r=window.wp.domReady;var o=a.n(r);const s=window.wp.blockLibrary;var l=a(1609),c=a(7675),d=a(6079),u=a(8468);const p=({isActive:e})=>((0,u.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,u.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);var m=a(7143);const h=window.wp.deprecated;var g=a.n(h);const f=window.wp.preferences,w=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),b=(e,t)=>({registry:n,dispatch:r})=>{t&&(n.select(f.store).get(e,"isComplementaryAreaVisible")||n.dispatch(f.store).set(e,"isComplementaryAreaVisible",!0),r({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},v=e=>({registry:t})=>{t.select(f.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(f.store).set(e,"isComplementaryAreaVisible",!1)},_=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(f.store).get(e,"pinnedItems");!0!==r?.[t]&&n.dispatch(f.store).set(e,"pinnedItems",{...r,[t]:!0})},E=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(f.store).get(e,"pinnedItems");n.dispatch(f.store).set(e,"pinnedItems",{...r,[t]:!1})};function y(e,t){return function({registry:n}){g()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(f.store).toggle(e,t)}}function S(e,t,n){return function({registry:r}){g()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),r.dispatch(f.store).set(e,t,!!n)}}function k(e,t){return function({registry:n}){g()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(f.store).setDefaults(e,t)}}function C(e){return{type:"OPEN_MODAL",name:e}}function T(){return{type:"CLOSE_MODAL"}}const N=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(f.store).get(n,"isComplementaryAreaVisible");if(void 0!==r)return!1===r?null:t?.complementaryAreas?.[n]})),A=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(f.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return r&&void 0===a})),x=(0,m.createRegistrySelector)((e=>(t,n,r)=>{var a;const i=e(f.store).get(n,"pinnedItems");return null===(a=i?.[r])||void 0===a||a})),D=(0,m.createRegistrySelector)((e=>(t,n,r)=>(g()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(f.store).get(n,r))));function P(e,t){return e.activeModal===t}const O=(0,m.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return e[n]?e:{...e,[n]:r}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return{...e,[n]:r}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),I=(0,m.createReduxStore)("core/interface",{reducer:O,actions:e,selectors:t});(0,m.register)(I);var M=a(6427),L=a(148),z=a(3832),R=a(4371),V=a(8744),$=a(3272),F=a(19),H=a(212),W=a(7723),U=a(3474);const B=()=>{const{brandName:e}=(0,m.useSelect)((e=>({brandName:e(c.M).getNewfoldBrandName()})),[]),t=(e=>({title:(0,W.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ +(0,l.__)("A WordPress %1$s hosted by %2$s has tons of unique and proven solutions to help you get farther, faster with your WordPress. We put our expertise, partnerships and solutions to work on your %3$s.","wp-module-onboarding"),(0,c.P)("website"),e,(0,c.P)("site"))}]},help:{experts:{text:(0,l.__)("1-1 Expert Solutions & Coaching","wp-module-onboarding"),link:t},fullService:{text:(0,l.__)("Hire Our Full-Service Creative Team","wp-module-onboarding"),link:a},support:{text:(0,l.__)("Technical Support","wp-module-onboarding"),link:n}}}))(e,t,n,a),v=w?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?b.information.headingWithDescriptions.filter(((e,t)=>w?.views?.sidebar?.infoPanel?.headingWithDescriptions?.shown?.includes(t))):b.information.headingWithDescriptions;return(0,i.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__get-started-welcome"},(0,i.createElement)(f,{heading:b.introduction.heading,subheading:b.introduction.subheading,icon:b.introduction.icon}),!1!==w?.views?.sidebar?.illustration?.shown&&(0,i.createElement)(d,{cssIcon:b.illustration.icon}),(0,i.createElement)(u,{headingWithDescriptions:v}),(0,i.createElement)(p,null,!1!==w?.views?.sidebar?.experts?.shown&&b.help.experts.link&&(0,i.createElement)(m,{text:b.help.experts.text,onClick:()=>window.open(b.help.experts.link,"_blank")}),!1!==w?.views?.sidebar?.fullService?.shown&&b.help.fullService.link&&(0,i.createElement)(h,{text:b.help.fullService.text,onClick:()=>window.open(b.help.fullService.link,"_blank")}),(0,i.createElement)(g,{text:b.help.support.text,link:b.help.support.link})))}]}},data:{tooltipText:(0,l.__)("Welcome","wp-module-onboarding")}})},4487:(e,t,n)=>{"use strict";n.d(t,{b:()=>F});var r=n(5822),a=n(8468),i=n(7723),o=n(2502),s=n(1609),l=n(6427),c=n(7677),d=n(6655),u=n(7143),p=n(9491),m=n(6087),h=n(8969),g=n(7675),f=n(6079),w=n(6478),b=n(7708),v=n(6786),_=n(5573);const E=(0,s.createElement)(_.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,s.createElement)(_.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var y=n(3013),S=n(8087);const k=(0,a.memo)((({onRegenerate:e,onCustomize:t,onRenameItemSelect:n,onViewAll:r,isLargeViewport:a,onToggle:o})=>{const d=e=>()=>{e(),o()};return(0,s.createElement)(l.MenuGroup,{className:"nfd-onboarding-header__version_dropdown-menu"},!a&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.MenuItem,{onClick:d(e)},(0,s.createElement)(c.A,{icon:v.A}),(0,i.__)("Regenerate","wp-module-onboarding")),(0,s.createElement)(l.MenuItem,{onClick:d(t)},(0,s.createElement)("div",{className:"nfd-onboarding-header__version_dropdown-menu__customize-button__icon"}),(0,i.__)("Customize","wp-module-onboarding"))),(0,s.createElement)(l.MenuItem,{onClick:d(n)},(0,i.__)("Rename","wp-module-onboarding")),(0,s.createElement)(l.MenuItem,{onClick:d(r)},(0,i.__)("View All","wp-module-onboarding")))})),C=(0,a.memo)((({isFavorite:e,homepageTitle:t,onFavorite:n,onRename:r,inputRef:o,onRegenerate:d,onCustomize:u,onRenameItemSelect:p,onViewAll:m,isLargeViewport:h,isInputEnabled:g,enableInput:f})=>{const[w,b]=(0,a.useState)(t),v=()=>{b(o.current.value)},_=()=>{const e=o.current.value.trim();e&&e!==t&&r(e),f(!1)};return(0,a.useEffect)((()=>{g&&o.current?.focus()}),[g,o]),(0,a.useEffect)((()=>{b(t)}),[t]),(0,s.createElement)(l.Dropdown,{renderToggle:({isOpen:t,onToggle:r})=>(0,s.createElement)("div",{role:"button",tabIndex:"0","aria-expanded":t,"aria-label":(0,i.__)("Regenerate","wp-module-onboarding"),className:"navigation-buttons-editor"},(0,s.createElement)("div",{className:"navigation-buttons-editor__favorite",role:"button",tabIndex:0,onKeyDown:n,onClick:n},e?(0,s.createElement)(S.h,null):(0,s.createElement)(y.h,null)),(0,s.createElement)("input",{ref:o,disabled:!g,className:"nfd-onboarding-header__center-input",type:"text",value:w,onBlur:_,onChange:v}),(0,s.createElement)(c.A,{className:"nfd-onboarding-header__center-dropdown_icon",icon:E,onClick:r,onKeyDown:e=>{"Enter"===e.key&&r()}})),renderContent:({onToggle:e})=>(0,s.createElement)(k,{onRegenerate:d,onCustomize:u,onRenameItemSelect:p,onViewAll:m,isLargeViewport:h,onToggle:e})})})),T=({handleFavorite:e,handleRename:t,handleViewAll:n,handleRegenerate:r,handleCustomize:i,homepageTitle:o,isFavorite:l})=>{const c=(0,p.useViewportMatch)("medium"),d=(0,a.useRef)(null),[u,m]=(0,a.useState)(!1),h=e=>{m(e),e&&d.current?.focus()},g=()=>{if("function"==typeof g)return e()};return(0,s.createElement)("div",{className:"nfd-onboarding-header__step-navigation"},(0,s.createElement)(C,{isFavorite:l,homepageTitle:o,onFavorite:g,onRename:e=>{"function"==typeof t&&t(e)},inputRef:d,onRegenerate:()=>{if("function"==typeof r)return r()},onCustomize:()=>{if("function"==typeof i)return i()},onRenameItemSelect:()=>{h(!0)},onViewAll:()=>{if("function"==typeof n)return n()},isLargeViewport:c,isInputEnabled:u,enableInput:h}))};var N=n(7517),A=n(7044),x=n(1455),D=n.n(x),P=n(8674),O=n(5435),I=n(1056),M=n(2202),L=n(8744);const z=(0,a.lazy)((()=>n.e(396).then(n.bind(n,9396)))),R=(0,a.lazy)((()=>n.e(100).then(n.bind(n,1100)))),V=(0,s.forwardRef)(((e,t)=>{const[n,r]=(0,a.useState)(!0),{updateCustomizeSidebarData:o}=(0,u.useDispatch)(g.M),l=(0,s.createRef)(),c=(0,s.createRef)(),d=()=>{c.current.resetToDefaultFonts(),l.current.resetToDefaultColors()};if((0,s.useImperativeHandle)(t,(()=>({resetCustomizationCallback:d}))),(0,a.useEffect)((()=>{(async()=>{const e=await(0,b.gK)();o(e?.body),r(!1)})()}),[]),n)return(0,s.createElement)("div",null,"...");const p={introduction:{heading:(0,i.__)("Colors","wp-module-onboarding")}};return(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__design-colors"},(0,s.createElement)(R,{heading:p.introduction.heading,ref:l}),(0,s.createElement)(z,{ref:c}))})),$=(0,a.lazy)((()=>n.e(426).then(n.bind(n,426)))),F=new o.p({path:"/sitegen/step/editor",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:$,icon:r.A,sidebars:{Customize:{SidebarComponents:[V]}},header:()=>{const[e,t]=(0,a.useState)(),[n,r]=(0,a.useState)(!1),[o,v]=(0,a.useState)(!1),[_,E]=(0,a.useState)(!1),y=(0,p.useViewportMatch)("medium"),{setCurrentOnboardingData:S,setSidebarActiveView:k,setIsSidebarOpened:C,setInteractionDisabled:x}=(0,u.useDispatch)(g.M),{currentData:z,sideBarView:R,isSidebarOpened:V}=(0,u.useSelect)((e=>({currentData:e(g.M).getCurrentOnboardingData(),sideBarView:e(g.M).getSidebarView(),isSidebarOpened:e(g.M).isSidebarOpened()}))),$=async()=>{if(n)return;if(v(!0),""===z.sitegen.siteDetails?.prompt)return void v(!1);const t=z.sitegen.homepages.data;if(!(e.slug in t))return void v(!1);const{slug:r,title:a,color:i,isFavorite:o}=e||{},s=await(0,b.HA)(z.sitegen.siteDetails.prompt,r,i,o);if(s.error)return void v(!1);const l=s.body;if(o){const e=`${a} (Copy)`;e!==l?.title&&(l.title=e)}t[l.slug]=l,z.sitegen.homepages.data=t,z.sitegen.homepages.active=l,S(z),v(!1),(0,I.v)(new I.iC(M.Hf,r,{source:L.d0,placement:"editor_toolbar"}))},F=async()=>{const e="Customize"===R?!V:V;k("Customize"),C(e),!0===e&&(0,I.v)(new I.iC(M.cB,"customize"));const t=await(0,N.w6)();E(t.body)},H=async()=>{r(!0);const e=z.sitegen.homepages.data,t=z.sitegen.homepages.active,n=((e,t)=>(0,s.createElement)("div",{className:"nfd-onboarding-screenshot-container__pages"},Object.keys(e).map(((n,r)=>{const a=e[n];if(!a.isFavorite&&n!==t.slug)return!1;const i=(0,m.cloneDeep)(_[0]);i.settings.color.palette=a.color.palette;let o="";return["header","content","footer"].forEach((e=>{e in a&&(o+=a[e])})),(0,s.createElement)(A.pA,{key:r,blockGrammer:o,previewSettings:i,slug:n,tabIndex:"0",role:"button"})}))))(e,t),i=document.querySelector(".nfd-onboarding-screenshot-container");if(i){(0,a.render)(n,i);const r=e=>new Promise((t=>setTimeout(t,e)));await r(5e3);const o=await Promise.all(Object.keys(e).map((n=>!(!e[n].isFavorite&&n!==t.slug)&&async function(e){return await(0,O.h)(D()({url:(0,P.fG)("block-render/screenshot"),method:"POST",data:{width:1200,height:900,content:e}}).then())}(i.querySelector(`div > div[data-slug="nfd-onboarding-block-preview-${n}"] > .block-editor-block-preview__container > div > iframe`).contentWindow.document.querySelector(".block-editor-block-preview__content-iframe").innerHTML))));Object.keys(e).forEach(((n,r)=>{o[r]?.body?.screenshot&&(e[n].screenshot=o[r].body.screenshot,n===t.slug&&(t.screenshot=o[r].body.screenshot))})),z.sitegen.homepages.data=e,z.sitegen.homepages.active=t,S(z)}await(0,f.V1)(z),await(0,f.IS)(),(0,I.SV)(new I.iC(M.Vg,{source:L.d0})),window.location.replace(h.R0)};return(0,a.useEffect)((()=>{F()}),[]),(0,a.useEffect)((()=>{z?.sitegen?.homepages?.active&&t(z.sitegen.homepages.active)}),[z]),(0,a.useEffect)((()=>(x(!(!n&&!o)),()=>{x(!1)})),[n,o]),(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.nK}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start"},y&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__start__regenerate ${n&&"nfd-onboarding-header--sitegen__editor__start__regenerate__disabled"}`,role:"button",tabIndex:0,onClick:$,onKeyDown:$},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__text"},(0,i.__)("Regenerate","wp-module-onboarding")),o&&(0,s.createElement)(w.A,{className:"nfd-onboarding-header--sitegen__editor__start__regenerate__spinner"})))),(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.me}`},e&&(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__center"},(0,s.createElement)(T,{handleFavorite:()=>{if(n)return;const t=z.sitegen.homepages.data;if(!(e.slug in t))return;const r=!e.isFavorite;e.isFavorite=r,z.sitegen.homepages.data[e.slug]=e,z.sitegen.homepages.active=e,S(z),(0,I.v)(new I.iC(M.Nz,e.slug,{favorite:r,placement:"editor_toolbar",source:L.d0}))},handleViewAll:()=>{V&&R===h.V_||(k(h.V_),C(!0),(0,I.v)(new I.iC(M.cB,"all_versions",{source:L.d0})))},handleCustomize:F,handleRegenerate:$,handleRename:t=>{e.title=t,z.sitegen.homepages.data[e.slug]=e,z.sitegen.homepages.active=e,S(z),(0,I.v)(new I.iC(M.TH,e.slug,{name:t,source:L.d0}))},homepageTitle:e.title,isFavorite:e.isFavorite}))),(0,s.createElement)(l.Fill,{name:`${h.Ix}/${h.KZ}`},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end"},y&&(0,s.createElement)("div",{className:`nfd-onboarding-header--sitegen__editor__end__customize-button ${n&&"nfd-onboarding-header--sitegen__editor__end__customize-button__disabled"}`,onClick:F,onKeyDown:F,role:"presentation"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__icon"}),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__customize-button__text"},(0,i.__)("Customize","wp-module-onboarding"))),(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button"},(0,s.createElement)("div",{className:"nfd-onboarding-header--sitegen__editor__end__save-button__text",onClick:H,role:"button",tabIndex:0,onKeyDown:H},y?(0,i.__)("Save & Continue","wp-module-onboarding"):(0,i.__)("Next","wp-module-onboarding")),n?(0,s.createElement)(w.A,{className:"nfd-onboarding-header--sitegen__editor__end__save-button__spinner"}):(0,s.createElement)(c.A,{icon:d.A,className:"nfd-onboarding-header--sitegen__editor__end__save-button__text"})))))}})},4635:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(619).then(n.bind(n,619)))),l=new o.p({path:"/sitegen/step/preview",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},4805:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(632).then(n.bind(n,5632)))),l=new o.p({path:"/sitegen/step/site-logo",title:(0,i.__)("Page Layouts","wp-module-onboarding"),Component:s,icon:r.A,sidebars:{LearnMore:{SidebarComponents:[]}}})},9034:(e,t,n)=>{"use strict";n.d(t,{O:()=>l});var r=n(5822),a=n(8468),i=n(7723),o=n(2502);const s=(0,a.lazy)((()=>n.e(106).then(n.bind(n,3106)))),l=new o.p({path:"/wp-setup/step/fork",title:(0,i.__)("The Fork","wp-module-onboarding"),Component:s,icon:r.A,drawerNavigation:!1,sidebars:{LearnMore:{SidebarComponents:[]}}})},7675:(e,t,n)=>{"use strict";n.d(t,{M:()=>mt});var r={};n.r(r),n.d(r,{dequeueRequest:()=>I,enqueueRequest:()=>O,flushQueue:()=>M,resetNavError:()=>R,setActiveChapter:()=>p,setActiveFlow:()=>d,setActiveHomepage:()=>$,setActiveStep:()=>u,setContinueWithoutAi:()=>B,setCurrentOnboardingData:()=>m,setDrawerActiveView:()=>s,setFooterActiveView:()=>C,setHeaderActiveView:()=>y,setHeaderMenuData:()=>P,setHideFooterNav:()=>k,setHomepagesData:()=>V,setInteractionDisabled:()=>U,setIsDrawerOpened:()=>l,setIsDrawerSuppressed:()=>c,setIsFooterNavAllowed:()=>S,setIsHeaderEnabled:()=>E,setIsHeaderNavigationEnabled:()=>_,setIsSidebarOpened:()=>b,setNavErrorContinuePath:()=>z,setOnboardingSocialData:()=>h,setRuntime:()=>o,setSidebarActiveView:()=>v,showNavErrorDialog:()=>L,toggleFavorite:()=>F,updateAllSteps:()=>A,updateCustomizeSidebarData:()=>H,updateDesignRoutes:()=>D,updateInitialize:()=>w,updatePreviewSettings:()=>T,updateRoutes:()=>N,updateSettings:()=>g,updateSiteGenErrorStatus:()=>W,updateThemeStatus:()=>f,updateTopSteps:()=>x});var a={};n.r(a),n.d(a,{getActiveDrawerView:()=>j,getActiveHomepage:()=>qe,getAllHomepages:()=>je,getAllSteps:()=>me,getCurrentChapter:()=>_e,getCurrentOnboardingData:()=>ce,getCurrentStep:()=>ve,getCurrentStepPath:()=>fe,getCurrentUserDetails:()=>Be,getCustomizeSidebarData:()=>Qe,getDesignRoutes:()=>ge,getExperienceLevel:()=>We,getExpertsUrl:()=>Ie,getFirstStep:()=>we,getFooterActiveView:()=>te,getFooters:()=>X,getHeaderActiveView:()=>ee,getHeaderMenuData:()=>Oe,getHeaders:()=>J,getHideFooterNav:()=>re,getHireExpertsUrl:()=>le,getHomepagesData:()=>Ge,getInitialize:()=>De,getInteractionDisabled:()=>Ze,getIsFooterNavAllowed:()=>ne,getLastStep:()=>be,getMigrationUrl:()=>ze,getNavErrorPath:()=>He,getNewfoldBrand:()=>ae,getNewfoldBrandConfig:()=>oe,getNewfoldBrandName:()=>ie,getNewfoldBrandUrl:()=>se,getNextStep:()=>Se,getOnboardingFlow:()=>ue,getOnboardingSocialData:()=>de,getPluginInstallHash:()=>Re,getPreviewSettings:()=>Ne,getPreviousStep:()=>ye,getQueuePeek:()=>Ve,getRoutes:()=>pe,getSettings:()=>Ae,getShowErrorDialog:()=>Fe,getSidebarView:()=>Ce,getSidebars:()=>Te,getSiteGenErrorStatus:()=>Ke,getStepFromPath:()=>Ee,getStepPreviewData:()=>Pe,getTechSupportUrl:()=>Le,getThemeStatus:()=>xe,getTopPriority:()=>Ue,getTopSteps:()=>he,getfullServiceCreativeTeamUrl:()=>Me,isDrawerOpened:()=>Q,isDrawerSuppressed:()=>K,isHeaderEnabled:()=>Y,isHeaderNavigationEnabled:()=>Z,isQueueEmpty:()=>$e,isSidebarOpened:()=>ke});var i=n(8744);function o(e){var t;return window.nfdOnboarding={buildUrl:e.buildUrl,siteUrl:e.siteUrl,migrated:!0,currentFlow:null!==(t=e.currentFlow)&&void 0!==t?t:i.rA,stepPreviewData:e.previewSettings.stepPreviewData},{type:"SET_RUNTIME",runtime:e}}function s(e){return{type:"SET_DRAWER_ACTIVE_VIEW",view:e}}function l(e){return{type:"SET_DRAWER_OPENED",isOpen:e}}function c(e){return{type:"SET_DRAWER_SUPPRESSED",isSuppressed:e}}function d(e){return{type:"SET_ACTIVE_FLOW",flow:e}}function u(e){return{type:"SET_ACTIVE_STEP",path:e=e.replace(/\/$/,"")}}function p(e){return{type:"SET_ACTIVE_CHAPTER",chapter:e}}function m(e){return{type:"SET_CURRENT_DATA",flowData:e}}function h(e){return{type:"SET_SOCIAL_DATA",socialData:e}}function g(e){return{type:"UPDATE_SETTINGS",settings:e}}function f(e){return{type:"UPDATE_THEME_STATUS",themeStatus:e}}function w(e){return{type:"UPDATE_INITIALIZE",initialize:e}}function b(e){return{type:"SET_SIDEBAR_OPENED",isOpen:e}}function v(e){return{type:"SET_SIDEBAR_ACTIVE_VIEW",view:e}}function _(e){return{type:"SET_HEADER_NAVIGATION_ENABLED",isNavigationEnabled:e}}function E(e){return{type:"SET_HEADER_ENABLED",isEnabled:e}}function y(e){return{type:"SET_HEADER_ACTIVE_VIEW",view:e}}function S(e){return{type:"SET_IS_FOOTER_NAV_ALLOWED",isNavAllowed:e}}function k(e){return{type:"SET_HIDE_FOOTER_NAV",hideFooterNav:e}}function C(e){return{type:"SET_FOOTER_ACTIVE_VIEW",view:e}}function T(e){return{type:"SET_PREVIEW_SETTINGS",previewSettings:e}}function N(e){return{type:"UPDATE_ROUTES",routes:e}}function A(e){return{type:"UPDATE_ALL_STEPS",allSteps:e}}function x(e){return{type:"UPDATE_TOP_STEPS",topSteps:e}}function D(e){return{type:"UPDATE_DESIGN_ROUTES",designRoutes:e}}function P(e){return{type:"UPDATE_HEADER_MENU_DATA",menu:e}}function O(e,t){return{type:"ENQUEUE_REQUEST",id:e,request:t}}function I(){return{type:"DEQUEUE_REQUEST"}}function M(){return{type:"FLUSH_QUEUE"}}function L(e){return{type:"SHOW_NAV_ERROR_DIALOG",showDialog:e}}function z(e){return{type:"SET_NAV_ERROR_CONTINUE_PATH",continuePath:e}}function R(){return{type:"RESET_NAV_ERROR"}}const V=e=>({type:"SET_HOMEPAGES_DATA",homepagesData:e}),$=e=>({type:"SET_ACTIVE_HOMEPAGE",activeHomepage:e}),F=e=>({type:"TOGGLE_FAVORITE",slug:e});function H(e){return{type:"CUSTOMIZE_SIDEBAR_DATA",customizeSidebarData:e}}function W(e){return{type:"SET_SITEGEN_AI_ERROR_STATUS",siteGenErrorStatus:e}}function U(e){return{type:"SET_INTERACTION_DISABLED",interactionDisabled:e}}function B(e){return{type:"SET_FLOW_WITHOUT_AI",continueWithoutAi:e}}var G=n(6087),q=n(3832);function j(e){return e.drawer.view}function Q(e){return e.drawer.isOpen}function K(e){return e.drawer.isSuppressed}function Z(e){return e.header.isNavigationEnabled}function Y(e){return e.header.isEnabled}function J(e){return e.header.headers}function X(e){return e.footer.footers}function ee(e){return e.header.view}function te(e){return e.footer.view}function ne(e){return e.footer.isNavAllowed}function re(e){return e.footer.hideFooterNav}function ae(e){return e.runtime.currentBrand.brand}function ie(e){return e.runtime.currentBrand.name}function oe(e){return e.runtime.currentBrand.config}function se(e){return e.runtime.currentBrand.url}function le(e){const t=e.runtime.currentBrand.hireExpertsInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParameters)+(t?.fragment||"")}function ce(e){return e.data.flowData}function de(e){return e.data.socialData}function ue(e){var t;return null!==(t=e.runtime.currentFlow)&&void 0!==t?t:i.rA}function pe(e){return e.flow.steps.routes}function me(e){return e.flow.steps.allSteps}function he(e){return e.flow.steps.topSteps}function ge(e){return e.flow.steps.designRoutes}function fe(e){return e.flow.steps.currentStep}function we(e){return e.flow.steps.allSteps[0]}function be(e){return e.flow.steps.allSteps[e.flow.steps.allSteps.length-1]}function ve(e){return(0,G.filter)(e.flow.steps.allSteps,["path",e.flow.steps.currentStep])[0]}function _e(e){return e.flow.chapter}function Ee(e,t){return(0,G.filter)(e.flow.steps.allSteps,["path",t])[0]}function ye(e){const t=(0,G.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return 0===t?null:-1!==t&&e.flow.steps.allSteps[t-1]}function Se(e){const t=e.flow.steps.allSteps.length-1,n=(0,G.findIndex)(e.flow.steps.allSteps,{path:e.flow.steps.currentStep});return t===n?null:-1!==n&&e.flow.steps.allSteps[n+1]}function ke(e){return e.sidebar.isOpen}function Ce(e){return e.sidebar.view}function Te(e){return(0,G.filter)(e.sidebar.sidebars,["enabled",!0])}function Ne(e){return e.runtime.previewSettings.settings}function Ae(e){return e.settings}function xe(e){return e.settings.themeStatus}function De(e){return e.settings.initialize}function Pe(e){return e.runtime.previewSettings.stepPreviewData}function Oe(e){return e.header.menu}function Ie(e){const t=e.runtime.currentBrand.expertsInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Me(e){const t=e.runtime.currentBrand.fullServiceCreativeTeamInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Le(e){const t=e.runtime.currentBrand.techSupportInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function ze(e){const t=e.runtime.currentBrand.migrationInfo;return(0,q.addQueryArgs)(t?.defaultLink,t?.queryParams)+(t?.fragment||"")}function Re(e){return e.runtime.pluginInstallHash}function Ve(e){var t;return null!==(t=e?.queue[0])&&void 0!==t?t:null}function $e(e){return 0===e?.queue?.length}function Fe(e){return e.flow.steps.error.showDialog}function He(e){return e.flow.steps.error.continuePath}function We(e){return e.data.flowData.data.wpComfortLevel}function Ue(e){return e.data.flowData.data.topPriority.priority1}function Be(e){return e.runtime.currentUserDetails}const Ge=e=>e.data.flowData.sitegen.homepages,qe=e=>e.data.flowData.sitegen.homepages.active,je=e=>e.data.flowData.sitegen.homepages.data;function Qe(e){return e.runtime.customizeSidebarData}function Ke(e){return e.data.flowData.sitegen.siteGenErrorStatus}function Ze(e){return e.flow.interactionDisabled}var Ye=n(7143),Je=n(8969),Xe=n(7835),et=n(8468);const tt=(0,et.lazy)((()=>n.e(202).then(n.bind(n,4202)))),nt=(0,et.lazy)((()=>n.e(356).then(n.bind(n,2356)))),rt=(0,et.lazy)((()=>n.e(803).then(n.bind(n,8803)))),at=(0,et.lazy)((()=>n.e(910).then(n.bind(n,3910)))),it=(0,et.lazy)((()=>n.e(40).then(n.bind(n,5040)))),ot=[{id:Je.Qe,menu:tt,sidebar:nt,enabled:!0},{id:Je.V_,sidebar:rt,enabled:!0},{id:Je.jK,menu:at,sidebar:it,enabled:!0}],st=(0,et.lazy)((()=>n.e(403).then(n.bind(n,1403)))),lt=(0,et.lazy)((()=>n.e(796).then(n.bind(n,5796)))),ct=[{id:Je.Ix,header:st,enabled:!0},{id:Je.Mw,header:lt,enabled:!0}],dt=(0,et.lazy)((()=>n.e(971).then(n.bind(n,1971)))),ut=[{id:Je.Sr,footer:dt,enabled:!0}],pt={reducer:(0,Ye.combineReducers)({drawer:function(e={isOpen:!1,isSuppressed:!1,view:Je.vO},t){switch(t.type){case"SET_DRAWER_OPENED":return{...e,isOpen:t.isOpen};case"SET_DRAWER_ACTIVE_VIEW":return{...e,view:t.view};case"SET_DRAWER_SUPPRESSED":return{...e,isSuppressed:t.isSuppressed,isOpen:!t.isSuppressed&&e.isOpen}}return e},runtime:function(e={},t){switch(t.type){case"SET_RUNTIME":return{...e,...t.runtime};case"SET_PREVIEW_SETTINGS":return{...e,previewSettings:{...e.previewSettings,settings:t.previewSettings}};case"CUSTOMIZE_SIDEBAR_DATA":return{...e,customizeSidebarData:t.customizeSidebarData}}return e},data:function(e={},t){switch(t.type){case"SET_CURRENT_DATA":return{...e,flowData:{...t.flowData}};case"SET_SOCIAL_DATA":return{...e,socialData:{...t.socialData}};case"SET_HOMEPAGES_DATA":return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,homepages:t.homepagesData}}};case"SET_ACTIVE_HOMEPAGE":return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,homepages:{...e.flowData.sitegen.homepages,active:t.activeHomepage}}}};case"SET_SITEGEN_AI_ERROR_STATUS":return{...e,flowData:{...e.flowData,sitegen:{...e.flowData.sitegen,siteGenErrorStatus:t.siteGenErrorStatus}}}}return e},settings:function(e={themeStatus:Je.So,initialize:!1},t){switch(t.type){case"UPDATE_SETTINGS":return{...e,...t.settings};case"UPDATE_THEME_STATUS":return{...e,themeStatus:t.themeStatus};case"UPDATE_INITIALIZE":return{...e,initialize:t.initialize}}return e},flow:function(e={flow:i.rA,steps:{routes:Xe.FI,allSteps:Xe.o2,topSteps:Xe.Zq,designRoutes:Xe.Tk,currentStep:"",error:{showDialog:!1,continuePath:""}},chapter:void 0,interactionDisabled:!1},t){switch(t.type){case"SET_ACTIVE_STEP":return{...e,steps:{...e.steps,currentStep:t.path}};case"SET_ACTIVE_FLOW":return{...e,flow:t.flow};case"UPDATE_ROUTES":return{...e,steps:{...e.steps,routes:t.routes}};case"UPDATE_ALL_STEPS":return{...e,steps:{...e.steps,allSteps:t.allSteps}};case"UPDATE_TOP_STEPS":return{...e,steps:{...e.steps,topSteps:t.topSteps}};case"UPDATE_DESIGN_ROUTES":return{...e,steps:{...e.steps,designRoutes:t.designRoutes}};case"SHOW_NAV_ERROR_DIALOG":return{...e,steps:{...e.steps,error:{...e.steps.error,showDialog:t.showDialog}}};case"SET_NAV_ERROR_CONTINUE_PATH":return{...e,steps:{...e.steps,error:{...e.steps.error,continuePath:t.continuePath}}};case"RESET_NAV_ERROR":return{...e,steps:{...e.steps,error:{showDialog:!1,continuePath:""}}};case"SET_ACTIVE_CHAPTER":return{...e,chapter:t.chapter};case"SET_INTERACTION_DISABLED":return{...e,interactionDisabled:t.interactionDisabled};case"SET_FLOW_WITHOUT_AI":return{...e,flow:t.continueWithoutAi}}return e},sidebar:function(e={isOpen:!1,view:"LearnMore",sidebars:ot},t){switch(t.type){case"SET_SIDEBAR_OPENED":return{...e,isOpen:t.isOpen};case"SET_SIDEBAR_ACTIVE_VIEW":return{...e,view:t.view}}return e},header:function(e={isNavigationEnabled:!0,menu:"",isEnabled:!0,headers:ct,view:Je.Mw},t){switch(t.type){case"SET_HEADER_NAVIGATION_ENABLED":return{...e,isNavigationEnabled:t.isNavigationEnabled};case"SET_HEADER_ENABLED":return{...e,isEnabled:t.isEnabled};case"UPDATE_HEADER_MENU_DATA":return{...e,menu:t.menu};case"SET_HEADER_ACTIVE_VIEW":return{...e,view:t.view}}return e},footer:function(e={footers:ut,isNavAllowed:!0,hideFooterNav:!1,view:Je.Sr},t){switch(t.type){case"SET_IS_FOOTER_NAV_ALLOWED":return{...e,isNavAllowed:t.isNavAllowed};case"SET_HIDE_FOOTER_NAV":return{...e,hideFooterNav:t.hideFooterNav};case"SET_FOOTER_ACTIVE_VIEW":return{...e,view:t.view}}return e},queue:function(e=[],t){switch(t.type){case"ENQUEUE_REQUEST":return e=e.filter((e=>e[0]!==t.id)),[...e,[t.id,t.request]];case"DEQUEUE_REQUEST":return[...e.slice(1)];case"FLUSH_QUEUE":return(async e=>{const t=e,n=async(e=1)=>{t[0]&&await t[0][1]().then((t=>{t.error&&et.shift())).then(n)};await n()})(e),[]}return e}}),actions:r,selectors:a},mt=(0,Ye.createReduxStore)("newfold/onboarding",pt);(0,Ye.register)(mt)},2202:(e,t,n)=>{"use strict";n.d(t,{$2:()=>N,$x:()=>A,DN:()=>g,Dl:()=>V,Ep:()=>p,Fi:()=>v,Hf:()=>P,N0:()=>o,Nz:()=>O,Qh:()=>C,Qp:()=>x,TH:()=>I,Vg:()=>a,WN:()=>T,WT:()=>_,Wi:()=>D,XJ:()=>R,Zt:()=>w,aq:()=>c,cB:()=>M,cW:()=>z,ce:()=>m,f2:()=>E,gH:()=>l,hi:()=>u,j7:()=>y,k2:()=>d,o3:()=>f,oA:()=>i,p$:()=>r,r2:()=>h,rf:()=>b,uv:()=>L,vO:()=>s,vY:()=>S,wo:()=>k});const r="onboarding_started",a="onboarding_complete",i="pageview",o="onboarding_top_priority_set",s="onboarding_step_skipped",l="primary_type_set",c="secondary_type_set",d="experience_level_set",u="theme_style_selected",p="colors_selected",m="fonts_selected",h="header_selected",g="homepage_layout_selected",f="starter_pages_selected",w="feature_added",b="site_title_set",v="tagline_set",_="logo_added",E="onboarding_exited",y="onboarding_chapter_started",S="onboarding_chapter_complete",k="social_added",C="fork_option_selected",T="site_details_prompt_set",N="social_connected",A="social_connect_skipped",x="logo_skipped",D="homepage_selected",P="homepage_regenerated",O="homepage_favorited",I="homepage_renamed",M="sidebar_opened",L="site_generation_time",z="error_state_triggered",R="wonder_start",V={[o]:"top_priority",[s]:"step",[l]:"primary_type",[c]:"secondary_type",[d]:"experience_level",[u]:"theme_style",[p]:"color_palette",[m]:"font_set",[h]:"header",[g]:"layout",[f]:"pages",[w]:"feature",[b]:"title",[v]:"tagline",[E]:"step",[y]:"chapter",[S]:"chapter",[k]:"platform",[C]:"flow",[T]:"prompt",[N]:"platform",[D]:"version",[P]:"version",[O]:"version",[M]:"type",[I]:"version",[L]:"time"}},1056:(e,t,n)=>{"use strict";n.d(t,{iC:()=>i,Co:()=>l,SV:()=>s,v:()=>o});var r=n(4371),a=n(2202);class i extends r.c{constructor(e,t,n,r){const i=l(e);super(a.XJ,e,{label_key:i,[i]:t,...n,page:r||window.location.href},a.XJ)}}const o=e=>r.y.track(e),s=e=>r.y.send(e),l=e=>{if(e in a.Dl)return a.Dl[e]}},8674:(e,t,n)=>{"use strict";n.d(t,{EG:()=>i,fG:()=>a,zV:()=>o});var r=n(8969);const a=e=>`${r.Xi}/${e}`+(window.nfdOnboarding?.currentFlow?`&flow=${window.nfdOnboarding.currentFlow}`:""),i=e=>`${r.g5}/${e}`,o=e=>`${r.h0}/${e}`},5171:(e,t,n)=>{"use strict";n.d(t,{Im:()=>o,JK:()=>s,mj:()=>l});var r=n(1455),a=n.n(r),i=n(8674);const o=e=>0===Object.keys(e).length;async function s(){return a()({url:(0,i.zV)("settings")})}async function l(e){return a()({url:(0,i.zV)("settings"),method:"POST",data:e})}},6079:(e,t,n)=>{"use strict";n.d(t,{HR:()=>u,IS:()=>d,V1:()=>c,lv:()=>l});var r=n(5435),a=n(8674),i=n(1455),o=n.n(i);let s;async function l(){return await(0,r.h)(o()({url:(0,a.fG)("flow")}).then())}async function c(e){s&&s.abort("New setFlow request placed!"),s=new AbortController;const{signal:t}=s;return await(0,r.h)(o()({url:(0,a.fG)("flow"),signal:t,method:"POST",data:e}).then())}async function d(){return await(0,r.h)(o()({url:(0,a.fG)("flow/complete"),method:"POST"}).then())}async function u(e){return await(0,r.h)(o()({url:(0,a.fG)("flow/switch"),method:"POST",data:{flow:e}}).then())}},8520:(e,t,n)=>{"use strict";n.d(t,{O:()=>s});var r=n(5435),a=n(8674),i=n(1455),o=n.n(i);async function s(e=!1,t=!1){return await(0,r.h)(o()({url:(0,a.fG)("patterns"+(e?`&step=${e}&squash=${t}`:""))}).then())}},8559:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>c,YR:()=>u,ze:()=>d});var r=n(1455),a=n.n(r),i=n(8674),o=n(3272),s=n(5435),l=n(8969);const c=e=>{if((0,o.qn)(l.z3))return!0;a()({url:(0,i.fG)("plugins/initialize"),method:"POST",headers:{"X-NFD-INSTALLER":e||window.nfdOnboarding.pluginInstallHash}}).catch((e=>{console.error(e)}))},d=async()=>await(0,s.h)(a()({url:(0,i.fG)("plugins/site-features")}));async function u(){return await(0,s.h)(a()({url:(0,i.fG)("plugins/initialize/activate"),method:"POST"}).then())}},5435:(e,t,n)=>{"use strict";async function r(e){const t={body:null,error:null};try{t.body=await e}catch(e){t.error=e}return t}n.d(t,{h:()=>r})},2014:(e,t,n)=>{"use strict";n.d(t,{mt:()=>l,n_:()=>d,oc:()=>c});var r=n(1455),a=n.n(r),i=n(5435),o=n(8969),s=n(8674);async function l(){return await(0,i.h)(a()({url:(0,s.fG)("settings")}).then())}async function c(e){return await(0,i.h)(a()({url:(0,s.fG)("settings"),method:"POST",data:e}).then())}const d=(e=0)=>!(e>=o.lp)&&a()({url:(0,s.fG)("settings/initialize"),method:"POST"}).catch((()=>{d(e+=1)}))},7708:(e,t,n)=>{"use strict";n.d(t,{HA:()=>d,c7:()=>c,gK:()=>u,iQ:()=>l,kA:()=>s,rZ:()=>p});var r=n(1455),a=n.n(r),i=n(5435),o=n(8674);async function s(){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/identifiers")}).then())}async function l(e,t,n=!0){return await a()({url:(0,o.fG)("sitegen/generate"),method:"POST",data:{site_info:e,identifier:t,skip_cache:n}})}async function c(e){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/homepages"),method:"POST",data:{site_description:e}}).then())}async function d(e,t,n,r){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/homepages/regenerate"),method:"POST",data:{site_description:e,slug:t,palette:n,isFavorite:r}}).then())}async function u(){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/customize-data")}).then())}async function p(e){return await(0,i.h)(a()({url:(0,o.fG)("sitegen/pages/sitemap"),method:"POST",data:{site_description:e}}).then())}},7517:(e,t,n)=>{"use strict";n.d(t,{Ts:()=>c,_t:()=>g,ai:()=>d,kt:()=>f,oy:()=>m,qv:()=>h,w6:()=>p,xN:()=>u});var r=n(1455),a=n.n(r),i=n(8674),o=n(5435),s=n(3272),l=n(8969);const c=()=>{if((0,s.qn)(l.X0))return!0;a()({url:(0,i.fG)("themes/initialize"),method:"POST"}).catch((e=>{console.error(e)}))},d=async(e,t=!0,n=!0)=>"string"==typeof e&&await(0,o.h)(a()({url:(0,i.EG)("themes/install"),method:"POST",data:{theme:e,activate:t,queue:n}})),u=async(e,t=!0)=>"string"==typeof e&&await(0,o.h)(a()({url:(0,i.EG)("themes/expedite"),method:"POST",data:{theme:e,activate:t}})),p=async(e=!1)=>await(0,o.h)(a()({url:(0,i.fG)("themes/variations&variations="+e)}).then()),m=async e=>await(0,o.h)(a()({url:(0,i.fG)("themes/variations"),method:"POST",data:e}).then()),h=async e=>await(0,o.h)(a()({url:(0,i.EG)("themes/status"+(e?`&theme=${e}`:""))})),g=async()=>await(0,o.h)(a()({url:(0,i.fG)("themes/fonts")})),f=async()=>await(0,o.h)(a()({url:(0,i.fG)("themes/colors")}))},7225:(e,t,n)=>{"use strict";n.d(t,{AN:()=>_});var r=n(1609),a=n(6087),i=n(4997);const o=window.wp.styleEngine;var s=n(4715);function l(e,t={}){if(!e)return null;const{coerceTo:n,rootSizeValue:r,acceptableUnits:a}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},i=a?.join("|"),o=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),s=e.match(o);if(!s||s.length<3)return null;let[,l,c]=s,d=parseFloat(l);return"px"!==n||"em"!==c&&"rem"!==c||(d*=r,c=n),"px"!==c||"em"!==n&&"rem"!==n||(d/=r,c=n),{value:d,unit:c}}function c(e,t=3){return Number.isFinite(e)?parseFloat(e.toFixed(t)):void 0}const d="body",u=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["typography","fontSizes"],valueFunc:(e,{typography:t})=>function(e,t){const{size:n}=e;if(!0!==t?.fluid)return n;if(!1===e?.fluid)return n;const r=e?.fluid||{};let a=r?.min,i=r?.max;const o=l(n);return o?.unit?(a||(a=.75*o.value+o.unit),i||(i=1.5*o.value+o.unit),function({maximumViewPortWidth:e,minimumViewPortWidth:t,maximumFontSize:n,minimumFontSize:r,scaleFactor:a}){const i=l(r),o=i?.unit||"rem",s=l(n,{coerceTo:o});if(!i||!s)return null;const d=l(r,{coerceTo:"rem"}),u=l(e,{coerceTo:o}),p=l(t,{coerceTo:o});if(!u||!p||!d)return null;const m=c(p.value/100,3)+o;let h=(s.value-i.value)/(u.value-p.value)*100;h=c(h,3)||1;const g=h*a;return`clamp(${r}, ${d.value}${d.unit} + ((1vw - ${m}) * ${g}), ${n})`}({maximumViewPortWidth:"1600px",minimumViewPortWidth:"768px",maximumFontSize:i,minimumFontSize:a,scaleFactor:1})||n):n}(e,t),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],p={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function m(e){return e?.startsWith?.("var:")?`var(--wp--${e.slice(4).split("|").join("--")})`:e}function h(e={},t,n){let r=[];return Object.keys(e).forEach((i=>{const o=t+(0,a.kebabCase)(i.replace("/","-")),s=e[i];if(s instanceof Object){const e=o+n;r=[...r,...h(s,e,n)]}else r.push(`${o}: ${s}`)})),r}function g(e={},t="",n,r={}){const s=d===t,l=(0,a.reduce)(i.__EXPERIMENTAL_STYLE_PROPERTY,((t,{value:r,properties:i,rootOnly:o},l)=>{if(o&&!s)return t;const c=r;if("elements"===c[0])return t;const d=(0,a.get)(e,c);if("--wp--style--root--padding"===l&&("string"==typeof d||!n))return t;if(i&&"string"!=typeof d)Object.entries(i).forEach((e=>{const[n,r]=e;if(!(0,a.get)(d,[r],!1))return;const i=n.startsWith("--")?n:(0,a.kebabCase)(n);t.push(`${i}: ${m((0,a.get)(d,[r]))}`)}));else if((0,a.get)(e,c,!1)){const n=l.startsWith("--")?l:(0,a.kebabCase)(l);t.push(`${n}: ${m((0,a.get)(e,c))}`)}return t}),[]);return(0,o.getCSSRules)(e).forEach((e=>{if(s&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:(0,a.kebabCase)(e.key);let i=e.value;if("string"!=typeof i&&i?.ref){const e=i.ref.split(".");if(i=(0,a.get)(r,e),!i||i?.ref)return}l.push(`${t}: ${i}`)})),l}const f=(e,t)=>{var n;const r=[];if(!e?.settings)return r;const i=e=>{const t={};return u.forEach((({path:n})=>{const r=(0,a.get)(e,n,!1);!1!==r&&(0,a.set)(t,n,r)})),t},o=i(e.settings),s=e.settings?.custom;return(0,a.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:d}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const o=i(n),s=n.custom;(0,a.isEmpty)(o)&&!s||r.push({presets:o,custom:s,selector:t[e].selector})})),r},w=(e,t)=>{const n=f(e,t);let r="";return n.forEach((({presets:t,custom:n,selector:i})=>{const o=function(e={},t){return(0,a.reduce)(u,((n,{path:r,valueKey:i,valueFunc:o,cssVarInfix:s})=>{const l=(0,a.get)(e,r,[]);return l&&Array.isArray(l)&&l.forEach((e=>{i&&!o?n.push(`--wp--preset--${s}--${(0,a.kebabCase)(e.slug)}: ${e[i]}`):o&&"function"==typeof o&&n.push(`--wp--preset--${s}--${(0,a.kebabCase)(e.slug)}: ${o(e,t)}`)})),n}),[])}(t,e?.settings),s=h(n,"--wp--custom--","--");s.length>0&&o.push(...s),o.length>0&&(r+=`${i}{${o.join(";")};}`)})),r},b=(e,t,n,r,o=!1)=>{const l=((e,t)=>{var n;const r=[];if(!e?.styles)return r;const o=e=>(0,a.pickBy)(e,((e,t)=>["border","color","spacing","typography","filter"].includes(t))),s=o(e.styles);return s&&r.push({styles:s,selector:d}),Object.entries(i.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements&&e.styles?.elements[t]&&r.push({styles:e.styles?.elements[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var a;const s=o(n);s&&t?.[e]?.selector&&r.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:s,featureSelectors:t[e].featureSelectors}),Object.entries(null!==(a=n?.elements)&&void 0!==a?a:{}).forEach((([n,a])=>{a&&t?.[e]&&i.__EXPERIMENTAL_ELEMENTS?.[n]&&r.push({styles:a,selector:t[e].selector.split(",").map((e=>i.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),r})(e,t),c=f(e,t),p=e?.settings?.useRootPaddingAwareAlignments,{contentSize:m,wideSize:h}=e?.settings?.layout||{};let w="body {margin: 0;";if(m&&(w+=` --wp--style--global--content-size: ${m};`),h&&(w+=` --wp--style--global--wide-size: ${h};`),p&&(w+='padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) } \n\t\t\t .has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; } \n\t\t\t .has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; } \n\t\t\t .has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); } \n\t\t\t .has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;'),w+="}",l.forEach((({selector:t,duotoneSelector:a,styles:i,fallbackGapValue:l,hasLayoutSupport:c,featureSelectors:u})=>{u&&Object.entries(u).forEach((([e,t])=>{if(i?.[e]){const n=g({[e]:i[e]});delete i[e],n.length&&(w+=`${t}{${n.join(";")} }`)}}));const m={};if(i?.filter&&(m.filter=i.filter,delete i.filter),a){const e=g(m);e.length>0&&(w+=`${a}{${e.join(";")};}`)}o||d!==t&&!c||(w+=function({tree:e,style:t,selector:n,hasBlockGapSupport:r,hasFallbackGapSupport:a,fallbackGapValue:i}){let o="",l=r?(0,s.__experimentalGetGapCSSValue)(t?.spacing?.blockGap):"";if(a&&(n===d?l=l||"0.5em":!r&&i&&(l=i)),l&&e?.settings?.layout?.definitions&&(Object.values(e.settings.layout.definitions).forEach((({className:e,name:t,spacingStyles:a})=>{(r||"flex"===t)&&a?.length&&a.forEach((t=>{const a=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{a.push(`${e}: ${t||l}`)})),a.length){let i="";i=r?n===d?`${n} .${e}${t?.selector||""}`:`${n}.${e}${t?.selector||""}`:n===d?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,o+=`${i} { ${a.join("; ")}; }`}}))})),n===d&&r&&(o+=`${n} { --wp--style--block-gap: ${l}; }`)),n===d&&e?.settings?.layout?.definitions){const t=["block","flex","grid"];Object.values(e.settings.layout.definitions).forEach((({className:e,displayMode:r,baseStyles:a})=>{r&&t.includes(r)&&(o+=`${n} .${e} { display:${r}; }`),a?.length&&a.forEach((t=>{const r=[];t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t}`)})),r.length&&(o+=`${n} .${e}${t?.selector||""} { ${r.join("; ")}; }`)}))}))}return o}({tree:e,style:i,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:r,fallbackGapValue:l}));const h=g(i,t,p,e);h?.length&&(w+=`${t}{${h.join(";")};}`);const f=Object.entries(i).filter((([e])=>e.startsWith(":")));f?.length&&f.forEach((([e,n])=>{const r=g(n);if(!r?.length)return;const a=`${t.split(",").map((t=>t+e)).join(",")}{${r.join(";")};}`;w+=a}))})),w+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",w+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",w+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",!o&&n){const t=(0,s.__experimentalGetGapCSSValue)(e?.styles?.spacing?.blockGap)||"0.5em";w+=".wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }",w+=`.wp-site-blocks > * + * { margin-block-start: ${t}; }`}return c.forEach((({selector:e,presets:t})=>{d===e&&(e="");const n=function(e,t={}){return(0,a.reduce)(u,((n,{path:r,cssVarInfix:i,classes:o})=>{if(!o)return n;const s=(0,a.get)(t,r,[]);return s&&Array.isArray(s)&&s.forEach((({slug:t})=>{o.forEach((({classSuffix:r,propertyName:o})=>{const s=`.has-${(0,a.kebabCase)(t)}-${r}`,l=e.split(",").map((e=>`${e}${s}`)).join(","),c=`var(--wp--preset--${i}--${(0,a.kebabCase)(t)})`;n+=`${l}{${o}: ${c} !important;}`}))})),n}),"")}(e,t);(0,a.isEmpty)(n)||(w+=n)})),w};const v=e=>{const t={};return e.forEach((e=>{var n,r;const a=e.name,i=null!==(n=e?.supports?.__experimentalSelector)&&void 0!==n?n:".wp-block-"+a.replace("core/","").replace("/","-"),o=null!==(r=e?.supports?.color?.__experimentalDuotone)&&void 0!==r?r:null,s=!!e?.supports?.__experimentalLayout,l=e?.supports?.spacing?.blockGap?.__experimentalDefault,c={};Object.entries(p).forEach((([t,n])=>{const r=e?.supports?.[t]?.__experimentalSelector;r&&(c[n]=function(e,t){const n=e.split(","),r=t.split(","),a=[];return n.forEach((e=>{r.forEach((t=>{a.push(`${e.trim()} ${t.trim()}`)}))})),a.join(", ")}(i,r))})),t[a]={duotoneSelector:o,fallbackGapValue:l,featureSelectors:Object.keys(c).length?c:void 0,hasLayoutSupport:s,name:a,selector:i}})),t};function _(e,t){const n=t.settings.__experimentalFeatures.spacing.blockGap,o=!n,l=!t.settings?.disableLayoutStyles||t.settings.disableLayoutStyles;if(!e?.styles&&!e?.settings&&!e?.globalStyles)return;const c={settings:e.settings,styles:e?.globalStyles?e.globalStyles:e.styles},d=v((0,i.getBlockTypes)()),p=w(c,d),m=b(c,d,n,o,l),h=function(e,t){return f(e,t).flatMap((({presets:e})=>function(e={}){return u.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,a.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,r.createElement)(s.__unstablePresetDuotoneFilter,{preset:e,key:e.slug})))))}))}(e)))}(c,d),g=[...t.settings.styles.filter((e=>!(e.hasOwnProperty("id")&&("customProperty"===e.id||"globalStyle"===e.id)))),{id:"customProperty",css:p,isGlobalStyles:!0},{id:"globalStyle",css:m,isGlobalStyles:!0},{assets:h,__unstableType:"svg",isGlobalStyles:!0}];return e.settings.styles=g,e.settings.__unstableResolvedAssets=t.settings.__unstableResolvedAssets,e.settings.__experimentalFeatures=t.settings.__experimentalFeatures,e}},3272:(e,t,n)=>{"use strict";n.d(t,{g2:()=>s,qm:()=>o,qn:()=>i});var r=n(3832),a=n(6087);const i=e=>new URLSearchParams(window.location.search).get(e),o=(e,t)=>(0,r.hasQueryArg)(e,t)?(0,r.removeQueryArgs)(e,t):e,s=e=>(0,a.transform)(e,((e,t,n)=>{e[(0,a.snakeCase)(n)]=t}))},3474:(e,t,n)=>{"use strict";n.d(t,{P:()=>o});var r=n(8744),a=n(7723);const i={[r.rA]:{site:{noun:(0,a._x)("site","noun","wp-module-onboarding")},website:{noun:(0,a._x)("website","noun","wp-module-onboarding")}},[r.eS]:{site:{noun:(0,a._x)("store","noun","wp-module-onboarding")},website:{noun:(0,a._x)("store","noun","wp-module-onboarding")}},[r.d0]:{site:{noun:(0,a._x)("site","noun","wp-module-onboarding")},website:{noun:(0,a._x)("website","noun","wp-module-onboarding")}}},o=(e,t="noun")=>{const n=window?.nfdOnboarding?.currentFlow||r.rA,a=i[n][e.toLowerCase()][t];return e===e.toUpperCase()?a.toUpperCase():e[0]===e[0].toUpperCase()?a[0].toUpperCase()+a.substring(1):a}},8969:(e,t,n)=>{"use strict";n.d(t,{$P:()=>ie,At:()=>ee,CL:()=>k,Cx:()=>v,EF:()=>re,Er:()=>Y,F4:()=>te,HJ:()=>S,Ie:()=>ue,Ix:()=>I,KJ:()=>b,KK:()=>L,KZ:()=>V,L5:()=>ce,Mw:()=>O,PE:()=>_,Qe:()=>D,Qs:()=>A,R0:()=>h,R2:()=>ne,SF:()=>l,SJ:()=>y,SQ:()=>J,So:()=>Q,Sr:()=>M,St:()=>N,VG:()=>f,V_:()=>x,Vw:()=>le,W6:()=>oe,WH:()=>B,X0:()=>q,Xi:()=>u,ZH:()=>o,db:()=>W,eT:()=>i,eY:()=>T,f1:()=>j,fO:()=>Z,fS:()=>se,g5:()=>p,gR:()=>X,gb:()=>F,h0:()=>d,iQ:()=>E,jK:()=>P,jN:()=>de,lf:()=>C,lp:()=>U,me:()=>R,mp:()=>K,nK:()=>z,qy:()=>ae,vO:()=>g,vd:()=>$,yY:()=>w,z3:()=>G,zm:()=>H});var r,a=n(3832);const i="nfd-onboarding",o="object"==typeof window?.nfdOnboarding&&"buildUrl"in window.nfdOnboarding,s=window.nfdOnboarding.adminUrl,l=window.nfdOnboarding.siteUrl,c=window.nfdOnboarding.restUrl,d=`${c}/wp/v2`,u=`${c}/newfold-onboarding/v1`,p=`${c}/newfold-installer/v1`,m=(0,a.addQueryArgs)(`${s}index.php`,window.nfdOnboarding.currentBrand?.dashboardRedirectParams),h=null!==(r=(0,a.addQueryArgs)(window.nfdOnboarding.currentBrand?.pluginDashboardPage,window.nfdOnboarding.currentBrand?.dashboardRedirectParams))&&void 0!==r?r:m,g="nav-primary",f="nav-design",w="nav-page",b="design-themes",v="design-theme-styles-menu",_="design-theme-styles-preview",E="design-colors",y="design-fonts",S="design-header-menu",k="design-homepage-menu",C="nav-get-started",T="nav-ecommerce-store-info",N="Sidebar",A="HeaderMenu",x="SitegenEditorPatterns",D="LearnMore",P="Customize",O="HeaderSiteBuild",I="HeaderSiteGen",M="FooterSiteGen",L="HeaderTop",z="HeaderStart",R="HeaderCenter",V="HeaderEnd",$="FooterStart",F="FooterEnd",H=2,W=2,U=2,B=2,G="nfd_plugins",q="nfd_themes",j="nfd_slug_yith_wonder",Q="init",K="inactive",Z="installing",Y="activated",J="failed",X="demographic",ee="commerce",te="design",ne="layout_and_content",re="features",ae="core",ie="design",oe="features",se="dark",le="light",ce={SET_FLOW:"SET_FLOW",SET_GLOBAL_STYLES:"SET_GLOBAL_STYLES"},de=20,ue="database_update_failed"},148:(e,t,n)=>{"use strict";n.d(t,{$P:()=>p,BV:()=>x,Ix:()=>A,Rq:()=>s,Zp:()=>f,jb:()=>l,qh:()=>N,sp:()=>o,x$:()=>w,zy:()=>h});var r=n(1609),a=n(5588);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),r.useCallback((function(r,a){void 0===a&&(a={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,i({fromRouteId:t},a)))}),[e,t])}():function(){m()||(0,a.Oi)(!1);let e=r.useContext(o),{basename:t,future:n,navigator:i}=r.useContext(l),{matches:s}=r.useContext(d),{pathname:c}=h(),u=JSON.stringify((0,a.yD)(s,n.v7_relativeSplatPath)),p=r.useRef(!1);return g((()=>{p.current=!0})),r.useCallback((function(n,r){if(void 0===r&&(r={}),!p.current)return;if("number"==typeof n)return void i.go(n);let o=(0,a.Gh)(n,JSON.parse(u),c,"path"===r.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:(0,a.HS)([t,o.pathname])),(r.replace?i.replace:i.push)(o,r.state,r)}),[t,i,u,c,e])}()}function w(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=r.useContext(l),{matches:o}=r.useContext(d),{pathname:s}=h(),c=JSON.stringify((0,a.yD)(o,i.v7_relativeSplatPath));return r.useMemo((()=>(0,a.Gh)(e,JSON.parse(c),s,"path"===n)),[e,c,s,n])}function b(e,t,n,o){m()||(0,a.Oi)(!1);let{navigator:s}=r.useContext(l),{matches:u}=r.useContext(d),p=u[u.length-1],g=p?p.params:{},f=(p&&p.pathname,p?p.pathnameBase:"/");p&&p.route;let w,b=h();if(t){var v;let e="string"==typeof t?(0,a.Rr)(t):t;"/"===f||(null==(v=e.pathname)?void 0:v.startsWith(f))||(0,a.Oi)(!1),w=e}else w=b;let S=w.pathname||"/",k=S;if("/"!==f){let e=f.replace(/^\//,"").split("/");k="/"+S.replace(/^\//,"").split("/").slice(e.length).join("/")}let C=(0,a.ue)(e,{pathname:k}),N=function(e,t,n,i){var o;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===i&&(i=null),null==e){var s;if(null==(s=n)||!s.errors)return null;e=n.matches}let l=e,c=null==(o=n)?void 0:o.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&(null==c?void 0:c[e.route.id])));e>=0||(0,a.Oi)(!1),l=l.slice(0,Math.min(l.length,e+1))}let d=!1,u=-1;if(n&&i&&i.v7_partialHydration)for(let e=0;e=0?l.slice(0,u+1):[l[0]];break}}}return l.reduceRight(((e,a,i)=>{let o,s=!1,p=null,m=null;var h;n&&(o=c&&a.route.id?c[a.route.id]:void 0,p=a.route.errorElement||_,d&&(u<0&&0===i?(T[h="route-fallback"]||(T[h]=!0),s=!0,m=null):u===i&&(s=!0,m=a.route.hydrateFallbackElement||null)));let g=t.concat(l.slice(0,i+1)),f=()=>{let t;return t=o?p:s?m:a.route.Component?r.createElement(a.route.Component,null):a.route.element?a.route.element:e,r.createElement(y,{match:a,routeContext:{outlet:e,matches:g,isDataRoute:null!=n},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?r.createElement(E,{location:n.location,revalidation:n.revalidation,component:p,error:o,children:f(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):f()}),null)}(C&&C.map((e=>Object.assign({},e,{params:Object.assign({},g,e.params),pathname:(0,a.HS)([f,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:(0,a.HS)([f,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),u,n,o);return t&&N?r.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:a.rc.Pop}},N):N}function v(){let e=function(){var e;let t=r.useContext(u),n=function(e){let t=r.useContext(s);return t||(0,a.Oi)(!1),t}(k.UseRouteError),i=C(k.UseRouteError);return void 0!==t?t:null==(e=n.errors)?void 0:e[i]}(),t=(0,a.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,null)}const _=r.createElement(v,null);class E extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(d.Provider,{value:this.props.routeContext},r.createElement(u.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function y(e){let{routeContext:t,match:n,children:a}=e,i=r.useContext(o);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(d.Provider,{value:t},a)}var S=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(S||{}),k=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(k||{});function C(e){let t=function(e){let t=r.useContext(d);return t||(0,a.Oi)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.Oi)(!1),n.route.id}const T={};function N(e){(0,a.Oi)(!1)}function A(e){let{basename:t="/",children:n=null,location:o,navigationType:s=a.rc.Pop,navigator:d,static:u=!1,future:p}=e;m()&&(0,a.Oi)(!1);let h=t.replace(/^\/*/,"/"),g=r.useMemo((()=>({basename:h,navigator:d,static:u,future:i({v7_relativeSplatPath:!1},p)})),[h,p,d,u]);"string"==typeof o&&(o=(0,a.Rr)(o));let{pathname:f="/",search:w="",hash:b="",state:v=null,key:_="default"}=o,E=r.useMemo((()=>{let e=(0,a.pb)(f,h);return null==e?null:{location:{pathname:e,search:w,hash:b,state:v,key:_},navigationType:s}}),[h,f,w,b,v,_,s]);return null==E?null:r.createElement(l.Provider,{value:g},r.createElement(c.Provider,{children:n,value:E}))}function x(e){let{children:t,location:n}=e;return b(D(t),n)}function D(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,i)=>{if(!r.isValidElement(e))return;let o=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,D(e.props.children,o));e.type!==N&&(0,a.Oi)(!1),e.props.index&&e.props.children&&(0,a.Oi)(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=D(e.props.children,o)),n.push(s)})),n}r.startTransition,new Promise((()=>{})),r.Component},1609:e=>{"use strict";e.exports=window.React},6087:e=>{"use strict";e.exports=window.lodash},1455:e=>{"use strict";e.exports=window.wp.apiFetch},4715:e=>{"use strict";e.exports=window.wp.blockEditor},4997:e=>{"use strict";e.exports=window.wp.blocks},6427:e=>{"use strict";e.exports=window.wp.components},9491:e=>{"use strict";e.exports=window.wp.compose},3582:e=>{"use strict";e.exports=window.wp.coreData},7143:e=>{"use strict";e.exports=window.wp.data},8107:e=>{"use strict";e.exports=window.wp.dom},8468:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},8558:e=>{"use strict";e.exports=window.wp.keycodes},5573:e=>{"use strict";e.exports=window.wp.primitives},3832:e=>{"use strict";e.exports=window.wp.url},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>e+".js",a.miniCssF=e=>e+".css",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="newfold.Onboarding:",a.l=(n,r,i,o)=>{if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(m);var a=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(r))),t)return t(r)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{if("undefined"!=typeof document){var e={352:0};a.f.miniCss=(t,n)=>{e[t]?n.push(e[t]):0!==e[t]&&{100:1,396:1}[t]&&n.push(e[t]=(e=>new Promise(((t,n)=>{var r=a.miniCssF(e),i=a.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var o=n&&n.type,s=n&&n.target&&n.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+s+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=o,l.request=s,i.parentNode&&i.parentNode.removeChild(i),a(l)}},i.href=t,document.head.appendChild(i)})(e,i,0,t,n)})))(t).then((()=>{e[t]=0}),(n=>{throw delete e[t],n})))}}})(),(()=>{var e={352:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,a)=>r=e[t]=[n,a]));n.push(r[2]=i);var o=a.p+a.u(t),s=new Error;a.l(o,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,s,l]=n,c=0;if(o.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);l&&l(a)}for(t&&t(n);c{"use strict";a.r(i);var e={};a.r(e),a.d(e,{closeModal:()=>T,disableComplementaryArea:()=>v,enableComplementaryArea:()=>b,openModal:()=>C,pinItem:()=>_,setDefaultComplementaryArea:()=>w,setFeatureDefaults:()=>k,setFeatureValue:()=>S,toggleFeature:()=>y,unpinItem:()=>E});var t={};a.r(t),a.d(t,{getActiveComplementaryArea:()=>N,isComplementaryAreaLoading:()=>A,isFeatureActive:()=>D,isItemPinned:()=>x,isModalActive:()=>P});var n=a(8969);const r=window.wp.domReady;var o=a.n(r);const s=window.wp.blockLibrary;var l=a(1609),c=a(7675),d=a(6079),u=a(8468);const p=({isActive:e})=>((0,u.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,u.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);var m=a(7143);const h=window.wp.deprecated;var g=a.n(h);const f=window.wp.preferences,w=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),b=(e,t)=>({registry:n,dispatch:r})=>{t&&(n.select(f.store).get(e,"isComplementaryAreaVisible")||n.dispatch(f.store).set(e,"isComplementaryAreaVisible",!0),r({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t}))},v=e=>({registry:t})=>{t.select(f.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(f.store).set(e,"isComplementaryAreaVisible",!1)},_=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(f.store).get(e,"pinnedItems");!0!==r?.[t]&&n.dispatch(f.store).set(e,"pinnedItems",{...r,[t]:!0})},E=(e,t)=>({registry:n})=>{if(!t)return;const r=n.select(f.store).get(e,"pinnedItems");n.dispatch(f.store).set(e,"pinnedItems",{...r,[t]:!1})};function y(e,t){return function({registry:n}){g()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(f.store).toggle(e,t)}}function S(e,t,n){return function({registry:r}){g()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),r.dispatch(f.store).set(e,t,!!n)}}function k(e,t){return function({registry:n}){g()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(f.store).setDefaults(e,t)}}function C(e){return{type:"OPEN_MODAL",name:e}}function T(){return{type:"CLOSE_MODAL"}}const N=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(f.store).get(n,"isComplementaryAreaVisible");if(void 0!==r)return!1===r?null:t?.complementaryAreas?.[n]})),A=(0,m.createRegistrySelector)((e=>(t,n)=>{const r=e(f.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return r&&void 0===a})),x=(0,m.createRegistrySelector)((e=>(t,n,r)=>{var a;const i=e(f.store).get(n,"pinnedItems");return null===(a=i?.[r])||void 0===a||a})),D=(0,m.createRegistrySelector)((e=>(t,n,r)=>(g()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(f.store).get(n,r))));function P(e,t){return e.activeModal===t}const O=(0,m.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return e[n]?e:{...e,[n]:r}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:r}=t;return{...e,[n]:r}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}}),I=(0,m.createReduxStore)("core/interface",{reducer:O,actions:e,selectors:t});(0,m.register)(I);var M=a(6427),L=a(148),z=a(3832),R=a(4371),V=a(8744),$=a(3272),F=a(19),H=a(212),W=a(7723),U=a(3474);const B=()=>{const{brandName:e}=(0,m.useSelect)((e=>({brandName:e(c.M).getNewfoldBrandName()})),[]),t=(e=>({title:(0,W.sprintf)(/* translators: 1: Brand 2: Site or Store */ /* translators: 1: Brand 2: Site or Store */ (0,W.__)("Making the keys to your %1$s Online %2$s","wp-module-onboarding"),e,(0,U.P)("Site")),subtitle:(0,W.__)("We’re installing WooCommerce for you to fill with your amazing products & services!","wp-module-onboarding")}))(e);return(0,l.createElement)(H.A,{title:t.title,subtitle:t.subtitle})};var G=a(6942),q=a.n(G),j=a(4487);const Q=()=>{const{headers:e,headerActiveView:t,isHeaderEnabled:r,currentStep:a}=(0,m.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),headers:e(c.M).getHeaders(),headerActiveView:e(c.M).getHeaderActiveView(),isHeaderEnabled:e(c.M).isHeaderEnabled()}))),i=a===j.b,o=window.nfdOnboarding.currentFlow===V.d0;return(0,l.createElement)(u.Fragment,null,(0,l.createElement)(u.Suspense,{fallback:(0,l.createElement)(u.Fragment,null)},e.map((e=>(0,l.createElement)(u.Fragment,{key:e.id},(0,l.createElement)(e.header,null))))),(0,l.createElement)(M.Slot,{name:`${t}/${n.KK}`}),r&&(0,l.createElement)("div",{className:q()("nfd-onboarding-header",{"nfd-onboarding-header--dark":i},{"nfd-onboarding-header--sitegen":o})},(0,l.createElement)("div",{className:"nfd-onboarding-header__start"},(0,l.createElement)(M.Slot,{name:`${t}/${n.nK}`})),(0,l.createElement)("div",{className:"nfd-onboarding-header__center"},(0,l.createElement)(M.Slot,{name:`${t}/${n.me}`})),(0,l.createElement)("div",{className:"nfd-onboarding-header__end"},(0,l.createElement)(M.Slot,{name:`${t}/${n.KZ}`}))))},K=(0,u.memo)((()=>{const{routes:e}=(0,m.useSelect)((e=>({routes:e(c.M).getRoutes()}))),t=(0,u.useCallback)((()=>e?.map((e=>(0,l.createElement)(L.qh,{key:e.path,path:e.path,end:!0,element:(0,l.createElement)(e.Component,null)})))),[e]);return(0,l.createElement)("main",{className:"nfd-onboard-content"},(0,l.createElement)(u.Suspense,{fallback:(0,l.createElement)(u.Fragment,null)},(0,l.createElement)(L.BV,null,t(e))))}));var Z=a(9491),Y=a(431),J=a(1056),X=a(7517),ee=a(7225);function te(e){if(e){const t={};return e?.forEach((e=>{t[e.slug]=e.color})),t}}function ne(e){if(e){const t=[];for(const n in e)t.push({slug:n,name:n?.charAt(0).toUpperCase()+n?.slice(1),color:e[n]});return t}}var re=a(3957),ae=a(2202);const ie=()=>{const e=(0,u.useRef)(null),[t,r]=(0,u.useState)(),[a,i]=(0,u.useState)(),[o,s]=(0,u.useState)(),[d,p]=(0,u.useState)(),[h,g]=(0,u.useState)(""),[f,w]=(0,u.useState)(!1),[b,v]=(0,u.useState)(!0),[_,E]=(0,u.useState)(),{storedPreviewSettings:y,currentData:S,themeStatus:k}=(0,m.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:C,setCurrentOnboardingData:T,updateThemeStatus:N}=(0,m.useDispatch)(c.M);(0,u.useEffect)((()=>{n.Er===k&&(A(),"custom"===S?.data?.colorStyle&&(v(!1),e?.current?.scrollIntoView({behavior:"smooth",block:"end"})))}),[k]);const A=async()=>{const[e,t]=await Promise.all([(0,X.w6)(),(0,X.kt)()]);if(t?.error)return N(n.So);if(e?.error)return N(n.So);let a;var o;r(t?.body.tailored),i(t?.body["custom-picker-grouping"]),""!==S?.data?.colorStyle?(a=null!==(o=y?.settings?.color?.palette)&&void 0!==o?o:e.body[0]?.settings?.color?.palette,"custom"===S?.data?.colorStyle&&(s(te(a)),p(te(a))),s(te(a))):x()};async function x(){const e=await(0,X.w6)(!0);let t;S?.data?.theme?.variation?t=e.body.filter((e=>e.title===S.data.theme.variation))[0]:0===e.body[0]?.id&&(t=e.body[0]),C((0,ee.AN)(t,y)),p();const n=t.settings.color.palette;S.data.colorStyle="",T(S),s(te(n))}const D=e=>{p(),async function(e){const n=y;let r=y?.settings?.color?.palette;t&&e&&r&&(r=r.map((n=>(t?.[e]?.[n.slug]&&(n.color=t[e][n.slug]),n))),n.settings.color.palette=r,C((0,ee.AN)(n,y)))}(e),s(t[e]),ne(t[e]),S.data.colorStyle=e,T(S),(0,J.v)(new J.iC(ae.Ep,e,{colors:(0,$.g2)(t[e])}))},P=async e=>{const t={...o};if(t[h]=e,a){const n=a[h];n&&n.forEach((n=>{t[n]=e}))}!async function(){const e=y,t=e?.settings?.color?.palette;if(t){for(let e=0;e{d&&void 0!==d[h]&&(t[function(e,t,n){const r=n.findIndex((({slug:t})=>t===e));return-1===r?n.findIndex((({slug:e})=>e===t)):r}(e,h,y?.settings?.color?.palette)].color=d[h])}))}e.settings.color.palette=t,C((0,ee.AN)(e,y))}}(),ne(t),S.data.colorStyle="custom",T(S),s(t),clearTimeout(_),E(setTimeout((()=>{(0,J.v)(new J.iC(ae.Ep,"custom",{colors:(0,$.g2)(t)}))}),1e3)),p(t)},O=e=>{w(!f),g(f?"":e)};return t&&(0,l.createElement)("div",{className:"theme-colors--drawer"},(0,l.createElement)("h2",null,(0,W.__)("Color Palettes","wp-module-onboarding")),Object.keys(t).map(((e,n)=>(0,l.createElement)("div",{key:e,className:q()("color-palette drawer-palette--button",{"color-palette-selected drawer-palette--button--selected":e===S?.data?.colorStyle}),role:"button",tabIndex:n+1,onClick:()=>D(e),onKeyDown:()=>D(e)},(0,l.createElement)("div",{className:"color-palette__colors"},(0,l.createElement)("div",{className:"color-palette__colors--tertiary",style:{backgroundColor:`${t[e]?.["header-background"]}`}}),(0,l.createElement)("div",{className:"color-palette__colors--secondary",style:{backgroundColor:`${t[e]?.secondary}`}}),(0,l.createElement)("div",{className:"color-palette__colors--primary",style:{backgroundColor:`${t[e]?.primary}`}})),(0,l.createElement)("div",{className:"color-palette__name drawer-palette--button__text"},t[e]?.name)))),function(){var t,n,r,a;const i="#fff",s=d&&""!==d?.primary?d.primary:null!==(t=o?.primary)&&void 0!==t?t:i,c=d&&""!==d?.secondary?d.secondary:null!==(n=o?.secondary)&&void 0!==n?n:i,u=d&&""!==d?.["header-background"]?d["header-background"]:null!==(r=o?.["header-background"])&&void 0!==r?r:i;return(0,l.createElement)("div",{className:"custom-palette"},(0,l.createElement)("div",{className:"custom-palette__top",role:"button",tabIndex:0,onClick:()=>v(!b),onKeyDown:()=>v(!b)},(0,l.createElement)("div",{className:"custom-palette__top-text"},(0,W.__)("SELECT CUSTOM COLORS","wp-module-onboarding")),b?(0,l.createElement)("div",{className:"custom-palette__top-icon"},"+"):(0,l.createElement)("div",{className:"custom-palette__top-icon"},"-")),(0,l.createElement)(Y.A,{type:"fade-in",duration:"300ms",timingFunction:"ease-in-out",className:"custom-palette__below "+(b?"custom-palette_acc_closed":"custom-palette_acc_opened")},(0,l.createElement)(re.A,{isColorSelected:d,color:null!==(a=d?.base)&&void 0!==a?a:i,slug:"base",name:(0,W.__)("Background","wp-module-onboarding"),callback:O}),(0,l.createElement)(re.A,{isColorSelected:d,color:s,slug:"primary",name:(0,W.__)("Primary","wp-module-onboarding"),callback:O}),(0,l.createElement)(re.A,{isColorSelected:d,color:c,slug:"secondary",name:(0,W.__)("Secondary","wp-module-onboarding"),callback:O}),(0,l.createElement)(re.A,{isColorSelected:d,color:u,slug:"tertiary",name:(0,W.__)("Tertiary","wp-module-onboarding"),callback:O})),d&&(0,l.createElement)(Y.A,{type:"fade-in",duration:"300ms"},(0,l.createElement)("div",{ref:e,className:"theme-colors--drawer--reset",role:"button",tabIndex:0,onClick:x,onKeyDown:x},(0,l.createElement)("div",null,(0,W.__)("Reset","wp-module-onboarding")))),f&&(0,l.createElement)(M.Popover,null,(0,l.createElement)("div",{role:"button",tabIndex:0,className:"custom-palette__picker__close-icon",onClick:()=>w(!1),onKeyDown:()=>w(!1)},"X"),(0,l.createElement)(M.ColorPicker,{onChange:P})))}())};var oe=a(8520),se=a(7044);const le=()=>{const[e,t]=(0,u.useState)(),[r,a]=(0,u.useState)(),[i,o]=(0,u.useState)(""),s=(0,L.zy)(),{currentStep:p,currentData:h,themeStatus:g,storedPreviewSettings:f}=(0,m.useSelect)((e=>({currentStep:e(c.M).getStepFromPath(s.pathname),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus(),storedPreviewSettings:e(c.M).getStepPreviewData()})),[]),{setCurrentOnboardingData:w,updateThemeStatus:b,setHeaderMenuData:v}=(0,m.useDispatch)(c.M);return(0,u.useEffect)((()=>{g===n.Er&&(async()=>{const e=await(0,oe.O)(p?.data?.patternId);if(e?.error)return b(n.So);const r=e?.body.pageHeaders,i=e?.body.pageFooter,s=e?.body.pageBody;h.data.partHeader&&""!==h.data.partHeader||(h.data.partHeader=r[0].slug,w(h)),h.data?.partFooter&&""!==h.data?.partFooter||(h.data.partFooter=i.slug,w(h)),o(h.data.partHeader),a(e.body),t(r);let[l,c]=["",""];r.forEach((e=>{e.slug===h.data.partHeader&&(l=e.content)})),c=l+s,v(c)})()}),[g]),(0,l.createElement)(se._Z,{count:f[p?.data?.patternId]?.previewCount,watch:e,callback:()=>e?.map(((t,n)=>(0,l.createElement)(se.ph,{key:n,className:"theme-header-menu-preview--drawer__list__item",selected:t.slug===i,blockGrammer:t.content,viewportWidth:900,styling:"custom",overlay:!1,onClick:()=>(async t=>{document.getElementsByClassName("nfd-onboard-content")&&document.getElementsByClassName("nfd-onboard-content")[0].scrollIntoView({behavior:"smooth"});const n=e[t];if(n.slug===i)return!0;o(n.slug),h.data.partHeader=n.slug,w(h);const a=n.content+r.pageBody;v(a);const s=await(0,d.V1)(h);null===s?.error&&w(h),(0,J.v)(new J.iC(ae.r2,n.slug))})(n)}))),className:"theme-header-menu-preview--drawer__list__item",viewportWidth:900})},ce=()=>(0,l.createElement)("div",{style:{padding:"0 16px"}},(0,l.createElement)("h2",null,(0,W.__)("Pick a Homepage Design","wp-module-onboarding")),(0,l.createElement)("p",null,(0,W.__)("Panel will show a few Homepage Patterns.","wp-module-onboarding"))),de=()=>(0,l.createElement)("div",{style:{padding:"0 16px"}},(0,l.createElement)("h2",null,(0,W.__)("Pick a Theme Style","wp-module-onboarding")),(0,l.createElement)("h4",null,(0,W.__)("No Style Selected","wp-module-onboarding")),(0,l.createElement)("p",null,(0,W.__)("Panel will show Theme details","wp-module-onboarding")),(0,l.createElement)("h4",null,(0,W.__)("With Style Selected","wp-module-onboarding")),(0,l.createElement)("p",null,(0,W.__)("Panel will show single-column of other Styles.","wp-module-onboarding"))),ue=()=>{const[e,t]=(0,u.useState)(),[r,a]=(0,u.useState)(),[i,o]=(0,u.useState)(""),{currentStep:s,currentData:d,storedPreviewSettings:p,themeStatus:h,themeVariations:g}=(0,m.useSelect)((e=>({currentStep:e(c.M).getCurrentStep(),currentData:e(c.M).getCurrentOnboardingData(),storedPreviewSettings:e(c.M).getPreviewSettings(),themeStatus:e(c.M).getThemeStatus(),themeVariations:e(c.M).getStepPreviewData()})),[]),{updatePreviewSettings:f,setCurrentOnboardingData:w,updateThemeStatus:b}=(0,m.useDispatch)(c.M);return(0,u.useEffect)((()=>{h===n.Er&&(async()=>{const e=await(0,X.w6)(!0);if(e?.error)return b(n.So);let r;d.data.theme.variation?r=d.data.theme.variation:(r=e.body[0].title,d.data.theme.variation=r,w(d)),o(r);const i=await(0,oe.O)(s?.data?.patternId,!0);if(i?.error)return b(n.So);t(i?.body),a(e?.body),document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0]&&document.getElementsByClassName("theme-styles-preview--drawer__list__item__title-bar--selected")[0].scrollIntoView({behavior:"smooth",block:"center"})})()}),[h]),(0,l.createElement)("div",{className:"theme-styles-preview--drawer"},(0,l.createElement)("div",{className:"theme-styles-preview--drawer__list"},(0,l.createElement)(se._Z,{className:"theme-styles-preview--drawer__list__item",watch:r&&e,count:g[s?.data?.patternId]?.previewCount,callback:()=>r?.map(((t,n)=>(0,l.createElement)(se.ph,{key:n,className:"theme-styles-preview--drawer__list__item",selected:t.title===i,blockGrammer:e,viewportWidth:900,styling:"custom",previewSettings:t,overlay:!1,onClick:()=>(e=>{const t=r[e];if(i===t.title)return!0;f((0,ee.AN)(t,p)),o(t.title),d.data.theme.variation=t.title,w(d),(0,J.v)(new J.iC(ae.hi,t.title))})(n)}))),viewportWidth:900})))},pe=()=>(0,l.createElement)("div",{style:{padding:"0 16px"}},(0,l.createElement)("h2",null,(0,W.__)("Pick a Theme","wp-module-onboarding")),(0,l.createElement)("h4",null,(0,W.__)("No Theme Selected","wp-module-onboarding")),(0,l.createElement)("p",null,(0,W.__)("Panel will show contextual help","wp-module-onboarding")),(0,l.createElement)("h4",null,(0,W.__)("With Theme Selected","wp-module-onboarding")),(0,l.createElement)("p",null,(0,W.__)("Panel will show single-column of other Themes.","wp-module-onboarding"))),me=()=>{const e=(0,u.useRef)(),[t,r]=(0,u.useState)(!1),[a,i]=(0,u.useState)(),[o,s]=(0,u.useState)(),{storedPreviewSettings:d,currentData:p,themeStatus:h}=(0,m.useSelect)((e=>({storedPreviewSettings:e(c.M).getPreviewSettings(),currentData:e(c.M).getCurrentOnboardingData(),themeStatus:e(c.M).getThemeStatus()})),[]),{updatePreviewSettings:g,setCurrentOnboardingData:f,updateThemeStatus:w}=(0,m.useDispatch)(c.M);(0,u.useEffect)((()=>{""!==p?.data?.fontStyle&&void 0!==o&&(i(p?.data?.fontStyle),b(p?.data?.fontStyle))}),[o,d]),(0,u.useEffect)((()=>{t||n.Er!==h||(async()=>{const t=await(0,X._t)();if(t?.error)return w(n.So);s(t?.body);const a=d?.settings?.styles[0]?.css;if(a){const t=/--wp--preset--font-family.*;/;e.current.setAttribute("style",a.match(t))}r(!0)})()}),[t,h]);const b=async(e,t="click")=>{if(a===e)return!0;i(e);const n=d,r=o;n?.styles?.typography?.fontFamily&&n?.styles?.blocks["core/heading"]&&(n.styles.typography.fontFamily=r[e]?.styles?.typography?.fontFamily,n.styles.blocks["core/heading"]={...n.styles.blocks["core/heading"],typography:r[e]?.styles.blocks["core/heading"].typography}),n.styles?.blocks["core/site-title"]?.typography?.fontFamily&&(n.styles.blocks["core/site-title"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),n.styles?.blocks["core/site-tagline"]?.typography?.fontFamily&&(n.styles.blocks["core/site-tagline"].typography.fontFamily=r[e]?.styles.blocks["core/heading"].typography.fontFamily),p.data.fontStyle=e,g((0,ee.AN)(n,d)),f(p),"click"===t&&(0,J.v)(new J.iC(ae.ce,e))};return(0,l.createElement)("div",{ref:e,className:"theme-fonts--drawer"},(0,l.createElement)("h2",null,(0,W.__)("Font Palettes","wp-module-onboarding")),o&&Object.keys(o).map(((e,t)=>{var n;const r=o[e]?.label.split("&",2);return 0===r.length?null:(0,l.createElement)("div",{key:e,role:"button",tabIndex:t+1,className:q()("font-palette drawer-palette--button",{"font-palette-selected drawer-palette--button--selected":a===e}),onClick:()=>b(e),onKeyDown:()=>b(e)},(0,l.createElement)("div",{className:"font-palette__icon drawer-palette--button__text",style:{fontFamily:o[e]?.styles?.typography?.fontFamily}},/* translators: text in each font selection pill representing the respective font */ /* translators: text in each font selection pill representing the respective font */ (0,W.__)("Aa","wp-module-onboarding")),(0,l.createElement)("div",{className:"font-palette__name drawer-palette--button__text"},(0,l.createElement)("span",{style:{fontFamily:o[e]?.styles.blocks["core/heading"].typography.fontFamily}},r[0]),r[1]?"&":"",(0,l.createElement)("span",{style:{fontFamily:o[e]?.styles?.typography?.fontFamily}},null!==(n=r[1])&&void 0!==n?n:"")))})))};var he=a(8558),ge=a(1607),fe=a(7677);const we=window.ReactDOM;var be=a(5588);function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Ee=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],ye=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(e){}const Se=l.createContext({isTransitioning:!1});new Map;const ke=l.startTransition;function Ce(e){let{basename:t,children:n,future:r,window:a}=e,i=l.useRef();null==i.current&&(i.current=(0,be.TM)({window:a,v5Compat:!0}));let o=i.current,[s,c]=l.useState({action:o.action,location:o.location}),{v7_startTransition:d}=r||{},u=l.useCallback((e=>{d&&ke?ke((()=>c(e))):c(e)}),[c,d]);return l.useLayoutEffect((()=>o.listen(u)),[o,u]),l.createElement(L.Ix,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}we.flushSync,l.useId;const Te="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ae=l.forwardRef((function(e,t){let n,{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:c,to:d,preventScrollReset:u,unstable_viewTransition:p}=e,m=_e(e,Ee),{basename:h}=l.useContext(L.jb),g=!1;if("string"==typeof d&&Ne.test(d)&&(n=d,Te))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=(0,be.pb)(t.pathname,h);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:g=!0}catch(e){}let f=(0,L.$P)(d,{relative:a}),w=function(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=void 0===t?{}:t,c=(0,L.Zp)(),d=(0,L.zy)(),u=(0,L.x$)(e,{relative:o});return l.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:(0,be.AO)(d)===(0,be.AO)(u);c(e,{replace:n,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}}),[d,c,u,r,a,n,e,i,o,s])}(d,{replace:o,state:s,target:c,preventScrollReset:u,relative:a,unstable_viewTransition:p});return l.createElement("a",ve({},m,{href:n||f,onClick:g||i?r:function(e){r&&r(e),e.defaultPrevented||w(e)},ref:t,target:c}))})),xe=l.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:a="",end:i=!1,style:o,to:s,unstable_viewTransition:c,children:d}=e,u=_e(e,ye),p=(0,L.x$)(s,{relative:u.relative}),m=(0,L.zy)(),h=l.useContext(L.Rq),{navigator:g,basename:f}=l.useContext(L.jb),w=null!=h&&function(e,t){void 0===t&&(t={});let n=l.useContext(Se);null==n&&(0,be.Oi)(!1);let{basename:r}=function(e){let t=l.useContext(L.sp);return t||(0,be.Oi)(!1),t}(De.useViewTransitionState),a=(0,L.x$)(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=(0,be.pb)(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=(0,be.pb)(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=(0,be.B6)(a.pathname,o)||null!=(0,be.B6)(a.pathname,i)}(p)&&!0===c,b=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,v=m.pathname,_=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;r||(v=v.toLowerCase(),_=_?_.toLowerCase():null,b=b.toLowerCase()),_&&f&&(_=(0,be.pb)(_,f)||_);const E="/"!==b&&b.endsWith("/")?b.length-1:b.length;let y,S=v===b||!i&&v.startsWith(b)&&"/"===v.charAt(E),k=null!=_&&(_===b||!i&&_.startsWith(b)&&"/"===_.charAt(b.length)),C={isActive:S,isPending:k,isTransitioning:w},T=S?n:void 0;y="function"==typeof a?a(C):[a,S?"active":null,k?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let N="function"==typeof o?o(C):o;return l.createElement(Ae,ve({},u,{"aria-current":T,className:y,ref:t,style:N,to:s,unstable_viewTransition:c}),"function"==typeof d?d(C):d)}));var De,Pe;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(De||(De={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Pe||(Pe={}));const Oe=()=>{const{designRoutes:e}=(0,m.useSelect)((e=>({designRoutes:e(c.M).getDesignRoutes()})),[]),{setDrawerActiveView:t}=(0,m.useDispatch)(c.M),r=(0,L.zy)();return(0,l.createElement)(Y.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,l.createElement)(M.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:ge.A,onClick:()=>t(n.vO)},(0,W.__)("Onboarding Menu","wp-module-onboarding")),(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,l.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,l.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,l.createElement)(xe,{to:e.path,className:q()("nfd-onboarding-drawer__panel-menu-link",{active:r.pathname===e.path||r.pathname.includes(e?.data?.designDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,l.createElement)(fe.A,{icon:e.icon}),(0,l.createElement)("span",null,e.title))))))))};var Ie=a(2895);const Me=()=>{const e=Ie._.steps,{setDrawerActiveView:t}=(0,m.useDispatch)(c.M);return(0,l.createElement)(Y.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,l.createElement)(M.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:ge.A,onClick:()=>t(n.vO)},(0,W.__)("Onboarding Menu","wp-module-onboarding")),(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,l.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,l.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,l.createElement)(xe,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,l.createElement)(fe.A,{icon:e.icon}),(0,l.createElement)("span",null,e.title))))))))},Le=()=>{const{setDrawerActiveView:e}=(0,m.useDispatch)(c.M);return(0,l.createElement)(Y.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,l.createElement)(M.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:ge.A,onClick:()=>e(n.vO)},(0,W.__)("Resume Onboarding","wp-module-onboarding")))};var ze=a(5748);const Re=()=>{const e=(0,L.zy)(),{topSteps:t}=(0,m.useSelect)((e=>({topSteps:e(c.M).getTopSteps()})),[]),{setDrawerActiveView:n}=(0,m.useDispatch)(c.M);return(0,l.createElement)(Y.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,l.createElement)(ze.A,{buttonClassName:"nfd-onboarding-drawer__panel-back",buttonVariant:"tertiary",origin:"drawer-panel"}),(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,l.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},t.map((t=>!1!==t.drawerNavigation&&(0,l.createElement)(M.Tooltip,{key:t.path,text:t.data?.tooltipText},(0,l.createElement)("li",{className:"nfd-onboarding-drawer__panel-menu-item"},(0,l.createElement)(xe,{to:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)?e.pathname:t.path,className:q()("nfd-onboarding-drawer__panel-menu-link",{active:e.pathname===t.path||e.pathname.includes(t?.data?.primaryDrawerActiveLinkIncludes)}),state:{origin:"drawer-nav"},onClick:()=>t?.drawerView&&n(t.drawerView)},(0,l.createElement)(fe.A,{icon:t.icon}),(0,l.createElement)("span",null,t.title)))))))))},Ve=()=>{const e=F.E.steps,{setDrawerActiveView:t}=(0,m.useDispatch)(c.M);return(0,l.createElement)(Y.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,l.createElement)(M.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:ge.A,onClick:()=>t(n.vO)},(0,W.__)("Onboarding Menu","wp-module-onboarding")),(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-menu"},(0,l.createElement)("ul",{className:"nfd-onboarding-drawer__panel-routes"},e.map((e=>(0,l.createElement)("li",{key:e.path,className:"nfd-onboarding-drawer__panel-menu-item"},(0,l.createElement)(xe,{to:e.path,className:"nfd-onboarding-drawer__panel-menu-link",state:{origin:"drawer-nav"},onClick:()=>t(e.drawerView)},(0,l.createElement)(fe.A,{icon:e.icon}),(0,l.createElement)("span",null,e.title))))))))},$e=({children:e})=>{const{setDrawerActiveView:t}=(0,m.useDispatch)(c.M);return(0,l.createElement)(Y.A,{type:"fade-in",duration:"100ms",timingFunction:"ease-in"},(0,l.createElement)(M.Button,{className:"nfd-onboarding-drawer__panel-back",variant:"tertiary",icon:ge.A,onClick:()=>t(n.VG)},(0,W.__)("Design","wp-module-onboarding")),e)},Fe=()=>{const{isDrawerOpen:e,drawerView:t}=(0,m.useSelect)((e=>{const{isDrawerOpened:t,getActiveDrawerView:n}=e(c.M);return{isDrawerOpen:t(),drawerView:n()}}),[]),{setIsDrawerOpened:r}=(0,m.useDispatch)(c.M);return(0,l.createElement)("div",{className:q()("nfd-onboarding-drawer__panel",{"is-open":e}),role:"button",tabIndex:"0",onKeyDown:e=>{e.keyCode!==he.ESCAPE||e.defaultPrevented||(e.preventDefault(),r(!1))}},(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-inner"},(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title-container"},(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-site-title"},(0,W.__)("WordPress Onboarding","wp-module-onboarding"))),(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-scroll-container"},(0,l.createElement)("div",{className:"nfd-onboarding-drawer__panel-inside"},n.vO===t&&(0,l.createElement)(Re,null),n.VG===t&&(0,l.createElement)(Oe,null),n.lf===t&&(0,l.createElement)(Me,null),n.eY===t&&(0,l.createElement)(Ve,null),n.yY===t&&(0,l.createElement)(Le,null),n.KJ===t&&(0,l.createElement)($e,null,(0,l.createElement)(pe,null)),n.Cx===t&&(0,l.createElement)($e,null,(0,l.createElement)(de,null)),n.PE===t&&(0,l.createElement)($e,null,(0,l.createElement)(ue,null)),n.iQ===t&&(0,l.createElement)($e,null,(0,l.createElement)(ie,null)),n.SJ===t&&(0,l.createElement)($e,null,(0,l.createElement)(me,null)),n.HJ===t&&(0,l.createElement)($e,null,(0,l.createElement)(le,null)),n.CL===t&&(0,l.createElement)($e,null,(0,l.createElement)(ce,null))))))},He=({isOpen:e})=>{const{isDrawerOpen:t,isDrawerSuppressed:n,activeDrawerView:r}=(0,m.useSelect)((e=>({isDrawerOpen:e(c.M).isDrawerOpened(),isDrawerSuppressed:e(c.M).isDrawerSuppressed(),activeDrawerView:e(c.M).getActiveDrawerView()})),[]),{setIsDrawerOpened:a}=(0,m.useDispatch)(c.M),i=(0,u.useRef)();return(0,u.useEffect)((()=>{t||i?.current?.focus()}),[t]),r&&(0,l.createElement)(M.__unstableMotion.div,{className:q()("nfd-onboarding-drawer__toggle",{"is-open":t}),whileHover:"expand"},(0,l.createElement)(M.Button,{className:`nfd-onboarding-drawer__toggle-button has-icon ${!n||"is-suppressed"}`,label:(0,W.__)("Toggle Navigation","wp-module-onboarding"),ref:i,"aria-pressed":e,onClick:()=>{n||a(!t)}},(0,l.createElement)("div",{style:{width:"36px",height:"36px",backgroundImage:"var(--nfd-onboarding-icon)",backgroundSize:"contain"}})))},We=(0,u.memo)((({isDefaultOpen:e=!1})=>{const t=(0,Z.useViewportMatch)("medium"),{setIsDrawerOpened:n}=(0,m.useDispatch)(c.M);return(0,u.useEffect)((()=>{n(e&&t)}),[e,t,n]),(0,l.createElement)(u.Fragment,null,(0,l.createElement)(He,null),(0,l.createElement)(Fe,null))})),Ue=()=>{const{isSidebarOpened:e,sideBarView:t,sidebars:r}=(0,m.useSelect)((e=>({isSidebarOpened:e(c.M).isSidebarOpened(),sideBarView:e(c.M).getSidebarView(),sidebars:e(c.M).getSidebars()})));return(0,l.createElement)(u.Fragment,null,(0,l.createElement)(u.Suspense,{fallback:(0,l.createElement)(u.Fragment,null)},r.map((e=>(0,l.createElement)(u.Fragment,{key:e.id},e?.sidebar&&(0,l.createElement)(e.sidebar,null),e?.menu&&(0,l.createElement)(e.menu,null))))),(0,l.createElement)("div",{className:q()("nfd-onboarding-sidebar__panel",{"is-open":e&&t})},(0,l.createElement)("div",{className:"nfd-onboarding-sidebar__panel-inner"},e&&t&&(0,l.createElement)(M.Slot,{name:`${n.St}/${t}`}))))};var Be=a(8294),Ge=a(2014),qe=a(5171),je=a(6087);const Qe=a.p+"images/ai_bg.55900f2d.png";var Ke=a(9269);const Ze=(0,u.forwardRef)((function({footer:e,header:t,sidebar:r,secondarySidebar:a,notices:i,content:o,drawer:s,actions:c,labels:d,className:p,shortcuts:m,interactionDisabled:h},g){const f=(0,M.__unstableUseNavigateRegions)(m);if("sitegen"===window.nfdOnboarding.currentFlow){const{theme:e}=(0,u.useContext)(Ke.D);!function(e,t){(0,u.useEffect)((()=>{const n=new Image;n.src=Qe,n.onload=()=>{document.querySelector(".nfd-onboarding-skeleton--sitegen")&&(document.querySelector(".nfd-onboarding-skeleton--sitegen").style.background=t?`url('${Qe}')`:"#ededed")};const r=document&&document.querySelector(`html:not(.${e})`);if(r)return r.classList.toggle(e),()=>{r.classList.toggle(e)}}),[e,t])}("nfd-interface-interface-skeleton__html-container",e===n.fS)}const w={ /* translators: accessibility text for the nav bar landmark region. */ diff --git a/build/2.1.7/sitegen-theme-marker.asset.php b/build/2.1.8/sitegen-theme-marker.asset.php similarity index 100% rename from build/2.1.7/sitegen-theme-marker.asset.php rename to build/2.1.8/sitegen-theme-marker.asset.php diff --git a/build/2.1.7/sitegen-theme-marker.css.asset.php b/build/2.1.8/sitegen-theme-marker.css.asset.php similarity index 100% rename from build/2.1.7/sitegen-theme-marker.css.asset.php rename to build/2.1.8/sitegen-theme-marker.css.asset.php diff --git a/build/2.1.7/sitegen-theme-marker.css.css b/build/2.1.8/sitegen-theme-marker.css.css similarity index 100% rename from build/2.1.7/sitegen-theme-marker.css.css rename to build/2.1.8/sitegen-theme-marker.css.css diff --git a/build/2.1.7/sitegen-theme-marker.css.js b/build/2.1.8/sitegen-theme-marker.css.js similarity index 100% rename from build/2.1.7/sitegen-theme-marker.css.js rename to build/2.1.8/sitegen-theme-marker.css.js diff --git a/build/2.1.7/sitegen-theme-marker.js b/build/2.1.8/sitegen-theme-marker.js similarity index 100% rename from build/2.1.7/sitegen-theme-marker.js rename to build/2.1.8/sitegen-theme-marker.js diff --git a/composer.lock b/composer.lock index ef509db3e..1a03352d4 100644 --- a/composer.lock +++ b/composer.lock @@ -571,16 +571,16 @@ }, { "name": "newfold-labs/wp-module-onboarding-data", - "version": "1.1.4", + "version": "1.1.5", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding-data.git", - "reference": "722336c90e7b8d9950e9a2c60e62d507958fd05f" + "reference": "08e1970d24fb0060b3d82482c970f24b3752168b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/722336c90e7b8d9950e9a2c60e62d507958fd05f", - "reference": "722336c90e7b8d9950e9a2c60e62d507958fd05f", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/08e1970d24fb0060b3d82482c970f24b3752168b", + "reference": "08e1970d24fb0060b3d82482c970f24b3752168b", "shasum": "" }, "require": { @@ -610,10 +610,10 @@ ], "description": "A non-toggleable module containing a standardized interface for interacting with Onboarding data.", "support": { - "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.4", + "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.1.5", "issues": "https://github.com/newfold-labs/wp-module-onboarding-data/issues" }, - "time": "2024-03-19T10:15:11+00:00" + "time": "2024-03-20T09:45:02+00:00" }, { "name": "newfold-labs/wp-module-patterns", diff --git a/package-lock.json b/package-lock.json index 3be432d25..113fa55ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.1.7", + "version": "2.1.8", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -4320,14 +4320,6 @@ "webpack-bundle-analyzer": "^4.9.1", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1" - }, - "dependencies": { - "prettier": { - "version": "npm:wp-prettier@3.0.3", - "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-3.0.3.tgz", - "integrity": "sha512-X4UlrxDTH8oom9qXlcjnydsjAOD2BmB6yFmvS4Z2zdTzqqpRWb+fbqrH412+l+OUXmbzJlSXjlMFYPgYG12IAA==", - "dev": true - } } }, "@wordpress/style-engine": { @@ -13059,6 +13051,12 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "dev": true }, + "prettier": { + "version": "npm:wp-prettier@3.0.3", + "resolved": "https://registry.npmjs.org/wp-prettier/-/wp-prettier-3.0.3.tgz", + "integrity": "sha512-X4UlrxDTH8oom9qXlcjnydsjAOD2BmB6yFmvS4Z2zdTzqqpRWb+fbqrH412+l+OUXmbzJlSXjlMFYPgYG12IAA==", + "dev": true + }, "prettier-linter-helpers": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", diff --git a/package.json b/package.json index c3ecf5a67..78ea78102 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@newfold-labs/wp-module-onboarding", - "version": "2.1.7", + "version": "2.1.8", "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "license": "GPL-2.0-or-later", "private": true,