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

+40 -33
View File
@@ -1,4 +1,9 @@
/* Metro module 8980; source: utils/MFAUtils.tsx; dependencies: [27, 1581, 8981, 1216, 2] */
import SentryUtilsNative from './SentryUtils.native.tsx'; /* Metro dependency 1216 */
import Module08981 from '../by-id/module-08981.js'; /* Metro dependency 8981 */
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 */
function _fun69993(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9165:6, offset: 0x01ceaa90, size: 301 bytes, params: 8, frame: 22
var r4;
var value6;
@@ -11,7 +16,7 @@ function _fun69993(global, require, importDefault, importAll, module, exports, d
let value = undefined;
const r10 = (window == null ? value : window.crypto) ?? (global.window == null ? value : global.window.msCrypto);
const r5 = r10 != null && 'getRandomValues' in r10 && 'Uint8Array' in global.window;
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
const NativeModules = (ReactNativeModule).NativeModules;
const DCDSecurityKeyManager = NativeModules.DCDSecurityKeyManager;
const value5 = DCDSecurityKeyManager != null;
if (value5) {
@@ -20,7 +25,7 @@ function _fun69993(global, require, importDefault, importAll, module, exports, d
} else {
r4 = value5;
}
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/MFAUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('utils/MFAUtils.tsx');
exports.hasCrypto = r5;
exports.hasWebAuthn = r4;
exports.generateTotpSecret = generateTotpSecret;
@@ -34,36 +39,38 @@ function _fun69993(global, require, importDefault, importAll, module, exports, d
};
exports.captureWebAuthnException = captureWebAuthnException;
return value;
function generateTotpSecret() { // fn#69995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9165:508, offset: 0x01ceabe9, size: 180 bytes, params: 1, frame: 15
const binding = env0_2;
const getRandomValues = binding.getRandomValues;
const Uint8Array = global.Uint8Array;
const value2 = Object.create(Uint8Array.prototype, {constructor: {value: Uint8Array}});
const uint8Array = new Uint8Array(20);
const value4 = Reflect.apply(getRandomValues, binding, [uint8Array instanceof Object ? uint8Array : value2]);
let value = Module08981;
value = value.encode(value4);
value = value.toString('utf8');
value = value.replace(RegExp('=', 'g'), '');
value = value.toLowerCase();
value = value.replace(RegExp('(\\w{4})', 'g'), '$1 ');
return value.trim();
}
function captureWebAuthnException(a0, a1) { // fn#69997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9165:1012, offset: 0x01cead0b, size: 108 bytes, params: 3, frame: 17
const value = undefined;
const defaultImport = SentryUtilsNative;
const captureException = defaultImport.captureException;
const object = {};
copyDataProperties(object, a1, undefined);
const object2 = {};
const value2 = a1 == null;
copyDataProperties(object2, value2 ? value : a1.tags, value2);
object2['app_context'] = 'webauthn';
object['tags'] = object2;
Reflect.apply(captureException, defaultImport, [a0, object]);
return value;
}
}
function generateTotpSecret() { // fn#69995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9165:508, offset: 0x01ceabe9, size: 180 bytes, params: 1, frame: 15
const binding = env0_2;
const getRandomValues = binding.getRandomValues;
const Uint8Array = global.Uint8Array;
const value2 = Object.create(Uint8Array.prototype, {constructor: {value: Uint8Array}});
const uint8Array = new Uint8Array(20);
const value4 = Reflect.apply(getRandomValues, binding, [uint8Array instanceof Object ? uint8Array : value2]);
let value = importDefault(8981) /* metro dependency 8981 */;
value = value.encode(value4);
value = value.toString('utf8');
value = value.replace(RegExp('=', 'g'), '');
value = value.toLowerCase();
value = value.replace(RegExp('(\\w{4})', 'g'), '$1 ');
return value.trim();
}
function captureWebAuthnException(a0, a1) { // fn#69997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9165:1012, offset: 0x01cead0b, size: 108 bytes, params: 3, frame: 17
const value = undefined;
const defaultImport = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
const captureException = defaultImport.captureException;
const object3 = {};
copyDataProperties(object3, a1, undefined);
const object4 = {};
const value2 = a1 == null;
copyDataProperties(object4, value2 ? value : a1.tags, value2);
object4['app_context'] = 'webauthn';
object3['tags'] = object4;
Reflect.apply(captureException, defaultImport, [a0, object3]);
return value;
}
global.__d(_fun69993, 8980, [27, 1581, 8981, 1216,
2]) /* metro module 8980, dependencies: [27, 1581, 8981, 1216, 2] */;