import{g as v}from"./primevue-CfIk0_DY.js";import{s as e}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 A,k as x,l as S,d as i,v as c,j as m}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 $={class:"md-form-grid"},N={class:"flex items-end md-col-full",style:{gap:"8px"}},V={class:"field",style:{flex:"1","min-width":"0"}},g={class:"field"},B={__name:"Secteur_Activite",props:["ndoc","embedded"],setup(o){const n={list:()=>`${e.lienApi}/Secteur_Activite/${e.db}`,getOne:t=>`${e.lienApi}/unSecteur_Activite/${e.db}/${t}`,add:()=>`${e.lienApi}/AjouterEtRenvoyerSecteur_Activite/${e.db}`,save:t=>`${e.lienApi}/enregistrerSecteur_Activite/${e.db}/${t}`,remove:t=>`${e.lienApi}/supprimerSecteur_Activite/${e.db}/${t}`},p={excelFileName:"Secteur activite",excelSheetName:"Secteur activite",documentNumberFields:["ndoc"],excludedColumns:["ndoc","IDSecteur_Activite"],columnWidths:{libelle:300}};return(t,d)=>{const s=v,a=f("maxlen-db");return A(),x(b,{"page-id":210,"tab-id":"secteurActivite","id-field":"IDSecteur_Activite",resource:n,grid:p,embedded:o.embedded,ndoc:o.ndoc,variant:"drawer","drawer-width":"640px",title:"Secteur d'activité","entity-label":"un secteur d'activité","empty-icon":"pi pi-briefcase","delete-message":"Voulez-vous vraiment supprimer ce secteur d'activité ?"},{form:S(({entete:l,modeModification:u})=>[i("div",$,[i("div",N,[c(_,{value:l.IDSecteur_Activite},null,8,["value"]),i("div",V,[d[0]||(d[0]=i("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),m(c(s,{size:"small",id:"inputFocus",modelValue:l.Libelle,"onUpdate:modelValue":r=>l.Libelle=r,disabled:!u,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[a,"secteur_activite.Libelle"]])])]),i("div",g,[d[1]||(d[1]=i("label",{for:"nomenclature",class:"block mb-1"},"Nomenclature",-1)),m(c(s,{size:"small",id:"nomenclature",modelValue:l.Nomenclature,"onUpdate:modelValue":r=>l.Nomenclature=r,disabled:!u,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[a,"secteur_activite.Nomenclature"]])])])]),_:1},8,["embedded","ndoc"])}}};export{B as default};
