import x from"./BiNVmQQE.js";import y from"./BAGyvCzg.js";import{u as B}from"./BoIRubSN.js";import{d as v,r as _,f as m,t as s,x as p,h as i,g as r,F as b,y as w,o,_ as S}from"./BxiWQxwE.js";const q={class:"departments departments__carousel"},I=v({__name:"index",props:{departments:{type:Object,required:!0},backgroundColor:{type:String,required:!1,default:"grey"},singleItemScroll:{type:Boolean,required:!1,default:!0}},setup(n){const f=n,a=_(null),l=_(null),{showNextButton:g,showPrevButton:k,scroll:c,toggleButtons:d}=B(a,l,f.singleItemScroll);return(N,e)=>{const u=x,C=y;return o(),m("article",q,[r(k)?(o(),s(u,{key:0,icon:"arrow-left",class:"controls controls__left",onClick:e[0]||(e[0]=t=>r(c)("previous"))})):p("",!0),i("div",{ref_key:"departmentsCardsWrapper",ref:a,class:"department__container"},[i("div",{ref_key:"departmentsCards",ref:l,class:"department__container--cards",onScroll:e[1]||(e[1]=(...t)=>r(d)&&r(d)(...t))},[(o(!0),m(b,null,w(n.departments,t=>(o(),s(C,{key:t.id,department:t,"background-color":n.backgroundColor},null,8,["department","background-color"]))),128))],544)],512),r(g)?(o(),s(u,{key:1,icon:"arrow-right",class:"controls controls__right",onClick:e[2]||(e[2]=t=>r(c)("next"))})):p("",!0)])}}}),h=S(I,[["__scopeId","data-v-393193e4"]]);export{h as default};
