decord/beta/source/modules/blocking/useDiscoverableApplicationStream.tsx

93 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 10611
// Function ID: 10612
// Name: useDiscoverableApplicationStream
2026-10-07 22:43:51 +00:00
// Dependencies: [4912, 4519, 1085, 558, 576, 504, 2]
2026-10-07 22:43:51 +00:00
// Module 10611 (useDiscoverableApplicationStream)
import Constants from "Constants" /* 1085 */;
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4912 */;
import RelationshipStore from "RelationshipStore" /* 4519 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
const require = globalThis.__r;
2026-10-01 14:13:23 +00:00
let _require;
function getDiscoverableApplicationStream(userId, items) {
2026-10-01 14:13:23 +00:00
let NONE;
let obj;
let obj2;
let tmp = items;
if (items === undefined) {
items = [ApplicationStreamingStore, RelationshipStore];
tmp = items;
}
[obj, obj2] = tmp;
if (null != userId) {
2026-10-01 14:13:23 +00:00
NONE = obj2.getRelationshipType(userId);
} else {
NONE = RelationshipTypes.NONE;
}
let anyDiscoverableStreamForUser = null;
if (null != userId) {
anyDiscoverableStreamForUser = obj.getAnyDiscoverableStreamForUser(userId);
}
let tmp6 = null;
if (NONE !== RelationshipTypes.BLOCKED) {
tmp6 = null;
if (null != userId) {
tmp6 = anyDiscoverableStreamForUser;
}
}
return tmp6;
}
2026-10-01 14:13:23 +00:00
const RelationshipTypes = Constants.RelationshipTypes;
2026-10-02 13:37:24 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
let closure_0;
let first;
let tmp7;
let tmp8;
_require = arg0;
const obj = require("react");
const cResult = obj.c(4);
const tmp = _require;
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
let items = [ApplicationStreamingStore, RelationshipStore];
cResult[0] = items;
first = items;
} else {
first = cResult[0];
}
if (cResult[1] !== arg0) {
const fn = function c() {
const items = [ApplicationStreamingStore, RelationshipStore];
return getDiscoverableApplicationStream(closure_0, items);
};
const items1 = [arg0];
cResult[1] = arg0;
cResult[2] = fn;
cResult[3] = items1;
tmp8 = items1;
tmp7 = fn;
} else {
tmp7 = cResult[2];
tmp8 = cResult[3];
}
const tmpResult = tmp(504);
return tmpResult.useStateFromStores(first, tmp7, tmp8);
}) : ((arg0) => {
2026-10-01 14:13:23 +00:00
let closure_0;
_require = arg0;
let items = [ApplicationStreamingStore, RelationshipStore];
const items1 = [arg0];
2026-10-01 14:13:23 +00:00
const obj = require("get initialized");
return obj.useStateFromStores(items, () => {
const items = [ApplicationStreamingStore, RelationshipStore];
return getDiscoverableApplicationStream(closure_0, items);
}, items1);
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/blocking/useDiscoverableApplicationStream.tsx");
export default tmp2;
export { getDiscoverableApplicationStream };