import r from"./Cr9ZZaT-.js";import{d as m,L as p,u as c,j as f,a as b,o as V,e as g,f as v,t as _,U as y}from"./JQJBiNWj.js";const k={class:"w-full"},M=["for"],B=m({__name:"InputKM",props:p({label:{},id:{},name:{default:()=>{}},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(d){const l=c(d,"modelValue"),t=f();function u(e){if(e.key!=="Backspace")return;const o=l.value,a=o==null?void 0:o.toString();(a&&a.length===0||a===null||a===void 0)&&(e.preventDefault(),l.value=null,y(()=>{var s,i;const n=(i=(s=t.value)==null?void 0:s.$el)==null?void 0:i.querySelector("input");n&&(n.value="")}))}return(e,o)=>{const a=r;return V(),b("div",k,[g("label",{for:e.id},_(e.label),9,M),v(a,{id:e.id,ref_key:"inputRef",ref:t,modelValue:l.value,"onUpdate:modelValue":o[0]||(o[0]=n=>l.value=n),name:e.name,placeholder:"000,000","min-fraction-digits":3,"max-fraction-digits":3,disabled:e.disabled,class:"w-full",onKeydown:u},null,8,["id","modelValue","name","disabled"])])}}}),w=Object.assign(B,{__name:"UiFormInputKM"});export{w as I};
