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

93 lines
2.7 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 10237
// Function ID: 10238
// Name: useDiscoverableApplicationStream
2026-10-10 08:08:14 +00:00
// Dependencies: [5897, 4760, 1085, 558, 576, 504, 2]
2026-07-20 16:05:17 +00:00
2026-10-12 06:59:38 +00:00
// Module 10237 (useDiscoverableApplicationStream)
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
2026-10-10 08:08:14 +00:00
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 5897 */;
import RelationshipStore from "RelationshipStore" /* 4760 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
2026-10-03 08:58:59 +00:00
let _require;
function getDiscoverableApplicationStream(userId, items) {
2026-10-03 08:58:59 +00:00
let NONE;
let obj;
let obj2;
2026-08-24 06:08:38 +00:00
let tmp = items;
if (items === undefined) {
items = [ApplicationStreamingStore, RelationshipStore];
2026-07-20 16:05:17 +00:00
tmp = items;
}
[obj, obj2] = tmp;
if (null != userId) {
2026-10-03 08:58:59 +00:00
NONE = obj2.getRelationshipType(userId);
2026-07-20 16:05:17 +00:00
} else {
NONE = RelationshipTypes.NONE;
}
let anyDiscoverableStreamForUser = null;
if (null != userId) {
anyDiscoverableStreamForUser = obj.getAnyDiscoverableStreamForUser(userId);
2026-07-20 16:05:17 +00:00
}
let tmp6 = null;
if (NONE !== RelationshipTypes.BLOCKED) {
tmp6 = null;
if (null != userId) {
2026-07-20 16:05:17 +00:00
tmp6 = anyDiscoverableStreamForUser;
}
}
return tmp6;
}
2026-10-03 08:58:59 +00:00
const RelationshipTypes = Constants.RelationshipTypes;
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useDiscoverableApplicationStream(arg0) {
2026-10-03 08:58:59 +00:00
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);
2026-10-08 09:57:35 +00:00
}) : (function useDiscoverableApplicationStream(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0;
_require = arg0;
let items = [ApplicationStreamingStore, RelationshipStore];
2026-07-20 16:05:17 +00:00
const items1 = [arg0];
2026-10-03 08:58:59 +00:00
const obj = require("get initialized");
return obj.useStateFromStores(items, () => {
const items = [ApplicationStreamingStore, RelationshipStore];
return getDiscoverableApplicationStream(closure_0, items);
2026-07-20 16:05:17 +00:00
}, items1);
2026-10-03 08:58:59 +00:00
});
const result = size.fileFinishedImporting("modules/blocking/useDiscoverableApplicationStream.tsx");
export default tmp2;
2026-07-20 16:05:17 +00:00
export { getDiscoverableApplicationStream };