PageSourceSearch

https://macosicons.com/_nuxt/Dh06wX2m.js

js macosicons.com collected 2026-09-25 20:49:16 UTC 1,924 bytes, 1 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:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`daddb8f9-b43b-40f6-bd33-9dd90d4f1c5a`,e._sentryDebugIdIdentifier=`sentry-dbid-daddb8f9-b43b-40f6-bd33-9dd90d4f1c5a`)}catch{}})();import{O as e}from"./BNWMsBwf.js";import{C as t}from"./CyU4sjus.js";import{g as n}from"./Dxi30lUR.js";import"./Q7w0U3k9.js";import{kn as r}from"#entry";import{t as i}from"./CUeTAqBw.js";function a(e){let{response:t,storedToken:n,lastCheckedToken:r}=e;return!n||r===n?!1:r!=null||t?.isAdmin!==!0&&t?.reason!==`not-admin`}function o(e){return e?.reason?e.reason!==`unavailable`:!1}function s(){return r(`/api/admin/check`,{key:`is-admin`,headers:void 0,default:()=>({isAdmin:!1,reason:`no-session`})},`$lEkNrP4mNI`)}var c=`_macosiconsAdminRevalidation`;function l(e){let n=e,r=n[c];if(r)return r;let i={lastCheckedToken:null,inFlight:null,pending:t(!1)};return n[c]=i,i}function u(){try{return localStorage.getItem(`auth_token`)||null}catch{return null}}function d(e,t,n,r){let s=i().ensureSessionCookie;return function(){if(t.inFlight)return t.inFlight;let i=u();if(!a({response:n.value,storedToken:i,lastCheckedToken:t.lastCheckedToken}))return t.lastCheckedToken=i,Promise.resolve();t.pending.value=!0;let c=async()=>{let e=!1;try{await s?.(),await r(),e=o(n.value)}catch{e=!1}finally{e&&(t.lastCheckedToken=i),t.inFlight=null,t.pending.value=!1}},l=e.isHydrating?new Promise(t=>{e.hooks.hookOnce(`app:suspense:resolve`,()=>t(c()))}):c();return t.inFlight=l,l}}function f(){let t=e(),r=l(t),{data:i,refresh:a}=s();return d(t,r,i,a)(),n(()=>i.value?.isAdmin===!0)}async function p(){let t=e(),r=l(t),i=s(),a=d(t,r,i.data,i.refresh);await i;let o=a();return t.isHydrating||await o,{isAdmin:n(()=>i.data.value?.isAdmin===!0),settled:n(()=>!r.pending.value)}}export{p as n,f 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.