"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[40],{8053:(e,a,t)=>{t.d(a,{A:()=>r});var s=t(1609),l=t(5573);const r=(0,s.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,s.createElement)(l.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}))},5040:(e,a,t)=>{t.r(a),t.d(a,{default:()=>h});var s=t(1609),l=t(6427),r=t(8468),n=t(8053),o=t(7143),i=t(7723),m=t(7675),d=t(8969),c=t(431);const b=()=>{const{brandConfig:e}=(0,o.useSelect)((e=>({brandConfig:e(m.M).getNewfoldBrandConfig()})));return(0,s.createElement)("div",{className:"sidebar-skeleton"},(0,s.createElement)("div",{className:"sidebar-skeleton-header"},(0,s.createElement)("div",{className:"sidebar-skeleton-header-top"},(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-top-profile"}),(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-top-header"})),(0,s.createElement)("div",{className:"sidebar-skeleton-header-below"},(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-below-subheading-1"}),(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-header-below-subheading-2"}))),(0,s.createElement)("div",{className:"sidebar-skeleton-divider"}),!1!==e?.views?.sidebar?.illustration?.shown&&(0,s.createElement)(r.Fragment,null,(0,s.createElement)("div",{className:"sidebar-skeleton-body"},(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-body-image"})),(0,s.createElement)("div",{className:"sidebar-skeleton-divider"})),(0,s.createElement)("div",{className:"sidebar-skeleton-footer"},(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-1"}),(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-2"}),(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-3"}),(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-4"}),(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer sidebar-skeleton-footer-line-5"}),(0,s.createElement)("div",{className:"sidebar-skeleton-footer-buttons"},(!1!==e?.views?.sidebar?.fullService?.shown||!1!==e?.views?.sidebar?.experts?.shown)&&(0,s.createElement)("div",{className:"sidebar-skeleton-footer-buttons-button-1"},(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer-1 sidebar-skeleton-footer-buttons-button-2"})),(0,s.createElement)(c.A,{type:"shine-placeholder",className:"shimmer-1 sidebar-skeleton-footer-buttons-button-3"}))))},h=(0,r.memo)((()=>{const e=(0,s.useRef)(),{currentStep:a}=(0,o.useSelect)((e=>({currentStep:e(m.M).getCurrentStep()}))),{setIsSidebarOpened:t}=(0,o.useDispatch)(m.M);return(0,s.createElement)(l.Fill,{name:`${d.St}/Customize`},(0,s.createElement)(l.PanelBody,{className:"nfd-onboarding-sidebar-learn-more",initialOpen:!0},(0,s.createElement)(r.Suspense,{fallback:(0,s.createElement)(b,null)},(0,s.createElement)(l.PanelHeader,{label:(0,i.__)("Customize Website","wp-module-onboarding")},(0,s.createElement)(l.Button,{onClick:()=>{e.current.resetCustomizationCallback()}},"Reset"),(0,s.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__header"},(0,s.createElement)(l.Button,{className:"nfd-onboarding-sidebar-learn-more__header__icon",onClick:()=>{t(!1)},icon:n.A}))),a?.sidebars?.Customize&&a?.sidebars?.Customize.SidebarComponents.map(((a,t)=>(0,s.createElement)(r.Fragment,{key:t},(0,s.createElement)(a,{ref:e})))))))}))}}]);