{% sw_extends '@Storefront/storefront/base.html.twig' %}
{% block base_script_hmr_mode %}
{% block base_script_maxia_listing_variants %}
{%- if context.extensions.maxiaListingVariants is defined %}
{% if popupCloseIcon is not defined %}
{% set popupCloseIcon %}{% sw_icon 'x' style { 'size': 'sm' } %}{% endset %}
{% endif %}
<script>
{%- block base_script_maxia_listing_variants_scripts_inline -%}
window.maxiaListingVariants = {{ {
'cmsPageId': page.cmsPage.id,
'ajaxUrl': path('frontend.plugins.maxia-listing-variants.product-box'),
'popupCloseIcon': popupCloseIcon|trim|replace({' ': ' '})
}|json_encode|raw }};
{%- endblock -%}
</script>
{% endif -%}
{% endblock %}
{{ parent() }}
{% endblock %}