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