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