decord/source/modules/video_calls/native/useTrackActivityVideoPip.tsx

43 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10840
// Function ID: 10841
2026-07-20 16:05:17 +00:00
// Name: useTrackActivityPip
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 10743, 676, 647, 9000, 10804, 698, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 10840 (useTrackActivityPip)
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import closure_4 from "initialize" /* 10743 */;
2026-08-24 06:08:38 +00:00
import { AnalyticEvents } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/video_calls/native/useTrackActivityVideoPip.tsx");
2026-07-20 16:05:17 +00:00
export default function useTrackActivityPip(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-08-24 06:08:38 +00:00
const items = [closure_4];
2026-07-29 08:29:29 +00:00
const stateFromStores = _require(647).useStateFromStores(items, () => pipEnabledWhileFocusedOnActivityOrStream.isPipEnabledWhileFocusedOnActivityOrStream());
2026-08-25 06:04:03 +00:00
let tmp2 = stateFromStores(9000)(stateFromStores);
2026-08-24 06:08:38 +00:00
dependencyMap = tmp2;
2026-08-25 06:04:03 +00:00
const tmp3 = stateFromStores(10804)();
2026-07-20 16:05:17 +00:00
const React = tmp3;
const items1 = [stateFromStores, tmp2, arg0, tmp3];
const effect = React.useEffect(() => {
2026-08-24 06:08:38 +00:00
compositeInstanceId = closure_3;
if (null != closure_3) {
if (null != table) {
2026-07-29 08:29:29 +00:00
if (stateFromStores !== tmp8) {
2026-08-24 06:08:38 +00:00
let track = closure_1_5;
track = stateFromStores(table[6]).track;
2026-07-29 08:29:29 +00:00
const obj = { channel_id: null, guild_id: null, application_id: null, activity_session_id: null };
({ id: obj[0], guild_id: obj[1] } = closure_0);
({ applicationId: obj[2], compositeInstanceId } = compositeInstanceId);
obj[3] = compositeInstanceId;
2026-08-24 06:08:38 +00:00
track(tmp ? track.ACTIVITY_VIDEO_PIP_SHOWN : track.ACTIVITY_VIDEO_PIP_HIDDEN, obj);
const tmp2 = tmp ? track.ACTIVITY_VIDEO_PIP_SHOWN : track.ACTIVITY_VIDEO_PIP_HIDDEN;
const tmp5 = stateFromStores(table[6]);
2026-07-20 16:05:17 +00:00
}
}
}
}, items1);
};