141 lines
7.3 KiB
TypeScript
141 lines
7.3 KiB
TypeScript
/* Metro module 16162; source: modules/webauthn/WebAuthnSignalManager.tsx; dependencies: [5, 6, 7, 15, 17, 18, 1226, 5085, 4860, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
|
|
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun124919(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:6, offset: 0x025c74c7, size: 258 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun124923(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/WebAuthnSignalManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_124920() { // fn#124920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:168, offset: 0x025c75c9, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_124920_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun124923(a0) { // fn#124923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:367, offset: 0x025c762b, size: 178 bytes, params: 2, frame: 17
|
|
const WebAuthnSignalManager2 = WebAuthnSignalManager;
|
|
Inherits(WebAuthnSignalManager2, a0);
|
|
const binding2 = env0_2;
|
|
var env0_2 = binding2(_fun124926);
|
|
const items2 = [{key: 'handleAuthenticatorDelete', value: value_124927}];
|
|
const env0_1 = binding2(_fun124929);
|
|
items2[1] = {key: 'handleWebAuthnCredentialsLoaded', value: value_124930};
|
|
const env0_0 = binding2(_fun124932);
|
|
items2[2] = {key: 'handleCurrentUserUpdate', value: value_124933};
|
|
return CreateClass(WebAuthnSignalManager2, items2);
|
|
function WebAuthnSignalManager(a0) { // fn#124924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:379, offset: 0x025c76dd, size: 171 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_3;
|
|
binding(this, WebAuthnSignalManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_6(WebAuthnSignalManager);
|
|
binding = env1_5;
|
|
if (_isNativeReflectConstruct_124920()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.actions = {AUTHENTICATOR_DELETE: value.handleAuthenticatorDelete,
|
|
MFA_WEBAUTHN_CREDENTIALS_LOADED: value.handleWebAuthnCredentialsLoaded,
|
|
CURRENT_USER_UPDATE: value.handleCurrentUserUpdate};
|
|
return value;
|
|
}
|
|
|
|
async function _fun124926({credential}) { // fn#124926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:907, offset: 0x025c779c, size: 84 bytes, params: 2, frame: 15
|
|
if (true) {
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
value = env2_0(env2_1[7]);
|
|
await value.signalUnknownCredential(credential);
|
|
}
|
|
}
|
|
|
|
function value_124927() { // fn#124927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:977, offset: 0x00d6b059, size: 30 bytes, params: 1, frame: 13
|
|
return env0_2.apply(this, arguments);
|
|
}
|
|
|
|
async function _fun124929({credentials}) { // fn#124929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:1099, offset: 0x025c7804, size: 99 bytes, params: 2, frame: 17
|
|
if (true) {
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
var id = env2_8.getId();
|
|
value = env2_0(env2_1[7]);
|
|
await value.signalAllAcceptedCredentials(credentials, id);
|
|
}
|
|
}
|
|
|
|
function value_124930() { // fn#124930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:1193, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
|
|
return env0_1.apply(this, arguments);
|
|
}
|
|
|
|
async function _fun124932({user}) { // fn#124932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:1313, offset: 0x025c787b, size: 83 bytes, params: 2, frame: 15
|
|
if (true) {
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
value = env2_0(env2_1[7]);
|
|
await value.signalCurrentUserDetails(user);
|
|
}
|
|
}
|
|
|
|
function value_124933() { // fn#124933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16370:1378, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun124919, 16162, [5, 6, 7, 15, 17, 18, 1226, 5085, 4860,
|
|
2]) /* metro module 16162, dependencies: [5, 6, 7, 15, 17, 18, 1226, 5085, 4860, 2] */;
|