decord/source/modules/rtc/hooks/useIsEmptyRTCConnection.tsx

53 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 9768
// Function ID: 9769
2026-07-29 08:29:29 +00:00
// Name: useIsStreamRTCConnectionEmpty
2026-08-24 06:08:38 +00:00
// Dependencies: [1218, 4544, 4563, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsCallRTCConnectionEmpty, useIsStreamRTCConnectionEmpty
2026-08-24 06:08:38 +00:00
// Module 9768 (useIsStreamRTCConnectionEmpty)
import initialize from "initialize" /* 589 */;
import closure_2 from "fetchFingerprint" /* 1218 */;
import closure_3 from "createRTCConnection" /* 4544 */;
import closure_4 from "initialize" /* 4563 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("modules/rtc/hooks/useIsEmptyRTCConnection.tsx");
2026-07-20 16:05:17 +00:00
export const useIsStreamRTCConnectionEmpty = function useIsStreamRTCConnectionEmpty(stateFromStores4) {
2026-07-23 10:11:24 +00:00
const _require = stateFromStores4;
2026-08-24 06:08:38 +00:00
const items = [closure_4, closure_2];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStores(items, () => {
2026-07-23 10:11:24 +00:00
if (null == closure_0) {
2026-07-20 16:05:17 +00:00
return true;
} else {
2026-08-24 06:08:38 +00:00
const userIds = closure_1_4.getUserIds(tmp);
2026-07-29 08:29:29 +00:00
let tmp3 = null == userIds;
if (!tmp3) {
let tmp6 = 0 === userIds.size;
if (!tmp6) {
tmp6 = 1 === userIds.size && userIds.has(tmp5);
const tmp7 = 1 === userIds.size && userIds.has(tmp5);
}
tmp3 = tmp6;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp3;
2026-07-20 16:05:17 +00:00
}
});
};
export const useIsCallRTCConnectionEmpty = function useIsCallRTCConnectionEmpty() {
2026-08-24 06:08:38 +00:00
const items = [closure_3, closure_2];
return initialize.useStateFromStores(items, () => {
2026-07-29 08:29:29 +00:00
userIds = userIds.getUserIds();
let tmp = null == userIds;
if (!tmp) {
let tmp4 = 0 === userIds.size;
if (!tmp4) {
tmp4 = 1 === userIds.size && userIds.has(tmp3);
const tmp5 = 1 === userIds.size && userIds.has(tmp3);
}
tmp = tmp4;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp;
2026-07-20 16:05:17 +00:00
});
};