/* Metro module 13056; source: modules/rpc/server/commands/activities.tsx; dependencies: [5, 661, 13026, 13014, 8081, 7504, 8076, 13018, 7860, 2] */ import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */ import * as RPCHelpersModule from '../../RPCHelpers.tsx'; /* Metro dependency 8081 */ import * as ActivityInstanceConnectedParticipantsModule from '../../helpers/activityInstanceConnectedParticipants.tsx'; /* Metro dependency 13014 */ function _fun99687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13246:6, offset: 0x021d16e1, size: 301 bytes, params: 8, frame: 25 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ConstantsModule; const RPCCommands = value.RPCCommands; const env0_4 = value.RPCErrors; const env0_5 = value.ApplicationFlags; object = {}; const GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS = RPCCommands.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS; value = require(13026) /* metro dependency 13026: rpcSchema */; let createRPCCommand = value.createRPCCommand; const GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS2 = RPCCommands.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS; const activityInstanceConnectedParticipantsScope = (ActivityInstanceConnectedParticipantsModule).activityInstanceConnectedParticipantsScope; object[GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS] = Reflect.apply(createRPCCommand, value, [GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS2, {scope: activityInstanceConnectedParticipantsScope, handler: handler_99688}]); const REQUEST_PROXY_TICKET_REFRESH = RPCCommands.REQUEST_PROXY_TICKET_REFRESH; value = require(13026) /* metro dependency 13026: rpcSchema */; createRPCCommand = value.createRPCCommand; const REQUEST_PROXY_TICKET_REFRESH2 = RPCCommands.REQUEST_PROXY_TICKET_REFRESH; object[REQUEST_PROXY_TICKET_REFRESH] = Reflect.apply(createRPCCommand, value, [REQUEST_PROXY_TICKET_REFRESH2, {scope: activityInstanceConnectedParticipantsScope, handler: handler_99689}]); (FileImportTrackerModule).fileFinishedImporting('modules/rpc/server/commands/activities.tsx'); exports.default = object; function handler_99688({socket}) { // fn#99688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13246:357, offset: 0x021d180e, size: 75 bytes, params: 2, frame: 14 RPCHelpersModule.validatePostMessageTransport(socket.transport); return (ActivityInstanceConnectedParticipantsModule).activityInstanceConnectedParticipants(); } function handler_99689({socket}) { // fn#99689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13246:628, offset: 0x021d1859, size: 42 bytes, params: 2, frame: 11 return Module00005(_fun99691)(); function* _fun99691() { // fn#99691, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13246:645, offset: 0x021d188e, size: 364 bytes, params: 1, frame: 21 var id; var object; var prototype; var binding4; var property; var value11; var createProxyTicket; var value12; var proxyTicket; var value13; var value14; var error; var UNKNOWN_ERROR; var value15; if (false) { return undefined; } value = undefined; let binding = env2_0; const binding2 = env2_2; const value4 = binding(binding2[4]); value4.validatePostMessageTransport(require.transport); const value6 = binding(binding2[4]); const validateApplication = value6.validateApplication; let application = require.application; const value7 = Reflect.apply(validateApplication, value6, [application]); const value8 = binding(binding2[5]); const hasApplicationFlag = value8.hasApplicationFlag; application = require.application; const EMBEDDED = env2_5.EMBEDDED; const hasApplicationFlag2 = Reflect.apply(hasApplicationFlag, value8, [application, EMBEDDED]); binding = env2_1; const binding3 = env2_2; if (!hasApplicationFlag2) { value = binding(binding3[6]); value = new value({errorCode: env2_4.UNAUTHORIZED_FOR_APPLICATION}, 'This application cannot access this API'); throw value; } const value10 = binding(binding3[7])(); try { object = {}; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } try { binding = env2_0; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } try { binding4 = env2_2; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } try { property = binding4[8]; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } try { value11 = binding(property); } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } try { createProxyTicket = value11.createProxyTicket; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } try { value12 = value10 == null; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } if (value12) { id = value; } else { try { id = value10.id; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } } try { proxyTicket = Reflect.apply(createProxyTicket, value11, [value7, id]); } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } yield proxyTicket; try { value13 = undefined; value14 = false; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } if (value14) { return value13; } try { object.ticket = value13; } catch (error) { binding = env2_1; value = binding(env2_2[6]); object = {}; UNKNOWN_ERROR = env2_4.UNKNOWN_ERROR; object.errorCode = UNKNOWN_ERROR; prototype = value.prototype; value15 = Object.create(prototype, {constructor: {value: value}}); value = new value(object, 'Failed to create proxy ticket'); value = value instanceof Object ? value : value15; throw value; } return object; } } } global.__d(_fun99687, 13056, [5, 661, 13026, 13014, 8081, 7504, 8076, 13018, 7860, 2]) /* metro module 13056, dependencies: [5, 661, 13026, 13014, 8081, 7504, 8076, 13018, 7860, 2] */;