import{b as g,d as F,j as c,O as w,r as t,o as E,E as k,w as s,f as n,u as i,a3 as _,a4 as p,p as C,t as D,cu as b,g as z,cv as K,at as N}from"./index-67a30bc6.js";import{i as P}from"./icon-99a136c4.js";const R=z(" \u5DE5\u4F5C\u7A7A\u95F4 - "),T={class:"title"},V=F({__name:"index",setup(A){const{FishIcon:d}=P.ionicons5,o=c(!1),a=c(null),e=c((()=>{const u=K();return u.length?u[0]:""})()||""),f=w(()=>(e.value=e.value.replace(/\s/g,""),e.value.length?e.value:"\u65B0\u9879\u76EE")),v=()=>{o.value=!0,N(()=>{a.value&&a.value.focus()})},l=()=>{o.value=!1};return(u,r)=>{const h=t("n-icon"),m=t("n-button"),x=t("n-text"),y=t("n-input"),B=t("n-space");return E(),k(B,null,{default:s(()=>[n(h,{size:"20",depth:3},{default:s(()=>[n(i(d))]),_:1}),n(x,{onClick:v},{default:s(()=>[R,_(n(m,{secondary:"",round:"",size:"tiny"},{default:s(()=>[C("span",T,D(i(f)),1)]),_:1},512),[[p,!o.value]])]),_:1}),_(n(y,{ref_key:"inputInstRef",ref:a,size:"small",type:"text",maxlength:"16","show-count":"",round:"",placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0",value:e.value,"onUpdate:value":r[0]||(r[0]=I=>e.value=I),valueModifiers:{trim:!0},onKeyup:b(l,["enter"]),onBlur:l},null,8,["value","onKeyup"]),[[p,o.value]])]),_:1})}}});var M=g(V,[["__scopeId","data-v-118681d7"]]);export{M as default};
