import{g as u}from"./primevue-CfIk0_DY.js";import{s as e}from"./index-BxIwIJfy.js";import{M as b}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as g}from"./NumeroChip-QCXXOqUM.js";import{i as _,b as f,k as v,l as x,d as r,v as p,j as $}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 O={class:"flex items-end",style:{gap:"8px","max-width":"600px"}},h={class:"field",style:{flex:"1","min-width":"0"}},j={__name:"OrigineOpportunite",props:["ndoc","embedded"],setup(t){const n={list:()=>`${e.lienApi}/opp_origine/${e.db}`,getOne:i=>`${e.lienApi}/unopp_origine/${e.db}/${i}`,add:()=>`${e.lienApi}/AjouterEtRenvoyeropp_origine/${e.db}`,save:i=>`${e.lienApi}/enregistrerOpp_origine/${e.db}/${i}`,remove:i=>`${e.lienApi}/supprimerOpp_origine/${e.db}/${i}`},d={excelFileName:"Origine opportunite",excelSheetName:"Origine opportunite",columnWidths:{Libelle:300}};return(i,l)=>{const s=u,a=_("maxlen-db");return f(),v(b,{"page-id":303,"tab-id":"OrigineOpportunite","id-field":"id_opp_origine",resource:n,grid:d,embedded:t.embedded,ndoc:t.ndoc,variant:"drawer","drawer-width":"460px",title:"Origine d'opportunité","entity-label":"une origine","empty-icon":"pi pi-compass","delete-message":"Voulez-vous vraiment supprimer cette origine ?"},{form:x(({entete:o,modeModification:m})=>[r("div",O,[p(g,{value:o.id_opp_origine},null,8,["value"]),r("div",h,[l[0]||(l[0]=r("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),$(p(s,{size:"small",id:"inputFocus",modelValue:o.Libelle,"onUpdate:modelValue":c=>o.Libelle=c,disabled:!m,class:"w-full"},null,8,["modelValue","onUpdate:modelValue","disabled"]),[[a,"opp_origine.Libelle"]])])])]),_:1},8,["embedded","ndoc"])}}};export{j as default};
