PageSourceSearch

https://www.statista.com/accounts/assets/dist-DLNJnobq.js

js statista.com collected 2026-09-24 05:15:41 UTC 1,137 bytes, 1 lines download raw bytes

1import{i as e,t}from"./react-Ca_kTYur.js";import{t as n}from"./jsx-runtime-Wddns1t4.js";import{n as r}from"./dist-D4Yx-Q8Z.js";var i=n(),a=e(t(),1),o=(0,a.createContext)(void 0),s=({isLoggedIn:e,children:t})=>{let[n,s]=(0,a.useState)({loaded:!1}),c=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(n.user||c.current)return;c.current=!0;let e=()=>{s({loaded:!0}),document.cookie=`__sso_status=;path=/;SameSite=Lax;expires=${new Date(0).toUTCString()}`};fetch(`/sso/user`).then(async t=>{let n=await t.json();`user`in n?n.user?s({user:n.user,loaded:!0}):e():(r().error(`Invalid user data format`),e())}).catch(()=>{e()}).finally(()=>{c.current=!1})},[e,n.user]);let{user:l,loaded:u}=n,d={isLoggedIn:u?!!l:e,user:l};return(0,i.jsx)(o.Provider,{value:d,children:t})};function c(){let e=(0,a.useContext)(o);if(!e)throw Error(`Setup SsoContextProvider`);return e}var l=({children:e,location:t})=>{let{isLoggedIn:n}=c();return(0,i.jsxs)(`form`,{name:`login-form`,action:n?`/sso/logout`:`/sso/login`,children:[n?void 0:(0,i.jsx)(`input`,{type:`hidden`,name:`__sso_redirect`,value:`${t.pathname}${t.search}${t.hash}`}),e]})};export{s as n,c as r,l as t};

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.