decord/source/module_5698.js
2026-08-04 08:36:32 +00:00

74 lines
2 KiB
JavaScript

// Module ID: 5698
// Function ID: 5699
// Dependencies: [19, 21, 1584, 5699, 1481, 5700, 5674, 5701]
// Module 5698
import importAllResult from "noop";
import { jsx } from "jsxProd";
const require = arg1;
let c3 = importAllResult;
export default importAllResult.memo(function Header(navigation) {
let back;
let layout;
let options;
let progress;
let route;
let styleInterpolator;
({ back, options, route } = navigation);
navigation = navigation.navigation;
({ layout, progress, styleInterpolator } = navigation);
let obj = route(1584);
const safeAreaInsets = obj.useSafeAreaInsets();
if (undefined !== options.headerBackTitle) {
let headerBackTitle = options.headerBackTitle;
} else if (back) {
headerBackTitle = back.title;
}
const items = [navigation, route.key];
const callback = importAllResult.useCallback(navigation(5699)(() => {
let obj = navigation;
if (tmp) {
obj = {};
const StackActions = route(outer1_2[4]).StackActions;
const merged = Object.assign(StackActions.pop());
obj.source = route.key;
obj.dispatch(obj);
}
}, 50), items);
const context = importAllResult.useContext(navigation(5700));
if (undefined !== options.headerStatusBarHeight) {
let num = options.headerStatusBarHeight;
} else {
num = 0;
if (!context) {
num = 0;
if (!tmp7) {
num = safeAreaInsets.top;
}
}
}
obj = {};
let merged = Object.assign(options);
const tmp = route;
const tmp4 = navigation;
const tmp4Result = navigation(5701);
const tmp8 = jsx;
obj.title = route(5674).getHeaderTitle(options, route.name);
obj.progress = progress;
obj.layout = layout;
obj.modal = context;
if (undefined !== options.headerBackTitle) {
headerBackTitle = options.headerBackTitle;
}
obj.headerBackTitle = headerBackTitle;
obj.headerStatusBarHeight = num;
let tmp11;
if (back) {
tmp11 = callback;
}
obj.onGoBack = tmp11;
obj.styleInterpolator = styleInterpolator;
return tmp8(tmp4Result, obj);
});