Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
81 lines
2.1 KiB
TypeScript
81 lines
2.1 KiB
TypeScript
// Module ID: 9699
|
|
// Function ID: 9700
|
|
// Name: useIsPrivateChannelWithEnabledActivities
|
|
// Dependencies: [2045, 558, 568, 565, 2]
|
|
// Exports: isPrivateChannelWithEnabledActivities
|
|
|
|
// Module 9699 (useIsPrivateChannelWithEnabledActivities)
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx");
|
|
|
|
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
_require = arg0;
|
|
const cResult = require("c").c(5);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const items = [ChannelStore];
|
|
cResult[0] = items;
|
|
let first = items;
|
|
} else {
|
|
first = cResult[0];
|
|
}
|
|
if (cResult[1] !== arg0) {
|
|
const fn = function l() {
|
|
return ChannelStore.getChannel(closure_0);
|
|
};
|
|
cResult[1] = arg0;
|
|
cResult[2] = fn;
|
|
let tmp6 = fn;
|
|
} else {
|
|
tmp6 = cResult[2];
|
|
}
|
|
const obj = require("c");
|
|
const stateFromStores = require("useStateFromStores").useStateFromStores(first, tmp6);
|
|
if (cResult[3] !== stateFromStores) {
|
|
let flag;
|
|
if (stateFromStores != null) {
|
|
flag = stateFromStores.isPrivate();
|
|
}
|
|
if (flag == null) {
|
|
flag = false;
|
|
}
|
|
cResult[3] = stateFromStores;
|
|
cResult[4] = flag;
|
|
let tmp7 = flag;
|
|
} else {
|
|
tmp7 = cResult[4];
|
|
}
|
|
return tmp7;
|
|
}) : ((arg0) => {
|
|
_require = arg0;
|
|
const items = [ChannelStore];
|
|
const stateFromStores = require("useStateFromStores").useStateFromStores(items, () => ChannelStore.getChannel(closure_0));
|
|
let flag;
|
|
if (stateFromStores != null) {
|
|
flag = stateFromStores.isPrivate();
|
|
}
|
|
if (flag == null) {
|
|
flag = false;
|
|
}
|
|
return flag;
|
|
});
|
|
export const isPrivateChannelWithEnabledActivities = function isPrivateChannelWithEnabledActivities(arg0) {
|
|
if (null == arg0) {
|
|
return false;
|
|
} else {
|
|
const channel = ChannelStore.getChannel(arg0);
|
|
let flag;
|
|
if (channel != null) {
|
|
flag = channel.isPrivate();
|
|
}
|
|
if (flag == null) {
|
|
flag = false;
|
|
}
|
|
return flag;
|
|
}
|
|
};
|