import{r as p,w as s,o as d,y as c,R as f,i as g,U as V,V as b,W as _}from"./index.b636aed2.js";const v={inheritAttrs:!1},y=Object.assign(v,{__name:"mobile-input",props:{modelValue:{default:"",required:!0,type:String}},emits:["update:modelValue"],setup(u,{emit:o}){const r=u,a=p("");async function n(t,l){if(t===l)return;if(t.trim()==="")return o("update:modelValue","");let e=V(t);t.substring(0,1)!="0"&&(e="0"+e);const i=11;e.length>i&&(e=e.substring(0,i)),o("update:modelValue",e),await b(()=>a.value=e)}function m(){a.value=_(r.modelValue)}return s(a,n),s(()=>r.modelValue,m,{immediate:!0}),(t,l)=>(d(),c(g,f({modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=e=>a.value=e),class:"input-with-padding-left","is-placeholder-right":!0,type:"tel"},t.$attrs),null,16,["modelValue"]))}});export{y as _};
