"use strict";(self.webpackChunknewfold_Onboarding=self.webpackChunknewfold_Onboarding||[]).push([[257],{8257:function(e,n,a){a.r(n),a.d(n,{default:function(){return u}});var t=a(9307),l=a(5609),r=a(444),o=(0,t.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,t.createElement)(r.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"})),i=a(1984),d=a(9818),c=a(5736),m=a(9685),s=a(2200),u=()=>{var e;const{currentStep:n}=(0,d.useSelect)((e=>({currentStep:e(m.h).getCurrentStep()}))),{setIsSidebarOpened:a}=(0,d.useDispatch)(m.h);return(0,t.createElement)(l.Fill,{name:`${s.qB}/${s.Jq}`},(0,t.createElement)(l.PanelHeader,{label:(0,c.__)("Learn More","wp-module-onboarding")},(0,t.createElement)(l.Button,{onClick:()=>{a(!1)},icon:o})),(0,t.createElement)(l.PanelBody,{initialOpen:!0},(0,t.createElement)(l.PanelRow,null,(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__container"},(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__icon"},(null==n?void 0:n.Icon)&&(0,t.createElement)(i.Z,{icon:n.Icon})),(0,t.createElement)("div",{className:"nfd-onboarding-sidebar-learn-more__text"},(0,t.createElement)("p",{className:"nfd-onboarding-sidebar-learn-more__text-heading"},(null==n?void 0:n.heading)&&(0,t.createElement)("strong",null,n.heading)),(0,t.createElement)("p",{className:"nfd-onboarding-sidebar-learn-more__text-subheading"},null==n?void 0:n.description))))),(null==n||null===(e=n.SidebarComponents)||void 0===e?void 0:e.LearnMore)&&(0,t.createElement)(l.PanelBody,{initialOpen:!0},(0,t.createElement)(t.Suspense,{fallback:(0,t.createElement)(t.Fragment,null)},n.SidebarComponents.LearnMore.map(((e,n)=>(0,t.createElement)(t.Fragment,{key:n},(0,t.createElement)(e,null)))))))}}}]);