import{_ as O,d as b,U as v,m as C,y as S,u as h,p as B,G as T,a6 as w,r as l,c as D,o as c,a as t,w as s,M as g,f as A,h as M,O as N,l as u,t as p}from"./app-BOG5ezKh.js";import{D as P}from"./DollarCircleOutlined-BVlkTXjW.js";import{T as U}from"./TabletOutlined-Cqi5S_gu.js";import{S as j}from"./ScheduleOutlined-CZbo6De4.js";const E=b({components:{ScheduleOutlined:j,TabletOutlined:U,BarsOutlined:v,DollarCircleOutlined:P},setup(){const{permsArray:e,appType:n}=C(),a=S();h();const i=B([]);return T(()=>{const o=typeof a.meta.menuKey=="function"?a.meta.menuKey(a):a.meta.menuKey;i.value=[o.replace("-","_")]}),w(a,(o,y)=>{const d=typeof o.meta.menuKey=="function"?o.meta.menuKey(o):o.meta.menuKey;i.value=[d.replace("-","_")]}),{permsArray:e,selectedKeys:i,appType:n}}}),G={class:"setting-sidebar"};function R(e,n,a,i,o,y){const d=l("DollarCircleOutlined"),m=N,_=l("BarsOutlined"),f=l("ScheduleOutlined"),$=l("TabletOutlined"),K=g,k=l("perfect-scrollbar");return c(),D("div",G,[t(k,{options:{wheelSpeed:1,swipeEasing:!0,suppressScrollX:!0}},{default:s(()=>[t(K,{selectedKeys:e.selectedKeys,"onUpdate:selectedKeys":n[4]||(n[4]=r=>e.selectedKeys=r)},{default:s(()=>[e.permsArray.includes("basic_salaries_view")||e.permsArray.includes("admin")?(c(),A(m,{onClick:n[0]||(n[0]=r=>e.$router.push({name:"admin.hrm.basic_salaries.index"})),key:"basic_salaries"},{icon:s(()=>[t(d)]),default:s(()=>[u(" "+p(e.$t("menu.basic_salaries")),1)]),_:1})):M("v-if",!0),t(m,{onClick:n[1]||(n[1]=r=>e.$router.push({name:"admin.hrm.pre_payments.index"})),key:"pre_payments"},{icon:s(()=>[t(_)]),default:s(()=>[u(" "+p(e.$t("menu.pre_payments")),1)]),_:1}),t(m,{onClick:n[2]||(n[2]=r=>e.$router.push({name:"admin.hrm.payrolls.index"})),key:"payrolls"},{icon:s(()=>[t(f)]),default:s(()=>[u(" "+p(e.$t("menu.payrolls")),1)]),_:1}),t(m,{onClick:n[3]||(n[3]=r=>e.$router.push({name:"admin.hrm.increments_payments.index"})),key:"increments_promotions"},{icon:s(()=>[t($)]),default:s(()=>[u(" "+p(e.$t("menu.increments_promotions")),1)]),_:1})]),_:1},8,["selectedKeys"])]),_:1})])}const F=O(E,[["render",R],["__file","/Users/rajeshkumawat/sites/stockifly/resources/js/main/views/hrm/payrolls/PayrollSidebar.vue"]]);export{F as P};
