This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,352 +1,356 @@
/* Metro module 8978; source: modules/webauthn/native/NativeCeremonies.tsx; dependencies: [5, 27, 3, 5084, 1244, 477, 8979, 8980, 1581, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
function _fun69969(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:6, offset: 0x01cea309, size: 301 bytes, params: 8, frame: 21
var object2;
let env0_0 = require;
const closure = registerSecurityKey;
const registerSecurityKey2 = registerSecurityKey;
const mutateAndroidRegisterChallengeForDiscoverable = function(a0) {
var env0_0 = a0;
return _fun69978;
};
const closure2 = registerAndroidCredentialManagerPasskey;
const registerAndroidCredentialManagerPasskey2 = registerAndroidCredentialManagerPasskey;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
value = new value('WebAuthnUtils');
object2 = {};
Object.defineProperty(object2, 'hasAndroidPasskeySupport', {get: _fun69980, set: undefined, enumerable: true,
object = {};
Object.defineProperty(object, 'hasAndroidPasskeySupport', {get: _fun69980, set: undefined, enumerable: true,
configurable: true});
Object.defineProperty(object2, 'shouldDisplayAndroidFidoSelector', {get: _fun69981, set: undefined,
enumerable: true, configurable: true});
object2.getPasskeyAuthenticator = getPasskeyAuthenticator;
object2.registerAndroidCredentialManagerPasskey = closure2;
object2.registerAndroidDevicePasskey = registerAndroidDevicePasskey;
object2.registerPasskey = registerPasskey;
object2.registerSecurityKey = closure;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/NativeCeremonies.tsx');
exports.default = object2;
}
Object.defineProperty(object, 'shouldDisplayAndroidFidoSelector', {get: _fun69981, set: undefined, enumerable: true,
configurable: true});
object.getPasskeyAuthenticator = getPasskeyAuthenticator;
object.registerAndroidCredentialManagerPasskey = registerAndroidCredentialManagerPasskey2;
object.registerAndroidDevicePasskey = registerAndroidDevicePasskey;
object.registerPasskey = registerPasskey;
object.registerSecurityKey = registerSecurityKey2;
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/NativeCeremonies.tsx');
exports.default = object;
function _promptForRegisterCredential() { // fn#69970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:164, offset: 0x01cea436, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun69972).apply(this, arguments);
async function _fun69972() { // fn#69972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:243, offset: 0x01cea47c, size: 145 bytes, params: 1, frame: 16
let value = a0;
if (false) {
return undefined;
}
const r6 = value !== undefined ? value : env2_3.DCDSecurityKeyManager.register;
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
value = env2_0(env2_1[3]);
await value.startRegisterWebAuthnCredential();
value = undefined;
if (false) {
return value;
}
const ticket = value.ticket;
const challenge = value.challenge;
const object = {ticket: ticket};
await r6(challenge);
value = undefined;
if (false) {
return value;
}
object.credential = value;
return object;
}
function _promptForRegisterCredential() { // fn#69970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:164, offset: 0x01cea436, size: 50 bytes, params: 1, frame: 14
return env0_2(_fun69972).apply(this, arguments);
}
function registerSecurityKey({onRegisterSuccess, setError, setRegistering}) { // fn#69973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:433, offset: 0x01cea50d, size: 147 bytes, params: 2, frame: 15
let value = a1;
const r4 = value !== undefined ? value : NativeModules.DCDSecurityKeyManager.register;
if (setError !== undefined) {
setError('');
}
setRegistering(true);
value = (function() {
return _promptForRegisterCredential.apply(this, arguments);
})(r4);
value = value.then(onRegisterSuccess);
value = value.catch(function(a0) {
if (setError === undefined) {
function registerSecurityKey({onRegisterSuccess, setError, setRegistering}) { // fn#69973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:433, offset: 0x01cea50d, size: 147 bytes, params: 2, frame: 15
let value = a1;
const r4 = value !== undefined ? value : NativeModules.DCDSecurityKeyManager.register;
if (setError !== undefined) {
setError('');
}
setRegistering(true);
value = (function() {
return _promptForRegisterCredential.apply(this, arguments);
})(r4);
value = value.then(onRegisterSuccess);
value = value.catch(function(a0) {
if (setError === undefined) {
throw a0;
}
setError(require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.xSCvBf));
throw a0;
});
return value.finally(function() {
return setRegistering(false);
});
}
function mutateAndroidRegisterChallengeForDiscoverable(a0) { // fn#69977, offset: 0x01cea627, size: 18 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun69978;
function _fun69978(a0) { // fn#69978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:869, offset: 0x01cea639, size: 79 bytes, params: 2, frame: 12
let JSON = global.JSON;
let value = JSON.parse(a0);
value.publicKey.authenticatorSelection.residentKey = 'required';
const binding = env0_0;
JSON = global.JSON;
value = JSON.stringify(value);
return binding(value);
}
setError(require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.xSCvBf));
throw a0;
});
return value.finally(function() {
return setRegistering(false);
});
}
function mutateAndroidRegisterChallengeForDiscoverable(a0) { // fn#69977, offset: 0x01cea627, size: 18 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun69978;
}
function registerAndroidCredentialManagerPasskey(a0) { // fn#69979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:980, offset: 0x01cea688, size: 45 bytes, params: 2, frame: 13
const registerSecurityKeyBinding = registerSecurityKey;
const mutateAndroidRegisterChallengeForDiscoverableBinding = mutateAndroidRegisterChallengeForDiscoverable;
const DCDSecurityKeyManager = NativeModules.DCDSecurityKeyManager;
return registerSecurityKeyBinding(a0,
mutateAndroidRegisterChallengeForDiscoverableBinding(DCDSecurityKeyManager.registerPasskey));
}
function _fun69980() { // fn#69980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1156, offset: 0x01cea6b5, size: 71 bytes, params: 1, frame: 13
return (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && NativeModules.DCDSecurityKeyManager?.registerPasskey != null;
}
function _fun69981() { // fn#69981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1289, offset: 0x01cea6fc, size: 73 bytes, params: 1, frame: 13
var r0;
var value;
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
if (isAndroid2) {
value = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
value = !value.isMetaQuest();
r0 = value;
} else {
r0 = isAndroid2;
}
return r0;
}
function getPasskeyAuthenticator() { // fn#69982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1404, offset: 0x01cea745, size: 132 bytes, params: 1, frame: 16
var authenticatePasskey;
const DCDSecurityKeyManager = NativeModules.DCDSecurityKeyManager;
const env0_0 = DCDSecurityKeyManager.authenticate;
if ((require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && NativeModules.DCDSecurityKeyManager?.authenticatePasskey != null) {
authenticatePasskey = NativeModules.DCDSecurityKeyManager.authenticatePasskey;
function registerAndroidCredentialManagerPasskey(a0) { // fn#69979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:980, offset: 0x01cea688, size: 45 bytes, params: 2, frame: 13
const registerSecurityKeyBinding = registerSecurityKey;
const mutateAndroidRegisterChallengeForDiscoverableBinding = mutateAndroidRegisterChallengeForDiscoverable;
const DCDSecurityKeyManager = NativeModules.DCDSecurityKeyManager;
return registerSecurityKeyBinding(a0,
mutateAndroidRegisterChallengeForDiscoverableBinding(DCDSecurityKeyManager.registerPasskey));
}
return env0_2(_fun69984);
}
function registerAndroidDevicePasskey(a0) { // fn#69985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1968, offset: 0x01cea8c7, size: 45 bytes, params: 2, frame: 13
const registerSecurityKeyBinding = registerSecurityKey;
const mutateAndroidRegisterChallengeForDiscoverableBinding = mutateAndroidRegisterChallengeForDiscoverable;
const DCDSecurityKeyManager = NativeModules.DCDSecurityKeyManager;
return registerSecurityKeyBinding(a0,
mutateAndroidRegisterChallengeForDiscoverableBinding(DCDSecurityKeyManager.register));
}
function registerPasskey(a0) { // fn#69986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:2136, offset: 0x01cea8f4, size: 63 bytes, params: 2, frame: 13
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
return platformUtilsModule.isAndroid() ? registerAndroidCredentialManagerPasskey(a0) : registerSecurityKey(a0);
}
async function _fun69972() { // fn#69972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:243, offset: 0x01cea47c, size: 145 bytes, params: 1, frame: 16
let value = a0;
if (false) {
return undefined;
}
const r6 = value !== undefined ? value : env2_3.DCDSecurityKeyManager.register;
await undefined;
if (false) {
return undefined;
function _fun69980() { // fn#69980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1156, offset: 0x01cea6b5, size: 71 bytes, params: 1, frame: 13
return (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && NativeModules.DCDSecurityKeyManager?.registerPasskey != null;
}
value = environment.__proto__.__proto__;
value = env2_0(env2_1[3]);
await value.startRegisterWebAuthnCredential();
value = undefined;
if (false) {
return value;
}
const ticket = value.ticket;
const challenge = value.challenge;
const object2 = {ticket: ticket};
await r6(challenge);
value = undefined;
if (false) {
return value;
}
object2.credential = value;
return object2;
}
function _fun69978(a0) { // fn#69978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:869, offset: 0x01cea639, size: 79 bytes, params: 2, frame: 12
let JSON = global.JSON;
let value = JSON.parse(a0);
value.publicKey.authenticatorSelection.residentKey = 'required';
const binding = env0_0;
JSON = global.JSON;
value = JSON.stringify(value);
return binding(value);
}
async function _fun69984(a0) { // fn#69984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1635, offset: 0x01cea7dd, size: 234 bytes, params: 2, frame: 18
var items2;
var value6;
var error;
var code;
var binding;
var value7;
var IgnorableWebAuthnError;
var prototype;
var ignorableWebAuthnError;
if (false) {
return undefined;
}
value = copyRestArgs(0, undefined);
await undefined;
if (false) {
return undefined;
}
try {
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
function _fun69981() { // fn#69981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1289, offset: 0x01cea6fc, size: 73 bytes, params: 1, frame: 13
var r0;
var value;
const isAndroid2 = (PlatformUtilsModule).isAndroid();
if (isAndroid2) {
value = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
value = !value.isMetaQuest();
r0 = value;
} else {
r0 = isAndroid2;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
return r0;
}
try {
items2 = [];
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
}
try {
arraySpread(items2, value, 0, undefined);
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
function getPasskeyAuthenticator() { // fn#69982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1404, offset: 0x01cea745, size: 132 bytes, params: 1, frame: 16
var authenticatePasskey;
const DCDSecurityKeyManager = NativeModules.DCDSecurityKeyManager;
const env0_0 = DCDSecurityKeyManager.authenticate;
if ((require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && NativeModules.DCDSecurityKeyManager?.authenticatePasskey != null) {
authenticatePasskey = NativeModules.DCDSecurityKeyManager.authenticatePasskey;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
return Module00005(_fun69984);
async function _fun69984(a0) { // fn#69984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1635, offset: 0x01cea7dd, size: 234 bytes, params: 2, frame: 18
var items2;
var value6;
var error;
var code;
var binding;
var value7;
var IgnorableWebAuthnError;
var prototype;
var ignorableWebAuthnError;
if (false) {
return undefined;
}
value = copyRestArgs(0, undefined);
await undefined;
if (false) {
return undefined;
}
try {
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
}
try {
items2 = [];
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
}
try {
arraySpread(items2, value, 0, undefined);
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
}
try {
value = apply(require, items2, undefined, undefined);
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
}
await value;
try {
value = undefined;
value6 = false;
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
}
return value6 ? value : value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
}
try {
value = apply(require, items2, undefined, undefined);
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
function registerAndroidDevicePasskey(a0) { // fn#69985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:1968, offset: 0x01cea8c7, size: 45 bytes, params: 2, frame: 13
const registerSecurityKeyBinding = registerSecurityKey;
const mutateAndroidRegisterChallengeForDiscoverableBinding = mutateAndroidRegisterChallengeForDiscoverable;
const DCDSecurityKeyManager = NativeModules.DCDSecurityKeyManager;
return registerSecurityKeyBinding(a0,
mutateAndroidRegisterChallengeForDiscoverableBinding(DCDSecurityKeyManager.register));
}
await value;
try {
value = undefined;
value6 = false;
} catch (error) {
code = error.code;
if (code === 'AbortError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
if (code === 'NotAllowedError') {
value = environment.__proto__.__proto__;
binding = env2_4;
binding.warn(error);
binding = env2_0;
IgnorableWebAuthnError = binding(env2_1[6]).IgnorableWebAuthnError;
prototype = IgnorableWebAuthnError.prototype;
value = Object.create(prototype, {constructor: {value: IgnorableWebAuthnError}});
ignorableWebAuthnError = new IgnorableWebAuthnError();
value = ignorableWebAuthnError instanceof Object ? ignorableWebAuthnError : value;
throw value;
}
value = environment.__proto__.__proto__;
binding = env2_0;
value7 = binding(env2_1[7]);
value7.captureWebAuthnException(error);
binding = env2_4;
binding.error(error);
throw error;
function registerPasskey(a0) { // fn#69986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9163:2136, offset: 0x01cea8f4, size: 63 bytes, params: 2, frame: 13
return PlatformUtilsModule.isAndroid() ? registerAndroidCredentialManagerPasskey(a0) : registerSecurityKey(a0);
}
return value6 ? value : value;
}
global.__d(_fun69969, 8978, [5, 27, 3, 5084, 1244, 477, 8979, 8980, 1581,
2]) /* metro module 8978, dependencies: [5, 27, 3, 5084, 1244, 477, 8979, 8980, 1581, 2] */;
@@ -1,60 +1,66 @@
/* Metro module 13250; source: modules/webauthn/native/PasskeyUpsellActionCreators.tsx; dependencies: [3968, 1365, 1367, 5080, 13251, 1962, 4080, 13252, 13254, 2] */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as DismissibleContentUnsafeUtilsModule from '../../dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
function _fun101052(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:6, offset: 0x022065b7, size: 172 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {openPasskeyUpsell: openPasskeyUpsell, openPasskeyUpsellModal: openPasskeyUpsellModal,
object = {openPasskeyUpsell: openPasskeyUpsell, openPasskeyUpsellModal: openPasskeyUpsellModal,
closePasskeyUpsellModal: closePasskeyUpsellModal, openPasskeyUpsellPromoSheet: openPasskeyUpsellPromoSheet,
closePasskeyUpsellPromoSheet: closePasskeyUpsellPromoSheet,
openPasskeyUpsellPromoModal: openPasskeyUpsellPromoModal};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellActionCreators.tsx');
exports.default = object2;
}
function openPasskeyUpsell() { // fn#101053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:122, offset: 0x02206663, size: 129 bytes, params: 1, frame: 16
var value;
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
const UNSAFE_isDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_isDismissibleContentDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const PASSWORDLESS_UPSELL = DismissibleContent.PASSWORDLESS_UPSELL;
if (!Reflect.apply(UNSAFE_isDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
[PASSWORDLESS_UPSELL])) {
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
value.requestMarkDismissibleContentAsShown(DismissibleContent.PASSWORDLESS_UPSELL);
this.openPasskeyUpsellPromoSheet();
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellActionCreators.tsx');
exports.default = object;
function openPasskeyUpsell() { // fn#101053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:122, offset: 0x02206663, size: 129 bytes, params: 1, frame: 16
var value;
const UNSAFE_isDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_isDismissibleContentDismissed;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const PASSWORDLESS_UPSELL = DismissibleContent.PASSWORDLESS_UPSELL;
if (!Reflect.apply(UNSAFE_isDismissibleContentDismissed, DismissibleContentUnsafeUtilsModule,
[PASSWORDLESS_UPSELL])) {
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
value.requestMarkDismissibleContentAsShown(DismissibleContent.PASSWORDLESS_UPSELL);
this.openPasskeyUpsellPromoSheet();
}
}
function openPasskeyUpsellModal() { // fn#101054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:367, offset: 0x022066e4, size: 80 bytes, params: 1, frame: 16
const defaultImport = importDefault(dependencyMap[3]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[5]);
value = value(dependencyMap[4], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, undefined, 'PASSKEY_UPSELL_KEY']);
}
function closePasskeyUpsellModal() { // fn#101055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:442, offset: 0x02206734, size: 44 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey('PASSKEY_UPSELL_KEY');
}
function openPasskeyUpsellPromoSheet() { // fn#101056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:491, offset: 0x02206760, size: 79 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[6]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[5]);
value = value(dependencyMap[7], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'PASSKEY_UPSELL_KEY']);
}
function closePasskeyUpsellPromoSheet() { // fn#101057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:564, offset: 0x022067af, size: 44 bytes, params: 1, frame: 12
(ActionSheetActionCreators).hideActionSheet('PASSKEY_UPSELL_KEY');
}
function openPasskeyUpsellPromoModal(a0) { // fn#101058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:623, offset: 0x022067db, size: 83 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[3]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[5]);
value = value(dependencyMap[8], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, a0, 'PASSKEY_UPSELL_KEY']);
}
}
function openPasskeyUpsellModal() { // fn#101054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:367, offset: 0x022066e4, size: 80 bytes, params: 1, frame: 16
const defaultImport = importDefault(dependencyMap[3]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[5]);
value = value(dependencyMap[4], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, undefined, 'PASSKEY_UPSELL_KEY']);
}
function closePasskeyUpsellModal() { // fn#101055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:442, offset: 0x02206734, size: 44 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('PASSKEY_UPSELL_KEY');
}
function openPasskeyUpsellPromoSheet() { // fn#101056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:491, offset: 0x02206760, size: 79 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[6]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[5]);
value = value(dependencyMap[7], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'PASSKEY_UPSELL_KEY']);
}
function closePasskeyUpsellPromoSheet() { // fn#101057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:564, offset: 0x022067af, size: 44 bytes, params: 1, frame: 12
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('PASSKEY_UPSELL_KEY');
}
function openPasskeyUpsellPromoModal(a0) { // fn#101058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13440:623, offset: 0x022067db, size: 83 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[3]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[5]);
value = value(dependencyMap[8], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, a0, 'PASSKEY_UPSELL_KEY']);
}
global.__d(_fun101052, 13250, [3968, 1365, 1367, 5080, 13251, 1962, 4080, 13252, 13254,
2]) /* metro module 13250, dependencies: [3968, 1365, 1367, 5080, 13251, 1962, 4080, 13252, 13254, 2] */;
@@ -1,19 +1,26 @@
/* Metro module 13251; source: modules/webauthn/native/PasskeyUpsellFullModal.tsx; dependencies: [31, 13244, 33, 13247, 10121, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as WebAuthnConstantsModule from '../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
import * as WebAuthnScreensModule from './WebAuthnScreens.tsx'; /* Metro dependency 13247 */
function _fun101059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13441:6, offset: 0x0220682e, size: 153 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellFullModal.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellFullModal.tsx');
exports.default = PasskeyUpsellFullModal;
function PasskeyUpsellFullModal() { // fn#101060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13441:238, offset: 0x022068c7, size: 97 bytes, params: 1, frame: 17
const screens = (WebAuthnScreensModule).getScreens({isModal: true});
const Modal = (ModalNativeModule).Modal;
const MODAL_UPSELL = WebAuthnScreens.MODAL_UPSELL;
return <Modal screens={screens} initialRouteName={MODAL_UPSELL} />;
}
}
function PasskeyUpsellFullModal() { // fn#101060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13441:238, offset: 0x022068c7, size: 97 bytes, params: 1, frame: 17
const screens = (require(13247) /* metro dependency 13247: WebAuthnScreens */).getScreens({isModal: true});
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
const MODAL_UPSELL = WebAuthnScreens.MODAL_UPSELL;
return <Modal screens={screens} initialRouteName={MODAL_UPSELL} />;
}
global.__d(_fun101059, 13251, [31, 13244, 33, 13247, 10121,
2]) /* metro module 13251, dependencies: [31, 13244, 33, 13247, 10121, 2] */;
@@ -1,129 +1,136 @@
/* Metro module 13249; source: modules/webauthn/native/PasskeyUpsellManager.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 1878, 13243, 661, 8980, 3968, 1365, 4007, 5084, 13250, 4860, 2] */
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 UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import AutomaticLifecycleManager from '../../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import WebAuthnStore from '../WebAuthnStore.tsx'; /* Metro dependency 13243 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as Dismissible_contentModule from '../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
function _fun101042(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:6, offset: 0x022060a7, size: 310 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const webAuthnStore = importDefault(13243) /* metro dependency 13243: WebAuthnStore */;
const env0_11 = (require(661) /* metro dependency 661: Constants */).LoginStates;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
let value = AutomaticLifecycleManager;
value = _fun101046(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_101043() { // fn#101043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:200, offset: 0x022061dd, 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) {
function _isNativeReflectConstruct_101043() { // fn#101043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:200, offset: 0x022061dd, 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_101043_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_101043_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun101046(a0) { // fn#101046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:413, offset: 0x0220623f, size: 149 bytes, params: 2, frame: 16
const closure = PasskeyUpsellManager;
env0_7(closure, a0);
return env0_4(closure, [{key: 'handlePasskeyUpsellShow', value: value_101048}, {key: 'handleLoginSuccess',
value: function() {
env1_13 = true;
}}, {key: 'handleLogout', value: function() {
env1_12 = false;
env1_13 = false;
}}, {key: 'markDismissed', value: value_101051}]);
}
function _fun101046(a0) { // fn#101046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:413, offset: 0x0220623f, size: 149 bytes, params: 2, frame: 16
const PasskeyUpsellManager2 = PasskeyUpsellManager;
Inherits(PasskeyUpsellManager2, a0);
return CreateClass(PasskeyUpsellManager2, [{key: 'handlePasskeyUpsellShow', value: value_101048},
{key: 'handleLoginSuccess', value: function() {
env1_13 = true;
}}, {key: 'handleLogout', value: function() {
env1_12 = false;
env1_13 = false;
}}, {key: 'markDismissed', value: value_101051}]);
function PasskeyUpsellManager(a0) { // fn#101047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:425, offset: 0x022062d4, size: 277 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, PasskeyUpsellManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(PasskeyUpsellManager);
binding = env1_5;
if (_isNativeReflectConstruct_101043()) {
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 = {POST_CONNECTION_OPEN: value.handlePasskeyUpsellShow, LOGIN_RESET: value.handleLogout,
LOGIN_SUCCESS: value.handleLoginSuccess, LOGOUT: value.handleLogout};
const Map = global.Map;
const map = new Map();
const value6 = map.set(AuthenticationStore, value.handlePasskeyUpsellShow);
const value7 = value6.set(UserStore, value.handlePasskeyUpsellShow);
value.stores = value7.set(WebAuthnStore, value.handlePasskeyUpsellShow);
return value;
}
function PasskeyUpsellManager(a0) { // fn#101047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:425, offset: 0x022062d4, size: 277 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, PasskeyUpsellManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(PasskeyUpsellManager);
binding = env1_5;
if (_isNativeReflectConstruct_101043()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value.actions = {POST_CONNECTION_OPEN: value.handlePasskeyUpsellShow, LOGIN_RESET: value.handleLogout,
LOGIN_SUCCESS: value.handleLoginSuccess, LOGOUT: value.handleLogout};
const Map = global.Map;
const map = new Map();
const value6 = map.set(AuthenticationStore, value.handlePasskeyUpsellShow);
const value7 = value6.set(UserStore, value.handlePasskeyUpsellShow);
value.stores = value7.set(WebAuthnStore, value.handlePasskeyUpsellShow);
return value;
}
function value_101048() { // fn#101048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:1028, offset: 0x022063e9, size: 352 bytes, params: 1, frame: 15
var moduleValue;
var moduleValue2;
var currentUser;
const value = environment.__proto__;
if (env1_13) {
if ((require(8980) /* metro dependency 8980: MFAUtils */).hasWebAuthn) {
if (AuthenticationStore.getLoginStatus() === LoginStates.NONE) {
if (AuthenticationStore.attemptedPasswordLogin()) {
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
if (!moduleValue.UNSAFE_isDismissibleContentDismissed((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.PASSWORDLESS_UPSELL)) {
if (WebAuthnStore.hasFetchedCredentials()) {
if (!WebAuthnStore.hasCredentials) {
moduleValue2 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
if (!moduleValue2.isModalOpen()) {
currentUser = UserStore.getCurrentUser();
if (currentUser !== undefined && currentUser.verified) {
if (WebAuthnStore.hasFetchedCredentials()) {
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).openPasskeyUpsell();
} else if (!env1_12) {
(require(5084) /* metro dependency 5084: WebAuthnActionCreators */).fetchWebAuthnCredentials();
function value_101048() { // fn#101048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:1028, offset: 0x022063e9, size: 352 bytes, params: 1, frame: 15
var authenticationStoreBinding;
var moduleValue;
var webAuthnStoreBinding;
var moduleValue2;
var currentUser;
const value = environment.__proto__;
if (env1_13) {
if ((require(8980) /* metro dependency 8980: MFAUtils */).hasWebAuthn) {
if (AuthenticationStore.getLoginStatus() === LoginStates.NONE) {
authenticationStoreBinding = AuthenticationStore;
if (authenticationStoreBinding.attemptedPasswordLogin()) {
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
if (!moduleValue.UNSAFE_isDismissibleContentDismissed((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.PASSWORDLESS_UPSELL)) {
if (Reflect.apply(WebAuthnStore.hasFetchedCredentials, webAuthnStoreBinding, [])) {
if (!WebAuthnStore.hasCredentials) {
moduleValue2 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
if (!moduleValue2.isModalOpen()) {
currentUser = UserStore.getCurrentUser();
if (currentUser !== undefined && currentUser.verified) {
webAuthnStoreBinding = WebAuthnStore;
if (webAuthnStoreBinding.hasFetchedCredentials()) {
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).openPasskeyUpsell();
} else if (!env1_12) {
(require(5084) /* metro dependency 5084: WebAuthnActionCreators */).fetchWebAuthnCredentials();
}
}
}
}
}
}
} else {
moduleValue2 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
if (!moduleValue2.isModalOpen()) {
currentUser = UserStore.getCurrentUser();
if (currentUser !== undefined && currentUser.verified) {
if (WebAuthnStore.hasFetchedCredentials()) {
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).openPasskeyUpsell();
} else if (!env1_12) {
(require(5084) /* metro dependency 5084: WebAuthnActionCreators */).fetchWebAuthnCredentials();
} else {
moduleValue2 = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
if (!moduleValue2.isModalOpen()) {
currentUser = UserStore.getCurrentUser();
if (currentUser !== undefined && currentUser.verified) {
webAuthnStoreBinding = WebAuthnStore;
if (webAuthnStoreBinding.hasFetchedCredentials()) {
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).openPasskeyUpsell();
} else if (!env1_12) {
(require(5084) /* metro dependency 5084: WebAuthnActionCreators */).fetchWebAuthnCredentials();
}
}
}
}
}
@@ -132,16 +139,20 @@ function value_101048() { // fn#101048, source: /ci/build/discord/discord/discor
}
}
}
function value_101051(a0) { // fn#101051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:1573, offset: 0x02206567, size: 80 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
const UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const PASSWORDLESS_UPSELL = DismissibleContent.PASSWORDLESS_UPSELL;
return Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [PASSWORDLESS_UPSELL, {dismissAction: a0,
forceTrack: true}]);
}
}
}
function value_101051(a0) { // fn#101051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13439:1573, offset: 0x02206567, size: 80 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
const UNSAFE_markDismissibleContentAsDismissed = value.UNSAFE_markDismissibleContentAsDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const PASSWORDLESS_UPSELL = DismissibleContent.PASSWORDLESS_UPSELL;
return Reflect.apply(UNSAFE_markDismissibleContentAsDismissed, value, [PASSWORDLESS_UPSELL, {dismissAction: a0,
forceTrack: true}]);
}
global.__d(_fun101042, 13249, [6, 7, 15, 17, 18, 1226, 1878, 13243, 661, 8980, 3968, 1365, 4007, 5084, 13250, 4860,
2]) /* metro module 13249, dependencies: [6, 7, 15, 17, 18, 1226, 1878, 13243, 661, 8980, 3968, 1365, 4007, 5084, 13250, 4860, 2] */;
@@ -1,28 +1,35 @@
/* Metro module 13254; source: modules/webauthn/native/PasskeyUpsellPromoModal.tsx; dependencies: [31, 13244, 33, 13247, 1244, 10121, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ModalNativeModule from '../../../design/components/Modal/native/Modal.native.tsx'; /* Metro dependency 10121 */
import * as WebAuthnConstantsModule from '../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
import * as WebAuthnScreensModule from './WebAuthnScreens.tsx'; /* Metro dependency 13247 */
function _fun101068(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13444:6, offset: 0x02206e01, size: 153 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellPromoModal.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellPromoModal.tsx');
exports.default = PasskeyUpsellPromoModal;
function PasskeyUpsellPromoModal(a0) { // fn#101069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13444:239, offset: 0x02206e9a, size: 184 bytes, params: 2, frame: 19
var object2;
const screens = (WebAuthnScreensModule).getScreens({isModal: true});
object2 = {};
const NAME = WebAuthnScreens.NAME;
object2.name = NAME;
const object = {};
copyDataProperties(object, a0, undefined);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object['name'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8H5RmH']);
object2.params = object;
const items2 = [object2];
const Modal = (ModalNativeModule).Modal;
return <Modal screens={screens} initialRouteStack={items2} />;
}
}
function PasskeyUpsellPromoModal(a0) { // fn#101069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13444:239, offset: 0x02206e9a, size: 184 bytes, params: 2, frame: 19
var object4;
const screens = (require(13247) /* metro dependency 13247: WebAuthnScreens */).getScreens({isModal: true});
object4 = {};
const NAME = WebAuthnScreens.NAME;
object4.name = NAME;
const object3 = {};
copyDataProperties(object3, a0, undefined);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object3['name'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8H5RmH']);
object4.params = object3;
const items2 = [object4];
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
return <Modal screens={screens} initialRouteStack={items2} />;
}
global.__d(_fun101068, 13254, [31, 13244, 33, 13247, 1244, 10121,
2]) /* metro module 13254, dependencies: [31, 13244, 33, 13247, 1244, 10121, 2] */;
@@ -1,81 +1,114 @@
/* Metro module 13252; source: modules/webauthn/native/PasskeyUpsellPromoSheet.tsx; dependencies: [57, 31, 27, 1376, 33, 13253, 13250, 12765, 1244, 477, 13249, 6261, 4578, 8978, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import NativeCeremonies from './NativeCeremonies.tsx'; /* Metro dependency 8978 */
import PasskeyUpsellManager from './PasskeyUpsellManager.tsx'; /* Metro dependency 13249 */
import PasskeyUpsellActionCreators from './PasskeyUpsellActionCreators.tsx'; /* Metro dependency 13250 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DismissibleContentConstantsModule from '../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as ButtonGroupNativeModule from '../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as PromoSheetNativeModule from '../../../design/components/Sheet/native/PromoSheet.native.tsx'; /* Metro dependency 12765 */
import * as Module13253Module from '../../../by-id/module-13253.js'; /* Metro dependency 13253 */
function _fun101061(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:6, offset: 0x02206928, size: 225 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).Image;
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
const value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellPromoSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/PasskeyUpsellPromoSheet.tsx');
exports.default = PasswordlessUpsellPromoSheet;
exports.PASSWORDLESS_UPSELL_MODAL_KEY = 'PASSWORDLESS_UPSELL_MODAL_KEY';
function PasswordlessUpsellPromoSheet() { // fn#101062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:290, offset: 0x02206a09, size: 665 bytes, params: 1, frame: 29
const image = (
<Image
source={Module13253Module}
style={{
'height': 190,
'width': 220,
'resizeMode': 'contain',
}}
/>
);
let useState = ReactModule.useState;
const value3 = Reflect.apply(useState, ReactModule, ['']);
const value4 = Module00057(value3, 2);
value4[0];
const env0_0 = value4[1];
useState = ReactModule.useState;
const value5 = Module00057(Reflect.apply(useState, ReactModule, [false]), 2);
const property = value5[0];
const env0_1 = value5[1];
const PromoSheet = (PromoSheetNativeModule).PromoSheet;
object = {illustration: image};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const CjleBl = t.CjleBl;
object.title = Reflect.apply(string, intl, [CjleBl]);
const isIOS2 = (PlatformUtilsModule).isIOS();
string = intl.string;
object.description = isIOS2 ? Reflect.apply(string, intl, [t['7yxR9t']]) : Reflect.apply(string, intl, [t.d6uxJy]);
object.onDismiss = function() {
return importDefault(dependencyMap[10]).markDismissed(ContentDismissActionType.USER_DISMISS);
};
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
string = intl.string;
const button = (
<Button
size="lg"
onPress={onPress_101065}
text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl, [t.NIFmCJ])}
loading={property}
disabled={property}
/>
);
string = intl.string;
object.actions = (
<ButtonGroup>
{button}
<Button
size="lg"
variant="secondary"
onPress={onPress_101066}
text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl, [t['7J6/nG']])}
disabled={property}
/>
</ButtonGroup>
);
return <PromoSheet {...object} />;
function PasswordlessUpsellPromoSheetOnRegisterSuccess(a0) { // fn#101063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:506, owner: PasswordlessUpsellPromoSheet.onRegisterSuccess, offset: 0x02206ca2, size: 60 bytes, params: 2, frame: 14
const value = environment.__proto__;
(PasskeyUpsellActionCreators).closePasskeyUpsellPromoSheet();
(PasskeyUpsellActionCreators).openPasskeyUpsellPromoModal(a0);
}
function PasswordlessUpsellPromoSheetOnPress() { // fn#101065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:916, owner: PasswordlessUpsellPromoSheet.onPress, offset: 0x02206d0e, size: 103 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = PasskeyUpsellManager;
const markDismissed = defaultImport.markDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
Reflect.apply(markDismissed, defaultImport, [TAKE_ACTION]);
(NativeCeremonies).registerPasskey({setRegistering: env0_1,
setError: env0_0, onRegisterSuccess: PasswordlessUpsellPromoSheetOnRegisterSuccess});
}
function PasswordlessUpsellPromoSheetOnPress_101066() { // fn#101066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:1215, owner: PasswordlessUpsellPromoSheet.onPress, offset: 0x02206d75, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = PasskeyUpsellManager;
const markDismissed = defaultImport.markDismissed;
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
Reflect.apply(markDismissed, defaultImport, [USER_DISMISS]);
(PasskeyUpsellActionCreators).closePasskeyUpsellPromoSheet();
}
}
}
function PasswordlessUpsellPromoSheet() { // fn#101062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:290, offset: 0x02206a09, size: 665 bytes, params: 1, frame: 29
var object2;
const image = <Image source={require(13253) /* metro dependency 13253 */} style={{'height': 190, 'width': 220,
'resizeMode': 'contain'}} />;
const binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, ['']);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
value4[0];
const env0_0 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property = value5[0];
const env0_1 = value5[1];
const PromoSheet = (require(12765) /* metro dependency 12765: PromoSheetNative */).PromoSheet;
object2 = {illustration: image};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const CjleBl = t.CjleBl;
object2.title = Reflect.apply(string, intl, [CjleBl]);
const isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
string = intl.string;
object2.description = isIOS2 ? Reflect.apply(string, intl, [t['7yxR9t']]) : Reflect.apply(string, intl, [t.d6uxJy]);
object2.onDismiss = function() {
return importDefault(dependencyMap[10]).markDismissed(ContentDismissActionType.USER_DISMISS);
};
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const button = <Button size="lg" onPress={onPress_101065} text={property ? Reflect.apply(string, intl,
[t.wePEBF]) : Reflect.apply(string, intl, [t.NIFmCJ])} loading={property} disabled={property} />;
string = intl.string;
object2.actions = <ButtonGroup>{button}<Button size="lg" variant="secondary" onPress={onPress_101066} text={property ? Reflect.apply(string,
intl, [t.wePEBF]) : Reflect.apply(string, intl, [t['7J6/nG']])} disabled={property} /></ButtonGroup>;
return <PromoSheet {...object2} />;
}
function PasswordlessUpsellPromoSheetOnRegisterSuccess(a0) { // fn#101063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:506, owner: PasswordlessUpsellPromoSheet.onRegisterSuccess, offset: 0x02206ca2, size: 60 bytes, params: 2, frame: 14
const value = environment.__proto__;
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellPromoSheet();
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).openPasskeyUpsellPromoModal(a0);
}
function PasswordlessUpsellPromoSheetOnPress() { // fn#101065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:916, owner: PasswordlessUpsellPromoSheet.onPress, offset: 0x02206d0e, size: 103 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = importDefault(13249) /* metro dependency 13249: PasskeyUpsellManager */;
const markDismissed = defaultImport.markDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
Reflect.apply(markDismissed, defaultImport, [TAKE_ACTION]);
(importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerPasskey({setRegistering: env0_1,
setError: env0_0, onRegisterSuccess: PasswordlessUpsellPromoSheetOnRegisterSuccess});
}
function PasswordlessUpsellPromoSheetOnPress_101066() { // fn#101066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13442:1215, owner: PasswordlessUpsellPromoSheet.onPress, offset: 0x02206d75, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = importDefault(13249) /* metro dependency 13249: PasskeyUpsellManager */;
const markDismissed = defaultImport.markDismissed;
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
Reflect.apply(markDismissed, defaultImport, [USER_DISMISS]);
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellPromoSheet();
}
global.__d(_fun101061, 13252, [57, 31, 27, 1376, 33, 13253, 13250, 12765, 1244, 477, 13249, 6261, 4578, 8978,
2]) /* metro module 13252, dependencies: [57, 31, 27, 1376, 33, 13253, 13250, 12765, 1244, 477, 13249, 6261, 4578, 8978, 2] */;
@@ -1,30 +1,36 @@
/* Metro module 13246; source: modules/webauthn/native/UserSettingsWebAuthn.tsx; dependencies: [31, 13244, 33, 13247, 5280, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as WebAuthnConstantsModule from '../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
import * as WebAuthnScreensModule from './WebAuthnScreens.tsx'; /* Metro dependency 13247 */
function _fun101025(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13436:6, offset: 0x022051b4, size: 157 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/UserSettingsWebAuthn.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/UserSettingsWebAuthn.tsx');
exports.default = UserSettingsWebAuthn;
}
function UserSettingsWebAuthn({navigation, initialRouteName = WebAuthnScreens.INIT, showNav}) { // fn#101026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13436:238, offset: 0x02205251, size: 187 bytes, params: 2, frame: 20
if (showNav !== undefined) {
function UserSettingsWebAuthn({navigation, initialRouteName = WebAuthnScreens.INIT, showNav}) { // fn#101026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13436:238, offset: 0x02205251, size: 187 bytes, params: 2, frame: 20
if (showNav !== undefined) {
}
const screens = (WebAuthnScreensModule).getScreens({isModal: false});
ReactModule.useLayoutEffect(function() {
navigation.setOptions({headerShown: showNav});
});
const Navigator = (NavigatorNativeModule).Navigator;
return (
<Navigator
screens={screens}
initialRouteName={initialRouteName}
initialRouteStack={[{name: initialRouteName}]}
useContainer={false}
/>
);
}
const screens = (require(13247) /* metro dependency 13247: WebAuthnScreens */).getScreens({isModal: false});
env0_2.useLayoutEffect(function() {
navigation.setOptions({headerShown: showNav});
});
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
return (
<Navigator
screens={screens}
initialRouteName={initialRouteName}
initialRouteStack={[{name: initialRouteName}]}
useContainer={false}
/>
);
}
global.__d(_fun101025, 13246, [31, 13244, 33, 13247, 5280,
2]) /* metro module 13246, dependencies: [31, 13244, 33, 13247, 5280, 2] */;
@@ -1,11 +1,25 @@
/* Metro module 13256; source: modules/webauthn/native/WebAuthnDeleteActionSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 4080, 6275, 6758, 1244, 6806, 13257, 4573, 4578, 5084, 3857, 11111, 4073, 9149, 8129, 2] */
import ToastActionCreators from '../../toast/native/ToastActionCreators.tsx'; /* Metro dependency 3857 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import Module13257 from '../../../by-id/module-13257.js'; /* Metro dependency 13257 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as CircleCheckIconModule from '../../../design/components/Icon/native/redesign/generated/CircleCheckIcon.tsx'; /* Metro dependency 4073 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as WebAuthnActionCreatorsModule from '../WebAuthnActionCreators.tsx'; /* Metro dependency 5084 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as ActionSheetCloseButtonNativeModule from '../../../design/components/Sheet/native/ActionSheetCloseButton.native.tsx'; /* Metro dependency 6806 */
function _fun101083(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:6, offset: 0x022078b1, size: 365 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
@@ -13,92 +27,124 @@ function _fun101083(global, require, importDefault, importAll, module, exports,
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object2.content = {alignItems: 'center'};
object = {};
object.content = {alignItems: 'center'};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.subtitle = {textAlign: 'center', marginTop: PX_16};
const object3 = {};
object.subtitle = {textAlign: 'center', marginTop: PX_16};
const object4 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingHorizontal = PX_16;
object4.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingBottom = PX_16;
object2.sheetContent = object3;
const object6 = {};
object4.paddingBottom = PX_16;
object.sheetContent = object4;
const object5 = {};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.gap = PX_16;
object5.gap = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.paddingBottom = PX_16;
object2.sheetBody = object6;
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/WebAuthnDeleteActionSheet.tsx');
object5.paddingBottom = PX_16;
object.sheetBody = object5;
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/WebAuthnDeleteActionSheet.tsx');
exports.default = WebAuthnDeleteActionSheet;
function WebAuthnDeleteActionSheet({credential, deleting, setDeleting}) { // fn#101084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:531, offset: 0x02207a1e, size: 663 bytes, params: 2, frame: 29
const styles = useStyles();
const onPress_1010852 = onPress_101085;
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const mI3CoL = (require(1244) /* metro dependency 1244: indexNative */).t.mI3CoL;
const object2 = {};
object2.keyName = credential.name;
const ActionSheetCloseButton = (ActionSheetCloseButtonNativeModule).ActionSheetCloseButton;
const items2 = [
<BottomSheetTitleHeader
title={Reflect.apply(formatToPlainString, intl, [mI3CoL, object2])}
trailing={<ActionSheetCloseButton onPress={onPress_1010852} />}
/>,
];
const image = <Image source={Module13257} />;
const Text = (TextModule).Text;
const string = intl.string;
const IfTbc1 = (require(1244) /* metro dependency 1244: indexNative */).t.IfTbc1;
items2[1] = (
<View style={styles.content}>
{image}
<Text variant="heading-md/normal" style={styles.subtitle}>
{Reflect.apply(string, intl, [IfTbc1])}
</Text>
</View>
);
const Button = (ButtonNativeModule).Button;
items2[2] = (
<View>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['lqK//z'])}
onPress={onPress_1010852}
variant="primary"
grow
/>
</View>
);
items2[3] = (
<View>
<Button
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.zYOk0f)}
onPress={onPress_101086}
variant="destructive"
disabled={deleting}
loading={deleting}
grow
/>
</View>
);
return (
<BottomSheet contentStyles={styles.sheetContent} bodyStyles={styles.sheetBody}>
{items2}
</BottomSheet>
);
function WebAuthnDeleteActionSheetOnPress() { // fn#101085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:629, owner: WebAuthnDeleteActionSheet.onPress, offset: 0x02207cb5, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
function WebAuthnDeleteActionSheetOnPress_101086() { // fn#101086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:1309, owner: WebAuthnDeleteActionSheet.onPress, offset: 0x02207cda, size: 119 bytes, params: 1, frame: 14
setDeleting(true);
onPress_101085();
let value = WebAuthnActionCreatorsModule.deleteWebAuthnCredential(credential);
value = value.then(_fun101087);
value = value.catch(function(a0) {
var defaultImport = importDefault(dependencyMap[14]);
var object = {key: 'WEBAUTHN_CREDENTIAL_DELETE_ERROR_TOAST_KEY', content: a0.message,
icon: importDefault(dependencyMap[17])};
object.IconComponent = require(dependencyMap[18]).WarningIcon;
object.iconColor = 'icon-feedback-critical';
defaultImport.open(object);
});
value.finally(function() {
setDeleting(false);
});
function _fun101087() { // fn#101087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:1377, offset: 0x02207d51, size: 156 bytes, params: 1, frame: 18
const defaultImport = ToastActionCreators;
const open = defaultImport.open;
const object = {key: 'WEBAUTHN_CREDENTIAL_DELETE_SUCCESS_TOAST_KEY'};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const ZnkeXs = (IndexNativeModule).t.ZnkeXs;
object.content = Reflect.apply(string, intl, [ZnkeXs]);
object.icon = importDefault(11111) /* metro dependency 11111 */;
const CircleCheckIcon = (CircleCheckIconModule).CircleCheckIcon;
object.IconComponent = CircleCheckIcon;
object.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object]);
}
}
}
}
function WebAuthnDeleteActionSheet({credential, deleting, setDeleting}) { // fn#101084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:531, offset: 0x02207a1e, size: 663 bytes, params: 2, frame: 29
const styles = useStyles();
const closure = onPress_101085;
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const mI3CoL = (require(1244) /* metro dependency 1244: indexNative */).t.mI3CoL;
const object = {};
object.keyName = credential.name;
const ActionSheetCloseButton = (require(6806) /* metro dependency 6806: ActionSheetCloseButtonNative */).ActionSheetCloseButton;
const items2 = [<BottomSheetTitleHeader title={Reflect.apply(formatToPlainString, intl, [mI3CoL,
object])} trailing={<ActionSheetCloseButton onPress={closure} />} />];
const image = <Image source={importDefault(13257) /* metro dependency 13257 */} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const string = intl.string;
const IfTbc1 = (require(1244) /* metro dependency 1244: indexNative */).t.IfTbc1;
items2[1] = <View style={styles.content}>{image}<Text variant="heading-md/normal" style={styles.subtitle}>{Reflect.apply(string,
intl, [IfTbc1])}</Text></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <View><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['lqK//z'])} onPress={closure} variant="primary" grow /></View>;
items2[3] = <View><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.zYOk0f)} onPress={onPress_101086} variant="destructive" disabled={deleting} loading={deleting} grow /></View>;
return (
<BottomSheet contentStyles={styles.sheetContent} bodyStyles={styles.sheetBody}>
{items2}
</BottomSheet>
);
}
function WebAuthnDeleteActionSheetOnPress() { // fn#101085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:629, owner: WebAuthnDeleteActionSheet.onPress, offset: 0x02207cb5, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function WebAuthnDeleteActionSheetOnPress_101086() { // fn#101086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:1309, owner: WebAuthnDeleteActionSheet.onPress, offset: 0x02207cda, size: 119 bytes, params: 1, frame: 14
setDeleting(true);
onPress_101085();
const webAuthnActionCreatorsModule = require(5084) /* metro dependency 5084: WebAuthnActionCreators */;
let value = webAuthnActionCreatorsModule.deleteWebAuthnCredential(credential);
value = value.then(_fun101087);
value = value.catch(function(a0) {
var defaultImport = importDefault(dependencyMap[14]);
var object = {key: 'WEBAUTHN_CREDENTIAL_DELETE_ERROR_TOAST_KEY', content: a0.message,
icon: importDefault(dependencyMap[17])};
object.IconComponent = require(dependencyMap[18]).WarningIcon;
object.iconColor = 'icon-feedback-critical';
defaultImport.open(object);
});
value.finally(function() {
setDeleting(false);
});
}
function _fun101087() { // fn#101087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13446:1377, offset: 0x02207d51, size: 156 bytes, params: 1, frame: 18
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'WEBAUTHN_CREDENTIAL_DELETE_SUCCESS_TOAST_KEY'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const ZnkeXs = (require(1244) /* metro dependency 1244: indexNative */).t.ZnkeXs;
object2.content = Reflect.apply(string, intl, [ZnkeXs]);
object2.icon = importDefault(11111) /* metro dependency 11111 */;
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
object2.IconComponent = CircleCheckIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
}
global.__d(_fun101083, 13256, [31, 27, 33, 4501, 697, 4080, 6275, 6758, 1244, 6806, 13257, 4573, 4578, 5084, 3857,
11111, 4073, 9149, 8129,
2]) /* metro module 13256, dependencies: [31, 27, 33, 4501, 697, 4080, 6275, 6758, 1244, 6806, 13257, 4573, 4578, 5084, 3857, 11111, 4073, 9149, 8129, 2] */;
@@ -1,77 +1,98 @@
/* Metro module 13247; source: modules/webauthn/native/WebAuthnScreens.tsx; dependencies: [13244, 33, 13248, 1244, 13255, 5282, 13250, 13260, 13261, 13264, 13265, 2] */
import PasskeyUpsellView from './nav_steps/PasskeyUpsellView.tsx'; /* Metro dependency 13248 */
import PasskeyInitStep from './nav_steps/PasskeyInitStep.tsx'; /* Metro dependency 13255 */
import WebAuthnEditStep from './nav_steps/WebAuthnEditStep.tsx'; /* Metro dependency 13260 */
import WebAuthnRegisterStep from './nav_steps/WebAuthnRegisterStep.tsx'; /* Metro dependency 13261 */
import WebAuthnNameStep from './nav_steps/WebAuthnNameStep.tsx'; /* Metro dependency 13264 */
import WebAuthnSuccessStep from './nav_steps/WebAuthnSuccessStep.tsx'; /* Metro dependency 13265 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as WebAuthnConstantsModule from '../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
function _fun101028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:6, offset: 0x0220532d, size: 145 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/WebAuthnScreens.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/WebAuthnScreens.tsx');
exports.getScreens = getScreens_101029;
}
function getScreens_101029({isModal}) { // fn#101029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:227, offset: 0x022053be, size: 593 bytes, params: 2, frame: 22
var r5;
var moduleValue;
var moduleValue2;
const object = {};
const MODAL_UPSELL = WebAuthnScreens.MODAL_UPSELL;
object[MODAL_UPSELL] = {title: '', render: render_101030};
const INIT = WebAuthnScreens.INIT;
const object3 = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object3.title = Reflect.apply(string, intl, [t['0N1s81']]);
object3.render = render_101031;
if (isModal) {
moduleValue = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
r5 = moduleValue.getHeaderCloseButton((importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal);
} else {
r5 = undefined;
}
object3.headerLeft = r5;
object[INIT] = object3;
const EDIT = WebAuthnScreens.EDIT;
string = intl.string;
const UBBwwF = t.UBBwwF;
object[EDIT] = {render: render_101032, title: Reflect.apply(string, intl, [UBBwwF])};
const REGISTER = WebAuthnScreens.REGISTER;
object[REGISTER] = {render: render_101033, title: intl.string(t.vrOCCk)};
const NAME = WebAuthnScreens.NAME;
const object6 = {render: render_101034};
object6.title = intl.string(t['cY/IOu']);
if (isModal) {
moduleValue2 = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
r5 = moduleValue2.getHeaderCloseButton((importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal);
} else {
r5 = undefined;
}
object6.headerLeft = r5;
object[NAME] = object6;
const SUCCESS = WebAuthnScreens.SUCCESS;
const object7 = {render: render_101035};
object7.title = intl.string(t['7wPZln']);
object[SUCCESS] = object7;
return object;
function getScreens_101029Render() { // fn#101030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:301, owner: getScreens_101029.render, offset: 0x0220560f, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(PasskeyUpsellView);
}
function getScreens_101029Render_101031() { // fn#101031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:384, owner: getScreens_101029.render, offset: 0x02205636, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(PasskeyInitStep);
}
function getScreens_101029Render_101032(a0) { // fn#101032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:502, owner: getScreens_101029.render, offset: 0x0220565d, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => <Component {...a0} />)(WebAuthnEditStep);
}
function getScreens_101029Render_101033() { // fn#101033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:589, owner: getScreens_101029.render, offset: 0x0220568e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(WebAuthnRegisterStep);
}
function getScreens_101029Render_101034(a0) { // fn#101034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:669, owner: getScreens_101029.render, offset: 0x01d6deff, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => <Component {...a0} />)(WebAuthnNameStep);
}
function getScreens_101029Render_101035() { // fn#101035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:840, owner: getScreens_101029.render, offset: 0x022056b5, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(WebAuthnSuccessStep);
}
function getScreens_101029({isModal}) { // fn#101029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:227, offset: 0x022053be, size: 593 bytes, params: 2, frame: 22
var r5;
var moduleValue;
var moduleValue2;
const object2 = {};
const MODAL_UPSELL = WebAuthnScreens.MODAL_UPSELL;
object2[MODAL_UPSELL] = {title: '', render: render_101030};
const INIT = WebAuthnScreens.INIT;
const object4 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object4.title = Reflect.apply(string, intl, [t['0N1s81']]);
object4.render = render_101031;
if (isModal) {
moduleValue = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
r5 = moduleValue.getHeaderCloseButton((importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal);
} else {
r5 = undefined;
}
object4.headerLeft = r5;
object2[INIT] = object4;
const EDIT = WebAuthnScreens.EDIT;
string = intl.string;
const UBBwwF = t.UBBwwF;
object2[EDIT] = {render: render_101032, title: Reflect.apply(string, intl, [UBBwwF])};
const REGISTER = WebAuthnScreens.REGISTER;
object2[REGISTER] = {render: render_101033, title: intl.string(t.vrOCCk)};
const NAME = WebAuthnScreens.NAME;
const object5 = {render: render_101034};
object5.title = intl.string(t['cY/IOu']);
if (isModal) {
moduleValue2 = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
r5 = moduleValue2.getHeaderCloseButton((importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal);
} else {
r5 = undefined;
}
object5.headerLeft = r5;
object2[NAME] = object5;
const SUCCESS = WebAuthnScreens.SUCCESS;
const object8 = {render: render_101035};
object8.title = intl.string(t['7wPZln']);
object2[SUCCESS] = object8;
return object2;
}
function getScreens_101029Render() { // fn#101030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:301, owner: getScreens_101029.render, offset: 0x0220560f, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(importDefault(13248) /* metro dependency 13248: PasskeyUpsellView */);
}
function getScreens_101029Render_101032(a0) { // fn#101032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:502, owner: getScreens_101029.render, offset: 0x0220565d, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(13260) /* metro dependency 13260: WebAuthnEditStep */);
}
function getScreens_101029Render_101033() { // fn#101033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:589, owner: getScreens_101029.render, offset: 0x0220568e, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(importDefault(13261) /* metro dependency 13261: WebAuthnRegisterStep */);
}
function getScreens_101029Render_101035() { // fn#101035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13437:840, owner: getScreens_101029.render, offset: 0x022056b5, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(importDefault(13265) /* metro dependency 13265: WebAuthnSuccessStep */);
}
global.__d(_fun101028, 13247, [13244, 33, 13248, 1244, 13255, 5282, 13250, 13260, 13261, 13264, 13265,
2]) /* metro module 13247, dependencies: [13244, 33, 13248, 1244, 13255, 5282, 13250, 13260, 13261, 13264, 13265, 2] */;
@@ -1,215 +1,231 @@
/* Metro module 13255; source: modules/webauthn/native/nav_steps/PasskeyInitStep.tsx; dependencies: [57, 31, 27, 13243, 13244, 33, 4501, 697, 566, 13245, 4573, 1244, 6261, 8341, 4071, 4080, 13256, 1962, 9646, 6231, 6238, 13258, 1484, 5084, 8980, 5277, 7972, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import WebAuthnStore from '../../WebAuthnStore.tsx'; /* Metro dependency 13243 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as TrashIconModule from '../../../../design/components/Icon/native/redesign/generated/TrashIcon.tsx'; /* Metro dependency 4071 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ButtonGroupNativeModule from '../../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as NativeModule from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as IconButtonNativeModule from '../../../../design/components/Button/native/IconButton.native.tsx'; /* Metro dependency 8341 */
import * as PencilIconModule from '../../../../design/components/Icon/native/redesign/generated/PencilIcon.tsx'; /* Metro dependency 9646 */
import * as WebAuthnConstantsModule from '../../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
function _fun101070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:6, offset: 0x02206f52, size: 521 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.Image;
const env0_6 = value.View;
const webAuthnStore = importDefault(13243) /* metro dependency 13243: WebAuthnStore */;
const env0_8 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object5 = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'stretch', 'justifyContent': 'space-between'};
object = {};
const object2 = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'stretch', 'justifyContent': 'space-between'};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.marginLeft = PX_16;
object2.marginLeft = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object5.marginRight = PX_16;
object2.marginRight = PX_16;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.marginTop = PX_8;
object3.container = object5;
object2.marginTop = PX_8;
object.container = object2;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.upsellContainer = {marginTop: PX_16, alignItems: 'center'};
const object6 = {};
object.upsellContainer = {marginTop: PX_16, alignItems: 'center'};
const object4 = {};
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
object6.color = TEXT_SUBTLE;
object4.color = TEXT_SUBTLE;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.marginTop = PX_16;
object6.textAlign = 'center';
object3.upsellText = object6;
object4.marginTop = PX_16;
object4.textAlign = 'center';
object.upsellText = object4;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.iconButtonGroup = {flexDirection: 'row', paddingVertical: PX_8};
object3.keychainImage = {'height': 125, 'width': 161};
const env0_11 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/PasskeyInitStep.tsx');
object.iconButtonGroup = {flexDirection: 'row', paddingVertical: PX_8};
object.keychainImage = {'height': 125, 'width': 161};
const env0_11 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/nav_steps/PasskeyInitStep.tsx');
exports.default = PasskeyInitStep;
}
function CredentialList({navigation}) { // fn#101071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:693, offset: 0x0220715b, size: 490 bytes, params: 2, frame: 23
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items2;
var env0_3Binding = undefined;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
const credentials = Reflect.apply(useStateFromStoresObject, fluxModule, [[WebAuthnStore], function() {
var object = {};
object.credentials = WebAuthnStore.getCredentials();
return object;
}]).credentials;
const styles = useStyles();
var [env0_2, env0_3] = env0_3Binding(env0_4.useState(false), 2);
if (credentials.length === 0) {
var viewBindingProps = {style: styles.upsellContainer};
items2 = [<Image source={importDefault(13245) /* metro dependency 13245 */} style={styles.keychainImage} />];
items2[1] = ((Text) => <Text variant="text-md/normal" style={styles.upsellText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.FSNwFW)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
function CredentialList({navigation}) { // fn#101071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:693, offset: 0x0220715b, size: 490 bytes, params: 2, frame: 23
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items2;
var env0_3Binding = undefined;
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const credentials = Reflect.apply(useStateFromStoresObject, FluxModule, [[WebAuthnStore], function() {
var object = {};
object.credentials = WebAuthnStore.getCredentials();
return object;
}]).credentials;
const styles = useStyles();
var [env0_2, env0_3] = env0_3Binding(ReactModule.useState(false), 2);
if (credentials.length === 0) {
var viewBindingProps = {style: styles.upsellContainer};
items2 = [
<Image source={importDefault(13245) /* metro dependency 13245 */} style={styles.keychainImage} />,
];
items2[1] = ((Text) => <Text variant="text-md/normal" style={styles.upsellText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.FSNwFW)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
return (
<View {...viewBindingProps}>
{items2}
</View>
);
}
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
return (
<View {...viewBindingProps}>
{items2}
</View>
<TableRowGroup
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4RIqrQ'])}
hasIcons={false}
>
{credentials.map(_fun101076)}
</TableRowGroup>
);
function credentialTrailer(a0) { // fn#101072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1097, owner: CredentialList.credentialTrailer, offset: 0x02207345, size: 422 bytes, params: 2, frame: 28
const env0_0 = a0;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const IconButton = (IconButtonNativeModule).IconButton;
const object2 = {variant: 'secondary'};
const TrashIcon = (TrashIconModule).TrashIcon;
const TEXT_FEEDBACK_CRITICAL = (Native).colors.TEXT_FEEDBACK_CRITICAL;
object2.icon = <TrashIcon color={TEXT_FEEDBACK_CRITICAL} />;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const N86XcP = (IndexNativeModule).t.N86XcP;
object2.accessibilityLabel = Reflect.apply(string, intl, [N86XcP]);
object2.size = 'sm';
object2.disabled = env0_2;
object2.loading = env0_2;
object2.onPress = onPress_101073;
const iconButton = <IconButton {...object2} />;
const PencilIcon = (PencilIconModule).PencilIcon;
return (
<ButtonGroup style={styles.iconButtonGroup}>
{iconButton}
<IconButton
variant="secondary"
icon={<PencilIcon />}
accessibilityLabel={intl.string((IndexNativeModule).t.bt75uw)}
size="sm"
disabled={env0_2}
loading={env0_2}
onPress={onPress_101074}
/>
</ButtonGroup>
);
function credentialTrailerOnPress() { // fn#101073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1406, owner: CredentialList.credentialTrailer.onPress, offset: 0x022074eb, size: 115 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[15]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[17]);
value = value(dependencyMap[16], dependencyMap.paths);
return Reflect.apply(openLazy, defaultImport, [value, 'WEBAUTHN_DELETE_SHEET_KEY', {credential: env0_0,
deleting: env1_2, setDeleting: env1_3}]);
}
function credentialTrailerOnPress_101074() { // fn#101074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1695, owner: CredentialList.credentialTrailer.onPress, offset: 0x0220755e, size: 49 bytes, params: 1, frame: 14
const navigationBinding = navigation;
const push = navigationBinding.push;
const EDIT = WebAuthnScreens.EDIT;
Reflect.apply(push, navigationBinding, [EDIT, {credential: env0_0}]);
}
}
function _fun101076(a0) { // fn#101076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1846, offset: 0x022075a9, size: 196 bytes, params: 2, frame: 23
var r5;
var intl;
var format;
var property;
let value = environment.__proto__;
const TableRow = (TableRowNativeModule).TableRow;
const tableRowProps = {label: a0.name, trailing: credentialTrailer(a0)};
const last_used = a0.last_used;
const value3 = null;
if (value3 != last_used) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
format = intl.format;
property = (require(1244) /* metro dependency 1244: indexNative */).t['7JgxF5'];
value = require(13258) /* metro dependency 13258: AuthSessionsUtils */;
value = Reflect.apply(format, intl, [property, {lastUsed: value.formatDate(a0.last_used)}]);
r5 = value;
} else {
r5 = value3;
}
tableRowProps.subLabel = r5;
return <TableRow {...tableRowProps} key={a0.id} />;
}
}
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<TableRowGroup
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4RIqrQ'])}
hasIcons={false}
>
{credentials.map(_fun101076)}
</TableRowGroup>
);
}
function PasskeyInitStep(a0) { // fn#101077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2141, offset: 0x0220766d, size: 286 bytes, params: 2, frame: 21
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
throw undefined;
}
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const styles = useStyles();
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
env0_4.useEffect(_fun101079, [Reflect.apply(useStateFromStoresObject, fluxModule, [[WebAuthnStore], function() {
var object = {};
object.hasFetchedCredentials = WebAuthnStore.hasFetchedCredentials();
return object;
}]).hasFetchedCredentials]);
env0_4.useLayoutEffect(_fun101080, [value2]);
const Form = (require(7972) /* metro dependency 7972: native */).Form;
return (
<Form>
<View style={styles.container}>
<CredentialList navigation={value2} />
</View>
</Form>
);
}
function credentialTrailer(a0) { // fn#101072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1097, owner: CredentialList.credentialTrailer, offset: 0x02207345, size: 422 bytes, params: 2, frame: 28
const env0_0 = a0;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
const object = {variant: 'secondary'};
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
object.icon = <TrashIcon color={TEXT_FEEDBACK_CRITICAL} />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const N86XcP = (require(1244) /* metro dependency 1244: indexNative */).t.N86XcP;
object.accessibilityLabel = Reflect.apply(string, intl, [N86XcP]);
object.size = 'sm';
object.disabled = env0_2;
object.loading = env0_2;
object.onPress = onPress_101073;
const iconButton = <IconButton {...object} />;
const PencilIcon = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
return (
<ButtonGroup style={styles.iconButtonGroup}>
{iconButton}
<IconButton
variant="secondary"
icon={<PencilIcon />}
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bt75uw)}
size="sm"
disabled={env0_2}
loading={env0_2}
onPress={onPress_101074}
/>
</ButtonGroup>
);
}
function _fun101076(a0) { // fn#101076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1846, offset: 0x022075a9, size: 196 bytes, params: 2, frame: 23
var r5;
var intl;
var format;
var property;
let value = environment.__proto__;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {label: a0.name, trailing: credentialTrailer(a0)};
const last_used = a0.last_used;
const value3 = null;
if (value3 != last_used) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
format = intl.format;
property = (require(1244) /* metro dependency 1244: indexNative */).t['7JgxF5'];
value = require(13258) /* metro dependency 13258: AuthSessionsUtils */;
value = Reflect.apply(format, intl, [property, {lastUsed: value.formatDate(a0.last_used)}]);
r5 = value;
} else {
r5 = value3;
}
tableRowProps.subLabel = r5;
return <TableRow {...tableRowProps} key={a0.id} />;
}
function _fun101079() { // fn#101079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2347, offset: 0x022077a5, size: 49 bytes, params: 1, frame: 11
var value;
if (!hasFetchedCredentials) {
value = environment.__proto__;
value = require(5084) /* metro dependency 5084: WebAuthnActionCreators */;
value.fetchWebAuthnCredentials();
}
}
function _fun101080() { // fn#101080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2417, offset: 0x022077d6, size: 38 bytes, params: 1, frame: 12
const binding = env0_0;
binding.setOptions({headerRight: headerRight_101081});
}
function credentialTrailerOnPress() { // fn#101073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1406, owner: CredentialList.credentialTrailer.onPress, offset: 0x022074eb, size: 115 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[15]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[17]);
value = value(dependencyMap[16], dependencyMap.paths);
return Reflect.apply(openLazy, defaultImport, [value, 'WEBAUTHN_DELETE_SHEET_KEY', {credential: env0_0,
deleting: env1_2, setDeleting: env1_3}]);
}
function credentialTrailerOnPress_101074() { // fn#101074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:1695, owner: CredentialList.credentialTrailer.onPress, offset: 0x0220755e, size: 49 bytes, params: 1, frame: 14
const navigationBinding = navigation;
const push = navigationBinding.push;
const EDIT = WebAuthnScreens.EDIT;
Reflect.apply(push, navigationBinding, [EDIT, {credential: env0_0}]);
}
function headerRight_101081() { // fn#101081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2448, offset: 0x022077fc, size: 147 bytes, params: 1, frame: 18
var HeaderActionButton;
var intl;
if ((require(8980) /* metro dependency 8980: MFAUtils */).hasWebAuthn) {
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
function PasskeyInitStep(a0) { // fn#101077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2141, offset: 0x0220766d, size: 286 bytes, params: 2, frame: 21
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
throw undefined;
}
const value2 = (UseNavigationNativeModule).useNavigation();
const styles = useStyles();
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
ReactModule.useEffect(_fun101079, [Reflect.apply(useStateFromStoresObject, FluxModule, [[WebAuthnStore], function() {
var object = {};
object.hasFetchedCredentials = WebAuthnStore.hasFetchedCredentials();
return object;
}]).hasFetchedCredentials]);
ReactModule.useLayoutEffect(_fun101080, [value2]);
const Form = (NativeModule).Form;
return (
<HeaderActionButton
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OYkgVk)}
onPress={onPress_101082}
foregroundRipple
/>
<Form>
<View style={styles.container}>
<CredentialList navigation={value2} />
</View>
</Form>
);
function _fun101079() { // fn#101079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2347, offset: 0x022077a5, size: 49 bytes, params: 1, frame: 11
var value;
if (!hasFetchedCredentials) {
value = environment.__proto__;
value = require(5084) /* metro dependency 5084: WebAuthnActionCreators */;
value.fetchWebAuthnCredentials();
}
}
function _fun101080() { // fn#101080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2417, offset: 0x022077d6, size: 38 bytes, params: 1, frame: 12
const binding = env0_0;
binding.setOptions({headerRight: headerRight_101081});
function headerRight_101081() { // fn#101081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2448, offset: 0x022077fc, size: 147 bytes, params: 1, frame: 18
var HeaderActionButton;
var intl;
if ((require(8980) /* metro dependency 8980: MFAUtils */).hasWebAuthn) {
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OYkgVk)}
onPress={onPress_101082}
foregroundRipple
/>
);
}
function headerRight_101081OnPress() { // fn#101082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2568, owner: headerRight_101081.onPress, offset: 0x0220788f, size: 34 bytes, params: 1, frame: 11
const binding = env2_0;
const push = binding.push;
const REGISTER = WebAuthnScreens.REGISTER;
Reflect.apply(push, binding, [REGISTER]);
}
}
}
}
}
function headerRight_101081OnPress() { // fn#101082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13445:2568, owner: headerRight_101081.onPress, offset: 0x0220788f, size: 34 bytes, params: 1, frame: 11
const binding = env2_0;
const push = binding.push;
const REGISTER = WebAuthnScreens.REGISTER;
Reflect.apply(push, binding, [REGISTER]);
}
global.__d(_fun101070, 13255, [57, 31, 27, 13243, 13244, 33, 4501, 697, 566, 13245, 4573, 1244, 6261, 8341, 4071,
4080, 13256, 1962, 9646, 6231, 6238, 13258, 1484, 5084, 8980, 5277, 7972,
2]) /* metro module 13255, dependencies: [57, 31, 27, 13243, 13244, 33, 4501, 697, 566, 13245, 4573, 1244, 6261, 8341, 4071, 4080, 13256, 1962, 9646, 6231, 6238, 13258, 1484, 5084, 8980, 5277, 7972, 2] */;
@@ -1,168 +1,249 @@
/* Metro module 13248; source: modules/webauthn/native/nav_steps/PasskeyUpsellView.tsx; dependencies: [57, 31, 27, 13244, 661, 1376, 33, 4501, 697, 1484, 1244, 13249, 13250, 5282, 1948, 6618, 13253, 4573, 477, 6766, 4578, 8978, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import HelpdeskUtils from '../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import NativeCeremonies from '../NativeCeremonies.tsx'; /* Metro dependency 8978 */
import PasskeyUpsellManager from '../PasskeyUpsellManager.tsx'; /* Metro dependency 13249 */
import PasskeyUpsellActionCreators from '../PasskeyUpsellActionCreators.tsx'; /* Metro dependency 13250 */
import Module13253 from '../../../../by-id/module-13253.js'; /* Metro dependency 13253 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DismissibleContentConstantsModule from '../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NavigatorHeaderNativeModule from '../../../../design/components/Navigator/native/NavigatorHeader.native.tsx'; /* Metro dependency 5282 */
import * as SafeAreaViewModule from '../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TextWithIOSLinkWorkaroundModule from '../../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as WebAuthnConstantsModule from '../../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
function _fun101036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:6, offset: 0x022056dc, size: 730 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.View;
const env0_6 = value.Image;
const env0_7 = value.ScrollView;
const env0_8 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
const env0_9 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_10 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {'flex': 1, 'flexDirection': 'column', backgroundColor: BACKGROUND_BASE_LOW};
object.container = {'flex': 1, 'flexDirection': 'column', backgroundColor: BACKGROUND_BASE_LOW};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.scrollViewContainer = {'flexGrow': 1, 'justifyContent': 'space-between', paddingHorizontal: PX_16};
object.scrollViewContainer = {'flexGrow': 1, 'justifyContent': 'space-between', paddingHorizontal: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.headerContainer = {'alignItems': 'center', 'justifyContent': 'center', gap: PX_16};
object2.headerImage = {'height': 190, 'width': 220, 'resizeMode': 'contain'};
object2.headerText = {textAlign: 'center'};
const object3 = {};
object.headerContainer = {'alignItems': 'center', 'justifyContent': 'center', gap: PX_16};
object.headerImage = {'height': 190, 'width': 220, 'resizeMode': 'contain'};
object.headerText = {textAlign: 'center'};
const object5 = {};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object3.backgroundColor = BACKGROUND_BASE_LOWEST;
object5.backgroundColor = BACKGROUND_BASE_LOWEST;
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object3.width = PX_32;
object5.width = PX_32;
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object3.height = PX_32;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.circleIcon = object3;
const object4 = {};
object5.height = PX_32;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.circleIcon = object5;
const object6 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.gap = PX_24;
object6.gap = PX_24;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.marginLeft = PX_8;
object6.marginLeft = PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.marginRight = PX_8;
object2.listContainer = object4;
object6.marginRight = PX_8;
object.listContainer = object6;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.row = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center', gap: PX_8};
object2.text = {flex: 1};
object.row = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center', gap: PX_8};
object.text = {flex: 1};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.buttonContainer = {gap: PX_16, alignItems: 'center'};
const env0_13 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/PasskeyUpsellView.tsx');
object.buttonContainer = {gap: PX_16, alignItems: 'center'};
const env0_13 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/nav_steps/PasskeyUpsellView.tsx');
exports.default = PasskeyUpsellView;
function PasskeyUpsellView() { // fn#101037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1169, offset: 0x022059b6, size: 1426 bytes, params: 1, frame: 40
const value2 = (UseNavigationNativeModule).useNavigation();
const styles = useStyles();
let useState = ReactModule.useState;
const value3 = Reflect.apply(useState, ReactModule, ['']);
const value4 = Module00057(value3, 2);
value4[0];
const env0_1 = value4[1];
useState = ReactModule.useState;
const value5 = Module00057(Reflect.apply(useState, ReactModule, [false]), 2);
const property = value5[0];
const env0_2 = value5[1];
const onPress_1010392 = onPress_101039;
ReactModule.useLayoutEffect(_fun101040, [value2]);
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const SETTING_UP_TWO_FACTOR = HelpdeskArticles.SETTING_UP_TWO_FACTOR;
const value6 = Reflect.apply(getArticleURL, defaultImport, [SETTING_UP_TWO_FACTOR]);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const items3 = [
<Image source={Module13253} style={styles.headerImage} />,
];
const Text = (TextModule).Text;
let headerText = styles.headerText;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const CjleBl = t.CjleBl;
items3[1] = (
<Text
accessibilityRole="header"
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={headerText}
>
{Reflect.apply(string, intl, [CjleBl])}
</Text>
);
headerText = styles.headerText;
const isIOS2 = (PlatformUtilsModule).isIOS();
string = intl.string;
items3[2] = (
<Text
variant="heading-md/normal"
color="text-default"
style={headerText}
>
{isIOS2 ? Reflect.apply(string, intl, [t['7yxR9t']]) : Reflect.apply(string, intl, [t.d6uxJy])}
</Text>
);
const items2 = [
<View style={styles.headerContainer}>
{items3}
</View>,
];
let row = styles.row;
const view = <View style={styles.circleIcon} />;
let text = styles.text;
string = intl.string;
const HtqVkj = (IndexNativeModule).t.HtqVkj;
const view2 = (
<View style={row}>
{view}
<Text
variant="heading-md/normal"
color="text-default"
style={text}
>
{Reflect.apply(string, intl, [HtqVkj])}
</Text>
</View>
);
row = styles.row;
const view3 = <View style={styles.circleIcon} />;
text = styles.text;
const isIOS3 = (PlatformUtilsModule).isIOS();
string = intl.string;
items2[1] = (
<View style={styles.listContainer}>
{view2}
<View style={row}>
{view3}
<Text
variant="heading-md/normal"
color="text-default"
style={text}
>
{isIOS3 ? Reflect.apply(string, intl, [t.U409I8]) : Reflect.apply(string, intl, [t.uYfqlo])}
</Text>
</View>
</View>
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
const format = intl.format;
const OeGXVv = (IndexNativeModule).t.OeGXVv;
const items6 = [
<TextWithIOSLinkWorkaround variant="text-sm/semibold" color="text-brand">
{Reflect.apply(format, intl, [OeGXVv, {learnMoreLink: value6}])}
</TextWithIOSLinkWorkaround>,
];
const Button = (ButtonNativeModule).Button;
string = intl.string;
items6[1] = (
<Button
text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl, [t.NIFmCJ])}
onPress={onPress_101041}
size="lg"
disabled={property}
loading={property}
grow
/>
);
string = intl.string;
items6[2] = (
<Button
text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl, [t['7J6/nG']])}
onPress={onPress_1010392}
size="lg"
variant="secondary"
grow
/>
);
items2[2] = (
<View style={styles.buttonContainer}>
{items6}
</View>
);
return (
<SafeAreaPaddingView bottom style={styles.container}>
<ScrollView contentContainerStyle={styles.scrollViewContainer}>
{items2}
</ScrollView>
</SafeAreaPaddingView>
);
function PasskeyUpsellViewOnRegisterSuccess(a0) { // fn#101038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1332, owner: PasskeyUpsellView.onRegisterSuccess, offset: 0x02205f48, size: 111 bytes, params: 2, frame: 19
const binding = env0_0;
const push = binding.push;
const value = environment.__proto__;
const NAME = WebAuthnScreens.NAME;
const object = {};
copyDataProperties(object, a0, undefined);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object['name'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8H5RmH']);
Reflect.apply(push, binding, [NAME, object]);
}
function PasskeyUpsellViewOnPress() { // fn#101039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1416, owner: PasskeyUpsellView.onPress, offset: 0x02205fb7, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = PasskeyUpsellManager;
const markDismissed = defaultImport.markDismissed;
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
Reflect.apply(markDismissed, defaultImport, [USER_DISMISS]);
(PasskeyUpsellActionCreators).closePasskeyUpsellModal();
}
function _fun101040() { // fn#101040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1515, offset: 0x02205ffd, size: 67 bytes, params: 1, frame: 15
const binding = env0_0;
const setOptions = binding.setOptions;
const getHeaderCloseButton = NavigatorHeaderNativeModule.getHeaderCloseButton;
Reflect.apply(setOptions, binding, [{headerLeft: Reflect.apply(getHeaderCloseButton, NavigatorHeaderNativeModule,
[onPress_101039])}]);
}
function PasskeyUpsellViewOnPress_101041() { // fn#101041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:3015, owner: PasskeyUpsellView.onPress, offset: 0x02206040, size: 103 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = PasskeyUpsellManager;
const markDismissed = defaultImport.markDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
Reflect.apply(markDismissed, defaultImport, [TAKE_ACTION]);
(NativeCeremonies).registerPasskey({setRegistering: env0_2,
setError: env0_1, onRegisterSuccess: PasskeyUpsellViewOnRegisterSuccess});
}
}
}
function PasskeyUpsellView() { // fn#101037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1169, offset: 0x022059b6, size: 1426 bytes, params: 1, frame: 40
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const styles = useStyles();
const binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, ['']);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
value4[0];
const env0_1 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property = value5[0];
const env0_2 = value5[1];
const closure = onPress_101039;
binding.useLayoutEffect(_fun101040, [value2]);
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const SETTING_UP_TWO_FACTOR = HelpdeskArticles.SETTING_UP_TWO_FACTOR;
const value6 = Reflect.apply(getArticleURL, defaultImport, [SETTING_UP_TWO_FACTOR]);
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const items3 = [<Image source={importDefault(13253) /* metro dependency 13253 */} style={styles.headerImage} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let headerText = styles.headerText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const CjleBl = t.CjleBl;
items3[1] = <Text accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary" style={headerText}>{Reflect.apply(string,
intl, [CjleBl])}</Text>;
headerText = styles.headerText;
const isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
string = intl.string;
items3[2] = <Text variant="heading-md/normal" color="text-default" style={headerText}>{isIOS2 ? Reflect.apply(string,
intl, [t['7yxR9t']]) : Reflect.apply(string, intl, [t.d6uxJy])}</Text>;
const items2 = [<View style={styles.headerContainer}>{items3}</View>];
let row = styles.row;
const view = <View style={styles.circleIcon} />;
let text = styles.text;
string = intl.string;
const HtqVkj = (require(1244) /* metro dependency 1244: indexNative */).t.HtqVkj;
const view2 = <View style={row}>{view}<Text variant="heading-md/normal" color="text-default" style={text}>{Reflect.apply(string,
intl, [HtqVkj])}</Text></View>;
row = styles.row;
const view3 = <View style={styles.circleIcon} />;
text = styles.text;
const isIOS3 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
string = intl.string;
items2[1] = <View style={styles.listContainer}>{view2}<View style={row}>{view3}<Text variant="heading-md/normal" color="text-default" style={text}>{isIOS3 ? Reflect.apply(string,
intl, [t.U409I8]) : Reflect.apply(string, intl, [t.uYfqlo])}</Text></View></View>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const format = intl.format;
const OeGXVv = (require(1244) /* metro dependency 1244: indexNative */).t.OeGXVv;
const items6 = [<TextWithIOSLinkWorkaround variant="text-sm/semibold" color="text-brand">{Reflect.apply(format,
intl, [OeGXVv, {learnMoreLink: value6}])}</TextWithIOSLinkWorkaround>];
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items6[1] = <Button text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl,
[t.NIFmCJ])} onPress={onPress_101041} size="lg" disabled={property} loading={property} grow />;
string = intl.string;
items6[2] = <Button text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl,
[t['7J6/nG']])} onPress={closure} size="lg" variant="secondary" grow />;
items2[2] = <View style={styles.buttonContainer}>{items6}</View>;
return (
<SafeAreaPaddingView bottom style={styles.container}>
<ScrollView contentContainerStyle={styles.scrollViewContainer}>
{items2}
</ScrollView>
</SafeAreaPaddingView>
);
}
function PasskeyUpsellViewOnRegisterSuccess(a0) { // fn#101038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1332, owner: PasskeyUpsellView.onRegisterSuccess, offset: 0x02205f48, size: 111 bytes, params: 2, frame: 19
const binding = env0_0;
const push = binding.push;
const value = environment.__proto__;
const NAME = WebAuthnScreens.NAME;
const object2 = {};
copyDataProperties(object2, a0, undefined);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2['name'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8H5RmH']);
Reflect.apply(push, binding, [NAME, object2]);
}
function PasskeyUpsellViewOnPress() { // fn#101039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1416, owner: PasskeyUpsellView.onPress, offset: 0x02205fb7, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = importDefault(13249) /* metro dependency 13249: PasskeyUpsellManager */;
const markDismissed = defaultImport.markDismissed;
const USER_DISMISS = ContentDismissActionType.USER_DISMISS;
Reflect.apply(markDismissed, defaultImport, [USER_DISMISS]);
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal();
}
function _fun101040() { // fn#101040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:1515, offset: 0x02205ffd, size: 67 bytes, params: 1, frame: 15
const binding = env0_0;
const setOptions = binding.setOptions;
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
const getHeaderCloseButton = navigatorHeaderNativeModule.getHeaderCloseButton;
Reflect.apply(setOptions, binding, [{headerLeft: Reflect.apply(getHeaderCloseButton, navigatorHeaderNativeModule,
[onPress_101039])}]);
}
function PasskeyUpsellViewOnPress_101041() { // fn#101041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13438:3015, owner: PasskeyUpsellView.onPress, offset: 0x02206040, size: 103 bytes, params: 1, frame: 14
const value = environment.__proto__;
const defaultImport = importDefault(13249) /* metro dependency 13249: PasskeyUpsellManager */;
const markDismissed = defaultImport.markDismissed;
const TAKE_ACTION = ContentDismissActionType.TAKE_ACTION;
Reflect.apply(markDismissed, defaultImport, [TAKE_ACTION]);
(importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerPasskey({setRegistering: env0_2,
setError: env0_1, onRegisterSuccess: PasskeyUpsellViewOnRegisterSuccess});
}
global.__d(_fun101036, 13248, [57, 31, 27, 13244, 661, 1376, 33, 4501, 697, 1484, 1244, 13249, 13250, 5282, 1948,
6618, 13253, 4573, 477, 6766, 4578, 8978,
2]) /* metro module 13248, dependencies: [57, 31, 27, 13244, 661, 1376, 33, 4501, 697, 1484, 1244, 13249, 13250, 5282, 1948, 6618, 13253, 4573, 477, 6766, 4578, 8978, 2] */;
@@ -1,113 +1,138 @@
/* Metro module 13260; source: modules/webauthn/native/nav_steps/WebAuthnEditStep.tsx; dependencies: [57, 31, 33, 4501, 697, 1484, 5282, 7972, 1244, 1305, 4578, 5084, 3857, 11111, 4073, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import ToastActionCreators from '../../../toast/native/ToastActionCreators.tsx'; /* Metro dependency 3857 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CircleCheckIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleCheckIcon.tsx'; /* Metro dependency 4073 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as WebAuthnActionCreatorsModule from '../../WebAuthnActionCreators.tsx'; /* Metro dependency 5084 */
import * as NativeModule2 from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
function _fun101114(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:6, offset: 0x022085a9, size: 258 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.inputField = {marginBottom: PX_16};
object.inputField = {marginBottom: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.form = {paddingHorizontal: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnEditStep.tsx');
object.form = {paddingHorizontal: PX_16};
const env0_7 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnEditStep.tsx');
exports.default = EditCredentialModal;
function EditCredentialModal({credential}) { // fn#101115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:359, offset: 0x022086ab, size: 579 bytes, params: 2, frame: 29
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [false]);
const value4 = Module00057(value3, 2);
const property = value4[0];
const env0_2 = value4[1];
useState = binding.useState;
const value5 = Module00057(Reflect.apply(useState, binding, ['']), 2);
const property2 = value5[0];
const property3 = value5[1];
useState = binding.useState;
const value6 = Module00057(Reflect.apply(useState, binding, [null]), 2);
const property4 = value6[0];
var env0_4 = value6[1];
binding.useLayoutEffect(_fun101116, [value2]);
const Form = (NativeModule2).Form;
const FormInput = (NativeModule2).FormInput;
const formInputProps = {showTopContainer: false, value: property2, onChange: property3, style: styles.inputField,
error: property4};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formInputProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Jzd+z/']);
formInputProps.placeholder = credential.name;
formInputProps.disabled = property;
const ClearButtonVisibility = (NativeModule).ClearButtonVisibility;
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
formInputProps.clearButtonVisibility = WITH_CONTENT;
formInputProps.autoFocus = true;
formInputProps.showBorder = true;
formInputProps.required = true;
formInputProps.large = true;
const items2 = [
<FormInput {...formInputProps} />,
];
const FormDivider = (NativeModule2).FormDivider;
items2[1] = <FormDivider />;
const Button = (ButtonNativeModule).Button;
items2[2] = (
<Button
onPress={onPress_101118}
disabled={property || property2 === ''}
loading={property}
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7asiR3'])}
grow
/>
);
return (
<Form style={styles.form}>
{items2}
</Form>
);
function _fun101116() { // fn#101116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:588, offset: 0x022088ee, size: 72 bytes, params: 1, frame: 15
var environment;
const binding = env0_1;
const setOptions = binding.setOptions;
const object = {};
const value = environment.__proto__;
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton(_fun101117);
Reflect.apply(setOptions, binding, [object]);
function _fun101117() { // fn#101117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:647, offset: 0x02208936, size: 21 bytes, params: 1, frame: 9
env1_1.pop();
}
}
function EditCredentialModalOnPress() { // fn#101118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1043, owner: EditCredentialModal.onPress, offset: 0x0220894b, size: 132 bytes, params: 1, frame: 15
env0_2(true);
env0_4(null);
let value = WebAuthnActionCreatorsModule.editWebAuthnCredential(credential.id, Module00057);
value = value.then(_fun101119);
value = value.catch(_fun101120);
value.finally(_fun101121);
function _fun101119() { // fn#101119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1108, offset: 0x022089cf, size: 173 bytes, params: 1, frame: 18
const defaultImport = ToastActionCreators;
const open = defaultImport.open;
const object = {key: 'WEBAUTHN_CREDENTIAL_EDIT_SUCCESS_TOAST_KEY'};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const IV13mH = (IndexNativeModule).t.IV13mH;
object.content = Reflect.apply(string, intl, [IV13mH]);
object.icon = importDefault(11111) /* metro dependency 11111 */;
const CircleCheckIcon = (CircleCheckIconModule).CircleCheckIcon;
object.IconComponent = CircleCheckIcon;
object.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object]);
env1_1.popToTop();
}
function _fun101120({body}) { // fn#101120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1329, offset: 0x02208a7c, size: 29 bytes, params: 2, frame: 11
env1_4(body.message);
}
function _fun101121() { // fn#101121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1363, offset: 0x010d036b, size: 18 bytes, params: 1, frame: 11
env1_2(false);
}
}
}
}
function EditCredentialModal({credential}) { // fn#101115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:359, offset: 0x022086ab, size: 579 bytes, params: 2, frame: 29
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
const property = value4[0];
const env0_2 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, ['']), 2);
const property2 = value5[0];
const property3 = value5[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property4 = value6[0];
var env0_4 = value6[1];
binding.useLayoutEffect(_fun101116, [value2]);
const Form = (require(7972) /* metro dependency 7972: native */).Form;
const FormInput = (require(7972) /* metro dependency 7972: native */).FormInput;
const formInputProps = {showTopContainer: false, value: property2, onChange: property3, style: styles.inputField,
error: property4};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formInputProps.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Jzd+z/']);
formInputProps.placeholder = credential.name;
formInputProps.disabled = property;
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
formInputProps.clearButtonVisibility = WITH_CONTENT;
formInputProps.autoFocus = true;
formInputProps.showBorder = true;
formInputProps.required = true;
formInputProps.large = true;
const items2 = [<FormInput {...formInputProps} />];
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
items2[1] = <FormDivider />;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Button onPress={onPress_101118} disabled={property || property2 === ''} loading={property} size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7asiR3'])} grow />;
return (
<Form style={styles.form}>
{items2}
</Form>
);
}
function _fun101116() { // fn#101116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:588, offset: 0x022088ee, size: 72 bytes, params: 1, frame: 15
var environment;
const binding = env0_1;
const setOptions = binding.setOptions;
const object2 = {};
const value = environment.__proto__;
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderBackButton(_fun101117);
Reflect.apply(setOptions, binding, [object2]);
}
function EditCredentialModalOnPress() { // fn#101118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1043, owner: EditCredentialModal.onPress, offset: 0x0220894b, size: 132 bytes, params: 1, frame: 15
env0_2(true);
env0_4(null);
const webAuthnActionCreatorsModule = require(5084) /* metro dependency 5084: WebAuthnActionCreators */;
let value = webAuthnActionCreatorsModule.editWebAuthnCredential(credential.id, env0_3);
value = value.then(_fun101119);
value = value.catch(_fun101120);
value.finally(_fun101121);
}
function _fun101117() { // fn#101117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:647, offset: 0x02208936, size: 21 bytes, params: 1, frame: 9
env1_1.pop();
}
function _fun101119() { // fn#101119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1108, offset: 0x022089cf, size: 173 bytes, params: 1, frame: 18
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
const open = defaultImport.open;
const object2 = {key: 'WEBAUTHN_CREDENTIAL_EDIT_SUCCESS_TOAST_KEY'};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const IV13mH = (require(1244) /* metro dependency 1244: indexNative */).t.IV13mH;
object2.content = Reflect.apply(string, intl, [IV13mH]);
object2.icon = importDefault(11111) /* metro dependency 11111 */;
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
object2.IconComponent = CircleCheckIcon;
object2.iconColor = 'status-positive';
Reflect.apply(open, defaultImport, [object2]);
env1_1.popToTop();
}
function _fun101120({body}) { // fn#101120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13450:1329, offset: 0x02208a7c, size: 29 bytes, params: 2, frame: 11
env1_4(body.message);
}
global.__d(_fun101114, 13260, [57, 31, 33, 4501, 697, 1484, 5282, 7972, 1244, 1305, 4578, 5084, 3857, 11111, 4073,
2]) /* metro module 13260, dependencies: [57, 31, 33, 4501, 697, 1484, 5282, 7972, 1244, 1305, 4578, 5084, 3857, 11111, 4073, 2] */;
@@ -1,279 +1,302 @@
/* Metro module 13264; source: modules/webauthn/native/nav_steps/WebAuthnNameStep.tsx; dependencies: [5, 57, 31, 27, 13244, 33, 4501, 1484, 5084, 3857, 1244, 11111, 4073, 7972, 1305, 4578, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NativeModule2 from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as WebAuthnConstantsModule from '../../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
function _fun101133(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:6, offset: 0x02209334, size: 266 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const env0_7 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
const value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({margin: {margin: 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnNameStep.tsx');
const env0_10 = (CreateStylesModule).createStyles({margin: {margin: 16}});
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnNameStep.tsx');
exports.default = WebAuthnNameStep;
}
function WebAuthnNameStep({ticket, credential, name}) { // fn#101134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:338, offset: 0x0220943e, size: 633 bytes, params: 2, frame: 29
const styles = useStyles();
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = undefined;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_3 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property2 = value4[0];
var env0_4 = value4[1];
useState = binding.useState;
const value5 = '';
const value7 = env0_4(Reflect.apply(useState, binding, [name ?? value5]), 2);
const property3 = value7[0];
const property4 = value7[1];
const value8 = _fun101135();
const Form = (require(7972) /* metro dependency 7972: native */).Form;
const FormInput = (require(7972) /* metro dependency 7972: native */).FormInput;
const object = {showTopContainer: false, value: property3, onChange: property4};
let margin = styles.margin;
object.style = margin;
object.error = property2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Jzd+z/']);
object.placeholder = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['I/sJtJ']);
object.disabled = property;
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
object.clearButtonVisibility = WITH_CONTENT;
object.autoFocus = true;
object.showBorder = true;
object.required = true;
object.large = true;
const items2 = [<FormInput {...object} />];
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
items2[1] = <FormDivider />;
margin = styles.margin;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <View style={margin}><Button onPress={value8} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5dyZ1S'])} disabled={value5 === property3} size="lg" /></View>;
return (
<Form>
{items2}
</Form>
);
}
function _fun101135() { // fn#101135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:566, offset: 0x022096b7, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun101137);
return _fun101138;
}
function* _fun101137() { // fn#101137, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:586, offset: 0x022096e6, size: 356 bytes, params: 1, frame: 24
var value;
var value2;
var binding;
var value3;
var binding2;
var property;
var value4;
var finishRegisterWebAuthnCredential;
var value5;
var value6;
var value7;
var binding3;
var value8;
var open;
var object2;
var binding4;
var intl;
var string;
var t;
var j3d5qI;
var CircleCheckIcon;
var push;
var SUCCESS;
var error;
var body;
var message;
exceptionSkip29: while (true) {
exceptionLanding29: while (true) {
exceptionSkip21: while (true) {
exceptionLanding21: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__.__proto__;
try {
try {
binding = env2_3;
} catch (error) {
break exceptionLanding21;
function WebAuthnNameStep({ticket, credential, name}) { // fn#101134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:338, offset: 0x0220943e, size: 633 bytes, params: 2, frame: 29
const styles = useStyles();
const env0_2 = (UseNavigationNativeModule).useNavigation();
const binding = undefined;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_3 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, [null]), 2);
const property2 = value4[0];
var env0_4 = value4[1];
useState = binding.useState;
const value5 = '';
const value7 = env0_4(Reflect.apply(useState, binding, [name ?? value5]), 2);
const property3 = value7[0];
const property4 = value7[1];
const value8 = _fun101135();
const Form = (NativeModule2).Form;
const FormInput = (NativeModule2).FormInput;
const object2 = {showTopContainer: false, value: property3, onChange: property4};
let margin = styles.margin;
object2.style = margin;
object2.error = property2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Jzd+z/']);
object2.placeholder = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['I/sJtJ']);
object2.disabled = property;
const ClearButtonVisibility = (NativeModule).ClearButtonVisibility;
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
object2.clearButtonVisibility = WITH_CONTENT;
object2.autoFocus = true;
object2.showBorder = true;
object2.required = true;
object2.large = true;
const items2 = [
<FormInput {...object2} />,
];
const FormDivider = (NativeModule2).FormDivider;
items2[1] = <FormDivider />;
margin = styles.margin;
const Button = (ButtonNativeModule).Button;
items2[2] = (
<View style={margin}>
<Button
onPress={value8}
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5dyZ1S'])}
disabled={value5 === property3}
size="lg"
/>
</View>
);
return (
<Form>
{items2}
</Form>
);
function _fun101135() { // fn#101135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:566, offset: 0x022096b7, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun101137);
return _fun101138;
function* _fun101137() { // fn#101137, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:586, offset: 0x022096e6, size: 356 bytes, params: 1, frame: 24
var value;
var value2;
var binding;
var value3;
var binding2;
var property;
var value4;
var finishRegisterWebAuthnCredential;
var value5;
var value6;
var value7;
var binding3;
var value8;
var open;
var object;
var binding4;
var intl;
var string;
var t;
var j3d5qI;
var CircleCheckIcon;
var push;
var SUCCESS;
var error;
var body;
var message;
exceptionSkip29: while (true) {
exceptionLanding29: while (true) {
exceptionSkip21: while (true) {
exceptionLanding21: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__.__proto__;
try {
try {
binding = env2_3;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
binding(true);
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
value3 = environment.__proto__.__proto__.__proto__;
try {
try {
binding = env3_0;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
binding2 = env3_2;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
property = binding2[8];
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
finishRegisterWebAuthnCredential = value4.finishRegisterWebAuthnCredential;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
binding = env2_5;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
value5 = Reflect.apply(finishRegisterWebAuthnCredential, value4, [binding, require,
importDefault]);
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
yield value5;
try {
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
if (value7) {
env2_3(false);
return value6;
}
env2_3(false);
binding = env3_1;
binding3 = env3_2;
value8 = binding(binding3[9]);
open = value8.open;
object = {key: 'WEBAUTHN_CREDENTIAL_REGISTER_SUCCESS_TOAST_KEY'};
binding4 = env3_0;
intl = binding4(binding3[10]).intl;
string = intl.string;
t = binding4(binding3[10]).t;
j3d5qI = t.j3d5qI;
object.content = Reflect.apply(string, intl, [j3d5qI]);
object.icon = binding(binding3[11]);
CircleCheckIcon = binding4(binding3[12]).CircleCheckIcon;
object.IconComponent = CircleCheckIcon;
object.iconColor = 'status-success';
Reflect.apply(open, value8, [object]);
push = dependencyMap.push;
SUCCESS = env3_7.SUCCESS;
Reflect.apply(push, dependencyMap, [SUCCESS, {}]);
return undefined;
break exceptionSkip21;
}
try {
binding = env2_4;
} catch (error) {
break exceptionLanding29;
}
try {
body = error.body;
} catch (error) {
break exceptionLanding29;
}
try {
message = body.message;
} catch (error) {
break exceptionLanding29;
}
try {
binding(message);
} catch (error) {
break exceptionLanding29;
}
env2_3(false);
return undefined;
break exceptionSkip21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
binding(true);
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
value3 = environment.__proto__.__proto__.__proto__;
try {
try {
binding = env3_0;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
binding2 = env3_2;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
property = binding2[8];
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
finishRegisterWebAuthnCredential = value4.finishRegisterWebAuthnCredential;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
binding = env2_5;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
try {
try {
value5 = Reflect.apply(finishRegisterWebAuthnCredential, value4, [binding, require,
importDefault]);
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
yield value5;
try {
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding21;
}
} catch (error) {
break exceptionLanding29;
}
if (value7) {
env2_3(false);
return value6;
break exceptionSkip29;
}
env2_3(false);
binding = env3_1;
binding3 = env3_2;
value8 = binding(binding3[9]);
open = value8.open;
object2 = {key: 'WEBAUTHN_CREDENTIAL_REGISTER_SUCCESS_TOAST_KEY'};
binding4 = env3_0;
intl = binding4(binding3[10]).intl;
string = intl.string;
t = binding4(binding3[10]).t;
j3d5qI = t.j3d5qI;
object2.content = Reflect.apply(string, intl, [j3d5qI]);
object2.icon = binding(binding3[11]);
CircleCheckIcon = binding4(binding3[12]).CircleCheckIcon;
object2.IconComponent = CircleCheckIcon;
object2.iconColor = 'status-success';
Reflect.apply(open, value8, [object2]);
push = dependencyMap.push;
SUCCESS = env3_7.SUCCESS;
Reflect.apply(push, dependencyMap, [SUCCESS, {}]);
return undefined;
break exceptionSkip21;
throw error;
break exceptionSkip29;
}
try {
binding = env2_4;
} catch (error) {
break exceptionLanding29;
}
try {
body = error.body;
} catch (error) {
break exceptionLanding29;
}
try {
message = body.message;
} catch (error) {
break exceptionLanding29;
}
try {
binding(message);
} catch (error) {
break exceptionLanding29;
}
env2_3(false);
return undefined;
break exceptionSkip21;
}
break exceptionSkip29;
function _fun101138() { // fn#101138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13454:943, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
env2_3(false);
throw error;
break exceptionSkip29;
}
}
global.__d(_fun101133, 13264, [5, 57, 31, 27, 13244, 33, 4501, 1484, 5084, 3857, 1244, 11111, 4073, 7972, 1305,
4578,
2]) /* metro module 13264, dependencies: [5, 57, 31, 27, 13244, 33, 4501, 1484, 5084, 3857, 1244, 11111, 4073, 7972, 1305, 4578, 2] */;
@@ -1,159 +1,181 @@
/* Metro module 13261; source: modules/webauthn/native/nav_steps/WebAuthnRegisterStep.tsx; dependencies: [57, 31, 27, 13244, 33, 4501, 697, 8978, 1244, 1305, 1484, 477, 6618, 13262, 4573, 6261, 4578, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as ButtonGroupNativeModule from '../../../../design/components/ButtonGroup/native/ButtonGroup.native.tsx'; /* Metro dependency 6261 */
import * as SafeAreaViewModule from '../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as WebAuthnConstantsModule from '../../WebAuthnConstants.tsx'; /* Metro dependency 13244 */
import * as KeyImageModule from '../../../mfa/native/components/KeyImage.tsx'; /* Metro dependency 13262 */
function _fun101122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:6, offset: 0x02208a99, size: 499 bytes, params: 8, frame: 25
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const env0_6 = (require(13244) /* metro dependency 13244: WebAuthnConstants */).WebAuthnScreens;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object5 = {};
const object2 = {};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_9 = Reflect.apply(createStyles, value, [{flexContainer: {'flex': 1, 'flexDirection': 'column',
'alignItems': 'stretch', 'justifyContent': 'space-between', 'marginLeft': 16, 'marginRight': 16,
'marginTop': 16}, centerFlex: {'display': 'flex', 'alignItems': 'center'}, margin: {'marginTop': 16,
'textAlign': 'center'}, radioItem: object5}]);
object4 = {PASSKEY_CREDENTIAL_MANAGER: 0};
object4[0] = 'PASSKEY_CREDENTIAL_MANAGER';
object4.PASSKEY_DEVICE = 1;
object4[1] = 'PASSKEY_DEVICE';
object4.OTHER_AND_ANDROID_NONDISCOVERABLE = 2;
object4[2] = 'OTHER_AND_ANDROID_NONDISCOVERABLE';
const object6 = {};
const PASSKEY_CREDENTIAL_MANAGER = object4.PASSKEY_CREDENTIAL_MANAGER;
object6[PASSKEY_CREDENTIAL_MANAGER] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerPasskey;
const PASSKEY_DEVICE = object4.PASSKEY_DEVICE;
object6[PASSKEY_DEVICE] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerAndroidDevicePasskey;
const OTHER_AND_ANDROID_NONDISCOVERABLE = object4.OTHER_AND_ANDROID_NONDISCOVERABLE;
object6[OTHER_AND_ANDROID_NONDISCOVERABLE] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerSecurityKey;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnRegisterStep.tsx');
'textAlign': 'center'}, radioItem: object2}]);
object = {PASSKEY_CREDENTIAL_MANAGER: 0};
object[0] = 'PASSKEY_CREDENTIAL_MANAGER';
object.PASSKEY_DEVICE = 1;
object[1] = 'PASSKEY_DEVICE';
object.OTHER_AND_ANDROID_NONDISCOVERABLE = 2;
object[2] = 'OTHER_AND_ANDROID_NONDISCOVERABLE';
const object3 = {};
const PASSKEY_CREDENTIAL_MANAGER = object.PASSKEY_CREDENTIAL_MANAGER;
object3[PASSKEY_CREDENTIAL_MANAGER] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerPasskey;
const PASSKEY_DEVICE = object.PASSKEY_DEVICE;
object3[PASSKEY_DEVICE] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerAndroidDevicePasskey;
const OTHER_AND_ANDROID_NONDISCOVERABLE = object.OTHER_AND_ANDROID_NONDISCOVERABLE;
object3[OTHER_AND_ANDROID_NONDISCOVERABLE] = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).registerSecurityKey;
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnRegisterStep.tsx');
exports.default = WebAuthnRegisterStep;
function AndroidPasskeyRadioGroup({authenticatorSelection, onChange, registering}) { // fn#101123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:927, offset: 0x02208c8c, size: 369 bytes, params: 2, frame: 23
const styles = useStyles();
let object = {};
const PASSKEY_CREDENTIAL_MANAGER = env0_10.PASSKEY_CREDENTIAL_MANAGER;
object.value = PASSKEY_CREDENTIAL_MANAGER;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JQbo8L = (require(1244) /* metro dependency 1244: indexNative */).t.JQbo8L;
object.name = Reflect.apply(string, intl, [JQbo8L]);
const items2 = [object];
object = {};
const PASSKEY_DEVICE = env0_10.PASSKEY_DEVICE;
object.value = PASSKEY_DEVICE;
string = intl.string;
const GjBNMg = (require(1244) /* metro dependency 1244: indexNative */).t.GjBNMg;
object.name = Reflect.apply(string, intl, [GjBNMg]);
items2[1] = object;
object = {};
const OTHER_AND_ANDROID_NONDISCOVERABLE = env0_10.OTHER_AND_ANDROID_NONDISCOVERABLE;
object.value = OTHER_AND_ANDROID_NONDISCOVERABLE;
object.name = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['OhC77+']);
items2[2] = object;
const RadioGroup = (NativeModule).RadioGroup;
const RadioGroup2 = (NativeModule).RadioGroup;
const Sizes = RadioGroup2.Sizes;
const LARGE = Sizes.LARGE;
return (
<RadioGroup
style={styles.radioItem}
options={items2}
onChange={function({value}) {
return onChange(value);
}}
value={authenticatorSelection}
disabled={registering}
size={LARGE}
withSpacing
/>
);
}
function WebAuthnRegisterStep() { // fn#101125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1525, offset: 0x02208e15, size: 878 bytes, params: 1, frame: 32
const Text = (TextModule).Text;
const value2 = (UseNavigationNativeModule).useNavigation();
const styles = useStyles();
let binding = ReactModule;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [false]);
const value4 = Module00057(value3, 2);
const property = value4[0];
const property2 = value4[1];
useState = binding.useState;
const value5 = Module00057(Reflect.apply(useState, binding, ['']), 2);
const property3 = value5[0];
const property4 = value5[1];
const isAndroid2 = (PlatformUtilsModule).isAndroid();
binding = env0_10;
const r8 = isAndroid2 ? binding.PASSKEY_CREDENTIAL_MANAGER : binding.OTHER_AND_ANDROID_NONDISCOVERABLE;
binding = ReactModule;
const [property5, property6] = Module00057(binding.useState(r8), 2);
const value8 = binding.useCallback(_fun101126, [value2]);
const env0_5 = binding.useMemo(_fun101127, [property5]);
const env0_6 = binding.useMemo(_fun101128, [value8, property4, property2]);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const KeyImage = (KeyImageModule).KeyImage;
const items2 = [
<KeyImage />,
];
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
items2[1] = (
<Text style={styles.margin} variant="text-md/normal">
{property ? Reflect.apply(string, intl, [t.aVMiX3]) : Reflect.apply(string, intl, [t.Lh5vTW])}
</Text>
);
items2[2] = property3 != null && <Text variant="text-md/normal" color="text-feedback-critical">{property3}</Text>;
const view = (
<View style={styles.centerFlex}>
{items2}
</View>
);
const r5 = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).shouldDisplayAndroidFidoSelector && <AndroidPasskeyRadioGroup authenticatorSelection={property5} registering={property} onChange={property6} />;
const ButtonGroup = (ButtonGroupNativeModule).ButtonGroup;
const Button = (ButtonNativeModule).Button;
string = intl.string;
return (
<SafeAreaPaddingView
bottom
left
right
style={styles.flexContainer}
>
{view}
{r5}
<ButtonGroup>
<Button
text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl, [t.oibaQa])}
disabled={property}
loading={property}
onPress={onPress_101129}
size="lg"
/>
</ButtonGroup>
</SafeAreaPaddingView>
);
function _fun101126(a0) { // fn#101126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1818, offset: 0x02209183, size: 38 bytes, params: 2, frame: 13
const binding = env0_0;
const push = binding.push;
const NAME = WebAuthnScreens.NAME;
Reflect.apply(push, binding, [NAME, a0]);
}
function _fun101127() { // fn#101127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1859, offset: 0x022091a9, size: 20 bytes, params: 1, frame: 2
return env1_11[Module00057];
}
function _fun101128() { // fn#101128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1887, offset: 0x022091bd, size: 34 bytes, params: 1, frame: 3
return {onRegisterSuccess: ReactModule, setError: env0_2, setRegistering: env0_1};
}
function WebAuthnRegisterStepOnPress() { // fn#101129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:2639, owner: WebAuthnRegisterStep.onPress, offset: 0x022091df, size: 20 bytes, params: 1, frame: 11
return env0_5(env0_6);
}
}
}
function AndroidPasskeyRadioGroup({authenticatorSelection, onChange, registering}) { // fn#101123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:927, offset: 0x02208c8c, size: 369 bytes, params: 2, frame: 23
const styles = useStyles();
let object2 = {};
const PASSKEY_CREDENTIAL_MANAGER = env0_10.PASSKEY_CREDENTIAL_MANAGER;
object2.value = PASSKEY_CREDENTIAL_MANAGER;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JQbo8L = (require(1244) /* metro dependency 1244: indexNative */).t.JQbo8L;
object2.name = Reflect.apply(string, intl, [JQbo8L]);
const items2 = [object2];
object2 = {};
const PASSKEY_DEVICE = env0_10.PASSKEY_DEVICE;
object2.value = PASSKEY_DEVICE;
string = intl.string;
const GjBNMg = (require(1244) /* metro dependency 1244: indexNative */).t.GjBNMg;
object2.name = Reflect.apply(string, intl, [GjBNMg]);
items2[1] = object2;
object2 = {};
const OTHER_AND_ANDROID_NONDISCOVERABLE = env0_10.OTHER_AND_ANDROID_NONDISCOVERABLE;
object2.value = OTHER_AND_ANDROID_NONDISCOVERABLE;
object2.name = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['OhC77+']);
items2[2] = object2;
const RadioGroup = (require(1305) /* metro dependency 1305: native */).RadioGroup;
const RadioGroup2 = (require(1305) /* metro dependency 1305: native */).RadioGroup;
const Sizes = RadioGroup2.Sizes;
const LARGE = Sizes.LARGE;
return (
<RadioGroup
style={styles.radioItem}
options={items2}
onChange={function({value}) {
return onChange(value);
}}
value={authenticatorSelection}
disabled={registering}
size={LARGE}
withSpacing
/>
);
}
function WebAuthnRegisterStep() { // fn#101125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1525, offset: 0x02208e15, size: 878 bytes, params: 1, frame: 32
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const styles = useStyles();
let binding = env0_4;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_3;
const value4 = binding2(value3, 2);
const property = value4[0];
const property2 = value4[1];
useState = binding.useState;
const value5 = binding2(Reflect.apply(useState, binding, ['']), 2);
const property3 = value5[0];
const property4 = value5[1];
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
binding = env0_10;
const r8 = isAndroid2 ? binding.PASSKEY_CREDENTIAL_MANAGER : binding.OTHER_AND_ANDROID_NONDISCOVERABLE;
binding = env0_4;
const [property5, property6] = env0_3(binding.useState(r8), 2);
const value8 = binding.useCallback(_fun101126, [value2]);
const env0_5 = binding.useMemo(_fun101127, [property5]);
const env0_6 = binding.useMemo(_fun101128, [value8, property4, property2]);
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const KeyImage = (require(13262) /* metro dependency 13262: KeyImage */).KeyImage;
const items2 = [<KeyImage />];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
items2[1] = <Text style={styles.margin} variant="text-md/normal">{property ? Reflect.apply(string, intl,
[t.aVMiX3]) : Reflect.apply(string, intl, [t.Lh5vTW])}</Text>;
items2[2] = property3 != null && <Text variant="text-md/normal" color="text-feedback-critical">{property3}</Text>;
const view = <View style={styles.centerFlex}>{items2}</View>;
const r5 = (importDefault(8978) /* metro dependency 8978: NativeCeremonies */).shouldDisplayAndroidFidoSelector && <AndroidPasskeyRadioGroup authenticatorSelection={property5} registering={property} onChange={property6} />;
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
return (
<SafeAreaPaddingView
bottom
left
right
style={styles.flexContainer}
>
{view}
{r5}
<ButtonGroup>
<Button
text={property ? Reflect.apply(string, intl, [t.wePEBF]) : Reflect.apply(string, intl, [t.oibaQa])}
disabled={property}
loading={property}
onPress={onPress_101129}
size="lg"
/>
</ButtonGroup>
</SafeAreaPaddingView>
);
}
function _fun101126(a0) { // fn#101126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1818, offset: 0x02209183, size: 38 bytes, params: 2, frame: 13
const binding = env0_0;
const push = binding.push;
const NAME = WebAuthnScreens.NAME;
Reflect.apply(push, binding, [NAME, a0]);
}
function _fun101127() { // fn#101127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1859, offset: 0x022091a9, size: 20 bytes, params: 1, frame: 2
return env1_11[env0_3];
}
function _fun101128() { // fn#101128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:1887, offset: 0x022091bd, size: 34 bytes, params: 1, frame: 3
return {onRegisterSuccess: env0_4, setError: env0_2, setRegistering: env0_1};
}
function WebAuthnRegisterStepOnPress() { // fn#101129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13451:2639, owner: WebAuthnRegisterStep.onPress, offset: 0x022091df, size: 20 bytes, params: 1, frame: 11
return env0_5(env0_6);
}
global.__d(_fun101122, 13261, [57, 31, 27, 13244, 33, 4501, 697, 8978, 1244, 1305, 1484, 477, 6618, 13262, 4573,
6261, 4578,
2]) /* metro module 13261, dependencies: [57, 31, 27, 13244, 33, 4501, 697, 8978, 1244, 1305, 1484, 477, 6618, 13262, 4573, 6261, 4578, 2] */;
@@ -1,41 +1,48 @@
/* Metro module 13265; source: modules/webauthn/native/nav_steps/WebAuthnSuccessStep.tsx; dependencies: [31, 33, 1484, 5282, 13250, 13266, 1244, 2] */
import PasskeyUpsellActionCreators from '../PasskeyUpsellActionCreators.tsx'; /* Metro dependency 13250 */
import UserSettingsAccountBackupCodes from '../../../user_settings/account/native/UserSettingsAccountBackupCodes.tsx'; /* Metro dependency 13266 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
function _fun101139(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:6, offset: 0x0220984a, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnSuccessStep.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/webauthn/native/nav_steps/WebAuthnSuccessStep.tsx');
exports.default = WebAuthnSuccessStep;
function WebAuthnSuccessStep() { // fn#101140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:221, offset: 0x022098d8, size: 166 bytes, params: 1, frame: 18
ReactModule.useLayoutEffect(_fun101141,
[(UseNavigationNativeModule).useNavigation()]);
const intl = (IndexNativeModule).intl;
return (
<UserSettingsAccountBackupCodes
onGenerate={null}
headerLabel={intl.format((IndexNativeModule).t.iVTs6i, {})}
/>
);
function _fun101141() { // fn#101141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:308, offset: 0x0220997e, size: 72 bytes, params: 1, frame: 15
var environment;
const binding = env0_0;
const setOptions = binding.setOptions;
const object = {};
const value = environment.__proto__;
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun101142);
Reflect.apply(setOptions, binding, [object]);
function _fun101142() { // fn#101142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:368, offset: 0x022099c6, size: 54 bytes, params: 1, frame: 11
let value = environment.__proto__;
env1_0.popToTop();
value = environment.__proto__.__proto__;
(PasskeyUpsellActionCreators).closePasskeyUpsellModal();
}
}
}
}
function WebAuthnSuccessStep() { // fn#101140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:221, offset: 0x022098d8, size: 166 bytes, params: 1, frame: 18
env0_3.useLayoutEffect(_fun101141,
[(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
const UserSettingsAccountBackupCodes = importDefault(13266) /* metro dependency 13266: UserSettingsAccountBackupCodes */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<UserSettingsAccountBackupCodes
onGenerate={null}
headerLabel={intl.format((require(1244) /* metro dependency 1244: indexNative */).t.iVTs6i, {})}
/>
);
}
function _fun101141() { // fn#101141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:308, offset: 0x0220997e, size: 72 bytes, params: 1, frame: 15
var environment;
const binding = env0_0;
const setOptions = binding.setOptions;
const object2 = {};
const value = environment.__proto__;
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun101142);
Reflect.apply(setOptions, binding, [object2]);
}
function _fun101142() { // fn#101142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13455:368, offset: 0x022099c6, size: 54 bytes, params: 1, frame: 11
let value = environment.__proto__;
env1_0.popToTop();
value = environment.__proto__.__proto__;
(importDefault(13250) /* metro dependency 13250: PasskeyUpsellActionCreators */).closePasskeyUpsellModal();
}
global.__d(_fun101139, 13265, [31, 33, 1484, 5282, 13250, 13266, 1244,
2]) /* metro module 13265, dependencies: [31, 33, 1484, 5282, 13250, 13266, 1244, 2] */;