2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 1497
|
|
|
|
|
// Function ID: 1498
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: useWindowDimensions
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [19, 1498, 558, 576, 1500, 2]
|
2026-10-02 13:37:24 +00:00
|
|
|
// Exports: getWindowDimensions
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 1497 (useWindowDimensions)
|
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-12 16:32:48 +00:00
|
|
|
import DimensionsStore from "DimensionsStore" /* 1498 */;
|
2026-10-02 13:37:24 +00:00
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-02 13:37:24 +00:00
|
|
|
let tmp2;
|
2026-10-12 16:32:48 +00:00
|
|
|
const AppEntryKeyContext = tmp2(1500);
|
2026-09-18 19:45:33 +00:00
|
|
|
let closure_4 = { ignoreKeyboard: false };
|
2026-10-02 13:37:24 +00:00
|
|
|
function WINDOW_DIMENSIONS_GETTER(arg0) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
function WINDOW_DIMENSIONS_GETTER_IGNORING_KEYBOARD(arg0) {
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-02 13:37:24 +00:00
|
|
|
}
|
2026-10-12 16:32:48 +00:00
|
|
|
tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useWindowDimensions(arg0) {
|
2026-10-02 13:37:24 +00:00
|
|
|
let appEntryKey;
|
|
|
|
|
let fn;
|
|
|
|
|
let ignoreKeyboard;
|
|
|
|
|
let tmp = arg0;
|
|
|
|
|
const obj = react2;
|
|
|
|
|
const cResult = obj.c(3);
|
|
|
|
|
if (undefined === arg0) {
|
|
|
|
|
tmp = closure_4;
|
|
|
|
|
}
|
|
|
|
|
({ ignoreKeyboard, appEntryKey } = tmp);
|
|
|
|
|
const tmp2Result = AppEntryKeyContext;
|
|
|
|
|
if (appEntryKey == null) {
|
|
|
|
|
appEntryKey = tmp2Result.useAppEntryKey();
|
|
|
|
|
}
|
|
|
|
|
if (cResult[0] === appEntryKey) {
|
|
|
|
|
let tmp6;
|
|
|
|
|
if (cResult[1] === (undefined !== ignoreKeyboard && ignoreKeyboard)) {
|
|
|
|
|
tmp6 = cResult[2];
|
|
|
|
|
}
|
|
|
|
|
return DimensionsStore(tmp6);
|
|
|
|
|
}
|
|
|
|
|
if (undefined !== ignoreKeyboard && ignoreKeyboard) {
|
|
|
|
|
if (typeof WINDOW_DIMENSIONS_GETTER_IGNORING_KEYBOARD === "function") {
|
|
|
|
|
fn = (arg0) => arg0.byAppEntry[closure_0].windowDimensionsIgnoringKeyboard;
|
|
|
|
|
} else {
|
|
|
|
|
throw new TypeError("Trying to call a non-function");
|
|
|
|
|
}
|
|
|
|
|
} else if (typeof WINDOW_DIMENSIONS_GETTER === "function") {
|
|
|
|
|
fn = (arg0) => arg0.byAppEntry[closure_0].windowDimensions;
|
|
|
|
|
} else {
|
|
|
|
|
throw new TypeError("Trying to call a non-function");
|
|
|
|
|
}
|
|
|
|
|
cResult[0] = appEntryKey;
|
|
|
|
|
cResult[1] = undefined !== ignoreKeyboard && ignoreKeyboard;
|
|
|
|
|
cResult[2] = fn;
|
|
|
|
|
tmp6 = fn;
|
2026-10-12 16:32:48 +00:00
|
|
|
}) : (function useWindowDimensions() {
|
2026-09-18 19:45:33 +00:00
|
|
|
let tmp = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
tmp = closure_4;
|
|
|
|
|
}
|
|
|
|
|
let flag = tmp.ignoreKeyboard;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
let appEntryKey;
|
2026-10-02 13:37:24 +00:00
|
|
|
const obj = flag(appEntryKey[4]);
|
2026-09-18 19:45:33 +00:00
|
|
|
if (appEntryKey == null) {
|
|
|
|
|
appEntryKey = obj.useAppEntryKey();
|
|
|
|
|
}
|
|
|
|
|
const items = [flag, appEntryKey];
|
2026-10-01 14:13:23 +00:00
|
|
|
return DimensionsStore(react.useMemo(() => {
|
|
|
|
|
let fn;
|
2026-10-02 13:37:24 +00:00
|
|
|
const tmp = flag;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
if (typeof WINDOW_DIMENSIONS_GETTER_IGNORING_KEYBOARD === "function") {
|
|
|
|
|
let closure_0 = appEntryKey;
|
|
|
|
|
fn = (arg0) => arg0.byAppEntry[closure_0].windowDimensionsIgnoringKeyboard;
|
|
|
|
|
} else {
|
|
|
|
|
throw new TypeError("Trying to call a non-function");
|
|
|
|
|
}
|
|
|
|
|
} else if (typeof WINDOW_DIMENSIONS_GETTER === "function") {
|
|
|
|
|
closure_0 = appEntryKey;
|
2026-09-26 17:57:22 +00:00
|
|
|
fn = (arg0) => arg0.byAppEntry[closure_0].windowDimensions;
|
2026-10-02 13:37:24 +00:00
|
|
|
} else {
|
|
|
|
|
throw new TypeError("Trying to call a non-function");
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
return fn;
|
|
|
|
|
}, items));
|
2026-10-02 13:37:24 +00:00
|
|
|
});
|
|
|
|
|
const result = size.fileFinishedImporting("modules/screen/useWindowDimensions.native.tsx");
|
|
|
|
|
|
|
|
|
|
export default tmp2;
|
2026-09-18 19:45:33 +00:00
|
|
|
export const getWindowDimensions = function getWindowDimensions(arg0) {
|
|
|
|
|
let tmp = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
tmp = closure_4;
|
|
|
|
|
}
|
|
|
|
|
let flag = tmp.ignoreKeyboard;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
let str = tmp.appEntryKey;
|
|
|
|
|
if (str === undefined) {
|
|
|
|
|
str = "main";
|
|
|
|
|
}
|
|
|
|
|
const tmp2 = DimensionsStore.getState().byAppEntry[str];
|
|
|
|
|
return flag ? tmp2.windowDimensionsIgnoringKeyboard : tmp2.windowDimensions;
|
|
|
|
|
};
|