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

53 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 8846
2026-07-27 11:26:19 +00:00
// Function ID: 70054
2026-07-20 16:05:17 +00:00
// Name: isEmpty
2026-07-25 08:10:48 +00:00
// Dependencies: [1194, 4203, 4217, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: useIsCallRTCConnectionEmpty, useIsStreamRTCConnectionEmpty
2026-07-25 08:10:48 +00:00
// Module 8846 (isEmpty)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function isEmpty(size) {
let tmp = 0 === size.size;
if (!tmp) {
let hasItem = 1 === size.size;
if (hasItem) {
hasItem = size.has(arg1);
}
tmp = hasItem;
}
return tmp;
}
2026-07-23 10:11:24 +00:00
const result = require("_isNativeReflectConstruct").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;
const items = [closure_4, _isNativeReflectConstruct];
return _require(566).useStateFromStores(items, () => {
if (null == closure_0) {
2026-07-20 16:05:17 +00:00
return true;
} else {
2026-07-23 10:11:24 +00:00
const userIds = outer1_4.getUserIds(closure_0);
2026-07-20 16:05:17 +00:00
let tmp4 = null == userIds;
if (!tmp4) {
2026-07-23 10:11:24 +00:00
tmp4 = outer1_5(userIds, outer1_2.getId());
2026-07-20 16:05:17 +00:00
}
return tmp4;
}
});
};
export const useIsCallRTCConnectionEmpty = function useIsCallRTCConnectionEmpty() {
2026-07-23 10:11:24 +00:00
const items = [closure_3, _isNativeReflectConstruct];
return require(566) /* initialize */.useStateFromStores(items, () => {
const userIds = outer1_3.getUserIds();
2026-07-20 16:05:17 +00:00
let tmp2 = null == userIds;
if (!tmp2) {
2026-07-23 10:11:24 +00:00
tmp2 = outer1_5(userIds, outer1_2.getId());
2026-07-20 16:05:17 +00:00
}
return tmp2;
});
};