2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 10114
|
|
|
|
|
// Function ID: 10115
|
2026-10-02 13:37:24 +00:00
|
|
|
// Name: useTimeout
|
|
|
|
|
// Dependencies: [19, 558, 576, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 10114 (useTimeout)
|
2026-10-02 13:37:24 +00:00
|
|
|
import react2 from "react" /* 576 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
2026-10-02 13:37:24 +00:00
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
2026-10-02 13:37:24 +00:00
|
|
|
let c2;
|
|
|
|
|
let c3;
|
|
|
|
|
({ useEffect: c2, useRef: c3 } = react);
|
2026-10-12 16:32:48 +00:00
|
|
|
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useTimeout(arg0, arg1) {
|
2026-10-02 13:37:24 +00:00
|
|
|
let tmp3;
|
|
|
|
|
let tmp4;
|
|
|
|
|
let tmp7;
|
|
|
|
|
let tmp8;
|
|
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let closure_1 = arg1;
|
|
|
|
|
const obj = react2;
|
|
|
|
|
const cResult = obj.c(6);
|
|
|
|
|
const tmp2 = _false(arg0);
|
|
|
|
|
let c2 = tmp2;
|
|
|
|
|
if (cResult[0] !== arg0) {
|
2026-10-12 16:32:48 +00:00
|
|
|
const fn = function c() {
|
2026-10-02 13:37:24 +00:00
|
|
|
closure_2.current = current;
|
|
|
|
|
};
|
|
|
|
|
const items = [arg0];
|
|
|
|
|
cResult[0] = arg0;
|
|
|
|
|
cResult[1] = fn;
|
|
|
|
|
cResult[2] = items;
|
|
|
|
|
tmp4 = items;
|
|
|
|
|
tmp3 = fn;
|
|
|
|
|
} else {
|
|
|
|
|
tmp3 = cResult[1];
|
|
|
|
|
tmp4 = cResult[2];
|
|
|
|
|
}
|
|
|
|
|
React2(tmp3, tmp4);
|
|
|
|
|
const tmp5 = React2;
|
|
|
|
|
if (cResult[3] !== arg1) {
|
2026-10-12 16:32:48 +00:00
|
|
|
const fn2 = function l() {
|
2026-10-02 13:37:24 +00:00
|
|
|
let closure_0;
|
|
|
|
|
let ref;
|
|
|
|
|
if (null !== closure_1) {
|
|
|
|
|
const _setTimeout = setTimeout;
|
|
|
|
|
const timeout = setTimeout(() => ref.current(), tmp);
|
|
|
|
|
return () => clearTimeout(closure_0);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const items1 = [arg1, tmp2];
|
|
|
|
|
cResult[3] = arg1;
|
|
|
|
|
cResult[4] = fn2;
|
|
|
|
|
cResult[5] = items1;
|
|
|
|
|
tmp8 = items1;
|
|
|
|
|
tmp7 = fn2;
|
|
|
|
|
} else {
|
|
|
|
|
tmp7 = cResult[4];
|
|
|
|
|
tmp8 = cResult[5];
|
|
|
|
|
}
|
|
|
|
|
tmp5(tmp7, tmp8);
|
2026-10-12 16:32:48 +00:00
|
|
|
}) : (function useTimeout(arg0, arg1) {
|
2026-10-02 13:37:24 +00:00
|
|
|
let closure_0 = arg0;
|
|
|
|
|
let closure_1 = arg1;
|
|
|
|
|
const tmp = _false(arg0);
|
|
|
|
|
let c2 = tmp;
|
2026-10-01 14:13:23 +00:00
|
|
|
const items = [arg0];
|
2026-10-02 13:37:24 +00:00
|
|
|
const tmp2 = React2(() => {
|
2026-09-18 19:45:33 +00:00
|
|
|
closure_2.current = current;
|
|
|
|
|
}, items);
|
|
|
|
|
const items1 = [arg1, tmp];
|
2026-10-02 13:37:24 +00:00
|
|
|
React2(() => {
|
2026-10-01 14:13:23 +00:00
|
|
|
let closure_0;
|
|
|
|
|
let ref;
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null !== closure_1) {
|
|
|
|
|
const _setTimeout = setTimeout;
|
|
|
|
|
const timeout = setTimeout(() => ref.current(), tmp);
|
|
|
|
|
return () => clearTimeout(closure_0);
|
|
|
|
|
}
|
|
|
|
|
}, items1);
|
2026-10-02 13:37:24 +00:00
|
|
|
});
|
|
|
|
|
const result = size.fileFinishedImporting("hooks/useTimeout.tsx");
|
|
|
|
|
|
|
|
|
|
export default tmp3;
|