import{c as i,I as S,_ as C,x as K,a as A,z as w,u as T,r as M,E as z,G as P,e as l,o as p,g as U,w as s,f as c,i as f,t as y,J as v,p as j,M as B}from"./app-DNXD_-wA.js";import{U as E}from"./UserOutlined-BHt-V15Y.js";import{C as N}from"./ContainerOutlined-DxScFHEG.js";import{S as V}from"./SaveOutlined-Ba8-JL1v.js";var D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm87.5-334.7c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.5-131.1-144.2-131.1H378c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.5c4.4 0 8-3.6 8-8V561.2h88.7l74.6 159.2c1.3 2.8 4.1 4.6 7.2 4.6h62a7.9 7.9 0 007.1-11.5l-80.6-164.2zM522 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.5 0 46.9-29.8 72.5-82.8 72.5z"}}]},name:"trademark",theme:"outlined"};function h(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),a.forEach(function(o){I(e,o,t[o])})}return e}function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var g=function(n,t){var a=h({},n,t.attrs);return i(S,h({},a,{icon:D}),null)};g.displayName="TrademarkOutlined";g.inheritAttrs=!1;const G=K({components:{UserOutlined:E,ContainerOutlined:N,SaveOutlined:V,TrademarkOutlined:g},setup(){const{appSetting:e,user:n,permsArray:t,appModules:a,appType:o}=A(),u=w();T();const m=M([]);return z(()=>{const r=typeof u.meta.menuKey=="function"?u.meta.menuKey(u):u.meta.menuKey;m.value=[r.replace("-","_")]}),P(u,(r,_)=>{const O=typeof r.meta.menuKey=="function"?r.meta.menuKey(r):r.meta.menuKey;m.value=[O.replace("-","_")]}),{permsArray:t,selectedKeys:m,appType:o}}}),H={class:"setting-sidebar"};function J(e,n,t,a,o,u){const m=l("UserOutlined"),r=j,_=l("ContainerOutlined"),O=l("SaveOutlined"),$=l("TrademarkOutlined"),b=B,k=l("perfect-scrollbar");return p(),U("div",H,[i(k,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:s(()=>[i(b,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[4]||(n[4]=d=>e.selectedKeys=d)},{default:s(()=>[e.permsArray.includes("users_view")||e.permsArray.includes("admin")?(p(),c(r,{key:"staff",onClick:n[0]||(n[0]=d=>e.$router.push({name:"admin.hrm.staffs.index"}))},{icon:s(()=>[i(m)]),default:s(()=>[f(" "+y(e.$t("menu.staff_members")),1)]),_:1})):v("",!0),e.permsArray.includes("departments_view")||e.permsArray.includes("admin")?(p(),c(r,{key:"departments",onClick:n[1]||(n[1]=d=>e.$router.push({name:"admin.hrm.departments.index"}))},{icon:s(()=>[i(_)]),default:s(()=>[f(" "+y(e.$t("menu.departments")),1)]),_:1})):v("",!0),e.permsArray.includes("designations_view")||e.permsArray.includes("admin")?(p(),c(r,{key:"designations",onClick:n[2]||(n[2]=d=>e.$router.push({name:"admin.hrm.designations.index"}))},{icon:s(()=>[i(O)]),default:s(()=>[f(" "+y(e.$t("menu.designations")),1)]),_:1})):v("",!0),e.permsArray.includes("shifts_view")||e.permsArray.includes("admin")?(p(),c(r,{key:"shifts",onClick:n[3]||(n[3]=d=>e.$router.push({name:"admin.hrm.shifts.index"}))},{icon:s(()=>[i($)]),default:s(()=>[f(" "+y(e.$t("menu.shifts")),1)]),_:1})):v("",!0)]),_:1},8,["selectedKeys"])]),_:1})])}const L=C(G,[["render",J]]);export{L as S};
