decord/source/5832_Header.js

78 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 5832
// Function ID: 5833
2026-08-06 08:05:19 +00:00
// Name: Header
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 21, 1631, 5833, 1500, 5834, 5316, 5835]
2026-07-23 10:11:24 +00:00
2026-08-12 06:57:52 +00:00
// Module 5832 (Header)
2026-07-29 08:29:29 +00:00
import importAllResult from "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
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
let back;
let layout;
let options;
let progress;
let route;
let styleInterpolator;
({ 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
});