52 lines
1.7 KiB
TypeScript
52 lines
1.7 KiB
TypeScript
// Module ID: 9890
|
|
// Function ID: 9891
|
|
// Name: useIsStreamRTCConnectionEmpty
|
|
// Dependencies: [1215, 4554, 4568, 586, 2]
|
|
// Exports: useIsCallRTCConnectionEmpty, useIsStreamRTCConnectionEmpty
|
|
|
|
// Module 9890 (useIsStreamRTCConnectionEmpty)
|
|
import initialize from "initialize" /* 586 */;
|
|
import closure_2 from "fetchFingerprint" /* 1215 */;
|
|
import closure_3 from "createRTCConnection" /* 4554 */;
|
|
import closure_4 from "initialize" /* 4568 */;
|
|
|
|
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(586).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;
|
|
});
|
|
};
|