1import{_ as e,u as t}from"./BftnFbcr.chunk.js";import"./DFZS3Ffo.chunk.js";import{d as n}from"./CEamUdnf.chunk.js";import{t as r}from"./Bjt_-lTs.chunk.js";import{t as i}from"./Kx-r9MXT.chunk.js";import{n as a}from"./BDZgYIcf.chunk.js";import{t as o}from"./BYQ4R4H_2.chunk.js";function s(e,t,n){return n?n===`ALL`?t.every(t=>e[t]):t.some(t=>e[t]):!t.find(t=>!e[t])}var c=()=>{let c=n(n(r.currentUser()).hasCompleted&&r.permissions()),{gatedPermissions:l}=a(),[u]=o(i.LOCAL_PERMISSIONS);return{permissions:c.data,hasPermissions:(e,t)=>!c.hasCompleted||c.hasError?!1:!e||!e?.length?!0:Array.isArray(e)?s(c.data,e,t):!!c.data[e],hasLocalPermissions:n=>(u||e.throw(new t(`Local Permissions should be registered during start up.`)),!n||!n?.length?!0:Array.isArray(n)?!n.find(e=>!u[e]):!!u[n]),getGatedPermission:e=>!c.hasCompleted||c.hasError?`hidden`:l.has(e)?c.data[e]?`soft-gate`:`hard-gate`:c.data[e]?`visible`:`hidden`,isLoaded:c.hasCompleted}};export{c as t}; 2//# sourceMappingURL=BKSSWxpx2.chunk.js.map
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.