Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
79 lines
2.4 KiB
TypeScript
79 lines
2.4 KiB
TypeScript
// Module ID: 11182
|
|
// Function ID: 11183
|
|
// Name: useDiscoverableApplicationStream
|
|
// Dependencies: [4780, 4409, 1078, 558, 568, 504, 2]
|
|
|
|
// Module 11182 (useDiscoverableApplicationStream)
|
|
import ApplicationStreamingStore from "ApplicationStreamingStore" /* 4780 */;
|
|
import RelationshipStore from "RelationshipStore" /* 4409 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
function getDiscoverableApplicationStream(userId, items) {
|
|
let tmp = items;
|
|
if (items === undefined) {
|
|
items = [ApplicationStreamingStore, RelationshipStore];
|
|
tmp = items;
|
|
}
|
|
[obj, obj2] = tmp;
|
|
if (null != userId) {
|
|
let 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;
|
|
}
|
|
const RelationshipTypes = fn(1078).RelationshipTypes;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/blocking/useDiscoverableApplicationStream.tsx");
|
|
|
|
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
_require = arg0;
|
|
const cResult = require("c").c(4);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
let items = [ApplicationStreamingStore, RelationshipStore];
|
|
cResult[0] = items;
|
|
let 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;
|
|
let tmp8 = items1;
|
|
let tmp7 = fn;
|
|
} else {
|
|
tmp7 = cResult[2];
|
|
tmp8 = cResult[3];
|
|
}
|
|
const obj = require("c");
|
|
return require("initialize").useStateFromStores(first, tmp7, tmp8);
|
|
}) : ((arg0) => {
|
|
_require = arg0;
|
|
let items = [ApplicationStreamingStore, RelationshipStore];
|
|
const items1 = [arg0];
|
|
return require("initialize").useStateFromStores(items, () => {
|
|
const items = [ApplicationStreamingStore, RelationshipStore];
|
|
return getDiscoverableApplicationStream(closure_0, items);
|
|
}, items1);
|
|
});
|
|
export { getDiscoverableApplicationStream };
|