<?xml version="1.0"?>
<!--
/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_AbandonedCart
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Mageplaza\AbandonedCart\Block\Menu">
        <arguments>
            <argument name="girdName" xsi:type="array">
                <item name="abandonedcart_index_checkoutreport" xsi:type="string">mp_abandoned_cart_checkout_report_grid.abandoned_checkout_cart_grid_data_source</item>
                <item name="abandonedcart_index_productreport" xsi:type="string">mp_abandoned_cart_product_report_grid.abandoned_product_grid_data_source</item>
            </argument>
            <argument name="menuUrls" xsi:type="array">
                <item name="abandonedcart/index/checkoutreport" xsi:type="string" translate="true">Checkout Abandonment Report</item>
                <item name="abandonedcart/index/productreport" xsi:type="string" translate="true">Abandoned Product Report</item>
                <item name="abandonedcart/index/shoppingbehavior" xsi:type="string" translate="true">Shopping Behavior Analysis</item>
                <item name="abandonedcart/index/cartboard" xsi:type="string" translate="true">Card Board</item>
            </argument>
        </arguments>
    </type>
    <type name="Mageplaza\Reports\Block\Dashboard\ConversionFunnel">
        <plugin name="addViewDetailLink" type="Mageplaza\AbandonedCart\Plugin\ConversionFunnel"/>
    </type>
    <!--Add the is_active column to the Customer Grid-->
    <type name="Magento\Customer\Model\ResourceModel\Grid\Collection">
        <plugin name="mp_ace_blacklist_add_to_customer_grid" type="Mageplaza\AbandonedCart\Plugin\Model\ResourceModel\Grid\Collection" />
    </type>
    <!--fix send date Overall Report magento 244 -->
    <type name="Magento\Backend\Block\Widget\Grid\Column\Filter\Datetime">
        <plugin name="fix_send_date_overall_report_grid" type="Mageplaza\AbandonedCart\Plugin\Block\Widget\Grid\Column\Filter\Datetime" />
    </type>
</config>
