1"use strict";(globalThis.webpackChunkamica||=[]).push([[127],{12660(e,s,t){t(96540);const n=t.p+"static/media/icon-interface-save-small.bed0c8d402b3bb048913664b461e3149.svg";t.d(s,["A",0,n])},70127(e,s,t){t.r(s),t.d(s,{default:()=>F});var n=t(70255),a=t(64230),i=t(83118),o=t(6939),l=t(31443),r=t(85841),c=t(83071),d=t(96540),p=t(12660),u=t(63679),g=t(27281),O=t(70050),E=t(89063),m=t(50413),h=t(48701),x=t(62830),A=t(41897),T=t(11856),y=t(62367),b=t(27657),N=t(98118),j=t(94188),I=t(74472),R=t(74848);const C=(0,u.default)(g.A)(["justify-content:center;margin-bottom:",";","{width:83vw;margin:"," ",";}"],I.Kz.ONE_65,`@media (${I.Rp.MOBILE})`,I.Kz.ONE,I.Kz.AUTO),P=e=>{let{isOpen:s,handleToggleOpen:t,hasVerbalBoundPolicy:n}=e;const o=(0,a.Ub)({query:`(${I.Rp.MOBILE})`}),{dispatch:p,taskStatus:u,verballyBoundPolicy:g}=(0,E.w)(),P=u[m.I4.PAYMENT]===N.e.COMPLETE,S=(0,i.Zp)(),_=(0,d.useCallback)((()=>{n&&!P?(0,j.logout)():(P&&g&&((0,A.Wb)(),(0,x.Nz)(g.policyNumber)),p((0,O.LC)()),S((0,c.aM)("/account")))}),[p,n,S,P,g]);return(0,R.jsx)(b.A,{name:"saved-progress-modal",aria:{labelledby:"modalHeading"},style:{content:{padding:`${I.Kz.ZERO}`,width:o?"100%":"662px",borderRadius:3}},isOpen:s,children:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(l.H1,{style:{textAlign:"center"},id:"modalHeading",children:(0,R.jsx)(T.A,{message:h.p.SAVED_PROGRESS_MODAL_HEADER})}),(0,R.jsx)(l.a3,{type:l.sk.BODYP,margin:o?`${I.Kz.ZERO} ${I.Kz.ZERO_75}`:`${I.Kz.ZERO} ${I.Kz.TWO_625}`,children:(0,R.jsx)(T.A,{message:h.p.SAVED_PROGRESS_MODAL_BODY,values:{...y.t}})}),(0,R.jsxs)(C,{children:[(0,R.jsx)(r.A,{name:"continue-onboarding",actionStyle:l.s9.BUTTON,styleProps:{buttonStyle:l.in.SECONDARY,width:l.Rj.FULL_AT_MOBILE},actionType:l.X2.ONCLICK,typeProps:{type:"button",onClick:t},children:(0,R.jsx)(T.A,{message:h.p.CONTINUE_ONBOARDING})}),(0,R.jsx)(r.A,{name:"finish-later",actionStyle:l.s9.BUTTON,styleProps:{buttonStyle:l.in.PRIMARY,width:l.Rj.FULL_AT_MOBILE},actionType:l.X2.ONCLICK,typeProps:{type:"button",onClick:_},children:(0,R.jsx)(T.A,{message:h.p.FINISH_LATER})})]})]})})};var S=t(35424),_=t(23588);const L=e=>{let{hasVerbalBoundPolicy:s}=e;const[t,n]=(0,d.useState)(!1),a=(0,R.jsx)(r.A,{name:"saved-progress-action",actionStyle:l.s9.INLINE_TEXT,actionType:l.X2.ONCLICK,typeProps:{type:"button",onClick:()=>n(!0)},children:(0,R.jsx)(T.A,{message:_.ln.SAVED_PROGRESS_ACTION})});return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(o.s,{children:[(0,R.jsx)(S.A,{props:{url:p.A,size:I.lK.PX_24,css:{marginLeft:"2px",marginRight:"2px",lineHeight:"2"}}}),(0,R.jsx)(l.a3,{type:l.sk.BODYSPAN,children:(0,R.jsx)(T.A,{message:_.ln.SAVED_PROGRESS,values:{action:a}})})]}),(0,R.jsx)(P,{isOpen:t,handleToggleOpen:()=>n(!t),hasVerbalBoundPolicy:s})]})};var K=t(20095),D=t(20481),B=t(19140),k=t(80870),M=t(16094),v=t(78601);const z=e=>{let{task:s,isMobile:t}=e;const n=(0,i.Zp)(),{setTaskStatus:a}=(0,E.w)(),o=(0,B.Wv)(),r=(0,k.rh)({mboxName:K.BQ.ONBOARDING_CONTEXTUAL_COPY,target:o}),p=t?I.lK.PX_32:I.lK.PX_40,u=(0,d.useMemo)((()=>{if(![N.e.ACTIVE,N.e.CONTINUE].includes(s.status))return[];const e=[{name:`start-${s.heading}`,label:(0,R.jsx)(T.A,{message:s.status===N.e.CONTINUE?_.ln.CONTINUE:_.ln.START}),onClick:()=>n((0,c.aM)(s.actionRoute)),margin:{marginTop:t?I.Kz.ONE:I.Kz.ZERO}}];return s.canSkip&&e.push({name:`skip-${s.heading}`,label:(0,R.jsx)(T.A,{message:_.ln.SKIP}),onClick:()=>a(s.id,N.e.SKIPPED),buttonStyle:l.in.SECONDARY}),e}),[s,t,n,a]);return s.status===N.e.SHOULD_NOT_DISPLAY?null:(0,R.jsx)(M.A,{status:s.status,icon:(0,D.jC)(s),iconSize:p,iconColor:s.status===N.e.INCOMPLETE?v.Jy.MEDIUM_GRAY:void 0,heading:s.heading,headingLevel:"h4",headingTheme:s.status===N.e.INCOMPLETE?l.OA.INFO:void 0,subtext:r?s.subtext:void 0,actions:u})};var U=t(98519),$=t(69310);const f=e=>{let{onboardingTasks:s,isMobile:t}=e;return(0,R.jsxs)(o.s,{flexDirection:"column",marginBottom:I.Kz.TWO_5,children:[(0,R.jsx)(l.H3,{marginBottom:I.Kz.ONE_25,children:w(s)}),s.map((e=>(0,R.jsx)(z,{task:e,isMobile:t},e.id)))]})},H={[m.XV.REQUIRED]:h.p.REQUIRED_HEADING,[m.XV.DISCOUNT]:h.p.DISCOUNT_HEADING,[m.XV.SECURITY]:h.p.SECURITY_HEADING},w=e=>(0,$.k)(H[e[0].category],{taskCount:e.length}),Y=e=>{let{onboardingTasks:s,isMobile:t}=e;return s.length?(0,U.VH)(s).map((e=>(0,R.jsx)(f,{onboardingTasks:e,isMobile:t},e[0].category))):null};var G=t(98983),V=t(90997);var X=t(7413),Z=t(60303);const W={...t(40380).J.onboarding,name:Z.a.ONBOARDING_HOME},F=()=>{const{party:e}=(0,E.w)(),s=(0,a.Ub)({query:`(${I.Rp.MOBILE})`}),t=(0,i.Zp)(),{hasVerbalBoundPolicy:d}=(0,G.Zr)(),{tasksLoading:p,tasks:u,allTasksCompleted:g}=(()=>{const{onboardingPolicies:e}=(0,G.Zr)(),s=(0,V.ay)(),t=(0,U.Pu)((0,U.PG)()),n=t.every(U.lv),a=!(e&&s&&t.every(U.u5));return(0,D.Eu)(t),{allTasksCompleted:n,tasksLoading:a,tasks:t}})();return(0,R.jsx)(X.A,{pageData:W,children:(0,R.jsxs)("div",{style:{width:"100%",maxWidth:"38rem",margin:"auto"},children:[(0,R.jsx)(l.H1,{children:(0,R.jsx)(T.A,{message:h.p.WELCOME_HEADER,values:{name:e?.firstName,...y.t}})}),(0,R.jsx)(l.H2,{children:(0,R.jsx)(T.A,{message:h.p.WELCOME_SUBHEADER})}),(0,R.jsx)(l.a3,{type:l.sk.BODYP,margin:s?`${I.Kz.ONE_5} ${I.Kz.ZERO}`:`${I.Kz.TWO_5} ${I.Kz.ZERO}`,children:(0,R.jsx)(T.A,{message:h.p.WELCOME_BODY})}),p?(0,R.jsx)(o.s,{flexDirection:"column",gap:I.Kz.ONE,children:(0,R.jsx)(n.A,{height:96,width:"100%",count:6,style:{marginBottom:I.Kz.ONE},borderRadius:"3px"})}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Y,{onboardingTasks:u,isMobile:s}),g?(0,R.jsx)(r.A,{name:"onboarding-go-to-account-home",actionStyle:l.s9.BUTTON,styleProps:{buttonStyle:l.in.PRIMARY,width:s?l.Rj.FULL_AT_MOBILE:"285px"},margin:{marginTop:I.Kz.TWO_5},actionType:l.X2.ONCLICK,typeProps:{type:"button",onClick:()=>t((0,c.aM)("/onboarding/complete"))},children:(0,R.jsx)(T.A,{message:_.ln.CONTINUE})}):(0,R.jsx)(L,{hasVerbalBoundPolicy:d})]})]})})}},16094(e,s,t){var n=t(63679),a=t(6939),i=t(31443),o=t(85841),l=t(35424),r=t(98118),c=t(74472),d=t(78601),p=t(74848);const u=[r.e.ACTIVE,r.e.CONTINUE],g=e=>{let{$status:s,$showInactiveBorder:t}=e;return u.includes(s)?`solid 1px ${d.Jy.MEDIUM_GRAY}`:s===r.e.COMPLETE||s===r.e.SKIPPED||t?`solid 1px ${d.Jy.LIGHT_GRAY}`:"none"},O=n.default.div(["height:auto;align-self:stretch;flex-grow:0;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:",";border-radius:3px;border:",";background-color:",";margin-bottom:",";","{flex-direction:column;align-items:stretch;}"],c.Kz.ONE_5,g,(e=>{let{$status:s}=e;return u.includes(s)?d.Jy.WHITE:void 0}),c.Kz.ONE,`@media (${c.Rp.TABLET})`),E=n.default.div(["display:flex;align-items:center;gap:",";flex-direction:row;margin-top:",";","{flex-direction:column;margin-top:",";}"],c.Kz.ONE,c.Kz.ZERO,`@media (${c.Rp.TABLET})`,c.Kz.ONE),m={h3:i.H3,h4:i.H4},h=e=>{let{status:s,icon:t,iconSize:n=c.lK.PX_48,iconColor:r,heading:u,headingLevel:g="h3",headingTheme:h,subtext:x,actions:A=[],showInactiveBorder:T=!1}=e;const y=m[g];return(0,p.jsxs)(O,{$status:s,$showInactiveBorder:T,children:[(0,p.jsxs)(a.s,{alignItems:"center",gap:c.Kz.ONE,children:[(0,p.jsx)(l.A,{props:{url:t,size:n,color:r??d.Jy.BLACK}}),(0,p.jsxs)(a.s,{flexDirection:"column",children:[(0,p.jsx)(y,{textTheme:h,children:u}),x&&(0,p.jsx)(i.a3,{type:i.sk.BODYSPAN,children:x})]})]}),A.length>0&&(0,p.jsx)(E,{children:A.map((e=>(0,p.jsx)(o.A,{name:e.name,actionStyle:i.s9.BUTTON,styleProps:{buttonStyle:e.buttonStyle??i.in.PRIMARY,width:i.Rj.FULL},actionType:i.X2.ONCLICK,typeProps:{type:"button",onClick:e.onClick},disabled:e.disabled,margin:e.margin,children:e.label},e.name)))})]})};t.d(s,["A",0,h])}}]);
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.