import{g as p}from"./primevue-CfIk0_DY.js";import{s as t}from"./index-BxIwIJfy.js";import{M as b}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as _}from"./NumeroChip-QCXXOqUM.js";import{i as f,b as v,k as x,l as $,d as i,v as l,j as g}from"./vue-core-Di3IuVqe.js";import"./cjs-helpers-psZwOBky.js";import"./vue-cal-DKMVGERa.js";import"./moment-BeHQNF8T.js";import"./usePagerDetail-BeqYPv-1.js";import"./DataGrid-CoMfrBJA.js";import"./useAgGridConfig-Dp3DkgaV.js";const h={class:"flex items-end",style:{gap:"8px","max-width":"600px"}},w={class:"field",style:{flex:"1","min-width":"0"}},j={__name:"StatutContrat",props:["ndoc","embedded"],setup(o){const r={list:()=>`${t.lienApi}/statut_contrats/${t.db}`,getOne:e=>`${t.lienApi}/unstatut_contrat/${t.db}/${e}`,add:()=>`${t.lienApi}/AjouterEtRenvoyerstatut_contrat/${t.db}`,save:e=>`${t.lienApi}/enregistrerStatut_contrat/${t.db}/${e}`,remove:e=>`${t.lienApi}/supprimerStatut_contrat/${t.db}/${e}`},s={excelFileName:"Statut contrat",excelSheetName:"Statut contrat",documentNumberFields:["ndoc"],excludedColumns:["ndoc"],columnWidths:{statut_id:100,Libelle:300}};return(e,d)=>{const n=p,c=f("maxlen-db");return v(),x(b,{"page-id":1421,"tab-id":"StatutContrat","id-field":"statut_id",resource:r,grid:s,embedded:o.embedded,ndoc:o.ndoc,variant:"drawer","drawer-width":"460px",title:"Statut contrat","entity-label":"un statut de contrat","empty-icon":"pi pi-file","delete-message":"Voulez-vous vraiment supprimer ce statut de contrat ?"},{form:$(({entete:a,modeModification:u})=>[i("div",h,[l(_,{value:a.statut_id},null,8,["value"]),i("div",w,[d[0]||(d[0]=i("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),g(l(n,{size:"small",id:"inputFocus",modelValue:a.Libelle,"onUpdate:modelValue":m=>a.Libelle=m,disabled:!u,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[c,"statut_contrat.Libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
