wagtail 7.2rc1__py3-none-any.whl → 7.3rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wagtail/__init__.py +1 -1
- wagtail/actions/copy_for_translation.py +4 -2
- wagtail/admin/action_menu.py +4 -1
- wagtail/admin/api/actions/convert_alias.py +2 -2
- wagtail/admin/api/actions/copy.py +2 -2
- wagtail/admin/api/actions/copy_for_translation.py +2 -2
- wagtail/admin/api/actions/create_alias.py +2 -2
- wagtail/admin/api/actions/delete.py +1 -1
- wagtail/admin/api/actions/move.py +1 -1
- wagtail/admin/api/actions/publish.py +2 -2
- wagtail/admin/api/actions/revert_to_page_revision.py +2 -2
- wagtail/admin/api/actions/unpublish.py +1 -1
- wagtail/admin/api/filters.py +2 -2
- wagtail/admin/compare.py +22 -0
- wagtail/admin/forms/account.py +52 -1
- wagtail/admin/forms/comments.py +53 -0
- wagtail/admin/forms/models.py +36 -0
- wagtail/admin/forms/pages.py +7 -0
- wagtail/admin/forms/workflows.py +5 -2
- wagtail/admin/icons.py +4 -3
- wagtail/admin/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ar/LC_MESSAGES/django.po +62 -72
- wagtail/admin/locale/az_AZ/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/az_AZ/LC_MESSAGES/django.po +4 -7
- wagtail/admin/locale/be/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/be/LC_MESSAGES/django.po +15 -42
- wagtail/admin/locale/bg/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/bg/LC_MESSAGES/django.po +7 -16
- wagtail/admin/locale/bn/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/bn/LC_MESSAGES/django.po +4 -13
- wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ca/LC_MESSAGES/django.po +159 -74
- wagtail/admin/locale/ca/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/ca/LC_MESSAGES/djangojs.po +11 -0
- wagtail/admin/locale/cs/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/cs/LC_MESSAGES/django.po +17 -51
- wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/cy/LC_MESSAGES/django.po +6 -13
- wagtail/admin/locale/da/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/da/LC_MESSAGES/django.po +10 -22
- wagtail/admin/locale/de/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/de/LC_MESSAGES/django.po +42 -93
- wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/dv/LC_MESSAGES/django.po +26 -64
- wagtail/admin/locale/el/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/el/LC_MESSAGES/django.po +9 -31
- wagtail/admin/locale/en/LC_MESSAGES/django.po +262 -234
- wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +72 -43
- wagtail/admin/locale/es/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/es/LC_MESSAGES/django.po +17 -52
- wagtail/admin/locale/es_419/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/es_419/LC_MESSAGES/django.po +4 -22
- wagtail/admin/locale/es_VE/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/es_VE/LC_MESSAGES/django.po +4 -7
- wagtail/admin/locale/et/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/et/LC_MESSAGES/django.po +15 -42
- wagtail/admin/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/admin/locale/fa/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/fa/LC_MESSAGES/django.po +12 -50
- wagtail/admin/locale/fi/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/fi/LC_MESSAGES/django.po +43 -70
- wagtail/admin/locale/fi/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/fi/LC_MESSAGES/djangojs.po +17 -0
- wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/fr/LC_MESSAGES/django.po +157 -74
- wagtail/admin/locale/fr/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/fr/LC_MESSAGES/djangojs.po +11 -0
- wagtail/admin/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/gl/LC_MESSAGES/django.po +155 -72
- wagtail/admin/locale/gl/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/gl/LC_MESSAGES/djangojs.po +11 -0
- wagtail/admin/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/he_IL/LC_MESSAGES/django.po +7 -28
- wagtail/admin/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/hr_HR/LC_MESSAGES/django.po +15 -38
- wagtail/admin/locale/ht/LC_MESSAGES/django.po +4 -4
- wagtail/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/hu/LC_MESSAGES/django.po +44 -91
- wagtail/admin/locale/id_ID/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/id_ID/LC_MESSAGES/django.po +10 -31
- wagtail/admin/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/is_IS/LC_MESSAGES/django.po +172 -68
- wagtail/admin/locale/is_IS/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/is_IS/LC_MESSAGES/djangojs.po +8 -2
- wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/it/LC_MESSAGES/django.po +580 -65
- wagtail/admin/locale/it/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/it/LC_MESSAGES/djangojs.po +40 -2
- wagtail/admin/locale/ja/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ja/LC_MESSAGES/django.po +15 -42
- wagtail/admin/locale/ka/LC_MESSAGES/django.po +4 -4
- wagtail/admin/locale/ko/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ko/LC_MESSAGES/django.po +20 -57
- wagtail/admin/locale/lt/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/lt/LC_MESSAGES/django.po +12 -31
- wagtail/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/lv/LC_MESSAGES/django.po +9 -40
- wagtail/admin/locale/mi/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/mi/LC_MESSAGES/django.po +6 -10
- wagtail/admin/locale/mn/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/mn/LC_MESSAGES/django.po +10 -43
- wagtail/admin/locale/my/LC_MESSAGES/django.po +4 -4
- wagtail/admin/locale/nb/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/nb/LC_MESSAGES/django.po +15 -53
- wagtail/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/nl/LC_MESSAGES/django.po +157 -73
- wagtail/admin/locale/nl/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/nl/LC_MESSAGES/djangojs.po +11 -0
- wagtail/admin/locale/pl/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/pl/LC_MESSAGES/django.po +27 -72
- wagtail/admin/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/pt_BR/LC_MESSAGES/django.po +38 -83
- wagtail/admin/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po +17 -56
- wagtail/admin/locale/ro/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ro/LC_MESSAGES/django.po +23 -68
- wagtail/admin/locale/ru/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ru/LC_MESSAGES/django.po +44 -89
- wagtail/admin/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/sk_SK/LC_MESSAGES/django.po +9 -28
- wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/sl/LC_MESSAGES/django.po +45 -90
- wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/sv/LC_MESSAGES/django.po +347 -77
- wagtail/admin/locale/sv/LC_MESSAGES/djangojs.mo +0 -0
- wagtail/admin/locale/sv/LC_MESSAGES/djangojs.po +3 -2
- wagtail/admin/locale/tet/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/tet/LC_MESSAGES/django.po +12 -22
- wagtail/admin/locale/th/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/th/LC_MESSAGES/django.po +10 -42
- wagtail/admin/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/tr/LC_MESSAGES/django.po +61 -68
- wagtail/admin/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/tr_TR/LC_MESSAGES/django.po +15 -42
- wagtail/admin/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/ug/LC_MESSAGES/django.po +38 -83
- wagtail/admin/locale/uk/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/uk/LC_MESSAGES/django.po +15 -45
- wagtail/admin/locale/vi/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/vi/LC_MESSAGES/django.po +4 -17
- wagtail/admin/locale/zh/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/zh/LC_MESSAGES/django.po +7 -19
- wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.po +17 -54
- wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.po +15 -37
- wagtail/admin/panels/comment_panel.py +1 -51
- wagtail/admin/panels/title_field_panel.py +3 -1
- wagtail/admin/static/wagtailadmin/css/core.css +1 -1
- wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
- wagtail/admin/static/wagtailadmin/js/comments.js +1 -1
- wagtail/admin/static/wagtailadmin/js/core.js +1 -1
- wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +1 -1
- wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
- wagtail/admin/static/wagtailadmin/js/privacy-switch.js +1 -1
- wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
- wagtail/admin/static/wagtailadmin/js/telepath/blocks.js +1 -1
- wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
- wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +1 -1
- wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
- wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
- wagtail/admin/templates/wagtailadmin/base.html +2 -2
- wagtail/admin/templates/wagtailadmin/generic/edit_partials.html +100 -0
- wagtail/admin/templates/wagtailadmin/generic/form.html +26 -5
- wagtail/admin/templates/wagtailadmin/generic/includes/_loaded_revision_inputs.html +3 -0
- wagtail/admin/templates/wagtailadmin/generic/listing_results.html +1 -17
- wagtail/admin/templates/wagtailadmin/pages/create.html +14 -4
- wagtail/admin/templates/wagtailadmin/pages/edit.html +16 -3
- wagtail/admin/templates/wagtailadmin/pages/edit_partials.html +31 -0
- wagtail/admin/templates/wagtailadmin/pages/index_results.html +1 -9
- wagtail/admin/templates/wagtailadmin/shared/autosave/indicator.html +36 -0
- wagtail/admin/templates/wagtailadmin/shared/breadcrumbs.html +1 -1
- wagtail/admin/templates/wagtailadmin/shared/editing_sessions/list.html +2 -2
- wagtail/admin/templates/wagtailadmin/shared/editing_sessions/module.html +19 -3
- wagtail/admin/templates/wagtailadmin/shared/headers/_actions.html +5 -0
- wagtail/admin/templates/wagtailadmin/shared/headers/_history_icon_link.html +2 -2
- wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +8 -9
- wagtail/admin/templates/wagtailadmin/shared/listing/filter_partials.html +19 -0
- wagtail/admin/templates/wagtailadmin/shared/side_panel_toggle.html +3 -3
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/side_panel.html +3 -0
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/privacy.html +18 -6
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/usage.html +11 -4
- wagtail/admin/templates/wagtailadmin/shared/side_panels/includes/status/workflow.html +22 -1
- wagtail/admin/templates/wagtailadmin/shared/side_panels/preview.html +1 -0
- wagtail/admin/templates/wagtailadmin/shared/side_panels.html +1 -2
- wagtail/admin/templates/wagtailadmin/shared/unsaved_changes_warning.html +20 -20
- wagtail/admin/templates/wagtailadmin/userbar/base.html +2 -0
- wagtail/admin/templates/wagtailadmin/userbar/item_accessibility.html +1 -1
- wagtail/admin/templatetags/wagtailadmin_tags.py +19 -15
- wagtail/admin/tests/pages/test_create_page.py +306 -1
- wagtail/admin/tests/pages/test_custom_listing.py +48 -2
- wagtail/admin/tests/pages/test_edit_page.py +721 -7
- wagtail/admin/tests/pages/test_explorer_view.py +9 -5
- wagtail/admin/tests/pages/test_page_search.py +15 -0
- wagtail/admin/tests/pages/test_preview.py +30 -0
- wagtail/admin/tests/pages/test_revisions.py +4 -0
- wagtail/admin/tests/test_account_management.py +88 -2
- wagtail/admin/tests/test_collections_views.py +15 -15
- wagtail/admin/tests/test_compare.py +34 -0
- wagtail/admin/tests/test_editing_sessions.py +230 -8
- wagtail/admin/tests/test_forms.py +192 -1
- wagtail/admin/tests/test_icon_sprite.py +22 -2
- wagtail/admin/tests/test_page_chooser.py +13 -13
- wagtail/admin/tests/test_reports_views.py +4 -1
- wagtail/admin/tests/test_userbar.py +69 -5
- wagtail/admin/tests/test_views_generic.py +5 -5
- wagtail/admin/tests/test_workflows.py +14 -12
- wagtail/admin/tests/viewsets/test_model_viewset.py +13 -0
- wagtail/admin/ui/autosave.py +5 -0
- wagtail/admin/ui/editing_sessions.py +3 -0
- wagtail/admin/ui/side_panels.py +19 -20
- wagtail/admin/userbar.py +48 -27
- wagtail/admin/views/bulk_action/dispatcher.py +2 -2
- wagtail/admin/views/chooser.py +6 -6
- wagtail/admin/views/editing_sessions.py +20 -7
- wagtail/admin/views/generic/__init__.py +1 -0
- wagtail/admin/views/generic/chooser.py +5 -5
- wagtail/admin/views/generic/mixins.py +143 -26
- wagtail/admin/views/generic/models.py +157 -27
- wagtail/admin/views/generic/ordering.py +1 -1
- wagtail/admin/views/generic/preview.py +4 -4
- wagtail/admin/views/home.py +3 -1
- wagtail/admin/views/pages/create.py +77 -29
- wagtail/admin/views/pages/edit.py +160 -34
- wagtail/admin/views/pages/preview.py +4 -4
- wagtail/admin/views/pages/revisions.py +3 -0
- wagtail/admin/views/pages/search.py +4 -4
- wagtail/admin/views/pages/usage.py +2 -2
- wagtail/admin/views/tags.py +2 -2
- wagtail/admin/views/workflows.py +73 -54
- wagtail/admin/viewsets/model.py +34 -8
- wagtail/admin/widgets/button.py +11 -4
- wagtail/admin/widgets/chooser.py +6 -4
- wagtail/admin/widgets/slug.py +1 -1
- wagtail/api/v2/filters.py +27 -21
- wagtail/api/v2/pagination.py +4 -4
- wagtail/api/v2/views.py +7 -7
- wagtail/blocks/list_block.py +0 -8
- wagtail/blocks/migrations/migrate_operation.py +8 -1
- wagtail/blocks/stream_block.py +2 -10
- wagtail/blocks/struct_block.py +192 -12
- wagtail/compat.py +2 -2
- wagtail/contrib/forms/locale/af/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/hy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/forms/locale/it/LC_MESSAGES/django.po +41 -3
- wagtail/contrib/forms/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/sv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.po +12 -2
- wagtail/contrib/forms/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/forms/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/frontend_cache/backends/azure.py +6 -6
- wagtail/contrib/frontend_cache/backends/cloudfront.py +2 -2
- wagtail/contrib/frontend_cache/utils.py +1 -1
- wagtail/contrib/redirects/forms.py +1 -1
- wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.po +9 -10
- wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +14 -14
- wagtail/contrib/redirects/locale/en_IN/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.po +1 -14
- wagtail/contrib/redirects/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/es_VE/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.po +7 -11
- wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +9 -8
- wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.po +9 -9
- wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/hi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/hy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.po +10 -9
- wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.po +9 -9
- wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.po +9 -9
- wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.po +1 -14
- wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.po +1 -14
- wagtail/contrib/redirects/locale/sr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.po +11 -10
- wagtail/contrib/redirects/locale/ta/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.po +1 -13
- wagtail/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/redirects/middleware.py +11 -7
- wagtail/contrib/redirects/models.py +17 -1
- wagtail/contrib/redirects/tests/test_import_admin_views.py +3 -3
- wagtail/contrib/redirects/tests/test_redirects.py +56 -8
- wagtail/contrib/search_promotions/locale/af/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.po +5 -5
- wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +6 -6
- wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +5 -5
- wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.po +5 -5
- wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +8 -7
- wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +42 -7
- wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.po +4 -4
- wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.po +1 -7
- wagtail/contrib/search_promotions/tests.py +1 -1
- wagtail/contrib/search_promotions/views/settings.py +24 -25
- wagtail/contrib/settings/jinja2tags.py +2 -2
- wagtail/contrib/settings/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +2 -2
- wagtail/contrib/settings/locale/en_IN/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/es_VE/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/hi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/settings/locale/is_IS/LC_MESSAGES/django.po +8 -3
- wagtail/contrib/settings/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/settings/locale/it/LC_MESSAGES/django.po +7 -3
- wagtail/contrib/settings/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/sr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/settings/locale/sv/LC_MESSAGES/django.po +4 -3
- wagtail/contrib/settings/locale/ta/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/settings/tests/generic/test_admin.py +118 -2
- wagtail/contrib/settings/tests/site_specific/test_admin.py +86 -15
- wagtail/contrib/settings/tests/site_specific/test_model.py +2 -2
- wagtail/contrib/settings/views.py +7 -0
- wagtail/contrib/simple_translation/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/simple_translation/locale/it/LC_MESSAGES/django.po +6 -3
- wagtail/contrib/simple_translation/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/sv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/simple_translation/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/af/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +7 -7
- wagtail/contrib/styleguide/locale/en_IN/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/es_VE/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/hi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/it/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/sv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ta/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/styleguide/tests.py +2 -0
- wagtail/contrib/styleguide/views.py +4 -5
- wagtail/contrib/table_block/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/ar/LC_MESSAGES/django.po +6 -2
- wagtail/contrib/table_block/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +6 -3
- wagtail/contrib/table_block/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/en_IN/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.po +6 -3
- wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.po +6 -3
- wagtail/contrib/table_block/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +6 -3
- wagtail/contrib/table_block/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.po +6 -3
- wagtail/contrib/table_block/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/sv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/blocks.py +37 -0
- wagtail/contrib/typed_table_block/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +10 -10
- wagtail/contrib/typed_table_block/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/it/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/contrib/typed_table_block/locale/sv/LC_MESSAGES/django.po +5 -4
- wagtail/contrib/typed_table_block/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/contrib/typed_table_block/tests.py +108 -0
- wagtail/coreutils.py +4 -4
- wagtail/documents/__init__.py +4 -4
- wagtail/documents/forms.py +1 -1
- wagtail/documents/locale/af/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/ar/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/be/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/be/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/ca/LC_MESSAGES/django.po +5 -5
- wagtail/documents/locale/cs/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/cs/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/de/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/de/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/el/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/el/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/en/LC_MESSAGES/django.po +15 -15
- wagtail/documents/locale/es/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/es/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/et/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/et/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/fa/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/fa/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/fi/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/fi/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/fr/LC_MESSAGES/django.po +5 -5
- wagtail/documents/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/gl/LC_MESSAGES/django.po +5 -5
- wagtail/documents/locale/he_IL/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +1 -6
- wagtail/documents/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/hu/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/id_ID/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/id_ID/LC_MESSAGES/django.po +1 -6
- wagtail/documents/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/is_IS/LC_MESSAGES/django.po +14 -4
- wagtail/documents/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/it/LC_MESSAGES/django.po +31 -5
- wagtail/documents/locale/ja/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/ja/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/ko/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/ko/LC_MESSAGES/django.po +1 -6
- wagtail/documents/locale/lt/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/lt/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/mi/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/mi/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/mn/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/mn/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/nb/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/nb/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/nl/LC_MESSAGES/django.po +6 -6
- wagtail/documents/locale/pl/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/pl/LC_MESSAGES/django.po +1 -6
- wagtail/documents/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/pt_BR/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/pt_PT/LC_MESSAGES/django.po +1 -6
- wagtail/documents/locale/ro/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/ro/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/ru/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/ru/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/sk_SK/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/sl/LC_MESSAGES/django.po +1 -7
- wagtail/documents/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/sv/LC_MESSAGES/django.po +30 -7
- wagtail/documents/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/th/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/th/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/tr/LC_MESSAGES/django.po +13 -5
- wagtail/documents/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/tr_TR/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/ug/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/uk/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/uk/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.po +1 -5
- wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
- wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.po +1 -5
- wagtail/documents/models.py +1 -1
- wagtail/documents/tests/test_admin_views.py +54 -7
- wagtail/documents/tests/test_search.py +39 -27
- wagtail/documents/tests/test_views.py +6 -4
- wagtail/documents/views/bulk_actions/add_tags.py +1 -1
- wagtail/documents/views/documents.py +31 -5
- wagtail/embeds/finders/facebook.py +3 -3
- wagtail/embeds/finders/instagram.py +3 -3
- wagtail/embeds/finders/oembed.py +7 -2
- wagtail/embeds/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/it/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/sv/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/embeds/oembed_providers.py +8 -0
- wagtail/embeds/tests/test_embeds.py +35 -0
- wagtail/images/__init__.py +4 -4
- wagtail/images/admin_urls.py +3 -3
- wagtail/images/blocks.py +1 -1
- wagtail/images/formats.py +2 -2
- wagtail/images/forms.py +1 -1
- wagtail/images/image_operations.py +2 -2
- wagtail/images/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/ar/LC_MESSAGES/django.po +7 -10
- wagtail/images/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/images/locale/be/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/bg/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/images/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/ca/LC_MESSAGES/django.po +15 -9
- wagtail/images/locale/cs/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/cy/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/images/locale/de/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/dv/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/el/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/en/LC_MESSAGES/django.po +44 -40
- wagtail/images/locale/es/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/images/locale/et/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/images/locale/fa/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/fi/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/fi/LC_MESSAGES/django.po +18 -9
- wagtail/images/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/fr/LC_MESSAGES/django.po +15 -9
- wagtail/images/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/gl/LC_MESSAGES/django.po +15 -9
- wagtail/images/locale/he_IL/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/hr_HR/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/images/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/hu/LC_MESSAGES/django.po +7 -10
- wagtail/images/locale/id_ID/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/is_IS/LC_MESSAGES/django.po +34 -9
- wagtail/images/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/it/LC_MESSAGES/django.po +57 -11
- wagtail/images/locale/ja/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/ka/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/ko/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/lt/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/lv/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/mi/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/mn/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/images/locale/nb/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/nl/LC_MESSAGES/django.po +18 -12
- wagtail/images/locale/pl/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/pt_BR/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/pt_PT/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/ro/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/ru/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/ru/LC_MESSAGES/django.po +7 -10
- wagtail/images/locale/sk_SK/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/sl/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/sv/LC_MESSAGES/django.po +56 -13
- wagtail/images/locale/tet/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/th/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/images/locale/tr/LC_MESSAGES/django.po +85 -7
- wagtail/images/locale/tr_TR/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/ug/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/uk/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/vi/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/zh/LC_MESSAGES/django.po +4 -4
- wagtail/images/locale/zh_Hans/LC_MESSAGES/django.po +7 -7
- wagtail/images/locale/zh_Hant/LC_MESSAGES/django.po +7 -7
- wagtail/images/models.py +11 -10
- wagtail/images/templates/wagtailimages/images/index_results.html +1 -1
- wagtail/images/templates/wagtailimages/images/url_generator.html +17 -38
- wagtail/images/templates/wagtailimages/images/url_generator_output.html +28 -0
- wagtail/images/templatetags/wagtailimages_tags.py +4 -4
- wagtail/images/tests/test_admin_views.py +507 -65
- wagtail/images/tests/test_image_operations.py +2 -2
- wagtail/images/tests/test_models.py +38 -26
- wagtail/images/views/bulk_actions/add_tags.py +1 -1
- wagtail/images/views/chooser.py +10 -5
- wagtail/images/views/images.py +108 -45
- wagtail/locale/af/LC_MESSAGES/django.po +1 -1
- wagtail/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/ar/LC_MESSAGES/django.po +1 -9
- wagtail/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/ca/LC_MESSAGES/django.po +4 -4
- wagtail/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/locale/de/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/de/LC_MESSAGES/django.po +1 -9
- wagtail/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/dv/LC_MESSAGES/django.po +1 -8
- wagtail/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/locale/en/LC_MESSAGES/django.po +103 -105
- wagtail/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/fr/LC_MESSAGES/django.po +4 -4
- wagtail/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/gl/LC_MESSAGES/django.po +3 -3
- wagtail/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/hu/LC_MESSAGES/django.po +1 -9
- wagtail/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/is_IS/LC_MESSAGES/django.po +14 -4
- wagtail/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/it/LC_MESSAGES/django.po +106 -3
- wagtail/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/nl/LC_MESSAGES/django.po +4 -4
- wagtail/locale/pl/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/pl/LC_MESSAGES/django.po +1 -9
- wagtail/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/locale/ro/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/ro/LC_MESSAGES/django.po +1 -9
- wagtail/locale/ru/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/ru/LC_MESSAGES/django.po +1 -9
- wagtail/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/sl/LC_MESSAGES/django.po +1 -9
- wagtail/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/sv/LC_MESSAGES/django.po +90 -15
- wagtail/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/tr/LC_MESSAGES/django.po +4 -8
- wagtail/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/locale/ug/LC_MESSAGES/django.po +1 -8
- wagtail/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/locales/locale/it/LC_MESSAGES/django.po +14 -3
- wagtail/locales/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/locales/locale/sv/LC_MESSAGES/django.po +5 -4
- wagtail/locales/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/locales/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/locales/tests.py +5 -5
- wagtail/migrations/0096_referenceindex_referenceindex_source_object_and_more.py +28 -0
- wagtail/models/i18n.py +4 -6
- wagtail/models/media.py +18 -0
- wagtail/models/pages.py +65 -11
- wagtail/models/reference_index.py +41 -0
- wagtail/models/revisions.py +40 -12
- wagtail/models/workflows.py +0 -3
- wagtail/permission_policies/base.py +2 -2
- wagtail/permission_policies/collections.py +2 -2
- wagtail/project_template/requirements.txt +2 -2
- wagtail/search/apps.py +1 -1
- wagtail/search/backends/__init__.py +1 -1
- wagtail/search/backends/base.py +1 -1
- wagtail/search/backends/database/__init__.py +1 -1
- wagtail/search/backends/database/fallback.py +1 -1
- wagtail/search/backends/database/mysql/mysql.py +1 -1
- wagtail/search/backends/database/mysql/query.py +1 -1
- wagtail/search/backends/database/postgres/postgres.py +1 -1
- wagtail/search/backends/database/postgres/query.py +1 -1
- wagtail/search/backends/database/postgres/weights.py +1 -1
- wagtail/search/backends/database/sqlite/query.py +1 -1
- wagtail/search/backends/database/sqlite/sqlite.py +1 -1
- wagtail/search/backends/database/sqlite/utils.py +1 -1
- wagtail/search/backends/elasticsearch7.py +4 -4
- wagtail/search/backends/elasticsearch8.py +4 -4
- wagtail/search/backends/elasticsearch9.py +4 -4
- wagtail/search/backends/opensearch2.py +4 -4
- wagtail/search/backends/opensearch3.py +4 -4
- wagtail/search/index.py +1 -1
- wagtail/search/locale/ar/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/ar/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/be/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/be/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/ca/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/ca/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/cy/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/cy/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/de/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/de/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/dv/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/dv/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/es/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/es/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/fi/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/fi/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/fr/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/fr/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/gl/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/gl/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/hr_HR/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/hu/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/hu/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/is_IS/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/it/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/ko/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/ko/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/nb/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/nb/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/nl/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/nl/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/pl/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/pl/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/pt_BR/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/pt_PT/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/ro/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/ro/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/ru/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/ru/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/sl/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/sl/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/sv/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/tr/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/tr/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/ug/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/ug/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/uk/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/uk/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/search/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- wagtail/search/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
- wagtail/search/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/search/management/commands/update_index.py +1 -1
- wagtail/search/management/commands/wagtail_update_index.py +1 -1
- wagtail/search/models.py +1 -4
- wagtail/search/query.py +1 -1
- wagtail/search/queryset.py +1 -1
- wagtail/search/signal_handlers.py +1 -1
- wagtail/search/tasks.py +1 -1
- wagtail/search/utils.py +1 -1
- wagtail/signal_handlers.py +1 -0
- wagtail/sites/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/en/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/en_IN/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/es_VE/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/hi/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/it/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/sr/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/sites/locale/sv/LC_MESSAGES/django.po +4 -3
- wagtail/sites/locale/ta/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/sites/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/sites/tests.py +7 -7
- wagtail/snippets/action_menu.py +2 -1
- wagtail/snippets/locale/af/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/az_AZ/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/en/LC_MESSAGES/django.po +23 -13
- wagtail/snippets/locale/en_IN/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/es_VE/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/fi/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/hi/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ht/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/id_ID/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/is_IS/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/it/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/sr/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/snippets/locale/sv/LC_MESSAGES/django.po +13 -2
- wagtail/snippets/locale/ta/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/snippets/tests/test_chooser_block.py +197 -0
- wagtail/snippets/tests/test_chooser_panel.py +149 -0
- wagtail/snippets/tests/test_chooser_views.py +375 -0
- wagtail/snippets/tests/test_chooser_widget.py +22 -0
- wagtail/snippets/tests/test_compare_revisions_view.py +167 -0
- wagtail/snippets/tests/test_copy_view.py +38 -0
- wagtail/snippets/tests/test_create_view.py +1159 -0
- wagtail/snippets/tests/test_delete_view.py +225 -0
- wagtail/snippets/tests/test_edit_view.py +2882 -0
- wagtail/snippets/tests/test_history_view.py +182 -0
- wagtail/snippets/tests/test_index_view.py +105 -0
- wagtail/snippets/tests/test_list_view.py +786 -0
- wagtail/snippets/tests/test_locking.py +28 -0
- wagtail/snippets/tests/test_permissions.py +167 -0
- wagtail/snippets/tests/test_preview.py +25 -11
- wagtail/snippets/tests/test_revert_view.py +343 -0
- wagtail/snippets/tests/test_snippet_models.py +112 -0
- wagtail/snippets/tests/test_unpublish_view.py +228 -0
- wagtail/snippets/tests/test_unschedule_view.py +151 -0
- wagtail/snippets/tests/test_viewset.py +38 -5
- wagtail/snippets/views/snippets.py +78 -30
- wagtail/snippets/widgets.py +2 -2
- wagtail/templatetags/wagtailcore_tags.py +2 -2
- wagtail/test/dummy_external_storage.py +1 -1
- wagtail/test/testapp/fixtures/test.json +22 -0
- wagtail/test/testapp/fixtures/test_empty.json +2 -0
- wagtail/test/testapp/fixtures/test_explorable_pages.json +10 -0
- wagtail/test/testapp/fixtures/test_specific.json +9 -0
- wagtail/test/testapp/migrations/0059_nopromotepage.py +25 -0
- wagtail/test/testapp/models.py +7 -0
- wagtail/test/testapp/views.py +5 -0
- wagtail/test/utils/page_tests.py +7 -7
- wagtail/test/utils/wagtail_factories/builder.py +2 -2
- wagtail/tests/streamfield_migrations/test_migrations.py +35 -0
- wagtail/tests/test_blocks.py +321 -61
- wagtail/tests/test_collection_model.py +12 -0
- wagtail/tests/test_page_model.py +190 -1
- wagtail/tests/test_page_privacy.py +5 -0
- wagtail/tests/test_reference_index.py +42 -0
- wagtail/tests/test_revision_model.py +118 -1
- wagtail/tests/test_utils.py +2 -2
- wagtail/users/locale/ar/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/be/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/bg/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/bn/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/ca/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/cs/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/cy/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/da/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/de/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/dv/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/el/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/en/LC_MESSAGES/django.po +14 -14
- wagtail/users/locale/es/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/es_419/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/et/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/eu/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/fa/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/fi/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/fi/LC_MESSAGES/django.po +6 -3
- wagtail/users/locale/fr/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/gl/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/he_IL/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/hu/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/hy/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/id_ID/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/id_ID/LC_MESSAGES/django.po +7 -3
- wagtail/users/locale/is_IS/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/is_IS/LC_MESSAGES/django.po +7 -3
- wagtail/users/locale/it/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/it/LC_MESSAGES/django.po +15 -3
- wagtail/users/locale/ja/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/ka/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/ko/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/lt/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/lv/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/mi/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/mn/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/my/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/nb/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/nl/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/pl/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/pt_BR/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/pt_PT/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/ro/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/ru/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/sk_SK/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/sl/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/sv/LC_MESSAGES/django.mo +0 -0
- wagtail/users/locale/sv/LC_MESSAGES/django.po +49 -18
- wagtail/users/locale/tet/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/th/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/tr/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/tr_TR/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/ug/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/uk/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/vi/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/zh/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
- wagtail/users/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
- wagtail/users/tests/test_admin_views.py +39 -25
- wagtail/users/utils.py +4 -1
- wagtail/users/views/groups.py +19 -5
- wagtail/users/wagtail_hooks.py +1 -1
- wagtail/utils/loading.py +2 -2
- wagtail-7.3rc1.data/data/AGENTS.md +21 -0
- wagtail-7.3rc1.data/data/CHANGELOG.txt +4941 -0
- wagtail-7.3rc1.data/data/CODE_OF_CONDUCT.md +71 -0
- wagtail-7.3rc1.data/data/CONTRIBUTORS.md +999 -0
- wagtail-7.3rc1.data/data/SPONSORS.md +55 -0
- {wagtail-7.2rc1.dist-info → wagtail-7.3rc1.dist-info}/METADATA +8 -8
- {wagtail-7.2rc1.dist-info → wagtail-7.3rc1.dist-info}/RECORD +1483 -1452
- {wagtail-7.2rc1.dist-info → wagtail-7.3rc1.dist-info}/WHEEL +1 -1
- wagtail/images/static/wagtailimages/js/image-url-generator.js +0 -1
- wagtail/snippets/tests/test_snippets.py +0 -6365
- {wagtail-7.2rc1.dist-info → wagtail-7.3rc1.dist-info}/entry_points.txt +0 -0
- {wagtail-7.2rc1.dist-info → wagtail-7.3rc1.dist-info}/licenses/LICENSE +0 -0
- {wagtail-7.2rc1.dist-info → wagtail-7.3rc1.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,
|
|
1
|
+
(()=>{"use strict";var e,t={1669:e=>{e.exports=jQuery},4967:(e,t,r)=>{var o=r(1669),a=r.n(o);a()(()=>{function e(){return ModalWorkflow({dialogId:"set-privacy",url:this.getAttribute("data-url"),onload:{set_privacy(e){a()("form",e.body).on("submit",function(){return e.postForm(this.action,a()(this).serialize()),!1})},set_privacy_done(e,{is_public:t}){document.dispatchEvent(new CustomEvent("w-privacy:changed",{bubbles:!0,cancelable:!1,detail:{isPublic:t}})),e.close()}}}),!1}a()('[data-a11y-dialog-show="set-privacy"]').on("click",e),a()(document).on("w-autosave:success",()=>{a()('[data-a11y-dialog-show="set-privacy"]').on("click",e)})})}},r={};function o(e){var a=r[e];if(void 0!==a)return a.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.m=t,e=[],o.O=(t,r,a,i)=>{if(!r){var n=1/0;for(c=0;c<e.length;c++){for(var[r,a,i]=e[c],l=!0,s=0;s<r.length;s++)(!1&i||n>=i)&&Object.keys(o.O).every(e=>o.O[e](r[s]))?r.splice(s--,1):(l=!1,i<n&&(n=i));if(l){e.splice(c--,1);var u=a();void 0!==u&&(t=u)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[r,a,i]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=658,(()=>{var e={658:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var a,i,[n,l,s]=r,u=0;if(n.some(t=>0!==e[t])){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(s)var c=s(o)}for(t&&t(r);u<n.length;u++)i=n[u],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(c)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=o.O(void 0,[321],()=>o(4967));a=o.O(a)})();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see sidebar.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var e,t={251:(e,t,n)=>{var a=n(2427),r=n.n(a),i=n(6931),s=n.n(i);function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var l=function e(t,n){function a(e,a,r){if("undefined"!=typeof document){"number"==typeof(r=o({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in r)r[s]&&(i+="; "+s,!0!==r[s]&&(i+="="+r[s].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+i}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],a={},r=0;r<n.length;r++){var i=n[r].split("="),s=i.slice(1).join("=");try{var o=decodeURIComponent(i[0]);if(a[o]=t.read(s,o),e===o)break}catch(e){}}return e?a[e]:a}},remove:function(e,t){a(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),c=n(2833),u=n(1238);const m=150,d=({modules:e,currentPath:t,collapsedOnLoad:n=!1,navigate:r,onExpandCollapse:i})=>{const[s,o]=a.useState(n),l=a.useRef(null);a.useEffect(()=>{s&&i&&i(!0)},[]);const[d,p]=a.useState(!1),[h,f]=a.useState(!0),g=()=>window.innerWidth<800,[E,b]=a.useState(g());a.useEffect(()=>{function e(){return g()?(b(!0),null):(b(!1),p(!1),setTimeout(()=>{f(!0)},m))}window.addEventListener("resize",e);const t=e();return()=>{window.removeEventListener("resize",e),t&&clearTimeout(t)}},[]);const v=s&&!E,[w,y]=a.useState(!1);a.useEffect(()=>{y(!0);const e=setTimeout(()=>{y(!1)},m);return()=>{clearTimeout(e)}},[v]);const N=()=>{o(!s),i&&i(!s)},[_,C]=a.useState(!1),P=()=>{v&&N()};a.useEffect(()=>{const e=setTimeout(()=>{d||f(!0)},m);return()=>{clearTimeout(e)}},[d]);const S=()=>{p(!1),l&&l.current?.focus()},x=e.map((e,n)=>e.render({key:n,slim:v,expandingOrCollapsing:w,onHideMobile:S,onSearchClick:P,currentPath:t,navigate:r}));return a.createElement(a.Fragment,null,a.createElement("button",{onClick:()=>{p(!d),y(!0);const e=setTimeout(()=>{y(!1),f(!h)},m);return()=>{clearTimeout(e)}},"aria-expanded":d?"true":"false","aria-keyshortcuts":"[","aria-label":(0,c.AP)("Toggle sidebar"),className:"button sidebar-nav-toggle"+(E?" sidebar-nav-toggle--mobile":"")+(d?" sidebar-nav-toggle--open":""),type:"button",ref:l,"data-w-kbd-target":E?"element":void 0},d?a.createElement(u.A,{name:"cross"}):a.createElement(u.A,{name:"bars"})),a.createElement("div",{className:"sidebar"+(v?" sidebar--slim":"")+(E?" sidebar--mobile":"")+(E&&!d?" sidebar--hidden":"")+(E&&!d&&h?" sidebar--closed":"")},a.createElement("div",{className:"sidebar__inner",onFocus:()=>{_&&(o(!1),C(!0))},onBlur:()=>{_&&(C(!1),o(!0))}},a.createElement("div",{className:`sm:w-mt-2 ${v?"w-justify-center":"w-justify-end"} w-flex w-items-center`},a.createElement("button",{onClick:N,"aria-expanded":v?"false":"true","aria-keyshortcuts":"[","aria-label":(0,c.AP)("Toggle sidebar"),type:"button",className:(v?"":"w-mr-4")+"\n button\n sidebar__collapse-toggle\n w-flex\n w-justify-center\n w-items-center\n hover:w-bg-surface-menu-item-active\n hover:text-white\n hover:opacity-100\n more-contrast:w-border-border-interactive-more-contrast-dark-bg\n hover:more-contrast:w-border-border-interactive-more-contrast-dark-bg-hover","data-w-kbd-target":E?void 0:"element"},a.createElement(u.A,{name:"expand-right",className:s?"":"-w-rotate-180"}))),x)))};var p=n(3476);const h="wagtail_sidebar_collapsed";var f=n(1504);const g=({item:e,slim:t,path:n,state:r,dispatch:i,navigate:s})=>{const o=r.activePath===n,l=r.activePath.startsWith(n),m=n.split(".").length>2,d="sidebar-menu-item"+(l?" sidebar-menu-item--active":"")+(m?" sidebar-menu-item--in-sub-menu":"");return a.createElement("li",{className:d},a.createElement(f.Ay,{disabled:!t||m,content:e.label,placement:"right"},a.createElement("a",{...e.attrs,href:e.url,"aria-current":o?"page":void 0,onClick:t=>{t.ctrlKey||t.shiftKey||t.metaKey||t.button&&0!==t.button||(P(e,r)||i({type:"set-dismissible-state",item:e}),e.attrs.target||(t.preventDefault(),s(e.url).then(()=>{i({type:"set-active-path",path:n}),i({type:"set-navigation-path",path:""})})))},className:`sidebar-menu-item__link ${e.classNames}`},e.iconName&&a.createElement(u.A,{name:e.iconName,className:"icon--menuitem"}),a.createElement("div",{className:"menuitem"},a.createElement("span",{className:"menuitem-label"},e.label),!P(e,r)&&a.createElement("span",{className:"w-dismissible-badge"},a.createElement("span",{className:"w-sr-only"},(0,c.AP)("(New)")))))))};class E{name;label;url;attrs;iconName;classNames;constructor({name:e,label:t,url:n,attrs:a={},icon_name:r=null,classname:i}){this.name=e,this.label=t,this.url=n,this.attrs=a,this.iconName=r,this.classNames=i}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(g,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}const b=({isVisible:e,isOpen:t,depth:n,widthPx:r,children:i})=>{const s="sidebar-panel"+(e?" sidebar-panel--visible":"")+(t?" sidebar-panel--open":"");let o=2*-n;e&&!t&&(o-=1);const l={"--z-index":o};return r&&(l["--width"]=r+"px"),a.createElement("div",{className:s,style:l},i)};function v({isVisible:e,dispatch:t}){return e?(0,i.createPortal)(a.createElement("button",{type:"button",onClick:()=>t({type:"set-navigation-path",path:""}),className:"button sidebar-close-menu-button","aria-label":(0,c.AP)("Close")},a.createElement(u.A,{name:"cross",className:"w-w-[15px] w-h-4"})),document.body):null}const w=({path:e,item:t,slim:n,state:r,dispatch:i,navigate:s})=>{const o=r.navigationPath.startsWith(e),l=o||r.activePath.startsWith(e),d=e.split(".").length,[p,h]=a.useState(!1),[g,E]=a.useState(!1),w=t.menuItems.filter(e=>!P(e,r)).length;a.useEffect(()=>{o?h(!0):!o&&p&&setTimeout(()=>{h(!1)},m)},[o]);const y="sidebar-menu-item sidebar-sub-menu-item"+(l?" sidebar-menu-item--active":"")+(o?" sidebar-sub-menu-item--open":""),N="sidebar-sub-menu-trigger-icon"+(o?" sidebar-sub-menu-trigger-icon--open":"");return a.createElement("li",{className:y},a.createElement(f.Ay,{disabled:o||!n,content:t.label,placement:"right"},a.createElement("button",{...t.attrs,onClick:()=>{if(!g&&w>0&&i({type:"set-dismissible-state",item:t}),o){const t=e.split(".");t.pop();const n=t.join(".");i({type:"set-navigation-path",path:n})}else i({type:"set-navigation-path",path:e}),E(!0)},className:`sidebar-menu-item__link ${t.classNames}`,"aria-haspopup":"menu","aria-expanded":o?"true":"false",type:"button"},t.iconName&&a.createElement(u.A,{name:t.iconName,className:"icon--menuitem"}),a.createElement("span",{className:"menuitem-label"},t.label),w>0&&!g&&a.createElement("span",{className:"w-dismissible-badge w-dismissible-badge--count"},a.createElement("span",{"aria-hidden":"true"},w),a.createElement("span",{className:"w-sr-only"},1===w?(0,c.AP)("(1 new item in this menu)"):(0,c.AP)("(%(number)s new items in this menu)").replace("%(number)s",`${w}`))),a.createElement(u.A,{className:N,name:"arrow-right"}))),a.createElement(b,{isVisible:p,isOpen:o,depth:d},a.createElement("div",{className:"sidebar-sub-menu-panel"},a.createElement(v,{isVisible:p,dispatch:i}),a.createElement("h2",{id:`wagtail-sidebar-submenu${e.split(".").join("-")}-title`,className:`${t.classNames} w-h4`},t.iconName&&a.createElement(u.A,{name:t.iconName,className:"icon--submenu-header"}),t.label),a.createElement("ul",{"aria-labelledby":`wagtail-sidebar-submenu${e.split(".").join("-")}-title`},C(e,t.menuItems,n,r,i,s)),t.footerText&&a.createElement("p",{className:"sidebar-sub-menu-panel__footer"},t.footerText))))};class y{name;label;menuItems;attrs;iconName;classNames;footerText;constructor({name:e,label:t,attrs:n={},icon_name:a=null,classname:r,footer_text:i=""},s){this.name=e,this.label=t,this.menuItems=s,this.attrs=n,this.iconName=a,this.classNames=r,this.footerText=i}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(w,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}var N=n(2891),_=n(2898);function C(e,t,n,r,i,s){return a.createElement(a.Fragment,null,t.map(t=>t.render({path:`${e}.${t.name}`,slim:n,state:r,dispatch:i,navigate:s})))}function P(e,t){return!e.attrs["data-w-dismissible-id-value"]||"data-w-dismissible-dismissed-value"in e.attrs||t.dismissibles[e.name]}function S(e,t){e.forEach(e=>{e.attrs["data-w-dismissible-id-value"]&&t(e),e instanceof y&&S(e.menuItems,t)})}function x(e,t){const n={...e};switch(t.type){case"set-active-path":n.activePath=t.path;break;case"set-navigation-path":n.navigationPath=t.path;break;case"set-dismissible-state":n.dismissibles=function(e,{item:t,value:n=!0}){const a={};return S([t],e=>{a[e.attrs["data-w-dismissible-id-value"]]=n}),Object.keys(a).length>0&&(r=a,fetch(_.HE.ADMIN_URLS?.DISMISSIBLES,{method:"PATCH",headers:{[_.HE.CSRF_HEADER_NAME]:_.HE.CSRF_TOKEN,"Content-Type":"application/json"},body:JSON.stringify(r),mode:"same-origin"})),{...e.dismissibles,[t.name]:n};var r}(e,t)}return n}function A(e){const t={};return S(e,e=>{t[e.attrs["data-w-dismissible-id-value"]]="data-w-dismissible-dismissed-value"in e.attrs}),t}N.Controller,Boolean;const T=({menuItems:e,accountMenuItems:t,user:n,expandingOrCollapsing:r,onHideMobile:i,slim:s,currentPath:o,navigate:l})=>{const[m,d]=a.useReducer(x,{navigationPath:"",activePath:"",dismissibles:A(e)}),p=!s||r,h=m.navigationPath.startsWith(".account");a.useEffect(()=>{s&&h&&d({type:"set-navigation-path",path:""})},[s]),a.useEffect(()=>{const n=[],a=(e,t)=>{t.forEach(t=>{const r=`${e}.${t.name}`;t instanceof E?n.push([t.url,r]):t instanceof y&&a(r,t.menuItems)})};a("",e),a("",t);let r=null;n.forEach(([e,t])=>{o.startsWith(e)&&(null==r||e.length>r[0].length)&&(r=[e,t])});const i=r?r[1]:"";i!==m.activePath&&d({type:"set-active-path",path:i})},[o,e]),a.useEffect(()=>{const e=e=>{"Escape"===e.key&&(d({type:"set-navigation-path",path:""}),""===m.navigationPath&&i())},t=e=>{const t=document.querySelector("[data-wagtail-sidebar]");t&&t.contains(e.target)||""===m.navigationPath||d({type:"set-navigation-path",path:""})};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.addEventListener("touchend",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.removeEventListener("touchend",t)}},[m.navigationPath]);const g="sidebar-main-menu w-scrollbar-thin"+(h?" sidebar-main-menu--open-footer":"");return a.createElement(a.Fragment,null,a.createElement("nav",{className:g,"aria-label":(0,c.AP)("Main menu")},a.createElement("ul",{className:"sidebar-main-menu__list"},C("",e,s,m,d,l))),a.createElement("div",{className:"sidebar-footer"+(h?" sidebar-footer--open":"")+(p?" sidebar-footer--visible":"")},a.createElement(f.Ay,{disabled:!s,content:n.name,placement:"right"},a.createElement("button",{className:`\n ${s?"w-px-4":"w-px-5"}\n sidebar-footer__account\n w-bg-surface-menus\n w-text-text-label-menus-default\n w-flex\n w-items-center\n w-relative\n w-w-full\n w-appearance-none\n w-border-0\n w-overflow-hidden\n w-py-3\n hover:w-bg-surface-menu-item-active\n focus:w-bg-surface-menu-item-active\n w-transition`,onClick:()=>{d(h?{type:"set-navigation-path",path:""}:{type:"set-navigation-path",path:".account"})},"aria-haspopup":"menu","aria-expanded":h?"true":"false",type:"button"},a.createElement("div",{className:"avatar avatar-on-dark w-flex-shrink-0 !w-w-[28px] !w-h-[28px]"},a.createElement("img",{src:n.avatarUrl,alt:"",decoding:"async",loading:"lazy"})),a.createElement("div",{className:"sidebar-footer__account-toggle"},a.createElement("div",{className:"sidebar-footer__account-label w-label-3"},n.name),a.createElement(u.A,{className:"w-w-4 w-h-4 w-text-text-label-menus-default",name:h?"arrow-down":"arrow-up"})))),a.createElement("ul",null,C("",t,s,m,d,l))))},O=({item:e,slim:t,path:n,state:r,dispatch:i})=>{const s=r.activePath.startsWith(n),o=n.split(".").length>2,l="sidebar-menu-item"+(s?" sidebar-menu-item--active":"")+(o?" sidebar-menu-item--in-sub-menu":"");return a.createElement("li",{className:l},a.createElement(f.Ay,{disabled:!t||o,content:e.label,placement:"right"},a.createElement("form",{...e.attrs,method:e.method,action:e.action},a.createElement("input",{type:"hidden",name:"csrfmiddlewaretoken",value:_.HE.CSRF_TOKEN}),a.createElement("button",{type:"submit",className:`sidebar-menu-item__link ${e.classNames}`,onClick:t=>{t.ctrlKey||t.shiftKey||t.metaKey||t.button&&0!==t.button||P(e,r)||i({type:"set-dismissible-state",item:e})}},e.iconName&&a.createElement(u.A,{name:e.iconName,className:"icon--menuitem"}),a.createElement("span",{className:"menuitem"},a.createElement("span",{className:"menuitem-label"},e.label),!P(e,r)&&a.createElement("span",{className:"w-dismissible-badge"},a.createElement("span",{className:"w-sr-only"},(0,c.AP)("(New)"))))))))};var k=n(9904),R=n(8168),I=n(8587),M=n(4146),L=n.n(M),D=n(4363),F=n(8661),$=n(4595),U=n(1458),j=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],H=["reactReduxForwardedRef"],G=[],q=[null,null];function K(e,t){var n=e[1];return[t.payload,n+1]}function B(e,t,n){(0,$.E)(function(){return e.apply(void 0,t)},n)}function W(e,t,n,a,r,i,s){e.current=a,t.current=r,n.current=!1,i.current&&(i.current=null,s())}function V(e,t,n,a,r,i,s,o,l,c){if(e){var u=!1,m=null,d=function(){if(!u){var e,n,d=t.getState();try{e=a(d,r.current)}catch(e){n=e,m=e}n||(m=null),e===i.current?s.current||l():(i.current=e,o.current=e,s.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=d,n.trySubscribe(),d(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,m)throw m}}}var X=function(){return[null,0]};function z(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,s=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,o=n.methodName,l=void 0===o?"connectAdvanced":o,c=n.renderCountProp,u=void 0===c?void 0:c,m=n.shouldHandleStateChanges,d=void 0===m||m,p=n.storeKey,h=void 0===p?"store":p,f=(n.withRef,n.forwardRef),g=void 0!==f&&f,E=n.context,b=void 0===E?U.t:E,v=(0,I.A)(n,j),w=b;return function(t){var n=t.displayName||t.name||"Component",i=s(n),o=(0,R.A)({},v,{getDisplayName:s,methodName:l,renderCountProp:u,shouldHandleStateChanges:d,storeKey:h,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=v.pure,m=c?a.useMemo:function(e){return e()};function p(n){var i=(0,a.useMemo)(function(){var e=n.reactReduxForwardedRef,t=(0,I.A)(n,H);return[n.context,e,t]},[n]),s=i[0],l=i[1],c=i[2],u=(0,a.useMemo)(function(){return s&&s.Consumer&&(0,D.isContextConsumer)(r().createElement(s.Consumer,null))?s:w},[s,w]),p=(0,a.useContext)(u),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var f=h?n.store:p.store,g=(0,a.useMemo)(function(){return function(t){return e(t.dispatch,o)}(f)},[f]),E=(0,a.useMemo)(function(){if(!d)return q;var e=(0,F.K)(f,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,h,p]),b=E[0],v=E[1],y=(0,a.useMemo)(function(){return h?p:(0,R.A)({},p,{subscription:b})},[h,p,b]),N=(0,a.useReducer)(K,G,X),_=N[0][0],C=N[1];if(_&&_.error)throw _.error;var P=(0,a.useRef)(),S=(0,a.useRef)(c),x=(0,a.useRef)(),A=(0,a.useRef)(!1),T=m(function(){return x.current&&c===S.current?x.current:g(f.getState(),c)},[f,_,c]);B(W,[S,P,A,c,T,x,v]),B(V,[d,f,b,g,S,P,A,x,v,C],[f,b,g]);var O=(0,a.useMemo)(function(){return r().createElement(t,(0,R.A)({},T,{ref:l}))},[l,t,T]);return(0,a.useMemo)(function(){return d?r().createElement(u.Provider,{value:y},O):O},[u,O,y])}var f=c?r().memo(p):p;if(f.WrappedComponent=t,f.displayName=p.displayName=i,g){var E=r().forwardRef(function(e,t){return r().createElement(f,(0,R.A)({},e,{reactReduxForwardedRef:t}))});return E.displayName=i,E.WrappedComponent=t,L()(E,t)}return L()(f,t)}}var Z=n(9124),J=n(7684),Q=n(6778);const Y=[function(e){return"function"==typeof e?(0,Q.Qb)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,Q.o6)(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?(0,Q.o6)(function(t){return(0,J.A)(e,t)}):void 0}],ee=[function(e){return"function"==typeof e?(0,Q.Qb)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,Q.o6)(function(){return{}})}];function te(e,t,n){return(0,R.A)({},n,e,t)}const ne=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var a,r=n.pure,i=n.areMergedPropsEqual,s=!1;return function(t,n,o){var l=e(t,n,o);return s?r&&i(l,a)||(a=l):(s=!0,a=l),a}}}(e):void 0},function(e){return e?void 0:function(){return te}}];var ae=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function re(e,t,n,a){return function(r,i){return n(e(r,i),t(a,i),i)}}function ie(e,t,n,a,r){var i,s,o,l,c,u=r.areStatesEqual,m=r.areOwnPropsEqual,d=r.areStatePropsEqual,p=!1;return function(r,h){return p?function(r,p){var h,f,g=!m(p,s),E=!u(r,i);return i=r,s=p,g&&E?(o=e(i,s),t.dependsOnOwnProps&&(l=t(a,s)),c=n(o,l,s)):g?(e.dependsOnOwnProps&&(o=e(i,s)),t.dependsOnOwnProps&&(l=t(a,s)),c=n(o,l,s)):E?(h=e(i,s),f=!d(h,o),o=h,f&&(c=n(o,l,s)),c):c}(r,h):(o=e(i=r,s=h),l=t(a,s),c=n(o,l,s),p=!0,c)}}function se(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,r=t.initMergeProps,i=(0,I.A)(t,ae),s=n(e,i),o=a(e,i),l=r(e,i);return(i.pure?ie:re)(s,o,l,e,i)}var oe=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function le(e,t,n){for(var a=t.length-1;a>=0;a--){var r=t[a](e);if(r)return r}return function(t,a){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+a.wrappedComponentName+".")}}function ce(e,t){return e===t}function ue(e){var t=void 0===e?{}:e,n=t.connectHOC,a=void 0===n?z:n,r=t.mapStateToPropsFactories,i=void 0===r?ee:r,s=t.mapDispatchToPropsFactories,o=void 0===s?Y:s,l=t.mergePropsFactories,c=void 0===l?ne:l,u=t.selectorFactory,m=void 0===u?se:u;return function(e,t,n,r){void 0===r&&(r={});var s=r,l=s.pure,u=void 0===l||l,d=s.areStatesEqual,p=void 0===d?ce:d,h=s.areOwnPropsEqual,f=void 0===h?Z.A:h,g=s.areStatePropsEqual,E=void 0===g?Z.A:g,b=s.areMergedPropsEqual,v=void 0===b?Z.A:b,w=(0,I.A)(s,oe),y=le(e,i,"mapStateToProps"),N=le(t,o,"mapDispatchToProps"),_=le(n,c,"mergeProps");return a(m,(0,R.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:N,initMergeProps:_,pure:u,areStatesEqual:p,areOwnPropsEqual:f,areStatePropsEqual:E,areMergedPropsEqual:v},w))}}const me=ue();n(6338),n(3769),n(387);var de=n(2724);function pe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}(0,n(8298).d)(de.r);var he=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),fe=()=>Math.random().toString(36).substring(7).split("").join("."),ge={INIT:`@@redux/INIT${fe()}`,REPLACE:`@@redux/REPLACE${fe()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fe()}`};function Ee(e,t,n){if("function"!=typeof e)throw new Error(pe(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(pe(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(pe(1));return n(Ee)(e,t)}let a=e,r=t,i=new Map,s=i,o=0,l=!1;function c(){s===i&&(s=new Map,i.forEach((e,t)=>{s.set(t,e)}))}function u(){if(l)throw new Error(pe(3));return r}function m(e){if("function"!=typeof e)throw new Error(pe(4));if(l)throw new Error(pe(5));let t=!0;c();const n=o++;return s.set(n,e),function(){if(t){if(l)throw new Error(pe(6));t=!1,c(),s.delete(n),i=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(pe(7));if(void 0===e.type)throw new Error(pe(8));if("string"!=typeof e.type)throw new Error(pe(17));if(l)throw new Error(pe(9));try{l=!0,r=a(r,e)}finally{l=!1}return(i=s).forEach(e=>{e()}),e}return d({type:ge.INIT}),{dispatch:d,subscribe:m,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(pe(10));a=e,d({type:ge.REPLACE})},[he]:function(){const e=m;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(pe(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[he](){return this}}}}}function be(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var ve,we=({dispatch:e,getState:t})=>n=>a=>"function"==typeof a?a(e,t,ve):n(a);const{fetch:ye,Headers:Ne}=n.g,_e=e=>{if(e.status>=200&&e.status<300)return e;throw new Error(e.statusText)},Ce=e=>e.json(),Pe=e=>((e,t)=>{const n={credentials:"same-origin",headers:new Ne({Accept:"application/json","Content-Type":"application/json"}),method:e};return(a=ye(t,n),new Promise((e,t)=>{const n=setTimeout(()=>{t(new Error("Response timeout"))},15e3);a.then(t=>{clearTimeout(n),e(t)},e=>{clearTimeout(n),t(e)})})).then(_e).then(Ce);var a})("GET",e),{ADMIN_API:Se}=_.HE,xe=(e,t={})=>{let a=`${Se.PAGES}?translation_of=${e}&limit=20`;return t.fields?a+=`&fields=parent,${n.g.encodeURIComponent(t.fields.join(","))}`:a+="&fields=parent",t.onlyWithChildren&&(a+="&has_children=1"),t.offset&&(a+=`&offset=${t.offset}`),Pe(a)},Ae=(...e)=>e[0];function Te(e,t,n){return(...a)=>{const r={type:e,payload:(t||Ae)(...a)};return r.payload instanceof Error&&(r.error=!0),"function"==typeof n&&(r.meta=n(...a)),r}}const Oe=Te("GET_PAGE_SUCCESS",(e,t)=>({id:e,data:t})),ke=Te("GET_PAGE_FAILURE",(e,t)=>({id:e,error:t}));const Re=Te("GET_CHILDREN_START",e=>({id:e})),Ie=Te("GET_CHILDREN_SUCCESS",(e,t,n)=>({id:e,items:t,meta:n})),Me=Te("GET_CHILDREN_FAILURE",(e,t)=>({id:e,error:t}));function Le(e,t=0){return n=>(n(Re(e)),((e,t={})=>{let n=`${Se.PAGES}?child_of=${e}&for_explorer=1`;return t.fields?n+=`&fields=parent,${window.encodeURIComponent(t.fields.join(","))}`:n+="&fields=parent",t.onlyWithChildren&&(n+="&has_children=1"),t.offset&&(n+=`&offset=${t.offset}`),n+=Se.EXTRA_CHILDREN_PARAMETERS,Pe(n)})(e,{offset:t}).then(({items:a,meta:r})=>{const i=t+a.length;n(Ie(e,a,r)),i<r.total_count&&i<_.KV&&n(Le(e,i))},t=>{n(Me(e,t))}))}const De=Te("GET_TRANSLATIONS_START",e=>({id:e})),Fe=Te("GET_TRANSLATIONS_SUCCESS",(e,t)=>({id:e,items:t})),$e=Te("GET_TRANSLATIONS_FAILURE",(e,t)=>({id:e,error:t}));function Ue(e){return t=>(t(De(e)),(async(e,t)=>{const n=[];let a=100;for(;;){const r=await xe(e,{offset:n.length,...t});if(r.items.forEach(e=>n.push(e)),n.length>=r.meta.total_count||a--<=0)return n}})(e,{onlyWithChildren:!0}).then(n=>{t(Fe(e,n))},n=>{t($e(e,n))}))}const je=Te("OPEN_EXPLORER",e=>({id:e})),He=Te("CLOSE_EXPLORER"),Ge=Te("GOTO_PAGE",(e,t)=>({id:e,transition:t}));var qe=n(1688),Ke=n.n(qe);const Be=()=>r().createElement("span",null,r().createElement(u.A,{name:"spinner",className:"w-spinner"}),` ${(0,c.AP)("Loading…")}`);var We=n(5556),Ve=n.n(We),Xe=n(862),ze=n.n(Xe);const Ze="push",Je=({name:e,component:t,className:n,duration:a,children:i})=>r().createElement(ze(),{component:t,transitionEnterTimeout:a,transitionLeaveTimeout:a,transitionName:`w-transition-${e}`,className:n},i);Je.propTypes={name:Ve().oneOf([Ze,"pop"]).isRequired,component:Ve().string,className:Ve().string,duration:Ve().number,children:Ve().node},Je.defaultProps={component:"div",children:null,className:null,duration:210};const Qe=Je,Ye=(e,t,n,a,r)=>{n&&"#"===e&&(r.preventDefault(),r.stopPropagation()),t&&t(r),r.ctrlKey||r.shiftKey||r.metaKey||r.button&&0!==r.button||a&&!r.defaultPrevented&&(r.preventDefault(),a(e))},et=({className:e="",children:t,accessibleLabel:n,href:r="#",target:i,preventDefault:s=!0,onClick:o,navigate:l})=>{const c=a.Children.count(t)>0,u=n?a.createElement("span",{className:"w-sr-only"},n):null;return a.createElement("a",{className:e,onClick:Ye.bind(null,r,o,s,l),rel:"_blank"===i?"noreferrer":void 0,href:r,target:i},c?t:u)},{ADMIN_URLS:tt}=_.HE,nt=({locale:e,translations:t,gotoPage:n})=>{const a=wagtailConfig.LOCALES.filter(({code:n})=>n===e||t.get(n)).map(({code:e,display_name:t})=>r().createElement("option",{key:e,value:e},t));return r().createElement("div",{className:"c-page-explorer__header__select"},r().createElement("select",{value:e,onChange:e=>{e.preventDefault();const a=t.get(e.target.value);a&&n(a,0)},disabled:a.length<2},a))},at=({page:e,depth:t,onClick:n,gotoPage:a,navigate:i})=>{const s=0===t,o=0===e.id;return r().createElement("div",{className:"c-page-explorer__header"},r().createElement(et,{href:o?tt.PAGES:`${tt.PAGES}${e.id}/`,className:"c-page-explorer__header__title",onClick:n,navigate:i},r().createElement("div",{className:"c-page-explorer__header__title__inner"},r().createElement(u.A,{name:s?"home":"arrow-left",className:"icon--explorer-header"}),r().createElement("span",null,e.admin_display_title||(0,c.AP)("Pages")))),!o&&e.meta.locale&&e.translations&&e.translations.size>0&&r().createElement(nt,{locale:e.meta.locale,translations:e.translations,gotoPage:a}))},rt=({status:e})=>r().createElement("span",{className:"c-status"+(e.live?" c-status--live":"")},e.status);rt.propTypes={status:Ve().shape({live:Ve().bool.isRequired,status:Ve().string.isRequired}).isRequired};const it=rt,{ADMIN_URLS:st}=_.HE,ot=r().createElement(u.A,{name:"folder-inverse",className:"icon--menuitem"}),lt=({item:e,onClick:t,navigate:n})=>{const{id:a,admin_display_title:i,meta:s}=e,o=s.children.count>0,l=s.status.live&&!s.status.has_unpublished_changes,m=1===s.parent?.id&&s.locale&&(_.kf.get(s.locale)||s.locale);return r().createElement("div",{className:"c-page-explorer__item"},r().createElement(et,{href:`${st.PAGES}${a}/`,navigate:n,className:"c-page-explorer__item__link"},o?ot:null,r().createElement("h3",{className:"c-page-explorer__item__title"},i),(!l||m)&&r().createElement("span",{className:"c-page-explorer__meta"},m&&r().createElement("span",{className:"c-status"},m),!l&&r().createElement(it,{status:s.status}))),r().createElement(et,{href:`${st.PAGES}${a}/edit/`,className:"c-page-explorer__item__action c-page-explorer__item__action--small",navigate:n},r().createElement(u.A,{name:"edit",title:(0,c.AP)("Edit '%(title)s'").replace("%(title)s",i||""),className:"icon--item-action"})),o?r().createElement(et,{className:"c-page-explorer__item__action",onClick:t,href:`${st.PAGES}${a}/`,navigate:n},r().createElement(u.A,{name:"arrow-right",title:(0,c.AP)("View child pages of '%(title)s'").replace("%(title)s",i||""),className:"icon--item-action"})):null)},ct=({page:e})=>{const t=e.children.count;return r().createElement("a",{href:`${_.HE.ADMIN_URLS.PAGES}${e.id}/`,className:"c-page-explorer__see-more"},(0,c.AP)("See all"),r().createElement("span",null,` ${t} ${1===t?(0,c.AP)("Page").toLowerCase():(0,c.AP)("Pages").toLowerCase()}`),r().createElement(u.A,{name:"arrow-right"}))};class ut extends r().Component{constructor(e){super(e),this.state={transition:Ze},this.onItemClick=this.onItemClick.bind(this),this.onHeaderClick=this.onHeaderClick.bind(this)}componentWillReceiveProps(e){const{depth:t}=this.props,n=e.depth>t;this.setState({transition:n?Ze:"pop"})}onItemClick(e,t){const{gotoPage:n}=this.props;t.preventDefault(),t.stopPropagation(),n(e,1)}onHeaderClick(e){const{page:t,depth:n,gotoPage:a}=this.props,r=t.meta.parent?.id;n>0&&r&&(e.preventDefault(),e.stopPropagation(),a(r,-1))}renderChildren(){const{page:e,nodes:t}=this.props;let n;return n=e.isFetchingChildren||e.children.items?r().createElement("div",{key:"children"},e.children.items.map(e=>r().createElement(lt,{key:e,item:t[e],onClick:this.onItemClick.bind(null,e),navigate:this.props.navigate}))):r().createElement("div",{key:"empty",className:"c-page-explorer__placeholder"},(0,c.AP)("No results")),r().createElement("div",{className:"c-page-explorer__drawer"},n,e.isFetchingChildren||e.isFetchingTranslations?r().createElement("div",{key:"fetching",className:"c-page-explorer__placeholder"},r().createElement(Be,null)):null,e.isError?r().createElement("div",{key:"error",className:"c-page-explorer__placeholder"},(0,c.AP)("Server Error")):null)}render(){const{page:e,depth:t,gotoPage:n,onClose:a}=this.props,{transition:i}=this.state;return r().createElement(Ke(),{paused:!e||e.isFetchingChildren||e.isFetchingTranslations,focusTrapOptions:{onDeactivate:a,clickOutsideDeactivates:!1,allowOutsideClick:!0}},r().createElement("div",{role:"dialog","aria-label":(0,c.AP)("Page explorer")},r().createElement(Qe,{name:i,className:"c-page-explorer"},r().createElement("div",{key:t,className:"w-transition-group"},r().createElement(at,{depth:t,page:e,onClick:this.onHeaderClick,gotoPage:n,navigate:this.props.navigate}),this.renderChildren(),e.isError||e.children.items&&e.children.count>_.KV?r().createElement(ct,{page:e}):null))))}}const mt=ut,dt=me(e=>({depth:e.explorer.depth,currentPageId:e.explorer.currentPageId,nodes:e.nodes}),e=>({gotoPage:(t,n)=>e(function(e,t){return(n,a)=>{const{nodes:r}=a(),i=r[e];n(Ge(e,t)),!i||i.isFetchingChildren||i.children.count>0||n(Le(e)),i&&!i.isFetchingTranslations&&null==i.translations&&n(Ue(e))}}(t,n))}))(({isVisible:e,depth:t,currentPageId:n,nodes:a,gotoPage:i,onClose:s,navigate:o})=>e&&n?r().createElement(mt,{depth:t,page:a[n],nodes:a,gotoPage:i,onClose:s,navigate:o}):null),pt={depth:0,currentPageId:null},ht="OPEN_EXPLORER",ft="CLOSE_EXPLORER";function gt(e=pt,t){switch(t.type){case ht:return{depth:0,currentPageId:t.payload.id};case ft:return pt;case"GOTO_PAGE":return{depth:e.depth+t.payload.transition,currentPageId:t.payload.id};default:return e}}const Et={id:0,isFetchingChildren:!1,isFetchingTranslations:!1,isError:!1,children:{items:[],count:0},meta:{status:{status:"",live:!1,has_unpublished_changes:!0},parent:null,children:{}}},bt="GET_PAGE_SUCCESS",vt="GET_CHILDREN_START",wt="GET_CHILDREN_SUCCESS",yt="GET_TRANSLATIONS_START",Nt="GET_TRANSLATIONS_SUCCESS",_t="GET_PAGE_FAILURE",Ct="GET_CHILDREN_FAILURE",Pt="GET_TRANSLATIONS_FAILURE",St=(e=Et,t)=>{switch(t.type){case bt:return{...e,...t.payload.data,isError:!1};case vt:return{...e,isFetchingChildren:!0};case yt:return{...e,isFetchingTranslations:!0};case wt:return{...e,isFetchingChildren:!1,isError:!1,children:{items:e.children.items.slice().concat(t.payload.items.map(e=>e.id)),count:t.payload.meta.total_count}};case Nt:const n=new Map;return t.payload.items.forEach(e=>{n.set(e.meta.locale,e.id)}),{...e,isFetchingTranslations:!1,isError:!1,translations:n};case _t:case Ct:case Pt:return{...e,isFetchingChildren:!1,isFetchingTranslations:!0,isError:!0};default:return e}},xt={};function At(e=xt,t){switch(t.type){case ht:return{...e,[t.payload.id]:{...Et}};case bt:case vt:case yt:case _t:case Ct:case Pt:return{...e,[t.payload.id]:St(e[t.payload.id],t)};case wt:case Nt:const n={...e,[t.payload.id]:St(e[t.payload.id],t)};return t.payload.items.forEach(e=>{n[e.id]={...Et,...e}}),n;case ft:return xt;default:return e}}const Tt=()=>{const e=function(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const r=t[a];"function"==typeof e[r]&&(n[r]=e[r])}const a=Object.keys(n);let r;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:ge.INIT}))throw new Error(pe(12));if(void 0===n(void 0,{type:ge.PROBE_UNKNOWN_ACTION()}))throw new Error(pe(13))})}(n)}catch(e){r=e}return function(e={},t){if(r)throw r;let i=!1;const s={};for(let r=0;r<a.length;r++){const o=a[r],l=n[o],c=e[o],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(pe(14));s[o]=u,i=i||u!==c}return i=i||a.length!==Object.keys(e).length,i?s:e}}({explorer:gt,nodes:At});return t=e,n={},a=be(function(...e){return t=>(n,a)=>{const r=t(n,a);let i=()=>{throw new Error(pe(15))};const s={getState:r.getState,dispatch:(e,...t)=>i(e,...t)},o=e.map(e=>e(s));return i=be(...o)(r.dispatch),{...r,dispatch:i}}}(we),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e),Ee(t,n,a);var t,n,a},Ot=dt,kt=({path:e,slim:t,item:n,state:r,dispatch:i,navigate:s})=>{const o=r.navigationPath.startsWith(e),l=o||r.activePath.startsWith(e),c=e.split(".").length,d=e.split(".").length>2,[p,h]=a.useState(!1),g=a.useRef(null);g.current||(g.current=Tt());const E=()=>{setTimeout(()=>{h(!1),g.current&&g.current.dispatch(He())},m)};a.useEffect(()=>{var e;o?(h(!0),g.current&&g.current.dispatch((e=n.startPageId,(t,n)=>{const{nodes:a}=n(),r=a[e];t(je(e)),r||(t(Le(e)),1!==e&&t(Ue(e))),1!==e&&t(function(e){return t=>(e=>{const t=`${Se.PAGES}${e}/`;return Pe(t)})(e).then(n=>{t(Oe(e,n))},n=>{t(ke(e,n))})}(e))}))):!o&&p&&E()},[o]);const w="sidebar-menu-item sidebar-page-explorer-item"+(l?" sidebar-menu-item--active":"")+(d?" sidebar-menu-item--in-sub-menu":""),y="sidebar-sub-menu-trigger-icon"+(o?" sidebar-sub-menu-trigger-icon--open":"");return a.createElement("li",{className:w},a.createElement(f.Ay,{disabled:o||!t,content:n.label,placement:"right"},a.createElement("button",{onClick:()=>{i(o?{type:"set-navigation-path",path:""}:{type:"set-navigation-path",path:e})},className:"sidebar-menu-item__link","aria-haspopup":"dialog","aria-expanded":o?"true":"false",type:"button"},a.createElement(u.A,{name:"folder-open-inverse",className:"icon--menuitem"}),a.createElement("span",{className:"menuitem-label"},n.label),a.createElement(u.A,{className:y,name:"arrow-right"}))),a.createElement("div",null,a.createElement(b,{isVisible:p,isOpen:o,depth:c,widthPx:485},a.createElement(v,{isVisible:p,dispatch:i}),g.current&&a.createElement(k.A,{store:g.current},a.createElement(Ot,{isVisible:p,navigate:s,onClose:E})))))},Rt=({className:e,slim:t})=>{const n="group-hover:w-text-black w-transition-all w-duration-150";return r().createElement("svg",{style:{left:t?"-1.125rem":"-1.75rem"},className:`\n sidebar-wagtail-branding__icon\n !w-overflow-visible\n w-group\n w-text-surface-menus\n w-z-10\n w-absolute\n w-transition-all\n w-duration-150\n hover:w-scale-[0.85]\n hover:w-rotate-[5deg]\n ${e||""}\n ${t?"w-w-[58px] w-h-[57px] w-top-2 hover:w-translate-x-1 hover:-w-translate-y-1":"w-w-[120px] w-h-[200px] -w-top-1 hover:w-translate-x-2 hover:-w-translate-y-3"}\n `,width:"225",height:"274",viewBox:"0 0 225 274",enableBackground:"new 0 0 225 274",xmlSpace:"preserve","aria-hidden":"true"},r().createElement("g",null,r().createElement("path",{className:"wagtail-logo-face",fill:"#FFF",d:"M194.897 79.492c-8.392-12.793-22.602-21.27-38.773-21.27-5.322 0-10.496.915-15.32 2.62a30.755 30.755 0 0 1-4.039-15.3c0-17.078\n 13.325-30.792 29.918-30.792 4.274 0 8.046.776 11.565 2.328 1.746-2.566 3.491-5.64 5.236-9.476 7.108 4.095 19.786 14.99 21.26\n 33.397L190.72 61.88l4.177 17.612Z"}),r().createElement("path",{className:`w-hidden ${n}`,"data-part":"eye--closed",d:"M183.083 36.4189C181.131 37.0166 179.364 38.6306 178.317 40.5186C178.048 41.0035 177.464 41.2495 176.954 41.0359L173.968\n 39.7874C173.46 39.5751 173.217 38.9905 173.464 38.498C175.023 35.3889 177.903 32.5075 181.558 31.388C185.602 30.1494 190.075\n 31.2163 194.019 35.3681C194.398 35.7669 194.352 36.3991 193.936 36.7609L191.492 38.8897C191.073 39.2538 190.441 39.2043 190.053\n 38.8094C187.354 36.0624 184.921 35.8559 183.083 36.4189Z",fill:"currentColor"}),r().createElement("path",{className:n,"data-part":"eye--open",fill:"currentColor",d:"M185.54 42.697c3.332 0 6.034-2.781 6.034-6.211s-2.702-6.21-6.034-6.21c-3.333 0-6.034 2.78-6.034 6.21s2.701 6.21 6.034 6.21Z"}),r().createElement("path",{className:n,"data-part":"body",fill:"currentColor",d:"m21.867 193.558 92.839-164.565C122.124 11.853 138.827 0 158.135 0c9.302 0 18.102 2.588 25.393 7.504-1.76 3.882-3.52 6.987-5.28\n 9.575-3.52-1.553-7.291-2.33-11.565-2.33-16.594 0-29.919 13.716-29.919 30.794 0 5.646 1.496 10.83 4.04 15.3a45.95 45.95 0 0 1\n 15.319-2.62c25.896 0 46.764 21.736 46.764 48.131 0 1.104-.183 2.209-.394 3.475l-.109.665h.252c-.126.906-.315 1.811-.503\n 2.717-.189.906-.377 1.811-.503 2.717v.259c-17.487 91.789-126.812 89.821-143.747 89.031l.112-.386-1.743-30.679-6.872 12.197-27.513 7.208Z"}),r().createElement("path",{className:n,"data-part":"body-tail-connector",fill:"currentColor",d:"m49.277 186.425 8.718 18.407-1.743-30.679-6.975 12.272Z"}),r().createElement("path",{className:n,"data-part":"beak",fill:"currentColor",d:"m204.648 41.144-11.817 18.114h31.93l-20.113-18.114Z"}),r().createElement("path",{"data-part":"feather-accent",fill:"#FFF",d:"m99.304 170.528-2.012 1.552s66.877-11.127 77.437-67.797l-10.56 3.623s-2.765 43.99-64.865 62.622Z"})),r().createElement("path",{className:n,"data-part":"tail",fill:"currentColor",d:"M56.252 174.153.456 273.202l41.847-14.025 15.692-54.345-1.743-30.679Z"}))},It=({homeUrl:e,slim:t,currentPath:n,navigate:r})=>{const i=a.useMemo(()=>document.querySelector("[data-wagtail-sidebar-branding-logo]"),[]);if(i&&""!==i.innerHTML)return a.createElement("a",{className:"sidebar-custom-branding",href:e,"aria-label":(0,c.AP)("Dashboard"),"aria-current":n===e?"page":void 0,dangerouslySetInnerHTML:{__html:i?i.innerHTML:""}});const s=a.useRef(0),o=a.useRef("r"),l=a.useRef(0),[u,m]=a.useState(!1),d="sidebar-wagtail-branding w-transition-all w-duration-150"+(u?" sidebar-wagtail-branding--wagging":"");return a.createElement("a",{className:d,href:e,"aria-label":(0,c.AP)("Dashboard"),"aria-current":n===e?"page":void 0,onClick:t=>{t.ctrlKey||t.shiftKey||t.metaKey||t.button&&0!==t.button||(t.preventDefault(),r(e))},onMouseMove:e=>{const t=e.pageX,n=t>s.current?"r":"l";t!==s.current&&n!==o.current&&(l.current+=1),l.current>8&&m(!0),s.current=t,o.current=n},onMouseLeave:()=>{m(!1),l.current=0}},a.createElement("div",{className:"sidebar-wagtail-branding__icon-wrapper w-transition-all w-duration-150"},a.createElement(Rt,{slim:t})))};var Mt;n(6411),n(9610),n(1245),function(e){e.CLICK="click",e.FOCUS="focus"}(Mt||(Mt={})),N.Controller;const Lt=({slim:e,expandingOrCollapsing:t,onSearchClick:n,searchUrl:r,navigate:i})=>{const s=!e||t,o=a.useRef(null);return a.createElement("form",{role:"search",className:"w-h-[42px] w-relative w-box-border w-flex w-items-center w-justify-start w-flex-row w-flex-shrink-0",action:r,"aria-keyshortcuts":"/",method:"get",onSubmit:e=>{if(e.target instanceof HTMLFormElement)if(e.preventDefault(),s){const t=e.target.querySelector('input[name="q"]');i(r+"?q="+encodeURIComponent(t.value))}else i(r)},"data-controller":"w-kbd","data-w-kbd-action-value":e?Mt.CLICK:Mt.FOCUS},a.createElement("div",{className:"w-flex w-flex-row w-items-center w-h-full"},a.createElement(f.Ay,{disabled:s||!e,content:(0,c.AP)("Search"),placement:"right"},a.createElement("button",{className:`\n ${e?"w-pr-[18px]":"w-pr-0"}\n w-w-full\n w-pl-[23px]\n w-h-[35px]\n w-bg-transparent\n w-outline-offset-inside\n w-border-0\n w-rounded-none\n w-text-text-label-menus-default\n w-z-10\n hover:w-text-text-label-menus-active\n focus:w-text-text-label-menus-active\n hover:w-bg-transparent`,type:"submit","aria-label":(0,c.AP)("Search"),"data-w-kbd-target":e?"element":void 0,onClick:t=>{e&&(t.preventDefault(),n(),setTimeout(()=>{o.current&&o.current.focus()},m))}},a.createElement(u.A,{className:"icon--menuitem",name:"search"}))),a.createElement("label",{className:"w-sr-only",htmlFor:"menu-search-q"},(0,c.AP)("Search")),a.createElement("input",{className:`\n ${e||!s?"w-hidden":""}\n !w-pl-[55px]\n !w-py-[13px]\n !w-subpixel-antialiased\n !w-absolute\n !w-left-0\n !w-font-normal\n !w-top-0\n !w-text-14\n !w-bg-transparent\n !w-border-0\n !w-rounded-none\n !w-text-text-label-menus-default\n !w-outline-offset-inside\n !w-leading-none\n placeholder:!w-text-text-label-menus-default`,type:"text",id:"menu-search-q",name:"q",placeholder:(0,c.AP)("Search"),ref:o,"data-w-kbd-target":e?void 0:"element"})))};window.telepath.register("wagtail.sidebar.ActionMenuItem",class{name;label;action;attrs;iconName;classNames;method;constructor({name:e,label:t,action:n,attrs:a={},icon_name:r=null,classname:i,method:s="POST"}){this.name=e,this.label=t,this.action=n,this.attrs=a,this.iconName=r,this.classNames=i,this.method=s}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(O,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.LinkMenuItem",E),window.telepath.register("wagtail.sidebar.SubMenuItem",y),window.telepath.register("wagtail.sidebar.PageExplorerMenuItem",class extends E{startPageId;constructor({name:e,label:t,url:n,attrs:a={},icon_name:r=null,classname:i},s){super({name:e,label:t,url:n,attrs:a,icon_name:r,classname:i}),this.startPageId=s}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(kt,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.WagtailBrandingModule",class{homeUrl;constructor(e){this.homeUrl=e}render({slim:e,key:t,navigate:n,currentPath:r}){return a.createElement(It,{key:t,homeUrl:this.homeUrl,slim:e,navigate:n,currentPath:r})}}),window.telepath.register("wagtail.sidebar.SearchModule",class{searchUrl;constructor(e){this.searchUrl=e}render({slim:e,key:t,expandingOrCollapsing:n,onSearchClick:r,navigate:i}){return a.createElement(Lt,{searchUrl:this.searchUrl,slim:e,key:t,expandingOrCollapsing:n,onSearchClick:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.MainMenuModule",class{menuItems;accountMenuItems;user;constructor(e,t,n){this.menuItems=e,this.accountMenuItems=t,this.user=n}render({slim:e,expandingOrCollapsing:t,onHideMobile:n,key:r,currentPath:i,navigate:s}){return a.createElement(T,{menuItems:this.menuItems,accountMenuItems:this.accountMenuItems,user:this.user,slim:e,expandingOrCollapsing:t,onHideMobile:n,key:r,currentPath:i,navigate:s})}}),document.addEventListener("DOMContentLoaded",()=>{!function(){const e={sameSite:"lax"},t=document.getElementById("wagtail-sidebar"),n=document.getElementById("wagtail-sidebar-props"),r=e=>(window.location.href=e,new Promise(p.l));if(t&&n?.textContent){const i=window.telepath.unpack(JSON.parse(n.textContent)),o=l.get(h),c=!(void 0===o||"0"===o),u=t=>{t?(document.body.classList.add("sidebar-collapsed"),l.set(h,1,e)):(document.body.classList.remove("sidebar-collapsed"),l.set(h,0,e))};s().render(a.createElement(d,{modules:i.modules,collapsedOnLoad:c,currentPath:window.location.pathname,navigate:r,onExpandCollapse:u}),t,()=>{document.querySelector("[data-wagtail-sidebar]")?.classList.remove("sidebar-loading")})}}()})},3769:(e,t,n)=>{n(2427),n(1458)}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,a),i.exports}a.m=t,e=[],a.O=(t,n,r,i)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,r,i]=e[u],o=!0,l=0;l<n.length;l++)(!1&i||s>=i)&&Object.keys(a.O).every(e=>a.O[e](n[l]))?n.splice(l--,1):(o=!1,i<s&&(s=i));if(o){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=61,(()=>{var e={61:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[s,o,l]=n,c=0;if(s.some(t=>0!==e[t])){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(l)var u=l(a)}for(t&&t(n);c<s.length;c++)i=s[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(u)},n=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=a.O(void 0,[321],()=>a(251));r=a.O(r)})();
|
|
2
|
+
(()=>{"use strict";var e,t={251:(e,t,n)=>{var a=n(2427),r=n.n(a),i=n(6931),s=n.n(i);function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var l=function e(t,n){function a(e,a,r){if("undefined"!=typeof document){"number"==typeof(r=o({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in r)r[s]&&(i+="; "+s,!0!==r[s]&&(i+="="+r[s].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+i}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],a={},r=0;r<n.length;r++){var i=n[r].split("="),s=i.slice(1).join("=");try{var o=decodeURIComponent(i[0]);if(a[o]=t.read(s,o),e===o)break}catch(e){}}return e?a[e]:a}},remove:function(e,t){a(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),c=n(2833),u=n(1238);const m=150,d=({modules:e,currentPath:t,collapsedOnLoad:n=!1,navigate:r,onExpandCollapse:i})=>{const[s,o]=a.useState(n),l=a.useRef(null);a.useEffect(()=>{s&&i&&i(!0)},[]);const[d,p]=a.useState(!1),[h,f]=a.useState(!0),g=()=>window.innerWidth<800,[b,E]=a.useState(g());a.useEffect(()=>{function e(){return g()?(E(!0),null):(E(!1),p(!1),setTimeout(()=>{f(!0)},m))}window.addEventListener("resize",e);const t=e();return()=>{window.removeEventListener("resize",e),t&&clearTimeout(t)}},[]);const v=s&&!b,[w,y]=a.useState(!1);a.useEffect(()=>{y(!0);const e=setTimeout(()=>{y(!1)},m);return()=>{clearTimeout(e)}},[v]);const N=()=>{o(!s),i&&i(!s)},[_,C]=a.useState(!1),P=()=>{v&&N()};a.useEffect(()=>{const e=setTimeout(()=>{d||f(!0)},m);return()=>{clearTimeout(e)}},[d]);const S=()=>{p(!1),l&&l.current?.focus()},x=e.map((e,n)=>e.render({key:n,slim:v,expandingOrCollapsing:w,onHideMobile:S,onSearchClick:P,currentPath:t,navigate:r}));return a.createElement(a.Fragment,null,a.createElement("button",{onClick:()=>{p(!d),y(!0);const e=setTimeout(()=>{y(!1),f(!h)},m);return()=>{clearTimeout(e)}},"aria-expanded":d?"true":"false","aria-keyshortcuts":"[","aria-label":(0,c.AP)("Toggle sidebar"),className:"button sidebar-nav-toggle"+(b?" sidebar-nav-toggle--mobile":"")+(d?" sidebar-nav-toggle--open":""),type:"button",ref:l,"data-w-kbd-target":b?"element":void 0},d?a.createElement(u.A,{name:"cross"}):a.createElement(u.A,{name:"bars"})),a.createElement("div",{className:"sidebar"+(v?" sidebar--slim":"")+(b?" sidebar--mobile":"")+(b&&!d?" sidebar--hidden":"")+(b&&!d&&h?" sidebar--closed":"")},a.createElement("div",{className:"sidebar__inner",onFocus:()=>{_&&(o(!1),C(!0))},onBlur:()=>{_&&(C(!1),o(!0))}},a.createElement("div",{className:`sm:w-mt-2 ${v?"w-justify-center":"w-justify-end"} w-flex w-items-center`},a.createElement("button",{onClick:N,"aria-expanded":v?"false":"true","aria-keyshortcuts":"[","aria-label":(0,c.AP)("Toggle sidebar"),type:"button",className:(v?"":"w-mr-4")+"\n button\n sidebar__collapse-toggle\n w-flex\n w-justify-center\n w-items-center\n hover:w-bg-surface-menu-item-active\n hover:text-white\n hover:opacity-100\n more-contrast:w-border-border-interactive-more-contrast-dark-bg\n hover:more-contrast:w-border-border-interactive-more-contrast-dark-bg-hover","data-w-kbd-target":b?void 0:"element"},a.createElement(u.A,{name:"expand-right",className:s?"":"-w-rotate-180"}))),x)))};var p=n(3476);const h="wagtail_sidebar_collapsed";var f=n(1504);const g=({item:e,slim:t,path:n,state:r,dispatch:i,navigate:s})=>{const o=r.activePath===n,l=r.activePath.startsWith(n),m=n.split(".").length>2,d="sidebar-menu-item"+(l?" sidebar-menu-item--active":"")+(m?" sidebar-menu-item--in-sub-menu":"");return a.createElement("li",{className:d},a.createElement(f.Ay,{disabled:!t||m,content:e.label,placement:"right"},a.createElement("a",{...e.attrs,href:e.url,"aria-current":o?"page":void 0,onClick:t=>{t.ctrlKey||t.shiftKey||t.metaKey||t.button&&0!==t.button||(P(e,r)||i({type:"set-dismissible-state",item:e}),e.attrs.target||(t.preventDefault(),s(e.url).then(()=>{i({type:"set-active-path",path:n}),i({type:"set-navigation-path",path:""})})))},className:`sidebar-menu-item__link ${e.classNames}`},e.iconName&&a.createElement(u.A,{name:e.iconName,className:"icon--menuitem"}),a.createElement("div",{className:"menuitem"},a.createElement("span",{className:"menuitem-label"},e.label),!P(e,r)&&a.createElement("span",{className:"w-dismissible-badge"},a.createElement("span",{className:"w-sr-only"},(0,c.AP)("(New)")))))))};class b{name;label;url;attrs;iconName;classNames;constructor({name:e,label:t,url:n,attrs:a={},icon_name:r=null,classname:i}){this.name=e,this.label=t,this.url=n,this.attrs=a,this.iconName=r,this.classNames=i}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(g,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}const E=({isVisible:e,isOpen:t,depth:n,widthPx:r,children:i})=>{const s="sidebar-panel"+(e?" sidebar-panel--visible":"")+(t?" sidebar-panel--open":"");let o=2*-n;e&&!t&&(o-=1);const l={"--z-index":o};return r&&(l["--width"]=r+"px"),a.createElement("div",{className:s,style:l},i)};function v({isVisible:e,dispatch:t}){return e?(0,i.createPortal)(a.createElement("button",{type:"button",onClick:()=>t({type:"set-navigation-path",path:""}),className:"button sidebar-close-menu-button","aria-label":(0,c.AP)("Close")},a.createElement(u.A,{name:"cross",className:"w-w-[15px] w-h-4"})),document.body):null}const w=({path:e,item:t,slim:n,state:r,dispatch:i,navigate:s})=>{const o=r.navigationPath.startsWith(e),l=o||r.activePath.startsWith(e),d=e.split(".").length,[p,h]=a.useState(!1),[g,b]=a.useState(!1),w=t.menuItems.filter(e=>!P(e,r)).length;a.useEffect(()=>{o?h(!0):!o&&p&&setTimeout(()=>{h(!1)},m)},[o]);const y="sidebar-menu-item sidebar-sub-menu-item"+(l?" sidebar-menu-item--active":"")+(o?" sidebar-sub-menu-item--open":""),N="sidebar-sub-menu-trigger-icon"+(o?" sidebar-sub-menu-trigger-icon--open":"");return a.createElement("li",{className:y},a.createElement(f.Ay,{disabled:o||!n,content:t.label,placement:"right"},a.createElement("button",{...t.attrs,onClick:()=>{if(!g&&w>0&&i({type:"set-dismissible-state",item:t}),o){const t=e.split(".");t.pop();const n=t.join(".");i({type:"set-navigation-path",path:n})}else i({type:"set-navigation-path",path:e}),b(!0)},className:`sidebar-menu-item__link ${t.classNames}`,"aria-haspopup":"menu","aria-expanded":o?"true":"false",type:"button"},t.iconName&&a.createElement(u.A,{name:t.iconName,className:"icon--menuitem"}),a.createElement("span",{className:"menuitem-label"},t.label),w>0&&!g&&a.createElement("span",{className:"w-dismissible-badge w-dismissible-badge--count"},a.createElement("span",{"aria-hidden":"true"},w),a.createElement("span",{className:"w-sr-only"},1===w?(0,c.AP)("(1 new item in this menu)"):(0,c.AP)("(%(number)s new items in this menu)").replace("%(number)s",`${w}`))),a.createElement(u.A,{className:N,name:"arrow-right"}))),a.createElement(E,{isVisible:p,isOpen:o,depth:d},a.createElement("div",{className:"sidebar-sub-menu-panel"},a.createElement(v,{isVisible:p,dispatch:i}),a.createElement("h2",{id:`wagtail-sidebar-submenu${e.split(".").join("-")}-title`,className:`${t.classNames} w-h4`},t.iconName&&a.createElement(u.A,{name:t.iconName,className:"icon--submenu-header"}),t.label),a.createElement("ul",{"aria-labelledby":`wagtail-sidebar-submenu${e.split(".").join("-")}-title`},C(e,t.menuItems,n,r,i,s)),t.footerText&&a.createElement("p",{className:"sidebar-sub-menu-panel__footer"},t.footerText))))};class y{name;label;menuItems;attrs;iconName;classNames;footerText;constructor({name:e,label:t,attrs:n={},icon_name:a=null,classname:r,footer_text:i=""},s){this.name=e,this.label=t,this.menuItems=s,this.attrs=n,this.iconName=a,this.classNames=r,this.footerText=i}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(w,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}var N=n(2891),_=n(2898);function C(e,t,n,r,i,s){return a.createElement(a.Fragment,null,t.map(t=>t.render({path:`${e}.${t.name}`,slim:n,state:r,dispatch:i,navigate:s})))}function P(e,t){return!e.attrs["data-w-dismissible-id-value"]||"data-w-dismissible-dismissed-value"in e.attrs||t.dismissibles[e.name]}function S(e,t){e.forEach(e=>{e.attrs["data-w-dismissible-id-value"]&&t(e),e instanceof y&&S(e.menuItems,t)})}function x(e,t){const n={...e};switch(t.type){case"set-active-path":n.activePath=t.path;break;case"set-navigation-path":n.navigationPath=t.path;break;case"set-dismissible-state":n.dismissibles=function(e,{item:t,value:n=!0}){const a={};return S([t],e=>{a[e.attrs["data-w-dismissible-id-value"]]=n}),Object.keys(a).length>0&&(r=a,fetch(_.HE.ADMIN_URLS?.DISMISSIBLES,{method:"PATCH",headers:{[_.HE.CSRF_HEADER_NAME]:_.HE.CSRF_TOKEN,"Content-Type":"application/json"},body:JSON.stringify(r),mode:"same-origin"})),{...e.dismissibles,[t.name]:n};var r}(e,t)}return n}function A(e){const t={};return S(e,e=>{t[e.attrs["data-w-dismissible-id-value"]]="data-w-dismissible-dismissed-value"in e.attrs}),t}N.Controller,Boolean;const T=({menuItems:e,accountMenuItems:t,user:n,expandingOrCollapsing:r,onHideMobile:i,slim:s,currentPath:o,navigate:l})=>{const[m,d]=a.useReducer(x,{navigationPath:"",activePath:"",dismissibles:A(e)}),p=!s||r,h=m.navigationPath.startsWith(".account");a.useEffect(()=>{s&&h&&d({type:"set-navigation-path",path:""})},[s]),a.useEffect(()=>{const n=[],a=(e,t)=>{t.forEach(t=>{const r=`${e}.${t.name}`;t instanceof b?n.push([t.url,r]):t instanceof y&&a(r,t.menuItems)})};a("",e),a("",t);let r=null;n.forEach(([e,t])=>{o.startsWith(e)&&(null==r||e.length>r[0].length)&&(r=[e,t])});const i=r?r[1]:"";i!==m.activePath&&d({type:"set-active-path",path:i})},[o,e]),a.useEffect(()=>{const e=e=>{"Escape"===e.key&&(d({type:"set-navigation-path",path:""}),""===m.navigationPath&&i())},t=e=>{const t=document.querySelector("[data-wagtail-sidebar]");t&&t.contains(e.target)||""===m.navigationPath||d({type:"set-navigation-path",path:""})};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.addEventListener("touchend",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.removeEventListener("touchend",t)}},[m.navigationPath]);const g="sidebar-main-menu w-scrollbar-thin"+(h?" sidebar-main-menu--open-footer":"");return a.createElement(a.Fragment,null,a.createElement("nav",{className:g,"aria-label":(0,c.AP)("Main menu")},a.createElement("ul",{className:"sidebar-main-menu__list"},C("",e,s,m,d,l))),a.createElement("div",{className:"sidebar-footer"+(h?" sidebar-footer--open":"")+(p?" sidebar-footer--visible":"")},a.createElement(f.Ay,{disabled:!s,content:n.name,placement:"right"},a.createElement("button",{className:`\n ${s?"w-px-4":"w-px-5"}\n sidebar-footer__account\n w-bg-surface-menus\n w-text-text-label-menus-default\n w-flex\n w-items-center\n w-relative\n w-w-full\n w-appearance-none\n w-border-0\n w-overflow-hidden\n w-py-3\n hover:w-bg-surface-menu-item-active\n focus:w-bg-surface-menu-item-active\n w-transition`,onClick:()=>{d(h?{type:"set-navigation-path",path:""}:{type:"set-navigation-path",path:".account"})},"aria-haspopup":"menu","aria-expanded":h?"true":"false",type:"button"},a.createElement("div",{className:"avatar avatar-on-dark w-flex-shrink-0 !w-w-[28px] !w-h-[28px]"},a.createElement("img",{src:n.avatarUrl,alt:"",decoding:"async",loading:"lazy"})),a.createElement("div",{className:"sidebar-footer__account-toggle"},a.createElement("div",{className:"sidebar-footer__account-label w-label-3"},n.name),a.createElement(u.A,{className:"w-w-4 w-h-4 w-text-text-label-menus-default",name:h?"arrow-down":"arrow-up"})))),a.createElement("ul",null,C("",t,s,m,d,l))))},O=({item:e,slim:t,path:n,state:r,dispatch:i})=>{const s=r.activePath.startsWith(n),o=n.split(".").length>2,l="sidebar-menu-item"+(s?" sidebar-menu-item--active":"")+(o?" sidebar-menu-item--in-sub-menu":"");return a.createElement("li",{className:l},a.createElement(f.Ay,{disabled:!t||o,content:e.label,placement:"right"},a.createElement("form",{...e.attrs,method:e.method,action:e.action},a.createElement("input",{type:"hidden",name:"csrfmiddlewaretoken",value:_.HE.CSRF_TOKEN}),a.createElement("button",{type:"submit",className:`sidebar-menu-item__link ${e.classNames}`,onClick:t=>{t.ctrlKey||t.shiftKey||t.metaKey||t.button&&0!==t.button||P(e,r)||i({type:"set-dismissible-state",item:e})}},e.iconName&&a.createElement(u.A,{name:e.iconName,className:"icon--menuitem"}),a.createElement("span",{className:"menuitem"},a.createElement("span",{className:"menuitem-label"},e.label),!P(e,r)&&a.createElement("span",{className:"w-dismissible-badge"},a.createElement("span",{className:"w-sr-only"},(0,c.AP)("(New)"))))))))};var k=n(9904),R=n(8168),I=n(8587),M=n(4146),L=n.n(M),D=n(4363),F=n(8661),$=n(4595),U=n(1458),j=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],H=["reactReduxForwardedRef"],G=[],q=[null,null];function K(e,t){var n=e[1];return[t.payload,n+1]}function B(e,t,n){(0,$.E)(function(){return e.apply(void 0,t)},n)}function W(e,t,n,a,r,i,s){e.current=a,t.current=r,n.current=!1,i.current&&(i.current=null,s())}function V(e,t,n,a,r,i,s,o,l,c){if(e){var u=!1,m=null,d=function(){if(!u){var e,n,d=t.getState();try{e=a(d,r.current)}catch(e){n=e,m=e}n||(m=null),e===i.current?s.current||l():(i.current=e,o.current=e,s.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};return n.onStateChange=d,n.trySubscribe(),d(),function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,m)throw m}}}var X=function(){return[null,0]};function z(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,s=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,o=n.methodName,l=void 0===o?"connectAdvanced":o,c=n.renderCountProp,u=void 0===c?void 0:c,m=n.shouldHandleStateChanges,d=void 0===m||m,p=n.storeKey,h=void 0===p?"store":p,f=(n.withRef,n.forwardRef),g=void 0!==f&&f,b=n.context,E=void 0===b?U.t:b,v=(0,I.A)(n,j),w=E;return function(t){var n=t.displayName||t.name||"Component",i=s(n),o=(0,R.A)({},v,{getDisplayName:s,methodName:l,renderCountProp:u,shouldHandleStateChanges:d,storeKey:h,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=v.pure,m=c?a.useMemo:function(e){return e()};function p(n){var i=(0,a.useMemo)(function(){var e=n.reactReduxForwardedRef,t=(0,I.A)(n,H);return[n.context,e,t]},[n]),s=i[0],l=i[1],c=i[2],u=(0,a.useMemo)(function(){return s&&s.Consumer&&(0,D.isContextConsumer)(r().createElement(s.Consumer,null))?s:w},[s,w]),p=(0,a.useContext)(u),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var f=h?n.store:p.store,g=(0,a.useMemo)(function(){return function(t){return e(t.dispatch,o)}(f)},[f]),b=(0,a.useMemo)(function(){if(!d)return q;var e=(0,F.K)(f,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,h,p]),E=b[0],v=b[1],y=(0,a.useMemo)(function(){return h?p:(0,R.A)({},p,{subscription:E})},[h,p,E]),N=(0,a.useReducer)(K,G,X),_=N[0][0],C=N[1];if(_&&_.error)throw _.error;var P=(0,a.useRef)(),S=(0,a.useRef)(c),x=(0,a.useRef)(),A=(0,a.useRef)(!1),T=m(function(){return x.current&&c===S.current?x.current:g(f.getState(),c)},[f,_,c]);B(W,[S,P,A,c,T,x,v]),B(V,[d,f,E,g,S,P,A,x,v,C],[f,E,g]);var O=(0,a.useMemo)(function(){return r().createElement(t,(0,R.A)({},T,{ref:l}))},[l,t,T]);return(0,a.useMemo)(function(){return d?r().createElement(u.Provider,{value:y},O):O},[u,O,y])}var f=c?r().memo(p):p;if(f.WrappedComponent=t,f.displayName=p.displayName=i,g){var b=r().forwardRef(function(e,t){return r().createElement(f,(0,R.A)({},e,{reactReduxForwardedRef:t}))});return b.displayName=i,b.WrappedComponent=t,L()(b,t)}return L()(f,t)}}var Z=n(9124),J=n(7684),Q=n(6778);const Y=[function(e){return"function"==typeof e?(0,Q.Qb)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,Q.o6)(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?(0,Q.o6)(function(t){return(0,J.A)(e,t)}):void 0}],ee=[function(e){return"function"==typeof e?(0,Q.Qb)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,Q.o6)(function(){return{}})}];function te(e,t,n){return(0,R.A)({},n,e,t)}const ne=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var a,r=n.pure,i=n.areMergedPropsEqual,s=!1;return function(t,n,o){var l=e(t,n,o);return s?r&&i(l,a)||(a=l):(s=!0,a=l),a}}}(e):void 0},function(e){return e?void 0:function(){return te}}];var ae=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function re(e,t,n,a){return function(r,i){return n(e(r,i),t(a,i),i)}}function ie(e,t,n,a,r){var i,s,o,l,c,u=r.areStatesEqual,m=r.areOwnPropsEqual,d=r.areStatePropsEqual,p=!1;return function(r,h){return p?function(r,p){var h,f,g=!m(p,s),b=!u(r,i);return i=r,s=p,g&&b?(o=e(i,s),t.dependsOnOwnProps&&(l=t(a,s)),c=n(o,l,s)):g?(e.dependsOnOwnProps&&(o=e(i,s)),t.dependsOnOwnProps&&(l=t(a,s)),c=n(o,l,s)):b?(h=e(i,s),f=!d(h,o),o=h,f&&(c=n(o,l,s)),c):c}(r,h):(o=e(i=r,s=h),l=t(a,s),c=n(o,l,s),p=!0,c)}}function se(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,r=t.initMergeProps,i=(0,I.A)(t,ae),s=n(e,i),o=a(e,i),l=r(e,i);return(i.pure?ie:re)(s,o,l,e,i)}var oe=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function le(e,t,n){for(var a=t.length-1;a>=0;a--){var r=t[a](e);if(r)return r}return function(t,a){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+a.wrappedComponentName+".")}}function ce(e,t){return e===t}function ue(e){var t=void 0===e?{}:e,n=t.connectHOC,a=void 0===n?z:n,r=t.mapStateToPropsFactories,i=void 0===r?ee:r,s=t.mapDispatchToPropsFactories,o=void 0===s?Y:s,l=t.mergePropsFactories,c=void 0===l?ne:l,u=t.selectorFactory,m=void 0===u?se:u;return function(e,t,n,r){void 0===r&&(r={});var s=r,l=s.pure,u=void 0===l||l,d=s.areStatesEqual,p=void 0===d?ce:d,h=s.areOwnPropsEqual,f=void 0===h?Z.A:h,g=s.areStatePropsEqual,b=void 0===g?Z.A:g,E=s.areMergedPropsEqual,v=void 0===E?Z.A:E,w=(0,I.A)(s,oe),y=le(e,i,"mapStateToProps"),N=le(t,o,"mapDispatchToProps"),_=le(n,c,"mergeProps");return a(m,(0,R.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:N,initMergeProps:_,pure:u,areStatesEqual:p,areOwnPropsEqual:f,areStatePropsEqual:b,areMergedPropsEqual:v},w))}}const me=ue();n(6338),n(3769),n(387);var de=n(2724);function pe(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}(0,n(8298).d)(de.r);var he=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),fe=()=>Math.random().toString(36).substring(7).split("").join("."),ge={INIT:`@@redux/INIT${fe()}`,REPLACE:`@@redux/REPLACE${fe()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${fe()}`};function be(e,t,n){if("function"!=typeof e)throw new Error(pe(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(pe(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(pe(1));return n(be)(e,t)}let a=e,r=t,i=new Map,s=i,o=0,l=!1;function c(){s===i&&(s=new Map,i.forEach((e,t)=>{s.set(t,e)}))}function u(){if(l)throw new Error(pe(3));return r}function m(e){if("function"!=typeof e)throw new Error(pe(4));if(l)throw new Error(pe(5));let t=!0;c();const n=o++;return s.set(n,e),function(){if(t){if(l)throw new Error(pe(6));t=!1,c(),s.delete(n),i=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(pe(7));if(void 0===e.type)throw new Error(pe(8));if("string"!=typeof e.type)throw new Error(pe(17));if(l)throw new Error(pe(9));try{l=!0,r=a(r,e)}finally{l=!1}return(i=s).forEach(e=>{e()}),e}return d({type:ge.INIT}),{dispatch:d,subscribe:m,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(pe(10));a=e,d({type:ge.REPLACE})},[he]:function(){const e=m;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(pe(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[he](){return this}}}}}function Ee(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var ve,we=({dispatch:e,getState:t})=>n=>a=>"function"==typeof a?a(e,t,ve):n(a);const{fetch:ye,Headers:Ne}=n.g,_e=e=>{if(e.status>=200&&e.status<300)return e;throw new Error(e.statusText)},Ce=e=>e.json(),Pe=e=>((e,t)=>{const n={credentials:"same-origin",headers:new Ne({Accept:"application/json","Content-Type":"application/json"}),method:e};return(a=ye(t,n),new Promise((e,t)=>{const n=setTimeout(()=>{t(new Error("Response timeout"))},15e3);a.then(t=>{clearTimeout(n),e(t)},e=>{clearTimeout(n),t(e)})})).then(_e).then(Ce);var a})("GET",e),{ADMIN_API:Se}=_.HE,xe=(e,t={})=>{let a=`${Se.PAGES}?translation_of=${e}&limit=20`;return t.fields?a+=`&fields=parent,${n.g.encodeURIComponent(t.fields.join(","))}`:a+="&fields=parent",t.onlyWithChildren&&(a+="&has_children=1"),t.offset&&(a+=`&offset=${t.offset}`),Pe(a)},Ae=(...e)=>e[0];function Te(e,t,n){return(...a)=>{const r={type:e,payload:(t||Ae)(...a)};return r.payload instanceof Error&&(r.error=!0),"function"==typeof n&&(r.meta=n(...a)),r}}const Oe=Te("GET_PAGE_SUCCESS",(e,t)=>({id:e,data:t})),ke=Te("GET_PAGE_FAILURE",(e,t)=>({id:e,error:t}));const Re=Te("GET_CHILDREN_START",e=>({id:e})),Ie=Te("GET_CHILDREN_SUCCESS",(e,t,n)=>({id:e,items:t,meta:n})),Me=Te("GET_CHILDREN_FAILURE",(e,t)=>({id:e,error:t}));function Le(e,t=0){return n=>(n(Re(e)),((e,t={})=>{let n=`${Se.PAGES}?child_of=${e}&for_explorer=1`;return t.fields?n+=`&fields=parent,${window.encodeURIComponent(t.fields.join(","))}`:n+="&fields=parent",t.onlyWithChildren&&(n+="&has_children=1"),t.offset&&(n+=`&offset=${t.offset}`),n+=Se.EXTRA_CHILDREN_PARAMETERS,Pe(n)})(e,{offset:t}).then(({items:a,meta:r})=>{const i=t+a.length;n(Ie(e,a,r)),i<r.total_count&&i<_.KV&&n(Le(e,i))},t=>{n(Me(e,t))}))}const De=Te("GET_TRANSLATIONS_START",e=>({id:e})),Fe=Te("GET_TRANSLATIONS_SUCCESS",(e,t)=>({id:e,items:t})),$e=Te("GET_TRANSLATIONS_FAILURE",(e,t)=>({id:e,error:t}));function Ue(e){return t=>(t(De(e)),(async(e,t)=>{const n=[];let a=100;for(;;){const r=await xe(e,{offset:n.length,...t});if(r.items.forEach(e=>n.push(e)),n.length>=r.meta.total_count||a--<=0)return n}})(e,{onlyWithChildren:!0}).then(n=>{t(Fe(e,n))},n=>{t($e(e,n))}))}const je=Te("OPEN_EXPLORER",e=>({id:e})),He=Te("CLOSE_EXPLORER"),Ge=Te("GOTO_PAGE",(e,t)=>({id:e,transition:t}));var qe=n(1688),Ke=n.n(qe);const Be=()=>r().createElement("span",null,r().createElement(u.A,{name:"spinner",className:"w-spinner"}),` ${(0,c.AP)("Loading…")}`);var We=n(5556),Ve=n.n(We),Xe=n(862),ze=n.n(Xe);const Ze="push",Je=({name:e,component:t,className:n,duration:a,children:i})=>r().createElement(ze(),{component:t,transitionEnterTimeout:a,transitionLeaveTimeout:a,transitionName:`w-transition-${e}`,className:n},i);Je.propTypes={name:Ve().oneOf([Ze,"pop"]).isRequired,component:Ve().string,className:Ve().string,duration:Ve().number,children:Ve().node},Je.defaultProps={component:"div",children:null,className:null,duration:210};const Qe=Je,Ye=(e,t,n,a,r)=>{n&&"#"===e&&(r.preventDefault(),r.stopPropagation()),t&&t(r),r.ctrlKey||r.shiftKey||r.metaKey||r.button&&0!==r.button||a&&!r.defaultPrevented&&(r.preventDefault(),a(e))},et=({className:e="",children:t,accessibleLabel:n,href:r="#",target:i,preventDefault:s=!0,onClick:o,navigate:l})=>{const c=a.Children.count(t)>0,u=n?a.createElement("span",{className:"w-sr-only"},n):null;return a.createElement("a",{className:e,onClick:Ye.bind(null,r,o,s,l),rel:"_blank"===i?"noreferrer":void 0,href:r,target:i},c?t:u)},{ADMIN_URLS:tt}=_.HE,nt=({locale:e,translations:t,gotoPage:n})=>{const a=wagtailConfig.LOCALES.filter(({code:n})=>n===e||t.get(n)).map(({code:e,display_name:t})=>r().createElement("option",{key:e,value:e},t));return r().createElement("div",{className:"c-page-explorer__header__select"},r().createElement("select",{value:e,onChange:e=>{e.preventDefault();const a=t.get(e.target.value);a&&n(a,0)},disabled:a.length<2},a))},at=({page:e,depth:t,onClick:n,gotoPage:a,navigate:i})=>{const s=0===t,o=0===e.id;return r().createElement("div",{className:"c-page-explorer__header"},r().createElement(et,{href:o?tt.PAGES:`${tt.PAGES}${e.id}/`,className:"c-page-explorer__header__title",onClick:n,navigate:i},r().createElement("div",{className:"c-page-explorer__header__title__inner"},r().createElement(u.A,{name:s?"home":"arrow-left",className:"icon--explorer-header"}),r().createElement("span",null,e.admin_display_title||(0,c.AP)("Pages")))),!o&&e.meta.locale&&e.translations&&e.translations.size>0&&r().createElement(nt,{locale:e.meta.locale,translations:e.translations,gotoPage:a}))},rt=({status:e})=>r().createElement("span",{className:"c-status"+(e.live?" c-status--live":"")},e.status);rt.propTypes={status:Ve().shape({live:Ve().bool.isRequired,status:Ve().string.isRequired}).isRequired};const it=rt,{ADMIN_URLS:st}=_.HE,ot=r().createElement(u.A,{name:"folder-inverse",className:"icon--menuitem"}),lt=({item:e,onClick:t,navigate:n})=>{const{id:a,admin_display_title:i,meta:s}=e,o=s.children.count>0,l=s.status.live&&!s.status.has_unpublished_changes,m=1===s.parent?.id&&s.locale&&(_.kf.get(s.locale)||s.locale);return r().createElement("div",{className:"c-page-explorer__item"},r().createElement(et,{href:`${st.PAGES}${a}/`,navigate:n,className:"c-page-explorer__item__link"},o?ot:null,r().createElement("h3",{className:"c-page-explorer__item__title"},i),(!l||m)&&r().createElement("span",{className:"c-page-explorer__meta"},m&&r().createElement("span",{className:"c-status"},m),!l&&r().createElement(it,{status:s.status}))),r().createElement(et,{href:`${st.PAGES}${a}/edit/`,className:"c-page-explorer__item__action c-page-explorer__item__action--small",navigate:n},r().createElement(u.A,{name:"edit",title:(0,c.AP)("Edit '%(title)s'").replace("%(title)s",i||""),className:"icon--item-action"})),o?r().createElement(et,{className:"c-page-explorer__item__action",onClick:t,href:`${st.PAGES}${a}/`,navigate:n},r().createElement(u.A,{name:"arrow-right",title:(0,c.AP)("View child pages of '%(title)s'").replace("%(title)s",i||""),className:"icon--item-action"})):null)},ct=({page:e})=>{const t=e.children.count;return r().createElement("a",{href:`${_.HE.ADMIN_URLS.PAGES}${e.id}/`,className:"c-page-explorer__see-more"},(0,c.AP)("See all"),r().createElement("span",null,` ${t} ${1===t?(0,c.AP)("Page").toLowerCase():(0,c.AP)("Pages").toLowerCase()}`),r().createElement(u.A,{name:"arrow-right"}))};class ut extends r().Component{constructor(e){super(e),this.state={transition:Ze},this.onItemClick=this.onItemClick.bind(this),this.onHeaderClick=this.onHeaderClick.bind(this)}componentWillReceiveProps(e){const{depth:t}=this.props,n=e.depth>t;this.setState({transition:n?Ze:"pop"})}onItemClick(e,t){const{gotoPage:n}=this.props;t.preventDefault(),t.stopPropagation(),n(e,1)}onHeaderClick(e){const{page:t,depth:n,gotoPage:a}=this.props,r=t.meta.parent?.id;n>0&&r&&(e.preventDefault(),e.stopPropagation(),a(r,-1))}renderChildren(){const{page:e,nodes:t}=this.props;let n;return n=e.isFetchingChildren||e.children.items?r().createElement("div",{key:"children"},e.children.items.map(e=>r().createElement(lt,{key:e,item:t[e],onClick:this.onItemClick.bind(null,e),navigate:this.props.navigate}))):r().createElement("div",{key:"empty",className:"c-page-explorer__placeholder"},(0,c.AP)("No results")),r().createElement("div",{className:"c-page-explorer__drawer"},n,e.isFetchingChildren||e.isFetchingTranslations?r().createElement("div",{key:"fetching",className:"c-page-explorer__placeholder"},r().createElement(Be,null)):null,e.isError?r().createElement("div",{key:"error",className:"c-page-explorer__placeholder"},(0,c.AP)("Server Error")):null)}render(){const{page:e,depth:t,gotoPage:n,onClose:a}=this.props,{transition:i}=this.state;return r().createElement(Ke(),{paused:!e||e.isFetchingChildren||e.isFetchingTranslations,focusTrapOptions:{onDeactivate:a,clickOutsideDeactivates:!1,allowOutsideClick:!0}},r().createElement("div",{role:"dialog","aria-label":(0,c.AP)("Page explorer")},r().createElement(Qe,{name:i,className:"c-page-explorer"},r().createElement("div",{key:t,className:"w-transition-group"},r().createElement(at,{depth:t,page:e,onClick:this.onHeaderClick,gotoPage:n,navigate:this.props.navigate}),this.renderChildren(),e.isError||e.children.items&&e.children.count>_.KV?r().createElement(ct,{page:e}):null))))}}const mt=ut,dt=me(e=>({depth:e.explorer.depth,currentPageId:e.explorer.currentPageId,nodes:e.nodes}),e=>({gotoPage:(t,n)=>e(function(e,t){return(n,a)=>{const{nodes:r}=a(),i=r[e];n(Ge(e,t)),!i||i.isFetchingChildren||i.children.count>0||n(Le(e)),i&&!i.isFetchingTranslations&&null==i.translations&&n(Ue(e))}}(t,n))}))(({isVisible:e,depth:t,currentPageId:n,nodes:a,gotoPage:i,onClose:s,navigate:o})=>e&&n?r().createElement(mt,{depth:t,page:a[n],nodes:a,gotoPage:i,onClose:s,navigate:o}):null),pt={depth:0,currentPageId:null},ht="OPEN_EXPLORER",ft="CLOSE_EXPLORER";function gt(e=pt,t){switch(t.type){case ht:return{depth:0,currentPageId:t.payload.id};case ft:return pt;case"GOTO_PAGE":return{depth:e.depth+t.payload.transition,currentPageId:t.payload.id};default:return e}}const bt={id:0,isFetchingChildren:!1,isFetchingTranslations:!1,isError:!1,children:{items:[],count:0},meta:{status:{status:"",live:!1,has_unpublished_changes:!0},parent:null,children:{}}},Et="GET_PAGE_SUCCESS",vt="GET_CHILDREN_START",wt="GET_CHILDREN_SUCCESS",yt="GET_TRANSLATIONS_START",Nt="GET_TRANSLATIONS_SUCCESS",_t="GET_PAGE_FAILURE",Ct="GET_CHILDREN_FAILURE",Pt="GET_TRANSLATIONS_FAILURE",St=(e=bt,t)=>{switch(t.type){case Et:return{...e,...t.payload.data,isError:!1};case vt:return{...e,isFetchingChildren:!0};case yt:return{...e,isFetchingTranslations:!0};case wt:return{...e,isFetchingChildren:!1,isError:!1,children:{items:e.children.items.slice().concat(t.payload.items.map(e=>e.id)),count:t.payload.meta.total_count}};case Nt:const n=new Map;return t.payload.items.forEach(e=>{n.set(e.meta.locale,e.id)}),{...e,isFetchingTranslations:!1,isError:!1,translations:n};case _t:case Ct:case Pt:return{...e,isFetchingChildren:!1,isFetchingTranslations:!0,isError:!0};default:return e}},xt={};function At(e=xt,t){switch(t.type){case ht:return{...e,[t.payload.id]:{...bt}};case Et:case vt:case yt:case _t:case Ct:case Pt:return{...e,[t.payload.id]:St(e[t.payload.id],t)};case wt:case Nt:const n={...e,[t.payload.id]:St(e[t.payload.id],t)};return t.payload.items.forEach(e=>{n[e.id]={...bt,...e}}),n;case ft:return xt;default:return e}}const Tt=()=>{const e=function(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const r=t[a];"function"==typeof e[r]&&(n[r]=e[r])}const a=Object.keys(n);let r;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:ge.INIT}))throw new Error(pe(12));if(void 0===n(void 0,{type:ge.PROBE_UNKNOWN_ACTION()}))throw new Error(pe(13))})}(n)}catch(e){r=e}return function(e={},t){if(r)throw r;let i=!1;const s={};for(let r=0;r<a.length;r++){const o=a[r],l=n[o],c=e[o],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(pe(14));s[o]=u,i=i||u!==c}return i=i||a.length!==Object.keys(e).length,i?s:e}}({explorer:gt,nodes:At});return t=e,n={},a=Ee(function(...e){return t=>(n,a)=>{const r=t(n,a);let i=()=>{throw new Error(pe(15))};const s={getState:r.getState,dispatch:(e,...t)=>i(e,...t)},o=e.map(e=>e(s));return i=Ee(...o)(r.dispatch),{...r,dispatch:i}}}(we),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e),be(t,n,a);var t,n,a},Ot=dt,kt=({path:e,slim:t,item:n,state:r,dispatch:i,navigate:s})=>{const o=r.navigationPath.startsWith(e),l=o||r.activePath.startsWith(e),c=e.split(".").length,d=e.split(".").length>2,[p,h]=a.useState(!1),g=a.useRef(null);g.current||(g.current=Tt());const b=()=>{setTimeout(()=>{h(!1),g.current&&g.current.dispatch(He())},m)};a.useEffect(()=>{var e;o?(h(!0),g.current&&g.current.dispatch((e=n.startPageId,(t,n)=>{const{nodes:a}=n(),r=a[e];t(je(e)),r||(t(Le(e)),1!==e&&t(Ue(e))),1!==e&&t(function(e){return t=>(e=>{const t=`${Se.PAGES}${e}/`;return Pe(t)})(e).then(n=>{t(Oe(e,n))},n=>{t(ke(e,n))})}(e))}))):!o&&p&&b()},[o]);const w="sidebar-menu-item sidebar-page-explorer-item"+(l?" sidebar-menu-item--active":"")+(o?" sidebar-sub-menu-item--open":"")+(d?" sidebar-menu-item--in-sub-menu":""),y="sidebar-sub-menu-trigger-icon"+(o?" sidebar-sub-menu-trigger-icon--open":"");return a.createElement("li",{className:w},a.createElement(f.Ay,{disabled:o||!t,content:n.label,placement:"right"},a.createElement("button",{onClick:()=>{i(o?{type:"set-navigation-path",path:""}:{type:"set-navigation-path",path:e})},className:"sidebar-menu-item__link","aria-haspopup":"dialog","aria-expanded":o?"true":"false",type:"button"},a.createElement(u.A,{name:"folder-open-inverse",className:"icon--menuitem"}),a.createElement("span",{className:"menuitem-label"},n.label),a.createElement(u.A,{className:y,name:"arrow-right"}))),a.createElement("div",null,a.createElement(E,{isVisible:p,isOpen:o,depth:c,widthPx:485},a.createElement(v,{isVisible:p,dispatch:i}),g.current&&a.createElement(k.A,{store:g.current},a.createElement(Ot,{isVisible:p,navigate:s,onClose:b})))))},Rt=({className:e,slim:t})=>{const n="group-hover:w-text-black w-transition-all w-duration-150";return r().createElement("svg",{style:{left:t?"-1.125rem":"-1.75rem"},className:`\n sidebar-wagtail-branding__icon\n !w-overflow-visible\n w-group\n w-text-surface-menus\n w-z-10\n w-absolute\n w-transition-all\n w-duration-150\n hover:w-scale-[0.85]\n hover:w-rotate-[5deg]\n ${e||""}\n ${t?"w-w-[58px] w-h-[57px] w-top-2 hover:w-translate-x-1 hover:-w-translate-y-1":"w-w-[120px] w-h-[200px] -w-top-1 hover:w-translate-x-2 hover:-w-translate-y-3"}\n `,width:"225",height:"274",viewBox:"0 0 225 274",enableBackground:"new 0 0 225 274",xmlSpace:"preserve","aria-hidden":"true"},r().createElement("g",null,r().createElement("path",{className:"wagtail-logo-face",fill:"#FFF",d:"M194.897 79.492c-8.392-12.793-22.602-21.27-38.773-21.27-5.322 0-10.496.915-15.32 2.62a30.755 30.755 0 0 1-4.039-15.3c0-17.078\n 13.325-30.792 29.918-30.792 4.274 0 8.046.776 11.565 2.328 1.746-2.566 3.491-5.64 5.236-9.476 7.108 4.095 19.786 14.99 21.26\n 33.397L190.72 61.88l4.177 17.612Z"}),r().createElement("path",{className:`w-hidden ${n}`,"data-part":"eye--closed",d:"M183.083 36.4189C181.131 37.0166 179.364 38.6306 178.317 40.5186C178.048 41.0035 177.464 41.2495 176.954 41.0359L173.968\n 39.7874C173.46 39.5751 173.217 38.9905 173.464 38.498C175.023 35.3889 177.903 32.5075 181.558 31.388C185.602 30.1494 190.075\n 31.2163 194.019 35.3681C194.398 35.7669 194.352 36.3991 193.936 36.7609L191.492 38.8897C191.073 39.2538 190.441 39.2043 190.053\n 38.8094C187.354 36.0624 184.921 35.8559 183.083 36.4189Z",fill:"currentColor"}),r().createElement("path",{className:n,"data-part":"eye--open",fill:"currentColor",d:"M185.54 42.697c3.332 0 6.034-2.781 6.034-6.211s-2.702-6.21-6.034-6.21c-3.333 0-6.034 2.78-6.034 6.21s2.701 6.21 6.034 6.21Z"}),r().createElement("path",{className:n,"data-part":"body",fill:"currentColor",d:"m21.867 193.558 92.839-164.565C122.124 11.853 138.827 0 158.135 0c9.302 0 18.102 2.588 25.393 7.504-1.76 3.882-3.52 6.987-5.28\n 9.575-3.52-1.553-7.291-2.33-11.565-2.33-16.594 0-29.919 13.716-29.919 30.794 0 5.646 1.496 10.83 4.04 15.3a45.95 45.95 0 0 1\n 15.319-2.62c25.896 0 46.764 21.736 46.764 48.131 0 1.104-.183 2.209-.394 3.475l-.109.665h.252c-.126.906-.315 1.811-.503\n 2.717-.189.906-.377 1.811-.503 2.717v.259c-17.487 91.789-126.812 89.821-143.747 89.031l.112-.386-1.743-30.679-6.872 12.197-27.513 7.208Z"}),r().createElement("path",{className:n,"data-part":"body-tail-connector",fill:"currentColor",d:"m49.277 186.425 8.718 18.407-1.743-30.679-6.975 12.272Z"}),r().createElement("path",{className:n,"data-part":"beak",fill:"currentColor",d:"m204.648 41.144-11.817 18.114h31.93l-20.113-18.114Z"}),r().createElement("path",{"data-part":"feather-accent",fill:"#FFF",d:"m99.304 170.528-2.012 1.552s66.877-11.127 77.437-67.797l-10.56 3.623s-2.765 43.99-64.865 62.622Z"})),r().createElement("path",{className:n,"data-part":"tail",fill:"currentColor",d:"M56.252 174.153.456 273.202l41.847-14.025 15.692-54.345-1.743-30.679Z"}))},It=({homeUrl:e,slim:t,currentPath:n,navigate:r})=>{const i=a.useMemo(()=>document.querySelector("[data-wagtail-sidebar-branding-logo]"),[]);if(i&&""!==i.innerHTML)return a.createElement("a",{className:"sidebar-custom-branding",href:e,"aria-label":(0,c.AP)("Dashboard"),"aria-current":n===e?"page":void 0,dangerouslySetInnerHTML:{__html:i?i.innerHTML:""}});const s=a.useRef(0),o=a.useRef("r"),l=a.useRef(0),[u,m]=a.useState(!1),d="sidebar-wagtail-branding w-transition-all w-duration-150"+(u?" sidebar-wagtail-branding--wagging":"");return a.createElement("a",{className:d,href:e,"aria-label":(0,c.AP)("Dashboard"),"aria-current":n===e?"page":void 0,onClick:t=>{t.ctrlKey||t.shiftKey||t.metaKey||t.button&&0!==t.button||(t.preventDefault(),r(e))},onMouseMove:e=>{const t=e.pageX,n=t>s.current?"r":"l";t!==s.current&&n!==o.current&&(l.current+=1),l.current>8&&m(!0),s.current=t,o.current=n},onMouseLeave:()=>{m(!1),l.current=0}},a.createElement("div",{className:"sidebar-wagtail-branding__icon-wrapper w-transition-all w-duration-150"},a.createElement(Rt,{slim:t})))};var Mt;n(6411),n(9610),n(1245),function(e){e.CLICK="click",e.FOCUS="focus"}(Mt||(Mt={})),N.Controller;const Lt=({slim:e,expandingOrCollapsing:t,onSearchClick:n,searchUrl:r,navigate:i})=>{const s=!e||t,o=a.useRef(null);return a.createElement("form",{role:"search",className:"w-h-[42px] w-relative w-box-border w-flex w-items-center w-justify-start w-flex-row w-flex-shrink-0",action:r,"aria-keyshortcuts":"/",method:"get",onSubmit:e=>{if(e.target instanceof HTMLFormElement)if(e.preventDefault(),s){const t=e.target.querySelector('input[name="q"]');i(r+"?q="+encodeURIComponent(t.value))}else i(r)},"data-controller":"w-kbd","data-w-kbd-action-value":e?Mt.CLICK:Mt.FOCUS},a.createElement("div",{className:"w-flex w-flex-row w-items-center w-h-full"},a.createElement(f.Ay,{disabled:s||!e,content:(0,c.AP)("Search"),placement:"right"},a.createElement("button",{className:`\n ${e?"w-pr-[18px]":"w-pr-0"}\n w-w-full\n w-pl-[23px]\n w-h-[35px]\n w-bg-transparent\n w-outline-offset-inside\n w-border-0\n w-rounded-none\n w-text-text-label-menus-default\n w-z-10\n hover:w-text-text-label-menus-active\n focus:w-text-text-label-menus-active\n hover:w-bg-transparent`,type:"submit","aria-label":(0,c.AP)("Search"),"data-w-kbd-target":e?"element":void 0,onClick:t=>{e&&(t.preventDefault(),n(),setTimeout(()=>{o.current&&o.current.focus()},m))}},a.createElement(u.A,{className:"icon--menuitem",name:"search"}))),a.createElement("label",{className:"w-sr-only",htmlFor:"menu-search-q"},(0,c.AP)("Search")),a.createElement("input",{className:`\n ${e||!s?"w-hidden":""}\n !w-pl-[55px]\n !w-py-[13px]\n !w-subpixel-antialiased\n !w-absolute\n !w-left-0\n !w-font-normal\n !w-top-0\n !w-text-14\n !w-bg-transparent\n !w-border-0\n !w-rounded-none\n !w-text-text-label-menus-default\n !w-outline-offset-inside\n !w-leading-none\n placeholder:!w-text-text-label-menus-default`,type:"text",id:"menu-search-q",name:"q",placeholder:(0,c.AP)("Search"),ref:o,"data-w-kbd-target":e?void 0:"element"})))};window.telepath.register("wagtail.sidebar.ActionMenuItem",class{name;label;action;attrs;iconName;classNames;method;constructor({name:e,label:t,action:n,attrs:a={},icon_name:r=null,classname:i,method:s="POST"}){this.name=e,this.label=t,this.action=n,this.attrs=a,this.iconName=r,this.classNames=i,this.method=s}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(O,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.LinkMenuItem",b),window.telepath.register("wagtail.sidebar.SubMenuItem",y),window.telepath.register("wagtail.sidebar.PageExplorerMenuItem",class extends b{startPageId;constructor({name:e,label:t,url:n,attrs:a={},icon_name:r=null,classname:i},s){super({name:e,label:t,url:n,attrs:a,icon_name:r,classname:i}),this.startPageId=s}render({path:e,slim:t,state:n,dispatch:r,navigate:i}){return a.createElement(kt,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.WagtailBrandingModule",class{homeUrl;constructor(e){this.homeUrl=e}render({slim:e,key:t,navigate:n,currentPath:r}){return a.createElement(It,{key:t,homeUrl:this.homeUrl,slim:e,navigate:n,currentPath:r})}}),window.telepath.register("wagtail.sidebar.SearchModule",class{searchUrl;constructor(e){this.searchUrl=e}render({slim:e,key:t,expandingOrCollapsing:n,onSearchClick:r,navigate:i}){return a.createElement(Lt,{searchUrl:this.searchUrl,slim:e,key:t,expandingOrCollapsing:n,onSearchClick:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.MainMenuModule",class{menuItems;accountMenuItems;user;constructor(e,t,n){this.menuItems=e,this.accountMenuItems=t,this.user=n}render({slim:e,expandingOrCollapsing:t,onHideMobile:n,key:r,currentPath:i,navigate:s}){return a.createElement(T,{menuItems:this.menuItems,accountMenuItems:this.accountMenuItems,user:this.user,slim:e,expandingOrCollapsing:t,onHideMobile:n,key:r,currentPath:i,navigate:s})}}),document.addEventListener("DOMContentLoaded",()=>{!function(){const e={sameSite:"lax"},t=document.getElementById("wagtail-sidebar"),n=document.getElementById("wagtail-sidebar-props"),r=e=>(window.location.href=e,new Promise(p.l));if(t&&n?.textContent){const i=window.telepath.unpack(JSON.parse(n.textContent)),o=l.get(h),c=!(void 0===o||"0"===o),u=t=>{t?(document.body.classList.add("sidebar-collapsed"),l.set(h,1,e)):(document.body.classList.remove("sidebar-collapsed"),l.set(h,0,e))};s().render(a.createElement(d,{modules:i.modules,collapsedOnLoad:c,currentPath:window.location.pathname,navigate:r,onExpandCollapse:u}),t,()=>{document.querySelector("[data-wagtail-sidebar]")?.classList.remove("sidebar-loading")})}}()})},3769:(e,t,n)=>{n(2427),n(1458)}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,a),i.exports}a.m=t,e=[],a.O=(t,n,r,i)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,r,i]=e[u],o=!0,l=0;l<n.length;l++)(!1&i||s>=i)&&Object.keys(a.O).every(e=>a.O[e](n[l]))?n.splice(l--,1):(o=!1,i<s&&(s=i));if(o){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,r,i]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=61,(()=>{var e={61:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,i,[s,o,l]=n,c=0;if(s.some(t=>0!==e[t])){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(l)var u=l(a)}for(t&&t(n);c<s.length;c++)i=s[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(u)},n=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=a.O(void 0,[321],()=>a(251));r=a.O(r)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t={2294:(e,t,i)=>{var n=i(6931),s=i.n(n),l=i(2427),a=i.n(l),o=i(4327),r=i(1238),c=i(1002);class d{constructor(e,t,i,n,l,d){this.blockDef=e,this.type=e.name;const h=$(`\n <div class="w-field__wrapper" data-field-wrapper>\n <div class="${(0,o.Z)(this.blockDef.meta.classname)}" data-field>\n <div class="w-field__errors" id="${i}-errors" data-field-errors>\n <svg class="icon icon-warning w-field__errors-icon" aria-hidden="true" hidden><use href="#icon-warning"></use></svg>\n </div>\n <div class="w-field__help" id="${i}-helptext" data-field-help></div>\n <div class="w-field__input" data-field-input>\n <div data-streamfield-widget></div>\n </div>\n </div>\n </div>\n `);$(t).replaceWith(h);const u=h.find("[data-streamfield-widget]").get(0);this.element=h[0],this.field=this.element.querySelector("[data-field]"),this.parentCapabilities=d||new Map,this.prefix=i;const p={attributes:this.getAttributes()};try{this.widget=this.blockDef.widget.render(u,i,i,n,this.parentCapabilities,p)}catch(e){return console.error(e),void this.setError({messages:["This widget failed to render, please check the console for details."]})}if(this.idForLabel=this.widget.idForLabel,this.blockDef.meta.helpText){const e=document.createElement("p");e.classList.add("help"),e.innerHTML=this.blockDef.meta.helpText,this.field.querySelector("[data-field-help]").appendChild(e)}if(window.comments&&this.blockDef.meta.showAddCommentButton){const t=document.createElement("button");t.type="button",t.setAttribute("aria-label",e.meta.strings.ADD_COMMENT),t.setAttribute("data-comment-add",""),t.classList.add("w-field__comment-button","w-field__comment-button--add"),s().render(a().createElement(a().Fragment,null,a().createElement(r.A,{name:"comment-add"}),a().createElement(r.A,{name:"comment-add-reversed"})),t),this.field.classList.add("w-field--commentable"),this.field.querySelector("[data-field-input]").appendChild(t),window.comments.initAddCommentButton(t)}l&&this.setError(l),(0,c.$)(this.field,this.blockDef.meta.attrs||{})}setCapabilityOptions(e,t){Object.assign(this.parentCapabilities.get(e),t),this.widget&&this.widget.setCapabilityOptions&&this.widget.setCapabilityOptions(e,t)}setState(e){this.widget&&this.widget.setState(e)}setError(e){const t=this.field.querySelector("[data-field-errors]");if(t.querySelectorAll(".error-message").forEach(e=>e.remove()),this.widget?.setInvalid?.(!!e),e){this.field.classList.add("w-field--error"),t.querySelector(".icon").removeAttribute("hidden");const i=document.createElement("p");i.classList.add("error-message");const n=document.createTextNode(e.messages.join(" "));i.appendChild(n),t.appendChild(i)}else this.field.classList.remove("w-field--error"),t.querySelector(".icon").setAttribute("hidden","true")}getAttributes(){const e=this.prefix,t={};return this.blockDef.meta.helpText&&(t["aria-describedby"]=`${e}-helptext`),this.blockDef.meta.required&&(t.required=""),this.blockDef.meta.maxLength&&(t.maxLength=this.blockDef.meta.maxLength),t}getState(){return this.widget.getState()}getValue(){return this.widget.getValue()}getTextLabel(e){return this.widget.getTextLabel?this.widget.getTextLabel(e):null}focus(e){this.widget&&this.widget.focus(e)}}class h{constructor(e,t,i){this.name=e,this.widget=t,this.meta=i}render(e,t,i,n,s){return new d(this,e,t,i,n,s)}}class u{constructor(e,t){this.blockDef=e;const i=document.createElement("div");this.blockDef.meta.html?i.innerHTML=this.blockDef.meta.html:i.innerHTML=(0,o.Z)(this.blockDef.meta.text),t.replaceWith(i),(0,c.$)(i,this.blockDef.meta.attrs||{})}setState(e){}setError(e){}getState(){return null}getValue(){return null}focus(){}}class p{constructor(e,t){this.name=e,this.meta=t}render(e){return new u(this,e)}}var m=i(4188),b=i(4545),f=i(2833);class g{constructor(e){this.props=e}render(){const e=document.createElement("template"),{panelId:t,headingId:i,contentId:n,blockDef:s,blockTypeIcon:l,blockTypeLabel:a,collapsed:o}=this.props;return e.innerHTML=`\n <section class="w-panel w-panel--nested${o?" collapsed":""}" id="${t}" aria-labelledby="${i}" data-panel>\n <div class="w-panel__header">\n <a class="w-panel__anchor w-panel__anchor--prefix" href="#${t}" aria-labelledby="${i}" data-panel-anchor>\n <svg class="icon icon-link w-panel__icon" aria-hidden="true">\n <use href="#icon-link"></use>\n </svg>\n </a>\n <button class="w-panel__toggle" type="button" aria-label="${(0,f.AP)("Toggle section")}" aria-describedby="${i}" data-panel-toggle aria-controls="${n}" aria-expanded="true">\n <svg class="icon icon-${l} w-panel__icon" aria-hidden="true">\n <use href="#icon-${l}"></use>\n </svg>\n </button>\n <h2 class="w-panel__heading w-panel__heading--label" aria-level="3" id="${i}" data-panel-heading>\n <span class="c-sf-block__type">${a}</span>\n ${s?.meta.required?'<span class="w-required-mark" data-panel-required>*</span>':""}\n <span data-panel-heading-text class="c-sf-block__title"></span>\n </h2>\n <a class="w-panel__anchor w-panel__anchor--suffix" href="#${t}" aria-labelledby="${i}">\n <svg class="icon icon-link w-panel__icon" aria-hidden="true">\n <use href="#icon-link"></use>\n </svg>\n </a>\n <div class="w-panel__divider"></div>\n <div class="w-panel__controls" data-panel-controls></div>\n </div>\n <div id="${n}" class="w-panel__content">\n ${s?"<div data-streamfield-block></div>":""}\n </div>\n </section>\n `,e.content.firstElementChild}}const k=(e,t=!("true"===e.getAttribute("aria-expanded")))=>{const i=document.querySelector(`#${e.getAttribute("aria-controls")}`);i&&(e.setAttribute("aria-expanded",`${t}`),t?i.removeAttribute("hidden"):"onbeforematch"in document.body?i.setAttribute("hidden","until-found"):i.setAttribute("hidden",""),e.dispatchEvent(new CustomEvent("commentAnchorVisibilityChange",{bubbles:!0})),e.dispatchEvent(new CustomEvent("wagtail:panel-toggle",{bubbles:!0,cancelable:!1,detail:{expanded:t}})))};function v(e){const t=e.closest("[data-panel]"),i=document.querySelector(`#${e.getAttribute("aria-controls")}`);if(!i||!t||t.collapsibleInitialised)return;t.collapsibleInitialised=!0;const n=k.bind(null,e),s=t.classList.contains("collapsed"),l=i.querySelector('[aria-invalid="true"], .error, .w-field--error'),a=s&&!l;a&&n(!1),e.addEventListener("click",n.bind(null,void 0));const o=t.querySelector("[data-panel-heading]");o&&o.addEventListener("click",n.bind(null,void 0)),i.addEventListener("beforematch",n.bind(null,!0)),e.dispatchEvent(new CustomEvent("wagtail:panel-init",{bubbles:!0,cancelable:!1,detail:{expanded:!a}}))}class w{constructor(e,t,i,n,s){const l=n||{};this.blockDef=e,this.type=e.name,this.childBlocks={};let a="";if(this.blockDef.collapsible&&(a=new g({panelId:i+"-section",headingId:i+"-heading",contentId:i+"-content",blockTypeIcon:(0,o.Z)(e.meta.icon),blockTypeLabel:(0,o.Z)(e.meta.label),collapsed:e.meta.collapsed}).render().outerHTML),e.meta.formTemplate){const n=e.meta.formTemplate.replace(/__PREFIX__/g,i);let o;a?(o=$(a),$(t).replaceWith(o),o=this.#e(o,i),o.append(n)):(o=$(n),$(t).replaceWith(o));const r=s?.blockErrors||{};this.blockDef.childBlockDefs.forEach(e=>{const t=o.find('[data-structblock-child="'+e.name+'"]').get(0),n=e.render(t,i+"-"+e.name,l[e.name],r[e.name]);this.childBlocks[e.name]=n}),this.container=o}else{let e=$(`\n <div class="${(0,o.Z)(this.blockDef.meta.classname||"")}">\n </div>\n `);e.append(a),$(t).replaceWith(e),this.blockDef.collapsible&&(e=this.#e(e,i)),this.blockDef.meta.helpText&&e.append(`\n <div class="c-sf-help">\n <div class="help">\n ${this.blockDef.meta.helpText}\n </div>\n </div>\n `),this.blockDef.childBlockDefs.forEach(t=>{let n="";t instanceof this.blockDef.constructor||(n=`<label class="w-field__label">${(0,o.Z)(t.meta.label)}${t.meta.required?'<span class="w-required-mark">*</span>':""}</label>`);const a=$(`\n <div data-contentpath="${t.name}">\n ${n}\n <div data-streamfield-block></div>\n </div>\n `);e.append(a);const r=a.find("[data-streamfield-block]").get(0),c=a.find("label").get(0),d=s?.blockErrors||{},h=t.render(r,i+"-"+t.name,l[t.name],d[t.name],new Map);this.childBlocks[t.name]=h,h.idForLabel&&c.setAttribute("for",h.idForLabel)}),this.container=e}this.blockDef.collapsible&&this.setTextLabel(),(0,c.$)(this.container[0],this.blockDef.meta.attrs||{})}#e(e,t){const i=e.find("[data-panel-toggle]")[0],n=e.find("[data-panel-heading-text]")[0];return v(i),this.setTextLabel=()=>{const e=this.getTextLabel({maxLength:50});n.textContent=e||""},i.addEventListener("wagtail:panel-toggle",this.setTextLabel),e.find(`#${t}-content`)}setState(e){for(const t in e)this.childBlocks[t].setState(e[t])}setError(e){if(!e)return;const t=this.container[0];if((0,b.$)(t),e.messages&&(0,b.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)(0,m.$)(e.blockErrors,t)&&this.childBlocks[t].setError(e.blockErrors[t])}getState(){const e={};for(const t in this.childBlocks)e[t]=this.childBlocks[t].getState();return e}getDuplicatedState(){const e={};for(const t in this.childBlocks){const i=this.childBlocks[t];e[t]=void 0===i.getDuplicatedState?i.getState():i.getDuplicatedState()}return e}getValue(){const e={};for(const t in this.childBlocks)e[t]=this.childBlocks[t].getValue();return e}getTextLabel(e){if("string"==typeof this.blockDef.meta.labelFormat)return this.blockDef.meta.labelFormat.replace(/\{(\w+)\}/g,(t,i)=>{const n=this.childBlocks[i];return n&&n.getTextLabel?n.getTextLabel(e):""});for(const t of this.blockDef.childBlockDefs){const i=this.childBlocks[t.name];if(i.getTextLabel){const t=i.getTextLabel(e);if(t)return t}}return null}focus(e){if(this.blockDef.childBlockDefs.length){const t=this.blockDef.childBlockDefs[0].name;this.childBlocks[t].focus(e)}}}class D{constructor(e,t,i){this.name=e,this.childBlockDefs=t,this.meta=i,this.collapsible=!0}render(e,t,i,n){return new w(this,e,t,i,n)}}const x={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let y;const C=new Uint8Array(16),E=[];for(let e=0;e<256;++e)E.push((e+256).toString(16).slice(1));const B=function(e,t,i){if(x.randomUUID&&!t&&!e)return x.randomUUID();const n=(e=e||{}).random??e.rng?.()??function(){if(!y){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");y=crypto.getRandomValues.bind(crypto)}return y(C)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((i=i||0)<0||i+16>t.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[i+e]=n[e];return t}return function(e,t=0){return(E[e[t+0]]+E[e[t+1]]+E[e[t+2]]+E[e[t+3]]+"-"+E[e[t+4]]+E[e[t+5]]+"-"+E[e[t+6]]+E[e[t+7]]+"-"+E[e[t+8]]+E[e[t+9]]+"-"+E[e[t+10]]+E[e[t+11]]+E[e[t+12]]+E[e[t+13]]+E[e[t+14]]+E[e[t+15]]).toLowerCase()}(n)};var _=i(246),S=i(9675);class I{constructor(e){this.sequenceChild=e}render(e){const t=this.sequenceChild.strings[this.labelIdentifier]||this.labelIdentifier;this.dom=$(`\n <button type="button" class="button button--icon text-replace white" data-streamfield-action="${this.labelIdentifier}" title="${(0,o.Z)(t)}">\n <svg class="icon icon-${(0,o.Z)(this.icon)}" aria-hidden="true">\n <use href="#icon-${(0,o.Z)(this.icon)}"></use>\n </svg>\n </button>\n `),this.dom.on("click",()=>(this.onClick&&this.onClick(),!1)),$(e).append(this.dom),this.enableEvent&&this.sequenceChild.addEventListener(this.enableEvent,()=>{this.enable()}),this.disableEvent&&this.sequenceChild.addEventListener(this.disableEvent,()=>{this.disable()}),this.initiallyDisabled&&this.disable()}enable(){this.dom.removeAttr("disabled")}disable(){this.dom.attr("disabled","true")}}class q extends I{enableEvent="enableMoveUp";disableEvent="disableMoveUp";initiallyDisabled=!0;icon="arrow-up";labelIdentifier="MOVE_UP";onClick(){this.sequenceChild.moveUp()}}class L extends I{enableEvent="enableMoveDown";disableEvent="disableMoveDown";initiallyDisabled=!0;icon="arrow-down";labelIdentifier="MOVE_DOWN";onClick(){this.sequenceChild.moveDown()}}class T extends I{enableEvent="enableDrag";disableEvent="disableDrag";initiallyDisabled=!1;icon="grip";labelIdentifier="DRAG"}class A extends I{enableEvent="enableDuplication";disableEvent="disableDuplication";icon="copy";labelIdentifier="DUPLICATE";onClick(){this.sequenceChild.duplicate({animate:!0})}}class M extends I{icon="bin";labelIdentifier="DELETE";onClick(){this.sequenceChild.delete({animate:!0})}}class U extends EventTarget{constructor(e,t,i,n,s,l,a,r){super(),this.blockDef=e,this.type=e.name,this.prefix=i,this.index=n,this.id=s,this.sequence=a;const c=r&&r.animate,d=r&&r.focus,h=r&&r.collapsed;this.strings=r&&r.strings||{};const u=`block-${s}-section`,p=`block-${s}-heading`,m=`block-${s}-content`,b=(0,o.Z)(this.blockDef.meta.icon),f=(0,o.Z)(this.blockDef.meta.label),k=new g({panelId:u,headingId:p,contentId:m,blockDef:e,blockTypeIcon:b,blockTypeLabel:f}).render(),w=$(`\n <div data-streamfield-child ${this.id?`data-contentpath="${(0,o.Z)(this.id)}"`:"data-contentpath-disabled"}>\n <input type="hidden" name="${this.prefix}-deleted" value="">\n <input type="hidden" name="${this.prefix}-order" value="${n}">\n <input type="hidden" name="${this.prefix}-type" value="${(0,o.Z)(this.type||"")}">\n <input type="hidden" name="${this.prefix}-id" value="${(0,o.Z)(this.id||"")}">\n ${k.outerHTML}\n </div>\n `);$(t).replaceWith(w),this.element=w.get(0);const x=w.find("[data-streamfield-block]").get(0);this.actionsContainerElement=w.find("[data-panel-controls]").get(0),this.titleElement=w.find("[data-panel-heading-text]"),this.toggleElement=this.element.querySelector("[data-panel-toggle]"),this.deletedInput=w.find(`input[name="${this.prefix}-deleted"]`),this.indexInput=w.find(`input[name="${this.prefix}-order"]`),this.addActionButton(new q(this)),this.addActionButton(new L(this)),this.addActionButton(new T(this)),this.addActionButton(new A(this)),this.addActionButton(new M(this));const y=new Map;y.set("duplicate",{enabled:!0,fn:this.duplicate}),y.set("split",{enabled:!0,fn:this.split.bind(this)}),y.set("addSibling",{enabled:!0,fn:this.addSibling.bind(this),blockGroups:this.sequence.getBlockGroups(),getBlockCount:this.sequence.getBlockCount.bind(this.sequence),getBlockMax:this.sequence.getBlockMax.bind(this.sequence)}),this.blockDef instanceof D&&(this.blockDef.collapsible=!1),this.block=this.blockDef.render(x,this.prefix+"-value",l,void 0,y),v(this.element.querySelector("[data-panel-toggle]")),h&&this.collapse(),this.toggleElement.addEventListener("wagtail:panel-toggle",()=>{const e=this.getTextLabel({maxLength:70});this.titleElement.text(e||"")});const C=this.getTextLabel({maxLength:70});this.titleElement.text(C||""),c?(w.hide(),setTimeout(()=>{w.slideDown(),d&&this.block.focus({soft:!0})},10)):d&&this.block.focus({soft:!0})}addActionButton(e){e.render(this.actionsContainerElement)}addSibling(e){this.sequence._onRequestInsert(this.index+1,e)}moveUp(){this.sequence.moveBlockUp(this.index)}moveDown(){this.sequence.moveBlockDown(this.index)}duplicate(e){this.sequence.duplicateBlock(this.index,e)}delete(e){this.sequence.deleteBlock(this.index,e)}markDeleted({animate:e=!1}){this.deletedInput.val("1"),e?$(this.element).slideUp().dequeue().fadeOut().attr("aria-hidden","true"):$(this.element).hide().attr("aria-hidden","true");const t=this.getContentPath();t&&window.comments.commentApp&&window.comments.commentApp.invalidateContentPath(t)}getContentPath(){return window.comments?.getContentPath(this.element)}enableDuplication(){this.dispatchEvent(new Event("enableDuplication")),this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("duplicate",{enabled:!0})}disableDuplication(){this.dispatchEvent(new Event("disableDuplication")),this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("duplicate",{enabled:!1})}enableSplit(){this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("split",{enabled:!0})}disableSplit(){this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("split",{enabled:!1})}enableMoveUp(){this.dispatchEvent(new Event("enableMoveUp"))}disableMoveUp(){this.dispatchEvent(new Event("disableMoveUp"))}enableMoveDown(){this.dispatchEvent(new Event("enableMoveDown"))}disableMoveDown(){this.dispatchEvent(new Event("disableMoveDown"))}setIndex(e){this.index=e,this.indexInput.val(e)}setError(e){this.block.setError(e),e&&k(this.toggleElement,!0)}focus(e){this.block.focus(e)}getTextLabel(e){return this.block.getTextLabel?this.block.getTextLabel(e):null}collapse(){k(this.toggleElement,!1)}getDuplicatedState(){return{id:B(),value:void 0===this.block.getDuplicatedState?this.block.getState():this.block.getDuplicatedState()}}}class O{constructor(e,t){this.index=t&&t.index,this.onRequestInsert=t&&t.onRequestInsert}setIndex(e){this.index=e}delete({animate:e=!1}){e?$(this.element).slideUp().attr("aria-hidden","true"):$(this.element).hide().attr("aria-hidden","true")}}class P{_createChild(e,t,i,n,s,l,a,o){throw new Error("not implemented")}_createInsertionControl(e,t){throw new Error("not implemented")}_getChildDataForInsertion(e){throw new Error("not implemented")}getBlockGroups(){throw new Error("not implemented")}clear(){this.countInput.val(0),this.sequenceContainer.empty(),this.children=[],this.blockCounter=0;const e=document.createElement("div");this.sequenceContainer.append(e),this.inserters=[this._createInsertionControl(e,{index:0,onRequestInsert:(e,t)=>{this._onRequestInsert(e,t)},strings:this.blockDef.meta.strings})],this.blockCountChanged()}_onRequestInsert(e,t){const[i,n,s]=this._getChildDataForInsertion(t);this._insert(i,n,s||null,e,{animate:!0,focus:!0})}blockCountChanged(){}_insert(e,t,i,n,s){const l=this.prefix+"-"+this.blockCounter,a=s&&s.animate,o=s&&s.focus,r=s&&s.collapsed;this.blockCounter+=1;const c=this.inserters[n].element,d=document.createElement("div"),h=document.createElement("div");$(d).insertAfter(c),$(h).insertAfter(d),(0,S.y)(n,this.children.length).forEach(e=>{this.children[e].setIndex(e+1)}),(0,S.y)(n+1,this.inserters.length).forEach(e=>{this.inserters[e].setIndex(e+1)});const u=this._createChild(e,d,l,n,i,t,this,{animate:a,focus:o,collapsed:r,strings:this.blockDef.meta.strings});this.children.splice(n,0,u);const p=this._createInsertionControl(h,{index:n+1,onRequestInsert:(e,t)=>{this._onRequestInsert(e,t)},strings:this.blockDef.meta.strings,animate:a});this.inserters.splice(n+1,0,p),this.countInput.val(this.blockCounter);const m=0===n,b=n===this.children.length-1;return m||(u.enableMoveUp(),b&&this.children[n-1].enableMoveDown()),b||(u.enableMoveDown(),m&&this.children[n+1].enableMoveUp()),this.blockCountChanged(),u}deleteBlock(e,t){const i=t&&t.animate;this.children[e].markDeleted({animate:i}),this.inserters[e].delete({animate:i}),this.children.splice(e,1),this.inserters.splice(e,1),(0,S.y)(e,this.children.length).forEach(e=>{this.children[e].setIndex(e)}),(0,S.y)(e,this.inserters.length).forEach(e=>{this.inserters[e].setIndex(e)}),0===e&&this.children.length>0&&this.children[0].disableMoveUp(),e===this.children.length&&this.children.length>0&&this.children[this.children.length-1].disableMoveDown(),this.blockCountChanged()}initDragNDrop(){this.sortable=_.Ay.create(this.sequenceContainer.get(0),{handle:'[data-streamfield-action="DRAG"]',animation:200,draggable:"[data-streamfield-child]",onEnd:e=>{const{oldDraggableIndex:t,newDraggableIndex:i}=e;t!==i&&this.moveBlock(t,i)},setData:e=>{e.setData("application/vnd.wagtail.type","sf-block")}})}moveBlock(e,t){if(e===t)return;const i=this.inserters[e],n=this.children[e];t>e?$(i.element).insertAfter(this.children[t].element):$(i.element).insertBefore(this.inserters[t].element),$(n.element).insertAfter(i.element),this.inserters.splice(e,1),this.inserters.splice(t,0,i),this.children.splice(e,1),this.children.splice(t,0,n),t>e?(0,S.y)(e,t+1).forEach(e=>{this.inserters[e].setIndex(e),this.children[e].setIndex(e)}):(0,S.y)(t,e+1).forEach(e=>{this.inserters[e].setIndex(e),this.children[e].setIndex(e)});const s=this.children.length-1;0===e&&(n.enableMoveUp(),this.children[0].disableMoveUp()),e===s&&(n.enableMoveDown(),this.children[s].disableMoveDown()),0===t&&(n.disableMoveUp(),this.children[1].enableMoveUp()),t===s&&(n.disableMoveDown(),this.children[s-1].enableMoveDown())}moveBlockUp(e){this.moveBlock(e,e-1)}moveBlockDown(e){this.moveBlock(e,e+1)}setState(e){this.clear(),e.forEach((e,t)=>{this.insert(e,t)})}getState(){return this.children.map(e=>e.getState())}getDuplicatedState(){return this.children.map(e=>e.getDuplicatedState())}getValue(){return this.children.map(e=>e.getValue())}getTextLabel(e){const t=e&&e.maxLength;let i="";for(const e of this.children){const n=e.getTextLabel({maxLength:t});if(n)if(i){const e=i+", "+n;if(t&&e.length>t-1)return i.endsWith("…")||(i+="…"),i;i=e}else i=n}return i}focus(e){this.children.length&&this.children[0].focus(e)}}class R extends U{getState(){return{id:this.id||null,value:this.block.getState()}}getValue(){return this.block.getValue()}setState({value:e,id:t}){this.block.setState(e),this.id=void 0===t?null:t}setValue(e){this.block.setState(e)}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class F extends O{constructor(e,t){super(e,t),this.onRequestInsert=t&&t.onRequestInsert;const i=t&&t.animate,n=(0,o.Z)(t.strings.ADD),s=$(`\n <button type="button" title="${n}" data-streamfield-list-add class="c-sf-add-button">\n <svg class="icon icon-plus" aria-hidden="true"><use href="#icon-plus"></use></svg>\n </button>\n `);$(e).replaceWith(s),this.element=s.get(0),s.click(()=>{this.onRequestInsert&&this.onRequestInsert(this.index)}),i&&s.hide().slideDown()}enable(){$(this.element).removeAttr("disabled")}disable(){$(this.element).attr("disabled","true")}}class V extends P{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const l=$(`\n <div class="${(0,o.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,o.Z)(i)}-count" data-streamfield-list-count value="0">\n\n <div data-streamfield-list-container></div>\n </div>\n `);$(t).replaceWith(l),this.blockDef.meta.helpText&&$(`\n <div class="c-sf-help">\n <div class="help">\n ${this.blockDef.meta.helpText}\n </div>\n </div>\n `).insertBefore(l),this.children=[],this.inserters=[],this.blockCounter=0,this.countInput=l.find("[data-streamfield-list-count]"),this.sequenceContainer=l.find("[data-streamfield-list-container]"),this.container=l,this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach(e=>{e.collapse()}),s&&this.setError(s),this.initDragNDrop(),(0,c.$)(this.container[0],this.blockDef.meta.attrs||{})}setState(e){this.clear(),e.forEach(({value:e,id:t},i)=>{const n=void 0===t?B():t;this.insert(e,i,{id:t||n})})}_getChildDataForInsertion(){return[this.blockDef.childBlockDef,this.blockDef.initialChildState,B()]}_createChild(e,t,i,n,s,l,a,o){return new R(e,t,i,n,s,l,a,o)}_createInsertionControl(e,t){return new F(e,t)}blockCountChanged(){super.blockCountChanged();const e=[],t=this.blockDef.meta.maxNum;if("number"==typeof t&&this.children.length>t){const i=(0,f.AP)("The maximum number of items is %(max_num)d").replace("%(max_num)d",`${t}`);e.push(i)}const i=this.blockDef.meta.minNum;if("number"==typeof i&&this.children.length<i){const t=(0,f.AP)("The minimum number of items is %(min_num)d").replace("%(min_num)d",`${i}`);e.push(t)}e.length?this.setError({messages:e}):this.setError({})}insert(e,t,i){return this._insert(this.blockDef.childBlockDef,e,i?.id,t,i)}duplicateBlock(e,t){const i=this.children[e],{id:n,value:s}=i.getDuplicatedState(),l=t&&t.animate;this.insert(s,e+1,{animate:l,focus:!0,collapsed:i.collapsed,id:n})}splitBlock(e,t,i,n,s){const l=this.children[e],a=s&&s.animate;l.setValue(t);const o=this.insert(i,e+1,{animate:a,focus:!0,collapsed:l.collapsed}),r=l.getContentPath(),c=o.getContentPath(),d=window.comments?.commentApp;r&&c&&d&&d.utils.selectCommentsForContentPathFactory(r)(d.store.getState()).forEach(e=>{n(e)&&d.updateContentPath(e.localId,c)})}setError(e){if(!e)return;const t=this.container[0];(0,b.$)(t),e.messages&&(0,b.U)(t,e.messages),e.blockErrors&&Object.entries(e.blockErrors).forEach(([e,t])=>{this.children[e].setError(t)})}getBlockGroups(){return[["",[this.blockDef.childBlockDef]]]}getBlockCount(){return this.children.length}getBlockMax(){return this.blockDef.meta.maxNum||0}}class Z{constructor(e,t,i,n){this.name=e,this.childBlockDef=t,this.initialChildState=i,this.meta=n}render(e,t,i,n){return new V(this,e,t,i,n)}}var N=i(7381),j=i(4549),W=i(2891);const H={name:"hideOnEsc",defaultValue:!0,fn({hide:e}){function t(t){"Escape"===t.key&&e()}return{onShow(){document.addEventListener("keydown",t)},onHide(){document.removeEventListener("keydown",t)}}}};W.Controller;class G extends U{getState(){return{type:this.type,value:this.block.getState(),id:this.id||null}}getDuplicatedState(){return{...super.getDuplicatedState(),type:this.type}}setState({type:e,value:t,id:i}){this.type=e,this.block.setState(t),this.id=void 0===i?null:i}getValue(){return{type:this.type,value:this.block.getValue(),id:this.id||null}}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class z extends O{constructor(e,t){super(e,t),this.groupedChildBlockDefs=t.groupedChildBlockDefs;const i=$(`\n <div>\n <button type="button" title="${j.Mn}" class="c-sf-add-button">\n <svg class="icon icon-plus" aria-hidden="true"><use href="#icon-plus"></use></svg>\n </button>\n </div>\n `);$(e).replaceWith(i),this.element=i.get(0),this.addButton=i.find("button");const n=this.blockItems;1!==n.length||1!==n[0].items.length?(this.combobox=document.createElement("div"),this.tooltip=(0,N.Ay)(this.addButton.get(0),{content:this.combobox,trigger:"click",interactive:!0,maxWidth:"none",theme:"dropdown",arrow:!1,placement:"bottom",plugins:[H],onShow:this.renderMenu.bind(this),onHidden:()=>{s().render(null,this.combobox)}})):this.addButton.click(()=>{this.onRequestInsert&&this.onRequestInsert(this.index,n[0].items[0])})}get blockItems(){return this.groupedChildBlockDefs.map(([e,t])=>({label:e||"",type:e||"",items:t.map(e=>({type:e.name,label:e.meta.label,description:e.meta.description,icon:e.meta.icon,blockDefId:e.meta.blockDefId,isPreviewable:e.meta.isPreviewable}))}))}renderMenu(){const e=this.blockItems;s().render(a().createElement(j.Ay,{label:j.qc,placeholder:j.qc,items:e,getItemLabel:(e,t)=>t.label,getItemDescription:e=>e.label,getSearchFields:e=>[e.label,e.type],noResultsText:j.b5,onSelect:this.onSelectBlock.bind(this)}),this.combobox)}onSelectBlock(e){this.onRequestInsert&&this.onRequestInsert(this.index,{type:e.selectedItem.type}),this.close()}open(){this.addButton.attr("aria-expanded","true"),this.tooltip.show()}close(){this.addButton.attr("aria-expanded","false"),this.tooltip.hide()}}class X extends P{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const l=$(`\n <div class="${(0,o.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,o.Z)(i)}-count" data-streamfield-stream-count value="0">\n <div data-streamfield-stream-container></div>\n </div>\n `);$(t).replaceWith(l),this.blockDef.meta.helpText&&$(`\n <div class="c-sf-help">\n <div class="help">\n ${this.blockDef.meta.helpText}\n </div>\n </div>\n `).insertBefore(l),this.container=l,this.element=l.get(0),this.children=[],this.childBlockCounts=new Map,this.inserters=[],this.blockCounter=0,this.countInput=l.find("[data-streamfield-stream-count]"),this.sequenceContainer=l.find("[data-streamfield-stream-container]"),this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach(e=>{e.collapse()}),s&&this.setError(s),this.initDragNDrop(),(0,c.$)(this.container[0],this.blockDef.meta.attrs||{})}getBlockGroups(){return this.blockDef.groupedChildBlockDefs}getBlockCount(e){return e?(this.childBlockCounts.has(e)||this._updateBlockCount(e),this.childBlockCounts.get(e)||0):this.children.length}getBlockMax(e){return e?this.blockDef.meta.blockCounts[e]?.max_num:this.blockDef.meta.maxNum}_updateBlockCount(e){const t=this.children.filter(t=>t.type===e).length;this.childBlockCounts.set(e,t)}blockCountChanged(){super.blockCountChanged(),this.childBlockCounts.clear();const e=[],t=this.blockDef.meta.maxNum;if("number"==typeof t&&this.children.length>t){const i=(0,f.AP)("The maximum number of items is %(max_num)d").replace("%(max_num)d",`${t}`);e.push(i)}const i=this.blockDef.meta.minNum;if("number"==typeof i&&this.children.length<i){const t=(0,f.AP)("The minimum number of items is %(min_num)d").replace("%(min_num)d",`${i}`);e.push(t)}for(const[t,i]of Object.entries(this.blockDef.meta.blockCounts)){const n=i.max_num;if("number"==typeof n&&this.getBlockCount(t)>n){const i=this.blockDef.childBlockDefsByName[t],s=(0,f.AP)("The maximum number of items is %(max_num)d").replace("%(max_num)d",`${n}`),l=`${i.meta.label}: ${s}`;e.push(l)}const s=i.min_num;if("number"==typeof s&&this.getBlockCount(t)<s){const i=this.blockDef.childBlockDefsByName[t],n=(0,f.AP)("The minimum number of items is %(min_num)d").replace("%(min_num)d",`${s}`),l=`${i.meta.label}: ${n}`;e.push(l)}}e.length?this.setError({messages:e}):this.setError({})}_createChild(e,t,i,n,s,l,a,o){return new G(e,t,i,n,s,l,a,o)}_createInsertionControl(e,t){return t.groupedChildBlockDefs=this.blockDef.groupedChildBlockDefs,new z(e,t)}insert({type:e,value:t,id:i},n,s){const l=this.blockDef.childBlockDefsByName[e];return this._insert(l,t,i,n,s)}_getChildDataForInsertion({type:e}){return[this.blockDef.childBlockDefsByName[e],this.blockDef.initialChildStates[e],B()]}duplicateBlock(e,t){const i=this.children[e],n=i.getDuplicatedState(),s=t&&t.animate;this.insert(n,e+1,{animate:s,focus:!0,collapsed:i.collapsed})}splitBlock(e,t,i,n,s){const l=this.children[e],a=s&&s.animate,o=l.getState(),r=this.insert({type:o.type,id:B(),value:i},e+1,{animate:a,focus:!0,collapsed:l.collapsed});l.setState({type:o.type,id:o.id||null,value:t});const c=l.getContentPath(),d=r.getContentPath(),h=window.comments?.commentApp;c&&d&&h&&h.utils.selectCommentsForContentPathFactory(c)(h.store.getState()).forEach(e=>{n(e)&&h.updateContentPath(e.localId,d)})}setState(e){super.setState(e)}setError(e){if(!e)return;const t=this.container[0];if((0,b.$)(t),e.messages&&(0,b.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)(0,m.$)(e.blockErrors,t)&&this.children[t].setError(e.blockErrors[t])}}class J{constructor(e,t,i,n){this.name=e,this.groupedChildBlockDefs=t,this.initialChildStates=i,this.childBlockDefsByName={},this.groupedChildBlockDefs.forEach(([e,t])=>{t.forEach(e=>{this.childBlockDefsByName[e.name]=e})}),this.meta=n}render(e,t,i,n){return new X(this,e,t,i,n)}}const K=window.wagtailStreamField||{};K.blocks={FieldBlock:d,FieldBlockDefinition:h,StaticBlock:u,StaticBlockDefinition:p,StructBlock:w,StructBlockDefinition:D,ListBlock:V,ListBlockDefinition:Z,StreamBlock:X,StreamBlockDefinition:J},window.telepath.register("wagtail.blocks.FieldBlock",h),window.telepath.register("wagtail.blocks.StaticBlock",p),window.telepath.register("wagtail.blocks.StructBlock",D),window.telepath.register("wagtail.blocks.ListBlock",Z),window.telepath.register("wagtail.blocks.StreamBlock",J),window.wagtailStreamField=K}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var l=i[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,i,s,l)=>{if(!i){var a=1/0;for(d=0;d<e.length;d++){for(var[i,s,l]=e[d],o=!0,r=0;r<i.length;r++)(!1&l||a>=l)&&Object.keys(n.O).every(e=>n.O[e](i[r]))?i.splice(r--,1):(o=!1,l<a&&(a=l));if(o){e.splice(d--,1);var c=s();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[i,s,l]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=591,(()=>{var e={591:0};n.O.j=t=>0===e[t];var t=(t,i)=>{var s,l,[a,o,r]=i,c=0;if(a.some(t=>0!==e[t])){for(s in o)n.o(o,s)&&(n.m[s]=o[s]);if(r)var d=r(n)}for(t&&t(i);c<a.length;c++)l=a[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},i=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var s=n.O(void 0,[321],()=>n(2294));s=n.O(s)})();
|
|
1
|
+
(()=>{"use strict";var e,t={3861:(e,t,i)=>{var n=i(6931),s=i.n(n),l=i(2427),a=i.n(l),o=i(4327),r=i(1238),c=i(1002);class d{constructor(e,t,i,n,l,d){this.blockDef=e,this.type=e.name;const h=$(`\n <div class="w-field__wrapper" data-field-wrapper>\n <div class="${(0,o.Z)(this.blockDef.meta.classname)}" data-field>\n <div class="w-field__errors" id="${i}-errors" data-field-errors>\n <svg class="icon icon-warning w-field__errors-icon" aria-hidden="true" hidden><use href="#icon-warning"></use></svg>\n </div>\n <div class="w-field__help" id="${i}-helptext" data-field-help></div>\n <div class="w-field__input" data-field-input>\n <div data-streamfield-widget></div>\n </div>\n </div>\n </div>\n `);$(t).replaceWith(h);const u=h.find("[data-streamfield-widget]").get(0);this.element=h[0],this.field=this.element.querySelector("[data-field]"),this.parentCapabilities=d||new Map,this.prefix=i;const p={attributes:this.getAttributes()};try{this.widget=this.blockDef.widget.render(u,i,i,n,this.parentCapabilities,p)}catch(e){return console.error(e),void this.setError({messages:["This widget failed to render, please check the console for details."]})}if(this.idForLabel=this.widget.idForLabel,this.blockDef.meta.helpText){const e=document.createElement("p");e.classList.add("help"),e.innerHTML=this.blockDef.meta.helpText,this.field.querySelector("[data-field-help]").appendChild(e)}if(window.comments&&this.blockDef.meta.showAddCommentButton){const t=document.createElement("button");t.type="button",t.setAttribute("aria-label",e.meta.strings.ADD_COMMENT),t.setAttribute("data-comment-add",""),t.classList.add("w-field__comment-button","w-field__comment-button--add"),s().render(a().createElement(a().Fragment,null,a().createElement(r.A,{name:"comment-add"}),a().createElement(r.A,{name:"comment-add-reversed"})),t),this.field.classList.add("w-field--commentable"),this.field.querySelector("[data-field-input]").appendChild(t),window.comments.initAddCommentButton(t)}l&&this.setError(l),(0,c.$)(this.field,this.blockDef.meta.attrs||{})}setCapabilityOptions(e,t){Object.assign(this.parentCapabilities.get(e),t),this.widget&&this.widget.setCapabilityOptions&&this.widget.setCapabilityOptions(e,t)}setState(e){this.widget&&this.widget.setState(e)}setError(e){const t=this.field.querySelector("[data-field-errors]");if(t.querySelectorAll(".error-message").forEach(e=>e.remove()),this.widget?.setInvalid?.(!!e),e){this.field.classList.add("w-field--error"),t.querySelector(".icon").removeAttribute("hidden");const i=document.createElement("p");i.classList.add("error-message");const n=document.createTextNode(e.messages.join(" "));i.appendChild(n),t.appendChild(i)}else this.field.classList.remove("w-field--error"),t.querySelector(".icon").setAttribute("hidden","true")}getAttributes(){const e=this.prefix,t={};return this.blockDef.meta.helpText&&(t["aria-describedby"]=`${e}-helptext`),this.blockDef.meta.required&&(t.required=""),this.blockDef.meta.maxLength&&(t.maxLength=this.blockDef.meta.maxLength),t}getState(){return this.widget.getState()}getValue(){return this.widget.getValue()}getTextLabel(e){return this.widget.getTextLabel?this.widget.getTextLabel(e):null}focus(e){this.widget&&this.widget.focus(e)}}class h{constructor(e,t,i){this.name=e,this.widget=t,this.meta=i}render(e,t,i,n,s){return new d(this,e,t,i,n,s)}}class u{constructor(e,t){this.blockDef=e;const i=document.createElement("div");this.blockDef.meta.html?i.innerHTML=this.blockDef.meta.html:i.innerHTML=(0,o.Z)(this.blockDef.meta.text),t.replaceWith(i),(0,c.$)(i,this.blockDef.meta.attrs||{})}setState(e){}setError(e){}getState(){return null}getValue(){return null}focus(){}}class p{constructor(e,t){this.name=e,this.meta=t}render(e){return new u(this,e)}}var m=i(4188),b=i(4545),f=i(2833);class g{constructor(e){this.props=e}render(){const e=document.createElement("template"),{panelId:t,headingId:i,contentId:n,blockDef:s,blockTypeIcon:l,blockTypeLabel:a,collapsed:o}=this.props;return e.innerHTML=`\n <section class="w-panel w-panel--nested${o?" collapsed":""}" id="${t}" aria-labelledby="${i}" data-panel>\n <div class="w-panel__header">\n <a class="w-panel__anchor w-panel__anchor--prefix" href="#${t}" aria-labelledby="${i}" data-panel-anchor>\n <svg class="icon icon-link w-panel__icon" aria-hidden="true">\n <use href="#icon-link"></use>\n </svg>\n </a>\n <button class="w-panel__toggle" type="button" aria-label="${(0,f.AP)("Toggle section")}" aria-describedby="${i}" data-panel-toggle aria-controls="${n}" aria-expanded="true">\n <svg class="icon icon-${l} w-panel__icon" aria-hidden="true">\n <use href="#icon-${l}"></use>\n </svg>\n </button>\n <h2 class="w-panel__heading w-panel__heading--label" aria-level="3" id="${i}" data-panel-heading>\n <span class="c-sf-block__type">${a}</span>\n ${s?.meta.required?'<span class="w-required-mark" data-panel-required>*</span>':""}\n <span data-panel-heading-text class="c-sf-block__title"></span>\n </h2>\n <a class="w-panel__anchor w-panel__anchor--suffix" href="#${t}" aria-labelledby="${i}">\n <svg class="icon icon-link w-panel__icon" aria-hidden="true">\n <use href="#icon-link"></use>\n </svg>\n </a>\n <div class="w-panel__divider"></div>\n <div class="w-panel__controls" data-panel-controls></div>\n </div>\n <div id="${n}" class="w-panel__content">\n ${s?"<div data-streamfield-block></div>":""}\n </div>\n </section>\n `,e.content.firstElementChild}}const k=(e,t=!("true"===e.getAttribute("aria-expanded")))=>{const i=document.querySelector(`#${e.getAttribute("aria-controls")}`);i&&(e.setAttribute("aria-expanded",`${t}`),t?i.removeAttribute("hidden"):"onbeforematch"in document.body?i.setAttribute("hidden","until-found"):i.setAttribute("hidden",""),e.dispatchEvent(new CustomEvent("commentAnchorVisibilityChange",{bubbles:!0})),e.dispatchEvent(new CustomEvent("wagtail:panel-toggle",{bubbles:!0,cancelable:!1,detail:{expanded:t}})))};function v(e){const t=e.closest("[data-panel]"),i=document.querySelector(`#${e.getAttribute("aria-controls")}`);if(!i||!t||t.collapsibleInitialised)return;t.collapsibleInitialised=!0;const n=k.bind(null,e),s=t.classList.contains("collapsed"),l=i.querySelector('[aria-invalid="true"], .error, .w-field--error'),a=s&&!l;a&&n(!1),e.addEventListener("click",n.bind(null,void 0));const o=t.querySelector("[data-panel-heading]");o&&o.addEventListener("click",n.bind(null,void 0)),i.addEventListener("beforematch",n.bind(null,!0)),e.dispatchEvent(new CustomEvent("wagtail:panel-init",{bubbles:!0,cancelable:!1,detail:{expanded:!a}}))}class w{constructor(e){this.sequenceChild=e}render(e,t="after"){this.dom=$(`\n <button type="button" class="button button--icon text-replace white" data-streamfield-action="${this.labelIdentifier}" title="${(0,o.Z)(this.label)}">\n <svg class="icon icon-${(0,o.Z)(this.icon)}" aria-hidden="true">\n <use href="#icon-${(0,o.Z)(this.icon)}"></use>\n </svg>\n </button>\n `),this.dom.on("click",()=>(this.onClick&&this.onClick(),!1)),"after"===t?$(e).append(this.dom):$(e).prepend(this.dom),this.enableEvent&&this.sequenceChild.addEventListener(this.enableEvent,()=>{this.enable()}),this.disableEvent&&this.sequenceChild.addEventListener(this.disableEvent,()=>{this.disable()}),this.initiallyDisabled&&this.disable()}enable(){this.dom.removeAttr("disabled")}disable(){this.dom.attr("disabled","true")}}class D extends w{enableEvent="enableMoveUp";disableEvent="disableMoveUp";initiallyDisabled=!0;icon="arrow-up";labelIdentifier="MOVE_UP";label=(0,f.AP)("Move up");onClick(){this.sequenceChild.moveUp()}}class x extends w{enableEvent="enableMoveDown";disableEvent="disableMoveDown";initiallyDisabled=!0;icon="arrow-down";labelIdentifier="MOVE_DOWN";label=(0,f.AP)("Move down");onClick(){this.sequenceChild.moveDown()}}class y extends w{enableEvent="enableDrag";disableEvent="disableDrag";initiallyDisabled=!1;icon="grip";labelIdentifier="DRAG";label=(0,f.AP)("Drag");onClick=void 0}class C extends w{enableEvent="enableDuplication";disableEvent="disableDuplication";icon="copy";labelIdentifier="DUPLICATE";label=(0,f.AP)("Duplicate");onClick(){this.sequenceChild.duplicate({animate:!0})}}class E extends w{icon="bin";labelIdentifier="DELETE";label=(0,f.AP)("Delete");onClick(){this.sequenceChild.delete({animate:!0})}}class B extends w{settingsPanel;icon="cog";labelIdentifier="SETTINGS";label=(0,f.AP)("Settings");constructor(e){super(),this.settingsPanel=e}render(e,t="before"){super.render(e,t);const{id:i}=this.settingsPanel;this.dom.attr("aria-expanded","false"),this.dom.attr("aria-controls",i),this.dom.append(`\n <div\n class="w-badge w-badge--critical w-hidden"\n data-controller="w-count"\n data-w-count-active-class="!w-flex"\n data-w-count-container-value="#${i}"\n >\n <span aria-hidden="true" data-w-count-target="total"></span>\n <span class="w-sr-only">(<span data-w-count-target="label"></span>)</span>\n </div>\n `),this.settingsPanel.addEventListener("beforematch",()=>this.toggle(!0))}toggle(e){const t=this.settingsPanel.closest("[data-panel]").querySelector("[data-panel-toggle]");let i=e??"false"===this.dom.attr("aria-expanded");if("false"===t.getAttribute("aria-expanded")&&(t.click(),i=!0),i)this.dom.attr("aria-expanded","true"),this.settingsPanel.removeAttribute("hidden");else{this.dom.attr("aria-expanded","false");const e="onbeforematch"in document.body?"until-found":"";this.settingsPanel.setAttribute("hidden",e)}}onClick(){this.toggle()}}class S{structBlock;groupDef;constructor(e,t,i,n){this.structBlock=e,this.groupDef=t,this.setCollapsedLabelText=this.setCollapsedLabelText.bind(this),this.opts=this.groupDef===this.structBlock.blockDef.meta.formLayout?this.structBlock.blockDef.meta:this.groupDef.opts,this.container=this.render(i,n),this.setCollapsedLabelText()}initializeCollapsiblePanel(e,t){return this.toggle=e.find("[data-panel-toggle]")[0],this.collapsedLabel=e.find("[data-panel-heading-text]")[0],v(this.toggle),this.toggle.addEventListener("wagtail:panel-toggle",this.setCollapsedLabelText),e.find(`#${t}-content`)}render(e,t){const{opts:i}=this,n="formLayout"in i,s=n&&!!i.formTemplate;let l;l=s?$(i.formTemplate.replace(/__PREFIX__/g,t)):$(`\n <div class="${(0,o.Z)(i.classname||"")}">\n </div>\n `);let a=null;if(!n||this.structBlock.blockDef.collapsible){const e=new g({panelId:`${t}-section`,headingId:`${t}-heading`,contentId:`${t}-content`,blockTypeIcon:(0,o.Z)(i.icon),blockTypeLabel:(0,o.Z)(n?i.label:i.heading),collapsed:n?i.collapsed:l.hasClass("collapsed")}).render().outerHTML;a=$(e)}n?$(e).replaceWith(a??l):e.append(a),a&&this.initializeCollapsiblePanel(a,t).append(l),!s&&i.helpText&&l.append(`\n <div class="c-sf-help">\n <div class="help">\n ${i.helpText}\n </div>\n </div>\n `);const{children:r,settings:d}=this.groupDef.opts;if(this.settings=[],d.length>0){let e;const i="onbeforematch"in document.body?"until-found":"";s?(e=l.find("[data-block-settings]"),e.attr("id",`${t}-settings`),e.attr("hidden",i)):(e=$(`\n <div id="${t}-settings" data-block-settings hidden="${i}">\n </div>\n `),l.append(e));const n=l.closest("[data-panel]").find("[data-panel-controls]").get(0);this.settingsButton=new B(e.get(0)),this.settingsButton.render(n),this.settings=d.map(([i,n])=>this.renderChild(i,e,`${t}-${n}`,s))}return this.children=r.map(([e,i])=>this.renderChild(e,l,`${t}-${i}`,s)),(0,c.$)(l[0],i.attrs||{}),l}getTextLabel(e){const{labelFormat:t}=this.opts;if("string"==typeof t)return t.replace(/\{(\w+)\}/g,(t,i)=>{const n=this.structBlock.childBlocks[i];return n&&n.getTextLabel?n.getTextLabel(e):""});for(const t of this.children.concat(this.settings))if(t.getTextLabel&&this.container[0].contains(t.container?.[0]||t.element)){const i=t.getTextLabel(e);if(i)return i}return null}setCollapsedLabelText(){if(!this.collapsedLabel)return;const e=this.getTextLabel({maxLength:50});this.collapsedLabel.textContent=e||""}renderChild(e,t,i,n=!1){return"string"==typeof e?this.structBlock.renderChildBlockDef(e,t,n):new S(this.structBlock,e,t,i)}}class _{opts;constructor(e){this.opts=e,this.opts=e}}class I{#e;#t;constructor(e,t,i,n,s){this.blockDef=e,this.type=e.name,this.prefix=i,this.#e=n||{},this.#t=s,this.childBlocks={},this.layout=new S(this,e.meta.formLayout,t,i),this.container=this.layout.container}renderChildBlockDef(e,t,i=!1){const n=this.blockDef.childBlockDefsByName[e],s=this.#t?.blockErrors||{};if(i){const e=t.find('[data-structblock-child="'+n.name+'"]').get(0),i=n.render(e,this.prefix+"-"+n.name,this.#e[n.name],s[n.name]);return this.childBlocks[n.name]=i,i}let l="";n instanceof this.blockDef.constructor||(l=`<label class="w-field__label">${(0,o.Z)(n.meta.label)}${n.meta.required?'<span class="w-required-mark">*</span>':""}</label>`);const a=$(`\n <div data-contentpath="${n.name}">\n ${l}\n <div data-streamfield-block></div>\n </div>\n `);t.append(a);const r=a.find("[data-streamfield-block]").get(0),c=a.find("label").get(0),d=n.render(r,this.prefix+"-"+n.name,this.#e[n.name],s[n.name],new Map);return this.childBlocks[n.name]=d,d.idForLabel&&c.setAttribute("for",d.idForLabel),d}setState(e){for(const t in e)this.childBlocks[t].setState(e[t])}setError(e){if(!e)return;const t=this.container[0];if((0,b.$)(t),e.messages&&(0,b.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)if((0,m.$)(e.blockErrors,t)){const i=this.childBlocks[t];i.setError(e.blockErrors[t]),(i.container?.[0]||i.element).dispatchEvent(new Event("beforematch",{bubbles:!0}))}}getState(){const e={};for(const t in this.childBlocks)e[t]=this.childBlocks[t].getState();return e}getDuplicatedState(){const e={};for(const t in this.childBlocks){const i=this.childBlocks[t];e[t]=void 0===i.getDuplicatedState?i.getState():i.getDuplicatedState()}return e}getValue(){const e={};for(const t in this.childBlocks)e[t]=this.childBlocks[t].getValue();return e}getTextLabel(e){return this.layout.getTextLabel(e)}focus(e){if(this.blockDef.childBlockDefs.length){const t=this.blockDef.childBlockDefs[0].name;this.childBlocks[t].focus(e)}}}class L{constructor(e,t,i){this.name=e,this.childBlockDefs=t,this.childBlockDefsByName=t.reduce((e,t)=>(e[t.name]=t,e),{}),this.meta=i,this.collapsible=!0}render(e,t,i,n){return new I(this,e,t,i,n)}}const T={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let q;const A=new Uint8Array(16),M=[];for(let e=0;e<256;++e)M.push((e+256).toString(16).slice(1));const P=function(e,t,i){if(T.randomUUID&&!t&&!e)return T.randomUUID();const n=(e=e||{}).random??e.rng?.()??function(){if(!q){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");q=crypto.getRandomValues.bind(crypto)}return q(A)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((i=i||0)<0||i+16>t.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[i+e]=n[e];return t}return function(e,t=0){return(M[e[t+0]]+M[e[t+1]]+M[e[t+2]]+M[e[t+3]]+"-"+M[e[t+4]]+M[e[t+5]]+"-"+M[e[t+6]]+M[e[t+7]]+"-"+M[e[t+8]]+M[e[t+9]]+"-"+M[e[t+10]]+M[e[t+11]]+M[e[t+12]]+M[e[t+13]]+M[e[t+14]]+M[e[t+15]]).toLowerCase()}(n)};var U=i(246),O=i(9675);class R extends EventTarget{constructor(e,t,i,n,s,l,a,r){super(),this.blockDef=e,this.type=e.name,this.prefix=i,this.index=n,this.id=s,this.sequence=a;const c=r&&r.animate,d=r&&r.focus,h=r&&r.collapsed,u=`block-${s}-section`,p=`block-${s}-heading`,m=`block-${s}-content`,b=(0,o.Z)(this.blockDef.meta.icon),f=(0,o.Z)(this.blockDef.meta.label),k=new g({panelId:u,headingId:p,contentId:m,blockDef:e,blockTypeIcon:b,blockTypeLabel:f}).render(),w=$(`\n <div data-streamfield-child ${this.id?`data-contentpath="${(0,o.Z)(this.id)}"`:"data-contentpath-disabled"}>\n <input type="hidden" name="${this.prefix}-deleted" value="">\n <input type="hidden" name="${this.prefix}-order" value="${n}">\n <input type="hidden" name="${this.prefix}-type" value="${(0,o.Z)(this.type||"")}">\n <input type="hidden" name="${this.prefix}-id" value="${(0,o.Z)(this.id||"")}">\n ${k.outerHTML}\n </div>\n `);$(t).replaceWith(w),this.element=w.get(0);const B=w.find("[data-streamfield-block]").get(0);this.actionsContainerElement=w.find("[data-panel-controls]").get(0),this.titleElement=w.find("[data-panel-heading-text]"),this.toggleElement=this.element.querySelector("[data-panel-toggle]"),this.deletedInput=w.find(`input[name="${this.prefix}-deleted"]`),this.indexInput=w.find(`input[name="${this.prefix}-order"]`),this.addActionButton(new D(this)),this.addActionButton(new x(this)),this.addActionButton(new y(this)),this.addActionButton(new C(this)),this.addActionButton(new E(this));const S=new Map;S.set("duplicate",{enabled:!0,fn:this.duplicate}),S.set("split",{enabled:!0,fn:this.split.bind(this)}),S.set("addSibling",{enabled:!0,fn:this.addSibling.bind(this),blockGroups:this.sequence.getBlockGroups(),getBlockCount:this.sequence.getBlockCount.bind(this.sequence),getBlockMax:this.sequence.getBlockMax.bind(this.sequence)}),this.blockDef instanceof L&&(this.blockDef.collapsible=!1),this.block=this.blockDef.render(B,this.prefix+"-value",l,void 0,S),v(this.element.querySelector("[data-panel-toggle]")),h&&this.collapse(),this.toggleElement.addEventListener("wagtail:panel-toggle",()=>{const e=this.getTextLabel({maxLength:70});this.titleElement.text(e||"")});const _=this.getTextLabel({maxLength:70});this.titleElement.text(_||""),c?(w.hide(),setTimeout(()=>{w.slideDown(),d&&this.block.focus({soft:!0})},10)):d&&this.block.focus({soft:!0})}addActionButton(e){e.render(this.actionsContainerElement)}addSibling(e){this.sequence._onRequestInsert(this.index+1,e)}moveUp(){this.sequence.moveBlockUp(this.index)}moveDown(){this.sequence.moveBlockDown(this.index)}duplicate(e){this.sequence.duplicateBlock(this.index,e)}delete(e){this.sequence.deleteBlock(this.index,e)}markDeleted({animate:e=!1}){this.deletedInput.val("1"),e?$(this.element).slideUp().dequeue().fadeOut().attr("aria-hidden","true"):$(this.element).hide().attr("aria-hidden","true");const t=this.getContentPath();t&&window.comments.commentApp&&window.comments.commentApp.invalidateContentPath(t)}getContentPath(){return window.comments?.getContentPath(this.element)}enableDuplication(){this.dispatchEvent(new Event("enableDuplication")),this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("duplicate",{enabled:!0})}disableDuplication(){this.dispatchEvent(new Event("disableDuplication")),this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("duplicate",{enabled:!1})}enableSplit(){this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("split",{enabled:!0})}disableSplit(){this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("split",{enabled:!1})}enableMoveUp(){this.dispatchEvent(new Event("enableMoveUp"))}disableMoveUp(){this.dispatchEvent(new Event("disableMoveUp"))}enableMoveDown(){this.dispatchEvent(new Event("enableMoveDown"))}disableMoveDown(){this.dispatchEvent(new Event("disableMoveDown"))}setIndex(e){this.index=e,this.indexInput.val(e)}setError(e){this.block.setError(e),e&&k(this.toggleElement,!0)}focus(e){this.block.focus(e)}getTextLabel(e){return this.block.getTextLabel?this.block.getTextLabel(e):null}collapse(){k(this.toggleElement,!1)}getDuplicatedState(){return{id:P(),value:void 0===this.block.getDuplicatedState?this.block.getState():this.block.getDuplicatedState()}}}class F{constructor(e,t){this.index=t&&t.index,this.onRequestInsert=t&&t.onRequestInsert}setIndex(e){this.index=e}delete({animate:e=!1}){e?$(this.element).slideUp().attr("aria-hidden","true"):$(this.element).hide().attr("aria-hidden","true")}}class N{_createChild(e,t,i,n,s,l,a,o){throw new Error("not implemented")}_createInsertionControl(e,t){throw new Error("not implemented")}_getChildDataForInsertion(e){throw new Error("not implemented")}getBlockGroups(){throw new Error("not implemented")}clear(){this.countInput.val(0),this.sequenceContainer.empty(),this.children=[],this.blockCounter=0;const e=document.createElement("div");this.sequenceContainer.append(e),this.inserters=[this._createInsertionControl(e,{index:0,onRequestInsert:(e,t)=>{this._onRequestInsert(e,t)}})],this.blockCountChanged()}_onRequestInsert(e,t){const[i,n,s]=this._getChildDataForInsertion(t);this._insert(i,n,s||null,e,{animate:!0,focus:!0})}blockCountChanged(){}_insert(e,t,i,n,s){const l=this.prefix+"-"+this.blockCounter,a=s&&s.animate,o=s&&s.focus,r=s&&s.collapsed;this.blockCounter+=1;const c=this.inserters[n].element,d=document.createElement("div"),h=document.createElement("div");$(d).insertAfter(c),$(h).insertAfter(d),(0,O.y)(n,this.children.length).forEach(e=>{this.children[e].setIndex(e+1)}),(0,O.y)(n+1,this.inserters.length).forEach(e=>{this.inserters[e].setIndex(e+1)});const u=this._createChild(e,d,l,n,i,t,this,{animate:a,focus:o,collapsed:r});this.children.splice(n,0,u);const p=this._createInsertionControl(h,{index:n+1,onRequestInsert:(e,t)=>{this._onRequestInsert(e,t)},animate:a});this.inserters.splice(n+1,0,p),this.countInput.val(this.blockCounter);const m=0===n,b=n===this.children.length-1;return m||(u.enableMoveUp(),b&&this.children[n-1].enableMoveDown()),b||(u.enableMoveDown(),m&&this.children[n+1].enableMoveUp()),this.blockCountChanged(),u}deleteBlock(e,t){const i=t&&t.animate;this.children[e].markDeleted({animate:i}),this.inserters[e].delete({animate:i}),this.children.splice(e,1),this.inserters.splice(e,1),(0,O.y)(e,this.children.length).forEach(e=>{this.children[e].setIndex(e)}),(0,O.y)(e,this.inserters.length).forEach(e=>{this.inserters[e].setIndex(e)}),0===e&&this.children.length>0&&this.children[0].disableMoveUp(),e===this.children.length&&this.children.length>0&&this.children[this.children.length-1].disableMoveDown(),this.blockCountChanged()}initDragNDrop(){this.sortable=U.Ay.create(this.sequenceContainer.get(0),{handle:'[data-streamfield-action="DRAG"]',animation:200,draggable:"[data-streamfield-child]",onEnd:e=>{const{oldDraggableIndex:t,newDraggableIndex:i}=e;t!==i&&this.moveBlock(t,i)},setData:e=>{e.setData("application/vnd.wagtail.type","sf-block")}})}moveBlock(e,t){if(e===t)return;const i=this.inserters[e],n=this.children[e];t>e?$(i.element).insertAfter(this.children[t].element):$(i.element).insertBefore(this.inserters[t].element),$(n.element).insertAfter(i.element),this.inserters.splice(e,1),this.inserters.splice(t,0,i),this.children.splice(e,1),this.children.splice(t,0,n),t>e?(0,O.y)(e,t+1).forEach(e=>{this.inserters[e].setIndex(e),this.children[e].setIndex(e)}):(0,O.y)(t,e+1).forEach(e=>{this.inserters[e].setIndex(e),this.children[e].setIndex(e)});const s=this.children.length-1;0===e&&(n.enableMoveUp(),this.children[0].disableMoveUp()),e===s&&(n.enableMoveDown(),this.children[s].disableMoveDown()),0===t&&(n.disableMoveUp(),this.children[1].enableMoveUp()),t===s&&(n.disableMoveDown(),this.children[s-1].enableMoveDown())}moveBlockUp(e){this.moveBlock(e,e-1)}moveBlockDown(e){this.moveBlock(e,e+1)}setState(e){this.clear(),e.forEach((e,t)=>{this.insert(e,t)})}getState(){return this.children.map(e=>e.getState())}getDuplicatedState(){return this.children.map(e=>e.getDuplicatedState())}getValue(){return this.children.map(e=>e.getValue())}getTextLabel(e){const t=e&&e.maxLength;let i="";for(const e of this.children){const n=e.getTextLabel({maxLength:t});if(n)if(i){const e=i+", "+n;if(t&&e.length>t-1)return i.endsWith("…")||(i+="…"),i;i=e}else i=n}return i}focus(e){this.children.length&&this.children[0].focus(e)}}class V extends R{getState(){return{id:this.id||null,value:this.block.getState()}}getValue(){return this.block.getValue()}setState({value:e,id:t}){this.block.setState(e),this.id=void 0===t?null:t}setValue(e){this.block.setState(e)}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class Z extends F{constructor(e,t){super(e,t),this.onRequestInsert=t&&t.onRequestInsert;const i=t&&t.animate,n=(0,o.Z)((0,f.AP)("Add")),s=$(`\n <button type="button" title="${n}" data-streamfield-list-add class="c-sf-add-button">\n <svg class="icon icon-plus" aria-hidden="true"><use href="#icon-plus"></use></svg>\n </button>\n `);$(e).replaceWith(s),this.element=s.get(0),s.click(()=>{this.onRequestInsert&&this.onRequestInsert(this.index)}),i&&s.hide().slideDown()}enable(){$(this.element).removeAttr("disabled")}disable(){$(this.element).attr("disabled","true")}}class j extends N{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const l=$(`\n <div class="${(0,o.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,o.Z)(i)}-count" data-streamfield-list-count value="0">\n\n <div data-streamfield-list-container></div>\n </div>\n `);$(t).replaceWith(l),this.blockDef.meta.helpText&&$(`\n <div class="c-sf-help">\n <div class="help">\n ${this.blockDef.meta.helpText}\n </div>\n </div>\n `).insertBefore(l),this.children=[],this.inserters=[],this.blockCounter=0,this.countInput=l.find("[data-streamfield-list-count]"),this.sequenceContainer=l.find("[data-streamfield-list-container]"),this.container=l,this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach(e=>{e.collapse()}),s&&this.setError(s),this.initDragNDrop(),(0,c.$)(this.container[0],this.blockDef.meta.attrs||{})}setState(e){this.clear(),e.forEach(({value:e,id:t},i)=>{const n=void 0===t?P():t;this.insert(e,i,{id:t||n})})}_getChildDataForInsertion(){return[this.blockDef.childBlockDef,this.blockDef.initialChildState,P()]}_createChild(e,t,i,n,s,l,a,o){return new V(e,t,i,n,s,l,a,o)}_createInsertionControl(e,t){return new Z(e,t)}blockCountChanged(){super.blockCountChanged();const e=[],t=this.blockDef.meta.maxNum;if("number"==typeof t&&this.children.length>t){const i=(0,f.AP)("The maximum number of items is %(max_num)d").replace("%(max_num)d",`${t}`);e.push(i)}const i=this.blockDef.meta.minNum;if("number"==typeof i&&this.children.length<i){const t=(0,f.AP)("The minimum number of items is %(min_num)d").replace("%(min_num)d",`${i}`);e.push(t)}e.length?this.setError({messages:e}):this.setError({})}insert(e,t,i){return this._insert(this.blockDef.childBlockDef,e,i?.id,t,i)}duplicateBlock(e,t){const i=this.children[e],{id:n,value:s}=i.getDuplicatedState(),l=t&&t.animate;this.insert(s,e+1,{animate:l,focus:!0,collapsed:i.collapsed,id:n})}splitBlock(e,t,i,n,s){const l=this.children[e],a=s&&s.animate;l.setValue(t);const o=this.insert(i,e+1,{animate:a,focus:!0,collapsed:l.collapsed}),r=l.getContentPath(),c=o.getContentPath(),d=window.comments?.commentApp;r&&c&&d&&d.utils.selectCommentsForContentPathFactory(r)(d.store.getState()).forEach(e=>{n(e)&&d.updateContentPath(e.localId,c)})}setError(e){if(!e)return;const t=this.container[0];(0,b.$)(t),e.messages&&(0,b.U)(t,e.messages),e.blockErrors&&Object.entries(e.blockErrors).forEach(([e,t])=>{this.children[e].setError(t)})}getBlockGroups(){return[["",[this.blockDef.childBlockDef]]]}getBlockCount(){return this.children.length}getBlockMax(){return this.blockDef.meta.maxNum||0}}class W{constructor(e,t,i,n){this.name=e,this.childBlockDef=t,this.initialChildState=i,this.meta=n}render(e,t,i,n){return new j(this,e,t,i,n)}}var G=i(7381),H=i(4549),z=i(2891);const X={name:"hideOnEsc",defaultValue:!0,fn({hide:e}){function t(t){"Escape"===t.key&&e()}return{onShow(){document.addEventListener("keydown",t)},onHide(){document.removeEventListener("keydown",t)}}}};z.Controller;class J extends R{getState(){return{type:this.type,value:this.block.getState(),id:this.id||null}}getDuplicatedState(){return{...super.getDuplicatedState(),type:this.type}}setState({type:e,value:t,id:i}){this.type=e,this.block.setState(t),this.id=void 0===i?null:i}getValue(){return{type:this.type,value:this.block.getValue(),id:this.id||null}}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class K extends F{constructor(e,t){super(e,t),this.groupedChildBlockDefs=t.groupedChildBlockDefs;const i=$(`\n <div>\n <button type="button" title="${H.Mn}" class="c-sf-add-button">\n <svg class="icon icon-plus" aria-hidden="true"><use href="#icon-plus"></use></svg>\n </button>\n </div>\n `);$(e).replaceWith(i),this.element=i.get(0),this.addButton=i.find("button");const n=this.blockItems;1!==n.length||1!==n[0].items.length?(this.combobox=document.createElement("div"),this.tooltip=(0,G.Ay)(this.addButton.get(0),{content:this.combobox,trigger:"click",interactive:!0,maxWidth:"none",theme:"dropdown",arrow:!1,placement:"bottom",plugins:[X],onShow:this.renderMenu.bind(this),onHidden:()=>{s().render(null,this.combobox)}})):this.addButton.click(()=>{this.onRequestInsert&&this.onRequestInsert(this.index,n[0].items[0])})}get blockItems(){return this.groupedChildBlockDefs.map(([e,t])=>({label:e||"",type:e||"",items:t.map(e=>({type:e.name,label:e.meta.label,description:e.meta.description,icon:e.meta.icon,blockDefId:e.meta.blockDefId,isPreviewable:e.meta.isPreviewable}))}))}renderMenu(){const e=this.blockItems;s().render(a().createElement(H.Ay,{label:H.qc,placeholder:H.qc,items:e,getItemLabel:(e,t)=>t.label,getItemDescription:e=>e.label,getSearchFields:e=>[e.label,e.type],noResultsText:H.b5,onSelect:this.onSelectBlock.bind(this)}),this.combobox)}onSelectBlock(e){this.onRequestInsert&&this.onRequestInsert(this.index,{type:e.selectedItem.type}),this.close()}open(){this.addButton.attr("aria-expanded","true"),this.tooltip.show()}close(){this.addButton.attr("aria-expanded","false"),this.tooltip.hide()}}class Q extends N{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const l=$(`\n <div class="${(0,o.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,o.Z)(i)}-count" data-streamfield-stream-count value="0">\n <div data-streamfield-stream-container></div>\n </div>\n `);$(t).replaceWith(l),this.blockDef.meta.helpText&&$(`\n <div class="c-sf-help">\n <div class="help">\n ${this.blockDef.meta.helpText}\n </div>\n </div>\n `).insertBefore(l),this.container=l,this.element=l.get(0),this.children=[],this.childBlockCounts=new Map,this.inserters=[],this.blockCounter=0,this.countInput=l.find("[data-streamfield-stream-count]"),this.sequenceContainer=l.find("[data-streamfield-stream-container]"),this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach(e=>{e.collapse()}),s&&this.setError(s),this.initDragNDrop(),(0,c.$)(this.container[0],this.blockDef.meta.attrs||{})}getBlockGroups(){return this.blockDef.groupedChildBlockDefs}getBlockCount(e){return e?(this.childBlockCounts.has(e)||this._updateBlockCount(e),this.childBlockCounts.get(e)||0):this.children.length}getBlockMax(e){return e?this.blockDef.meta.blockCounts[e]?.max_num:this.blockDef.meta.maxNum}_updateBlockCount(e){const t=this.children.filter(t=>t.type===e).length;this.childBlockCounts.set(e,t)}blockCountChanged(){super.blockCountChanged(),this.childBlockCounts.clear();const e=[],t=this.blockDef.meta.maxNum;if("number"==typeof t&&this.children.length>t){const i=(0,f.AP)("The maximum number of items is %(max_num)d").replace("%(max_num)d",`${t}`);e.push(i)}const i=this.blockDef.meta.minNum;if("number"==typeof i&&this.children.length<i){const t=(0,f.AP)("The minimum number of items is %(min_num)d").replace("%(min_num)d",`${i}`);e.push(t)}for(const[t,i]of Object.entries(this.blockDef.meta.blockCounts)){const n=i.max_num;if("number"==typeof n&&this.getBlockCount(t)>n){const i=this.blockDef.childBlockDefsByName[t],s=(0,f.AP)("The maximum number of items is %(max_num)d").replace("%(max_num)d",`${n}`),l=`${i.meta.label}: ${s}`;e.push(l)}const s=i.min_num;if("number"==typeof s&&this.getBlockCount(t)<s){const i=this.blockDef.childBlockDefsByName[t],n=(0,f.AP)("The minimum number of items is %(min_num)d").replace("%(min_num)d",`${s}`),l=`${i.meta.label}: ${n}`;e.push(l)}}e.length?this.setError({messages:e}):this.setError({})}_createChild(e,t,i,n,s,l,a,o){return new J(e,t,i,n,s,l,a,o)}_createInsertionControl(e,t){return t.groupedChildBlockDefs=this.blockDef.groupedChildBlockDefs,new K(e,t)}insert({type:e,value:t,id:i},n,s){const l=this.blockDef.childBlockDefsByName[e];return this._insert(l,t,i,n,s)}_getChildDataForInsertion({type:e}){return[this.blockDef.childBlockDefsByName[e],this.blockDef.initialChildStates[e],P()]}duplicateBlock(e,t){const i=this.children[e],n=i.getDuplicatedState(),s=t&&t.animate;this.insert(n,e+1,{animate:s,focus:!0,collapsed:i.collapsed})}splitBlock(e,t,i,n,s){const l=this.children[e],a=s&&s.animate,o=l.getState(),r=this.insert({type:o.type,id:P(),value:i},e+1,{animate:a,focus:!0,collapsed:l.collapsed});l.setState({type:o.type,id:o.id||null,value:t});const c=l.getContentPath(),d=r.getContentPath(),h=window.comments?.commentApp;c&&d&&h&&h.utils.selectCommentsForContentPathFactory(c)(h.store.getState()).forEach(e=>{n(e)&&h.updateContentPath(e.localId,d)})}setState(e){super.setState(e)}setError(e){if(!e)return;const t=this.container[0];if((0,b.$)(t),e.messages&&(0,b.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)(0,m.$)(e.blockErrors,t)&&this.children[t].setError(e.blockErrors[t])}}class Y{constructor(e,t,i,n){this.name=e,this.groupedChildBlockDefs=t,this.initialChildStates=i,this.childBlockDefsByName={},this.groupedChildBlockDefs.forEach(([e,t])=>{t.forEach(e=>{this.childBlockDefsByName[e.name]=e})}),this.meta=n}render(e,t,i,n){return new Q(this,e,t,i,n)}}const ee=window.wagtailStreamField||{};ee.blocks={FieldBlock:d,FieldBlockDefinition:h,StaticBlock:u,StaticBlockDefinition:p,BlockGroupDefinition:_,StructBlock:I,StructBlockDefinition:L,ListBlock:j,ListBlockDefinition:W,StreamBlock:Q,StreamBlockDefinition:Y},window.telepath.register("wagtail.blocks.FieldBlock",h),window.telepath.register("wagtail.blocks.StaticBlock",p),window.telepath.register("wagtail.blocks.BlockGroup",_),window.telepath.register("wagtail.blocks.StructBlock",L),window.telepath.register("wagtail.blocks.ListBlock",W),window.telepath.register("wagtail.blocks.StreamBlock",Y),window.wagtailStreamField=ee}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var l=i[e]={exports:{}};return t[e](l,l.exports,n),l.exports}n.m=t,e=[],n.O=(t,i,s,l)=>{if(!i){var a=1/0;for(d=0;d<e.length;d++){for(var[i,s,l]=e[d],o=!0,r=0;r<i.length;r++)(!1&l||a>=l)&&Object.keys(n.O).every(e=>n.O[e](i[r]))?i.splice(r--,1):(o=!1,l<a&&(a=l));if(o){e.splice(d--,1);var c=s();void 0!==c&&(t=c)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[i,s,l]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.j=591,(()=>{var e={591:0};n.O.j=t=>0===e[t];var t=(t,i)=>{var s,l,[a,o,r]=i,c=0;if(a.some(t=>0!==e[t])){for(s in o)n.o(o,s)&&(n.m[s]=o[s]);if(r)var d=r(n)}for(t&&t(i);c<a.length;c++)l=a[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return n.O(d)},i=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var s=n.O(void 0,[321],()=>n(3861));s=n.O(s)})();
|