1"use strict";(self.webpackChunkingo_web=self.webpackChunkingo_web||[]).push([[8226],{81968:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(65043),i=n(73216),r=n(68732),o=n(60363),a=n(70579);function l(e){let{isPriceDataValid:t,type:n,children:l}=e;const[c,d]=(0,s.useState)(!0),h=(0,i.zy)(),x=(0,i.Zp)();return(0,s.useEffect)((()=>{var e;const{pathname:s,state:i}=h;s.includes(o._h.CALCULATOR)||s.includes(o._h.PAYMENT_INFO)&&(null===i||void 0===i||null===(e=i.paymentInfo)||void 0===e?void 0:e.type)===n||(s.includes(o._h.CALCULATOR)||t)&&(!s.includes(o._h.PAYMENT)||t&&null!==i&&void 0!==i&&i.personInfo)?d(!1):x(o._h.CALCULATOR)}),[t,h,x,n]),c?(0,a.jsx)(r.A,{height:300}):(0,a.jsx)(a.Fragment,{children:l})}const c=(0,s.memo)(l)},99609:(e,t,n)=>{n.d(t,{A:()=>c});var s=n(65043),i=n(96446),r=n(6240),o=n(70579);const a={root:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:2},detailsView:{position:"relative",order:{xs:1,md:2},minWidth:{xs:"100%",md:r.hJ},width:{xs:"100%",md:r.hJ},"> :first-of-type":{position:"sticky",top:r.zG+16}},formView:{width:"100%",bgcolor:"grey.50",borderRadius:3,order:{xs:2,md:1}}};function l(e){let{padding:t=0,form:n,details:s}=e;return(0,o.jsxs)(i.A,{sx:a.root,children:[(0,o.jsx)(i.A,{p:t,sx:a.formView,children:n}),s&&(0,o.jsx)(i.A,{sx:a.detailsView,children:s})]})}const c=(0,s.memo)(l)},87500:(e,t,n)=>{n.d(t,{A:()=>d});n(65043);var s=n(96446),i=n(19252),r=n(6240),o=n(73216),a=n(60363),l=n(70579);const c={root:{mt:4,mb:12},stepperView:e=>({width:{xs:"100%",sm:"100%",md:e?"100%":"calc(100% - ".concat(r.hJ+16,"px)")}})};const d=function(e){let{stepper:t,outlet:n}=e;const r=(0,o.zy)();return(0,l.jsxs)(i.A,{sx:c.root,children:[(0,l.jsx)(s.A,{sx:c.stepperView(r.pathname.includes(a._h.PAYMENT_INFO)||r.pathname.includes(a.St.HEALTH_AHHA)),children:t}),(0,l.jsx)(s.A,{mt:2,children:n})]})}},64335:(e,t,n)=>{n.d(t,{A:()=>p});var s=n(65043),i=n(73216),r=n(74117),o=n(96446),a=n(85865),l=n(60363),c=n(70579);function d(e,t){return t?"primary.main":e?"grey.50":"grey.400"}const h={root:{width:"100%",display:"flex",flexDirection:"column"},tabs:{display:"flex"},progressLine:{mt:1.2,width:"100%",height:"3px",borderRadius:1,bgcolor:"grey.300"},innerProgressLine:e=>({width:"".concat(e,"%"),height:"100%",borderRadius:1,transition:"all 0.5s ease-out",background:"linear-gradient(90deg, #0049C3 0.04%, #4994F0 99.96%); linear-gradient(90deg, color(display-p3 0.004 0.282 0.737) 0.04%, color(display-p3 0.361 0.573 0.914) 99.96%)"}),tab:e=>({display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:"center",gap:1,color:e?"primary.main":"grey.400",transition:"all 0.3s ease-out","&:hover":{cursor:e?"pointer":""}}),tabNumber:(e,t)=>({width:28,minWidth:28,height:28,borderRadius:"50%",bgcolor:e?"primary.main":"grey.50",display:"flex",alignItems:"center",justifyContent:"center",color:d(e,t),boxShadow:e?"0px 0px 4px 0px #0047BB":"none",transition:"all 0.3s ease-out"}),title:{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}};function x(e){let{data:t,onNavigate:n}=e;const{t:d}=(0,r.Bd)(),x=(0,i.zy)(),p=(0,i.Zp)(),[u,m]=(0,s.useState)(-1),A=100/t.length*(u+1);(0,s.useEffect)((()=>{const e=x.pathname.split("/").filter(Boolean).pop();m(t.findIndex((t=>t.path===e)))}),[t,x.pathname]);const j=(0,s.useCallback)(((e,t)=>e>u||x.pathname.includes(l._h.PAYMENT_INFO)?()=>{}:()=>{m(e),n?n(t,e):p(t,{state:x.state})}),[u,x,n,p]);return u<0?null:(0,c.jsxs)(o.A,{sx:h.root,children:[(0,c.jsx)(o.A,{sx:h.tabs,children:t.map(((e,n)=>(0,c.jsxs)(o.A,{sx:h.tab(u>=n),width:"calc(100% / ".concat(t.length,")"),onClick:j(n,e.path),children:[(0,c.jsx)(o.A,{sx:{...h.tabNumber(u===n,u>n)},children:(0,c.jsx)(a.A,{fontWeight:"bold",variant:"caption",children:n+1})}),(0,c.jsx)(a.A,{variant:"body2",sx:h.title,children:d(e.title)})]},e.title)))}),(0,c.jsx)(o.A,{sx:h.progressLine,children:(0,c.jsx)(o.A,{sx:h.innerProgressLine(A)})})]})}const p=(0,s.memo)(x)},98226:(e,t,n)=>{n.r(t),n.d(t,{default:()=>L});var s=n(65043),i=n(73216),r=n(60363),o=n(87500),a=n(64335),l=n(81968),c=n(68732),d=n(79481),h=n(89681),x=n(64389),p=n(4081),u=n(22883),m=n(99609),A=n(82818),j=n(72525),f=n(63329),g=n(70579);function y(){const{form:e,price:t,isLoading:n}=(0,A.A)(),o=(0,i.Zp)(),a=(0,i.zy)(),l=(0,s.useCallback)((()=>{o("/insurances/".concat(r.St.CAR_INSURANCES,"/").concat(r.St.CAR_APPA,"/buy/").concat(r._h.DETAILS),{state:{...a.state}})}),[a.state,o]);return(0,g.jsx)(m.A,{form:(0,g.jsx)(j.A,{initialState:e||void 0,onBuy:l}),details:(0,g.jsx)(u.A,{price:t,isLoading:n,notOnlinePrice:(0,f.A)(t)})})}const b=(0,s.memo)(y),w=(0,s.lazy)((()=>n.e(662).then(n.bind(n,10662)))),v=(0,s.lazy)((()=>Promise.all([n.e(697),n.e(6813)]).then(n.bind(n,36813)))),_=(0,s.lazy)((()=>n.e(2416).then(n.bind(n,2416))));function C(){var e;const t=(0,i.zy)();return(0,g.jsx)(o.A,{stepper:(0,g.jsx)(a.A,{data:x.FN}),outlet:(0,g.jsx)(d.A,{defaultState:null===(e=t.state)||void 0===e?void 0:e.priceData,children:(0,g.jsx)(h.A.Consumer,{children:e=>(0,g.jsx)(s.Suspense,{fallback:(0,g.jsx)(c.A,{height:300,size:"large"}),children:(0,g.jsx)(l.A,{type:p._S.APPA,isPriceDataValid:!(null===e||void 0===e||!e.price),children:(0,g.jsx)(i.sv,{})})})})})})}const L=function(){return(0,g.jsx)(i.BV,{children:(0,g.jsxs)(i.qh,{element:(0,g.jsx)(C,{}),children:[(0,g.jsx)(i.qh,{path:r._h.CALCULATOR,element:(0,g.jsx)(b,{})}),(0,g.jsx)(i.qh,{path:r._h.DETAILS,element:(0,g.jsx)(w,{})}),(0,g.jsx)(i.qh,{path:r._h.PAYMENT,element:(0,g.jsx)(v,{})}),(0,g.jsx)(i.qh,{path:r._h.PAYMENT_INFO,element:(0,g.jsx)(_,{})}),(0,g.jsx)(i.qh,{path:"*",element:(0,g.jsx)(i.C5,{to:r._h.CALCULATOR})})]})})}}}]); 2//# sourceMappingURL=8226.49e1be17.chunk.js.map
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.