<core:FragmentDefinition
	xmlns="sap.m"
	xmlns:core="sap.ui.core"
	xmlns:uxap="sap.uxap"
	xmlns:unittest="http://schemas.sap.com/sapui5/preprocessorextension/sap.fe.unittesting/1"
	xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
	template:require="{
		UI: 'sap/fe/core/templating/UIFormatters'
	}"
>
	<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
		<template:with path="header>avatar" var="avatar">
			<uxap:expandedHeading>
				<FlexBox renderType="Bare">
					<FlexBox visible="{header>title/expandedImageVisible}">
						<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
					</FlexBox>
					<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
				</FlexBox>
			</uxap:expandedHeading>
			<uxap:snappedHeading>
				<FlexBox renderType="Bare">
					<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingAvatar" type="XML" />
					<VBox>
						<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
						<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingContent" type="XML" />
					</VBox>
				</FlexBox>
			</uxap:snappedHeading>
			<uxap:snappedContent>
				<MessageStrip
					visible="{= ${internal>OPBackendMessageVisible} || ${internal>OPCustomMessageVisible} || false }"
					text="{= ${internal>OPBackendMessageText} || ${internal>OPCustomMessageText}}"
					type="{= ${internal>OPBackendMessageType} || ${internal>OPCustomMessageType}}"
					showIcon="true"
					showCloseButton="true"
					class="sapUiSmallMarginTop"
					close=".handlers.closeOPMessageStrip"
				/>
			</uxap:snappedContent>
			<uxap:expandedContent>
				<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingContent" type="XML" />
				<MessageStrip
					visible="{= ${internal>OPBackendMessageVisible} || ${internal>OPCustomMessageVisible} || false }"
					text="{= ${internal>OPBackendMessageText} || ${internal>OPCustomMessageText}}"
					type="{= ${internal>OPBackendMessageType} || ${internal>OPCustomMessageType}}"
					showIcon="true"
					showCloseButton="true"
					class="sapUiSmallMarginTop"
					close=".handlers.closeOPMessageStrip"
				/>
			</uxap:expandedContent>
			<uxap:snappedTitleOnMobile>
				<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeadingTitle" type="XML" />
			</uxap:snappedTitleOnMobile>
		</template:with>
	</template:with>
</core:FragmentDefinition>
