<core:FragmentDefinition
	xmlns:core="sap.ui.core"
	xmlns="sap.m"
	xmlns:grid="sap.ui.layout.cssgrid"
	xmlns:f="sap.f"
	xmlns:util="sap.ui.fl.util">
	<Dialog
		id="sapUiRtaWhatsNewDialog"
		class="sapUiRtaWhatsNewDialog"
		title="{i18n>TIT_WHATS_NEW_DIALOG}"
		contentWidth="50rem"
		contentHeight="33rem"
		horizontalScrolling="false">
		<content>
			<Carousel
				id="sapWhatsNewDialogCarousel"
				loop="true"
				pages="{path: 'whatsNewModel>/featureCollection',  templateShareable: false}"
				height="33rem"
				width="100%">
				<pages>
					<Page enableScrolling="true" showHeader="false">
						<VBox height="100%" width="100%">
							<Title text="{whatsNewModel>title}" class="sapUiMediumMarginTop sapUiSmallMarginBegin sapUiTinyMarginBottom" level="H3"/>
							<f:Card width="100%" height="24rem" class="sapUiSmallMarginBottom">
								<f:content>
									<Page showHeader="false" backgroundDesign="Transparent">
											<VBox items="{path: 'whatsNewModel>information', templateShareable: false}" class="sapUiSmallMargin">
												<HBox alignItems="Center" class="sapUiTinyMargin">
													<FormattedText
														visible="{= (${whatsNewModel>image} === null ? true : false) &amp;&amp; (${whatsNewModel>text} !== null ? true : false)}"
														htmlText="{whatsNewModel>text}"
														/>
													<Image
														src= "{whatsNewModel>image}"
														visible="{= (${whatsNewModel>image} !== null ? true : false) &amp;&amp; (${whatsNewModel>text} === null ? true : false)}"
														class="whatsNewImage"
														width="100%"
														/>
													<grid:CSSGrid
														visible="{= (${whatsNewModel>image} !== null ? true : false) &amp;&amp; (${whatsNewModel>text} !== null ? true : false)}"
														gridTemplateColumns="2fr 3fr"
														gridGap="1rem">
														<Image
															src= "{whatsNewModel>image}"
															class="whatsNewImage"
															width="100%"/>
														<HBox alignItems="Center">
															<FormattedText htmlText="{whatsNewModel>text}"/>
														</HBox>
													</grid:CSSGrid>
												</HBox>
											</VBox>
									</Page>
								</f:content>
							</f:Card>
						</VBox>
					</Page>
				</pages>
			</Carousel>
		</content>
		<footer>
			<Toolbar>
				<content>
					<CheckBox
						id="whatsNewDialog_DontShowAgain"
						text="{i18n>TXT_DONT_SHOW_AGAIN_WHATS_NEW_DIALOG}">
					</CheckBox>
					<ToolbarSpacer />
					<Button
						id="sapUiRtaWhatsNewDialog_LearnMore"
						text="{i18n>BTN_LEARN_MORE_WHATS_NEW_DIALOG}"
						press=".onLearnMorePress"/>
					<Button
						id="sapUiRtaWhatsNewDialog_ButtonClose"
						text="{i18n>BTN_CLOSE_FEEDBACK_DIALOG}"
						press=".closeWhatsNewDialog"/>
				</content>
			</Toolbar>
		</footer>
	</Dialog>
</core:FragmentDefinition>