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]="94f1ba26-78be-8632-6fc6-557c96a29c1d")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39702,327225,597120,105370,578197,278979,499082,551103,878231,777095,576534,620568,592603,192466,471054,994441,752e3,467179,935532,620069,433457,e=>{"use strict";var t=e.i(843476),l=e.i(343794);let a=e=>!!e?.replace(/<[^>]*>/g,"").replace(/ /g," ").trim();var i=e.i(271645);e.i(174345);var r=e.i(774860);function n(e){let t=5381;for(let l=0;l<e.length;l++)t=33*t^e.charCodeAt(l);return(t>>>0).toString(36)}function s(e){return n(JSON.stringify(e,Object.keys(e).sort()))}e.s(["fastHash",()=>s,"hashString",()=>n],327225);let o=/(<img\b[^>]*?)\s*\bclass=(["'])(.*?)\2/gi;var d=e.i(564755),c=e.i(686148),p=e.i(789450),u=e.i(469835);let m=(0,c.staticText)({show_more:{_:"Show more",zh:"顯示æ´å¤"},show_less:{_:"Show less",zh:"顯示æ´å°"}}),x=` 3 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="22" height="22"> 4 <path 5 d="M6.78339 13.7854L5.81738 12.8194L11.0001 7.63672L16.1827 12.8194L15.2167 13.7854L11.0001 9.56871L6.78339 13.7854Z" 6 fill="#616161" 7 /> 8 </svg> 9`,h=` 10 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="22" height="22"> 11 <path 12 d="M11.0001 14.1037L5.81738 8.92108L6.78339 7.95508L11.0001 12.1717L15.2167 7.95508L16.1827 8.92108L11.0001 14.1037Z" 13 fill="#616161" 14 /> 15 </svg> 16`,g=(0,i.forwardRef)((e,l)=>{let{content:a,...i}=e;return(0,t.jsx)(u.RichText,{...i,ref:l,children:a??""})});g.displayName="RawHtmlBaseView";let f=({className:e,content:l,baseTextStyle:a})=>{var n;let s=(0,i.useRef)(null),{lang:o,brand:c}=(0,r.useCmsClientContext)(),u=(0,d.getClientTranslations)(m,{lang:o,brand:c});return n=e=>{e.querySelectorAll("table").forEach(e=>{let t=e.querySelectorAll("tbody tr");if(!e.classList.contains("show-more")&&(e.classList.add("show-more"),t.length>0&&e.classList.add("has-rows"),t.length>7)){t.forEach((e,t)=>{t>=7&&(e.style.display="none")});let l=document.createElement("div");l.classList.add("gradient-overlay");let a=document.createElement("div");a.style.position="relative",e.parentNode.insertBefore(a,e),a.appendChild(e),a.appendChild(l);let i=` 17 <a class="the-button text-primary w-max flex flex-shrink-0 items-center justify-center alpha-button-1 button-radius disabled:text-gray-500 px-4 h-9 md:h-10 xl:h-11 rounded-lg sm:rounded-xl no-underline " href="javascript:void(0)"> 18 <span class="button-text">${(0,p.tr)("show_more",u)}</span> 19 <i class="w-icon-sm h-icon-sm [&>*:first-child]:w-icon-sm [&>*:first-child]:h-icon-sm text-primary ml-1 icon-placeholder"></i> 20 </a>`,r=document.createElement("div");r.innerHTML=i.trim();let n=r.firstChild;a.parentNode.insertBefore(n,a.nextSibling),n.querySelector(".icon-placeholder").innerHTML=h;let s=!1;n.addEventListener("click",()=>{s?(t.forEach((e,t)=>{t>=7&&(e.style.display="none")}),n.querySelector(".button-text").textContent=(0,p.tr)("show_more",u),n.querySelector(".icon-placeholder").innerHTML=h,l.style.display="block"):(t.forEach(e=>{e.style.display="table-row"}),n.querySelector(".button-text").textContent=(0,p.tr)("show_less",u),n.querySelector(".icon-placeholder").innerHTML=x,l.style.display="none"),s=!s})}})},(0,i.useEffect)(()=>{if(!s.current)return;let e=()=>{s.current&&n(s.current)};e();let t=new MutationObserver(()=>{e()});return t.observe(s.current,{childList:!0,subtree:!0}),()=>t.disconnect()},[s,n]),(0,t.jsx)(g,{className:e,content:l,baseTextStyle:a,ref:s})},b=e=>{let l=e.content||"",a=(0,i.useMemo)(()=>`cms-raw-${n(l)}`,[l]),r=`${e.className||""} ${a}`,s=(0,i.useMemo)(()=>{var e,t;return e=l.includes("size-full")?l.replace(o,(e,t,l,a)=>{let i=a.split(/\s+/).filter(e=>e&&"size-full"!==e).join(" ");return i?`${t} class=${l}${i}${l}`:t}):l,t=`.${a}`,e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(e,l,a)=>{let i=a.replace(/([^{}]+)\{([^}]*)\}/g,(e,l,a)=>{let i=l.split(",").map(e=>!(e=e.trim())||e.startsWith("@")?e:`${t} ${e}
20`).filter(Boolean).join(", ");return`${i} {${a}}`});return`<style${l}>${i}</style>`})},[l,a]);return(0,t.jsx)(f,{content:s,className:r,baseTextStyle:e.baseTextStyle})};e.s(["RawHtml",0,b],597120),e.i(397031);var _=e.i(271159),y=e.i(440481);let v=({image:e,url:a,showTopDivider:i=!1})=>(0,t.jsx)(y.FeLink,{href:a,target:"_blank",rel:"noopener noreferrer","data-component":"aio-module-banner",className:(0,l.default)({"block border-t border-borders/default pt-spacing/gap/y":i}),children:(0,t.jsx)(_.CmsImage,{src:e.url,alt:e.alternativeText??"",width:e.width??942,height:e.height??118,sizes:{_:"100vw",md:"785px",lg:"942px"},className:"h-auto max-h-[86px] w-full rounded-radius/button object-contain lg:max-h-25 xl:max-h-[118px]"})});var N=e.i(892063);let C="AIO Module",w=({pushDataLayer:e,componentIndex:t},{componentType:l,title:a,action:i,index:r})=>{e&&e({event:"navigate",component_type:l,component_title:`${C}/${a}`,component_index:t??"",action:i,index:String(r)})},j=({description:e,label:l,url:a,...i})=>(0,t.jsxs)("div",{"data-component":"aio-module-cta",className:"flex items-center gap-spacing/gap/x-sm border-t border-borders/default py-spacing/gap/section-y px-spacing/padding/x",children:[e?.trim()&&(0,t.jsx)("p",{className:"mhg-alpha-typography-body-2 text-text/secondary-lighter",children:e.trim()}),(0,t.jsx)(y.FeLink,{href:a,className:"ml-auto shrink-0",onClick:()=>w(i,{componentType:"button",title:`Footer_${l}`,action:"click",index:0}),children:(0,t.jsx)(N.default,{size:"small",variant:"outline",styleType:"primary",children:l})})]});var T=e.i(943032);let A=({isOpen:e,toggleVisibility:a,iconName:i,className:r,iconClassName:n,children:s,showExpandIcon:o=!0,verticalAlign:d=!1,endIconName:c})=>(0,t.jsx)("div",{role:"button",className:(0,l.default)("box-border rounded-radius/button border p-spacing/gap/soft-12px md:h-10 lg:h-12","transition-all duration-300 ease-linear",{"bg-fill/base text-gray-900":!e,"mhg-alpha-bg-fill-primary-light mhg-alpha-text-fill-primary-dark cursor-pointer":e,"hover:bg-fill/alternative-1 hover:border-borders/default":!e,"border-transparent":!e},r),onClick:a,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),a?.())},tabIndex:0,children:(0,t.jsxs)("div",{className:(0,l.default)("flex w-full items-center gap-spacing/gap/y",{"justify-between":o&&!d,"justify-center":!o&&!d,"justify-start":d}),children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 md:gap-0",children:[!!i&&(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(T.MaterialIcon,{icon:i,className:(0,l.default)(n,"md:mr-spacing/gap/soft-6px md:hidden"),px:18}),(0,t.jsx)(T.MaterialIcon,{icon:i,className:(0,l.default)(n,"md:mr-spacing/gap/soft-6px hidden md:block"),px:22})]}),(0,t.jsx)("span",{className:"mhg-alpha-bullet-1",children:(0,t.jsx)("span",{className:"flex items-center gap-spacing/gap/soft-6px",children:s})})]}),o&&(0,t.jsx)(T.MaterialIcon,{icon:c||"expand_less",className:(0,l.default)("overflow-visible transition-transform",{"rotate-0":e&&!c,"rotate-180":!e&&!c})})]})});e.s(["default",0,A],105370);let k=({id:e,isOpen:a,onToggle:i,children:r,content:n,iconName:s,className:o="",buttonClassName:d="",contentClassName:c="",iconClassName:p=""})=>(0,t.jsxs)("div",{className:o,children:[(0,t.jsx)(A,{isOpen:a,toggleVisibility:()=>{i(a?"":e)},iconName:s,className:d,iconClassName:p,children:r}),(0,t.jsx)("div",{className:(0,l.default)("transition-all duration-200 ease-in-out",{"visible max-h-fit opacity-100":a,"invisible max-h-0 opacity-0 overflow-hidden":!a},c),children:n})]});e.s(["CollapsibleSection",0,k],578197);let L=({faqName:e,items:r,pushDataLayer:n,componentIndex:s})=>{let o=r.filter(e=>e.question?.trim()&&a(e.answer)),[d,c]=(0,i.useState)(()=>o[0]?.id??""),p=(0,i.useRef)(null);if((0,i.useEffect)(()=>{let e=p.current;if(!e||!n)return;let t=t=>{let l=t.target,a=l?.closest?.("a");if(!a||!e.contains(a))return;let i=(a.getAttribute("href")??"").trim();if(!i||i.toLowerCase().startsWith("javascript:"))return;let r=a.closest("li");if(!r)return;let o=Array.prototype.indexOf.call(e.children,r),d=(a.textContent??"").replace(/\s+/g," ").trim();w({pushDataLayer:n,componentIndex:s},{componentType:"text-link",title:`FAQ Accordion_${d}`,action:"click",index:Math.max(0,o)})};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},[n,s]),!o.length)return null;let u=e?.trim();return(0,t.jsxs)("section",{"data-component":"aio-module-faq",className:"flex flex-col gap-spacing/gap/soft-12px",children:[u?(0,t.jsx)("h3",{className:"mhg-alpha-bullet-2 text-text/secondary-lighter",children:u}):null,(0,t.jsx)("ul",{ref:p,className:"flex flex-col gap-spacing/gap/soft-12px",children:o.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsx)(k,{id:e.id,isOpen:d===e.id,onToggle:t=>{w({pushDataLayer:n,componentIndex:s},{componentType:"faq",title:`FAQ Accordion_${e.question?.trim()??""}`,action:t?"expand":"collapse",index:a}),c(t)},buttonClassName:(0,l.default)("!h-auto",{"!bg-fill/alternative-1":d!==e.id}
20),content:(0,t.jsx)(b,{baseTextStyle:"none",className:"px-spacing/padding/x py-spacing/padding/y-sm text-text/primary mhg-alpha-typography-body-1-blog",content:e.answer}),children:e.question})},e.id))})]})};e.i(328419);var S=e.i(424135),E=e.i(489635),R=e.i(334850);e.i(782316);var O=e.i(444101);e.i(201542);var z=e.i(77719);e.i(73430);var I=e.i(316832);let P=e=>{if(!e)return!1;if(e.description?.trim()||e.long_description?.trim()||(e.rate_score??0)>=1||[...e.welcome_offers??[],...e.exclusive_offers??[],...e.bundle_exclusive_offers??[]].filter(Boolean).length)return!0;let{benefits:t,eligibility:l,fees:a,repayment:i}=(0,I.groupProductAttributes)(e);return!!t.length||!!l.length||!!a.length||!!i.length||(e.attributes??[]).some(e=>{if(e?.__typename==="ComponentAttributesAttrPaymentType"||e?.__typename==="ComponentAttributesAttrPaymentNetwork")return Array.isArray(e.value)&&e.value.length>0;if(e?.__typename==="ComponentAttributesAttrKeyValue")return e.name?.name!=="BUNDLE_PRODUCT_OPTIONS"&&(e.value??[]).some(e=>(e?.values??[]).some(e=>!!e?.value));return!1})};e.s(["hasPdpModalContent",0,P],278979);var M=e.i(605122);let D=(0,c.staticText)({aio_module_view_details:{_:"View Details",zh:"æ¥ç詳æ
"},aio_module_related_reading:{_:"Related Reading:",zh:"延伸é±è®ï¼"},aio_module_apply_now:{_:"Apply Now",zh:"ç«å³ç³è«"}}),U=(e,t)=>{if(t?.uid&&e.attributes?.length)return e.attributes.find(e=>e.name?.uid===t.uid)},$=({product:e,highlightTag:l,sharedProductAttribute:a,index:i,pushDataLayer:n,componentIndex:s,slug:o})=>{let{brand:c,lang:p}=(0,r.useCmsClientContext)(),u=(0,d.getClientTranslations)(D,{brand:c,lang:p}),{openModal:m}=(0,z.useProductBlockAsideModal)(),x=((e,t)=>{let l=U(e,t);if(!l)return;let a=(0,I.formatAttributeItemValue)(l,!1,!0);if("string"==typeof a)return/[^\s-]/.test(a)?a:void 0})(e,a),h=((e,t)=>{let l=U(e,t);switch(l?.__typename){case"ComponentAttributesAttrNumber":case"ComponentAttributesAttrNumberRange":return l.additional_information?.trim()||void 0;default:return}})(e,a),g=!!e.url_alias&&P(e),f=l?.trim(),b=(t,l,a,r)=>{n&&(0,S.sendProductAnalytics)({event:t,action:l,componentType:a,componentTitle:`${C}/${r}`,itemListName:o,product:e,index:String(i),pushDataLayer:n,extraData:{component_index:s??"",search_result_parameter:""}})};return(0,t.jsxs)("article",{className:"flex h-full flex-col gap-spacing/gap/soft-12px","data-component":"aio-module-product-card","data-product-id":e.uid??e.entryUID,children:[f&&(0,t.jsx)("div",{className:"rounded-radius/button px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-fill/primary-light",children:(0,t.jsx)("div",{className:"mhg-alpha-typography-bullet-2 text-fill/primary-dark",children:f})}),(0,t.jsxs)("div",{className:"mt-auto flex items-center gap-spacing/gap/x-sm",children:[e.product_image&&(0,t.jsx)(_.CmsImage,{src:e.product_image,alt:e.product_name||"Product image",width:230,sizes:{_:230},height:127,loading:"lazy",className:"h-14 w-24 shrink-0 rounded-radius/button object-contain"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"mhg-alpha-typography-caption text-text/secondary-lighter",children:e.product_name}),x&&(0,t.jsxs)("div",{className:"mt-spacing/padding/soft-4px flex items-center gap-spacing/gap/x-xs",children:[(0,t.jsx)("p",{className:"mhg-alpha-typography-bullet-2 text-text/primary",children:x}),h&&(0,t.jsx)(M.default,{placement:"top",infoClass:"!size-[--shapes-icon-size-sm] text-text/disabled",content:h,onOpen:e=>b("product_interaction","click"===e?S.UserActionEnum.CLICK:S.UserActionEnum.HOVER,S.ComponentTypeEnum.TOOLTIP,`Tooltip_${a?.label??a?.name??""}`)})]})]})]}),(0,t.jsxs)("div",{className:"flex gap-spacing/gap/x-xs",children:[g&&(0,t.jsx)(N.default,{size:"small",variant:"outline",styleType:"neutral-light-and-blue",className:"flex-1",onClick:()=>{b("product_interaction",S.UserActionEnum.CLICK,S.ComponentTypeEnum.PRODUCT_CARD,"Button_View Details"),m(e.url_alias,null)},children:u.aio_module_view_details}),(0,t.jsx)(O.ApplyCtaLink,{product:e,target:"_blank",rel:"noopener noreferrer",className:"flex-1",children:(0,t.jsx)(N.default,{size:"small",variant:"outline",styleType:"cta",className:"w-full",onClick:()=>{R.sessionAttributionTracker.recordApplyClick(),b("product_click_apply",S.UserActionEnum.CLICK,S.ComponentTypeEnum.PRODUCT_CARD,"CTA_Apply Now")},children:(0,E.getApplyButtonLabel)(u.aio_module_apply_now,void 0,e.call_to_action)})})]})]})};var H=e.i(279143);let B=(e,t,{brand:l,langPrefix:a})=>(0,H.getCmsPageLink)({brand:l,langPrefix:a,pageType:t,slug:e.slug??"",vertical:e.section,urlPrefix:e.urlPrefix}),F=(e,t)=>{if(e){if(e.external_article)return{url:e.external_article.url??"",title:e.external_article.subtitle??"",subtitle:e.external_article.description??null};if(e.article)return{url:B(e.article,"article",t),title:e.article.title??"",subtitle:e.article.subtitle??null};if(e.page)return{url:B(e.page,"page",t),title:e.page.title??"",subtitle:e.page.subtitle??null}}};e.s(["getInternalArticleUrl",0,B,"resolveRelevantArticleCard",0,F],499082);let V=({links:e,...l})=>{let{brand:a,lang:n,langPrefix:s}=(0,r.useCmsClientContext)(),o=(0,d.getClientTranslations)(D,{brand:a,lang:n}),c=e.flatMap(e=>{var t;let l,i,r,n=(t={brand:a,langPrefix:s},l=(()=>{switch(e.linkType){case"internal_article":return{url:e.article?B(e.article,"article",t):void 0,label:e.article?.title};case"internal_page":return{url:e.page?B(e.page,"page",t):void 0,label:e.page?.title};case"external":return{url:e.externalUrl,label:e.externalTitle};default:return{}}}
20)(),i=l.url?.trim(),r=l.label?.trim(),i&&r?{id:e.id,url:i,label:r,isExternal:"external"===e.linkType}:void 0);return n?[n]:[]});return c.length?(0,t.jsxs)("p",{"data-component":"aio-module-relevant-articles",className:"mhg-alpha-typography-button-small text-text/secondary-lighter",children:[(0,t.jsxs)("span",{className:"mhg-alpha-bullet-2",children:[o.aio_module_related_reading," "]}),c.map((e,a)=>(0,t.jsxs)(i.Fragment,{children:[a>0&&", ",(0,t.jsx)(y.FeLink,{href:e.url,className:"text-text/link underline",target:e.isExternal?"_blank":void 0,rel:e.isExternal?"noopener noreferrer":void 0,onClick:()=>w(l,{componentType:"text-link",title:`Related Reading_${e.label}`,action:"click",index:a}),children:e.label})]},e.id))]}):null};e.s(["AioModule",0,({title:e,paragraph:i,productsTitle:r,products:n,sharedProductAttribute:s,bannerImage:o,bannerUrl:d,faqName:c,faqItems:p,relevantArticles:u,ctaDescription:m,ctaLabel:x,ctaUrl:h,...g})=>{if(!e?.trim()||!a(i))return null;let f=n.flatMap(e=>e.product?[{...e,product:e.product}]:[]),_=x?.trim(),y=h?.trim(),N=!!(_&&y);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{"data-component":"aio-module",className:"flex flex-col gap-spacing/gap/y",children:[(0,t.jsx)("h3",{className:"mhg-alpha-title-1 text-text/accent",children:e}),(0,t.jsxs)("div",{className:(0,l.default)("flex flex-col gap-spacing/gap/y rounded-t-radius/card border-x-2 border-t-2 border-buttons/primary bg-fill/card px-spacing/padding/x py-spacing/padding/y",{"rounded-b-radius/card border-b-2":!N}),children:[(0,t.jsx)(b,{baseTextStyle:"none",className:"mhg-alpha-typography-body-1-blog text-text/primary",content:i}),f.length>0&&(0,t.jsxs)("section",{"data-component":"aio-module-products",className:"flex flex-col gap-spacing/gap/soft-12px",children:[r?.trim()?(0,t.jsx)("h4",{className:"mhg-alpha-bullet-2 text-text/secondary-lighter",children:r.trim()}):null,(0,t.jsx)("div",{className:(0,l.default)("grid grid-cols-1 gap-spacing/gap/x",{"md:grid-cols-2":f.length>1}),children:f.map((e,l)=>(0,t.jsx)($,{product:e.product,highlightTag:e.highlightTag,sharedProductAttribute:s,index:l,...g},e.id))})]}),o?.url&&d?.trim()&&(0,t.jsx)(v,{image:o,url:d.trim(),showTopDivider:f.length>0}),(0,t.jsx)(L,{faqName:c,items:p,...g}),(0,t.jsx)(V,{links:u,...g})]})]}),_&&y&&(0,t.jsx)("div",{className:"rounded-b-radius/card border-x-2 border-b-2 border-buttons/primary bg-fill/card",children:(0,t.jsx)(j,{description:m,label:_,url:y,...g})})]})}],551103),e.s([],39702);var G=e.i(71613),W=e.i(739323);e.i(627373);var K=e.i(396522),Y=e.i(296218),Q=e.i(576557);let Z=(0,c.staticText)({image_carousel_previous_slide:{_:"Previous slide",zh:"ä¸ä¸é "},image_carousel_next_slide:{_:"Next slide",zh:"ä¸ä¸é "}}),q={_:"100vw",md:1130,lg:1130},X=[360,768,1280],J=[[20,768],[24,1280]],ee="flex items-center justify-center rounded-full bg-fill/card text-buttons/neutral shadow-md size-[20px] md:size-[30px] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-fill/primary",et=e=>!!e.url?.trim(),el="block w-full",ea="Banner Carousel",ei=e=>e.altText?.trim()||"",er=e=>{let t=[...e.product?.exclusive_offers??[],...e.product?.bundle_exclusive_offers??[]],l=(0,S.getRewardCampaignName)(t),a=(0,S.getRewardCampaignId)(t);return{...l?{reward_campaign_name:l}:{},...a?{reward_campaign_id:a}:{}}},en=(e,t,l,a)=>({event:"element_impression",action:a,component_type:S.ComponentTypeEnum.IMAGE_CAROUSEL,component_title:`${ea}/Image_${ei(e)}`,component_index:l??"",index:String(t)});e.s(["ImageCarousel",0,({visible:e,moduleTitle:l,autoscrollInterval:a,slides:n,slug:s,componentIndex:o,pushDataLayer:c})=>{let{brand:p,lang:u,host:m}=(0,r.useCmsClientContext)(),x=(0,d.getClientTranslations)(Z,{brand:p,lang:u}),h=(0,G.useCtaResolver)(),g=e=>({product:e.product,ctaLinkOverride:e.overrideCtaUrl?.trim()||void 0}),f=(0,i.useRef)(null),[b,v]=(0,i.useState)(0),[N,C]=(0,i.useState)(!0);(0,i.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>C(!e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let w=(0,i.useMemo)(()=>n.filter(et),[n]),j=(0,i.useRef)(null),A=(0,Y.useElementInView)(j),k=(0,i.useRef)(new Set);if((0,i.useEffect)(()=>
20{if(!c)return;let e=w[b];!e||k.current.has(e.id)||(k.current.add(e.id),c(en(e,b,o,S.UserActionEnum.LOAD)))},[b,w,o,c]),(0,i.useEffect)(()=>{if(!c||!A)return;let e=w[b];if(!e)return;let t=setTimeout(()=>c(en(e,b,o,S.UserActionEnum.VIEW)),Y.ELEMENT_IMPRESSION_VIEW_DWELL_MS);return()=>clearTimeout(t)},[A,b,w,o,c]),!1===e||0===w.length)return null;let L=w.length>1,E=L&&N,z=l?.trim(),I=e=>{if(!c)return;let t=w[b];t&&c({event:"navigate",component_type:S.ComponentTypeEnum.BUTTON,component_title:`${ea}/${e}_${ei(t)}`,component_index:o??"",action:S.UserActionEnum.CLICK,index:String(b),...er(t)})},P=(e,t)=>{if(!c)return;let l=`${ea}/Image_${ei(e)}`;(e.clickType??"APPLY_CLICK")!=="APPLY_CLICK"?c({event:"navigate",component_type:S.ComponentTypeEnum.IMAGE_CAROUSEL,component_title:l,component_index:o??"",action:S.UserActionEnum.CLICK,index:String(t),...er(e)}):(R.sessionAttributionTracker.recordApplyClick(),e.product?(0,S.sendProductAnalytics)({event:"product_click_apply",action:S.UserActionEnum.CLICK,componentType:S.ComponentTypeEnum.IMAGE_CAROUSEL,componentTitle:l,itemListName:s,product:e.product,index:String(t),pushDataLayer:c,extraData:{component_index:o??""}}):c({...s?{item_list_name:s}:{},event:"product_click_apply",action:S.UserActionEnum.CLICK,component_type:S.ComponentTypeEnum.IMAGE_CAROUSEL,component_title:l,component_index:o??"",product_context_parameter:(0,S.getProductContextParameter)()}))};return(0,t.jsx)("section",{ref:j,className:"w-full","data-component":"image-carousel",children:(0,t.jsxs)("div",{className:"flex w-full flex-col gap-spacing/gap/x-sm",onFocus:()=>{E&&f.current?.autoplay?.stop()},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&E&&f.current?.autoplay?.start()},children:[z&&(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 lg:mhg-alpha-typography-display-2 text-text/primary",children:z}),(0,t.jsx)(K.FeCarouselV2,{onSwiper:e=>{f.current=e,e.on("slideChange",()=>v(e.activeIndex))},slidesPerView:1,beforeInitSlideClassName:"!w-full",rewind:!0,spaceBetween:16,spaceBetweenBreakpoints:J,autoplay:E&&{delay:(a&&a>0?a:5)*1e3,pauseOnMouseEnter:!0,disableOnInteraction:!1},navigation:L?{showOnDesktop:!0,showOnMobile:!0,prevElClassName:"!left-0 -translate-x-1/2",nextElClassName:"!right-0 translate-x-1/2",prevElement:(0,t.jsxs)("button",{type:"button","aria-label":x.image_carousel_previous_slide,className:ee,onClickCapture:()=>I("Previous"),children:[(0,t.jsx)(T.MaterialIcon,{icon:"arrow_back",px:16,className:"block md:hidden"}),(0,t.jsx)(T.MaterialIcon,{icon:"arrow_back",px:24,className:"hidden md:block"})]}),nextElement:(0,t.jsxs)("button",{type:"button","aria-label":x.image_carousel_next_slide,className:ee,onClickCapture:()=>I("Next"),children:[(0,t.jsx)(T.MaterialIcon,{icon:"arrow_forward",px:16,className:"block md:hidden"}),(0,t.jsx)(T.MaterialIcon,{icon:"arrow_forward",px:24,className:"hidden md:block"})]})}:void 0,children:w.map((e,l)=>{let a,i=e.mobileUrl?.trim(),r=(0,t.jsx)(_.CmsImage,{src:e.url??"",alt:e.altText??"",width:1130,height:141,sizes:q,loading:0===l?"eager":"lazy",className:`${i?"aspect-[3/1] h-auto w-full object-cover md:aspect-[8/1] md:object-fill":"aspect-[8/1] h-auto w-full object-fill"} rounded-radius/card-inner`},e.id),n=i?(0,t.jsxs)("picture",{className:"block w-full",children:[(0,t.jsx)("source",{media:"(max-width: 767.98px)",srcSet:(e=>{let t=new Map;for(let l of X){let a=(0,W.getResponsiveUrl)(e,l);t.has(a)||t.set(a,l)}return 1===t.size?[...t.keys()][0]:[...t].map(([e,t])=>`${e} ${t}w`).join(", ")})(i),sizes:"100vw",width:1200,height:400}),r]},e.id):r,s=e.product?h(g(e))||void 0:e.overrideCtaUrl?.trim()||void 0;if(!s)return n;let o="SAME_TAB"===e.linkTarget?"_self":"_blank",d=(a=[..."_blank"===o?["noopener"]:[],...(0,Q.isSameSiteLink)(s,m)?[]:["sponsored"]]).length>0?a.join(" "):void 0,c=(e.clickType??"APPLY_CLICK").toLowerCase();return e.product?(0,t.jsx)(O.ApplyCtaLink,{...g(e),target:o,rel:d,"data-click-type":c,className:el,onClick:()=>P(e,l),children:n},e.id):(0,t.jsx)(y.FeLink,{href:s,target:o,rel:d,"data-click-type":c,className:el,onClick:()=>P(e,l),children:n},e.id)})},E?"autoplay":"static"),L&&(0,t.jsx)("div",{"aria-hidden":"true",className:"flex justify-center gap-spacing/padding/soft-4px text-text/secondary-lighter",children:w.map((e,l)=>{let a=l===b?"radio_button_checked":"radio_button_unchecked";return(0,t.jsxs)("span",{className:"block",children:[(0,t.jsx)(T.MaterialIcon,{icon:a,px:16,className:"block md:hidden"}),(0,t.jsx)(T.MaterialIcon,{icon:a,px:18,className:"hidden md:block"})]},e.id)})})]})})}],878231),e.s([],777095),e.i(28295);var es=e.i(665367);let eo=e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",...e,children:(0,t.jsx)("path",{d:"M16.1826 9.30772L15.1884 10.2737L11.6874 6.77275V17.875H10.3125V6.77275L6.81148 10.2737L5.81726 9.30772L10.9999 4.12504L16.1826 9.30772Z",fill:"#616161"})}),ed=(0,c.staticText)({back_to_top:{_:"Back To Top",zh:"è¿åé 端"}}),ec=({className:e=""})=>{let{lang:l,brand:a}=(0,r.useCmsClientContext)(),i=(0,d.getClientTranslations)(ed,{lang:l,brand:a});return(0,t.jsxs)("button",{type:"button",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:` 21 mhg-alpha-typography-body-1 inline-flex items-center 22 gap-spacing/gap/soft-4px 23 underline 24 transition-colors 25 duration-200 26 text-secondary-lighter 27 ${e} 28 `,children:[(0,t.jsx)(eo,{}),(0,t.jsx)("span",{children:i.back_to_top})]})},ep=({title:e,content:l,articles:a,material_icon:i,id:n,isOpen:s,onToggle:o,pushDataLayer:d})=>{let{brand:c,langPrefix:p}=(0,r.useCmsClientContext)(),u=a?.map(e=>F(e,{brand:c,langPrefix:p})).filter(e=>void 0!==e);return(0,t.jsx)("li",{children:(0,t.jsx)(k,{id:n??"",isOpen:s,onToggle:o,className:"w-full",buttonClassName:"flex items-center w-full justify-between",contentClassName:"",iconClassName:"text-font-size/bullet-1 overflow-visible",iconName:i,content:(0,t.jsxs)(t.Fragment,{children:[l&&(0,t.jsx)(b,{className:"mhg-alpha-typography-body-1 flex flex-col gap-spacing/gap/y-sm p-spacing/padding/soft-12px pt-spacing/padding/y text-colors/neutral-gray-800 [&_ol]:list-decimal [&_ol]:pl-6 [&_ul]:list-disc [&_ul]:pl-6",content:l}),u&&(0,t.jsx)("div",{children:u.map((e,l)=>{if(!e)return null;let a=["faq-article",e.url??"",e.title??"",l].join("_");return(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(es.ArticleComponent,{url:e.url,title:e.title,subtitle:e.subtitle,pushDataLayer:d})},a)})})]}),children:e})})};e.s(["FAQ",0,({titleReq:e,nested_content_elements:l,pushDataLayer:a,onItemToggle:r,backToTopVisible:n=!0})=>{let[s,o]=(0,i.useState)(null);return(0,t.jsx)("div",{className:"",children:(0,t.jsxs)("div",{className:"relative z-10 flex flex-col gap-spacing/gap/y pb-spacing/padding/section-y",children:[(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-gray-900",children:e}
28),(0,t.jsx)("div",{className:"overflow-hidden rounded-radius/card border border-borders/default p-spacing/gap/soft-12px bg-fill/card",children:(0,t.jsx)("ul",{className:"flex flex-col gap-spacing/gap/soft-12px",children:l?.map((e,l)=>{let i=s===e.id;return(0,t.jsx)(ep,{...e,isOpen:i,onToggle:()=>{var t;o(s===(t=e.id??"")?null:t),r?.({isOpen:!i,index:l})},pushDataLayer:a},e.id??`faq-${l}`)})})}),n&&(0,t.jsx)(ec,{})]})})}],576534),e.s([],620568),e.s(["PreComparisonChecklist",0,({moduleTitle:e,items:l})=>{let a=l.filter(e=>e.title?.trim()||e.description?.trim());return e?.trim()&&a.length?(0,t.jsx)("section",{className:"w-full rounded-radius/card border border-borders/default p-spacing/padding/x bg-fill/card",children:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/padding/y-sm",children:[(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:e}),(0,t.jsx)("div",{className:"flex flex-col",children:a.map((e,l)=>(0,t.jsxs)("div",{className:`flex items-start gap-spacing/padding/x-sm py-spacing/padding/y-sm ${l<a.length-1?"border-b border-borders/default":""}`,children:[(0,t.jsx)("div",{className:"flex min-h-8 min-w-8 shrink-0 items-center justify-center rounded-radius/table px-spacing/gap/x-xs py-spacing/gap/y-xs bg-fill/primary-light",children:(0,t.jsx)("span",{className:"mhg-alpha-typography-bullet-1 text-fill/primary-dark",children:String(l+1).padStart(2,"0")})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-spacing/gap/soft-8px",children:[e.title&&(0,t.jsx)("h3",{className:"mhg-alpha-typography-bullet-1 text-fill/primary-dark",children:e.title}),e.description&&(0,t.jsx)("p",{className:"mhg-alpha-typography-body-2-relaxed text-text/secondary-lighter",children:e.description})]})]},e.id||`${e.title}-${l}`))})]})}):null}],592603),e.s([],192466);let eu=(0,c.staticText)({scenario_accordion_module_title:{_:"Which Option Suits You?",zh:"åªåé¸é
æé©åä½ ï¼"}}),em=e=>!!e.emoji?.trim()&&!!e.scenarioText?.trim()&&!!e.answerText?.trim();e.s(["ScenarioAccordion",0,({moduleTitle:e,scenarios:a,pushDataLayer:n,componentIndex:s})=>{let{brand:o,lang:c}=(0,r.useCmsClientContext)(),p=(0,d.getClientTranslations)(eu,{brand:o,lang:c}),u=a.filter(em),[m,x]=(0,i.useState)(u[0]?.id??null);if(u.length<2)return null;let h=e?.trim()||p.scenario_accordion_module_title;return(0,t.jsx)("section",{"data-component":"scenario-accordion",className:"w-full rounded-radius/card border border-borders/default p-spacing/margin/x",children:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/padding/y",children:[(0,t.jsx)("h2",{className:"mhg-alpha-typography-display-1 text-text/primary",children:h}),(0,t.jsx)("div",{className:"flex flex-col gap-spacing/gap/soft-12px",children:u.map((e,a)=>{let i=m===e.id,r=e.scenarioText?.trim()??"",o=e.textLinkLabel?.trim()??"",d=!!e.textLinkEnabled&&!!o&&!!e.textLinkUrl?.trim();return(0,t.jsxs)(k,{id:e.id,isOpen:i,onToggle:e=>{n?.({event:"navigate",component_type:"accordion",component_title:`${h}_${r}`,component_index:s??"",action:i?"collapse":"expand",index:String(a)}),x(e||null)},className:"overflow-hidden rounded-radius/button bg-fill/card",buttonClassName:(0,l.default)("py-spacing/gap/soft-12px px-spacing/padding/soft-12px",{"!bg-fill/primary-light":i,"!bg-fill/alternative-1":!i}),content:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-6px px-spacing/padding/soft-12px py-spacing/gap/soft-12px",children:[(0,t.jsx)("p",{className:"mhg-alpha-typography-body-2-blog text-text/secondary",children:e.answerText}),d&&(0,t.jsx)("a",{href:e.textLinkUrl,onClick:()=>{n?.({event:"navigate",component_type:"text-link",component_title:`${h}/${r}_${o}`,component_index:s??"",action:"click",index:String(a)})},className:"mhg-alpha-typography-button-small w-fit text-fill/primary underline",children:e.textLinkLabel})]}),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"shrink-0",children:e.emoji}),(0,t.jsx)("span",{className:(0,l.default)("mhg-alpha-typography-bullet-1 min-w-0",i?"text-fill/primary-dark":"text-text/primary"),children:`"${e.scenarioText}"`})]},e.id)})})]})})}],471054),e.s([],994441);var ex=e.i(126684);e.s(["QuoteHighlight",0,({title:e,quote:l,reviewLinkText:a,reviewLinkUrl:r,pushDataLayer:n})=>{let s=(0,i.useId)(),o=!!(a&&r);return e||l||o?(a&&!r&&console.warn("QuoteHighlight: reviewLinkUrl is missing, hiding review link."),(0,t.jsx)("section",{"aria-labelledby":e?s:void 0,className:"w-full bg-fill/primary-light px-spacing/padding/section-x py-spacing/padding/section-y",children:(0,t.jsx)("div",{className:"mx-auto flex w-full flex-col md:w-general/narrow-content-max-width-3 md:max-w-general/narrow-content-max-width-3",children:(0,t.jsxs)("div",{className:"flex w-full flex-col items-start gap-spacing/gap/y text-left md:mx-auto md:w-general/narrow-content-max-width-1 md:max-w-general/narrow-content-max-width-1 md:items-center md:text-center",children:[e&&(0,t.jsx)("h2",{id:s,className:"mhg-alpha-typography-display-1 text-fill/primary",children:e}),l&&(0,t.jsx)(u.RichText,{className:"mhg-alpha-typography-body-1-relaxed w-full text-text/primary [&_p]:m-0 [&_a]:pointer-events-none [&_a]:no-underline",children:l}),o&&(0,t.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"mhg-alpha-typography-body-1 inline-flex items-center gap-1 underline text-text/link underline-offset-2 transition-colors hover:text-fill/primary-dark focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-primary focus-visible:ring-offset-2 focus-visible:ring-offset-fill/primary-light",onClick:()=>{n?.({event:"navigate-click"})},children:[(0,t.jsx)("span",{children:a}),(0,t.jsx)(ex.default,{className:"size-shapes/icon-size-md shrink-0"})]})]})})})):null}],752e3),e.s([],467179);let eh={HEADING_1:"h1",HEADING_2:"h2",HEADING_3:"h3",HEADING_4:"h4",HEADING_5:"h5",HEADING_6:"h6"},eg="HEADING_2",ef=({level:e=eg,children:a,className:i,...r})=>{let n=eh[e]||"div";return(0,t.jsx)(n,{className:(0,l.default)("cms-header",i),...r,children:a})};e.s(["Header",0,ef],935532);var eb=e.i(538194),e_=e.i(321346);e.s(["PieceOfContent",0,({title:e,title_size:l,content:a,id:r,anchorId:n,pushDataLayer:s})=>{let o=n?.trim()||void 0,d=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=d.current;if(!e||!s)return;let t=t=>{let l=t.target;if(!(l instanceof Element))return;let a=l.closest("a");if(!a||!e.contains(a))return;let i=(a.getAttribute("href")??"").trim();if(!i||i.toLowerCase().startsWith("javascript:"))return;let r=(a.textContent??"").replace(/\s+/g," ").trim(),n=a.closest("table");if(n&&e.contains(n)){let e=a.closest("td, th"),t=a.closest("tr");s({event:"navigate",component_type:"table",component_title:`Table Text Link_${r}`,action:"click",index:e&&t?`${e.cellIndex}.${Math.max(0,t.rowIndex-1)}`:""});return}s({event:"navigate",component_type:"text-link",component_title:`Inline Text_${r}`,action:"click",index:""})};return e.addEventListener("click",t),()=>e.removeEventListener("click",t)},[s]),(0,t.jsxs)(eb.TheWrapper,{id:r,type:"simple",customFull:"mx-auto w-full",children:[o&&(0,t.jsx)("span",{id:o,className:"block","aria-hidden":"true"}),(0,t.jsxs)("div",{ref:d,className:"flex max-w-page-max flex-col",children:[e&&(0,t.jsx)(ef,{className:"!mb-4 md:!mb-6",level:l??e_.EnumHeadingTextBlock.Heading_3,children:e}),(0,t.jsx)(b,{content:a,className:"text-block-rich-text"})]})]})}],620069),e.s([],433457)},26667,e=>{"use strict";var t=e.i(983865);e.s(["useCarInsuranceCentralModal",0,e=>{let[l,a]=(0,t.useCmsHashState)({carInsuranceCentralModalOpen:"string"}),i="CAR_INSURANCE"===e,r=i&&"true"===l.carInsuranceCentralModalOpen,n=()=>i&&a({carInsuranceCentralModalOpen:"true"}),s=()=>i&&a({carInsuranceCentralModalOpen:void 0});return{isOpen:r,openModal:n,closeModal:s,toggleModal:()=>
28{i&&(r?s():n())}}}])},845234,e=>{"use strict";var t=e.i(843476);e.s(["default",0,function({className:e,color:l}){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:e,children:(0,t.jsx)("path",{d:"M0.916016 23.1535L2.47415 17.4613C1.51267 15.7951 1.00745 13.9063 1.00838 11.9695C1.01115 5.91428 5.93861 0.986816 11.9929 0.986816C14.9309 0.98774 17.6888 2.13209 19.7632 4.20837C21.8367 6.28465 22.9783 9.0444 22.9774 11.9796C22.9746 18.0358 18.0472 22.9632 11.9929 22.9632C10.1549 22.9623 8.3437 22.5014 6.73938 21.6258L0.916016 23.1535ZM7.00908 19.6373C8.55705 20.5563 10.0348 21.1068 11.9892 21.1077C17.021 21.1077 21.12 17.0124 21.1228 11.9778C21.1246 6.93302 17.045 2.84327 11.9966 2.84143C6.96105 2.84143 2.86484 6.93672 2.86299 11.9704C2.86206 14.0254 3.46426 15.5642 4.47561 17.174L3.55293 20.5434L7.00908 19.6373ZM17.5262 14.5907C17.4579 14.4762 17.275 14.4078 16.9998 14.2702C16.7255 14.1326 15.3761 13.4685 15.1239 13.3771C14.8727 13.2856 14.6898 13.2394 14.506 13.5147C14.3232 13.789 13.7967 14.4078 13.6369 14.5907C13.4771 14.7736 13.3164 14.7967 13.0421 14.659C12.7678 14.5214 11.883 14.2323 10.8347 13.2967C10.0191 12.5689 9.46773 11.6702 9.30795 11.395C9.14816 11.1207 9.29132 10.972 9.42802 10.8353C9.55178 10.7124 9.70233 10.5148 9.83995 10.3541C9.97941 10.1952 10.0247 10.0807 10.117 9.89689C10.2085 9.71402 10.1632 9.55331 10.0939 9.41569C10.0247 9.279 9.47604 7.92775 9.24791 7.37821C9.0244 6.84343 8.79811 6.91548 8.63002 6.90716L8.10356 6.89793C7.92068 6.89793 7.62328 6.96627 7.37206 7.24151C7.12084 7.51675 6.4115 8.1799 6.4115 9.53114C6.4115 10.8824 7.39515 12.1874 7.53184 12.3703C7.66946 12.5532 9.46681 15.3259 12.2201 16.5146C12.8749 16.7972 13.3866 16.9662 13.7847 17.0927C14.4423 17.3015 15.0408 17.2719 15.5137 17.2017C16.0411 17.1232 17.1374 16.5377 17.3665 15.8967C17.5955 15.2548 17.5955 14.7052 17.5262 14.5907Z",fill:l})})}])},673827,991879,530391,555471,40828,318653,178457,988823,325063,133762,158189,478910,584782,691905,396805,81476,4446,378885,709929,173954,902894,17710,215710,680554,417903,51970,334286,968677,909418,107781,976728,882578,396466,131336,69872,e=>{"use strict";let t;var l=e.i(843476),a=e.i(343794),i=e.i(271645),r=e.i(892063),n=e.i(26667),s=e.i(702677),o=e.i(845234);e.s(["WhatsappStickyModule",0,({title:e,button_text:t,vertical:d,pushDataLayer:c})=>{let[p,u]=(0,i.useState)(!0),{openModal:m}=(0,n.useCarInsuranceCentralModal)(d);return p?(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:(0,a.default)("fixed inset-x-0 bottom-0 z-30 translate-y-0 scale-100 pb-2 opacity-100 transition duration-500 ease-out sm:pb-5",p?"":"hidden"),children:(0,l.jsx)("div",{className:"mx-auto w-82 md:w-[720px] lg:w-[800px] xl:w-[900px] 2xl:w-[1000px]",children:(0,l.jsx)("div",{className:"rounded-2xl p-3 shadow-lg bg-green-50 lg:rounded-3xl lg:p-4",children:(0,l.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2 sm:gap-4 md:items-center",children:[(0,l.jsx)("div",{className:"flex size-8 items-center justify-center rounded-full bg-[#25D366] md:size-12",children:(0,l.jsx)(o.default,{className:"size-4 text-white md:size-6"})}),(0,l.jsxs)("div",{className:"flex flex-1 flex-col items-start gap-1 sm:w-0 sm:gap-2 md:flex-row md:items-center md:gap-4 lg:gap-6",children:[(0,l.jsx)("p",{className:"mhg-alpha-typography-body-2 text-gray-900",children:e}),(0,l.jsx)(r.default,{variant:"text",className:"mhg-alpha-typography-button-1 shrink-0 cursor-pointer p-0 uppercase text-green-800 hover:text-green-800",onClick:()=>{c&&c({event:"navigate",component_type:"overlay",component_title:"CTA_Contact us",action:"click",index:""}),m()},children:t})]}),(0,l.jsx)("div",{onClick:()=>{u(!1)},role:"button",tabIndex:0,children:(0,l.jsx)(s.default,{className:"mr-0 size-6 text-gray-600 md:mr-4"})})]})})})})}):null}],991879),e.s([],673827),e.s(["EmbeddedScript",0,({html:e})=>{let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let l=t.current;l&&e&&(l.innerHTML=e,l.querySelectorAll("script").forEach(e=>{let t=document.createElement("script");for(let l of e.attributes)t.setAttribute(l.name,l.value);t.text=e.textContent??"",e.replaceWith(t)}))},[e]),(0,l.jsx)("div",{ref:t})}],530391),e.s([],555471);var d=e.i(738878),c=e.i(467074),p=e.i(268606);e.i(174345);var u=e.i(774860),m=e.i(564755),x=e.i(686148);
28let h=(0,x.staticText)({disclaimer_single_trip:{_:"Prices shown are calculated for {article} {duration}-day single trip to {destination} for {travellers}, for reference only. The final premium is confirmed at the point of application.",zh:"以ä¸å¹æ ¼ä»¥{destination}{duration}天宿¬¡æ
ç¨ã{travellers}è¨ç®ï¼å
ä¾åèã實éä¿è²»ä»¥æä¿æä¹å ±å¹çºæºã"},disclaimer_annual_trip:{_:"Prices shown are calculated for an annual multi-trip plan ({region}) for {travellers}, for reference only. The final premium is confirmed at the point of application.",zh:"以ä¸å¹æ ¼ä»¥{region}å
¨å¹´å¤æ¬¡æ
ç¨ã{travellers}è¨ç®ï¼å
ä¾åèã實éä¿è²»ä»¥æä¿æä¹å ±å¹çºæºã"},disclaimer_travellers_single_adult:{_:"1 adult",zh:"1ä½æäºº"},disclaimer_travellers_family:{_:"2 adults and 1 child",zh:"2ä½æäººå1ä½å°ç«¥"}}),g=({insuranceType:e,travelAsFamily:t,destination:a,region:i,endDateOffsetDays:r,className:n="mb-4 text-[--text-secondary]"})=>{let s=(0,u.useCmsClientContext)(),o=(0,m.getClientTranslations)(h,s),d="ANNUAL_PLAN"===e,c=t?o.disclaimer_travellers_family:o.disclaimer_travellers_single_adult,p=d?o.disclaimer_annual_trip:o.disclaimer_single_trip,x=void 0===r?void 0:r+1;if(!(d?!!i:!!a&&void 0!==r))return null;let g=p.replace("{article}",(e=>{if(void 0===e||!Number.isFinite(e))return"a";let t=Math.abs(Math.trunc(e));return 8===t||11===t||18===t||t>=80&&t<=89?"an":"a"})(x)).replace("{duration}",String(x)).replace("{destination}",a??"").replace("{region}",i??"").replace("{travellers}",c);return(0,l.jsx)("p",{className:`${n} font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell`,children:g})};var f=e.i(594999),b=e.i(943032);let _=e=>{let t="right"===e.type?"arrow_right_alt":"arrow_left_alt",i="right"===e.type?-15:void 0,r="left"===e.type?-15:void 0;return(0,l.jsx)("div",{"data-component":"ComparisonTableRuleButton","data-type":e.type,className:(0,a.default)("absolute z-[45] size-[30px] cursor-pointer","items-center justify-center rounded-full shadow-md bg-white",{hidden:!e.show,flex:e.show}),onClick:e.onClick,style:{right:i,left:r,top:"calc(((100% - 72px) / 2) + 72px - 15px)"},children:(0,l.jsx)(b.MaterialIcon,{icon:t,px:18,className:"text-black"})})};e.i(17291);var y=e.i(110243);let v={sm:"120px",md:"129px",lg:"141px",xl:"158px"},N={sm:"150px",md:"178px",lg:"182px",xl:"182px"},C={HOT_REWARD_PICK:"180px",CATALOGUE_ATTRIBUTE:"120px",FREE_TEXT:"120px"},w="px-spacing/padding/y-sm py-spacing/padding/soft-12px",j="p-spacing/padding/soft-12px",T=(0,y.brandSpecific)({_:"bg-fill/primary-light",moneyhero:"bg-[#f3f5fb]"}),A="text-colors/neutral-gray-800",k=({categoryName:e,totalColumns:t})=>(0,l.jsxs)("tr",{role:"row",className:"contents",children:[(0,l.jsx)("td",{role:"cell",className:(0,a.default)("bg-fill/alternative-1","sticky left-0 z-sticky","border-t border-borders/default","min-h-table/cell-min-height",j,"font-font-weight/table-header text-font-size/table-header leading-line-height/table-header","text-text/secondary text-left break-words"),children:e}),t>1&&(0,l.jsx)("td",{role:"cell",className:"bg-fill/alternative-1 border-t border-borders/default [grid-column:2/-1]","aria-colspan":t-1})]});e.i(782316);var L=e.i(444101),S=e.i(440481),E=e.i(424135);let R=({row:e,applyLabel:t,isScrolled:i,pushDataLayer:n,index:s,titleTableBuilder:o,loanSearchParams:d,defaultTripCriteria:c})=>{let{identityCellDisplayVariant:p,identityCellProductRef:u,identityCellNameOverride:m,identityCellCtaOverrideLabel:x,identityCellCtaOverrideUrl:h,identityCellCtaOverrideDestinationType:g,identityCellCtaOverrideTrackingCode:f}=e,b=m||u?.product_name||"",_=("LOGO_NAME_CTA"===p||"LOGO_NAME"===p)&&!!u?.product_image,y=!u,v=y&&!!x&&!!h&&!!f&&!!g,N=y?x:x||u?.call_to_action?.links?.[0]?.label||t,C=y&&"EXTERNAL"===g,w=()=>{if(!n)return;let e=`${o}/CTA_${N}`,t=o?.toLowerCase()?.replace(/\s+/g,"-");y?n({event:"navigate",action:"click",component_type:"table",component_title:e,tracking_code:f??"",destination_type:g??"",itemListName:t}):u&&(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:e,componentType:E.ComponentTypeEnum.TABLE,event:"product_click_apply",index:s,product:u,pushDataLayer:n,itemListName:t})},T=(0,l.jsx)(r.default,{size:"small",styleType:"cta",variant:"outline",className:"whitespace-normal",children:N});return(0,l.jsx)("td",{role:"rowheader",className:(0,a.default)("sticky left-0 z-20","bg-fill/base group-hover/row:bg-fill/base","border-t border-borders/default","min-h-table/cell-min-height",j,"break-words overflow-hidden",{"shadow-[4px_0px_6px_-1px_rgba(0,0,0,0.10)]":i}),children:(0,l.jsxs)("div",{className:"flex h-full flex-col items-start justify-center gap-4",children:[_&&(0,l.jsx)("div",{className:"inline-flex h-8 max-h-10 w-14 max-w-16 items-center justify-center rounded-[5px] border border-borders/default p-[3px]",children:(0,l.jsx)("img",{src:u.product_image,alt:b,className:"size-full rounded-[1px] object-contain"})}
28),(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell","text-text/primary"),children:b}),("LOGO_NAME_CTA"===p||"NAME_CTA"===p)&&(y?v&&(0,l.jsx)(S.FeLink,{href:h,className:"no-underline pb-1.5 md:pb-0",target:C?"_blank":void 0,rel:C?"noopener noreferrer":void 0,onClick:w,children:T}):u&&(0,l.jsx)(L.ApplyCtaLink,{product:u,ctaLinkOverride:h,loanParams:d,e2eCTA:!1,travelDefaults:c,className:"no-underline pb-1.5 md:pb-0",onClick:w,children:T}))]})})};e.i(73430);var O=e.i(43185);let z=(0,x.staticText)({show_more:{_:"Show More",zh:"顯示æ´å¤"},show_less:{_:"Show Less",zh:"顯示é¨å"},apply:{_:"Apply",zh:"ç«å³ç³è«"},product:{_:"Product",zh:"ç¢å"},loan:{_:"Loan",zh:"éè¡/財åå
¬å¸"},loan_basis:{_:"Based on a {amount} loan over {tenure} months.",zh:"ä»¥è²¸æ¬¾é¡ {amount}ï¼é款æ {tenure} åæè¨ç®ã"},eir:{_:"EIR"},hot_reward_pick_title:{_:"ð¥ Hot Reward Pick",zh:"ð¥ ç¨å®¶çè³"},see_full_reward:{_:"See the full reward",zh:"æ¥çææçè³"},discount_off:{_:"off",zh:"ææ£"},module_all_offers:{_:"ð¥ All Offers",zh:"ð¥ ææåªæ "},module_exclusive:{_:"SingSaver Exclusive Offers",zh:"ç¨å®¶çè³"},module_welcome:{_:"Welcome Offers",zh:"è¿æ°åªæ "},module_tnc:{_:"Terms & Conditions",zh:"æ¢æ¬¾åç´°å"},apply_now:{_:"Apply Now",zh:"ç«å³ç³è«"}}),I=(0,x.staticText)({module_exclusive:{_:"MoneyHero Exclusive Offers",zh:"ç¨å®¶çè³"}}),P=(0,x.brandSpecificStaticText)({_:z,moneyhero:I}),M=({loanAmount:e,loanTenure:t})=>{let a=(0,u.useCmsClientContext)(),i=(0,m.getClientTranslations)(P,a);if(!e||!t)return null;let r=`${a.currencyDisplay}${(0,O.formatNumberWithSeparator)({value:e,thousandsSeparator:","})}`;return(0,l.jsx)("p",{className:"mb-spacing/gap/y-xs mhg-alpha-typography-body-2-relaxed text-[--text-secondary]",children:i.loan_basis.replace("{amount}",r).replace("{tenure}",String(t))})},D=({data:e})=>{let t=(0,u.useCmsClientContext)(),i=(0,m.getClientTranslations)(P,t);return(0,l.jsx)("td",{role:"cell",className:(0,a.default)("bg-fill/card group-hover/row:bg-fill/base","border-l border-t border-borders/default","min-h-table/cell-min-height",w,"break-words overflow-hidden"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center gap-spacing/gap/soft-8px",children:[(0,l.jsx)("span",{className:(0,a.default)("text-font-size/table-cell leading-line-height/table-cell",e.highlighted?"font-font-weight/table-cell-strong text-text/accent":"font-font-weight/table-cell-normal text-text/primary"),children:"resolved"===e.result.state?e.result.value.formatted:"-"}),e.effectiveRateText&&(0,l.jsxs)("span",{className:"font-font-weight/caption text-font-size/caption leading-line-height/caption text-text/secondary-lighter",children:[i.eir," ",e.effectiveRateText]})]})})};var U=e.i(478602);let $=({result:e})=>{let t="resolved"===e.state?e.value:void 0,i=(0,u.useCmsClientContext)(),r=(0,m.getClientTranslations)(P,i),n=t?.originalAmount!==void 0&&t?.discountPercent!==void 0,s=(0,U.premiumCurrency)(t,i.currencyDisplay);return(0,l.jsx)("td",{role:"cell",className:(0,a.default)("bg-fill/card group-hover/row:bg-fill/base","border-l border-t border-borders/default","min-h-table/cell-min-height",w,"break-words overflow-hidden"),children:"pending"===e.state?(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center gap-spacing/gap/soft-6px",children:[(0,l.jsx)("span",{className:"h-6 w-20 animate-pulse rounded-radius/button bg-fill/alternative-3"}),(0,l.jsx)("span",{className:"h-3 w-14 animate-pulse rounded-radius/button bg-fill/alternative-3"})]}):t?(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center",children:[(0,l.jsxs)("div",{className:"flex items-baseline gap-0.5",children:[(0,l.jsx)("span",{className:"font-font-weight/caption text-font-size/caption leading-line-height/caption text-text/secondary-lighter",children:s}),(0,l.jsx)("span",{className:"font-font-weight/title-2 text-font-size/title-2 leading-line-height/title-2 text-text/primary",children:(0,U.formatPremiumAmount)(t.amount)})]}),n&&(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-spacing/gap/soft-6px",children:[(0,l.jsxs)("span",{className:"font-font-we
28ight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell text-text/secondary-lighter line-through",children:[s,(0,U.formatPremiumAmount)(t.originalAmount)]}),(0,l.jsx)("div",{className:"text-nowrap rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-highlights/green-light text-highlights/green-dark",children:(0,l.jsxs)("span",{className:"font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell",children:[t.discountPercent,"% ",r.discount_off]})})]})]}):(0,l.jsx)("div",{className:"flex h-full flex-col justify-center",children:(0,l.jsx)("span",{className:"font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell text-text/primary",children:"-"})})})},H=(e,t)=>(e?.list_of_gifts??[]).map(e=>{let l=e.gift?.gift_title;return l&&t.get(l)||l}).filter(e=>!!e);var B=e.i(143087),F=e.i(430569),V=e.i(174080),G=e.i(230038);function W(e){let a=(0,G.useClient)(()=>(t||(t=document.createElement("div"),document.body.appendChild(t)),t));return a?(0,V.createPortal)((0,l.jsx)(l.Fragment,{children:e.children}),a):null}e.s(["Portal",()=>W],40828);var K=e.i(469835);let Y=({children:e})=>(0,l.jsx)("div",{className:"flex w-full items-center gap-spacing/gap/soft-4px rounded-radius/button bg-fill/primary-light px-spacing/padding/soft-8px py-spacing/padding/soft-4px",children:(0,l.jsx)("span",{className:"mhg-alpha-typography-bullet-2 text-fill/primary-dark",children:e})}),Q=({label:e,titles:t})=>0===t.length?null:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Y,{children:e}),(0,l.jsx)("ul",{className:"w-full list-disc ps-6 text-[16px] font-normal leading-[26px] text-text/primary",children:t.map((e,t)=>(0,l.jsx)("li",{className:"py-spacing/padding/soft-6px",children:e},`${e}-${t}`))})]}),Z=({label:e,items:t})=>{let[r,n]=(0,i.useState)(!1),s=(0,i.useId)();return(0,l.jsxs)("div",{className:"rounded-radius/button border border-borders/default bg-fill/alternative-1",children:[(0,l.jsxs)("button",{type:"button",className:"flex w-full cursor-pointer items-start justify-between gap-3 p-spacing/padding/x-sm text-left",onClick:()=>n(!r),"aria-expanded":r,"aria-controls":s,children:[(0,l.jsx)("span",{className:"mhg-alpha-typography-table-cell-primary text-text/primary",children:e}),(0,l.jsx)(b.MaterialIcon,{icon:"expand_less",className:`shrink-0 transition-transform ${r?"rotate-0":"rotate-180"}`})]}),(0,l.jsx)("div",{id:s,className:(0,a.default)("flex flex-col gap-spacing/gap/soft-8px px-spacing/padding/x-sm pb-spacing/padding/x-sm",{hidden:!r}),children:t.map(e=>(0,l.jsx)(K.RichText,{children:e.description},e.uid))})]})},q=({data:e,isOpen:t,onClose:a,pushDataLayer:i,index:n,titleTableBuilder:s})=>{let o=(0,u.useCmsClientContext)(),{brand:d,langPrefix:c}=o,p=(0,m.getClientTranslations)(P,o),{product:x,rewardOffers:h,ctaOverrideUrl:g,ctaOverrideLabel:f,vertical:b,pageType:_}=e,y=f||p.apply_now,v=((e,t=[])=>{let l=new Map(t.filter(e=>!!e.originalTitle&&e.title!==e.originalTitle).map(e=>[e.originalTitle,e.title])),a=e?.exclusiveOffers??[],i=e?.welcomeOffers??[],r=a.flatMap(e=>H(e,l));return{exclusive:r,welcome:i.flatMap(e=>H(e,l)),tnc:[...a,...i].filter(e=>!!e.description).map((e,t)=>({uid:e.uid??`offer-${t}`,description:e.description}))}})(h,e.giftTitles),N=e.productName??x?.product_name??"",C=x?(0,B.resolveCtaUrlForVertical)({brand:d,product:x,vertical:b,pageType:_,langPrefix:c,ctaLinkOverride:g}):g;return(0,l.jsx)(W,{children:(0,l.jsx)(F.AsideModal,{isOpen:t,onClose:a,size:"small",children:(0,l.jsxs)("div",{className:"flex min-h-screen flex-col bg-fill/card",children:[(0,l.jsx)("div",{className:"sticky top-0 z-1 flex flex-col justify-center gap-spacing/gap/soft-12px border-b border-borders/default bg-fill/base px-spacing/padding/x py-spacing/padding/y-sm",children:(0,l.jsx)("div",{className:"flex w-full items-start gap-2 pe-[40px]",children:(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-spacing/padding/soft-6px",children:[(0,l.jsx)("span",{className:"text-[14px] font-semibold leading-[18px] text-fill/primary",children:p.module_all_offers}),N&&(0,l.jsx)("span",{className:"text-[16px] font-semibold leading-[20px] text-text/primary",children:N})]})})}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-spacing/padding/x-sm px-spacing/padding/x py-spacing/padding/section-x",children:[(0,l.jsx)(Q,{label:p.module_exclusive,t
28itles:v.exclusive}),(0,l.jsx)(Q,{label:p.module_welcome,titles:v.welcome})]}),v.tnc.length>0&&(0,l.jsx)("div",{className:"px-spacing/margin/x pb-spacing/gap/section-y",children:(0,l.jsx)(Z,{label:p.module_tnc,items:v.tnc})}),(0,l.jsx)("div",{"aria-hidden":!0,className:"h-30 shrink-0"}),C&&(0,l.jsx)("div",{className:"fixed bottom-0 right-0 z-10 w-full bg-fill/card shadow-[0px_-2px_8px_0px_rgba(0,0,0,0.08)] md:w-[640px] lg:w-[720px]",children:(0,l.jsx)("div",{className:"px-spacing/padding/x py-spacing/margin/y",children:(0,l.jsx)(r.default,{as:"a",href:C,onClick:()=>{i&&x&&(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:`${s}/Hot Reward Module/CTA_${y}`,componentType:E.ComponentTypeEnum.DRAWER,event:"product_click_apply",index:n,product:x,pushDataLayer:i})},styleType:"cta",className:"w-full bg-brand-cta",children:y})})})]})})})},X=({data:e,pushDataLayer:t,index:r,titleTableBuilder:n})=>{let s=(0,u.useCmsClientContext)(),o=(0,m.getClientTranslations)(P,s),[d,c]=(0,i.useState)(!1),p=e.giftTitles.slice(0,2),x=p.length>0;return(0,l.jsxs)("td",{role:"cell",className:(0,a.default)(T.get(s.brand),"border-l border-t border-borders/default","min-h-table/cell-min-height",w,"break-words"),children:[(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center gap-spacing/gap/y",children:[x?(0,l.jsx)("div",{className:"flex flex-col gap-spacing/padding/y-sm",children:p.map(({id:e,title:t},i)=>(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell","text-text/accent"),children:t},`${e}-${i}`))}):(0,l.jsx)("span",{className:"font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell text-text/primary",children:"-"}),x&&(0,l.jsx)("button",{type:"button",onClick:()=>c(!0),className:(0,a.default)("text-left cursor-pointer","text-buttons/primary underline","font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell"),children:o.see_full_reward})]}),x&&d&&(0,l.jsx)(q,{data:e,isOpen:d,onClose:()=>c(!1),pushDataLayer:t,index:r,titleTableBuilder:n})]})};var J=e.i(217725);let ee=({cell:e,heightVariant:t,showMoreLabel:r,showLessLabel:n})=>{let[s,o]=(0,i.useState)(!1),d="LONG_TEXT_EXPAND_COLLAPSE"===e.freeTextType,[c,p]=(0,J.useIsTruncated)({enabled:!s});return(0,l.jsx)("td",{role:"cell",className:(0,a.default)("bg-fill/card group-hover/row:bg-fill/base","border-l border-t border-borders/default","min-h-table/cell-min-height",w,"break-words overflow-hidden"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center gap-spacing/gap/soft-8px",children:[(0,l.jsxs)("div",{ref:c,className:(0,a.default)({"line-clamp-2":"COMPACT"===t&&!d,"line-clamp-4":d&&!s}),children:[(0,l.jsx)(K.RichText,{className:(0,a.default)("font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell","text-text/primary"),baseTextStyle:"none",children:e.text??""}),d&&e.link&&(0,l.jsx)(S.FeLink,{href:e.link.url,className:(0,a.default)("text-fill/primary","font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell"),children:e.link.label})]}),d&&p&&(0,l.jsx)("button",{type:"button","aria-expanded":s,onClick:()=>o(!s),className:(0,a.default)("text-left","font-font-weight/medium text-font-size/table-cell leading-line-height/table-cell","text-text/primary underline cursor-pointer"),children:s?n:r}),!d&&e.link&&(0,l.jsx)(S.FeLink,{href:e.link.url,className:(0,a.default)("text-fill/primary","font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell"),children:e.link.label})]})})},et=({cell:e,heightVariant:t,showMoreLabel:a,showLessLabel:i,pushDataLayer:r,index:n,titleTableBuilder:s})=>{if(e.calculated){var o=e.calculated;switch(o.provider){case"TI_QUOTE":return(0,l.jsx)($,{result:o.result});case"PL_CALCULATOR":return(0,l.jsx)(D,{data:o});default:return null}}return e.hotReward?(0,l.jsx)(X,{data:e.hotReward,pushDataLayer:r,index:n,titleTableBuilder:s}):(0,l.jsx)(ee,{cell:e,heightVariant:t,showMoreLabel:a,showLessLabel:i})};var el=e.i(749968),ea=e.i(316832);let ei={GENERAL:void 0,TRAVEL_INSURANCE:"TI_QUOTE",PERSONAL_LOAN:"PL_CALCULATOR"},er=e=>"CATALOGUE_ATTRIBUTE"===e.type?(0,el.getCalculatedAttributeProvider)(e.attributeKey?.name):void 0;e.s(["TableBuilder",0,e=>{let{anchorId:t,title:r,subtitle:n,heightVariant:s,mode:o="GENERAL",visibilityDesktop:x,visibilityMobile:h,columns:b,rows:y,pushDataLayer:T,defaultTravelAsFamily:L,defaultDestination:S,defaultInsuranceType:E,endDateOffsetDays:O,vertical:z,pageType:I,loanSearchParams:D,defaultRegion:U,loanAmount:$,loanTenure:H}=e,B=t?.trim()||void 0,F={insuranceType:E,travelAsFamily:L,destination:S,region:U,endDateOffsetDays:O},V=(0,u.useCmsClientContext)(),G=(0,m.getClientTranslations)(P,V),W=(0,c.useCalculatedAttributeResolver)(),[K,Y]=(0,i.useState)(!1),[[Q,Z],q]=(0,i.useState)([!1,!1]),X=(0,i.useRef)(null),J=(0,i.useMemo)(()=>y.filter(e=>"STANDARD"===e.rowType),[y]),ee=J.length>8,el=!K&&ee,en=(0,i.useMemo)(()=>el?J.slice(0,8):J,[el,J]),es="TRAVEL_INSURANCE"===o,eo="PERSONAL_LOAN"===o,ed=(0,i.useMemo)(()=>b.map((e,t)=>({column:e,index:t})).filter(({column:e})=>{let t;return void 0===(t=er(e))||t===ei[o]||"TI_QUOTE"!==t}),[b,o]),ec=ed.some(({column:e})=>"TI_QUOTE"===er(e)),ep=ed.length+1,eu=(0,i.useMemo)(()=>!!ec&&en.some(e=>(0,d.hasOrAwaitsValue)(W(f.ATTR_NAMES.TI_PREMIUM_PRICE,e.identityCellProductRef))),[ec,en,W]),em=(0,i.useMemo)(()=>(function(e,t="GENERAL"){let l="TRAVEL_INSURANCE"===t?N:v,a=(t,l,a)=>[t,...e.map(e=>"TI_QUOTE"===er(e)?a:`minmax(${l(e.type)}, 1fr)`)].join(" "),i=e=>C[e]??C.FREE_TEXT;return{sm:a(l.sm,()=>"156px","133px"),md:a(l.md,()=>"180px","163px"),lg:a(l.lg,i,"163px"),xl:a(l.xl,i,"163px"),hasFlexibleTrack:e.some(e=>"TI_QUOTE"!==er(e))}})(ed.map(({column:e})=>e),o),[ed,o]),ex=(0,i.useMemo)(()=>({"--tb-columns-sm":em.sm,"--tb-columns-md":em.md,"--tb-columns-lg":em.lg,"--tb-columns-xl":em.xl}),[em]);(0,i.useEffect)(()=>{let e=X.current;if(!e)return;let t=()=>{let t=e.scrollWidth>e.clientWidth;q([!!e.scrollLeft,t&&e.clientWidth+e.scrollLeft<=e.scrollWidth-10])};t();let l=new ResizeObserver(t);return l.observe(e),()=>l.disconnect()},[]);let eh=(0,i.useCallback)(e=>{let t=e.currentTarget;q([!!t.scrollLeft,t.clientWidth+t.scrollLeft<=t.scrollWidth-10])},[]),eg=0,ef=(0,a.default)({"hidden md:block":x&&!h,"block md:hidden":!x&&h,hidden:!x&&!h});return(0,l.jsxs)("div",{className:ef,id:B,children:[(r||n)&&(0,l.jsxs)("div",{className:"mb-spacing/gap/y flex flex-col gap-spacing/gap/y",children:[r&&(0,l.jsx)("h3",{className:"mhg-alpha-typography-display-1 text-text/primary",children:r}),n&&(0,l.jsx)("p",{className:"mhg-alpha-typography-body-2-relaxed text-[--text-secondary]",children:n})]}),eo&&(0,l.jsx)(M,{loanAmount:$,loanTenure:H}),es&&ec&&eu&&(0,l.jsx)(g,{insuranceType:E,travelAsFamily:L,destination:S?.label,region:U?.label,endDateOffsetDays:O}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:(0,a.default)("scrollbar-none flex flex-col","overflow-hidden rounded-radius
28/table border border-borders/default",{"w-fit max-w-full":!em.hasFlexibleTrack}),children:[(0,l.jsx)("div",{ref:X,className:(0,a.default)("scrollbar-none overflow-auto"),onScroll:eh,children:(0,l.jsxs)("table",{role:"table",className:(0,a.default)("grid w-full min-w-min","[grid-template-columns:var(--tb-columns-sm)]","md:[grid-template-columns:var(--tb-columns-md)]","lg:[grid-template-columns:var(--tb-columns-lg)]","xl:[grid-template-columns:var(--tb-columns-xl)]","group","relative","scrollbar-none"),style:ex,children:[(0,l.jsx)("thead",{role:"rowgroup",className:"contents",children:(0,l.jsxs)("tr",{role:"row",className:"contents",children:[(0,l.jsx)("th",{role:"columnheader",scope:"col",className:(0,a.default)((0,a.default)("bg-fill/alternative-2",A),"z-40 sticky left-0",j,"rounded-tl-radius/table",{"shadow-[4px_0px_6px_-1px_rgba(0,0,0,0.10)]":Q}),children:(0,l.jsx)("div",{className:"flex h-full items-center",children:(0,l.jsx)("span",{className:"font-font-weight/table-header text-font-size/table-header leading-line-height/table-header whitespace-break-spaces break-words text-left",children:eo?G.loan:G.product})})}),ed.map(({column:e},t)=>{let i="HOT_REWARD_PICK"===e.type;return(0,l.jsx)("th",{role:"columnheader",scope:"col",className:(0,a.default)(i?(0,a.default)("bg-fill/primary-light","text-text/accent"):(0,a.default)("bg-fill/alternative-2",A),"z-30 relative",w,"border-l border-borders/default",{"rounded-tr-radius/table":t===ed.length-1}),children:(0,l.jsx)("div",{className:"flex h-full items-center",children:(0,l.jsx)("span",{className:"font-font-weight/table-header text-font-size/table-header leading-line-height/table-header whitespace-break-spaces break-words text-left",children:i?G.hot_reward_pick_title:e.label||e.attributeKey?.label})})},e.id)})]})}),(0,l.jsx)("tbody",{role:"rowgroup",className:"contents",children:y.map((e,t)=>{if("CATEGORY"===e.rowType)return(0,l.jsx)(k,{categoryName:e.categoryName??"",totalColumns:ep},e.id);eg++;let i=!K&&ee&&eg>8;return(0,l.jsxs)("tr",{role:"row",className:(0,a.default)("group/row",i?"hidden":"contents"),children:[(0,l.jsx)(R,{row:e,applyLabel:G.apply,isScrolled:Q,pushDataLayer:T,index:t,titleTableBuilder:r||"Table builder",vertical:z,defaultTripCriteria:F,pageType:I,loanSearchParams:D}),ed.map(({column:a,index:i})=>{let n=function(e,t,l,a={resolveCalculated:()=>void 0}){switch(e.type){case"CATALOGUE_ATTRIBUTE":return function(e,t,l){let a,i=l.mode??"GENERAL";if(void 0!==(a=er(e))&&a===ei[i]?a:void 0){let a=t.identityCellProductRef,i=l.resolveCalculated(e.attributeKey?.name,a);switch(i?.provider){case"TI_QUOTE":return{id:e.id,columnType:e.type,calculated:{provider:"TI_QUOTE",result:i}};case"PL_CALCULATOR":return{id:e.id,columnType:e.type,calculated:{provider:"PL_CALCULATOR",result:i,effectiveRateText:((e,t,l)=>{if(e.attributeKey?.name!==f.ATTR_NAMES.ANNUAL_RATE||"singsaver"!==l.brand)return;let a=l.resolveCalculated?.(f.ATTR_NAMES.APR,t);return a?.state==="resolved"?a.value.formatted:void 0})(e,a,l),highlighted:e.attributeKey?.name===f.ATTR_NAMES.MONTHLY_REPAYMENT}}}}let r=t.identityCellProductRef?.attributes;if(!r||!e.attributeKey?.uid)return{id:e.id,text:"-",columnType:e.type};let n=r.find(t=>t.name?.uid===e.attributeKey.uid);if(!n)return{id:e.id,text:"-",columnType:e.type};let s=(0,ea.formatAttributeItemValue)(n);return{id:e.id,text:s||"-",freeTextType:"TEXT_ONLY",columnType:e.type}}(e,t,a);case"FREE_TEXT":return t.valueCell[l]??{id:e.id,text:"-",columnType:e.type};case"HOT_REWARD_PICK":let i,r;return i=t.valueCell[l],r=t.identityCellProductRef,{id:e.id,columnType:e.type,hotReward:{giftTitles:i?.hotRewardGiftTitles??[],rewardOffers:i?.rewardOffers,ctaOverrideUrl:i?.link?.url||t.identityCellCtaOverrideUrl,ctaOverrideLabel:i?.link?.label||t.identityCellCtaOverrideLabel,product:r,productName:t.identityCellNameOverride||r?.product_name,vertical:a.vertical,pageType:a.pageType}}}return{id:e.id,text:"-",columnType:e.type}}(a,e,i,{vertical:z,pageType:I,mode:o,brand:V.brand,resolveCalculated:W});return(0,l.jsx)(et,{cell:n,heightVariant:s,showMoreLabel:G.show_more,showLessLabel:G.show_less,pushDataLayer:T,index:t,titleTableBuilder:r||"Table builder"},n.id)})]},e.id)})})]})}),el&&(0,l.jsx)("button",{type:"button",className:"col-span-full cursor-pointer overflow-hidden rounded-b-radius/table border-t border-borders/default p-2 bg-white hover:bg-fill/base md:p-3",onClick:()=>Y(!0),children:(0,l.jsx)("div",{className:"flex flex-row items-center gap-2",children:(0,l.jsxs)("div",{className:"mr-2 flex h-auto flex-none items-center gap-1 px-0 font-font-we
28ight/bullet-2 text-buttons/neutral-dark alpha-bullet-2 text-font-size/bullet-2",children:[(0,l.jsx)(p.default,{className:"size-6"}),(0,l.jsxs)("p",{className:"mhg-alpha-typography-bullet-2",children:[G.show_more," (",J.length,")"]})]})})})]}),(0,l.jsx)(_,{type:"left",onClick:()=>{X.current?.scrollTo({left:0,top:0,behavior:"smooth"})},show:Q}),(0,l.jsx)(_,{type:"right",onClick:()=>{X.current?.scrollTo({left:1e4,top:0,behavior:"smooth"})},show:Z})]})]})}],318653),e.s([],178457);let en={HIGH:"bg-highlights/green-light text-highlights/green-dark",MEDIUM:"bg-highlights/orange-light text-highlights/yellow-dark",LOW:"bg-highlights/red-light text-highlights/red-dark",UNKNOWN:"bg-fill/alternative-2 text-[#757575]"},es={HIGH:"bg-highlights/green-dark",MEDIUM:"bg-highlights/yellow-dark",LOW:"bg-highlights/red-dark"},eo={HIGH:"high",MEDIUM:"medium",LOW:"low"},ed=({degree:e="UNKNOWN",isLocked:t,isFresh:r,labels:n,onUnlockClick:s,onClick:o})=>{let d=(0,i.useCallback)(e=>{if(s)return e.preventDefault(),e.stopPropagation(),s(),!1},[s]),c=(0,i.useCallback)(e=>{if(o)return e.preventDefault(),e.stopPropagation(),o(),!1},[o]),p=(0,i.useCallback)(e=>{o&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),e.stopPropagation(),e.repeat||o())},[o]);if(t)return(0,l.jsxs)("button",{type:"button",onClick:d,className:"flex items-center justify-center gap-spacing/gap/soft-4px rounded-radius/tooltip bg-fill/alternative-2 px-spacing/padding/soft-8px py-spacing/gap/soft-6px text-text/secondary-lighter font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell",children:[(0,l.jsx)(b.MaterialIcon,{icon:"lock",px:16,"aria-hidden":!0}),(0,l.jsx)("span",{children:n.unlock})]});let u="UNKNOWN"===e?"-":n[eo[e]],m=!t&&!!o;return(0,l.jsx)("div",{className:"flex min-h-6 items-center",children:(0,l.jsxs)("span",{className:(0,a.default)("inline-flex rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/gap/soft-6px text-font-size/table-cell-primary font-font-weight/table-cell-strong leading-line-height/table-cell-primary justify-center items-center gap-1",en[e],{"opacity-50":!r},{"cursor-pointer":m}),onClick:m?c:void 0,onKeyDown:m?p:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:["UNKNOWN"!==e&&(0,l.jsx)("span",{className:(0,a.default)("size-2.5 rounded-full inline-block",es[e])}),(0,l.jsx)("span",{children:u})]})})};e.s(["ApprovalOddsBadge",0,ed],988823);let ec=(0,x.staticText)({approval_odds:{_:"Approval Odds",zh:"æ¹æ ¸æ©æ"},approval_odds_tooltip:{_:"Approval chances are estimated based on data from users with a similar credit profile. This is indicative only and does not guarantee approval or rejection.",zh:"æ¹æ ¸æ©ææ ¹æèæ¨ç¸ä¼¼ä¿¡è²¸çæ³çç¨æ¶æ¸æä¼°ç®ï¼å
ä¾åèï¼ä¸ä¿èç²æ¹æè¢«æã"},approval_odds_last_updated:{_:"Last updated",zh:"æå¾æ´æ°"},approval_odds_high:{_:"High",zh:"é«"},approval_odds_medium:{_:"Medium",zh:"ä¸"},approval_odds_low:{_:"Low",zh:"ä½"},approval_odds_unlock:{_:"Unlock",zh:"è§£é"}});e.s(["ApprovalOddsTranslations",0,ec],325063),e.s([],133762);var ep=e.i(904942);let eu=(e,t,l)=>{let a=[],i=[...e?.exclusive_offers??[],...e?.bundle_exclusive_offers??[]].flatMap(e=>(e?.list_of_gifts??[]).map(t=>({gift:t,offerUid:e?.uid})));a.push(...i);let r=i.map(e=>e).filter(Boolean);r.sort((e,t)=>Number(t?.gift?.gift?.gift_value?.price??0)-Number(e?.gift?.gift?.gift_value?.price??0));let n=[...e?.welcome_offers?.flatMap(e=>(e?.list_of_gifts??[]).map(t=>({gift:t,offerUid:e?.uid})))??[]];a.push(...n);let s=a.find(t=>t.gift.gift?.uid===e.hot_reward?.uid),o=s?.gift?.gift,d=o?.gift_value?.topup_amount??0;if(o)return{price:(o?.gift_value?.price??0)-d,descriptions:[o?.gift_title],prefix:o?.gift_value?.prefix};let c=[...r,...n].filter(Boolean).filter(e=>{let a=e.gift;if(l)return!0;let i=a.criteria_list??[],r=i?.find(e=>e?.name?.name==="ELIGIBLE_LOAN_RANGE"),n=i?.find(e=>e?.name?.name==="ELIGIBLE_TENURE_RANGE"),s=!0,o=!0;return r&&t&&(s=+(r.value_end??1/0)>=+t.amount&&+(r.value_start??0)<=+t.amount),n&&t&&(o=+(n.value_end??1/0)>=+t.tenure&&+(n.value_start??0)<=+t.tenure),i?.length===0||o&&s}).reduce((e,t)=>
28{let l=e??{offerUids:new Set};return l.offerUids.has(t.offerUid)||(l.price=(l.price??0)+(t?.gift?.gift?.gift_value?.price??0),t?.gift?.gift?.gift_value?.prefix&&(l.prefix=t?.gift?.gift?.gift_value?.prefix),l.descriptions?.length||(l.descriptions=[]),l.offerUids.add(t.offerUid),l.descriptions.push(t.gift.gift?.gift_title)),l},null);return c?.price&&(c.price=c.price-d),c};e.s(["getHighersRewardExclusiveOffersAndWelcomeOffersGitsFromProduct",0,eu],158189);var em=e.i(674686);e.i(397031);var ex=e.i(271159);e.i(472248);var eh=e.i(548719),eg=e.i(425336),ef=e.i(605122);e.i(328419);let eb=e=>{let t="fresh"===e;return{isLocked:!e||!["expired","fresh"].includes(e),isFresh:t}};e.s(["getApprovalOddsStatus",0,eb],478910);let e_={HIGH:0,MEDIUM:1,LOW:2,UNKNOWN:3};function ey(e,t,l,a){let i=l?.odds;if(!a||!i||0===Object.keys(i).length)return e;let r=e=>{let l=t(e);return e_[l?i[l]:void 0]??e_.UNKNOWN};return e.map((e,t)=>({product:e,index:t})).sort((e,t)=>{let l=r(e.product)-r(t.product);return 0!==l?l:e.index-t.index}).map(({product:e})=>e)}e.s(["sortProductsByApprovalOdds",()=>ey],584782);var ev=e.i(945936),eN=e.i(334850),eC=e.i(789450),ew=e.i(968673),ej=e.i(327225);let eT=(e,t)=>{switch(e){case"BANKING":return(0,eC.tr)("product_bka",t);case"INVESTMENTS":return(0,eC.tr)("product_stk",t);case"PERSONAL_LOANS":return(0,eC.tr)("loan",t);case"TRAVEL_INSURANCE":return(0,eC.tr)("product_ti",t);case"CAR_INSURANCE":return(0,eC.tr)("product_ci",t);default:return(0,eC.tr)("card",t)}},eA=["sm","md","lg","xl"],ek=["grid-cols-[var(--table-template-cols)]","md:grid-cols-[var(--table-template-cols-md)]","lg:grid-cols-[var(--table-template-cols-lg)]","xl:grid-cols-[var(--table-template-cols-xl)]"],eL=e=>{if(!e?.length)return[];let t=eA.length-1,l=Math.max(...e.map(e=>eA.findIndex(t=>t===e)??0),0);return[...e.map(e=>`${e===eA[0]?"":`${e}:`}hidden`),...l!==t?[`${eA[l+1]}:block`]:[]]},eS={sm:{S:"80px",M:"104px",L:"128px",FILL:"128px"},md:{S:"96px",M:"112px",L:"128px",FILL:"128px"},lg:{S:"96px",M:"128px",L:"168px",FILL:"minmax(168px, 1fr)"}},eE={CREDIT_CARD:{PRODUCT_NAME:"L",HOT_REWARD_PICK:"M",BRAND_REWARD:"M",EARN_RATE_PERKS:"FILL",PROMO_CODE:"FILL",$CTA:"M"},PERSONAL_LOANS:{PRODUCT_NAME:"L",ANNUAL_INTEREST_RATE:"M",MONTHLY_REPAYMENT:"M",APR:"FILL",PROMO_CODE:"FILL",$CTA:"M",APPROVAL_ODDS:"M",GOOGLE_RATINGS:"L"}},eR=(e,t)=>"PERSONAL_LOANS"!==t?[]:"moneyhero"===e?["MONTHLY_REPAYMENT","TOTAL_INTEREST","APR"]:["MONTHLY_REPAYMENT","ANNUAL_RATE","TOTAL_INTEREST","APR"],eO=(e,t)=>{if(!eS[t])throw Error(`Invalid breakpoint: ${t}`);return eS[t][e]},ez=(e,t,l,a)=>(!a&&eE[e]&&(a=eE[e][t]),a||(a="M"),eO(a,l)),eI=(e,t,l)=>({sm:ez(e,t,"sm",l),md:ez(e,t,"md",l),lg:ez(e,t,"lg",l)});var eP=e.i(450818);let eM=({content:e,placement:t="bottom",onOpenEvent:a="hover",infoClassName:r,infoStyle:n,onClick:s=()=>{},onHover:o=()=>{},rootRef:d})=>{let[c,p]=(0,i.useState)(!1),u=(0,i.useRef)(null),m="click"===a,x="hover"===a,h=e=>{u.current&&!u.current.contains(e.target)&&p(!1)};(0,i.useEffect)(()=>(m&&document.addEventListener("mousedown",h),()=>{m&&document.removeEventListener("mousedown",h)}),[m]);let g="string"==typeof e?(0,l.jsx)("div",{className:"alpha-badge",dangerouslySetInnerHTML:{__html:e}}):e;return(0,l.jsx)(eP.Tooltip,{ref:u,interactive:!0,open:c,content:g,placement:t,className:"absolute left-0 top-0 z-30 min-w-50 max-w-50 cursor-default rounded-lg p-3 text-left shadow bg-white text-black text-sm md:min-w-50 md:max-w-75",children:(0,l.jsx)("span",{ref:d,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),m){c||s(),p(!c);return}s()},onMouseEnter:x?()=>{c||o(),p(!0)}:void 0,onMouseLeave:x?()=>p(!1):void 0,className:r,style:n,children:(0,l.jsx)(b.MaterialIcon,{icon:"info",className:"inline align-bottom",px:18})})})},eD=(0,x.staticText)({loan:{_:"Loan",zh:"貸款"},show_all_banking_products:{_:"Show All Products",zh:"顯示ææéè¡æ¶å£"},show_all_investment_products:{_:"Show All Products",zh:"顯示å
¨é¨èå·å"},sta_bka_bank_gift:{_:"Provider Gift - On Top of Money101",zh:"éè¡åªæ "},offers:{_:"Offers",zh:"ç³è¾¦åéæå®é檻å³äº«æä»¥ä¸åªæ :"},brand_reward:{_:"Money101 Reward",zh:"Money101 ç¨å®¶å¥½ç¦®"},brand_reward_stk_bka:{_:"Money101 Reward",zh:"Money101 好禮å¹å¼"},hot_reward_pick:{_:"Hot Reward Pick",zh:"Money101 ç¨å®¶å¥½ç¦®"},monthly_repayment:{_:"Monthly Repayment",zh:"æ¯æéæ¬¾éé¡"},annual_interest_rate:{_:"Annual Interest Rate",zh:"å¹´å©ç"},eir:{_:"EIR",zh:"總費ç¨å¹´ç¾åç"},MAXIMUM_LOAN_AMOUNT:{_:"Max Loan Amount",zh:"æé«è²¸æ¬¾éé¡"},product_stk:{_:"Product Name",zh:"èå·å"},product_bka:{_:"Product Name",zh:"éè¡å¸³æ¶"}}),eU=(0,x.staticText)({show_all_travel_insurance_products:{_:"Show All Products",zh:"顯示ææç¢å"},show_all_car_insurance_products:{_:"Show All Products",zh:"顯示ææç¢å"},brand_reward:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"},brand_reward_stk_bka:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"},brand_reward_product_modal:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"},brand_reward_product_modal_cc:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"}}),e$=(0,x.staticText)({brand_reward:{_:"Moneymax Reward"},brand_reward_stk_bka:{_:"Moneymax Reward"},brand_reward_product_modal:{_:"Moneymax Reward"},brand_reward_product_modal_cc:{_:"Moneymax Reward"}}),eH=(0,x.staticText)({...ec,no_personal_loans_title:{_:"No Personal Loans Match Your Criteria",zh:"æµåå°ç¬¦åä½ æ¢ä»¶å
ç§äººè²¸æ¬¾è¨å"},no_personal_loans_subtitle:{_:"Try adjusting your loan amount or tenure to see more options.",zh:"試ä¸èª¿æ´ä½ å
貸款é顿鿬¾æï¼å¯è½æææ´å¤é¸æ"},INTRODUCTORY_ANNUAL_RATE:{_:"Introductory Ann. Rate",zh:"æä½è²¸æ¬¾å©ç"},MAXIMUM_LOAN_AMOUNT:{_:"Max Loan Amount",zh:"æé«è²¸æ¬¾é¡"},INTRODUCTORY_MONTHLY_REPAYMENT:{_:"Introductory Monthly Repayment",zh:"æä½æ¯æé款é¡"},apply:{_:"Apply",zh:"ç«å³ç³è«"},card:{_:"Card",zh:"ä¿¡ç¨å¡"},calculateErrorPlaceholderMessage:{_:"Check Provider",zh:"ç¨å¾æ¥ç"},loan:{_:"Loan",zh:"éè¡/財åå
¬å¸"},brand_reward:{_:"SingSaver Reward",zh:"SingSaverç¨å®¶çè³"},brand_reward_stk_bka:{_:"SingSaver Reward",zh:"SingSaverç¨å®¶çè³"},hot_reward_pick:{_:"Hot Reward Pick",zh:"MoneyHeroç¨å®¶çè³"},trending_reward_pick:{_:"Trending Reward",zh:"çé¨å¥å±ç²¾é"},monthly_repayment:{_:"Monthly Repayment",zh:"æ¯æéæ¬¾é¡"},annual_interest_rate:{_:"Annual Interest Rate",zh:"å¹´å©ç"},total_cost_of_loan:{_:"Total Cost of Loan",zh:"ç¸½å©æ¯"},eir:{_:"EIR",zh:"æä½å¯¦éå¹´å©ç"},interest_rate:{_:"Interest rate"},interest_rate_from:{_:"From"},handling_fee:{_:"Handling Fee",zh:"æçºè²»"},ratings_column_header:{_:"Google Ratings",zh:"Google è©å"}
28,why_apply_now:{_:"Highlights",zh:"äº®é»æ¨è¦"},product:{_:"Product",zh:"ç¢å"},product_bka:{_:"Product Name",zh:"éè¡æ¶å£"},product_stk:{_:"Product Name",zh:"æè³æ¶å£"},product_ci:{_:"Product Name",zh:"ä¿éªå
¬å¸"},product_ti:{_:"Product Name",zh:"ä¿éªå
¬å¸"},show_all_cards:{_:"Show All Cards",zh:"æ´å¤ç²¾é¸ä¿¡ç¨å¡"},show_all_travel_insurance_products:{_:"Show All Products"},show_all_car_insurance_products:{_:"Show All Products"},show_all_banking_products:{_:"Show All Products",zh:"顯示ææéè¡æ¶å£"},show_all_investment_products:{_:"Show All Products",zh:"é¡¯ç¤ºæææè³æ¶å£"},show_all_loans:{_:"Show All Loans",zh:"顯示ææè²¸æ¬¾"},row_label_our_pick:{_:"Our Pick",zh:"編輯精é¸"},row_label_exclusive:{_:"Exclusive",zh:"ç¨å®¶"},row_label_ends_soon:{_:"Ends Soon",zh:"å³å°çµæ"},row_label_flash_deal:{_:"Flash Deal",zh:"éææ¶è³¼"},row_label_new:{_:"New",zh:"å
¨æ°ä¸æ¶"}}),eB=(0,x.brandSpecificStaticText)({_:eH,moneyhero:eU,money101:eD,moneymax:e$}),eF=e=>(0,ea.getHotRewardOverrideValue)(e)??(e=>{if(e.hot_reward)return{offerUid:"hot_reward_offerUid",gift:{id:"hot_reward_id",gift:e.hot_reward}};let t=[...e?.exclusive_offers??[],...e?.bundle_exclusive_offers??[]].flatMap(e=>(e?.list_of_gifts??[]).map(t=>({gift:t,offerUid:e?.uid}))),l=t.map(e=>e).filter(Boolean),a=t.find(e=>e.gift.main_gift);return a||(l.sort((e,t)=>Number(t?.gift?.gift?.gift_value?.price)-Number(e?.gift?.gift?.gift_value?.price)),l?.[0]??null)})(e)?.gift?.gift?.gift_title,eV=e=>
28e.replace(/\\n/g," ").trim(),eG=(e,t)=>{let l=eV(e??t??"");return l?`Product List/Tooltip_${l}`:"Product List/Tooltip"};e.s(["getHotRewardDisplayText",0,eF,"getRewardColumnComponentTitle",0,({columnTitle:e,clickText:t})=>`Product List/${eV(e)}_${eV(t)}`,"getTooltipComponentTitle",0,eG],691905);let eW=e=>{let{data:t,slug:n,columns:s,showMore:o,onRowClick:d,isRowSelected:c,translations:u,context:x,pushDataLayer:h,footer:g}=e,f=`table-comparison-${t.length}-length`,b=(0,m.getClientTranslations)({...eB,...u},x),[y,v]=(0,i.useState)(!1),[N,C]=(0,i.useState)(!1),[w,j]=(0,i.useState)(0),T=(0,ew.useDebouncedCallback)(j,50),[A,k]=(0,i.useState)(0),[L,S]=(0,i.useState)(0),[E,R]=(0,i.useState)(0),O=(0,i.useRef)(null),{helpLogic:z,scroll:I}=(0,em.useBreakpoint)({_:{helpLogic:"click",scroll:!0},md:{helpLogic:"click",scroll:!0},lg:{helpLogic:"click",scroll:!0},xl:{helpLogic:"click",scroll:!0},xxl:{helpLogic:"hover",scroll:!1}}),P=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=[k,S,R];["top-page-sticky-content","personal-loan-filter","comparison-table-tabs"].forEach((t,l)=>{let a=e[l],i=document.getElementById(t),r=()=>{i&&a(i.className.includes("sticky")?i.offsetHeight:0)};i&&(new ResizeObserver(r).observe(i),new MutationObserver(r).observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))})},[]),(0,i.useEffect)(()=>{I?T(0):T(L+E+A)},[A,L,E,I]);let{showMoreCount:M,showMoreRender:D,showMoreText:U=b.show_all_cards}=o??{},{visibleData:$,hiddenData:H,isShowMoreAvailable:B,allData:F}=(0,i.useMemo)(()=>{let e=t.filter(Boolean),l=!!(M&&e.length>M),a=!y&&l?e.slice(0,M):e,i=e.length>a.length?e.slice(a.length):[];return{visibleData:a,hiddenData:i,isShowMoreAvailable:l,allData:e}},[t,M,y]),V=!y&&B,G=s[0]?.pinned?s[0]:void 0,W=G?2:1,K=e=>({sticky:e<W,"left-0":0===e}),Y=e=>G&&1===e?{left:G.columnSizes?.sm}:void 0,Q=eA.reduce((e,t,l)=>{let a=t===eA[0]?"":`-${t}`;return{...e,[`--table-template-cols${a}`]:s.filter(e=>!e.hiddenBreakpoints?.includes(t)).map(e=>{let t=l=>e.columnSizes?.[eA[l]]||(0===l?"auto":t(l-1));return t(l)??"auto"}).join(" ")}},{});(0,i.useEffect)(()=>{P.current&&P.current.scrollWidth>P.current.clientWidth+1&&C(!0)},[P,I]);let Z=()=>{O.current&&cancelAnimationFrame(O.current),O.current=requestAnimationFrame(e=>{let t=P?.current?.getBoundingClientRect(),l=A+L+E;return T(P.current&&t&&t?.top>l?0:-(t?.top??0)+l-1),e})};(0,i.useEffect)(()=>{if(!I)return void T(L+A+E);let e=()=>{Z()},t=()=>Z();return window.addEventListener("resize",e),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",t),O.current&&cancelAnimationFrame(O.current)}},[P.current,I,L,E,A]);let q=(0,i.useCallback)(e=>{C(e.clientWidth+e.scrollLeft<=e.scrollWidth-10)},[]),X=(0,i.useCallback)(e=>q(e.currentTarget),[q]);(0,i.useEffect)(()=>{let e=()=>{P.current&&q(P.current)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[q]);let J=(0,i.useMemo)(()=>I?{transform:`translateY(${w}px)`,willChange:"transform"}:{top:w},[I,w]);return $.length?(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:(0,a.default)("scrollbar-none flex flex-col","overflow-hidden rounded-radius/table border border-borders/default lg:overflow-visible"),children:[(0,l.jsx)("div",{ref:P,className:(0,a.default)("scrollbar-none ",{" overflow-y-auto":!!I}),onScroll:X,children:(0,l.jsxs)("table",{id:f,className:(0,a.default)("w-full max-w-full","group","relative","flex-1","overflow-x-auto lg:overflow-x-hidden","scrollbar-none"),style:{...Q,maxWidth:"100%"},children:[(0,l.jsx)("thead",{className:"sticky z-30",style:J,children:(0,l.jsx)("tr",{className:(0,a.default)("grid rounded-t-radius/table",...ek),children:s.map((e,t)=>(0,l.jsx)("th",{style:Y(t),className:(0,a.default)(["bg-fill/alternative-1","z-30","min-h-table/cell-min-height p-spacing/gap/soft-12px",K(t),{"border-l":t>=W,"z-40":t<W,"rounded-tl-radius/table":0===t,"rounded-tr-radius/table":t===s.length-1},eL(e.hiddenBreakpoints),e.getHeaderClassNames?.(e,t)]),children:(0,l.jsxs)("div",{className:(0,a.default)("flex h-full items-center gap-1"),children:[(0,l.jsx)("div",{className:(0,a.default)("font-font-we
28ight/table-header text-font-size/table-header leading-line-height/table-header","text-text/secondary","whitespace-break-spaces text-left"),children:e.header?.replace(/\\n/g,"\n")}),e.headerInfo&&(0,l.jsx)(r.default,{variant:"text",className:"p-1",onClick:()=>{e.headerInfoTrackingTitle?h({event:"navigate",component_type:"tooltip",component_title:e.headerInfoTrackingTitle,component_index:"",action:"click",index:""}):h({event:"interact",location:"comparison-table-head",component_type:"tooltip",component_title:e.headerInfo,action:"click"}),e.onHeaderInfoClick?.()},children:(0,l.jsx)(ef.default,{onOpenEvent:"hover",infoClass:"!text-text/disabled !size-4 md:!size-[18px] lg:!size-[18px]",content:e.headerInfo,holderClasses:["ml-1"],tooltipPaddingClass:"px-spacing/padding/x-sm py-spacing/padding/soft-12px"})})]})},(0,ej.fastHash)({header:e.header,field:e.field,index:t})))},"tr_head")}),(0,l.jsx)("tbody",{children:F.map((e,t)=>{let i=!V&&M&&t===M-1||t===F.length-1,r=c?.(e,t);return(0,l.jsx)("tr",{"data-uid":e.uid,"data-title":e.title,className:(0,a.default)({hidden:!y&&M&&t>=M,"rounded-bl-radius/table rounded-br-radius/table":i},"grid",...ek,"group/row z-40 lg:hover:bg-fill/base"),children:s.map((s,o,c)=>{let p=s.renderHelp?s.renderHelp(e):null;return(0,l.jsx)("td",{onClick:l=>s?.onColumnClick?s?.onColumnClick(l,e,t):d?.(e,t),style:Y(o),className:(0,a.default)("bg-white group-hover/row:bg-fill/base","border-t border-borders/default","z-10","min-h-table/cell-min-height p-spacing/gap/soft-12px",K(o),{"z-20":o<W,"cursor-pointer":!!d,"!bg-fill/primary-light":r&&!s.keepsOwnBackground?.(e),"rounded-bl-radius/table":i&&0===o,"rounded-br-radius/table":i&&o===c.length-1},eL(s.hiddenBreakpoints),s.getCellClassNames?s.getCellClassNames(e,s,t,o):null),children:(0,l.jsx)("div",{className:(0,a.default)("flex h-full items-center",s.getCellDivClassNames?s.getCellDivClassNames(e,s,t,o):null),children:(0,l.jsx)(eK,{slug:n,column:s,datum:e,rowIndex:t,colIndex:o,helpText:p,helpLogic:z,pushDataLayer:h})})},`${e.uid}-${(0,ej.fastHash)({colIndex:o})}`)})},e.uid)})})]})}),V&&(0,l.jsx)("div",{style:{width:"100%"},className:"col-span-full cursor-pointer overflow-hidden rounded-b-radius/table border-t border-borders/default p-2 bg-white hover:bg-fill/base md:p-3",onClick:()=>{v(!0),h({event:"navigate",component_type:"accordion",component_title:"Product List/Show more Cards",action:"expand",index:0})},children:(0,l.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,l.jsxs)("div",{className:"mr-2 flex h-auto flex-none items-center gap-1 px-0 font-font-weight/bullet-2 text-buttons/neutral-dark alpha-bullet-2 text-font-size/bullet-2",children:[(0,l.jsx)(p.default,{className:"size-6"}),(0,l.jsxs)("p",{className:"mhg-alpha-typography-bullet-2",children:[U," (",t.length,")"]})]}),D&&H.map((e,t)=>(0,l.jsx)("div",{children:D(e,t)},(0,ej.fastHash)({uid:e.uid,product_name:e.product_name,index:t})))]})}),g]}),(0,l.jsx)(_,{type:"right",onClick:()=>{P.current?.scrollTo({left:1e4,top:0,behavior:"smooth"})},show:N&&I})]}):(0,l.jsxs)("div",{className:(0,a.default)("rounded-lg border border-borders/default","px-spacing/gap/soft-12px py-spacing/padding/y","min-h-line/height-table-cell bg-fill/card","flex flex-col items-center justify-center gap-1 text-center"),children:[(0,l.jsx)("h3",{className:"mhg-alpha-typography-bullet-1 text-colors/brand-default-primary-dark",children:b.no_personal_loans_title}),(0,l.jsx)("span",{style:{color:"#424242"},className:"font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell",children:b.no_personal_loans_subtitle})]})},eK=({column:e,datum:t,rowIndex:i,colIndex:r,helpText:n,helpLogic:s,pushDataLayer:o,slug:d})=>{let c=s=>(0,l.jsx)("div",{className:(0,a.default)("line-clamp-2 leading-line-height/table-cell",eY(e),e.getCellDivContentClassNames?e.getCellDivContentClassNames(t,e,i,r):null,!!n&&"relative"),children:s});if(e.render)return e.render(t,e,i,r,n?(0,l.jsx)(eM,{placement:"top",onOpenEvent:s,content:n,infoClassName:(0,a.default)("text-secondary-lighter",{inline:!0,"absolute bottom-0 right-0 bg-white group-hover/row:bg-fill/base pl-1":!1}),onClick:()=>{let l=eG(e.header,n);(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:l,componentType:E.ComponentTypeEnum.TOOLTIP,event:"product_interaction",index:i,product:t,pushDataLayer:o,url:d})},onHover:()=>{if("hover"!==s)return;let l=eG(e.header,n);(0,E.sendProductAnalytics)({action:E.UserActionEnum.HOVER,componentTitle:l,componentType:E.ComponentTypeEnum.TOOLTIP,event:"product_interaction",index:i,product:t,pushDataLayer:o,url:d})}}):null,c);return c(e.field?t[e.field]??"":"")},eY=e=>{let t=e.style??"REGULAR";return(0,a.default)({"py-spacing/padding/soft-4px px-spacing/padding/soft-8px bg-fill/primary-light text-fill/primary-dark font-font-we
28ight/table-cell-strong rounded-radius/tooltip":"HIGHLIGHT"===t,"text-fill/primary-dark font-font-weight/table-cell-strong":"STRONG_COLOUR"===t,"text-text/primary font-font-weight/table-cell-strong":"STRONG"===t,"text-text/primary font-font-weight/table-cell-normal":"REGULAR"===t})},eQ=e=>(0,l.jsx)("div",{className:(0,a.default)("cursor-pointer font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell",{"mhg-alpha-btn-text-disabled":!e.isBlackColor}),children:e.text}),eZ={OUR_PICK:{cell:"!bg-colors/campaign-blue-1 border-r border-r-colors/campaign-blue-2",word:"text-colors/campaign-blue-4"},EXCLUSIVE:{cell:"!bg-colors/campaign-red-1 border-r border-r-colors/campaign-red-2",word:"text-colors/campaign-red-4"},ENDS_SOON:{cell:"!bg-colors/campaign-orange-1 border-r border-r-colors/campaign-orange-2",word:"text-colors/campaign-orange-4"},FLASH_DEAL:{cell:"!bg-colors/campaign-yellow-1 border-r border-r-colors/campaign-yellow-2",word:"text-colors/campaign-yellow-4"},NEW:{cell:"!bg-colors/campaign-green-1 border-r border-r-colors/campaign-green-2",word:"text-colors/campaign-green-4"}},eq=({label:e,text:t,lang:i})=>(0,l.jsx)("span",{"data-component":"ComparisonTableRowLabel","data-row-label":e,className:(0,a.default)("block whitespace-nowrap font-bold uppercase leading-none tracking-[0.02em]","[writing-mode:vertical-rl]",i.startsWith("zh")?"text-[12px]":"rotate-180 text-[11px]",eZ[e]?.word),children:t});var eX=e.i(225336);let eJ=(e,t,l)=>{if(!e)return l;let a="";for(let l of e)if(l.attributes_from_meta?.length&&(a=l.attributes_from_meta?.find(e=>e?.attribute?.name===t)?.label))break;return a||l},e0=e=>{switch(e?.__typename){case"ComponentAttributesAttrRichTextEditor":case"ComponentAttributesAttrNumberRange":case"ComponentAttributesAttrNumber":case"ComponentAttributesAttrBoolean":case"ComponentAttributesAttrPlainText":case"ComponentAttributesAttrKeyValue":case"ComponentAttributesAttrJson":return e.name?.name??""}return e?.__typename??""},e1=(e,t,l)=>{let a={modalProductUrlAlias:e,modalProductIdScrollTo:t,...l?{modalProductVertical:l}:{}};return(0,ev.encodeHashParams)(a)};class e2{staticText;vertical;pageType;slug;pushDataLayer;approvalOddsData;onApprovalOddsUnlockClick;onApprovalOddsClick;brand;lang;langPrefix;defaultBaseColumns;constructor(e,t,i,n,s,o,d,c,p){this.staticText=e,this.vertical=t,this.pageType=i,this.slug=n,this.pushDataLayer=s,this.approvalOddsData=d,this.onApprovalOddsUnlockClick=c,this.onApprovalOddsClick=p,this.defaultBaseColumns=[{column:{keyColumn:"BANK_LOGO",nameColumn:eT(this.vertical,this.staticText)},columnSizing:void 0,style:void 0},{column:{keyColumn:"PRODUCT_NAME",nameColumn:""},columnSizing:void 0,style:void 0},{column:{keyColumn:"APPLY_NOW_BUTTON",nameColumn:""},columnSizing:void 0,style:void 0},{column:{keyColumn:"HOT_REWARD",nameColumn:""},columnSizing:void 0,style:void 0},{column:{keyColumn:"REWARD_VALUE",nameColumn:""},columnSizing:void 0,style:void 0}],this.getAdditionalInformation=(e,t)=>{let l=e.find(e=>e0(e)===t);if(!l)return null;switch(l.__typename){case"ComponentAttributesAttrNumberRange":case"ComponentAttributesAttrNumber":return l.additional_information??null;default:return null}},this.getActionColumn=(e,t,i,n)=>{if(i.length&&!i.find(e=>"APPLY_NOW_BUTTON"===e.column.keyColumn))return;let s=i?.find(e=>"APPLY_NOW_BUTTON"===e.column.keyColumn);return{header:"",field:"call_to_action",getCellClassNames:()=>(0,a.default)({"justify-center lg:!p-0":e,"justify-items-end hidden lg:block":!e}),getHeaderClassNames:()=>(0,a.default)({"justify-center lg:!p-0":e,"justify-items-end hidden lg:block":!e}),getCellDivContentClassNames:()=>"w-full",getCellDivClassNames:()=>"w-full",columnSizes:{sm:e?eO(t,"sm"):"0",md:e?eO(t,"md"):"0",lg:e?"0":eO(t,"lg")},style:s?.style,render:(t,i,s,o,d,c)=>{let p=e=>{e.stopPropagation(),eN.sessionAttributionTracker.recordApplyClick(),(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:"Product List/Button_Apply",componentType:E.ComponentTypeEnum.TABLE,event:"product_click_apply",index:s.toString(),product:t,url:this.slug,pushDataLayer:this.pushDataLayer,approvalDegree:t.title?this.approvalOddsData?.odds[t.title]:void 0,approvalDegreeState:this.approvalOddsData?.userState})};return c((0,l.jsx)("div",{className:(0,a.default)("w-full",{"block lg-hidden":e,"hidden lg:block":!e}),children:(0,l.jsx)(L.ApplyCtaLink,{product:t,ctaLinkOverride:t?.override_cta_link,loanParams:n,e2eCTA:t.e2eToogleButton,target:"_blank",rel:"noopener noreferrer",children:(0,l.jsx)(r.default,{size:"small",title:t?.call_to_action?.links?.[0]?.label,styleType:"cta",variant:"outline",className:(0,a.default)("w-full group-hover/row:border-brand-cta group-hover/row:bg-brand-cta group-hover/row:text-white"),onClick:p,children:t?.override_cta_label??this.staticText.apply})})}))}}},this.brand=o.brand,this.lang=o.lang,this.langPrefix=o.langPrefix}GetAttributeList(e,t){return e?.filter((e,t)=>
28t<eX.ATTRIBUTE_COLUMNS_MAX).reduce((e,t)=>t?.attribute?.name?{...e,[t.attribute.name]:{header:t.label||t.attribute.label,size:t.columnSizing,style:t.style}}:e,{})??{}}GetRowLabelColumn(){return{header:"",field:"row_label",style:void 0,pinned:!0,keepsOwnBackground:e=>!!e.row_label,columnSizes:{sm:"24px"},getHeaderClassNames:()=>"!p-0",getCellClassNames:e=>(0,a.default)("!p-0 overflow-hidden",e.row_label&&["!min-h-21",eZ[e.row_label]?.cell]),getCellDivClassNames:()=>"justify-center",render:e=>e.row_label?(0,l.jsx)(eq,{label:e.row_label,text:(0,eC.tr)(`row_label_${e.row_label.toLowerCase()}`,this.staticText),lang:this.lang}):null}}CheckFillSize(e){["sm","md","lg"].forEach(t=>{if(!e.some(e=>e.columnSizes?.[t]?.includes("1fr")))for(let l=e.length-1;l>=0;l--){let a=e[l];if("call_to_action"!==a.field){a.columnSizes[t]="lg"===t?"minmax(auto, 1fr)":`minmax(${a.columnSizes[t]}, 1fr)`;break}}})}GetColumns(e,t,l,a,i,r){let n=t.find(e=>"APPLY_NOW_BUTTON"===e.column.keyColumn),s=this.getActionColumn(!1,n?.columnSizing??r,t,i),o=[...this.getBaseColumns(a,t,i,r),...this.getAttributesColumns(e,l),s].filter(e=>e);return o.length&&this.CheckFillSize(o),o}getBaseColumns(e,t,i,r){return(t.length?t:this.defaultBaseColumns).map(n=>{switch(n.column.keyColumn){case"BANK_LOGO":return{header:n.column.nameColumn,field:"product_image",getHeaderClassNames:()=>"col-span-1 border-r group-[.table-scrolled]:border-r-borders/default !xl:border-r-0 border-r-transparent",getCellClassNames:()=>"border-r group-[.table-scrolled]:border-r-borders/default !xl:border-r-0 border-r-transparent",getCellDivClassNames:()=>"justify-center",columnSizes:n.columnSizing?{sm:eO(n.columnSizing,"sm"),md:eO(n.columnSizing,"md"),lg:eO(n.columnSizing,"lg")}:{sm:"64px",md:"104px"},style:n.style,render:(e,t,i,r,n,s)=>s((0,l.jsx)(ex.CmsImage,{src:e?.product_image??"",alt:e?.product_name??"Product",width:78,height:56,sizes:{_:50,md:78},className:(0,a.default)("max-h-provider/asset-cell-asset-card-height w-provider/asset-cell-asset-card-width max-w-provider/asset-cell-asset-card-width cursor-pointer object-contain")}))};case"PRODUCT_NAME":return{header:n.column.nameColumn,field:"product_name",getCellDivContentClassNames:()=>"line-clamp-none",columnSizes:eI(this.vertical,"PRODUCT_NAME",n.columnSizing),style:n.style,render:(e,t,l,a,i,r)=>e?.product_name?r(e?.product_name):null};case"APPLY_NOW_BUTTON":return this.getActionColumn(!0,n.columnSizing??r,t,i);case"HOT_REWARD":return this.GetTrendingRewardColumn(e,t);case"REWARD_VALUE":return this.GetTotalRewardsColumn(e,t,i);case"APPROVAL_ODDS":return this.GetApprovalOddsColumn(t)}}).filter(e=>!!e)}resolveAttributeCellValue(e,t,a=!0){if(!e)return(0,l.jsx)(eQ,{text:"-"});let i=e.find(e=>e0(e)===t);if(!i)return(0,l.jsx)(eQ,{text:"-"});let r=(0,ea.formatAttributeItemValue)(i,!1,!0,a);return r&&"-"!==r.trim()?r===i.empty_value_text?(0,l.jsx)(eQ,{text:i.empty_value_text,isBlackColor:!0}):r:(0,l.jsx)(eQ,{text:"-"})}findByTypeAndConcatenate(e,t,a,i,r){if(e)return(0,l.jsx)(eQ,{text:(0,eC.tr)("calculateErrorPlaceholderMessage",this.staticText)});if(!t)return(0,l.jsx)(eQ,{text:"-"});let n=t.find(e=>e0(e)===a);if(!n)return(0,l.jsx)(eQ,{text:"-"});let s=(0,ea.formatAttributeItemValue)(n,!1,!0);if(!s)return(0,l.jsx)(eQ,{text:"-"});let o=s===n.empty_value_text?(0,l.jsx)(eQ,{text:n.empty_value_text,isBlackColor:!0}):s,d=i?(0,l.jsxs)(l.Fragment,{children:[" ",i]}):null;if("CARD_BENEFIT"===a&&"string"==typeof o){if(o.includes("%")){let[e,t]=o.split("%");return r((0,l.jsxs)("p",{children:[e,"%",(0,l.jsx)("br",{}),t,d]}))}if(o.includes("/")){let[e,t]=o.split("/"),a=e.trim().split(" "),i=a.pop();return r((0,l.jsxs)("p",{children:[a.join(" "),(0,l.jsx)("br",{}),i," /",t,d]}))}}return"string"==typeof o?r((0,l.jsxs)("span",{children:[o,d]})):r(o)}getAdditionalInformation;getAttributesColumns(e,t){return Object.entries(e).map(([e,l],a)=>"GOOGLE_RATINGS"===e?this.GetRatingsColumn({header:l.header,size:l.size,style:l.style}):{header:l.header,columnSizes:eI(this.vertical,e,l.size),style:l.style,getCellDivContentClassNames:()=>{switch(e){case"MONTHLY_REPAYMENT":if("PERSONAL_LOANS"===this.vertical&&0===a)return"!text-brand-primary-dark !font-font-we
28ight/table-cell-strong";return"";case"CARD_BENEFIT":return"font-font-weight/table-cell-strong";case"ANNUAL_FEE":return"!text-[--text-secondary-lighter]";default:return""}},field:e,render:(l,a,i,r,n,s)=>this.findByTypeAndConcatenate(t,l?.attributes??[],e,n,s),renderHelp:t=>this.getAdditionalInformation(t?.attributes??[],e)})}getActionColumn;GetTotalRewardsColumn(e,t,i){let r=t.find(e=>"REWARD_VALUE"===e.column.keyColumn);if(!r&&t.length&&"PERSONAL_LOANS"!==this.vertical)return;let n=r?.column.nameColumn;n||(n="INVESTMENTS"===this.vertical||"BANKING"===this.vertical?this.staticText.brand_reward_stk_bka:this.staticText.brand_reward);let s=n,o=e=>this.getTotalRewardCell(e,i);return{header:n,columnSizes:eI(this.vertical,"BRAND_REWARD",r?.columnSizing),style:r?.style??"HIGHLIGHT",onColumnClick:(t,l,a)=>e(t,l,a,{columnTitle:s,clickText:o(l)?.text??"-"}),render:(e,t,i,r,n,s)=>{let d=o(e);return d?s((0,l.jsx)(ef.default,{placement:"top",onOpenEvent:"hover",tooltipClass:"px-6",content:(0,l.jsx)("ul",{children:d.descriptions.map(e=>(0,l.jsx)("li",{style:{fontWeight:"var(--font-weight-body-1)"},children:e},e))}),infoClass:"size-4 md:size-[18px] lg:size-[18px]",children:(0,l.jsx)("div",{className:(0,a.default)("font-font-weight/table-cell-strong text-fill/primary-dark text-font-size/table-cell leading-line-height/table-cell","
28whitespace-nowrap",eX.REWARD_CELL_LINK_CLASSES),children:d.text})})):(0,l.jsx)(eQ,{text:"-"})}}}getTotalRewardCell(e,t){let l=eu(e,t,"PERSONAL_LOANS"!==this.vertical);if(!l||!l?.prefix&&!l?.price)return;let a="PERSONAL_LOANS"===this.vertical?l.price?.toLocaleString(this.lang):(0,O.formatNumberWithSeparator)({value:(0,ep.calculateRewardValue)({exclusiveOffers:[...e.exclusive_offers??[],...e.bundle_exclusive_offers??[]],welcomeOffers:e.welcome_offers??[]}),thousandsSeparator:","});return{text:`${(0,O.currencyFormat)(l.prefix)}${a}`,descriptions:l.descriptions}}GetTrendingRewardColumn(e,t){let a=t.find(e=>"HOT_REWARD"===e.column.keyColumn);if(!a&&t.length&&"PERSONAL_LOANS"!==this.vertical)return;let i=a?.column.nameColumn;i||(i="PERSONAL_LOANS"===this.vertical?this.staticText.trending_reward_pick:this.staticText.hot_reward_pick);let r=i;return{header:i,columnSizes:eI(this.vertical,"PERSONAL_LOANS"===this.vertical?"TRENDING_REWARD_PICK":"HOT_REWARD_PICK",a?.columnSizing),style:a?.style,onColumnClick:(t,l,a)=>e(t,l,a,{columnTitle:r,clickText:eF(l)||"-"}),render:(e,t,a,i,r,n)=>{let s=eF(e);return s?n((0,l.jsx)(S.FeLink,{href:e1(e.url_alias,eX.SingSaverRewardsSectionId,this.vertical),className:eX.REWARD_CELL_LINK_CLASSES,children:s})):(0,l.jsx)(eQ,{text:"-"})}}}GetApprovalOddsColumn(e){let t=e.find(e=>"APPROVAL_ODDS"===e.column.keyColumn);if(!t&&e.length)return;let a=this.approvalOddsData,{isLocked:i,isFresh:r}=eb(a?.userState),n={high:(0,eC.tr)("approval_odds_high",this.staticText),medium:(0,eC.tr)("approval_odds_medium",this.staticText),low:(0,eC.tr)("approval_odds_low",this.staticText),unlock:(0,eC.tr)("approval_odds_unlock",this.staticText)},s=this.onApprovalOddsUnlockClick,o=this.onApprovalOddsClick,d=(e,t)=>{e&&(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:"Product List/Approval Odds Column_Unlock",componentType:E.ComponentTypeEnum.TABLE,event:"product_interaction",index:t?.toString()??"",product:e,url:this.slug,pushDataLayer:this.pushDataLayer,approvalDegree:e.title?this.approvalOddsData?.odds[e.title]:void 0,approvalDegreeState:this.approvalOddsData?.userState}),s&&s()},c=(e,t)=>{e&&(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:r?"Product List/Approval Odds Column_Label Details":"Product List/Approval Odds Column_Refresh Expired",componentType:E.ComponentTypeEnum.TABLE,event:"product_interaction",index:t?.toString()??"",product:e,url:this.slug,pushDataLayer:this.pushDataLayer,approvalDegree:e.title?this.approvalOddsData?.odds[e.title]:void 0,approvalDegreeState:this.approvalOddsData?.userState}),o&&o()};return{header:t?.column.nameColumn||(0,eC.tr)("approval_odds",this.staticText),field:void 0,columnSizes:eI(this.vertical,"APPROVAL_ODDS",t?.columnSizing),style:t?.style,headerInfo:(0,eC.tr)("approval_odds_tooltip",this.staticText),headerInfoTrackingTitle:"Product List/Approval Odds Column_Tooltip",onHeaderInfoClick:i?d:c,render:(e,t,s,o,p,u)=>{let m=e.title?a?.odds[e.title]:void 0;return u((0,l.jsx)(ed,{degree:m,isLocked:i,isFresh:r,labels:n,onUnlockClick:()=>d(e,s),onClick:()=>c(e,s)}))}}}GetRatingsColumn(e){return{header:e?.header||(0,eC.tr)("ratings_column_header",this.staticText),field:void 0,columnSizes:eI(this.vertical,"GOOGLE_RATINGS",e?.size),style:e?.style,onColumnClick:e=>{e.stopPropagation()},render:(e,t,a,i,r,n)=>{let s=(0,eg.getGoogleReviewData)(e),o=(0,eg.getGoogleLink)(e);return n(s&&o?(0,l.jsx)(eh.GoogleRating,{rateScore:s.rateScore,rateCount:s.rateCount,productId:e.uid,labelSize:"medium",onClick:()=>(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:"Product List/Review Module_See Review",componentType:E.ComponentTypeEnum.TABLE,event:"product_interaction",index:a.toString(),product:e,url:this.slug,pushDataLayer:this.pushDataLayer,approvalDegree:e.title?this.approvalOddsData?.odds[e.title]:void 0,approvalDegreeState:this.approvalOddsData?.userState,ratingContext:(0,eg.getGoogleRatingContext)(s)})}):(0,l.jsx)(eQ,{text:"-"}))}}}}class e3 extends e2{personalLoanOrder;configuredAttributes;defaultBaseColumns;constructor(e,t,l,a,i,r,n,s,o,d,c){super(e,t,l,a,n,s,o,d,c),this.personalLoanOrder=i,this.configuredAttributes=r,this.defaultBaseColumns=[{
28column:{keyColumn:"BANK_LOGO",nameColumn:eT(this.vertical,this.staticText)},columnSizing:void 0,style:void 0},{column:{keyColumn:"PRODUCT_NAME",nameColumn:""},columnSizing:void 0,style:void 0},{column:{keyColumn:"APPLY_NOW_BUTTON",nameColumn:""},columnSizing:void 0,style:void 0},{column:{keyColumn:"REWARD_VALUE",nameColumn:""},columnSizing:void 0,style:void 0}]}GetColumns(e,t,l,a,i,r){if(this.usesSelfServeAttributes())return super.GetColumns(e,t,l,a,i,r);let n=this.getAttributesColumns(e,l),s=this.getBaseColumns(a,t,i,r);if(!this.personalLoanOrder?.item?.length){let e=eR(this.brand,this.vertical),[l,...a]=n.filter(t=>e.includes(t.field));return[...s.slice(0,-1),l,s[s.length-1],...a,this.getActionColumn(!1,r,t,i)].filter(e=>!!e)}let o=this.getActionColumn(!1,r,t,i),d=this.getActionColumn(!0,r,t,i),c=[];this.personalLoanOrder.item.forEach(e=>{let r;if(e?.column&&e.visible){switch(e.column){case"BANK_LOGO":if(t.length&&!t.find(e=>"BANK_LOGO"===e.column.keyColumn))return;r=s.find(e=>"product_image"===e.field);break;case"PRODUCT_NAME":if(t.length&&!t.find(e=>"PRODUCT_NAME"===e.column.keyColumn))return;r=s.find(e=>"product_name"===e.field);break;case"APPLY_BUTTON":if(t.length&&!t.find(e=>"APPLY_NOW_BUTTON"===e.column.keyColumn))return;r=d;break;case"HOTTEST_REWARD":if(t.length&&!t.find(e=>"HOT_REWARD"===e.column.keyColumn))return;r=this.GetTrendingRewardColumn(a,t);break;case"REWARD_VALUE":if(t.length&&!t.find(e=>"REWARD_VALUE"===e.column.keyColumn))return;r=this.GetTotalRewardsColumn(a,t,i);break;case"ANNUAL_INTEREST_RATE":r=n.find(e=>"ANNUAL_RATE"===e.field);break;case"EFFECTIVE_INTEREST_RATE":r=n.find(e=>"APR"===e.field);break;case"INTEREST_RATE":r=this.GetInterestRateColumn(l);break;case"TOTAL_INTEREST_PAYABLE":r=n.find(e=>"TOTAL_INTEREST"===e.field);break;case"MONTHLY_REPAYMENT":r=n.find(e=>"MONTHLY_REPAYMENT"===e.field);break;case"HANDLING_FEE":r=n.find(e=>"HANDLING_FEE"===e.field);break;case"INTRODUCTORY_ANNUAL_RATE":r=n.find(e=>"INTRODUCTORY_ANNUAL_RATE"===e.field);break;case"MAXIMUM_LOAN_AMOUNT":r=n.find(e=>"MAXIMUM_LOAN_AMOUNT"===e.field);break;case"INTRODUCTORY_MONTHLY_REPAYMENT":r=n.find(e=>"INTRODUCTORY_MONTHLY_REPAYMENT"===e.field);break;case"APPROVAL_ODDS":if(t.length&&!t.find(e=>"APPROVAL_ODDS"===e.column.keyColumn))return;r=this.GetApprovalOddsColumn(t);break;case"GOOGLE_RATINGS":r=this.GetRatingsColumn();break;case"WHY_APPLY_NOW":r=n.find(e=>"WHY_APPLY_NOW"===e.field)}r&&(e.columnSizing&&(r.columnSizes=eI(this.vertical,e.column,e.columnSizing),"APPLY_BUTTON"===e.column&&(r.columnSizes.lg="0"),o?.columnSizes&&"APPLY_BUTTON"===e.column&&(o.columnSizes.lg=ez(this.vertical,e.column,"lg",e.columnSizing))),e.style&&(r.style=e.style),c.push(r))}});let p=c.filter(e=>!!e);return p.length&&this.CheckFillSize(p),o&&p.push(o),p}GetInterestRateColumn(e){return{header:this.staticText.interest_rate,field:"INTEREST_RATE",columnSizes:eI(this.vertical,"INTEREST_RATE",void 0),style:void 0,getCellDivContentClassNames:()=>"line-clamp-none",render:(t,a,i,r,n,s)=>{if(e)return(0,l.jsx)(eQ,{text:(0,eC.tr)("calculateErrorPlaceholderMessage",this.staticText)});let o=t?.attributes??[],d=this.resolveAttributeCellValue(o,"ANNUAL_RATE",!1);return s((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-font-size/table-cell-primary font-font-weight/table-cell-primary leading-line-height/table-cell-primary text-text/primary",children:"string"==typeof d?`${this.staticText.interest_rate_from} ${d}`:d}),(0,l.jsxs)("div",{className:"font-font-weight/table-cell-normal text-text/secondary-lighter",children:[this.staticText.eir," ",this.resolveAttributeCellValue(o,"APR",!1)]})]}))}}}GetAttributeList(e,t){return this.usesSelfServeAttributes()?this.GetSelfServeAttributeList(this.configuredAttributes??[],t):this.GetDerivedAttributeList(t)}usesSelfServeAttributes(){return!this.personalLoanOrder?.item?.length&&!!this.configuredAttributes?.some(e=>e?.attribute?.name)}plDefaultHeaders(){return{MONTHLY_REPAYMENT:this.staticText.monthly_repayment,ANNUAL_RATE:this.staticText.annual_interest_rate,TOTAL_INTEREST:this.staticText.total_cost_of_loan,APR:this.staticText.eir,HANDLING_FEE:this.staticText.handling_fee,INTRODUCTORY_ANNUAL_RATE:this.staticText.INTRODUCTORY_ANNUAL_RATE,MAXIMUM_LOAN_AMOUNT:this.staticText.MAXIMUM_LOAN_AMOUNT,INTRODUCTORY_MONTHLY_REPAYMENT:this.staticText.INTRODUCTORY_MONTHLY_REPAYMENT,WHY_APPLY_NOW:this.staticText.why_apply_now}}GetDerivedAttributeList(e){return Object.entries(this.plDefaultHeaders()).reduce((t,[l,a])=>({...t,[l]:{header:eJ(e,l,a),size:void 0,style:void 0}}),{})}GetSelfServeAttributeList(e,t){let l=this.plDefaultHeaders();return(e??[]).filter((e,t)=>
28t<eX.ATTRIBUTE_COLUMNS_MAX).reduce((e,a)=>{let i=a?.attribute?.name;return i?{...e,[i]:{header:a.label||eJ(t,i,a.attribute?.label||l[i]||""),size:a.columnSizing,style:a.style}}:e},{})}}let e4={Apply:"S",Buy:"S",æä¿:"S",ç«å³ç³è«:"M","Buy Now":"M",ç«å³æä¿:"M","Check Price":"L"};e.s(["ComparisonTable",0,e=>{let t,{tableConfig:{attributes:a,baseColumnOrder:r,personal_loan_order:n,maxVisibleProducts:s},products:o,calculateError:d=!1,vertical:c,loanSearchParams:p,slug:x,activeAttribute:h,onRewardColumnClick:g,onRowClick:f,isRowSelected:b,pushDataLayer:_,approvalOddsData:y,sortByApprovalOdds:v,onApprovalOddsUnlockClick:N,onApprovalOddsClick:C,footer:w}=e,j=c??"CREDIT_CARD",T=(0,u.useCmsClientContext)(),{brand:A,lang:k}=T,{pageType:L}=e,S=(0,m.getClientTranslations)(eB,{brand:A,lang:k}),E=r??[],R=(0,i.useMemo)(()=>0===h.length?a:a?.filter(e=>h.includes(e.attribute?.name)),[a,h]),O=(0,i.useMemo)(()=>{let e,t,l,i,r,s,o,d,c,p,u;return e=j,t=S,l=L,i=x??"",r=n,s=a,o=_,d=T,c=y,p=N,u=C,"PERSONAL_LOANS"===e?new e3(t,e,l,i,r,s,o,d,c,p,u):new e2(t,e,l,i,o,d,c,p,u)},[S,j,L,x,n,a,T,y,N,C]),z=(0,i.useMemo)(()=>O.GetAttributeList(R??[],o??[]),[R,o,O,E]),I=(0,i.useMemo)(()=>{let e;if("PERSONAL_LOANS"!==j)e=o??[];else{let t=eR(T.brand,j);e=(o??[]).filter(e=>{if(d)return!0;let l=e.attributes?.filter(e=>!e.value);return!l?.some(e=>!!e.name?.name&&!!t.find(t=>t===e.name?.name))})}return ey(e,e=>e.title,y,v)},[o,z,j,d,T.brand,y,v]),P=(0,i.useMemo)(()=>{let e={S:1,M:2,L:3,FILL:4};return I.map(e=>e?.override_cta_label??S.apply).map(e=>e4[e]??"M").sort((t,l)=>e[l]-e[t])[0]??"M"},[I,S]),M=I.some(e=>!!e.row_label),D=(0,i.useMemo)(()=>{let e=O.GetColumns(z,E,d,g,p,P);return M?[O.GetRowLabelColumn(),...e]:e},[R,d,O,g,p,P,M]),U={data:I,context:T,translations:{},onRowClick:f,isRowSelected:b,slug:x,showMore:{showMoreText:(t=S,{BANKING:(0,eC.tr)("show_all_banking_products",t),INVESTMENTS:(0,eC.tr)("show_all_investment_products",t),PERSONAL_LOANS:(0,eC.tr)("show_all_loans",t),CREDIT_CARD:(0,eC.tr)("show_all_cards",t),TRAVEL_INSURANCE:(0,eC.tr)("show_all_travel_insurance_products",t),CAR_INSURANCE:(0,eC.tr)("show_all_car_insurance_products",t),INSURANCE:(0,eC.tr)("show_all_cards",t),TELCO:(0,eC.tr)("show_all_cards",t),PERSONAL_FINANCE:(0,eC.tr)("show_all_cards",t)}
28)[j]??(0,eC.tr)("show_all_cards",S),showMoreCount:s,showMoreRender:e=>(0,l.jsx)(ex.CmsImage,{sizes:{_:38},src:e?.product_image??"",alt:e?.product_name??S.product,width:38,height:24,className:"h-6 w-auto max-w-8 cursor-pointer object-contain md:max-w-[38px]"})},columns:D,pushDataLayer:_,footer:w};return(0,l.jsx)(eW,{...U})},"createGoToLink",0,e1],396805);let e6=({result:e})=>{let{currencyDisplay:t}=(0,u.useCmsClientContext)(),a=e?.provider==="TI_QUOTE"?e:void 0,i=a?.state==="resolved"?a.value:void 0,r=(0,U.premiumCurrency)(i,t);if(!i)return a?.state==="pending"?(0,l.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:[(0,l.jsx)("span",{className:"h-5 w-16 animate-pulse rounded-radius/button bg-fill/alternative-3"}),(0,l.jsx)("span",{className:"h-3 w-12 animate-pulse rounded-radius/button bg-fill/alternative-3"})]}):(0,l.jsx)("span",{className:"font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell text-text/primary",children:"-"});let n=void 0!==i.originalAmount&&i.originalAmount>i.amount;return(0,l.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-4px",children:[(0,l.jsxs)("div",{className:"flex items-baseline gap-0.5 whitespace-nowrap",children:[(0,l.jsx)("span",{className:"font-font-weight/caption text-font-size/table-cell leading-line-height/table-cell text-text/secondary-lighter",children:r}),(0,l.jsx)("span",{className:"font-font-weight/table-cell-primary text-font-size/table-cell-primary leading-line-height/table-cell-primary text-text/primary",children:(0,U.formatPremiumAmount)(i.amount)})]}),n&&(0,l.jsxs)("span",{className:"font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell text-text/secondary-lighter line-through whitespace-nowrap",children:[r,(0,U.formatPremiumAmount)(i.originalAmount)]})]})},e5={card:{_:"Card",zh:"ä¿¡ç¨å¡"},loan:{_:"Loan",zh:"éè¡/財åå
¬å¸"},product_bka:{_:"Product Name",zh:"éè¡æ¶å£"},product_stk:{_:"Product Name",zh:"æè³æ¶å£"},product_ci:{_:"Product Name",zh:"ä¿éªå
¬å¸"},product_ti:{_:"Product Name",zh:"ä¿éªå
¬å¸"}},e8=(0,x.staticText)({...e5,...ec,title:{_:"â¡ Quick Answer",zh:"â¡ å¿«éè§£ç"},default_anchor_label:{_:"See Full Comparison Below",zh:"æ¥ç宿´æ¯è¼"},na:{_:"-",zh:"-"},more_label:{_:"More:",zh:"æ´å¤ï¼"},brand_reward:{_:"MoneyHero Reward",zh:"MoneyHeroç¨å®¶çè³"},brand_reward_stk_bka:{_:"MoneyHero Reward",zh:"MoneyHeroçè³å¹å¼"},trending_reward_pick:{_:"Trending Reward",zh:"ç±éçè³ç²¾é¸"},hot_reward_pick:{_:"Hot Reward Pick",zh:"ç±éçè³ç²¾é¸"}}),e7=(0,x.staticText)({...e5,...ec,title:{_:"â¡ Quick Answer"},default_anchor_label:{_:"See Full Comparison Below"},na:{_:"-"},more_label:{_:"More:"},brand_reward:{_:"SingSaver Reward",zh:"SingSaverç¨å®¶çè³"},brand_reward_stk_bka:{_:"SingSaver Reward",zh:"SingSaverç¨å®¶çè³"},trending_reward_pick:{_:"Trending Reward"},hot_reward_pick:{_:"Hot Reward Pick"}}),e9=(0,x.brandSpecificStaticText)({_:e8,singsaver:e7}),te=(e,t)=>{if(t.attribute?.uid&&e.attributes?.length)return e.attributes.find(e=>e.name?.uid===t.attribute.uid)},tt="w-[156px] md:w-[168px] lg:w-[184px] xl:w-[206px]",tl=/<span class="cms-dvr-value" data-dvr-value="true">(.*?)<\/span>/gs,ta=e=>e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&"),ti="w-[133px] min-w-[133px] max-w-[133px] md:w-[163px] md:min-w-[163px] md:max-w-[163px]";e.s(["QuickAnswer",0,e=>{let{products:t,attributes:r,anchorId:n,anchorLabel:s,baseColumnOrders:o=[],nudgeTitle:p,nudgeDescription:x,exploreLinks:h,displayMode:f,summaryPoints:y=[],vertical:v,approvalOddsData:N,onApprovalOddsUnlockClick:C,onApprovalOddsClick:w,pushDataLayer:j,onProductClick:T,onRewardCellClick:A,slug:k,mode:L="GENERAL",defaultInsuranceType:R,defaultTravelAsFamily:z,defaultDestination:I,defaultRegion:P,endDateOffsetDays:M}=e,D="Summary"===f,U=y.map(e=>e.itemAnchorId?.trim()??"").join("|"),[$,H]=(0,i.useState)([]);(0,i.useEffect)(()=>{if(!D)return;let e=()=>{let e=U.split("|").filter(e=>{if(!e)return!1;let t=document.getElementById(e);return!t||!!t.checkVisibility&&!t.checkVisibility()});H(t=>t.length===e.length&&t.every((t,l)=>t===e[l])?t:e)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[D,U]);let B=(0,u.useCmsClientContext)(),{lang:F}=B,V=(0,m.getClientTranslations)(e9,B),G="TRAVEL_INSURANCE"===L,W=(0,c.useCalculatedAttributeResolver)(),K=e=>"TI_QUOTE"===(0,el.getCalculatedAttributeProvider)(e.attribute?.name),Y=G?e.attributes.find(K):void 0,Q=(0,i.useMemo)(()=>{let e=Y?.attribute?.name;return!!e&&t.some(t=>(0,d.hasOrAwaitsValue)(W(e,t)))},[Y,t,W]),Z=G?r:r.filter(e=>!K(e)),q=Z.findIndex(e=>!K(e)),X=eT(v??"CREDIT_CARD",V),J={high:V.approval_odds_high,medium:V.approval_odds_medium,low:V.approval_odds_low,unlock:V.approval_odds_unlock}
28,ee=(0,em.useBreakpoint)({_:"click",xxl:"hover"}),et=(0,i.useRef)(null),[[ei,er],en]=(0,i.useState)([!1,!1]);(0,i.useEffect)(()=>{let e=et.current;if(!e)return;let t=()=>{let t=e.scrollWidth>e.clientWidth;en([!!e.scrollLeft,t&&e.clientWidth+e.scrollLeft<=e.scrollWidth-10])};t();let l=new ResizeObserver(t);return l.observe(e),()=>l.disconnect()},[]);let es=(0,i.useCallback)(e=>{let t=e.currentTarget;en([!!t.scrollLeft,t.clientWidth+t.scrollLeft<=t.scrollWidth-10])},[]),eo=n?.trim()||void 0,ec=s?.trim()||void 0,ex=eo?ec??V.default_anchor_label:void 0,eh=p?.trim()||void 0,eg=x?.trim()||void 0,ef=!!(eh||eg),eb=h?.filter(e=>e.linkLabel?.trim());return(0,l.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y",children:[(0,l.jsx)("h3",{className:"mhg-alpha-typography-display-1 text-text/primary",children:V.title}),D&&(0,l.jsx)("dl",{className:"overflow-hidden rounded-radius/table border border-borders/default",children:y.map((e,t)=>{let i=t===y.length-1,r=e.itemAnchorId?.trim()||void 0,n=r&&!$.includes(r)?r:void 0,s=(0,a.default)("min-w-0 break-words","font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell","text-text/link");return(0,l.jsxs)("div",{className:(0,a.default)("flex",{"border-b border-borders/default":!i}),children:[(0,l.jsx)("dt",{className:"flex w-30 min-w-0 shrink-0 items-center bg-fill/primary-light px-spacing/padding/x-sm py-spacing/padding/y-sm md:w-general/2-col-width",children:n?(0,l.jsx)("a",{href:`#${n}`,onClick:l=>{let a;l.preventDefault(),j?.({event:"navigate",component_type:"table",component_title:`Summary/Quick Answer_${e.itemTitle.trim()}`,action:"click",index:t.toString()}),(a=document.getElementById(n))&&a.scrollIntoView({behavior:"smooth"})},className:(0,a.default)(s,"underline"),children:e.itemTitle}):(0,l.jsx)("span",{className:s,children:e.itemTitle})}),(0,l.jsx)("dd",{className:"flex min-w-0 flex-1 items-center bg-fill/card px-spacing/padding/x-sm py-spacing/padding/y-sm",children:(0,l.jsx)("span",{className:(0,a.default)("min-w-0 break-words","font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell","text-text/primary"),children:(e=>{let t;if(!e.includes("cms-dvr-value"))return e;let a=[],i=0,r=0;for(tl.lastIndex=0;null!==(t=tl.exec(e));)t.index>i&&a.push(e.slice(i,t.index)),a.push((0,l.jsx)("span",{className:"font-bold text-text/accent",children:ta(t[1])},r++)),i=t.index+t[0].length;return i<e.length&&a.push(e.slice(i)),a})(e.itemText)})})]},e.id)})}),!D&&(0,l.jsxs)("div",{className:"isolate flex flex-col gap-spacing/gap/y-sm",children:[Q&&(0,l.jsx)(g,{className:"text-text/primary",insuranceType:R,travelAsFamily:z,destination:I?.label,region:P?.label,endDateOffsetDays:M}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:(0,a.default)("overflow-hidden rounded-radius/table border border-borders/default"),children:[(0,l.jsx)("div",{ref:et,className:"overflow-x-auto",onScroll:es,children:(0,l.jsxs)("table",{className:"w-full border-collapse",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"bg-fill/alternative-1",children:[(0,l.jsx)("th",{className:(0,a.default)("sticky left-0 z-10 bg-fill/alternative-1","min-w-30 px-spacing/padding/x py-spacing/padding/soft-12px text-left align-middle",tt),children:(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/table-header text-font-size/table-header leading-line-height/table-header","text-text/secondary"),children:X})}),o.map((e,t)=>{let i=e.nameColumn;if(!i)switch(e.keyColumn){case"REWARD_VALUE":i="INVESTMENTS"===v||"BANKING"===v?V.brand_reward_stk_bka:V.brand_reward;break;case"HOT_REWARD":i="PERSONAL_LOANS"===v?V.trending_reward_pick:V.hot_reward_pick;break;case"APPROVAL_ODDS":i=V.approval_odds}return(0,l.jsx)("th",{className:(0,a.default)("bg-fill/alternative-1","min-w-30 px-spacing/padding/x py-spacing/padding/soft-12px text-left align-middle",tt),children:(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/table-header text-font-size/table-header leading-line-height/table-header","text-text/secondary whitespace-break-spaces"),children:i})},e.id??`${e.keyColumn}-${t}`)}),Z.map(e=>(0,l.jsx)("th",{className:(0,a.default)("p-spacing/padding/soft-12px text-left align-middle",G&&K(e)?ti:"min-w-30"),children:(0,l.jsx)("span",{className:(0,a.default)("font-font-we
28ight/table-header text-font-size/table-header leading-line-height/table-header","text-text/secondary whitespace-break-spaces"),children:e.label})},e.id))]})}),(0,l.jsx)("tbody",{children:t.map((e,t)=>{let i=!!e.url_alias,r=e.product_name??e.title??"";return(0,l.jsxs)("tr",{className:"bg-fill/card border-b border-borders/default",children:[(0,l.jsx)("td",{className:(0,a.default)("sticky left-0 z-1 bg-fill/card align-middle","min-h-table/cell-min-height px-spacing/padding/x py-spacing/padding/y-sm",tt),children:i?(0,l.jsx)("button",{type:"button",onClick:()=>T(e,t),className:(0,a.default)("text-left","font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell","text-text/link underline"),children:r}):(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell","text-text/primary"),children:r})}),o.map((i,r)=>(0,l.jsx)("td",{className:(0,a.default)("min-h-table/cell-min-height p-spacing/padding/soft-12px",tt),children:(({column:e,product:t,rowIndex:i,vertical:r,lang:n,onRewardCellClick:s,naText:o,approvalOdds:d})=>{let c=(0,a.default)("inline-flex items-center justify-center rounded-radius/tooltip","px-spacing/padding/soft-8px py-spacing/padding/soft-4px","font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell","text-fill/primary-dark bg-fill/primary-light");switch(e.keyColumn){case"REWARD_VALUE":{let e=eu(t,void 0,"PERSONAL_LOANS"!==r);if(!e||!e.prefix&&!e.price)return(0,l.jsx)(eQ,{text:o,isBlackColor:!0});let a="PERSONAL_LOANS"===r?`${(0,O.currencyFormat)(e.prefix)}${e.price?.toLocaleString(n)}`:`${(0,O.currencyFormat)(e.prefix)}${(0,O.formatNumberWithSeparator)({value:(0,ep.calculateRewardValue)({exclusiveOffers:t.exclusive_offers??[],welcomeOffers:t.welcome_offers??[]}),thousandsSeparator:","})}`;return(0,l.jsx)("button",{type:"button",onClick:e=>s(e,t,i),className:c,children:a})}case"HOT_REWARD":{let e=eF(t);if(!e||!t.url_alias)return(0,l.jsx)(eQ,{text:o,isBlackColor:!0});return(0,l.jsx)(S.FeLink,{href:e1(t.url_alias,eX.SingSaverRewardsSectionId,r),onClick:e=>s(e,t,i),className:c,children:e})}case"APPROVAL_ODDS":{let{data:e,labels:a,onUnlockClick:i,onClick:r}=d,n=!e||!["expired","fresh"].includes(e.userState),s=e?.userState==="fresh",o=t.title?e?.odds[t.title]:void 0;return(0,l.jsx)(ed,{degree:o,isLocked:n,isFresh:s,labels:a,onUnlockClick:i,onClick:r})}default:return(0,l.jsx)(eQ,{text:o,isBlackColor:!0})}})({column:i,product:e,rowIndex:t,vertical:v??"CREDIT_CARD",lang:F,onRewardCellClick:A,naText:V.na,approvalOdds:{data:N,labels:J,onUnlockCl
28ick:C,onClick:w}})},i.id??`${i.keyColumn}-${r}`)),Z.map((i,r)=>(0,l.jsx)("td",{className:(0,a.default)("min-h-table/cell-min-height p-spacing/padding/soft-12px align-middle",G&&K(i)&&ti),children:((e,t,i,r)=>{if(G&&K(e)){let t=W(e.attribute?.name,i);return(0,l.jsx)(e6,{result:t})}let n=((e,t)=>{let l=te(e,t);if(!l)return;let a=(0,ea.formatAttributeItemValue)(l,!1,!0);return a&&a.trim()&&"-"!==a.trim()?a:void 0})(i,e);if(!n)return(0,l.jsx)(eQ,{text:V.na,isBlackColor:!0});let s=(0,a.default)("truncate",t===q?"font-font-weight/table-cell-primary text-font-size/table-cell-primary leading-line-height/table-cell-primary text-text/accent":"font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell text-text/primary"),o=((e,t)=>{let l=te(e,t);if(l)switch(l.__typename){case"ComponentAttributesAttrNumber":case"ComponentAttributesAttrNumberRange":return l.additional_information?.trim()||void 0;default:return}})(i,e);if(!o)return(0,l.jsx)("span",{title:n,className:(0,a.default)("block",s),children:n});let d=t=>{if(!j)return;let l=e.label.trim();(0,E.sendProductAnalytics)({action:t,componentTitle:l?`Quick Answer/Tooltip_${l}`:"Quick Answer/Tooltip",componentType:E.ComponentTypeEnum.TOOLTIP,event:"product_interaction",index:r,product:i,pushDataLayer:j,url:k})};return(0,l.jsxs)("span",{className:"flex items-center",children:[(0,l.jsx)("span",{title:n,className:(0,a.default)("min-w-0",s),children:n}),(0,l.jsx)(eM,{placement:"top",onOpenEvent:ee,content:o,infoClassName:"shrink-0 pl-1 text-secondary-lighter",onClick:()=>d(E.UserActionEnum.CLICK),onHover:()=>d(E.UserActionEnum.HOVER)})]})})(i,r,e,t)},i.id??i.attribute?.name))]},e.title??e.entryUID??t)})})]})}),(0,l.jsxs)("div",{className:(0,a.default)("flex w-full flex-col items-start justify-center","gap-spacing/gap/y-sm","px-spacing/margin/x py-spacing/margin/y","border-t-2 border-fill/primary bg-fill/primary-light",{hidden:!ef&&!(ex&&eo)}),children:[ef&&(0,l.jsxs)(l.Fragment,{children:[eh&&(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/bullet-2 text-font-size/bullet-2 leading-line-height/bullet-2","text-fill/primary-dark"),children:eh}),eg&&(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/table-cell-normal text-font-size/table-cell leading-line-height/table-cell","text-text/secondary-lighter"),children:eg})]}),ex&&eo&&(0,l.jsx)("a",{href:`#${eo}`,onClick:()=>{j?.({event:"navigate",component_type:"text-link",component_title:`${p??"Footer"}/Quick Answer_${ex}`,action:"click",index:"0"})},className:(0,a.default)("self-start","font-font-weight/bullet-2 text-font-size/bullet-2 leading-line-height/bullet-2","text-text/link underline"),children:ex})]})]}),(0,l.jsx)(_,{type:"left",onClick:()=>{et.current?.scrollTo({left:0,top:0,behavior:"smooth"})},show:ei}),(0,l.jsx)(_,{type:"right",onClick:()=>{et.current?.scrollTo({left:1e4,top:0,behavior:"smooth"})},show:er})]})]}),eb&&eb.length>0&&(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-spacing/gap/soft-6px",children:[(0,l.jsx)(b.MaterialIcon,{icon:"keyboard_double_arrow_right",px:20,className:"text-text/secondary"}),(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/bullet-2 text-font-size/bullet-2 leading-line-height/bullet-2","text-text/secondary"),children:V.more_label}),eb.map((e,t)=>(0,l.jsxs)("span",{className:"inline-flex items-center",children:[(0,l.jsx)(S.FeLink,{href:e.linkUrl,target:"_blank",rel:"noopener noreferrer",onClick:()=>{j?.({event:"navigate",component_type:"text-link",component_title:`Related Links/Quick Answer_${e.linkLabel.trim()}`,action:"click",index:t.toString()})},className:(0,a.default)("font-font-weight/button-1 text-font-size/button-2 leading-line-height/button-2","text-text/link underline"),children:e.linkLabel}),t<eb.length-1&&(0,l.jsx)("span",{className:(0,a.default)("font-font-weight/button-1 text-font-size/button-2 leading-line-height/button-2","text-text/primary"),children:", "})]},e.id))]})]})}],81476),e.s([],4446),e.i(627373);var tr=e.i(396522),tn=e.i(489635),ts=e.i(478082);let to=e=>e.includes("$")?"$":e,td=e=>e.discountPercent>0&&!!e.original,tc=e=>{let t=parseFloat(e??"");return Number.isFinite(t)&&t>0?t:void 0},tp=(0,x.brandSpecificStaticText)({_:(0,x.staticText)({heading:{_:"Choose your plan"},subheading:{_:":count tiers, ordered cheapest to most comprehensive."}}),moneyhero:(0,x.staticText)({heading:{_:"Choose your plan",zh:"鏿æ¨çæ¹æ¡"},subheading:{_:":count tiers, ordered cheapest to most comprehensive.",zh:":countåçç´ï¼å¾æä¾¿å®å°æå
¨é¢æåºã"}})}),tu=(0,x.staticText)({applyNow:{_:"Apply Now",zh:"ç«å³ç³è«"},discountOff:{_:":percent% off",zh:"享:zheæåªæ "},perTrip:{_:"trip",zh:"次æ
è¡"},perYear:{_:"year",zh:"å¹´"},noProductsAvailable:{_:"No products available",zh:"æ«ç¡å¯ç¨ç¢å"},discountHighlight:{_:"Only with :brand you get :percent% off",zh:"åªé :brandï¼å°äº« :percent% ææ£"},coverType:{_:"Cover Type",zh:"ä¿éé¡å"},coverTypeSingle:{_:"Single-Trip",zh:"宿¬¡è¨å"},coverTypeAnnual:{_:"Annual",zh:"å
¨å¹´æ
ç¨"},destination:{_:"Destination",zh:"ç®çå°"},startDate:{_:"Start Date",zh:"éå§æ¥æ"},endDate:{_:"End Date",zh:"çµææ¥æ"},travellers:{_:"Travellers",zh:"æ
客人æ¸"}
28,adultOne:{_:"1 Adult",zh:"1ä½æäºº"},adultsMany:{_:":count Adults",zh:":countä½æäºº"},childOne:{_:"1 Child",zh:"1ä½å
ç«¥"},childrenMany:{_:":count Children",zh:":countä½å
ç«¥"},familyWrap:{_:"Family (:travellers)",zh:"å®¶åºï¼:travellersï¼"},listSeparator:{_:", ",zh:"ï¼"}});e.s(["CONTENT_TRANSLATIONS",0,tu,"TRANSLATIONS",0,tp],378885);var tm=e.i(618566);e.i(985277);var tx=e.i(123109);let th={tierCard:E.ComponentTypeEnum.MINI_PRODUCT_HIGHLIGHT,summaryPanel:E.ComponentTypeEnum.PRODUCT_SPOTLIGHT},tg=({source:e,isAnnual:t,currencyCode:a,trackApply:i})=>{let r=(0,u.useCmsClientContext)(),n=(0,m.getClientTranslations)(tu,r);return(0,l.jsx)("aside",{"data-component":"plan-tier-summary-panel",className:"flex flex-col gap-spacing/gap/y rounded-radius/card border border-borders/default bg-fill/card px-spacing/padding/x py-spacing/padding/y shadow-block-interactive",children:e?(0,l.jsx)(tf,{source:e,content:n,isAnnual:t,currencyCode:a,lang:r.lang,trackApply:i}):(0,l.jsx)(t_,{})})},tf=({source:e,content:t,isAnnual:a,currencyCode:i,lang:n,trackApply:s})=>{var o,d;let c,p,u,m,x,h,g=(c=e.discountPercent,p=e.brandName,c>0?(0,eC.tr)("discountHighlight",t,{brand:p,percent:String(c)}):void 0),f=e.price?(o=e.price,u=to(o.currencySymbol),{offered:`${i} ${u}${o.offered}`,original:td(o)?`${i}${u}${o.original}`:void 0}):void 0,_=(d=e.trip,(m=[]).push({id:"coverType",icon:"new_releases",label:(0,eC.tr)("coverType",t),value:(0,eC.tr)(a?"coverTypeAnnual":"coverTypeSingle",t)}),(x=d.destinationLabels.length>0?d.destinationLabels.join((0,eC.tr)("listSeparator",t)):void 0)&&m.push({id:"destination",icon:"flightsmode",label:(0,eC.tr)("destination",t),value:x}),d.startDate&&m.push({id:"startDate",icon:"date_range",label:(0,eC.tr)("startDate",t),value:(0,ts.formatData)(d.startDate,"MMM dd, yyyy",n)}),d.endDate&&m.push({id:"endDate",icon:"date_range",label:(0,eC.tr)("endDate",t),value:(0,ts.formatData)(d.endDate,"MMM dd, yyyy",n)}),(h=((e,t)=>{let l=[];if(1===e.noOfAdults?l.push((0,eC.tr)("adultOne",t)):e.noOfAdults>1&&l.push((0,eC.tr)("adultsMany",t,{count:String(e.noOfAdults)})),1===e.noOfChildren?l.push((0,eC.tr)("childOne",t)):e.noOfChildren>1&&l.push((0,eC.tr)("childrenMany",t,{count:String(e.noOfChildren)})),0===l.length)return;let a=l.join((0,eC.tr)("listSeparator",t));return e.travelAsFamily?(0,eC.tr)("familyWrap",t,{travellers:a}):a})(d,t))&&m.push({id:"travellers",icon:"person",label:(0,eC.tr)("travellers",t),value:h}),m),y=(0,tn.getApplyButtonLabel)((0,eC.tr)("applyNow",t),void 0,e.product.call_to_action);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y-sm",children:[(0,l.jsx)("h3",{className:"font-bold text-text/primary text-font-size/display-1 leading-line-height/display-1",children:e.title}),g&&(0,l.jsx)("p",{"data-component":"plan-tier-summary-highlight",className:"rounded-radius/button bg-highlights/green-light px-tag/padding-x font-medium text-highlights/green-dark text-font-size/tag leading-line-height/tag",children:g})]}),(0,l.jsxs)("div",{className:"flex items-start gap-spacing/gap/x",children:[(0,l.jsx)("span",{className:"flex w-30 shrink-0 items-center justify-center overflow-hidden rounded-radius/card-inner border border-borders/default px-spacing/padding/x py-spacing/padding/y",children:e.providerLogoUrl?(0,l.jsx)(ex.CmsImage,{src:e.providerLogoUrl,alt:e.providerName,width:192,height:48,sizes:{_:96},className:"h-12 max-h-12 w-full object-contain"}):(0,l.jsx)("span",{className:"text-center font-semibold text-text/primary text-font-size/caption leading-line-height/caption",children:e.providerName})}),(0,l.jsx)("span",{className:"flex min-w-0 flex-col justify-center gap-spacing/gap/y-xs",children:f?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"font-bold text-text/primary text-font-size/display-1 leading-line-height/display-1",children:f.offered}),f.original&&(0,l.jsx)("span",{className:"font-medium text-text/secondary-lighter line-through text-[16px] leading-[22px]",children:f.original})]}):(0,l.jsx)(tb,{})})]}),_.length>0&&(0,l.jsx)("dl",{className:"flex flex-col gap-spacing/gap/y-sm",children:_.map(e=>(0,l.jsxs)("div",{"data-component":"plan-tier-summary-row",className:"flex items-center gap-spacing/gap/x",children:[(0,l.jsxs)("dt",{className:"flex w-30 shrink-0 items-center gap-spacing/gap/x-xs font-medium text-text/secondary-lighter text-font-size/body-2 leading-line-height/body-2",children:[(0,l.jsx)(b.MaterialIcon,{icon:e.icon,px:18}),e.label]}),(0,l.jsx)("dd",{className:"min-w-0 flex-1 font-semibold text-text/primary text-font-size/bullet-2 leading-line-height/bullet-2",children:e.value})]},e.id))}),(0,l.jsx)(L.ApplyCtaLink,{product:e.product,target:"_blank",rel:"noopener noreferrer",className:"w-full",children:(0,l.jsx)(r.default,{styleType:"cta",variant:"filled",size:"small",className:"w-full justify-center rounded-[24px]",onClick:()=>s({product:e.product,index:e.index,price:e.price,componentType:th.summaryPanel}),children:(0,l.jsx)("span",{className:"min-w-0 truncate text-sm",children:y})})})]})},tb=()=>
28(0,l.jsxs)("span",{"aria-hidden":!0,className:"flex flex-col gap-spacing/gap/y-xs",children:[(0,l.jsx)("span",{className:"flex h-[1lh] items-center text-font-size/display-1 leading-line-height/display-1",children:(0,l.jsx)("span",{className:"h-[22px] w-28 animate-pulse rounded-radius/button bg-fill/alternative-3"})}),(0,l.jsx)("span",{className:"flex h-[1lh] items-center text-[16px] leading-[22px]",children:(0,l.jsx)("span",{className:"h-3 w-20 animate-pulse rounded-radius/button bg-fill/alternative-3"})})]}),t_=()=>(0,l.jsxs)("span",{"data-component":"plan-tier-summary-skeleton","aria-hidden":!0,className:"flex flex-col gap-spacing/gap/y",children:[(0,l.jsx)("span",{className:"h-6 w-4/5 animate-pulse rounded-radius/button bg-fill/alternative-3"}),(0,l.jsxs)("span",{className:"flex items-start gap-spacing/gap/x",children:[(0,l.jsx)("span",{className:"h-20 w-30 shrink-0 animate-pulse rounded-radius/card-inner bg-fill/alternative-3"}),(0,l.jsx)(tb,{})]}),(0,l.jsx)("span",{className:"flex flex-col gap-spacing/gap/y-sm",children:["row-1","row-2","row-3","row-4"].map(e=>(0,l.jsx)("span",{className:"h-4 w-full animate-pulse rounded-radius/button bg-fill/alternative-3"},e))}),(0,l.jsx)("span",{className:"h-9 w-full animate-pulse rounded-[24px] bg-fill/alternative-3"})]}),ty=({tiers:e,selectedTierId:t,recommendedBadgeLabel:a,onSelectTier:i,isAnnual:r,currencyCode:n,content:s,trackApply:o})=>(0,l.jsx)(tr.FeCarouselV2,{slidesPerView:"auto",navigation:{showOnDesktop:!0,showOnMobile:!0,disabledClassName:"!hidden",prevElClassName:"!left-1",nextElClassName:"!right-1",prevElement:(0,l.jsx)(tv,{direction:"prev"}),nextElement:(0,l.jsx)(tv,{direction:"next"})},slideClassName:"!h-auto pt-[10px]",children:e.map((e,d)=>(0,l.jsx)(tN,{tier:e,index:d,isSelected:e.id===t,recommendedBadgeLabel:a,onSelect:i,isAnnual:r,currencyCode:n,content:s,trackApply:o},e.id))}),tv=({direction:e})=>(0,l.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full border border-borders/default bg-fill/card shadow-md",children:(0,l.jsx)(b.MaterialIcon,{icon:"arrow_forward",px:18,className:(0,a.default)("text-[#1a1a1a]",{"rotate-180":"prev"===e})})}),tN=({tier:e,index:t,isSelected:i,recommendedBadgeLabel:n,onSelect:s,isAnnual:o,currencyCode:d,content:c,trackApply:p})=>{var u;let m,x,h=!!e.isRecommended&&!!n,g=e.price?(u=e.price,m=to(u.currencySymbol),x=td(u),{offered:`${m}${u.offered}`,original:x?`${m}${u.original}`:void 0,discountLabel:x?(0,eC.tr)("discountOff",c,{percent:String(u.discountPercent),zhe:String((100-u.discountPercent)/10)}):void 0,period:`${d} / ${(0,eC.tr)(o?"perYear":"perTrip",c)}`}):void 0,f=(0,tn.getApplyButtonLabel)((0,eC.tr)("applyNow",c),void 0,e.product.call_to_action);return(0,l.jsxs)("div",{"data-component":"plan-tier-card","data-selected":i||void 0,className:(0,a.default)("relative flex h-full w-[150px] shrink-0 flex-col gap-spacing/gap/soft-12px rounded-[14px] bg-fill/card px-spacing/padding/x-sm py-spacing/padding/y-sm",i?"border-2 border-highlights/gray-dark":"border-2 border-borders/default"),children:[h&&(0,l.jsx)("span",{"data-component":"plan-tier-badge",className:"mhg-alpha-typography-badge absolute left-1/2 -top-2 -translate-x-1/2 whitespace-nowrap rounded-[12px] bg-campaign/orange-2 px-2 py-[2px] text-white",children:n}),(0,l.jsxs)("button",{type:"button","aria-pressed":i,onClick:()=>s?.(e.id),className:"flex flex-1 flex-col gap-spacing/gap/soft-12px text-left",children:[(0,l.jsx)("span",{className:"mhg-alpha-typography-table-cell-strong text-[#1a1a1a]",children:e.name}),e.description&&(0,l.jsx)("span",{className:"min-h-8 font-medium text-[#6b7280] text-font-size/badge leading-line-height/badge",children:e.description}),(0,l.jsx)("span",{"aria-hidden":!0,className:"mt-auto h-px w-full bg-[#e5e7eb]"}),(0,l.jsx)("span",{className:"flex flex-col gap-spacing/gap/soft-4px",children:e.isPriceLoading||!g?(0,l.jsx)(tC,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("span",{className:"flex flex-col gap-spacing/gap/soft-4px",children:[(0,l.jsx)("span",{className:"font-semibold text-[#1a1a1a] text-font-size/subheading-1 leading-line-height/subheading-1",children:g.offered}),(g.original||g.discountLabel)&&(0,l.jsxs)("span",{className:"font-medium text-[10px] leading-[16
28px] text-campaign/orange-2",children:[g.original&&(0,l.jsx)("span",{className:"line-through",children:g.original}),g.discountLabel&&(0,l.jsx)("span",{children:` ${g.discountLabel}`})]})]}),g.period&&(0,l.jsx)("span",{className:"text-[10px] leading-normal text-[#6b7280]",children:g.period})]})})]}),(0,l.jsx)(L.ApplyCtaLink,{product:e.product,target:"_blank",rel:"noopener noreferrer",className:"w-full",children:(0,l.jsx)(r.default,{styleType:"cta",variant:"filled",size:"small",className:"w-full justify-center rounded-[24px]",onClick:()=>p({product:e.product,index:t,price:e.price,componentType:th.tierCard}),children:(0,l.jsx)("span",{className:"min-w-0 truncate text-sm",children:f})})})]})},tC=()=>(0,l.jsxs)("span",{"data-component":"plan-tier-price-skeleton","aria-hidden":!0,className:"flex flex-col gap-spacing/gap/soft-4px",children:[(0,l.jsx)("span",{className:"flex h-[1lh] items-center text-font-size/subheading-1 leading-line-height/subheading-1",children:(0,l.jsx)("span",{className:"h-[18px] w-full animate-pulse rounded-radius/button bg-fill/alternative-3"})}),(0,l.jsx)("span",{className:"flex h-[1lh] items-center text-[10px] leading-normal",children:(0,l.jsx)("span",{className:"h-3 w-2/3 animate-pulse rounded-radius/button bg-fill/alternative-3"})})]});e.s(["PlanTierSelector",0,({tiers:e,selectedTierId:t,recommendedBadgeLabel:a,onSelectTier:i,isAnnual:r,currencyCode:n,summary:s,pushDataLayer:o,leadingSlot:d})=>{let c=(0,u.useCmsClientContext)(),p=(0,m.getClientTranslations)(tp,c),x=(0,m.getClientTranslations)(tu,c),h=((e,t)=>{let l=(0,tm.usePathname)()??void 0,{travelQuote:a}=(0,tx.useScopeCalculations)();return({product:i,index:r,price:n,componentType:s})=>{eN.sessionAttributionTracker.recordApplyClick();let o=(0,E.configureTiSearchResultParameters)(a);(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:"Product Card/CTA_Apply Now",componentType:s,event:"product_click_apply",index:r,itemListName:l,product:i,pushDataLayer:e,extraData:o?{search_result_parameter:o}:{},itemExtraData:((e,t)=>{if(!e)return{};let l=tc(e.offered),a=tc(e.original),i=l??a;if(void 0===i)return{};let r={price:i,currency:t};return td(e)&&void 0!==l&&void 0!==a&&(r.discount=Number((a-l).toFixed(2))),r})(n,t),omitProductContext:!0})}})(o,n);return 0===e.length?null:(0,l.jsxs)("div",{className:"lg:flex lg:items-start lg:gap-spacing/gap/x",children:[(0,l.jsxs)("section",{"data-component":"plan-tier-selector",className:"flex min-w-0 flex-col gap-spacing/gap/y overflow-x-clip lg:flex-1 lg:rounded-radius/card lg:border lg:border-borders/default lg:bg-fill/card lg:px-spacing/padding/x lg:py-spacing/padding/y lg:shadow-block-interactive",children:[d,(0,l.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-4px",children:[(0,l.jsx)("h2",{className:"font-bold text-[#1a1a1a] text-font-size/title-1 leading-line-height/title-1",children:p.heading}),(0,l.jsx)("p",{className:"font-medium text-[#6b7280] text-font-size/caption leading-line-height/caption",children:(0,eC.tr)("subheading",p,{count:String(e.length)})})]}),(0,l.jsx)(ty,{tiers:e,selectedTierId:t,recommendedBadgeLabel:a,onSelectTier:i,isAnnual:r,currencyCode:n,content:x,trackApply:h})]}),(0,l.jsx)("div",{className:"hidden lg:block lg:w-[43%] lg:max-w-screen-2sm lg:shrink-0 lg:sticky lg:top-0",children:(0,l.jsx)(tg,{source:s,isAnnual:r,currencyCode:n,trackApply:h})})]})}],709929),e.s([],173954);var tw=e.i(400226),tj=e.i(508440),tT=e.i(32386);let tA=(0,x.brandSpecificStaticText)({_:(0,x.staticText)({ti_footer_apply_for:{_:"Apply for :product-tier",zh:"ç«å³ç³è« :product-tier"},ti_supporting_e2e:{_:"Complete your purchase directly on SingSaver.",zh:"å¨SingSaverçç¶²ç«å®ææä¿"},ti_supporting_click_out:{_:"You will be securely redirected to :provider-name's official site to complete your purchase.",zh:"å¨ :provider-name ç宿¹ç¶²ç«å®ææä¿ã"}}),moneyhero:(0,x.staticText)({ti_supporting_e2e:{_:"Complete your purchase directly on MoneyHero.",zh:"å¨MoneyHeroçç¶²ç«å®ææä¿"}})});e.s(["StickyFooterCta",0,({product:e,tierName:t,providerName:n,footerRef:s,pushDataLayer:o})=>{var d;let c,p=(0,u.useCmsClientContext)(),{travelQuote:x}=(0,tx.useScopeCalculations)(),h=(0,tm.usePathname)()??void 0,g={...(0,m.getClientTranslations)(tw.BaseTranslations,p),...(0,m.getClientTranslations)(tA,p)},[f,b]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{let e=s?.current;if(!e||"u"<typeof IntersectionObserver)return;let t=new IntersectionObserver(([e])=>b(!e.isIntersecting),{threshold:0});return t.observe(e),()=>t.disconnect()},[s]),!e)return null;let _=(0,tT.getFulfilmentPath)(e),y=(0,tj.resolveTiCtaLabel)({brand:p.brand,staticText:g,fulfilmentPath:_,callToAction:e.call_to_action}),v=(d={staticText:g,tierName:t},(c=d.tierName?.trim())?(0,eC.tr)("ti_footer_apply_for",d.staticText,{"product-tier":c}):(0,eC.tr)("ti_apply_now",d.staticText)),N=function(e){let{staticText:t,fulfilmentPath:l,providerName:a}=e;if("e2e"===l)return(0,eC.tr)("ti_supporting_e2e",t);if("click_out"===l){let e=a?.trim();if(!e)return;return(0,eC.tr)("ti_supporting_click_out",t,{"provider-name":e})}}({staticText:g,fulfilmentPath:_,providerName:n});return(0,l.jsx)("div",{"data-component":"ti-sticky-footer","data-fulfilment-path":_??"none",inert:!f,className:(0,a.default)("fixed bottom-0 left-0 w-full z-[60] duration-300 ease-out",f?"translate-y-0":"translate-y-full"),children:(0,l.jsx)("div",{className:"bg-white shadow px-spacing/padding/x py-spacing/padding/y",children:(0,l.jsxs)("div",{className:"w-full md:max-w-[990px] mx-auto flex flex-col gap-spacing/gap/x-xs md:flex-row md:items-center md:justify-between",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-spacing/gap/x-xs",children:[(0,l.jsx)("div",{className:"mhg-alpha-typography-title-1 text-fill/primary-dark",children:v}),N&&(0,l.jsx)("div",{className:"mhg-alpha-typography-body-2 text-text/secondary",children:N})]}),(0,l.jsx)(L.ApplyCtaLink,{product:e,target:"_blank",rel:"noreferrer noopener",className:"block w-full md:inline md:w-auto",children:(0,l.jsx)(r.default,{className:"mhg-alpha-btn-small w-full md:w-auto",styleType:"cta",onClick:()=>
28{if(eN.sessionAttributionTracker.recordApplyClick(),o){let t=(0,E.configureTiSearchResultParameters)(x);(0,E.sendProductAnalytics)({event:"product_click_apply",action:E.UserActionEnum.CLICK,componentType:E.ComponentTypeEnum.BOTTOM_STICKY,componentTitle:"Sticky Footer/CTA_Apply Now",index:"0",itemListName:h,product:e,...t?{extraData:{search_result_parameter:t}}:{},pushDataLayer:o})}},children:y})})]})})})}],902894),e.s([],17710);let tk=({type:e,show:t,label:i,onClick:r})=>t?(0,l.jsx)("button",{type:"button","aria-label":i,onClick:r,className:(0,a.default)("absolute top-1/2 z-[45] flex size-[30px] -translate-y-1/2 items-center justify-center rounded-full bg-fill/card shadow-md","right"===e?"right-[-15px]":"left-[-15px]"),children:(0,l.jsx)(b.MaterialIcon,{icon:"right"===e?"arrow_right_alt":"arrow_left_alt",px:18,className:"text-text/primary"})}):null,tL=({children:e,className:t,recomputeKey:a,prevLabel:r="Scroll left",nextLabel:n="Scroll right",...s})=>{let{scrollRef:o,arrows:d,onScroll:c,scrollByPage:p}=(e=>{let t=(0,i.useRef)(null),[l,a]=(0,i.useState)({left:!1,right:!1}),r=(0,i.useCallback)(()=>{let e=t.current;if(!e)return;let l=e.scrollLeft>1,i=e.scrollLeft+e.clientWidth<e.scrollWidth-1;a(e=>e.left===l&&e.right===i?e:{left:l,right:i})},[]);(0,i.useEffect)(()=>{r();let e=t.current;if(!e||"u"<typeof ResizeObserver)return;let l=new ResizeObserver(r);return l.observe(e),()=>l.disconnect()},[r,e]);let n=(0,i.useCallback)(e=>{let l=t.current;l&&l.scrollBy({left:e*l.clientWidth*.8,behavior:"smooth"})},[]);return{scrollRef:t,arrows:l,onScroll:r,scrollByPage:n}})(a);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(tk,{type:"left",show:d.left,label:r,onClick:()=>p(-1)}),(0,l.jsx)(tk,{type:"right",show:d.right,label:n,onClick:()=>p(1)}),(0,l.jsx)("div",{ref:o,onScroll:c,className:t,...s,children:e})]})},tS=(0,x.brandSpecificStaticText)({_:(0,x.staticText)({included:{_:"Included"},scrollLeft:{_:"Scroll table left"},scrollRight:{_:"Scroll table right"}}),moneyhero:(0,x.staticText)({included:{_:"Included",zh:"å·²å
å«"},scrollLeft:{_:"Scroll table left",zh:"åå·¦æ²åè¡¨æ ¼"},scrollRight:{_:"Scroll table right",zh:"å峿²åè¡¨æ ¼"}})}),tE=(e,t)=>e?.find(e=>(e.name?.name??"")===t),tR=(e,t)=>{let l=tE(e,t);if(!l)return;if("ComponentAttributesAttrBoolean"===l.__typename){if(!0!==l.value)return;return{kind:"check",label:l.true_value?.trim()||void 0}}let a=(0,ea.formatAttributeItemValue)(l,!1,!0),i="string"==typeof a?a.trim():"";if(i&&"-"!==i)return{kind:"text",text:i}},tO=(e,t)=>e.some(e=>void 0!==tR(e.product.attributes,t)),tz=(e,t)=>e.subChildren.filter(e=>!1!==e.visible&&tO(t,e.attributeKey)),tI=(e,t)=>e.children.filter(e=>!1!==e.visible&&(tO(t,e.attributeKey)||tz(e,t).length>0)),tP=(e,t,l)=>{let a=e?.trim();if(a)return a;for(let e of l){let l=tE(e.product.attributes,t),a=l?.label?.trim()||l?.name?.label?.trim();if(a)return a}return t},tM=({cell:e,isSelected:t,includedLabel:i,isSubRow:r})=>(0,l.jsx)("td",{className:(0,a.default)("border-b border-r border-[#e5e7eb] px-spacing/padding/soft-12px py-spacing/padding/y-sm text-center align-middle",t?"bg-highlights/orange-light":"bg-fill/card"),children:void 0===e?(0,l.jsx)("span",{className:"text-[12px] leading-line-height/table-cell text-text/disabled",children:"â"}):"check"===e.kind?(0,l.jsx)(b.MaterialIcon,{icon:"check","aria-label":e.label??i,className:"text-highlights/green-dark"}):(0,l.jsx)("span",{className:(0,a.default)("text-[12px] leading-line-height/table-cell",r?"text-highlights/yellow-dark":"text-[#1a1a1a]"),children:e.text})});e.s(["BenefitComparisonTable",0,({component:e,tiers:t,selectedTier:r,pushDataLayer:n})=>{let{title:s,subtitle:o,categories:d}=e,c=(0,u.useCmsClientContext)(),p=(0,m.getClientTranslations)(tS,c),x=(0,eC.tr)("included",p),h=(0,eC.tr)("scrollLeft",p),g=(0,eC.tr)("scrollRight",p),f=(0,i.useMemo)(()=>d.filter(e=>!1!==e.visible&&tI(e,t).length>0),[d,t]),[_,y]=(0,i.useState)(()=>Object.fromEntries(d.map(e=>[e.id,!!e.defaultExpanded]))),[v,N]=(0,i.useState)({});if((0,i.useEffect)(()=>{y(e=>{let t={};for(let l of d)t[l.id]=l.id in e?e[l.id]:!!l.defaultExpanded;return Object.keys(e).length===Object.keys(t).length&&Object.keys(t).every(l=>e[l]===t[l])?e:t})},[d]),0===t.length||0===f.length)return null;let C=t.length+1,w=(e,i,n,s=!1)=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{scope:"row",className:(0,a.default)("sticky left-0 z-10 w-[120px] min-w-[120px] break-words border-b border-r border-[#e5e7eb] px-spacing/padding/soft-12px py-spacing/padding/y-sm text-left align-middle font-medium text-font-size/table-cell leading-line-height/table-cell bg-fill/card md:w-[200px] md:min-w-[200px]",s?"pl-6 text-highlights/yellow-dark":"text-[#4a4a4a]"),children:i}),t.map(e=>(0,l.jsx)(tM,{cell:tR(e.product.attributes,n),isSelected:!!r&&e.id===r,includedLabel:x,isSubRow:s},e.id))]},e);return(0,l.jsxs)("div",{className:"my-6 flex flex-col gap-1",children:[(s||o)&&(0,l.jsxs)("div",{className:"flex flex-col",children:[s&&(0,l.jsx)("div",{className:"font-bold text-font-size/title-1 leading-line-height/title-1 text-[#1a1a1a]",children:s}),o&&(0,l.jsx)("div",{className:"font-medium text-font-size/caption leading-line-height/caption text-[#6b7280]",children:o})]}),(0,l.jsx)(tL,{className:"scrollbar-none overflow-x-auto rounded-[12px] border border-borders/default bg-fill/card",recomputeKey:`${t.length}:${f.length}
28:${Object.values(_).filter(Boolean).length}:${Object.values(v).filter(Boolean).length}`,prevLabel:h,nextLabel:g,children:(0,l.jsxs)("table",{className:"w-full border-separate border-spacing-0 bg-fill/card",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{className:"sticky left-0 z-20 w-[120px] min-w-[120px] border-b border-r border-[#e5e7eb] bg-fill/card md:w-[200px] md:min-w-[200px]"}),t.map(e=>{let t=!!r&&e.id===r;return(0,l.jsx)("th",{scope:"col",className:(0,a.default)("min-w-32 border-b border-r border-[#e5e7eb] px-spacing/padding/soft-12px py-spacing/padding/y-sm text-center",t?"bg-highlights/orange-light":"bg-fill/card"),children:(0,l.jsxs)("div",{className:"flex flex-col items-center gap-[3px]",children:[(0,l.jsx)("span",{className:(0,a.default)("font-bold text-font-size/table-cell leading-line-height/table-cell",t?"text-highlights/orange-dark":"text-text/primary"),children:e.name}),e.isPriceLoading?(0,l.jsx)("span",{"aria-hidden":!0,className:"flex h-[21px] w-16 items-center leading-line-height/table-cell-primary",children:(0,l.jsx)("span",{className:"h-[15px] w-full animate-pulse rounded-radius/button bg-fill/alternative-3"})}):e.price&&(0,l.jsx)("span",{className:"font-bold text-font-size/table-cell-primary leading-line-height/table-cell-primary text-[#1a1a1a]",children:e.price}),e.period&&(0,l.jsx)("span",{className:"text-[10px] leading-line-height/table-cell text-[#6b7280]",children:e.period})]})},e.id)})]})}),(0,l.jsx)("tbody",{children:f.map((e,a)=>{let r=_[e.id],s=tI(e,t);return(0,l.jsxs)(i.default.Fragment,{children:[(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:C,className:"border-b border-borders/default p-0 bg-[#f3f4f6]",children:(0,l.jsxs)("button",{type:"button","aria-expanded":r,onClick:()=>{let t;n?.({event:"navigate",component_type:"accordion",component_title:`Product Comparison Table_${e.comparableLabel}`,action:r?"collapse":"expand",index:a}),t=e.id,y(e=>({...e,[t]:!e[t]}))},className:"flex w-full items-center justify-between py-[9px] text-left",children:[(0,l.jsx)("span",{className:"sticky left-0 whitespace-nowrap px-3 font-bold text-[14px] leading-line-height/table-cell text-[#6b7280] bg-[#f3f4f6]",children:e.comparableLabel}),(0,l.jsx)("span",{className:"sticky right-0 flex items-center px-3 bg-[#f3f4f6]",children:(0,l.jsx)(b.MaterialIcon,{icon:r?"expand_less":"expand_more",className:"text-[#6b7280]"})})]})})}),r&&s.map((a,r)=>{let s=tz(a,t),o=s.length>0,d=!!v[a.id],c=tP(a.displayLabelOverride,a.attributeKey,t),p=o?(0,l.jsxs)("button",{type:"button","aria-expanded":d,onClick:()=>{let t;n?.({event:"navigate",component_type:"accordion",component_title:`Product Comparison Table/${e.comparableLabel}_${c}`,action:d?"collapse":"expand",index:r}),t=a.id,N(e=>({...e,[t]:!e[t]}))},className:"flex w-full items-center gap-spacing/gap/soft-4px text-left",children:[(0,l.jsx)(b.MaterialIcon,{icon:d?"expand_more":"chevron_right",size:2,className:"shrink-0 text-[#4a4a4a]"}),(0,l.jsx)("span",{className:"min-w-0 flex-1",children:c})]}):(0,l.jsx)("span",{children:c});return(0,l.jsxs)(i.default.Fragment,{children:[w(a.id,p,a.attributeKey),d&&s.map(e=>w(e.id,(0,l.jsx)("span",{className:"block",children:tP(e.displayLabelOverride,e.attributeKey,t)}),e.attributeKey,!0))]},a.id)})]},e.id)})})]})})]})}],215710),e.s([],680554);let tD=(0,x.brandSpecificStaticText)({_:(0,x.staticText)({see_more:{_:"See more"},see_less:{_:"See less"},copy:{_:"Copy"},copied:{_:"Copied â"},promo_label:{_:"Promo:"}}),moneyhero:(0,x.staticText)({see_more:{_:"See more",zh:"æ´å¤è³è¨"},see_less:{_:"See less",zh:"æ´å°è³è¨"},copy:{_:"Copy",zh:"è¤è£½"},copied:{_:"Copied â",zh:"å·²è¤è£½ â"},promo_label:{_:"Promo:",zh:"ä¿é·:"}})});e.s(["TiProviderHero",0,({provider:e,title:t,description:a,promoCode:r,promoCodeEnabled:n})=>{let s=(0,u.useCmsClientContext)(),o=(0,m.getClientTranslations)(tD,s),d=(0,i.useId)(),c=s.lang.startsWith("zh")?120:250,[p,x]=(0,i.useState)(!1),[h,g]=(0,i.useState)(!1),f=(0,i.useRef)(null);(0,i.useEffect)(()=>()=>{null!==f.current&&clearTimeout(f.current)},[]);let _=r?.trim()??"",y=!!_&&!1!==n,v=async()=>
28{if("u">typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText){try{await navigator.clipboard.writeText(_)}catch{return}g(!0),null!==f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{g(!1),f.current=null},2e3)}},N=Array.from(a),C=N.length>c,w=C?`${N.slice(0,c).join("")}â¦`:null,j=C&&!p?w:a;return(0,l.jsxs)("section",{className:"relative -mx-spacing/padding/section-x overflow-hidden md:mx-0 md:rounded-radius/card","data-component":"ti-provider-hero",children:[(0,l.jsx)(ex.CmsImage,{src:"https://mhgprod.blob.core.windows.net/moneyhero/strapi-uploads/m_99562a71_2479_4c9d_bcf9_98eb7290f048_fda06d1d11.png",alt:"","aria-hidden":!0,fill:!0,loading:"eager",fetchPriority:"high",sizes:{_:"100vw",lg:"1130px"},className:"object-cover"}),(0,l.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 bg-gradient-to-b from-black/30 to-black/40"}),(0,l.jsxs)("div",{className:"relative flex flex-col items-center gap-spacing/gap/soft-12px px-spacing/padding/section-x py-spacing/gap/section-y-lg text-white md:items-start md:py-spacing/gap/section-y",children:[(0,l.jsx)("div",{className:"max-w-full rounded-radius/card-inner bg-white/20 px-spacing/padding/x-sm py-spacing/padding/y-sm",children:(0,l.jsx)(ex.CmsImage,{src:e.providerImage,alt:e.providerName,width:80,height:80,sizes:{_:160,sm:200},className:"h-20 w-auto max-w-full object-contain md:h-25",style:{width:"auto"}})}),t&&(0,l.jsx)("h1",{className:"mhg-alpha-typography-title-1 text-center text-white md:text-left",children:t}),a&&(0,l.jsx)("div",{className:"hidden md:block",children:(0,l.jsxs)("div",{className:"mhg-alpha-typography-body-2-relaxed whitespace-pre-line text-white",children:[(0,l.jsx)("span",{id:d,children:j}),C&&(0,l.jsxs)(l.Fragment,{children:[" ",(0,l.jsx)("button",{type:"button","aria-expanded":p,"aria-controls":d,onClick:()=>x(e=>!e),className:"underline",children:p?o.see_less:o.see_more})]})]})}),y&&(0,l.jsxs)("div",{"data-component":"ti-provider-hero-promo",className:"flex items-center gap-spacing/gap/soft-6px rounded-[8px] border border-white/20 bg-white/10 px-[13px] py-[7px] text-[12px] leading-none",children:[(0,l.jsx)("span",{className:"font-semibold text-white",children:o.promo_label}),(0,l.jsx)("span",{className:"font-extrabold text-[#ffcb45]",children:_}),(0,l.jsx)("button",{type:"button",onClick:v,"aria-label":h?o.copied:o.copy,className:"inline-flex shrink-0 items-center justify-center text-text/on-dark",children:(0,l.jsx)(b.MaterialIcon,{icon:h?"check":"content_copy",className:"text-[16px] md:text-[18px]"})})]})]})]})}],417903),e.s([],51970);let tU=(e,t)=>(0,l.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-6px",children:[(0,l.jsx)(b.MaterialIcon,{icon:e.icon,className:"!text-[18px] shrink-0 text-buttons/primary md:!text-[20px]"}),(0,l.jsx)("span",{className:"font-font-weight/breadcrumb text-font-size/breadcrumb leading-line-height/breadcrumb text-[#4a4a4a]",children:e.label})]},`item-${e.icon}-${t}`);e.s(["TrustStrip",0,({items:e})=>0===e.length?null:(0,l.jsx)("div",{"data-component":"trust-strip",className:"flex items-center justify-between gap-spacing/gap/x-sm py-spacing/padding/y-sm",children:e.flatMap((e,t)=>0===t?[tU(e,t)]:[(0,l.jsx)("div",{"data-component":"trust-strip-divider","aria-hidden":"true",className:"h-[18px] w-px shrink-0 bg-[#e5e7eb]"},`divider-${t}`),tU(e,t)])})],334286),e.s([],968677);var t$=e.i(597120);let tH=({summary:e})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-4 md:flex-row xl:gap-6",children:[(0,l.jsx)("span",{className:"flex h-20 w-full shrink-0 items-center justify-center overflow-hidden rounded-lg border border-fill/alternative-3 p-4 md:w-50 xl:h-28 xl:w-68 xl:rounded-2xl xl:p-6",children:e.providerLogoUrl?(0,l.jsx)("img",{src:e.providerLogoUrl,alt:e.providerName,width:160,height:80,className:"max-h-full w-auto object-contain"}):(0,l.jsx)("span",{className:"text-center font-[600] text-text/primary text-[16px] leading-[22px]",children:e.providerName})}),(0,l.jsx)("p",{className:"text-center font-[700] text-text/primary text-[22px] leading-[28px] md:text-left xl:text-[28px] xl:leading-[34px]",children:e.title})]}),e.rows.length>0&&(0,l.jsx)("dl",{className:"flex flex-col",children:e.rows.map(e=>(0,l.jsxs)("div",{"data-component":"policy-summary-row",className:"flex items-start gap-4 border-b border-fill/alternative-3 py-3 last:border-b-0 xl:gap-6 xl:py-4",children:[(0,l.jsx)("dt",{className:"w-39 shrink-0 font-[500] text-text/secondary-lighter text-[14px] leading-[20px] md:w-46 xl:text-[18px] xl:leading-[24px]",children:e.label}),(0,l.jsx)("dd",{className:"font-[600] text-text/primary text-[14px] leading-[20px] xl:text-[18px] xl:leading-[24px]",children:e.value})]},e.id))}),e.deliveryNoteHtml&&(0,l.jsx)(t$.RawHtml,{content:e.deliveryNoteHtml,className:"font-[500] text-text/secondary-lighter text-[14px] leading-[20px] xl:text-[18px] xl:leading-[24px]"})]}),tB=()=>(0,l.jsxs)("span",{"data-component":"policy-summary-card-skeleton","aria-hidden":!0,
28className:"flex flex-col gap-4 xl:gap-6",children:[(0,l.jsxs)("span",{className:"flex flex-col items-center gap-4 md:flex-row xl:gap-6",children:[(0,l.jsx)("span",{className:"h-20 w-full shrink-0 animate-pulse rounded-lg bg-fill/alternative-2 md:w-50 xl:h-28 xl:w-68"}),(0,l.jsx)("span",{className:"h-7 w-3/5 animate-pulse rounded-md bg-fill/alternative-2"})]}),(0,l.jsx)("span",{className:"flex flex-col gap-6 py-1",children:[0,1,2,3,4,5].map(e=>(0,l.jsx)("span",{className:"h-4 w-full animate-pulse rounded-md bg-fill/alternative-2"},e))}),(0,l.jsx)("span",{className:"h-10 w-full animate-pulse rounded-md bg-fill/alternative-2"})]});e.s(["PolicySummaryCard",0,({summary:e})=>(0,l.jsx)("section",{"data-component":"policy-summary-card",className:"flex flex-col gap-4 rounded-2xl border border-fill/alternative-3 bg-white p-4 xl:gap-6 xl:rounded-3xl xl:p-6",children:e?(0,l.jsx)(tH,{summary:e}):(0,l.jsx)(tB,{})})],909418),e.s([],107781);let tF=4,tV="flex size-8 shrink-0 items-center justify-center rounded-full border md:size-12",tG=()=>(0,l.jsx)("span",{"data-component":"purchase-success-stepper-step",className:(0,a.default)(tV,"border-brand-primary bg-fill/primary-light"),children:(0,l.jsx)(b.MaterialIcon,{icon:"check",px:22,className:"text-brand-primary"})});e.s(["PurchaseSuccessStepper",0,({completedSteps:e=tF,greetingHtml:t})=>{let r=Math.max(0,e);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{"data-component":"purchase-success-stepper",className:"flex items-center justify-between",children:[Array.from({length:r}).map((e,t)=>(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(tG,{}),(0,l.jsx)("hr",{"aria-hidden":!0,className:"mx-4 w-full border-fill/primary"})]},t)),(0,l.jsx)("span",{"data-component":"purchase-success-stepper-covered",className:(0,a.default)(tV,"border-0 bg-brand-primary"),children:(0,l.jsx)(b.MaterialIcon,{icon:"verified_user",px:22,className:"text-white"})})]}),t&&(0,l.jsx)("div",{"data-component":"purchase-success-stepper-greeting",className:"mt-6",children:(0,l.jsx)(t$.RawHtml,{content:t})})]})}],976728),e.s([],882578);var tW=e.i(71613);let tK=(0,x.staticText)({default_title:{_:"See similar products other customers have viewed",zh:"å
¶ä»å®¢æ¶ä¹æ¥çäºéäºç¢å","zh-tw":"å
¶ä»ç¨æ¶ä¹æ¥çäºéäºç¢å"},apply_now:{_:"Apply Now",zh:"ç«å³ç³è«"}}),tY="grid w-full min-w-min items-stretch",tQ="sticky left-0 z-10 break-words px-spacing/padding/x-sm py-spacing/padding/y-sm text-left text-[15px] font-bold leading-[21px] text-text/primary";function tZ({module_title:e,cta_text_override:t,products:i,attributes:n,slug:s,pushDataLayer:o}){var d;let p,x=(0,u.useCmsClientContext)(),h=(0,tW.useCtaResolver)(),g=(0,c.useCalculatedAttributeResolver)(),f=(0,m.getClientTranslations)(tK,x),_="article"===x.pageType,y=e||f.default_title,v=t||f.apply_now,N={gridTemplateColumns:(p=(d=i.length)>0?`repeat(${d}, minmax(112px,244px))`:"",`minmax(120px,250px) ${p} 1fr`)};return(0,l.jsxs)("section",{"data-component":"similar-products",children:[(0,l.jsxs)("h2",{className:(0,a.default)("mb-spacing/gap/y flex items-center gap-2.5 alpha-title-1",{"text-text/primary":_,"text-text/accent py-spacing/padding/y-xs":!_}),children:[!_&&(0,l.jsx)(b.MaterialIcon,{icon:"award_star",px:30,className:"shrink-0"}),y]}),(0,l.jsxs)(tL,{className:(0,a.default)("overflow-x-auto rounded-radius/card bg-fill/card",_?"border border-borders/default":"shadow-md"),recomputeKey:i.length,role:"table","aria-label":y,prevLabel:"Scroll to previous products",nextLabel:"Scroll to next products",children:[(0,l.jsxs)("div",{className:tY,style:N,role:"row",children:[(0,l.jsx)("div",{role:"columnheader",className:(0,a.default)(tQ,"bg-fill/card")}),i.map(({product:e,cta_link_override:t},a)=>(0,l.jsxs)("div",{role:"columnheader","data-product-id":e.uid??e.entryUID,className:"flex flex-col items-center gap-2.5 px-spacing/padding/x-sm py-spacing/padding/y-sm",children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[e.product_image&&(0,l.jsx)(ex.CmsImage,{src:e.product_image,alt:e.product_name??e.title??"",width:64,height:40,sizes:{_:64},className:"h-10 w-16 rounded-[5px] object-contain"}),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-1.5 text-center",children:[(0,l.jsx)("span",{className:"text-sm font-bold leading-[18px] text-text/primary",children:e.provider?.provider_name}),(0,l.jsx)("span",{className:"text-sm leading-[18px] text-text/secondary",children:e.product_name??e.title})]})]}),(0,l.jsx)(r.default,{as:"a",styleType:"cta",size:"small",href:h({product:e,ctaLinkOverride:t}),target:"_blank",rel:"noreferrer noopener",onClick:()=>{o&&(0,E.sendProductAnalytics)({action:E.UserActionEnum.CLICK,componentTitle:"Similar Product/CTA_Apply Now",componentType:E.ComponentTypeEnum.TABLE,event:"product_click_apply",index:a.toString(),url:s,product:e,pushDataLayer:o})},className:"mt-auto !h-auto !min-h-[--button-size-regular] w-fit whitespace-normal text-center",children:v})]},e.entryUID??a))]}),n.map((e,t)=>{let r=t%2==1;return(0,l.jsxs)("div",{role:"row",className:(0,a.default)(tY,{"bg-highlights/blue-light":r}),style:N,children:[(0,l.jsx)("div",{role:"rowheader",className:(0,a.default)(tQ,r?"bg-highlights/blue-light":"bg-fill/card"),
28children:e.display_label_override||e.attribute.label}),i.map(({product:t},a)=>(0,l.jsx)("div",{role:"cell","data-product-id":t.uid??t.entryUID,className:"break-words px-spacing/padding/x-xs py-spacing/padding/y-sm text-center text-sm leading-[18px] text-text/secondary",children:((e,t,l)=>{if(l)return"resolved"===l.state?l.value.formatted:"â";if(!t)return"â";let a=e?.find(e=>e?.name?.uid===t);return(a?String((0,ea.formatAttributeItemValue)(a)??"").trim():"")||"â"})(t.attributes,e.attribute.uid,g(e.attribute.name,t))},t.entryUID??a))]},e.attribute.uid??t)})]})]})}e.s(["SimilarProducts",()=>tZ],396466),e.s([],131336);var tq=e.i(983865);e.s(["default",0,()=>{let[e,t]=(0,tq.useCmsHashState)({exclusiveRewardsProductUid:"string"}),l=e.exclusiveRewardsProductUid??"";return{openModal:e=>(t({exclusiveRewardsProductUid:e}),!0),closeModal:()=>(t({exclusiveRewardsProductUid:void 0}),!1),isOpen:!!l,productUid:l}}],69872)},383088,e=>{"use strict";var t=e.i(983865);e.s(["useCentralModals",0,()=>{let[e,l]=(0,t.useCmsHashState)({errorModalOpen:"string",confirmationModalOpen:"string"}),a="true"===e.errorModalOpen,i="true"===e.confirmationModalOpen,r=()=>l({errorModalOpen:"true"}),n=()=>l({errorModalOpen:void 0}),s=()=>l({confirmationModalOpen:"true"}),o=()=>l({confirmationModalOpen:void 0});return{isErrorOpen:a,isConfirmationOpen:i,openErrorModal:r,closeErrorModal:n,toggleErrorModal:()=>{a?n():r()},openConfirmationModal:s,closeConfirmationModal:o,toggleConfirmationModal:()=>{i?o():s()}}}])},900753,e=>{"use strict";var t=e.i(464366);function l(){try{return(0,t.useCarInsuranceContext)()}catch{return null}}e.s(["useSafeCarInsuranceContext",()=>l])},352219,399637,345112,856687,831750,287642,491268,114750,e=>{"use strict";var t=e.i(843476),l=e.i(343794),a=e.i(618566),i=e.i(69872),r=e.i(594999),n=e.i(539931);e.i(174345);var s=e.i(774860),o=e.i(674686);e.i(45030);var d=e.i(359747);e.i(782316);var c=e.i(619827),p=e.i(143087),u=e.i(510274),m=e.i(892063),x=e.i(943032),h=e.i(383088),g=e.i(900753);let f=e=>{let{className:f,showPriceCheck:b,carInsuranceSection:_,buttonStyleMap:y,sendAnalytics:v,staticText:N,ctaLinkOverride:C,ctaLabelOverride:w,product:j}=e,{openErrorModal:T}=(0,h.useCentralModals)(),A=(0,d.useSafeSearchParams)(),k=(0,a.useRouter)(),L={utm_source:A?.get("utm_source")??"",utm_medium:A?.get("utm_medium")??"",utm_campaign:A?.get("utm_campaign")??"",utm_channel:A?.get("utm_channel")??"",utm_content:A?.get("utm_content")??"",utm_strategy:A?.get("utm_strategy")??"",utm_term:A?.get("utm_term")??""},{brand:S,langPrefix:E}=(0,s.useCmsClientContext)(),R=(0,r.getAttrFromProduct)(r.ATTR_NAMES.REWARD_PRODUCT_ID,j),{buttonSize:O,buttonIconSize:z}=(0,o.useBreakpoint)({_:{buttonSize:"small",buttonIconSize:2},md:{buttonSize:"regular",buttonIconSize:3}}),I=!!R?.value,{openModal:P}=(0,i.default)(),{open:M}=(0,u.useApplyV3Modal)(),D=(0,g.useSafeCarInsuranceContext)();if(!D)return null;let U=j.title??"",$=j.provider?.provider_name??"",{requestParams:{user:{value:{firstName:H,lastName:B,email:F,phone:V}},vehicle:{value:{type:G,makeName:W,modelName:K,fairMarket:Y,manufactureYear:Q,trim:Z}},prices:{value:{propertyDamage:q,personalAccident:X,isActsOfNature:J}}},sendLeadToZoho:ee,getCarInsuranceLayoutId:et}=D,el=async()=>{if(v(),"singsaver"===S){if(I&&j?.uid)return void P(j.uid);let e=(0,p.resolveCtaUrlForVertical)({vertical:"CAR_INSURANCE",product:j,ctaLinkOverride:C,brand:S,langPrefix:E}),t=(0,c.matchApplyV3ModalIntent)(e);return t?void M(t):void window.open(e,"_blank")}if("moneymax"===S){let{clkid:e,clktype:t}=(0,n.getUtmParams)(A);try{await ee({First_Name:H||"-",Last_Name:B||"-",Email:F,Phone:V,Product_Type:"Motor Vehicle",Vehicle_Type:G,Car_Make:W,Car_Model:K,Car_Year:Q.toString(),Car_Variant:Z,Bodily_Injury:String(q),Property_Damage:String(q),Personal_Accident:String(X),Acts_of_Nature_Coverage:void 0===J?null:J?"With AON":"Without AON",FMV:String(Y),UtmSource:L.utm_source,UtmMedium:L.utm_medium,UtmCampaign:L.utm_campaign,UtmChannel:L.utm_channel,UtmContent:L.utm_content,UtmStrategy:L.utm_strategy,UtmTerm:L.utm_term,scaleo_click_id:e,scaleo_click_type:t,isAutoCreated:!0,Lead_Status:"New Lead",Layout:{i
28d:await et()},Selected_Product:U??"",Selected_Provider:$??""}),k.push("/car-insurance/application-success")}catch{T()}}};return(0,t.jsx)(m.default,{endIcon:(0,t.jsx)(x.MaterialIcon,{icon:b?"open_in_new":"arrow_right_alt",className:"w-full",size:z}),size:O,styleType:b?_?.buttonCheckType?y[_.buttonCheckType]:"primary":_?.buttonBuyType?y[_.buttonBuyType]:"cta",onClick:el,className:(0,l.default)(f),children:b?_?.buttonCheckText??N.check_price:w??_?.buttonBuyText??N.buy_now})};e.s(["CarInsuranceCtaBuilder",0,e=>{let l=l=>(0,t.jsx)(f,{...e,...l});return l.displayName="CarInsuranceCtaBuilder",l}],352219);var b=e.i(444119),_=e.i(564755),y=e.i(789450),v=e.i(444101),N=e.i(226966);e.s(["TravelInsuranceCtaBuilder",0,e=>{let{product:a,ctaLinkOverride:i,e2eToogleButton:r,e2eLabel:n,ctaLabelOverride:o,travelInsuranceCtaType:d,sendAnalyticsForButtonApply:c}=e,{brand:p,lang:u,greatEasternDeeplink:h}=(0,s.useCmsClientContext)(),g=(0,_.getClientTranslations)(N.TRANSLATIONS,{brand:p,lang:u}),f=(0,l.default)({"mhg-alpha-btn-small w-full md:w-general/2-col-width md:h-[--button-size-regular]":"productCard"===d,"mhg-alpha-btn-small w-23 md:mhg-alpha-btn md:w-40 lg:w-general/2-col-width":"rewardAsideModal"===d}),C=(0,b.isGreatEasternProduct)(a)&&!h,w=(0,t.jsxs)("div",{className:"truncate px-2 flex items-center",children:[r?n||o||(0,y.tr)("express_checkout",g):o||(0,y.tr)("ti_click_out",g),(0,t.jsx)(x.MaterialIcon,{icon:r?"arrow_right_alt":"open_in_new",size:2,className:"ml-1 flex items-center justify-center size-[18px] md:size-6"})]});return C?(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:"block w-full md:inline md:w-auto",children:(0,t.jsx)(m.default,{styleType:"primary",className:f,disabled:!0,children:w})})}):(0,t.jsx)("div",{children:(0,t.jsx)(v.ApplyCtaLink,{product:a,ctaLinkOverride:i,e2eCTA:r,className:"block w-full md:inline md:w-auto",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(m.default,{styleType:r?"cta":"primary",className:f,onClick:c,children:w})})})}],399637);var C=e.i(271645);e.i(328419);var w=e.i(424135),j=e.i(324656);e.i(397031);var T=e.i(271159);e.i(472248);var A=e.i(548719),k=e.i(425336),L=e.i(734800),S=e.i(630725),E=e.i(536500),R=e.i(605122);let O=({score:e,info:a="",max:i=5,mode:r="horizontal",className:n,starView:s=!0})=>(0,t.jsxs)("div",{className:(0,l.default)("mhg-alpha-bullet-1 flex items-center",{"!items-start":"vertical"===r},n),children:[(0,t.jsxs)("div",{className:(0,l.default)("mhg-alpha-bullet-1 flex items-center gap-2",{"flex-col !items-start":"vertical"===r}),children:[(0,t.jsxs)("div",{className:"flex items-center gap-1 md:gap-2",children:[(0,t.jsx)(S.default,{className:"w-12 md:w-auto"}),(0,t.jsx)("span",{className:"mhg-alpha-body-2 md:mhg-alpha-body-1 text-nowrap text-text/secondary",children:"rating"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[s&&(0,t.jsx)(E.default,{className:"text-[#2955DE]"}),(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 md:mhg-alpha-bullet-1 text-[#2955DE]",children:e}),(0,t.jsxs)("span",{className:"mhg-alpha-body-2 md:mhg-alpha-body-1 text-text/secondary",children:["/ ",i]})]})]}),a&&(0,t.jsx)("div",{className:"ml-1",children:(0,t.jsx)(R.default,{content:a})})]});e.s(["Rating",0,O],345112);let z={PERSONAL_LOANS:(0,l.default)("h-14 w-24 md:h-[65px] md:w-32"),BANKING:(0,l.default)("h-14 w-24 md:h-[65px] md:w-32"),INVESTMENTS:(0,l.default)("h-14 w-24 md:h-[65px] md:w-32"),TRAVEL_INSURANCE:(0,l.default)("h-14 w-24 md:h-[65px] md:w-32"),CAR_INSURANCE:(0,l.default)("h-14 w-24 md:h-[65px] md:w-32")},I=(0,l.default)("h-18 w-28 md:h-[97px] md:w-38"),P={PERSONAL_LOANS:(0,l.default)("p-2 md:px-3 md:py-4"),BANKING:(0,l.default)("p-2 md:px-3 md:py-4"),INVESTMENTS:(0,l.default)("p-2 md:px-3 md:py-4"),TRAVEL_INSURANCE:(0,l.default)("p-spacing/gap/y-sm"),CAR_INSURANCE:(0,l.default)("px-spacing/gap/x-sm py-spacing/gap/y-sm")};e.s(["ProductCardHeader",0,e=>{let a,i,n,{product:o,vertical:d,url:c,index:p,view_rating:u,componentAttributes:m,pushDataLayer:x}=e,{product_name:h,product_image:g,url_alias:f,rate_score:b,rate_additional_information:y,attributes:v}=o,S=(0,s.useCmsClientContext)(),E=(0,j.parseUrlAlias)(f).url||void 0,R=(0,_.getClientTranslations)(N.TRANSLATIONS,S),[M,D]=(0,C.useState)(!1);if(!d)return;let U=e=>{(0,w.sendProductAnalytics)({action:w.UserActionEnum.CLICK,componentTitle:`Product Card/${e}`,componentType:w.ComponentTypeEnum.PRODUCT_CARD,event:"product_interaction",index:
28p,url:c,product:o,pushDataLayer:x})},$=async()=>{if(B&&F)try{await navigator.clipboard.writeText(F),D(!0),setTimeout(()=>{D(!1)},1500)}catch(e){console.error("Failed to copy promo code:",e)}},H=m.find(e=>{let t=v?.find(t=>t?.name?.uid===e.attribute?.uid);return t?.name?.name===r.ATTR_NAMES.PROMO_CODE}),B=H?{label:H.label?.trim()||R.promo_code,additionalInfo:H.additional_information,attribute:v?.find(e=>e?.name?.uid===H.attribute?.uid)}:void 0,F=B?.attribute?.__typename==="ComponentAttributesAttrPlainText"&&B.attribute.value,V=(0,k.getGoogleRating)(o);return(0,t.jsxs)("div",{className:"flex items-center justify-start gap-4 md:gap-6",children:[(0,t.jsx)("div",{className:"rounded-radius/tooltip border border-borders/default",children:(a=z[d]??I,i=P[d],n=(0,t.jsx)(T.CmsImage,{...{alt:h??"Product image",src:g??"",width:112,height:72,className:"object-contain"},sizes:{_:152},className:(0,l.default)("object-contain",a)}),d&&"CREDIT_CARD"!==d?(0,t.jsx)("div",{className:(0,l.default)("h-18 w-28 md:h-[97px] md:w-38",i),children:n}):(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:E,onClick:()=>U("Product Image"),children:n}))}),(0,t.jsxs)("div",{className:"flex flex-col items-start justify-start gap-spacing/padding/soft-6px",children:[(0,t.jsx)("h3",{className:"mhg-alpha-typography-title-2 md:mhg-alpha-title-1",children:d&&"CREDIT_CARD"!==d?(0,t.jsx)("span",{children:h}):(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:E??"#",title:h??"",onClick:()=>U("Product Name"),className:"hover:underline",children:h})}),V&&(0,t.jsx)(A.GoogleRating,{rateScore:V.rateScore,rateCount:V.rateCount,productId:o.uid,onClick:()=>(0,w.sendProductAnalytics)({action:w.UserActionEnum.CLICK,componentTitle:"Product Card/Review Module_See Review",componentType:w.ComponentTypeEnum.PRODUCT_CARD,event:"product_interaction",index:
28p,url:c,product:o,pushDataLayer:x,ratingContext:(0,k.getGoogleRatingContext)(V)})}),b&&u&&(0,t.jsx)("div",{className:"origin-left",children:(0,t.jsx)(O,{className:"text-nowrap py-spacing/padding/x-xs",score:b,info:y??"",mode:"horizontal",starView:!1})}),B&&(0,t.jsxs)("div",{className:"flex origin-left items-center gap-spacing/gap/soft-4px",children:[(0,t.jsxs)("p",{className:"mhg-alpha-typography-body-2 md:mhg-alpha-typography-body-1 text-nowrap text-text/secondary-lighter",children:[B.label,":"]}),(0,t.jsx)("p",{className:"mhg-alpha-typography-bullet-2 md:mhg-alpha-typography-bullet-1 text-fill/primary",children:F}),(0,t.jsxs)("button",{type:"button",onClick:$,"aria-label":"Copy promo code",className:"cursor-pointer border-none bg-transparent p-0",children:[(0,t.jsx)(L.default,{}),M&&(0,t.jsx)("div",{className:"mhg-alpha-typography-caption absolute z-10 rounded p-2 shadow-lg bg-white text-text/secondary-lighter",children:R.copied})]})]})]})]})}],856687);var M=e.i(192766);e.i(73430);var D=e.i(316832),U=e.i(396820),$=e.i(578197),H=e.i(469835);let B=({icon:e,content:l,isVisible:a,title:i,translationContext:r,toggleVisibility:n})=>{let s=(0,_.getClientTranslations)(N.TRANSLATIONS,r);return(0,t.jsx)($.CollapsibleSection,{id:`promo-details-ci-${i}`,isOpen:a,onToggle:n,iconName:e,iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",content:(0,t.jsxs)("div",{className:"p-3",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 gap-spacing/gap/soft-12px font-medium text-sm lg:text-base"}),l&&(0,t.jsx)(H.RichText,{className:"w-full overflow-x-hidden",children:l??""})]}),children:(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:i in s?(0,y.tr)(i,s):i})})};var F=e.i(637243);let V=({items:e,type:l,className:a=""})=>{if(!e.length)return null;let i=()=>{switch(l){case"pros":return(0,t.jsx)(F.default,{className:"absolute -left-8 top-0 text-highlights/green-dark"});case"cons":return(0,t.jsx)(x.MaterialIcon,{icon:"cancel",className:"absolute -left-8 top-0 text-highlights/red-dark"});case"usp_labels":return(0,t.jsx)("div",{className:"absolute -left-6 top-1.5 size-2 rounded-full bg-current text-text/secondary-lighter"});default:return null}};return(0,t.jsx)("ul",{className:`ml-2 flex flex-col gap-spacing/gap/soft-6px px-padding/x text-text/primary alpha-bullet-2 ${a}`,children:e.map(e=>(0,t.jsxs)("li",{className:"relative",children:[(0,t.jsx)(i,{}),(0,t.jsx)(H.RichText,{component:"span",children:e})]},e))})},G=({isVisible:e,productAttributes:l,toggleVisibility:a})=>{let i=(0,s.useCmsClientContext)(),r=(0,_.getClientTranslations)(N.TRANSLATIONS,i),n=l.reduce((e,t)=>(U.coverageAttributesList.includes(t.name?.name??"")&&"ComponentAttributesAttrBoolean"===t.__typename&&(t.value?e.pros.push(t):e.cons.push(t)),e),{pros:[],cons:[]});return(0,t.jsx)($.CollapsibleSection,{id:"section-coverage",isOpen:e,onToggle:a,iconName:"directions_car",iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",content:(0,t.jsx)("div",{className:"p-3",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-spacing/gap/soft-12px font-medium text-sm lg:text-base",children:[V({items:n.pros.map(e=>e.label??""),type:"pros"}),V({items:n.cons.map(e=>e.label??""),type:"cons"})]})}),children:(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:r.coverage})})},W=e=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_17030_10758)",children:[(0,t.jsx)("path",{d:"M12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M11.4 17.325V16.5102H9V15.288H13.5539C13.6154 15.288 13.6718 15.2618 13.7231 15.2096C13.7744 15.1574 13.8 15.0999 13.8 15.0372V12.6868C13.8 12.6241 13.7744 12.5667 13.7231 12.5144C13.6718 12.4622 13.6154 12.4361 13.5539 12.4361H10.4461C10.042
2812.4361 9.69998 12.2935 9.41998 12.0083C9.13999 11.7231 9 11.3747 9 10.9631V8.61272C9 8.20113 9.13999 7.85275 9.41998 7.56757C9.69998 7.28239 10.042 7.13979 10.4461 7.13979H11.4V6.32498H12.6V7.13979H15V8.36198H10.4461C10.3846 8.36198 10.3282 8.3881 10.2769 8.44035C10.2256 8.49258 10.2 8.55003 10.2 8.61272V10.9631C10.2 11.0258 10.2256 11.0833 10.2769 11.1355C10.3282 11.1878 10.3846 11.2139 10.4461 11.2139H13.5539C13.9579 11.2139 14.3 11.3565 14.58 11.6417C14.86 11.9268 15 12.2752 15 12.6868V15.0372C15 15.4488 14.86 15.7972 14.58 16.0824C14.3 16.3676 13.9579 16.5102 13.5539 16.5102H12.6V17.325H11.4Z",fill:"#212121"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_17030_10758",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),K=({isVisible:e,vertical:l,long_description:a,product:i,title:r,icon:n,toggleVisibility:o})=>{let d=(0,s.useCmsClientContext)(),c=(0,_.getClientTranslations)(N.TRANSLATIONS,d),p=(e,l,a)=>0===a.length?null:(0,t.jsxs)("div",{className:"space-x-spacing/gap/soft-8px",children:[(0,t.jsx)("div",{className:"mhg-alpha-bullet-2",children:l}),(0,t.jsx)("ul",{children:a.map((e,l)=>e.name?.name==="REQUIRED_DOCUMENTS"?(0,t.jsx)("div",{className:"mhg-alpha-body-2",children:(0,t.jsx)(H.RichText,{children:(0,D.formatAttributeItemValue)(e,!1,!0)})},e.name.name):(0,t.jsxs)("div",{className:"mhg-alpha-body-2",children:[e.label,": ",(0,D.formatAttributeItemValue)(e,!1,!0)]},`${i.title}_${l}_${e.name?.uid}`))})]},e),u=(0,D.groupProductAttributes)(i);return(0,t.jsxs)($.CollapsibleSection,{id:`section-details-${i.uid}`,isOpen:e,onToggle:o,iconName:n,iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",content:(0,t.jsxs)("div",{className:"p-3",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-spacing/gap/soft-12px font-medium text-sm lg:text-base",children:[u.repayment&&p("repayment",c.repayment_details,u.repayment),u.fees&&p("fees",c.fees,u.fees),u.eligibility&&p("eligibility",c.eligibility,u.eligibility),u.requiredDocuments&&"PERSONAL_LOANS"===l&&p("required_documents",c.required_documents,u.requiredDocuments)]}),a&&""!==a&&(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("div",{className:"mhg-alpha-bullet-2",children:c.key_features}),(0,t.jsx)(H.RichText,{className:"w-full overflow-x-hidden",children:a??""})]})]}),children:["PERSONAL_LOANS"===l&&(0,t.jsx)(W,{}),(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:(0,y.tr)(r,c)})]})};var Y=e.i(400226),Q=e.i(225336);e.i(201542);var Z=e.i(77719);let q=(e,t)=>e.endsWith("_productDetail")||(0,j.shouldUsePdpModal)(t);var X=e.i(366420);let J=["PERSONAL_LOANS","TRAVEL_INSURANCE","CAR_INSURANCE"];var ee=e.i(904942),et=e.i(244703);e.i(627373);var el=e.i(396522),ea=e.i(328),ei=e.i(770703);e.i(864829);let er=(0,ei.default)(()=>e.A(377317),{loadableGenerated:{modules:[163049]},ssr:!0});e.s(["default",0,er],831750);var en=e.i(811015),es=e.i(974501);let eo=({vertical:e,isVisible:a,title:i,subtitle:r,toggleVisibility:n,giftsInfo:o,gifts:d,giftLinkText:c,type:p,exclusiveOffers:u,welcomeOffers:m,loanSearchParams:x,carInsuranceCtaComponent:h,priceLine:g,product:f,sameUrgencyPhaseOffer:b,componentUniqueKey:y,ctaLinkOverride:v,pushDataLayer:N,travelInsuranceCtaComponent:w,approvalOdds:T,approvalOddsState:A,getPdpModalConfigAction:k,isPreview:L,renderPdpModalHero:S})=>{let E=(0,C.useRef)(null),R=(0,s.useCmsClientContext)(),O=(0,_.getClientTranslations)(Y.BaseTranslations,R),[z]=(({vertical:e,componentUniqueKey:t})=>{let{openModal:l}=(0,X.default)(),{openModal:a}=(0,Z.useProductBlockAsideModal)();return[(0,C.useCallback)(i=>{q(t,i)&&i.uid||J.includes(e)?l(i.uid??"",t):i.url_alias&&a(i.url_alias,Q.SingSaverRewardsSectionId)},[e,t,l,a])]})({vertical:e??"CREDIT_CARD",componentUniqueKey:y});return(0,t.jsx)("div",{children:(0,t.jsxs)($.CollapsibleSection,{id:y,isOpen:a,onToggle:()=>n(),iconName:"exclusive"===p?"featured_seasonal_and_gifts":"account_balance",iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",content:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mhg-alpha-typography-body-2-relaxed flex flex-col items-start gap-spacing/gap/soft-12px px-padding/x py-spacing/gap/soft-12px md:flex-row md:items-center md:pl-4 lg:pl-6",children:[b&&(0,t.jsx)(es.Tag,{color:"red",icon:"alarm",children:b.value}),"TRAVEL_INSURANCE"!==e&&(0,t.jsx)(H.RichText,{children:`${o}`})]}),(d?.length??0)>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"pb-padding/y-sm pl-2 pr-0 md:pl-4 lg:px-6",children:(0,t.jsx)(el.FeCarouselV2,{navigation:{showOnDesktop:!0},pagination:{showOnMobile:!0},children:(d??[])?.map(e=>{let a,i=e.gift_value,{title:r,subtitle:n}=(0,et.getGiftLabels)(e,O);return(0,t.jsx)("button",{type:"button",onClick:()=>{z(f)},"aria-label":r,children:(0,t.jsx)(en.RewardThumbnail,{"data-gift-uid":e.uid,image:e.desktop_image,eyebrow:e.offerTitle,tooltip:e.gift_title,title:r,subtitle:n,rewardThumbnailSizeClasses:(0,l.default)("h-32 w-[145px] md:h-36 md:w-41 xl:h-36 xl:w-[158px]"),tagText:(a=i?.urgency_label)||(b?void 0:(0,ee.getUrgencyPhase)(R.lang,e.startDate,e.endD
28ate)?.value),urgentTagText:!!i?.urgency_label})},e.uid)})})}),(0,t.jsx)("div",{className:"mhg-alpha-typography-button-2 pb-1 pl-2 md:pl-4 lg:pl-6",children:(0,t.jsx)("button",{type:"button",onClick:()=>z(f),className:"cursor-pointer underline text-text/link",children:c})})]}),q(y,f)?(0,t.jsx)(ea.ProductDetailsModalMode,{__typename:"ProductDetailsComponent",id:y,renderingMode:"MODAL",product:f,keyFromComponent:y,idScrollTo:(0,j.shouldUsePdpModal)(f)?"section-offers":void 0,getPdpModalConfigAction:k,isPreview:L,renderPdpModalHero:S}):(0,t.jsx)(er,{welcomeOffers:m,exclusiveOffers:u,scrollRef:"welcome"===p?E:void 0,product:f,loanSearchParams:x,carInsuranceCtaComponent:h,priceLine:g,keyFromComponent:y,ctaLinkOverride:v,vertical:e,pushDataLayer:N,travelInsuranceCtaComponent:w,approvalOdds:T,approvalOddsState:A})]}),children:[(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:i}),r&&(0,t.jsx)("span",{className:"mhg-alpha-body-2 lg:mhg-alpha-bullet-1 hidden opacity-60 md:inline",children:`â ${r}`})]})})};var ed=e.i(43185);let ec=({titleColumns:e,rows:a,footer:i,productName:r,prefix:n})=>(0,t.jsx)("div",{className:"h-fit w-full overflow-hidden rounded-lg border border-gray-300",children:(0,t.jsxs)("table",{className:"w-full",children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:"border border-b-gray-300",children:e.map((e,a)=>(0,t.jsx)("th",{className:(0,l.default)("text-nowrap font-semibold bg-gray-100 text-gray-900 sm:px-3 sm:py-1 sm:text-sm md:px-3 md:py-2 md:text-base lg:px-4 lg:py-3 lg:text-lg",{"w-1/2":0===a,"w-1/4":0!==a}),children:e},`${r}_table_col_${e}_${a}`))})}),(0,t.jsx)("tbody",{children:a.map((e,l)=>(0,t.jsx)("tr",{className:"border border-b-gray-300",children:e.map((e,l)=>(0,t.jsx)("td",{className:"font-medium text-gray-900 sm:px-3 sm:py-1 sm:text-sm md:px-3 md:py-2 md:text-base lg:px-4 lg:py-3 lg:text-lg",children:"number"==typeof e?`${n}${(0,ed.formatNumberWithSeparator)({value:e,thousandsSeparator:","})}`:e},`${r}_table_td_${e}_${l}`))},`${r}_table_row_${e}_${l}`))}),i&&(0,t.jsx)("tfoot",{children:(0,t.jsx)("tr",{className:"border border-t-gray-300 bg-white",children:i.map((e,l)=>(0,t.jsx)("td",{className:"px-3 py-1 font-medium text-primary-900 sm:px-3 sm:py-1 sm:text-sm md:px-3 md:py-2 md:text-base lg:px-4 lg:py-3 lg:text-lg",children:"number"==typeof e?`${n}${(0,ed.formatNumberWithSeparator)({value:e,thousandsSeparator:","})}`:e},`${r}_table_cell_${e}_${l}`))})})]})}),ep=({isVisible:e,carInsuranceQuote:l,toggleVisibility:a,productName:i,prefix:r})=>{let n=(0,s.useCmsClientContext)(),o=(0,_.getClientTranslations)(N.TRANSLATIONS,n),d=e=>e%100==0?e/100:e,c=(e,t)=>{let l=parseFloat((t??"0").replace("%","").trim());return isNaN(l)?0:l/100*e};if(!l)return null;let{prices:p,taxes:u}=l,m=[[o.own_damage,p.ownDamageTheft.coverage,p.ownDamageTheft.price],[o.act_nature,p.actOfNature.coverage,p.actOfNature.price],[o.bodily_injury,d(p.bodilyInjury.coverage),d(p.bodilyInjury.price)],[o.property_damage,d(p.propertyDamage.coverage),d(p.propertyDamage.price)],[o.personal_accident,p.personalAccident.coverage,p.personalAccident.price]],x=m.reduce((e,t)=>e+t[2],0),h=Math.round(c(x,u.documentStamps.percentage)),g=Math.round(c(x,u.localGovernment.percentage)),f=Math.round(c(x,u.vat.percentage)),b=[[o.doc_stamps,(0,ed.formatPercent)(u.documentStamps.percentage),h],[o.local_gov,(0,ed.formatPercent)(u.localGovernment.percentage),g],[o.vat,(0,ed.formatPercent)(u.vat.percentage),f]],y=x+(h+g+f);return(0,t.jsx)($.CollapsibleSection,{id:"section-premium-ci",isOpen:e,onToggle:a,iconName:"auto_awesome",iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",content:(0,t.jsx)("div",{className:"p-3 text-left",children:(0,t.jsx)("div",{className:"font-medium text-sm lg:text-base",children:m.length>0&&(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsx)(ec,{titleColumns:[o.type,o.coverage,o.price],rows:m,footer:[o.net_premium,"",x],productName:i,prefix:r}),(0,t.jsx)(ec,{titleColumns:[o.tax,o.tax_rate,o.price],rows:b,footer
28:[o.taxes_total,"",y],productName:i,prefix:r})]})})}),children:(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:o.premium})})},eu=({isVisible:e,content:l,title:a,icon:i,toggleVisibility:r})=>{let n=(0,s.useCmsClientContext)(),o=(0,_.getClientTranslations)(N.TRANSLATIONS,n);return(0,t.jsx)($.CollapsibleSection,{id:`section-steps-to-apply_${a}`,isOpen:e,onToggle:r,iconName:i,iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",content:(0,t.jsx)("div",{className:"mx-3 my-spacing/gap/soft-6px p-spacing/gap/soft-12px",children:(0,t.jsx)(H.RichText,{className:"w-full overflow-x-hidden",children:l??""})}),children:(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:(0,y.tr)(a,o)})})},em=function({className:e}){return(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,t.jsx)("path",{d:"M8.6 6.2C8.6 4.8 7.5 3.7 6.1 3.7C4.7 3.7 3.6 4.8 3.6 6.2V16.6C3.6 18 4.7 19.1 6.1 19.1C7.5 19.1 8.6 18 8.6 16.6V6.2Z",fill:"#212121"}),(0,t.jsx)("path",{opacity:"0.5",d:"M3.6 6.4C3.6 6.4 3.4 7.3 5 8.5L8.6 12.2V16.6L3.6 12.4V6.4Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M20.4 6.1C20.4 4.7 19.3 3.6 17.9 3.6C16.5 3.6 15.4 4.7 15.4 6.1V16.8C15.4 18.2 16.5 19.3 17.9 19.3C19.3 19.3 20.4 18.2 20.4 16.8V6.1Z",fill:"#212121"}),(0,t.jsx)("path",{opacity:"0.5",d:"M20.4 6.1C20.4 6.1 20.6 7 19 8.2L15.4 11.9V16.3L20.4 12.1V6.1Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M16.2 4.5L10.3 11.2C9.3 12.4 9.4 14 10.6 15C11.8 16 13.4 15.9 14.4 14.7L20.3 8C21.3 6.8 21.2 5.2 20 4.2C18.8 3.2 17.2 3.3 16.2 4.5Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M7.9 4.5C6.9 3.3 5.3 3.2 4.3 4.4C3.3 5.6 3.4 7.2 4.6 8.2L10.5 14.9C11.7 15.9 13.3 16 14.3 14.8C15.3 13.6 15.2 12 14 11L7.9 4.5Z",fill:"#212121"})]})},ex={money101:em,moneymax:em,moneyhero:function({className:e}){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:e,children:[(0,t.jsx)("path",{d:"M19.5451 9.67661L18.3371 17.5106C18.2202 18.2851 18.8242 19 19.5938 19H20.5582L22 9.67661H19.5451Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M19.019 13.1419H15.8627L16.1646 11.166C16.2816 10.3915 15.6776 9.67661 14.908 9.67661H13.9435L13.4077 13.1419H11.284C10.6897 13.1419 10.1832 13.5787 10.0955 14.1745L9.89091 15.5248H13.0473L12.7453 17.5007C12.6284 18.2752 13.2324 18.9901 14.002 18.9901H14.9664L15.5022 15.5248H17.6259C18.2202 15.5248 18.7268 15.0879 18.8144 14.4922L19.019 13.1419Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M16.1646 10.7589C16.0672 10.1532 15.5412 9.67661 14.908 9.67661H13.9435L13.7779 10.7589L13.4077 13.1419L14.83 13.1419C15.4048 13.1419 15.8919 12.7447 16.0088 12.1787L16.1646 11.166C16.1841 11.027 16.1841 10.888 16.1646 10.7589Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M14.0701 15.5348C13.4954 15.5348 13.018 15.9319 12.8914 16.4879L12.7355 17.5106C12.716 17.6496 12.716 17.7886 12.7355 17.9177C12.8329 18.5234 13.359 19 13.9922 19H14.9566L15.1222 17.9177L15.4924 15.5348H14.0701Z",fill:"#212121"}),(0,t.jsx)("path",{d:"M10.2026 12.6057C10.5144 12.4071 10.8943 12.2879 11.2937 12.2879H12.6965L13.8363 5H12.112C11.586 5 11.0989 5.24823 10.7871 5.66525L7.73794 9.78581L6.34486 6.14184C6.08183 5.45674 5.42913 5 4.70823 5H3.45153L2 14.3333H4.39649L4.53288 13.4099L4.96152 10.4511V10.4709L5.02971 10.044L6.61763 14.3333H7.86458L10.6118 10.0539L10.1929 12.6156L10.2026 12.6057Z",fill:"#212121"})]})},singsaver:e.i(261524).default},eh=({isVisible:e,productAttributes:l,toggleVisibility:a,vertical:i,productCardProps:r})=>{let n=(0,s.useCmsClientContext)(),o=(0,_.getClientTranslations)(N.TRANSLATIONS,n),d=ex[n.brand],c=(0,D.getQuickFacts)(l)?.quickFacts,p=(0,D.getQuickFacts)(l)?.thingsConsider,u=r?.product,m=(0,D.getTIUniqueSellingPoint)(u?.attributes)?.uniqueSellingPoint;return(0,t.jsxs)($.CollapsibleSection,{id:`section-take-${u?.uid??"default"}`,isOpen:e,onToggle:a,iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",content:(0,t.jsx)("div",{className:"p-3",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-spacing/gap/soft-12px font-medium text-sm lg:text-base",children:["TRAVEL_INSURANCE"!==i&&(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[V({items:c?.pros||[],type:"pros"}),V({items:p?.pros||[],type:"pros"}),V({items:c?.cons||[],type:"cons"}),V({items:p?.cons||[],type:"cons"})]}),"TRAVEL_INSURANCE"===i&&(0,t.jsx)("div",{children:V({items:m?.pros||[],type:"usp_labels"})})]})}),children:[(0,t.jsx)(d,{className:"size-[18px] md:size-[22px]"})," ",(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:o.brand_take})]})};var eg=e.i(515045);e.s(["ProductCardSectionsMapper",0,e=>{let{loanParams:l,productCardProps:a,carInsuranceCtaComponent:i,priceLine:r,plFilterConfig:n,productDetailsModalKeys:o,getPdpModalConfigAction:d,isPreview:c,renderPdpModalHero:p,travelInsuranceCtaComponent:u}=e,m=(0,s.useCmsClientContext)(),{lang:x,brand:h,currencyDisplay:g}=m,f=(0,_.getClientTranslations)(N.TRANSLATIONS,m),{index:b,url:v,vertical:j,carInsuranceQuote:T,carInsuranceSection:A,product:k,pushDataLayer:L,approvalOdds:S,approvalOddsState:E}=a,{attributes:R,exclusive_offers:O,bundle_exclusive_offers:z,long_description:I,welcome_offers:P}=k;if(!j)return;let[$,H]=(0,C.useState)({detail:!1,rewardExclusive:!1,rewardWelcome:!1,pros:!1,promoCI:!1,coverage:!1,premium:!1,stepsToApply:!1}),{productExclusiveOffer:F,productWelcomeOffer:V}=(e=>{let{welcomeOffer:t,exclusiveOffer:l,loanParams:a,plFilterConfig:i}=e,{amount:r,tenure:n}=a??{};return{productExclusiveOffer:(0,C.useMemo)(()=>(0,M.filterOffersByAmountAndTenure)(l,r,n,i),[l,r,n,i]),productWelcomeOffer:(0,C.useMemo)(()=>(0,M.filterOffersByAmountAndTenure)(t,r,n,i),[t,r,n,i])}})({welcomeOffer:P??[],exclusiveOffer:(0,C.useMemo)(()=>[...O??[],...z??[]],[O,z]),loanParams:l,plFilterConfig:e.plFilterConfig}),W=(0,C.useMemo)(()=>(0,D.getTIUniqueSellingPoint)(k.attributes)?.uniqueSellingPoint,[k.attributes]),Y=(0,eg.getTitleSectionDetail)(j),Q=(0,eg.getIconSectionDetail)(j),Z=(0,C.useMemo)(()=>(0,D.groupProductAttributes)(k),[k]),q=(0,C.useMemo)(()=>(0,D.getQuickFacts)(R)?.quickFacts,[R]),X=(0,C.useMemo)(()=>(0,D.getQuickFacts)(R)?.thingsConsider,[R]),J=(0,C.useMemo)(()=>R?.filter(e=>"ComponentAttributesAttrRichTextEditor"===e.__typename).find(e=>e.name?.name==="STEPS_TO_APPLY")?.value,[R]),ee=(0,C.useCallback)((e,t,l)=>{let a={rewardWelcome:`Product Card/Rewards Accordion_${t}`,rewardExclusive:`Product Card/Rewards Accordion_${t}`,pros:`Product Card/Pros&Cons_${t}`,detail:`Product Card/Product Details_${t}`,promoCI:`Product Card/Product promo CI_${t}`,coverage:`Product Card/Product coverage CI_${t}`,premium:`Product Card/Product premium CI_${t}`,stepsToApply:`Product Card/Product stepsToApply CI_${t}`};(0,w.sendProductAnalytics)({action:l?w.UserActionEnum.COLLAPSE:w.UserActionEnum.EXPAND,componentTitle:a[e],componentType:w.ComponentTypeEnum.ACCORDION,event:"product_interaction",index:b,url:v,product:k,pushDataLayer:L,approvalDegree:S,approvalDegreeState:E})},[b,v,k,L,S,E]),et=(0,C.useCallback)((e,t)=>{let l={...$},a=l[e];
28Object.keys(l).forEach(e=>{l[e]=!1}),a||(l[e]=!0),H(l),t&&ee(e,t,a)},[$,H,ee]),el=(0,C.useMemo)(()=>(0,eg.buildSectionExclusiveOfferData)({productCardProps:a,context:m,prefix:g,vertical:j,toggleSectionVisible:et,loanSearchParams:l,isVisible:$.rewardExclusive,offersWithFilteredGifts:F??[],carInsuranceCtaComponent:i,priceLine:r,plFilterConfig:n,productDetailsModalKeys:o,travelInsuranceCtaComponent:u}),[a,m,g,j,et,l,$.rewardExclusive,F,i,r,n,o,u]),ea=el.data,ei=(0,C.useMemo)(()=>(0,eg.buildSectionWelcomeOfferData)({productCardProps:a,context:m,prefix:g,vertical:j,toggleSectionVisible:et,loanSearchParams:l,isVisible:$.rewardWelcome,offersWithFilteredGifts:V??[],carInsuranceCtaComponent:i,priceLine:r,plFilterConfig:n,productDetailsModalKeys:o,travelInsuranceCtaComponent:u}),[a,m,g,j,et,l,$.rewardWelcome,V,i,r,n,o,u]),er=ei.data,en={isVisible:$.pros,productAttributes:R??[],toggleVisibility:()=>et("pros",f.brand_take),vertical:j,productCardProps:a},es={isVisible:$.detail,vertical:j,long_description:I,product:a.product,title:Y,icon:Q,toggleVisibility:()=>et("detail",(0,y.tr)(Y,f))},ed={translationContext:{brand:h,lang:x},isVisible:$.promoCI,title:f.drive_protected,icon:Q,content:A?.promoDetails??"",toggleVisibility:()=>et("promoCI",(0,y.tr)("drive_protected",f))},ec={isVisible:$.coverage,toggleVisibility:()=>et("coverage",(0,y.tr)("coverage",f)),productAttributes:R??[]},em={isVisible:$.premium,toggleVisibility:()=>et("premium",(0,y.tr)("premium",f)),productName:k.product_name??"",carInsuranceQuote:T,prefix:g??""},ex={isVisible:$.stepsToApply,toggleVisibility:()=>et("stepsToApply",(0,y.tr)("steps_to_apply",f)),content:J??"",title:"steps_to_apply",icon:"steppers"},ef=[{id:"rewardExclusive",shouldShow:el.shouldRenderSection||el.shouldShowEligibilityHint,render:()=>(0,t.jsx)(eo,{...ea,getPdpModalConfigAction:d,isPreview:c,renderPdpModalHero:p})},{id:"rewardWelcome",shouldShow:ei.shouldRenderSection||ei.shouldShowEligibilityHint,render:()=>(0,t.jsx)(eo,{...er,getPdpModalConfigAction:d,isPreview:c,renderPdpModalHero:p})},{id:"stepsToApply",shouldShow:!!J&&!!j&&U.allowedTIVerticals.includes(j)&&!!ex.content,render:()=>(0,t.jsx)(eu,{...ex})},{id:"pros",shouldShow:"TRAVEL_INSURANCE"!==j&&(q?.pros?.length>0||q?.cons?.length>0||X?.pros?.length>0||X?.cons?.length>0)||"TRAVEL_INSURANCE"===j&&!!W?.pros&&W?.pros?.length>0,render:()=>(0,t.jsx)(eh,{...en})},{id:"detail",shouldShow:!!I||!!Z.eligibility.length||!!Z.fees.length||!!Z.repayment.length,render:()=>(0,t.jsx)(K,{...es})},{id:"promoCI",shouldShow:!!A?.promoDetails,render:()=>(0,t.jsx)(B,{...ed})},{id:"coverage",shouldShow:!!R?.some(e=>U.coverageAttributesList.includes(e.name?.name??"")),render:()=>(0,t.jsx)(G,{...ec})},{id:"premium",shouldShow:Object.keys(T?.prices??{}).length>0||Object.keys(T?.taxes??{}).length>0,render:()=>(0,t.jsx)(ep,{...em})}],eb="TRAVEL_INSURANCE"===j?null:ef.find(e=>e.shouldShow)?.id??"detail";return(0,C.useEffect)(()=>{et(eb??"detail")},[eb]),(0,t.jsx)("div",{className:"flex flex-col gap-spacing/gap/soft-6px",children:ef.map(({id:e,shouldShow:l,render:a})=>l&&(0,t.jsx)("div",{children:a(eb===e)},e))})}],287642);var ef=e.i(478910);let eb={HIGH:"bg-highlights/green-light",MEDIUM:"bg-highlights/orange-light",LOW:"bg-highlights/red-light"},e_={HIGH:"text-highlights/green-dark",MEDIUM:"text-highlights/yellow-dark",LOW:"text-highlights/red-dark"},ey={HIGH:"bg-highlights/green-dark",MEDIUM:"bg-highlights/yellow-dark",LOW:"bg-highlights/red-dark"},ev={HIGH:"high",MEDIUM:"medium",LOW:"low"};e.s(["SectionApprovalOdds",0,({approvalOdds:e,approvalOddsState:a,approvalOddsLabels:i,onApprovalOddsUnlockClick:r,onApprovalOddsRefreshClick:n,staticText:s})=>{let{isLocked:o,isFresh:d}=(0,ef.getApprovalOddsStatus)(a);if(d||o||n||console.error("SectionApprovalOdds: onApprovalOddsRefreshClick is required when approval odds are not fresh and not locked."),!i)return null;let c=e&&"UNKNOWN"!==e?e:null,p=c?eb[c]:"bg-fill/alternative-1";return(0,t.jsxs)("div",{className:(0,l.default)("my-3 flex items-center justify-between gap-spacing/gap/soft-8px rounded-radius/tooltip p-spacing/padding/soft-12px",p),children:[(0,t.jsxs)("div",{className:(0,l.default)("flex items-center gap-spacing/gap/soft-4px",{"opacity-50":!d}),children:[(0,t.jsx)(x.MaterialIcon,{icon:"approval_delegation",px:18,className:"text-text/primary","aria-hidden":!0}),(0,t.jsx)("span",{className:"text-text/primary mhg-alpha-typography-bullet-1",children:i.sectionTitle}),(0,t.jsx)(R.default,{content:i.tooltip,onOpenEvent:"hover",tooltipPaddingClass:"px-spacing/padding/x-sm py-spacing/padding/soft-12px",children:(0,t.jsx)(x.MaterialIcon,{icon:"info",className:"cursor-pointer text-text/secondary-lighter text-[16px] md:text-[18px]","aria-label":i.tooltip,onClick:()=>o?r?.():n?.()})})]}),o?(0,t.jsxs)("button",{type:"button",onClick:r,className:"flex items-center gap-spacing/gap/soft-4px text-text/primary mhg-alpha-typography-bullet-1",children:[(0,t.jsx)(x.MaterialIcon,{icon:"lock",px:16,"aria-hidden":!0}),(0,t.jsx)("span",{children:i.unlock})]}):(0,t.jsxs)("div",{className:"flex items-center gap-spacing/gap/soft-12px",children:[!d&&!!n&&(0,t.jsxs)("button",{className:"self-stretch inline-flex justify-start items-center gap-x-spacing/gap/soft-6px",type:"button",onClick:n,children:[(0,t.jsx)(x.MaterialIcon,{icon:"refresh",px:16,"aria-hidden":!0}),(0,t.jsx)("div",{className:"justify-start text-text/primary text-base font-semibold leading-5",children:s.refresh})]}),c?(0,t.jsxs)("div",{className:(0,l.default)("flex items-center gap-spacing/gap/soft-4px",{"opacity-50":!d}),children:[(0,t.jsx)("span",{className:(0,l.default)("inline-block size-2.5 rounded-full",ey[c])}),(0,t.jsx)("span",{className:(0,l.default)("mhg-alpha-typography-bullet-1 font-font-we
28ight/title-2",e_[c]),children:i[ev[c]]})]}):(0,t.jsx)("div",{className:(0,l.default)("text-text/secondary-lighter",{"opacity-50":!d}),children:"-"})]})]})}],491268);let eN=[r.ATTR_NAMES.STEPS_TO_APPLY,r.ATTR_NAMES.PROMO_CODE,r.ATTR_NAMES.POLICY_WORDING_DOCUMENT_LINK];e.s(["SectionAttributes",0,e=>{let{componentAttributes:a,product:i,calculateError:r,highlightFirstAttribute:n,url:o,index:d,pushDataLayer:c}=e,{attributes:p}=i,u=(0,s.useCmsClientContext)(),x=(0,_.getClientTranslations)(N.TRANSLATIONS,u),h=(0,C.useCallback)((e,t)=>{(0,w.sendProductAnalytics)({action:"click"===e?w.UserActionEnum.CLICK:w.UserActionEnum.HOVER,componentTitle:`Product Card/Tooltip_${t}`,componentType:w.ComponentTypeEnum.TOOLTIP,event:"product_interaction",index:d,url:o,product:i,pushDataLayer:c})},[o,d,i,c]),g=a.map(e=>{let t=p?.find(t=>t?.name?.uid===e.attribute?.uid),l=e.additional_information;return t?.__typename==="ComponentAttributesAttrNumber"&&t?.additional_information&&(l=t?.additional_information),{label:e.label?e.label:e.attribute?.label,additionalInfo:l,attribute:t}}).filter(e=>!!e.attribute&&!eN.includes(e.attribute.name?.name??""));return(0,t.jsx)("div",{className:"my-6 grid grid-cols-2 gap-y-4 md:grid-cols-4",children:g.map((e,a)=>{var i;let s,o,d,c;return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("div",{className:"mhg-alpha-caption text-text/secondary-lighter",children:e.label}),(0,t.jsxs)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1 flex h-full items-center gap-1",children:[r?(0,y.tr)("calculateErrorPlaceholderMessage",x):e.attribute?(i=(0===a&&n)??!1,s=(0,D.formatAttributeItemValue)(e.attribute,!0,!0,!1),d=("ComponentAttributesAttrNumber"===(o=e.attribute.__typename)||"ComponentAttributesAttrNumberRange"===o)&&"-"!==s.trim()?e.attribute.prefix:void 0,c=(0,U.isPrefixCurrency)(d),(0,t.jsxs)("span",{className:(0,l.default)("relative alpha-bullet-2",{"bg-fill/primary-light rounded-radius/tooltip px-spacing/gap/soft-8px py-spacing/gap/soft-4px":i}),children:[d&&!c&&(0,t.jsxs)("span",{children:[d," "]}),c&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"invisible text-xs",children:[d," "]}),(0,t.jsx)("div",{className:(0,l.default)("absolute -top-0 text-text/secondary-lighter text-xs",{"left-2 top-1":i}),children:d})]}),s]})):" - ",e.additionalInfo&&(0,t.jsx)("span",{className:"inline",children:(0,t.jsx)(m.default,{variant:"text",className:"p-1",onClick:()=>h("click",e.label??""),onMouseEnter:()=>h("hover",e.label??""),children:(0,t.jsx)(R.default,{content:e.additionalInfo,"popup-style":"max-w-[300px]"})})})]})]},`${e.attribute?.name?.uid}_${a}`)})})}],114750)},427011,e=>{"use strict";function t(e){let t=new Date,l=t.getFullYear()-e,a=new Date(t);a.setFullYear(l);let i=a.getFullYear(),r=String(a.getMonth()+1).padStart(2,"0"),n=String(a.getDate()).padStart(2,"0");return`${i}-${r}-${n}T00:00:00+08:00`}let l=["GEX"];function a(e){let t=e?.split(".")[2];return!!t&&l.includes(t)}e.s(["getDateOfBirth",()=>t,"isChatForQuoteCarrier",()=>a])},413990,14928,414021,625408,263247,949280,824146,477173,553733,e=>{"use strict";e.i(39702),e.i(777095),e.i(620568),e.i(192466),e.i(994441),e.i(467179),e.i(433457),e.i(673827),e.i(555471),e.i(178457),e.i(4446),e.i(173954),e.i(17710),e.i(680554),e.i(51970),e.i(968677),e.i(107781),e.i(882578),e.i(131336);var t=e.i(843476),l=e.i(343794);e.i(782316);var a=e.i(444101),i=e.i(440481),r=e.i(321346);e.i(328419);var n=e.i(424135),s=e.i(478910);e.i(174345);var o=e.i(774860);e.i(73430);var d=e.i(43185),c=e.i(334850),p=e.i(564755),u=e.i(619181),m=e.i(892063),x=e.i(352219),h=e.i(900753),g=e.i(943032),f=e.i(105370),b=e.i(974501),_=e.i(399637),y=e.i(226966),v=e.i(856687),N=e.i(287642),C=e.i(491268),w=e.i(114750),j=e.i(427011),T=e.i(26667),A=e.i(944625);let k=e.i(510062).default;var L=e.i(605122),S=e.i(515045);let E={age:"35",maritalStatus:"married",gender:"male",manufactureYear:"2021",make:"Honda",model:"Vezel 1.5",trim:"",ncd:"50%",experience:"10",claims:"0"},R=({productWithLivePrice:e,product:a,sendAnalyticsForButtonApply:i,staticText:r,carInsuranceSection:n,carInsuranceQuote:s,statusCarInsuranceRequest:c,defaultStaticCiTooltip:p,defaultTemplateDynamicCiTooltip:u,CarInsuranceCtaComponent:x})=>{let{brand:g}=(0,o.useCmsClientContext)(),{openModal:f}=(0,T.useCarInsuranceCentralModal)("CAR_INSURANCE");if(!(0,h.useSafeCarInsuranceContext)())return null;let _=(0,S.getCiPriceValue)(e,s,n),y=(0,d.formatNumberWithSeparator)({value:_,thousandsSeparator:",",alwaysTwoDecimals:!0}),v=n?.tooltipTemplateDynamic||u||r.static_pricing_default_tooltip,N=v?.replace(/{(make|model|ncd|experience|claims|age|gender|maritalStatus|manufactureYear|trim)}/g,(e,t)=>E[t]??""),C=n?.tooltipStatic||p||r.live_pricing_default_tooltip,w="singsaver"===g?"fail"===c||"Incomplete"===c||!e:!s?.totalPremium,R="singsaver"===g?e?.discountValue||e?.originalPremium||e?.duePremium:s?.totalPremium,O="fail"!==c&&R,z="Incomplete"!==c&&!R&&(0,j.isChatForQuoteCarrier)(a.title),I=O?C:N;return(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-spacing/gap/soft-8px md:flex-col md:flex-nowrap md:items-end",children:["Incomplete"===c&&(0,t.jsxs)("div",{className:"flex justify-end gap-spacing/gap/soft-8px",children:[(0,t.jsx)(k,{className:"inline size-6"}),(0,t.jsxs)("span",{children:[r.fetch_price,"..."]}
28)]}),"Incomplete"!==c&&!z&&(0,t.jsxs)("div",{className:"flex items-start justify-end gap-spacing/gap/soft-8px md:flex-col lg:flex-row 2sm:items-start",children:[O&&(0,t.jsx)("div",{className:"order-2 flex justify-end md:order-1",children:(0,t.jsx)(b.Tag,{size:"regular",color:"orange",icon:"bolt",children:r.live_pricing})}),"0"!==y&&(0,t.jsxs)("div",{className:(0,l.default)("order-1 flex items-center text-right md:order-2",{"gap-spacing/gap/soft-6px":!n?.prefix}),children:[(0,t.jsx)("span",{className:"mhg-alpha-body-2 text-text/secondary-lighter",children:r.starting_at}),(0,t.jsxs)("span",{className:"mhg-alpha-title-1 relative",children:[n?.prefix&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"opacity-0",children:[n?.prefix," "]}),(0,t.jsx)("span",{className:"absolute -top-1 left-2 scale-75 text-text/secondary-lighter",children:n?.prefix})]}),y,n?.suffix]})]})]}),(0,t.jsx)("div",{className:"flex w-full justify-end gap-2 md:w-auto",children:z?(0,t.jsx)("div",{className:"w-full min-w-52 max-w-full md:max-w-52 lg:min-w-67 lg:max-w-67",children:(0,t.jsx)(m.default,{"data-component":"car-insurance-chat-for-quote-cta",styleType:"primary",onClick:f,className:"w-full",endIcon:(0,t.jsx)(A.WhatsappIcon,{color:"white",size:18}),children:r.chat_for_quote})}):(0,t.jsxs)(t.Fragment,{children:["moneymax"!==g&&(0,t.jsx)("div",{className:"flex size-[30px] shrink-0 items-center justify-center gap-2 rounded-xl bg-[#25D366] text-white md:size-10 lg:size-11",children:(0,t.jsx)("button",{type:"button",onClick:f,children:(0,t.jsx)(A.WhatsappIcon,{color:"white",size:18,className:"size-[18px] md:size-6"})})}),(0,t.jsx)("div",{className:"w-full min-w-52 max-w-full md:max-w-52 lg:min-w-67 lg:max-w-67",children:x&&(0,t.jsx)(x,{className:"w-full",sendAnalytics:i,product:a,staticText:r})})]})}),!z&&(0,t.jsxs)("div",{className:"mhg-alpha-caption flex items-center justify-end text-text/secondary-lighter",children:[(0,t.jsx)("span",{className:"mr-1 text-right font-font-weight/table-cell-normal text-font-size/table-cell",children:w?(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:r.approx_indicative_price}}):r.approx_price}),I&&(0,t.jsx)(L.default,{content:I,"popup-style":"max-w-[300px]"})]})]})};var O=e.i(789450);let z=({travelInsuranceQuotes:e,travelInsuranceCtaComponent:a})=>{let{lang:i,brand:r}=(0,o.useCmsClientContext)(),n=(0,p.getClientTranslations)(y.TRANSLATIONS,{brand:r,lang:i}),{currencySymbol:s,offeredPremium:c,originalPremium:u}=e||{},m=c?parseFloat(c):0,x=u?parseFloat(u):0,h=x>0?Math.round((x-m)/x*100):0,g=m>0,f=h>0,b=""===c&&""===u,_=e=>{let a="mobile"===e;return(0,t.jsxs)("div",{className:(0,l.default)("w-full max-w-general/2-col-width",{"block md:hidden":a,"hidden md:flex md:justify-center":!a,"md:text-center":!b&&!a}),children:[b&&(0,t.jsxs)("div",{className:"mb-spacing/gap/soft-8px flex justify-end gap-spacing/gap/soft-8px",children:[(0,t.jsx)(k,{className:"inline size-6"}),(0,t.jsxs)("span",{children:[(0,O.tr)("fetch_price",n),"..."]})]}),g&&(0,t.jsxs)("div",{className:(0,l.default)("flex items-baseline gap-[2px]",{"justify-start text-left":a,"justify-center text-center h-form/chip-min-height":!a}),children:[(0,t.jsx)("span",{className:"mhg-alpha-caption",children:s}),(0,t.jsx)("span",{className:"mhg-alpha-title-1",children:(0,d.formatNumberWithSeparator)({value:m,thousandsSeparator:",",decimalSeparator:".",alwaysTwoDecimals:!0})})]})]})},v=e=>{let a="mobile"===e;return(0,t.jsx)("div",{className:(0,l.default)("w-full max-w-general/2-col-width",{"block md:hidden":a,"hidden md:flex md:justify-center md:text-center":!a}),children:f&&(0,t.jsxs)("div",{className:(0,l.default)("flex items-center gap-spacing/gap/soft-6px",{"justify-start text-left":a,"justify-center text-center h-[--button-size-small]":!a}),children:[(0,t.jsxs)("span",{className:"font-font-weight/table-cell-normal line-through text-text/secondary-lighter text-font-size/table-cell leading-line-height/table-cell",children:[s,(0,d.formatNumberWithSeparator)({value:x,thousandsSeparator:",",decimalSeparator:".",alwaysTwoDecimals:!0})]}
28),(0,t.jsx)("div",{className:"text-nowrap rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px bg-highlights/green-light text-highlights/green-dark",children:(0,t.jsxs)("span",{className:"font-font-weight/table-cell-strong text-font-size/table-cell leading-line-height/table-cell",children:["zh"===i?(0,O.tr)("off",n):"",h,"% ","zh"===i?"":(0,O.tr)("off",n)]})})]})})};return(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"block md:hidden",children:[_("mobile"),v("mobile")]}),(0,t.jsxs)("div",{className:"w-full max-w-general/2-col-width md:flex md:flex-col md:items-center",children:[_("desktop"),a&&a("productCard"),(0,t.jsx)("div",{className:"hidden w-full md:block",children:v("desktop")})]})]})},I=e=>{let{vertical:j,pageType:T,componentAttributes:A,textTag:k,colorTag:L,iconTag:E,ctaLinkOverride:O,ctaLabelOverride:I,view_rating:P,url:M,index:D,loanSearchParams:U,productWithLivePrice:$,carInsuranceSection:H,calculateError:B=!1,carInsuranceQuote:F,highlightFirstAttribute:V,travelInsuranceQuotes:G,travelQuotes:W,urlPlanDetails:K,e2eLabel:Y,e2eToogleButton:Q,statusCarInsuranceRequest:Z,product:q,defaultTemplateDynamicCiTooltip:X,defaultStaticCiTooltip:J,pushDataLayer:ee,plFilterConfig:et,approvalOdds:el,approvalOddsState:ea,approvalOddsLabels:ei,onApprovalOddsUnlockClick:er,onApprovalOddsRefreshClick:en,productDetailsModalKeys:es,getPdpModalConfigAction:eo,isPreview:ed,renderPdpModalHero:ec}=e,{uid:ep,title:eu,product_name:em,call_to_action:ex,attributes:eh}=q,eg=(0,o.useCmsClientContext)(),ef=(0,u.useCurrentCountry)(),eb=(0,h.useSafeCarInsuranceContext)(),e_=(0,p.getClientTranslations)(y.TRANSLATIONS,eg),ey=(0,S.getTiPriceValue)(G),ev=(0,S.getCiPriceValue)($,F,H),eN=()=>"singsaver"===eg.brand?"SGD":"money101"===eg.brand?"NT":eg.currencyDisplay,eC=()=>"CAR_INSURANCE"===j?{extraData:"CAR_INSURANCE"===j?{filter_applied:(0,n.configureCiFilterApplied)(eb),search_result_parameter:(0,n.configureCiSearchResultParameters)(eb),item_list_name:"ss-ci-rp"}:{},itemExtraData:"CAR_INSURANCE"===j?{discount:"",price:ev,currency:eN()}:{}}:"TRAVEL_INSURANCE"===j?{extraData:"TRAVEL_INSURANCE"!==j?{}:{search_result_parameter:(0,n.configureTiSearchResultParameters)(W),item_list_name:"all_travel_insurance",filter_applied:{}},itemExtraData:"TRAVEL_INSURANCE"!==j?{}:{price:ey,currency:eN()}}:{extraData:{},itemExtraData:{}},ew=()=>{c.sessionAttributionTracker.recordApplyClick(),(0,n.sendProductAnalytics)({action:n.UserActionEnum.CLICK,componentTitle:"Product Card/CTA_Apply Now",componentType:n.ComponentTypeEnum.PRODUCT_CARD,event:"product_click_apply",index:D,url:M,product:q,extraData:eC().extraData,itemExtraData:eC().itemExtraData,pushDataLayer:ee,approvalDegree:el,approvalDegreeState:ea})},ej=eh?.filter(e=>"ComponentAttributesAttrPlainText"===e.__typename).find(e=>e.name?.name==="POLICY_WORDING_DOCUMENT_LINK")?.value?.[0],eT=ex?.links?.[0],eA=(eT?.redirected_url||O)&&(!["CAR_INSURANCE","TRAVEL_INSURANCE"].includes(j??"")||"article"===T),ek=null,eL=null;if("CAR_INSURANCE"===j){let e="singsaver"===eg.brand?"fail"===Z||"Incomplete"===Z||!$:!F?.totalPremium,a={[r.CarInsuranceProductComponentButtonTypeEnum.Cta]:"cta",[r.CarInsuranceProductComponentButtonTypeEnum.Neutral]:"neutral-light-and-blue",[r.CarInsuranceProductComponentButtonTypeEnum.NeutralLightAndBlue]:"neutral-light-and-blue",[r.CarInsuranceProductComponentButtonTypeEnum.Primary]:"primary",[r.CarInsuranceProductComponentButtonTypeEnum.Secondary]:"secondary"};ek=(0,x.CarInsuranceCtaBuilder)({showPriceCheck:e,carInsuranceSection:H,buttonStyleMap:a,ctaLinkOverride:O,ctaLabelOverride:I});let i=(0,d.formatNumberWithSeparator)({value:ev,thousandsSeparator:",",alwaysTwoDecimals:!0});eL="0"===i||"0.00"===i?null:(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:(0,l.default)("order-1 flex flex-row items-center text-right md:order-2 gap-spacing/gap/soft-6px md:text-base text-font-size/xs line-clamp-1 break-all"),children:(0,t.jsxs)("div",{className:"inline-flex text-xs md:text-base justify-end items-start gap-spacing/gap/soft-6px",children:[(0,t.jsx)("div",{className:"text-text/secondary-lighter font-medium leading-5 whitespace-nowrap",children:e_.starting_at}),(0,t.jsxs)("div",{className:"flex items-center gap-0.5",children:[H?.prefix&&(0,t.jsx)("div",{className:"text-text/secondary-lighter font-medium leading-5 whitespace-nowrap",children:(0,t.jsx)("sup",{children:H?.prefix})}),(0,t.jsx)("div",{className:"text-text/primary font-bold leading-5 line-clamp-1",children:i}),H?.suffix&&(0,t.jsx)("div",{className:"text-text/secondary-lighter font-medium leading-5 line-clamp-1",children:(0,t.jsx)("sup",{children:H?.suffix})})]})]})})})}let eS=e=>"TRAVEL_INSURANCE"!==j?void 0:(0,t.jsx)(_.TravelInsuranceCtaBuilder,{product:q,ctaLinkOverride:O,sendAnalyticsForButtonApply:ew,ctaLabelOverride:I,e2eToogleButton:Q,e2eLabel:Y,travelInsuranceCtaType:e});return(0,t.jsxs)("div",{className:"card-radius border border-borders/default p-3 bg-fill/card",id:`anchor-card-${ep}`,"data-product-uid":eu,children:[(0,t.jsx)("div",{className:"mb-3",id:`anchor-${em}`,children:!!k?.trim()&&(0,t.jsx)(b.Tag,{size:"large",color:L?.toLowerCase(),icon:E,children:(0,t.jsx)("h2",{children:`${k}`})})}),(0,t.jsxs)("div",{className:"flex flex-col items-start justify-center gap-4 md:flex-row md:items-center md:justify-between md:gap-2",children:[(0,t.jsx)(v.ProductCardHeader,{vertical:j,product:q,index:D,url:M,view_rating:P,componentAttributes:A,pushDataLayer:ee}),(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2 md:w-auto md:items-end",children:["CAR_INSURANCE"===j&&"page"===T&&(0,t.jsx)(R,{countryCode:ef,carInsuranceSection:H,productWithLivePrice:$,sendAnalyticsForButtonApply:ew,staticText:e_,ctaLinkOverride:O,carInsuranceQuote:F,statusCarInsuranceRequest:Z,defaultStaticCiTooltip:J,defaultTemplateDynamicCiTooltip:X,product:q,CarInsuranceCtaComponent:ek}),"TRAVEL_INSURANCE"===j&&!!W&&(0,t.jsx)(z,{travelInsuranceQuotes:G,travelInsuranceCtaComponent:eS}),eA&&(0,t.jsx)("div",{className:"flex items-center gap-1",children:(0,t.jsx)(a.ApplyCtaLink,{product:q,ctaLinkOverride:O,loanParams:U,target:"_blank",rel:"noreferrer noopener",className:"block w-full md:inline md:w-auto",children:(0,t.jsx)(m.default,{endIcon:(0,t.jsx)(g.MaterialIcon,{icon:"open_in_new",size:2}),className:"mhg-alpha-btn-small w-full md:w-general/2-col-width",styleType:"cta",onClick:ew,children:I??e_.apply_now})})})]})]}),(0,t.jsx)(w.SectionAttributes,{componentAttributes:A,product:q,index:D,url:M,calculateError:B,highlightFirstAttribute:V,pushDataLayer:ee}),(0,t.jsx)(C.SectionApprovalOdds,{approvalOdds:el,approvalOddsState:ea,approvalOddsLabels:ei,onApprovalOddsUnlockCl
28ick:()=>{(0,n.sendProductAnalytics)({action:n.UserActionEnum.CLICK,componentTitle:"Product Card/Approval Odds Strip_Unlock",componentType:n.ComponentTypeEnum.PRODUCT_CARD,event:"product_interaction",index:D,url:M,product:q,extraData:eC().extraData,itemExtraData:eC().itemExtraData,pushDataLayer:ee,approvalDegree:el,approvalDegreeState:ea}),er?.()},onApprovalOddsRefreshClick:()=>{let{isFresh:e}=(0,s.getApprovalOddsStatus)(ea);(0,n.sendProductAnalytics)({action:n.UserActionEnum.CLICK,componentTitle:e?"Product Card/Approval Odds Strip_Label Details":"Product Card/Approval Odds Strip_Refresh Expired",componentType:n.ComponentTypeEnum.PRODUCT_CARD,event:"product_interaction",index:D,url:M,product:q,extraData:eC().extraData,itemExtraData:eC().itemExtraData,pushDataLayer:ee,approvalDegree:el,approvalDegreeState:ea}),en?.()},staticText:e_}),(0,t.jsx)(N.ProductCardSectionsMapper,{loanParams:U,productCardProps:e,plFilterConfig:et,carInsuranceCtaComponent:ek,priceLine:eL,productDetailsModalKeys:es,getPdpModalConfigAction:eo,isPreview:ed,renderPdpModalHero:ec,travelInsuranceCtaComponent:eS}),"CAR_INSURANCE"===j&&(H?.urlPolicy||ej)&&(0,t.jsx)("div",{className:"mt-2 flex justify-end",children:(0,t.jsx)("a",{target:"_blank",rel:"noreferrer noopener",href:H?.urlPolicy?H?.urlPolicy:ej,children:(0,t.jsx)(m.default,{variant:"text",endIcon:(0,t.jsx)(g.MaterialIcon,{icon:"download",size:3}),children:e_.policy_document})})}),"TRAVEL_INSURANCE"===j&&K&&(0,t.jsx)(i.FeLink,{href:K,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)(f.default,{iconName:"article",endIconName:"open_in_new",iconClassName:"overflow-visible size-[18px] md:size-[22px] md:mb-0 md:mr-2",children:(0,t.jsx)("span",{className:"mhg-alpha-bullet-2 lg:mhg-alpha-bullet-1",children:e_.plan_details})})})})]})};e.s(["ProductCard",0,I],14928);let P=()=>(0,t.jsxs)("div",{className:"flex min-h-px min-w-px flex-1 shrink-0 flex-col items-start justify-center gap-spacing/gap/soft-6px rounded-radius/card-inner",children:[(0,t.jsx)("div",{className:"skeleton h-4 w-full shrink-0 rounded-radius/button md:w-[171px]"}),(0,t.jsx)("div",{className:"skeleton h-5 w-27 shrink-0 rounded-radius/button"})]}),M=()=>(0,t.jsx)("div",{className:"box-border flex w-full shrink-0 flex-col items-start gap-spacing/gap/soft-6px px-spacing/padding/soft-12px py-0",children:(0,t.jsx)("div",{className:"skeleton box-border flex h-[34px] w-full shrink-0 items-center justify-between overflow-hidden rounded-radius/button px-spacing/padding/soft-12px py-spacing/gap/soft-12px md:h-9"})}),D=()=>(0,t.jsx)("div",{className:"relative size-full overflow-hidden rounded-radius/card border border-solid border-borders/default bg-fill/card","data-testid":"product-card-skeleton",children:(0,t.jsxs)("div",{className:"flex size-full flex-col items-start overflow-hidden rounded-radius/card",children:[(0,t.jsxs)("div",{className:"box-border flex w-full shrink-0 flex-col items-start gap-spacing/gap/y px-spacing/padding/soft-12px pb-0 pt-spacing/padding/soft-12px md:pb-spacing/gap/soft-12px",children:[(0,t.jsxs)("div",{className:"flex w-full shrink-0 items-center gap-spacing/gap/soft-12px md:gap-spacing/gap/x",children:[(0,t.jsx)("div",{className:"skeleton h-18 w-28 shrink-0 rounded-radius/tooltip md:h-[97px] md:w-38"}),(0,t.jsxs)("div",{className:"flex min-h-px min-w-px flex-1 shrink-0 flex-col items-start justify-center gap-1 md:gap-spacing/gap/soft-6px",children:[(0,t.jsx)("div",{className:"skeleton h-[22px] w-full shrink-0 rounded-radius/button md:max-w-[410px]"}),(0,t.jsx)("div",{className:"skeleton h-[22px] w-[107px] shrink-0 rounded-radius/button md:h-5 md:w-[171px]"})]}),(0,t.jsxs)("div",{className:"hidden w-general/2-col-width shrink-0 flex-col items-center justify-between gap-1 md:flex",children:[(0,t.jsx)("div",{className:"skeleton h-5 w-[82px] shrink-0 rounded-radius/button"}),(0,t.jsx)("div",{className:"skeleton h-button/size w-full shrink-0 rounded-radius/button"}),(0,t.jsx)("div",{className:"skeleton h-5 w-[114px] shrink-0 rounded-radius/button"})]})]})," ",(0,t.jsxs)("div",{className:"flex w-full shrink-0 items-center gap-2 md:hidden",children:[(0,t.jsxs)("div",{className:"flex min-h-px min-w-px flex-1 shrink-0 flex-col items-start justify-center gap-1",children:[(0,t.jsx)("div",{className:"skeleton h-5 w-[82px] shrink-0 rounded-radius
28/button"}),(0,t.jsx)("div",{className:"skeleton h-5 w-[114px] shrink-0 rounded-radius/button"})]}),(0,t.jsx)("div",{className:"skeleton h-[30px] min-h-px min-w-px flex-1 shrink-0 rounded-radius/button"})]})]}),(0,t.jsx)("div",{className:"box-border flex w-full shrink-0 flex-col items-start gap-spacing/gap/soft-12px px-spacing/padding/soft-12px py-spacing/padding/y md:pb-spacing/gap/y md:pt-0",children:(0,t.jsxs)("div",{className:"flex w-full shrink-0 flex-col gap-spacing/gap/soft-12px md:flex-row md:items-start md:gap-spacing/gap/x md:rounded-radius/card-inner",children:[(0,t.jsxs)("div",{className:"flex w-full shrink-0 gap-spacing/gap/x md:contents",children:[(0,t.jsx)(P,{}),(0,t.jsx)(P,{})]}),(0,t.jsxs)("div",{className:"flex w-full shrink-0 gap-spacing/gap/x md:contents",children:[(0,t.jsx)(P,{}),(0,t.jsx)(P,{})]})]})}),(0,t.jsxs)("div",{className:"box-border flex w-full shrink-0 flex-col items-start justify-center gap-spacing/gap/soft-6px overflow-hidden pb-spacing/padding/soft-12px pt-0 bg-fill/card",children:[(0,t.jsx)(M,{}),(0,t.jsx)(M,{}),(0,t.jsx)(M,{})]})]})});var U=e.i(983865),$=e.i(594999),H=e.i(584782),B=e.i(316832);function F(e){if("string"!=typeof e)return;let t=e.trim().replace(/^[A-Za-z]{0,3}\s*\p{Sc}?\s*/u,"").replace(/\s/g,"").replace(/(\d),(?=\d{3}(\D|$))/g,"$1");if(!/^-?\d+(\.\d+)?$/.test(t))return;let l=Number(t);return Number.isFinite(l)?l:void 0}function V(e,t){let l=W(e.productBlock?.product,t);return F(l?.offeredPremium)}function G(e){return F((0,$.getAttrFromProduct)($.ATTR_NAMES.STATIC_PRICE,e.productBlock?.product)?.value)}function W(e,t){let l=e?.attributes?.filter(e=>"ComponentAttributesAttrPlainText"===e.__typename).find(e=>e.name?.name===$.ATTR_NAMES.INSUREMO_PRODUCT_UID);return t?.find(e=>e?.brokerProductCode===l?.value)}e.s(["CardListingPosition",0,({metadata:e,pageType:a,vertical:i,cardPosition:r,url:n,initialLoanSearchParams:s,calculateError:o,productWithLivePrice:d,carInsuranceQuotes:c,travelPremiumsData:p,travelQuotes:u,statusCarInsuranceRequest:m,skeletonThreshold:x,pushDataLayer:h,plFilterConfig:g,approvalOddsData:f,approvalOddsLabels:b,onApprovalOddsUnlockClick:_,onApprovalOddsRefreshClick:y,productDetailsModalKeys:v,getPdpModalConfigAction:N,isPreview:C,renderPdpModalHero:w})=>{let j=(0,l.default)({"hidden md:block":!r.visible_mobile}),[{rankingSource:T}]=(0,U.useCmsHashState)({rankingSource:"boolean"}),A=0,k=e?.product_card??[],L=[];if("TRAVEL_INSURANCE"===i){let t=k.filter(e=>!!W(e.productBlock?.product,p)).filter(e=>e.visible),l=t.filter(e=>!e.pinned),a=u?.status==="inprogress",i=l.filter(e=>void 0!==V(e,p)).length,r=l.filter(e=>void 0!==G(e)).length,n=e?.priceSource==="LIVE_PREMIUM"&&a&&r>i?"STATIC_PRICE":e?.priceSource??"STATIC_PRICE";L=function({cards:e,isPinned:t,getPrice:l,fallbackEnabled:a,direction:i="LOW_TO_HIGH"}){let r=[],n=[];e.forEach(e=>{(t(e)?r:n).push(e)});let s=r.map((e,t)=>({card:e,source:"manual",rank:t+1}));if(!a)return s.concat(n.map((e,t)=>({card:e,source:"manual",rank:r.length+t+1})));let o="HIGH_TO_LOW"===i?-1:1,d=n.map((e,t)=>{let a=l(e);return{card:e,index:t,price:"number"==typeof a&&Number.isFinite(a)?a:void 0}}).sort((e,t)=>void 0===e.price&&void 0===t.price?e.index-t.index:void 0===e.price?1:void 0===t.price?-1:e.price===t.price?e.index-t.index:(e.price-t.price)*o);return s.concat(d.map(({card:e},t)=>({card:e,source:"auto",rank:t+1})))}({cards:t,isPinned:e=>!!e.pinned,getPrice:e=>{var t,l;return t=e,l=p,"LIVE_PREMIUM"===n?V(t,l):G(t)},fallbackEnabled:e?.priceFallbackRanking??!1,direction:e?.priceSortDirection})}let S=new Map(L.map(e=>[e.card,e])),E=!!k?.some(e=>e.productBlock?.displayApprovalOdds);return(0,t.jsxs)("div",{className:(0,l.default)(j,"flex flex-col gap-spacing/gap/y"),children:[("TRAVEL_INSURANCE"===i?L.map(e=>e.card):(0,H.sortProductsByApprovalOdds)(k,e=>e.productBlock?.product?.title,f,e?.sortByApprovalOdds)).filter(e=>!1!==e.visible).map((r,x)=>{let j=r.productBlock?.product,k=d?.find(e=>e.brokerProductCode===j?.title?.slice(3)),L=c?.find(e=>e.productId===j?.title),R=W(j,p);A++;let O=S.get(r),z=T&&O?.source==="auto"&&1===O.rank,P=!!b&&E,M=j?.title,D=P&&M&&f?f.odds[M]??null:void 0,U=P?f?.userState:void 0;return(0,t.jsxs)("div",{className:(0,l.default)({"hidden md:block":!r.visible_mobile}),children:[z&&(0,t.jsxs)("div",{className:"mb-4 flex items-center gap-2",role:"separator",children:[(0,t.jsx)("span",{className:"grow border-t border-gray-300"}),(0,t.jsxs)("span",{className:"text-xs font-semibold tracking-wide text-gray-600",children:["RANKED BY PRICE ·"," ",e?.priceSortDirection==="HIGH_TO_LOW"?"HIGHEST â LOWEST":"LOWEST â HIGHEST"]}),(0,t.jsx)("span",{className:"grow border-t border-gray-300"})]}),T&&O&&(0,t.jsx)("div",{className:"mb-1 flex justify-end",children:(0,t.jsx)("span",{className:"rounded bg-gray-200 px-2 py-0.5 text-xs font-semibold text-gray-800",children:"manual"===O.source?`MANUAL \xb7 PCT #${O.rank}`:`AUTO \xb7 PRICE #${O.rank}`})}),(0,t.jsx)(I,{product:r.productBlock?.product||{},pageType:a,vertical:i,textTag:(0,B.resolveProductTag)({product:r.productBlock?.product,pageLevelTag:r.productBlock?.text_tag}),componentAttributes:r?.productBlock?.attributes_list?.filter(Boolean)??[],view_rating:r.productBlock?.view_rating??!0,colorTag:r.productBlock?.color_tag,iconTag:r.productBlock?.icon_tag,index:x.toString(),loanSearchParams:s,ctaLinkOverride:r.productBlock?.override_cta_link,ctaLabelOverride:r.productBlock?.override_cta_label_long,url:n,calculateError:o,carInsuranceSection:r.productBlock?.car_insurance,carInsuranceQuote:L,productWithLivePrice:k,travelInsuranceQuotes:R,travelQuotes:u,urlPlanDetails:r.productBlock?.travelInsurance?.urlPlanDetails,e2eLabel:r.productBlock?.travelInsurance?.e2eLabel,e2eToogleButton:r.productBlock?.travelInsurance?.e2eToggleButton,highlightFirstAttribute:e?.highlightFirstAttribute,statusCarInsuranceRequest:m,pushDataLayer:h,defaultStaticCiTooltip:e?.defaultStaticCiTooltip,defaultTemplateDynamicCiTooltip:e?.defaultTemplateDynamicCiTooltip,plFilterConfig:g,approvalOdds:P?D:void 0,approvalOddsState:U,approvalOddsLabels:P?b:void 0,onApprovalOddsUnlockCl
28ick:_,onApprovalOddsRefreshClick:y,productDetailsModalKeys:v,getPdpModalConfigAction:N,isPreview:C,renderPdpModalHero:w})]},j?.uid)}),!!x&&A<x&&Array.from({length:x}).map((e,l)=>(0,t.jsx)(D,{},l))]})}],414021),e.i(396805);var K=e.i(618566),Y=e.i(271645);let Q=function({className:e}){return(0,t.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:(0,t.jsx)("path",{d:"M12.0314 27.0564C13.1648 26.2154 14.3994 25.5513 15.7353 25.0641C17.0711 24.577 18.4929 24.3334 20.0006 24.3334C21.5083 24.3334 22.9301 24.577 24.266 25.0641C25.6019 25.5513 26.8365 26.2154 27.9698 27.0564C28.7989 26.1453 29.4557 25.0906 29.9404 23.8923C30.425 22.694 30.6673 21.3966 30.6673 20C30.6673 17.0445 29.6284 14.5278 27.5506 12.45C25.4728 10.3722 22.9562 9.33334 20.0006 9.33334C17.0451 9.33334 14.5284 10.3722 12.4506 12.45C10.3728 14.5278 9.33395 17.0445 9.33395 20C9.33395 21.3966 9.57626 22.694 10.0609 23.8923C10.5455 25.0906 11.2024 26.1453 12.0314 27.0564ZM20.001 21C18.7837 21 17.757 20.5822 16.9212 19.7465C16.0853 18.9109 15.6673 17.8844 15.6673 16.6671C15.6673 15.4497 16.0851 14.4231 16.9208 13.5872C17.7564 12.7513 18.7829 12.3334 20.0002 12.3334C21.2176 12.3334 22.2442 12.7512 23.0801 13.5868C23.916 14.4225 24.3339 15.4489 24.3339 16.6663C24.3339 17.8836 23.9161 18.9103 23.0805 19.7461C22.2448 20.582 21.2184 21 20.001 21ZM20.0006 32.6666C18.2416 32.6666 16.5917 32.3359 15.0507 31.6743C13.5096 31.0128 12.169 30.1119 11.0289 28.9718C9.8887 27.8316 8.98785 26.491 8.32632 24.95C7.66476 23.409 7.33398 21.759 7.33398 20C7.33398 18.241 7.66476 16.591 8.32632 15.05C8.98785 13.509 9.8887 12.1684 11.0289 11.0282C12.169 9.88809 13.5096 8.98724 15.0507 8.32571C16.5917 7.66415 18.2416 7.33337 20.0006 7.33337C21.7596 7.33337 23.4096 7.66415 24.9506 8.32571C26.4916 8.98724 27.8322 9.88809 28.9724 11.0282C30.1125 12.1684 31.0134 13.509 31.6749 15.05C32.3365 16.591 32.6673 18.241 32.6673 20C32.6673 21.759 32.3365 23.409 31.6749 24.95C31.0134 26.491 30.1125 27.8316 28.9724 28.9718C27.8322 30.1119 26.4916 31.0128 24.9506 31.6743C23.4096 32.3359 21.7596 32.6666 20.0006 32.6666ZM20.0006 30.6667C21.204 30.6667 22.3643 30.4731 23.4814 30.0859C24.5985 29.6987 25.5904 29.1573 26.4571 28.4615C25.5904 27.7915 24.6113 27.2692 23.5199 26.8949C22.4284 26.5205 21.2553 26.3333 20.0006 26.3333C18.7459 26.3333 17.5707 26.5184 16.475 26.8884C15.3792 27.2585 14.4023 27.7829 13.5442 28.4615C14.4109 29.1573 15.4027 29.6987 16.5199 30.0859C17.6369 30.4731 18.7972 30.6667 20.0006 30.6667ZM20.0006 19C20.6639 19 21.2186 18.777 21.6648 18.3308C22.1109 17.8846 22.334 17.3299 22.334 16.6667C22.334 16.0034 22.1109 15.4487 21.6648 15.0025C21.2186 14.5564 20.6639 14.3333 20.0006 14.3333C19.3374 14.3333 18.7827 14.5564 18.3365 15.0025C17.8903 15.4487 17.6673 16.0034 17.6673 16.6667C17.6673 17.3299 17.8903 17.8846 18.3365 18.3308C18.7827 18.777 19.3374 19 20.0006 19Z",fill:"white"})})};var Z=e.i(118362);let q=()=>{let e=(0,Z.useAppendQueryParams)();return t=>{window.location.href=e(t)}};e.s(["useRedirect",0,q],625408),e.i(650687);var X=e.i(163137);e.i(17291);var J=e.i(110243),ee=e.i(686148);let et=(0,ee.staticText)({login:{_:"Log in",zh:"ç»å
¥"},logout:{_:"Logout",zh:"ç»åº"}}),el=(0,J.localeSpecificGroup)(et);var ea=e.i(340371);let ei=e=>{let{langPrefix:l,brand:a}=(0,o.useCmsClientContext)(),{index:r,sectionTitle:n,pushDataLayer:s,...d}=e,{text:c,href:p,url_target:u}=(0,ea.navbarLinkToUrl)(d,{langPrefix:l,brand:a});return p?(0,t.jsx)("div",{children:(0,t.jsx)(i.FeLink,{href:p,target:u,className:"text-[#687076] text-[16px] hover:text-[#212529]",onClick:e=>{e.stopPropagation(),s({event:"navigate",component_type:"top-nav",component_title:`Level 2_${n}/${c}`,action:"click",index:r})},children:c})}):null},er=e=>{let{langPrefix:l,brand:a}=(0,o.useCmsClientContext)(),{index_level_one:r,pushDataLayer:n,...s}=e,{text:d,href:c,url_target:p}=(0,ea.navbarLinkToUrl)(s,{langPrefix:l,brand:a});return(0,t.jsxs)("div",{className:"pl-8 pt-5",children:[(0,t.jsx)(i.FeLink,{href:c,target:p,className:"font-bold text-[#212529] text-[16px]",children:d}),(0,t.jsx)("div",{className:"flex flex-col gap-2 pt-5 text-[16px]",children:s?.sublinks?.map((e,i)=>{let{text:s,href:o}=(0,ea.navbarLinkToUrl)(e,{brand:a,langPrefix:l});return(0,t.jsx)(ei,{index:`${r}.${i}`,sectionTitle:d,pushDataLayer:n,...e},`${r}.${d}.${s}.${o}`)})})]})},en=e=>{let{dropdownMenu:l,pushDataLayer:a}=e,{brand:r,langPrefix:n}=(0,o.useCmsClientContext)(),s=(e,t,l)=>{a({event:"navigate",component_type:"top-nav",component_title:`Level 1_${t}`,action:e,index:l})};return l?(0,t.jsx)("div",{className:"z-30 hidden items-center lg:flex","data-header-item":"dropdown",children:l.items.map((e,l)=>{let{text:o,href:d,url_target:c}=(0,ea.navbarLinkToUrl)(e,{brand:r,langPrefix:n});return(0,t.jsxs)("div",{className:"group flex",children:[(0,t.jsx)(i.FeLink,{href:d,target:c,className:"h-full border-b-4 border-transparent px-4 py-[22px] font-bold text-[#687076] text-[16px] hover:border-b-4 hover:border-[#0080F0] hover:text-[#212529] lg:px-3 xl:px-4",onClick:e=>{e.stopPropagation(),s("click",o,`${l}.0.0`)},onMouseOver:()=>s("hover",o,`${l}.0.0`),children:o}),e?.sublinks&&e?.sublinks.length>0&&(0,t.jsx)("div",{className:"absolute left-0 top-18 hidden w-full px-3 py-12 transition-all duration-1000 bg-[#F1F3F5] group-hover:block",children:(0,t.jsx)("div",{className:"divide mx-auto grid max-w-[65rem] grid-cols-4 gap-6 divide-x divide-[#D7DBDF]",children:e?.
28sublinks.map((e,i)=>{let s=(0,ea.navbarLinkToUrl)(e,{brand:r,langPrefix:n});return s.href?(0,t.jsx)(er,{index_level_one:`${l}.${i}`,pushDataLayer:a,...e},`${s.text}_${s.href}`):null})})})]},`${o}_${d}`)})}):null};e.i(397031);var es=e.i(271159);let eo=e=>{let{langPrefix:l,brand:a}=(0,o.useCmsClientContext)(),{index:r,sectionTitle:n,pushDataLayer:s,...d}=e,{text:c,href:p,url_target:u}=(0,ea.navbarLinkToUrl)(d,{langPrefix:l,brand:a});return(0,t.jsx)("div",{className:"border-b-2 border-[#D0E8FE] px-2 py-5 text-[#687076] text-[16px]",children:(0,t.jsx)(i.FeLink,{href:p,target:u,className:"flex items-center",onClick:e=>{e.stopPropagation(),s({event:"navigate",component_type:"top-nav",component_title:`Level 3_${n}/${c}`,action:"click",index:r})},children:c})})},ed=e=>{let{langPrefix:l,brand:a}=(0,o.useCmsClientContext)(),{sublinks:r=[],pushDataLayer:n,...s}=e,[d,c]=(0,Y.useState)(!1),{text:p,href:u,url_target:m}=(0,ea.navbarLinkToUrl)(s,{langPrefix:l,brand:a});return(0,t.jsxs)("div",{children:[r.length>0?(0,t.jsxs)("div",{onClick:()=>c(!d),className:"flex cursor-pointer items-center justify-between px-4 py-5 bg-[#EDF6FF]",children:[(0,t.jsx)("h3",{className:"font-bold text-[#212529] text-[16px]",children:p}),(0,t.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",className:d?"rotate-180":"rotate-0",viewBox:"0 0 448 512",width:"10",height:"10","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"})})]}):(0,t.jsx)(i.FeLink,{href:u,target:m,className:"flex cursor-pointer items-center justify-between px-4 py-5 font-bold bg-[#EDF6FF] text-[#212529] alpha-body-2",children:p}),d&&(0,t.jsx)("ul",{children:r.map((e,i)=>{let r=(0,ea.navbarLinkToUrl)(e,{langPrefix:l,brand:a});return r.href?(0,t.jsx)("li",{className:"mt-1",children:(0,t.jsx)(eo,{index:i,sectionTitle:p,pushDataLayer:n,...e})},`${r.text}_${r.href}`):null})})]})},ec=e=>{let{langPrefix:l,brand:a}=(0,o.useCmsClientContext)(),[r,n]=(0,Y.useState)(!1),{sublinks:s=[],pushDataLayer:d,...c}=e,{text:p,url_target:u,href:m}=(0,ea.navbarLinkToUrl)(c,{langPrefix:l,brand:a});return(0,t.jsxs)("div",{children:[0===s.length?(0,t.jsx)("div",{className:"flex cursor-pointer items-center justify-between px-3 py-5",children:(0,t.jsx)(i.FeLink,{href:m,target:u,className:"font-semibold uppercase text-[#212529] text-[16px]",onClick:e=>{e.stopPropagation(),d({event:"navigate",component_type:"top-nav",component_title:`Level 1_${p}`,action:"click",index:0})},children:p})}):(0,t.jsxs)("div",{onClick:()=>{d({event:"navigate",component_type:"top-nav",component_title:`Level 2_${p}`,action:"click",index:0}),n(!r)},className:`flex cursor-pointer items-center justify-between px-3 py-5 ${r?"border-l-4 border-[#0081F1]":""}`,children:[(0,t.jsx)("h2",{className:"font-semibold uppercase text-[#212529] text-[16px]",children:p}),(0,t.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",className:r?"rotate-180":"rotate-0",viewBox:"0 0 320 512",width:"12",height:"12","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"})})]}),r&&(0,t.jsx)("div",{children:s.map(e=>(0,t.jsx)(ed,{pushDataLayer:d,...e},`${e.label}_${e.url}`))})]})},ep=(0,Y.forwardRef)((e,a)=>{let{langPrefix:i,brand:r}=(0,o.useCmsClientContext)(),[n,s]=(0,Y.useState)(!1),{navigation:d,settings:c,pushDataLayer:p}=e,{site_logo:{url:u}}=c,{items:m=[]}=d;return(0,Y.useImperativeHandle)(a,()=>({open:()=>s(!0),close:()=>s(!1)})),(0,Y.useEffect)(()=>{if(n){window.document.body.style.overflow="hidden";return}window.document.body.style.overflow="auto"},[n]),(0,t.jsx)("div",{className:(0,l.default)("fixed",{"top-0 w-screen h-screen z-[49]":n}),children:(0,t.jsxs)("div",{className:(0,l.default)("h-dvh overflow-auto","fixed left-0 top-0 z-50 w-80","py-4 shadow-lg transition-transform duration-300 bg-white lg:hidden",{"translate-x-0":n,"-translate-x-full":!n}),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-gray-300 px-4 pb-5",children:[u&&(0,t.jsx)(es.CmsImage,{unoptimized:!0,src:u,alt:"logo",width:104,height:32}),(0,t.jsxs)("svg",{onClick:()=>s(!1),xmlns:"http://www.w3.org/2000/svg",className:"size-6 cursor-pointer",viewBox:"0 0 21 21",children:[(0,t.jsx)("rect",{width:"21",height:"21",fill:"none"}),(0,t.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m15.5 15.5l-10-10zm0-10l-10 10"})]})]}),m.map(e=>{let{text:l,href:a}=(0,ea.navbarLinkToUrl)(e,{langPrefix:i,brand:r});return(0,t.jsx)(ec,{pushDataLayer:p,...e},`${l}_${a}`)})]})})}),eu=e=>{let{brand:a,lang:r}=(0,o.useCmsClientContext)(),n=el.get(r),{settings:s,navigation:d,host:c,pushDataLayer:p,authEndpoint:u}=e,{site_logo:{url:m}}=s,x=(0,X.useIdentity)(),h=!!x,f=(0,Y.useRef)(null),b=q(),_=(0,K.useRouter)(),y=()=>
28{if(!x)if("moneyhero"===a){let e=r.split("-")[0];b(`/${e}/login?redirect_uri=${encodeURIComponent(window.location.href)}`)}else b(`/login?redirect_uri=${encodeURIComponent(window.location.href)}`)};return(0,t.jsx)("nav",{className:(0,l.default)("relative z-[var(--z-index-header)] drop-shadow-lg bg-white"),id:"navbar-parent",style:{lineHeight:"24px"},children:(0,t.jsx)("div",{className:"mx-auto max-w-screen-2xl px-4 py-2 lg:px-10 lg:py-0",children:(0,t.jsxs)("div",{className:"flex items-center justify-between px-0 lg:h-18",children:[(0,t.jsx)("button",{type:"button",onClick:()=>_.back(),className:"hidden","aria-label":"Back","data-header-item":"back",children:(0,t.jsx)(g.MaterialIcon,{icon:"arrow_left_alt",px:24})}),(0,t.jsx)("button",{type:"button",onClick:()=>{f.current&&f.current.open()},className:"lg:hidden","aria-label":"Open menu","data-header-item":"hamburger",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-6",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})})}),(0,t.jsx)("div",{className:"flex items-center gap-10",children:(0,t.jsx)(i.FeLink,{href:"/",onClick:()=>p({event:"navigate",component_type:"top-nav",component_title:"Top Nav_Logo",action:"click"}),children:(0,t.jsx)("img",{src:m||"/img/logo.webp",alt:"logo",className:"h-6 sm:h-8 lg:h-8"})})}),(0,t.jsx)(ep,{ref:f,navigation:d,settings:s,pushDataLayer:p}),(0,t.jsx)(en,{dropdownMenu:d,pushDataLayer:p}),(0,t.jsxs)("div",{className:(0,l.default)("flex items-center gap-4"),children:[h?"moneyhero"===a||"moneymax"===a?(0,t.jsx)("button",{type:"button",className:"hidden font-semibold text-gray-600 text-lg leading-normal lg:inline-block",onClick:e=>{e.preventDefault(),u&&fetch(new URL(`${u}/logout`,window.location.href),{method:"POST",credentials:"include"}).then(e=>{e.ok?window.location.reload():console.error("Logout failed:",e.statusText)}).catch(e=>{console.error("Error during logout:",e.message)})},children:n.logout}):null:(0,t.jsx)("button",{type:"button",className:"hidden font-semibold text-gray-600 text-lg leading-normal lg:inline-block",onClick:y,children:n.login}),h?(0,t.jsx)("button",{type:"button",className:"flex size-8 items-center justify-center rounded-full bg-primary-800",onClick:()=>{let e,t;switch(a){case"singsaver":case"moneymax":e="/user/account";break;case"moneyhero":let l=r.split("-")[0];t=`https://${c}`,!l.length||l.startsWith("/")||t.endsWith("/")||(l=`/${l}`),e=`${l}/user/account`;break;case"money101":e=`/é¦é `}e&&b(e)},"aria-label":"User profile",children:(0,t.jsx)(Q,{className:"size-6"})}):(0,t.jsx)("button",{type:"button",className:"flex size-8 items-center justify-center rounded-full bg-primary-800",onClick:y,"aria-label":"Log in",children:(0,t.jsx)(Q,{className:"size-6"})})]})]})})})};e.s(["TheHeader",()=>eu],263247);let em=e=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("g",{clipPath:"url(#clip0_17030_10748)",children:(0,t.jsx)("path",{d:"M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9701 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.75V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z",fill:"white"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_17030_10748",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),ex=e=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_17030_10753)",children:[(0,t.jsx)("path",{d:"M12 2.16094C15.2063 2.16094 15.5859 2.175 16.8469 2.23125C18.0188 2.28281 18.6516 2.47969 19.0734 2.64375C19.6313 2.85938 20.0344 3.12188 20.4516 3.53906C20.8734 3.96094 21.1313 4.35938 21.3469 4.91719C21.5109 5.33906 21.7078 5.97656 21.7594 7.14375C21.8156 8.40937 21.8297 8.78906 21.8297 11.9906C21.8297 15.1969 21.8156 15.5766 21.7594 16.8375C21.7078 18.0094 21.5109 18.6422 21.3469 19.0641C21.1313 19.6219 20.8687 20.025 20.4516 20.4422C20.0297 20.8641 19.6313 21.1219 19.0734 21.3375C18.6516 21.5016 18.0141 21.6984 16.8469 21.75C15.5813 21.8062 15.2016 21.8203 12 21.8203C8.79375 21.8203 8.41406 21.8062 7.15313 21.75C5.98125 21.6984 5.34844 21.5016 4.92656 21.3375C4.36875 21.1219 3.96563 20.8594 3.54844 20.4422C3.12656 20.0203 2.86875 19.6219 2.65313 19.0641C2.48906 18.6422 2.29219 18.0047 2.24063 16.8375C2.18438 15.5719 2.17031 15.1922 2.17031 11.9906C2.17031 8.78438 2.18438 8.40469 2.24063 7.14375C2.29219 5.97187 2.48906 5.33906 2.65313 4.91719C2.86875 4.35938 3.13125 3.95625 3.54844 3.53906C3.97031 3.11719 4.36875 2.85938 4.92656 2.64375C5.34844 2.47969 5.98594 2.28281 7.15313 2.23125C8.41406 2.175 8.79375 2.16094 12 2.16094ZM12 0C8.74219 0 8.33438 0.0140625 7.05469 0.0703125C5.77969 0.126563 4.90313 0.332812 4.14375 0.628125C3.35156 0.9375 2.68125 1.34531 2.01563 2.01562C1.34531 2.68125 0.9375 3.35156 0.628125 4.13906C0.332812 4.90313 0.126563 5.775 0.0703125 7.05C0.0140625 8.33437 0 8.74219 0 12C0 15.2578 0.0140625 15.6656 0.0703125 16.9453C0.126563 18.2203 0.332812 19.0969 0.628125 19.8563C0.9375 20.6484 1.34531 21.3188 2.01563 21.9844C2.68125 22.65 3.35156 23.0625 4.13906 23.3672C4.90313 23.6625 5.775 23.8687 7.05 23.925C8.32969 23.9812 8.7375 23.9953 11.9953 23.9953C15.2531 23.9953 15.6609 23.9812 16.9406 23.925C18.2156 23.8687 19.0922 23.6625 19.8516 23.3672C20.6391 23.0625 21.3094 22.65 21.975 21.9844C22.6406 21.3188 23.0531 20.6484 23.3578 19.8609C23.6531 19.0969 23.8594 18.225 23.9156 16.95C23.9719 15.6703 23.9859
2815.2625 23.9859 12.0047C23.9859 8.74688 23.9719 8.33906 23.9156 7.05938C23.8594 5.78438 23.6531 4.90781 23.3578 4.14844C23.0625 3.35156 22.6547 2.68125 21.9844 2.01562C21.3188 1.35 20.6484 0.9375 19.8609 0.632812C19.0969 0.3375 18.225 0.13125 16.95 0.075C15.6656 0.0140625 15.2578 0 12 0Z",fill:"white"}),(0,t.jsx)("path",{d:"M12 5.83594C8.59688 5.83594 5.83594 8.59688 5.83594 12C5.83594 15.4031 8.59688 18.1641 12 18.1641C15.4031 18.1641 18.1641 15.4031 18.1641 12C18.1641 8.59688 15.4031 5.83594 12 5.83594ZM12 15.9984C9.79219 15.9984 8.00156 14.2078 8.00156 12C8.00156 9.79219 9.79219 8.00156 12 8.00156C14.2078 8.00156 15.9984 9.79219 15.9984 12C15.9984 14.2078 14.2078 15.9984 12 15.9984Z",fill:"white"}),(0,t.jsx)("path",{d:"M19.8469 5.59531C19.8469 6.39219 19.2 7.03438 18.4078 7.03438C17.6109 7.03438 16.9688 6.3875 16.9688 5.59531C16.9688 4.79844 17.6156 4.15625 18.4078 4.15625C19.2 4.15625 19.8469 4.80313 19.8469 5.59531Z",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_17030_10753",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),eh=e=>(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("g",{clipPath:"url(#clip0_17030_10758)",children:(0,t.jsx)("path",{d:"M22.2234 0H1.77187C0.792187 0 0 0.773438 0 1.72969V22.2656C0 23.2219 0.792187 24 1.77187 24H22.2234C23.2031 24 24 23.2219 24 22.2703V1.72969C24 0.773438 23.2031 0 22.2234 0ZM7.12031 20.4516H3.55781V8.99531H7.12031V20.4516ZM5.33906 7.43438C4.19531 7.43438 3.27188 6.51094 3.27188 5.37187C3.27188 4.23281 4.19531 3.30937 5.33906 3.30937C6.47813 3.30937 7.40156 4.23281 7.40156 5.37187C7.40156 6.50625 6.47813 7.43438 5.33906 7.43438ZM20.4516 20.4516H16.8937V14.8828C16.8937 13.5562 16.8703 11.8453 15.0422 11.8453C13.1906 11.8453 12.9094 13.2937 12.9094 14.7891V20.4516H9.35625V8.99531H12.7687V10.5609H12.8156C13.2891 9.66094 14.4516 8.70938 16.1813 8.70938C19.7859 8.70938 20.4516 11.0813 20.4516 14.1656V20.4516Z",fill:"white"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_17030_10758",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]});var eg=e.i(210823);let ef=e=>(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,t.jsx)("path",{d:"M23.7609 7.19688C23.7609 7.19688 23.5266 5.54219 22.8047 4.81563C21.8906 3.85938 20.8688 3.85469 20.4 3.79844C17.0438 3.55469 12.0047 3.55469 12.0047 3.55469H11.9953C11.9953 3.55469 6.95625 3.55469 3.6 3.79844C3.13125 3.85469 2.10938 3.85938 1.19531 4.81563C0.473438 5.54219 0.24375 7.19688 0.24375 7.19688C0.24375 7.19688 0 9.14219 0 11.0828V12.9016C0 14.8422 0.239062 16.7875 0.239062 16.7875C0.239062 16.7875 0.473437 18.4422 1.19062 19.1688C2.10469 20.125 3.30469 20.0922 3.83906 20.1953C5.76094 20.3781 12 20.4344 12 20.4344C12 20.4344 17.0438 20.425 20.4 20.1859C20.8688 20.1297 21.8906 20.125 22.8047 19.1688C23.5266 18.4422 23.7609 16.7875 23.7609 16.7875C23.7609 16.7875 24 14.8469 24 12.9016V11.0828C24 9.14219 23.7609 7.19688 23.7609 7.19688ZM9.52031 15.1094V8.36406L16.0031 11.7484L9.52031 15.1094Z",fill:"white"})}),eb=e=>{let{brand:l,langPrefix:a}=(0,o.useCmsClientContext)(),{navigation:r,settings:n,version:s,pushDataLayer:d}=e,{items:c}=r,{disclaimer:p,company_line:u,site_socials:m,site_footer_logo:{url:x}}=n,[h,g]=(0,Y.useState)([]),f=new Date().getFullYear();return(0,t.jsx)("footer",{className:"relative z-10 bg-brand-primary-dark",children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1536px] px-4 py-8 md:py-11 lg:px-8 lg:py-16 xl:py-14",children:[(0,t.jsxs)("div",{className:"flex flex-col border-b border-primary-800 pb-6 lg:flex-row",children:[(0,t.jsx)("div",{className:"mb-0 basis-3/12 border-b border-primary-800 lg:border-0 xl:mb-0",children:(0,t.jsx)(i.FeLink,{href:"/",onClick:()=>d({event:"navigate",component_type:"footer",component_title:"Footer_Logo",action:"click",index:"0.0"}),children:(0,t.jsx)("img",{src:x,alt:"SingSaver",className:"mb-6 h-6 md:h-8 xl:mb-0"})})}),c&&(0,t.jsx)("div",{className:"flex basis-9/12 flex-wrap gap-5 pt-6 md:gap-20 lg:flex-nowrap lg:gap-10 lg:pt-0",children:c.map((e,r)=>{let n=(0,ea.navbarLinkToUrl)(e,{brand:l,langPrefix:a});return(0,t.jsxs)("div",{className:"basis-5/12 md:basis-2/12 lg:flex-1 lg:basis-5/12",children:[(0,t.jsx)("p",{className:"text-white alpha-body-1 md:text-[18px]",children:e.label}),(0,t.jsx)("ul",{className:"mt-3 space-y-1",children:e.sublinks.map((e,s)=>{let o=`${r}.${s}`,c=(0,ea.navbarLinkToUrl)(e,{brand:l,langPrefix:a});return(0,t.jsxs)("li",{className:"flex flex-col gap-2 transition-all duration-100",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-1",children:[e.sublinks&&e.sublinks.length>0&&(0,t.jsx)("svg",{className:h.includes(o)?"rotate-90":"",width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M3.63112 4.00017L0.564453 0.933507L1.267 0.230957L5.03622 4.00017L1.267 7.76939L0.564453 7.06684L3.63112 4.00017Z",fill:"#B7E7F2"})}),e.sublinks&&0!==e.sublinks.length?(0,t.jsx)("button",{type:"button",className:"text-left text-primary-100 text-sm",onClick:e=>{e.stopPropagation(),h.includes(o)?1===h.length?g(h.filter(e=>e!==o)):g([]):h.length>0?g([o]):g(e=>[...e,o])},children:c.text}):(0,t.jsx)(i.FeLink,{href:c.href||"#",target:"_blank"===c.url_target?"_blank":"_self",className:"text-primary-100 text-sm",onClick:()=>d({event:"navigate",component_type:"footer",component_title:`Footer_${n.text}-${c.text}`,action:"click",index:o}),rel:"noreferrer",children:c.text})]}),e.sublinks&&h.includes(o)&&(0,t.jsx)("ul",{className:"flex flex-col gap-1 pl-2.5",children:e.sublinks.map((e,r)=>{let s=(0,ea.navbarLinkToUrl)(e,{brand:l,langPrefix:a});return(0,t.jsx)("li",{children:(0,t.jsx)(i.FeLink,{href:s.href||"#",target:"_blank"===s.url_target?"_blank":"_self",className:"text-left text-primary-100 text-sm",onClick:()=>d({event:"navigate",component_type:"footer",component_title:`Footer_${n.text}-${c.text}+${s.text}`,action:"click",index:`${o}.${r}`}),rel:"noreferrer",children:s.text})},`${o}.${s.text}.${s.href}`)})})]},o)})})]},`${n.text}.${n.href}`)})})]}),(0,t.jsxs)("div",{className:"my-8 flex flex-col-reverse justify-between gap-4 lg:flex-row lg:items-center",children:[(0,t.jsxs)("p",{className:"text-primary-100 text-[12px] md:text-[14px] lg:text-[16
28px]",children:["© 2015 - ",f," ",u||"SingSaver PTE LTD. All rights reserved"]}),(0,t.jsx)("div",{className:"flex items-center gap-4",children:m&&m.map(e=>(0,t.jsx)(i.FeLink,{href:e.url,target:"_blank",onClick:()=>d({event:"navigate",component_type:"footer",component_title:`Social Media Link_${e.name}`,action:"click",index:"0"}),rel:"noreferrer",children:"facebook"===e.name?(0,t.jsx)(em,{}):"instagram"===e.name?(0,t.jsx)(ex,{}):"youtube"===e.name?(0,t.jsx)(ef,{}):"linkedin"===e.name?(0,t.jsx)(eh,{}):"tiktok"===e.name?(0,t.jsx)(eg.TikTokIcon,{}):"#"},`${e?.name}.${e?.url}`))})]}),p?(0,t.jsx)("div",{className:"text-primary-100 text-[12px] md:text-[14px] lg:text-[16px]",dangerouslySetInnerHTML:{__html:p}}):(0,t.jsxs)("div",{className:"text-primary-100 text-[12px] md:text-[14px] lg:text-[16px]",children:["This online platform is operated by SingSaver Pte. Ltd. and by continuing to use www.singsaver.com.sg (the âSingSaver Websiteâ) or by carrying out a transaction on the SingSaver Website, users are deemed to have agreed with the"," ",(0,t.jsx)(i.FeLink,{href:"https://www.singsaver.com.sg/page/singsaver-terms",target:"_blank",rel:"noreferrer",children:"Terms and Conditions"})," ","and"," ",(0,t.jsx)(i.FeLink,{href:"https://www.singsaver.com.sg/page/singsaver-privacy-policy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"})," ","of the SingSaver Website. All insurance product-related transactions on the SingSaver Website are arranged and administered by SingSaver Insurance Brokers Pte. Ltd., a wholly owned subsidiary of SingSaver Pte. Ltd. SingSaver Insurance Brokers Pte. Ltd. is a licensed and authorised broker regulated by the Monetary Authority of Singapore (âMASâ). SingSaver Pte. Ltd. (which administers all other financial products on the SingSaver Website) is not regulated by MAS. SingSaver is located at Eon Shenton, 70 Shenton Way, 18-08, Singapore, 079118."]}),(0,t.jsx)("span",{className:"absolute bottom-0 left-0 text-brand-primary-dark",children:`fe ${s||"unknown"}`})]})})};e.s(["TheFooter",()=>eb],949280);var e_=e.i(218646),ey=e.i(597120);let ev=({additionalCampaign:e,staticText:l,itemNumber:a,bulletColor:i})=>(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-8px",children:[null!=a&&(0,t.jsx)("h3",{className:"font-font-weight/title-2 text-font-size/title-2 leading-line-height/title-2 text-text/secondary",children:`${a}. ${e.title}`}),(0,t.jsx)("p",{className:"font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed text-text/secondary",children:l.yourApplicationQualifies}),(0,t.jsx)("div",{className:`flex flex-col gap-spacing/gap/soft-12px ${i}`,children:(0,t.jsxs)("div",{className:"flex items-start gap-spacing/gap/soft-6px",children:[(0,t.jsx)("span",{className:"w-[18px] shrink-0 text-center font-font-weight/bullet-1 text-font-size/bullet-1 leading-line-height/bullet-1",children:"â¢"}),(0,t.jsx)("span",{className:"text-font-size/body-2",children:e.linkUrl?(0,t.jsx)("a",{href:e.linkUrl,target:"NEW_TAB"===e.linkTarget?"_blank":"_self",rel:"NEW_TAB"===e.linkTarget?"noopener noreferrer":void 0,className:"leading-line-height/bullet-2",children:(0,t.jsx)(ey.RawHtml,{content:e.rewardCopy})}):(0,t.jsx)(ey.RawHtml,{className:"leading-line-height/bullet-2",content:e.rewardCopy})})]})})]}),eN=({content:e,staticText:a,forceExpanded:i=!1})=>{let[r,n]=(0,Y.useState)(i),s=(0,Y.useId)();if(!e)return null;let o=i||r;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("button",{type:"button",className:"flex w-full items-center gap-1 text-left font-font-weight/bullet-1 text-font-size/bullet-1 leading-line-height/bullet-1 text-text/primary","aria-expanded":o,"aria-controls":s,onClick:()=>!i&&n(e=>!e),children:[(0,t.jsx)(g.MaterialIcon,{icon:"expand_less",className:(0,l.default)("overflow-visible transition-transform",{"rotate-90":!o,"rotate-180":o})}),(0,t.jsx)("span",{className:(0,l.default)("text-text-primary text-lg font-semibold leading-5"),children:a.howToApply})]}),o&&(0,t.jsx)("div",{id:s,className:"mt-spacing/gap/soft-12px font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed text-text/secondary",children:(0,t.jsx)(ey.RawHtml,{content:e,className:"break-words"})})]})},eC=({offers:e,providerName:l,siteName:a,staticText:i,itemNumber:r,bulletColor:n})=>{let s=e.flatMap(e=>e.list_of_gifts??[]);if(0===s.length)return null;let o=i.providerRewardSubtitle?.replace("{siteName}",a).replace("{providerName}",l);return(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-8px",children:[null!=r&&(0,t.jsx)("h3",{className:"font-font-we
28ight/title-2 text-font-size/title-2 leading-line-height/title-2 text-text/secondary",children:`${r}. ${i.providerRewardTitle?.replace(/^\d+\.\s*/,"")}`}),(0,t.jsx)("p",{className:"font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed text-text/secondary",children:o}),(0,t.jsx)("div",{className:`flex flex-col gap-spacing/gap/soft-12px ${n}`,children:s.map(e=>{let l=e.gift?.gift_value,a=(0,d.currencyFormat)(l?.prefix??""),i=l?.price?`${a}${e_.currencyFormatterNoDecimal.format(l.price)}`:"",r=e.gift?.gift_title??"";return(0,t.jsxs)("div",{className:"flex items-start gap-spacing/gap/soft-6px",children:[(0,t.jsx)("span",{className:"w-[18px] shrink-0 text-center font-font-weight/bullet-1 text-font-size/bullet-1 leading-line-height/bullet-1",children:"â¢"}),(0,t.jsx)("span",{className:"text-font-size/body-2",children:(0,t.jsx)("span",{className:"font-semibold leading-line-height/bullet-2",children:i?`${i} ${r}`:r})})]},e.gift?.uid)})})]})};e.i(627373);var ew=e.i(396522),ej=e.i(811015),eT=e.i(904942);let eA=({exclusiveOffers:e,welcomeOffers:l,lang:a,staticText:i,pushDataLayer:r,onClick:n})=>{let s=[...e,...l].flatMap(e=>(e.list_of_gifts??[]).map(t=>({...t,offerType:e.type,startDate:e.period?.start_date,endDate:e.period?.end_date})));if(0===s.length)return null;let o=e=>{let t=e.gift?.gift_value,l=(0,d.currencyFormat)(t?.prefix??""),r=t?.price?e_.currencyFormatterNoDecimal.format(t.price):"",n=r?`${i.worth} ${l}${r}`:e.gift?.gift_title??"",s=t?.topup_amount&&t?.topup_label?`${t.topup_label} ${l}${e_.currencyFormatterNoDecimal.format(t.topup_amount)}`:"",o=(0,eT.getUrgencyPhase)(a,e.startDate,e.endDate),c=t?.urgency_label||o?.value;return{image:e.gift?.desktop_image??"",tooltip:e.gift?.gift_title??"",title:n,subtitle:s,tagText:c,urgentTagText:!!t?.urgency_label}},c=e=>{if(!n)return;let t=e.gift?.gift_value;r({event:"pdp.promotions.rewardTile.click",...{source:"exclusive"===e.offerType?"singsaver":"provider",rewardId:e.gift?.uid??"",name:e.gift?.gift_title??"",value:t?.price??0}}),n()};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"hidden gap-2 lg:grid lg:grid-cols-3",children:s.map(e=>(0,t.jsx)("button",{type:"button",className:"text-left",onClick:n?()=>c(e):void 0,children:(0,t.jsx)(ej.RewardThumbnail,{"data-gift-uid":e.gift?.uid,...o(e),rewardThumbnailSizeClasses:"h-36 max-w-[144px]"})},e.gift?.uid))}),(0,t.jsx)("div",{className:"w-full lg:hidden",children:(0,t.jsx)(ew.FeCarouselV2,{slidesPerView:"auto",slideClassName:"!h-auto flex flex-col",pagination:{showOnMobile:!0},children:s.map(e=>(0,t.jsx)("button",{type:"button",className:"text-left",onClick:n?()=>c(e):void 0,children:(0,t.jsx)(ej.RewardThumbnail,{"data-gift-uid":e.gift?.uid,...o(e),rewardThumbnailSizeClasses:"h-32 w-[145px] md:h-36 md:w-41"})},e.gift?.uid))})})]})},ek=({offers:e,staticText:l,itemNumber:a,bulletColor:i})=>{let r=e.flatMap(e=>e.list_of_gifts?.map(t=>({...t,offerTitle:e.offer_title}))??[]);return 0===r.length?null:(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-8px",children:[null!=a&&(0,t.jsx)("h3",{className:"font-font-weight/title-2 text-font-size/title-2 leading-line-height/title-2 text-text/secondary",children:`${a}. ${l.chooseSsReward?.replace(/^\d+\.\s*/,"")}`}),(0,t.jsx)("p",{className:"font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed text-text/secondary",children:l.pickRewards}),(0,t.jsx)("div",{className:`flex flex-col gap-spacing/gap/soft-12px ${i}`,children:r.map(e=>{let a=e.gift?.gift_value,i=a?.price,r=(0,d.currencyFormat)(a?.prefix??""),n=i?e_.currencyFormatterNoDecimal.format(i):"",s=a?.topup_amount&&a?.topup_label?` (${l.worth} ${r}${e_.currencyFormatterNoDecimal.format(i??0)}, ${l.topUpOnly?.toLowerCase()} ${r}${e_.currencyFormatterNoDecimal.format(a.topup_amount)})`:i?` (${l.worth} ${r}${n})`:"";return(0,t.jsxs)("div",{className:"flex items-start gap-spacing/gap/soft-6px",children:[(0,t.jsx)("span",{className:"w-[18px] shrink-0 text-center font-font-weight/bullet-1 text-font-size/bullet-1 leading-line-height/bullet-1",children:"â¢"}),(0,t.jsxs)("span",{className:"text-font-size/body-2",children:[(0,t.jsx)("span",{className:"font-semibold leading-line-height/bullet-2",children:e.gift?.gift_title}),(0,t.jsx)("span",{className:"font-medium leading-line-height/bullet-2 text-text/secondary",children:s})]})]},e.gift?.uid)})})]})};e.i(831750);var eL=e.i(864829);let eS=(e,t)=>{let l=Number(t.value_start)||0,a=Number(t.value_end)||1/0;return e>=l&&e<=a},eE=(e,t,l)=>{if(!t||!l||!e.criteria_list?.length)return!1;let a=e.criteria_list.find(e=>e.name?.name==="ELIGIBLE_LOAN_RANGE"),i=e.criteria_list.find(e=>e.name?.name==="ELIGIBLE_TENURE_RANGE"),r=!a||eS(t,a),n=!i||eS(l,i);return r&&n},eR=({offers:e,staticText:l,providerName:a,siteName:i,itemNumber:r,bulletColor:n,loanAmount:s,loanTenure:o})=>{let c=e.flatMap(e=>e.list_of_gifts??[]);if(0===c.length)return null;let p=c.filter(e=>eE(e,s,o)),u=c.filter(e=>!eE(e,s,o)),m=e=>{let a=e.gift?.gift_title??"",i=e.gift?.gift_value,r=(0,d.currencyFormat)(i?.prefix??""),n=i?.price?e_.currencyFormatterNoDecimal.format(i.price):"",s=(0,eL.formatRangeTitle)(r,e.criteria_list,l);return(0,t.jsxs)("div",{className:"flex items-start gap-spacing/gap/soft-6px",children:[(0,t.jsx)("span",{className:"w-[18px] shrink-0 text-center font-font-we
28ight/bullet-1 text-font-size/bullet-1 leading-line-height/bullet-1",children:"â¢"}),(0,t.jsxs)("span",{className:"text-font-size/body-2",children:[(0,t.jsx)("span",{className:"font-semibold leading-line-height/bullet-2",children:`${a||`${r} ${n}`.trim()}`}),s&&(0,t.jsx)("span",{className:"font-medium leading-line-height/bullet-2 text-text/secondary",children:` (${s})`})]})]},e.gift?.uid)},x=s?`${(0,d.currencyFormat)(c[0]?.gift?.gift_value?.prefix??"")}${e_.currencyFormatterNoDecimal.format(s)}`:"",h=l.plTitle1?.replace("{providerName}",a).replace("{amount}",x).replace("{tenure}",String(o??"")).replace("{siteName}",i);return(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-8px",children:[null!=r&&(0,t.jsx)("h3",{className:"font-font-weight/title-2 text-font-size/title-2 leading-line-height/title-2 text-text/secondary",children:`${r}. ${l.chooseSsReward?.replace(/^\d+\.\s*/,"")}`}),p.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed text-text/primary",children:h}),(0,t.jsx)("div",{className:`flex flex-col gap-spacing/gap/soft-12px ${n}`,children:p.map(m)})]}),u.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed text-text/primary",children:l.plTitle2}),(0,t.jsx)("div",{className:`flex flex-col gap-spacing/gap/soft-12px ${n}`,children:u.map(m)})]})]})},eO=e=>{let t=0;for(let l of e)for(let e of l.list_of_gifts??[]){let l=e.gift?.gift_value?.price??0;l>t&&(t=l)}return t},ez={green:{gradient:"linear-gradient(to right, var(--colors-campaign-green-1), white)",topGradient:"linear-gradient(to right, var(--colors-campaign-green-4), var(--colors-campaign-green-2))",cardText:"text-campaign/green-4",badgeBg:"bg-colors/campaign-green-3",badgeText:"text-text/on-dark",bulletColor:"text-campaign/green-3",tileBorder:"border-colors/campaign-green-3",button:{border:"border-colors/campaign-green-4",text:"text-colors/campaign-green-4"}},red:{gradient:"linear-gradient(to right, var(--colors-campaign-red-1), white)",topGradient:"linear-gradient(to right, var(--colors-campaign-red-4), var(--colors-campaign-red-2))",cardText:"text-campaign/red-3",badgeBg:"bg-colors/campaign-red-3",badgeText:"text-text/on-dark",bulletColor:"text-campaign/red-3",tileBorder:"border-colors/campaign-red-3",button:{border:"border-colors/campaign-red-3",text:"text-colors/campaign-red-3"}},blue:{gradient:"linear-gradient(to right, var(--colors-campaign-blue-1), white)",topGradient:"linear-gradient(to right, var(--colors-campaign-blue-4), var(--colors-campaign-blue-2))",cardText:"text-campaign/blue-4",badgeBg:"bg-colors/campaign-blue-3",badgeText:"text-text/on-dark",bulletColor:"text-campaign/blue-3",tileBorder:"border-colors/campaign-blue-3",button:{border:"border-colors/campaign-blue-4",text:"text-colors/campaign-blue-4"}},yellow:{gradient:"linear-gradient(to right, var(--colors-campaign-yellow-1), white)",topGradient:"linear-gradient(to right, var(--colors-campaign-yellow-4), var(--colors-campaign-yellow-2))",cardText:"text-campaign/yellow-4",badgeBg:"bg-colors/campaign-yellow-3",badgeText:"text-text/on-dark",bulletColor:"text-campaign/yellow-3",tileBorder:"border-colors/campaign-yellow-3",button:{border:"border-colors/campaign-yellow-4",text:"text-colors/campaign-yellow-4"}},orange:{gradient:"linear-gradient(to right, var(--colors-campaign-orange-1), white)",topGradient:"linear-gradient(to right, var(--colors-campaign-orange-4), var(--colors-campaign-orange-2))",cardText:"text-campaign/orange-4",badgeBg:"bg-colors/campaign-orange-3",badgeText:"text-text/on-dark",bulletColor:"text-campaign/orange-3",tileBorder:"border-colors/campaign-orange-3",button:{border:"border-colors/campaign-orange-4",text:"text-colors/campaign-orange-4"}}};var eI=e.i(674686);let eP=(0,ee.staticText)({chooseSsReward:{_:"1. Choose Your Money101 Reward"},brand_reward_guidance:{_:"Money101's reward",zh:"Money101 ç¨å®¶çåµ"}}),eM=(0,ee.staticText)({chooseSsReward:{_:"1. Choose Your MoneyHero Reward",zh:"1. é¸æä½ çMoneyHeroçè³"},brand_reward_guidance:{_:"MoneyHero's reward",zh:"MoneyHero ç¨å®¶çåµ"},reward_modal_loan_amount_with_end:{_:":label :start - :end",zh:":label :start - :end"},reward_modal_loan_amount_without_end:{_:":label :start",zh:":label :start"},reward_modal_tenure_with_end:{_:":label :start - :end month tenure",zh:":label :prefix:start :suffix - :prefix:end :suffix"},reward_modal_tenure_without_end:{_:":label :start month tenure :suffix",zh:":label :start :suffix"}}),eD=(0,ee.staticText)({chooseSsReward:{_:"1. Choose Your MoneyMax Reward"},brand_reward_guidance:{_:"MoneyMax's reward",zh:"MoneyMax ç¨å®¶çåµ"}}),eU=(0,ee.staticText)({sectionTitle:{_:"Exclusive Rewards Worth Up to",zh:"ç¨å®¶çè³ç¸½å¼é«
28é"},chooseSsReward:{_:"1. Choose Your SingSaver Reward",zh:"1. é¸æä½ ççè³"},pickRewards:{_:"Pick one of these rewards:",zh:"鏿以ä¸å
¶ä¸ä¸é
çè³ï¼"},providerRewardTitle:{_:"2. Get the Provider's Own Reward",zh:"2. ç²å便åçè³"},providerRewardSubtitle:{_:"On top of your {siteName} reward, {providerName} will also give you:",zh:"é¤äº{siteName}çè³å¤ï¼{providerName}éæçµ¦ä½ ï¼"},howToApply:{_:"How to Apply?",zh:"å¦ä½ç³è«ï¼"},showCampaignDetails:{_:"Show Campaign Details",zh:"顯示活å詳æ
"},showMore:{_:"Show More",zh:"顯示æ´å¤"},limitedTime:{_:"Limited time",zh:"éæåªæ "},limitedTimeEnds:{_:"Limited time ⢠Ends in {time}",zh:"éæåªæ ⢠{time}å¾çµæ"},tncApply:{_:"*T&Cs apply for",zh:"*æ¢æ¬¾åç´°åé©ç¨æ¼"},tncAnd:{_:"and",zh:"å"},worth:{_:"Worth",zh:"å¹å¼"},topUpOnly:{_:"Top-up only",zh:"åªéå ä»"},plTitle1:{_:"For a {providerName} Personal Loan of {amount} over {tenure} months, youâll enjoy via {siteName}",zh:"ç³è«{providerName}{amount}貸款ï¼å{tenure}åæé款ï¼éé{siteName}å¯äº«ï¼"},plTitle2:{_:"For other loan amounts and tenures you can choose from:",zh:"å
¶ä»è²¸æ¬¾éé¡åæéå¯é¸æï¼"},yourApplicationQualifies:{_:"Your application also qualifies you for:",zh:"ä½ çç³è«åæç¬¦å以ä¸è³æ ¼ï¼"},day:{_:"{count} day",zh:"{count}æ¥"},days:{_:"{count} days",zh:"{count}æ¥"},hour:{_:"{count} hour",zh:"{count}å°æ"},hours:{_:"{count} hours",zh:"{count}å°æ"},brand_reward_guidance:{_:"SingSaver's reward",zh:"MoneyHero ç¨å®¶çåµ"},provider_reward_guidance:{_:":Provider's reward",zh:":Provider ç¨å®¶çåµ"},defaultGiftTenureLabel:{_:"",zh:"鿬¾æ"},defaultGiftTenureWithOutEndSuffix:{_:"",zh:"忿以ä¸"},defaultGiftTenureWithEndSuffix:{_:"",zh:"åæ"},defaultGiftAmountLabel:{_:"",zh:"貸款é¡"},defaultGiftAmountSuffix:{_:"and above",zh:"æä»¥ä¸"},reward_modal_loan_amount_with_end:{_:":start - :end",zh:":label :start - :end"},reward_modal_loan_amount_without_end:{_:":start",zh:":label :start"},reward_modal_tenure_with_end:{_:":start - :end month tenure",zh:":label :prefix:start :suffix - :prefix:end :suffix"},reward_modal_tenure_without_end:{_:":start month tenure :suffix",zh:":label :start :suffix"}}),e$=(0,ee.brandSpecificStaticText)({_:eU,moneyhero:eM,money101:eP,moneymax:eD}),eH={singsaver:"SingSaver",moneyhero:"MoneyHero",money101:"Money101",moneymax:"MoneyMax"},eB=e=>e.filter(e=>!!e.period?.end_date).sort((e,t)=>new Date(e.period.end_date).getTime()-new Date(t.period.end_date).getTime())[0]??e[0];e.s(["SingleProductPromotion",0,e=>{let{visible:l,featureColor:a,backgroundColor:i,product:r,additionalCampaign:n,howToApply:s,vertical:c,loanSearchParams:u,pushDataLayer:x}=e,{brand:h,lang:g,currencyDisplay:f}=(0,o.useCmsClientContext)(),b=(0,p.getClientTranslations)(e$,{brand:h,lang:g}),_=ez[a],y=(0,Y.useId)(),{contentRef:v,isCollapsed:N,isExpanded:C,expand:w,collapseClass:j}=(()=>{let e=(0,Y.useRef)(null),[t,l]=(0,Y.useState)(!1),[a,i]=(0,Y.useState)(!1),r=(0,eI.useBreakpoint)({_:512,md:600,lg:1/0}),n=(0,Y.useCallback)(()=>{let t=e.current;t&&isFinite(r)?l(t.scrollHeight>r):l(!1)},[r]);(0,Y.useEffect)(()=>{let t=e.current;if(!t)return;let l=new ResizeObserver(n);return l.observe(t),n(),()=>{l.disconnect()}},[n]);let s=(0,Y.useCallback)(()=>{i(!0)},[]),o=t&&!a;return{contentRef:e,isCollapsed:o,isExpanded:a,expand:s,collapseClass:o?"max-h-[512px] md:max-h-[600px] lg:max-h-none overflow-hidden":""}})(),T=(0,Y.useMemo)(()=>[...r?.exclusive_offers??[],...r?.bundle_exclusive_offers??[]],[r?.exclusive_offers,r?.bundle_exclusive_offers]),A=(0,Y.useMemo)(()=>r?.welcome_offers??[],[r?.welcome_offers]),k=T.some(e=>(e.list_of_gifts?.length??0)>0),L=A.some(e=>(e.list_of_gifts?.length??0)>0),S=!!n,{totalMaxValue:E}=(0,Y.useMemo)(()=>{let e,t;return e=eO(T),{totalMaxValue:e+(t=eO(A)),maxValueSS:e,maxValueProvider:t}},[T,A]),R=(0,Y.useMemo)(()=>{let e=(e=>{for(let t of e)for(let e of t.list_of_gifts??[])if(e.gift?.gift_value?.prefix)return e.gift.gift_value.prefix})([...T,...A]);return e?(0,d.currencyFormat)(e):f}
28,[T,A,f]),O=`${R}${e_.currencyFormatterNoDecimal.format(E)}`,z=eH[h]??"SingSaver",I=r?.provider?.provider_name??"",P=eB(T),M=P?.tncLink??T.find(e=>e.tncLink)?.tncLink,D=eB(A),U=D?.tncLink??A.find(e=>e.tncLink)?.tncLink,$=T.some(e=>e.includeCountdownTimer),H=P?.period?.end_date??D?.period?.end_date,B=(0,Y.useMemo)(()=>{if(!H)return $?b.limitedTime:void 0;let e=new Date(H),t=new Date,l=e.getTime()-t.getTime();if(l<=0)return b.limitedTime;let a=l/36e5,i=Math.ceil(a/24),r=Math.ceil(a),n=a>=24?(1===i?b.day:b.days).replace("{count}",String(i)):(1===r?b.hour:b.hours).replace("{count}",String(r));return b.limitedTimeEnds.replace("{time}",n)},[H,$,b]),F=+!!k+ +!!L+ +!!S>1,V=1,G=k&&F?V++:null,W=L&&F?V++:null,K=S&&F?V:null;if((0,Y.useEffect)(()=>{l&&r&&x({event:"pdp.promotions.render",...{productId:r.uid??"",market:h,hasProviderReward:L,hasItem3:S,totalMaxValue:E}})},[l,r]),!l||!r)return null;let Q=[];M&&Q.push({label:`${b.brand_reward_guidance}`,url:M}),U&&I&&Q.push({label:`${b.provider_reward_guidance.replace(":Provider",I)}`,url:U}),n?.tncName&&n?.tncUrl&&Q.push({label:n.tncName,url:n.tncUrl});let Z="Gradient"===i?{background:_.gradient}:void 0;return(0,t.jsx)("section",{className:"py-spacing/padding/section-y",style:Z,children:(0,t.jsxs)("div",{className:"mx-auto max-w-[1130px] px-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/y lg:flex-row lg:gap-spacing/gap/x",children:[(0,t.jsxs)("div",{ref:v,id:y,className:`relative flex flex-1 flex-col gap-spacing/gap/y-sm max-w-[636px] ${j}`,children:[(0,t.jsxs)("div",{className:"flex flex-col gap-spacing/gap/soft-8px",children:[B&&(0,t.jsx)("span",{className:`inline-block self-start rounded-radius/tooltip px-spacing/padding/soft-8px py-spacing/padding/soft-4px font-font-weight/bullet-2 text-font-size/bullet-2 leading-line-height/bullet-2 ${_.badgeBg} ${_.badgeText}`,children:B}),(0,t.jsx)("h2",{className:"font-font-weight/display-1 text-font-size/display-1 leading-line-height/display-1 text-text/primary",children:`${b.sectionTitle} ${O}`})]}),(0,t.jsx)("div",{className:"lg:hidden",children:(0,t.jsx)(eA,{exclusiveOffers:T,welcomeOffers:A,lang:g,staticText:b,pushDataLayer:x})}),"PERSONAL_LOANS"===c?(0,t.jsx)(eR,{offers:T,staticText:b,providerName:I,itemNumber:G,siteName:z,bulletColor:_.bulletColor,loanAmount:Number(u?.amount)||0,loanTenure:Number(u?.tenure)||0}):(0,t.jsx)(ek,{offers:T,staticText:b,itemNumber:G,bulletColor:_.bulletColor}),L&&(0,t.jsx)(eC,{offers:A,providerName:I,siteName:z,staticText:b,itemNumber:W,bulletColor:_.bulletColor}),n&&(0,t.jsx)(ev,{additionalCampaign:n,staticText:b,itemNumber:K,bulletColor:_.bulletColor}),(0,t.jsx)(eN,{content:s,staticText:b,forceExpanded:C}),Q.length>0&&(0,t.jsxs)("p",{className:"font-font-weight/body-2 text-font-size/body-2 leading-line-height/body-2-relaxed text-text/secondary",children:[b.tncApply,"Â ",Q.map((e,l)=>(0,t.jsxs)("span",{children:[l>0&&l<Q.length-1&&", ",l>0&&l===Q.length-1&&` ${b.tncAnd} `,(0,t.jsx)("a",{href:e.url,className:"underline",target:"_blank",rel:"noopener noreferrer",children:e.label})]},e.label)),"."]}),N&&(0,t.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 h-24 bg-gradient-to-t from-white to-transparent"})]}),(0,t.jsx)("div",{className:"hidden w-[438px] shrink-0 lg:block",children:(0,t.jsx)(eA,{exclusiveOffers:T,welcomeOffers:A,lang:g,staticText:b,pushDataLayer:x})})]}),N&&(0,t.jsx)(m.default,{className:"w-full",variant:"outline",styleType:"neutral-light-and-blue","aria-expanded":!1,"aria-controls":y,onClick:()=>{w(),x({event:"pdp.promotions.expand"})},children:b.showMore})]})})}],824146),e.s([],477173);var eF=e.i(328),eV=e.i(460765),eG=e.i(194004),eW=e.i(890027),eK=e.i(665623),eY=e.i(209110),eQ=e.i(400226),eZ=e.i(32386),eq=e.i(967763),eX=e.i(346709);let eJ=({product:e})=>{let a=(0,o.useCmsClientContext)(),i=(0,p.getClientTranslations)(eQ.BaseTranslations,a),{policyWording:r,brochure:n}=(0,eZ.getPolicyDocuments)(e),s=[...r?[{label:(0,O.tr)("policy_wording",i),url:r}]:[],...n?[{label:(0,O.tr)("brochure",i),url:n}]:[]];return 0===s.length?null:(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)(eq.ProductDetailsSectionHeader,{icon:(0,t.jsx)(g.MaterialIcon,{icon:"description",size:3}),children:(0,O.tr)("policy_documents",i)}),(0,t.jsx)(eX.ProductDetailsSectionWrapper,{children:s.map((e,a)=>(0,t.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:(0,l.default)("flex items-center justify-between gap-spacing/gap/x px-spacing/padding/x py-spacing/padding/y-sm text-text/accent",{"border-b border-borders/default":a!==s.length-1}),children:[(0,t.jsx)("span",{className:"mhg-alpha-tag-font uppercase",children:e.label}),(0,t.jsx)(g.MaterialIcon,{icon:"open_in_new",size:3,className:"shrink-0"})]},e.url))})]})};var e0=e.i(920984),e1=e.i(526402);let e2=e=>{let l=(0,e0.getProductDetailsSectionVisibility)(e);return(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)(e1.StickyNavigationBar,{...e,sectionVisibility:l}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 max-w-[--breakpoints-content-narrow-3-lg] w-full lg:mx-auto",children:[l.offers&&(0,t.jsx)("div",{id:"section-offers",className:"px-spacing/padding/section-x lg:px-0",children:(0,t.jsx)(eK.ProductDetailsSectionGift,{...e.product,vertical:e.vertical,pushDataLayer:e.pushDataLayer})}),l.highlights&&(0,t.jsx)("div",{id:"section-highlights",className:"px-spacing/padding/section-x lg:px-0",children:(0,t.jsx)(eY.ProductDetailsSectionHighlights,{...e.product,pushDataLayer:e.pushDataLayer})}),l.benefits&&(0,t.jsx)("div",{id:"section-benefits",className:"px-spacing/padding/section-x lg:px-0",children:(0,t.jsx)(eV.ProductDetailsSectionBenefits,{...e})}),l.fees&&(0,t.jsx)("div",{id:"section-fees",className:"px-spacing/padding/section-x lg:px-0",children:(0,t.jsx)(eW.ProductDetailsSectionFees,{...e.product,pushDataLayer:e.pushDataLayer})}),l.eligibility&&(0,t.jsx)("div",{id:"section-eligibility",className:"px-spacing/padding/section-x lg:px-0",children:(0,t.jsx)(eG.ProductDetailsSectionEligibility,{product:e.product,vertical:e.vertical,tiEligibilityRows:e.tiEligibilityRows,pushDataLayer:e.pushDataLayer})}),l["policy-documents"]&&(0,t.jsx)("div",{id:"section-policy-documents",className:"px-spacing/padding/section-x lg:px-0",children:(0,t.jsx)(eJ,{product:e.product})})]})]})};e.s(["ProductDetails",0,e=>{let{renderingMode:l}=e;return"MODAL"===l?(0,t.jsx)(eF.ProductDetailsModalMode,{...e}):(0,t.jsx)(e2,{...e})}],553733),e.i(444054),e.s([],413990)}]); 29 30//# debugId=94f1ba26-78be-8632-6fc6-557c96a29c1d 31//# sourceMappingURL=bb1d1c6f599daa03.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.