const s=/^[1-7][0-9]{0,19}$/,t=[{value:"",label:"Toutes les classes"},{value:"1",label:"Classe 1"},{value:"2",label:"Classe 2"},{value:"3",label:"Classe 3"},{value:"4",label:"Classe 4"},{value:"5",label:"Classe 5"},{value:"6",label:"Classe 6"},{value:"7",label:"Classe 7"}],b=[{value:"",label:"Tous les types"},{value:"bilan",label:"Bilan"},{value:"gestion",label:"Gestion"}],r=[{value:"asset",label:"Actif"},{value:"liability",label:"Passif"},{value:"expense",label:"Charge"},{value:"revenue",label:"Produit"},{value:"treasury",label:"Trésorerie"}],o=[{value:"debit",label:"Débiteur"},{value:"credit",label:"Créditeur"}],C=[{value:"client",label:"Client"},{value:"supplier",label:"Fournisseur"}],d=[{key:"code",label:"Code"},{key:"label",label:"Libellé"},{key:"type",label:"Type"},{key:"parent_code",label:"Code parent"}],l={1:{shortLabel:"Classe 1",longLabel:"Capitaux, provisions et dettes financières",codeClassName:"text-blue-700",badgeClassName:"border-blue-200 bg-blue-50 text-blue-700"},2:{shortLabel:"Classe 2",longLabel:"Immobilisations",codeClassName:"text-violet-700",badgeClassName:"border-violet-200 bg-violet-50 text-violet-700"},3:{shortLabel:"Classe 3",longLabel:"Stocks et en-cours",codeClassName:"text-amber-700",badgeClassName:"border-amber-200 bg-amber-50 text-amber-700"},4:{shortLabel:"Classe 4",longLabel:"Tiers",codeClassName:"text-emerald-700",badgeClassName:"border-emerald-200 bg-emerald-50 text-emerald-700"},5:{shortLabel:"Classe 5",longLabel:"Trésorerie",codeClassName:"text-cyan-700",badgeClassName:"border-cyan-200 bg-cyan-50 text-cyan-700"},6:{shortLabel:"Classe 6",longLabel:"Charges",codeClassName:"text-rose-700",badgeClassName:"border-rose-200 bg-rose-50 text-rose-700"},7:{shortLabel:"Classe 7",longLabel:"Produits",codeClassName:"text-emerald-800",badgeClassName:"border-emerald-300 bg-emerald-100 text-emerald-800"}},n=a=>{const e=String(a||"").trim().charAt(0);return{classCode:e,...l[e]||{shortLabel:"Classe",longLabel:"Classe SCF non détectée",codeClassName:"text-text",badgeClassName:"border-border bg-surface2 text-text"}}};export{t as A,o as B,r as F,d as I,s as S,C as T,b as a,n as g};
