1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{80643:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>C});var t=s(37876),n=s(14232),c=s(83073),r=s.n(c),o=s(15039),i=s.n(o),l=s(54587),d=s.n(l),m=s(27680),_=s(26098);let h=e=>{let{score:a,totalQuestions:s,onFindPlan:n,onConnectExpert:c,failResultCard:o={},passResultCard:i={}}=e,l=a>=s/2,m=l?i:o;return(0,t.jsxs)("div",{className:r().scoreCard,children:[m?.img?.[0]?.url&&(0,t.jsx)(d(),{src:m.img[0].url,alt:m.img[0].alternativeText||"result-icon",width:40,height:40}),(0,t.jsxs)("div",{className:l?r().scoreBadgeSuccess:r().scoreBadgeFail,children:["You took ",a," out of ",s," correct decisions"]}),(0,t.jsx)("h2",{className:r().scoreHeading,children:m?.heading}),(0,t.jsx)("p",{className:r().scoreDescription,children:m?.subHeading}),l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{className:r().primaryBtn,onClick:n,children:m?.findPlanBtnText}),(0,t.jsx)("button",{className:r().linkBtn,onClick:c,children:m?.connectExpertBtnText})]}):(0,t.jsx)("button",{className:r().primaryBtn,onClick:c,children:m?.connectExpertBtnText})]})},x=e=>{let{data:a=[],onClose:s,onExperClick:c=()=>{},failResultCard:o,passResultCard:i,getPlansUrl:l}=e,[_,x]=(0,n.useState)(0),[g,u]=(0,n.useState)(null),[C,p]=(0,n.useState)(!1),[S,j]=(0,n.useState)(0),[N,B]=(0,n.useState)(!1),G=a[_],v=(0,n.useMemo)(()=>!!g&&g.toLowerCase()===G?.rightAnsText?.toLowerCase(),[g,G]),w=e=>{e.toLowerCase()===G?.rightAnsText?.toLowerCase()&&j(e=>e+1),u(e),p(!0)},b=v?G.rightAnsDesc:G.wrongAnsDesc,k=v?G.shouldKnowTextForRightAns:G.shouldKnowTextForWrongAns,T=v?G.shouldKnowDescForRightAns:G.shouldKnowDescForWrongAns,y=N?0:a.length-_-1;return(0,t.jsxs)("div",{className:r().gameWrapper,children:[y>0&&Array.from({length:Math.min(y,4)}).map((e,a,s)=>{let n=y-a,c=s.length-1-a;return(0,t.jsx)("div",{className:r().stackCard,style:{top:`${-(12*n)}px`,width:`${93-6*c}%`,zIndex:a}},a)}),(0,t.jsx)("div",{className:r().gameCard,children:N?(0,t.jsx)(h,{score:S,totalQuestions:a?.length,onFindPlan:()=>{l&&(window.location.href=l)},onConnectExpert:c,failResultCard:o,passResultCard:i}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:r().cardHeading,children:G.decisionQues}),(0,t.jsx)(d(),{src:G?.img?.[0]?.url,alt:"",width:260,height:115}),(0,t.jsx)("div",{className:r().question,dangerouslySetInnerHTML:{__html:(0,m.C)(G?.decisionText||"")}}),C?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:v?r().correct:r().wrong,children:b}),(0,t.jsxs)("div",{className:r().shouldKnow,children:[(0,t.jsx)("div",{children:k}),T?.split("\n")?.map(e=>(0,t.jsx)("li",{children:e.replace("-","")},e))]}),(0,t.jsx)("button",{className:r().nextBtn,onClick:()=>{_===a.length-1?B(!0):(x(e=>e+1),u(null),p(!1))},children:G.bottomBtnText})]}):(0,t.jsxs)("div",{className:r().optionWrap,children:[(0,t.jsx)("button",{onClick:()=>w(G.badChoiceOptionText),className:r().choiceBtn,children:G.badChoiceOptionText}),(0,t.jsx)("button",{onClick:()=>w(G.goodChoiceOptionText),className:r().choiceBtn,children:G.goodChoiceOptionText})]})]})})]})};var g=s(70018),u=s(94085);let C=e=>{let{data:a,questionCard:s=[],helpLineData:c={},failResultCard:o={},passResultCard:l={},getPlansUrl:h=""}=e,[C,p]=(0,n.useState)(!1),[S,j]=(0,n.useState)(!1);if(!a)return null;let{heading:N,subHeading:B,startGameBtnText:G,img:v}=a||{};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{children:(N||B||v?.[0]?.url)&&(0,t.jsxs)("div",{className:r().contentWrapper,children:[v?.[0]?.url&&(0,t.jsx)("div",{className:i()(r().imageSection),children:(0,t.jsx)(d(),{src:v?.[0]?.url,alt:v?.[0]?.alternativeText||"guide-image",width:365,height:365,className:r().heroImage})}),(0,t.jsxs)("div",{className:r().textSection,children:[N&&(0,t.jsx)("h1",{className:r().heading,children:N}),B&&(0,t.jsx)("p",{className:r().subHeading,dangerouslySetInnerHTML:{__html:(0,m.C)(B)}}),(0,t.jsx)("button",{className:r().startGameBtn,onClick:()=>p(!0),children:G})]})]})}),(0,t.jsx)(_.A,{isOpen:C,toggle:()=>p(!1),centered:!0,hasCloseButton:!1,boxShadow:!1,isFullWidth:!0,rootClassName:r().bgColor,showHeader:!1,children:(0,t.jsxs)("div",{className:r().cardModal,children:[(0,t.jsx)(x,{data:s,onClose:()=>p(!1),onExperClick:()=>{p(!1),u.Fr?window.location.href=`tel:${c?.footerText}`:j(!0)},failResultCard:o,passResultCard:l,getPlansUrl:h}),(0,t.jsx)("div",{className:r().crossBtn,children:(0,t.jsx)("div",{className:r().modalCloseBtn,onClick:()=>p(!1),children:(0,t.jsx)(d(),{src:"/travel-insurance/images/modalCrossIcon.svg",width:18,height:18,alt:"crossIcon"})})})]})}),(0,t.jsx)(g.A,{isOpen:S,size:"lg",rootClassName:r().modalRootClass,bodyClassName:r().modalBody,toggle:()=>{j(!S)},backdropClassName:r().backDropClass,children:(0,t.jsxs)("div",{className:r().advisorModal,children:[(0,t.jsx)("img",{src:c?.image?.url,alt:"helpline"}),(0,t.jsx)("div",{className:r().heading,children:c?.title}),(0,t.jsx)("div",{className:r().subTitle,dangerouslySetInnerHTML:{__html:(0,m.C)(c?.detail)}}),(0,t.jsx)("div",{className:r().text,children:c?.InsideBorderText})]})})]})}},83073:e=>{e.exports={heading:"cardGameSection_heading__v7Xw1",startGameBtn:"cardGameSection_startGameBtn__j26KX",subHeading:"cardGameSection_subHeading__O6ZyP",contentWrapper:"cardGameSection_contentWrapper__gkweN",modalCloseBtn:"cardGameSection_modalCloseBtn__6FAZ9",scoreCard:"cardGameSection_scoreCard__22DAM",scoreBadgeFail:"cardGameSection_scoreBadgeFail__9AV4o",scoreBadgeSuccess:"cardGameSection_scoreBadgeSuccess__vcazE",scoreHeading:"cardGameSection_scoreHeading__CIs8I",scoreDescription:"cardGameSection_scoreDescription__yWSh6",linkBtn:"cardGameSection_linkBtn__CNA0F",primaryBtn:"cardGameSection_primaryBtn__gOyaA",crossBtn:"cardGameSection_crossBtn__3dIIM",gameWrapper:"cardGameSection_gameWrapper__G_z9R",cardModal:"cardGameSection_cardModal__zIA00",gameCard:"cardGameSection_gameCard__rj2S2",question:"cardGameSection_question__fZd_G",choiceBtn:"cardGameSection_choiceBtn__tfH1z",optionWrap:"cardGameSection_optionWrap__ZNHnk",stackCard:"cardGameSection_stackCard__KCnG7",correct:"
1cardGameSection_correct__3Ipev",wrong:"cardGameSection_wrong__OXiHM",shouldKnow:"cardGameSection_shouldKnow__BaHXe",modalBody:"cardGameSection_modalBody__8pNZb",modalRootClass:"cardGameSection_modalRootClass__rKca_",backDropClass:"cardGameSection_backDropClass__yuXMm",advisorModal:"cardGameSection_advisorModal__hN7oG",subTitle:"cardGameSection_subTitle__Nwxg2",text:"cardGameSection_text__duX_n",nextBtn:"cardGameSection_nextBtn__E21bW",bgColor:"cardGameSection_bgColor__Ej_MB",cardHeading:"cardGameSection_cardHeading__2ADyc",textSection:"cardGameSection_textSection__t18f4"}}}]);
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.