<div id="{{ this.identifier }}" {{ attributes.defaults(stimulus_controller('filter-replace ' ~ this.shortName, {responseKey: 'descriptionHtml'})) }}>
   <twig:block name="content">
      {% if this.blockId %}
         <twig:EditableContent content="{{ this.content }}">
            {% if outerScope.this.identifier is not null %}
               {% for block in outerScope.this.filterBlocks(this.blocks) %}
                  {{ block.content|raw }}
               {% endfor %}
            {% else %}
               {{ parent() }}
            {% endif %}
         </twig:EditableContent>
      {% endif %}

      {% if this.producerBlockId %}
         <div class="producer-description">
            <twig:EditableContent content="{{ this.producerContent }}">
               {% if outerScope.this.identifier is not null %}
                  {% for block in outerScope.this.filterBlocks(this.blocks) %}
                     {{ block.content|raw }}
                  {% endfor %}
               {% else %}
                  {{ parent() }}
               {% endif %}
            </twig:EditableContent>

            {% if this.producerThumbnail and not this.hide_producer_logo %}
               <div class="producer-logo">
                  <twig:Picture class="img-responsive" thumbnail="{{ this.producerThumbnail }}" type="producer"/>
                  {% if this.producerWebUrl %}
                     <a href="{{ this.producerWebUrl|default('') }}" target="_blank" rel="noreferrer">Web výrobce</a>
                  {% endif %}
               </div>
            {% endif %}
         </div>
      {% endif %}

      {% if this.identifier_target and not this.hide_show_more_button %}
         <a role="button" tabindex="0"
               {{ stimulus_action(this.shortName, 'scrollToDescr', 'click', {id: this.identifier_target}) }}>
            {{ this.read_more_text }}</a>
      {% endif %}
   </twig:block>
</div>
