<div {{ attributes.defaults(stimulus_controller('filter-replace', {
   responseKey: 'descriptionHtml',
})) }}>
   <twig:block name="content">
      {% set descriptionThis = this %}
      {% if this.blockId %}
         <twig:EditableContent content="{{ this.content }}" id="{{ this.shortName }}-descr">
            {% for block in this.blocks|slice(0, 1) %}
               {{ block.content|raw }}
            {% endfor %}

            {% if this.blocks|length > 1 %}
               {% if descriptionThis.is_open %}
                  {% for block in this.blocks|slice(1) %}
                     {{ block.content|raw }}
                  {% endfor %}
               {% endif %}
               <button type="button" class="read-more-link" data-action="live#action"
                       data-live-action-param="toggleVisibility" aria-expanded="{{ descriptionThis.is_open ? 'true' : 'false' }}"
                       aria-controls="{{ this.shortName }}-descr">{{ descriptionThis.read_more_text }}</button>
            {% endif %}
         </twig:EditableContent>
      {% endif %}
      {% if this.producerBlockId %}
         <twig:EditableContent content="{{ this.producerContent }}"/>
      {% endif %}
   </twig:block>
</div>
