/* Metro module 10690; source: modules/go_live/useStreamError.tsx; dependencies: [10672, 9235, 566, 2] */ import AVErrorStore from '../errors/av_errors/AVErrorStore.tsx'; /* Metro dependency 10672 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as AVErrorModule from '../errors/av_errors/AVError.tsx'; /* Metro dependency 9235 */ function _fun82170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:6, offset: 0x01eed967, size: 282 bytes, params: 8, frame: 19 let env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {}; const AVError = (AVErrorModule).AVError; const STREAM_SOUNDSHARE_FAILED = AVError.STREAM_SOUNDSHARE_FAILED; object[STREAM_SOUNDSHARE_FAILED] = 0; const STREAM_SEND_HIGH_PACKET_LOSS = AVError.STREAM_SEND_HIGH_PACKET_LOSS; object[STREAM_SEND_HIGH_PACKET_LOSS] = 1; const STREAM_VIEW_HIGH_PACKET_LOSS = AVError.STREAM_VIEW_HIGH_PACKET_LOSS; object[STREAM_VIEW_HIGH_PACKET_LOSS] = 1; const STREAM_SEND_LOW_FPS = AVError.STREAM_SEND_LOW_FPS; object[STREAM_SEND_LOW_FPS] = 2; const STREAM_VIEW_LOW_FPS = AVError.STREAM_VIEW_LOW_FPS; object[STREAM_VIEW_LOW_FPS] = 2; const STREAM_BAD_NETWORK_QUALITY = AVError.STREAM_BAD_NETWORK_QUALITY; object[STREAM_BAD_NETWORK_QUALITY] = 3; (FileImportTrackerModule).fileFinishedImporting('modules/go_live/useStreamError.tsx'); exports.default = function({id}) { var env0_0 = id; return require(dependencyMap[2]).useStateFromStores([AVErrorStore], _fun82172, [id]); }; function useStreamError({id}) { // fn#82171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:458, offset: 0x01eeda81, size: 80 bytes, params: 2, frame: 16 return (FluxModule).useStateFromStores([AVErrorStore], _fun82172, [id]); function _fun82172() { // fn#82172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:535, offset: 0x01eedad1, size: 105 bytes, params: 1, frame: 13 var environment; let value = environment.__proto__; value = AVErrorStore.getActiveErrors(); const Array = global.Array; value = Array.from(value.values()); value = value.filter(_fun82173); value = value.sort(_fun82174); return value[0]?.type; function _fun82173(a0) { // fn#82173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:599, offset: 0x01eedb3a, size: 58 bytes, params: 2, frame: 4 var r0; var streamKey; let value = 'streamKey' in a0; if (value) { streamKey = a0.streamKey; value = environment.__proto__; value = streamKey === id; r0 = value; } else { r0 = value; } if (r0) { value = environment.__proto__.__proto__; value = env2_3[a0.type] != null; r0 = value; } return r0; } function _fun82174({type}, {type}) { // fn#82174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:660, offset: 0x01eedb74, size: 67 bytes, params: 3, frame: 6 return (env2_3[type] ?? 0) - (env2_3[type] ?? 0); } } } } global.__d(_fun82170, 10690, [10672, 9235, 566, 2]) /* metro module 10690, dependencies: [10672, 9235, 566, 2] */;