import{i as p,c as h}from"./app-a6cKceqE.js";import{_ as V}from"./app-CQ-vNlMj.js";import{_}from"./app-Ufpj4Ll4.js";import{_ as y}from"./app-CignoBaV.js";import{T as k}from"./app-CO4sV-Ic.js";import{W as b}from"./app-D7QVa3_6.js";import{D as d}from"./app-7GBSHA5C.js";import{_ as g}from"./app-DwtlHtUX.js";import{o as l,g as i,u as t,c as f,w as m,h as a,b as o,F as x,f as r,t as c,a as s}from"./app-BYcXwl4U.js";import"./app-ysQ8KbGS.js";import"./app-CrjU8lgK.js";import"./app-yt37eDzA.js";import"./app-BG60hdvp.js";import"./app-BQ5ggxk2.js";import"./app-SxAW7vhf.js";import"./app-D3zbrzdO.js";import"./app-BHl80pFw.js";function v(){p(this),this.success=this.$NotifyReloadSuccess("保存成功")}const E={key:0},R=s("td",{class:"title"},"联系手机号 *",-1),M=s("td",null,"已绑定手机号码",-1),w={key:0},S={key:0,href:"/settings/mobile-verify",class:"text-sm link"},$={key:1,class:"disabled"},q={key:0,href:"/settings/mobile-verify",class:"text-sm link"},N=s("p",{class:"comment"},"用于登录系统、找回密码等。",-1),T=s("td",{class:"title"},"常用电子邮箱",-1),B=s("p",{class:"comment"},"用于接收系统通知、账单提醒等。",-1),C={key:0},U=s("td",null,"已绑定电子邮箱",-1),j={key:0},D={key:0,href:"/settings/email-verify",class:"text-sm link"},F={key:1,class:"disabled"},I={key:0,href:"/settings/email-verify",class:"text-sm link"},W=s("p",{class:"comment"},"用于登录系统、找回密码等。",-1),A={key:1},z=s("td",null,"等待绑定邮箱",-1),G={key:0,href:"/settings/email-verify",class:"text-sm link"},H={key:0,class:"comment"},J={key:1,class:"comment"},K={class:"red"},L=s("td",{class:"title"},"用户姓名或者公司名称 *",-1),O=s("td",null,"接收即时消息",-1),P=s("p",{class:"comment"},"选中后，表示接收系统内相关即时消息通知（如WAF事件等）。",-1),pe={__name:"index",setup(Q){const e=h(new v);return(X,n)=>(l(),i(x,null,[t(e).user.isVerified?a("",!0):(l(),f(b,{key:0},{default:m(()=>[r("请耐心等待管理员审核。")]),_:1})),t(e).user.isVerified&&t(e).user.isRejected?(l(),f(k,{key:1,class:"mb-4",error:""},{default:m(()=>[r("注册信息被拒绝"),t(e).user.rejectReason.length>0?(l(),i("span",E,"原因："+c(t(e).user.rejectReason),1)):a("",!0),r("。 ")]),_:1})):a("",!0),o(V,{action:"$",onSuccess:t(e).success},{default:m(()=>[o(d,null,{default:m(()=>[s("tbody",null,[s("tr",null,[R,s("td",null,[o(_,{name:"mobile",maxlength:"11",placeholder:"手机号",modelValue:t(e).user.mobile,"onUpdate:modelValue":n[0]||(n[0]=u=>t(e).user.mobile=u),class:"w-full"},null,8,["modelValue"])])]),s("tr",null,[M,s("td",null,[t(e).user.verifiedMobile.length>0?(l(),i("span",w,[r(c(t(e).user.verifiedMobile)+"   ",1),t(e).mobileRequireVerification?(l(),i("a",S,"[修改]")):a("",!0)])):(l(),i("span",$,[r("没有设置     "),t(e).mobileRequireVerification?(l(),i("a",q,"[设置]")):a("",!0)])),N])])])]),_:1}),o(d,null,{default:m(()=>[s("tbody",null,[s("tr",null,[T,s("td",null,[o(_,{name:"email",maxlength:"100",placeholder:"常用电子邮箱",modelValue:t(e).user.email,"onUpdate:modelValue":n[1]||(n[1]=u=>t(e).user.email=u),class:"w-full"},null,8,["modelValue"]),B])]),t(e).user.verifiedEmail.length>0||t(e).latestEmailVerification==null?(l(),i("tr",C,[U,s("td",null,[t(e).user.verifiedEmail.length>0?(l(),i("span",j,[r(c(t(e).user.verifiedEmail)+"   ",1),t(e).emailRequireVerification?(l(),i("a",D,"[修改]")):a("",!0)])):(l(),i("span",F,[r("没有设置     "),t(e).emailRequireVerification?(l(),i("a",I,"[设置]")):a("",!0)])),W])])):a("",!0),t(e).latestEmailVerification!=null?(l(),i("tr",A,[z,s("td",null,[s("span",null,[r(c(t(e).latestEmailVerification.email)+"   ",1),t(e).emailRequireVerification?(l(),i("a",G,"[修改]")):a("",!0)]),t(e).latestEmailVerification.isSent?a("",!0):(l(),i("p",H,"系统正在发送绑定链接到此邮箱中，请耐心等待。")),t(e).latestEmailVerification.isSent?(l(),i("p",J,[s("span",K,"请在"+c(t(e).latestEmailVerification.expiresTime)+"前点击邮件中的激活链接进行绑定。",1)])):a("",!0)])])):a("",!0)])]),_:1}),o(d,null,{default:m(()=>[s("tbody",null,[s("tr",null,[L,s("td",null,[o(_,{name:"fullname",maxlength:"50",autofocus:"",modelValue:t(e).user.fullname,"onUpdate:modelValue":n[2]||(n[2]=u=>t(e).user.fullname=u),placeholder:"用户姓名或者公司名称",class:"w-full"},null,8,["modelValue"])])])])]),_:1}),o(d,null,{default:m(()=>[s("tbody",null,[s("tr",null,[O,s("td",null,[o(g,{name:"enableInstantMessage",modelValue:t(e).user.enableInstantMessage,"onUpdate:modelValue":n[3]||(n[3]=u=>t(e).user.enableInstantMessage=u)},null,8,["modelValue"]),P])])])]),_:1}),o(y)]),_:1},8,["onSuccess"])],64))}};export{pe as default};
