Files
discord-decomp/sources/by-id/module-03893-ModuleNotFoundError.js
2026-07-28 01:06:53 +03:00

99 lines
5.4 KiB
JavaScript

/* Metro module 3893; source: unknown; dependencies: [7, 6, 15, 17, 18, 162, 27] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00162 from './module-00162.js'; /* Metro dependency 162 */
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun32102(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:6, offset: 0x0100c99c, size: 214 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Module00162;
ReactNativeModule.Platform;
const Error = global.Error;
value = value(Error);
exports.ModuleNotFoundError = _fun32107(value);
function _callSuper_32103(a0, a1, a2) { // fn#32103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:197, offset: 0x0100ca72, size: 100 bytes, params: 4, frame: 20
var r0;
var Reflect;
let value = a2;
const value3 = Module00017(a1);
if (_isNativeReflectConstruct_32104()) {
Reflect = global.Reflect;
value = Reflect.construct(value3, value || [], Module00017(a0).constructor);
r0 = value;
} else {
value = value3.apply(a0, value);
r0 = value;
}
return PossibleConstructorReturn(a0, r0);
}
function _isNativeReflectConstruct_32104() { // fn#32104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:328, offset: 0x0100cad6, size: 94 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_32104_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun32107(a0) { // fn#32107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:553, offset: 0x0100cb34, size: 40 bytes, params: 2, frame: 14
const ModuleNotFoundError2 = ModuleNotFoundError;
Inherits(ModuleNotFoundError2, a0);
return CreateClass(ModuleNotFoundError2);
function ModuleNotFoundError(a0) { // fn#32108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4032:565, offset: 0x0100cb5c, size: 329 bytes, params: 2, frame: 19
const binding = env1_1;
const value3 = undefined;
binding(this, ModuleNotFoundError);
const NativeUnimoduleProxy = NativeModules.NativeUnimoduleProxy;
const ExponentConstants = NativeUnimoduleProxy == null || NativeUnimoduleProxy.modulesConstants == null ? value3 : NativeUnimoduleProxy.modulesConstants.ExponentConstants;
const r4 = ExponentConstants != null ? ExponentConstants.appOwnership !== 'expo' ? 'expo' : 'expo-go' : 'react-native';
if (r4 === 'expo-go') {
return env1_2(_callSuper_32103(this, ModuleNotFoundError,
['NitroModules are not supported in Expo Go! Use EAS (`expo prebuild`) or eject to a bare workflow instead.']));
}
const items2 = [];
items2.push('Make sure react-native-nitro-modules/NitroModules is correctly autolinked (run `npx react-native config` to verify)');
items2.push('Make sure you enabled the new architecture (TurboModules) and CodeGen properly generated the "NativeNitroModules"/NitroModules specs. See https://github.com/reactwg/react-native-new-architecture/blob/main/docs/enable-apps.md');
items2.push('Make sure you are using react-native 0.75.0 or higher.');
items2.push('Make sure you rebuilt the app.');
if (r4 === 'expo') {
items2.push('Make sure you ran `expo prebuild`.');
}
items2.push('Make sure gradle is synced.');
return _callSuper_32103(this, ModuleNotFoundError,
['Failed to get NitroModules: The native "NitroModules" Turbo/Native-Module could not be found.\n* ' + items2.join('\n* '),
{cause: a0}]);
}
}
}
global.__d(_fun32102, 3893, [7, 6, 15, 17, 18, 162,
27]) /* metro module 3893, dependencies: [7, 6, 15, 17, 18, 162, 27] */;