1import{j as t,l as i}from"./vendor-ui-Ba-ouzjt.js";import{ab as l,u,a9 as y,H as g,A as h,I as v}from"./index-BP85Yjle.js";import"./vendor-react-CWc6w16D.js";import"./vendor-utils-cJ19xB3v.js";const b={server_error:{translationKey:"error.singpassServerError",illustration:"eventUnavailable",showSecondaryCtaAndContactUs:!1},temporarily_unavailable:{translationKey:"error.singpassTemporarilyUnavailable",illustration:"eventUnavailable",showSecondaryCtaAndContactUs:!1},ineligible:{translationKey:"error.ineligible",illustration:"userNotEligible",showSecondaryCtaAndContactUs:!0},generic:{translationKey:"error.somethingWentWrong",illustration:"eventUnavailable",showSecondaryCtaAndContactUs:!1}},w=()=>{const n=l.useNavigate(),{error:r}=l.useSearch(),{t:c,i18n:m}=u(),o=m.language==="ta",e=b[r??"generic"],{title:d,description:a,btnText:C,secondaryBtnText:x}=c(e.translationKey,{returnObjects:!0,date:"1 September 2025"}),p=r==="ineligible"?"userNotEligible":"modalGeneric";return t.jsx(y,{variant:"generic",title:d,description:t.jsx("div",{className:"flex flex-col gap-2",children:Array.isArray(a)?a.map(s=>t.jsx("p",{className:"text-center text-base font-light max-w-[37.5rem] mx-auto",children:s},s)):t.jsx("p",{className:"text-center text-base font-light max-w-[37.5rem] mx-auto",children:a})}),image:t.jsx(v,{variant:p,className:"md:w-[22.5rem] w-[15rem] text-primary-illust"}),ctaText:C,onCtaClick:()=>n({to:"/"}),secondaryCtaText:e.showSecondaryCtaAndContactUs?x:void 0,onSecondaryCtaClick:e.showSecondaryCtaAndContactUs?()=>n({to:"/faq"}):void 0,secondaryCtaIcon:e.showSecondaryCtaAndContactUs?t.jsx(h,{}):void 0,classNames:{secondaryCtaBtn:i(o?"md:w-[18rem]":"md:min-w-[12.5rem]",!e.showSecondaryCtaAndContactUs&&"hidden"),ctaBtn:i(o?"md:w-[18rem]":"md:min-w-[12.5rem]"),container:"flex h-full items-center pb-[3rem] md:pb-[5rem] pt-[2.5rem] md:pt-[4rem]"},additionalContent:e.showSecondaryCtaAndContactUs?t.jsx(g,{}):void 0})},j=()=>t.jsx(w,{});export{j as component};
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.