/* Metro module 10867; source: utils/RTCConnectionUtils.tsx; dependencies: [661, 1244, 2] */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */ function _fun83281(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11053:6, offset: 0x01f1336f, size: 146 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {getStatus: getStatus_83282, getShortHostname: function(a0) { return a0 == null ? '' : a0.split('.')[0]; }}; (FileImportTrackerModule).fileFinishedImporting('utils/RTCConnectionUtils.tsx'); exports.default = object; function getStatus_83282(a0) { // fn#83282, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11053:168, offset: 0x01f13401, size: 929 bytes, params: 2, frame: 19 var r1; var r2; var ERROR; const intl = (IndexNativeModule).intl; var string; const t = (IndexNativeModule).t; var CONNECTED; const value = a1; let r3 = value !== undefined ? value : false; let CONNECTING = RTCConnectionStates.CONNECTING; if (CONNECTING === a0) { CONNECTING = ConnectionStatus.CONNECTING; r1 = intl.string(t.MzW9sN); r2 = CONNECTING; } else if (RTCConnectionStates.AUTHENTICATING === a0) { CONNECTING = ConnectionStatus.CONNECTING; r1 = intl.string(t.GxXwE2); r2 = CONNECTING; } else if (RTCConnectionStates.AWAITING_ENDPOINT === a0) { CONNECTING = ConnectionStatus.CONNECTING; r1 = intl.string(t.xEbu0Q); r2 = CONNECTING; } else if (RTCConnectionStates.RTC_CONNECTED === a0) { CONNECTED = ConnectionStatus.CONNECTED; string = intl.string; r3 = r3 ? Reflect.apply(string, intl, [t.HtVOdd]) : Reflect.apply(string, intl, [t.daXg45]); r1 = r3; r2 = CONNECTED; } else if (RTCConnectionStates.RTC_CONNECTING === a0) { CONNECTING = ConnectionStatus.CONNECTING; r1 = intl.string(t.Gp51dl); r2 = CONNECTING; } else if (RTCConnectionStates.ICE_CHECKING === a0) { CONNECTING = ConnectionStatus.CONNECTING; r1 = intl.string(t['rdCyA/']); r2 = CONNECTING; } else if (RTCConnectionStates.DTLS_CONNECTING === a0) { CONNECTING = ConnectionStatus.CONNECTING; r1 = intl.string(t.UvB3gV); r2 = CONNECTING; } else if (RTCConnectionStates.NO_ROUTE === a0) { ERROR = ConnectionStatus.ERROR; r1 = intl.string(t.mGhOIi); r2 = ERROR; } else if (RTCConnectionStates.RTC_DISCONNECTED === a0) { ERROR = ConnectionStatus.ERROR; r1 = intl.string(t.M7LDmE); r2 = ERROR; } else { RTCConnectionStates.DISCONNECTED; ERROR = ConnectionStatus.ERROR; r1 = intl.string(t.NLKQbx); r2 = ERROR; } return {connectionStatus: r2, connectionStatusText: r1}; } } global.__d(_fun83281, 10867, [661, 1244, 2]) /* metro module 10867, dependencies: [661, 1244, 2] */;