2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 5553
|
2026-07-25 08:10:48 +00:00
|
|
|
// Function ID: 47156
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: HeaderSegment
|
2026-07-24 07:16:23 +00:00
|
|
|
// Dependencies: [29, 57, 31, 27, 33, 5554, 5526]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 5553 (HeaderSegment)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _objectWithoutProperties from "_objectWithoutProperties";
|
|
|
|
|
import _slicedToArray from "_slicedToArray";
|
|
|
|
|
import result from "result";
|
|
|
|
|
import get_ActivityIndicator from "get ActivityIndicator";
|
|
|
|
|
import { jsx } from "jsxProd";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
let Platform;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_7;
|
|
|
|
|
const require = arg1;
|
|
|
|
|
let closure_3 = ["progress", "layout", "modal", "onGoBack", "headerTitle", "headerLeft", "headerRight", "headerBackImage", "headerBackTitle", "headerBackTitleVisible", "headerTruncatedBackTitle", "headerBackAccessibilityLabel", "headerBackTestID", "headerBackAllowFontScaling", "headerBackTitleStyle", "headerTitleContainerStyle", "headerLeftContainerStyle", "headerRightContainerStyle", "headerBackgroundContainerStyle", "headerStyle", "headerStatusBarHeight", "styleInterpolator"];
|
|
|
|
|
({ Platform, StyleSheet: closure_7 } = get_ActivityIndicator);
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function HeaderSegment(headerTitle) {
|
|
|
|
|
let backgroundStyle;
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_11;
|
|
|
|
|
let closure_13;
|
|
|
|
|
let closure_14;
|
|
|
|
|
let closure_15;
|
|
|
|
|
let closure_16;
|
|
|
|
|
let closure_17;
|
2026-07-20 16:05:17 +00:00
|
|
|
let current;
|
|
|
|
|
let headerBackTitle;
|
|
|
|
|
let headerBackgroundContainerStyle;
|
|
|
|
|
let headerLeftContainerStyle;
|
|
|
|
|
let headerRightContainerStyle;
|
|
|
|
|
let headerStatusBarHeight;
|
|
|
|
|
let headerStyle;
|
|
|
|
|
let headerTitleContainerStyle;
|
|
|
|
|
let layout;
|
|
|
|
|
let leftButtonStyle;
|
|
|
|
|
let modal;
|
|
|
|
|
let next;
|
|
|
|
|
let onGoBack;
|
|
|
|
|
let progress;
|
|
|
|
|
let rightButtonStyle;
|
|
|
|
|
let styleInterpolator;
|
|
|
|
|
let titleStyle;
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp = handleLeftLabelLayout(layout.useState(undefined), 2);
|
2026-07-20 16:05:17 +00:00
|
|
|
const first = tmp[0];
|
|
|
|
|
const importDefault = tmp[1];
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp3 = handleLeftLabelLayout(layout.useState(undefined), 2);
|
2026-07-20 16:05:17 +00:00
|
|
|
const first1 = tmp3[0];
|
|
|
|
|
let closure_3 = tmp3[1];
|
|
|
|
|
function handleTitleLayout(nativeEvent, closure_3) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_1;
|
|
|
|
|
let first;
|
|
|
|
|
({ height: first, width: closure_1 } = nativeEvent.nativeEvent.layout);
|
2026-07-20 16:05:17 +00:00
|
|
|
callback2((arg0) => {
|
|
|
|
|
let size = arg0;
|
|
|
|
|
if (arg0) {
|
|
|
|
|
return size;
|
|
|
|
|
}
|
|
|
|
|
size = { height: closure_0, width: closure_1 };
|
|
|
|
|
});
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
handleLeftLabelLayout = function handleLeftLabelLayout(layout, arg1) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let height;
|
|
|
|
|
let width;
|
2026-07-23 10:11:24 +00:00
|
|
|
({ height, width } = layout.nativeEvent.layout);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp = first;
|
|
|
|
|
if (first) {
|
|
|
|
|
tmp = height === first.height;
|
|
|
|
|
}
|
|
|
|
|
if (tmp) {
|
|
|
|
|
tmp = width === first.width;
|
|
|
|
|
}
|
|
|
|
|
if (!tmp) {
|
|
|
|
|
const obj = { height, width };
|
|
|
|
|
callback(obj);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
({ progress, layout } = headerTitle);
|
|
|
|
|
({ modal, onGoBack } = headerTitle);
|
|
|
|
|
headerTitle = headerTitle.headerTitle;
|
|
|
|
|
let headerLeft = headerTitle.headerLeft;
|
|
|
|
|
if (undefined === headerLeft) {
|
|
|
|
|
let fn;
|
|
|
|
|
if (onGoBack) {
|
|
|
|
|
fn = (arg0) => headerTitle(first(first1[6]).HeaderBackButton, Object.assign({}, arg0));
|
|
|
|
|
}
|
|
|
|
|
headerLeft = fn;
|
|
|
|
|
}
|
|
|
|
|
const headerRight = headerTitle.headerRight;
|
|
|
|
|
({ headerBackImage: closure_11, headerBackTitle } = headerTitle);
|
|
|
|
|
const headerBackTitleVisible = headerTitle.headerBackTitleVisible;
|
|
|
|
|
({ headerTruncatedBackTitle: closure_13, headerBackAccessibilityLabel: closure_14, headerBackTestID: closure_15, headerBackAllowFontScaling: closure_16, headerBackTitleStyle: closure_17, headerStyle, headerStatusBarHeight, styleInterpolator } = headerTitle);
|
|
|
|
|
({ headerTitleContainerStyle, headerLeftContainerStyle, headerRightContainerStyle, headerBackgroundContainerStyle } = headerTitle);
|
2026-07-23 10:11:24 +00:00
|
|
|
const tmp5 = importDefault(first1[5])((arg0, width, progress, progress2, title, leftLabel, height) => {
|
|
|
|
|
obj = { current: obj };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { progress };
|
|
|
|
|
let tmp = progress2;
|
|
|
|
|
if (progress2) {
|
|
|
|
|
obj = { progress: progress2 };
|
|
|
|
|
tmp = obj;
|
|
|
|
|
}
|
|
|
|
|
obj.next = tmp;
|
|
|
|
|
obj.layouts = { header: obj2, screen: width, title, leftLabel };
|
|
|
|
|
return arg0(obj);
|
|
|
|
|
});
|
|
|
|
|
const tmp6 = undefined !== headerBackTitleVisible && headerBackTitleVisible;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = first(first1[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
let defaultHeaderHeight = obj.getDefaultHeaderHeight(layout, modal, headerStatusBarHeight);
|
|
|
|
|
obj = headerStyle;
|
|
|
|
|
if (!headerStyle) {
|
|
|
|
|
obj = {};
|
|
|
|
|
}
|
|
|
|
|
let height = onGoBack.flatten(obj).height;
|
|
|
|
|
if (undefined === height) {
|
|
|
|
|
height = defaultHeaderHeight;
|
|
|
|
|
}
|
|
|
|
|
({ current, next } = progress);
|
|
|
|
|
let tmp10;
|
|
|
|
|
if (headerBackTitle) {
|
|
|
|
|
tmp10 = first;
|
|
|
|
|
}
|
|
|
|
|
if ("number" === typeof height) {
|
|
|
|
|
defaultHeaderHeight = height;
|
|
|
|
|
}
|
|
|
|
|
const tmp5Result = tmp5(styleInterpolator, layout, current, next, first1, tmp10, defaultHeaderHeight);
|
|
|
|
|
const leftLabelStyle = tmp5Result.leftLabelStyle;
|
|
|
|
|
let fn2;
|
|
|
|
|
({ titleStyle, leftButtonStyle, rightButtonStyle, backgroundStyle } = tmp5Result);
|
|
|
|
|
if (headerLeft) {
|
|
|
|
|
fn2 = (arg0) => {
|
|
|
|
|
const items = [leftLabelStyle, closure_17];
|
|
|
|
|
return headerLeft(Object.assign({}, arg0, { backImage: closure_11, accessibilityLabel: closure_14, testID: closure_15, allowFontScaling: closure_16, onPress: onGoBack, label: headerBackTitle, truncatedLabel: closure_13, labelStyle: items, onLabelLayout: handleLeftLabelLayout, screenLayout: layout, titleLayout: first1, canGoBack: Boolean(onGoBack) }));
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
let fn3;
|
|
|
|
|
if (headerRight) {
|
|
|
|
|
fn3 = (arg0) => headerRight(Object.assign({}, arg0, { canGoBack: Boolean(onGoBack) }));
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { modal, layout, headerTitle: "function" !== typeof headerTitle ? ((arg0) => headerTitle(first(first1[6]).HeaderTitle, Object.assign({}, arg0, { onLayout: handleTitleLayout }))) : ((arg0) => headerTitle(Object.assign({}, arg0, { onLayout: handleTitleLayout }))), headerLeft: fn2, headerLeftLabelVisible: tmp6, headerRight: fn3 };
|
|
|
|
|
let items = [titleStyle, headerTitleContainerStyle];
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.headerTitleContainerStyle = items;
|
|
|
|
|
const items1 = [leftButtonStyle, headerLeftContainerStyle];
|
|
|
|
|
obj.headerLeftContainerStyle = items1;
|
|
|
|
|
const items2 = [rightButtonStyle, headerRightContainerStyle];
|
|
|
|
|
obj.headerRightContainerStyle = items2;
|
|
|
|
|
const items3 = [backgroundStyle, headerBackgroundContainerStyle];
|
|
|
|
|
obj.headerBackgroundContainerStyle = items3;
|
|
|
|
|
obj.headerStyle = headerStyle;
|
|
|
|
|
obj.headerStatusBarHeight = headerStatusBarHeight;
|
2026-07-23 10:11:24 +00:00
|
|
|
return headerTitle(first(first1[6]).Header, Object.assign(obj, handleTitleLayout(headerTitle, closure_3)));
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|