Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
112 lines
3.5 KiB
TypeScript
112 lines
3.5 KiB
TypeScript
// Module ID: 16830
|
|
// Function ID: 16831
|
|
// Name: useICYMIEmptyLoadingAnalytics
|
|
// Dependencies: [19, 558, 568, 8635, 2]
|
|
|
|
// Module 16830 (useICYMIEmptyLoadingAnalytics)
|
|
import ICYMIAnalytics3 from "ICYMIAnalytics" /* 8635 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
require = fn;
|
|
const ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/icymi/useICYMIEmptyLoadingAnalytics.tsx");
|
|
|
|
export const useICYMIEmptyLoadingAnalytics = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0, arg1) => {
|
|
_require = arg0;
|
|
dependencyMap = arg1;
|
|
const cResult = require("c").c(7);
|
|
noop = noop.useRef(null);
|
|
if (cResult[0] === arg1) {
|
|
if (cResult[1] === arg0) {
|
|
let tmp2 = cResult[2];
|
|
let tmp3 = cResult[3];
|
|
}
|
|
const effect = obj2.useEffect(tmp2, tmp3);
|
|
if (cResult[4] !== arg1) {
|
|
const fn2 = function s() {
|
|
if (!closure_1) {
|
|
if (null != ref.current) {
|
|
const _Date = Date;
|
|
const diff = Date.now() - tmp.current;
|
|
const ICYMIAnalytics = ICYMIAnalytics3.ICYMIAnalytics;
|
|
const obj = { dwellTimeMs: diff };
|
|
const result = ICYMIAnalytics.trackFeedEmptyLoadingAbandoned(obj);
|
|
tmp.current = null;
|
|
}
|
|
}
|
|
};
|
|
const items = [arg1];
|
|
cResult[4] = arg1;
|
|
cResult[5] = fn2;
|
|
cResult[6] = items;
|
|
let tmp6 = items;
|
|
let tmp5 = fn2;
|
|
} else {
|
|
tmp5 = cResult[5];
|
|
tmp6 = cResult[6];
|
|
}
|
|
const effect1 = obj2.useEffect(tmp5, tmp6);
|
|
}
|
|
const fn = function c() {
|
|
if (closure_1) {
|
|
if (closure_0) {
|
|
const _Date = Date;
|
|
tmp2.current = Date.now();
|
|
const ICYMIAnalytics = ICYMIAnalytics3.ICYMIAnalytics;
|
|
const result = ICYMIAnalytics.trackFeedEmptyLoadingSeen();
|
|
} else if (null != tmp2.current) {
|
|
const _Date2 = Date;
|
|
const diff = Date.now() - tmp2.current;
|
|
const ICYMIAnalytics2 = ICYMIAnalytics3.ICYMIAnalytics;
|
|
const obj = { dwellTimeMs: diff };
|
|
const result1 = ICYMIAnalytics2.trackFeedEmptyLoadingComplete(obj);
|
|
tmp2.current = null;
|
|
}
|
|
}
|
|
};
|
|
const items1 = [arg0, arg1];
|
|
cResult[0] = arg1;
|
|
cResult[1] = arg0;
|
|
cResult[2] = fn;
|
|
cResult[3] = items1;
|
|
tmp3 = items1;
|
|
tmp2 = fn;
|
|
}) : ((arg0, arg1) => {
|
|
closure_0 = arg0;
|
|
closure_1 = arg1;
|
|
noop = noop.useRef(null);
|
|
const items = [arg0, arg1];
|
|
const effect = noop.useEffect(() => {
|
|
if (closure_1) {
|
|
if (closure_0) {
|
|
const _Date = Date;
|
|
tmp2.current = Date.now();
|
|
const ICYMIAnalytics = ICYMIAnalytics3.ICYMIAnalytics;
|
|
const result = ICYMIAnalytics.trackFeedEmptyLoadingSeen();
|
|
} else if (null != tmp2.current) {
|
|
const _Date2 = Date;
|
|
const diff = Date.now() - tmp2.current;
|
|
const ICYMIAnalytics2 = ICYMIAnalytics3.ICYMIAnalytics;
|
|
const obj = { dwellTimeMs: diff };
|
|
const result1 = ICYMIAnalytics2.trackFeedEmptyLoadingComplete(obj);
|
|
tmp2.current = null;
|
|
}
|
|
}
|
|
}, items);
|
|
const items1 = [arg1];
|
|
const effect1 = noop.useEffect(() => {
|
|
if (!closure_1) {
|
|
if (null != ref.current) {
|
|
const _Date = Date;
|
|
const diff = Date.now() - tmp.current;
|
|
const ICYMIAnalytics = ICYMIAnalytics3.ICYMIAnalytics;
|
|
const obj = { dwellTimeMs: diff };
|
|
const result = ICYMIAnalytics.trackFeedEmptyLoadingAbandoned(obj);
|
|
tmp.current = null;
|
|
}
|
|
}
|
|
}, items1);
|
|
});
|