PageSourceSearch

https://wildearth.tv/build/assets/useStaffSidebar-B6HulAMj.js

js wildearth.tv collected 2026-09-24 09:21:21 UTC 1,442 bytes, 1 lines download raw bytes

1import{u as f}from"./app-CgPjWXEI.js";import{l as t,q as i}from"./icons-0dJroYbd.js";var p=(n=>(n.ADMIN="admin",n.MODERATOR="moderator",n.EMPLOYEE="employee",n.COMPLIMENTARY="complimentary",n.CONTENT="content",n.ANALYTICS="analytics",n))(p||{});const v="none";function C(){return[{value:v,label:"User"},{value:"admin",label:"Admin"},{value:"moderator",label:"Moderator"},{value:"employee",label:"Employee"},{value:"complimentary",label:"Complimentary"},{value:"content",label:"Content"},{value:"analytics",label:"Analytics"}]}function A(){return["admin","moderator","content"]}function P(n){return n!=null&&A().includes(n)}function y(){return["admin","content"]}function T(n){return n!=null&&y().includes(n)}function g(){return["admin","analytics"]}function E(n){return n!=null&&g().includes(n)}function b(){return["admin","content"]}function S(n){return n!=null&&b().includes(n)}const r="staff_sidebar_expanded",a=i(typeof localStorage>"u"||localStorage.getItem(r)!=="false"),O=i(!1);function D(){const n=f(),o=t(()=>{var e,s,u;return(u=(s=(e=n.props.auth)==null?void 0:e.user)==null?void 0:s.role)==null?void 0:u.role}),l=t(()=>S(o.value)||E(o.value)),c=t(()=>a.value?"13rem":"3.25rem"),d=t(()=>l.value?{"--staff-sidebar-width":c.value}:{});function m(e){a.value=e,localStorage.setItem(r,e.toString())}return{isStaff:l,expanded:a,width:c,layoutStyle:d,setExpanded:m,isDrawerOpen:O}}export{v as N,p as U,P as a,T as b,S as c,C as g,D 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.