decord/alpha/source/modules/conjure/shared/useConjureWindowFocused.native.tsx

45 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 16562
// Function ID: 16563
2026-10-05 08:00:40 +00:00
// Name: useConjureWindowFocused
2026-10-09 10:00:15 +00:00
// Dependencies: [1999, 1085, 558, 576, 504, 2]
2026-10-09 10:00:15 +00:00
// Module 16562 (useConjureWindowFocused)
2026-10-03 08:58:59 +00:00
import react from "react" /* 576 */;
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import AppStateStore from "AppStateStore" /* 1999 */;
2026-10-03 08:58:59 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-03 08:58:59 +00:00
let tmp;
const get_initialized = tmp(504);
const AppStates = Constants.AppStates;
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useConjureWindowFocused() {
2026-10-03 08:58:59 +00:00
let state;
let tmp4;
let tmp5;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [AppStateStore];
2026-10-08 09:57:35 +00:00
const fn = function u() {
2026-10-03 08:58:59 +00:00
return state.getState() === constants.ACTIVE;
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
const tmpResult = get_initialized;
return tmpResult.useStateFromStores(tmp4, tmp5);
2026-10-08 09:57:35 +00:00
}) : (function useConjureWindowFocused() {
2026-10-03 08:58:59 +00:00
let state;
const items = [AppStateStore];
const obj = get_initialized;
return obj.useStateFromStores(items, () => state.getState() === constants.ACTIVE);
});
2026-10-05 08:00:40 +00:00
const result = size.fileFinishedImporting("modules/conjure/shared/useConjureWindowFocused.native.tsx");
2026-10-03 08:58:59 +00:00
export default tmp2;