1import{F as _}from"./BKM-7Sb9.js";import{U as I,ar as y,i,d as p,V as h,W as E,a0 as C,C as M,ck as A,E as x}from"./app-BAclpbpz.js";import{M as N}from"./DaYoQ8h8.js";import{b as B,a as F,e as D,w as T,c as k,z as v,g as b,h as u,j as e,s as d,l as O,A as g,C as l,q as a,H as o,B as r,a2 as U}from"./BI8qgwQJ.js";import"./BTqQ_sdn.js";const H={class:"_gaps_m"},L={class:"_gaps_m"},W={key:0,class:"_gaps_m"},G=B({__name:"email",setup(j){const t=I(),m=F(t.email),w=s=>{M("i/update",{receiveAnnouncementEmail:s})};async function S(){const s=await A();s.canceled||x("i/update-email",{password:s.result.password,token:s.result.token,email:m.value})}return D(()=>{T(m,()=>{S()})}),k(()=>[]),k(()=>[]),y(()=>({title:i.ts.email,icon:"ph-envelope ph-bold ph-lg"})),(s,n)=>{const f=v("SearchLabel"),c=v("SearchMarker");return u(),b(c,{path:"/settings/email",label:a(i).ts.email,keywords:["email"],icon:"ph-envelope ph-bold ph-lg",markerId:"3Tcxw4Fwl","data-in-app-search-marker-id":"3Tcxw4Fwl",children:["iIai9O65I","i6cC6oi0m"]},{default:e(()=>[d("div",H,[a(p).enableEmail?g("",!0):(u(),b(h,{key:0},{default:e(()=>[o(r(a(i).ts.emailNotSupported),1)]),_:1})),l(N,{disabled:!a(p).enableEmail},{default:e(()=>[d("div",L,[l(c,{keywords:["email","address"],markerId:"iIai9O65I","data-in-app-search-marker-id":"iIai9O65I"},{default:e(()=>[l(_,{first:""},{label:e(()=>[l(f,null,{default:e(()=>[o(r(a(i).ts.emailAddress),1)]),_:1})]),default:e(()=>[l(E,{modelValue:m.value,"onUpdate:modelValue":n[0]||(n[0]=V=>m.value=V),type:"email",manualSave:""},U({prefix:e(()=>[n[1]||(n[1]=d("i",{class:"ph-envelope ph-bold ph-lg"},null,-1))]),_:2},[a(t).email&&!a(t).emailVerified?{name:"caption",fn:e(()=>[o(r(a(i).ts.verificationEmailSent),1)]),key:"0"}:m.value===a(t).email&&a(t).emailVerified?{name:"caption",fn:e(()=>[n[2]||(n[2]=d("i",{class:"ph-check ph-bold ph-lg",style:{color:"var(--MI_THEME-success)"}},null,-1)),o(" "+r(a(i).ts.emailVerified),1)]),key:"1"}:void 0]),1032,["modelValue"])]),_:1})]),_:1}),l(_,null,{default:e(()=>[l(c,{keywords:["announcement","email"],markerId:"i6cC6oi0m","data-in-app-search-marker-id":"i6cC6oi0m"},{default:e(()=>[l(C,{modelValue:a(t).receiveAnnouncementEmail,"onUpdate:modelValue":w},{label:e(()=>[l(f,null,{default:e(()=>[o(r(a(i).ts.receiveAnnouncementFromInstance),1)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})])]),_:1},8,["disabled"])]),a(p).enableEmail?g("",!0):(u(),O("div",W,[l(h,null,{default:e(()=>[o(r(a(i).ts.emailNotSupported),1)]),_:1})]))]),_:1},8,["label"])}}});export{G as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.