Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
133 lines
3.9 KiB
TypeScript
133 lines
3.9 KiB
TypeScript
// Module ID: 11793
|
|
// Function ID: 11794
|
|
// Name: useChannelFollowerStats
|
|
// Dependencies: [32, 19, 11794, 1095, 558, 568, 504, 11795, 2]
|
|
|
|
// Module 11793 (useChannelFollowerStats)
|
|
import DurationsDefault from "Durations" /* 1095 */;
|
|
import ChannelFollowerActionCreatorsDefault from "ChannelFollowerActionCreators" /* 11795 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ChannelFollowerStatsStore from "ChannelFollowerStatsStore" /* 11794 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const HOUR = DurationsDefault.Millis.HOUR;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/channel_following/useChannelFollowerStats.tsx");
|
|
|
|
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
_require = arg0;
|
|
const cResult = require("c").c(12);
|
|
const tmp4 = stateFromStores(noop.useState(false), 2);
|
|
const first = tmp4[0];
|
|
dependencyMap = tmp4[1];
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const items = [ChannelFollowerStatsStore];
|
|
cResult[0] = items;
|
|
let first1 = items;
|
|
} else {
|
|
first1 = cResult[0];
|
|
}
|
|
if (cResult[1] !== arg0) {
|
|
const fn = function c() {
|
|
return ChannelFollowerStatsStore.getFollowerStatsForChannel(closure_0);
|
|
};
|
|
const items1 = [arg0];
|
|
cResult[1] = arg0;
|
|
cResult[2] = fn;
|
|
cResult[3] = items1;
|
|
let tmp9 = items1;
|
|
let tmp8 = fn;
|
|
} else {
|
|
tmp8 = cResult[2];
|
|
tmp9 = cResult[3];
|
|
}
|
|
let obj = require("c");
|
|
const obj2 = noop;
|
|
stateFromStores = require("initialize").useStateFromStores(first1, tmp8, tmp9);
|
|
if (cResult[4] === arg0) {
|
|
if (cResult[5] === stateFromStores) {
|
|
if (cResult[6] === first) {
|
|
let tmp11 = cResult[7];
|
|
let tmp12 = cResult[8];
|
|
}
|
|
const effect = obj2.useEffect(tmp11, tmp12);
|
|
if (cResult[9] === stateFromStores) {
|
|
if (cResult[10] === first) {
|
|
let tmp14 = cResult[11];
|
|
}
|
|
return tmp14;
|
|
}
|
|
const items2 = [stateFromStores, first];
|
|
cResult[9] = stateFromStores;
|
|
cResult[10] = first;
|
|
cResult[11] = items2;
|
|
tmp14 = items2;
|
|
}
|
|
}
|
|
class C {
|
|
constructor() {
|
|
tmp = closure_3;
|
|
if (null == closure_3) {
|
|
tmp4 = closure_1;
|
|
if (!closure_1) {
|
|
tmp5 = closure_2;
|
|
flag = true;
|
|
tmp6 = closure_2(true);
|
|
tmp7 = closure_1;
|
|
tmp8 = closure_2;
|
|
obj = closure_1(closure_2[7]);
|
|
tmp9 = closure_0;
|
|
channelFollowerStats = obj.fetchChannelFollowerStats(closure_0);
|
|
}
|
|
return;
|
|
} else {
|
|
tmp2 = globalThis;
|
|
_Date = Date;
|
|
tmp3 = closure_6;
|
|
}
|
|
tmp11 = null != tmp && closure_1;
|
|
if (tmp11) {
|
|
tmp12 = closure_2;
|
|
flag2 = false;
|
|
tmp13 = closure_2(false);
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
const items3 = [arg0, stateFromStores, first];
|
|
cResult[4] = arg0;
|
|
cResult[5] = stateFromStores;
|
|
cResult[6] = first;
|
|
cResult[7] = C;
|
|
cResult[8] = items3;
|
|
tmp12 = items3;
|
|
tmp11 = C;
|
|
}) : ((arg0) => {
|
|
_require = arg0;
|
|
const tmp = stateFromStores(noop.useState(false), 2);
|
|
const first = tmp[0];
|
|
dependencyMap = tmp[1];
|
|
const items = [ChannelFollowerStatsStore];
|
|
const items1 = [arg0];
|
|
stateFromStores = require("initialize").useStateFromStores(items, () => ChannelFollowerStatsStore.getFollowerStatsForChannel(closure_0), items1);
|
|
const items2 = [arg0, stateFromStores, first];
|
|
const effect = noop.useEffect(() => {
|
|
if (null == stateFromStores) {
|
|
if (!first) {
|
|
closure_2(true);
|
|
const channelFollowerStats = ChannelFollowerActionCreatorsDefault.fetchChannelFollowerStats(closure_0);
|
|
}
|
|
} else {
|
|
const _Date = Date;
|
|
}
|
|
if (tmp11) {
|
|
closure_2(false);
|
|
}
|
|
}, items2);
|
|
const items3 = [stateFromStores, first];
|
|
return items3;
|
|
});
|