1import{t as e}from"./client-C64LMKCc.js";import{n as t}from"./useAuth-C_1Jhuze.js";import{n}from"./use-swr-mgpzvfmo-gRmJV6lS.js";async function r(t){let{data:n,error:r}=await e.from(`superadmins`).select(`id`).eq(`user_id`,t).maybeSingle();return r?(console.error(`Superadmin check error:`,r),!1):!!n}function i(e=!0){let{user:i}=t(),{data:a,isLoading:o}=n(e&&i?[`superadmin`,i.id]:null,([,e])=>r(e));return{isSuperAdmin:a??!1,loading:e&&i?o:!1}}export{i 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.