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