import{g as v,K as V,I as _}from"./primevue-CfIk0_DY.js";import{s as o}from"./index-BxIwIJfy.js";import{M as T}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as x}from"./NumeroChip-QCXXOqUM.js";import{i as $,b as N,k as g,l as w,d as e,v as d,j as n}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 A={class:"md-form-grid"},U={class:"flex items-end md-col-full",style:{gap:"8px"}},k={class:"field",style:{flex:"1","min-width":"0"}},D={class:"field"},F={class:"field"},h={class:"field"},z={class:"field md-col-full"},W={__name:"Transporteur",props:["ndoc","embedded"],setup(u){const p={list:()=>`${o.lienApi}/Transporteurs/${o.db}`,getOne:a=>`${o.lienApi}/unTransporteur/${o.db}/${a}`,add:()=>`${o.lienApi}/AjouterEtRenvoyerTransporteur/${o.db}`,save:a=>`${o.lienApi}/enregistrerTransporteur/${o.db}/${a}`,remove:a=>`${o.lienApi}/supprimerTransporteur/${o.db}/${a}`},c={excelFileName:"Transporteurs",excelSheetName:"Transporteurs",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDTransporteur"],columnWidths:{Nom:200,tel:150,Adresse:200,Montant:120}};return(a,s)=>{const m=v,b=V,f=_,i=$("maxlen-db");return N(),g(T,{"page-id":1420,"tab-id":"Transporteur","id-field":"IDTransporteur",resource:p,grid:c,embedded:u.embedded,ndoc:u.ndoc,variant:"drawer","drawer-width":"640px",title:"Transporteur","entity-label":"un transporteur","empty-icon":"pi pi-truck","delete-message":"Voulez-vous vraiment supprimer ce transporteur ?"},{form:w(({entete:l,modeModification:t})=>[e("div",A,[e("div",U,[d(x,{value:l.IDTransporteur},null,8,["value"]),e("div",k,[s[0]||(s[0]=e("label",{for:"inputFocus",class:"block mb-1"},"Nom",-1)),n(d(m,{size:"small",id:"inputFocus",modelValue:l.Nom,"onUpdate:modelValue":r=>l.Nom=r,disabled:!t,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[i,"transporteur.Nom"]])])]),e("div",D,[s[1]||(s[1]=e("label",{for:"tel",class:"block mb-1"},"Téléphone",-1)),n(d(m,{size:"small",id:"tel",modelValue:l.tel,"onUpdate:modelValue":r=>l.tel=r,disabled:!t,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[i,"transporteur.tel"]])]),e("div",F,[s[2]||(s[2]=e("label",{for:"montant",class:"block mb-1"},"Montant par personne",-1)),d(b,{size:"small",locale:"fr-FR",id:"montant",modelValue:l.Montant,"onUpdate:modelValue":r=>l.Montant=r,disabled:!t,mode:"decimal",minFractionDigits:2,maxFractionDigits:2,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),e("div",h,[s[3]||(s[3]=e("label",{for:"adresse",class:"block mb-1"},"Adresse",-1)),n(d(m,{size:"small",id:"adresse",modelValue:l.Adresse,"onUpdate:modelValue":r=>l.Adresse=r,disabled:!t,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[i,"transporteur.Adresse"]])]),e("div",z,[s[4]||(s[4]=e("label",{for:"observation",class:"block mb-1"},"Observation",-1)),n(d(f,{id:"observation",modelValue:l.Observation,"onUpdate:modelValue":r=>l.Observation=r,disabled:!t,rows:"3",class:"w-full",autoResize:""},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[i,"transporteur.Observation"]])])])]),_:1},8,["embedded","ndoc"])}}};export{W as default};
