52 lines
1.7 KiB
TypeScript
52 lines
1.7 KiB
TypeScript
// Module ID: 9802
|
|
// Function ID: 9803
|
|
// Name: useIsStreamRTCConnectionEmpty
|
|
// Dependencies: [1218, 4520, 4534, 589, 2]
|
|
// Exports: useIsCallRTCConnectionEmpty, useIsStreamRTCConnectionEmpty
|
|
|
|
// Module 9802 (useIsStreamRTCConnectionEmpty)
|
|
import initialize from "initialize" /* 589 */;
|
|
import closure_2 from "fetchFingerprint" /* 1218 */;
|
|
import closure_3 from "createRTCConnection" /* 4520 */;
|
|
import closure_4 from "initialize" /* 4534 */;
|
|
|
|
require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/rtc/hooks/useIsEmptyRTCConnection.tsx");
|
|
|
|
export const useIsStreamRTCConnectionEmpty = function useIsStreamRTCConnectionEmpty(stateFromStores4) {
|
|
const _require = stateFromStores4;
|
|
const items = [closure_4, closure_2];
|
|
return _require(589).useStateFromStores(items, () => {
|
|
if (null == closure_0) {
|
|
return true;
|
|
} else {
|
|
const userIds = closure_1_4.getUserIds(tmp);
|
|
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;
|
|
}
|
|
return tmp3;
|
|
}
|
|
});
|
|
};
|
|
export const useIsCallRTCConnectionEmpty = function useIsCallRTCConnectionEmpty() {
|
|
const items = [closure_3, closure_2];
|
|
return initialize.useStateFromStores(items, () => {
|
|
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;
|
|
}
|
|
return tmp;
|
|
});
|
|
};
|