decord/source/6551_Header.js

72 lines
2 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6551
// Function ID: 6552
2026-08-06 08:05:19 +00:00
// Name: Header
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 21, 1632, 6552, 1501, 6553, 6350, 6554]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 6551 (Header)
import importAllResult from "noop" /* 19 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
2026-08-06 08:05:19 +00:00
export const Header = importAllResult.memo(function Header(navigation) {
2026-07-29 08:29:29 +00:00
({ back, options, route } = navigation);
navigation = navigation.navigation;
({ layout, progress, styleInterpolator } = navigation);
2026-08-06 08:05:19 +00:00
let obj = route(navigation[2]);
2026-07-29 08:29:29 +00:00
const safeAreaInsets = obj.useSafeAreaInsets();
if (undefined !== options.headerBackTitle) {
let headerBackTitle = options.headerBackTitle;
} else if (back) {
headerBackTitle = back.title;
}
2026-08-06 08:05:19 +00:00
let tmpResult = tmp(tmp2[3]);
2026-07-29 08:29:29 +00:00
const items = [navigation, route.key];
2026-08-06 08:05:19 +00:00
const callback = importAllResult.useCallback(tmpResult.throttle(() => {
2026-07-29 08:29:29 +00:00
let obj = navigation;
if (tmp) {
obj = {};
2026-08-06 08:05:19 +00:00
const StackActions = route(navigation[4]).StackActions;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(StackActions.pop());
obj.source = route.key;
obj.dispatch(obj);
2026-07-22 07:54:56 +00:00
}
2026-07-29 08:29:29 +00:00
}, 50), items);
2026-08-06 08:05:19 +00:00
const context = importAllResult.useContext(tmp(tmp2[5]).ModalPresentationContext);
2026-07-29 08:29:29 +00:00
if (undefined !== options.headerStatusBarHeight) {
let num = options.headerStatusBarHeight;
} else {
num = 0;
if (!context) {
num = 0;
2026-08-06 08:05:19 +00:00
if (!tmp6) {
2026-07-29 08:29:29 +00:00
num = safeAreaInsets.top;
}
2026-07-22 07:54:56 +00:00
}
}
2026-07-29 08:29:29 +00:00
obj = {};
let merged = Object.assign(options);
2026-08-06 08:05:19 +00:00
tmpResult = tmp(tmp2[6]);
obj.title = tmpResult.getHeaderTitle(options, route.name);
2026-07-29 08:29:29 +00:00
obj.progress = progress;
obj.layout = layout;
obj.modal = context;
if (undefined !== options.headerBackTitle) {
headerBackTitle = options.headerBackTitle;
}
obj.headerBackTitle = headerBackTitle;
obj.headerStatusBarHeight = num;
2026-08-06 08:05:19 +00:00
let tmp9;
2026-07-29 08:29:29 +00:00
if (back) {
2026-08-06 08:05:19 +00:00
tmp9 = callback;
2026-07-29 08:29:29 +00:00
}
2026-08-06 08:05:19 +00:00
obj.onGoBack = tmp9;
let href;
if (back) {
href = back.href;
}
obj.backHref = href;
2026-07-29 08:29:29 +00:00
obj.styleInterpolator = styleInterpolator;
2026-08-06 08:05:19 +00:00
return jsx(route(navigation[7]).HeaderSegment, {});
2026-07-22 07:54:56 +00:00
});