import{k as e,r as l,a9 as t,w as u,O as a,F as p,s as n}from"./base-lib.js?v=20260328163632";import{i as s,j as d,b as r,h as o}from"./naive-ui.js?v=20260328163632";const i=e({name:"BtInput",props:{modelValue:{type:[String,Number],default:""},width:{type:[String,Number],default:"100%"},textType:{type:String,default:""},prependText:{type:String,default:""},...s},emits:["update:modelValue","focus","blur","input","keyup","change"],setup(e,{slots:s,emit:i,attrs:m}){const f=l(e.modelValue),{textType:c}=t(e);u((()=>e.modelValue),(e=>{f.value=e}));const v=l(!1),y=e=>{i("focus",e),v.value=!0},x=e=>{i("blur",e),v.value=!1},b=e=>{i("update:modelValue",e)},g=e=>i("keyup",e);return()=>a(o,null,{default:()=>[s.prepend||e.prependText?(null==s?void 0:s.prepend)?s.prepend():a(d,{class:"flex items-center"},{default:()=>[e.prependText]}):a(p,null,null),a(r,n(e,m,{value:f.value,onInput:b,onFocus:y,onBlur:x,onKeyup:g,style:{width:e.width}}),null),s.append||c.value?(null==s?void 0:s.append)?s.append():a(d,{class:"flex items-center"},{default:()=>[c.value]}):a(p,null,null)]})}});export{i as B};
