import{_ as S,x as O,b1 as b,a as v,z as A,u as C,r as g,E as w,G as B,e as d,o as i,g as T,c as a,w as t,i as m,t as p,f,J as h,p as M,M as E}from"./app-DGDivIsO.js";import{S as N}from"./ScheduleOutlined-CPLAH6Jp.js";import{T as H}from"./TabletOutlined-_Dgsj8rS.js";const z=O({components:{ScheduleOutlined:N,TabletOutlined:H,BarsOutlined:b},setup(){const{appSetting:e,user:s,permsArray:c,appModules:k,appType:y}=v(),o=A();C();const r=g([]);return w(()=>{const n=typeof o.meta.menuKey=="function"?o.meta.menuKey(o):o.meta.menuKey;r.value=[n.replace("-","_")]}),B(o,(n,_)=>{const u=typeof n.meta.menuKey=="function"?n.meta.menuKey(n):n.meta.menuKey;r.value=[u.replace("-","_")]}),{permsArray:c,selectedKeys:r,appType:y}}}),D={class:"setting-sidebar"};function G(e,s,c,k,y,o){const r=d("BarsOutlined"),n=M,_=d("ScheduleOutlined"),u=d("TabletOutlined"),K=E,$=d("perfect-scrollbar");return i(),T("div",D,[a($,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:t(()=>[a(K,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":s[3]||(s[3]=l=>e.selectedKeys=l)},{default:t(()=>[a(n,{onClick:s[0]||(s[0]=l=>e.$router.push({name:"admin.hrm.all-holidays.index"})),key:"all_holidays"},{icon:t(()=>[a(r)]),default:t(()=>[m(" "+p(e.$t("menu.all_holidays")),1)]),_:1}),e.permsArray.includes("holidays_create")||e.permsArray.includes("holidays_edit")||e.permsArray.includes("holidays_delete")||e.permsArray.includes("admin")?(i(),f(n,{onClick:s[1]||(s[1]=l=>e.$router.push({name:"admin.hrm.holidays.index"})),key:"holidays"},{icon:t(()=>[a(_)]),default:t(()=>[m(" "+p(e.$t("menu.holidays")),1)]),_:1})):h("",!0),e.permsArray.includes("mark_weekend_holiday")||e.permsArray.includes("admin")?(i(),f(n,{onClick:s[2]||(s[2]=l=>e.$router.push({name:"admin.hrm.weekends.index"})),key:"weekends"},{icon:t(()=>[a(u)]),default:t(()=>[m(" "+p(e.$t("menu.weekends")),1)]),_:1})):h("",!0)]),_:1},8,["selectedKeys"])]),_:1})])}const V=S(z,[["render",G]]);export{V as H};
