PageSourceSearch

https://direct.alicia.insure/assets/index.p8ywmwr_.js

js alicia.insure collected 2026-10-06 18:11:04 UTC 6,229 bytes, 1 lines download raw bytes

1import{aJ as F,j as t,F as E}from"./chakra.CNo8-LAt.js";import{P as B}from"./index.CV3ljN9_.js";import{a as n}from"./emotion.DwsOS3er.js";import{z as $,F as q,c as T,y as N,G as V,S as H,I as K,g as L,e as M,d as U,Q as v,J as z,R as Y,b as A,N as J,m as W}from"./index.BTIn1CTQ.js";import{R as G,C as X,P as Z,F as ee,a as te}from"./index.DSCF52-e.js";import{a as b,E as I,b as oe}from"./partnerSettingsMatch.CeNsCB3v.js";import{g as se,Q as ne,M as ie,E as S}from"./index.rpZM0_3V.js";import{r as p,N as ae}from"./alicia.B0Mu1pxX.js";import{B as re,A as ce}from"./index.DeNWp4ad.js";import{A as me}from"./framer.C7ABESK6.js";import"./formatPrice.Dsfe_nD6.js";import"./currency-symbol-map.CtHp7l9E.js";import"./dialog.BY_pIDGk.js";import"./modal-content-wrapper.CO3a-3qt.js";import"./index.Dd5rojvF.js";import"./forms.BKkyutuO.js";import"./sanitize.6Zl4IpWR.js";import"./sentry.TqamEh5Y.js";import"./lodash.DlBJHpcm.js";import"./posthog.Dw1T_2oi.js";import"./index.Bcs_aW6k.js";import"./useUserInfoCheck.qI7ekJGk.js";import"./index.AlwYyjjc.js";import"./combobox-field-props.D8S_1i3B.js";import"./index.C3lMuakI.js";import"./CheckIcon.gTFJlWPu.js";import"./payment.B42k3Fn_.js";import"./useCurrentFlow.BsmwaCt_.js";import"./string.D2Vwl3kL.js";import"./index.DF4i8F4R.js";import"./index.XTfMLAs_.js";import"./products.DM7Ugh4p.js";import"./document-download.CJ7gwD2c.js";import"./download-icon.B2jsKZhg.js";import"./policies.D7L_WTUU.js";import"./openSafeDocument.CQ_PtM8b.js";import"./index.C0ZrbpA_.js";import"./right-arrow-icon.BBjPUi_L.js";import"./skeleton.3SFaHNnp.js";import"./index.DRGtgGXp.js";import"./index.CuKugrp8.js";import"./accordion.DBRYvdaB.js";import"./fraud-check.T1rL8q6h.js";import"./index.353BpHPg.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new c.Error().stack;m&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[m]="4c433cb0-7143-4850-9971-d7ac16f1b72d",c._sentryDebugIdIdentifier="sentry-dbid-4c433cb0-7143-4850-9971-d7ac16f1b72d")}catch{}})();const ue=()=>{const{open:c,onOpen:m,onClose:u}=F(),{answers:s,setAnswer:x}=$(),g=q(),y=T(),{questions:f,nextRoute:j}=N(),{setUserChoice:_}=V(),C=oe(),[e,k]=n.useState(void 0),[h,w]=n.useState(void 0),[o,a]=n.useState(void 0),[d,r]=n.useState(void 0),[P,Q]=n.useState();n.useEffect(()=>{if(f?.length){const i=se(f,g.pathname);i&&k(i)}},[f,g]),n.useEffect(()=>{if(e&&(w(e?.options.find(i=>i.default)?.id??void 0),s&&s.length>0)){const i=s.find(l=>l.question===e?.id);i?.option&&a(i?.option)}},[e]),n.useEffect(()=>{r(o??h)},[h,o]),n.useEffect(()=>{r(o??h)},[h,o]);const D=async i=>{try{if(!e)return;const l=e.options.find(O=>O.id===i);e.system_name&&H.includes(e.system_name)&&(e.system_name&&_({systemName:e.system_name,choice:l?l.value:""}),b(I.button_click,"checkin question",e.id),await x(e.id,i),y(`..${j}`)),b(I.button_click,"checkin question",e.id),await x(e.id,i,!1),l?.consequence===K.HARD_DROP_OUT?(Q(l),m()):y(`..${j}`)}catch(l){C({title:String(l),type:"error"})}},R=async()=>{try{b(I.button_click,"Insurance check-in - Do you have the correct insurance question","rejected"),y("/insurance-checkin-welcome"),u()}catch(i){C({title:String(i),type:"error"})}};return t.jsxs(t.Fragment,{children:[t.jsx(G,{open:c,onClose:u,onConfirmation:R}),t.jsx(ne,{question:e,activeOption:d,setPriceAnswersToApi:()=>{},setMultiSelectAnswersToApi:()=>{},onSelectOption:D,onClose:u,onRejectionReason:R,setSuggestionsQuestion:()=>{},isCheckInFlow:!0,open:!1,additionalDetailsOption:P})]})},le=()=>t.jsx(E,{mt:[p(8),p(8),p(48)],mb:p(64),width:"100%",maxWidth:p(544),justifyContent:"center",children:t.jsx(ue,{})}),pe=[{name:"Confirm-Company",path:"/confirm-company",component:X,customTitle:"Confirm company"},{name:"Personal-Details",path:"/personal-details",component:Z,customTitle:"Personal details"},{name:"Formalities",path:"/formalities",component:ee,customTitle:"Formalities",is_checkin:!0}],st=()=>{const c=T(),{products:m}=L(),{questions:u,currentQuestionIndex:s,setNextRoute:x,latestQuestionIndex:g,setCurrentQuestionIndex:y,nextRoute:f,hidePrevious:j}=N(),{setTitle:_}=M(),{getColor:C}=U(),[e,k]=n.useState([]);n.useEffect(()=>{u&&m.length>0&&h()},[u,m]),n.useEffect(()=>{const o=e.find(a=>a.path===location.pathname.split("/insurance-checkin-checkout")[1]);o&&(y(e?.indexOf(o),g),_(o.customTitle??""))},[location.pathname,e]);const h=()=>
1{if(!m||m.length===0)return;const o=[],a=pe,d=u?.filter(r=>r.system_name!==v.CHECKIN_AVB_EVENT&&r.system_name!==v.CHECKIN_BAV_EVENT&&r.system_name!==v.CHECKIN_AVB_YEAR&&r.system_name!==v.CHECKIN_BAV_YEAR);d&&d?.length&&d.forEach(r=>{o.push({customTitle:`${m[0].name} | Additional question`,name:`Additional-Question ${r.ordinal} | ${r.text}`,path:`/questions/${r.id}`,component:le,isSkipTitle:!1})}),k([...o,...a])},w=o=>{if(o==="next")c(`/insurance-checkin-checkout${f}`);else{const a=s-1;s!==0&&e[a]&&c(`/insurance-checkin-checkout${e[a].path}`)}};return n.useEffect(()=>{!s&&e?.length>0?x(e[e?.length===1?0:1].path):s&&e.length>0&&s<e.length-1&&x(e[s+1].path)},[s,e]),t.jsxs(E,{w:"100%",css:{mb:0,[W.tablet]:{mb:p(48)}},children:[t.jsx(B,{showCart:!1,showSteps:!1,children:e.length===0?t.jsx(z,{}):t.jsxs(E,{w:"100%",justify:"center",height:"100%",position:"relative",children:[t.jsx(E,{position:"fixed",left:"0",zIndex:"1",children:t.jsx(re,{type:ce.CHECKIN_BACKDROP,color:C("background-illustration","accent-positive-1")??"yellow",top:p(300)})}),t.jsx(me,{mode:"wait",initial:!1,children:t.jsxs(Y,{location,children:[e.map(({component:o,path:a,is_checkin:d})=>t.jsx(A,{path:a,element:t.jsx(ie,{zIndex:6,id:"inside-route",width:"100%",justifyContent:"center",variants:te,background:"transparent",initial:{opacity:0,x:(a===f||s===0)??0?200:-200},animate:"show",position:"relative",children:n.cloneElement(t.jsx(o,{}),{is_checkin:d})})},a)),t.jsx(A,{index:!0,element:t.jsx(J,{to:`/insurance-checkin-checkout${e[0].path}`})}),t.jsx(A,{path:"*",element:t.jsx(S,{})}),t.jsx(A,{path:"/questions/*",element:t.jsx(S,{})})]},location.pathname)})]})}),t.jsx(E,{position:"fixed",bottom:p(20),left:"3",zIndex:6,children:t.jsx(ae,{fillColor:C("text"),onAction:o=>w(o),viewNext:s<g,viewBack:!j&&s>0})})]})};export{st as default};

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.