<?xml version="1.0"?>
<!--
/**
 * @category  Magetop Extensions
 * @package   Magetop_Quotesystem
 * @author    Magetop Developer
 * @copyright Copyright (c) Magetop (https://www.magetop.com)
 * @license   https://www.magetop.com/license.html
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="checkout_cart_sidebar_item_renderers"/>
    <update handle="checkout_cart_sidebar_item_price_renderers"/>
    <update handle="checkout_cart_sidebar_total_renderers"/>
    <head>
        <css src="Magetop_Quotesystem::css/miniquote.css"/>
    </head>
    <body>
        <referenceBlock name="head.components">
            <block class="Magento\Framework\View\Element\Js\Components" name="checkout_page_head_components" template="Magento_Checkout::js/components.phtml"/>
        </referenceBlock>
        <referenceBlock name="wishlist_sidebar">
            <action method="setTemplate">
                <argument name="template" xsi:type="string">Magetop_Quotesystem::sidebar.phtml</argument>
            </action>
        </referenceBlock>
        <referenceContainer name="header-wrapper">
            <block class="Magetop\Quotesystem\Block\Rewrite\Cart\Sidebar" name="miniquote" as="miniquote" ifconfig="quotesystem/mt_quotesystemsetting/mt_quotesystemenabledisable" after="logo" template="Magetop_Quotesystem::miniquote.phtml">
                <arguments>
                    <argument name="jsLayout" xsi:type="array">
                        <item name="types" xsi:type="array"/>
                        <item name="components" xsi:type="array">
                            <item name="quote_content" xsi:type="array">
                                <item name="component" xsi:type="string">Magetop_Quotesystem/js/miniquote</item>
                                <item name="config" xsi:type="array">
                                    <item name="template" xsi:type="string">Magetop_Quotesystem/miniquote/content</item>
                                </item>
                            </item>
                        </item>
                    </argument>
                </arguments>
            </block>
        </referenceContainer>
    </body>
</page>
