<?xml version="1.0"?>
<!--
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"
>
    <body>
        <referenceContainer name="head.additional">
            <block name="head.js" class="Magento\Framework\View\Element\Template" template="Hyva_Theme::page/js/variables.phtml"/>
            <block name="head.hyva-scripts" template="Hyva_Theme::page/js/hyva.phtml"/>
            <block name="speculationrules" template="Hyva_Theme::page/js/speculationrules.phtml">
                <!--
                <arguments>
                    <argument name="exclude_list" xsi:type="array">
                        <item name="pdf" xsi:type="string">*.pdf</item>
                    </argument>
                </arguments>
                -->
            </block>
        </referenceContainer>

        <referenceContainer name="before.body.end">
            <block name="script-alpine-js" template="Hyva_Theme::page/js/alpinejs.phtml">
                <block name="alpine-plugin-snap-slider" template="Hyva_Theme::page/js/plugins/snap-slider.phtml"/>
                <block name="alpine-plugin-htmldialog" template="Hyva_Theme::page/js/plugins/htmldialog.phtml"/>
                <block name="alpine-plugin-intersect" template="Hyva_Theme::page/js/plugins/intersect.phtml"/>
                <block name="alpine-plugin-ignore" template="Hyva_Theme::page/js/plugins/ignore.phtml"/>
                <block name="alpine-plugin-defer" template="Hyva_Theme::page/js/plugins/defer.phtml">
                    <block name="alpine-defer-rules" template="Hyva_Theme::page/js/alpine-defer-rules.phtml">
                        <!--
                        <arguments>
                            <argument name="deferred_components" xsi:type="array">
                                <item name=".product-slider > div > section[x-data]" xsi:type="string">intersect</item>
                            </argument>
                        </arguments>
                        -->
                    </block>
                </block>
            </block>
            <block name="script-cookies" template="Hyva_Theme::page/js/cookies.phtml"/>
            <block name="script-private-content" template="Hyva_Theme::page/js/private-content.phtml"/>
            <block name="view-model-identities" class="Hyva\Theme\Block\ViewModelCacheTagsBlock"/>
            <block name="form-submit.set-uenc" template="Hyva_Theme::page/js/set-uenc.phtml"/>
            <block name="require-alpine-v3" template="Hyva_Theme::page/js/require-min-alpine-version.phtml"/>
            <block name="init.external.scripts" template="Hyva_Theme::page/js/init-external-scripts.phtml"/>
            <block name="page-js-dependencies" template="Hyva_Theme::page/page-js-dependencies.phtml"/>
            <block name="default-section-data" template="Hyva_Theme::page/default-section-data.phtml" after="-"/>
        </referenceContainer>
    </body>
</page>
