import{L as s,d as t}from"./utils-lib.js?v=1761009159";import{c as i,af as o,r as e,q as a,e as l,m as c,T as n}from"./base-lib.js?v=1761009159";const r=i({name:"BtInput",props:{width:{type:[String,Number],default:"100%"},icon:{type:String,default:""},isActive:{type:Boolean,default:!1},...o},emits:["iconClick","focus","blur"],setup(i,{slots:o,emit:r,attrs:u}){const p=e(!1);a(()=>{i.isActive&&r("iconClick")});const d=s=>{r("focus",s),p.value=!0},f=s=>{r("blur",s),p.value=!1};return()=>l(n,c(i,u,{onFocus:d,onBlur:f,style:{width:i.width}}),{append:()=>l(s,{class:"cursor-pointer",onClick:()=>r("iconClick")},{default:()=>[l(t,{icon:i.icon},null)]}),...o})}});export{r as _};
