PageSourceSearch

https://assets.mettra.app/_next/static/chunks/3019.5f0ceb8e2dc61235.js

js mettra.app collected 2026-10-02 01:16:34 UTC 2,152 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3019],{43019:(e,o,n)=>{n.d(o,{X4:()=>S,clearSessionIsolation:()=>g,clearSessionTimeout:()=>m,dk:()=>h,iO:()=>u});let t=["mousedown","keydown","scroll","touchstart","click"],i=null,r=null,a=Date.now(),s=180,l={},c=!1;function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=e.timeoutMinutes||180,n=e.warningMinutes||15;l={...e,timeoutMinutes:o,warningMinutes:n},s=o,w(),a=Date.now(),r=setTimeout(()=>{var e;console.log("[Session] Warning: Session will expire soon"),null==(e=l.onWarning)||e.call(l,n)},(o-n)*6e4),i=setTimeout(()=>{console.log("[Session] Session expired due to inactivity"),f(l.onTimeout)},60*o*1e3),c||(t.forEach(e=>{window.addEventListener(e,d,{passive:!0})}),c=!0),console.log("[Session] Timeout initialized: ".concat(o," minutes"))}function d(){let e=Date.now();e-a>6e4&&(a=e,u(l))}function w(){i&&(clearTimeout(i),i=null),r&&(clearTimeout(r),r=null)}function m(){w()}async function f(e){w(),c&&(t.forEach(e=>{window.removeEventListener(e,d)}),c=!1);try{try{let{clearCsrfTokenCache:e}=await Promise.resolve().then(n.bind(n,34306));e()}catch(e){console.error("[Session] Failed to clear CSRF cache:",e)}try{let{resetUser:e}=await Promise.all([n.e(8229),n.e(9361)]).then(n.bind(n,29361));e()}catch(e){console.error("[Session] Failed to reset analytics user:",e)}try{let{clearAllBrowserData:e}=await n.e(4541).then(n.bind(n,34541));await e()}catch(e){console.error("[Session] Failed to clear browser data:",e)}e?e():window.location.href="/login?reason=timeout"}catch(e){console.error("[Session] Failed to handle timeout:",e),window.location.href="/login?reason=timeout"}}async function h(){try{if(!i)return!1;if(0>=function(){if(!i)return 0;let e=Date.now()-a;return Math.max(0,Math.floor((60*s*1e3-e)/60/1e3))}())return await f(l.onTimeout),!1;if(!(localStorage.getItem("token")||sessionStorage.getItem("token")))return!1;return!0}catch(e){return console.error("[Session] Validation failed:",e),!1}}function S(e){a=Date.now(),u(null!=e?e:l),console.log("[Session] Session extended")}function g(){localStorage.removeItem("pwa_instance_id")}}}]);

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.