import{bk as _,bs as h,m as g,o as v,w,bn as y,af as o,at as r,ah as s,d as a,V as d,am as Q,ag as c,aj as k,u,F as B,aq as C,bt as R,bu as x,bv as T}from"./index.14cbc3e2.js";import{Q as m}from"./QToolbar.5456f6d3.js";import{Q as V,a as G}from"./QHeader.9c29375c.js";import{Q as H}from"./QTabs.3ddc1eba.js";import"./rtl.87fd3dfc.js";const L={at:[{icon:"las la-tasks",label:"Etats",description:`
          R\xE9capitulatif du jour des pointages
          `,to:"/apps/at/scope/collections/controls"},{icon:"las la-clock",label:"Pointage",description:"Historique des pointages ",to:"/apps/at/scope/collections/controls"},{icon:"las la-calendar-alt",label:"Planning & Calendrier ",description:`
          Emploi du temps de gestion de pr\xE9sences
          `,to:"/apps/at/scope/collections/planning"},{icon:"las la-file",label:"Rapports",description:"Rapport d\xE9tail\xE9s des temps de travail + Paie",to:"/apps/at/scope/collections/planning"},{icon:"las la-history",label:"Grilles horaires",description:"Configuration des grilles horaires ",to:"/apps/at/scope/collections/timetables"},{icon:"las la-city",label:"D\xE9partements ",description:"Les d\xE9partements ou serivces (GRH)",to:"/apps/at/scope/collections/departments"},{icon:"las la-user-friends",label:"Utilisateurs ",description:"Utilisateurs / Employ\xE9s du process de pointage et d'administration (GRH)",to:"/apps/at/scope/collections/employees"},{icon:"las la-tag",label:"Code fonction ",description:"Gestion des attributs d'absence ou d'actions sp\xE9cifiques",to:"/apps/at/scope/collections/function_codes"},{icon:"las la-file-alt",label:"Mod\xE8les ",description:"Composition de mod\xE8le pour planning .",to:"/apps/at/scope/collections/timesheets_models"},{icon:"las la-percent",label:"Classes de paie",description:"Gestion des taux horaires",to:"/apps/at/scope/collections/rate_classes"}]},E={key:0,class:"text-capitalize"},P={key:1},N={__name:"atLayout",setup(q){_();const i=h(),t=g({showBar:!1,tab:0});v(()=>{p()}),w(()=>i.path,n=>{p()});function p(){var n=i.path,l=n.match(/(scope|scope\/)$/);l?t.showBar=!1:t.showBar=!0}return(n,l)=>{const b=y("router-view");return o(),r(T,{view:"lHr lpr Lfr"},{default:s(()=>[a(V,null,{default:s(()=>[a(m,{class:"bg-white text-black"},{default:s(()=>[a(d,{flat:"",round:"",dense:"",icon:"mdi-menu"}),a(Q,{class:"text-bold"},{default:s(()=>{var e;return[t.showBar?(o(),c("span",E,k((e=u(i).params)==null?void 0:e.model),1)):(o(),c("span",P," Tableau de bord "))]}),_:1}),a(d,{flat:"",round:"",dense:"",icon:"more_vert"})]),_:1}),t.showBar?(o(),r(m,{key:0},{default:s(()=>[a(H,{"active-class":"bg-secondary ","indicator-color":"secondary",modelValue:t.tab,"onUpdate:modelValue":l[0]||(l[0]=e=>t.tab=e),center:"",class:"fit"},{default:s(()=>[(o(!0),c(B,null,C(u(L).at,(e,f)=>(o(),r(G,{icon:e.icon,name:f,to:e.to,label:e.label},null,8,["icon","name","to","label"]))),256))]),_:1},8,["modelValue"])]),_:1})):R("",!0)]),_:1}),a(x,null,{default:s(()=>[a(b)]),_:1})]),_:1})}}};export{N as default};
