1(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[40],{367:function(e,t,o){"use strict";o.r(t);o(8),o(32),o(502),o(10);var n=o(1),i=o(131),r=o(165),a=o(1035),s=o(516),c=o(226),d=o(0),l=o.p+"images/warning-d24ec1a17129b7b63c7bc95d2bfe5bd4.svg",p=o.p+"images/popupHighlightImage-baf468a870afc2671fa55b87f1729359.png",b=o(2);t.default=function(e){const{sessionIsAboutToExpire:t,expireTime:o,validateAndExtendToken:u,signout:x}=Object(i.b)(),[g,f]=Object(n.useState)(!1),[h,m]=Object(n.useState)(120);return Object(n.useEffect)(()=>{f(!!t)},[t]),Object(n.useEffect)(()=>{let e;if(g&&o){const t=()=>{const e=Date.now(),t=o.getTime(),n=Math.max(0,Math.floor((t-e)/1e3))-60;m(n),n<=0&&Object(c.a)({message:"Session expired - user did not extend session in time. Redirecting to sign out.",portalType:null===d.b||void 0===d.b?void 0:d.b.PORTAL_TYPE_GENERAL})};t(),e=setInterval(t,1e3)}return()=>{e&&clearInterval(e)}},[g,o]),g&&Object(b.jsx)(a.a,{open:g,autoHideDuration:1e3*h,onClose:(e,t)=>{if("clickaway"!==t)return"timeout"===t?(Object(c.a)({message:"User did not respond to session warning. Redirected to Sign out.",portalType:null===d.b||void 0===d.b?void 0:d.b.PORTAL_TYPE_GENERAL}),x(),void(window.location.href=null===d.b||void 0===d.b?void 0:d.b.SIGN_OUT_URL)):void f(!1)},children:Object(b.jsxs)(r.a,{sx:{boxShadow:2,width:377,backgroundColor:"background.white",boxShadow:"0px 3px 8px 0px #00000040",borderRadius:"5px",padding:"20px 16px 23px",position:"relative","&::before":{content:'""',position:"absolute",height:"6px",width:"100%",top:"0",left:"0",backgroundImage:`url(${p})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"}},children:[Object(b.jsxs)(r.a,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginBottom:"15px"},children:[Object(b.jsx)("img",{src:l,alt:"warning"}),Object(b.jsx)(s.a,{sx:{fontFamily:"heading.fontFamily.primary",fontWeight:700,fontSize:"26px !important",lineHeight:"32.5px",color:"primary.main",marginLeft:"10px"},children:"Warning:"})]}),Object(b.jsxs)(s.a,{sx:{fontFamily:"body.fontFamily.primary",fontWeight:400,fontSize:"16px !important",lineHeight:"24px",color:"text.accent","& button":{color:"text.accent",textDecoration:"none",cursor:"pointer",fontWeight:700,background:"none",border:"none",padding:0,font:"inherit",fontSize:"inherit"}},children:["Due to inactivity, your session will expire in ",(e=>{const t=Math.floor(e/60),o=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`})(h),". To extend your session for 30 minutes, please ",Object(b.jsx)("button",{type:"button",onClick:()=>{u(),f(!1)},children:"extend your session"}),"."]})]})})}}}]);
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.