<?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>
            <referenceBlock name="authentication-popup">
                <!-- Do not remove the view model from layout -->
                <!--
                    Passing the view model in the layout xml keeps the recaptcha implementation in sync with Magento,
                    that means by disabling Magento's recaptcha modules, the ViewModel will not be available and therefore
                    the recaptcha code snippets will not be included.
                    If we would use the 'require' way, we would need some kind of logic inside the view model to detect
                    whether the corresponding recaptcha Magento modules are available or not.
                -->
                <arguments>
                    <argument name="viewModelRecaptcha" xsi:type="object">Hyva\Theme\ViewModel\ReCaptcha</argument>
                </arguments>
            </referenceBlock>
        <referenceBlock name="page.recaptcha.loader.form_ids">
            <block name="recaptcha.customer_login" as="customer_login"
                   ifconfig="recaptcha_frontend/type_for/customer_login"/>
        </referenceBlock>
    </body>
</page>
