2026-09-26 08:31:33 +00:00
|
|
|
// Module ID: 1479
|
|
|
|
|
// Function ID: 1480
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useWindowDimensions
|
2026-09-26 08:31:33 +00:00
|
|
|
// Dependencies: [19, 1480, 1482, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, getWindowDimensions
|
|
|
|
|
|
2026-09-26 08:31:33 +00:00
|
|
|
// Module 1479 (useWindowDimensions)
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-26 08:31:33 +00:00
|
|
|
import DimensionsStore from "DimensionsStore" /* 1480 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = fn;
|
2026-07-20 16:05:17 +00:00
|
|
|
let closure_4 = { ignoreKeyboard: false };
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/screen/useWindowDimensions.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useWindowDimensions() {
|
|
|
|
|
let tmp = arg0;
|
|
|
|
|
if (arg0 === undefined) {
|
|
|
|
|
tmp = closure_4;
|
|
|
|
|
}
|
|
|
|
|
let flag = tmp.ignoreKeyboard;
|
|
|
|
|
if (flag === undefined) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
let appEntryKey;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (appEntryKey == null) {
|
|
|
|
|
appEntryKey = obj.useAppEntryKey();
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [flag, appEntryKey];
|
2026-09-10 05:38:07 +00:00
|
|
|
return DimensionsStore(noop.useMemo(() => {
|
|
|
|
|
if (flag) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
let fn = (arg0) => arg0.byAppEntry[closure_0].windowDimensionsIgnoringKeyboard;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
fn = (arg0) => arg0.byAppEntry[closure_0].windowDimensions;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return fn;
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items));
|
|
|
|
|
};
|
|
|
|
|
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";
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const tmp2 = DimensionsStore.getState().byAppEntry[str];
|
2026-07-20 16:05:17 +00:00
|
|
|
return flag ? tmp2.windowDimensionsIgnoringKeyboard : tmp2.windowDimensions;
|
|
|
|
|
};
|