wagtail 6.1.3__py3-none-any.whl → 6.2__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.
Files changed (1354) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/actions/copy_for_translation.py +15 -1
  3. wagtail/admin/checks.py +20 -30
  4. wagtail/admin/forms/pages.py +10 -0
  5. wagtail/admin/icons.py +43 -0
  6. wagtail/admin/locale/ar/LC_MESSAGES/django.mo +0 -0
  7. wagtail/admin/locale/ar/LC_MESSAGES/django.po +4 -7
  8. wagtail/admin/locale/ar/LC_MESSAGES/djangojs.mo +0 -0
  9. wagtail/admin/locale/ar/LC_MESSAGES/djangojs.po +8 -2
  10. wagtail/admin/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  11. wagtail/admin/locale/be/LC_MESSAGES/django.mo +0 -0
  12. wagtail/admin/locale/be/LC_MESSAGES/django.po +4 -7
  13. wagtail/admin/locale/be/LC_MESSAGES/djangojs.mo +0 -0
  14. wagtail/admin/locale/be/LC_MESSAGES/djangojs.po +8 -2
  15. wagtail/admin/locale/bg/LC_MESSAGES/django.po +1 -1
  16. wagtail/admin/locale/bn/LC_MESSAGES/django.po +1 -1
  17. wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
  18. wagtail/admin/locale/ca/LC_MESSAGES/django.po +128 -52
  19. wagtail/admin/locale/ca/LC_MESSAGES/djangojs.mo +0 -0
  20. wagtail/admin/locale/ca/LC_MESSAGES/djangojs.po +13 -2
  21. wagtail/admin/locale/cs/LC_MESSAGES/django.mo +0 -0
  22. wagtail/admin/locale/cs/LC_MESSAGES/django.po +4 -13
  23. wagtail/admin/locale/cs/LC_MESSAGES/djangojs.mo +0 -0
  24. wagtail/admin/locale/cs/LC_MESSAGES/djangojs.po +8 -2
  25. wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
  26. wagtail/admin/locale/cy/LC_MESSAGES/django.po +4 -1
  27. wagtail/admin/locale/da/LC_MESSAGES/django.mo +0 -0
  28. wagtail/admin/locale/da/LC_MESSAGES/django.po +1 -7
  29. wagtail/admin/locale/de/LC_MESSAGES/django.mo +0 -0
  30. wagtail/admin/locale/de/LC_MESSAGES/django.po +135 -53
  31. wagtail/admin/locale/de/LC_MESSAGES/djangojs.mo +0 -0
  32. wagtail/admin/locale/de/LC_MESSAGES/djangojs.po +14 -3
  33. wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
  34. wagtail/admin/locale/dv/LC_MESSAGES/django.po +7 -46
  35. wagtail/admin/locale/dv/LC_MESSAGES/djangojs.mo +0 -0
  36. wagtail/admin/locale/dv/LC_MESSAGES/djangojs.po +6 -0
  37. wagtail/admin/locale/el/LC_MESSAGES/django.mo +0 -0
  38. wagtail/admin/locale/el/LC_MESSAGES/django.po +4 -10
  39. wagtail/admin/locale/el/LC_MESSAGES/djangojs.mo +0 -0
  40. wagtail/admin/locale/el/LC_MESSAGES/djangojs.po +8 -2
  41. wagtail/admin/locale/en/LC_MESSAGES/django.po +405 -295
  42. wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +21 -3
  43. wagtail/admin/locale/es/LC_MESSAGES/django.mo +0 -0
  44. wagtail/admin/locale/es/LC_MESSAGES/django.po +4 -16
  45. wagtail/admin/locale/es/LC_MESSAGES/djangojs.mo +0 -0
  46. wagtail/admin/locale/es/LC_MESSAGES/djangojs.po +8 -2
  47. wagtail/admin/locale/es_419/LC_MESSAGES/django.mo +0 -0
  48. wagtail/admin/locale/es_419/LC_MESSAGES/django.po +1 -4
  49. wagtail/admin/locale/es_VE/LC_MESSAGES/django.po +1 -1
  50. wagtail/admin/locale/et/LC_MESSAGES/django.mo +0 -0
  51. wagtail/admin/locale/et/LC_MESSAGES/django.po +4 -13
  52. wagtail/admin/locale/et/LC_MESSAGES/djangojs.mo +0 -0
  53. wagtail/admin/locale/et/LC_MESSAGES/djangojs.po +8 -2
  54. wagtail/admin/locale/eu/LC_MESSAGES/django.po +1 -1
  55. wagtail/admin/locale/fa/LC_MESSAGES/django.mo +0 -0
  56. wagtail/admin/locale/fa/LC_MESSAGES/django.po +32 -12
  57. wagtail/admin/locale/fa/LC_MESSAGES/djangojs.mo +0 -0
  58. wagtail/admin/locale/fa/LC_MESSAGES/djangojs.po +9 -3
  59. wagtail/admin/locale/fi/LC_MESSAGES/django.mo +0 -0
  60. wagtail/admin/locale/fi/LC_MESSAGES/django.po +47 -21
  61. wagtail/admin/locale/fi/LC_MESSAGES/djangojs.mo +0 -0
  62. wagtail/admin/locale/fi/LC_MESSAGES/djangojs.po +12 -1
  63. wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
  64. wagtail/admin/locale/fr/LC_MESSAGES/django.po +135 -53
  65. wagtail/admin/locale/fr/LC_MESSAGES/djangojs.mo +0 -0
  66. wagtail/admin/locale/fr/LC_MESSAGES/djangojs.po +15 -2
  67. wagtail/admin/locale/gl/LC_MESSAGES/django.mo +0 -0
  68. wagtail/admin/locale/gl/LC_MESSAGES/django.po +127 -51
  69. wagtail/admin/locale/gl/LC_MESSAGES/djangojs.mo +0 -0
  70. wagtail/admin/locale/gl/LC_MESSAGES/djangojs.po +14 -3
  71. wagtail/admin/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  72. wagtail/admin/locale/he_IL/LC_MESSAGES/django.po +1 -4
  73. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  74. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.po +4 -13
  75. wagtail/admin/locale/hr_HR/LC_MESSAGES/djangojs.mo +0 -0
  76. wagtail/admin/locale/hr_HR/LC_MESSAGES/djangojs.po +8 -2
  77. wagtail/admin/locale/ht/LC_MESSAGES/django.po +1 -1
  78. wagtail/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
  79. wagtail/admin/locale/hu/LC_MESSAGES/django.po +7 -60
  80. wagtail/admin/locale/hu/LC_MESSAGES/djangojs.mo +0 -0
  81. wagtail/admin/locale/hu/LC_MESSAGES/djangojs.po +8 -2
  82. wagtail/admin/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  83. wagtail/admin/locale/id_ID/LC_MESSAGES/django.po +4 -7
  84. wagtail/admin/locale/id_ID/LC_MESSAGES/djangojs.mo +0 -0
  85. wagtail/admin/locale/id_ID/LC_MESSAGES/djangojs.po +8 -2
  86. wagtail/admin/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  87. wagtail/admin/locale/is_IS/LC_MESSAGES/django.po +7 -47
  88. wagtail/admin/locale/is_IS/LC_MESSAGES/djangojs.mo +0 -0
  89. wagtail/admin/locale/is_IS/LC_MESSAGES/djangojs.po +8 -2
  90. wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
  91. wagtail/admin/locale/it/LC_MESSAGES/django.po +7 -61
  92. wagtail/admin/locale/it/LC_MESSAGES/djangojs.mo +0 -0
  93. wagtail/admin/locale/it/LC_MESSAGES/djangojs.po +8 -2
  94. wagtail/admin/locale/ja/LC_MESSAGES/django.mo +0 -0
  95. wagtail/admin/locale/ja/LC_MESSAGES/django.po +4 -7
  96. wagtail/admin/locale/ja/LC_MESSAGES/djangojs.mo +0 -0
  97. wagtail/admin/locale/ja/LC_MESSAGES/djangojs.po +8 -2
  98. wagtail/admin/locale/ka/LC_MESSAGES/django.po +1 -1
  99. wagtail/admin/locale/ko/LC_MESSAGES/django.mo +0 -0
  100. wagtail/admin/locale/ko/LC_MESSAGES/django.po +4 -16
  101. wagtail/admin/locale/ko/LC_MESSAGES/djangojs.mo +0 -0
  102. wagtail/admin/locale/ko/LC_MESSAGES/djangojs.po +8 -2
  103. wagtail/admin/locale/lt/LC_MESSAGES/django.mo +0 -0
  104. wagtail/admin/locale/lt/LC_MESSAGES/django.po +4 -13
  105. wagtail/admin/locale/lt/LC_MESSAGES/djangojs.mo +0 -0
  106. wagtail/admin/locale/lt/LC_MESSAGES/djangojs.po +8 -1
  107. wagtail/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
  108. wagtail/admin/locale/lv/LC_MESSAGES/django.po +1 -7
  109. wagtail/admin/locale/lv/LC_MESSAGES/djangojs.mo +0 -0
  110. wagtail/admin/locale/lv/LC_MESSAGES/djangojs.po +8 -2
  111. wagtail/admin/locale/mi/LC_MESSAGES/django.mo +0 -0
  112. wagtail/admin/locale/mi/LC_MESSAGES/django.po +4 -4
  113. wagtail/admin/locale/mi/LC_MESSAGES/djangojs.mo +0 -0
  114. wagtail/admin/locale/mi/LC_MESSAGES/djangojs.po +8 -2
  115. wagtail/admin/locale/mn/LC_MESSAGES/django.mo +0 -0
  116. wagtail/admin/locale/mn/LC_MESSAGES/django.po +4 -7
  117. wagtail/admin/locale/mn/LC_MESSAGES/djangojs.mo +0 -0
  118. wagtail/admin/locale/mn/LC_MESSAGES/djangojs.po +8 -2
  119. wagtail/admin/locale/my/LC_MESSAGES/django.po +1 -1
  120. wagtail/admin/locale/nb/LC_MESSAGES/django.mo +0 -0
  121. wagtail/admin/locale/nb/LC_MESSAGES/django.po +4 -7
  122. wagtail/admin/locale/nb/LC_MESSAGES/djangojs.mo +0 -0
  123. wagtail/admin/locale/nb/LC_MESSAGES/djangojs.po +8 -2
  124. wagtail/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
  125. wagtail/admin/locale/nl/LC_MESSAGES/django.po +134 -51
  126. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.mo +0 -0
  127. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.po +14 -3
  128. wagtail/admin/locale/pl/LC_MESSAGES/django.mo +0 -0
  129. wagtail/admin/locale/pl/LC_MESSAGES/django.po +4 -57
  130. wagtail/admin/locale/pl/LC_MESSAGES/djangojs.mo +0 -0
  131. wagtail/admin/locale/pl/LC_MESSAGES/djangojs.po +8 -2
  132. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  133. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.po +7 -58
  134. wagtail/admin/locale/pt_BR/LC_MESSAGES/djangojs.mo +0 -0
  135. wagtail/admin/locale/pt_BR/LC_MESSAGES/djangojs.po +8 -2
  136. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  137. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po +4 -16
  138. wagtail/admin/locale/pt_PT/LC_MESSAGES/djangojs.mo +0 -0
  139. wagtail/admin/locale/pt_PT/LC_MESSAGES/djangojs.po +8 -2
  140. wagtail/admin/locale/ro/LC_MESSAGES/django.mo +0 -0
  141. wagtail/admin/locale/ro/LC_MESSAGES/django.po +4 -57
  142. wagtail/admin/locale/ro/LC_MESSAGES/djangojs.mo +0 -0
  143. wagtail/admin/locale/ro/LC_MESSAGES/djangojs.po +8 -1
  144. wagtail/admin/locale/ru/LC_MESSAGES/django.mo +0 -0
  145. wagtail/admin/locale/ru/LC_MESSAGES/django.po +138 -56
  146. wagtail/admin/locale/ru/LC_MESSAGES/djangojs.mo +0 -0
  147. wagtail/admin/locale/ru/LC_MESSAGES/djangojs.po +16 -2
  148. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  149. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.po +4 -7
  150. wagtail/admin/locale/sk_SK/LC_MESSAGES/djangojs.mo +0 -0
  151. wagtail/admin/locale/sk_SK/LC_MESSAGES/djangojs.po +8 -2
  152. wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
  153. wagtail/admin/locale/sl/LC_MESSAGES/django.po +37 -58
  154. wagtail/admin/locale/sl/LC_MESSAGES/djangojs.mo +0 -0
  155. wagtail/admin/locale/sl/LC_MESSAGES/djangojs.po +8 -2
  156. wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
  157. wagtail/admin/locale/sv/LC_MESSAGES/django.po +7 -19
  158. wagtail/admin/locale/sv/LC_MESSAGES/djangojs.mo +0 -0
  159. wagtail/admin/locale/sv/LC_MESSAGES/djangojs.po +8 -2
  160. wagtail/admin/locale/tet/LC_MESSAGES/django.mo +0 -0
  161. wagtail/admin/locale/tet/LC_MESSAGES/django.po +4 -7
  162. wagtail/admin/locale/tet/LC_MESSAGES/djangojs.mo +0 -0
  163. wagtail/admin/locale/tet/LC_MESSAGES/djangojs.po +8 -2
  164. wagtail/admin/locale/th/LC_MESSAGES/django.mo +0 -0
  165. wagtail/admin/locale/th/LC_MESSAGES/django.po +4 -7
  166. wagtail/admin/locale/th/LC_MESSAGES/djangojs.mo +0 -0
  167. wagtail/admin/locale/th/LC_MESSAGES/djangojs.po +8 -2
  168. wagtail/admin/locale/tr/LC_MESSAGES/django.mo +0 -0
  169. wagtail/admin/locale/tr/LC_MESSAGES/django.po +4 -7
  170. wagtail/admin/locale/tr/LC_MESSAGES/djangojs.mo +0 -0
  171. wagtail/admin/locale/tr/LC_MESSAGES/djangojs.po +8 -2
  172. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  173. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.po +4 -7
  174. wagtail/admin/locale/tr_TR/LC_MESSAGES/djangojs.mo +0 -0
  175. wagtail/admin/locale/tr_TR/LC_MESSAGES/djangojs.po +8 -2
  176. wagtail/admin/locale/uk/LC_MESSAGES/django.mo +0 -0
  177. wagtail/admin/locale/uk/LC_MESSAGES/django.po +4 -16
  178. wagtail/admin/locale/uk/LC_MESSAGES/djangojs.mo +0 -0
  179. wagtail/admin/locale/uk/LC_MESSAGES/djangojs.po +8 -2
  180. wagtail/admin/locale/vi/LC_MESSAGES/django.po +1 -1
  181. wagtail/admin/locale/zh/LC_MESSAGES/django.mo +0 -0
  182. wagtail/admin/locale/zh/LC_MESSAGES/django.po +1 -4
  183. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  184. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.po +7 -19
  185. wagtail/admin/locale/zh_Hans/LC_MESSAGES/djangojs.mo +0 -0
  186. wagtail/admin/locale/zh_Hans/LC_MESSAGES/djangojs.po +8 -2
  187. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  188. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.po +4 -13
  189. wagtail/admin/locale/zh_Hant/LC_MESSAGES/djangojs.mo +0 -0
  190. wagtail/admin/locale/zh_Hant/LC_MESSAGES/djangojs.po +8 -2
  191. wagtail/admin/menu.py +2 -2
  192. wagtail/admin/migrations/0004_editingsession.py +57 -0
  193. wagtail/admin/migrations/0005_editingsession_is_editing.py +18 -0
  194. wagtail/admin/models.py +36 -3
  195. wagtail/admin/rich_text/editors/draftail/__init__.py +2 -20
  196. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  197. wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
  198. wagtail/admin/static/wagtailadmin/js/chooser-modal.js +1 -1
  199. wagtail/admin/static/wagtailadmin/js/chooser-widget-telepath.js +1 -1
  200. wagtail/admin/static/wagtailadmin/js/chooser-widget.js +1 -1
  201. wagtail/admin/static/wagtailadmin/js/comments.js +1 -1
  202. wagtail/admin/static/wagtailadmin/js/core.js +1 -1
  203. wagtail/admin/static/wagtailadmin/js/date-time-chooser.js +1 -1
  204. wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
  205. wagtail/admin/static/wagtailadmin/js/expanding-formset.js +1 -1
  206. wagtail/admin/static/wagtailadmin/js/filtered-select.js +1 -1
  207. wagtail/admin/static/wagtailadmin/js/modal-workflow.js +1 -1
  208. wagtail/admin/static/wagtailadmin/js/page-chooser-modal.js +1 -1
  209. wagtail/admin/static/wagtailadmin/js/page-chooser-telepath.js +1 -1
  210. wagtail/admin/static/wagtailadmin/js/page-chooser.js +1 -1
  211. wagtail/admin/static/wagtailadmin/js/preview-panel.js +2 -1
  212. wagtail/admin/static/wagtailadmin/js/preview-panel.js.LICENSE.txt +11 -0
  213. wagtail/admin/static/wagtailadmin/js/privacy-switch.js +1 -1
  214. wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
  215. wagtail/admin/static/wagtailadmin/js/task-chooser-modal.js +1 -1
  216. wagtail/admin/static/wagtailadmin/js/task-chooser.js +1 -1
  217. wagtail/admin/static/wagtailadmin/js/telepath/blocks.js +1 -1
  218. wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
  219. wagtail/admin/static/wagtailadmin/js/userbar.js +2 -1
  220. wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +11 -0
  221. wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
  222. wagtail/admin/static/wagtailadmin/js/vendor.js.LICENSE.txt +0 -12
  223. wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
  224. wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
  225. wagtail/admin/templates/wagtailadmin/collection_privacy/ancestor_privacy.html +2 -6
  226. wagtail/admin/templates/wagtailadmin/generic/index_results.html +1 -17
  227. wagtail/admin/templates/wagtailadmin/generic/listing_results.html +20 -1
  228. wagtail/admin/templates/wagtailadmin/home/workflow_objects_to_moderate.html +2 -11
  229. wagtail/admin/templates/wagtailadmin/page_privacy/ancestor_privacy.html +2 -6
  230. wagtail/admin/templates/wagtailadmin/page_privacy/no_privacy.html +2 -0
  231. wagtail/admin/templates/wagtailadmin/pages/_editor_js.html +0 -1
  232. wagtail/admin/templates/wagtailadmin/pages/action_menu/menu.html +1 -1
  233. wagtail/admin/templates/wagtailadmin/reports/aging_pages_results.html +54 -0
  234. wagtail/admin/templates/wagtailadmin/reports/base_page_report.html +1 -17
  235. wagtail/admin/templates/wagtailadmin/reports/base_page_report_results.html +10 -0
  236. wagtail/admin/templates/wagtailadmin/reports/base_report.html +1 -40
  237. wagtail/admin/templates/wagtailadmin/reports/base_report_results.html +1 -0
  238. wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_report.html +21 -27
  239. wagtail/admin/templates/wagtailadmin/reports/listing/_list_page_types_usage.html +48 -54
  240. wagtail/admin/templates/wagtailadmin/reports/{locked_pages.html → locked_pages_results.html} +3 -3
  241. wagtail/admin/templates/wagtailadmin/reports/page_types_usage_results.html +10 -0
  242. wagtail/admin/templates/wagtailadmin/reports/site_history_results.html +53 -0
  243. wagtail/admin/templates/wagtailadmin/reports/workflow_results.html +74 -0
  244. wagtail/admin/templates/wagtailadmin/reports/workflow_tasks_results.html +56 -0
  245. wagtail/admin/templates/wagtailadmin/shared/_workflow_init.html +8 -44
  246. wagtail/admin/templates/wagtailadmin/shared/avatar.html +11 -1
  247. wagtail/admin/templates/wagtailadmin/shared/dialog/dialog.html +5 -4
  248. wagtail/admin/templates/wagtailadmin/shared/dropdown/dropdown_button.html +2 -1
  249. wagtail/admin/templates/wagtailadmin/shared/editing_sessions/list.html +132 -0
  250. wagtail/admin/templates/wagtailadmin/shared/editing_sessions/module.html +44 -0
  251. wagtail/admin/templates/wagtailadmin/shared/headers/slim_header.html +7 -1
  252. wagtail/admin/templates/wagtailadmin/shared/page_status_tag_new.html +1 -1
  253. wagtail/admin/templates/wagtailadmin/shared/side_panels/checks.html +37 -16
  254. wagtail/admin/templates/wagtailadmin/skeleton.html +1 -1
  255. wagtail/admin/templates/wagtailadmin/userbar/item_accessibility.html +9 -11
  256. wagtail/admin/templatetags/wagtailadmin_tags.py +13 -2
  257. wagtail/admin/tests/formats/en/__init__.py +0 -0
  258. wagtail/admin/tests/formats/en/formats.py +1 -0
  259. wagtail/admin/tests/pages/test_create_page.py +47 -0
  260. wagtail/admin/tests/pages/test_edit_page.py +10 -8
  261. wagtail/admin/tests/pages/test_parent_page_chooser_view.py +45 -1
  262. wagtail/admin/tests/test_checks.py +53 -3
  263. wagtail/admin/tests/test_collections_views.py +62 -1
  264. wagtail/admin/tests/test_edit_handlers.py +37 -0
  265. wagtail/admin/tests/test_editing_sessions.py +1333 -0
  266. wagtail/admin/tests/test_icon_sprite.py +12 -21
  267. wagtail/admin/tests/test_page_chooser.py +309 -7
  268. wagtail/admin/tests/test_privacy.py +82 -0
  269. wagtail/admin/tests/test_reports_views.py +464 -70
  270. wagtail/admin/tests/test_userbar.py +93 -6
  271. wagtail/admin/tests/test_workflows.py +223 -33
  272. wagtail/admin/tests/viewsets/test_model_viewset.py +151 -2
  273. wagtail/admin/ui/editing_sessions.py +47 -0
  274. wagtail/admin/urls/__init__.py +9 -15
  275. wagtail/admin/urls/editing_sessions.py +17 -0
  276. wagtail/admin/urls/reports.py +33 -1
  277. wagtail/admin/userbar.py +77 -20
  278. wagtail/admin/views/chooser.py +49 -22
  279. wagtail/admin/views/collections.py +0 -11
  280. wagtail/admin/views/editing_sessions.py +191 -0
  281. wagtail/admin/views/generic/__init__.py +1 -0
  282. wagtail/admin/views/generic/history.py +9 -3
  283. wagtail/admin/views/generic/mixins.py +43 -3
  284. wagtail/admin/views/generic/models.py +46 -72
  285. wagtail/admin/views/generic/permissions.py +20 -10
  286. wagtail/admin/views/home.py +2 -31
  287. wagtail/admin/views/page_privacy.py +20 -5
  288. wagtail/admin/views/pages/choose_parent.py +62 -0
  289. wagtail/admin/views/pages/edit.py +27 -0
  290. wagtail/admin/views/reports/aging_pages.py +6 -10
  291. wagtail/admin/views/reports/audit_logging.py +13 -42
  292. wagtail/admin/views/reports/base.py +31 -4
  293. wagtail/admin/views/reports/locked_pages.py +5 -8
  294. wagtail/admin/views/reports/page_types_usage.py +6 -10
  295. wagtail/admin/views/reports/workflows.py +36 -12
  296. wagtail/admin/viewsets/base.py +8 -3
  297. wagtail/admin/viewsets/chooser.py +1 -1
  298. wagtail/admin/viewsets/model.py +26 -1
  299. wagtail/admin/wagtail_hooks.py +2 -1
  300. wagtail/api/v2/filters.py +6 -0
  301. wagtail/api/v2/tests/test_documents.py +1 -1
  302. wagtail/api/v2/tests/test_images.py +1 -1
  303. wagtail/api/v2/tests/test_pages.py +11 -1
  304. wagtail/api/v2/utils.py +2 -2
  305. wagtail/blocks/base.py +42 -15
  306. wagtail/blocks/definition_lookup.py +85 -0
  307. wagtail/blocks/list_block.py +24 -0
  308. wagtail/blocks/migrations/migrate_operation.py +2 -0
  309. wagtail/blocks/stream_block.py +19 -0
  310. wagtail/blocks/struct_block.py +19 -0
  311. wagtail/contrib/forms/locale/af/LC_MESSAGES/django.po +1 -1
  312. wagtail/contrib/forms/locale/ar/LC_MESSAGES/django.po +1 -1
  313. wagtail/contrib/forms/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  314. wagtail/contrib/forms/locale/be/LC_MESSAGES/django.po +1 -1
  315. wagtail/contrib/forms/locale/bg/LC_MESSAGES/django.po +1 -1
  316. wagtail/contrib/forms/locale/bn/LC_MESSAGES/django.po +1 -1
  317. wagtail/contrib/forms/locale/ca/LC_MESSAGES/django.po +1 -1
  318. wagtail/contrib/forms/locale/cs/LC_MESSAGES/django.po +1 -1
  319. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +1 -1
  320. wagtail/contrib/forms/locale/da/LC_MESSAGES/django.po +1 -1
  321. wagtail/contrib/forms/locale/de/LC_MESSAGES/django.po +1 -1
  322. wagtail/contrib/forms/locale/dv/LC_MESSAGES/django.po +1 -1
  323. wagtail/contrib/forms/locale/el/LC_MESSAGES/django.po +1 -1
  324. wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +1 -1
  325. wagtail/contrib/forms/locale/es/LC_MESSAGES/django.po +1 -1
  326. wagtail/contrib/forms/locale/es_419/LC_MESSAGES/django.po +1 -1
  327. wagtail/contrib/forms/locale/et/LC_MESSAGES/django.po +1 -1
  328. wagtail/contrib/forms/locale/eu/LC_MESSAGES/django.po +1 -1
  329. wagtail/contrib/forms/locale/fa/LC_MESSAGES/django.po +1 -1
  330. wagtail/contrib/forms/locale/fi/LC_MESSAGES/django.po +1 -1
  331. wagtail/contrib/forms/locale/fr/LC_MESSAGES/django.po +1 -1
  332. wagtail/contrib/forms/locale/gl/LC_MESSAGES/django.po +1 -1
  333. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +1 -1
  334. wagtail/contrib/forms/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  335. wagtail/contrib/forms/locale/ht/LC_MESSAGES/django.po +1 -1
  336. wagtail/contrib/forms/locale/hu/LC_MESSAGES/django.po +1 -1
  337. wagtail/contrib/forms/locale/hy/LC_MESSAGES/django.po +1 -1
  338. wagtail/contrib/forms/locale/id_ID/LC_MESSAGES/django.po +1 -1
  339. wagtail/contrib/forms/locale/is_IS/LC_MESSAGES/django.po +1 -1
  340. wagtail/contrib/forms/locale/it/LC_MESSAGES/django.po +1 -1
  341. wagtail/contrib/forms/locale/ja/LC_MESSAGES/django.po +1 -1
  342. wagtail/contrib/forms/locale/ka/LC_MESSAGES/django.po +1 -1
  343. wagtail/contrib/forms/locale/ko/LC_MESSAGES/django.po +1 -1
  344. wagtail/contrib/forms/locale/lt/LC_MESSAGES/django.po +1 -1
  345. wagtail/contrib/forms/locale/lv/LC_MESSAGES/django.po +1 -1
  346. wagtail/contrib/forms/locale/mi/LC_MESSAGES/django.po +1 -1
  347. wagtail/contrib/forms/locale/mn/LC_MESSAGES/django.po +1 -1
  348. wagtail/contrib/forms/locale/my/LC_MESSAGES/django.po +1 -1
  349. wagtail/contrib/forms/locale/nb/LC_MESSAGES/django.po +1 -1
  350. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.po +1 -1
  351. wagtail/contrib/forms/locale/pl/LC_MESSAGES/django.po +1 -1
  352. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  353. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.po +3 -3
  354. wagtail/contrib/forms/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  355. wagtail/contrib/forms/locale/ro/LC_MESSAGES/django.po +1 -1
  356. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.po +1 -1
  357. wagtail/contrib/forms/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  358. wagtail/contrib/forms/locale/sl/LC_MESSAGES/django.po +1 -1
  359. wagtail/contrib/forms/locale/sv/LC_MESSAGES/django.po +1 -1
  360. wagtail/contrib/forms/locale/tet/LC_MESSAGES/django.po +1 -1
  361. wagtail/contrib/forms/locale/th/LC_MESSAGES/django.po +1 -1
  362. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.po +1 -1
  363. wagtail/contrib/forms/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  364. wagtail/contrib/forms/locale/uk/LC_MESSAGES/django.po +1 -1
  365. wagtail/contrib/forms/locale/vi/LC_MESSAGES/django.po +1 -1
  366. wagtail/contrib/forms/locale/zh/LC_MESSAGES/django.po +1 -1
  367. wagtail/contrib/forms/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  368. wagtail/contrib/forms/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  369. wagtail/contrib/frontend_cache/backends/__init__.py +5 -0
  370. wagtail/contrib/frontend_cache/backends/azure.py +179 -0
  371. wagtail/contrib/frontend_cache/backends/base.py +28 -0
  372. wagtail/contrib/frontend_cache/backends/cloudflare.py +114 -0
  373. wagtail/contrib/frontend_cache/backends/cloudfront.py +99 -0
  374. wagtail/contrib/frontend_cache/backends/http.py +64 -0
  375. wagtail/contrib/frontend_cache/tests.py +59 -17
  376. wagtail/contrib/frontend_cache/utils.py +26 -8
  377. wagtail/contrib/redirects/filters.py +15 -1
  378. wagtail/contrib/redirects/locale/af/LC_MESSAGES/django.po +1 -1
  379. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.po +1 -1
  380. wagtail/contrib/redirects/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  381. wagtail/contrib/redirects/locale/be/LC_MESSAGES/django.po +1 -1
  382. wagtail/contrib/redirects/locale/bg/LC_MESSAGES/django.po +1 -1
  383. wagtail/contrib/redirects/locale/bn/LC_MESSAGES/django.po +1 -1
  384. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.po +1 -1
  385. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.po +1 -1
  386. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +1 -1
  387. wagtail/contrib/redirects/locale/da/LC_MESSAGES/django.po +1 -1
  388. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.po +1 -1
  389. wagtail/contrib/redirects/locale/dv/LC_MESSAGES/django.po +1 -1
  390. wagtail/contrib/redirects/locale/el/LC_MESSAGES/django.po +1 -1
  391. wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +37 -72
  392. wagtail/contrib/redirects/locale/en_IN/LC_MESSAGES/django.po +1 -1
  393. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.po +1 -1
  394. wagtail/contrib/redirects/locale/es_419/LC_MESSAGES/django.po +1 -1
  395. wagtail/contrib/redirects/locale/es_VE/LC_MESSAGES/django.po +1 -1
  396. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.po +1 -1
  397. wagtail/contrib/redirects/locale/eu/LC_MESSAGES/django.po +1 -1
  398. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.mo +0 -0
  399. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.po +3 -3
  400. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.po +1 -1
  401. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +1 -1
  402. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.po +1 -1
  403. wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +1 -1
  404. wagtail/contrib/redirects/locale/hi/LC_MESSAGES/django.po +1 -1
  405. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  406. wagtail/contrib/redirects/locale/ht/LC_MESSAGES/django.po +1 -1
  407. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.po +1 -1
  408. wagtail/contrib/redirects/locale/hy/LC_MESSAGES/django.po +1 -1
  409. wagtail/contrib/redirects/locale/id_ID/LC_MESSAGES/django.po +1 -1
  410. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.po +1 -1
  411. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.po +1 -1
  412. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.po +1 -1
  413. wagtail/contrib/redirects/locale/ka/LC_MESSAGES/django.po +1 -1
  414. wagtail/contrib/redirects/locale/ko/LC_MESSAGES/django.po +1 -1
  415. wagtail/contrib/redirects/locale/lt/LC_MESSAGES/django.po +1 -1
  416. wagtail/contrib/redirects/locale/lv/LC_MESSAGES/django.po +1 -1
  417. wagtail/contrib/redirects/locale/mi/LC_MESSAGES/django.po +1 -1
  418. wagtail/contrib/redirects/locale/mn/LC_MESSAGES/django.po +1 -1
  419. wagtail/contrib/redirects/locale/my/LC_MESSAGES/django.po +1 -1
  420. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.po +1 -1
  421. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.po +1 -1
  422. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.po +1 -1
  423. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  424. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  425. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.po +1 -1
  426. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.po +1 -1
  427. wagtail/contrib/redirects/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  428. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.po +1 -1
  429. wagtail/contrib/redirects/locale/sr/LC_MESSAGES/django.po +1 -1
  430. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.po +1 -1
  431. wagtail/contrib/redirects/locale/ta/LC_MESSAGES/django.po +1 -1
  432. wagtail/contrib/redirects/locale/tet/LC_MESSAGES/django.po +1 -1
  433. wagtail/contrib/redirects/locale/th/LC_MESSAGES/django.po +1 -1
  434. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.po +1 -1
  435. wagtail/contrib/redirects/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  436. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.po +1 -1
  437. wagtail/contrib/redirects/locale/vi/LC_MESSAGES/django.po +1 -1
  438. wagtail/contrib/redirects/locale/zh/LC_MESSAGES/django.po +1 -1
  439. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  440. wagtail/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  441. wagtail/contrib/redirects/models.py +6 -5
  442. wagtail/contrib/redirects/templates/wagtailredirects/edit.html +1 -38
  443. wagtail/contrib/redirects/tests/test_redirects.py +141 -1
  444. wagtail/contrib/redirects/urls.py +1 -2
  445. wagtail/contrib/redirects/views.py +39 -80
  446. wagtail/contrib/routable_page/models.py +6 -4
  447. wagtail/contrib/routable_page/tests.py +11 -0
  448. wagtail/contrib/search_promotions/locale/af/LC_MESSAGES/django.po +1 -1
  449. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.po +1 -1
  450. wagtail/contrib/search_promotions/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  451. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.po +1 -1
  452. wagtail/contrib/search_promotions/locale/bg/LC_MESSAGES/django.po +1 -1
  453. wagtail/contrib/search_promotions/locale/bn/LC_MESSAGES/django.po +1 -1
  454. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.po +1 -1
  455. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.po +1 -1
  456. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +1 -1
  457. wagtail/contrib/search_promotions/locale/da/LC_MESSAGES/django.po +1 -1
  458. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.po +1 -1
  459. wagtail/contrib/search_promotions/locale/dv/LC_MESSAGES/django.po +1 -1
  460. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.po +1 -1
  461. wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +1 -1
  462. wagtail/contrib/search_promotions/locale/en_IN/LC_MESSAGES/django.po +1 -1
  463. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.po +1 -1
  464. wagtail/contrib/search_promotions/locale/es_419/LC_MESSAGES/django.po +1 -1
  465. wagtail/contrib/search_promotions/locale/es_VE/LC_MESSAGES/django.po +1 -1
  466. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.po +1 -1
  467. wagtail/contrib/search_promotions/locale/eu/LC_MESSAGES/django.po +1 -1
  468. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.po +1 -1
  469. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.po +1 -1
  470. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +1 -1
  471. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.po +1 -1
  472. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +1 -1
  473. wagtail/contrib/search_promotions/locale/hi/LC_MESSAGES/django.po +1 -1
  474. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  475. wagtail/contrib/search_promotions/locale/ht/LC_MESSAGES/django.po +1 -1
  476. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.po +1 -1
  477. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.po +1 -1
  478. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +1 -1
  479. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +1 -1
  480. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.po +1 -1
  481. wagtail/contrib/search_promotions/locale/ka/LC_MESSAGES/django.po +1 -1
  482. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.po +1 -1
  483. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.po +1 -1
  484. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.po +1 -1
  485. wagtail/contrib/search_promotions/locale/mi/LC_MESSAGES/django.po +1 -1
  486. wagtail/contrib/search_promotions/locale/mn/LC_MESSAGES/django.po +1 -1
  487. wagtail/contrib/search_promotions/locale/my/LC_MESSAGES/django.po +1 -1
  488. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.po +1 -1
  489. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.po +1 -1
  490. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.po +1 -1
  491. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  492. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  493. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.po +1 -1
  494. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.po +1 -1
  495. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  496. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +1 -1
  497. wagtail/contrib/search_promotions/locale/sr/LC_MESSAGES/django.po +1 -1
  498. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.po +1 -1
  499. wagtail/contrib/search_promotions/locale/ta/LC_MESSAGES/django.po +1 -1
  500. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.po +1 -1
  501. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.po +1 -1
  502. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.po +1 -1
  503. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  504. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.po +1 -1
  505. wagtail/contrib/search_promotions/locale/vi/LC_MESSAGES/django.po +1 -1
  506. wagtail/contrib/search_promotions/locale/zh/LC_MESSAGES/django.po +1 -1
  507. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  508. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  509. wagtail/contrib/settings/locale/af/LC_MESSAGES/django.po +1 -1
  510. wagtail/contrib/settings/locale/ar/LC_MESSAGES/django.po +1 -1
  511. wagtail/contrib/settings/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  512. wagtail/contrib/settings/locale/be/LC_MESSAGES/django.po +1 -1
  513. wagtail/contrib/settings/locale/bg/LC_MESSAGES/django.po +1 -1
  514. wagtail/contrib/settings/locale/bn/LC_MESSAGES/django.po +1 -1
  515. wagtail/contrib/settings/locale/ca/LC_MESSAGES/django.po +1 -1
  516. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.po +1 -1
  517. wagtail/contrib/settings/locale/cy/LC_MESSAGES/django.po +1 -1
  518. wagtail/contrib/settings/locale/da/LC_MESSAGES/django.po +1 -1
  519. wagtail/contrib/settings/locale/de/LC_MESSAGES/django.po +1 -1
  520. wagtail/contrib/settings/locale/dv/LC_MESSAGES/django.po +1 -1
  521. wagtail/contrib/settings/locale/el/LC_MESSAGES/django.po +1 -1
  522. wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +4 -4
  523. wagtail/contrib/settings/locale/en_IN/LC_MESSAGES/django.po +1 -1
  524. wagtail/contrib/settings/locale/es/LC_MESSAGES/django.po +1 -1
  525. wagtail/contrib/settings/locale/es_419/LC_MESSAGES/django.po +1 -1
  526. wagtail/contrib/settings/locale/es_VE/LC_MESSAGES/django.po +1 -1
  527. wagtail/contrib/settings/locale/et/LC_MESSAGES/django.po +1 -1
  528. wagtail/contrib/settings/locale/fa/LC_MESSAGES/django.po +1 -1
  529. wagtail/contrib/settings/locale/fi/LC_MESSAGES/django.po +1 -1
  530. wagtail/contrib/settings/locale/fr/LC_MESSAGES/django.po +1 -1
  531. wagtail/contrib/settings/locale/gl/LC_MESSAGES/django.po +1 -1
  532. wagtail/contrib/settings/locale/he_IL/LC_MESSAGES/django.po +1 -1
  533. wagtail/contrib/settings/locale/hi/LC_MESSAGES/django.po +1 -1
  534. wagtail/contrib/settings/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  535. wagtail/contrib/settings/locale/ht/LC_MESSAGES/django.po +1 -1
  536. wagtail/contrib/settings/locale/hu/LC_MESSAGES/django.po +1 -1
  537. wagtail/contrib/settings/locale/id_ID/LC_MESSAGES/django.po +1 -1
  538. wagtail/contrib/settings/locale/is_IS/LC_MESSAGES/django.po +1 -1
  539. wagtail/contrib/settings/locale/it/LC_MESSAGES/django.po +1 -1
  540. wagtail/contrib/settings/locale/ja/LC_MESSAGES/django.po +1 -1
  541. wagtail/contrib/settings/locale/ka/LC_MESSAGES/django.po +1 -1
  542. wagtail/contrib/settings/locale/ko/LC_MESSAGES/django.po +1 -1
  543. wagtail/contrib/settings/locale/lt/LC_MESSAGES/django.po +1 -1
  544. wagtail/contrib/settings/locale/lv/LC_MESSAGES/django.po +1 -1
  545. wagtail/contrib/settings/locale/mi/LC_MESSAGES/django.po +1 -1
  546. wagtail/contrib/settings/locale/mn/LC_MESSAGES/django.po +1 -1
  547. wagtail/contrib/settings/locale/my/LC_MESSAGES/django.po +1 -1
  548. wagtail/contrib/settings/locale/nb/LC_MESSAGES/django.po +1 -1
  549. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.po +1 -1
  550. wagtail/contrib/settings/locale/pl/LC_MESSAGES/django.po +1 -1
  551. wagtail/contrib/settings/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  552. wagtail/contrib/settings/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  553. wagtail/contrib/settings/locale/ro/LC_MESSAGES/django.po +1 -1
  554. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.po +1 -1
  555. wagtail/contrib/settings/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  556. wagtail/contrib/settings/locale/sl/LC_MESSAGES/django.po +1 -1
  557. wagtail/contrib/settings/locale/sr/LC_MESSAGES/django.po +1 -1
  558. wagtail/contrib/settings/locale/sv/LC_MESSAGES/django.po +1 -1
  559. wagtail/contrib/settings/locale/ta/LC_MESSAGES/django.po +1 -1
  560. wagtail/contrib/settings/locale/tet/LC_MESSAGES/django.po +1 -1
  561. wagtail/contrib/settings/locale/th/LC_MESSAGES/django.po +1 -1
  562. wagtail/contrib/settings/locale/tr/LC_MESSAGES/django.po +1 -1
  563. wagtail/contrib/settings/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  564. wagtail/contrib/settings/locale/uk/LC_MESSAGES/django.po +1 -1
  565. wagtail/contrib/settings/locale/vi/LC_MESSAGES/django.po +1 -1
  566. wagtail/contrib/settings/locale/zh/LC_MESSAGES/django.po +1 -1
  567. wagtail/contrib/settings/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  568. wagtail/contrib/settings/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  569. wagtail/contrib/simple_translation/locale/ar/LC_MESSAGES/django.po +1 -1
  570. wagtail/contrib/simple_translation/locale/be/LC_MESSAGES/django.po +1 -1
  571. wagtail/contrib/simple_translation/locale/ca/LC_MESSAGES/django.mo +0 -0
  572. wagtail/contrib/simple_translation/locale/ca/LC_MESSAGES/django.po +6 -3
  573. wagtail/contrib/simple_translation/locale/cs/LC_MESSAGES/django.po +1 -1
  574. wagtail/contrib/simple_translation/locale/cy/LC_MESSAGES/django.po +1 -1
  575. wagtail/contrib/simple_translation/locale/de/LC_MESSAGES/django.mo +0 -0
  576. wagtail/contrib/simple_translation/locale/de/LC_MESSAGES/django.po +6 -3
  577. wagtail/contrib/simple_translation/locale/dv/LC_MESSAGES/django.po +1 -1
  578. wagtail/contrib/simple_translation/locale/el/LC_MESSAGES/django.po +1 -1
  579. wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +5 -1
  580. wagtail/contrib/simple_translation/locale/es/LC_MESSAGES/django.po +1 -1
  581. wagtail/contrib/simple_translation/locale/es_419/LC_MESSAGES/django.po +1 -1
  582. wagtail/contrib/simple_translation/locale/fa/LC_MESSAGES/django.po +1 -1
  583. wagtail/contrib/simple_translation/locale/fi/LC_MESSAGES/django.po +1 -1
  584. wagtail/contrib/simple_translation/locale/fr/LC_MESSAGES/django.mo +0 -0
  585. wagtail/contrib/simple_translation/locale/fr/LC_MESSAGES/django.po +6 -2
  586. wagtail/contrib/simple_translation/locale/gl/LC_MESSAGES/django.mo +0 -0
  587. wagtail/contrib/simple_translation/locale/gl/LC_MESSAGES/django.po +6 -3
  588. wagtail/contrib/simple_translation/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  589. wagtail/contrib/simple_translation/locale/hu/LC_MESSAGES/django.po +1 -1
  590. wagtail/contrib/simple_translation/locale/is_IS/LC_MESSAGES/django.po +1 -1
  591. wagtail/contrib/simple_translation/locale/it/LC_MESSAGES/django.po +1 -1
  592. wagtail/contrib/simple_translation/locale/ko/LC_MESSAGES/django.po +1 -1
  593. wagtail/contrib/simple_translation/locale/lt/LC_MESSAGES/django.po +1 -1
  594. wagtail/contrib/simple_translation/locale/mi/LC_MESSAGES/django.po +1 -1
  595. wagtail/contrib/simple_translation/locale/mn/LC_MESSAGES/django.po +1 -1
  596. wagtail/contrib/simple_translation/locale/nb/LC_MESSAGES/django.po +1 -1
  597. wagtail/contrib/simple_translation/locale/nl/LC_MESSAGES/django.mo +0 -0
  598. wagtail/contrib/simple_translation/locale/nl/LC_MESSAGES/django.po +6 -3
  599. wagtail/contrib/simple_translation/locale/pl/LC_MESSAGES/django.po +1 -1
  600. wagtail/contrib/simple_translation/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  601. wagtail/contrib/simple_translation/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  602. wagtail/contrib/simple_translation/locale/ro/LC_MESSAGES/django.po +1 -1
  603. wagtail/contrib/simple_translation/locale/ru/LC_MESSAGES/django.mo +0 -0
  604. wagtail/contrib/simple_translation/locale/ru/LC_MESSAGES/django.po +6 -3
  605. wagtail/contrib/simple_translation/locale/sl/LC_MESSAGES/django.po +1 -1
  606. wagtail/contrib/simple_translation/locale/sv/LC_MESSAGES/django.po +1 -1
  607. wagtail/contrib/simple_translation/locale/uk/LC_MESSAGES/django.po +1 -1
  608. wagtail/contrib/simple_translation/locale/vi/LC_MESSAGES/django.po +1 -1
  609. wagtail/contrib/simple_translation/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  610. wagtail/contrib/simple_translation/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  611. wagtail/contrib/simple_translation/models.py +2 -1
  612. wagtail/contrib/styleguide/locale/af/LC_MESSAGES/django.po +1 -1
  613. wagtail/contrib/styleguide/locale/ar/LC_MESSAGES/django.po +1 -1
  614. wagtail/contrib/styleguide/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  615. wagtail/contrib/styleguide/locale/be/LC_MESSAGES/django.po +1 -1
  616. wagtail/contrib/styleguide/locale/bg/LC_MESSAGES/django.po +1 -1
  617. wagtail/contrib/styleguide/locale/bn/LC_MESSAGES/django.po +1 -1
  618. wagtail/contrib/styleguide/locale/ca/LC_MESSAGES/django.po +1 -1
  619. wagtail/contrib/styleguide/locale/cs/LC_MESSAGES/django.po +1 -1
  620. wagtail/contrib/styleguide/locale/cy/LC_MESSAGES/django.po +1 -1
  621. wagtail/contrib/styleguide/locale/da/LC_MESSAGES/django.po +1 -1
  622. wagtail/contrib/styleguide/locale/de/LC_MESSAGES/django.po +1 -1
  623. wagtail/contrib/styleguide/locale/dv/LC_MESSAGES/django.po +1 -1
  624. wagtail/contrib/styleguide/locale/el/LC_MESSAGES/django.po +1 -1
  625. wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +7 -7
  626. wagtail/contrib/styleguide/locale/en_IN/LC_MESSAGES/django.po +1 -1
  627. wagtail/contrib/styleguide/locale/es/LC_MESSAGES/django.po +1 -1
  628. wagtail/contrib/styleguide/locale/es_419/LC_MESSAGES/django.po +1 -1
  629. wagtail/contrib/styleguide/locale/es_VE/LC_MESSAGES/django.po +1 -1
  630. wagtail/contrib/styleguide/locale/et/LC_MESSAGES/django.po +1 -1
  631. wagtail/contrib/styleguide/locale/fa/LC_MESSAGES/django.po +1 -1
  632. wagtail/contrib/styleguide/locale/fi/LC_MESSAGES/django.po +1 -1
  633. wagtail/contrib/styleguide/locale/fr/LC_MESSAGES/django.po +1 -1
  634. wagtail/contrib/styleguide/locale/gl/LC_MESSAGES/django.po +1 -1
  635. wagtail/contrib/styleguide/locale/he_IL/LC_MESSAGES/django.po +1 -1
  636. wagtail/contrib/styleguide/locale/hi/LC_MESSAGES/django.po +1 -1
  637. wagtail/contrib/styleguide/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  638. wagtail/contrib/styleguide/locale/ht/LC_MESSAGES/django.po +1 -1
  639. wagtail/contrib/styleguide/locale/hu/LC_MESSAGES/django.po +1 -1
  640. wagtail/contrib/styleguide/locale/id_ID/LC_MESSAGES/django.po +1 -1
  641. wagtail/contrib/styleguide/locale/is_IS/LC_MESSAGES/django.po +1 -1
  642. wagtail/contrib/styleguide/locale/it/LC_MESSAGES/django.po +1 -1
  643. wagtail/contrib/styleguide/locale/ja/LC_MESSAGES/django.po +1 -1
  644. wagtail/contrib/styleguide/locale/ka/LC_MESSAGES/django.po +1 -1
  645. wagtail/contrib/styleguide/locale/ko/LC_MESSAGES/django.po +1 -1
  646. wagtail/contrib/styleguide/locale/lt/LC_MESSAGES/django.po +1 -1
  647. wagtail/contrib/styleguide/locale/lv/LC_MESSAGES/django.po +1 -1
  648. wagtail/contrib/styleguide/locale/mi/LC_MESSAGES/django.po +1 -1
  649. wagtail/contrib/styleguide/locale/mn/LC_MESSAGES/django.po +1 -1
  650. wagtail/contrib/styleguide/locale/my/LC_MESSAGES/django.po +1 -1
  651. wagtail/contrib/styleguide/locale/nb/LC_MESSAGES/django.po +1 -1
  652. wagtail/contrib/styleguide/locale/nl/LC_MESSAGES/django.po +1 -1
  653. wagtail/contrib/styleguide/locale/pl/LC_MESSAGES/django.po +1 -1
  654. wagtail/contrib/styleguide/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  655. wagtail/contrib/styleguide/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  656. wagtail/contrib/styleguide/locale/ro/LC_MESSAGES/django.po +1 -1
  657. wagtail/contrib/styleguide/locale/ru/LC_MESSAGES/django.po +1 -1
  658. wagtail/contrib/styleguide/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  659. wagtail/contrib/styleguide/locale/sl/LC_MESSAGES/django.po +1 -1
  660. wagtail/contrib/styleguide/locale/sv/LC_MESSAGES/django.po +1 -1
  661. wagtail/contrib/styleguide/locale/ta/LC_MESSAGES/django.po +1 -1
  662. wagtail/contrib/styleguide/locale/tet/LC_MESSAGES/django.po +1 -1
  663. wagtail/contrib/styleguide/locale/th/LC_MESSAGES/django.po +1 -1
  664. wagtail/contrib/styleguide/locale/tr/LC_MESSAGES/django.po +1 -1
  665. wagtail/contrib/styleguide/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  666. wagtail/contrib/styleguide/locale/uk/LC_MESSAGES/django.po +1 -1
  667. wagtail/contrib/styleguide/locale/vi/LC_MESSAGES/django.po +1 -1
  668. wagtail/contrib/styleguide/locale/zh/LC_MESSAGES/django.po +1 -1
  669. wagtail/contrib/styleguide/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  670. wagtail/contrib/styleguide/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  671. wagtail/contrib/table_block/locale/ar/LC_MESSAGES/django.po +1 -1
  672. wagtail/contrib/table_block/locale/be/LC_MESSAGES/django.po +1 -1
  673. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +1 -1
  674. wagtail/contrib/table_block/locale/cs/LC_MESSAGES/django.po +1 -1
  675. wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +1 -1
  676. wagtail/contrib/table_block/locale/de/LC_MESSAGES/django.po +1 -1
  677. wagtail/contrib/table_block/locale/dv/LC_MESSAGES/django.po +1 -1
  678. wagtail/contrib/table_block/locale/el/LC_MESSAGES/django.po +1 -1
  679. wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +1 -1
  680. wagtail/contrib/table_block/locale/en_IN/LC_MESSAGES/django.po +1 -1
  681. wagtail/contrib/table_block/locale/es/LC_MESSAGES/django.po +1 -1
  682. wagtail/contrib/table_block/locale/et/LC_MESSAGES/django.po +1 -1
  683. wagtail/contrib/table_block/locale/fa/LC_MESSAGES/django.po +1 -1
  684. wagtail/contrib/table_block/locale/fi/LC_MESSAGES/django.po +1 -1
  685. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.po +1 -1
  686. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.po +1 -1
  687. wagtail/contrib/table_block/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  688. wagtail/contrib/table_block/locale/ht/LC_MESSAGES/django.po +1 -1
  689. wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +1 -1
  690. wagtail/contrib/table_block/locale/id_ID/LC_MESSAGES/django.po +1 -1
  691. wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
  692. wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +1 -1
  693. wagtail/contrib/table_block/locale/ja/LC_MESSAGES/django.po +1 -1
  694. wagtail/contrib/table_block/locale/ko/LC_MESSAGES/django.po +1 -1
  695. wagtail/contrib/table_block/locale/lt/LC_MESSAGES/django.po +1 -1
  696. wagtail/contrib/table_block/locale/lv/LC_MESSAGES/django.po +1 -1
  697. wagtail/contrib/table_block/locale/mi/LC_MESSAGES/django.po +1 -1
  698. wagtail/contrib/table_block/locale/mn/LC_MESSAGES/django.po +1 -1
  699. wagtail/contrib/table_block/locale/my/LC_MESSAGES/django.po +1 -1
  700. wagtail/contrib/table_block/locale/nb/LC_MESSAGES/django.po +1 -1
  701. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.po +1 -1
  702. wagtail/contrib/table_block/locale/pl/LC_MESSAGES/django.po +1 -1
  703. wagtail/contrib/table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  704. wagtail/contrib/table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  705. wagtail/contrib/table_block/locale/ro/LC_MESSAGES/django.po +1 -1
  706. wagtail/contrib/table_block/locale/ru/LC_MESSAGES/django.po +1 -1
  707. wagtail/contrib/table_block/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  708. wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.po +1 -1
  709. wagtail/contrib/table_block/locale/sv/LC_MESSAGES/django.po +1 -1
  710. wagtail/contrib/table_block/locale/tet/LC_MESSAGES/django.po +1 -1
  711. wagtail/contrib/table_block/locale/th/LC_MESSAGES/django.po +1 -1
  712. wagtail/contrib/table_block/locale/tr/LC_MESSAGES/django.po +1 -1
  713. wagtail/contrib/table_block/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  714. wagtail/contrib/table_block/locale/uk/LC_MESSAGES/django.po +1 -1
  715. wagtail/contrib/table_block/locale/vi/LC_MESSAGES/django.po +1 -1
  716. wagtail/contrib/table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  717. wagtail/contrib/table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  718. wagtail/contrib/table_block/static/table_block/js/table.js +1 -1
  719. wagtail/contrib/typed_table_block/blocks.py +19 -0
  720. wagtail/contrib/typed_table_block/locale/ar/LC_MESSAGES/django.po +1 -1
  721. wagtail/contrib/typed_table_block/locale/be/LC_MESSAGES/django.po +1 -1
  722. wagtail/contrib/typed_table_block/locale/ca/LC_MESSAGES/django.po +1 -1
  723. wagtail/contrib/typed_table_block/locale/cy/LC_MESSAGES/django.po +1 -1
  724. wagtail/contrib/typed_table_block/locale/de/LC_MESSAGES/django.po +1 -1
  725. wagtail/contrib/typed_table_block/locale/dv/LC_MESSAGES/django.po +1 -1
  726. wagtail/contrib/typed_table_block/locale/el/LC_MESSAGES/django.po +1 -1
  727. wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +10 -10
  728. wagtail/contrib/typed_table_block/locale/es/LC_MESSAGES/django.po +1 -1
  729. wagtail/contrib/typed_table_block/locale/fa/LC_MESSAGES/django.po +1 -1
  730. wagtail/contrib/typed_table_block/locale/fi/LC_MESSAGES/django.po +1 -1
  731. wagtail/contrib/typed_table_block/locale/fr/LC_MESSAGES/django.po +1 -1
  732. wagtail/contrib/typed_table_block/locale/gl/LC_MESSAGES/django.po +1 -1
  733. wagtail/contrib/typed_table_block/locale/hu/LC_MESSAGES/django.po +1 -1
  734. wagtail/contrib/typed_table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
  735. wagtail/contrib/typed_table_block/locale/it/LC_MESSAGES/django.po +1 -1
  736. wagtail/contrib/typed_table_block/locale/ko/LC_MESSAGES/django.po +1 -1
  737. wagtail/contrib/typed_table_block/locale/lt/LC_MESSAGES/django.po +1 -1
  738. wagtail/contrib/typed_table_block/locale/nl/LC_MESSAGES/django.po +1 -1
  739. wagtail/contrib/typed_table_block/locale/pl/LC_MESSAGES/django.po +1 -1
  740. wagtail/contrib/typed_table_block/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  741. wagtail/contrib/typed_table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  742. wagtail/contrib/typed_table_block/locale/ro/LC_MESSAGES/django.po +1 -1
  743. wagtail/contrib/typed_table_block/locale/ru/LC_MESSAGES/django.po +1 -1
  744. wagtail/contrib/typed_table_block/locale/sl/LC_MESSAGES/django.po +1 -1
  745. wagtail/contrib/typed_table_block/locale/sv/LC_MESSAGES/django.po +1 -1
  746. wagtail/contrib/typed_table_block/locale/th/LC_MESSAGES/django.po +1 -1
  747. wagtail/contrib/typed_table_block/locale/uk/LC_MESSAGES/django.po +1 -1
  748. wagtail/contrib/typed_table_block/locale/zh/LC_MESSAGES/django.po +1 -1
  749. wagtail/contrib/typed_table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  750. wagtail/contrib/typed_table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  751. wagtail/contrib/typed_table_block/static/typed_table_block/js/typed_table_block.js +1 -1
  752. wagtail/contrib/typed_table_block/tests.py +38 -0
  753. wagtail/coreutils.py +1 -1
  754. wagtail/documents/__init__.py +1 -1
  755. wagtail/documents/locale/af/LC_MESSAGES/django.po +1 -1
  756. wagtail/documents/locale/ar/LC_MESSAGES/django.po +1 -1
  757. wagtail/documents/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  758. wagtail/documents/locale/be/LC_MESSAGES/django.po +1 -1
  759. wagtail/documents/locale/bg/LC_MESSAGES/django.po +1 -1
  760. wagtail/documents/locale/bn/LC_MESSAGES/django.po +1 -1
  761. wagtail/documents/locale/ca/LC_MESSAGES/django.po +1 -1
  762. wagtail/documents/locale/cs/LC_MESSAGES/django.po +1 -1
  763. wagtail/documents/locale/cy/LC_MESSAGES/django.po +1 -1
  764. wagtail/documents/locale/da/LC_MESSAGES/django.po +1 -1
  765. wagtail/documents/locale/de/LC_MESSAGES/django.po +1 -1
  766. wagtail/documents/locale/dv/LC_MESSAGES/django.po +1 -1
  767. wagtail/documents/locale/el/LC_MESSAGES/django.po +1 -1
  768. wagtail/documents/locale/en/LC_MESSAGES/django.po +8 -8
  769. wagtail/documents/locale/en_IN/LC_MESSAGES/django.po +1 -1
  770. wagtail/documents/locale/es/LC_MESSAGES/django.po +1 -1
  771. wagtail/documents/locale/es_419/LC_MESSAGES/django.po +1 -1
  772. wagtail/documents/locale/es_VE/LC_MESSAGES/django.po +1 -1
  773. wagtail/documents/locale/et/LC_MESSAGES/django.po +1 -1
  774. wagtail/documents/locale/eu/LC_MESSAGES/django.po +1 -1
  775. wagtail/documents/locale/fa/LC_MESSAGES/django.po +1 -1
  776. wagtail/documents/locale/fi/LC_MESSAGES/django.po +1 -1
  777. wagtail/documents/locale/fr/LC_MESSAGES/django.po +1 -1
  778. wagtail/documents/locale/gl/LC_MESSAGES/django.po +1 -1
  779. wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +1 -1
  780. wagtail/documents/locale/hi/LC_MESSAGES/django.po +1 -1
  781. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  782. wagtail/documents/locale/ht/LC_MESSAGES/django.po +1 -1
  783. wagtail/documents/locale/hu/LC_MESSAGES/django.po +1 -1
  784. wagtail/documents/locale/id_ID/LC_MESSAGES/django.po +1 -1
  785. wagtail/documents/locale/is_IS/LC_MESSAGES/django.po +1 -1
  786. wagtail/documents/locale/it/LC_MESSAGES/django.po +1 -1
  787. wagtail/documents/locale/ja/LC_MESSAGES/django.po +1 -1
  788. wagtail/documents/locale/ka/LC_MESSAGES/django.po +1 -1
  789. wagtail/documents/locale/ko/LC_MESSAGES/django.po +1 -1
  790. wagtail/documents/locale/lt/LC_MESSAGES/django.po +1 -1
  791. wagtail/documents/locale/lv/LC_MESSAGES/django.po +1 -1
  792. wagtail/documents/locale/mi/LC_MESSAGES/django.po +1 -1
  793. wagtail/documents/locale/mn/LC_MESSAGES/django.po +1 -1
  794. wagtail/documents/locale/my/LC_MESSAGES/django.po +1 -1
  795. wagtail/documents/locale/nb/LC_MESSAGES/django.po +1 -1
  796. wagtail/documents/locale/nl/LC_MESSAGES/django.po +1 -1
  797. wagtail/documents/locale/pl/LC_MESSAGES/django.po +1 -1
  798. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  799. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  800. wagtail/documents/locale/ro/LC_MESSAGES/django.po +1 -1
  801. wagtail/documents/locale/ru/LC_MESSAGES/django.po +1 -1
  802. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  803. wagtail/documents/locale/sl/LC_MESSAGES/django.mo +0 -0
  804. wagtail/documents/locale/sl/LC_MESSAGES/django.po +21 -1
  805. wagtail/documents/locale/sr/LC_MESSAGES/django.po +1 -1
  806. wagtail/documents/locale/sv/LC_MESSAGES/django.po +1 -1
  807. wagtail/documents/locale/ta/LC_MESSAGES/django.po +1 -1
  808. wagtail/documents/locale/tet/LC_MESSAGES/django.po +1 -1
  809. wagtail/documents/locale/th/LC_MESSAGES/django.po +1 -1
  810. wagtail/documents/locale/tr/LC_MESSAGES/django.po +1 -1
  811. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  812. wagtail/documents/locale/uk/LC_MESSAGES/django.po +1 -1
  813. wagtail/documents/locale/vi/LC_MESSAGES/django.po +1 -1
  814. wagtail/documents/locale/zh/LC_MESSAGES/django.po +1 -1
  815. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  816. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  817. wagtail/documents/models.py +5 -1
  818. wagtail/documents/static/wagtaildocs/js/document-chooser-modal.js +1 -1
  819. wagtail/documents/static/wagtaildocs/js/document-chooser-telepath.js +1 -1
  820. wagtail/documents/static/wagtaildocs/js/document-chooser.js +1 -1
  821. wagtail/documents/tests/test_models.py +5 -1
  822. wagtail/embeds/apps.py +2 -0
  823. wagtail/embeds/embeds.py +12 -14
  824. wagtail/embeds/finders/__init__.py +2 -0
  825. wagtail/embeds/finders/facebook.py +17 -33
  826. wagtail/embeds/finders/instagram.py +19 -16
  827. wagtail/embeds/locale/ar/LC_MESSAGES/django.po +1 -1
  828. wagtail/embeds/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  829. wagtail/embeds/locale/be/LC_MESSAGES/django.po +1 -1
  830. wagtail/embeds/locale/bg/LC_MESSAGES/django.po +1 -1
  831. wagtail/embeds/locale/bn/LC_MESSAGES/django.po +1 -1
  832. wagtail/embeds/locale/ca/LC_MESSAGES/django.po +1 -1
  833. wagtail/embeds/locale/cs/LC_MESSAGES/django.po +1 -1
  834. wagtail/embeds/locale/cy/LC_MESSAGES/django.po +1 -1
  835. wagtail/embeds/locale/da/LC_MESSAGES/django.po +1 -1
  836. wagtail/embeds/locale/de/LC_MESSAGES/django.po +1 -1
  837. wagtail/embeds/locale/dv/LC_MESSAGES/django.po +1 -1
  838. wagtail/embeds/locale/el/LC_MESSAGES/django.po +1 -1
  839. wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
  840. wagtail/embeds/locale/es/LC_MESSAGES/django.po +1 -1
  841. wagtail/embeds/locale/es_419/LC_MESSAGES/django.po +1 -1
  842. wagtail/embeds/locale/et/LC_MESSAGES/django.po +1 -1
  843. wagtail/embeds/locale/fa/LC_MESSAGES/django.po +1 -1
  844. wagtail/embeds/locale/fi/LC_MESSAGES/django.po +1 -1
  845. wagtail/embeds/locale/fr/LC_MESSAGES/django.po +1 -1
  846. wagtail/embeds/locale/gl/LC_MESSAGES/django.po +1 -1
  847. wagtail/embeds/locale/he_IL/LC_MESSAGES/django.po +1 -1
  848. wagtail/embeds/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  849. wagtail/embeds/locale/ht/LC_MESSAGES/django.po +1 -1
  850. wagtail/embeds/locale/hu/LC_MESSAGES/django.po +1 -1
  851. wagtail/embeds/locale/id_ID/LC_MESSAGES/django.po +1 -1
  852. wagtail/embeds/locale/is_IS/LC_MESSAGES/django.po +1 -1
  853. wagtail/embeds/locale/it/LC_MESSAGES/django.po +1 -1
  854. wagtail/embeds/locale/ja/LC_MESSAGES/django.po +1 -1
  855. wagtail/embeds/locale/ko/LC_MESSAGES/django.po +1 -1
  856. wagtail/embeds/locale/lt/LC_MESSAGES/django.po +1 -1
  857. wagtail/embeds/locale/lv/LC_MESSAGES/django.po +1 -1
  858. wagtail/embeds/locale/mi/LC_MESSAGES/django.po +1 -1
  859. wagtail/embeds/locale/mn/LC_MESSAGES/django.po +1 -1
  860. wagtail/embeds/locale/my/LC_MESSAGES/django.po +1 -1
  861. wagtail/embeds/locale/nb/LC_MESSAGES/django.po +1 -1
  862. wagtail/embeds/locale/nl/LC_MESSAGES/django.po +1 -1
  863. wagtail/embeds/locale/pl/LC_MESSAGES/django.po +1 -1
  864. wagtail/embeds/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  865. wagtail/embeds/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  866. wagtail/embeds/locale/ro/LC_MESSAGES/django.po +1 -1
  867. wagtail/embeds/locale/ru/LC_MESSAGES/django.po +1 -1
  868. wagtail/embeds/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  869. wagtail/embeds/locale/sl/LC_MESSAGES/django.po +1 -1
  870. wagtail/embeds/locale/sv/LC_MESSAGES/django.po +1 -1
  871. wagtail/embeds/locale/tet/LC_MESSAGES/django.po +1 -1
  872. wagtail/embeds/locale/th/LC_MESSAGES/django.po +1 -1
  873. wagtail/embeds/locale/tr/LC_MESSAGES/django.po +1 -1
  874. wagtail/embeds/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  875. wagtail/embeds/locale/uk/LC_MESSAGES/django.po +1 -1
  876. wagtail/embeds/locale/vi/LC_MESSAGES/django.po +1 -1
  877. wagtail/embeds/locale/zh/LC_MESSAGES/django.po +1 -1
  878. wagtail/embeds/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  879. wagtail/embeds/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  880. wagtail/embeds/signal_handlers.py +13 -0
  881. wagtail/embeds/tests/test_embeds.py +7 -7
  882. wagtail/fields.py +58 -14
  883. wagtail/images/__init__.py +1 -1
  884. wagtail/images/locale/af/LC_MESSAGES/django.po +1 -1
  885. wagtail/images/locale/ar/LC_MESSAGES/django.po +1 -1
  886. wagtail/images/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  887. wagtail/images/locale/be/LC_MESSAGES/django.po +1 -1
  888. wagtail/images/locale/bg/LC_MESSAGES/django.po +1 -1
  889. wagtail/images/locale/bn/LC_MESSAGES/django.po +1 -1
  890. wagtail/images/locale/ca/LC_MESSAGES/django.po +1 -1
  891. wagtail/images/locale/cs/LC_MESSAGES/django.po +1 -1
  892. wagtail/images/locale/cy/LC_MESSAGES/django.po +1 -1
  893. wagtail/images/locale/da/LC_MESSAGES/django.po +1 -1
  894. wagtail/images/locale/de/LC_MESSAGES/django.po +1 -1
  895. wagtail/images/locale/dv/LC_MESSAGES/django.po +1 -1
  896. wagtail/images/locale/el/LC_MESSAGES/django.po +1 -1
  897. wagtail/images/locale/en/LC_MESSAGES/django.po +34 -34
  898. wagtail/images/locale/en_IN/LC_MESSAGES/django.po +1 -1
  899. wagtail/images/locale/es/LC_MESSAGES/django.po +1 -1
  900. wagtail/images/locale/es_419/LC_MESSAGES/django.po +1 -1
  901. wagtail/images/locale/et/LC_MESSAGES/django.po +1 -1
  902. wagtail/images/locale/eu/LC_MESSAGES/django.po +1 -1
  903. wagtail/images/locale/fa/LC_MESSAGES/django.mo +0 -0
  904. wagtail/images/locale/fa/LC_MESSAGES/django.po +3 -3
  905. wagtail/images/locale/fi/LC_MESSAGES/django.po +1 -1
  906. wagtail/images/locale/fr/LC_MESSAGES/django.po +1 -1
  907. wagtail/images/locale/gl/LC_MESSAGES/django.po +1 -1
  908. wagtail/images/locale/he_IL/LC_MESSAGES/django.po +1 -1
  909. wagtail/images/locale/hi/LC_MESSAGES/django.po +1 -1
  910. wagtail/images/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  911. wagtail/images/locale/ht/LC_MESSAGES/django.po +1 -1
  912. wagtail/images/locale/hu/LC_MESSAGES/django.po +1 -1
  913. wagtail/images/locale/id_ID/LC_MESSAGES/django.po +1 -1
  914. wagtail/images/locale/is_IS/LC_MESSAGES/django.po +1 -1
  915. wagtail/images/locale/it/LC_MESSAGES/django.po +1 -1
  916. wagtail/images/locale/ja/LC_MESSAGES/django.po +1 -1
  917. wagtail/images/locale/ka/LC_MESSAGES/django.po +1 -1
  918. wagtail/images/locale/ko/LC_MESSAGES/django.po +1 -1
  919. wagtail/images/locale/lt/LC_MESSAGES/django.po +1 -1
  920. wagtail/images/locale/lv/LC_MESSAGES/django.po +1 -1
  921. wagtail/images/locale/mi/LC_MESSAGES/django.po +1 -1
  922. wagtail/images/locale/mn/LC_MESSAGES/django.po +1 -1
  923. wagtail/images/locale/my/LC_MESSAGES/django.po +1 -1
  924. wagtail/images/locale/nb/LC_MESSAGES/django.po +1 -1
  925. wagtail/images/locale/nl/LC_MESSAGES/django.po +1 -1
  926. wagtail/images/locale/pl/LC_MESSAGES/django.po +1 -1
  927. wagtail/images/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  928. wagtail/images/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  929. wagtail/images/locale/ro/LC_MESSAGES/django.po +1 -1
  930. wagtail/images/locale/ru/LC_MESSAGES/django.po +1 -1
  931. wagtail/images/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  932. wagtail/images/locale/sl/LC_MESSAGES/django.mo +0 -0
  933. wagtail/images/locale/sl/LC_MESSAGES/django.po +21 -1
  934. wagtail/images/locale/sv/LC_MESSAGES/django.po +1 -1
  935. wagtail/images/locale/tet/LC_MESSAGES/django.po +1 -1
  936. wagtail/images/locale/th/LC_MESSAGES/django.po +1 -1
  937. wagtail/images/locale/tr/LC_MESSAGES/django.po +1 -1
  938. wagtail/images/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  939. wagtail/images/locale/uk/LC_MESSAGES/django.po +1 -1
  940. wagtail/images/locale/vi/LC_MESSAGES/django.po +1 -1
  941. wagtail/images/locale/zh/LC_MESSAGES/django.po +1 -1
  942. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  943. wagtail/images/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  944. wagtail/images/models.py +2 -0
  945. wagtail/images/static/wagtailimages/js/image-chooser-modal.js +1 -1
  946. wagtail/images/static/wagtailimages/js/image-chooser-telepath.js +1 -1
  947. wagtail/images/static/wagtailimages/js/image-chooser.js +1 -1
  948. wagtail/images/templates/wagtailimages/images/edit.html +4 -4
  949. wagtail/images/tests/test_admin_views.py +26 -2
  950. wagtail/images/views/chooser.py +6 -1
  951. wagtail/locale/af/LC_MESSAGES/django.po +1 -1
  952. wagtail/locale/ar/LC_MESSAGES/django.po +1 -1
  953. wagtail/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  954. wagtail/locale/be/LC_MESSAGES/django.po +1 -1
  955. wagtail/locale/bg/LC_MESSAGES/django.po +1 -1
  956. wagtail/locale/bn/LC_MESSAGES/django.po +1 -1
  957. wagtail/locale/ca/LC_MESSAGES/django.mo +0 -0
  958. wagtail/locale/ca/LC_MESSAGES/django.po +4 -1
  959. wagtail/locale/cs/LC_MESSAGES/django.po +1 -1
  960. wagtail/locale/cy/LC_MESSAGES/django.po +1 -1
  961. wagtail/locale/da/LC_MESSAGES/django.po +1 -1
  962. wagtail/locale/de/LC_MESSAGES/django.mo +0 -0
  963. wagtail/locale/de/LC_MESSAGES/django.po +4 -1
  964. wagtail/locale/dv/LC_MESSAGES/django.po +1 -1
  965. wagtail/locale/el/LC_MESSAGES/django.po +1 -1
  966. wagtail/locale/en/LC_MESSAGES/django.po +84 -80
  967. wagtail/locale/es/LC_MESSAGES/django.po +1 -1
  968. wagtail/locale/es_419/LC_MESSAGES/django.po +1 -1
  969. wagtail/locale/et/LC_MESSAGES/django.po +1 -1
  970. wagtail/locale/eu/LC_MESSAGES/django.po +1 -1
  971. wagtail/locale/fa/LC_MESSAGES/django.po +1 -1
  972. wagtail/locale/fi/LC_MESSAGES/django.mo +0 -0
  973. wagtail/locale/fi/LC_MESSAGES/django.po +65 -3
  974. wagtail/locale/fr/LC_MESSAGES/django.mo +0 -0
  975. wagtail/locale/fr/LC_MESSAGES/django.po +4 -1
  976. wagtail/locale/gl/LC_MESSAGES/django.mo +0 -0
  977. wagtail/locale/gl/LC_MESSAGES/django.po +4 -1
  978. wagtail/locale/he_IL/LC_MESSAGES/django.po +1 -1
  979. wagtail/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  980. wagtail/locale/hu/LC_MESSAGES/django.po +1 -1
  981. wagtail/locale/id_ID/LC_MESSAGES/django.po +1 -1
  982. wagtail/locale/is_IS/LC_MESSAGES/django.po +1 -1
  983. wagtail/locale/it/LC_MESSAGES/django.po +1 -1
  984. wagtail/locale/ja/LC_MESSAGES/django.po +1 -1
  985. wagtail/locale/ka/LC_MESSAGES/django.po +1 -1
  986. wagtail/locale/ko/LC_MESSAGES/django.po +1 -1
  987. wagtail/locale/lt/LC_MESSAGES/django.po +1 -1
  988. wagtail/locale/lv/LC_MESSAGES/django.po +1 -1
  989. wagtail/locale/mi/LC_MESSAGES/django.po +1 -1
  990. wagtail/locale/mn/LC_MESSAGES/django.po +1 -1
  991. wagtail/locale/my/LC_MESSAGES/django.po +1 -1
  992. wagtail/locale/nb/LC_MESSAGES/django.po +1 -1
  993. wagtail/locale/nl/LC_MESSAGES/django.mo +0 -0
  994. wagtail/locale/nl/LC_MESSAGES/django.po +4 -1
  995. wagtail/locale/pl/LC_MESSAGES/django.po +1 -1
  996. wagtail/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  997. wagtail/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  998. wagtail/locale/ro/LC_MESSAGES/django.po +1 -1
  999. wagtail/locale/ru/LC_MESSAGES/django.mo +0 -0
  1000. wagtail/locale/ru/LC_MESSAGES/django.po +5 -2
  1001. wagtail/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1002. wagtail/locale/sl/LC_MESSAGES/django.po +1 -1
  1003. wagtail/locale/sv/LC_MESSAGES/django.po +1 -1
  1004. wagtail/locale/tet/LC_MESSAGES/django.po +1 -1
  1005. wagtail/locale/th/LC_MESSAGES/django.po +1 -1
  1006. wagtail/locale/tr/LC_MESSAGES/django.po +1 -1
  1007. wagtail/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1008. wagtail/locale/uk/LC_MESSAGES/django.po +1 -1
  1009. wagtail/locale/vi/LC_MESSAGES/django.po +1 -1
  1010. wagtail/locale/zh/LC_MESSAGES/django.po +1 -1
  1011. wagtail/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1012. wagtail/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1013. wagtail/locales/locale/ar/LC_MESSAGES/django.po +1 -1
  1014. wagtail/locales/locale/be/LC_MESSAGES/django.po +1 -1
  1015. wagtail/locales/locale/bg/LC_MESSAGES/django.po +1 -1
  1016. wagtail/locales/locale/ca/LC_MESSAGES/django.po +1 -1
  1017. wagtail/locales/locale/cs/LC_MESSAGES/django.po +1 -1
  1018. wagtail/locales/locale/cy/LC_MESSAGES/django.po +1 -1
  1019. wagtail/locales/locale/da/LC_MESSAGES/django.po +1 -1
  1020. wagtail/locales/locale/de/LC_MESSAGES/django.po +1 -1
  1021. wagtail/locales/locale/dv/LC_MESSAGES/django.po +1 -1
  1022. wagtail/locales/locale/el/LC_MESSAGES/django.po +1 -1
  1023. wagtail/locales/locale/en/LC_MESSAGES/django.po +2 -2
  1024. wagtail/locales/locale/es/LC_MESSAGES/django.po +1 -1
  1025. wagtail/locales/locale/et/LC_MESSAGES/django.po +1 -1
  1026. wagtail/locales/locale/fa/LC_MESSAGES/django.po +1 -1
  1027. wagtail/locales/locale/fi/LC_MESSAGES/django.po +1 -1
  1028. wagtail/locales/locale/fr/LC_MESSAGES/django.po +1 -1
  1029. wagtail/locales/locale/gl/LC_MESSAGES/django.po +1 -1
  1030. wagtail/locales/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1031. wagtail/locales/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1032. wagtail/locales/locale/hu/LC_MESSAGES/django.po +1 -1
  1033. wagtail/locales/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1034. wagtail/locales/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1035. wagtail/locales/locale/it/LC_MESSAGES/django.po +1 -1
  1036. wagtail/locales/locale/ja/LC_MESSAGES/django.po +1 -1
  1037. wagtail/locales/locale/ko/LC_MESSAGES/django.po +1 -1
  1038. wagtail/locales/locale/lt/LC_MESSAGES/django.po +1 -1
  1039. wagtail/locales/locale/lv/LC_MESSAGES/django.po +1 -1
  1040. wagtail/locales/locale/mi/LC_MESSAGES/django.po +1 -1
  1041. wagtail/locales/locale/mn/LC_MESSAGES/django.po +1 -1
  1042. wagtail/locales/locale/my/LC_MESSAGES/django.po +1 -1
  1043. wagtail/locales/locale/nb/LC_MESSAGES/django.po +1 -1
  1044. wagtail/locales/locale/nl/LC_MESSAGES/django.po +1 -1
  1045. wagtail/locales/locale/pl/LC_MESSAGES/django.po +1 -1
  1046. wagtail/locales/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1047. wagtail/locales/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1048. wagtail/locales/locale/ro/LC_MESSAGES/django.po +1 -1
  1049. wagtail/locales/locale/ru/LC_MESSAGES/django.po +1 -1
  1050. wagtail/locales/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1051. wagtail/locales/locale/sl/LC_MESSAGES/django.po +1 -1
  1052. wagtail/locales/locale/sv/LC_MESSAGES/django.po +1 -1
  1053. wagtail/locales/locale/tet/LC_MESSAGES/django.po +1 -1
  1054. wagtail/locales/locale/th/LC_MESSAGES/django.po +1 -1
  1055. wagtail/locales/locale/tr/LC_MESSAGES/django.po +1 -1
  1056. wagtail/locales/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1057. wagtail/locales/locale/uk/LC_MESSAGES/django.po +1 -1
  1058. wagtail/locales/locale/vi/LC_MESSAGES/django.po +1 -1
  1059. wagtail/locales/locale/zh/LC_MESSAGES/django.po +1 -1
  1060. wagtail/locales/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1061. wagtail/locales/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1062. wagtail/locales/tests.py +16 -0
  1063. wagtail/locales/wagtail_hooks.py +0 -9
  1064. wagtail/migrations/0094_alter_page_locale.py +19 -0
  1065. wagtail/models/__init__.py +11 -5
  1066. wagtail/models/i18n.py +6 -1
  1067. wagtail/project_template/requirements.txt +1 -1
  1068. wagtail/search/locale/ar/LC_MESSAGES/django.po +1 -1
  1069. wagtail/search/locale/be/LC_MESSAGES/django.po +1 -1
  1070. wagtail/search/locale/ca/LC_MESSAGES/django.po +1 -1
  1071. wagtail/search/locale/cs/LC_MESSAGES/django.po +1 -1
  1072. wagtail/search/locale/cy/LC_MESSAGES/django.po +1 -1
  1073. wagtail/search/locale/de/LC_MESSAGES/django.po +1 -1
  1074. wagtail/search/locale/dv/LC_MESSAGES/django.po +1 -1
  1075. wagtail/search/locale/en/LC_MESSAGES/django.po +1 -1
  1076. wagtail/search/locale/es/LC_MESSAGES/django.po +1 -1
  1077. wagtail/search/locale/et/LC_MESSAGES/django.po +1 -1
  1078. wagtail/search/locale/fa/LC_MESSAGES/django.mo +0 -0
  1079. wagtail/search/locale/fa/LC_MESSAGES/django.po +3 -3
  1080. wagtail/search/locale/fi/LC_MESSAGES/django.po +1 -1
  1081. wagtail/search/locale/fr/LC_MESSAGES/django.po +1 -1
  1082. wagtail/search/locale/gl/LC_MESSAGES/django.po +1 -1
  1083. wagtail/search/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1084. wagtail/search/locale/ht/LC_MESSAGES/django.po +1 -1
  1085. wagtail/search/locale/hu/LC_MESSAGES/django.po +1 -1
  1086. wagtail/search/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1087. wagtail/search/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1088. wagtail/search/locale/it/LC_MESSAGES/django.po +1 -1
  1089. wagtail/search/locale/ja/LC_MESSAGES/django.po +1 -1
  1090. wagtail/search/locale/ko/LC_MESSAGES/django.po +1 -1
  1091. wagtail/search/locale/lt/LC_MESSAGES/django.po +1 -1
  1092. wagtail/search/locale/mi/LC_MESSAGES/django.po +1 -1
  1093. wagtail/search/locale/mn/LC_MESSAGES/django.po +1 -1
  1094. wagtail/search/locale/my/LC_MESSAGES/django.po +1 -1
  1095. wagtail/search/locale/nb/LC_MESSAGES/django.po +1 -1
  1096. wagtail/search/locale/nl/LC_MESSAGES/django.po +1 -1
  1097. wagtail/search/locale/pl/LC_MESSAGES/django.po +1 -1
  1098. wagtail/search/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  1099. wagtail/search/locale/pt_BR/LC_MESSAGES/django.po +3 -3
  1100. wagtail/search/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1101. wagtail/search/locale/ro/LC_MESSAGES/django.po +1 -1
  1102. wagtail/search/locale/ru/LC_MESSAGES/django.po +1 -1
  1103. wagtail/search/locale/sl/LC_MESSAGES/django.po +1 -1
  1104. wagtail/search/locale/sv/LC_MESSAGES/django.po +1 -1
  1105. wagtail/search/locale/tet/LC_MESSAGES/django.po +1 -1
  1106. wagtail/search/locale/th/LC_MESSAGES/django.po +1 -1
  1107. wagtail/search/locale/tr/LC_MESSAGES/django.po +1 -1
  1108. wagtail/search/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1109. wagtail/search/locale/uk/LC_MESSAGES/django.po +1 -1
  1110. wagtail/search/locale/vi/LC_MESSAGES/django.po +1 -1
  1111. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1112. wagtail/search/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1113. wagtail/signals.py +4 -0
  1114. wagtail/sites/locale/ar/LC_MESSAGES/django.po +1 -1
  1115. wagtail/sites/locale/be/LC_MESSAGES/django.po +1 -1
  1116. wagtail/sites/locale/bn/LC_MESSAGES/django.po +1 -1
  1117. wagtail/sites/locale/ca/LC_MESSAGES/django.po +1 -1
  1118. wagtail/sites/locale/cs/LC_MESSAGES/django.po +1 -1
  1119. wagtail/sites/locale/cy/LC_MESSAGES/django.po +1 -1
  1120. wagtail/sites/locale/da/LC_MESSAGES/django.po +1 -1
  1121. wagtail/sites/locale/de/LC_MESSAGES/django.po +1 -1
  1122. wagtail/sites/locale/dv/LC_MESSAGES/django.po +1 -1
  1123. wagtail/sites/locale/el/LC_MESSAGES/django.po +1 -1
  1124. wagtail/sites/locale/en/LC_MESSAGES/django.po +2 -2
  1125. wagtail/sites/locale/en_IN/LC_MESSAGES/django.po +1 -1
  1126. wagtail/sites/locale/es/LC_MESSAGES/django.po +1 -1
  1127. wagtail/sites/locale/es_419/LC_MESSAGES/django.po +1 -1
  1128. wagtail/sites/locale/es_VE/LC_MESSAGES/django.po +1 -1
  1129. wagtail/sites/locale/et/LC_MESSAGES/django.po +1 -1
  1130. wagtail/sites/locale/fa/LC_MESSAGES/django.po +1 -1
  1131. wagtail/sites/locale/fi/LC_MESSAGES/django.po +1 -1
  1132. wagtail/sites/locale/fr/LC_MESSAGES/django.po +1 -1
  1133. wagtail/sites/locale/gl/LC_MESSAGES/django.po +1 -1
  1134. wagtail/sites/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1135. wagtail/sites/locale/hi/LC_MESSAGES/django.po +1 -1
  1136. wagtail/sites/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1137. wagtail/sites/locale/ht/LC_MESSAGES/django.po +1 -1
  1138. wagtail/sites/locale/hu/LC_MESSAGES/django.po +1 -1
  1139. wagtail/sites/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1140. wagtail/sites/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1141. wagtail/sites/locale/it/LC_MESSAGES/django.po +1 -1
  1142. wagtail/sites/locale/ja/LC_MESSAGES/django.po +1 -1
  1143. wagtail/sites/locale/ka/LC_MESSAGES/django.po +1 -1
  1144. wagtail/sites/locale/ko/LC_MESSAGES/django.po +1 -1
  1145. wagtail/sites/locale/lt/LC_MESSAGES/django.po +1 -1
  1146. wagtail/sites/locale/lv/LC_MESSAGES/django.po +1 -1
  1147. wagtail/sites/locale/mi/LC_MESSAGES/django.po +1 -1
  1148. wagtail/sites/locale/mn/LC_MESSAGES/django.po +1 -1
  1149. wagtail/sites/locale/my/LC_MESSAGES/django.po +1 -1
  1150. wagtail/sites/locale/nb/LC_MESSAGES/django.po +1 -1
  1151. wagtail/sites/locale/nl/LC_MESSAGES/django.po +1 -1
  1152. wagtail/sites/locale/pl/LC_MESSAGES/django.po +1 -1
  1153. wagtail/sites/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1154. wagtail/sites/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1155. wagtail/sites/locale/ro/LC_MESSAGES/django.po +1 -1
  1156. wagtail/sites/locale/ru/LC_MESSAGES/django.po +1 -1
  1157. wagtail/sites/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1158. wagtail/sites/locale/sl/LC_MESSAGES/django.po +1 -1
  1159. wagtail/sites/locale/sr/LC_MESSAGES/django.po +1 -1
  1160. wagtail/sites/locale/sv/LC_MESSAGES/django.po +1 -1
  1161. wagtail/sites/locale/ta/LC_MESSAGES/django.po +1 -1
  1162. wagtail/sites/locale/tet/LC_MESSAGES/django.po +1 -1
  1163. wagtail/sites/locale/th/LC_MESSAGES/django.po +1 -1
  1164. wagtail/sites/locale/tr/LC_MESSAGES/django.po +1 -1
  1165. wagtail/sites/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1166. wagtail/sites/locale/uk/LC_MESSAGES/django.po +1 -1
  1167. wagtail/sites/locale/vi/LC_MESSAGES/django.po +1 -1
  1168. wagtail/sites/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1169. wagtail/sites/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1170. wagtail/sites/tests.py +15 -0
  1171. wagtail/sites/wagtail_hooks.py +0 -9
  1172. wagtail/snippets/blocks.py +9 -1
  1173. wagtail/snippets/locale/af/LC_MESSAGES/django.po +1 -1
  1174. wagtail/snippets/locale/ar/LC_MESSAGES/django.po +1 -1
  1175. wagtail/snippets/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  1176. wagtail/snippets/locale/be/LC_MESSAGES/django.po +1 -1
  1177. wagtail/snippets/locale/bg/LC_MESSAGES/django.po +1 -1
  1178. wagtail/snippets/locale/bn/LC_MESSAGES/django.po +1 -1
  1179. wagtail/snippets/locale/ca/LC_MESSAGES/django.po +1 -1
  1180. wagtail/snippets/locale/cs/LC_MESSAGES/django.po +1 -1
  1181. wagtail/snippets/locale/cy/LC_MESSAGES/django.po +1 -1
  1182. wagtail/snippets/locale/da/LC_MESSAGES/django.po +1 -1
  1183. wagtail/snippets/locale/de/LC_MESSAGES/django.po +1 -1
  1184. wagtail/snippets/locale/dv/LC_MESSAGES/django.po +1 -1
  1185. wagtail/snippets/locale/el/LC_MESSAGES/django.po +1 -1
  1186. wagtail/snippets/locale/en/LC_MESSAGES/django.po +9 -9
  1187. wagtail/snippets/locale/en_IN/LC_MESSAGES/django.po +1 -1
  1188. wagtail/snippets/locale/es/LC_MESSAGES/django.po +1 -1
  1189. wagtail/snippets/locale/es_419/LC_MESSAGES/django.po +1 -1
  1190. wagtail/snippets/locale/es_VE/LC_MESSAGES/django.po +1 -1
  1191. wagtail/snippets/locale/et/LC_MESSAGES/django.po +1 -1
  1192. wagtail/snippets/locale/eu/LC_MESSAGES/django.po +1 -1
  1193. wagtail/snippets/locale/fa/LC_MESSAGES/django.mo +0 -0
  1194. wagtail/snippets/locale/fa/LC_MESSAGES/django.po +7 -3
  1195. wagtail/snippets/locale/fi/LC_MESSAGES/django.po +1 -1
  1196. wagtail/snippets/locale/fr/LC_MESSAGES/django.po +1 -1
  1197. wagtail/snippets/locale/gl/LC_MESSAGES/django.po +1 -1
  1198. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1199. wagtail/snippets/locale/hi/LC_MESSAGES/django.po +1 -1
  1200. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1201. wagtail/snippets/locale/ht/LC_MESSAGES/django.po +1 -1
  1202. wagtail/snippets/locale/hu/LC_MESSAGES/django.po +1 -1
  1203. wagtail/snippets/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1204. wagtail/snippets/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1205. wagtail/snippets/locale/it/LC_MESSAGES/django.po +1 -1
  1206. wagtail/snippets/locale/ja/LC_MESSAGES/django.po +1 -1
  1207. wagtail/snippets/locale/ka/LC_MESSAGES/django.po +1 -1
  1208. wagtail/snippets/locale/ko/LC_MESSAGES/django.po +1 -1
  1209. wagtail/snippets/locale/lt/LC_MESSAGES/django.po +1 -1
  1210. wagtail/snippets/locale/lv/LC_MESSAGES/django.po +1 -1
  1211. wagtail/snippets/locale/mi/LC_MESSAGES/django.po +1 -1
  1212. wagtail/snippets/locale/mn/LC_MESSAGES/django.po +1 -1
  1213. wagtail/snippets/locale/my/LC_MESSAGES/django.po +1 -1
  1214. wagtail/snippets/locale/nb/LC_MESSAGES/django.po +1 -1
  1215. wagtail/snippets/locale/nl/LC_MESSAGES/django.po +1 -1
  1216. wagtail/snippets/locale/pl/LC_MESSAGES/django.po +1 -1
  1217. wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  1218. wagtail/snippets/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1219. wagtail/snippets/locale/ro/LC_MESSAGES/django.po +1 -1
  1220. wagtail/snippets/locale/ru/LC_MESSAGES/django.po +1 -1
  1221. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1222. wagtail/snippets/locale/sl/LC_MESSAGES/django.po +1 -1
  1223. wagtail/snippets/locale/sr/LC_MESSAGES/django.po +1 -1
  1224. wagtail/snippets/locale/sv/LC_MESSAGES/django.po +1 -1
  1225. wagtail/snippets/locale/ta/LC_MESSAGES/django.po +1 -1
  1226. wagtail/snippets/locale/tet/LC_MESSAGES/django.po +1 -1
  1227. wagtail/snippets/locale/th/LC_MESSAGES/django.po +1 -1
  1228. wagtail/snippets/locale/tr/LC_MESSAGES/django.po +1 -1
  1229. wagtail/snippets/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1230. wagtail/snippets/locale/uk/LC_MESSAGES/django.po +1 -1
  1231. wagtail/snippets/locale/vi/LC_MESSAGES/django.po +1 -1
  1232. wagtail/snippets/locale/zh/LC_MESSAGES/django.po +1 -1
  1233. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1234. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1235. wagtail/snippets/permissions.py +5 -3
  1236. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
  1237. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
  1238. wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html +1 -1
  1239. wagtail/snippets/tests/test_snippets.py +84 -13
  1240. wagtail/snippets/tests/test_viewset.py +22 -0
  1241. wagtail/snippets/views/snippets.py +19 -14
  1242. wagtail/snippets/wagtail_hooks.py +2 -10
  1243. wagtail/templatetags/wagtailcore_tags.py +3 -0
  1244. wagtail/test/dummy_external_storage.py +1 -1
  1245. wagtail/test/i18n/migrations/0003_alter_clusterabletestmodel_locale_and_more.py +40 -0
  1246. wagtail/test/routablepage/models.py +4 -0
  1247. wagtail/test/snippets/migrations/0012_alter_translatablesnippet_locale.py +20 -0
  1248. wagtail/test/testapp/migrations/0038_sociallink.py +52 -0
  1249. wagtail/test/testapp/migrations/0039_alter_eventcategory_locale_and_more.py +45 -0
  1250. wagtail/test/testapp/models.py +24 -0
  1251. wagtail/test/testapp/views.py +1 -0
  1252. wagtail/test/testapp/wagtail_hooks.py +9 -0
  1253. wagtail/test/urls_multilang.py +6 -1
  1254. wagtail/test/urls_multilang_non_root.py +11 -0
  1255. wagtail/tests/streamfield_migrations/test_migrations.py +53 -12
  1256. wagtail/tests/test_audit_log.py +72 -2
  1257. wagtail/tests/test_blocks.py +103 -0
  1258. wagtail/tests/test_signals.py +49 -2
  1259. wagtail/tests/test_streamfield.py +230 -0
  1260. wagtail/tests/test_utils.py +14 -0
  1261. wagtail/tests/tests.py +5 -0
  1262. wagtail/users/apps.py +1 -0
  1263. wagtail/users/forms.py +7 -0
  1264. wagtail/users/locale/af/LC_MESSAGES/django.po +1 -1
  1265. wagtail/users/locale/ar/LC_MESSAGES/django.po +1 -1
  1266. wagtail/users/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  1267. wagtail/users/locale/be/LC_MESSAGES/django.po +1 -1
  1268. wagtail/users/locale/bg/LC_MESSAGES/django.po +1 -1
  1269. wagtail/users/locale/bn/LC_MESSAGES/django.po +1 -1
  1270. wagtail/users/locale/ca/LC_MESSAGES/django.mo +0 -0
  1271. wagtail/users/locale/ca/LC_MESSAGES/django.po +4 -1
  1272. wagtail/users/locale/cs/LC_MESSAGES/django.po +1 -1
  1273. wagtail/users/locale/cy/LC_MESSAGES/django.po +1 -1
  1274. wagtail/users/locale/da/LC_MESSAGES/django.po +1 -1
  1275. wagtail/users/locale/de/LC_MESSAGES/django.mo +0 -0
  1276. wagtail/users/locale/de/LC_MESSAGES/django.po +4 -1
  1277. wagtail/users/locale/dv/LC_MESSAGES/django.po +1 -1
  1278. wagtail/users/locale/el/LC_MESSAGES/django.po +1 -1
  1279. wagtail/users/locale/en/LC_MESSAGES/django.po +55 -50
  1280. wagtail/users/locale/es/LC_MESSAGES/django.po +1 -1
  1281. wagtail/users/locale/es_419/LC_MESSAGES/django.po +1 -1
  1282. wagtail/users/locale/es_VE/LC_MESSAGES/django.po +1 -1
  1283. wagtail/users/locale/et/LC_MESSAGES/django.po +1 -1
  1284. wagtail/users/locale/eu/LC_MESSAGES/django.po +1 -1
  1285. wagtail/users/locale/fa/LC_MESSAGES/django.mo +0 -0
  1286. wagtail/users/locale/fa/LC_MESSAGES/django.po +3 -3
  1287. wagtail/users/locale/fi/LC_MESSAGES/django.po +1 -1
  1288. wagtail/users/locale/fr/LC_MESSAGES/django.mo +0 -0
  1289. wagtail/users/locale/fr/LC_MESSAGES/django.po +4 -1
  1290. wagtail/users/locale/gl/LC_MESSAGES/django.mo +0 -0
  1291. wagtail/users/locale/gl/LC_MESSAGES/django.po +4 -1
  1292. wagtail/users/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1293. wagtail/users/locale/hi/LC_MESSAGES/django.po +1 -1
  1294. wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1295. wagtail/users/locale/ht/LC_MESSAGES/django.po +1 -1
  1296. wagtail/users/locale/hu/LC_MESSAGES/django.po +1 -1
  1297. wagtail/users/locale/hy/LC_MESSAGES/django.po +1 -1
  1298. wagtail/users/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1299. wagtail/users/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1300. wagtail/users/locale/it/LC_MESSAGES/django.po +1 -1
  1301. wagtail/users/locale/ja/LC_MESSAGES/django.po +1 -1
  1302. wagtail/users/locale/ka/LC_MESSAGES/django.po +1 -1
  1303. wagtail/users/locale/ko/LC_MESSAGES/django.po +1 -1
  1304. wagtail/users/locale/lt/LC_MESSAGES/django.po +1 -1
  1305. wagtail/users/locale/lv/LC_MESSAGES/django.po +1 -1
  1306. wagtail/users/locale/mi/LC_MESSAGES/django.po +1 -1
  1307. wagtail/users/locale/mn/LC_MESSAGES/django.po +1 -1
  1308. wagtail/users/locale/my/LC_MESSAGES/django.po +1 -1
  1309. wagtail/users/locale/nb/LC_MESSAGES/django.po +1 -1
  1310. wagtail/users/locale/nl/LC_MESSAGES/django.mo +0 -0
  1311. wagtail/users/locale/nl/LC_MESSAGES/django.po +4 -1
  1312. wagtail/users/locale/pl/LC_MESSAGES/django.po +1 -1
  1313. wagtail/users/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  1314. wagtail/users/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1315. wagtail/users/locale/ro/LC_MESSAGES/django.po +1 -1
  1316. wagtail/users/locale/ru/LC_MESSAGES/django.mo +0 -0
  1317. wagtail/users/locale/ru/LC_MESSAGES/django.po +4 -1
  1318. wagtail/users/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1319. wagtail/users/locale/sl/LC_MESSAGES/django.po +1 -1
  1320. wagtail/users/locale/sv/LC_MESSAGES/django.po +1 -1
  1321. wagtail/users/locale/tet/LC_MESSAGES/django.po +1 -1
  1322. wagtail/users/locale/th/LC_MESSAGES/django.po +1 -1
  1323. wagtail/users/locale/tr/LC_MESSAGES/django.po +1 -1
  1324. wagtail/users/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1325. wagtail/users/locale/uk/LC_MESSAGES/django.po +1 -1
  1326. wagtail/users/locale/vi/LC_MESSAGES/django.po +1 -1
  1327. wagtail/users/locale/zh/LC_MESSAGES/django.po +1 -1
  1328. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1329. wagtail/users/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1330. wagtail/users/models.py +1 -0
  1331. wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html +3 -2
  1332. wagtail/users/templatetags/wagtailusers_tags.py +9 -0
  1333. wagtail/users/tests/__init__.py +7 -1
  1334. wagtail/users/tests/test_admin_views.py +117 -32
  1335. wagtail/users/views/groups.py +4 -0
  1336. wagtail/users/views/users.py +58 -14
  1337. wagtail/users/wagtail_hooks.py +7 -123
  1338. wagtail/utils/utils.py +1 -0
  1339. wagtail/utils/version.py +5 -2
  1340. {wagtail-6.1.3.dist-info → wagtail-6.2.dist-info}/METADATA +3 -3
  1341. {wagtail-6.1.3.dist-info → wagtail-6.2.dist-info}/RECORD +1345 -1319
  1342. wagtail/admin/templates/wagtailadmin/reports/aging_pages.html +0 -58
  1343. wagtail/admin/templates/wagtailadmin/reports/page_types_usage.html +0 -18
  1344. wagtail/admin/templates/wagtailadmin/reports/site_history.html +0 -57
  1345. wagtail/admin/templates/wagtailadmin/reports/workflow.html +0 -81
  1346. wagtail/admin/templates/wagtailadmin/reports/workflow_tasks.html +0 -63
  1347. wagtail/contrib/frontend_cache/backends.py +0 -400
  1348. wagtail/contrib/redirects/templates/wagtailredirects/list.html +0 -43
  1349. wagtail/contrib/redirects/templates/wagtailredirects/reports/redirects_report.html +0 -14
  1350. wagtail/contrib/redirects/tests/test_reports_view.py +0 -82
  1351. {wagtail-6.1.3.dist-info → wagtail-6.2.dist-info}/LICENSE +0 -0
  1352. {wagtail-6.1.3.dist-info → wagtail-6.2.dist-info}/WHEEL +0 -0
  1353. {wagtail-6.1.3.dist-info → wagtail-6.2.dist-info}/entry_points.txt +0 -0
  1354. {wagtail-6.1.3.dist-info → wagtail-6.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,11 @@
1
+ /*! axe v4.8.4
2
+ * Copyright (c) 2015 - 2024 Deque Systems, Inc.
3
+ *
4
+ * Your use of this Source Code Form is subject to the terms of the Mozilla Public
5
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
6
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
+ *
8
+ * This entire copyright notice must appear in every copy of this file you
9
+ * distribute or in any file that contains substantial portions of this source
10
+ * code.
11
+ */
@@ -1 +1 @@
1
- (()=>{"use strict";var e,r={4967:(e,r,i)=>{var a=i(1669),t=i.n(a);t()((()=>{t()('[data-a11y-dialog-show="set-privacy"]').on("click",(function(){return ModalWorkflow({dialogId:"set-privacy",url:this.getAttribute("data-url"),onload:{set_privacy(e){t()("form",e.body).on("submit",(function(){return e.postForm(this.action,t()(this).serialize()),!1}));const r=t()("input[name='restriction_type'][value='password']",e.body),i=t()("input[name='restriction_type'][value='groups']",e.body),a=t()('[name="password"]',e.body).parents("[data-field-wrapper]"),o=t()("#groups-fields",e.body);function n(){r.is(":checked")?(a.show(),o.hide()):i.is(":checked")?(a.hide(),o.show()):(a.hide(),o.hide())}n(),t()("input[name='restriction_type']",e.body).on("change",n)},set_privacy_done(e,r){e.respond("setPermission",r.is_public),e.close()}},responses:{setPermission(e){e?(t()("[data-privacy-sidebar-public]").removeClass("w-hidden"),t()("[data-privacy-sidebar-private]").addClass("w-hidden"),t()(".privacy-indicator").removeClass("private").addClass("public"),t()(".privacy-indicator-icon use").attr("href","#icon-view")):(t()("[data-privacy-sidebar-public]").addClass("w-hidden"),t()("[data-privacy-sidebar-private]").removeClass("w-hidden"),t()(".privacy-indicator").removeClass("public").addClass("private"),t()(".privacy-indicator-icon use").attr("href","#icon-no-view"))}}}),!1}))}))},1669:e=>{e.exports=jQuery}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.m=r,e=[],a.O=(r,i,t,o)=>{if(!i){var n=1/0;for(c=0;c<e.length;c++){for(var[i,t,o]=e[c],s=!0,d=0;d<i.length;d++)(!1&o||n>=o)&&Object.keys(a.O).every((e=>a.O[e](i[d])))?i.splice(d--,1):(s=!1,o<n&&(n=o));if(s){e.splice(c--,1);var l=t();void 0!==l&&(r=l)}}return r}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[i,t,o]},a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var i in r)a.o(r,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},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,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=658,(()=>{var e={658:0};a.O.j=r=>0===e[r];var r=(r,i)=>{var t,o,[n,s,d]=i,l=0;if(n.some((r=>0!==e[r]))){for(t in s)a.o(s,t)&&(a.m[t]=s[t]);if(d)var c=d(a)}for(r&&r(i);l<n.length;l++)o=n[l],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(c)},i=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];i.forEach(r.bind(null,0)),i.push=r.bind(null,i.push.bind(i))})();var t=a.O(void 0,[321],(()=>a(4967)));t=a.O(t)})();
1
+ (()=>{"use strict";var e,r={4967:(e,r,i)=>{var a=i(1669),t=i.n(a);t()((()=>{t()('[data-a11y-dialog-show="set-privacy"]').on("click",(function(){return ModalWorkflow({dialogId:"set-privacy",url:this.getAttribute("data-url"),onload:{set_privacy(e){t()("form",e.body).on("submit",(function(){return e.postForm(this.action,t()(this).serialize()),!1}));const r=t()("input[name='restriction_type'][value='password']",e.body),i=t()("input[name='restriction_type'][value='groups']",e.body),a=t()('[name="password"]',e.body).parents("[data-field-wrapper]"),o=t()("#groups-fields",e.body);function n(){r.is(":checked")?(a.show(),o.hide()):i.is(":checked")?(a.hide(),o.show()):(a.hide(),o.hide())}n(),t()("input[name='restriction_type']",e.body).on("change",n)},set_privacy_done(e,r){e.respond("setPermission",r.is_public),e.close()}},responses:{setPermission(e){e?(t()("[data-privacy-sidebar-public]").removeClass("w-hidden"),t()("[data-privacy-sidebar-private]").addClass("w-hidden"),t()(".privacy-indicator").removeClass("private").addClass("public"),t()(".privacy-indicator-icon use").attr("href","#icon-view")):(t()("[data-privacy-sidebar-public]").addClass("w-hidden"),t()("[data-privacy-sidebar-private]").removeClass("w-hidden"),t()(".privacy-indicator").removeClass("public").addClass("private"),t()(".privacy-indicator-icon use").attr("href","#icon-no-view"))}}}),!1}))}))},1669:e=>{e.exports=jQuery}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={exports:{}};return r[e](o,o.exports,a),o.exports}a.m=r,e=[],a.O=(r,i,t,o)=>{if(!i){var n=1/0;for(l=0;l<e.length;l++){for(var[i,t,o]=e[l],s=!0,d=0;d<i.length;d++)(!1&o||n>=o)&&Object.keys(a.O).every((e=>a.O[e](i[d])))?i.splice(d--,1):(s=!1,o<n&&(n=o));if(s){e.splice(l--,1);var c=t();void 0!==c&&(r=c)}}return r}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[i,t,o]},a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{for(var i in r)a.o(r,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},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,r)=>Object.prototype.hasOwnProperty.call(e,r),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.j=658,(()=>{var e={658:0};a.O.j=r=>0===e[r];var r=(r,i)=>{var t,o,[n,s,d]=i,c=0;if(n.some((r=>0!==e[r]))){for(t in s)a.o(s,t)&&(a.m[t]=s[t]);if(d)var l=d(a)}for(r&&r(i);c<n.length;c++)o=n[c],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(l)},i=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];i.forEach(r.bind(null,0)),i.push=r.bind(null,i.push.bind(i))})();var t=a.O(void 0,[321],(()=>a(4967)));t=a.O(t)})();
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see sidebar.js.LICENSE.txt */
2
- (()=>{"use strict";var e,t={3769:(e,t,n)=>{n(2427),n(1458)},998:(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,[v,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 E=s&&!v,[w,y]=a.useState(!1);a.useEffect((()=>{y(!0);const e=setTimeout((()=>{y(!1)}),m);return()=>{clearTimeout(e)}}),[E]);const N=()=>{o(!s),i&&i(!s)},[_,P]=a.useState(!1),C=()=>{E&&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:E,expandingOrCollapsing:w,onHideMobile:S,onSearchClick:C,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-label":(0,c.AP)("Toggle sidebar"),"aria-expanded":d?"true":"false",className:"button sidebar-nav-toggle"+(v?" sidebar-nav-toggle--mobile":"")+(d?" sidebar-nav-toggle--open":""),type:"button",ref:l},d?a.createElement(u.A,{name:"cross"}):a.createElement(u.A,{name:"bars"})),a.createElement("div",{className:"sidebar"+(E?" sidebar--slim":"")+(v?" sidebar--mobile":"")+(v&&!d?" sidebar--hidden":"")+(v&&!d&&h?" sidebar--closed":"")},a.createElement("div",{className:"sidebar__inner",onFocus:()=>{_&&(o(!1),P(!0))},onBlur:()=>{_&&(P(!1),o(!0))}},a.createElement("div",{className:`sm:w-mt-2 ${E?"w-justify-center":"w-justify-end"} w-flex w-items-center`},a.createElement("button",{onClick:N,"aria-label":(0,c.AP)("Toggle sidebar"),"aria-expanded":E?"false":"true",type:"button",className:(E?"":"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"},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 v{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)},E=({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,v]=a.useState(!1),E=t.menuItems.filter((e=>!P(e,r))).length;a.useEffect((()=>{o?h(!0):!o&&p&&setTimeout((()=>{h(!1)}),m)}),[o]);const w="sidebar-menu-item sidebar-sub-menu-item"+(l?" sidebar-menu-item--active":"")+(o?" sidebar-sub-menu-item--open":""),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||!n,content:t.label,placement:"right"},a.createElement("button",{...t.attrs,onClick:()=>{if(!g&&E>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}),v(!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),E>0&&!g&&a.createElement("span",{className:"w-dismissible-badge w-dismissible-badge--count"},a.createElement("span",{"aria-hidden":"true"},E),a.createElement("span",{className:"w-sr-only"},1===E?(0,c.AP)("(1 new item in this menu)"):(0,c.AP)("(%(number)s new items in this menu)").replace("%(number)s",`${E}`))),a.createElement(u.A,{className:y,name:"arrow-right"}))),a.createElement(b,{isVisible:p,isOpen:o,depth:d},a.createElement("div",{className:"sidebar-sub-menu-panel"},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`},_(e,t.menuItems,n,r,i,s)),t.footerText&&a.createElement("p",{className:"sidebar-sub-menu-panel__footer"},t.footerText))))};class w{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(E,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}var y=n(2891),N=n(6508);function _(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 C(e,t){e.forEach((e=>{e.attrs["data-w-dismissible-id-value"]&&t(e),e instanceof w&&C(e.menuItems,t)}))}function S(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 C([t],(e=>{a[e.attrs["data-w-dismissible-id-value"]]=n})),Object.keys(a).length>0&&(r=a,fetch(N.HE.ADMIN_URLS?.DISMISSIBLES,{method:"PATCH",headers:{[N.HE.CSRF_HEADER_NAME]:N.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 x(e){const t={};return C(e,(e=>{t[e.attrs["data-w-dismissible-id-value"]]="data-w-dismissible-dismissed-value"in e.attrs})),t}y.Controller,Boolean;const A=({menuItems:e,accountMenuItems:t,user:n,expandingOrCollapsing:r,onHideMobile:i,slim:s,currentPath:o,navigate:l})=>{const[m,d]=a.useReducer(S,{navigationPath:"",activePath:"",dismissibles:x(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 v?n.push([t.url,r]):t instanceof w&&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)||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)}}),[]);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"},_("",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,_("",t,s,m,d,l))))},T=({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:N.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 O=n(9904),R=n(8168),k=n(8587),I=n(4146),L=n.n(I),M=n(4363),j=n(8661),D=n(4595),F=n(1458),$=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],U=["reactReduxForwardedRef"],H=[],G=[null,null];function q(e,t){var n=e[1];return[t.payload,n+1]}function K(e,t,n){(0,D.E)((function(){return e.apply(void 0,t)}),n)}function B(e,t,n,a,r,i,s){e.current=a,t.current=r,n.current=!1,i.current&&(i.current=null,s())}function W(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 V=function(){return[null,0]};function X(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,v=n.context,b=void 0===v?F.t:v,E=(0,k.A)(n,$),w=b;return function(t){var n=t.displayName||t.name||"Component",i=s(n),o=(0,R.A)({},E,{getDisplayName:s,methodName:l,renderCountProp:u,shouldHandleStateChanges:d,storeKey:h,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=E.pure,m=c?a.useMemo:function(e){return e()};function p(n){var i=(0,a.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,k.A)(n,U);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,M.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]),v=(0,a.useMemo)((function(){if(!d)return G;var e=(0,j.K)(f,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,h,p]),b=v[0],E=v[1],y=(0,a.useMemo)((function(){return h?p:(0,R.A)({},p,{subscription:b})}),[h,p,b]),N=(0,a.useReducer)(q,H,V),_=N[0][0],P=N[1];if(_&&_.error)throw _.error;var C=(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]);K(B,[S,C,A,c,T,x,E]),K(W,[d,f,b,g,S,C,A,x,E,P],[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 v=r().forwardRef((function(e,t){return r().createElement(f,(0,R.A)({},e,{reactReduxForwardedRef:t}))}));return v.displayName=i,v.WrappedComponent=t,L()(v,t)}return L()(f,t)}}var z=n(9124),Z=n(7684),J=n(6778);const Q=[function(e){return"function"==typeof e?(0,J.Qb)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,J.o6)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,J.o6)((function(t){return(0,Z.A)(e,t)})):void 0}],Y=[function(e){return"function"==typeof e?(0,J.Qb)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,J.o6)((function(){return{}}))}];function ee(e,t,n){return(0,R.A)({},n,e,t)}const te=[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 ee}}];var ne=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ae(e,t,n,a){return function(r,i){return n(e(r,i),t(a,i),i)}}function re(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),v=!u(r,i);return i=r,s=p,g&&v?(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)):v?(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 ie(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,r=t.initMergeProps,i=(0,k.A)(t,ne),s=n(e,i),o=a(e,i),l=r(e,i);return(i.pure?re:ae)(s,o,l,e,i)}var se=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function oe(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 le(e,t){return e===t}function ce(e){var t=void 0===e?{}:e,n=t.connectHOC,a=void 0===n?X:n,r=t.mapStateToPropsFactories,i=void 0===r?Y:r,s=t.mapDispatchToPropsFactories,o=void 0===s?Q:s,l=t.mergePropsFactories,c=void 0===l?te:l,u=t.selectorFactory,m=void 0===u?ie: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?le:d,h=s.areOwnPropsEqual,f=void 0===h?z.A:h,g=s.areStatePropsEqual,v=void 0===g?z.A:g,b=s.areMergedPropsEqual,E=void 0===b?z.A:b,w=(0,k.A)(s,se),y=oe(e,i,"mapStateToProps"),N=oe(t,o,"mapDispatchToProps"),_=oe(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:v,areMergedPropsEqual:E},w))}}const ue=ce();n(6338),n(3769),n(387);var me=n(2724);function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function pe(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==de(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===de(t)?t:String(t)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){var a,r,i;a=e,r=t,i=n[t],(r=pe(r))in a?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(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)(me.r);var ve="function"==typeof Symbol&&Symbol.observable||"@@observable",be=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ee={INIT:"@@redux/INIT"+be(),REPLACE:"@@redux/REPLACE"+be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+be()}};function we(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ge(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ge(1));return n(we)(e,t)}if("function"!=typeof e)throw new Error(ge(2));var r=e,i=t,s=[],o=s,l=!1;function c(){o===s&&(o=s.slice())}function u(){if(l)throw new Error(ge(3));return i}function m(e){if("function"!=typeof e)throw new Error(ge(4));if(l)throw new Error(ge(5));var t=!0;return c(),o.push(e),function(){if(t){if(l)throw new Error(ge(6));t=!1,c();var n=o.indexOf(e);o.splice(n,1),s=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ge(7));if(void 0===e.type)throw new Error(ge(8));if(l)throw new Error(ge(9));try{l=!0,i=r(i,e)}finally{l=!1}for(var t=s=o,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:Ee.INIT}),(a={dispatch:d,subscribe:m,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ge(10));r=e,d({type:Ee.REPLACE})}})[ve]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ge(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[ve]=function(){return this},e},a}function ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ne(e){return function(t){var n=t.dispatch,a=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,a,e):t(r)}}}}var _e=Ne();_e.withExtraArgument=Ne;const Pe=_e,{fetch:Ce,Headers:Se}=n.g,xe=e=>{if(e.status>=200&&e.status<300)return e;throw new Error(e.statusText)},Ae=e=>e.json(),Te=e=>((e,t)=>{const n={credentials:"same-origin",headers:new Se({Accept:"application/json","Content-Type":"application/json"}),method:e};return(a=Ce(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(xe).then(Ae);var a})("GET",e),Oe=(e,t={})=>{let n=`${N.lb.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+=N.lb.EXTRA_CHILDREN_PARAMETERS,Te(n)},Re=(e,t={})=>{let a=`${N.lb.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}`),Te(a)},ke=async(e,t)=>{const n=[];let a=100;for(;;){const r=await Re(e,{offset:n.length,...t});if(r.items.forEach((e=>n.push(e))),n.length>=r.meta.total_count||a--<=0)return n}},Ie=(...e)=>e[0];function Le(e,t,n){return(...a)=>{const r={type:e,payload:(t||Ie)(...a)};return r.payload instanceof Error&&(r.error=!0),"function"==typeof n&&(r.meta=n(...a)),r}}const Me=Le("GET_PAGE_SUCCESS",((e,t)=>({id:e,data:t}))),je=Le("GET_PAGE_FAILURE",((e,t)=>({id:e,error:t}))),De=Le("GET_CHILDREN_START",(e=>({id:e}))),Fe=Le("GET_CHILDREN_SUCCESS",((e,t,n)=>({id:e,items:t,meta:n}))),$e=Le("GET_CHILDREN_FAILURE",((e,t)=>({id:e,error:t})));function Ue(e,t=0){return n=>(n(De(e)),Oe(e,{offset:t}).then((({items:a,meta:r})=>{const i=t+a.length;n(Fe(e,a,r)),i<r.total_count&&i<N.KV&&n(Ue(e,i))}),(t=>{n($e(e,t))})))}const He=Le("GET_TRANSLATIONS_START",(e=>({id:e}))),Ge=Le("GET_TRANSLATIONS_SUCCESS",((e,t)=>({id:e,items:t}))),qe=Le("GET_TRANSLATIONS_FAILURE",((e,t)=>({id:e,error:t})));function Ke(e){return t=>(t(He(e)),ke(e,{onlyWithChildren:!0}).then((n=>{t(Ge(e,n))}),(n=>{t(qe(e,n))})))}const Be=Le("OPEN_EXPLORER",(e=>({id:e}))),We=Le("CLOSE_EXPLORER");function Ve(e){return(t,n)=>{const{nodes:a}=n(),r=a[e];t(Be(e)),r||(t(Ue(e)),1!==e&&t(Ke(e))),1!==e&&t(function(e){return t=>(e=>{const t=`${N.lb.PAGES}${e}/`;return Te(t)})(e).then((n=>{t(Me(e,n))}),(n=>{t(je(e,n))}))}(e))}}const Xe=Le("GOTO_PAGE",((e,t)=>({id:e,transition:t})));var ze=n(1688),Ze=n.n(ze);const Je=()=>r().createElement("span",null,r().createElement(u.A,{name:"spinner",className:"w-spinner"}),` ${(0,c.AP)("Loading…")}`);var Qe=n(5556),Ye=n.n(Qe),et=n(862),tt=n.n(et);const nt="push",at=({name:e,component:t,className:n,duration:a,children:i})=>r().createElement(tt(),{component:t,transitionEnterTimeout:a,transitionLeaveTimeout:a,transitionName:`w-transition-${e}`,className:n},i);at.propTypes={name:Ye().oneOf([nt,"pop"]).isRequired,component:Ye().string,className:Ye().string,duration:Ye().number,children:Ye().node},at.defaultProps={component:"div",children:null,className:null,duration:210};const rt=at,it=(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))},st=({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:it.bind(null,r,o,s,l),rel:"_blank"===i?"noreferrer":void 0,href:r,target:i},c?t:u)},ot=({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))},lt=({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(st,{href:o?N.HS.PAGES:`${N.HS.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(ot,{locale:e.meta.locale,translations:e.translations,gotoPage:a}))},ct=({status:e})=>r().createElement("span",{className:"c-status"+(e.live?" c-status--live":"")},e.status);ct.propTypes={status:Ye().shape({live:Ye().bool.isRequired,status:Ye().string.isRequired}).isRequired};const ut=ct,mt=r().createElement(u.A,{name:"folder-inverse",className:"icon--menuitem"}),dt=({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&&(N.kf.get(s.locale)||s.locale);return r().createElement("div",{className:"c-page-explorer__item"},r().createElement(st,{href:`${N.HS.PAGES}${a}/`,navigate:n,className:"c-page-explorer__item__link"},o?mt: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(ut,{status:s.status}))),r().createElement(st,{href:`${N.HS.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(st,{className:"c-page-explorer__item__action",onClick:t,href:`${N.HS.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)},pt=({page:e})=>{const t=e.children.count;return r().createElement("a",{href:`${N.HS.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 ht extends r().Component{constructor(e){super(e),this.state={transition:nt},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?nt:"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(dt,{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(Je,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(Ze(),{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(rt,{name:i,className:"c-page-explorer"},r().createElement("div",{key:t,className:"w-transition-group"},r().createElement(lt,{depth:t,page:e,onClick:this.onHeaderClick,gotoPage:n,navigate:this.props.navigate}),this.renderChildren(),e.isError||e.children.items&&e.children.count>N.KV?r().createElement(pt,{page:e}):null))))}}const ft=ht,gt=ue((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(Xe(e,t)),!i||i.isFetchingChildren||i.children.count>0||n(Ue(e)),i&&!i.isFetchingTranslations&&null==i.translations&&n(Ke(e))}}(t,n))})))((({isVisible:e,depth:t,currentPageId:n,nodes:a,gotoPage:i,onClose:s,navigate:o})=>e&&n?r().createElement(ft,{depth:t,page:a[n],nodes:a,gotoPage:i,onClose:s,navigate:o}):null)),vt={depth:0,currentPageId:null},bt="OPEN_EXPLORER",Et="CLOSE_EXPLORER";function wt(e=vt,t){switch(t.type){case bt:return{depth:0,currentPageId:t.payload.id};case Et:return vt;case"GOTO_PAGE":return{depth:e.depth+t.payload.transition,currentPageId:t.payload.id};default:return e}}const yt={id:0,isFetchingChildren:!1,isFetchingTranslations:!1,isError:!1,children:{items:[],count:0},meta:{status:{status:"",live:!1,has_unpublished_changes:!0},parent:null,children:{}}},Nt="GET_PAGE_SUCCESS",_t="GET_CHILDREN_START",Pt="GET_CHILDREN_SUCCESS",Ct="GET_TRANSLATIONS_START",St="GET_TRANSLATIONS_SUCCESS",xt="GET_PAGE_FAILURE",At="GET_CHILDREN_FAILURE",Tt="GET_TRANSLATIONS_FAILURE",Ot=(e=yt,t)=>{switch(t.type){case Nt:return{...e,...t.payload.data,isError:!1};case _t:return{...e,isFetchingChildren:!0};case Ct:return{...e,isFetchingTranslations:!0};case Pt: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 St: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 xt:case At:case Tt:return{...e,isFetchingChildren:!1,isFetchingTranslations:!0,isError:!0};default:return e}},Rt={};function kt(e=Rt,t){switch(t.type){case bt:return{...e,[t.payload.id]:{...yt}};case Nt:case _t:case Ct:case xt:case At:case Tt:return{...e,[t.payload.id]:Ot(e[t.payload.id],t)};case Pt:case St:const n={...e,[t.payload.id]:Ot(e[t.payload.id],t)};return t.payload.items.forEach((e=>{n[e.id]={...yt,...e}})),n;case Et:return Rt;default:return e}}const It=()=>we(function(e){for(var t=Object.keys(e),n={},a=0;a<t.length;a++){var r=t[a];"function"==typeof e[r]&&(n[r]=e[r])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:Ee.INIT}))throw new Error(ge(12));if(void 0===n(void 0,{type:Ee.PROBE_UNKNOWN_ACTION()}))throw new Error(ge(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var a=!1,r={},o=0;o<s.length;o++){var l=s[o],c=n[l],u=e[l],m=c(u,t);if(void 0===m)throw t&&t.type,new Error(ge(14));r[l]=m,a=a||m!==u}return(a=a||s.length!==Object.keys(e).length)?r:e}}({explorer:wt,nodes:kt}),{},ye(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),a=function(){throw new Error(ge(15))},r={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},i=t.map((function(e){return e(r)}));return a=ye.apply(void 0,i)(n.dispatch),fe(fe({},n),{},{dispatch:a})}}}(Pe),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)),Lt=gt,Mt=({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=It());const v=()=>{setTimeout((()=>{h(!1),g.current&&g.current.dispatch(We())}),m)};a.useEffect((()=>{o?(h(!0),g.current&&g.current.dispatch(Ve(n.startPageId))):!o&&p&&v()}),[o]);const E="sidebar-menu-item sidebar-page-explorer-item"+(l?" sidebar-menu-item--active":"")+(d?" sidebar-menu-item--in-sub-menu":""),w="sidebar-sub-menu-trigger-icon"+(o?" sidebar-sub-menu-trigger-icon--open":"");return a.createElement("li",{className:E},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:w,name:"arrow-right"}))),a.createElement("div",null,a.createElement(b,{isVisible:p,isOpen:o,depth:c,widthPx:485},g.current&&a.createElement(O.A,{store:g.current},a.createElement(Lt,{isVisible:p,navigate:s,onClose:v})))))},jt=({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"}))},Dt=({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(jt,{slim:t})))},Ft=({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,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)}},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"),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})))};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(T,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.LinkMenuItem",v),window.telepath.register("wagtail.sidebar.SubMenuItem",w),window.telepath.register("wagtail.sidebar.PageExplorerMenuItem",class extends v{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(Mt,{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(Dt,{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(Ft,{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(A,{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")}))}}()}))}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,a),i.loaded=!0,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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),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(998)));r=a.O(r)})();
2
+ (()=>{"use strict";var e,t={3769:(e,t,n)=>{n(2427),n(1458)},998:(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,[v,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 E=s&&!v,[w,y]=a.useState(!1);a.useEffect((()=>{y(!0);const e=setTimeout((()=>{y(!1)}),m);return()=>{clearTimeout(e)}}),[E]);const N=()=>{o(!s),i&&i(!s)},[_,P]=a.useState(!1),C=()=>{E&&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:E,expandingOrCollapsing:w,onHideMobile:S,onSearchClick:C,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-label":(0,c.AP)("Toggle sidebar"),"aria-expanded":d?"true":"false",className:"button sidebar-nav-toggle"+(v?" sidebar-nav-toggle--mobile":"")+(d?" sidebar-nav-toggle--open":""),type:"button",ref:l},d?a.createElement(u.A,{name:"cross"}):a.createElement(u.A,{name:"bars"})),a.createElement("div",{className:"sidebar"+(E?" sidebar--slim":"")+(v?" sidebar--mobile":"")+(v&&!d?" sidebar--hidden":"")+(v&&!d&&h?" sidebar--closed":"")},a.createElement("div",{className:"sidebar__inner",onFocus:()=>{_&&(o(!1),P(!0))},onBlur:()=>{_&&(P(!1),o(!0))}},a.createElement("div",{className:`sm:w-mt-2 ${E?"w-justify-center":"w-justify-end"} w-flex w-items-center`},a.createElement("button",{onClick:N,"aria-label":(0,c.AP)("Toggle sidebar"),"aria-expanded":E?"false":"true",type:"button",className:(E?"":"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"},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 v{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)},E=({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,v]=a.useState(!1),E=t.menuItems.filter((e=>!P(e,r))).length;a.useEffect((()=>{o?h(!0):!o&&p&&setTimeout((()=>{h(!1)}),m)}),[o]);const w="sidebar-menu-item sidebar-sub-menu-item"+(l?" sidebar-menu-item--active":"")+(o?" sidebar-sub-menu-item--open":""),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||!n,content:t.label,placement:"right"},a.createElement("button",{...t.attrs,onClick:()=>{if(!g&&E>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}),v(!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),E>0&&!g&&a.createElement("span",{className:"w-dismissible-badge w-dismissible-badge--count"},a.createElement("span",{"aria-hidden":"true"},E),a.createElement("span",{className:"w-sr-only"},1===E?(0,c.AP)("(1 new item in this menu)"):(0,c.AP)("(%(number)s new items in this menu)").replace("%(number)s",`${E}`))),a.createElement(u.A,{className:y,name:"arrow-right"}))),a.createElement(b,{isVisible:p,isOpen:o,depth:d},a.createElement("div",{className:"sidebar-sub-menu-panel"},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`},_(e,t.menuItems,n,r,i,s)),t.footerText&&a.createElement("p",{className:"sidebar-sub-menu-panel__footer"},t.footerText))))};class w{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(E,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}var y=n(2891),N=n(6508);function _(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 C(e,t){e.forEach((e=>{e.attrs["data-w-dismissible-id-value"]&&t(e),e instanceof w&&C(e.menuItems,t)}))}function S(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 C([t],(e=>{a[e.attrs["data-w-dismissible-id-value"]]=n})),Object.keys(a).length>0&&(r=a,fetch(N.HE.ADMIN_URLS?.DISMISSIBLES,{method:"PATCH",headers:{[N.HE.CSRF_HEADER_NAME]:N.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 x(e){const t={};return C(e,(e=>{t[e.attrs["data-w-dismissible-id-value"]]="data-w-dismissible-dismissed-value"in e.attrs})),t}y.Controller,Boolean;const A=({menuItems:e,accountMenuItems:t,user:n,expandingOrCollapsing:r,onHideMobile:i,slim:s,currentPath:o,navigate:l})=>{const[m,d]=a.useReducer(S,{navigationPath:"",activePath:"",dismissibles:x(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 v?n.push([t.url,r]):t instanceof w&&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)||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)}}),[]);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"},_("",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,_("",t,s,m,d,l))))},T=({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:N.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 O=n(9904),R=n(8168),k=n(8587),I=n(4146),L=n.n(I),M=n(4363),j=n(8661),D=n(4595),F=n(1458),$=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],U=["reactReduxForwardedRef"],H=[],G=[null,null];function q(e,t){var n=e[1];return[t.payload,n+1]}function K(e,t,n){(0,D.E)((function(){return e.apply(void 0,t)}),n)}function B(e,t,n,a,r,i,s){e.current=a,t.current=r,n.current=!1,i.current&&(i.current=null,s())}function W(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 V=function(){return[null,0]};function X(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,v=n.context,b=void 0===v?F.t:v,E=(0,k.A)(n,$),w=b;return function(t){var n=t.displayName||t.name||"Component",i=s(n),o=(0,R.A)({},E,{getDisplayName:s,methodName:l,renderCountProp:u,shouldHandleStateChanges:d,storeKey:h,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=E.pure,m=c?a.useMemo:function(e){return e()};function p(n){var i=(0,a.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,k.A)(n,U);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,M.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]),v=(0,a.useMemo)((function(){if(!d)return G;var e=(0,j.K)(f,h?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,h,p]),b=v[0],E=v[1],y=(0,a.useMemo)((function(){return h?p:(0,R.A)({},p,{subscription:b})}),[h,p,b]),N=(0,a.useReducer)(q,H,V),_=N[0][0],P=N[1];if(_&&_.error)throw _.error;var C=(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]);K(B,[S,C,A,c,T,x,E]),K(W,[d,f,b,g,S,C,A,x,E,P],[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 v=r().forwardRef((function(e,t){return r().createElement(f,(0,R.A)({},e,{reactReduxForwardedRef:t}))}));return v.displayName=i,v.WrappedComponent=t,L()(v,t)}return L()(f,t)}}var z=n(9124),Z=n(7684),J=n(6778);const Q=[function(e){return"function"==typeof e?(0,J.Qb)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,J.o6)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,J.o6)((function(t){return(0,Z.A)(e,t)})):void 0}],Y=[function(e){return"function"==typeof e?(0,J.Qb)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,J.o6)((function(){return{}}))}];function ee(e,t,n){return(0,R.A)({},n,e,t)}const te=[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 ee}}];var ne=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ae(e,t,n,a){return function(r,i){return n(e(r,i),t(a,i),i)}}function re(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),v=!u(r,i);return i=r,s=p,g&&v?(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)):v?(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 ie(e,t){var n=t.initMapStateToProps,a=t.initMapDispatchToProps,r=t.initMergeProps,i=(0,k.A)(t,ne),s=n(e,i),o=a(e,i),l=r(e,i);return(i.pure?re:ae)(s,o,l,e,i)}var se=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function oe(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 le(e,t){return e===t}function ce(e){var t=void 0===e?{}:e,n=t.connectHOC,a=void 0===n?X:n,r=t.mapStateToPropsFactories,i=void 0===r?Y:r,s=t.mapDispatchToPropsFactories,o=void 0===s?Q:s,l=t.mergePropsFactories,c=void 0===l?te:l,u=t.selectorFactory,m=void 0===u?ie: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?le:d,h=s.areOwnPropsEqual,f=void 0===h?z.A:h,g=s.areStatePropsEqual,v=void 0===g?z.A:g,b=s.areMergedPropsEqual,E=void 0===b?z.A:b,w=(0,k.A)(s,se),y=oe(e,i,"mapStateToProps"),N=oe(t,o,"mapDispatchToProps"),_=oe(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:v,areMergedPropsEqual:E},w))}}const ue=ce();n(6338),n(3769),n(387);var me=n(2724);function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function pe(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,"string");if("object"!==de(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===de(t)?t:String(t)}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){var a,r,i;a=e,r=t,i=n[t],(r=pe(r))in a?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(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)(me.r);var ve="function"==typeof Symbol&&Symbol.observable||"@@observable",be=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ee={INIT:"@@redux/INIT"+be(),REPLACE:"@@redux/REPLACE"+be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+be()}};function we(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ge(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ge(1));return n(we)(e,t)}if("function"!=typeof e)throw new Error(ge(2));var r=e,i=t,s=[],o=s,l=!1;function c(){o===s&&(o=s.slice())}function u(){if(l)throw new Error(ge(3));return i}function m(e){if("function"!=typeof e)throw new Error(ge(4));if(l)throw new Error(ge(5));var t=!0;return c(),o.push(e),function(){if(t){if(l)throw new Error(ge(6));t=!1,c();var n=o.indexOf(e);o.splice(n,1),s=null}}}function d(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ge(7));if(void 0===e.type)throw new Error(ge(8));if(l)throw new Error(ge(9));try{l=!0,i=r(i,e)}finally{l=!1}for(var t=s=o,n=0;n<t.length;n++)(0,t[n])();return e}return d({type:Ee.INIT}),(a={dispatch:d,subscribe:m,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ge(10));r=e,d({type:Ee.REPLACE})}})[ve]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ge(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[ve]=function(){return this},e},a}function ye(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Ne(e){return function(t){var n=t.dispatch,a=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,a,e):t(r)}}}}var _e=Ne();_e.withExtraArgument=Ne;const Pe=_e,{fetch:Ce,Headers:Se}=n.g,xe=e=>{if(e.status>=200&&e.status<300)return e;throw new Error(e.statusText)},Ae=e=>e.json(),Te=e=>((e,t)=>{const n={credentials:"same-origin",headers:new Se({Accept:"application/json","Content-Type":"application/json"}),method:e};return(a=Ce(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(xe).then(Ae);var a})("GET",e),Oe=(e,t={})=>{let n=`${N.lb.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+=N.lb.EXTRA_CHILDREN_PARAMETERS,Te(n)},Re=(e,t={})=>{let a=`${N.lb.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}`),Te(a)},ke=async(e,t)=>{const n=[];let a=100;for(;;){const r=await Re(e,{offset:n.length,...t});if(r.items.forEach((e=>n.push(e))),n.length>=r.meta.total_count||a--<=0)return n}},Ie=(...e)=>e[0];function Le(e,t,n){return(...a)=>{const r={type:e,payload:(t||Ie)(...a)};return r.payload instanceof Error&&(r.error=!0),"function"==typeof n&&(r.meta=n(...a)),r}}const Me=Le("GET_PAGE_SUCCESS",((e,t)=>({id:e,data:t}))),je=Le("GET_PAGE_FAILURE",((e,t)=>({id:e,error:t}))),De=Le("GET_CHILDREN_START",(e=>({id:e}))),Fe=Le("GET_CHILDREN_SUCCESS",((e,t,n)=>({id:e,items:t,meta:n}))),$e=Le("GET_CHILDREN_FAILURE",((e,t)=>({id:e,error:t})));function Ue(e,t=0){return n=>(n(De(e)),Oe(e,{offset:t}).then((({items:a,meta:r})=>{const i=t+a.length;n(Fe(e,a,r)),i<r.total_count&&i<N.KV&&n(Ue(e,i))}),(t=>{n($e(e,t))})))}const He=Le("GET_TRANSLATIONS_START",(e=>({id:e}))),Ge=Le("GET_TRANSLATIONS_SUCCESS",((e,t)=>({id:e,items:t}))),qe=Le("GET_TRANSLATIONS_FAILURE",((e,t)=>({id:e,error:t})));function Ke(e){return t=>(t(He(e)),ke(e,{onlyWithChildren:!0}).then((n=>{t(Ge(e,n))}),(n=>{t(qe(e,n))})))}const Be=Le("OPEN_EXPLORER",(e=>({id:e}))),We=Le("CLOSE_EXPLORER");function Ve(e){return(t,n)=>{const{nodes:a}=n(),r=a[e];t(Be(e)),r||(t(Ue(e)),1!==e&&t(Ke(e))),1!==e&&t(function(e){return t=>(e=>{const t=`${N.lb.PAGES}${e}/`;return Te(t)})(e).then((n=>{t(Me(e,n))}),(n=>{t(je(e,n))}))}(e))}}const Xe=Le("GOTO_PAGE",((e,t)=>({id:e,transition:t})));var ze=n(1688),Ze=n.n(ze);const Je=()=>r().createElement("span",null,r().createElement(u.A,{name:"spinner",className:"w-spinner"}),` ${(0,c.AP)("Loading…")}`);var Qe=n(5556),Ye=n.n(Qe),et=n(862),tt=n.n(et);const nt="push",at=({name:e,component:t,className:n,duration:a,children:i})=>r().createElement(tt(),{component:t,transitionEnterTimeout:a,transitionLeaveTimeout:a,transitionName:`w-transition-${e}`,className:n},i);at.propTypes={name:Ye().oneOf([nt,"pop"]).isRequired,component:Ye().string,className:Ye().string,duration:Ye().number,children:Ye().node},at.defaultProps={component:"div",children:null,className:null,duration:210};const rt=at,it=(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))},st=({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:it.bind(null,r,o,s,l),rel:"_blank"===i?"noreferrer":void 0,href:r,target:i},c?t:u)},ot=({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))},lt=({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(st,{href:o?N.HS.PAGES:`${N.HS.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(ot,{locale:e.meta.locale,translations:e.translations,gotoPage:a}))},ct=({status:e})=>r().createElement("span",{className:"c-status"+(e.live?" c-status--live":"")},e.status);ct.propTypes={status:Ye().shape({live:Ye().bool.isRequired,status:Ye().string.isRequired}).isRequired};const ut=ct,mt=r().createElement(u.A,{name:"folder-inverse",className:"icon--menuitem"}),dt=({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&&(N.kf.get(s.locale)||s.locale);return r().createElement("div",{className:"c-page-explorer__item"},r().createElement(st,{href:`${N.HS.PAGES}${a}/`,navigate:n,className:"c-page-explorer__item__link"},o?mt: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(ut,{status:s.status}))),r().createElement(st,{href:`${N.HS.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(st,{className:"c-page-explorer__item__action",onClick:t,href:`${N.HS.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)},pt=({page:e})=>{const t=e.children.count;return r().createElement("a",{href:`${N.HS.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 ht extends r().Component{constructor(e){super(e),this.state={transition:nt},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?nt:"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(dt,{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(Je,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(Ze(),{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(rt,{name:i,className:"c-page-explorer"},r().createElement("div",{key:t,className:"w-transition-group"},r().createElement(lt,{depth:t,page:e,onClick:this.onHeaderClick,gotoPage:n,navigate:this.props.navigate}),this.renderChildren(),e.isError||e.children.items&&e.children.count>N.KV?r().createElement(pt,{page:e}):null))))}}const ft=ht,gt=ue((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(Xe(e,t)),!i||i.isFetchingChildren||i.children.count>0||n(Ue(e)),i&&!i.isFetchingTranslations&&null==i.translations&&n(Ke(e))}}(t,n))})))((({isVisible:e,depth:t,currentPageId:n,nodes:a,gotoPage:i,onClose:s,navigate:o})=>e&&n?r().createElement(ft,{depth:t,page:a[n],nodes:a,gotoPage:i,onClose:s,navigate:o}):null)),vt={depth:0,currentPageId:null},bt="OPEN_EXPLORER",Et="CLOSE_EXPLORER";function wt(e=vt,t){switch(t.type){case bt:return{depth:0,currentPageId:t.payload.id};case Et:return vt;case"GOTO_PAGE":return{depth:e.depth+t.payload.transition,currentPageId:t.payload.id};default:return e}}const yt={id:0,isFetchingChildren:!1,isFetchingTranslations:!1,isError:!1,children:{items:[],count:0},meta:{status:{status:"",live:!1,has_unpublished_changes:!0},parent:null,children:{}}},Nt="GET_PAGE_SUCCESS",_t="GET_CHILDREN_START",Pt="GET_CHILDREN_SUCCESS",Ct="GET_TRANSLATIONS_START",St="GET_TRANSLATIONS_SUCCESS",xt="GET_PAGE_FAILURE",At="GET_CHILDREN_FAILURE",Tt="GET_TRANSLATIONS_FAILURE",Ot=(e=yt,t)=>{switch(t.type){case Nt:return{...e,...t.payload.data,isError:!1};case _t:return{...e,isFetchingChildren:!0};case Ct:return{...e,isFetchingTranslations:!0};case Pt: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 St: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 xt:case At:case Tt:return{...e,isFetchingChildren:!1,isFetchingTranslations:!0,isError:!0};default:return e}},Rt={};function kt(e=Rt,t){switch(t.type){case bt:return{...e,[t.payload.id]:{...yt}};case Nt:case _t:case Ct:case xt:case At:case Tt:return{...e,[t.payload.id]:Ot(e[t.payload.id],t)};case Pt:case St:const n={...e,[t.payload.id]:Ot(e[t.payload.id],t)};return t.payload.items.forEach((e=>{n[e.id]={...yt,...e}})),n;case Et:return Rt;default:return e}}const It=()=>we(function(e){for(var t=Object.keys(e),n={},a=0;a<t.length;a++){var r=t[a];"function"==typeof e[r]&&(n[r]=e[r])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:Ee.INIT}))throw new Error(ge(12));if(void 0===n(void 0,{type:Ee.PROBE_UNKNOWN_ACTION()}))throw new Error(ge(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var a=!1,r={},o=0;o<s.length;o++){var l=s[o],c=n[l],u=e[l],m=c(u,t);if(void 0===m)throw t&&t.type,new Error(ge(14));r[l]=m,a=a||m!==u}return(a=a||s.length!==Object.keys(e).length)?r:e}}({explorer:wt,nodes:kt}),{},ye(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),a=function(){throw new Error(ge(15))},r={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},i=t.map((function(e){return e(r)}));return a=ye.apply(void 0,i)(n.dispatch),fe(fe({},n),{},{dispatch:a})}}}(Pe),window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)),Lt=gt,Mt=({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=It());const v=()=>{setTimeout((()=>{h(!1),g.current&&g.current.dispatch(We())}),m)};a.useEffect((()=>{o?(h(!0),g.current&&g.current.dispatch(Ve(n.startPageId))):!o&&p&&v()}),[o]);const E="sidebar-menu-item sidebar-page-explorer-item"+(l?" sidebar-menu-item--active":"")+(d?" sidebar-menu-item--in-sub-menu":""),w="sidebar-sub-menu-trigger-icon"+(o?" sidebar-sub-menu-trigger-icon--open":"");return a.createElement("li",{className:E},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:w,name:"arrow-right"}))),a.createElement("div",null,a.createElement(b,{isVisible:p,isOpen:o,depth:c,widthPx:485},g.current&&a.createElement(O.A,{store:g.current},a.createElement(Lt,{isVisible:p,navigate:s,onClose:v})))))},jt=({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"}))},Dt=({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(jt,{slim:t})))},Ft=({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,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)}},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"),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})))};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(T,{key:this.name,item:this,path:e,slim:t,state:n,dispatch:r,navigate:i})}}),window.telepath.register("wagtail.sidebar.LinkMenuItem",v),window.telepath.register("wagtail.sidebar.SubMenuItem",w),window.telepath.register("wagtail.sidebar.PageExplorerMenuItem",class extends v{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(Mt,{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(Dt,{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(Ft,{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(A,{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")}))}}()}))}},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(998)));r=a.O(r)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e,t={6881:(e,t,r)=>{var o=r(1669),n=r.n(o),a=r(6664),i=r(2614);const s=e=>{n()("#tab-new a.task-type-choice, #tab-new a.choose-different-task-type",e.body).on("click",(function(){return e.loadUrl(this.href),!1})),n()("form.task-create",e.body).on("submit",(function(){return(0,i.Ch)(e,this,{errorContainerSelector:"#tab-new"}),!1}))},c={chooser(e,t){const r=n()("form.task-search",e.body)[0];!function t(o){n()("a.task-choice",o).on("click",(function(){return e.loadUrl(this.href),!1})),n()(".pagination a",o).on("click",(function(){const e=this.href;return r.dispatchEvent(new CustomEvent("navigate",{detail:{url:e}})),!1})),(0,a.d)(),e.body[0].addEventListener("w-swap:success",(({srcElement:e})=>t(n()(e))),{once:!0})}(e.body),s(e)},task_chosen(e,t){e.respond("taskChosen",t.result),e.close()},reshow_create_tab(e,t){n()("#tab-new",e.body).html(t.htmlFragment),s(e)}};window.TASK_CHOOSER_MODAL_ONLOAD_HANDLERS=c},1669:e=>{e.exports=jQuery}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,o),a.loaded=!0,a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var i=1/0;for(d=0;d<e.length;d++){for(var[r,n,a]=e[d],s=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](r[c])))?r.splice(c--,1):(s=!1,a<i&&(i=a));if(s){e.splice(d--,1);var l=n();void 0!==l&&(t=l)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[r,n,a]},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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.j=316,(()=>{var e={316:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)var d=c(o)}for(t&&t(r);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[321],(()=>o(6881)));n=o.O(n)})();
1
+ (()=>{"use strict";var e,t={6881:(e,t,r)=>{var o=r(1669),n=r.n(o),a=r(6664),i=r(2614);const s=e=>{n()("#tab-new a.task-type-choice, #tab-new a.choose-different-task-type",e.body).on("click",(function(){return e.loadUrl(this.href),!1})),n()("form.task-create",e.body).on("submit",(function(){return(0,i.Ch)(e,this,{errorContainerSelector:"#tab-new"}),!1}))},c={chooser(e,t){const r=n()("form.task-search",e.body)[0];!function t(o){n()("a.task-choice",o).on("click",(function(){return e.loadUrl(this.href),!1})),n()(".pagination a",o).on("click",(function(){const e=this.href;return r.dispatchEvent(new CustomEvent("navigate",{detail:{url:e}})),!1})),(0,a.d)(),e.body[0].addEventListener("w-swap:success",(({srcElement:e})=>t(n()(e))),{once:!0})}(e.body),s(e)},task_chosen(e,t){e.respond("taskChosen",t.result),e.close()},reshow_create_tab(e,t){n()("#tab-new",e.body).html(t.htmlFragment),s(e)}};window.TASK_CHOOSER_MODAL_ONLOAD_HANDLERS=c},1669:e=>{e.exports=jQuery}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,r,n,a)=>{if(!r){var i=1/0;for(u=0;u<e.length;u++){for(var[r,n,a]=e[u],s=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(o.O).every((e=>o.O[e](r[c])))?r.splice(c--,1):(s=!1,a<i&&(i=a));if(s){e.splice(u--,1);var l=n();void 0!==l&&(t=l)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,n,a]},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=316,(()=>{var e={316:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var n,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)var u=c(o)}for(t&&t(r);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(u)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var n=o.O(void 0,[321],(()=>o(6881)));n=o.O(n)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e,r={2045:(e,r,o)=>{var t=o(1669),a=o.n(t);window.createTaskChooser=function(e){const r=a()("#"+e+"-chooser"),o=r.find("[data-chooser-title]"),t=a()("#"+e),n=r.find("[data-chooser-edit-link]");a()("[data-chooser-action-choose]",r).on("click",(()=>{ModalWorkflow({url:r.data("chooserUrl"),onload:TASK_CHOOSER_MODAL_ONLOAD_HANDLERS,responses:{taskChosen(e){t.val(e.id),o.text(e.name),r.removeClass("blank"),n.attr("href",e.edit_url)}}})}))}},1669:e=>{e.exports=jQuery}},o={};function t(e){var a=o[e];if(void 0!==a)return a.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}t.m=r,e=[],t.O=(r,o,a,n)=>{if(!o){var i=1/0;for(c=0;c<e.length;c++){for(var[o,a,n]=e[c],l=!0,s=0;s<o.length;s++)(!1&n||i>=n)&&Object.keys(t.O).every((e=>t.O[e](o[s])))?o.splice(s--,1):(l=!1,n<i&&(i=n));if(l){e.splice(c--,1);var d=a();void 0!==d&&(r=d)}}return r}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[o,a,n]},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t.j=764,(()=>{var e={764:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var a,n,[i,l,s]=o,d=0;if(i.some((r=>0!==e[r]))){for(a in l)t.o(l,a)&&(t.m[a]=l[a]);if(s)var c=s(t)}for(r&&r(o);d<i.length;d++)n=i[d],t.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return t.O(c)},o=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var a=t.O(void 0,[321],(()=>t(2045)));a=t.O(a)})();
1
+ (()=>{"use strict";var e,r={2045:(e,r,o)=>{var t=o(1669),n=o.n(t);window.createTaskChooser=function(e){const r=n()("#"+e+"-chooser"),o=r.find("[data-chooser-title]"),t=n()("#"+e),a=r.find("[data-chooser-edit-link]");n()("[data-chooser-action-choose]",r).on("click",(()=>{ModalWorkflow({url:r.data("chooserUrl"),onload:TASK_CHOOSER_MODAL_ONLOAD_HANDLERS,responses:{taskChosen(e){t.val(e.id),o.text(e.name),r.removeClass("blank"),a.attr("href",e.edit_url)}}})}))}},1669:e=>{e.exports=jQuery}},o={};function t(e){var n=o[e];if(void 0!==n)return n.exports;var a=o[e]={exports:{}};return r[e](a,a.exports,t),a.exports}t.m=r,e=[],t.O=(r,o,n,a)=>{if(!o){var i=1/0;for(d=0;d<e.length;d++){for(var[o,n,a]=e[d],l=!0,s=0;s<o.length;s++)(!1&a||i>=a)&&Object.keys(t.O).every((e=>t.O[e](o[s])))?o.splice(s--,1):(l=!1,a<i&&(i=a));if(l){e.splice(d--,1);var c=n();void 0!==c&&(r=c)}}return r}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[o,n,a]},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.j=764,(()=>{var e={764:0};t.O.j=r=>0===e[r];var r=(r,o)=>{var n,a,[i,l,s]=o,c=0;if(i.some((r=>0!==e[r]))){for(n in l)t.o(l,n)&&(t.m[n]=l[n]);if(s)var d=s(t)}for(r&&r(o);c<i.length;c++)a=i[c],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(d)},o=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})();var n=t.O(void 0,[321],(()=>t(2045)));n=t.O(n)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e,t={7007:e=>{var t,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};t=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(i,n){function s(i){e.removeListener(t,o),n(i)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),i([].slice.call(arguments))}m(e,t,o,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,s)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var r=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,i,n){var s,o,r,c;if(l(i),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),r=o[t]),void 0===r)r=o[t]=i,++e._eventsCount;else if("function"==typeof r?r=o[t]=n?[i,r]:[r,i]:n?r.unshift(i):r.push(i),(s=a(e))>0&&r.length>s&&!r.warned){r.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=r.length,c=d,console&&console.warn&&console.warn(c)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},s=d.bind(n);return s.listener=i,n.wrapFn=s,s}function u(e,t,i){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?i?[s.listener||s]:[s]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(s):f(s,s.length)}function p(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function f(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}function m(e,t,i,n){if("function"==typeof e.on)n.once?e.once(t,i):e.on(t,i);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(o){n.once&&e.removeEventListener(t,s),i(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");r=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return a(this)},o.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var s="error"===e,o=this._events;if(void 0!==o)s=s&&void 0===o.error;else if(!s)return!1;if(s){var r;if(t.length>0&&(r=t[0]),r instanceof Error)throw r;var l=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw l.context=r,l}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)n(a,this,t);else{var c=a.length,d=f(a,c);for(i=0;i<c;++i)n(d[i],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return l(t),this.on(e,h(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,h(this,e,t)),this},o.prototype.removeListener=function(e,t){var i,n,s,o,r;if(l(t),void 0===(n=this._events))return this;if(void 0===(i=n[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(s=-1,o=i.length-1;o>=0;o--)if(i[o]===t||i[o].listener===t){r=i[o].listener,s=o;break}if(s<0)return this;0===s?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,s),1===i.length&&(n[e]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",e,r||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var s,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(s=o[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return u(this,e,!0)},o.prototype.rawListeners=function(e){return u(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5815:(e,t,i)=>{var n=i(6931),s=i.n(n),o=i(2427),r=i.n(o),l=i(4327),a=i(1238);class c{constructor(e,t,i,n,o,c){this.blockDef=e,this.type=e.name;const d=$(`\n <div class="w-field__wrapper" data-field-wrapper>\n <div class="${(0,l.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(d);const h=d.find("[data-streamfield-widget]").get(0);this.element=d[0],this.field=this.element.querySelector("[data-field]"),this.parentCapabilities=c||new Map,this.prefix=i;const u={attributes:this.getAttributes()};try{this.widget=this.blockDef.widget.render(h,i,i,n,this.parentCapabilities,u)}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(r().createElement(r().Fragment,null,r().createElement(a.A,{name:"comment-add"}),r().createElement(a.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)}o&&this.setError(o)}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())),e){this.field.classList.add("w-field--error"),t.querySelector(".icon").removeAttribute("hidden");const i=document.createElement("p");i.classList.add("error-message"),e.messages.forEach((e=>{const t=document.createElement("span");t.textContent=e,i.appendChild(t)})),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 d{constructor(e,t,i){this.name=e,this.widget=t,this.meta=i}render(e,t,i,n,s){return new c(this,e,t,i,n,s)}}class h{constructor(e,t){this.blockDef=e;const i=document.createElement("div");this.blockDef.meta.html?i.innerHTML=this.blockDef.meta.html:i.innerHTML=(0,l.Z)(this.blockDef.meta.text),t.replaceWith(i)}setState(e){}setError(e){}getState(){return null}getValue(){return null}focus(){}}class u{constructor(e,t){this.name=e,this.meta=t}render(e){return new h(this,e)}}var p=i(4188),f=i(4545);class m{constructor(e,t,i,n,s){const o=n||{};if(this.blockDef=e,this.type=e.name,this.childBlocks={},e.meta.formTemplate){const n=e.meta.formTemplate.replace(/__PREFIX__/g,i),r=$(n);$(t).replaceWith(r);const l=s?.blockErrors||{};this.blockDef.childBlockDefs.forEach((e=>{const t=r.find('[data-structblock-child="'+e.name+'"]').get(0),n=e.render(t,i+"-"+e.name,o[e.name],l[e.name]);this.childBlocks[e.name]=n})),this.container=r}else{const e=$(`\n <div class="${(0,l.Z)(this.blockDef.meta.classname||"")}">\n </div>\n `);$(t).replaceWith(e),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=>{const n=$(`\n <div data-contentpath="${t.name}">\n <label class="w-field__label">${(0,l.Z)(t.meta.label)}${t.meta.required?'<span class="w-required-mark">*</span>':""}</label>\n <div data-streamfield-block></div>\n </div>\n `);e.append(n);const r=n.find("[data-streamfield-block]").get(0),a=n.find("label").get(0),c=s?.blockErrors||{},d=t.render(r,i+"-"+t.name,o[t.name],c[t.name],new Map);this.childBlocks[t.name]=d,d.idForLabel&&a.setAttribute("for",d.idForLabel)})),this.container=e}}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,f.$)(t),e.messages&&(0,f.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)(0,p.$)(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(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 b{constructor(e,t,i){this.name=e,this.childBlockDefs=t,this.meta=i}render(e,t,i,n){return new m(this,e,t,i,n)}}const g={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let v;const k=new Uint8Array(16);function w(){if(!v&&(v="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!v))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return v(k)}const y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));const D=function(e,t,i){if(g.randomUUID&&!t&&!e)return g.randomUUID();const n=(e=e||{}).random||(e.rng||w)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=n[e];return t}return function(e,t=0){return y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]}(n)};var x=i(7007),C=i.n(x);const B=(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}})))};var E=i(9675);class _{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" title="${(0,l.Z)(t)}">\n <svg class="icon icon-${(0,l.Z)(this.icon)}" aria-hidden="true">\n <use href="#icon-${(0,l.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.on(this.enableEvent,(()=>{this.enable()})),this.disableEvent&&this.sequenceChild.on(this.disableEvent,(()=>{this.disable()})),this.initiallyDisabled&&this.disable()}enable(){this.dom.removeAttr("disabled")}disable(){this.dom.attr("disabled","true")}}class S extends _{enableEvent="enableMoveUp";disableEvent="disableMoveUp";initiallyDisabled=!0;icon="arrow-up";labelIdentifier="MOVE_UP";onClick(){this.sequenceChild.moveUp()}}class L extends _{enableEvent="enableMoveDown";disableEvent="disableMoveDown";initiallyDisabled=!0;icon="arrow-down";labelIdentifier="MOVE_DOWN";onClick(){this.sequenceChild.moveDown()}}class I extends _{enableEvent="enableDuplication";disableEvent="disableDuplication";icon="copy";labelIdentifier="DUPLICATE";onClick(){this.sequenceChild.duplicate({animate:!0})}}class q extends _{icon="bin";labelIdentifier="DELETE";onClick(){this.sequenceChild.delete({animate:!0})}}class M extends(C()){constructor(e,t,i,n,s,o,r,a){super(),this.blockDef=e,this.type=e.name,this.prefix=i,this.index=n,this.id=s,this.sequence=r;const c=a&&a.animate,d=a&&a.focus,h=a&&a.collapsed;this.strings=a&&a.strings||{};const u=`block-${s}-section`,p=`block-${s}-heading`,f=`block-${s}-content`,m=(0,l.Z)(this.blockDef.meta.icon),b=(0,l.Z)(this.blockDef.meta.label),g=$(`\n <div ${this.id?`data-contentpath="${(0,l.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,l.Z)(this.type||"")}">\n <input type="hidden" name="${this.prefix}-id" value="${(0,l.Z)(this.id||"")}">\n <section class="w-panel w-panel--nested" id="${u}" aria-labelledby="${p}" data-panel>\n <div class="w-panel__header">\n <a class="w-panel__anchor w-panel__anchor--prefix" href="#${u}" aria-labelledby="${p}" 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="Toggle section" aria-describedby="${p}" data-panel-toggle aria-controls="${f}" aria-expanded="true">\n <svg class="icon icon-${m} w-panel__icon" aria-hidden="true">\n <use href="#icon-${m}"></use>\n </svg>\n </button>\n <h2 class="w-panel__heading w-panel__heading--label" aria-level="3" id="${p}" data-panel-heading>\n <span data-panel-heading-text class="c-sf-block__title"></span>\n <span class="c-sf-block__type">${b}</span>\n ${e.meta.required?'<span class="w-required-mark" data-panel-required>*</span>':""}\n </h2>\n <a class="w-panel__anchor w-panel__anchor--suffix" href="#${u}" aria-labelledby="${p}">\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="${f}" class="w-panel__content">\n <div data-streamfield-block></div>\n </div>\n </section>\n </div>\n `);$(t).replaceWith(g),this.element=g.get(0);const v=g.find("[data-streamfield-block]").get(0);this.actionsContainerElement=g.find("[data-panel-controls]").get(0),this.titleElement=g.find("[data-panel-heading-text]"),this.toggleElement=this.element.querySelector("[data-panel-toggle]"),this.deletedInput=g.find(`input[name="${this.prefix}-deleted"]`),this.indexInput=g.find(`input[name="${this.prefix}-order"]`),this.addActionButton(new S(this)),this.addActionButton(new L(this)),this.addActionButton(new I(this)),this.addActionButton(new q(this));const k=new Map;k.set("duplicate",{enabled:!0,fn:this.duplicate}),k.set("split",{enabled:!0,fn:this.split.bind(this)}),k.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.block=this.blockDef.render(v,this.prefix+"-value",o,void 0,k),function(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=B.bind(null,e),s=t.classList.contains("collapsed"),o=i.querySelector('[aria-invalid="true"], .error, .w-field--error'),r=s&&!o;r&&n(!1),e.addEventListener("click",n.bind(null,void 0));const l=t.querySelector("[data-panel-heading]");l&&l.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:!r}}))}(this.element.querySelector("[data-panel-toggle]")),h&&this.collapse(),this.toggleElement.addEventListener("wagtail:panel-toggle",(()=>{const e=this.getTextLabel({maxLength:50});this.titleElement.text(e||"")}));const w=this.getTextLabel({maxLength:50});this.titleElement.text(w||""),c?(g.hide(),setTimeout((()=>{g.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.emit("enableDuplication"),this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("duplicate",{enabled:!0})}disableDuplication(){this.emit("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.emit("enableMoveUp")}disableMoveUp(){this.emit("disableMoveUp")}enableMoveDown(){this.emit("enableMoveDown")}disableMoveDown(){this.emit("disableMoveDown")}setIndex(e){this.index=e,this.indexInput.val(e)}setError(e){this.block.setError(e),e&&B(this.toggleElement,!0)}focus(e){this.block.focus(e)}getTextLabel(e){return this.block.getTextLabel?this.block.getTextLabel(e):null}collapse(){B(this.toggleElement,!1)}getDuplicatedState(){return{id:D(),value:void 0===this.block.getDuplicatedState?this.block.getState():this.block.getDuplicatedState()}}}class A{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 T{_createChild(e,t,i,n,s,o,r,l){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 o=this.prefix+"-"+this.blockCounter,r=s&&s.animate,l=s&&s.focus,a=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,E.y)(n,this.children.length).forEach((e=>{this.children[e].setIndex(e+1)})),(0,E.y)(n+1,this.inserters.length).forEach((e=>{this.inserters[e].setIndex(e+1)}));const u=this._createChild(e,d,o,n,i,t,this,{animate:r,focus:l,collapsed:a,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:r});this.inserters.splice(n+1,0,p),this.countInput.val(this.blockCounter);const f=0===n,m=n===this.children.length-1;return f||(u.enableMoveUp(),m&&this.children[n-1].enableMoveDown()),m||(u.enableMoveDown(),f&&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,E.y)(e,this.children.length).forEach((e=>{this.children[e].setIndex(e)})),(0,E.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()}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,E.y)(e,t+1).forEach((e=>{this.inserters[e].setIndex(e),this.children[e].setIndex(e)})):(0,E.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 O extends M{getState(){return{id:this.id,value:this.block.getState()}}getValue(){return this.block.getValue()}setState({value:e,id:t}){this.block.setState(e),this.id=t}setValue(e){this.block.setState(e)}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class U extends A{constructor(e,t){super(e,t),this.onRequestInsert=t&&t.onRequestInsert;const i=t&&t.animate,n=(0,l.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 R extends T{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const o=$(`\n <div class="${(0,l.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,l.Z)(i)}-count" data-streamfield-list-count value="0">\n\n <div data-streamfield-list-container></div>\n </div>\n `);$(t).replaceWith(o),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(o),this.children=[],this.inserters=[],this.blockCounter=0,this.countInput=o.find("[data-streamfield-list-count]"),this.sequenceContainer=o.find("[data-streamfield-list-container]"),this.container=o,this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach((e=>{e.collapse()})),s&&this.setError(s)}setState(e){this.clear(),e.forEach((({value:e,id:t},i)=>{this.insert(e,i,{id:t||D()})}))}_getChildDataForInsertion(){return[this.blockDef.childBlockDef,this.blockDef.initialChildState]}_createChild(e,t,i,n,s,o,r,l){return new O(e,t,i,n,s,o,r,l)}_createInsertionControl(e,t){return new U(e,t)}blockCountChanged(){super.blockCountChanged(),"number"==typeof this.blockDef.meta.maxNum&&(this.children.length>=this.blockDef.meta.maxNum?(0,E.y)(0,this.inserters.length).forEach((e=>{this.inserters[e].disable()})):(0,E.y)(0,this.inserters.length).forEach((e=>{this.inserters[e].enable()})))}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(),o=t&&t.animate;this.insert(s,e+1,{animate:o,focus:!0,collapsed:i.collapsed,id:n})}splitBlock(e,t,i,n,s){const o=this.children[e],r=s&&s.animate;o.setValue(t);const l=this.insert(i,e+1,{animate:r,focus:!0,collapsed:o.collapsed}),a=o.getContentPath(),c=l.getContentPath(),d=window.comments?.commentApp;a&&c&&d&&d.utils.selectCommentsForContentPathFactory(a)(d.store.getState()).forEach((e=>{n(e)&&d.updateContentPath(e.localId,c)}))}setError(e){if(!e)return;const t=this.container[0];(0,f.$)(t),e.messages&&(0,f.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 F{constructor(e,t,i,n){this.name=e,this.childBlockDef=t,this.initialChildState=i,this.meta=n}render(e,t,i,n){return new R(this,e,t,i,n)}}var P=i(7381),j=i(1596),N=i(2891);i(1083);const V={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)}}}};N.Controller;class Z extends M{getState(){return{type:this.type,value:this.block.getState(),id:this.id}}getDuplicatedState(){return{...super.getDuplicatedState(),type:this.type}}setState({type:e,value:t,id:i}){this.type=e,this.block.setState(t),this.id=i}getValue(){return{type:this.type,value:this.block.getValue(),id:this.id}}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class W extends A{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.canAddBlock=!0,this.disabledBlockTypes=new Set,this.tooltip=(0,P.Ay)(this.addButton.get(0),{content:this.combobox,trigger:"click",interactive:!0,theme:"dropdown",arrow:!1,placement:"bottom",plugins:[V],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,icon:e.meta.icon})))})))}renderMenu(){const e=this.blockItems;s().render(r().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()}setNewBlockRestrictions(e,t){this.canAddBlock=e,this.disabledBlockTypes=t,this.canAddBlock?this.addButton.removeAttr("disabled"):this.addButton.attr("disabled","true")}open(){this.canAddBlock&&(this.addButton.attr("aria-expanded","true"),this.tooltip.show())}close(){this.addButton.attr("aria-expanded","false"),this.tooltip.hide()}}class G extends T{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const o=$(`\n <div class="${(0,l.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,l.Z)(i)}-count" data-streamfield-stream-count value="0">\n <div data-streamfield-stream-container></div>\n </div>\n `);$(t).replaceWith(o),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(o),this.children=[],this.childBlockCounts=new Map,this.inserters=[],this.blockCounter=0,this.countInput=o.find("[data-streamfield-stream-count]"),this.sequenceContainer=o.find("[data-streamfield-stream-container]"),this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach((e=>{e.collapse()})),this.container=o,s&&this.setError(s)}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.canAddBlock=!0,this.childBlockCounts.clear(),"number"==typeof this.blockDef.meta.maxNum&&this.children.length>=this.blockDef.meta.maxNum&&(this.canAddBlock=!1),this.disabledBlockTypes=new Set;for(const e in this.blockDef.meta.blockCounts)if((0,p.$)(this.blockDef.meta.blockCounts,e)){const t=this.getBlockMax(e);"number"==typeof t&&this.getBlockCount(e)>=t&&this.disabledBlockTypes.add(e)}(0,E.y)(0,this.inserters.length).forEach((e=>{this.inserters[e].setNewBlockRestrictions(this.canAddBlock,this.disabledBlockTypes)}))}_createChild(e,t,i,n,s,o,r,l){return new Z(e,t,i,n,s,o,r,l)}_createInsertionControl(e,t){return t.groupedChildBlockDefs=this.blockDef.groupedChildBlockDefs,new W(e,t)}insert({type:e,value:t,id:i},n,s){const o=this.blockDef.childBlockDefsByName[e];return this._insert(o,t,i,n,s)}_getChildDataForInsertion({type:e}){return[this.blockDef.childBlockDefsByName[e],this.blockDef.initialChildStates[e],D()]}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 o=this.children[e],r=s&&s.animate,l=o.getState(),a=this.insert({type:l.type,id:D(),value:i},e+1,{animate:r,focus:!0,collapsed:o.collapsed});o.setState({type:l.type,id:l.id,value:t});const c=o.getContentPath(),d=a.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,f.$)(t),e.messages&&(0,f.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)(0,p.$)(e.blockErrors,t)&&this.children[t].setError(e.blockErrors[t])}}class H{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 G(this,e,t,i,n)}}const K=window.wagtailStreamField||{};K.blocks={FieldBlock:c,FieldBlockDefinition:d,StaticBlock:h,StaticBlockDefinition:u,StructBlock:m,StructBlockDefinition:b,ListBlock:R,ListBlockDefinition:F,StreamBlock:G,StreamBlockDefinition:H},window.telepath.register("wagtail.blocks.FieldBlock",d),window.telepath.register("wagtail.blocks.StaticBlock",u),window.telepath.register("wagtail.blocks.StructBlock",b),window.telepath.register("wagtail.blocks.ListBlock",F),window.telepath.register("wagtail.blocks.StreamBlock",H),window.wagtailStreamField=K}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var o=i[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=t,e=[],n.O=(t,i,s,o)=>{if(!i){var r=1/0;for(d=0;d<e.length;d++){for(var[i,s,o]=e[d],l=!0,a=0;a<i.length;a++)(!1&o||r>=o)&&Object.keys(n.O).every((e=>n.O[e](i[a])))?i.splice(a--,1):(l=!1,o<r&&(r=o));if(l){e.splice(d--,1);var c=s();void 0!==c&&(t=c)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[i,s,o]},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.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=591,(()=>{var e={591:0};n.O.j=t=>0===e[t];var t=(t,i)=>{var s,o,[r,l,a]=i,c=0;if(r.some((t=>0!==e[t]))){for(s in l)n.o(l,s)&&(n.m[s]=l[s]);if(a)var d=a(n)}for(t&&t(i);c<r.length;c++)o=r[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=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(5815)));s=n.O(s)})();
1
+ (()=>{"use strict";var e,t={7007:e=>{var t,i="object"==typeof Reflect?Reflect:null,n=i&&"function"==typeof i.apply?i.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};t=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(i,n){function s(i){e.removeListener(t,o),n(i)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",s),i([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&f(e,"error",t,{once:!0})}(e,s)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var r=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,i,n){var s,o,r,c;if(l(i),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),o=e._events),r=o[t]),void 0===r)r=o[t]=i,++e._eventsCount;else if("function"==typeof r?r=o[t]=n?[i,r]:[r,i]:n?r.unshift(i):r.push(i),(s=a(e))>0&&r.length>s&&!r.warned){r.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=r.length,c=h,console&&console.warn&&console.warn(c)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},s=h.bind(n);return s.listener=i,n.wrapFn=s,s}function u(e,t,i){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?i?[s.listener||s]:[s]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(s):m(s,s.length)}function p(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function m(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}function f(e,t,i,n){if("function"==typeof e.on)n.once?e.once(t,i):e.on(t,i);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(o){n.once&&e.removeEventListener(t,s),i(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");r=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return a(this)},o.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var s="error"===e,o=this._events;if(void 0!==o)s=s&&void 0===o.error;else if(!s)return!1;if(s){var r;if(t.length>0&&(r=t[0]),r instanceof Error)throw r;var l=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw l.context=r,l}var a=o[e];if(void 0===a)return!1;if("function"==typeof a)n(a,this,t);else{var c=a.length,h=m(a,c);for(i=0;i<c;++i)n(h[i],this,t)}return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return l(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var i,n,s,o,r;if(l(t),void 0===(n=this._events))return this;if(void 0===(i=n[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(s=-1,o=i.length-1;o>=0;o--)if(i[o]===t||i[o].listener===t){r=i[o].listener,s=o;break}if(s<0)return this;0===s?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,s),1===i.length&&(n[e]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",e,r||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var s,o=Object.keys(i);for(n=0;n<o.length;++n)"removeListener"!==(s=o[n])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return u(this,e,!0)},o.prototype.rawListeners=function(e){return u(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},5815:(e,t,i)=>{var n=i(6931),s=i.n(n),o=i(2427),r=i.n(o),l=i(4327),a=i(1238);class c{constructor(e,t,i,n,o,c){this.blockDef=e,this.type=e.name;const h=$(`\n <div class="w-field__wrapper" data-field-wrapper>\n <div class="${(0,l.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 d=h.find("[data-streamfield-widget]").get(0);this.element=h[0],this.field=this.element.querySelector("[data-field]"),this.parentCapabilities=c||new Map,this.prefix=i;const u={attributes:this.getAttributes()};try{this.widget=this.blockDef.widget.render(d,i,i,n,this.parentCapabilities,u)}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(r().createElement(r().Fragment,null,r().createElement(a.A,{name:"comment-add"}),r().createElement(a.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)}o&&this.setError(o)}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())),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 c(this,e,t,i,n,s)}}class d{constructor(e,t){this.blockDef=e;const i=document.createElement("div");this.blockDef.meta.html?i.innerHTML=this.blockDef.meta.html:i.innerHTML=(0,l.Z)(this.blockDef.meta.text),t.replaceWith(i)}setState(e){}setError(e){}getState(){return null}getValue(){return null}focus(){}}class u{constructor(e,t){this.name=e,this.meta=t}render(e){return new d(this,e)}}var p=i(4188),m=i(4545);class f{constructor(e,t,i,n,s){const o=n||{};if(this.blockDef=e,this.type=e.name,this.childBlocks={},e.meta.formTemplate){const n=e.meta.formTemplate.replace(/__PREFIX__/g,i),r=$(n);$(t).replaceWith(r);const l=s?.blockErrors||{};this.blockDef.childBlockDefs.forEach((e=>{const t=r.find('[data-structblock-child="'+e.name+'"]').get(0),n=e.render(t,i+"-"+e.name,o[e.name],l[e.name]);this.childBlocks[e.name]=n})),this.container=r}else{const e=$(`\n <div class="${(0,l.Z)(this.blockDef.meta.classname||"")}">\n </div>\n `);$(t).replaceWith(e),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=>{const n=$(`\n <div data-contentpath="${t.name}">\n <label class="w-field__label">${(0,l.Z)(t.meta.label)}${t.meta.required?'<span class="w-required-mark">*</span>':""}</label>\n <div data-streamfield-block></div>\n </div>\n `);e.append(n);const r=n.find("[data-streamfield-block]").get(0),a=n.find("label").get(0),c=s?.blockErrors||{},h=t.render(r,i+"-"+t.name,o[t.name],c[t.name],new Map);this.childBlocks[t.name]=h,h.idForLabel&&a.setAttribute("for",h.idForLabel)})),this.container=e}}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,m.$)(t),e.messages&&(0,m.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)(0,p.$)(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(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 b{constructor(e,t,i){this.name=e,this.childBlockDefs=t,this.meta=i}render(e,t,i,n){return new f(this,e,t,i,n)}}const g={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let v;const k=new Uint8Array(16);function w(){if(!v&&(v="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!v))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return v(k)}const y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));const D=function(e,t,i){if(g.randomUUID&&!t&&!e)return g.randomUUID();const n=(e=e||{}).random||(e.rng||w)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=n[e];return t}return function(e,t=0){return y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]}(n)};var x=i(7007),C=i.n(x);const _=(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}})))};var E=i(9675);class B{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" title="${(0,l.Z)(t)}">\n <svg class="icon icon-${(0,l.Z)(this.icon)}" aria-hidden="true">\n <use href="#icon-${(0,l.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.on(this.enableEvent,(()=>{this.enable()})),this.disableEvent&&this.sequenceChild.on(this.disableEvent,(()=>{this.disable()})),this.initiallyDisabled&&this.disable()}enable(){this.dom.removeAttr("disabled")}disable(){this.dom.attr("disabled","true")}}class S extends B{enableEvent="enableMoveUp";disableEvent="disableMoveUp";initiallyDisabled=!0;icon="arrow-up";labelIdentifier="MOVE_UP";onClick(){this.sequenceChild.moveUp()}}class L extends B{enableEvent="enableMoveDown";disableEvent="disableMoveDown";initiallyDisabled=!0;icon="arrow-down";labelIdentifier="MOVE_DOWN";onClick(){this.sequenceChild.moveDown()}}class I extends B{enableEvent="enableDuplication";disableEvent="disableDuplication";icon="copy";labelIdentifier="DUPLICATE";onClick(){this.sequenceChild.duplicate({animate:!0})}}class q extends B{icon="bin";labelIdentifier="DELETE";onClick(){this.sequenceChild.delete({animate:!0})}}class T extends(C()){constructor(e,t,i,n,s,o,r,a){super(),this.blockDef=e,this.type=e.name,this.prefix=i,this.index=n,this.id=s,this.sequence=r;const c=a&&a.animate,h=a&&a.focus,d=a&&a.collapsed;this.strings=a&&a.strings||{};const u=`block-${s}-section`,p=`block-${s}-heading`,m=`block-${s}-content`,f=(0,l.Z)(this.blockDef.meta.icon),b=(0,l.Z)(this.blockDef.meta.label),g=$(`\n <div ${this.id?`data-contentpath="${(0,l.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,l.Z)(this.type||"")}">\n <input type="hidden" name="${this.prefix}-id" value="${(0,l.Z)(this.id||"")}">\n <section class="w-panel w-panel--nested" id="${u}" aria-labelledby="${p}" data-panel>\n <div class="w-panel__header">\n <a class="w-panel__anchor w-panel__anchor--prefix" href="#${u}" aria-labelledby="${p}" 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="Toggle section" aria-describedby="${p}" data-panel-toggle aria-controls="${m}" aria-expanded="true">\n <svg class="icon icon-${f} w-panel__icon" aria-hidden="true">\n <use href="#icon-${f}"></use>\n </svg>\n </button>\n <h2 class="w-panel__heading w-panel__heading--label" aria-level="3" id="${p}" data-panel-heading>\n <span data-panel-heading-text class="c-sf-block__title"></span>\n <span class="c-sf-block__type">${b}</span>\n ${e.meta.required?'<span class="w-required-mark" data-panel-required>*</span>':""}\n </h2>\n <a class="w-panel__anchor w-panel__anchor--suffix" href="#${u}" aria-labelledby="${p}">\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="${m}" class="w-panel__content">\n <div data-streamfield-block></div>\n </div>\n </section>\n </div>\n `);$(t).replaceWith(g),this.element=g.get(0);const v=g.find("[data-streamfield-block]").get(0);this.actionsContainerElement=g.find("[data-panel-controls]").get(0),this.titleElement=g.find("[data-panel-heading-text]"),this.toggleElement=this.element.querySelector("[data-panel-toggle]"),this.deletedInput=g.find(`input[name="${this.prefix}-deleted"]`),this.indexInput=g.find(`input[name="${this.prefix}-order"]`),this.addActionButton(new S(this)),this.addActionButton(new L(this)),this.addActionButton(new I(this)),this.addActionButton(new q(this));const k=new Map;k.set("duplicate",{enabled:!0,fn:this.duplicate}),k.set("split",{enabled:!0,fn:this.split.bind(this)}),k.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.block=this.blockDef.render(v,this.prefix+"-value",o,void 0,k),function(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=_.bind(null,e),s=t.classList.contains("collapsed"),o=i.querySelector('[aria-invalid="true"], .error, .w-field--error'),r=s&&!o;r&&n(!1),e.addEventListener("click",n.bind(null,void 0));const l=t.querySelector("[data-panel-heading]");l&&l.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:!r}}))}(this.element.querySelector("[data-panel-toggle]")),d&&this.collapse(),this.toggleElement.addEventListener("wagtail:panel-toggle",(()=>{const e=this.getTextLabel({maxLength:50});this.titleElement.text(e||"")}));const w=this.getTextLabel({maxLength:50});this.titleElement.text(w||""),c?(g.hide(),setTimeout((()=>{g.slideDown(),h&&this.block.focus({soft:!0})}),10)):h&&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.emit("enableDuplication"),this.block&&this.block.setCapabilityOptions&&this.block.setCapabilityOptions("duplicate",{enabled:!0})}disableDuplication(){this.emit("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.emit("enableMoveUp")}disableMoveUp(){this.emit("disableMoveUp")}enableMoveDown(){this.emit("enableMoveDown")}disableMoveDown(){this.emit("disableMoveDown")}setIndex(e){this.index=e,this.indexInput.val(e)}setError(e){this.block.setError(e),e&&_(this.toggleElement,!0)}focus(e){this.block.focus(e)}getTextLabel(e){return this.block.getTextLabel?this.block.getTextLabel(e):null}collapse(){_(this.toggleElement,!1)}getDuplicatedState(){return{id:D(),value:void 0===this.block.getDuplicatedState?this.block.getState():this.block.getDuplicatedState()}}}class M{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 A{_createChild(e,t,i,n,s,o,r,l){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 o=this.prefix+"-"+this.blockCounter,r=s&&s.animate,l=s&&s.focus,a=s&&s.collapsed;this.blockCounter+=1;const c=this.inserters[n].element,h=document.createElement("div"),d=document.createElement("div");$(h).insertAfter(c),$(d).insertAfter(h),(0,E.y)(n,this.children.length).forEach((e=>{this.children[e].setIndex(e+1)})),(0,E.y)(n+1,this.inserters.length).forEach((e=>{this.inserters[e].setIndex(e+1)}));const u=this._createChild(e,h,o,n,i,t,this,{animate:r,focus:l,collapsed:a,strings:this.blockDef.meta.strings});this.children.splice(n,0,u);const p=this._createInsertionControl(d,{index:n+1,onRequestInsert:(e,t)=>{this._onRequestInsert(e,t)},strings:this.blockDef.meta.strings,animate:r});this.inserters.splice(n+1,0,p),this.countInput.val(this.blockCounter);const m=0===n,f=n===this.children.length-1;return m||(u.enableMoveUp(),f&&this.children[n-1].enableMoveDown()),f||(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,E.y)(e,this.children.length).forEach((e=>{this.children[e].setIndex(e)})),(0,E.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()}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,E.y)(e,t+1).forEach((e=>{this.inserters[e].setIndex(e),this.children[e].setIndex(e)})):(0,E.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)}}var O=i(2833);class U extends T{getState(){return{id:this.id,value:this.block.getState()}}getValue(){return this.block.getValue()}setState({value:e,id:t}){this.block.setState(e),this.id=t}setValue(e){this.block.setState(e)}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class P extends M{constructor(e,t){super(e,t),this.onRequestInsert=t&&t.onRequestInsert;const i=t&&t.animate,n=(0,l.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 R extends A{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const o=$(`\n <div class="${(0,l.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,l.Z)(i)}-count" data-streamfield-list-count value="0">\n\n <div data-streamfield-list-container></div>\n </div>\n `);$(t).replaceWith(o),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(o),this.children=[],this.inserters=[],this.blockCounter=0,this.countInput=o.find("[data-streamfield-list-count]"),this.sequenceContainer=o.find("[data-streamfield-list-container]"),this.container=o,this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach((e=>{e.collapse()})),s&&this.setError(s)}setState(e){this.clear(),e.forEach((({value:e,id:t},i)=>{this.insert(e,i,{id:t||D()})}))}_getChildDataForInsertion(){return[this.blockDef.childBlockDef,this.blockDef.initialChildState]}_createChild(e,t,i,n,s,o,r,l){return new U(e,t,i,n,s,o,r,l)}_createInsertionControl(e,t){return new P(e,t)}blockCountChanged(){super.blockCountChanged();const e=[],t=this.blockDef.meta.maxNum;if("number"==typeof t&&this.children.length>t){const i=(0,O.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,O.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(),o=t&&t.animate;this.insert(s,e+1,{animate:o,focus:!0,collapsed:i.collapsed,id:n})}splitBlock(e,t,i,n,s){const o=this.children[e],r=s&&s.animate;o.setValue(t);const l=this.insert(i,e+1,{animate:r,focus:!0,collapsed:o.collapsed}),a=o.getContentPath(),c=l.getContentPath(),h=window.comments?.commentApp;a&&c&&h&&h.utils.selectCommentsForContentPathFactory(a)(h.store.getState()).forEach((e=>{n(e)&&h.updateContentPath(e.localId,c)}))}setError(e){if(!e)return;const t=this.container[0];(0,m.$)(t),e.messages&&(0,m.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 j{constructor(e,t,i,n){this.name=e,this.childBlockDef=t,this.initialChildState=i,this.meta=n}render(e,t,i,n){return new R(this,e,t,i,n)}}var F=i(7381),N=i(1596),V=i(2891);i(1083);const Z={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)}}}};V.Controller;class W extends T{getState(){return{type:this.type,value:this.block.getState(),id:this.id}}getDuplicatedState(){return{...super.getDuplicatedState(),type:this.type}}setState({type:e,value:t,id:i}){this.type=e,this.block.setState(t),this.id=i}getValue(){return{type:this.type,value:this.block.getValue(),id:this.id}}split(e,t,i,n){this.sequence.splitBlock(this.index,e,t,i,n)}}class G extends M{constructor(e,t){super(e,t),this.groupedChildBlockDefs=t.groupedChildBlockDefs;const i=$(`\n <div>\n <button type="button" title="${N.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,F.Ay)(this.addButton.get(0),{content:this.combobox,trigger:"click",interactive:!0,theme:"dropdown",arrow:!1,placement:"bottom",plugins:[Z],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,icon:e.meta.icon})))})))}renderMenu(){const e=this.blockItems;s().render(r().createElement(N.Ay,{label:N.qc,placeholder:N.qc,items:e,getItemLabel:(e,t)=>t.label,getItemDescription:e=>e.label,getSearchFields:e=>[e.label,e.type],noResultsText:N.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 H extends A{constructor(e,t,i,n,s){super(),this.blockDef=e,this.type=e.name,this.prefix=i;const o=$(`\n <div class="${(0,l.Z)(this.blockDef.meta.classname||"")}">\n <input type="hidden" name="${(0,l.Z)(i)}-count" data-streamfield-stream-count value="0">\n <div data-streamfield-stream-container></div>\n </div>\n `);$(t).replaceWith(o),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(o),this.container=o,this.children=[],this.childBlockCounts=new Map,this.inserters=[],this.blockCounter=0,this.countInput=o.find("[data-streamfield-stream-count]"),this.sequenceContainer=o.find("[data-streamfield-stream-container]"),this.setState(n||[]),this.blockDef.meta.collapsed&&this.children.forEach((e=>{e.collapse()})),s&&this.setError(s)}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,O.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,O.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,O.AP)("The maximum number of items is %(max_num)d").replace("%(max_num)d",`${n}`),o=`${i.meta.label}: ${s}`;e.push(o)}const s=i.min_num;if("number"==typeof s&&this.getBlockCount(t)<s){const i=this.blockDef.childBlockDefsByName[t],n=(0,O.AP)("The minimum number of items is %(min_num)d").replace("%(min_num)d",`${s}`),o=`${i.meta.label}: ${n}`;e.push(o)}}e.length?this.setError({messages:e}):this.setError({})}_createChild(e,t,i,n,s,o,r,l){return new W(e,t,i,n,s,o,r,l)}_createInsertionControl(e,t){return t.groupedChildBlockDefs=this.blockDef.groupedChildBlockDefs,new G(e,t)}insert({type:e,value:t,id:i},n,s){const o=this.blockDef.childBlockDefsByName[e];return this._insert(o,t,i,n,s)}_getChildDataForInsertion({type:e}){return[this.blockDef.childBlockDefsByName[e],this.blockDef.initialChildStates[e],D()]}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 o=this.children[e],r=s&&s.animate,l=o.getState(),a=this.insert({type:l.type,id:D(),value:i},e+1,{animate:r,focus:!0,collapsed:o.collapsed});o.setState({type:l.type,id:l.id,value:t});const c=o.getContentPath(),h=a.getContentPath(),d=window.comments?.commentApp;c&&h&&d&&d.utils.selectCommentsForContentPathFactory(c)(d.store.getState()).forEach((e=>{n(e)&&d.updateContentPath(e.localId,h)}))}setState(e){super.setState(e)}setError(e){if(!e)return;const t=this.container[0];if((0,m.$)(t),e.messages&&(0,m.U)(t,e.messages),e.blockErrors)for(const t in e.blockErrors)(0,p.$)(e.blockErrors,t)&&this.children[t].setError(e.blockErrors[t])}}class K{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 H(this,e,t,i,n)}}const X=window.wagtailStreamField||{};X.blocks={FieldBlock:c,FieldBlockDefinition:h,StaticBlock:d,StaticBlockDefinition:u,StructBlock:f,StructBlockDefinition:b,ListBlock:R,ListBlockDefinition:j,StreamBlock:H,StreamBlockDefinition:K},window.telepath.register("wagtail.blocks.FieldBlock",h),window.telepath.register("wagtail.blocks.StaticBlock",u),window.telepath.register("wagtail.blocks.StructBlock",b),window.telepath.register("wagtail.blocks.ListBlock",j),window.telepath.register("wagtail.blocks.StreamBlock",K),window.wagtailStreamField=X}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var o=i[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=(t,i,s,o)=>{if(!i){var r=1/0;for(h=0;h<e.length;h++){for(var[i,s,o]=e[h],l=!0,a=0;a<i.length;a++)(!1&o||r>=o)&&Object.keys(n.O).every((e=>n.O[e](i[a])))?i.splice(a--,1):(l=!1,o<r&&(r=o));if(l){e.splice(h--,1);var c=s();void 0!==c&&(t=c)}}return t}o=o||0;for(var h=e.length;h>0&&e[h-1][2]>o;h--)e[h]=e[h-1];e[h]=[i,s,o]},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,o,[r,l,a]=i,c=0;if(r.some((t=>0!==e[t]))){for(s in l)n.o(l,s)&&(n.m[s]=l[s]);if(a)var h=a(n)}for(t&&t(i);c<r.length;c++)o=r[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(h)},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(5815)));s=n.O(s)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var t,e={7290:(t,e,i)=>{var s=i(2833),n=i(6032);class r{constructor(t,e,i,s,n,r){const a=t.forEach?t:[t],o=`:is(input,select,textarea,button)[name="${e}"]`;for(let t=0;t<a.length;t+=1){const e=a[t];if(e.nodeType===Node.ELEMENT_NODE){if(e.matches(o)){this.input=e;break}{const t=e.querySelector(o);if(t){this.input=t;break}}}}this.idForLabel=i,this.setState(s),this.parentCapabilities=n||new Map,this.options=r}getValue(){return this.input.value}getState(){return this.input.value}setState(t){this.input.value=t}getTextLabel(t){const e=this.getValue();if("string"!=typeof e)return null;const i=t&&t.maxLength;return i&&e.length>i?e.substring(0,i-1)+"…":e}focus(){this.input.focus()}setCapabilityOptions(t,e){Object.assign(this.parentCapabilities.get(t),e)}}class a{constructor(t,e){this.html=t,this.idPattern=e}boundWidgetClass=r;render(t,e,i,s,r,a={}){const o=this.html.replace(/__NAME__/g,e).replace(/__ID__/g,i),l=this.idPattern.replace(/__ID__/g,i),c=document.createElement("div");c.innerHTML=o.trim();const u=Array.from(c.childNodes);t.replaceWith(...u);const h=u.filter((t=>t.nodeType===Node.ELEMENT_NODE));return h.forEach((t=>{(0,n.v)(t)})),"object"==typeof a?.attributes&&Object.entries(a.attributes).forEach((([t,e])=>{h[0].setAttribute(t,e)})),new this.boundWidgetClass(1===h.length?h[0]:u,e,l,s,r,a)}}window.telepath.register("wagtail.widgets.Widget",a);class o extends r{getValue(){return this.input.checked}getState(){return this.input.checked}setState(t){this.input.checked=t}}window.telepath.register("wagtail.widgets.CheckboxInput",class extends a{boundWidgetClass=o});class l{constructor(t,e,i,s){this.element=t,this.name=e,this.idForLabel=i,this.isMultiple=!!this.element.querySelector(`input[name="${e}"][type="checkbox"]`),this.selector=`input[name="${e}"]:checked`,this.setState(s)}getValue(){return this.isMultiple?Array.from(this.element.querySelectorAll(this.selector)).map((t=>t.value)):this.element.querySelector(this.selector)?.value}getState(){return Array.from(this.element.querySelectorAll(this.selector)).map((t=>t.value))}setState(t){const e=this.element.querySelectorAll(`input[name="${this.name}"]`);for(let i=0;i<e.length;i+=1)e[i].checked=t.includes(e[i].value)}focus(){this.element.querySelector(`input[name="${this.name}"]`)?.focus()}}window.telepath.register("wagtail.widgets.RadioSelect",class extends a{boundWidgetClass=l});class c extends r{getTextLabel(){return Array.from(this.input.selectedOptions).map((t=>t.text)).join(", ")}getValue(){return this.input.multiple?Array.from(this.input.selectedOptions).map((t=>t.value)):this.input.value}getState(){return Array.from(this.input.selectedOptions).map((t=>t.value))}setState(t){const e=this.input.options;for(let i=0;i<e.length;i+=1)e[i].selected=t.includes(e[i].value)}}window.telepath.register("wagtail.widgets.Select",class extends a{boundWidgetClass=c});class u{constructor(t,e,i,s){this.widget=t,this.blockDef=e,this.addSibling=i,this.split=s,this.blockMax=i.getBlockMax(e.name),this.icon=e.meta.icon,this.description=e.meta.label,this.type=e.name}render({option:t}){const e="number"==typeof blockMax?` (${this.addSibling.getBlockCount(this.blockDef.name)}/${this.blockMax})`:"";return`${t.description}${e}`}onSelect({editorState:t}){const e=window.draftail.splitState(window.draftail.DraftUtils.removeCommandPalettePrompt(t));e.stateAfter.getCurrentContent().hasText()?setTimeout((()=>{e&&this.split.fn(e.stateBefore,e.stateAfter,e.shouldMoveCommentFn),setTimeout((()=>{this.addSibling.fn({type:this.blockDef.name})}),20)}),50):(this.widget.setState(e.stateBefore),setTimeout((()=>{this.addSibling.fn({type:this.blockDef.name})}),20))}}class h{constructor(t,e){this.widget=t,this.split=e,this.description=(0,s.AP)("Split block")}icon="cut";type="split";onSelect({editorState:t}){const e=window.draftail.splitState(window.draftail.DraftUtils.removeCommandPalettePrompt(t));setTimeout((()=>{e&&this.split.fn(e.stateBefore,e.stateAfter,e.shouldMoveCommentFn)}),50)}}class d{constructor(t,e,i){this.input=t,this.capabilities=new Map(i),this.options=e;const[,s]=draftail.initEditor("#"+this.input.id,this.getFullOptions(),document.currentScript);this.setDraftailOptions=s}getValue(){return this.input.value}getState(){return this.input.draftailEditor.getEditorState()}setState(t){this.input.draftailEditor.onChange(t)}getTextLabel(t){const e=t&&t.maxLength;if(!this.input.value)return"";const i=JSON.parse(this.input.value);if(!i||!i.blocks)return"";let s="";for(const t of i.blocks)if(t.text&&(s+=s?" "+t.text:t.text,e&&s.length>e))return s.substring(0,e-1)+"…";return s}focus(){setTimeout((()=>{this.input.draftailEditor.focus()}),50)}setCapabilityOptions(t,e){const i=Object.assign(this.capabilities.get(t),e);this.capabilities.set(t,i),this.setDraftailOptions(this.getFullOptions())}getCapabilityOptions(t){const e={},i=t,n=i.get("split"),r=i.get("addSibling");let a=[];return n&&(a=(r&&r.enabled&&n.enabled?r.blockGroups:[]).map((([t,e])=>{const i=e.map((t=>new u(this,t,r,n)));return{label:t||(0,s.AP)("Blocks"),type:`streamfield-${t}`,items:i}})),n.enabled&&a.push({label:"Actions",type:"custom-actions",items:[new h(this,n)]})),e.commands=[{type:"blockTypes"},{type:"entityTypes"},...a],e}getFullOptions(){return{...this.options,...this.getCapabilityOptions(this.capabilities)}}}window.telepath.register("wagtail.widgets.DraftailRichTextArea",class{constructor(t){this.options=t}render(t,e,i,s,n,r={}){const a=document.createElement("input");a.type="hidden",a.id=i,a.name=e,"object"==typeof r?.attributes&&Object.entries(r.attributes).forEach((([t,e])=>{a.setAttribute(t,e)}));const o=!!s.getCurrentContent;a.value=o?"null":s,t.appendChild(a);const l=new d(a,{...this.options,...r},n);return o&&l.setState(s),l}});class p extends a{constructor(t){super(),this.options=t}render(t,e,i,s){const n=document.createElement("input");n.type="text",n.name=e,n.id=i,t.replaceWith(n),this.initChooserFn(i,this.options);const r={getValue:()=>n.value,getState:()=>n.value,setState(t){n.value=t},focus(t){t&&t.soft||n.focus()},idForLabel:i};return r.setState(s),r}}window.telepath.register("wagtail.widgets.AdminDateInput",class extends p{initChooserFn=window.initDateChooser}),window.telepath.register("wagtail.widgets.AdminTimeInput",class extends p{initChooserFn=window.initTimeChooser}),window.telepath.register("wagtail.widgets.AdminDateTimeInput",class extends p{initChooserFn=window.initDateTimeChooser}),window.telepath.register("wagtail.errors.ValidationError",class{constructor(t){this.messages=t}})}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={id:t,loaded:!1,exports:{}};return e[t].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=e,t=[],s.O=(e,i,n,r)=>{if(!i){var a=1/0;for(u=0;u<t.length;u++){for(var[i,n,r]=t[u],o=!0,l=0;l<i.length;l++)(!1&r||a>=r)&&Object.keys(s.O).every((t=>s.O[t](i[l])))?i.splice(l--,1):(o=!1,r<a&&(a=r));if(o){t.splice(u--,1);var c=n();void 0!==c&&(e=c)}}return e}r=r||0;for(var u=t.length;u>0&&t[u-1][2]>r;u--)t[u]=t[u-1];t[u]=[i,n,r]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),s.j=136,(()=>{var t={136:0};s.O.j=e=>0===t[e];var e=(e,i)=>{var n,r,[a,o,l]=i,c=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(l)var u=l(s)}for(e&&e(i);c<a.length;c++)r=a[c],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return s.O(u)},i=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var n=s.O(void 0,[321],(()=>s(7290)));n=s.O(n)})();
1
+ (()=>{"use strict";var t,e={7290:(t,e,i)=>{var s=i(2833),n=i(6032);class r{constructor(t,e,i,s,n,r){const a=t.forEach?t:[t],o=`:is(input,select,textarea,button)[name="${e}"]`;for(let t=0;t<a.length;t+=1){const e=a[t];if(e.nodeType===Node.ELEMENT_NODE){if(e.matches(o)){this.input=e;break}{const t=e.querySelector(o);if(t){this.input=t;break}}}}this.idForLabel=i,this.setState(s),this.parentCapabilities=n||new Map,this.options=r}getValue(){return this.input.value}getState(){return this.input.value}setState(t){this.input.value=t}getTextLabel(t){const e=this.getValue();if("string"!=typeof e)return null;const i=t&&t.maxLength;return i&&e.length>i?e.substring(0,i-1)+"…":e}focus(){this.input.focus()}setCapabilityOptions(t,e){Object.assign(this.parentCapabilities.get(t),e)}}class a{constructor(t,e){this.html=t,this.idPattern=e}boundWidgetClass=r;render(t,e,i,s,r,a={}){const o=this.html.replace(/__NAME__/g,e).replace(/__ID__/g,i),l=this.idPattern.replace(/__ID__/g,i),c=document.createElement("div");c.innerHTML=o.trim();const u=Array.from(c.childNodes);t.replaceWith(...u);const h=u.filter((t=>t.nodeType===Node.ELEMENT_NODE));return h.forEach((t=>{(0,n.v)(t)})),"object"==typeof a?.attributes&&Object.entries(a.attributes).forEach((([t,e])=>{h[0].setAttribute(t,e)})),new this.boundWidgetClass(1===h.length?h[0]:u,e,l,s,r,a)}}window.telepath.register("wagtail.widgets.Widget",a);class o extends r{getValue(){return this.input.checked}getState(){return this.input.checked}setState(t){this.input.checked=t}}window.telepath.register("wagtail.widgets.CheckboxInput",class extends a{boundWidgetClass=o});class l{constructor(t,e,i,s){this.element=t,this.name=e,this.idForLabel=i,this.isMultiple=!!this.element.querySelector(`input[name="${e}"][type="checkbox"]`),this.selector=`input[name="${e}"]:checked`,this.setState(s)}getValue(){return this.isMultiple?Array.from(this.element.querySelectorAll(this.selector)).map((t=>t.value)):this.element.querySelector(this.selector)?.value}getState(){return Array.from(this.element.querySelectorAll(this.selector)).map((t=>t.value))}setState(t){const e=this.element.querySelectorAll(`input[name="${this.name}"]`);for(let i=0;i<e.length;i+=1)e[i].checked=t.includes(e[i].value)}focus(){this.element.querySelector(`input[name="${this.name}"]`)?.focus()}}window.telepath.register("wagtail.widgets.RadioSelect",class extends a{boundWidgetClass=l});class c extends r{getTextLabel(){return Array.from(this.input.selectedOptions).map((t=>t.text)).join(", ")}getValue(){return this.input.multiple?Array.from(this.input.selectedOptions).map((t=>t.value)):this.input.value}getState(){return Array.from(this.input.selectedOptions).map((t=>t.value))}setState(t){const e=this.input.options;for(let i=0;i<e.length;i+=1)e[i].selected=t.includes(e[i].value)}}window.telepath.register("wagtail.widgets.Select",class extends a{boundWidgetClass=c});class u{constructor(t,e,i,s){this.widget=t,this.blockDef=e,this.addSibling=i,this.split=s,this.blockMax=i.getBlockMax(e.name),this.icon=e.meta.icon,this.description=e.meta.label,this.type=e.name}render({option:t}){const e="number"==typeof blockMax?` (${this.addSibling.getBlockCount(this.blockDef.name)}/${this.blockMax})`:"";return`${t.description}${e}`}onSelect({editorState:t}){const e=window.draftail.splitState(window.draftail.DraftUtils.removeCommandPalettePrompt(t));e.stateAfter.getCurrentContent().hasText()?setTimeout((()=>{e&&this.split.fn(e.stateBefore,e.stateAfter,e.shouldMoveCommentFn),setTimeout((()=>{this.addSibling.fn({type:this.blockDef.name})}),20)}),50):(this.widget.setState(e.stateBefore),setTimeout((()=>{this.addSibling.fn({type:this.blockDef.name})}),20))}}class h{constructor(t,e){this.widget=t,this.split=e,this.description=(0,s.AP)("Split block")}icon="cut";type="split";onSelect({editorState:t}){const e=window.draftail.splitState(window.draftail.DraftUtils.removeCommandPalettePrompt(t));setTimeout((()=>{e&&this.split.fn(e.stateBefore,e.stateAfter,e.shouldMoveCommentFn)}),50)}}class p{constructor(t,e,i){this.input=t,this.capabilities=new Map(i),this.options=e;const[,s]=draftail.initEditor("#"+this.input.id,this.getFullOptions(),document.currentScript);this.setDraftailOptions=s}getValue(){return this.input.value}getState(){return this.input.draftailEditor.getEditorState()}setState(t){this.input.draftailEditor.onChange(t)}getTextLabel(t){const e=t&&t.maxLength;if(!this.input.value)return"";const i=JSON.parse(this.input.value);if(!i||!i.blocks)return"";let s="";for(const t of i.blocks)if(t.text&&(s+=s?" "+t.text:t.text,e&&s.length>e))return s.substring(0,e-1)+"…";return s}focus(){setTimeout((()=>{this.input.draftailEditor.focus()}),50)}setCapabilityOptions(t,e){const i=Object.assign(this.capabilities.get(t),e);this.capabilities.set(t,i),this.setDraftailOptions(this.getFullOptions())}getCapabilityOptions(t){const e={},i=t,n=i.get("split"),r=i.get("addSibling");let a=[];return n&&(a=(r&&r.enabled&&n.enabled?r.blockGroups:[]).map((([t,e])=>{const i=e.map((t=>new u(this,t,r,n)));return{label:t||(0,s.AP)("Blocks"),type:`streamfield-${t}`,items:i}})),n.enabled&&a.push({label:"Actions",type:"custom-actions",items:[new h(this,n)]})),e.commands=[{type:"blockTypes"},{type:"entityTypes"},...a],e}getFullOptions(){return{...this.options,...this.getCapabilityOptions(this.capabilities)}}}window.telepath.register("wagtail.widgets.DraftailRichTextArea",class{constructor(t){this.options=t}render(t,e,i,s,n,r={}){const a=document.createElement("input");a.type="hidden",a.id=i,a.name=e,"object"==typeof r?.attributes&&Object.entries(r.attributes).forEach((([t,e])=>{a.setAttribute(t,e)}));const o=!!s.getCurrentContent;a.value=o?"null":s,t.appendChild(a);const l=new p(a,{...this.options,...r},n);return o&&l.setState(s),l}});class d extends a{constructor(t){super(),this.options=t}render(t,e,i,s){const n=document.createElement("input");n.type="text",n.name=e,n.id=i,t.replaceWith(n),this.initChooserFn(i,this.options);const r={getValue:()=>n.value,getState:()=>n.value,setState(t){n.value=t},focus(t){t&&t.soft||n.focus()},idForLabel:i};return r.setState(s),r}}window.telepath.register("wagtail.widgets.AdminDateInput",class extends d{initChooserFn=window.initDateChooser}),window.telepath.register("wagtail.widgets.AdminTimeInput",class extends d{initChooserFn=window.initTimeChooser}),window.telepath.register("wagtail.widgets.AdminDateTimeInput",class extends d{initChooserFn=window.initDateTimeChooser}),window.telepath.register("wagtail.errors.ValidationError",class{constructor(t){this.messages=t}})}},i={};function s(t){var n=i[t];if(void 0!==n)return n.exports;var r=i[t]={exports:{}};return e[t](r,r.exports,s),r.exports}s.m=e,t=[],s.O=(e,i,n,r)=>{if(!i){var a=1/0;for(u=0;u<t.length;u++){for(var[i,n,r]=t[u],o=!0,l=0;l<i.length;l++)(!1&r||a>=r)&&Object.keys(s.O).every((t=>s.O[t](i[l])))?i.splice(l--,1):(o=!1,r<a&&(a=r));if(o){t.splice(u--,1);var c=n();void 0!==c&&(e=c)}}return e}r=r||0;for(var u=t.length;u>0&&t[u-1][2]>r;u--)t[u]=t[u-1];t[u]=[i,n,r]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.j=136,(()=>{var t={136:0};s.O.j=e=>0===t[e];var e=(e,i)=>{var n,r,[a,o,l]=i,c=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(l)var u=l(s)}for(e&&e(i);c<a.length;c++)r=a[c],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0;return s.O(u)},i=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var n=s.O(void 0,[321],(()=>s(7290)));n=s.O(n)})();