1import{a3 as f,C as h,G as m}from"./rIeZ-ueP.js";const a="default-org",c="default";function p(r,t,s){const o=r.toLowerCase().split(":")[0]??"";if(!o||o===t||o===s)return null;const u=`.${t}`;if(!o.endsWith(u))return null;const n=o.slice(0,-u.length);return!n||n.includes(".")?null:n}function I(){const{data:r}=f(),t=m(),s=t.public.rootDomain??"",u=(t.public.authDomain??"").replace(/^https?:\/\//,"").replace(/:\d+$/,"");return h(()=>{const n=r.value?.orgList??[];if(!s){const i=n.find(d=>d.orgId===a);return{orgId:a,orgSlug:c,role:i?.role??null}}const g=typeof window<"u"?window.location.host:"",e=p(g,s,u);if(!e)return{orgId:a,orgSlug:c,role:null};const l=n.find(i=>i.slug===e);return{orgId:l?.orgId??e,orgSlug:l?.slug??e,role:l?.role??null}})}export{a as D,I 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.