2026-09-18 06:58:00 +00:00
|
|
|
// Module ID: 11126
|
|
|
|
|
// Function ID: 11127
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: useDiscoverableApplicationStream
|
2026-09-18 06:58:00 +00:00
|
|
|
// Dependencies: [4744, 4371, 1074, 504, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-18 06:58:00 +00:00
|
|
|
// Module 11126 (useDiscoverableApplicationStream)
|
|
|
|
|
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4744 */;
|
|
|
|
|
import RelationshipStore from "RelationshipStore" /* 4371 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const require = fn;
|
2026-09-10 19:12:31 +00:00
|
|
|
function getDiscoverableApplicationStream(userId, items) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp = items;
|
|
|
|
|
if (items === undefined) {
|
2026-09-10 05:38:07 +00:00
|
|
|
items = [ApplicationStreamingStore, RelationshipStore];
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp = items;
|
|
|
|
|
}
|
|
|
|
|
[obj, obj2] = tmp;
|
2026-09-10 19:12:31 +00:00
|
|
|
if (null != userId) {
|
|
|
|
|
let NONE = obj2.getRelationshipType(userId);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
NONE = RelationshipTypes.NONE;
|
|
|
|
|
}
|
|
|
|
|
let anyDiscoverableStreamForUser = null;
|
2026-09-10 19:12:31 +00:00
|
|
|
if (null != userId) {
|
|
|
|
|
anyDiscoverableStreamForUser = obj.getAnyDiscoverableStreamForUser(userId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let tmp6 = null;
|
|
|
|
|
if (NONE !== RelationshipTypes.BLOCKED) {
|
|
|
|
|
tmp6 = null;
|
2026-09-10 19:12:31 +00:00
|
|
|
if (null != userId) {
|
2026-07-20 16:05:17 +00:00
|
|
|
tmp6 = anyDiscoverableStreamForUser;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp6;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const RelationshipTypes = fn(1074).RelationshipTypes;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/blocking/useDiscoverableApplicationStream.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useDiscoverableApplicationStream(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_require = arg0;
|
|
|
|
|
let items = [ApplicationStreamingStore, RelationshipStore];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [arg0];
|
2026-09-10 05:38:07 +00:00
|
|
|
return require("initialize").useStateFromStores(items, () => {
|
|
|
|
|
const items = [ApplicationStreamingStore, RelationshipStore];
|
|
|
|
|
return getDiscoverableApplicationStream(closure_0, items);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
};
|
|
|
|
|
export { getDiscoverableApplicationStream };
|