"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[761],{761:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var a=r(1609),s=r(148),l=r(8468),c=r(7143),n=r(8520),o=r(7675),i=r(3988),m=r(1032),_=r(7044),p=r(8969),u=r(7835);const d=()=>{const e=(0,s.zy)(),[t,r]=(0,l.useState)(),{currentStep:d,themeStatus:h}=(0,c.useSelect)((t=>({currentStep:t(o.M).getStepFromPath(e.pathname),themeStatus:t(o.M).getThemeStatus()})),[]),{setDrawerActiveView:w,setSidebarActiveView:b,updateThemeStatus:v}=(0,c.useDispatch)(o.M);return(0,l.useEffect)((()=>{b(p.Qe),w(p.iQ)}),[]),(0,l.useEffect)((()=>{p.Er===h&&(async()=>{var e;const t=await(0,n.O)(null!==(e=d?.data?.patternId)&&void 0!==e?e:u.Tk[0]?.data.patternId,!0);if(t?.error)return v(p.So);r(t?.body)})()}),[h]),(0,a.createElement)(m.UX,null,(0,a.createElement)(_.Th,null,(0,a.createElement)(i.A,{className:"theme-colors-preview"},(0,a.createElement)("div",{className:"theme-colors-preview__title-bar"},(0,a.createElement)("div",{className:"theme-colors-preview__title-bar__browser"},(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}),(0,a.createElement)("span",{className:"theme-colors-preview__title-bar__browser__dot"}))),!t&&(0,a.createElement)(_.pA,{styling:"large",viewportWidth:1300}),t&&(0,a.createElement)(_.pA,{blockGrammer:t,styling:"large",viewportWidth:1300}))))}}}]);