/* Metro module 9209; source: lib/InviteQueue.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 672, 3, 7067, 4603, 5258, 2] */ import Logger from '../modules/debug/Logger.tsx'; /* Metro dependency 3 */ 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 ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import Queue from '../utils/Queue.tsx'; /* Metro dependency 5258 */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun72057(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:6, offset: 0x01d385ae, size: 332 bytes, params: 8, frame: 21 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Millis = (Durations).Millis; const SECOND = Millis.SECOND; const env0_8 = 1 * SECOND + 10; object = {GROUP_DM: 0}; object[0] = 'GROUP_DM'; object.USER = 1; object[1] = 'USER'; object.CHANNEL = 2; object[2] = 'CHANNEL'; let value = Queue; value = _fun72061(value); value = new value(); (FileImportTrackerModule).fileFinishedImporting('lib/InviteQueue.tsx'); exports.default = value; exports.InvitePropertiesType = object; function _isNativeReflectConstruct_72058() { // fn#72058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:158, offset: 0x01d386fa, 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_72058_isNativeReflectConstruct = function() { return !!result; })(); } function _fun72061(a0) { // fn#72061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:489, offset: 0x01d3875c, size: 97 bytes, params: 2, frame: 16 const InviteQueue2 = InviteQueue; Inherits(InviteQueue2, a0); return CreateClass(InviteQueue2, [{key: '_sendInvite', value: value_72063}, {key: 'drain', value: value_72066}]); function InviteQueue() { // fn#72062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:501, offset: 0x01d387bd, size: 166 bytes, params: 1, frame: 19 const value = environment.__proto__; env1_2(this, InviteQueue); const defaultImport = Logger; const value3 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}}); const defaultImport2 = new defaultImport('InviteQueue'); const items2 = [defaultImport2 instanceof Object ? defaultImport2 : value3, env1_8]; const value6 = env1_5(InviteQueue); return env1_4(this, _isNativeReflectConstruct_72058() ? global.Reflect.construct(value6, items2, env1_5(this).constructor) : value6.apply(this, items2)); } function value_72063({id}, a1, a2, a3, a4) { // fn#72063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:797, offset: 0x01d38863, size: 91 bytes, params: 6, frame: 19 var environment; const env0_0 = a4; let value = environment.__proto__; value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */; value = value.sendInvite(id, a1, a2, a3); value.then(_fun72064, _fun72065); function _fun72064() { // fn#72064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:854, offset: 0x01d388be, size: 21 bytes, params: 1, frame: 13 return env0_0(null, true); } function _fun72065() { // fn#72065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:871, offset: 0x01d388d3, size: 21 bytes, params: 1, frame: 13 return env0_0(null, false); } } function value_72066(a0, a1) { // fn#72066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:909, offset: 0x01d388e8, size: 199 bytes, params: 3, frame: 21 var environment; const env0_1 = a0; const env0_2 = a1; const location = a0.location; const inviteAnalyticsMetadata = a0.inviteAnalyticsMetadata; const type = a0.type; let value = environment.__proto__; const GROUP_DM = env1_9.GROUP_DM; if (GROUP_DM === type) { this._sendInvite(a0.channel, a0.inviteKey, location, inviteAnalyticsMetadata, a1); } else if (env1_9.CHANNEL === type) { this._sendInvite(a0.channel, a0.inviteKey, location, inviteAnalyticsMetadata, a1); } else if (env1_9.USER === type) { value = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */; value = value.ensurePrivateChannel(a0.user.id); value.then(_fun72067, function() { return require(null, false); }); } function _fun72067(a0) { // fn#72067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9394:1124, offset: 0x01d389af, size: 94 bytes, params: 2, frame: 19 var binding; let value = environment.__proto__.__proto__; value = ChannelStore.getChannel(a0); if (value != null) { binding = env0_0; binding._sendInvite(value, env0_1.inviteKey, location, inviteAnalyticsMetadata, require); } else { require(null, false); } } } } } global.__d(_fun72057, 9209, [6, 7, 15, 17, 18, 1379, 672, 3, 7067, 4603, 5258, 2]) /* metro module 9209, dependencies: [6, 7, 15, 17, 18, 1379, 672, 3, 7067, 4603, 5258, 2] */;