import{b7 as S,u as V,aS as B,aT as n,bf as i,a$ as r,N as c,a_ as C,b_ as p,b0 as m,ba as s,z as N,bo as A,bO as _,aY as v,d0 as D,r as k,c as $,b8 as T,aX as U}from"./index-xnhGKCfe.js";const E={key:0},M={key:1,class:"color-white"},j={class:"suffix password"},z=S({__name:"accountAndSecurity",emits:["clickItem"],setup(F,{emit:b}){const{t:l}=V(),x=b,u=k({username:void 0}),{verifyPhone:d,phone:w,verifyEmail:h}=N(),y=k("91"),g=$(()=>[{key:"username",icon:"phone",suffix:!0,props:{placeholder:l("t179"),type:"text",disabled:!0},rule:{message:"",validate:()=>!0}},{key:"password",icon:"lock",suffix:!0,props:{placeholder:l("withdrawDialogDesc2"),disabled:!0},onClick:()=>{o("password")},rule:{message:"",validate:()=>!0}}]);function o(a){a==="phone"&&d.value||x("clickItem",a)}return(a,e)=>{const f=A,I=C;return n(),B(T,{modelValue:u.value,"onUpdate:modelValue":e[2]||(e[2]=t=>u.value=t),configs:g.value,"hide-submit":!0},{usernameSuffix:i(()=>[r("div",{class:"suffix",onClick:e[0]||(e[0]=_(t=>o("phone"),["stop"]))},[s(d)?(n(),v("span",M,m(s(D)(s(w).slice(y.value.length))),1)):(n(),v("span",E,[e[3]||(e[3]=p("bound",-1)),c(f,{name:"arrow"})]))])]),emailSuffix:i(()=>[r("div",{class:"suffix",onClick:e[1]||(e[1]=_(t=>o("email"),["stop"]))},[p(m(s(h)?"Unbound":"bound"),1),c(f,{name:"arrow"})])]),passwordSuffix:i(()=>[r("div",j,[c(I,{name:"icon_enjoy_02",class:"rightArrow"})])]),_:1},8,["modelValue","configs"])}}}),P=U(z,[["__scopeId","data-v-2310cc41"]]);export{P as default};
