88 lines
4.9 KiB
TypeScript
88 lines
4.9 KiB
TypeScript
/* Metro module 4137; source: errors/AppliedGuildBoostError.tsx; dependencies: [6, 7, 15, 17, 18, 3826, 672, 1244, 3825, 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 Durations from '../utils/Durations.tsx'; /* Metro dependency 672 */
|
|
import V6OrEarlierAPIError from './V6OrEarlierAPIError.tsx'; /* Metro dependency 3825 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as DateUtilsModule from '../utils/DateUtils.tsx'; /* Metro dependency 3826 */
|
|
|
|
function _fun34341(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4308:6, offset: 0x01053828, size: 206 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = V6OrEarlierAPIError;
|
|
value = _fun34345(value);
|
|
(FileImportTrackerModule).fileFinishedImporting('errors/AppliedGuildBoostError.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_34342() { // fn#34342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4308:148, offset: 0x010538f6, 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_34342_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun34345(a0) { // fn#34345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4308:347, offset: 0x01053954, size: 70 bytes, params: 2, frame: 15
|
|
const AppliedGuildBoostError2 = AppliedGuildBoostError;
|
|
Inherits(AppliedGuildBoostError2, a0);
|
|
return CreateClass(AppliedGuildBoostError2, [{key: '_getMessageFromRateLimit', value: value_34347}]);
|
|
function AppliedGuildBoostError(a0, a1) { // fn#34346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4308:359, offset: 0x0105399a, size: 156 bytes, params: 3, frame: 20
|
|
let value = environment.__proto__;
|
|
env1_3(this, AppliedGuildBoostError);
|
|
const items2 = [a0, a1];
|
|
const value3 = env1_6(AppliedGuildBoostError);
|
|
value = env1_5(this, _isNativeReflectConstruct_34342() ? global.Reflect.construct(value3, items2,
|
|
env1_6(this).constructor) : value3.apply(this, items2));
|
|
if (value.status === 429) {
|
|
value.message = value._getMessageFromRateLimit(a0);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function value_34347({body}) { // fn#34347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4308:768, offset: 0x01053a36, size: 194 bytes, params: 2, frame: 18
|
|
const retry_after = body.retry_after;
|
|
let value = environment.__proto__;
|
|
const diffAsUnits = DateUtilsModule.diffAsUnits;
|
|
const Millis = (Durations).Millis;
|
|
const SECOND = Millis.SECOND;
|
|
value = Reflect.apply(diffAsUnits, DateUtilsModule, [0, retry_after * SECOND]);
|
|
const unitsAsStrings = DateUtilsModule.unitsAsStrings;
|
|
const t = (IndexNativeModule).t;
|
|
const WW9P57 = t.WW9P57;
|
|
const I7rYev = t.I7rYev;
|
|
return Reflect.apply(unitsAsStrings, DateUtilsModule, [value, {days: t['iXc/Ib'], hours: WW9P57, minutes: I7rYev}]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun34341, 4137, [6, 7, 15, 17, 18, 3826, 672, 1244, 3825,
|
|
2]) /* metro module 4137, dependencies: [6, 7, 15, 17, 18, 3826, 672, 1244, 3825, 2] */;
|