1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="afc64a90-7a00-0d77-a025-fdfe2b13ee07")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,504326,e=>{"use strict";e.i(247167);var a=e.i(843476),t=e.i(201542),l=e.i(46928),s=e.i(343794),r=e.i(271645),i=e.i(663257),n=e.i(295750),o=e.i(846086),d=e.i(378058),c=e.i(430569),m=e.i(464366),p=e.i(525496),u=e.i(278467),x=e.i(983865),h=e.i(961691),g=e.i(900753),f=e.i(184641);let y=({price:e,onChange:t,label:l,priceSymbol:s="â±",values:i})=>{let n=(0,r.useRef)(null),[o,d]=(0,r.useState)(0),c=i.findIndex(a=>a===e),m=i.length-1;(0,r.useEffect)(()=>{n.current&&n.current.offsetWidth!==o&&d(n.current.offsetWidth)},[c,o]);let p=(c-0)/(m-0)*100,u=p>=10&&p<=90?`calc(${p}% - ${o/2}px)`:p>90?`calc(100% - ${o}px)`:0;return(0,a.jsxs)("div",{className:"flex w-full flex-col gap-2.5",children:[l&&(0,a.jsx)("p",{className:"font-semibold text-gray-900 text-lg leading-6",children:l}),(0,a.jsxs)("div",{className:"relative mb-6 h-4 w-full",children:[(0,a.jsx)("div",{className:"absolute inset-0 top-1 h-1.5 overflow-hidden rounded-full bg-gray-300",children:(0,a.jsx)("div",{className:"h-full bg-[#04709B]",style:{width:`${p}%`}})}),(0,a.jsx)("input",{type:"range",min:0,max:i.length-1,value:c,onInput:e=>{t(i[e.currentTarget.valueAsNumber])},className:"form-range absolute inset-0 h-4 appearance-none rounded-full outline-none bg-transparent [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:bg-primary-800 [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:bg-primary-800"}),(0,a.jsxs)("div",{ref:n,className:"pointer-events-none absolute -bottom-6 font-medium text-gray-900 text-base",style:{left:u},children:[s,e]})]})]})};var b=e.i(612753),v=e.i(928441),j=e.i(418081);let N=()=>{let e=(0,n.useClientContext)(),{lang:t}=e,l=(0,j.getClientTranslations)(v.TRANSLATIONS,e),s=(0,g.useSafeCarInsuranceContext)();if(!s)return null;let{requestParams:{prices:{value:r,setValue:i}}}=s,{propertyDamage:o,personalAccident:d,isActsOfNature:c}=r,m=e=>{i({...r,...e})};return(0,a.jsxs)("div",{className:"flex flex-col gap-y-gap/y-sm px-spacing/padding/x py-spacing/padding/y",children:[(0,a.jsxs)("div",{className:"text-gray-800 alpha-body-1",children:[(0,u.tr)("enter_personal_details",t),"."]}),(0,a.jsx)("div",{className:"p-6 bg-white",children:(0,a.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,a.jsx)(h.ContactFormMoneymax,{}),(0,a.jsx)(y,{label:l.bodily_injury_property_damage,price:o,values:b.properyDamageValues,onChange:e=>m({propertyDamage:e})}),(0,a.jsx)(y,{label:l.personal_accident,price:d,values:b.personalAccidentValues,onChange:e=>m({personalAccident:e})}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(f.Checkbox,{onClick:()=>m({isActsOfNature:!c}),containerClass:"!size-5",defaultValue:c}),(0,a.jsx)("span",{className:"font-semibold text-lg",children:l.act_nature})]})]})})]})};var C=e.i(742798);let w=()=>{let{lang:e}=(0,n.useClientContext)();return(0,a.jsxs)("div",{className:"flex flex-col gap-y-gap/y-sm px-spacing/padding/x py-spacing/padding/y",children:[(0,a.jsxs)("div",{className:"text-gray-800 alpha-body-1",children:[(0,u.tr)("enter_personal_details",e),"."]}),(0,a.jsx)("div",{className:"p-6 bg-white",children:(0,a.jsx)(C.PersonalDetailsForm,{useBolttechData:!0,pushDataLayer:d.pushDataLayer})})]})};e.i(843780);var _=e.i(892063);e.i(433793);var k=e.i(334850);let P=()=>{let[e,a]=(0,x.useCmsHashState)({carInsuranceAsideModalOpen:"string"}),t="true"===e.carInsuranceAsideModalOpen,l=()=>a({carInsuranceAsideModalOpen:"true"}),s=()=>a({carInsuranceAsideModalOpen:void 0});return{isOpen:t,openModal:l,closeModal:s,toggleModal:()=>{t?s():l()}}},T=()=>{let{isOpen:e,toggleModal:t}=P(),{lang:l,brand:s}=(0,n.useClientContext)(),{form:{setIsChanged:r},requestParams:{vehicle:{value:i}}}=(0,m.useCarInsuranceContext)(),o=!(0,p.isVehicleSelectionComplete)(i);return(0,a.jsx)(c.AsideModal,{size:"small",isOpen:e,onClose:t,children:(0,a.jsxs)("div",{className:"relative flex h-screen flex-col justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"border border-borders/default px-padding/x py-6 bg-white alpha-subheading-1",children:(0,u.tr)("edit_quote_details",l)}),"singsaver"===s&&(0,a.jsx)(w,{}),"moneymax"===s&&(0,a.jsx)(N,{})]}),(0,a.jsx)("div",{className:"sticky bottom-0 p-0",children:(0,a.jsx)("div",{className:"flex items-center justify-between gap-2 border border-borders/default p-6 bg-fill/card",children:(0,a.jsx)(_.default,{styleType:"primary",disabled:o,onClick:()=>{o||r(!0),t()},className:"w-full",children:(0,u.tr)("update_quote",l)})})})]})})};var S=e.i(471507);e.i(68866);var I=e.i(180182);e.i(910881);var A=e.i(943032),B=e.i(454499);let M=({rounded:e=!0})=>{let{data:{yearsOptions:t,vehicleMakers:l,vehicleModels:i,vehicleTrims:o,isVehiclesDataLoading:d,isTrimsLoading:c,isYearsLoading:x}
2,requestParams:{vehicle:{value:h,setValue:g}},form:{setIsChanged:f}}=(0,m.useCarInsuranceContext)(),{lang:y,brand:b}=(0,n.useClientContext)(),v=(0,r.useMemo)(()=>"moneymax"===b?new B.CmsServiceClientVehiclesDomainService:new S.ClientVehiclesDomainService,["moneymax"===b]),j=(0,r.useCallback)(async e=>{g({makeName:e,modelCode:"",modelName:"",trim:""})},[v]),N=(0,r.useCallback)(async e=>{g({modelCode:e,modelName:e,trim:""})},[v]),C=(0,r.useCallback)(e=>{g({trim:e})},[g]),w=(0,r.useCallback)(e=>{g({manufactureYear:e})},[g]),k=!(0,p.isVehicleSelectionComplete)(h),P=[{key:"brand",props:{search:!0,placeholder:(0,u.tr)("select_car_brand",y),value:h.makeName,onChange:j,prefixIcon:(0,a.jsx)(A.MaterialIcon,{icon:"sell",size:3,className:"overflow-visible"}),options:l.value}},{key:"model",props:{search:!0,placeholder:(0,u.tr)("select_car_model",y),value:h.modelCode,isLoading:d,onChange:N,prefixIcon:(0,a.jsx)(A.MaterialIcon,{icon:"directions_car",size:3,className:"overflow-visible"}),options:i.value}},{key:"variant",props:{search:!0,placeholder:(0,u.tr)("select_car_variant",y),value:h.trim,isLoading:c,onChange:C,prefixIcon:(0,a.jsx)(A.MaterialIcon,{icon:"category",size:3,className:"overflow-visible"}),options:o.value}},{key:"year",props:{search:!0,placeholder:(0,u.tr)("year",y),value:h.manufactureYear?.toString(),isLoading:x,onChange:w,prefixIcon:(0,a.jsx)(A.MaterialIcon,{icon:"date_range",size:3,className:"overflow-visible"}),options:t.value}}];return(0,a.jsxs)("div",{className:(0,s.default)("flex w-full flex-col items-center justify-between gap-2 p-4 bg-primary-400 md:grid md:grid-cols-5",{"md:rounded-2xl":e}),children:[P.map(({key:e,props:t})=>(0,a.jsx)(I.CISelect,{...t},e)),(0,a.jsx)(_.default,{endIcon:(0,a.jsx)(A.MaterialIcon,{icon:"search",size:3,className:"w-full"}),styleType:"primary",className:"w-full",disabled:k,onClick:()=>{k||f(!0)},children:(0,u.tr)("search",y)})]})};e.i(397031);var L=e.i(271159);let D=({providerImage:e,providerName:t})=>(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("div",{className:"overflow-hidden rounded-xl px-2 py-1 bg-white",children:(0,a.jsx)("div",{className:(0,s.default)("relative flex h-16 w-full items-center justify-center transition-all"),children:(0,a.jsx)(L.CmsImage,{unoptimized:!0,src:e??"",alt:t??"",fill:!0,className:"object-contain"})})})}),E=({providers:e})=>(0,a.jsx)("div",{className:"hidden flex-row gap-3 lg:visible lg:flex",children:e?.map(e=>(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(D,{providerName:e.provider_name,providerImage:e.image.url})},e.uid))});e.i(804913);var F=e.i(674686),H=e.i(697630);let z=({children:e})=>{let{openModal:t}=P();return(0,a.jsx)("span",{className:"font-bold underline text-black",children:(0,a.jsx)("button",{type:"button",className:"lowercase underline",onClick:()=>{(0,d.pushDataLayer)({event:"form_interact",lead_form_name:"ci-policy-search-module-driver-info",action:"click",component_type:"search-module",component_title:"Edit",vertical_code:"CI",form_field_value:""}),t()},children:e})})},R=()=>{let{data:{vehicleMakers:e,vehicleModels:t,vehicleTrims:l},requestParams:{vehicle:i,driver:o,ncd:d,prices:c,user:{value:p}},useBolttechData:u}=(0,m.useCarInsuranceContext)(),{openModal:x}=P(),{brand:h}=(0,n.useClientContext)(),g="moneymax"===h,{firstName:f,lastName:y,email:b,phone:N}=p,C=(0,n.useClientContext)(),w=(0,j.getClientTranslations)(v.TRANSLATIONS,C),k=(0,F.useBreakpoint)({_:0,md:68,lg:80,xl:80,xxl:80}),[T,S]=(0,r.useState)(!1),[I,B]=(0,r.useState)(0),M=(0,r.useRef)(null);(0,H.useScrollPosition)(()=>{if(0===I&&M.current){let e=M.current.offsetParent instanceof HTMLElement?M.current.offsetParent.offsetTop:0;B(M.current.offsetTop+e)}}),(0,H.useScrollPosition)(()=>{let e=(document.documentElement.scrollTop||document.body.scrollTop)+k>=I;e!==T&&0!==I&&S(e)});let L=(0,r.useMemo)(()=>u?e.value.find(e=>e.value===i.value.makeName)?.label||"":i.value.makeName?.toLowerCase(),[u,i.value.makeName,e.value]),D=(0,r.useMemo)(()=>u?t.value.find(e=>e.value===i.value.modelCode)?.label||"":i.value.modelName,[u,i.value.modelCode,i.value.modelName,t.value]),E=(0,r.useMemo)(()=>u?l.value.find(e=>e.value===i.value.trim)?.label||"":i.value.trim,[u,i.value.trim,l.value]),R=(0,r.useMemo)(()=>{var e;let a,t;return a="M"===(e=o.value).maritalStatus?w.marital_status_married:w.marital_status_single,t="M"===e.gender?w.gender_male:w.gender_female,{maritalStatus:a,gender:t,drivingExperience:3===e.totalDrivingExperience?w.three_years_and_above:String(e.totalDrivingExperience),noc:3===e.numberOfClaims?w.three_years_and_above:String(e.numberOfClaims)}},[o.value]),O="text-[20px] text-gray-600",V="flex flex-row items-center gap-1",U="text-sm font-semibold text-gray-900";return(0,a.jsx)("div",{className:(0,s.default)({"fixed left-0 w-full bg-primary-50 shadow-md z-40 top-0 md:top-[68px]":T}),ref:M,children:(0,a.jsxs)("div",{className:(0,s.default)("flex flex-col justify-between sm:flex-col sm:items-end md:flex-row md:items-center",{"2xl:mx-10 xl:mx-10 lg:mx-10 md:mx-6 p-4 md:justify-between xl:items-center md:items-start":T,"gap-3":!T}),children:[!g&&(0,a.jsxs)("p",{className:"mr-4 hidden font-medium text-gray-700 sm:text-base md:block lg:text-lg",children:[w.quote_pt_one," ",(0,a.jsx)(z,{children:R.maritalStatus})," ",(0,a.jsx)(z,{children:R.gender}),","," ",(0,a.jsx)(z,{children:o.value.age})," ",w.quote_pt_two," ",(0,a.jsx)(z,{children:R.drivingExperience})," ",w.quote_pt_three,", ",(0,a.jsxs)(z,{children:[d.value,"%"]})," ",w.quote_pt_four," ",(0,a.jsx)(z,{children:R.noc})," ",w.quote_pt_five]}),g&&(f||y||b||N)&&(0,a.jsx)("p",{className:"mr-4 hidden font-medium text-gray-700 sm:text-base md:block lg:text-lg",children:[(0,a.jsxs)(a.Fragment,{children:[w.quote_pt_one," ",(0,a.jsxs)(z,{children:[f," ",y]})]}),b&&(0,a.jsxs)(a.Fragment,{children:[w.email.toLowerCase(),":"," ",(0,a.jsx)(z,{children:b})]}),N&&(0,a.jsxs)(a.Fragment,{children:[w.phone_number.toLowerCase(),":"," ",(0,a.jsx)(z,{children:N})]}
2)].filter(Boolean).map((e,t)=>(0,a.jsxs)("span",{children:[t>0&&", ",e]},t))}),(0,a.jsxs)("div",{className:(0,s.default)({"visible flex w-full flex-col justify-start gap-4 md:hidden":T,hidden:!T}),children:[(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[i.value.makeName&&(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"sell",className:O}),(0,a.jsx)("span",{className:(0,s.default)("capitalize",U),children:L})]}),i.value.modelName&&(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"directions_car",className:O}),(0,a.jsx)("span",{className:U,children:D})]}),i.value.manufactureYear&&(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"date_range",className:O}),(0,a.jsx)("span",{className:U,children:i.value.manufactureYear})]}),i.value.trim&&(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"category",className:O}),(0,a.jsx)("span",{className:U,children:E})]})]}),(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"face",className:O}),(0,a.jsxs)("span",{className:U,children:[o.value.age," ",w.years_old_short]})]}),(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"directions_car",className:O}),(0,a.jsxs)("span",{className:U,children:[o.value.totalDrivingExperience," ",w.years]})]}),(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"sell",className:O}),(0,a.jsxs)("span",{className:U,children:[d.value,"% ",w.ncd]})]})]}),(0,a.jsx)("div",{className:"flex flex-col gap-3",children:g&&(0,a.jsxs)("div",{className:"flex flex-row gap-3",children:[(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"gpp_good",className:O}),(0,a.jsxs)("span",{className:U,children:["â±",c.value.propertyDamage]})]}),(0,a.jsxs)("div",{className:V,children:[(0,a.jsx)(A.MaterialIcon,{icon:"gpp_bad",className:O}),(0,a.jsxs)("span",{className:U,children:["â±",c.value.personalAccident]})]})]})})]}),(0,a.jsx)("div",{className:"w-full shrink-0 sm:basis-full md:basis-[150px] lg:basis-45",children:(0,a.jsx)(_.default,{variant:"outline",className:"w-full",endIcon:(0,a.jsx)(A.MaterialIcon,{icon:"edit"}),onClick:x,children:w.edit_button})})]})})},O=({providers:e,age:t,defaultDrivingExperience:l,defaultGender:s,defaultMaritalStatus:i,defaultOccupationType:n,defaultPeakVehicle:o})=>{let d=(0,r.useRef)(null),{requestParams:{driver:{setValue:c},offPeakVehicle:{setValue:p}}}=(0,m.useCarInsuranceContext)();return(0,r.useEffect)(()=>{let e;c({age:t,gender:s,maritalStatus:i,totalDrivingExperience:(e=l?.match(/\d+/))?Number(e[0]):0,occupationType:n}),p(o??"NO")},[]),(0,a.jsx)("div",{className:"w-full items-center bg-primary-50 md:-mt-16 md:justify-center md:bg-transparent lg:-mt-4 xl:-mt-4 2xl:-mt-8",ref:d,children:(0,a.jsx)("div",{className:"flex items-center 2xl:max-w-screen-lg",children:(0,a.jsxs)("div",{className:"z-[var(--z-index-header)] flex w-full flex-col gap-4 p-4 sm:rounded-none md:justify-center md:rounded-3xl md:shadow-md md:bg-primary-50",children:[(0,a.jsx)(E,{providers:e}),(0,a.jsx)(R,{})]})})})};var V=e.i(585819),U=e.i(668470),$=e.i(642283),q=e.i(450818),W=e.i(758058),G=e.i(863821),K=e.i(902639);let Y=e=>{let{campaigns:t}=e,{promotionCampaign:l}=(0,K.usePageDataContext)(),s=t[l?.activePromotionIndex??0],[i,n]=(0,r.useState)(!0),c=(0,W.getColorSchema)(s?.color??"blue");return i?(0,a.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:"40px"},children:[(0,a.jsx)("div",{style:{background:c.topGradient,position:"absolute",width:"100%",height:"100%",transition:"opacity 0.2s ease-in-out"}}),(0,a.jsx)(o.PageContentContainer,{children:(0,a.jsxs)("div",{className:"relative z-1 flex flex-row items-center justify-between py-spacing/padding/soft-8px text-white lg:py-0",style:{height:"100%",margin:"0 auto"},children:[(0,a.jsx)("div",{className:"flex flex-row items-center ",children:s?.headerText?(0,a.jsxs)("span",{className:"mhg-alpha-typography-body-2",children:[s?.shortHeaderTag||s?.exclusive_offer?.offer_title?(0,a.jsx)("span",{className:"mhg-alpha-typography-bullet-2 contents",children:(0,G.getFirstOrSecond)(s?.shortHeaderTag,s?.exclusive_offer?.offer_title)}):null,"Â â ",s?.headerText," -Â ",s?.headerLinkName?(0,a.jsx)("div",{onClick:()=>{let e=(0,G.getFirstOrSecond)(s?.shortHeaderTag,s?.exclusive_offer?.offer_title)??s?.headerText;(0,d.pushDataLayer)({event:"navigate",component_type:"top-sticky",component_title:`Offer Strip_${e??""}/Find out more`,action:"click",index:void 0,reward_campaign_name:s?.exclusive_offer?.offer_title,reward_campaign_id:s?.exclusive_offer?.title});let a=document.getElementById("promotion-campaing-content-block");a?.scrollIntoView?.({behaviour:"smooth",block:"start"})},className:"mhg-alpha-typography-bullet-2 inline cursor-pointer underline text-white",children:s?.headerLinkName}):null]}):null}),(0,a.jsx)(q.IconButton,{variant:"text",onClick:()=>n(!1),"aria-label":"Close campaign banner",children:(0,a.jsx)(A.MaterialIcon,{icon:"close",className:"text-white text-[20px]"})})]})})]}):null},J=({vertical:e,components:t})=>{let l=(0,r.useRef)(null),[i,n]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=l.current;if(!e)return;let a=()=>{let a=window.getComputedStyle(e).position;"sticky"===a?(n(!0),e.style.position=""):"sticky"!==a&&i&&n(!1)};a();let t=new MutationObserver(e=>
2{e.forEach(e=>{"attributes"===e.type&&("style"===e.attributeName||"class"===e.attributeName)&&a()})});t.observe(e,{attributes:!0,attributeFilter:["style","class"]});let s=setInterval(a,100);return()=>{t.disconnect(),clearInterval(s)}},[i]);let o=(e=>{let a=e.find(e=>"ComponentPagesComponentPromotionCampaings"===e.__typename);if(a)return a;for(let a of e)if("ComponentPagesComponentPrefilledBlock"===a.__typename){if(!a.visible)continue;let e=a.block?.default_components?.find(e=>e?.__typename==="ComponentPagesComponentPromotionCampaings");if(e)return e}})(t),d={};return o&&(o.isHeaderSticky&&"PERSONAL_LOANS"!==e?(d.position="sticky",d.top="0px"):d.position="unset"),(0,a.jsx)("div",{ref:l,className:(0,s.default)("z-[49] w-full",{"top-0 sticky":"PERSONAL_LOANS"!==e&&i}),style:d,id:"top-page-sticky-content",children:!!o&&(0,a.jsx)(Y,{campaigns:o?.campaing})})};var Q=e.i(274839),X=e.i(350548),Z=e.i(94245);e.i(69618);var ee=e.i(440481);let ea=({items:e})=>(0,a.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-4 xl:grid-cols-5",children:e?.map((e,t)=>(0,a.jsxs)(ee.FeLink,{target:(0,Q.getTabTarget)(e?.link_target),href:e?.link_url,className:"flex flex-col gap-1 rounded-lg p-2 shadow-lg bg-white 2xl:gap-2",onClick:a=>{a.stopPropagation(),(0,d.pushDataLayer)({event:"navigate",component_type:"tiles",component_title:`Category Entries_${e?.itemTitle}`,action:"click",index:t})},children:[(0,a.jsx)("div",{className:"flex size-10 items-center justify-center rounded-full bg-blue-light text-blue-dark",children:e?.icon?(0,a.jsx)("i",{className:"flex h-10 items-center justify-center rounded-full",children:(0,a.jsx)(Z.Icon,{width:32,height:32,icon:e.icon})}):null}),(0,a.jsxs)("div",{className:"flex h-full items-center justify-between lg:items-center",children:[(0,a.jsx)("h3",{className:"max-w-full text-gray-900 alpha-bullet-2 md:max-w-3/4",children:e?.itemTitle}),(0,a.jsx)(X.default,{className:"size-shapes/icon-size-lg shrink-0"})]})]},e?.id))});var et=e.i(464188);e.i(713222);var el=e.i(178680),es=e.i(862119),er=e.i(679137),ei=e.i(58492),en=e.i(216829),eo=e.i(443036);let ed={"en-sg":50,"en-ph":50,"en-hk":50,"zh-hk":24,"zh-tw":24};var ec=e.i(717376);let em=({title:e,subtitle:t,updateVisible:l=!1,showMoreButtonVisible:s=!1,subtitleVisible:r=!0,truncateSubtitle:i=!1,updatedAt:o,children:d,anchorLink:c,textLink:m})=>{let p,{lang:x}=(0,n.useClientContext)(),h=eo.CONTENT_MHG.get(x),g=i&&(p=ed[x])?{budget:p,wordBoundary:!x.startsWith("zh")}:null;return(0,a.jsx)("div",{className:"max-w-page-max basis-full pt-4",children:(0,a.jsxs)("div",{className:"flex flex-col gap-gap/x-sm",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"mhg-alpha-typography-display-3 text-text/primary",children:e}),o&&l&&(0,a.jsxs)("p",{className:"mhg-alpha-typography-caption mt-2 text-text/secondary-lighter",children:[h?.updated??"",":"," ",(0,u.formatDatePageTitle)(o,x)]})]}),t&&r&&(0,a.jsxs)("div",{className:"mhg-alpha-body-1-relaxed h-auto pl-0",children:[(0,a.jsxs)(ec.WrappedText,{showMoreButtonVisible:s,showMoreButtonText:h.show_more.toLowerCase(),characterBudget:g?.budget,wordBoundary:g?.wordBoundary,collapsedSourceText:g?t:void 0,children:[t,c&&m&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsx)("a",{href:c,className:"underline",rel:"noopener noreferrer",children:m})]})]}),d]})]})})};var ep=e.i(142202);let eu=({buttons:e})=>(0,a.jsx)(a.Fragment,{children:e.map((e,t)=>{let l=e.id??`${e.label}-${t}`;return(0,a.jsx)(ep.CallToActionButton,{className:"w-full md:w-auto",cta:e},l)})});var ex=e.i(811015),eh=e.i(218646);let eg={overline:"text-colors/campaign-blue-4",headline:"text-[--text-primary]",body:"text-[--text-primary]"},ef={overline:"text-colors/campaign-green-1",headline:"text-text/on-dark",body:"text-text/on-dark"};e.i(659860);var ey=e.i(43185);let eb=(e,a)=>{if(!e)return;let t=e.links?.[0]?.label??a,l=e.links?.[0]?.redirectedUrl;if(t||l)return{id:"0",__typename:"ComponentPagesComponentCtaButton",label:t||a,link:l}};e.i(880723);var ev=e.i(227082),ej=e.i(904942),eN=e.i(192766);let eC=({offers:e,lang:t,theme:l})=>{let s=(0,eN.mapOfferToPeriodGifts)(e)??[],r=s.length>1;return 0===s.length?null:(0,a.jsx)(ev.FeCarousel,{swiperCustomPagination:!0,swiperCustomNavigation:!0,swiperClassNames:"reward-carousel",swiperWrapperClassNames:"w-full",swiperNestedClassNames:"!h-auto",isDarkTheme:l===el.EnumFlexibleHeroBlockTheme.Dark,swiperPropsOverride:{loop:!1,pagination:!0,navigation:!0,centeredSlides:!1,slidesPerView:"auto",centerInsufficientSlides:!0,autoplay:!!r&&{delay:4500,disableOnInteraction:!1},spaceBetween:24},children:s.map(e=>{let l,s;return(0,a.jsx)(ex.RewardThumbnail,{"data-gift-uid":e.uid,image:e.desktop_image||e.mobile_image,title:(l=e.gift_value,l?.price&&l?.prefix?`${(0,ey.currencyFormat)(l.prefix)}${eh.currencyFormatterNoDecimal.format(l.price)}`:e.gift_title),subtitle:(s=e.gift_value,s?.topup_label&&s.topup_amount&&s.prefix?`${s.topup_label} ${(0,ey.currencyFormat)(s.prefix)}${eh.currencyFormatterNoDecimal.format(s.topup_amount)}`:e.additional_information),tooltip:e.additional_information,tagText:(0,ej.getUrgencyPhase)(t,e.startDate,e.endD
2ate)?.value,rewardThumbnailSizeClasses:"h-[128px] w-[120px]"},e.uid??e.gift_title)})})},ew=({imageDesktop:e,imageMobile:t,headline:l})=>{let s=e?.url,r=t?.url??s;return s||r?(0,a.jsxs)("figure",{className:"w-full",children:[r&&(0,a.jsx)(L.CmsImage,{unoptimized:!0,src:r,alt:t?.alternativeText??e?.alternativeText??l??"",width:t?.width??e?.width??640,height:t?.height??e?.height??360,className:"block w-full object-contain md:hidden",sizes:{_:"100vw"}}),s&&(0,a.jsx)(L.CmsImage,{unoptimized:!0,src:s,alt:e?.alternativeText??t?.alternativeText??l??"",width:e?.width??t?.width??640,height:e?.height??t?.height??360,className:"hidden w-full object-contain md:block"})]}):null},e_=({alignment:e,buttons:t,bodyCopy:l,headline:r,headingId:i,isPageHeadline:n=!0,imageDesktop:o,imageMobile:d,lang:c,offers:m,overline:p,rewardType:u,textClasses:x,theme:h})=>{let g=(({rewardType:e,offers:t,imageDesktop:l,imageMobile:s,lang:r,headline:i,theme:n})=>{switch(e){case el.EnumFlexibleHeroBlockRewardType.Carousel:return(0,a.jsx)(eC,{offers:t??[],lang:r,theme:n});case el.EnumFlexibleHeroBlockRewardType.Image:return(0,a.jsx)(ew,{imageDesktop:l,imageMobile:s,headline:i});default:return null}})({rewardType:u,offers:m,imageDesktop:o,imageMobile:d,lang:c,headline:r,theme:h});return(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:(0,s.default)(e.container),children:[(!!r||!!p)&&(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[p&&(0,a.jsx)("div",{className:(0,s.default)("mhg-alpha-typography-title-1",x.overline),children:p}),r&&(0,a.jsx)(n?"h1":"div",{id:i,className:(0,s.default)("mhg-alpha-typography-display-3",x.headline),children:r})]}),l&&(0,a.jsx)("div",{className:(0,s.default)("mhg-alpha-typography-body-1-relaxed md:max-w-[--general-6-col-width]",x.body),children:l}),t.length>0&&(0,a.jsx)("div",{className:e.ctaWrapper,children:(0,a.jsx)(eu,{buttons:t})}),!!g&&(0,a.jsx)("div",{className:"w-full",children:g})]})})};e.i(782316);var ek=e.i(40232),eP=e.i(930011),eT=e.i(734800),eS=e.i(469835);e.i(328419);var eI=e.i(424135),eA=e.i(618566),eB=e.i(594999);e.i(73430);var eM=e.i(316832),eL=e.i(752680);let eD=e=>void 0!==e,eE=e=>{let a=e?.trim();if(a&&"-"!==a)return a},eF=e=>{if(e)return eE((0,eM.formatAttributeItemValue)(e,!1,!0))},eH=e=>(e?.__typename==="ComponentAttributesAttrPaymentType"?(0,eL.getPaymentBadgeSources)(e):[]).filter((e,a,t)=>t.findIndex(a=>a.label===e.label)===a);e.i(360967);let ez=(0,e.i(110243).localeSpecificGroup)({supported_payment_network:{_:"Supported Payment Network","zh-hk":"ä¿¡ç¨å¡é¡å¥","zh-tw":"ä¿¡ç¨å¡é¡å¥"},supported_payment_type:{_:"Supported Payment Type","zh-hk":"æ¯æ´ä»æ¬¾åè½","zh-tw":"æ¯æ´ä»æ¬¾åè½"}}),eR=({heroVariant:e,imageDesktop:t,imageMobile:l,headline:s,lang:r,product:i,productCallToAction:n,productHref:o,productHeroData:d,provider:c,providerCallToAction:m,onApplyClick:p})=>{switch(e){case el.EnumFlexibleHeroBlockHeroType.Cta:case el.EnumFlexibleHeroBlockHeroType.FormFieldAndImage:case el.EnumFlexibleHeroBlockHeroType.ImageOnly:if(!t&&!l)return null;return(0,a.jsx)(ew,{imageDesktop:t,imageMobile:l,headline:s});case el.EnumFlexibleHeroBlockHeroType.Product:{let e=((e,a,t,l)=>{let s=eb(a,t);if(s)return s;let r=e?.call_to_action,i=r?.links?.[0]?.label??r?.title??t;if(i||l)return{id:"0",__typename:"ComponentPagesComponentCtaButton",label:i||t,link:l}})(i,n,(0,u.tr)("apply_now",r),o),t=i?.product_image,l=(d?.keyStats?.length??0)>0,s=d?.productTag;if(!t&&!e&&!l&&!s)return null;return(0,a.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/soft-12px rounded-radius/card border border-[rgba(179,199,195,0.1)] px-spacing/gap/x py-spacing/gap/y-sm bg-[rgba(179,199,195,0.16)] backdrop-blur-frost md:shadow-[0px_2px_7px_0px_rgba(0,0,0,0.25)]",children:[s&&(0,a.jsx)("div",{className:"w-full hidden md:block",children:(0,a.jsx)(eO,{productTag:s})}),t&&(0,a.jsx)("div",{className:"overflow-hidden rounded-radius/button md:rounded-radius/card-inner",children:(0,a.jsx)(L.CmsImage,{src:t,alt:i?.product_name??i?.title??"Product image",width:320,height:200,sizes:{_:"100vw",sm:264},className:"h-auto max-h-[160px] w-full object-contain"})}),e&&(0,a.jsx)(ep.CallToActionButton,{cta:e,onClick:p}),s&&(0,a.jsx)("div",{className:"w-full block md:hidden",children:(0,a.jsx)(eO,{productTag:s})}),d?.keyStats?.length?(0,a.jsx)("div",{className:"flex flex-col gap-spacing/gap/soft-8px",children:d.keyStats.map(e=>(0,a.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-4px",children:[(0,a.jsx)("div",{className:"text-center mhg-alpha-typography-table-header text-text/secondary-lighter md:text-left",children:e.label}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-center items-center gap-spacing/gap/soft-4px md:justify-start md:border-l-2 md:border-borders/form-default md:pl-spacing/gap/soft-12px",children:[(0,a.jsx)("span",{className:"mhg-alpha-typography-breadcrumb text-text/secondary-lighter",children:e.primaryValue}),e.secondaryValue?(0,a.jsx)("span",{className:"mhg-alpha-typography-breadcrumb text-text/secondary-lighter",children:e.secondaryValue}):null]})]},e.key))}):null]})}case el.EnumFlexibleHeroBlockHeroType.Provider:{let e=eb(m,(0,u.tr)("apply_now",r)),t=c?.providerImage;if(!t&&!e)return null;return(0,a.jsxs)("div",{className:"flex w-full flex-col items-center gap-[--spacing-gap-soft-12px]",children:[t&&(0,a.jsx)(L.CmsImage,{unoptimized:!0,src:t,alt:c?.providerName??"Provider image",width:240,height:120,className:"h-auto w-full object-contain"}),e&&(0,a.jsx)(ep.CallToActionButton,{cta:e,onClick:p})]})}default:return null}},eO=({productTag:e})=>(0,a.jsx)("div",{className:"mhg-alpha-typography-badge w-full rounded-radius
2/button px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-fill/primary-light text-fill/primary-dark text-center",children:e}),eV=({alignment:e,buttons:t,bodyCopy:l,brand:i,headline:n,headingId:o,isPageHeadline:c=!0,highlights:m,heroVariant:p,imageDesktop:x,imageMobile:h,keyStats:g,lang:f,overline:y,product:b,productCallToAction:v,provider:j,providerCallToAction:N,showBreadcrumbs:C,showTimestamp:w,textClasses:_})=>{let P,{pageData:T,pageType:S}=(0,K.usePageDataContext)(),[I,A]=(0,r.useState)(!1),B=ez.get(f),M=(0,eA.usePathname)(),D=(0,ek.useCtaUrl)({product:b}),E=()=>{k.sessionAttributionTracker.recordApplyClick(),b&&(0,eI.sendProductAnalytics)({event:"product_click_apply",action:eI.UserActionEnum.CLICK,componentType:eI.ComponentTypeEnum.PRODUCT_CARD,componentTitle:"Product Hero/CTA_Apply Now",itemListName:M??void 0,product:b,index:"0",pushDataLayer:d.pushDataLayer})},F=p===el.EnumFlexibleHeroBlockHeroType.Product,H=F?(({brand:e,bodyCopyOverride:a,headlineOverride:t,keyStats:l,lang:s,product:r,productMetaConfig:i})=>{let n=(e=>{let a=new Map;for(let t of e?.attributes??[]){let e=t.name?.name;e&&!a.has(e)&&a.set(e,t)}return{byName:a}})(r),o=eE(t)??eE(r?.product_name),d=eE(a)??eE(r?.description),c=(0,eM.resolveProductTag)({product:r,pageLevelTag:((e,a)=>{let t=a?.uid;if(t)return e?.product_card?.find(e=>!1!==e.visible&&e.productBlock?.product?.uid===t)})(i,r)?.productBlock?.text_tag}),m=eF((0,eB.getAttrFromProduct)(eB.ATTR_NAMES.PROMO_CODE,r)),p=eH(n.byName.get("SUPPORTED_PAYMENT_NETWORK"));return{headline:o,bodyCopy:d,productTag:c,promoCode:m,paymentNetworks:p,paymentTypes:(({brand:e,lang:a,badges:t})=>t.filter(t=>"Octopus Auto Add-Value"!==t.label||"moneyhero"===e&&"zh-hk"===a))({brand:e,lang:s,badges:eH(n.byName.get("SUPPORTED_PAYMENT_TYPE"))}),keyStats:l?.map(e=>{let a=e.attribute,t=a?.name?n.byName.get(a.name):void 0,l=eE(t?.label)??eE(t?.name?.label)??eE(a?.label)??eE(a?.name),s=eF(t);if(t&&s&&l)return{key:a?.uid??a?.name??l,label:l,...(e=>{if(!(/^[\d$â¬Â¥â½Â£]/.test(e)||/^HKD\s|^SGD\s|^USD\s|^NTD\s/.test(e)))return{primaryValue:e};let[a,...t]=e.trim().split(/\s+/);return{primaryValue:a,secondaryValue:eE(t.join(" "))}})(s)}}).filter(eD)??[]}})({brand:i,product:b,headlineOverride:n,bodyCopyOverride:l,keyStats:g,lang:f,productMetaConfig:(P=T?.page?.components,P?.find(e=>"ComponentPagesComponentProductMetaConfig"===e.__typename))}):void 0,z=H?.promoCode,R=H?.headline??n,O=H?.bodyCopy??l,V=e.isCenter,U=(0,s.default)("flex w-full flex-col gap-[--spacing-gap-y]",V?"items-center text-center":"items-start text-left"),$=(0,s.default)("flex w-full",F?"flex-row flex-wrap items-center gap-[4px] md:gap-[8px]":"flex-wrap items-center gap-[--spacing-gap-soft-4px]",F&&(V?"justify-center text-center":"justify-start text-left"),V&&!F&&"justify-center"),q=(0,s.default)("text-[--text-secondary-lighter]",F?"mhg-alpha-typography-caption md:mhg-alpha-typography-body-2-relaxed xl:mhg-alpha-typography-body-1-relaxed":"mhg-alpha-typography-body-1",V&&"text-center"),W=(0,s.default)("flex flex-wrap",F?"w-auto gap-[4px] md:gap-[8px]":"w-auto gap-[--spacing-gap-soft-4px]",F&&(V?"justify-center":"justify-start")),G=[{label:B.supported_payment_network,values:H?.paymentNetworks??[]},{label:B.supported_payment_type,values:H?.paymentTypes??[]}].filter(e=>e.values.length>0),Y=(0,s.default)("relative flex w-full items-center",F?"flex-row flex-wrap gap-[4px]":"flex-wrap gap-[--spacing-gap-soft-4px]",F&&(V?"justify-center text-center":"justify-start text-left"),V&&!F&&"justify-center"),J=(0,s.default)("text-[--text-secondary-lighter]",F?"mhg-alpha-typography-caption md:mhg-alpha-typography-body-2-relaxed xl:mhg-alpha-typography-body-1":"mhg-alpha-typography-caption"),Q=(0,s.default)("text-[--fill-primary]",F?"mhg-alpha-typography-caption md:mhg-alpha-typography-body-2-relaxed xl:mhg-alpha-typography-body-1":"mhg-alpha-typography-bullet-1"),X=!!eR({heroVariant:p,imageDesktop:x,imageMobile:h,headline:R,lang:f,product:b,productCallToAction:v,productHref:D,productHeroData:H,provider:j,providerCallToAction:N,onApplyClick:E}),Z=[el.EnumFlexibleHeroBlockHeroType.Product,el.EnumFlexibleHeroBlockHeroType.Provider].includes(p),ee=(m??[]).map(e=>
2e?.text?.trim()).filter(Boolean),ea=ee.length>0,et=T?.page,es=et?(0,u.getContentUpdatedDate)(et):void 0,er=w&&es?(0,u.formatDatePageTitle)(es,f):void 0,en=C&&et?(0,a.jsx)("div",{className:"mhg-alpha-typography-breadcrumb w-full text-left",children:(0,a.jsx)(ei.Breadcrumb,{pageType:S,pageTitle:et.title,pageSlug:et.slug,vertical:et.section,urlPrefix:et.urlPrefix,isBlogLanding:"blogLanding"in et&&!!et.blogLanding,isBlogVerticalLanding:"blogVerticalLanding"in et&&!!et.blogVerticalLanding})}):null,eo=X?(0,a.jsx)("div",{className:"flex w-full flex-col items-center gap-[--spacing-gap-y-sm] md:hidden",children:eR({heroVariant:p,imageDesktop:x,imageMobile:h,headline:R,lang:f,product:b,productCallToAction:v,productHref:D,productHeroData:H,provider:j,providerCallToAction:N,onApplyClick:E})}):null,ed=X?(0,a.jsx)("aside",{className:(0,s.default)("hidden w-full shrink-0 flex-col items-start gap-spacing/gap/y-sm md:flex",{"md:basis-[304px] md:max-w-[304px] lg:basis-[300px] lg:max-w-[300px]":Z,"lg:max-w-[--general-4-col-width] lg:basis-[--general-4-col-width] md:max-w-[--general-3-col-width] md:basis-[--general-3-col-width]":!Z}),children:eR({heroVariant:p,imageDesktop:x,imageMobile:h,headline:R,lang:f,product:b,productCallToAction:v,productHref:D,productHeroData:H,provider:j,providerCallToAction:N,onApplyClick:E})}):null;return(0,a.jsx)("div",{className:(0,s.default)("flex w-full flex-col gap-[--spacing-gap-y-sm]",{"md:w-general/narrow-content-max-width-1 md:max-w-general/narrow-content-max-width-1":!X,"mx-auto":e.isCenter&&!X}),children:(0,a.jsxs)("div",{className:(0,s.default)("flex w-full flex-col gap-[--spacing-gap-y-sm]",X&&"md:flex-row md:items-center md:gap-6"),children:[(0,a.jsxs)("div",{className:(0,s.default)("flex w-full flex-col gap-[24px]",V?"items-center text-center":"items-start text-left"),children:[(0,a.jsxs)("div",{className:(0,s.default)("flex w-full flex-col gap-[--spacing-gap-y-sm]",V?"items-center text-center":"items-start text-left"),children:[en,y&&(0,a.jsx)("div",{className:(0,s.default)("mhg-alpha-typography-title-2",_.overline),children:y}),(!!R||!!er)&&(0,a.jsxs)("div",{className:(0,s.default)("flex w-full flex-col gap-[var(--spacing-gap-y-xs,8px)]",V?"items-center text-center":"items-start text-left"),children:[R&&(0,a.jsx)(c?"h1":"div",{id:o,className:(0,s.default)(F?"mhg-alpha-typography-display-3 md:mhg-alpha-typography-display-2":"mhg-alpha-typography-display-3",_.headline),children:R}),er&&(0,a.jsxs)("div",{className:(0,s.default)("mhg-alpha-typography-caption",_.body,V?"text-center":"text-left"),children:[(0,u.tr)("updated",f),": ",er]})]})]}),eo,ea&&!F&&(0,a.jsx)("div",{children:(0,a.jsx)("ul",{className:(0,s.default)("mhg-alpha-typography-bullet-1 list-disc space-y-2 pl-5 text-left",_.body,e.isCenter&&"mx-auto"),children:ee.map(e=>(0,a.jsx)("li",{children:e},e))})}),O&&(0,a.jsx)("div",{className:(0,s.default)(F?"mhg-alpha-typography-body-2-relaxed w-full md:max-w-[--general-6-col-width]":"mhg-alpha-typography-body-1-relaxed w-full md:max-w-[--general-6-col-width]",_.body,F&&"hidden md:block",V?"mx-auto text-center":"text-left"),children:F?(0,a.jsx)(eS.RichText,{className:(0,s.default)("mhg-alpha-typography-body-2-relaxed lg:mhg-alpha-typography-body-1-relaxed w-full",V?"text-center":"text-left"),baseTextStyle:"none",children:O}):(0,a.jsx)(ec.WrappedText,{showMoreButtonVisible:!0,showMoreButtonText:(0,u.tr)("show_more",f).toLowerCase(),children:O})}),(0,a.jsxs)("div",{className:U,children:[G.map(({label:e,values:t})=>{let l;return(0,a.jsxs)("div",{className:$,children:[(0,a.jsxs)("span",{className:q,children:[e,":"]}),(0,a.jsx)("div",{className:W,children:(l=new Set,t.flatMap(e=>{let a=e.label.trim(),t=(0,eL.resolvePaymentBadgeIcon)(e),s=t?.type==="legacy"?t.icon:void 0,r=t?.type==="logo"?t.logo:void 0,i=r?.url??s?.toString()??a.toLowerCase();return!a||l.has(i)?[]:(l.add(i),[{icon:s,logo:r,key:i,label:a}])})).map(e=>(0,a.jsx)("span",{"aria-label":e.label,title:e.label,className:(0,s.default)("mhg-alpha-typography-bullet-2 inline-flex min-h-[22px] items-center",!e.icon&&!e.logo&&"rounded-radius/button px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-fill/primary-light text-fill/primary-dark"),children:e.logo?(0,a.jsx)(L.CmsImage,{src:e.logo.url,alt:"",width:e.logo.width??48,height:e.logo.height??14,sizes:{_:48},className:"h-[14px] w-auto"}):e.icon?(0,a.jsx)(eP.Icon,{icon:e.icon,"aria-hidden":"true",className:"h-[14px] w-auto"}):e.label},e.key))})]},e)}),z?(0,a.jsxs)("div",{className:Y,children:[(0,a.jsxs)("span",{className:J,children:[(0,u.tr)("promo_code",f),":"]}),(0,a.jsx)("span",{className:Q,children:z}),(0,a.jsx)("button",{type:"button","aria-label":(0,u.tr)("promo_code",f),className:"flex size-[16
2px] items-center justify-center text-[--fill-primary] md:size-auto",onClick:async()=>{try{await navigator.clipboard.writeText(z),A(!0),window.setTimeout(()=>A(!1),1500)}catch(e){console.error("Failed to copy promo code:",e)}},children:(0,a.jsx)(eT.default,{className:"cursor-pointer"})}),I?(0,a.jsx)("span",{className:"mhg-alpha-typography-caption rounded-[--radius-button] px-2 py-1 shadow-md bg-[--fill-card] text-[--text-secondary-lighter]",children:(0,u.tr)("copied",f)}):null]}):null]}),t.length>0&&!F&&(0,a.jsx)("div",{className:e.ctaWrapper,children:(0,a.jsx)(eu,{buttons:t})})]}),ed]})})},eU=({id:e,backgroundImageDesktop:t,backgroundImageMobile:l,bodyCopy:r,ctaPrimary:i,ctaSecondary:o,headline:d,highlights:c,heroType:m,imageDesktop:p,imageMobile:u,keyStats:x,overline:h,offers:g,product:f,provider:y,productCallToAction:b,providerCallToAction:v,rewardType:j,showBreadcrumbs:N,showTimestamp:C,theme:w,textAlign:_,ContentContainer:k,isPageHeadline:P=!0})=>{var T,S,I;let A,B,M,L,D,E,{brand:F,lang:H}=(0,n.useClientContext)(),z=(D=[],i?.label&&i?.visible!==!1&&D.push(i),o?.label&&o?.visible!==!1&&D.push(o),D),R=w===el.EnumFlexibleHeroBlockTheme.Dark?ef:eg,O=(E=_===el.EnumFlexibleHeroBlockTextAlign.Center,{container:(0,s.default)("flex flex-col gap-4",{"items-center text-center":E,"items-start text-left":!E}),ctaWrapper:(0,s.default)("flex w-full flex-col gap-3 md:flex-row md:gap-4",{"md:justify-center md:text-center":E,"md:justify-start":!E}),isCenter:E}),V=d?`flexible-hero-${e}`:void 0,U=m??el.EnumFlexibleHeroBlockHeroType.Campaign,$=U===el.EnumFlexibleHeroBlockHeroType.Campaign,q=(T=w,S=t,I=l,A=T===el.EnumFlexibleHeroBlockTheme.Dark?"https://mhgprod.blob.core.windows.net/fe-services/content/assets/flexible-hero-block/bg-dark.jpg":"https://mhgprod.blob.core.windows.net/fe-services/content/assets/flexible-hero-block/bg-light.jpg",B=S?.url??A,M=I?.url??S?.url??B,L={backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"},M&&(L["--flexible-hero-bg-mobile"]=`url(${M})`),B&&(L["--flexible-hero-bg-desktop"]=`url(${B})`),{style:L,className:"bg-cover bg-no-repeat bg-center bg-[image:var(--flexible-hero-bg-mobile)] md:bg-[image:var(--flexible-hero-bg-desktop)]"}),W=(0,a.jsx)(a.Fragment,{children:$?(0,a.jsx)(e_,{alignment:O,buttons:z,bodyCopy:r,headline:d,headingId:V,isPageHeadline:P,imageDesktop:p,imageMobile:u,lang:H,offers:g,overline:h,rewardType:j,textClasses:R,theme:w}):(0,a.jsx)(eV,{alignment:O,buttons:z,bodyCopy:r,brand:F,headline:d,headingId:V,isPageHeadline:P,highlights:c,heroVariant:U,imageDesktop:p,imageMobile:u,keyStats:x,lang:H,overline:h,product:f,productCallToAction:b,provider:y,providerCallToAction:v,showBreadcrumbs:N,showTimestamp:C,textClasses:R})}),G=k?(0,a.jsx)(k,{children:W}):W;return(0,a.jsx)("section",{className:(0,s.default)("mhg-alpha-hero-section-spacing w-full overflow-hidden",q.className),style:q.style,"aria-labelledby":V,"data-component":"flexible-hero-block",children:G})},e$=({flexibleHeroBlocks:e,ContentContainer:t})=>e.map((e,l)=>(0,a.jsx)(eU,{ContentContainer:t,isPageHeadline:0===l,...e},e.id));var eq=e.i(943735);let eW=()=>{let{pageData:{policySummary:e}}=(0,K.usePageDataContext)(),t=e?.status==="ready"?e.data:void 0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{content:"",name:"reward_campaign_name"}),(0,a.jsx)("meta",{content:"",name:"reward_campaign_id"}),t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{content:t.productCode??"",name:"item_id"}),(0,a.jsx)("meta",{content:t.productName??"",name:"item_name"}),(0,a.jsx)("meta",{content:t.carrierName??"",name:"item_brand"})]})]})};var eG=e.i(551009);let eK={title:"We couldnât find your policy",description:"We couldnât load your purchase details from this link. Please check the link, or contact our support team if you need help.",ctaLabel:"Back to homepage"},eY={title:"æ¾ä¸å°æ¨çä¿å®",description:"æåç¡æ³å¾æ¤é£çµè¼å
¥æ¨ç購買詳æ
ãè«æª¢æ¥é£çµï¼å¦éåå©è«è¯çµ¡æåçå®¢æ¶æååéã",ctaLabel:"è¿åé¦é "},eJ=({errorTitle:e,errorDescription:t,errorCtaLabel:l,errorCtaUrl:s})=>{let{lang:r,langPrefix:i}=(0,n.useClientContext)(),d=r.toLowerCase().startsWith("zh")?eY:eK,c=e?.trim()||d.title,m=t?.trim()||d.description,p=l?.trim()||d.ctaLabel,u=s?.trim()||i||"/";return(0,a.jsx)(o.PageContentContainer,{className:"py-spacing/padding/section-y",children:(0,a.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center xl:gap-6",children:[(0,a.jsx)("h1",{className:"mhg-alpha-typography-display-3 text-text/primary",children:c}),(0,a.jsx)("p",{className:"text-text/secondary alpha-body-1",children:m}),(0,a.jsx)(_.default,{as:"a",href:u,variant:"filled",styleType:"cta",className:"w-full md:w-auto",children:p})]})})},eQ=({errorCopy:e,children:t})=>{(0,eG.usePolicySummary)();let{pageData:{policySummary:l}}=(0,K.usePageDataContext)();return l?.status==="invalid"?(0,a.jsx)(eJ,{...e}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eW,{}),t]})};var eX=e.i(564348),eZ=e.i(57509),e0=e.i(244981),e1=e.i(625678);e.s(["PageContent",0,({pageProviderData:e})=>{let{pageData:{page:c,vehicleData:m},isPreview:p}=e,u=c.section,x=c.slug,h=m?.makeNames,g=m?.models,f=m?.trims,y=c.layout??void 0,v=[el.Page_Layout.CategoryLanding,el.Page_Layout.VerticalLanding].includes(y),{scrolledPast:j,sentinelRef:N}=(e=>{let[a,t]=(0,r.useState)(!1),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>
2{if(!e)return;let a=l.current,s=new IntersectionObserver(([e])=>t(!e.isIntersecting),{threshold:0});return a&&s.observe(a),()=>{a&&s.unobserve(a)}},[e]),{scrolledPast:a,sentinelRef:l}})("CAR_INSURANCE"===u&&!v),C=y===el.Page_Layout.GuidesLayout,w=!c.is_homepage,_=!!c?.components?.find(e=>"ComponentPagesProviderListCI"===e.__typename),k=(c?.components??[]).find(e=>e?.__typename==="ComponentPagesComponentPolicySummaryCardComponent"),P=!!k,S={errorTitle:k?.errorTitle,errorDescription:k?.errorDescription,errorCtaLabel:k?.errorCtaLabel,errorCtaUrl:k?.errorCtaUrl},{brand:I,lang:A}=(0,n.useClientContext)(),[B,L]=(c?.components??[]).reduce((e,a)=>{if(!a)return e;let[t,l]=e;return"ComponentPagesComponentPrefilledBlock"===a.__typename&&a.block?.in_header&&a.visible?t.push(a):l.push(a),e},[[],[]]),D=(c?.components??[]).filter(e=>e?.__typename==="ComponentPagesComponentFlexibleHeroBlockComponent"&&!1!==e.visible),E=D.length>0,F=L.filter(e=>!("ComponentPagesComponentRedirectTiles"===e.__typename&&v)&&"ComponentPagesProviderListCI"!==e.__typename&&"ComponentPagesComponentPopularCarBrandComponent"!==e.__typename&&"ComponentPagesComponentTiProviderHeroComponent"!==e.__typename),H=(0,eq.getPdpFlushHeroSkipKeys)(F),z=H.length>0,R=[...(0,e0.getTrustStripSkipKeys)(L,I),...H],{provider:q,heroes:W,hero:G,hasVisibleTiProviderHero:Y}=(0,e1.resolveTiProviderHero)(c?.components,I),Q=Y&&!E,X=!E&&!Q,Z=e=>(0,a.jsx)(ei.Breadcrumb,{vertical:u,pageType:"page",pageTitle:c?.title,pageSlug:x,darkmode:e,urlPrefix:c?.urlPrefix,isBlogLanding:c.blogLanding}),ee=()=>P?null:v?Z(!0):c.is_homepage||C?null:(0,a.jsx)("div",{children:Z(!1)}),eo=()=>{if(P)return null;let e="PERSONAL_LOANS"===u;return v?(0,a.jsx)(em,{...c,showMoreButtonVisible:!0,truncateSubtitle:e}):C?(0,a.jsx)(em,{...c,subtitleVisible:!1}):c.is_homepage?null:(0,a.jsxs)("div",{children:[(0,a.jsx)(em,{...c,showMoreButtonVisible:!0,updateVisible:!0,truncateSubtitle:e,children:(0,a.jsx)(er.BlockMapper,{components:B,vertical:u,pageType:"page",slug:x,urlPrefix:c.urlPrefix})}),"CAR_INSURANCE"===u&&!v&&_&&(0,a.jsxs)("div",{className:"mt-5",children:[(0,a.jsx)(M,{}),(0,a.jsx)("div",{className:"md:mt-20 lg:mt-15",children:L.find(e=>"ComponentPagesProviderListCI"===e.__typename)&&(0,a.jsx)(O,{...L.find(e=>"ComponentPagesProviderListCI"===e.__typename)})})]})]})}
2,ed="moneymax"===I?b.defaultRequestParamsMoneyMax:(0,i.config)({useBolttechData:"singsaver"===I})[I]?.defaultContextState,ec=(0,s.default)({"bg-gray-200":w&&!v,"bg-fill/primary-dark":v}),ep=(0,s.default)({"mb-4 md:mb-10":v,"basis-full xl:basis-12/12":!(v||C)}),eu=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(J,{vertical:u,components:c?.components??[]}),(0,a.jsx)(e$,{flexibleHeroBlocks:D,ContentContainer:o.PageContentContainer}),Q&&(0,a.jsx)(eX.TiProviderHeroWrapper,{hero:G,provider:q,headerBackground:c?.header_background}),v&&(0,a.jsx)("div",{className:ec,children:(0,a.jsx)("div",{className:(0,s.default)("py-4 ",ep),children:(0,a.jsxs)(o.PageContentContainer,{children:[X?(0,a.jsxs)("div",{className:"pb-4 [&_*]:text-white",children:[ee(),eo()]}):null,(()=>{if(v){let e=(c.components??[]).filter(e=>e?.__typename==="ComponentPagesComponentRedirectTiles")[0];if(e)return(0,a.jsx)("div",{className:"mb-4 w-full xl:mb-10",children:(0,a.jsx)(ea,{...e})})}return null})()]})})}),(0,a.jsxs)("div",{className:(0,s.default)({"mb-4 md:mb-10":w}),children:["CAR_INSURANCE"===u&&!v&&j&&_?(0,a.jsx)("div",{className:"fixed top-0 z-[41] hidden w-full md:block",children:(0,a.jsx)(M,{rounded:!1})}):null,!v&&(0,a.jsxs)("div",{className:(0,s.default)({"relative bg-fill/base mb-2 z-50":"CAR_INSURANCE"===u}),children:[!Q&&(0,a.jsx)($.GradientBackground,{...c.header_background}),w&&(0,a.jsx)("div",{className:(0,s.default)(X&&"pt-4 md:pb-0 md:pt-12",[ep]),children:(0,a.jsxs)(o.PageContentContainer,{children:[X?(0,a.jsxs)(a.Fragment,{children:[ee(),eo()]}):null,(0,a.jsx)("div",{ref:N})]})}),!w&&(0,a.jsxs)("div",{children:[X?(0,a.jsxs)(a.Fragment,{children:[ee(),eo()]}):null,(0,a.jsx)("div",{ref:N})]})]}),(0,a.jsxs)("div",{className:(0,s.default)(z?"md:pb-0":"pt-4 md:pb-0 md:pt-4",ep),children:[C?(0,a.jsx)("div",{className:"my-0 alpha-body-1",children:(0,a.jsx)("p",{className:"mt-3 flex font-semibold text-gray-700 alpha-subheading-1",children:(0,a.jsx)(U.default,{text:c.subtitle??"",maxChars:190})})}):null,"CAR_INSURANCE"===u&&(0,a.jsx)(T,{}),(0,a.jsx)(er.BlockMapper,{vertical:u,isHomePage:c.is_homepage,pageType:"page",slug:x,urlPrefix:c.urlPrefix,ContentContainer:w?o.PageContentContainer:void 0,components:F,skipKeys:R}),(0,a.jsx)(t.ProductBlockAsideModal,{vertical:u,isPreview:p,getProductAction:(e,a)=>es.feApiFrontClient.getProduct({isDraft:a,productUrl:e,lang:A}),tableConfig:(c.components??[]).find(e=>"ComponentPagesComponentProductMetaConfig"===e.__typename),pushDataLayer:d.pushDataLayer}),(0,a.jsx)(en.GoogleReviewModalContainer,{slug:x}),(0,a.jsx)(et.ApplyV3Modal,{isPreview:p}),(0,a.jsx)(V.EmailCaptureModal,{})]})]})]});return(0,a.jsx)(K.PageDataProvider,{...e,children:(0,a.jsxs)(eZ.StickyTopSlotProvider,{children:["CAR_INSURANCE"===u&&(0,a.jsx)(l.CarInsuranceContextProvider,{vehicleMakers:h??[],vehicleModels:g??[],trims:f,initialState:ed,useBolttechData:"singsaver"===I,children:eu()}),"CAR_INSURANCE"!==u&&(P?(0,a.jsx)(eQ,{errorCopy:S,children:eu()}):eu())]})})}],504326)}]); 3 4//# debugId=afc64a90-7a00-0d77-a025-fdfe2b13ee07 5//# sourceMappingURL=65eba927ebc26f93.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.