<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
 -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <type name="Magento\ReCaptchaCustomer\Observer\AjaxLoginObserver">
        <arguments>
            <argument name="captchaResponseResolver" xsi:type="object">Magento\ReCaptchaCustomer\Model\AjaxLogin\CaptchaResponseResolver</argument>
        </arguments>
    </type>

    <!-- AjaxLogin Form -->

    <type name="Magento\Customer\Block\Account\AuthenticationPopup">
        <plugin sortOrder="1" name="inject_recaptcha_in_authentication_popup"
                type="Magento\ReCaptchaCustomer\Plugin\Block\Account\InjectRecaptchaInAuthenticationPopup"/>
    </type>
    <type name="Magento\Customer\ViewModel\LoginButton">
        <plugin sortOrder="1" name="recaptcha_disable_login_button"
                type="Magento\ReCaptchaCustomer\Plugin\Customer\DisableLoginButton"/>
    </type>
    <type name="Magento\Customer\ViewModel\CreateAccountButton">
        <plugin sortOrder="1" name="recaptcha_disable_create_account_button"
                type="Magento\ReCaptchaCustomer\Plugin\Customer\DisableCreateAccountButton"/>
    </type>
    <type name="Magento\Customer\ViewModel\ForgotPasswordButton">
        <plugin sortOrder="1" name="recaptcha_disable_forgot_password_button"
                type="Magento\ReCaptchaCustomer\Plugin\Customer\DisableForgotPasswordButton"/>
    </type>
</config>
