import{c as m,b as d,e as f,w as c,f as i,n,l as v,t as b,q as k}from"./index-OSKNspXo.js";import{_}from"./deenovaAvatarStoreComponent-CW76RUun.js";const V={__name:"equipmentItemComponent",props:{item:{type:Object},selected:{type:Object},selectedEquipment:{type:Object}},emits:["update:selected"],setup(t,{emit:r}){const a=t,u=r,s=m({get:()=>a.selected,set:function(e){u("update:selected",e)}}),o=m(()=>{let e="";switch(a.item.type_machine){case"ACCED_V3":e="(V3)";break;case"ACCED_V2":e="(V2)";break;default:e=""}return e});function p(){var e;s.value={...a.item},(e=a.selectedEquipment)==null||e.hidePopup()}return(e,y)=>{var l;return f(),d(k,{"active-class":"primary-selected",active:t.item.pk===((l=s.value)==null?void 0:l.pk),onClick:p,clickable:""},{default:c(()=>[i(n,{avatar:""},{default:c(()=>[i(_,{size:"2rem","url-avatar":t.item.avatar,equipement:t.item},null,8,["url-avatar","equipement"])]),_:1}),i(n,{style:{"font-size":"medium"}},{default:c(()=>[v(b(`${t.item.libelle} ${o.value}`),1)]),_:1})]),_:1},8,["active"])}}};export{V as _};
//# sourceMappingURL=equipmentItemComponent-C0ywyT2d.js.map
