{% load static gtsettings urlname_tags i18n %}
{% get_settings 'use_compress_static' as use_compress %}
{% get_define 'use_readonlywidgets' as use_readonlywidgets %}
{% get_define 'use_maps' as use_maps %}
{# moment ships as its core build; the language of the page is a separate 4 KB #}
{# file, empty for English. It has to load after moment itself -- inside the #}
{# vendors bundle in the compressed branch, its own tag in the other. #}
{% get_moment_locale as moment_locale %}
{# The worker must be handed to pdf.js as a URL, not loaded as a script of #}
{# its own: it used to be a second
{% if use_compress == 'true' %}
{% if moment_locale %}
{% endif %}
{% if use_readonlywidgets %}
{# Preserve Leaflet 0.7.7 from StoryMapJS before loading modern Leaflet #}
{% endif %}
{# Leaflet goes after the readonly bundle on purpose: storymapjs ships an #}
{# embedded Leaflet 0.7.7 that assigns itself to window.L, so loading ours #}
{# first would silently downgrade every map to a 0.7 API. #}
{# Spelled out one by one rather than as a directory: Leaflet's own path #}
{# detection reads a CSS background-image, and urlreplace turns that into a #}
{# base64 data URI in the bundled build. ManifestStaticFilesStorage also #}
{# hashes each file separately, so a directory prefix would not resolve. #}
{% if use_maps %}
{% endif %}
{% else %}
{% if moment_locale %}
{% endif %}
{% if use_readonlywidgets %}
{# Preserve Leaflet 0.7.7 from StoryMapJS before loading modern Leaflet #}
{% endif %}
{# See the comment in the compressed branch: this has to stay after storymapjs. #}
{% if use_maps %}
{% endif %}
{% endif %}
{% if use_compress == 'true' %}
{% else %}
{% endif %}
{% if perms.djgentelella.can_manage_permissions %}
{% get_urlname_action as urlnameactions %}
{% if urlnameactions %}
{% endif %}
{% endif %}