import{o as i,c as _,w as c,u as e,f as n,h as a,d as u,e as f,a as s,b as l,g as o,t as r}from"./app-DA7OTM4Q.js";import{i as d,c as p}from"./app-BT68AfZ-.js";import{_ as h}from"./app-DokSVapq.js";import{_ as k}from"./app-CKSEN_Rg.js";import{_ as x}from"./app-DuUYZNNT.js";import{T as y}from"./app-up4gT9D9.js";import{D as V}from"./app-DNL2FXPk.js";import"./app-Zes_jb7S.js";import"./app-DSiZNBrr.js";import"./app-D29bbm9n.js";import"./app-Dxa5h-uG.js";import"./app-B_5dka6q.js";import"./app-BqY8p2gl.js";import"./app-CQwVTjAx.js";function g(){const{utils:m,Tea:t}=d(this);this.success=function(){m.successRefresh("已将激活邮件发送到你的邮箱中，请注意查收")}}const v={key:0},w=s("td",{class:"title"},"已绑定电子邮箱",-1),S={key:1},T=s("td",null,"等待绑定邮箱",-1),E={key:0,class:"comment"},B={key:1,class:"comment"},C={class:"red"},D={class:"title"},N={key:0},$={key:0,href:"/settings/profile",class:"link"},Q={__name:"index",setup(m){const t=p(new g);return(b,R)=>(i(),_(h,{action:"$",onSuccess:e(t).success},{default:c(()=>[e(t).canVerify?a("",!0):(i(),_(y,{key:0},{default:c(()=>[n("系统暂未开通绑定邮箱功能。")]),_:1})),u(s("div",null,[l(V,null,{default:c(()=>[s("tbody",null,[e(t).verifiedEmail.length>0?(i(),o("tr",v,[w,s("td",null,[s("span",null,r(e(t).verifiedEmail),1)])])):a("",!0),e(t).latestVerification!=null?(i(),o("tr",S,[T,s("td",null,[n(r(e(t).latestVerification.email)+" ",1),e(t).latestVerification.isSent?a("",!0):(i(),o("p",E,"系统正在发送激活链接到此邮箱中，请耐心等待。")),e(t).latestVerification.isSent?(i(),o("p",B,[s("span",C,"请在"+r(e(t).latestVerification.expiresTime)+"前点击邮件中的激活链接进行绑定。",1)])):a("",!0)])])):a("",!0),s("tr",null,[s("td",D,[e(t).verifiedEmail.length>0?(i(),o("span",N,"新")):a("",!0),n("绑定电子邮箱 *")]),s("td",null,[l(x,{name:"email",maxlength:"100",autofocus:"",class:"w-full"})])])])]),_:1}),l(k,null,{default:c(()=>[n("提交")]),_:1}),n("   "),e(t).verifiedEmail.length>0?(i(),o("a",$,"不修改")):a("",!0)],512),[[f,e(t).canVerify]])]),_:1},8,["onSuccess"]))}};export{Q as default};
