import{o as a,c as p,b as s,F as v,A as f,a as _,z as d,i as l,q as b,d as x,R as h,bc as g,r as m,e as k,bd as y}from"./vendor-BDR7yMJi.js";import{S as C}from"./index-BSaHX2oa.js";import $ from"./Saisieachats-cYNwgxGn.js";import S from"./Saisieventes-D4MAKWLr.js";import B from"./Saisieencaissements-DyLKCSDm.js";import w from"./SaisieReglements-C1ChGLft.js";import F from"./Saisiefrais-BeEWu0sX.js";import V from"./SaisieStandard-42q8EKHW.js";import"./ComboDynamique-DbhbUtR4.js";import"./SaisieAchatsLignes-efZ5KSut.js";import"./PiecesJointes-BVFc0aqb.js";import"./SelectCompte-05OnLt5y.js";import"./consultationEcriture-B-0c1nDo.js";import"./DataGrid-DbeHIyBR.js";import"./useAgGridConfig-DxO2r97K.js";import"./SaisieVentesLignes-CLxU_UtK.js";import"./SaisieencaissementsLignes-BmtV-X1V.js";import"./SaisieReglementsLignes-Cp_1Mb10.js";import"./SaisiefraisLignes-CyBKr5kW.js";const A={class:"flex flex-col h-full"},N={class:"flex items-center bg-white px-2 py-2 gap-3"},R={class:"flex flex-wrap gap-1"},z={class:"flex-1 overflow-auto"},oe={__name:"SaisieComptable",setup(D){const t=m(!1);y("enSaisie",t);const r=[{value:"achats",label:"Achats",icon:"pi pi-shopping-cart",component:$},{value:"ventes",label:"Ventes",icon:"pi pi-tag",component:S},{value:"encaissements",label:"Encaissements",icon:"pi pi-wallet",component:B},{value:"reglements",label:"Reglements",icon:"pi pi-credit-card",component:w},{value:"frais",label:"Frais",icon:"pi pi-receipt",component:F},{value:"divers",label:"Divers",icon:"pi pi-pencil",component:V}],o=m("achats"),u=k(()=>{const n=r.find(i=>i.value===o.value);return n?n.component:null});return(n,i)=>{const c=d;return a(),p("div",A,[s("div",N,[s("div",R,[(a(),p(v,null,f(r,e=>_(c,{key:e.value,label:e.label,icon:e.icon,text:o.value!==e.value,severity:o.value===e.value?"primary":"secondary",disabled:t.value&&o.value!==e.value,size:"small",onClick:E=>o.value=e.value},null,8,["label","icon","text","severity","disabled","onClick"])),64))]),t.value?x("",!0):(a(),l(c,{key:0,icon:"pi pi-times",label:"Fermer",text:"",onClick:i[0]||(i[0]=e=>b(C)("SaisieComptable"))}))]),s("div",z,[(a(),l(g,null,[(a(),l(h(u.value),{fermerParRetour:!0}))],1024))])])}}};export{oe as default};
