1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0f882-7b25-7de3-b47b-5728b6503d8f")}catch(e){}}();import{ad as d,c as v,l as g,h as p,ae as i,n,af as h,a0 as m,a as b,r as S}from"./B9L9bz2X.js";import"./BccGmGEE.js";import"./oL1aYJWA.js";import"./gCrg-oG1.js";import"./BYZkvKjW.js";const C=d(async u=>{let e,r;const s=v(),f=g().$i18n,t=p(),o=([e,r]=i(()=>t.fetchAccess({force:!0})),e=await e,r(),e);if(t.errorStatus.value===401){const a=encodeURIComponent(u.fullPath);return n(`${s("/login")}?returnTo=${a}`)}if(t.status.value==="error"){const a=t.errorStatus.value===403;return h(m({statusCode:a?403:503,statusMessage:f.t(a?"vincent.errors.staffRequired":"vincent.errors.accessUnavailable")}))}const c=t.hasCapability("staff.role.manage");if(!(o.active&&c)){if(o.active){const a=b();try{[e,r]=i(()=>a.ensureBootstrapped({allowPersonalOrgProvisioning:!1})),await e,r()}catch{return n(s("/staff/access-blocked"))}const l=S({active:!0,vincentEnabled:t.isVincentEnabled.value,canManageStaff:c,hasOrganizationContext:!!a.currentOrgId});return n(s(l||"/dashboard"))}return n(s("/dashboard"))}});export{C as default}; 2 3//# chunkId=01a0f882-7b25-7de3-b47b-5728b6503d8f
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.