Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,97 @@
|
||||
/* Metro module 5085; source: modules/webauthn/SignalHelpers.native.tsx; dependencies: [5, 6, 7, 27, 3, 5086, 2] */
|
||||
function _fun44152(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5263:6, offset: 0x01169454, size: 234 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('SignalHelpers.native');
|
||||
const GLOBAL_ENV = global.window.GLOBAL_ENV;
|
||||
const env0_7 = GLOBAL_ENV.WEBAUTHN_ORIGIN;
|
||||
value = _fun44153();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/SignalHelpers.native.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun44153() { // fn#44153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5263:227, offset: 0x0116953e, size: 150 bytes, params: 1, frame: 18
|
||||
const binding = env0_4;
|
||||
const closure = SignalHelpers;
|
||||
const binding2 = env0_2;
|
||||
var env0_2 = binding2(_fun44156);
|
||||
const items2 = [{key: 'signalAllAcceptedCredentials', value: value_44159}];
|
||||
const env0_1 = binding2(_fun44161);
|
||||
items2[1] = {key: 'signalCurrentUserDetails', value: value_44162};
|
||||
const env0_0 = binding2(_fun44164);
|
||||
items2[2] = {key: 'signalUnknownCredential', value: value_44165};
|
||||
return binding(closure, null, items2);
|
||||
}
|
||||
|
||||
function* _fun44156(a0, a1) { // fn#44156, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5263:351, offset: 0x011695f8, size: 213 bytes, params: 3, frame: 21
|
||||
var environment;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var DCDSecurityKeyManager = env2_5.DCDSecurityKeyManager;
|
||||
if (DCDSecurityKeyManager.signalAllAcceptedCredentials === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
var binding = env2_0;
|
||||
var value4 = binding(env2_1[5]).encodeUserIdForWebAuthn(a1);
|
||||
var value6 = a0.map(function(a0) {
|
||||
return a0.cred_id;
|
||||
}).filter(function(a0) {
|
||||
return a0;
|
||||
});
|
||||
binding = env2_6;
|
||||
var info = binding.info;
|
||||
var binding2 = env2_7;
|
||||
Reflect.apply(info, binding, ['signalAllAcceptedCredentials', {rpId: binding2, encodedId: value4,
|
||||
allAcceptedCredentialIds: value6, credentials: a0}]);
|
||||
DCDSecurityKeyManager = env2_5.DCDSecurityKeyManager;
|
||||
yield DCDSecurityKeyManager.signalAllAcceptedCredentials(binding2, value4, value6).catch(binding.warn);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun44161(a0) { // fn#44161, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5263:815, offset: 0x011696e1, size: 225 bytes, params: 2, frame: 22
|
||||
var username;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var DCDSecurityKeyManager = env2_5.DCDSecurityKeyManager;
|
||||
if (DCDSecurityKeyManager.signalCurrentUserDetails === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
var binding = env2_0;
|
||||
var value3 = binding(env2_1[5]);
|
||||
var value4 = value3.encodeUserIdForWebAuthn(a0.id);
|
||||
var r7 = a0.email ?? a0.global_name;
|
||||
r7 = r7 ?? a0.username;
|
||||
username = a0.username;
|
||||
binding = env2_6;
|
||||
var info = binding.info;
|
||||
var binding2 = env2_7;
|
||||
Reflect.apply(info, binding, ['signalCurrentUserDetails', {rpId: binding2, encodedId: value4, name: r7,
|
||||
displayName: username}]);
|
||||
DCDSecurityKeyManager = env2_5.DCDSecurityKeyManager;
|
||||
yield DCDSecurityKeyManager.signalCurrentUserDetails(binding2, value4, r7, username).catch(binding.warn);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun44164(a0) { // fn#44164, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5263:1286, offset: 0x011697cb, size: 179 bytes, params: 2, frame: 18
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var DCDSecurityKeyManager = env2_5.DCDSecurityKeyManager;
|
||||
if (DCDSecurityKeyManager.signalUnknownCredential === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
var r6 = typeof a0 === 'string' ? global.JSON.parse(a0).id : a0.cred_id;
|
||||
var binding = env2_6;
|
||||
var info = binding.info;
|
||||
var binding2 = env2_7;
|
||||
Reflect.apply(info, binding, ['signalUnknownCredential', {rpId: binding2, credentialId: r6}]);
|
||||
DCDSecurityKeyManager = env2_5.DCDSecurityKeyManager;
|
||||
yield DCDSecurityKeyManager.signalUnknownCredential(binding2, r6).catch(binding.warn);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user