54 lines
2.9 KiB
TypeScript
54 lines
2.9 KiB
TypeScript
/* Metro module 8080; source: modules/rpc/native/server/NativeRPCHelpers.tsx; dependencies: [5, 4135, 661, 8081, 8076, 2] */
|
|
function _fun64748(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:6, offset: 0x01bb416f, size: 186 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = (require(4135) /* metro dependency 4135: Constants */).TransportTypes;
|
|
const env0_5 = (require(661) /* metro dependency 661: Constants */).RPCCloseCodes;
|
|
const value = _fun64749();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/rpc/native/server/NativeRPCHelpers.tsx');
|
|
exports.validateSocketClient = value;
|
|
exports.getDeprecatedVoiceSettings = getDeprecatedVoiceSettings;
|
|
exports.getVoiceSettings = getVoiceSettings;
|
|
}
|
|
|
|
function _fun64749() { // fn#64749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:157, offset: 0x01bb4229, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = env0_3(_fun64751);
|
|
return _fun64752;
|
|
}
|
|
|
|
function getDeprecatedVoiceSettings() { // fn#64753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:682, offset: 0x01bb4357, size: 45 bytes, params: 1, frame: 11
|
|
return (require(8081) /* metro dependency 8081: RPCHelpers */).getDeprecatedVoiceSettingsWithShortcut(function() {
|
|
return [];
|
|
});
|
|
}
|
|
|
|
function getVoiceSettings(a0) { // fn#64755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:762, offset: 0x01bb4384, size: 49 bytes, params: 2, frame: 13
|
|
return (require(8081) /* metro dependency 8081: RPCHelpers */).getVoiceSettingsWithShortcut(a0, function() {
|
|
return '';
|
|
});
|
|
}
|
|
|
|
function* _fun64751(a0, a1, a2) { // fn#64751, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8265:177, offset: 0x01bb4252, size: 261 bytes, params: 4, frame: 22
|
|
var Promise;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
env2_0(env2_2[3]).validateOriginAndUpdateSocket(a0, a1);
|
|
if (a2 == null) {
|
|
Promise = global.Promise;
|
|
return Promise.reject(new env2_1(env2_2[4])({closeCode: env2_5.INVALID_CLIENTID}, 'No Client ID Specified'));
|
|
}
|
|
const transport = a0.transport;
|
|
const POST_MESSAGE = env2_4.POST_MESSAGE;
|
|
const value4 = env2_0(env2_2[3]);
|
|
yield value4.processSocketThrottlers(a2, transport !== POST_MESSAGE, a0.abortController.signal);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
return env2_0(env2_2[3]).validateSocketApplication(a0, a2, a1);
|
|
}
|
|
|