PageSourceSearch

https://eter9.com/vite/aGR-R3Ni.js

js eter9.com collected 2026-10-04 00:25:37 UTC 7,566 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["D7_4taml.js","D2O8tWz_.js","app-Cr5SLL7l.js","BX8RwoyW.js","cPPnkASS.css","ChslkyZR.css","B3ELAWKR.js","CMbx2Rdy.css","BukRsHJ4.js","Box48UwB.css"])))=>i.map(i=>d[i]);
2import{aa as q,i as t,ab as b,N as k,bR as U,af as H,b_ as h,M as y,g as J,K as W,a9 as G,E as A,G as B,L as K,ax as j,b6 as z,bL as Q,J as X,_ as Y}from"./app-Cr5SLL7l.js";import{s as N,c as Z,b as ee}from"./DR2vO6TF.js";import{E as C}from"./B5ALF9s6.js";import{E as S}from"./B3ELAWKR.js";import{b as I,c as D,A as $,g as l,h as g,i as s,L as r,H as a,u as e,l as d,C as P,B as i,q as u,F,D as V,d as te,f as se,k as ae}from"./D2O8tWz_.js";import{F as ne}from"./DbXee8c1.js";import{E as re}from"./DMIGpO2L.js";import"./BX8RwoyW.js";const oe={key:0,class:"_gaps_s"},ie={key:0,class:"ti ti-check",style:{color:"var(--MI_THEME-success)"}},le={key:0,class:"_gaps_s"},ce=["textContent"],ue={key:1,class:"_gaps_s"},de={class:"_gaps_s"},fe={class:"_buttons"},pe=I({__name:"2fa",props:{first:{type:Boolean,default:!1}},setup(R){const c=q(),O=D(()=>c.usePasswordLessLogin??!1);async function v(){const n=await h();if(n.canceled)return;const o=await y("i/2fa/register",{password:n.result.password,token:n.result.token}),{dispose:f}=J(te(()=>W(()=>import("./D7_4taml.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),{twoFactorData:o},{closed:()=>f()})}async function _(){const n=await h();n.canceled||y("i/2fa/unregister",{password:n.result.password,token:n.result.token}).then(o=>{G({twoFactorEnabled:!1})}).catch(o=>{A({type:"error",text:o})})}function p(){B({type:"question",title:t.ts._2fa.renewTOTP,text:t.ts._2fa.renewTOTPConfirm,okText:t.ts._2fa.renewTOTPOk,cancelText:t.ts._2fa.renewTOTPCancel}).then(({canceled:n})=>{n||v()})}async function E(n){if((await B({type:"question",title:t.ts._2fa.removeKey,text:t.tsx._2fa.removeKeyConfirm({name:n.name})})).canceled)return;const f=await h();f.canceled||(await y("i/2fa/remove-key",{password:f.result.password,token:f.result.token,credentialId:n.id}),z())}async function L(n){const o=await K({title:t.ts.rename,default:n.name,type:"text",minLength:1,maxLength:30});o.canceled||await y("i/2fa/update-key",{name:o.result,credentialId:n.id})}async function w(){const n=await h();if(n.canceled)return;const o=Z({publicKey:await y("i/2fa/register-key",{password:n.result.password,token:n.result.token})}),f=await K({title:t.ts._2fa.registerSecurityKey,text:t.ts._2fa.securityKeyName,type:"text",minLength:1,maxLength:30});if(f.canceled)return;const x=await j(ee(o),null,()=>{},t.ts._2fa.tapSecurityKey);!x||(await h()).canceled||await y("i/2fa/key-done",{password:n.result.password,token:n.result.token,name:f.result,credential:x.toJSON()})}async function T(n){await y("i/2fa/password-less",{value:n})}return(n,o)=>{const f=$("E9Time"),x=$("I18n");return l(),g(C,{first:n.first},{label:s(()=>[r(a(e(t).ts["2fa"]),1)]),default:s(()=>[e(c)?(l(),d("div",oe,[e(c).twoFactorEnabled&&e(c).twoFactorBackupCodesStock==="partial"?(l(),g(b,{key:0,warn:""},{default:s(()=>[r(a(e(t).ts._2fa.backupCodeUsedWarning),1)]),_:1})):P("",!0),e(c).twoFactorEnabled&&e(c).twoFactorBackupCodesStock==="none"?(l(),g(b,{key:1,warn:""},{default:s(()=>[r(a(e(t).ts._2fa.backupCodesExhaustedWarning),1)]),_:1})):P("",!0),i(S,{defaultOpen:!0},{icon:s(()=>o[1]||(o[1]=[u("i",{class:"ti ti-shield-lock"},null,-1)])),label:s(()=>[r(a(e(t).ts.totp),1)]),caption:s(()=>[r(a(e(t).ts.totpDescription),1)]),suffix:s(()=>[e(c).twoFactorEnabled?(l(),d("i",ie)):P("",!0)]),default:s(()=>[e(c).twoFactorEnabled?(l(),d("div",le,[u("div",{textContent:a(e(t).ts._2fa.alreadyRegistered)},null,8,ce),(e(c).securityKeysList?.length??0)>0?(l(),d(F,{key:0},[i(k,{onClick:p},{default:s(()=>[r(a(e(t).ts._2fa.renewTOTP),1)]),_:1}),i(b,null,{default:s(()=>[r(a(e(t).ts._2fa.whyTOTPOnlyRenew),1)]),_:1})],64)):(l(),g(k,{key:1,danger:"",onClick:_},{default:s(()=>[r(a(e(t).ts.unregister),1)]),_:1}))])):e(c).twoFactorEnabled?P("",!0):(l(),d("div",ue,[i(k,{primary:"",gradate:"",onClick:v},{default:s(()=>[r(a(e(t).ts._2fa.registerTOTP),1)]),_:1}),i(U,{url:"https://misskey-hub.net/docs/for-users/stepped-guides/how-to-enable-2fa/",target:"_blank"},{default:s(()=>[o[2]||(o[2]=u("i",{class:"ti ti-help-circle"},null,-1)),r(" "+a(e(t).ts.learnMore),1)]),_:1})]))]),_:1}),i(S,null,{icon:s(()=>o[3]||(o[3]=[u("i",{class:"ti ti-key"},null,-1)])),label:s(()=>[r(a(e(t).ts.securityKeyAndPasskey),1)]),default:s(()=>[u("div",de,[i(b,null,{default:s(()=>[r(a(e(t).ts._2fa.securityKeyInfo),1)]),_:1}
2),e(N)()?e(N)()&&!e(c).twoFactorEnabled?(l(),g(b,{key:1,warn:""},{default:s(()=>[r(a(e(t).ts._2fa.registerTOTPBeforeKey),1)]),_:1})):(l(),d(F,{key:2},[i(k,{primary:"",onClick:w},{default:s(()=>[r(a(e(t).ts._2fa.registerSecurityKey),1)]),_:1}),(l(!0),d(F,null,V(e(c).securityKeysList,m=>(l(),g(S,{key:m.id},{label:s(()=>[r(a(m.name),1)]),suffix:s(()=>[i(x,{src:e(t).ts.lastUsedAt},{t:s(()=>[i(f,{time:m.lastUsed},null,8,["time"])]),_:2},1032,["src"])]),default:s(()=>[u("div",fe,[i(k,{onClick:M=>L(m)},{default:s(()=>[o[4]||(o[4]=u("i",{class:"ti ti-forms"},null,-1)),r(" "+a(e(t).ts.rename),1)]),_:2},1032,["onClick"]),i(k,{danger:"",onClick:M=>E(m)},{default:s(()=>[o[5]||(o[5]=u("i",{class:"ti ti-trash"},null,-1)),r(" "+a(e(t).ts.unregister),1)]),_:2},1032,["onClick"])])]),_:2},1024))),128))],64)):(l(),g(b,{key:0,warn:""},{default:s(()=>[r(a(e(t).ts._2fa.securityKeyNotSupported),1)]),_:1}))])]),_:1}),i(H,{disabled:!e(c).twoFactorEnabled||(e(c).securityKeysList?.length??0)===0,modelValue:O.value,"onUpdate:modelValue":o[0]||(o[0]=m=>T(m))},{label:s(()=>[r(a(e(t).ts.passwordLessLogin),1)]),caption:s(()=>[r(a(e(t).ts.passwordLessLoginDescription),1)]),_:1},8,["disabled","modelValue"])])):P("",!0)]),_:1},8,["first"])}}}),_e={class:"_gaps_m"},we={key:0,class:"ti ti-check icon succ"},me={key:1,class:"ti ti-circle-x icon fail"},ye={class:"ip _monospace"},ke=I({__name:"security",setup(R){const c={endpoint:"i/signin-history",limit:5};async function O(){const{canceled:_,result:p}=await K({title:t.ts.newPassword,type:"password",autocomplete:"new-password"});if(_)return;const{canceled:E,result:L}=await K({title:t.ts.newPasswordRetype,type:"password",autocomplete:"new-password"});if(E)return;if(p!==L){A({type:"error",text:t.ts.retypedNotMatch});return}const w=await h();w.canceled||y("i/change-password",{currentPassword:w.result.password,token:w.result.token,newPassword:p})}async function v(){const _=await h();_.canceled||X("i/regenerate-token",{password:_.result.password,token:_.result.token})}return D(()=>[]),D(()=>[]),Q(()=>({title:t.ts.security,icon:"ti ti-lock"})),(_,p)=>{const E=$("E9Time"),L=se("panel");return l(),d("div",_e,[i(C,{first:""},{label:s(()=>[r(a(e(t).ts.password),1)]),default:s(()=>
2[i(k,{primary:"",onClick:p[0]||(p[0]=w=>O())},{default:s(()=>[r(a(e(t).ts.changePassword),1)]),_:1})]),_:1}),i(pe),i(C,null,{label:s(()=>[r(a(e(t).ts.signinHistory),1)]),default:s(()=>[i(re,{pagination:c,disableAutoLoad:""},{default:s(({items:w})=>[u("div",null,[(l(!0),d(F,null,V(w,T=>ae((l(),d("div",{key:T.id,class:"timnmucd"},[u("header",null,[T.success?(l(),d("i",we)):(l(),d("i",me)),u("code",ye,a(T.ip),1),i(E,{time:T.createdAt,class:"time"},null,8,["time"])])])),[[L]])),128))])]),_:1})]),_:1}),i(C,null,{default:s(()=>[i(ne,null,{caption:s(()=>[r(a(e(t).ts.regenerateLoginTokenDescription),1)]),default:s(()=>[i(k,{danger:"",onClick:v},{default:s(()=>[p[1]||(p[1]=u("i",{class:"ti ti-refresh"},null,-1)),r(" "+a(e(t).ts.regenerateLoginToken),1)]),_:1})]),_:1})]),_:1})])}}}),xe=Y(ke,[["__scopeId","data-v-5db5b83a"]]);export{xe 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.