import{g as b,K as _,H as V}from"./primevue-CfIk0_DY.js";import{s as d}from"./index-BxIwIJfy.js";import{M as x}from"./MasterDetailReferentiel-c0KTUzyB.js";import{N as g}from"./NumeroChip-QCXXOqUM.js";import{I as m}from"./InfoBulle-R_p1ZfIR.js";import{b as v,k as $,l as h,d as e,v as t}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 U={class:"md-form-grid"},P={class:"flex items-end md-col-full",style:{gap:"8px"}},w={class:"field",style:{flex:"1","min-width":"0"}},C={class:"field md-col-full"},y={class:"field"},N={class:"flex items-center mb-1",style:{gap:"6px"}},A={class:"field flex items-center gap-6 md-col-full"},k={class:"flex items-center gap-2"},I={class:"flex items-center gap-2"},T={__name:"Pipeline",props:["ndoc","embedded"],setup(n){const u={list:()=>`${d.lienApi}/pipeline_opportunite/${d.db}`,getOne:s=>`${d.lienApi}/un_pipeline_opportunite/${d.db}/${s}`,add:()=>`${d.lienApi}/AjouterEtRenvoyerpipeline_opportunite/${d.db}`,save:s=>`${d.lienApi}/enregistrerPipeline_opportunite/${d.db}/${s}`,remove:s=>`${d.lienApi}/supprimerPipeline_opportunite/${d.db}/${s}`},c={excelFileName:"Pipelines",excelSheetName:"Pipelines",documentNumberFields:["ndoc"],excludedColumns:["ndoc","id_pipeline"],columnWidths:{Libelle:250,Commentaire:350,ordre:100,actif:80,defaut:100}};return(s,i)=>{const p=b,f=_,r=V;return v(),$(x,{"page-id":311,"tab-id":"Pipeline","id-field":"id_pipeline",resource:u,grid:c,embedded:n.embedded,ndoc:n.ndoc,variant:"drawer","drawer-width":"720px",title:"Pipeline","entity-label":"un pipeline","empty-icon":"pi pi-sitemap","delete-message":"Voulez-vous vraiment supprimer ce pipeline ?"},{form:h(({entete:l,modeModification:a})=>[e("div",U,[e("div",P,[t(g,{value:l.id_pipeline},null,8,["value"]),e("div",w,[i[0]||(i[0]=e("label",{for:"inputFocus",class:"block mb-1"},"Libellé",-1)),t(p,{size:"small",id:"inputFocus",modelValue:l.Libelle,"onUpdate:modelValue":o=>l.Libelle=o,class:"w-full",disabled:!a,maxlength:"100"},null,8,["modelValue","onUpdate:modelValue","disabled"])])]),e("div",C,[i[1]||(i[1]=e("label",{for:"commentaire",class:"block mb-1"},"Commentaire",-1)),t(p,{size:"small",id:"commentaire",modelValue:l.Commentaire,"onUpdate:modelValue":o=>l.Commentaire=o,class:"w-full",disabled:!a,maxlength:"250"},null,8,["modelValue","onUpdate:modelValue","disabled"])]),e("div",y,[e("div",N,[i[2]||(i[2]=e("label",{for:"ordre"},"Ordre",-1)),t(m,{text:"Position d'affichage du pipeline dans les listes et sélecteurs (du plus petit au plus grand)."})]),t(f,{size:"small",id:"ordre",modelValue:l.ordre,"onUpdate:modelValue":o=>l.ordre=o,class:"w-full",disabled:!a,min:0,showButtons:""},null,8,["modelValue","onUpdate:modelValue","disabled"])]),e("div",A,[e("div",k,[t(r,{modelValue:l.actif,"onUpdate:modelValue":o=>l.actif=o,binary:!0,disabled:!a,inputId:"actif"},null,8,["modelValue","onUpdate:modelValue","disabled"]),i[3]||(i[3]=e("label",{for:"actif"},"Actif",-1))]),e("div",I,[t(r,{modelValue:l.defaut,"onUpdate:modelValue":o=>l.defaut=o,binary:!0,disabled:!a,inputId:"defaut"},null,8,["modelValue","onUpdate:modelValue","disabled"]),i[4]||(i[4]=e("label",{for:"defaut"},"Pipeline par défaut",-1)),t(m,{text:"Pipeline <b>présélectionné</b> à la création d'une opportunité. Un seul pipeline par défaut à la fois."})])])])]),_:1},8,["embedded","ndoc"])}}};export{T as default};
