/* Metro module 12492; source: modules/gateway/GatewayEncoding.tsx; dependencies: [6, 7, 12493, 4664, 2] */ 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ProcessArgsModule from '../../utils/ProcessArgs.tsx'; /* Metro dependency 4664 */ import * as GatewayEncodingErlpackEncodingNativeModule from './GatewayEncodingErlpackEncoding.native.tsx'; /* Metro dependency 12493 */ function _fun95136(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12682:6, offset: 0x0213328c, size: 192 bytes, params: 8, frame: 19 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = GatewayEncodingErlpackEncodingNativeModule; value = value.getErlpackEncoding(); const value2 = _fun95137(); let r1 = value === undefined ? value2 : value; const ProcessArgs = (ProcessArgsModule).ProcessArgs; r1 = ProcessArgs.isDiscordGatewayPlaintextSet() ? value2 : r1; (FileImportTrackerModule).fileFinishedImporting('modules/gateway/GatewayEncoding.tsx'); exports.default = r1; function _fun95137() { // fn#95137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12682:149, offset: 0x0213334c, size: 134 bytes, params: 1, frame: 15 return CreateClass(JSONEncoding, [{key: 'pack', value: function(a0) { var JSON = global.JSON; return JSON.stringify(a0); }}, {key: 'unpack', value: function(a0) { var property; var value2; var value = typeof a0; if (value !== 'string') { property = global.Error; value2 = null; value = 'Expected a string to be passed to JSONEncoding.unpack, got ' + (value2 == a0 ? value2 : value); value = new property(value); throw value; } return global.JSON.parse(a0); }}, {key: 'getName', value: function() { return 'json'; }}, {key: 'wantsString', value: function() { return true; }}]); function JSONEncoding() { // fn#95138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12682:170, offset: 0x00da1b5f, size: 27 bytes, params: 1, frame: 13 env1_0(this, JSONEncoding); } } } global.__d(_fun95136, 12492, [6, 7, 12493, 4664, 2]) /* metro module 12492, dependencies: [6, 7, 12493, 4664, 2] */;