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-SC54XQDl.js";import{i as d,c as p}from"./app-Ba7ZqSpq.js";import{_ as h}from"./app-DFulsyXy.js";import{_ as k}from"./app-DWUwCFNm.js";import{_ as x}from"./app-CVQkwzlf.js";import{T as y}from"./app-C28obFWS.js";import{D as V}from"./app-ZeVDYyDS.js";import"./app-CNHjdV6U.js";import"./app-DnXuoh8P.js";import"./app-CkINxBL9.js";import"./app-PPG0ZS4d.js";import"./app--Lj8zATS.js";import"./app-Ch8j4za4.js";import"./app-C2mBgI5Z.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};
