import{_ as S}from"./skeleton-loading-bvzoT9DQ.js";import{d as F,W as I,u as P,r as i,i as $,b as r,o,f as n,w as e,h as k,c as l,a5 as A,g as N,aq as D,Y as x,z as M,e as j,B as q,j as G,k as H}from"./index-DGnN4tUo.js";import{_ as K}from"./PageHeader-C0f79Hm5.js";import{_ as L}from"./Space-CL0I_Xfq.js";import{_ as R}from"./Alert-BZ_DHA4i.js";import{_ as T}from"./Form-BqQC0MxL.js";import{_ as W}from"./FormItem-C_vPvRD-.js";import"./Skeleton-vl1d4hpc.js";import"./use-houdini-DoGjazoX.js";import"./get-slot-Bk_rJcZu.js";import"./context-IddTiA87.js";const Y={class:"min-h-500px flex-col-stretch gap-16px overflow-hidden lt-sm:overflow-auto"},J={key:0},O=F({name:"settings_email-verify",__name:"index",setup(Q){const b=I(),{routerPushByKey:w}=P();i(!1);const p=i(!0),a=i({verifiedEmail:""}),B=async()=>{const{error:m,data:t}=await G("/settings/email-verify");m||(a.value=t)};return $(()=>{B().finally(()=>p.value=!1)}),(m,t)=>{const h=S,E=R,u=M,c=W,V=T,f=D,d=L,z=q,C=K;return o(),r("div",Y,[n(f,{bordered:!1,size:"small",class:"sm:flex-1-hidden card-wrapper"},{default:e(()=>[n(C,{title:"邮箱验证",onBack:t[0]||(t[0]=_=>k(w)("settings_profile"))},{default:e(()=>[p.value?(o(),l(h,{key:0})):(o(),r(A,{key:1},[n(d,{vertical:""},{default:e(()=>{var _;return[(_=a.value)!=null&&_.canVerify?(o(),l(f,{key:1,size:"small",title:"邮箱验证"},{default:e(()=>[n(V,{"label-align":"left","label-placement":k(b).isMobile?"top":"left","label-width":"100"},{default:e(()=>{var g,v;return[((v=(g=a.value)==null?void 0:g.verifiedEmail)==null?void 0:v.length)>0?(o(),l(c,{key:0,label:" 已绑定电子邮箱:"},{default:e(()=>{var s;return[n(u,{value:(s=a.value)==null?void 0:s.verifiedEmail,disabled:!0},null,8,["value"])]}),_:1})):x("",!0),n(c,null,{label:e(()=>{var s,y;return[((y=(s=a.value)==null?void 0:s.verifiedEmail)==null?void 0:y.length)>0?(o(),r("span",J,"新")):x("",!0),t[2]||(t[2]=j("span",null,"绑定电子邮箱",-1))]}),default:e(()=>[n(u)]),_:1})]}),_:1},8,["label-placement"])]),_:1})):(o(),l(E,{key:0,"show-icon":!1,type:"warning"},{default:e(()=>t[1]||(t[1]=[N("系统暂未开通绑定邮箱功能。")])),_:1}))]}),_:1}),n(d,{size:"small",class:"mt-4"},{default:e(()=>[n(z,{type:"info"},{default:e(()=>t[3]||(t[3]=[N("保存")])),_:1})]),_:1})],64))]),_:1})]),_:1})])}}}),ie=H(O,[["__scopeId","data-v-3e9e8c18"]]);export{ie as default};
