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