import{c as e,X as a,r as l,Y as s,v as t,x as o,e as u,B as p,z as d,y as r,Q as n,m as c,aS as i,T as f}from"./base-lib.js?v=1761009159";const m={class:"relative"},v=e({__name:"input-popover",props:a({placeholderTips:{default:""},offset:{default:0},modelValue:{default:""},customClass:{default:"!w-[200px]"}},{modelValue:{default:"",type:String||Number},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const a=l(!1),v=l(!0),b=s(e,"modelValue"),V=()=>{""===b.value&&(v.value=!1,a.value=!0)},_=()=>{a.value=!1,v.value=!0};return(e,l)=>{const s=i,v=f;return t(),o("div",m,[u(s,{visible:r(a),"onUpdate:visible":l[0]||(l[0]=e=>n(a)?a.value=e:null),class:"item",effect:"dark",content:e.placeholderTips,offset:e.offset,placement:"top-start"},{default:p(()=>l[2]||(l[2]=[d("span",{class:"w-[100px] absolute"},null,-1)])),_:1,__:[2]},8,["visible","content","offset"]),u(v,c({ref:"input",modelValue:b.value,"onUpdate:modelValue":l[1]||(l[1]=e=>b.value=e),class:e.customClass,placeholder:e.placeholderTips},e.$attrs,{onFocus:V,onBlur:_}),null,16,["modelValue","class","placeholder"])])}}});export{v as _};
