import{k as e,ao as a,r as s,ap as l,V as o,W as t,O as u,a3 as r,s as p,j as d,Z as f,Y as i,N as n}from"./base-lib.js?v=20260328163632";import{b as c,F as m}from"./naive-ui.js?v=20260328163632";const v={class:"relative"},h=e({__name:"index",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=s(!1),h=s(!0),V=l(e,"modelValue"),b=()=>{""===V.value&&(h.value=!1,a.value=!0)},w=()=>{a.value=!1,h.value=!0};return(e,s)=>{const l=c,h=m;return o(),t("div",v,[u(h,{show:i(a),"onUpdate:show":s[1]||(s[1]=e=>n(a)?a.value=e:null),class:"item popper-dark",offset:e.offset,placement:"top-start"},{trigger:r((()=>[u(l,p({ref:"input",value:V.value,"onUpdate:value":s[0]||(s[0]=e=>V.value=e),class:e.customClass,placeholder:e.placeholderTips},e.$attrs,{onFocus:b,onBlur:w}),null,16,["value","class","placeholder"])])),default:r((()=>[d(f(e.placeholderTips)+" ",1)])),_:1},8,["show","offset"])])}}});export{h as _};
