decord/source/module_5552.js
2026-07-23 10:11:24 +00:00

72 lines
2 KiB
JavaScript

// Module ID: 5552
// Function ID: 47146
// Dependencies: [31, 33, 1560, 5553, 1457, 5554, 5528, 5555]
// Module 5552
import importAllResult from "result";
import { jsx } from "jsxProd";
const require = arg1;
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(1560);
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(5553)(() => {
let isFocusedResult = navigation.isFocused();
if (isFocusedResult) {
isFocusedResult = navigation.canGoBack();
}
if (isFocusedResult) {
const _Object = Object;
const StackActions = route(outer1_2[4]).StackActions;
const obj = { source: route.key };
navigation.dispatch(Object.assign({}, StackActions.pop(), obj));
}
}, 50), items);
const context = importAllResult.useContext(navigation(5554));
if (undefined !== options.headerStatusBarHeight) {
let num = options.headerStatusBarHeight;
} else {
num = 0;
if (!context) {
num = 0;
if (!tmp4) {
num = safeAreaInsets.top;
}
}
}
obj = {};
const tmp5 = jsx;
const tmp6 = navigation(5555);
obj.title = route(5528).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 tmp7;
if (back) {
tmp7 = callback;
}
obj.onGoBack = tmp7;
obj.styleInterpolator = styleInterpolator;
return tmp5(tmp6, Object.assign({}, options, obj));
});