decord/beta/source/modules/activities/native/useIsViewingActivity.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

68 lines
2.1 KiB
TypeScript

// Module ID: 9658
// Function ID: 9659
// Name: useIsViewingActivity
// Dependencies: [4774, 558, 568, 9645, 4616, 9642, 504, 2]
// Module 9658 (useIsViewingActivity)
import ChannelCallModalDefault from "ChannelCallModal" /* 9642 */;
import useIsActivityFocusedDefault from "useIsActivityFocused" /* 9645 */;
import ChannelRTCStore from "ChannelRTCStore" /* 4774 */;
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(4616).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(4616);
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(4616).useIsModalOpen(ChannelCallModalDefault);
const obj = channelId(4616);
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;
});