2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 14046
|
|
|
|
|
// Function ID: 14047
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: SafeAreaReporter
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [19, 17, 21, 1625, 1631, 500, 1630, 1641, 705, 1632, 1497, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: SafeAreaProvider, SafeAreaReporter
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 14046 (SafeAreaReporter)
|
2026-08-24 06:08:38 +00:00
|
|
|
import EMPTY_SAFE_AREA_INSETS from "EMPTY_SAFE_AREA_INSETS" /* 1631 */;
|
|
|
|
|
import _mod1632 from "module_1632" /* 1632 */;
|
|
|
|
|
import closure_3 from "noop" /* 19 */;
|
|
|
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
|
|
|
import { jsx } from "jsxProd" /* 21 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_6 = { position: "absolute", width: 0, height: 0 };
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/safe_area/SafeAreaProvider.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const SafeAreaReporter = function SafeAreaReporter() {
|
2026-08-15 05:55:55 +00:00
|
|
|
let obj = safeAreaInsets(1632);
|
2026-07-23 10:11:24 +00:00
|
|
|
safeAreaInsets = obj.useSafeAreaInsets();
|
2026-08-15 05:55:55 +00:00
|
|
|
const appEntryKey = safeAreaInsets(1497).useAppEntryKey();
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [safeAreaInsets, appEntryKey];
|
|
|
|
|
const layoutEffect = React.useLayoutEffect(() => {
|
2026-07-29 08:29:29 +00:00
|
|
|
safeAreaInsets(ref[8]).batchUpdates(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = callback(closure_1_2[3]);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj.isMetaQuest()) {
|
|
|
|
|
let META_QUEST_SAFE_AREA_INSETS = tmp3(tmp4[4]).META_QUEST_SAFE_AREA_INSETS;
|
|
|
|
|
} else {
|
|
|
|
|
META_QUEST_SAFE_AREA_INSETS = tmp;
|
|
|
|
|
if (tmp3Result.isAndroid()) {
|
2026-08-24 06:08:38 +00:00
|
|
|
safeAreaInsets = callback2(tmp4[6]).getState().byAppEntry[tmp2].safeAreaInsets;
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj3 = callback2(tmp4[6]);
|
|
|
|
|
const rect = callback2(tmp4[7]).getStableSafeAreaInsets(tmp2);
|
|
|
|
|
let tmp7 = tmp;
|
|
|
|
|
if (null != rect) {
|
|
|
|
|
if (rect.bottom === safeAreaInsets.bottom) {
|
|
|
|
|
if (rect.top === safeAreaInsets.top) {
|
|
|
|
|
tmp7 = safeAreaInsets;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
obj = { bottom: null, top: null, left: null, right: null };
|
|
|
|
|
({ bottom: obj5[0], top: obj5[1] } = rect);
|
|
|
|
|
({ left: obj5[2], right: obj5[3] } = tmp);
|
|
|
|
|
safeAreaInsets = obj;
|
|
|
|
|
}
|
|
|
|
|
META_QUEST_SAFE_AREA_INSETS = tmp7;
|
|
|
|
|
const obj4 = callback2(tmp4[7]);
|
|
|
|
|
}
|
|
|
|
|
tmp3Result = tmp3(tmp4[5]);
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
callback2(closure_1_2[6]).setState((byAppEntry) => {
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp3 = byAppEntry;
|
2026-08-24 06:08:38 +00:00
|
|
|
if (byAppEntry.byAppEntry[closure_1_1].safeAreaInsets !== META_QUEST_SAFE_AREA_INSETS) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { byAppEntry: null };
|
|
|
|
|
obj = {};
|
|
|
|
|
const merged = Object.assign(byAppEntry.byAppEntry);
|
|
|
|
|
obj = { safeAreaInsets: null };
|
|
|
|
|
obj[0] = tmp2;
|
|
|
|
|
obj[tmp] = obj;
|
|
|
|
|
obj[0] = obj;
|
|
|
|
|
tmp3 = obj;
|
|
|
|
|
}
|
|
|
|
|
return tmp3;
|
|
|
|
|
});
|
|
|
|
|
});
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items);
|
2026-08-24 06:08:38 +00:00
|
|
|
dependencyMap = React.useRef(false);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [safeAreaInsets, appEntryKey];
|
|
|
|
|
obj = {
|
|
|
|
|
style: closure_6,
|
|
|
|
|
onLayout: React.useCallback(() => {
|
|
|
|
|
if (!ref.current) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp.current = true;
|
|
|
|
|
safeAreaInsets(ref[8]).batchUpdates(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = callback(closure_1_2[3]);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj.isMetaQuest()) {
|
|
|
|
|
let META_QUEST_SAFE_AREA_INSETS = tmp3(tmp4[4]).META_QUEST_SAFE_AREA_INSETS;
|
|
|
|
|
} else {
|
|
|
|
|
META_QUEST_SAFE_AREA_INSETS = tmp;
|
|
|
|
|
if (tmp3Result.isAndroid()) {
|
2026-08-24 06:08:38 +00:00
|
|
|
safeAreaInsets = callback2(tmp4[6]).getState().byAppEntry[tmp2].safeAreaInsets;
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj3 = callback2(tmp4[6]);
|
|
|
|
|
const rect = callback2(tmp4[7]).getStableSafeAreaInsets(tmp2);
|
|
|
|
|
let tmp7 = tmp;
|
|
|
|
|
if (null != rect) {
|
|
|
|
|
if (rect.bottom === safeAreaInsets.bottom) {
|
|
|
|
|
if (rect.top === safeAreaInsets.top) {
|
|
|
|
|
tmp7 = safeAreaInsets;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
obj = { bottom: null, top: null, left: null, right: null };
|
|
|
|
|
({ bottom: obj5[0], top: obj5[1] } = rect);
|
|
|
|
|
({ left: obj5[2], right: obj5[3] } = tmp);
|
|
|
|
|
safeAreaInsets = obj;
|
|
|
|
|
}
|
|
|
|
|
META_QUEST_SAFE_AREA_INSETS = tmp7;
|
|
|
|
|
const obj4 = callback2(tmp4[7]);
|
|
|
|
|
}
|
|
|
|
|
tmp3Result = tmp3(tmp4[5]);
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
callback2(closure_1_2[6]).setState((byAppEntry) => {
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp3 = byAppEntry;
|
2026-08-24 06:08:38 +00:00
|
|
|
if (byAppEntry.byAppEntry[closure_1_1].safeAreaInsets !== META_QUEST_SAFE_AREA_INSETS) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { byAppEntry: null };
|
|
|
|
|
obj = {};
|
|
|
|
|
const merged = Object.assign(byAppEntry.byAppEntry);
|
|
|
|
|
obj = { safeAreaInsets: null };
|
|
|
|
|
obj[0] = tmp2;
|
|
|
|
|
obj[tmp] = obj;
|
|
|
|
|
obj[0] = obj;
|
|
|
|
|
tmp3 = obj;
|
|
|
|
|
}
|
|
|
|
|
return tmp3;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
let obj = safeAreaInsets(ref[8]);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}, items1)
|
|
|
|
|
};
|
2026-07-23 10:11:24 +00:00
|
|
|
return <View style={closure_6} onLayout={React.useCallback(() => {
|
|
|
|
|
if (!ref.current) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp.current = true;
|
|
|
|
|
safeAreaInsets(ref[8]).batchUpdates(() => {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = callback(closure_1_2[3]);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj.isMetaQuest()) {
|
|
|
|
|
let META_QUEST_SAFE_AREA_INSETS = tmp3(tmp4[4]).META_QUEST_SAFE_AREA_INSETS;
|
|
|
|
|
} else {
|
|
|
|
|
META_QUEST_SAFE_AREA_INSETS = tmp;
|
|
|
|
|
if (tmp3Result.isAndroid()) {
|
2026-08-24 06:08:38 +00:00
|
|
|
safeAreaInsets = callback2(tmp4[6]).getState().byAppEntry[tmp2].safeAreaInsets;
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj3 = callback2(tmp4[6]);
|
|
|
|
|
const rect = callback2(tmp4[7]).getStableSafeAreaInsets(tmp2);
|
|
|
|
|
let tmp7 = tmp;
|
|
|
|
|
if (null != rect) {
|
|
|
|
|
if (rect.bottom === safeAreaInsets.bottom) {
|
|
|
|
|
if (rect.top === safeAreaInsets.top) {
|
|
|
|
|
tmp7 = safeAreaInsets;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
obj = { bottom: null, top: null, left: null, right: null };
|
|
|
|
|
({ bottom: obj5[0], top: obj5[1] } = rect);
|
|
|
|
|
({ left: obj5[2], right: obj5[3] } = tmp);
|
|
|
|
|
safeAreaInsets = obj;
|
|
|
|
|
}
|
|
|
|
|
META_QUEST_SAFE_AREA_INSETS = tmp7;
|
|
|
|
|
const obj4 = callback2(tmp4[7]);
|
|
|
|
|
}
|
|
|
|
|
tmp3Result = tmp3(tmp4[5]);
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
callback2(closure_1_2[6]).setState((byAppEntry) => {
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp3 = byAppEntry;
|
2026-08-24 06:08:38 +00:00
|
|
|
if (byAppEntry.byAppEntry[closure_1_1].safeAreaInsets !== META_QUEST_SAFE_AREA_INSETS) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { byAppEntry: null };
|
|
|
|
|
obj = {};
|
|
|
|
|
const merged = Object.assign(byAppEntry.byAppEntry);
|
|
|
|
|
obj = { safeAreaInsets: null };
|
|
|
|
|
obj[0] = tmp2;
|
|
|
|
|
obj[tmp] = obj;
|
|
|
|
|
obj[0] = obj;
|
|
|
|
|
tmp3 = obj;
|
|
|
|
|
}
|
|
|
|
|
return tmp3;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
let obj = safeAreaInsets(ref[8]);
|
2026-07-23 10:11:24 +00:00
|
|
|
}
|
|
|
|
|
}, items1)} />;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const SafeAreaProvider = function SafeAreaProvider(arg0) {
|
|
|
|
|
({ children, style } = arg0);
|
2026-08-24 06:08:38 +00:00
|
|
|
return jsx(_mod1632.SafeAreaProvider, { initialMetrics: EMPTY_SAFE_AREA_INSETS.INITIAL_SAFE_AREA_METRICS, children, style });
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|