Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,50 @@
|
||||
/* Metro module 13022; source: modules/rpc/server/commands/config.tsx; dependencies: [4135, 661, 8079, 8076, 694, 2] */
|
||||
function _fun99409(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13212:6, offset: 0x021c77f7, size: 191 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(4135) /* metro dependency 4135: Constants */;
|
||||
const env0_2 = value.TransportTypes;
|
||||
const RPC_AUTHENTICATED_SCOPE = value.RPC_AUTHENTICATED_SCOPE;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const RPCCommands = value.RPCCommands;
|
||||
const env0_3 = value.RPCErrors;
|
||||
object2 = {};
|
||||
const SET_CONFIG = RPCCommands.SET_CONFIG;
|
||||
object2[SET_CONFIG] = {scope: RPC_AUTHENTICATED_SCOPE, validation: validation_99410, handler: handler_99411};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/server/commands/config.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function validation_99410(a0) { // fn#99410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13212:231, offset: 0x021c78b6, size: 72 bytes, params: 2, frame: 13
|
||||
let value = (importDefault(8079) /* metro dependency 8079: createRpcJoiSchemaObject */)(a0);
|
||||
value = value.required();
|
||||
const keys = value.keys;
|
||||
const object2 = {};
|
||||
object2.use_interactive_pip = a0.boolean();
|
||||
return Reflect.apply(keys, value, [object2]);
|
||||
}
|
||||
|
||||
function handler_99411({socket, args}) { // fn#99411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13212:296, offset: 0x021c78fe, size: 333 bytes, params: 2, frame: 17
|
||||
var defaultImport2;
|
||||
const use_interactive_pip = args.use_interactive_pip;
|
||||
const transport = socket.transport;
|
||||
var value;
|
||||
const POST_MESSAGE = TransportTypes.POST_MESSAGE;
|
||||
if (transport !== POST_MESSAGE) {
|
||||
defaultImport2 = importDefault(8076) /* metro dependency 8076: RPCError */;
|
||||
({}).errorCode = RPCErrors.INVALID_COMMAND;
|
||||
value = 'command not available from "' + socket.transport + ' transport';
|
||||
value = new defaultImport2();
|
||||
throw value;
|
||||
}
|
||||
if (socket.application.id == null) {
|
||||
throw new (importDefault(8076) /* metro dependency 8076: RPCError */)({errorCode: RPCErrors.INVALID_COMMAND},
|
||||
'invalid application');
|
||||
}
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMBEDDED_ACTIVITY_SET_CONFIG',
|
||||
applicationId: socket.application.id, config: {useInteractivePIP: use_interactive_pip}});
|
||||
const Promise = global.Promise;
|
||||
return Promise.resolve({use_interactive_pip: use_interactive_pip});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user