PageSourceSearch

https://jeparticipe.soumagne.be/assets/useAuthUser.zxr76XXi.chunk.js

js soumagne.be collected 2026-10-02 13:00:35 UTC 1,462 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`829619`}}catch{}})();import{Ct as e,H as t,N as n,ct as r,dt as i,lt as a,st as o}from"./cl-intl.C4y3pUTH.chunk.js";import{s,t as c}from"./history.BTnQtFIA.chunk.js";import{n as l}from"./constants.DHIOLe8Q.chunk.js";import{t as u}from"./keys.C7f2SvSx.chunk.js";var d=async()=>{await o.resetQueries({queryKey:u.all()})},f=()=>{o.invalidateQueries()};async function p(e){if(e?.logout_supported){let{provider:t,sub:n}=e,r=`${l}/${t}/logout_data?user_id=${n}`;return(await(await fetch(r)).json()).url}else return null}var m=[`/sign-up`,`/profile/edit`,`/profile/change-email`,`/profile/change-password`,`/profile/change-phone`];async function h(){let e=a();if(e){let n=r(e);if(i(),n.logout_supported){let e=await p(n);window.location.href=e}else{await d(),f();let{pathname:e}=s(location.pathname);e&&(t(e,m)||e.startsWith(`/admin`))&&c.push(`/`),e&&t(e,`/ideas/new`)&&c.push(e.split(`/ideas/new`)[0])}}}var g=async()=>{let e=await n({path:`/users/me`,action:`get`});if(!e)return null;if(e.data.attributes.highest_role!==`user`){let t=a();if(t)try{if(r(t).highest_role!==e.data.attributes.highest_role)return h(),null}catch{return h(),null}else return null}return e},_=()=>e({queryKey:u.all(),queryFn:()=>g()});export{f as a,p as i,_ as n,d as o,h as r,g as t};
2//# sourceMappingURL=useAuthUser.zxr76XXi.chunk.js.map

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.