PageSourceSearch

https://tallo.com/talent/assets/okta-loader-pxbwjMq7.js

js tallo.com collected 2026-10-01 12:18:15 UTC 3,944 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/okta-auth-D6-9_UDI.js","assets/okta-lDpDvxff.js","assets/vendor-shared-VpfErccX.js","assets/react-router-BaecbKjl.js","assets/urls-CbgKZf24.js","assets/okta-scopes-CIFotTpn.js"])))=>i.map(i=>d[i]);
2var D=Object.defineProperty;var R=(e,t,r)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var S=(e,t,r)=>R(e,typeof t!="symbol"?t+"":t,r);import{_}from"./preload-helper-DJ_kFago.js";import{j as l}from"./jsx-runtime-BXHdZtXm.js";import{a as n}from"./react-router-BaecbKjl.js";import{a as b}from"./logging-TcvRDpKY.js";import{i as g}from"./ssrGuards-QdjV7NBU.js";class j extends n.Component{constructor(r){super(r);S(this,"reset",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,o){var u;console.error("Error caught by ErrorBoundary:",r,o),(u=b)==null||u(`Unhandled error: ${r.message}`,"ErrorBoundary","componentDidCatch")}render(){const{fallback:r,dataTestId:o}=this.props;if(this.state.hasError){const u=typeof r=="function"?r({error:this.state.error,reset:this.reset}):r;return l.jsx("div",{"data-testid":o?`${o}-error-container`:"error-boundary-container",children:u})}return this.props.children}}async function T(e,t,r){let o;try{return await Promise.race([e,new Promise((u,h)=>{o=setTimeout(()=>{const c=new Error(`timeout:${r}`);c.name="TimeoutError",h(c)},t)})])}finally{o&&clearTimeout(o)}}const f="okta-token-storage",U=2e3,w=3,B=500,v=1e4;let s=null,d=null,x=!1;const E=new Set,z=()=>x,K=()=>s?Promise.resolve(s):(d||(d=Promise.all([_(()=>import("./okta-auth-D6-9_UDI.js"),__vite__mapDeps([0,1,2,3,4,5])),_(()=>import("./okta-lDpDvxff.js").then(e=>e.o),__vite__mapDeps([1,2,3]))]).then(([e,t])=>(s={oktaAuth:e.oktaAuth,restoreOriginalUri:e.restoreOriginalUri,Security:t.Security,OktaContext:t.OktaContext},E.forEach(r=>r()),s)).catch(e=>{throw d=null,x=!0,e})),d),p=()=>T(K(),v,"okta-chunk").then(e=>e.oktaAuth),y=(e,t)=>{try{const r=window[e].getItem(t);if(r==null)return!1;const o=r.trim();return o!==""&&o!=="{}"}catch{return!1}},A=()=>{if(!g())return!1;if(y("localStorage",f)||y("sessionStorage",f))return!0;try{return document.cookie.split(";").some(e=>e.trim().startsWith(f))}catch{return!1}},L=n.createContext({oktaAuth:null,authState:null,status:"probing"}),M=()=>n.useContext(L),H=()=>{const{oktaAuth:e,authState:t}=M();if(!e)throw new Error("useLoadedOktaAuth was called outside a loaded <OktaRequired> gate");return{oktaAuth:e,authState:t}},q=e=>{if("requestIdleCallback"in window){const r=window.requestIdleCallback(e,{timeout:U});return()=>window.cancelIdleCallback(r)}const t=setTimeout(e,0);return()=>clearTimeout(t)};function Y({oktaContext:e,onAuthState:t}){var o;const r=((o=n.useContext(e))==null?void 0:o.authState)??null;return n.useEffect(()=>{t(r)},[r,t]),null}function J({children:e}){const[t,r]=n.useState(s),[o,u]=n.useState(null),[h,c]=n.useState(s?"loaded":"probing");n.useEffect(()=>{const i=()=>{s&&(r(s),c("loaded"))};return E.add(i),i(),()=>{E.delete(i)}},[]),n.useEffect(()=>{if(!g())return;let i=!1;const m=()=>{!i&&!s&&c("anonymous")},k=a=>{i||a.key!==null&&a.key!==f||A()&&p().catch(()=>{})};window.addEventListener("storage",k);const O=()=>window.removeEventListener("storage",k);if(!A()){const a=d;return a?T(a,v,"okta-chunk").catch(m):m(),O}const P=q(()=>{(async()=>{for(let a=1;a<=w;a+=1){if(i)return;try{await p();return}catch{a<w&&await new Promise(I=>setTimeout(I,B))}}m()})()});return()=>{i=!0,P(),O()}},[]);const C=n.useMemo(()=>({oktaAuth:(t==null?void 0:t.oktaAuth)??null,authState:o,status:h}),[t,o,h]);return l.jsxs(L.Provider,{value:C,children:[e,t&&l.jsx(j,{fallback:null,children:l.jsx(t.Security,{oktaAuth:t.oktaAuth,restoreOriginalUri:t.restoreOriginalUri,children:l.jsx(Y,{oktaContext:t.OktaContext,onAuthState:u})})})]})}export{j as E,J as O,H as a,p as e,z as i,M as u};

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.