PageSourceSearch

https://myka.ng/assets/PlanSelectionPage-HYI-GYkM.js

js myka.ng collected 2026-10-09 22:42:54 UTC 14,032 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SharedVerifyCompanyPage-Dmm-z8yI.js","assets/vendor-react-DfYGAhtm.js","assets/index-Ckt8e3nH.js","assets/routes-rIK6zvx1.js","assets/index-DsBgCU7r.js","assets/vendor-icons-1odZwi-b.js","assets/vendor-ui-DA_r9yXk.js","assets/vendor-state-BsBVN-fX.js","assets/vendor-forms-BP-7CbAP.js","assets/index-BuY3nPpA.css","assets/useFlowDropoff-B2TCwQre.js","assets/ProductAuthGate-BV--HzK8.js","assets/policyDetailFromApi-DMEz0xFY.js","assets/errors-BYKXB8DF.js","assets/LinkPaymentMethodOption-CuZHpNDU.js","assets/ComparePlansFooter-CPpdpWCW.js","assets/PromoCardSkeleton-Dncq1PuK.js","assets/contentfulPreview-UQGJUROZ.js","assets/healthCategoryUi-C2_keODf.js","assets/other-icon-DC1bN4dP.js","assets/savings-BJUwUGln.js","assets/routes-BR5I3bEX.js","assets/annuity-retirement-C1dZ1QHM.js","assets/health-ped-DAki1cTK.js","assets/professional-indemnity-Cx_HID73.js","assets/property-building-content-BPs_xKUv.js","assets/property-business-assets-DHEXMjWx.js","assets/property-home-content-BS-RQEdB.js","assets/savings-specialized-hA4moY7S.js","assets/savings-targeted-goals-BG697KhM.js","assets/constants-UDB7jJ0h.js","assets/Modal-DS-VW05m.js","assets/useBreakpoint-C_7Gw8n1.js","assets/useMotorVerifyFlow-DJY-GKHO.js","assets/verifyStateConfig-DY_95LNG.js","assets/verification_mark-CJRfnqWz.js","assets/coverageModalQuery-rAl8RmMu.js","assets/KycNinModal-HYhUNMVV.js","assets/NinVerificationPanel-Cl3L-HVS.js","assets/mascot-header-BIwJJ2kn.js","assets/embla-carousel-react.esm-DyMEp6Qu.js","assets/SelectField-B8rkxDSz.js","assets/DropdownPopover-KjBTPKBF.js","assets/travel-D23Ir66-.js","assets/routes-BwXTp1y7.js","assets/routes-sl-sVJBZ.js","assets/routes-CkGlntR3.js","assets/routes-CNOe4p0Z.js","assets/routes-jB7S3MB-.js","assets/routes-UmHx9_5t.js","assets/routes-0SZn-6GV.js","assets/routes-TkfgV80o.js","assets/routes-DM9LZteW.js","assets/routes-D6u-5hjo.js","assets/routes-D-Rb-ubu.js","assets/routes-CkWG0BpN.js","assets/routes-SlierU_8.js","assets/checkoutSessionStore-BRM5sYZN.js","assets/underwriterLogoDisplay-B0FBG3Nn.js","assets/CollapsibleSection-5BGvoOUT.js","assets/paymentReturnUrls-CXEwLwaV.js","assets/walletApi-DyFgHNVA.js","assets/walletMandateApi-Du1GplC_.js","assets/walletMandateSession-B-c6J5GS.js","assets/failed-Dd90HJgP.js","assets/success-C0L8gZxS.js","assets/useAnalytics-HP01GbIH.js","assets/userEmail-9DwyWHBc.js","assets/transactionsApi-CANA4ntQ.js","assets/paymentFrequencyLabels-0Hau-h8R.js","assets/stepBreadcrumbs-FCtSk5Kj.js","assets/StepPageLayout-DdZUweau.js","assets/Checkbox-DwOz6egu.js","assets/PaymentTermsConsentCopy-DOzXQujc.js","assets/EmailVerificationModal-BxNiYJiq.js","assets/usePaymentReadiness-DQ-J6Nqr.js","assets/normalizeBrand-Cr5Qmi7I.js","assets/time-CKDfeoln.js","assets/nin-Bkcssw0H.js","assets/phone-ouFZPfGU.js","assets/nigerianPhone-B1rv0Wc5.js","assets/missedContributionRetry-D0dCo6_S.js","assets/policiesApi-DYBxVdNQ.js","assets/useApiQuery-mQnoCtpJ.js","assets/api-BEJchXjA.js","assets/Tag-CjDhIpKV.js","assets/CarLogo-DqMBPg2N.js","assets/useOpenLoginModalOnAuthRequired-D6y-uK5-.js","assets/cacRegistrationNumber-CQHoH1B4.js","assets/text-D803XGGZ.js","assets/QRCODE-C9WIFLqn.js","assets/valid-11xrBmDj.js","assets/device-DbCxnG1h.js","assets/green_strip-C4meNRuY.js","assets/useUploader-CBNPOY8T.js","assets/fix-webm-duration-DBGubGlL.js","assets/inspectionAnalysis.runtime-CbjBTDqp.js","assets/sseStream-C28FcIBw.js","assets/recording.constants-Cr2cQllO.js"])))=>i.map(i=>d[i]);
2import{j as e,l as T,u as H,r as l}from"./vendor-react-DfYGAhtm.js";import{al as N,m as i,am as F,g as L,_ as G,x as B,I as Y}from"./index-DsBgCU7r.js";import{M as z,g as $,a as D}from"./index-Ckt8e3nH.js";import{bI as q,q as K,I as U,af as Z}from"./vendor-icons-1odZwi-b.js";import{F as u,H as b,o as J,i as C,V as I,a as j,T as m,S as Q,v as k,w as X,Z as ee}from"./vendor-ui-DA_r9yXk.js";import{M as oe}from"./Modal-DS-VW05m.js";import"./LinkPaymentMethodOption-CuZHpNDU.js";import"./vendor-state-BsBVN-fX.js";import"./vendor-forms-BP-7CbAP.js";import"./routes-rIK6zvx1.js";import"./useFlowDropoff-B2TCwQre.js";import"./ProductAuthGate-BV--HzK8.js";import"./policyDetailFromApi-DMEz0xFY.js";import"./errors-BYKXB8DF.js";import"./ComparePlansFooter-CPpdpWCW.js";import"./PromoCardSkeleton-Dncq1PuK.js";import"./contentfulPreview-UQGJUROZ.js";import"./healthCategoryUi-C2_keODf.js";import"./other-icon-DC1bN4dP.js";import"./savings-BJUwUGln.js";import"./routes-BR5I3bEX.js";import"./annuity-retirement-C1dZ1QHM.js";import"./health-ped-DAki1cTK.js";import"./professional-indemnity-Cx_HID73.js";import"./property-building-content-BPs_xKUv.js";import"./property-business-assets-DHEXMjWx.js";import"./property-home-content-BS-RQEdB.js";import"./savings-specialized-hA4moY7S.js";import"./savings-targeted-goals-BG697KhM.js";import"./constants-UDB7jJ0h.js";
2import"./useBreakpoint-C_7Gw8n1.js";import"./useMotorVerifyFlow-DJY-GKHO.js";import"./verifyStateConfig-DY_95LNG.js";import"./verification_mark-CJRfnqWz.js";import"./coverageModalQuery-rAl8RmMu.js";import"./KycNinModal-HYhUNMVV.js";import"./NinVerificationPanel-Cl3L-HVS.js";import"./mascot-header-BIwJJ2kn.js";import"./embla-carousel-react.esm-DyMEp6Qu.js";import"./SelectField-B8rkxDSz.js";import"./DropdownPopover-KjBTPKBF.js";import"./travel-D23Ir66-.js";import"./routes-BwXTp1y7.js";import"./routes-sl-sVJBZ.js";import"./routes-CkGlntR3.js";import"./routes-CNOe4p0Z.js";import"./routes-jB7S3MB-.js";import"./routes-UmHx9_5t.js";import"./routes-0SZn-6GV.js";import"./routes-TkfgV80o.js";import"./routes-DM9LZteW.js";import"./routes-D6u-5hjo.js";import"./routes-D-Rb-ubu.js";import"./routes-CkWG0BpN.js";import"./routes-SlierU_8.js";import"./checkoutSessionStore-BRM5sYZN.js";import"./underwriterLogoDisplay-B0FBG3Nn.js";import"./CollapsibleSection-5BGvoOUT.js";import"./paymentReturnUrls-CXEwLwaV.js";import"./walletApi-DyFgHNVA.js";import"./walletMandateApi-Du1GplC_.js";import"./walletMandateSession-B-c6J5GS.js";import"./failed-Dd90HJgP.js";import"./success-C0L8gZxS.js";import"./useAnalytics-HP01GbIH.js";import"./userEmail-9DwyWHBc.js";import"./transactionsApi-CANA4ntQ.js";import"./paymentFrequencyLabels-0Hau-h8R.js";import"./stepBreadcrumbs-FCtSk5Kj.js";import"./StepPageLayout-DdZUweau.js";import"./Checkbox-DwOz6egu.js";import"./PaymentTermsConsentCopy-DOzXQujc.js";import"./EmailVerificationModal-BxNiYJiq.js";import"./usePaymentReadiness-DQ-J6Nqr.js";import"./normalizeBrand-Cr5Qmi7I.js";import"./time-CKDfeoln.js";import"./nin-Bkcssw0H.js";import"./phone-ouFZPfGU.js";import"./nigerianPhone-B1rv0Wc5.js";import"./missedContributionRetry-D0dCo6_S.js";import"./policiesApi-DYBxVdNQ.js";import"./useApiQuery-mQnoCtpJ.js";import"./api-BEJchXjA.js";import"./Tag-CjDhIpKV.js";import"./CarLogo-DqMBPg2N.js";import"./useOpenLoginModalOnAuthRequired-D6y-uK5-.js";import"./cacRegistrationNumber-CQHoH1B4.js";import"./text-D803XGGZ.js";import"./QRCODE-C9WIFLqn.js";import"./valid-11xrBmDj.js";import"./device-DbCxnG1h.js";import"./green_strip-C4meNRuY.js";import"./useUploader-CBNPOY8T.js";import"./fix-webm-duration-DBGubGlL.js";import"./inspectionAnalysis.runtime-CbjBTDqp.js";import"./sseStream-C28FcIBw.js";import"./recording.constants-Cr2cQllO.js";const te=({benefit:o})=>e.jsxs(b,{align:"flex-start",gap:2,children:[e.jsx(u,{boxSize:"16px",borderRadius:"full",bg:i.orange[100],align:"center",justify:"center",flexShrink:0,mt:"2px",children:e.jsx(j,{boxSize:"4px",borderRadius:"full",bg:i.orange[500]})}),e.jsxs(j,{children:[e.jsx(m,{fontSize:"sm",fontWeight:"semibold",color:i.text.label,children:o.label}),e.jsx(m,{fontSize:"xs",color:i.text.gray,children:o.description})]})]}),re=({isBusy:o,isSelected:t})=>{const n=o&&t;return e.jsx(b,{mt:"auto",pt:4,color:i.text.orange,cursor:"pointer",_hover:{opacity:.8},transition:"opacity 0.2s",children:n?e.jsxs(e.Fragment,{children:[e.jsx(Q,{size:"sm"}),e.jsx(m,{fontSize:"md",fontWeight:"semibold",children:"Opening..."})]}):e.jsxs(e.Fragment,{children:[e.jsx(m,{fontSize:"md",fontWeight:"semibold",children:"Continue"}),e.jsx(k,{as:q,boxSize:4})]})})},ie=({plan:o,isBusy:t,isSelected:n,onSelect:c,onHover:r})=>{const s=o.planType==="comprehensive",a=s?"-10px":0,d=s?"-12px":0;return e.jsx(N,{size:"lg",borderRadius:"4xl",borderColor:i.border.primary,bg:i.white.cardWhite,transition:"all 0.2s",flex:"1",_hover:{boxShadow:"md",transform:"translateY(-2px)"},opacity:t&&!n?.7:1,pointerEvents:t?"none":"auto",cursor:t?"not-allowed":"pointer",onClick:c,onMouseEnter:r,children:e.jsx(F,{p:{base:4,md:5},children:e.jsxs(u,{direction:"column",gap:4,h:"full",children:[e.jsxs(b,{align:"flex-start",gap:3,alignItems:"center",children:[e.jsx(J,{src:o.icon,alt:`${o.title} plan icon`,boxSize:o.iconSize??"56px",objectFit:"contain",mt:a}),e.jsx(C,{fontSize:{base:"lg",md:"2xl"},fontWeight:"bolder",color:i.text.primary,mt:d,children:o.title})]}),e.jsx(I,{align:"flex-start",mt:2,pb:4,borderBottom:"1px solid",borderColor:i.gray[100],gap:2,children:o.benef
2its.map(x=>e.jsx(te,{benefit:x},x.label))}),e.jsx(re,{isBusy:t,isSelected:n})]})})})},ne=({isBusy:o,selectedPlan:t,onSelect:n,onPreload:c})=>e.jsx(X,{columns:{base:1,md:3},gap:6,alignItems:"stretch",children:z.map(r=>e.jsx(ie,{plan:r,isBusy:o,isSelected:t===r.planType,onSelect:()=>n(r.planType),onHover:()=>c(r.planType)},r.planType))}),ae=({coverage:o})=>e.jsx(u,{justify:"space-between",align:"flex-end",mb:5,direction:{base:"column",md:"row"},gap:4,children:e.jsxs(j,{children:[e.jsxs(C,{fontSize:{base:"xl",md:"4xl"},fontWeight:"bolder",lineHeight:"1.1",mb:1,as:"h1",children:[e.jsxs(m,{as:"span",color:i.text.gray,fontSize:{base:"xl",md:"4xl"},fontWeight:"bolder",children:["Select your ",o]})," ",e.jsx(m,{as:"span",color:i.text.primary,fontSize:{base:"xl",md:"4xl"},fontWeight:"bolder",children:"Motor insurance plan"})]}),e.jsx(m,{fontSize:"md",color:i.text.gray,children:"Select the best option tailored to you."})]})}),se=({isBusy:o,onGoBack:t,onChatWithMyka:n})=>e.jsxs(b,{gap:3,mb:4,justify:"space-between",children:[e.jsxs(b,{gap:1,cursor:o?"not-allowed":"pointer",onClick:o?void 0:t,color:i.text.primary,_hover:o?{}:{color:i.text.orange},opacity:o?.6:1,children:[e.jsx(k,{as:K,boxSize:4}),e.jsx(m,{fontSize:"sm",fontWeight:"medium",children:"Go Back"})]}),e.jsx(L,{buttonType:"ghost",text:"Chat with Myka",icon:e.jsx(U,{color:i.success[500]}),iconPosition:"left",fontSize:{base:"sm",md:"md"},size:"sm",flexShrink:0,disabled:o,onClick:n})]}),v=({label:o,isBusy:t,onClick:n,px:c={base:5,md:6},py:r={base:4,md:5}})=>e.jsxs(u,{align:"center",justify:"space-between",px:c,py:r,border:"1px solid",borderColor:i.gray[100],borderRadius:"16px",cursor:t?"not-allowed":"pointer",onClick:t?void 0:n,_hover:t?{}:{borderColor:i.orange[200],bg:i.gray[50]},transition:"all 0.2s ease",children:[e.jsx(m,{fontSize:{base:"lg",md:"xl"},color:i.text.primary,fontWeight:"medium",children:o}),e.jsx(k,{as:Z,boxSize:7,color:i.text.orange})]}),le=({open:o,isBusy:t,onClose:n,onChoosePlateVerification:c,onChooseNoPlateVerification:r})=>e.jsx(oe,{open:o,onClose:n,showCloseButton:!1,closeOnEscape:!t,closeOnInteractOutside:!t,mobileBottomSheet:!0,size:"xl",maxW:"620px",contentProps:{px:{base:5,md:6},py:{base:6,md:7}},bodyProps:{p:0},children:e.jsxs(u,{direction:"column",gap:6,children:[e.jsx(u,{justify:"flex-end",children:e.jsx(ee,{size:"md",onClick:n,disabled:t,color:i.navy[500],bg:"transparent",_hover:{bg:"transparent",opacity:.8}})}),e.jsx(j,{px:{base:1,md:2},children:e.jsxs(C,{fontSize:{base:"3xl",md:"4xl"},lineHeight:"0.95",fontWeight:"semibold",children:[e.jsxs(m,{as:"span",color:i.text.primary,children:["How would you like to identify"," "]}),e.jsx(m,{as:"span",color:i.text.orange,children:"your vehicle?"})]})}),e.jsxs(I,{gap:4,align:"stretch",children:[e.jsx(v,{label:"I have a licence plate",isBusy:t,onClick:c}),e.jsx(v,{label:"I do not have a licence plate yet",isBusy:t,onClick:r,px:{base:2,md:4},py:{base:2,md:4}})]})]})}),ce=["third_party","comprehensive","third-party-plus"],P=(o,t)=>t==="business"&&ce.includes(o)?G(()=>import("./SharedVerifyCompanyPage-Dmm-z8yI.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98])):Promise.resolve(),pe=()=>{const{navigate:o,isPending:t}=B(),{category:n}=T(),c=H(),r=n??"personal",s=t,a=c.state?.preselectedPlan,d=a!=null,[x,g]=l.useState(a??null),[S,h]=l.useState(d),[f,y]=l.useState(a??null),[M,V]=l.useState(a);a!==M&&(V(a),a&&(g(a),y(a),h(!0))),l.useEffect(()=>{Promise.all(z.map(p=>P(p.planType,r)))},[r]),l.useEffect(()=>{a&&P(a,r)},[a,r]);const w=l.useCallback(()=>{o("/")},[o]),_=l.useCallback(()=>{Y()},[]),W=l.useCallback(p=>{P(p,r)},[r]),R=l.useCallback(p=>{s||(g(p),y(p),P(p,r),h(!0))},[s,r]),E=l.useCallback(()=>{s||(h(!1),y(null),g(null),d&&o("/"))},[d,s,o]),A=l.useCallback(()=>{if(s||!f)return;const p=$(f,r);h(!1),o(`/motor/${p}`)},[s,f,r,o]),O=l.useCallback(()=>{if(s||!f)return;const p=D(f,r);h(!1),o(`/motor/${p}`)},[s,f,r,o]);return{coverage:r,isBusy:s,selectedPlan:x,hasPreselectedPlan:d,isVehicleIdentifyModalOpen:S,handleGoBack:w,handleChatWithMyka:_,handlePlanSelect:R,handleCloseVehicleIdentifyModal:E,handlePreloadPlan:W,handleChoosePlateVerification:A,handleChooseNoPlateVerification:O}},ot=()=>{const{coverage:o,isBusy:t,selectedPlan:n,hasPreselectedPlan:c,isVehicleIdentifyModalOpen:r,handleGoBack:s,handleChatWithMyka:a,handlePlanSelect:d,handleCloseVehicleIdentifyModal:x,handlePreloadPlan:g,handleChoosePlateVerification:S,handleChooseNoPlateVerification:h}=pe();return e.jsxs(j,{px:{base:4,md:6,lg:8},py:{base:4,md:6},children:[e.jsx(se,{isBusy:t,onGoBack:s,onChatWithMyka:a}),!c&&e.jsxs(e.Fragment,{children:[e.jsx(ae,{coverage:o}),e.jsx(ne,{isBusy:t,selectedPlan:n,onSelect:d,onPreload:g})]}),e.jsx(le,{open:r,isBusy:t,onClose:x,onChoosePlateVerification:S,onChooseNoPlateVerification:h})]})};export{ot 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.