PageSourceSearch

https://buicha.social/vite/CdJP1sOk.js

js buicha.social collected 2026-09-25 21:57:04 UTC 3,894 bytes, 1 lines download raw bytes

1import{F as N}from"./Cw4UJ9Tz.js";import{R as F,ao as h,i as t,d as S,S as x,T as U,W as d,C as I,c5 as R,E as B}from"./app-B3k0Lwm3.js";import{M as D}from"./DwNs1yEH.js";import{b as P,a as r,w as T,e as O,c as b,z as C,g,h as E,j as e,s as p,A as Y,C as i,q as a,H as s,B as u,a0 as H}from"./Co3cvlEU.js";import"./BTqQ_sdn.js";const L={class:"_gaps_m"},W={class:"_gaps_m"},j={class:"_gaps_s"},X=P({__name:"email",setup(z){const o=F(),c=r(o.email),M=m=>{I("i/update",{receiveAnnouncementEmail:m})};async function q(){const m=await R();m.canceled||B("i/update-email",{password:m.result.password,token:m.result.token,email:c.value})}const f=r(o.emailNotificationTypes.includes("mention")),_=r(o.emailNotificationTypes.includes("reply")),v=r(o.emailNotificationTypes.includes("quote")),V=r(o.emailNotificationTypes.includes("follow")),k=r(o.emailNotificationTypes.includes("receiveFollowRequest")),A=()=>{I("i/update",{emailNotificationTypes:[f.value?"mention":null,_.value?"reply":null,v.value?"quote":null,V.value?"follow":null,k.value?"receiveFollowRequest":null].filter(m=>m!=null)})};return T([f,_,v,V,k],()=>{A()}),O(()=>{T(c,()=>{q()})}),b(()=>[]),b(()=>[]),h(()=>({title:t.ts.email,icon:"ti ti-mail"})),(m,l)=>{const w=C("SearchLabel"),y=C("SearchMarker");return E(),g(y,{path:"/settings/email",label:a(t).ts.email,keywords:["email"],icon:"ti ti-mail",markerId:"3Tcxw4Fwl","data-in-app-search-marker-id":"3Tcxw4Fwl",children:["iIai9O65I","i6cC6oi0m","C1YTinP11"]},{default:e(()=>[p("div",L,[a(S).enableEmail?Y("",!0):(E(),g(x,{key:0},{default:e(()=>[s(u(a(t).ts.emailNotSupported),1)]),_:1})),i(D,{disabled:!a(S).enableEmail},{default:e(()=>[p("div",W,[i(y,{keywords:["email","address"],markerId:"iIai9O65I","data-in-app-search-marker-id":"iIai9O65I"},{default:e(()=>[i(N,{first:""},{label:e(()=>[i(w,null,{default:e(()=>[s(u(a(t).ts.emailAddress),1)]),_:1})]),default:e(()=>[i(U,{modelValue:c.value,"onUpdate:modelValue":l[0]||(l[0]=n=>c.value=n),type:"email",manualSave:""},H({prefix:e(()=>[l[6]||(l[6]=p("i",{class:"ti ti-mail"},null,-1))]),_:2},[a(o).email&&!a(o).emailVerified?{name:"caption",fn:e(()=>[s(u(a(t).ts.verificationEmailSent),1)]),key:"0"}:c.value===a(o).email&&a(o).emailVerified?{name:"caption",fn:e(()=>[l[7]||(l[7]=p("i",{class:"ti ti-check",style:{color:"var(--MI_THEME-success)"}},null,-1)),s(" "+u(a(t).ts.emailVerified),1)]),key:"1"}:void 0]),1032,["modelValue"])]),_:1})]),_:1}),i(N,null,{default:e(()=>[i(y,{keywords:["announcement","email"],markerId:"i6cC6oi0m","data-in-app-search-marker-id":"i6cC6oi0m"},{default:e(()=>[i(d,{modelValue:a(o).receiveAnnouncementEmail,"onUpdate:modelValue":M},{label:e(()=>[i(w,null,{default:e(()=>[s(u(a(t).ts.receiveAnnouncementFromInstance),1)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),i(y,{keywords:["notification","email"],markerId:"C1YTinP11","data-in-app-search-marker-id":"C1YTinP11"},{default:e(()=>[i(N,null,{label:e(()=>[i(w,null,{default:e(()=>[s(u(a(t).ts.emailNotification),1)]),_:1})]),default:e(()=>[p("div",j,[i(d,{modelValue:f.value,"onUpdate:modelValue":l[1]||(l[1]=n=>f.value=n)},{default:e(()=>[s(u(a(t).ts._notification._types.mention),1)]),_:1},8,["modelValue"]),i(d,{modelValue:_.value,"onUpdate:modelValue":l[2]||(l[2]=n=>_.value=n)},{default:e(()=>[s(u(a(t).ts._notification._types.reply),1)]),_:1},8,["modelValue"]),i(d,{modelValue:v.value,"onUpdate:modelValue":l[3]||(l[3]=n=>v.value=n)},{default:e(()=>[s(u(a(t).ts._notification._types.quote),1)]),_:1},8,["modelValue"]),i(d,{modelValue:V.value,"onUpdate:modelValue":l[4]||(l[4]=n=>V.value=n)},{default:e(()=>[s(u(a(t).ts._notification._types.follow),1)]),_:1},8,["modelValue"]),i(d,{modelValue:k.value,"onUpdate:modelValue":l[5]||(l[5]=n=>k.value=n)},{default:e(()=>[s(u(a(t).ts._notification._types.receiveFollowRequest),1)]),_:1},8,["modelValue"])])]),_:1})]),_:1})])]),_:1},8,["disabled"])])]),_:1},8,["label"])}}});export{X 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.