<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_settings_country_currency_hamburger_menu %}
<sw-context-button
    :menu-width="300"
    :auto-close="false"
    :auto-close-outside-click="true"
>
    <template #button>

        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_settings_country_currency_hamburger_menu_trigger %}
        <sw-button
            class="sw-settings-country-currency-hamburger-menu__button"
            size="x-small"
            square
        >

            <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
            {% block sw_country_currency_hamburger_menu_icon %}
            <sw-icon
                name="regular-bars-s"
                small
            />
            {% endblock %}

        </sw-button>
        {% endblock %}

    </template>

    <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
    {% block sw_country_currency_hamburger_menu_list %}
    <div class="sw-settings-country-currency-hamburger-menu__wrapper">

        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_country_currency_hamburger_menu_item %}
        <div
            v-for="(item) in options"
            :key="item.key"
            class="sw-settings-country-currency-hamburger-menu__item"
        >

            <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
            {% block sw_country_currency_hamburger_menu_item_visibility_checkbox %}
            <mt-checkbox
                v-model:checked="item.checked"
                :label="item.name"
                :disabled="(item.disabled || !acl.can('country.editor')) || undefined"
                @update:checked="onCheckCurrency(item.id, item.checked)"
            />
            {% endblock %}

        </div>
        {% endblock %}

    </div>
    {% endblock %}

    <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
    {% block sw_settings_country_currency_hamburger_menu_loader %}
    <sw-loader v-if="isLoading" />
    {% endblock %}

</sw-context-button>
{% endblock %}
