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