{% sw_extends "@Storefront/storefront/block/cms-block-gallery-buybox.html.twig" %}
{% block block_gallery_buybox_column_left %}
{% set element = block.slots.getSlot('left') %}
{% set config = element.fieldConfig.elements %}
{% if(element.type == 'econda-cross-sell') %}
{% set cs_config = element.config|json_encode() %}
<div class="col-lg-7" id="ec-{{ element.id }}" data-element-id="{{ element.id }}" data-element-type="{{ element.type }}" data-widget-id="{{ element.config.widgetId.value }}" data-cross-sell-instance="{{ ECS['econdCrossSelll.config.clientId'] }}" data-csConfig="{{ cs_config }}" data-category="{{ categories|json_encode }}" data-econda-cross-sell>
{% else %}
<div class="col-lg-7" data-cms-element-id="{{ element.id }}">
{% endif %}
{% block block_gallery_buybox_column_left_inner %}
{% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing
with {
'isProduct': config.sliderItems.value == 'product.media' and config.sliderItems.source == 'mapped'
} %}
{% endblock %}
</div>
{% endblock %}
{% block block_gallery_buybox_column_right %}
{% set element = block.slots.getSlot('right') %}
{% if(element.type == 'econda-cross-sell') %}
{% set cs_config = element.config|json_encode() %}
<div class="col-lg-5" id="ec-{{ element.id }}" data-element-id="{{ element.id }}" data-element-type="{{ element.type }}" data-widget-id="{{ element.config.widgetId.value }}" data-cross-sell-instance="{{ ECS['econdCrossSelll.config.clientId'] }}" data-csConfig="{{ cs_config }}" data-category="{{ categories|json_encode }}" data-econda-cross-sell>
{% else %}
<div class="col-lg-5" data-cms-element-id="{{ element.id }}">
{% endif %}
{% block block_gallery_buybox_column_right_inner %}
{% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing %}
{% endblock %}
</div>
{% endblock %}