import{b7 as f,u as p,r as d,z as k,aC as _,aS as v,aT as b,b8 as N}from"./index-xnhGKCfe.js";const w=f({__name:"info",emits:["close"],setup(V,{emit:t}){const{t:e}=p(),{userInfo:o,newNickName:l,setNickName:i}=k(),c=t,a=d({nickname:o.value.nickName}),u=_([{key:"nickname",label:e("t200"),props:{placeholder:e("t1338"),type:"text"},rule:{message:e("t1339"),validate:s=>/^[\u4e00-\u9fa5a-zA-Z0-9_]{2,14}$/.test(s)}}]);async function m(){l.value=a.value.nickname,await i(),c("close")}return(s,n)=>(b(),v(N,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=r=>a.value=r),configs:u.value,onSubmit:m},null,8,["modelValue","configs"]))}});export{w as _};
