1import{g as m,c as n}from"./D1FcBL9p.js";function w(){const s=m(),t=n(()=>s.isLoggedIn),o=n(()=>s.userInfo),a=n(()=>s.getUserAvatar),i=n(()=>s.getUserNickname),c=n(()=>s.isTokenValid),u=n(()=>s.userType),h=n(()=>s.isEmployee),l=n(()=>s.isOrdinaryUser);return{isLoggedIn:t,userInfo:o,userAvatar:a,userNickname:i,isTokenValid:c,userType:u,isEmployee:h,isOrdinaryUser:l,login:async e=>await s.login(e),logout:async()=>await s.logout(),fetchUserInfo:async()=>await s.fetchUserInfo(),fetchUserType:async()=>await s.fetchUserType(),updateUserAvatar:async e=>await s.updateUserAvatar(e),updateUserNickname:async e=>await s.updateUserNickname(e),hasPermission:e=>s.hasPermission(e),hasRole:e=>s.hasRole(e),hasAnyPermission:e=>e.some(r=>s.hasPermission(r)),hasAllPermissions:e=>e.every(r=>s.hasPermission(r)),hasAnyRole:e=>e.some(r=>s.hasRole(r)),hasAllRoles:e=>e.every(r=>s.hasRole(r))}}export{w 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.