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-BYcXwl4U.js";import{i as d,c as p}from"./app-a6cKceqE.js";import{_ as h}from"./app-CQ-vNlMj.js";import{_ as k}from"./app-CignoBaV.js";import{_ as x}from"./app-Ufpj4Ll4.js";import{T as y}from"./app-CO4sV-Ic.js";import{D as V}from"./app-7GBSHA5C.js";import"./app-CrjU8lgK.js";import"./app-ysQ8KbGS.js";import"./app-yt37eDzA.js";import"./app-BG60hdvp.js";import"./app-BQ5ggxk2.js";import"./app-SxAW7vhf.js";import"./app-D3zbrzdO.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};
