{#**
 * Copyright since 2025 InPost S.A.
 *
 * For the full license information, please view the LICENSE file bundled with the module.
 *
 * @author InPost S.A.
 * @copyright since 2025 InPost S.A.
 * @license MIT
 *#}
{% extends '@PrestaShop/Admin/layout.html.twig' %}

{% set help_link = false %}
{% set layoutHeaderToolbarBtn = layoutHeaderToolbarBtn|default({})|merge({
  manual: {
    href: 'https://dokumentacja-inpost.atlassian.net/wiki/spaces/PL/pages/1122893826/PL+PrestaShop+8+International',
    target: '_blank',
    desc: 'User manual'|trans({}, 'Modules.Inpostinternational.Admin'),
    icon: 'description',
    class: 'btn-outline-secondary',
  },
}) %}

{% block content_header %}
  {{ parent() }}

  {# info flashes were not displayed before PS 8 #}
  {% import '@PrestaShop/Admin/layout.html.twig' as layout %}

  {% if app.session.flashbag.peek('info')|length() > 0 %}
    {{ layout.alert('info', app.session.flashbag.get('info')) }}
  {% endif %}
{% endblock %}

{% block stylesheets %}
  {{ parent() }}

  <link rel="stylesheet" href="{{ asset('css/admin/theme.css', 'InPostInternational') }}">
{% endblock %}

{% block sidebar_right %}
  {{ parent() }}

  {# HACK: DONT REMOVE IT #}
  <div class="prestashop-inpost-international"></div>
{% endblock %}
