decord/beta/source/modules/external_pip/useExternalPipEnabler.android.tsx
github-actions 6fbb1b046c chore: update source for beta 347.8
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-22 14:21:44 +00:00

82 lines
3.2 KiB
TypeScript

// Module ID: 17435
// Function ID: 17436
// Name: useExternalPipEnabler
// Dependencies: [4774, 502, 4781, 558, 568, 17436, 504, 2]
// Module 17435 (useExternalPipEnabler)
import ExternalPipEnablerState from "ExternalPipEnablerState" /* 17436 */;
import ChannelRTCStore from "ChannelRTCStore" /* 4774 */;
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import RTCConnectionStore from "RTCConnectionStore" /* 4781 */;
require = fn;
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/external_pip/useExternalPipEnabler.android.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((disabled) => {
const cResult = disabled(568).c(4);
disabled = disabled.disabled;
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [ChannelRTCStore, RTCConnectionStore, AuthenticationStore];
cResult[0] = items;
let first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== disabled) {
const fn = function o() {
const channelId = RTCConnectionStore.getChannelId();
if (null != channelId) {
if (!disabled) {
const videoParticipants = ChannelRTCStore.getVideoParticipants(channelId);
let tmp2 = videoParticipants.filter((localVideoDisabled) => !localVideoDisabled.localVideoDisabled).length > 0;
if (!tmp2) {
const streamParticipants = ChannelRTCStore.getStreamParticipants(channelId);
const found = streamParticipants.filter((user) => user.user.id !== id.getId());
tmp2 = null != found.find((streamId) => null != streamId.streamId);
}
const obj2 = {};
const merged = Object.assign(ExternalPipEnablerState.DEFAULT_STATE);
obj2.externalPipEnabled = tmp2;
return obj2;
}
}
return ExternalPipEnablerState.DEFAULT_STATE;
};
const items1 = [disabled];
cResult[1] = disabled;
cResult[2] = fn;
cResult[3] = items1;
let tmp9 = items1;
let tmp8 = fn;
} else {
tmp8 = cResult[2];
tmp9 = cResult[3];
}
const obj = disabled(568);
return disabled(504).useStateFromStoresObject(first, tmp8, tmp9);
}) : ((disabled) => {
disabled = disabled.disabled;
const items = [ChannelRTCStore, RTCConnectionStore, AuthenticationStore];
const items1 = [disabled];
return disabled(504).useStateFromStoresObject(items, () => {
const channelId = RTCConnectionStore.getChannelId();
if (null != channelId) {
if (!disabled) {
const videoParticipants = ChannelRTCStore.getVideoParticipants(channelId);
let tmp2 = videoParticipants.filter((localVideoDisabled) => !localVideoDisabled.localVideoDisabled).length > 0;
if (!tmp2) {
const streamParticipants = ChannelRTCStore.getStreamParticipants(channelId);
const found = streamParticipants.filter((user) => user.user.id !== id.getId());
tmp2 = null != found.find((streamId) => null != streamId.streamId);
}
const obj2 = {};
const merged = Object.assign(ExternalPipEnablerState.DEFAULT_STATE);
obj2.externalPipEnabled = tmp2;
return obj2;
}
}
return ExternalPipEnablerState.DEFAULT_STATE;
}, items1);
});