const c=[{value:"linear",label:"Linéaire"},{value:"degressive",label:"Dégressif"}],u=[{value:"",label:"Tous les statuts"},{value:"active",label:"Actif"},{value:"sold",label:"Cédé"},{value:"scrapped",label:"Mis au rebut"}],d=[{value:"sale",label:"Cession"},{value:"scrap",label:"Mise au rebut"}],b=e=>e==="active"?"border-accent/20 bg-accent/10 text-accent":e==="sold"?"border-gold/30 bg-gold/10 text-gold":"border-danger/20 bg-danger/10 text-danger",g=e=>`${e.code} · ${e.label}`,v=(e,r,t="")=>{const a=t.trim().toLowerCase();return e.filter(s=>{const l=r.some(i=>s.code.startsWith(i)),o=s.is_movable!==!1,n=a?s.code.toLowerCase().includes(a)||s.label.toLowerCase().includes(a):!0;return l&&o&&n})},f=(e,r)=>{const t=Number(r||0);if(!t)return 0;const a=100/t;return e==="degressive"?Math.min(100,a*1.75):a};export{u as A,c as D,f as a,g as b,d as c,v as f,b as g};
