// Module ID: 9690 // Function ID: 9691 // Name: useIsViewingActivity // Dependencies: [4806, 558, 568, 9677, 4648, 9674, 504, 2] // Module 9690 (useIsViewingActivity) import ChannelCallModalDefault from "ChannelCallModal" /* 9674 */; import useIsActivityFocusedDefault from "useIsActivityFocused" /* 9677 */; import ChannelRTCStore from "ChannelRTCStore" /* 4806 */; const require = fn; const ReactCompilerGating = fn(558); const size = fn(2); const result = size.fileFinishedImporting("modules/activities/native/useIsViewingActivity.tsx"); export const useIsViewingActivity = ReactCompilerGating.isReactCompilerEnabled() ? ((channelId) => { const cResult = channelId(568).c(4); channelId = channelId.channelId; let tmp4 = useIsActivityFocusedDefault(channelId); const obj = channelId(568); const tmp = channelId; const isModalOpen = channelId(4648).useIsModalOpen(ChannelCallModalDefault); if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) { const items = [ChannelRTCStore]; cResult[0] = items; let first = items; } else { first = cResult[0]; } if (cResult[1] !== channelId) { const fn = function o() { return ChannelRTCStore.getChatOpen(channelId); }; const items1 = [channelId]; cResult[1] = channelId; cResult[2] = fn; cResult[3] = items1; let tmp9 = items1; let tmp8 = fn; } else { tmp8 = cResult[2]; tmp9 = cResult[3]; } const obj2 = channelId(4648); const stateFromStores = tmp(504).useStateFromStores(first, tmp8, tmp9); if (tmp4) { tmp4 = isModalOpen; } if (tmp4) { tmp4 = !stateFromStores; } return tmp4; }) : ((channelId) => { channelId = channelId.channelId; let tmp = useIsActivityFocusedDefault(channelId); const isModalOpen = channelId(4648).useIsModalOpen(ChannelCallModalDefault); const obj = channelId(4648); const items = [ChannelRTCStore]; const items1 = [channelId]; const stateFromStores = channelId(504).useStateFromStores(items, () => ChannelRTCStore.getChatOpen(channelId), items1); if (tmp) { tmp = isModalOpen; } if (tmp) { tmp = !stateFromStores; } return tmp; });