/* Metro module 9209; source: lib/InviteQueue.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 672, 3, 7067, 4603, 5258, 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 var object2; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = importDefault(6) /* metro dependency 6 */; const env0_3 = importDefault(7) /* metro dependency 7 */; const env0_4 = importDefault(15) /* metro dependency 15 */; const env0_5 = importDefault(17) /* metro dependency 17 */; const env0_6 = importDefault(18) /* metro dependency 18 */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis; const SECOND = Millis.SECOND; const env0_8 = 1 * SECOND + 10; object2 = {GROUP_DM: 0}; object2[0] = 'GROUP_DM'; object2.USER = 1; object2[1] = 'USER'; object2.CHANNEL = 2; object2[2] = 'CHANNEL'; let value = importDefault(5258) /* metro dependency 5258: Queue */; value = _fun72061(value); value = new value(); (require(2) /* metro dependency 2 */).fileFinishedImporting('lib/InviteQueue.tsx'); exports.default = value; exports.InvitePropertiesType = object2; } 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 closure = InviteQueue; env0_6(closure, a0); return env0_3(closure, [{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 = importDefault(3) /* metro dependency 3: 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 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 _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 _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); } }