<core:FragmentDefinition
		xmlns="sap.m"
		xmlns:f="sap.f"
		xmlns:grid="sap.ui.layout.cssgrid"
		xmlns:core="sap.ui.core"
		xmlns:custom="sap.ui.documentation">
	<Dialog title="{i18n>COOKIE_SETTINGS_DIALOG_TITLE}" contentWidth="45rem">
		<content>
			<custom:DivContainer class="sapUiSmallMargin">
				<Text text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TEXT}"
					  visible="{= !${cookieData>/showCookieDetails} }"/>
				<f:GridList visible="{cookieData>/showCookieDetails}">
					<f:customLayout>
						<grid:GridBasicLayout gridTemplateColumns="1fr" gridGap="1rem"/>
					</f:customLayout>
					<f:GridListItem>
						<HBox justifyContent="SpaceBetween" class="sapUiSmallMarginBeginEnd sapUiSmallMarginTop">
							<VBox>
								<Title text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TITLE}" />
								<Text text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SUMMARY}"/>
							</VBox>
							<Switch id="requiredCookiesSwitch" class="sapUiSmallMarginBegin"
								state="{path: 'cookieData>/dk_allow_functional_cookies', type: 'sap.ui.model.type.Boolean', formatter: '.formatCookieValue'}"/>
						</HBox>
						<Panel headerText="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_MORE_INFO}" expandable="true" class="sapUiTinyMarginTop">
							<Text text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TEXT}"/>
						</Panel>
					</f:GridListItem>
				</f:GridList>
			</custom:DivContainer>
		</content>
	<buttons>
		<Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_ACCEPT_ALL}" type="Emphasized" press=".onAcceptAllCookies" visible="{=! ${cookieData>/showCookieDetails} }">
			<layoutData>
				<OverflowToolbarLayoutData priority="NeverOverflow"/>
			</layoutData>
		</Button>
		<Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SET_PREFERENCES}" id="btnSetPreferences" type="Ghost" press=".showCookieDetails" visible="{= !${cookieData>/showCookieDetails} &amp;&amp; ${cookieData>/enableAdvancedSettings} }"></Button>
		<Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_REJECT_ALL}" press=".onRejectAllCookies" visible="{=! ${cookieData>/showCookieDetails} }">
			<layoutData>
				<OverflowToolbarLayoutData priority="NeverOverflow"/>
			</layoutData>
		</Button>
		<Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SAVE_PREFERENCES}" id="btnSavePreferences" type="Emphasized" press=".onSaveCookies" visible="{cookieData>/showCookieDetails}"></Button>
		<Button text="{i18n>COOKIE_SETTINGS_DIALOG_CANCEL_BTN}" press=".onCancelPress" visible="{= ${cookieData>/showCookieDetails} }"></Button>
	</buttons>
	</Dialog>
</core:FragmentDefinition>