<meta charset="UTF-8">
{% if not editmode %}
{{ elements_head_title() }}
{{ elements_head_meta() }}
{{ elements_canonical() }}
{% if not deactivateHrefland|default(false) %}
{{ elements_hreflang() }}
{% endif %}
{% set img = demi_core_configuration('getOgImage',[]) %}
{% if img is not null %}
{% do elements_opengraph().addImage(app.request.getHost() ~ img.getThumbnail('ogimages')) %}
{% endif %}
{{ elements_opengraph() }}
{% endif %}
<!-- prevent underline numbers in edge -->
<meta name="format-detection" content="telephone=no"/>
<link rel="apple-touch-icon" sizes="152x152" href="/static/img/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/static/img/favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/static/img/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/static/img/favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/static/img/favicons/favicon-96x96.png" sizes="96x96">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/static/img/favicons/safari-pinned-tab.svg">
{% if pimcore_device().isTablet() %}
<meta name="viewport" content="user-scalable=no">
{% else %}
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
{% endif %}
{{ include('@ElementsDemiFrontend/Includes/layout/headCss.html.twig') }}
{% if editmode %}
<link rel="stylesheet" href="/static/css/editmode.css">
{% endif %}
<script type="text/javascript" data-cookieconsent="ignore">
var supportsWoff2=function(){if(!("FontFace"in window))return!1;var e=new window.FontFace("t",'url( "data:application/font-woff2," ) format( "woff2" )',{});return e.load()["catch"](function(){})};!function(){"use strict";function e(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")&&8==parseInt(e.split("msie")[1])?"ie8":supportsWoff2()?"blink":"default"}function t(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function n(e){if(window.XMLHttpRequest){var n=new XMLHttpRequest,i=e[1]+"?dc="+e[0].split("--")[0];n.open("GET",i,!0),t(n,"load",function(){4===n.readyState&&a(n.responseText,e[0])}),n.send()}else{var o=document.createElement("link");o.href=e[1],o.rel="stylesheet",o.type="text/css",document.getElementsByTagName("head")[0].appendChild(o),document.cookie=e[0]}}function a(t,n){if(document.getElementById(n)&&"ie8"!=e())document.getElementById(n).innerHTML=t;else{var a=document.createElement("style");a.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(a)}}var i=[];if("ie8"!==e()){for(var o=document.getElementsByClassName("js-style"),r=0;r<o.length;r++)o[r].getAttribute("data-font")?i.push([o[r].getAttribute("id"),o[r].getAttribute("data-href")+e()+".css"]):i.push([o[r].getAttribute("id"),o[r].getAttribute("data-href")]);for(var s in i)if("ie8"==e()){var d=document.createElement("link");d.href=i[s][1],d.rel="stylesheet",d.type="text/css",document.getElementsByTagName("head")[0].appendChild(d)}else t(window,"load",n(i[s]))}}();
</script>
{% if not editmode %}
<script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="1ade52b6-e8d9-4dc2-92e0-3c43c1fd8cd4" data-blockingmode="auto" type="text/javascript"></script>
{% endif %}
{{ include('@ElementsDemiFrontend/Includes/layout/js-config.html.twig') }}
{% set route = app.request.get('_route') %}
{% if not 'demi_checkout' in route %}
{# nothing here #}
{% else %}
{% do jsConfig('_initialState').add(demi_getSearchArray()) %}
{% endif %}
{#
TODO
$tz = date_default_timezone_get();
$timezoneHere = new DateTimeZone($tz);
$timezoneUtc = new DateTimeZone("UTC");
$dateTimeUtc = new DateTime("now", $dateTimeUtc);
$offset = $timezoneHere->getOffset($dateTimeUtc);
$this->jsConfig('_config')->add(['timezoneOffset'=>(int)$offset])
#}
{% do jsConfig('_translations').add(demi_getAllDemiTranslationKeys()) %}
{% set local = app.request.locale ~ '-' ~ demi_findFirstRegionforLanguage(app.request.locale) %}
{% if local == "en-US" %}
{% set local = "en-GB" %}
{% endif %}
{% do jsConfig().add({'local': local}) %}
{% do jsConfig().add({'useDataLayerTracking': 'gtm' in demi_core_configuration('getTrackingSystem',[]) ? true : false}) %}
{% do jsConfig().add({'ga4Tracking': demi_core_configuration('getTrackingSystem',[]) == 'gtm-ga4' ? true : false}) %}
{# todo: delete the following block & add it to the dummy project #}
{#{% do jsConfig('_config').add('cookieServices', {#}
{# matomo: {#}
{# isAllowed: false,#}
{# isReadOnly: false,#}
{# text: "Matomo",#}
{# },#}
{# google: {#}
{# isAllowed: false,#}
{# isReadOnly: false,#}
{# text: "Goolge",#}
{# }#}
{#}) %}#}
{{ jsConfig() }}