import{s as p}from"./app-ysQ8KbGS.js";import{r as t,o as f,c as m,u as v}from"./app-BYcXwl4U.js";const d={__name:"TInputText",props:["size","value"],setup(r,{expose:n}){const e=r,l=t();typeof e.size=="number"?l.value=e.size.toString():typeof e.size=="string"&&e.size.match(/^\d+$/)&&(l.value=e.size);const u=t();n({focus(){u.value.$el.focus()},get value(){return u.value.modelValue},set value(s){o.value=s}});const o=t("");return e.value!=null&&(o.value=e.value),(s,a)=>(f(),m(v(p),{ref_key:"rootRef",ref:u,pt:{root:{size:l.value}},modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=i=>o.value=i)},null,8,["pt","modelValue"]))}};export{d as _};
