1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3373],{4721:function(e,s,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/skin-routine/skin-problems",function(){return i(13465)}])},43663:function(e,s,i){"use strict";i.d(s,{X:function(){return a}});var n=i(85893),r=i(46069),t=i(67294),l=i(68894),o=i(48755);let a=t.forwardRef((e,s)=>{let{className:i,children:t,icon:a,...d}=e;return(0,n.jsxs)(r.fC,{ref:s,className:(0,o.cn)("col-span-1 flex h-12 w-32 items-center justify-center gap-4 rounded-full border border-forest-green-200 p-5 xs:w-36 sm:w-44","text-sm font-medium text-forest-green-500","data-[state=checked]:bg-forest-green-500 data-[state=checked]:text-white",!l.gs&&"data-[state=checked]:bg-black",i),...d,children:[(0,n.jsx)("div",{className:(0,o.cn)("hidden",a&&"sm:flex"),children:a}),(0,n.jsx)("span",{children:t})]})});a.displayName=r.fC.displayName},13465:function(e,s,i){"use strict";i.r(s),i.d(s,{__N_SSP:function(){return S},default:function(){return y}});var n=i(85893),r=i(56312),t=i(87536),l=i(1604),o=i(75652),a=i(20052),d=i(10055),c=i(5384),u=i(69617),m=i(99384),p=i(24511),f=i(60665),h=i(10996),k=i(82682),b=i(63338),x=i(43663),_=i(78127);let v=e=>(0,n.jsx)(h.Wi,{control:e.form.control,name:e.name,render:()=>(0,n.jsxs)(h.xJ,{className:"space-y-4",children:[(0,n.jsx)("div",{className:"grid grid-cols-2 gap-4 space-y-0 sm:grid-cols-3",children:e.data.map(s=>(0,n.jsx)(h.Wi,{control:e.form.control,name:"skinProblems",render:i=>{var r,t;let{field:l}=i;return(0,n.jsx)(h.xJ,{className:"space-y-2",children:(0,n.jsx)(h.NI,{children:(0,n.jsx)(x.X,{value:s.id,checked:null===(r=l.value)||void 0===r?void 0:r.includes(s.id),disabled:e.isLimitReached&&!(null===(t=l.value)||void 0===t?void 0:t.includes(s.id)),icon:void 0!==_.Bi[s.id]&&_.Bi[s.id]in _.GZ&&!_.GZ[_.Bi[s.id]].hideIconAtWizard?_.GZ[_.Bi[s.id]].icon:void 0,onCheckedChange:e=>{var i;return e?l.onChange([...l.value,s.id]):l.onChange(null===(i=l.value)||void 0===i?void 0:i.filter(e=>e!==s.id))},className:"group",children:s.name})})},s.id)}},s.id))}),(0,n.jsx)(h.zG,{})]})});var j=i(66547),g=i(82583),N=i(18974),P=i(60316),w=i(30920),S=!0;function y(e){var s;let{skinRoutineData:i}=e,{t:x}=(0,N.LD)("skin_routine"),_=(0,a.J1)(),[S,y]=(0,b.az)(),C=l.z.object({skinProblems:l.z.array(l.z.number()).refine(e=>e.length>0,{message:x("skin_problem_required","Please select at least one skin problem")})}),z=(0,t.cI)({defaultValues:{skinProblems:null!==(s=S.skinProblems)&&void 0!==s?s:[]},resolver:(0,r.F)(C)}),{currentIndex:B,goToNextStep:E,goToPreviousStep:W}=(0,b.nN)("skin_problems"),{adScriptJsx:X,adsReady:A}=(0,o.M)(j._i.default);(0,j.h3)(A,[...u.rd]);let G=z.watch("skinProblems"),I=(null==G?void 0:G.length)>=3;return(0,n.jsxs)(u.Ar,{mainClassName:"h-full",noAds:!0,header:(0,n.jsx)(c.q,{skipAction:()=>{y({...S,skinProblems:[]}),E()},isSkipVisible:!0,progressBar:(0,n.jsx)(f.k,{currentStepIndex:B,numberOfSteps:b.QD})}),children:[X,(0,n.jsx)(p.V,{title:x("seo.page_title","Skin routine")}),(0,n.jsx)(m.V,{description:x("seo.page_description","Skin routine description"),canonical:w._.skinRoutine.skinProblems}),(0,n.jsx)(k.v,{title:x("step.skin_problems_title","What are your skin problems?"),description:x("step.skin_problems_description","Select up to three problems."),isWide:!1,children:(0,n.jsx)(h.l0,{...z,children:(0,n.jsxs)("form",{onSubmit:z.handleSubmit(e=>{var s;y({...S,skinProblems:e.skinProblems}),(0,g.BX)("skin_routine_quiz_proceed",{step:P.p.skinProblems,user_id:null===(s=_.data)||void 0===s?void 0:s.data.id}),E()}),className:"flex flex-1 flex-col justify-between",children:[(0,n.jsx)(v,{form:z,name:"skinProblems",data:i.skinProblems,isLimitReached:I}),(0,n.jsx)("div",{className:"mt-8",children:(0,n.jsx)(d.E,{goToPreviousStep:W})})]})})})]})}}},function(e){e.O(0,[9226,6859,5709,4705,9316,9042,4791,2888,9774,179],function(){return e(e.s=4721)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.