1import{h as g,i as o}from"./app-DB9w-SuH.js";function A(){const e=g(),n=o(()=>{var r;return((r=e.props.auth)==null?void 0:r.user)||null}),t=o(()=>{var r;return((r=n.value)==null?void 0:r.type)||null}),u=o(()=>Array.isArray(e.props.userRoles)&&e.props.userRoles.length>0?e.props.userRoles:t.value?[t.value]:[]),s=r=>u.value.includes(r),c=o(()=>s("admin")),i=o(()=>s("director")),p=o(()=>s("actor")),a=o(()=>s("owner_studio")),l=o(()=>s("owner_photographer")),h=o(()=>s("owner_workshop")),d=o(()=>s("owner_agency"));return{user:n,userType:t,userRoles:u,hasRole:s,isAdmin:c,isDirector:i,isAgency:d,isActor:p,isStudio:a,isPhotographer:l,isWorkshop:h}}export{A 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.