{% set demiFolder = document and document.property('demi_whitelabel_style') ? 'demi-'~document.property('demi_whitelabel_style') : 'demi' %}
{% set device = pimcore_device().isPhone() ? 'mobile' : 'desktop' %}
{% set folder = elements_debug_mode() and not app.request.get('liveCss') ? 'debug/' : 'build/' %}
{% if not app.request.get('inlineOnly') %}
{% set cacheFilePath = demi_getExistingCacheFile( '/static/' ~ demiFolder ~'/' ~ folder ~ 'js/script-demi-' ~ device ~ '.js' ) %}
{% if cacheFilePath is not empty %}
<script src="/cache-buster-{{ cacheFilePath }}" async data-cookieconsent="ignore"></script>
{% endif %}
{% endif %}
{{ jsonLd()|raw }}