73 lines
4.1 KiB
TypeScript
73 lines
4.1 KiB
TypeScript
/* Metro module 4132; source: errors/APIError.tsx; dependencies: [7, 6, 15, 17, 18, 661, 1244, 507, 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 * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
|
|
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
|
|
function _fun34319(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4303:6, offset: 0x010525f6, size: 230 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const V8APIError = (HTTPUtilsModule).V8APIError;
|
|
const value = _fun34323(V8APIError);
|
|
(FileImportTrackerModule).fileFinishedImporting('errors/APIError.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_34320() { // fn#34320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4303:164, offset: 0x010526dc, 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_34320_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun34323(a0) { // fn#34323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4303:363, offset: 0x0105273a, size: 40 bytes, params: 2, frame: 14
|
|
const APIErrorWithDefaultMessage_343242 = APIErrorWithDefaultMessage_34324;
|
|
Inherits(APIErrorWithDefaultMessage_343242, a0);
|
|
return CreateClass(APIErrorWithDefaultMessage_343242);
|
|
function APIErrorWithDefaultMessage_34324(a0, a1) { // fn#34324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4303:375, offset: 0x00ff2665, size: 307 bytes, params: 3, frame: 23
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const value = environment.__proto__;
|
|
env1_3(this, APIErrorWithDefaultMessage_34324);
|
|
const items2 = [a0, a1];
|
|
items2[2] = a1 != null ? intl.formatToPlainString(t.aKRa0Q, {statusPageURL: Links.STATUS,
|
|
details: '' + a1}) : intl.formatToPlainString(t.aTVNes, {statusPageURL: Links.STATUS});
|
|
const value5 = env1_5(APIErrorWithDefaultMessage_34324);
|
|
return env1_4(this, _isNativeReflectConstruct_34320() ? global.Reflect.construct(value5, items2,
|
|
env1_5(this).constructor) : value5.apply(this, items2));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun34319, 4132, [7, 6, 15, 17, 18, 661, 1244, 507,
|
|
2]) /* metro module 4132, dependencies: [7, 6, 15, 17, 18, 661, 1244, 507, 2] */;
|