/* Metro module 10690; source: modules/go_live/useStreamError.tsx; dependencies: [10672, 9235, 566, 2] */ 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 var object2; let env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const avErrorStore = importDefault(10672) /* metro dependency 10672: AVErrorStore */; object2 = {}; const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError; const STREAM_SOUNDSHARE_FAILED = AVError.STREAM_SOUNDSHARE_FAILED; object2[STREAM_SOUNDSHARE_FAILED] = 0; const STREAM_SEND_HIGH_PACKET_LOSS = AVError.STREAM_SEND_HIGH_PACKET_LOSS; object2[STREAM_SEND_HIGH_PACKET_LOSS] = 1; const STREAM_VIEW_HIGH_PACKET_LOSS = AVError.STREAM_VIEW_HIGH_PACKET_LOSS; object2[STREAM_VIEW_HIGH_PACKET_LOSS] = 1; const STREAM_SEND_LOW_FPS = AVError.STREAM_SEND_LOW_FPS; object2[STREAM_SEND_LOW_FPS] = 2; const STREAM_VIEW_LOW_FPS = AVError.STREAM_VIEW_LOW_FPS; object2[STREAM_VIEW_LOW_FPS] = 2; const STREAM_BAD_NETWORK_QUALITY = AVError.STREAM_BAD_NETWORK_QUALITY; object2[STREAM_BAD_NETWORK_QUALITY] = 3; (require(2) /* metro dependency 2 */).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 (require(566) /* metro dependency 566: flux */).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); }