PageSourceSearch

https://applogin.singlife.com/SQS/login/_next/static/chunks/app/layout-96b7a51859287497.js

js singlife.com collected 2026-10-02 05:21:51 UTC 25,597 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{8430:(e,s,t)=>{"use strict";t.d(s,{Ay:()=>l,Py:()=>n});let a=(0,t(66439).Z0)({name:"resources",initialState:{resources:{brochures:{},otherdocs:{},saleskits:{},appforms:{}}},reducers:{getResourcesAction:(e,s)=>{},getResourcesSuccess:(e,s)=>{e.resources=s.payload},getResourcesFailed:(e,s)=>{}}}),{getResourcesAction:i,getResourcesSuccess:n,getResourcesFailed:r}=a.actions,l=a.reducer},19324:()=>{},33066:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,19324,23)),Promise.resolve().then(t.bind(t,65445)),Promise.resolve().then(t.bind(t,34404)),Promise.resolve().then(t.bind(t,88690)),Promise.resolve().then(t.bind(t,98083)),Promise.resolve().then(t.bind(t,82103))},34404:(e,s,t)=>{"use strict";t.d(s,{default:()=>p});var a=t(95155),i=t(12115),n=t(44901),r=t(51826),l=t(27043),o=t(31808),d=t(44912),c=t(85339);let u=e=>{let{isOpen:s,onClose:t,onLogout:i,countdown:n}=e,r=(0,l.useTranslations)();return(0,a.jsx)(o.lG,{open:s,onOpenChange:t,children:(0,a.jsxs)(o.Cf,{children:[(0,a.jsxs)(o.c7,{children:[(0,a.jsx)(o.L3,{children:r("IdleTimer.modalHeading")}),(0,a.jsx)(o.rr,{})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(c.A,{className:"text-destructive"}),(0,a.jsx)("p",{className:"text-gray-600",children:r("IdleTimer.inactivityWarning")})]}),(0,a.jsxs)("div",{className:"text-center text-3xl font-bold text-primary",children:[n," ",r("Common.seconds")]}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:r("IdleTimer.stayLoggedIn")})]}),(0,a.jsxs)(o.Es,{children:[(0,a.jsx)(d.$,{variant:"secondary",onClick:i,children:r("Common.logoutButton")}),(0,a.jsx)(d.$,{onClick:t,children:r("IdleTimer.continueSessionButton")})]})]})})};var m=t(65446);function p(){let[e,s]=(0,i.useState)(!1),[t,l]=(0,i.useState)(0),o=(0,r.jL)(),d=(0,r.GV)(e=>!!e.quotation.token&&""!==e.quotation.token),c=()=>{o((0,m.Zm)())},{getRemainingTime:p,activate:x}=(0,n.hb)({onIdle:()=>{e&&(s(!1),c())},onActive:()=>{e||s(!1)},onPrompt:()=>{s(!0)},timeout:18e5,promptBeforeIdle:3e4,throttle:1e3,disabled:!d});return(0,i.useEffect)(()=>
1{l(0)},[]),(0,i.useEffect)(()=>{let e=setInterval(()=>{l(Math.ceil(p()/1e3))},1);return()=>{clearInterval(e)}}),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u,{countdown:new Date(1e3*t).getSeconds(),isOpen:e,onClose:()=>{s(!1),x()},onLogout:()=>{s(!1),c()}})})}},37025:(e,s,t)=>{"use strict";t.d(s,{G:()=>y});var a=t(95155),i=t(12115),n=t(27043),r=t(1756),l=t(62177),o=t(31808),d=t(44912),c=t(33882),u=t(13523),m=t(37318),p=t(10150),x=t(51826),h=t(68663),f=t(65446),v=t(23281);function y(e){let{isOpen:s,onClose:t}=e,y=(0,n.useTranslations)(),j=(0,p.DP)(),g=(0,x.jL)(),{adviserProfile:b,isAdvisorDataProvided:A}=(0,x.GV)(e=>e.quotation),N={name:null==b?void 0:b.name,organization:null==b?void 0:b.organization,contact:null==b?void 0:b.contact,advisorIds:null==b?void 0:b.advisorIds,advisorId:null==b?void 0:b.advisorId},w=(0,l.mN)({resolver:(0,r.u)((e=>{let s=e("Common.requiredError");return h.Ik({name:h.Yj({required_error:s}).min(1,{message:s}),organization:h.Yj({required_error:s}).min(1,{message:s}),contact:h.Yj({required_error:s}).min(1,{message:s}),advisorId:h.Yj({required_error:s}).min(1,{message:s})})})(y)),defaultValues:N});return(0,i.useEffect)(()=>{s?w.reset(N):w.reset()},[s]),(0,a.jsx)(o.lG,{open:s,onOpenChange:t,children:(0,a.jsx)(o.Cf,{children:(0,a.jsxs)("form",{className:"flex flex-col gap-4",onSubmit:w.handleSubmit(e=>{if(A)g((0,f.XN)(e.advisorId||""));else{let s={name:e.name,organization:e.organization,contact:e.contact,advisorId:e.advisorId,advisorIds:e.advisorId?[e.advisorId]:[]};g((0,f.fD)(s))}t()}),children:[(0,a.jsxs)(o.c7,{children:[(0,a.jsx)(o.L3,{children:y("AdvisorModal.title")}),(0,a.jsx)(o.rr,{})]}),(0,a.jsx)("div",{children:A?(0,a.jsx)("div",{className:"flex flex-col gap-2",children:(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-4",children:[(0,a.jsxs)(c.J,{children:[y("AdvisorModal.name"),": "]}),(0,a.jsx)(c.J,{className:"col-span-2 text-end font-semibold",children:(null==b?void 0:b.name)||"-"}),(0,a.jsxs)(c.J,{children:[y("AdvisorModal.organization"),": "]}),(0,a.jsx)(c.J,{className:"col-span-2 text-end font-semibold",children:(null==b?void 0:b.organization)||"-"}),(0,a.jsxs)(c.J,{children:[y("AdvisorModal.contact"),": "]}),(0,a.jsx)(c.J,{className:"col-span-2 text-end font-semibold",children:(null==b?void 0:b.contact)||"-"}),(0,a.jsxs)(c.J,{children:[y("AdvisorModal.advisorIds"),": "]}),(0,a.jsx)("div",{className:"col-span-2 flex justify-end",children:(0,a.jsx)(m.a,{name:"advisorId",form:w,placeholder:y("Common.pleaseEnterPlaceholder"),options:(0,v.bq)((null==b?void 0:b.advisorIds)||[]),className:"mt-[-15px]"})})]})}):(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(u.Z,{name:"name",label:y("AdvisorModal.name"),placeholder:y("Common.pleaseEnterPlaceholder"),form:w,theme:j}),(0,a.jsx)(u.Z,{name:"organization",label:y("AdvisorModal.organization"),placeholder:y("Common.pleaseEnterPlaceholder"),form:w,theme:j}),(0,a.jsx)(u.Z,{name:"contact",label:y("AdvisorModal.contact"),placeholder:y("Common.pleaseEnterPlaceholder"),form:w,theme:j}),(0,a.jsx)(u.Z,{name:"advisorId",label:y("AdvisorModal.advisorIds"),placeholder:y("Common.pleaseEnterPlaceholder"),form:w,theme:j})]})}),(0,a.jsx)(o.Es,{children:(0,a.jsx)(d.$,{type:"submit",children:y("Common.doneButton")})})]})})})}},52214:(e,s,t)=>{"use strict";t.d(s,{A:()=>n,D:()=>i});let a=(0,t(66439).Z0)({name:"stepProgress",initialState:{allowedStep:1},reducers:{setAllowedStep:(e,s)=>{e.allowedStep=s.payload}}}),{setAllowedStep:i}=a.actions,n=a.reducer},65445:(e,s,t)=>{"use strict";t.d(s,{Provider:()=>en});var a=t(95155),i=t(34540),n=t(66439),r=t(98482),l=t(52),o=t(65446);let d=(0,n.Z0)({name:"globalUI",initialState:{isLoading:!1,errors:[]},reducers:{startLoading:e=>{e.isLoading=!0},stopLoading:e=>{e.isLoading=!1},setErrors:(e,s)=>{e.errors=[...new Set([...e.errors,s.payload])]},resetErrors:e=>{e.errors=[]}}}),{startLoading:c,stopLoading:u,setErrors:m,resetErrors:p}=d.actions,x=d.reducer;var h=t(18091);let f={productsInfo:[],productClassList:[],productModeList:[]},v=(0,n.Z0)({name:"products",initialState:f,reducers:{setProducts:(e,s)=>{let{productsInfo:t,productClassList:a,productModeList:i}=s.payload;e.productsInfo=t,e.productClassList=a,e.productModeList=i},getProductsFailed:(e,s)=>f}}),{setProducts:y,getProductsFailed:j}=v.actions,g=v.reducer;var b=t(8430),A=t(39222),N=t(83814),w=t(26744),k=t(52214);let S=e=>e,C=Object.fromEntries(Object.values(N.Q).map(e=>e(S).id).map(e=>[e,(0,A.A)(e).reducer])),I=(0,l.HY)(C),J=(0,l.HY)({globalUI:x,quotation:o.Ay,productC
1overages:I,products:g,resources:b.Ay,portfolio:w.Ay,stepProgress:k.A});var _=t(26109),R=t(80425);let E=async e=>await (0,R.s)(e),P=async e=>await (0,R.Pg)(e),L=async e=>await (0,R.Fo)(e);function*T(e){try{yield(0,_.yJ)(c());let a=yield(0,_.T1)(E,e.payload),{data:i}=a.data;if("authenticate"in i&&"message"in i&&"no"===i.authenticate)yield(0,_.yJ)(m(i.message));else{if(yield(0,_.yJ)((0,o.Ne)({...a.data,userId:e.payload.userId})),"resources"in i&&(yield(0,_.yJ)((0,b.Py)(i.resources))),"data"in a&&"iSQSVersion"in a.data.data){var s,t;let e={iSQSVersion:null==(s=a.data.data)?void 0:s.iSQSVersion,middlewareVersion:null==(t=a.data.data)?void 0:t.middlewareVersion};yield(0,_.yJ)((0,o.qH)(e))}yield(0,_.yJ)(p())}yield(0,_.yJ)(u())}catch(e){yield(0,_.yJ)((0,o.ie)(e)),yield(0,_.yJ)(u())}}let M=async e=>await (0,R.Zm)(e);function*z(e){try{let s=yield(0,_.T1)(M,e.payload),t=null==s?void 0:s.data;(null==t?void 0:t.token)&&(yield(0,_.yJ)((0,o.Jy)(null==t?void 0:t.token))),yield(0,_.yJ)((0,o.cl)(t))}catch(e){yield(0,_.yJ)((0,o.CA)(e))}}let B=async()=>await (0,R.PZ)();function*G(){try{yield(0,_.T1)(B)}catch(e){yield(0,_.yJ)((0,o.p7)(e))}}function*Z(){yield(0,_.p8)("quotation/logoutAction",G)}let q=async e=>await (0,R.ZN)(e);function*U(e){try{var s,t;let a=yield(0,_.T1)(q,e.payload);(null==a?void 0:a.token)&&(yield(0,_.yJ)((0,o.Jy)(null==a?void 0:a.token))),(null==a?void 0:a.products)&&(null==a||null==(t=a.products)||null==(s=t.productsInfo)?void 0:s.length)>0?(yield(0,_.yJ)(y(null==a?void 0:a.products)),yield(0,_.yJ)((0,o.mJ)(a))):(yield(0,_.yJ)(j([])),yield(0,_.yJ)((0,o.kc)((null==a?void 0:a.error)||a)))}catch(e){yield(0,_.yJ)(j(e)),yield(0,_.yJ)((0,o.kc)(e))}}function*O(e){try{let s=yield(0,_.T1)(P,e.payload),t=null==s?void 0:s.data;(null==t?void 0:t.token)&&(yield(0,_.yJ)((0,o.Jy)(null==t?void 0:t.token))),yield(0,_.yJ)((0,o.CR)(t))}catch(e){yield(0,_.yJ)((0,o.KR)(e))}}function*V(e){try{let s=yield(0,_.T1)(L,e.payload),t=null==s?void 0:s.data;(null==t?void 0:t.token)&&(yield(0,_.yJ)((0,o.Jy)(null==t?void 0:t.token))),yield(0,_.yJ)((0,w.Gy)(t))}catch(e){yield(0,_.yJ)((0,w.xY)(e))}}function*Q(){yield(0,_.p8)("quotation/loginAction",T)}function*H(){yield(0,_.p8)("quotation/getComputePremiumAction",z)}function*Y(){yield(0,_.p8)("quotation/getProductsAction",U)}function*D(){yield(0,_.p8)("quotation/setCoverageDiscountAction",O)}function*F(){yield(0,_.p8)("portfolio/getFundsListAction",V)}let X=function*(){yield(0,_.Q7)([(0,_.Zy)(H),(0,_.Zy)(Q),(0,_.Zy)(Z),(0,_.Zy)(Y),(0,_.Zy)(D),(0,_.Zy)(F)])};var $=t(61328);let W=(0,r.Ay)(),K={key:"root",version:1,storage:h.A,blacklist:["globalUI"]},ee=(0,$.rL)(K,(e,s)=>"quotation/logoutAction"===s.type?(h.A.removeItem("persist:root"),J(void 0,s)):J(e,s)),es=(0,n.U1)({reducer:ee,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","persist/REHYDRATE","persist/REGISTER"]}}).concat(W)});W.run(X);let et=(0,$.GM)(es);var ea=t(97730),ei=t(12115);let en=e=>{let{children:s}=e,t=(0,ei.useRef)();return t.current||(t.current=es),(0,a.jsx)(i.Kq,{store:t.current,children:(0,a.jsx)(ea.Q,{loading:null,persistor:et,children:s})})}},80239:e=>{"use strict";e.exports=JSON.parse('{"name":"pocketsqs-web","version":"1.1.5","private":true,"scripts":{"dev":"cp .env.local-proxy .env.local && API_TARGET=$(grep \'^NEXT_PUBLIC_API_BASE_URL=\' .env.dev | cut -d\'=\' -f2) node server.mjs","uat":"cp .env.local-proxy .env.local && API_TARGET=$(grep \'^NEXT_PUBLIC_API_BASE_URL=\' .env.uat | cut -d\'=\' -f2) node server.mjs","dev-win":"copy .env.local-proxy .env.local && for /f \\"tokens=2 delims==\\" %i in (\'findstr \\"^NEXT_PUBLIC_API_BASE_URL=\\" .env.dev\') do set API_TARGET=%i && node server.mjs","uat-win":"copy .env.local-proxy .env.local && for /f \\"tokens=2 delims==\\" %i in (\'findstr \\"^NEXT_PUBLIC_API_BASE_URL=\\" .env.uat\') do set API_TARGET=%i && node server.mjs","build":"cp .env.prd .env.local && next build","build:dev":"cp .env.dev .env.local && next build","build:uat":"cp .env.uat .env.local && next build","build:prd":"cp .env.prd .env.local && next build","build:loc":"cp .env.loc .env.local && next build","start":"next start","start:dev":"next","start:uat":"next","start:prd":"next start","lint":"next lint","prepare":"husky install","test":"jest","test:watch":"jest --watch","test:coverage":"jest --coverage","test:e2e":"npx playwright test"},"lint-staged":{"*.{js,jsx,ts,tsx}":["prettier --write","eslint","jest --bail --findRelatedTests --passWithNoTests"],"*.{json,js,ts,jsx,tsx,html}":["prettier --write --ignore-unknown"]},"dependencies":{"@capacitor/android":"^6.2.0","@capacitor/core":"^6.2.0","@capacitor/ios":"^6.2.0","@ezsub/ezsub-storybook":"^0.0.162","@hookform/resolvers":"^3.9.0","@playwright/test":"^1.51.1","@radix-ui/react-avatar":"^1.1.3","@radix-ui/react-checkbox":"^1.1.4","@radix-ui/react-dialog":"^1.1.6","@radix-ui/react-dropdown-menu":"^2.1.6","@radix-ui/react-label":"^2.1.2","@radix-ui/react-popover":"^1.1.6","@radix-ui/react-select":"^2.1.6","@radix-ui/react-separator":"^1.1.2","@radix-ui/react-slot":"^1.1.2","@radix-ui/react-switch":"^1.1.3","@reduxjs/toolkit":"^2.5.0","axios":"1.14.0","class-variance-
1authority":"^0.7.0","crypto-js":"^4.2.0","date-fns":"^4.1.0","dompurify":"^3.2.6","express":"^4.21.2","html-react-parser":"^5.2.5","http-proxy-middleware":"^3.0.3","lucide-react":"^0.479.0","moment":"^2.30.1","next":"15.4.7","next-intl":"^3.25.1","react":"18.3.1","react-dom":"^18","react-hook-form":"^7.54.2","react-idle-timer":"^5.7.2","react-redux":"^9.2.0","redux-persist":"^6.0.0","redux-saga":"^1.3.0","tailwind-merge":"^2.5.2","yup":"^1.6.1","zod":"^3.24.1"},"devDependencies":{"@capacitor/cli":"^6.2.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.3.0","@testing-library/user-event":"^14.6.1","@types/crypto-js":"^4.2.2","@types/jest":"^30.0.0","@types/node":"^22.10.7","@types/react":"^18","@types/react-dom":"^18","@typescript-eslint/eslint-plugin":"^8.21.0","eslint":"^9.18.0","eslint-config-next":"^15.1.5","eslint-config-prettier":"^10.0.1","eslint-plugin-jest":"^29.0.1","husky":"^8.0.0","jest":"^30.0.4","jest-environment-jsdom":"^30.0.4","postcss":"^8.5.1","prettier":"^3.4.2","prettier-plugin-tailwindcss":"^0.6.10","tailwindcss":"^3.4.17","ts-node":"^10.9.2","typescript":"^5.8.2"}}')},88690:(e,s,t)=>{"use strict";t.d(s,{default:()=>ea});var a=t(95155),i=t(35695),n=t(12115),r=t(35025),l=t(13052),o=t(5196),d=t(9428),c=t(53999);let u=r.bL,m=r.l9,p=r.YJ;r.ZL,r.Pb,r.z6,n.forwardRef((e,s)=>{let{className:t,inset:i,children:n,...o}=e;return(0,a.jsxs)(r.ZP,{ref:s,className:(0,c.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",i&&"pl-8",t),...o,children:[n,(0,a.jsx)(l.A,{className:"ml-auto h-4 w-4"})]})}).displayName=r.ZP.displayName,n.forwardRef((e,s)=>{let{className:t,...i}=e;return(0,a.jsx)(r.G5,{ref:s,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...i})}).displayName=r.G5.displayName;let x=n.forwardRef((e,s)=>{let{className:t,sideOffset:i=4,...n}=e;return(0,a.jsx)(r.ZL,{children:(0,a.jsx)(r.UC,{ref:s,sideOffset:i,className:(0,c.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...n})})});x.displayName=r.UC.displayName;let h=n.forwardRef((e,s)=>{let{className:t,inset:i,...n}=e;return(0,a.jsx)(r.q7,{ref:s,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",i&&"pl-8",t),...n})});h.displayName=r.q7.displayName,n.forwardRef((e,s)=>{let{className:t,children:i,checked:n,...l}=e;return(0,a.jsxs)(r.H_,{ref:s,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...l,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.VF,{children:(0,a.jsx)(o.A,{className:"h-4 w-4"})})}),i]})}).displayName=r.H_.displayName,n.forwardRef((e,s)=>{let{className:t,children:i,...n}=e;return(0,a.jsxs)(r.hN,{ref:s,className:(0,c.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(r.VF,{children:(0,a.jsx)(d.A,{className:"h-2 w-2 fill-current"})})}),i]})}).displayName=r.hN.displayName;let f=n.forwardRef((e,s)=>{let{className:t,inset:i,...n}=e;
1return(0,a.jsx)(r.JU,{ref:s,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",i&&"pl-8",t),...n})});f.displayName=r.JU.displayName;let v=n.forwardRef((e,s)=>{let{className:t,...i}=e;return(0,a.jsx)(r.wv,{ref:s,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",t),...i})});v.displayName=r.wv.displayName;let y=e=>{let{className:s,...t}=e;return(0,a.jsx)("span",{className:(0,c.cn)("ml-auto text-xs tracking-widest opacity-60",s),...t})};y.displayName="DropdownMenuShortcut";var j=t(44912),g=t(85977);let b=n.forwardRef((e,s)=>{let{className:t,...i}=e;return(0,a.jsx)(g.bL,{ref:s,className:(0,c.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...i})});b.displayName=g.bL.displayName;let A=n.forwardRef((e,s)=>{let{className:t,...i}=e;return(0,a.jsx)(g._V,{ref:s,className:(0,c.cn)("aspect-square h-full w-full",t),...i})});A.displayName=g._V.displayName;let N=n.forwardRef((e,s)=>{let{className:t,...i}=e;return(0,a.jsx)(g.H4,{ref:s,className:(0,c.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...i})});N.displayName=g.H4.displayName;var w=t(86422),k=t(74783),S=t(85339),C=t(52856),I=t(87417),J=t(34835),_=t(27043),R=t(6874),E=t.n(R),P=t(66766),L=t(22789),T=t(17580),M=t(68319),z=t(8264),B=t(18084),G=t(58739),Z=t(71833);let q={src:"/SQS/login/_next/static/media/ic_singlife_logo.91d1d764.svg",height:38,width:122,blurWidth:0,blurHeight:0},U={src:"/SQS/login/_next/static/media/ic_singlife_logo_sm.3f155861.svg",height:38,width:39,blurWidth:0,blurHeight:0},O=[{id:"customer",icon:T.A},{id:"plan",icon:M.A},{id:"product",icon:z.A},{id:"rider",icon:B.A},{id:"summary",icon:G.A},{id:"generation",icon:Z.A}],V=e=>{let{sidebarRef:s,isSidebarOpen:t,setIsSidebarOpen:n}=e,r=(0,i.useRouter)(),l=(0,_.useTranslations)("Menu");return(0,a.jsx)("aside",{id:"logo-sidebar",ref:s,className:"fixed left-0 top-0 z-40 h-screen w-16 shadow-lg transition-transform sm:w-64 ".concat(t?"translate-x-0":"-translate-x-full"),"aria-label":"Sidebar",children:(0,a.jsxs)("div",{className:"h-full space-y-4 overflow-y-auto bg-background px-3 py-4",children:[(0,a.jsx)("div",{children:(0,a.jsxs)(E(),{href:"/",onClick:()=>n(!1),children:[(0,a.jsx)(P.default,{className:"hidden sm:block",src:q,alt:"Singlife",width:100}),(0,a.jsx)(P.default,{className:"block sm:hidden",src:U,alt:"Singlife",width:100})]})}),(0,a.jsx)(L.w,{}),(0,a.jsx)("ul",{className:"space-y-2 font-medium",children:O.map(e=>(0,a.jsxs)("li",{className:"group flex cursor-pointer items-center rounded-lg p-2 text-slate-700 hover:bg-muted",onClick:()=>(e=>{n(!1);let s=e.id;r.push("/".concat(s))})(e),children:[(0,a.jsx)(e.icon,{}),(0,a.jsx)("span",{className:"ms-3 hidden flex-1 whitespace-nowrap sm:block",children:l(e.id)})]},e.id))})]})})};var Q=t(51826),H=t(80239),Y=t(65446);let D={src:"/SQS/login/_next/static/media/singlife-logo.be04b81a.png",height:597,width:2966,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAD1BMVEX///////////////////+Rd1MVAAAABXRSTlMGNClDUcLGnCwAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAXSURBVHicY2BgYWZiYmRkYAAxmFkYGQABHgAfmaShGQAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:2},F=()=>(0,a.jsx)("nav",{className:"nav sticky top-0 z-30 flex h-14 items-center justify-center bg-primary px-3 py-1 shadow-md",children:(0,a.jsx)(P.default,{src:D,style:{maxWidth:"100%",height:"45px"},width:210,height:500,alt:"singlife-logo",className:"my-2"})});var X=t(37025),$=t(31808);let W={browsers:[{name:"Google Chrome",version:"18"},{name:"Internet Explorer",version:"9"},{name:"Safari",version:"5"}],systems:[{name:"Windows",version:"7,8"},{name:"Apple OS X",version:"10.7,10.8"},{name:"Apple iOS",version:"6"},{name:"Android",version:"4.1"}]};function K(e){let{isOpen:s,onClose:t}=e,i=(0,_.useTranslations)(),{iSQSVersion:n,middlewareVersion:r}=(0,Q.GV)(e=>e.quotation);return(0,a.jsx)($.lG,{open:s,onOpenChange:t,children:(0,a.jsxs)($.Cf,{children:[(0,a.jsxs)($.c7,{children:[(0,a.jsx)($.L3,{children:i("Menu.about")}),(0,a.jsx)($.rr,{})]}),(0,a.jsxs)("div",{className:"divide-y divide-gray-200 text-left",children:[(0,a.jsxs)("div",{className:"py-4 first:pt-0 last:pb-0",children:[(0,a.jsx)("h3",{className:"font-medium",children:i("AboutModal.pocketSQSVersion")}),(0,a.jsx)("p",{children:null==H?void 0:H.version})]}),(0,a.jsxs)("div",{className:"py-4 first:pt-0 last:pb-0",children:[(0,a.jsx)("h3",{className:"font-medium",children:i("AboutModal.middlewareVersion")}),(0,a.jsx)("p",{children:r})]}),(0,a.jsxs)("div",{className:"py-4 first:pt-0 last:pb-0",children:[(0,a.jsx)("h3",{className:"font-medium",children:i("AboutModal.iSQSVersion")}),(0,a.jsx)("p",{children:n})]}),(0,a.jsxs)("div",{className:"py-4 first:pt-0 last:pb-0",children:[(0,a.jsx)("h3",{className:"font-medium",children:i("AboutModal.supportingBrowsers")}),(0,a.jsx)("ul",{className:"list-inside list-disc",children:W.browsers.map(e=>(0,a.jsxs)("li",{children:[e.name," (",e.version,")"]},e.name))})]}),(0,a.jsxs)("div",{className:"py-4 first:pt-0 last:pb-0",children:[(0,a.jsx)("h3",{className:"font-medium",children:i("AboutModal.supportingSystems")}),(0,a.jsx)("ul",{className:"list-inside list-disc",children:W.systems.map(e=>(0,a.jsxs)("li",{children:[e.name," (",e.version,")"]},e.name))})]})]}),(0,a.jsx)($.Es,{children:(0,a.jsx)(j.$,{onClick:t,children:i("Common.doneButton")})})]})})}var ee=t(71292),es=t(83814),et=t(33882);let ea=()=>{var e,s;let t=(0,Q.jL)(),r=(0,i.useRouter)(),l=(0,i.usePathname)(),o=(0,_.useTranslations)(),{adviserProfile:d,coverages:c}=(0,Q.GV)(e=>
1e.quotation),[g,R]=(0,n.useState)(!1),[E,P]=(0,n.useState)(!1),[L,T]=(0,n.useState)(!1),[M,z]=(0,n.useState)(!1),[B,G]=(0,n.useState)(!1),Z=c.length>0?c[0].id:void 0,q=Z&&es.Q[Z],U=null==q?void 0:q(o),O="product"===l.split("/").filter(Boolean).shift(),D="rider"===l.split("/").filter(Boolean).shift(),$=null==(e=c[0])?void 0:e.name,W="/"===l?"home":l.split("/").filter(Boolean).pop(),ea=o("Menu.".concat(W)),ei="No tooltips available!";O&&(ea=$||"Product",ei=Z&&(null==U||null==(s=U.tooltip)?void 0:s.text)||ei),D&&(ea=$?"".concat($," - Rider"):"Rider");let en=function(e){let{onOutsideClick:s}=e,t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=e=>{t.current&&!t.current.contains(e.target)&&s()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[s]),t}({onOutsideClick:()=>{R(!1)}});if("/auth"===l)return(0,a.jsx)(F,{});let er=()=>(0,a.jsxs)(b,{className:"h-8 w-8 text-primary",children:[(0,a.jsx)(A,{src:"",alt:"User avatar"}),(0,a.jsx)(N,{children:(0,a.jsx)(w.A,{className:"h-6"})})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("nav",{className:"nav sticky top-0 z-30 flex h-14 max-w-full items-center justify-between bg-primary px-3 py-1 text-primary-foreground shadow-md",children:[(0,a.jsx)(j.$,{variant:"ghost",size:"icon",onClick:()=>R(!g),children:(0,a.jsx)(k.A,{})}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-center justify-center gap-2",children:[(0,a.jsx)(et.J,{variant:"title_sm",className:"truncate text-center tracking-wide",children:ea}),O&&(0,a.jsx)(j.$,{variant:"ghost_primary",size:"rounded_icon",onClick:()=>G(!B),className:"flex-shrink-0",children:(0,a.jsx)(S.A,{className:"h-4 w-4"})})]}),(0,a.jsx)("div",{className:"ms-3 flex items-center gap-2",children:(0,a.jsxs)(u,{open:L,onOpenChange:T,children:[(0,a.jsx)(m,{asChild:!0,children:(0,a.jsx)(j.$,{variant:"ghost",className:"relative h-8 w-8 rounded-full focus-visible:ring-4 focus-visible:ring-white/25 focus-visible:ring-offset-0",children:(0,a.jsx)(er,{})})}),(0,a.jsxs)(x,{className:"w-56",align:"end",forceMount:!0,children:[(0,a.jsxs)(f,{onClick:()=>{P(!0),T(!1)},className:"flex cursor-pointer items-center gap-5 font-normal hover:bg-accent hover:text-accent-foreground",children:[(0,a.jsx)(er,{}),(0,a.jsx)("div",{className:"flex flex-col space-y-1",children:d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"text-sm font-medium leading-none",children:d.name}),(0,a.jsx)("p",{className:"text-xs leading-none text-muted-foreground",children:d.advisorId})]})})]}),(0,a.jsx)(v,{}),(0,a.jsxs)(p,{children:[(0,a.jsxs)(h,{onClick:()=>z(!0),children:[(0,a.jsx)(C.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:o("Menu.about")})]}),(0,a.jsxs)(h,{onClick:()=>r.push("/resources"),children:[(0,a.jsx)(I.A,{className:"mr-2 h-4 w-4"}),(0,a.jsxs)("span",{children:[" ",o("Menu.resources")]})]})]}),(0,a.jsx)(v,{}),(0,a.jsx)(p,{children:(0,a.jsxs)(h,{onClick:()=>{t((0,Y.Zm)()),r.push("/auth")},children:[(0,a.jsx)(J.A,{className:"mr-2 h-4 w-4"}),(0,a.jsx)("span",{children:o("Menu.logout")}),(0,a.jsx)(y,{children:(0,a.jsx)("p",{className:"text-xs leading-none tracking-normal text-muted-foreground",children:"v".concat(H.version)})})]})})]})]})})]}),g&&(0,a.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-40 backdrop-blur"}),(0,a.jsx)(V,{sidebarRef:en,isSidebarOpen:g,setIsSidebarOpen:R}),(0,a.jsx)(X.G,{isOpen:E,onClose:()=>P(!1)}),(0,a.jsx)(K,{isOpen:M,onClose:()=>z(!1)}),(0,a.jsx)(ee.A,{className:"fixed left-1/2 top-14 -translate-x-1/2 transform",isOpen:B,onOpenChange:G,content:ei})]})}},98083:(e,s,t)=>{"use strict";t.d(s,{LoadingOverlay:()=>r});var a=t(95155),i=t(75062),n=t(51826);t(12115);let r=()=>(0,n.GV)(e=>e.globalUI.isLoading)?(0,a.jsx)(i.A,{}):null}},e=>{e.O(0,[533,586,66,514,21,540,968,115,494,172,766,874,244,682,814,441,964,358],()=>e(e.s=33066)),_N_E=e.O()}]);

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.