decord/stable/source/stores/MFAStore.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

79 lines
2.1 KiB
TypeScript

// Module ID: 13836
// Function ID: 13837
// Name: MFAStore
// Dependencies: [1099, 12, 504, 573, 2]
// Module 13836 (MFAStore)
import _modDef12 from "module_12" /* 12 */;
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import TokenManagerAll from "TokenManager" /* 1099 */;
let c3 = false;
let closure_4 = [];
let c6 = false;
let nonces = { viewNonce: "", regenerateNonce: "" };
const Store = initializeDefault.Store;
class MFAStore extends Store {
}
const prototype = MFAStore.prototype;
prototype["getVerificationKey"] = function getVerificationKey() {
return key;
};
prototype["getBackupCodes"] = function getBackupCodes() {
return closure_4;
};
Object.defineProperty(prototype, "togglingSMS", {
get: function togglingSMS() {
return c3;
},
set: undefined
});
prototype["getNonces"] = function getNonces() {
return nonces;
};
Object.defineProperty(prototype, "hasSeenBackupPrompt", {
get: function hasSeenBackupPrompt() {
return c6;
},
set: undefined
});
MFAStore.displayName = "MFAStore";
const mFAStore = new MFAStore(DispatcherDefault, {
MFA_ENABLE_SUCCESS: function handleEnableSuccess(token) {
token = token.token;
if (undefined !== token) {
TokenManagerAll.setToken(token);
}
const codes = token.codes;
},
MFA_DISABLE_SUCCESS: function handleDisableSuccess(token) {
TokenManagerAll.setToken(token.token);
},
MFA_SMS_TOGGLE: function handleSMSToggle() {
c3 = true;
},
MFA_SMS_TOGGLE_COMPLETE: function handleSMSToggleComplete() {
c3 = false;
},
MFA_CLEAR_BACKUP_CODES: function handleClearBackupCodes() {
closure_4 = [];
},
MFA_VIEW_BACKUP_CODES: function handleGetBackupCodes(arg0) {
({ codes, key } = arg0);
closure_4 = _modDef12.sortBy(codes, "code");
},
MFA_SEND_VERIFICATION_KEY: function handleSendVerificationEmail(nonces) {
nonces = nonces.nonces;
},
MFA_SEEN_BACKUP_CODE_PROMPT: function handleSeenBackupPrompt() {
c6 = true;
},
CONNECTION_OPEN() {
}
});
const size = fn(2);
const result = size.fileFinishedImporting("stores/MFAStore.tsx");
export default mFAStore;