2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 18647
|
|
|
|
|
// Function ID: 18648
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: WebAuthnSignalManager
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [5, 502, 6808, 5940, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 18647 (WebAuthnSignalManager)
|
2026-10-01 14:13:23 +00:00
|
|
|
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6808 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let c1;
|
|
|
|
|
|
|
|
|
|
class WebAuthnSignalManager extends AutomaticLifecycleManager {
|
2026-09-18 19:45:33 +00:00
|
|
|
constructor() {
|
2026-10-01 14:13:23 +00:00
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
|
2026-09-18 19:45:33 +00:00
|
|
|
applyArgumentsResult.actions = { AUTHENTICATOR_DELETE: applyArgumentsResult.handleAuthenticatorDelete, MFA_WEBAUTHN_CREDENTIALS_LOADED: applyArgumentsResult.handleWebAuthnCredentialsLoaded, CURRENT_USER_UPDATE: applyArgumentsResult.handleCurrentUserUpdate };
|
|
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
handleAuthenticatorDelete(credential) {
|
|
|
|
|
credential = credential.credential;
|
|
|
|
|
return (async (arg0, value) => {
|
|
|
|
|
let v3;
|
|
|
|
|
if (credential === 2) {
|
|
|
|
|
credential = 3;
|
|
|
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
|
|
|
} else if (tmp2 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
const obj3 = { value, done: true };
|
|
|
|
|
return obj3;
|
|
|
|
|
} else {
|
2026-10-02 13:37:24 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-10-01 14:13:23 +00:00
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
try {
|
|
|
|
|
credential = 2;
|
|
|
|
|
if (0 === c1) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
credential = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
credential = 3;
|
|
|
|
|
const obj4 = { value, done: true };
|
|
|
|
|
return obj4;
|
|
|
|
|
} else {
|
|
|
|
|
const obj2 = credential(c1[3]);
|
|
|
|
|
c1 = 1;
|
|
|
|
|
credential = 1;
|
|
|
|
|
const obj5 = { value: obj2.signalUnknownCredential(credential), done: false };
|
|
|
|
|
return obj5;
|
|
|
|
|
}
|
|
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
credential = 3;
|
2026-09-18 19:45:33 +00:00
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
credential = 3;
|
|
|
|
|
const obj = { value, done: true };
|
|
|
|
|
return obj;
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
credential = 3;
|
2026-10-02 13:37:24 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
} catch (tmp7) {
|
|
|
|
|
credential = 3;
|
|
|
|
|
throw tmp7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
}
|
|
|
|
|
handleWebAuthnCredentialsLoaded(credentials) {
|
|
|
|
|
credentials = credentials.credentials;
|
|
|
|
|
return (async (arg0, value) => {
|
|
|
|
|
let id;
|
|
|
|
|
let v3;
|
|
|
|
|
if (credentials === 2) {
|
|
|
|
|
credentials = 3;
|
|
|
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
|
|
|
} else if (tmp2 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
2026-09-18 19:45:33 +00:00
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj3 = { value, done: true };
|
|
|
|
|
return obj3;
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-10-02 13:37:24 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
try {
|
|
|
|
|
credentials = 2;
|
|
|
|
|
if (0 === c1) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
credentials = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
credentials = 3;
|
|
|
|
|
const obj4 = { value, done: true };
|
|
|
|
|
return obj4;
|
|
|
|
|
} else {
|
|
|
|
|
id = id.getId();
|
|
|
|
|
const obj2 = credentials(c1[3]);
|
|
|
|
|
c1 = 1;
|
|
|
|
|
credentials = 1;
|
|
|
|
|
const obj5 = { value: obj2.signalAllAcceptedCredentials(credentials, id), done: false };
|
|
|
|
|
return obj5;
|
|
|
|
|
}
|
|
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
credentials = 3;
|
2026-09-18 19:45:33 +00:00
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
credentials = 3;
|
|
|
|
|
const obj = { value, done: true };
|
|
|
|
|
return obj;
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
credentials = 3;
|
2026-10-02 13:37:24 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
} catch (tmp9) {
|
|
|
|
|
credentials = 3;
|
|
|
|
|
throw tmp9;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
}
|
|
|
|
|
handleCurrentUserUpdate(user) {
|
|
|
|
|
user = user.user;
|
|
|
|
|
return (async (arg0, value) => {
|
|
|
|
|
let v3;
|
|
|
|
|
if (user === 2) {
|
|
|
|
|
user = 3;
|
|
|
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
|
|
|
} else if (tmp2 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
2026-09-18 19:45:33 +00:00
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj3 = { value, done: true };
|
|
|
|
|
return obj3;
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-10-02 13:37:24 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
try {
|
|
|
|
|
user = 2;
|
|
|
|
|
if (0 === c1) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
user = 3;
|
|
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
user = 3;
|
|
|
|
|
const obj4 = { value, done: true };
|
|
|
|
|
return obj4;
|
|
|
|
|
} else {
|
|
|
|
|
const obj2 = user(c1[3]);
|
|
|
|
|
c1 = 1;
|
|
|
|
|
user = 1;
|
|
|
|
|
const obj5 = { value: obj2.signalCurrentUserDetails(user), done: false };
|
|
|
|
|
return obj5;
|
|
|
|
|
}
|
|
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
user = 3;
|
2026-09-18 19:45:33 +00:00
|
|
|
throw value;
|
|
|
|
|
} else if (arg0 === 2) {
|
2026-10-01 14:13:23 +00:00
|
|
|
user = 3;
|
|
|
|
|
const obj = { value, done: true };
|
|
|
|
|
return obj;
|
2026-09-18 19:45:33 +00:00
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
user = 3;
|
2026-10-02 13:37:24 +00:00
|
|
|
return { value: "IconComponent", done: null };
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
} catch (tmp7) {
|
|
|
|
|
user = 3;
|
|
|
|
|
throw tmp7;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
})();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const prototype = WebAuthnSignalManager.prototype;
|
2026-09-18 19:45:33 +00:00
|
|
|
const webAuthnSignalManager = new WebAuthnSignalManager();
|
|
|
|
|
const result = size.fileFinishedImporting("modules/webauthn/WebAuthnSignalManager.tsx");
|
|
|
|
|
|
|
|
|
|
export default webAuthnSignalManager;
|