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