<div
  class="js-gia-widget-shell"
  data-gia-widget-shell="1"
  {% if widget_style_hrefs %}data-gia-style-hrefs="{{ widget_style_hrefs|join:'|' }}"{% endif %}
  {% if widget_script_srcs %}data-gia-script-srcs="{{ widget_script_srcs|join:'|' }}"{% endif %}>
  <div id="widget-{{ unique }}" class="grid-stack-item" {% block widget_options %}{% if widget_options is None %}gs-w="6" gs-h="1" gs-y="20" gs-x="0"{% else %}{% autoescape off %}{{ widget_options }}{% endautoescape %}{% endif %}{% endblock %}>
    <div class="grid-stack-item-content">
      <section class="gia-widget-panel">
        <header class="gia-widget-heading">
          <span class="gia-widget-heading-main">
            <span class="icon is-small gia-widget-heading-icon">
              <i class="{{ widget_icon|default:'fa-solid fa-window-maximize' }}"></i>
            </span>
            <span class="gia-widget-title">
              {% block heading %}
                {{ title }}
              {% endblock %}
            </span>
          </span>
          <span class="buttons are-small has-addons gia-widget-actions">
            <button
              type="button"
              class="button is-light js-gia-widget-action"
              data-gia-action="tile"
              data-gia-widget-id="widget-{{ unique }}"
              aria-label="Tile window">
              <span class="icon is-small"><i class="fa-solid fa-border-all"></i></span>
            </button>
            <button
              type="button"
              class="button is-light js-gia-widget-action"
              data-gia-action="snap-left"
              data-gia-widget-id="widget-{{ unique }}"
              aria-label="Snap window left">
              <span class="icon is-small"><i class="fa-solid fa-arrow-left"></i></span>
            </button>
            <button
              type="button"
              class="button is-light js-gia-widget-action"
              data-gia-action="snap-right"
              data-gia-widget-id="widget-{{ unique }}"
              aria-label="Snap window right">
              <span class="icon is-small"><i class="fa-solid fa-arrow-right"></i></span>
            </button>
            <button
              type="button"
              class="button is-light js-gia-widget-action"
              data-gia-action="minimize"
              data-gia-widget-id="widget-{{ unique }}"
              aria-label="Minimize window">
              <span class="icon is-small"><i class="fa-solid fa-window-minimize"></i></span>
            </button>
            {% block close_button %}
              {% include "mixins/partials/close-widget.html" %}
            {% endblock %}
          </span>
        </header>
        <div class="gia-widget-body">
          <div class="control gia-widget-control{% if widget_control_class %} {{ widget_control_class }}{% endif %}">
            {% block panel_content %}
              {% include window_content %}
            {% endblock %}
          </div>
        </div>
      </section>
    </div>
  </div>
</div>
{% block custom_end %}
{% endblock %}
