"use strict";(globalThis.webpackChunknewfold_Onboarding=globalThis.webpackChunknewfold_Onboarding||[]).push([[325],{1852:(e,t,n)=>{n.d(t,{A:()=>g});var o=n(1609),a=n(148),r=n(7143),l=n(7675),s=n(264),u=n(6079),c=n(8969),d=n(1056),i=n(2202),p=n(8559),m=n(6942),b=n.n(m),_=n(7677);const g=({text:e,disabled:t,className:n,icon:m})=>{const g=(0,a.Zp)(),{nextStep:w,currentData:v}=(0,r.useSelect)((e=>({nextStep:e(l.M).getNextStep(),currentData:e(l.M).getCurrentOnboardingData()})),[]),h=null===w||!1===w;return(0,o.createElement)(s.A,{className:b()("nfd-nav-card-button",n),handleClick:()=>h?async function(){v&&(v.isComplete=(new Date).getTime(),(0,u.V1)(v)),(0,p.YR)(),(0,d.SV)(new d.iC(i.Vg)),window.location.replace(c.R0)}():g(w.path),disabled:t},(0,o.createElement)(o.Fragment,null,(0,o.createElement)("span",{className:`${n}__text`},e),m&&(0,o.createElement)(_.A,{className:`${n}__icon`,icon:m})))}},9325:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_});var o=n(1609),a=n(6427),r=n(7143),l=n(8468),s=n(8969),u=n(1852),c=n(9927),d=n(3988),i=n(9889),p=n(5842),m=n(7675),b=n(7723);const _=()=>{const{setDrawerActiveView:e,setSidebarActiveView:t,setCurrentOnboardingData:n}=(0,r.useDispatch)(m.M),_=(0,r.useSelect)((e=>e(m.M).getCurrentOnboardingData())),g=_.storeDetails.productInfo;(0,l.useEffect)((()=>{t(s.Qe),e(s.eY)}),[]);const w={heading:(0,b.__)("Tell us about your products","wp-module-onboarding"),subheading:(0,b.__)("What type of products will you be selling?","wp-module-onboarding"),question:(0,b.__)("How many products will you be selling?","wp-module-onboarding"),typeOptions:[{content:(0,b.__)("Physical products","wp-module-onboarding"),value:"physical"},{content:(0,b.__)("Digital / Downloadable products","wp-module-onboarding"),value:"downloads"},{content:(0,b.__)("Subscriptions","wp-module-onboarding"),value:"subscriptions"},{content:(0,b.__)("Book rooms, houses or rent products","wp-module-onboarding"),value:"bookings"},{content:(0,b.__)("Membership","wp-module-onboarding"),value:"memberships"},{content:(0,b.__)("Customizable products","wp-module-onboarding"),value:"product-add-ons"},{content:(0,b.__)("Bundles of products","wp-module-onboarding"),value:"product-bundles"},{content:(0,b.__)("Let your users ask a quote for your products","wp-module-onboarding"),value:"product-quotes"}],numberOptions:[{content:(0,b.__)("0","wp-module-onboarding"),value:"0"},{content:(0,b.__)("1 - 10","wp-module-onboarding"),value:"1-10"},{content:(0,b.__)("11 - 100","wp-module-onboarding"),value:"11-100"},{content:(0,b.__)("101 - 1000","wp-module-onboarding"),value:"101-1000"},{content:(0,b.__)("1000 +","wp-module-onboarding"),value:"1000+"}],buttonText:(0,b.__)("Continue Setup","wp-module-onboarding")};return(0,o.createElement)(d.A,{isBgPrimary:!0,isCentered:!0},(0,o.createElement)(p.A,{className:"ecommerce-step"},(0,o.createElement)("div",{className:"nfd-onboarding-experience-step onboarding-product-step onboarding-ecommerce-step"},(0,o.createElement)("div",{className:"nfd-card-heading center"},(0,o.createElement)(c.A,{heading:w.heading,subHeading:w.subheading})),(0,o.createElement)("div",{className:"nfd-product-step-options"},w.typeOptions.map((e=>(0,o.createElement)(a.CheckboxControl,{key:e.value,checked:g.product_types.includes(e.value),label:e.content,onChange:t=>{return o=e.value,a=t,n({..._,storeDetails:{..._.storeDetails,productInfo:{...g,product_types:a?[...g?.product_types,o]:g?.product_types.filter((e=>e!==o))}}});var o,a}})))),(0,o.createElement)("div",{className:"step-product-numbers"},(0,o.createElement)("span",{style:{fontSize:"16px"}},w.question),(0,o.createElement)(a.RadioControl,{className:"components-radio-control__input",selected:g?.product_count,options:w.numberOptions.map((e=>({label:e.content,value:e.value}))),onChange:e=>n({..._,storeDetails:{..._.storeDetails,productInfo:{...g,product_count:e}}})})),(0,o.createElement)(u.A,{text:w.buttonText}),(0,o.createElement)(i.A,null))))}}}]);