import{c as e,W as l,r as s,X as a,q as t,v as u,e as o,A as r,y as i,x as p,P as d,m as n,aQ as c,S as f}from"./base-lib.js?v=1761009159";import{_ as m}from"./utils-lib.js?v=1761009159";const v={class:"relative"},b=m(e({__name:"input-popover",props:l({placeholderTips:{type:String,required:!0,default:""},offset:{type:Number,required:!1,default:0},modelValue:{type:String,required:!0,default:""},customClass:{type:String,required:!0,default:"!w-[200px]"}},{modelValue:{default:"",type:String||Number},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const l=s(!1),m=s(!0),b=a(e,"modelValue"),V=()=>{""===b.value&&(m.value=!1,l.value=!0)},g=()=>{l.value=!1,m.value=!0};return(e,s)=>{const a=c,m=f;return t(),u("div",v,[o(a,{visible:p(l),"onUpdate:visible":s[0]||(s[0]=e=>d(l)?l.value=e:null),class:"item",effect:"dark",content:e.placeholderTips,offset:e.offset,placement:"top-start"},{default:r((()=>s[2]||(s[2]=[i("span",{class:"w-[100px] absolute"},null,-1)]))),_:1},8,["visible","content","offset"]),o(m,n({ref:"input",modelValue:b.value,"onUpdate:modelValue":s[1]||(s[1]=e=>b.value=e),class:e.customClass,placeholder:e.placeholderTips},e.$attrs,{onFocus:V,onBlur:g}),null,16,["modelValue","class","placeholder"])])}}}),[["__file","/Users/chudong/project/linux-10/src/views/site/public/ssl-arrange/public/input-popover.vue"]]);export{b as I};
