decord/source/6397_initialWindowMetrics.js

72 lines
2.3 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6397
// Function ID: 6398
2026-08-06 08:05:19 +00:00
// Name: initialWindowMetrics
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 1632, 6374]
2026-08-06 08:05:19 +00:00
2026-08-24 06:08:38 +00:00
// Module 6397 (initialWindowMetrics)
import _mod1632 from "module_1632" /* 1632 */;
import useFrameSize from "useFrameSize" /* 6374 */;
import closure_2 from "noop" /* 19 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-06 08:05:19 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-08-06 08:05:19 +00:00
({ Dimensions, Platform, StyleSheet, View: c3 } = get_ActivityIndicator);
const size = Dimensions.get("window");
const width = size.width;
let num = 0;
if (undefined !== width) {
num = width;
}
const height = size.height;
let num2 = 0;
if (undefined !== height) {
num2 = height;
}
2026-08-15 05:55:55 +00:00
if (null == require("module_1632").initialWindowMetrics) {
2026-08-06 08:05:19 +00:00
let obj = { frame: null, insets: null };
obj = { x: 0, y: 0, width: null, height: null };
obj[2] = num;
obj[3] = num2;
obj[0] = obj;
obj[1] = { top: 0, left: 0, right: 0, bottom: 0 };
let initialWindowMetrics = obj;
} else {
2026-08-15 05:55:55 +00:00
initialWindowMetrics = require("module_1632").initialWindowMetrics;
2026-08-06 08:05:19 +00:00
}
class SafeAreaProviderCompat {
constructor(arg0) {
({ children, style } = global);
2026-08-24 06:08:38 +00:00
closure_2 = undefined;
closure_2 = closure_2.useContext(require("module_1632").SafeAreaInsetsContext);
2026-08-06 08:05:19 +00:00
obj = {
initialFrame: initialWindowMetrics.frame,
render(onLayout) {
onLayout = onLayout.onLayout;
2026-08-24 06:08:38 +00:00
if (closure_2) {
2026-08-06 08:05:19 +00:00
let obj = { ref: null, onLayout: null, style: null, children: null };
obj[0] = tmp;
obj[1] = onLayout;
2026-08-24 06:08:38 +00:00
const items = [closure_1_6.container, closure_1];
2026-08-06 08:05:19 +00:00
obj[2] = items;
obj[3] = closure_0;
2026-08-24 06:08:38 +00:00
let tmp2Result = tmp2(closure_1_3, obj);
2026-08-06 08:05:19 +00:00
} else {
obj = { initialMetrics: null, style: null, onLayout: null, children: null };
2026-08-24 06:08:38 +00:00
obj[0] = closure_1_5;
2026-08-06 08:05:19 +00:00
obj[1] = closure_1;
obj[2] = onLayout;
obj[3] = closure_0;
2026-08-24 06:08:38 +00:00
tmp2Result = tmp2(closure_1_0(closure_1_1[3]).SafeAreaProvider, obj);
2026-08-06 08:05:19 +00:00
}
return tmp2Result;
}
};
return jsx(require("useFrameSize").FrameSizeProvider, obj);
}
}
SafeAreaProviderCompat.initialMetrics = initialWindowMetrics;
const styles = StyleSheet.create({ container: { flex: 1 } });
export { SafeAreaProviderCompat };