<?xml version="1.0"?>
<data inherit_id="website.layout" name="Template Header Stretch" active="False">
    <xpath expr="//header//nav" position="replace">
        <t t-call="website.navbar">
            <t t-set="_navbar_classes" t-valuef="d-none d-lg-block py-0 shadow-sm"/>

            <div id="o_main_nav" t-attf-class="o_main_nav align-items-stretch #{header_content_width}">
                <!-- Brand -->
                <t t-call="website.placeholder_header_brand">
                    <t t-set="_link_class" t-valuef="d-flex align-items-center me-4 p-2"/>
                </t>
                <!-- Navbar -->
                <t t-call="website.navbar_nav">
                    <t t-set="_nav_class" t-valuef="d-flex align-items-center me-auto border-end o_border_contrast"/>

                    <!-- Menu -->
                    <t t-foreach="website.menu_id.child_id" t-as="submenu">
                        <t t-call="website.submenu">
                            <t t-set="item_class" t-valuef="nav-item h-100 border-start o_border_contrast"/>
                            <t t-set="link_class" t-valuef="nav-link d-flex align-items-center h-100"/>
                        </t>
                    </t>
                </t>
                <!-- Extra elements -->
                <ul class="o_header_stretch_elts navbar-nav flex-shrink-0 ps-2">
                    <!-- Text element -->
                        <t t-call="website.placeholder_header_text_element">
                            <t t-set="_txt_elt_content" t-valuef="mail_stretched"/>
                            <t t-set="_div_class" t-valuef="h-100 border-start o_border_contrast"/>
                        </t>
                    <!-- Search bar -->
                    <t t-call="website.placeholder_header_search_box" t-nocache="The searchbox should not cache previous searches.">
                        <t t-set="_input_classes" t-valuef="o_header_stretch_search_input border-0 rounded-0 bg-transparent text-reset"/>
                        <t t-set="_submit_classes" t-valuef="o_navlink_background_hover rounded-0 text-reset"/>
                        <t t-set="_form_classes" t-valuef="h-100 z-0"/>
                        <t t-set="_classes" t-valuef="h-100 border-start o_border_contrast"/>
                    </t>
                    <!-- Social -->
                    <t t-call="website.placeholder_header_social_links">
                        <t t-set="_div_class" t-valuef="d-flex align-items-center h-100 border-start px-2 o_border_contrast"/>
                    </t>
                    <!-- Language Selector -->
                    <t t-call="website.placeholder_header_language_selector">
                        <t t-set="_div_classes" t-valuef="h-100 border-start o_border_contrast"/>
                        <t t-set="_btn_class" t-valuef="o_navlink_background_hover btn h-100 rounded-0 text-reset"/>
                        <t t-set="_txt_class" t-valuef="small"/>
                        <t t-set="_dropdown_menu_class" t-valuef="dropdown-menu-end"/>
                    </t>
                    <!-- Sign In -->
                    <t t-call="portal.placeholder_user_sign_in">
                        <t t-set="_item_class" t-valuef="border-start o_border_contrast"/>
                        <t t-set="_link_class" t-valuef="o_navlink_background_hover btn d-flex align-items-center h-100 rounded-0 fw-bold text-reset"/>
                    </t>
                    <!-- User Dropdown -->
                    <t t-call="portal.user_dropdown">
                        <t t-set="_icon" t-value="true"/>
                        <t t-set="_item_class" t-valuef="dropdown border-start o_border_contrast"/>
                        <t t-set="_link_class" t-valuef="o_navlink_background_hover btn d-flex align-items-center h-100 rounded-0 text-reset"/>
                        <t t-set="_dropdown_menu_class" t-valuef="dropdown-menu-end"/>
                    </t>
                    <!-- Call To Action -->
                    <t t-call="website.header_call_to_action_stretched">
                        <t t-set="_div_class" t-valuef="d-flex h-100 border-start o_border_contrast"/>
                    </t>
                </ul>
            </div>
        </t>
        <t t-call="website.template_header_mobile"/>
    </xpath>
</data>

