import{C as p}from"./ComboDynamique-BzWI4ISP.js";import{_ as i}from"./index-BxIwIJfy.js";import{a as o,o as d,n as f,b as v,c as C,v as _}from"./vue-core-Di3IuVqe.js";const b={class:"combo-compte-cellule"},V={__name:"ComboCompteCellule",props:{params:{type:Object,required:!0}},setup(n,{expose:u}){const l=n,a=o(l.params?.value||""),e=o(""),t=o(null),c=s=>{e.value=s?.value||"",e.value&&setTimeout(()=>l.params.stopEditing(),0)};return u({getValue(){return e.value||a.value},isCancelBeforeStart(){return!1},isCancelAfterEnd(){return!1}}),d(async()=>{await f(),t.value?.focus?.()}),(s,r)=>(v(),C("div",b,[_(p,{ref_key:"comboRef",ref:t,modelValue:e.value,"onUpdate:modelValue":r[0]||(r[0]=m=>e.value=m),table:"compte",size:"small",placeholder:a.value?`Garder : ${a.value}`:"Tapez code ou libellé...",onChange:c},null,8,["modelValue","placeholder"])]))}},k=i(V,[["__scopeId","data-v-305d065a"]]);export{k as C};
