"use strict";(self.webpackChunknewfold_Onboarding=self.webpackChunknewfold_Onboarding||[]).push([[800],{5791:function(e,t,n){n.d(t,{Z:function(){return w}});var a=n(9307),i=(n(5609),n(4184)),r=n.n(i),s=n(5158),o=n(6974),l=n(2200),c=n(6989),d=n.n(c),p=n(4704),u=e=>{let{className:t="nfd-onboarding-layout__base",children:n}=e;const i=(0,o.TH)(),c=document.querySelector(".nfd-onboard-content");return(0,a.useEffect)((()=>{null==c||c.focus({preventScroll:!0}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Showing new Onboarding Page";(0,s.speak)(t,"assertive")}(i,"Override"),new class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventSlug=e,this.eventData=t}send(){d()({url:(0,p.F)("events"),method:"POST",data:{slug:this.eventSlug,data:this.eventData}}).catch((e=>{console.error(e)}))}}(`${l.Db}-pageview`,{stepID:i.pathname,previousStepID:window.nfdOnboarding.previousStepID}).send(),window.nfdOnboarding.previousStepID=i.pathname}),[i.pathname]),(0,a.createElement)("div",{className:r()("nfd-onboarding-layout",t)},n)};const g=e=>{let{children:t}=e;return(0,a.createElement)("section",{className:"is-contained"},t)};var w=e=>{let{className:t="",children:n,isBgPrimary:i=!1,isCentered:s=!1,isVerticallyCentered:o=!1,isContained:l=!1,isPadded:c=!1,isFadeIn:d=!0}=e;const p=l?g:a.Fragment;return(0,a.createElement)(u,{className:r()("nfd-onboarding-layout__common",t,{"is-layout-fade-in":d},{"is-bg-primary":i},{"is-centered":s},{"is-vertically-centered":o},{"is-padded":c})},(0,a.createElement)(p,null,n))}},5800:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var a=n(9307),i=n(5791),r=n(2200),s=n(9685),o=n(9818),l=n(2175),c=n(4981),d=e=>{let{blockGrammer:t,viewportWidth:n=1300,styling:i="large"}=e;const[r,d]=(0,a.useState)(),p=(0,o.useSelect)((e=>e(s.h).getPreviewSettings()),[]),{updateSettings:u}=(0,o.useDispatch)(l.store);return(0,a.useEffect)((()=>{u(p.settings),d((0,c.parse)(t))}),[]),(0,a.createElement)("div",{className:`live-preview__container-${i}`},(0,a.createElement)(l.BlockPreview,{viewportWidth:n,blocks:r}))},p=()=>{const{setDrawerActiveView:e,setIsDrawerOpened:t,setIsSidebarOpened:n}=(0,o.useDispatch)(s.h);return(0,a.useEffect)((()=>{n(!1),t(!0),e(r.qR)}),[]),(0,a.createElement)(i.Z,null,(0,a.createElement)(d,{blockGrammer:'\x3c!-- wp:group {"align":"full","layout":{"inherit":true}} --\x3e\n     <div class="wp-block-group alignfull">\x3c!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"bottom":"var(--wp--custom--spacing--large, 8rem)","top":"var(--wp--custom--spacing--small, 1.25rem)"}}},"layout":{"type":"flex","justifyContent":"space-between"}} --\x3e\n     <div class="wp-block-group alignwide" style="padding-top:var(--wp--custom--spacing--small, 1.25rem);padding-bottom:var(--wp--custom--spacing--large, 8rem)">\x3c!-- wp:group {"layout":{"type":"flex"}} --\x3e\n     <div class="wp-block-group">\n     \x3c!-- wp:site-logo {"width":64} /--\x3e\n\n     \x3c!-- wp:site-title {"style":{"typography":{"fontStyle":"italic","fontWeight":"400"}}} /--\x3e</div>\n     \x3c!-- /wp:group --\x3e\n\n     \x3c!-- wp:navigation {"layout":{"type":"flex","setCascadingProperties":true,"justifyContent":"right"}} --\x3e\n     \x3c!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /--\x3e\n     \x3c!-- /wp:navigation --\x3e</div>\n     \x3c!-- /wp:group --\x3e</div>\n     \x3c!-- /wp:group --\x3e',styling:"custom",viewportWidth:1300}))}}}]);