/* Metro module 14467; source: modules/calls/useCallA11yState.tsx; dependencies: [1226, 4258, 566, 2] */ import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */ import CallStore from '../../stores/CallStore.tsx'; /* Metro dependency 4258 */ 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 */ function _fun109483(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14664:6, offset: 0x0234e0dd, size: 130 bytes, params: 8, frame: 19 let env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/calls/useCallA11yState.tsx'); exports.default = function(a0) { var env0_0 = a0; return require(dependencyMap[2]).useStateFromStoresObject([CallStore, AuthenticationStore], _fun109485); }; function useCallA11yState(a0) { // fn#109484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14664:194, offset: 0x0234e15f, size: 75 bytes, params: 2, frame: 15 const env0_0 = a0; return (FluxModule).useStateFromStoresObject([CallStore, AuthenticationStore], _fun109485); function _fun109485() { // fn#109485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14664:270, offset: 0x0234e1aa, size: 110 bytes, params: 1, frame: 15 const value = environment.__proto__; const call = CallStore.getCall(env0_0); const id = AuthenticationStore.getId(); const r2 = call != null && id != null && call.ringing.includes(id); const object = {isIncomingCall: r2}; object.isOngoingCall = CallStore.isCallActive(env0_0) && !r2; return object; } } } global.__d(_fun109483, 14467, [1226, 4258, 566, 2]) /* metro module 14467, dependencies: [1226, 4258, 566, 2] */;