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