1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2286],{32286:(e,t,i)=>{i.r(t),i.d(t,{Wizard:()=>R});var s=i(37876),a=i(93262),r=i(11729),l=i(54043),n=i(35578),o=i(67155),p=i(82239),d=i(94009),c=i(99823),x=i(18363),u=i(96239),m=i(2515),g=i(14232),h=i(22476),C=i(13858),v=i(8961);let _={base:"xl",md:"xl",lg:"xl"},j={base:"sm",md:"sm",lg:"sm"},f={base:"md",md:"md",lg:"md"},k={base:"bold",md:"bold",lg:"bold"},y={base:"light",md:"light",lg:"light"},O={spacing:"0",maxWidth:"500px",m:"0 auto",padding:{base:"0 20px",md:0}},b={width:"90px",height:"auto"},R=e=>{let{title:t,paragraph:i,nextBtn:R,backBtn:S,elements:A,labels:T}=e,[N,z]=(0,g.useState)(!1),[E,w]=(0,g.useState)(""),[L,P]=(0,g.useState)([A[0].id]),[W,B]=(0,g.useState)(A[0].id),[D,$]=(0,g.useState)(null),[F,Y]=(0,g.useState)(0),I=A.find(e=>e.id===W),U=T[L.length-1][I.type],H=(0,g.useRef)([]),{container:q,titleProps:G,paragraphProps:J,imageStyle:K,textProps:M,answerContainer:Q,playButton:V,playIcon:X,ctaBox:Z,image:ee,labelProps:et,audioProgress:ei}=(e=>{let{type:t}=e,i={p:"0 0 4px",textAlign:"center",fontSizes:_,fontWeights:k,color:v.lm.SECONDARY_COLOR},s={p:"0px 0 32px",textAlign:"center",fontSizes:j,fontWeights:y,color:v.lm.SECONDARY_COLOR},a={p:"8px 0 0px",textAlign:"center",fontSizes:t===C.xF?f:j,fontWeights:t===C.xF?k:y,color:t===C.xF?v.lm.ACCENT_COLOR_1:v.lm.TERTIARY_COLOR},r={p:"8px 0 0px",textAlign:"center",fontSizes:f,fontWeight:k,color:v.lm.SECONDARY_COLOR};return{container:O,titleProps:i,paragraphProps:s,imageStyle:b,labelProps:r,textProps:a,answerContainer:{w:"100%",justify:"space-between",gap:"16px"},playButton:{...h.WA,minW:"32px",minH:"32px",position:"relative",_hover:h.A2},playIcon:{name:"Play",size:"lg"},ctaBox:{gap:"20px",justify:"center",marginTop:"33px"},image:{src:"/wizard_image.svg",alt:"Alarm",width:90,height:62},audioProgress:{size:"35px",position:"absolute",thickness:"3px",padding:"4px",color:v.lm.ACCENT_COLOR_1,trackColor:v.lm.NEUTRAL_COLOR_00}}})({type:I.type});return(0,s.jsxs)(a.T,{...q,children:[t&&(0,s.jsx)(m.Paragraph,{text:t,...G}),i&&(0,s.jsx)(m.Paragraph,{text:i,...J}),ee&&(0,s.jsx)(u._,{src:ee.src,alt:ee.alt,...ee,style:K}),(0,s.jsx)(m.Paragraph,{text:U,...et}),(0,s.jsx)(m.Paragraph,{text:I.text,...M}),I.type===C.xF&&(0,s.jsx)(r.z,{as:a.T,name:I.name,spacing:"20px",mt:"24px",children:I.answers.map((e,t)=>{let i=null,a=null,r=null;return e.media&&(i=()=>{if(H.current[t]){let e=H.current[t];e.paused&&(D&&(D.pause(),D.currentTime=0,Y(0)),$(H.current[t]),e.play())}},a=e=>{Y(e.target.currentTime/e.target.duration*100)},r=()=>{setTimeout(()=>{Y(0),$(null)},500)}),(0,s.jsxs)(l.z,{...Q,children:[(0,s.jsx)(n.az,{onClick:()=>{w(e.value),z(!0)},children:(0,s.jsx)(o.s,{size:"lg",value:e.value,children:(0,s.jsx)(m.Paragraph,{text:e.label})})}),e.media&&(0,s.jsxs)(p.$,{onClick:i,...V,children:[(0,s.jsx)(x.I,{...X,color:D===H.current[t]?v.lm.ACCENT_COLOR_1:v.lm.TERTIARY_COLOR}),(0,s.jsx)("audio",{src:e.media,ref:e=>{H.current[t]=e},style:{display:"none"},onTimeUpdate:a,onEnded:r}),(0,s.jsx)(d.P,{...ei,value:D===H.current[t]?F:0})]})]},e.id)})}),(0,s.jsxs)(l.z,{...Z,children:[L[0]!==I.id&&(0,s.jsx)(c.Cta,{...S,onClick:()=>{z(!1),B(L[L.length-2]),P(e=>{let t=[...e];return t.pop(),t})}}),(null==I?void 0:I.type)!==C.i4&&(0,s.jsx)(c.Cta,{...R,disabled:!N,onClick:()=>{let e=A.find(e=>e.prevStep&&e.prevStep.visible===E);e&&(P(t=>{let i=[...t];return i.push(e.id),i}),z(!1),B(null==e?void 0:e.id))}})]})]})}},94009:(e,t,i)=>{i.d(t,{P:()=>o});var s=i(8144),a=i(37876),r=e=>(0,a.jsx)(s.B.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});r.displayName="Circle";var l=i(63276),n=e=>{let{size:t,isIndeterminate:i,...r}=e;return(0,a.jsx)(s.B.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:i?`${l.e$} 2s linear infinite`:void 0},...r})};n.displayName="Shape";var o=(0,i(45490).R)((e,t)=>{var i;let{size:o="48px",max:p=100,min:d=0,valueText:c,getValueText:x,value:u,capIsRound:m,children:g,thickness:h="10px",color:C="#0078d4",trackColor:v="#edebe9",isIndeterminate:_,...j}=e,f=(0,l.SD)({min:d,max:p,value:u,valueText:c,getValueText:x,isIndeterminate:_}),k=_?void 0:(null!=(i=f.percent)?i:0)*2.64,y=null==k?void 0:`${k} ${264-k}`,O=_?{css:{animation:`${l.t0} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:y,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"};
1return(0,a.jsxs)(s.B.div,{ref:t,className:"chakra-progress",...f.bind,...j,__css:{display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:o},children:[(0,a.jsxs)(n,{size:o,isIndeterminate:_,children:[(0,a.jsx)(r,{stroke:v,strokeWidth:h,className:"chakra-progress__track"}),(0,a.jsx)(r,{stroke:C,strokeWidth:h,className:"chakra-progress__indicator",strokeLinecap:m?"round":void 0,opacity:0!==f.value||_?void 0:0,...O})]}),g]})});o.displayName="CircularProgress"}}]);
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.