1import{aG as l,aH as d,aI as f,L as h,aa as m}from"./CkvQQrjb.js";function p(a){const{user:e,returnToFullPath:t,chatUrl:n}=a;return e?e.isAdmin?{action:"allow"}:{action:"redirect",to:"/"}:{action:"redirect",to:`${n}/api/auth/apogee-sso?return_to=${encodeURIComponent(t)}`,external:!0}}const x=l(async a=>{let e,t;const{isAuthenticated:n,isLoading:r,isAdmin:o,fetchUser:s}=d();r.value&&([e,t]=f(()=>s()),await e,t());const u=h().public.chatUrl,c=n.value?{isAdmin:o.value}:null,i=p({user:c,returnToFullPath:a.fullPath,chatUrl:u});if(i.action==="redirect")return m(i.to,{external:i.external})});export{x as default,p as resolveAdminGateDecision};
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.