wagtail 7.1.2__py3-none-any.whl → 7.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 (1125) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/actions/copy_page.py +1 -1
  3. wagtail/actions/create_alias.py +1 -1
  4. wagtail/actions/delete_page.py +1 -1
  5. wagtail/actions/publish_page_revision.py +1 -1
  6. wagtail/actions/publish_revision.py +1 -1
  7. wagtail/actions/revert_to_page_revision.py +1 -1
  8. wagtail/actions/unpublish.py +1 -1
  9. wagtail/actions/unpublish_page.py +1 -1
  10. wagtail/admin/auth.py +3 -1
  11. wagtail/admin/checks.py +2 -2
  12. wagtail/admin/filters.py +28 -1
  13. wagtail/admin/forms/collections.py +1 -1
  14. wagtail/admin/forms/comments.py +1 -1
  15. wagtail/admin/forms/models.py +1 -1
  16. wagtail/admin/forms/pages.py +1 -1
  17. wagtail/admin/forms/tags.py +1 -1
  18. wagtail/admin/locale/ar/LC_MESSAGES/django.mo +0 -0
  19. wagtail/admin/locale/ar/LC_MESSAGES/django.po +44 -89
  20. wagtail/admin/locale/az_AZ/LC_MESSAGES/django.mo +0 -0
  21. wagtail/admin/locale/az_AZ/LC_MESSAGES/django.po +4 -7
  22. wagtail/admin/locale/be/LC_MESSAGES/django.mo +0 -0
  23. wagtail/admin/locale/be/LC_MESSAGES/django.po +15 -42
  24. wagtail/admin/locale/bg/LC_MESSAGES/django.mo +0 -0
  25. wagtail/admin/locale/bg/LC_MESSAGES/django.po +7 -16
  26. wagtail/admin/locale/bn/LC_MESSAGES/django.mo +0 -0
  27. wagtail/admin/locale/bn/LC_MESSAGES/django.po +4 -13
  28. wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
  29. wagtail/admin/locale/ca/LC_MESSAGES/django.po +159 -74
  30. wagtail/admin/locale/ca/LC_MESSAGES/djangojs.mo +0 -0
  31. wagtail/admin/locale/ca/LC_MESSAGES/djangojs.po +11 -0
  32. wagtail/admin/locale/cs/LC_MESSAGES/django.mo +0 -0
  33. wagtail/admin/locale/cs/LC_MESSAGES/django.po +40 -50
  34. wagtail/admin/locale/cy/LC_MESSAGES/django.mo +0 -0
  35. wagtail/admin/locale/cy/LC_MESSAGES/django.po +6 -13
  36. wagtail/admin/locale/da/LC_MESSAGES/django.mo +0 -0
  37. wagtail/admin/locale/da/LC_MESSAGES/django.po +10 -22
  38. wagtail/admin/locale/de/LC_MESSAGES/django.mo +0 -0
  39. wagtail/admin/locale/de/LC_MESSAGES/django.po +42 -93
  40. wagtail/admin/locale/dv/LC_MESSAGES/django.mo +0 -0
  41. wagtail/admin/locale/dv/LC_MESSAGES/django.po +26 -64
  42. wagtail/admin/locale/el/LC_MESSAGES/django.mo +0 -0
  43. wagtail/admin/locale/el/LC_MESSAGES/django.po +9 -31
  44. wagtail/admin/locale/en/LC_MESSAGES/django.po +278 -192
  45. wagtail/admin/locale/en/LC_MESSAGES/djangojs.po +29 -15
  46. wagtail/admin/locale/es/LC_MESSAGES/django.mo +0 -0
  47. wagtail/admin/locale/es/LC_MESSAGES/django.po +17 -52
  48. wagtail/admin/locale/es_419/LC_MESSAGES/django.mo +0 -0
  49. wagtail/admin/locale/es_419/LC_MESSAGES/django.po +4 -22
  50. wagtail/admin/locale/es_VE/LC_MESSAGES/django.mo +0 -0
  51. wagtail/admin/locale/es_VE/LC_MESSAGES/django.po +4 -7
  52. wagtail/admin/locale/et/LC_MESSAGES/django.mo +0 -0
  53. wagtail/admin/locale/et/LC_MESSAGES/django.po +15 -42
  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 +12 -50
  57. wagtail/admin/locale/fi/LC_MESSAGES/django.mo +0 -0
  58. wagtail/admin/locale/fi/LC_MESSAGES/django.po +43 -70
  59. wagtail/admin/locale/fi/LC_MESSAGES/djangojs.mo +0 -0
  60. wagtail/admin/locale/fi/LC_MESSAGES/djangojs.po +17 -0
  61. wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
  62. wagtail/admin/locale/fr/LC_MESSAGES/django.po +157 -74
  63. wagtail/admin/locale/fr/LC_MESSAGES/djangojs.mo +0 -0
  64. wagtail/admin/locale/fr/LC_MESSAGES/djangojs.po +11 -0
  65. wagtail/admin/locale/gl/LC_MESSAGES/django.mo +0 -0
  66. wagtail/admin/locale/gl/LC_MESSAGES/django.po +155 -72
  67. wagtail/admin/locale/gl/LC_MESSAGES/djangojs.mo +0 -0
  68. wagtail/admin/locale/gl/LC_MESSAGES/djangojs.po +11 -0
  69. wagtail/admin/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  70. wagtail/admin/locale/he_IL/LC_MESSAGES/django.po +7 -28
  71. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  72. wagtail/admin/locale/hr_HR/LC_MESSAGES/django.po +15 -38
  73. wagtail/admin/locale/ht/LC_MESSAGES/django.po +4 -4
  74. wagtail/admin/locale/hu/LC_MESSAGES/django.mo +0 -0
  75. wagtail/admin/locale/hu/LC_MESSAGES/django.po +44 -91
  76. wagtail/admin/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  77. wagtail/admin/locale/id_ID/LC_MESSAGES/django.po +10 -31
  78. wagtail/admin/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  79. wagtail/admin/locale/is_IS/LC_MESSAGES/django.po +41 -87
  80. wagtail/admin/locale/it/LC_MESSAGES/django.mo +0 -0
  81. wagtail/admin/locale/it/LC_MESSAGES/django.po +34 -78
  82. wagtail/admin/locale/ja/LC_MESSAGES/django.mo +0 -0
  83. wagtail/admin/locale/ja/LC_MESSAGES/django.po +15 -42
  84. wagtail/admin/locale/ka/LC_MESSAGES/django.po +4 -4
  85. wagtail/admin/locale/ko/LC_MESSAGES/django.mo +0 -0
  86. wagtail/admin/locale/ko/LC_MESSAGES/django.po +20 -57
  87. wagtail/admin/locale/lt/LC_MESSAGES/django.mo +0 -0
  88. wagtail/admin/locale/lt/LC_MESSAGES/django.po +12 -31
  89. wagtail/admin/locale/lv/LC_MESSAGES/django.mo +0 -0
  90. wagtail/admin/locale/lv/LC_MESSAGES/django.po +9 -40
  91. wagtail/admin/locale/mi/LC_MESSAGES/django.mo +0 -0
  92. wagtail/admin/locale/mi/LC_MESSAGES/django.po +6 -10
  93. wagtail/admin/locale/mn/LC_MESSAGES/django.mo +0 -0
  94. wagtail/admin/locale/mn/LC_MESSAGES/django.po +10 -43
  95. wagtail/admin/locale/my/LC_MESSAGES/django.po +4 -4
  96. wagtail/admin/locale/nb/LC_MESSAGES/django.mo +0 -0
  97. wagtail/admin/locale/nb/LC_MESSAGES/django.po +15 -53
  98. wagtail/admin/locale/nl/LC_MESSAGES/django.mo +0 -0
  99. wagtail/admin/locale/nl/LC_MESSAGES/django.po +208 -70
  100. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.mo +0 -0
  101. wagtail/admin/locale/nl/LC_MESSAGES/djangojs.po +19 -2
  102. wagtail/admin/locale/pl/LC_MESSAGES/django.mo +0 -0
  103. wagtail/admin/locale/pl/LC_MESSAGES/django.po +27 -72
  104. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  105. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.po +38 -83
  106. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  107. wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po +17 -56
  108. wagtail/admin/locale/ro/LC_MESSAGES/django.mo +0 -0
  109. wagtail/admin/locale/ro/LC_MESSAGES/django.po +23 -68
  110. wagtail/admin/locale/ru/LC_MESSAGES/django.mo +0 -0
  111. wagtail/admin/locale/ru/LC_MESSAGES/django.po +96 -84
  112. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  113. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.po +9 -28
  114. wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
  115. wagtail/admin/locale/sl/LC_MESSAGES/django.po +45 -90
  116. wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
  117. wagtail/admin/locale/sv/LC_MESSAGES/django.po +27 -72
  118. wagtail/admin/locale/tet/LC_MESSAGES/django.mo +0 -0
  119. wagtail/admin/locale/tet/LC_MESSAGES/django.po +12 -22
  120. wagtail/admin/locale/th/LC_MESSAGES/django.mo +0 -0
  121. wagtail/admin/locale/th/LC_MESSAGES/django.po +10 -42
  122. wagtail/admin/locale/tr/LC_MESSAGES/django.mo +0 -0
  123. wagtail/admin/locale/tr/LC_MESSAGES/django.po +64 -70
  124. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  125. wagtail/admin/locale/tr_TR/LC_MESSAGES/django.po +15 -42
  126. wagtail/admin/locale/ug/LC_MESSAGES/django.mo +0 -0
  127. wagtail/admin/locale/ug/LC_MESSAGES/django.po +38 -83
  128. wagtail/admin/locale/uk/LC_MESSAGES/django.mo +0 -0
  129. wagtail/admin/locale/uk/LC_MESSAGES/django.po +15 -45
  130. wagtail/admin/locale/vi/LC_MESSAGES/django.mo +0 -0
  131. wagtail/admin/locale/vi/LC_MESSAGES/django.po +4 -17
  132. wagtail/admin/locale/zh/LC_MESSAGES/django.mo +0 -0
  133. wagtail/admin/locale/zh/LC_MESSAGES/django.po +7 -19
  134. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  135. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.po +17 -54
  136. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  137. wagtail/admin/locale/zh_Hant/LC_MESSAGES/django.po +15 -37
  138. wagtail/admin/static/wagtailadmin/css/core.css +1 -1
  139. wagtail/admin/static/wagtailadmin/js/bulk-actions.js +1 -1
  140. wagtail/admin/static/wagtailadmin/js/chooser-modal.js +1 -1
  141. wagtail/admin/static/wagtailadmin/js/chooser-widget-telepath.js +1 -1
  142. wagtail/admin/static/wagtailadmin/js/chooser-widget.js +1 -1
  143. wagtail/admin/static/wagtailadmin/js/comments.js +1 -1
  144. wagtail/admin/static/wagtailadmin/js/core.js +1 -1
  145. wagtail/admin/static/wagtailadmin/js/core.js.LICENSE.txt +2 -2
  146. wagtail/admin/static/wagtailadmin/js/date-time-chooser.js +1 -1
  147. wagtail/admin/static/wagtailadmin/js/draftail.js +1 -1
  148. wagtail/admin/static/wagtailadmin/js/filtered-select.js +1 -1
  149. wagtail/admin/static/wagtailadmin/js/icons.js +1 -1
  150. wagtail/admin/static/wagtailadmin/js/modal-workflow.js +1 -1
  151. wagtail/admin/static/wagtailadmin/js/page-chooser-modal.js +1 -1
  152. wagtail/admin/static/wagtailadmin/js/page-chooser-telepath.js +1 -1
  153. wagtail/admin/static/wagtailadmin/js/page-chooser.js +1 -1
  154. wagtail/admin/static/wagtailadmin/js/privacy-switch.js +1 -1
  155. wagtail/admin/static/wagtailadmin/js/sidebar.js +1 -1
  156. wagtail/admin/static/wagtailadmin/js/task-chooser-modal.js +1 -1
  157. wagtail/admin/static/wagtailadmin/js/task-chooser.js +1 -1
  158. wagtail/admin/static/wagtailadmin/js/telepath/blocks.js +1 -1
  159. wagtail/admin/static/wagtailadmin/js/telepath/telepath.js +1 -1
  160. wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
  161. wagtail/admin/static/wagtailadmin/js/userbar.js +1 -1
  162. wagtail/admin/static/wagtailadmin/js/userbar.js.LICENSE.txt +2 -2
  163. wagtail/admin/static/wagtailadmin/js/vendor/bootstrap-modal.js +1 -1
  164. wagtail/admin/static/wagtailadmin/js/vendor/bootstrap-transition.js +1 -1
  165. wagtail/admin/static/wagtailadmin/js/vendor/jquery-3.6.0.min.js +1 -1
  166. wagtail/admin/static/wagtailadmin/js/vendor/jquery-ui-1.13.2.min.js +1 -1
  167. wagtail/admin/static/wagtailadmin/js/vendor/jquery.datetimepicker.js +1 -1
  168. wagtail/admin/static/wagtailadmin/js/vendor/jquery.fileupload-process.js +1 -1
  169. wagtail/admin/static/wagtailadmin/js/vendor/jquery.fileupload.js +1 -1
  170. wagtail/admin/static/wagtailadmin/js/vendor/jquery.iframe-transport.js +1 -1
  171. wagtail/admin/static/wagtailadmin/js/vendor/tag-it.js +1 -1
  172. wagtail/admin/static/wagtailadmin/js/vendor.js +1 -1
  173. wagtail/admin/static/wagtailadmin/js/vendor.js.LICENSE.txt +1 -1
  174. wagtail/admin/static/wagtailadmin/js/wagtailadmin.js +1 -1
  175. wagtail/admin/static/wagtailadmin/js/workflow-action.js +1 -1
  176. wagtail/admin/templates/wagtailadmin/account/account.html +2 -0
  177. wagtail/admin/templates/wagtailadmin/base.html +14 -0
  178. wagtail/admin/templates/wagtailadmin/generic/chooser/chooser.html +2 -1
  179. wagtail/admin/templates/wagtailadmin/generic/chooser/creation_form.html +2 -1
  180. wagtail/admin/templates/wagtailadmin/panels/multi_field_panel_child.html +1 -1
  181. wagtail/admin/templates/wagtailadmin/panels/object_list.html +1 -1
  182. wagtail/admin/templates/wagtailadmin/panels/tabbed_interface.html +3 -2
  183. wagtail/admin/templates/wagtailadmin/shared/formatted_field.html +1 -1
  184. wagtail/admin/templates/wagtailadmin/shared/forms/single_checkbox.html +1 -1
  185. wagtail/admin/templates/wagtailadmin/shared/keyboard_shortcuts_dialog.html +19 -0
  186. wagtail/admin/templates/wagtailadmin/shared/panel.html +1 -1
  187. wagtail/admin/templates/wagtailadmin/shared/set_privacy.html +15 -0
  188. wagtail/admin/templates/wagtailadmin/shared/side_panels/checks.html +28 -1
  189. wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html +2 -2
  190. wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_header.html → tables/ordering_header.html} +2 -2
  191. wagtail/admin/templates/wagtailadmin/tables/title_cell.html +1 -1
  192. wagtail/admin/templates/wagtailadmin/widgets/{daterange_input.html → range_input.html} +1 -1
  193. wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html +4 -2
  194. wagtail/admin/templatetags/wagtailadmin_tags.py +41 -22
  195. wagtail/admin/tests/api/test_pages.py +7 -7
  196. wagtail/admin/tests/api/test_renderer_classes.py +16 -0
  197. wagtail/admin/tests/pages/test_create_page.py +42 -2
  198. wagtail/admin/tests/pages/test_edit_page.py +128 -14
  199. wagtail/admin/tests/pages/test_explorer_view.py +34 -7
  200. wagtail/admin/tests/pages/test_reorder_page.py +11 -0
  201. wagtail/admin/tests/test_collections_views.py +12 -0
  202. wagtail/admin/tests/test_edit_handlers.py +3 -3
  203. wagtail/admin/tests/test_filters.py +2 -2
  204. wagtail/admin/tests/test_keyboard_shortcuts.py +52 -2
  205. wagtail/admin/tests/test_menu.py +0 -2
  206. wagtail/admin/tests/test_privacy.py +16 -16
  207. wagtail/admin/tests/test_templatetags.py +137 -0
  208. wagtail/admin/tests/test_workflows.py +34 -0
  209. wagtail/admin/tests/viewsets/test_model_viewset.py +322 -0
  210. wagtail/admin/ui/tables/orderable.py +73 -0
  211. wagtail/admin/ui/tables/pages.py +3 -13
  212. wagtail/admin/views/collection_privacy.py +6 -2
  213. wagtail/admin/views/generic/__init__.py +1 -0
  214. wagtail/admin/views/generic/mixins.py +20 -2
  215. wagtail/admin/views/generic/models.py +67 -1
  216. wagtail/admin/views/generic/ordering.py +79 -0
  217. wagtail/admin/views/home.py +3 -3
  218. wagtail/admin/views/page_privacy.py +5 -2
  219. wagtail/admin/views/pages/create.py +1 -1
  220. wagtail/admin/views/pages/edit.py +2 -2
  221. wagtail/admin/views/pages/listing.py +7 -42
  222. wagtail/admin/views/pages/move.py +1 -1
  223. wagtail/admin/views/pages/ordering.py +1 -1
  224. wagtail/admin/viewsets/base.py +1 -1
  225. wagtail/admin/viewsets/model.py +49 -1
  226. wagtail/admin/wagtail_hooks.py +2 -1
  227. wagtail/admin/widgets/slug.py +10 -10
  228. wagtail/api/v2/serializers.py +1 -1
  229. wagtail/api/v2/tests/test_renderer_classes.py +32 -0
  230. wagtail/apps.py +2 -0
  231. wagtail/bin/wagtail.py +1 -1
  232. wagtail/contrib/forms/locale/af/LC_MESSAGES/django.po +1 -1
  233. wagtail/contrib/forms/locale/ar/LC_MESSAGES/django.po +1 -1
  234. wagtail/contrib/forms/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  235. wagtail/contrib/forms/locale/be/LC_MESSAGES/django.po +1 -1
  236. wagtail/contrib/forms/locale/bg/LC_MESSAGES/django.po +1 -1
  237. wagtail/contrib/forms/locale/bn/LC_MESSAGES/django.po +1 -1
  238. wagtail/contrib/forms/locale/ca/LC_MESSAGES/django.po +1 -1
  239. wagtail/contrib/forms/locale/cs/LC_MESSAGES/django.po +1 -1
  240. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +1 -1
  241. wagtail/contrib/forms/locale/da/LC_MESSAGES/django.po +1 -1
  242. wagtail/contrib/forms/locale/de/LC_MESSAGES/django.po +1 -1
  243. wagtail/contrib/forms/locale/dv/LC_MESSAGES/django.po +1 -1
  244. wagtail/contrib/forms/locale/el/LC_MESSAGES/django.po +1 -1
  245. wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +14 -14
  246. wagtail/contrib/forms/locale/es/LC_MESSAGES/django.po +1 -1
  247. wagtail/contrib/forms/locale/es_419/LC_MESSAGES/django.po +1 -1
  248. wagtail/contrib/forms/locale/et/LC_MESSAGES/django.po +1 -1
  249. wagtail/contrib/forms/locale/eu/LC_MESSAGES/django.po +1 -1
  250. wagtail/contrib/forms/locale/fa/LC_MESSAGES/django.po +1 -1
  251. wagtail/contrib/forms/locale/fi/LC_MESSAGES/django.po +1 -1
  252. wagtail/contrib/forms/locale/fr/LC_MESSAGES/django.po +1 -1
  253. wagtail/contrib/forms/locale/gl/LC_MESSAGES/django.po +1 -1
  254. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +1 -1
  255. wagtail/contrib/forms/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  256. wagtail/contrib/forms/locale/ht/LC_MESSAGES/django.po +1 -1
  257. wagtail/contrib/forms/locale/hu/LC_MESSAGES/django.po +1 -1
  258. wagtail/contrib/forms/locale/hy/LC_MESSAGES/django.po +1 -1
  259. wagtail/contrib/forms/locale/id_ID/LC_MESSAGES/django.po +1 -1
  260. wagtail/contrib/forms/locale/is_IS/LC_MESSAGES/django.po +1 -1
  261. wagtail/contrib/forms/locale/it/LC_MESSAGES/django.po +1 -1
  262. wagtail/contrib/forms/locale/ja/LC_MESSAGES/django.po +1 -1
  263. wagtail/contrib/forms/locale/ka/LC_MESSAGES/django.po +1 -1
  264. wagtail/contrib/forms/locale/ko/LC_MESSAGES/django.po +1 -1
  265. wagtail/contrib/forms/locale/lt/LC_MESSAGES/django.po +1 -1
  266. wagtail/contrib/forms/locale/lv/LC_MESSAGES/django.po +1 -1
  267. wagtail/contrib/forms/locale/mi/LC_MESSAGES/django.po +1 -1
  268. wagtail/contrib/forms/locale/mn/LC_MESSAGES/django.po +1 -1
  269. wagtail/contrib/forms/locale/my/LC_MESSAGES/django.po +1 -1
  270. wagtail/contrib/forms/locale/nb/LC_MESSAGES/django.po +1 -1
  271. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.mo +0 -0
  272. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.po +20 -3
  273. wagtail/contrib/forms/locale/pl/LC_MESSAGES/django.po +1 -1
  274. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  275. wagtail/contrib/forms/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  276. wagtail/contrib/forms/locale/ro/LC_MESSAGES/django.po +1 -1
  277. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.mo +0 -0
  278. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.po +19 -2
  279. wagtail/contrib/forms/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  280. wagtail/contrib/forms/locale/sl/LC_MESSAGES/django.po +1 -1
  281. wagtail/contrib/forms/locale/sv/LC_MESSAGES/django.po +1 -1
  282. wagtail/contrib/forms/locale/tet/LC_MESSAGES/django.po +1 -1
  283. wagtail/contrib/forms/locale/th/LC_MESSAGES/django.po +1 -1
  284. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.mo +0 -0
  285. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.po +12 -2
  286. wagtail/contrib/forms/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  287. wagtail/contrib/forms/locale/ug/LC_MESSAGES/django.po +1 -1
  288. wagtail/contrib/forms/locale/uk/LC_MESSAGES/django.po +1 -1
  289. wagtail/contrib/forms/locale/vi/LC_MESSAGES/django.po +1 -1
  290. wagtail/contrib/forms/locale/zh/LC_MESSAGES/django.po +1 -1
  291. wagtail/contrib/forms/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  292. wagtail/contrib/forms/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  293. wagtail/contrib/frontend_cache/tests.py +4 -2
  294. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.mo +0 -0
  295. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.po +1 -13
  296. wagtail/contrib/redirects/locale/be/LC_MESSAGES/django.po +1 -1
  297. wagtail/contrib/redirects/locale/bg/LC_MESSAGES/django.po +1 -1
  298. wagtail/contrib/redirects/locale/bn/LC_MESSAGES/django.po +1 -1
  299. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.mo +0 -0
  300. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.po +9 -10
  301. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.mo +0 -0
  302. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.po +1 -13
  303. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
  304. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +1 -13
  305. wagtail/contrib/redirects/locale/da/LC_MESSAGES/django.po +1 -1
  306. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.mo +0 -0
  307. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.po +1 -13
  308. wagtail/contrib/redirects/locale/dv/LC_MESSAGES/django.po +1 -1
  309. wagtail/contrib/redirects/locale/el/LC_MESSAGES/django.po +1 -1
  310. wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +4 -4
  311. wagtail/contrib/redirects/locale/en_IN/LC_MESSAGES/django.po +1 -1
  312. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.mo +0 -0
  313. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.po +1 -14
  314. wagtail/contrib/redirects/locale/es_419/LC_MESSAGES/django.po +1 -1
  315. wagtail/contrib/redirects/locale/es_VE/LC_MESSAGES/django.po +1 -1
  316. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.mo +0 -0
  317. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.po +1 -13
  318. wagtail/contrib/redirects/locale/eu/LC_MESSAGES/django.po +1 -1
  319. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.po +1 -1
  320. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.mo +0 -0
  321. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.po +7 -11
  322. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.mo +0 -0
  323. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +9 -8
  324. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.mo +0 -0
  325. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.po +9 -9
  326. wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +1 -1
  327. wagtail/contrib/redirects/locale/hi/LC_MESSAGES/django.po +1 -1
  328. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  329. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.po +1 -13
  330. wagtail/contrib/redirects/locale/ht/LC_MESSAGES/django.po +1 -1
  331. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.mo +0 -0
  332. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.po +1 -13
  333. wagtail/contrib/redirects/locale/hy/LC_MESSAGES/django.po +1 -1
  334. wagtail/contrib/redirects/locale/id_ID/LC_MESSAGES/django.po +1 -1
  335. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  336. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.po +1 -13
  337. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.mo +0 -0
  338. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.po +1 -14
  339. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.mo +0 -0
  340. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.po +1 -13
  341. wagtail/contrib/redirects/locale/ka/LC_MESSAGES/django.po +1 -1
  342. wagtail/contrib/redirects/locale/ko/LC_MESSAGES/django.po +1 -1
  343. wagtail/contrib/redirects/locale/lt/LC_MESSAGES/django.po +1 -1
  344. wagtail/contrib/redirects/locale/lv/LC_MESSAGES/django.po +1 -1
  345. wagtail/contrib/redirects/locale/mi/LC_MESSAGES/django.po +1 -1
  346. wagtail/contrib/redirects/locale/mn/LC_MESSAGES/django.po +1 -1
  347. wagtail/contrib/redirects/locale/my/LC_MESSAGES/django.po +1 -1
  348. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.mo +0 -0
  349. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.po +1 -13
  350. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.mo +0 -0
  351. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.po +9 -9
  352. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.mo +0 -0
  353. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.po +1 -14
  354. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  355. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +1 -13
  356. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  357. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.po +1 -13
  358. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.mo +0 -0
  359. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.po +1 -13
  360. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.mo +0 -0
  361. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.po +1 -13
  362. wagtail/contrib/redirects/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  363. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.mo +0 -0
  364. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.po +1 -14
  365. wagtail/contrib/redirects/locale/sr/LC_MESSAGES/django.po +1 -1
  366. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.mo +0 -0
  367. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.po +1 -13
  368. wagtail/contrib/redirects/locale/ta/LC_MESSAGES/django.po +1 -1
  369. wagtail/contrib/redirects/locale/tet/LC_MESSAGES/django.po +1 -1
  370. wagtail/contrib/redirects/locale/th/LC_MESSAGES/django.po +1 -1
  371. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.mo +0 -0
  372. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.po +1 -13
  373. wagtail/contrib/redirects/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  374. wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.mo +0 -0
  375. wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.po +1 -13
  376. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.mo +0 -0
  377. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.po +1 -13
  378. wagtail/contrib/redirects/locale/vi/LC_MESSAGES/django.po +1 -1
  379. wagtail/contrib/redirects/locale/zh/LC_MESSAGES/django.po +1 -1
  380. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  381. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.po +1 -13
  382. wagtail/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  383. wagtail/contrib/redirects/tests/test_tmp_storages.py +20 -0
  384. wagtail/contrib/redirects/tmp_storages.py +1 -1
  385. wagtail/contrib/redirects/views.py +3 -3
  386. wagtail/contrib/search_promotions/locale/af/LC_MESSAGES/django.po +1 -1
  387. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.mo +0 -0
  388. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.po +1 -7
  389. wagtail/contrib/search_promotions/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  390. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.mo +0 -0
  391. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.po +1 -7
  392. wagtail/contrib/search_promotions/locale/bg/LC_MESSAGES/django.po +1 -1
  393. wagtail/contrib/search_promotions/locale/bn/LC_MESSAGES/django.po +1 -1
  394. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.mo +0 -0
  395. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.po +5 -5
  396. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.mo +0 -0
  397. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.po +1 -7
  398. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
  399. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +1 -7
  400. wagtail/contrib/search_promotions/locale/da/LC_MESSAGES/django.po +1 -1
  401. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.mo +0 -0
  402. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.po +1 -7
  403. wagtail/contrib/search_promotions/locale/dv/LC_MESSAGES/django.po +1 -1
  404. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.mo +0 -0
  405. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.po +1 -7
  406. wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +3 -3
  407. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.mo +0 -0
  408. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.po +1 -7
  409. wagtail/contrib/search_promotions/locale/es_419/LC_MESSAGES/django.po +1 -1
  410. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.mo +0 -0
  411. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.po +1 -7
  412. wagtail/contrib/search_promotions/locale/eu/LC_MESSAGES/django.po +1 -1
  413. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.mo +0 -0
  414. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.po +1 -7
  415. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.mo +0 -0
  416. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.po +1 -7
  417. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.mo +0 -0
  418. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +5 -5
  419. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.mo +0 -0
  420. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.po +5 -5
  421. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  422. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +1 -7
  423. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  424. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +1 -7
  425. wagtail/contrib/search_promotions/locale/ht/LC_MESSAGES/django.po +1 -1
  426. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.mo +0 -0
  427. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.po +1 -7
  428. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  429. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.po +1 -7
  430. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  431. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +1 -7
  432. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.mo +0 -0
  433. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +1 -7
  434. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.mo +0 -0
  435. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.po +1 -7
  436. wagtail/contrib/search_promotions/locale/ka/LC_MESSAGES/django.po +1 -1
  437. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.mo +0 -0
  438. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.po +1 -7
  439. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.mo +0 -0
  440. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.po +1 -7
  441. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.mo +0 -0
  442. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.po +1 -7
  443. wagtail/contrib/search_promotions/locale/mi/LC_MESSAGES/django.po +1 -1
  444. wagtail/contrib/search_promotions/locale/mn/LC_MESSAGES/django.po +1 -1
  445. wagtail/contrib/search_promotions/locale/my/LC_MESSAGES/django.po +1 -1
  446. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.mo +0 -0
  447. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.po +1 -7
  448. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.mo +0 -0
  449. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.po +4 -4
  450. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.mo +0 -0
  451. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.po +1 -7
  452. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  453. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  454. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  455. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.po +1 -7
  456. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.mo +0 -0
  457. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.po +1 -7
  458. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.mo +0 -0
  459. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.po +1 -7
  460. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  461. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.po +1 -7
  462. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.mo +0 -0
  463. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +1 -7
  464. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.mo +0 -0
  465. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.po +1 -7
  466. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.mo +0 -0
  467. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.po +1 -7
  468. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.mo +0 -0
  469. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.po +1 -7
  470. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.mo +0 -0
  471. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.po +44 -10
  472. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  473. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.po +1 -7
  474. wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.mo +0 -0
  475. wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.po +1 -7
  476. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.mo +0 -0
  477. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.po +1 -7
  478. wagtail/contrib/search_promotions/locale/vi/LC_MESSAGES/django.po +1 -1
  479. wagtail/contrib/search_promotions/locale/zh/LC_MESSAGES/django.po +1 -1
  480. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  481. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
  482. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  483. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.po +1 -7
  484. wagtail/contrib/search_promotions/static/wagtailsearchpromotions/js/query-chooser-modal.js +1 -1
  485. wagtail/contrib/search_promotions/views/settings.py +2 -2
  486. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.mo +0 -0
  487. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.po +6 -1
  488. wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +1 -1
  489. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.mo +0 -0
  490. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.po +6 -2
  491. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.mo +0 -0
  492. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.po +6 -1
  493. wagtail/contrib/settings/tests/site_specific/test_admin.py +48 -6
  494. wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +1 -1
  495. wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +1 -1
  496. wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html +5 -5
  497. wagtail/contrib/table_block/blocks.py +1 -0
  498. wagtail/contrib/table_block/locale/ar/LC_MESSAGES/django.po +1 -1
  499. wagtail/contrib/table_block/locale/be/LC_MESSAGES/django.po +1 -1
  500. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
  501. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +6 -3
  502. wagtail/contrib/table_block/locale/cs/LC_MESSAGES/django.po +1 -1
  503. wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +1 -1
  504. wagtail/contrib/table_block/locale/de/LC_MESSAGES/django.po +1 -1
  505. wagtail/contrib/table_block/locale/dv/LC_MESSAGES/django.po +1 -1
  506. wagtail/contrib/table_block/locale/el/LC_MESSAGES/django.po +1 -1
  507. wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +5 -1
  508. wagtail/contrib/table_block/locale/en_IN/LC_MESSAGES/django.po +1 -1
  509. wagtail/contrib/table_block/locale/es/LC_MESSAGES/django.po +1 -1
  510. wagtail/contrib/table_block/locale/et/LC_MESSAGES/django.po +1 -1
  511. wagtail/contrib/table_block/locale/fa/LC_MESSAGES/django.po +1 -1
  512. wagtail/contrib/table_block/locale/fi/LC_MESSAGES/django.po +1 -1
  513. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.mo +0 -0
  514. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.po +6 -3
  515. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.mo +0 -0
  516. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.po +6 -3
  517. wagtail/contrib/table_block/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  518. wagtail/contrib/table_block/locale/ht/LC_MESSAGES/django.po +1 -1
  519. wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +1 -1
  520. wagtail/contrib/table_block/locale/id_ID/LC_MESSAGES/django.po +1 -1
  521. wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
  522. wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +1 -1
  523. wagtail/contrib/table_block/locale/ja/LC_MESSAGES/django.po +1 -1
  524. wagtail/contrib/table_block/locale/ko/LC_MESSAGES/django.po +1 -1
  525. wagtail/contrib/table_block/locale/lt/LC_MESSAGES/django.po +1 -1
  526. wagtail/contrib/table_block/locale/lv/LC_MESSAGES/django.po +1 -1
  527. wagtail/contrib/table_block/locale/mi/LC_MESSAGES/django.po +1 -1
  528. wagtail/contrib/table_block/locale/mn/LC_MESSAGES/django.po +1 -1
  529. wagtail/contrib/table_block/locale/my/LC_MESSAGES/django.po +1 -1
  530. wagtail/contrib/table_block/locale/nb/LC_MESSAGES/django.po +1 -1
  531. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.mo +0 -0
  532. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.po +6 -3
  533. wagtail/contrib/table_block/locale/pl/LC_MESSAGES/django.po +1 -1
  534. wagtail/contrib/table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  535. wagtail/contrib/table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  536. wagtail/contrib/table_block/locale/ro/LC_MESSAGES/django.po +1 -1
  537. wagtail/contrib/table_block/locale/ru/LC_MESSAGES/django.po +1 -1
  538. wagtail/contrib/table_block/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  539. wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.po +1 -1
  540. wagtail/contrib/table_block/locale/sv/LC_MESSAGES/django.po +1 -1
  541. wagtail/contrib/table_block/locale/tet/LC_MESSAGES/django.po +1 -1
  542. wagtail/contrib/table_block/locale/th/LC_MESSAGES/django.po +1 -1
  543. wagtail/contrib/table_block/locale/tr/LC_MESSAGES/django.po +1 -1
  544. wagtail/contrib/table_block/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  545. wagtail/contrib/table_block/locale/ug/LC_MESSAGES/django.po +1 -1
  546. wagtail/contrib/table_block/locale/uk/LC_MESSAGES/django.po +1 -1
  547. wagtail/contrib/table_block/locale/vi/LC_MESSAGES/django.po +1 -1
  548. wagtail/contrib/table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  549. wagtail/contrib/table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  550. wagtail/contrib/table_block/static/table_block/js/table.js +1 -1
  551. wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +1 -1
  552. wagtail/contrib/typed_table_block/static/typed_table_block/js/typed_table_block.js +1 -1
  553. wagtail/coreutils.py +5 -5
  554. wagtail/documents/forms.py +18 -1
  555. wagtail/documents/locale/af/LC_MESSAGES/django.po +1 -1
  556. wagtail/documents/locale/ar/LC_MESSAGES/django.mo +0 -0
  557. wagtail/documents/locale/ar/LC_MESSAGES/django.po +1 -5
  558. wagtail/documents/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  559. wagtail/documents/locale/be/LC_MESSAGES/django.mo +0 -0
  560. wagtail/documents/locale/be/LC_MESSAGES/django.po +1 -5
  561. wagtail/documents/locale/bg/LC_MESSAGES/django.po +1 -1
  562. wagtail/documents/locale/bn/LC_MESSAGES/django.po +1 -1
  563. wagtail/documents/locale/ca/LC_MESSAGES/django.mo +0 -0
  564. wagtail/documents/locale/ca/LC_MESSAGES/django.po +5 -5
  565. wagtail/documents/locale/cs/LC_MESSAGES/django.mo +0 -0
  566. wagtail/documents/locale/cs/LC_MESSAGES/django.po +1 -7
  567. wagtail/documents/locale/cy/LC_MESSAGES/django.po +1 -1
  568. wagtail/documents/locale/da/LC_MESSAGES/django.po +1 -1
  569. wagtail/documents/locale/de/LC_MESSAGES/django.mo +0 -0
  570. wagtail/documents/locale/de/LC_MESSAGES/django.po +1 -7
  571. wagtail/documents/locale/dv/LC_MESSAGES/django.po +1 -1
  572. wagtail/documents/locale/el/LC_MESSAGES/django.mo +0 -0
  573. wagtail/documents/locale/el/LC_MESSAGES/django.po +1 -7
  574. wagtail/documents/locale/en/LC_MESSAGES/django.po +10 -10
  575. wagtail/documents/locale/es/LC_MESSAGES/django.mo +0 -0
  576. wagtail/documents/locale/es/LC_MESSAGES/django.po +1 -7
  577. wagtail/documents/locale/es_419/LC_MESSAGES/django.po +1 -1
  578. wagtail/documents/locale/et/LC_MESSAGES/django.mo +0 -0
  579. wagtail/documents/locale/et/LC_MESSAGES/django.po +1 -5
  580. wagtail/documents/locale/eu/LC_MESSAGES/django.po +1 -1
  581. wagtail/documents/locale/fa/LC_MESSAGES/django.mo +0 -0
  582. wagtail/documents/locale/fa/LC_MESSAGES/django.po +1 -5
  583. wagtail/documents/locale/fi/LC_MESSAGES/django.mo +0 -0
  584. wagtail/documents/locale/fi/LC_MESSAGES/django.po +1 -5
  585. wagtail/documents/locale/fr/LC_MESSAGES/django.mo +0 -0
  586. wagtail/documents/locale/fr/LC_MESSAGES/django.po +5 -5
  587. wagtail/documents/locale/gl/LC_MESSAGES/django.mo +0 -0
  588. wagtail/documents/locale/gl/LC_MESSAGES/django.po +5 -5
  589. wagtail/documents/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  590. wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +1 -5
  591. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  592. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +1 -6
  593. wagtail/documents/locale/ht/LC_MESSAGES/django.po +1 -1
  594. wagtail/documents/locale/hu/LC_MESSAGES/django.mo +0 -0
  595. wagtail/documents/locale/hu/LC_MESSAGES/django.po +1 -7
  596. wagtail/documents/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  597. wagtail/documents/locale/id_ID/LC_MESSAGES/django.po +1 -6
  598. wagtail/documents/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  599. wagtail/documents/locale/is_IS/LC_MESSAGES/django.po +1 -5
  600. wagtail/documents/locale/it/LC_MESSAGES/django.mo +0 -0
  601. wagtail/documents/locale/it/LC_MESSAGES/django.po +1 -5
  602. wagtail/documents/locale/ja/LC_MESSAGES/django.mo +0 -0
  603. wagtail/documents/locale/ja/LC_MESSAGES/django.po +1 -7
  604. wagtail/documents/locale/ka/LC_MESSAGES/django.po +1 -1
  605. wagtail/documents/locale/ko/LC_MESSAGES/django.mo +0 -0
  606. wagtail/documents/locale/ko/LC_MESSAGES/django.po +1 -6
  607. wagtail/documents/locale/lt/LC_MESSAGES/django.mo +0 -0
  608. wagtail/documents/locale/lt/LC_MESSAGES/django.po +1 -5
  609. wagtail/documents/locale/lv/LC_MESSAGES/django.po +1 -1
  610. wagtail/documents/locale/mi/LC_MESSAGES/django.mo +0 -0
  611. wagtail/documents/locale/mi/LC_MESSAGES/django.po +1 -7
  612. wagtail/documents/locale/mn/LC_MESSAGES/django.mo +0 -0
  613. wagtail/documents/locale/mn/LC_MESSAGES/django.po +1 -5
  614. wagtail/documents/locale/my/LC_MESSAGES/django.po +1 -1
  615. wagtail/documents/locale/nb/LC_MESSAGES/django.mo +0 -0
  616. wagtail/documents/locale/nb/LC_MESSAGES/django.po +1 -5
  617. wagtail/documents/locale/nl/LC_MESSAGES/django.mo +0 -0
  618. wagtail/documents/locale/nl/LC_MESSAGES/django.po +15 -6
  619. wagtail/documents/locale/pl/LC_MESSAGES/django.mo +0 -0
  620. wagtail/documents/locale/pl/LC_MESSAGES/django.po +1 -6
  621. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  622. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  623. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  624. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.po +1 -6
  625. wagtail/documents/locale/ro/LC_MESSAGES/django.mo +0 -0
  626. wagtail/documents/locale/ro/LC_MESSAGES/django.po +1 -5
  627. wagtail/documents/locale/ru/LC_MESSAGES/django.mo +0 -0
  628. wagtail/documents/locale/ru/LC_MESSAGES/django.po +10 -7
  629. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  630. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.po +1 -5
  631. wagtail/documents/locale/sl/LC_MESSAGES/django.mo +0 -0
  632. wagtail/documents/locale/sl/LC_MESSAGES/django.po +1 -7
  633. wagtail/documents/locale/sv/LC_MESSAGES/django.mo +0 -0
  634. wagtail/documents/locale/sv/LC_MESSAGES/django.po +1 -6
  635. wagtail/documents/locale/tet/LC_MESSAGES/django.po +1 -1
  636. wagtail/documents/locale/th/LC_MESSAGES/django.mo +0 -0
  637. wagtail/documents/locale/th/LC_MESSAGES/django.po +1 -5
  638. wagtail/documents/locale/tr/LC_MESSAGES/django.mo +0 -0
  639. wagtail/documents/locale/tr/LC_MESSAGES/django.po +13 -5
  640. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  641. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.po +1 -5
  642. wagtail/documents/locale/ug/LC_MESSAGES/django.mo +0 -0
  643. wagtail/documents/locale/ug/LC_MESSAGES/django.po +1 -5
  644. wagtail/documents/locale/uk/LC_MESSAGES/django.mo +0 -0
  645. wagtail/documents/locale/uk/LC_MESSAGES/django.po +1 -5
  646. wagtail/documents/locale/vi/LC_MESSAGES/django.po +1 -1
  647. wagtail/documents/locale/zh/LC_MESSAGES/django.po +1 -1
  648. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  649. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.po +1 -5
  650. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  651. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.po +1 -5
  652. wagtail/documents/models.py +1 -1
  653. wagtail/documents/static/wagtaildocs/js/add-multiple.js +1 -1
  654. wagtail/documents/static/wagtaildocs/js/document-chooser-modal.js +1 -1
  655. wagtail/documents/static/wagtaildocs/js/document-chooser-telepath.js +1 -1
  656. wagtail/documents/static/wagtaildocs/js/document-chooser.js +1 -1
  657. wagtail/documents/templates/wagtaildocs/documents/add.html +0 -34
  658. wagtail/documents/tests/test_admin_views.py +132 -26
  659. wagtail/documents/tests/test_collection_privacy.py +18 -4
  660. wagtail/documents/tests/test_form_overrides.py +1 -1
  661. wagtail/documents/tests/test_search.py +21 -8
  662. wagtail/documents/views/documents.py +1 -1
  663. wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
  664. wagtail/embeds/static/wagtailembeds/js/embed-chooser-modal.js +1 -1
  665. wagtail/images/forms.py +16 -1
  666. wagtail/images/locale/ar/LC_MESSAGES/django.mo +0 -0
  667. wagtail/images/locale/ar/LC_MESSAGES/django.po +7 -10
  668. wagtail/images/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  669. wagtail/images/locale/be/LC_MESSAGES/django.po +7 -7
  670. wagtail/images/locale/bg/LC_MESSAGES/django.po +4 -4
  671. wagtail/images/locale/bn/LC_MESSAGES/django.po +1 -1
  672. wagtail/images/locale/ca/LC_MESSAGES/django.mo +0 -0
  673. wagtail/images/locale/ca/LC_MESSAGES/django.po +15 -9
  674. wagtail/images/locale/cs/LC_MESSAGES/django.mo +0 -0
  675. wagtail/images/locale/cs/LC_MESSAGES/django.po +19 -8
  676. wagtail/images/locale/cy/LC_MESSAGES/django.po +4 -4
  677. wagtail/images/locale/da/LC_MESSAGES/django.po +1 -1
  678. wagtail/images/locale/de/LC_MESSAGES/django.po +7 -7
  679. wagtail/images/locale/dv/LC_MESSAGES/django.po +7 -7
  680. wagtail/images/locale/el/LC_MESSAGES/django.po +7 -7
  681. wagtail/images/locale/en/LC_MESSAGES/django.po +57 -46
  682. wagtail/images/locale/es/LC_MESSAGES/django.po +7 -7
  683. wagtail/images/locale/es_419/LC_MESSAGES/django.po +1 -1
  684. wagtail/images/locale/et/LC_MESSAGES/django.po +7 -7
  685. wagtail/images/locale/eu/LC_MESSAGES/django.po +1 -1
  686. wagtail/images/locale/fa/LC_MESSAGES/django.po +4 -4
  687. wagtail/images/locale/fi/LC_MESSAGES/django.mo +0 -0
  688. wagtail/images/locale/fi/LC_MESSAGES/django.po +18 -9
  689. wagtail/images/locale/fr/LC_MESSAGES/django.mo +0 -0
  690. wagtail/images/locale/fr/LC_MESSAGES/django.po +15 -9
  691. wagtail/images/locale/gl/LC_MESSAGES/django.mo +0 -0
  692. wagtail/images/locale/gl/LC_MESSAGES/django.po +15 -9
  693. wagtail/images/locale/he_IL/LC_MESSAGES/django.po +4 -4
  694. wagtail/images/locale/hr_HR/LC_MESSAGES/django.po +7 -7
  695. wagtail/images/locale/ht/LC_MESSAGES/django.po +1 -1
  696. wagtail/images/locale/hu/LC_MESSAGES/django.mo +0 -0
  697. wagtail/images/locale/hu/LC_MESSAGES/django.po +7 -10
  698. wagtail/images/locale/id_ID/LC_MESSAGES/django.po +4 -4
  699. wagtail/images/locale/is_IS/LC_MESSAGES/django.po +7 -7
  700. wagtail/images/locale/it/LC_MESSAGES/django.po +7 -7
  701. wagtail/images/locale/ja/LC_MESSAGES/django.po +7 -7
  702. wagtail/images/locale/ka/LC_MESSAGES/django.po +4 -4
  703. wagtail/images/locale/ko/LC_MESSAGES/django.po +7 -7
  704. wagtail/images/locale/lt/LC_MESSAGES/django.po +7 -7
  705. wagtail/images/locale/lv/LC_MESSAGES/django.po +4 -4
  706. wagtail/images/locale/mi/LC_MESSAGES/django.po +7 -7
  707. wagtail/images/locale/mn/LC_MESSAGES/django.po +4 -4
  708. wagtail/images/locale/my/LC_MESSAGES/django.po +1 -1
  709. wagtail/images/locale/nb/LC_MESSAGES/django.po +7 -7
  710. wagtail/images/locale/nl/LC_MESSAGES/django.mo +0 -0
  711. wagtail/images/locale/nl/LC_MESSAGES/django.po +50 -21
  712. wagtail/images/locale/pl/LC_MESSAGES/django.po +7 -7
  713. wagtail/images/locale/pt_BR/LC_MESSAGES/django.po +7 -7
  714. wagtail/images/locale/pt_PT/LC_MESSAGES/django.po +7 -7
  715. wagtail/images/locale/ro/LC_MESSAGES/django.po +7 -7
  716. wagtail/images/locale/ru/LC_MESSAGES/django.mo +0 -0
  717. wagtail/images/locale/ru/LC_MESSAGES/django.po +24 -8
  718. wagtail/images/locale/sk_SK/LC_MESSAGES/django.po +4 -4
  719. wagtail/images/locale/sl/LC_MESSAGES/django.po +7 -7
  720. wagtail/images/locale/sv/LC_MESSAGES/django.po +7 -7
  721. wagtail/images/locale/tet/LC_MESSAGES/django.po +4 -4
  722. wagtail/images/locale/th/LC_MESSAGES/django.po +4 -4
  723. wagtail/images/locale/tr/LC_MESSAGES/django.mo +0 -0
  724. wagtail/images/locale/tr/LC_MESSAGES/django.po +85 -7
  725. wagtail/images/locale/tr_TR/LC_MESSAGES/django.po +4 -4
  726. wagtail/images/locale/ug/LC_MESSAGES/django.po +7 -7
  727. wagtail/images/locale/uk/LC_MESSAGES/django.po +7 -7
  728. wagtail/images/locale/vi/LC_MESSAGES/django.po +4 -4
  729. wagtail/images/locale/zh/LC_MESSAGES/django.po +4 -4
  730. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.po +7 -7
  731. wagtail/images/locale/zh_Hant/LC_MESSAGES/django.po +7 -7
  732. wagtail/images/models.py +1 -1
  733. wagtail/images/static/wagtailimages/js/add-multiple.js +1 -1
  734. wagtail/images/static/wagtailimages/js/focal-point-chooser.js +1 -1
  735. wagtail/images/static/wagtailimages/js/image-block.js +1 -1
  736. wagtail/images/static/wagtailimages/js/image-chooser-modal.js +1 -1
  737. wagtail/images/static/wagtailimages/js/image-chooser-telepath.js +1 -1
  738. wagtail/images/static/wagtailimages/js/image-chooser.js +1 -1
  739. wagtail/images/static/wagtailimages/js/image-url-generator.js +1 -1
  740. wagtail/images/static/wagtailimages/js/vendor/jquery.Jcrop.min.js +1 -1
  741. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-image.js +1 -1
  742. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-validate.js +1 -1
  743. wagtail/images/static/wagtailimages/js/vendor/load-image.min.js +1 -1
  744. wagtail/images/templates/wagtailimages/chooser/chooser.html +22 -13
  745. wagtail/images/templates/wagtailimages/chooser/image_preview_column_cell.html +10 -0
  746. wagtail/images/templates/wagtailimages/chooser/results.html +24 -20
  747. wagtail/images/templates/wagtailimages/chooser/title_column_cell.html +15 -0
  748. wagtail/images/templates/wagtailimages/images/add.html +0 -34
  749. wagtail/images/templates/wagtailimages/images/index.html +3 -3
  750. wagtail/images/templates/wagtailimages/images/index_results.html +1 -1
  751. wagtail/images/templates/wagtailimages/images/layout_toggle_button.html +8 -7
  752. wagtail/images/templatetags/wagtailimages_tags.py +2 -2
  753. wagtail/images/tests/test_admin_views.py +87 -0
  754. wagtail/images/tests/test_form_overrides.py +1 -1
  755. wagtail/images/tests/test_models.py +48 -9
  756. wagtail/images/views/chooser.py +66 -2
  757. wagtail/locale/af/LC_MESSAGES/django.po +1 -1
  758. wagtail/locale/ar/LC_MESSAGES/django.mo +0 -0
  759. wagtail/locale/ar/LC_MESSAGES/django.po +1 -9
  760. wagtail/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  761. wagtail/locale/be/LC_MESSAGES/django.po +1 -1
  762. wagtail/locale/bg/LC_MESSAGES/django.po +1 -1
  763. wagtail/locale/bn/LC_MESSAGES/django.po +1 -1
  764. wagtail/locale/ca/LC_MESSAGES/django.mo +0 -0
  765. wagtail/locale/ca/LC_MESSAGES/django.po +4 -4
  766. wagtail/locale/cs/LC_MESSAGES/django.po +1 -1
  767. wagtail/locale/cy/LC_MESSAGES/django.po +1 -1
  768. wagtail/locale/da/LC_MESSAGES/django.po +1 -1
  769. wagtail/locale/de/LC_MESSAGES/django.mo +0 -0
  770. wagtail/locale/de/LC_MESSAGES/django.po +1 -9
  771. wagtail/locale/dv/LC_MESSAGES/django.mo +0 -0
  772. wagtail/locale/dv/LC_MESSAGES/django.po +1 -8
  773. wagtail/locale/el/LC_MESSAGES/django.po +1 -1
  774. wagtail/locale/en/LC_MESSAGES/django.po +55 -55
  775. wagtail/locale/es/LC_MESSAGES/django.po +1 -1
  776. wagtail/locale/es_419/LC_MESSAGES/django.po +1 -1
  777. wagtail/locale/et/LC_MESSAGES/django.po +1 -1
  778. wagtail/locale/eu/LC_MESSAGES/django.po +1 -1
  779. wagtail/locale/fa/LC_MESSAGES/django.po +1 -1
  780. wagtail/locale/fi/LC_MESSAGES/django.po +1 -1
  781. wagtail/locale/fr/LC_MESSAGES/django.mo +0 -0
  782. wagtail/locale/fr/LC_MESSAGES/django.po +4 -4
  783. wagtail/locale/gl/LC_MESSAGES/django.mo +0 -0
  784. wagtail/locale/gl/LC_MESSAGES/django.po +3 -3
  785. wagtail/locale/he_IL/LC_MESSAGES/django.po +1 -1
  786. wagtail/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  787. wagtail/locale/hu/LC_MESSAGES/django.mo +0 -0
  788. wagtail/locale/hu/LC_MESSAGES/django.po +1 -9
  789. wagtail/locale/id_ID/LC_MESSAGES/django.po +1 -1
  790. wagtail/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  791. wagtail/locale/is_IS/LC_MESSAGES/django.po +4 -12
  792. wagtail/locale/it/LC_MESSAGES/django.po +1 -1
  793. wagtail/locale/ja/LC_MESSAGES/django.po +1 -1
  794. wagtail/locale/ka/LC_MESSAGES/django.po +1 -1
  795. wagtail/locale/ko/LC_MESSAGES/django.po +1 -1
  796. wagtail/locale/lt/LC_MESSAGES/django.po +1 -1
  797. wagtail/locale/lv/LC_MESSAGES/django.po +1 -1
  798. wagtail/locale/mi/LC_MESSAGES/django.po +1 -1
  799. wagtail/locale/mn/LC_MESSAGES/django.po +1 -1
  800. wagtail/locale/my/LC_MESSAGES/django.po +1 -1
  801. wagtail/locale/nb/LC_MESSAGES/django.po +1 -1
  802. wagtail/locale/nl/LC_MESSAGES/django.mo +0 -0
  803. wagtail/locale/nl/LC_MESSAGES/django.po +15 -6
  804. wagtail/locale/pl/LC_MESSAGES/django.mo +0 -0
  805. wagtail/locale/pl/LC_MESSAGES/django.po +1 -9
  806. wagtail/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  807. wagtail/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  808. wagtail/locale/ro/LC_MESSAGES/django.mo +0 -0
  809. wagtail/locale/ro/LC_MESSAGES/django.po +1 -9
  810. wagtail/locale/ru/LC_MESSAGES/django.mo +0 -0
  811. wagtail/locale/ru/LC_MESSAGES/django.po +12 -10
  812. wagtail/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  813. wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
  814. wagtail/locale/sl/LC_MESSAGES/django.po +1 -9
  815. wagtail/locale/sv/LC_MESSAGES/django.mo +0 -0
  816. wagtail/locale/sv/LC_MESSAGES/django.po +1 -9
  817. wagtail/locale/tet/LC_MESSAGES/django.po +1 -1
  818. wagtail/locale/th/LC_MESSAGES/django.po +1 -1
  819. wagtail/locale/tr/LC_MESSAGES/django.mo +0 -0
  820. wagtail/locale/tr/LC_MESSAGES/django.po +4 -8
  821. wagtail/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  822. wagtail/locale/ug/LC_MESSAGES/django.mo +0 -0
  823. wagtail/locale/ug/LC_MESSAGES/django.po +1 -8
  824. wagtail/locale/uk/LC_MESSAGES/django.po +1 -1
  825. wagtail/locale/vi/LC_MESSAGES/django.po +1 -1
  826. wagtail/locale/zh/LC_MESSAGES/django.po +1 -1
  827. wagtail/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  828. wagtail/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  829. wagtail/locales/locale/en/LC_MESSAGES/django.po +1 -1
  830. wagtail/locales/locale/nl/LC_MESSAGES/django.mo +0 -0
  831. wagtail/locales/locale/nl/LC_MESSAGES/django.po +12 -1
  832. wagtail/locales/locale/ru/LC_MESSAGES/django.mo +0 -0
  833. wagtail/locales/locale/ru/LC_MESSAGES/django.po +10 -1
  834. wagtail/locales/views.py +2 -2
  835. wagtail/models/orderable.py +10 -0
  836. wagtail/models/pages.py +9 -11
  837. wagtail/models/sites.py +1 -1
  838. wagtail/models/workflows.py +8 -5
  839. wagtail/project_template/home/tests.py +6 -7
  840. wagtail/project_template/project_name/settings/base.py +9 -9
  841. wagtail/project_template/requirements.txt +1 -1
  842. wagtail/query.py +7 -2
  843. wagtail/rich_text/rewriters.py +1 -1
  844. wagtail/search/apps.py +4 -49
  845. wagtail/search/backends/__init__.py +1 -113
  846. wagtail/search/backends/base.py +1 -547
  847. wagtail/search/backends/database/__init__.py +1 -50
  848. wagtail/search/backends/database/fallback.py +1 -253
  849. wagtail/search/backends/database/mysql/mysql.py +1 -700
  850. wagtail/search/backends/database/mysql/query.py +1 -258
  851. wagtail/search/backends/database/postgres/postgres.py +1 -749
  852. wagtail/search/backends/database/postgres/query.py +1 -83
  853. wagtail/search/backends/database/postgres/weights.py +1 -63
  854. wagtail/search/backends/database/sqlite/query.py +1 -294
  855. wagtail/search/backends/database/sqlite/sqlite.py +1 -719
  856. wagtail/search/backends/database/sqlite/utils.py +1 -35
  857. wagtail/search/backends/deprecation.py +45 -0
  858. wagtail/search/backends/elasticsearch7.py +18 -1260
  859. wagtail/search/backends/elasticsearch8.py +21 -96
  860. wagtail/search/backends/elasticsearch9.py +35 -0
  861. wagtail/search/backends/opensearch2.py +35 -0
  862. wagtail/search/backends/opensearch3.py +35 -0
  863. wagtail/search/index.py +1 -358
  864. wagtail/search/locale/ar/LC_MESSAGES/django.mo +0 -0
  865. wagtail/search/locale/ar/LC_MESSAGES/django.po +1 -7
  866. wagtail/search/locale/be/LC_MESSAGES/django.mo +0 -0
  867. wagtail/search/locale/be/LC_MESSAGES/django.po +1 -7
  868. wagtail/search/locale/ca/LC_MESSAGES/django.mo +0 -0
  869. wagtail/search/locale/ca/LC_MESSAGES/django.po +1 -7
  870. wagtail/search/locale/cs/LC_MESSAGES/django.po +1 -1
  871. wagtail/search/locale/cy/LC_MESSAGES/django.mo +0 -0
  872. wagtail/search/locale/cy/LC_MESSAGES/django.po +1 -7
  873. wagtail/search/locale/de/LC_MESSAGES/django.mo +0 -0
  874. wagtail/search/locale/de/LC_MESSAGES/django.po +1 -7
  875. wagtail/search/locale/dv/LC_MESSAGES/django.mo +0 -0
  876. wagtail/search/locale/dv/LC_MESSAGES/django.po +1 -7
  877. wagtail/search/locale/en/LC_MESSAGES/django.po +2 -10
  878. wagtail/search/locale/es/LC_MESSAGES/django.mo +0 -0
  879. wagtail/search/locale/es/LC_MESSAGES/django.po +1 -7
  880. wagtail/search/locale/et/LC_MESSAGES/django.po +1 -1
  881. wagtail/search/locale/fa/LC_MESSAGES/django.po +1 -1
  882. wagtail/search/locale/fi/LC_MESSAGES/django.mo +0 -0
  883. wagtail/search/locale/fi/LC_MESSAGES/django.po +1 -7
  884. wagtail/search/locale/fr/LC_MESSAGES/django.mo +0 -0
  885. wagtail/search/locale/fr/LC_MESSAGES/django.po +1 -7
  886. wagtail/search/locale/gl/LC_MESSAGES/django.mo +0 -0
  887. wagtail/search/locale/gl/LC_MESSAGES/django.po +1 -7
  888. wagtail/search/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  889. wagtail/search/locale/hr_HR/LC_MESSAGES/django.po +1 -7
  890. wagtail/search/locale/ht/LC_MESSAGES/django.po +1 -1
  891. wagtail/search/locale/hu/LC_MESSAGES/django.mo +0 -0
  892. wagtail/search/locale/hu/LC_MESSAGES/django.po +1 -7
  893. wagtail/search/locale/id_ID/LC_MESSAGES/django.po +1 -1
  894. wagtail/search/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  895. wagtail/search/locale/is_IS/LC_MESSAGES/django.po +1 -7
  896. wagtail/search/locale/it/LC_MESSAGES/django.mo +0 -0
  897. wagtail/search/locale/it/LC_MESSAGES/django.po +1 -7
  898. wagtail/search/locale/ja/LC_MESSAGES/django.po +1 -1
  899. wagtail/search/locale/ko/LC_MESSAGES/django.mo +0 -0
  900. wagtail/search/locale/ko/LC_MESSAGES/django.po +1 -7
  901. wagtail/search/locale/lt/LC_MESSAGES/django.po +1 -1
  902. wagtail/search/locale/mi/LC_MESSAGES/django.po +1 -1
  903. wagtail/search/locale/mn/LC_MESSAGES/django.po +1 -1
  904. wagtail/search/locale/my/LC_MESSAGES/django.po +1 -1
  905. wagtail/search/locale/nb/LC_MESSAGES/django.mo +0 -0
  906. wagtail/search/locale/nb/LC_MESSAGES/django.po +1 -7
  907. wagtail/search/locale/nl/LC_MESSAGES/django.mo +0 -0
  908. wagtail/search/locale/nl/LC_MESSAGES/django.po +1 -7
  909. wagtail/search/locale/pl/LC_MESSAGES/django.mo +0 -0
  910. wagtail/search/locale/pl/LC_MESSAGES/django.po +1 -7
  911. wagtail/search/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  912. wagtail/search/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  913. wagtail/search/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  914. wagtail/search/locale/pt_PT/LC_MESSAGES/django.po +1 -7
  915. wagtail/search/locale/ro/LC_MESSAGES/django.mo +0 -0
  916. wagtail/search/locale/ro/LC_MESSAGES/django.po +1 -7
  917. wagtail/search/locale/ru/LC_MESSAGES/django.mo +0 -0
  918. wagtail/search/locale/ru/LC_MESSAGES/django.po +1 -7
  919. wagtail/search/locale/sl/LC_MESSAGES/django.mo +0 -0
  920. wagtail/search/locale/sl/LC_MESSAGES/django.po +1 -7
  921. wagtail/search/locale/sv/LC_MESSAGES/django.mo +0 -0
  922. wagtail/search/locale/sv/LC_MESSAGES/django.po +1 -7
  923. wagtail/search/locale/tet/LC_MESSAGES/django.po +1 -1
  924. wagtail/search/locale/th/LC_MESSAGES/django.po +1 -1
  925. wagtail/search/locale/tr/LC_MESSAGES/django.mo +0 -0
  926. wagtail/search/locale/tr/LC_MESSAGES/django.po +1 -7
  927. wagtail/search/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  928. wagtail/search/locale/ug/LC_MESSAGES/django.mo +0 -0
  929. wagtail/search/locale/ug/LC_MESSAGES/django.po +1 -7
  930. wagtail/search/locale/uk/LC_MESSAGES/django.mo +0 -0
  931. wagtail/search/locale/uk/LC_MESSAGES/django.po +1 -7
  932. wagtail/search/locale/vi/LC_MESSAGES/django.po +1 -1
  933. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  934. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
  935. wagtail/search/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  936. wagtail/search/management/commands/update_index.py +1 -205
  937. wagtail/search/management/commands/wagtail_update_index.py +1 -4
  938. wagtail/search/models.py +29 -158
  939. wagtail/search/query.py +1 -114
  940. wagtail/search/queryset.py +1 -43
  941. wagtail/search/signal_handlers.py +1 -24
  942. wagtail/search/tasks.py +1 -10
  943. wagtail/search/tests/test_elasticsearch.py +22 -0
  944. wagtail/search/utils.py +1 -206
  945. wagtail/sites/locale/en/LC_MESSAGES/django.po +1 -1
  946. wagtail/snippets/locale/af/LC_MESSAGES/django.po +1 -1
  947. wagtail/snippets/locale/ar/LC_MESSAGES/django.po +1 -1
  948. wagtail/snippets/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  949. wagtail/snippets/locale/be/LC_MESSAGES/django.po +1 -1
  950. wagtail/snippets/locale/bg/LC_MESSAGES/django.po +1 -1
  951. wagtail/snippets/locale/bn/LC_MESSAGES/django.po +1 -1
  952. wagtail/snippets/locale/ca/LC_MESSAGES/django.po +1 -1
  953. wagtail/snippets/locale/cs/LC_MESSAGES/django.po +1 -1
  954. wagtail/snippets/locale/cy/LC_MESSAGES/django.po +1 -1
  955. wagtail/snippets/locale/da/LC_MESSAGES/django.po +1 -1
  956. wagtail/snippets/locale/de/LC_MESSAGES/django.po +1 -1
  957. wagtail/snippets/locale/dv/LC_MESSAGES/django.po +1 -1
  958. wagtail/snippets/locale/el/LC_MESSAGES/django.po +1 -1
  959. wagtail/snippets/locale/en/LC_MESSAGES/django.po +3 -3
  960. wagtail/snippets/locale/en_IN/LC_MESSAGES/django.po +1 -1
  961. wagtail/snippets/locale/es/LC_MESSAGES/django.po +1 -1
  962. wagtail/snippets/locale/es_419/LC_MESSAGES/django.po +1 -1
  963. wagtail/snippets/locale/es_VE/LC_MESSAGES/django.po +1 -1
  964. wagtail/snippets/locale/et/LC_MESSAGES/django.po +1 -1
  965. wagtail/snippets/locale/eu/LC_MESSAGES/django.po +1 -1
  966. wagtail/snippets/locale/fa/LC_MESSAGES/django.po +1 -1
  967. wagtail/snippets/locale/fi/LC_MESSAGES/django.po +1 -1
  968. wagtail/snippets/locale/fr/LC_MESSAGES/django.po +1 -1
  969. wagtail/snippets/locale/gl/LC_MESSAGES/django.po +1 -1
  970. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +1 -1
  971. wagtail/snippets/locale/hi/LC_MESSAGES/django.po +1 -1
  972. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  973. wagtail/snippets/locale/ht/LC_MESSAGES/django.po +1 -1
  974. wagtail/snippets/locale/hu/LC_MESSAGES/django.po +1 -1
  975. wagtail/snippets/locale/id_ID/LC_MESSAGES/django.po +1 -1
  976. wagtail/snippets/locale/is_IS/LC_MESSAGES/django.po +1 -1
  977. wagtail/snippets/locale/it/LC_MESSAGES/django.po +1 -1
  978. wagtail/snippets/locale/ja/LC_MESSAGES/django.po +1 -1
  979. wagtail/snippets/locale/ka/LC_MESSAGES/django.po +1 -1
  980. wagtail/snippets/locale/ko/LC_MESSAGES/django.po +1 -1
  981. wagtail/snippets/locale/lt/LC_MESSAGES/django.po +1 -1
  982. wagtail/snippets/locale/lv/LC_MESSAGES/django.po +1 -1
  983. wagtail/snippets/locale/mi/LC_MESSAGES/django.po +1 -1
  984. wagtail/snippets/locale/mn/LC_MESSAGES/django.po +1 -1
  985. wagtail/snippets/locale/my/LC_MESSAGES/django.po +1 -1
  986. wagtail/snippets/locale/nb/LC_MESSAGES/django.po +1 -1
  987. wagtail/snippets/locale/nl/LC_MESSAGES/django.po +1 -1
  988. wagtail/snippets/locale/pl/LC_MESSAGES/django.po +1 -1
  989. wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  990. wagtail/snippets/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  991. wagtail/snippets/locale/ro/LC_MESSAGES/django.po +1 -1
  992. wagtail/snippets/locale/ru/LC_MESSAGES/django.mo +0 -0
  993. wagtail/snippets/locale/ru/LC_MESSAGES/django.po +9 -2
  994. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  995. wagtail/snippets/locale/sl/LC_MESSAGES/django.po +1 -1
  996. wagtail/snippets/locale/sr/LC_MESSAGES/django.po +1 -1
  997. wagtail/snippets/locale/sv/LC_MESSAGES/django.po +1 -1
  998. wagtail/snippets/locale/ta/LC_MESSAGES/django.po +1 -1
  999. wagtail/snippets/locale/tet/LC_MESSAGES/django.po +1 -1
  1000. wagtail/snippets/locale/th/LC_MESSAGES/django.po +1 -1
  1001. wagtail/snippets/locale/tr/LC_MESSAGES/django.mo +0 -0
  1002. wagtail/snippets/locale/tr/LC_MESSAGES/django.po +9 -2
  1003. wagtail/snippets/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1004. wagtail/snippets/locale/ug/LC_MESSAGES/django.po +1 -1
  1005. wagtail/snippets/locale/uk/LC_MESSAGES/django.po +1 -1
  1006. wagtail/snippets/locale/vi/LC_MESSAGES/django.po +1 -1
  1007. wagtail/snippets/locale/zh/LC_MESSAGES/django.po +1 -1
  1008. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1009. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1010. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
  1011. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
  1012. wagtail/snippets/tests/test_reordering.py +319 -0
  1013. wagtail/snippets/tests/test_snippets.py +77 -12
  1014. wagtail/snippets/views/snippets.py +16 -0
  1015. wagtail/test/numberformat.py +30 -0
  1016. wagtail/test/settings.py +35 -12
  1017. wagtail/test/testapp/fields.py +12 -0
  1018. wagtail/test/testapp/migrations/0056_commentablejsonpage.py +50 -0
  1019. wagtail/test/testapp/migrations/0057_featurecompletetoy_sort_order.py +23 -0
  1020. wagtail/test/testapp/migrations/0058_customlocktask.py +31 -0
  1021. wagtail/test/testapp/models.py +27 -0
  1022. wagtail/test/testapp/views.py +3 -1
  1023. wagtail/test/utils/page_tests.py +17 -17
  1024. wagtail/test/utils/template_tests.py +4 -6
  1025. wagtail/test/utils/wagtail_tests.py +1 -2
  1026. wagtail/tests/test_page_model.py +15 -0
  1027. wagtail/{search/tests → tests}/test_page_search.py +29 -2
  1028. wagtail/tests/test_search_fields.py +69 -0
  1029. wagtail/tests/test_tests.py +62 -6
  1030. wagtail/tests/test_workflow.py +25 -1
  1031. wagtail/users/locale/ar/LC_MESSAGES/django.po +1 -1
  1032. wagtail/users/locale/be/LC_MESSAGES/django.po +1 -1
  1033. wagtail/users/locale/bg/LC_MESSAGES/django.po +1 -1
  1034. wagtail/users/locale/bn/LC_MESSAGES/django.po +1 -1
  1035. wagtail/users/locale/ca/LC_MESSAGES/django.po +1 -1
  1036. wagtail/users/locale/cs/LC_MESSAGES/django.mo +0 -0
  1037. wagtail/users/locale/cs/LC_MESSAGES/django.po +4 -1
  1038. wagtail/users/locale/cy/LC_MESSAGES/django.po +1 -1
  1039. wagtail/users/locale/da/LC_MESSAGES/django.po +1 -1
  1040. wagtail/users/locale/de/LC_MESSAGES/django.po +1 -1
  1041. wagtail/users/locale/dv/LC_MESSAGES/django.po +1 -1
  1042. wagtail/users/locale/el/LC_MESSAGES/django.po +1 -1
  1043. wagtail/users/locale/en/LC_MESSAGES/django.po +2 -2
  1044. wagtail/users/locale/es/LC_MESSAGES/django.po +1 -1
  1045. wagtail/users/locale/es_419/LC_MESSAGES/django.po +1 -1
  1046. wagtail/users/locale/et/LC_MESSAGES/django.po +1 -1
  1047. wagtail/users/locale/eu/LC_MESSAGES/django.po +1 -1
  1048. wagtail/users/locale/fa/LC_MESSAGES/django.po +1 -1
  1049. wagtail/users/locale/fi/LC_MESSAGES/django.mo +0 -0
  1050. wagtail/users/locale/fi/LC_MESSAGES/django.po +6 -3
  1051. wagtail/users/locale/fr/LC_MESSAGES/django.po +1 -1
  1052. wagtail/users/locale/gl/LC_MESSAGES/django.po +1 -1
  1053. wagtail/users/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1054. wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1055. wagtail/users/locale/hu/LC_MESSAGES/django.po +1 -1
  1056. wagtail/users/locale/hy/LC_MESSAGES/django.po +1 -1
  1057. wagtail/users/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1058. wagtail/users/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1059. wagtail/users/locale/it/LC_MESSAGES/django.po +1 -1
  1060. wagtail/users/locale/ja/LC_MESSAGES/django.po +1 -1
  1061. wagtail/users/locale/ka/LC_MESSAGES/django.po +1 -1
  1062. wagtail/users/locale/ko/LC_MESSAGES/django.po +1 -1
  1063. wagtail/users/locale/lt/LC_MESSAGES/django.po +1 -1
  1064. wagtail/users/locale/lv/LC_MESSAGES/django.po +1 -1
  1065. wagtail/users/locale/mi/LC_MESSAGES/django.po +1 -1
  1066. wagtail/users/locale/mn/LC_MESSAGES/django.po +1 -1
  1067. wagtail/users/locale/my/LC_MESSAGES/django.po +1 -1
  1068. wagtail/users/locale/nb/LC_MESSAGES/django.po +1 -1
  1069. wagtail/users/locale/nl/LC_MESSAGES/django.mo +0 -0
  1070. wagtail/users/locale/nl/LC_MESSAGES/django.po +7 -4
  1071. wagtail/users/locale/pl/LC_MESSAGES/django.po +1 -1
  1072. wagtail/users/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1073. wagtail/users/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1074. wagtail/users/locale/ro/LC_MESSAGES/django.po +1 -1
  1075. wagtail/users/locale/ru/LC_MESSAGES/django.mo +0 -0
  1076. wagtail/users/locale/ru/LC_MESSAGES/django.po +6 -2
  1077. wagtail/users/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1078. wagtail/users/locale/sl/LC_MESSAGES/django.po +1 -1
  1079. wagtail/users/locale/sv/LC_MESSAGES/django.po +1 -1
  1080. wagtail/users/locale/tet/LC_MESSAGES/django.po +1 -1
  1081. wagtail/users/locale/th/LC_MESSAGES/django.po +1 -1
  1082. wagtail/users/locale/tr/LC_MESSAGES/django.mo +0 -0
  1083. wagtail/users/locale/tr/LC_MESSAGES/django.po +79 -5
  1084. wagtail/users/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1085. wagtail/users/locale/ug/LC_MESSAGES/django.po +1 -1
  1086. wagtail/users/locale/uk/LC_MESSAGES/django.po +1 -1
  1087. wagtail/users/locale/vi/LC_MESSAGES/django.po +1 -1
  1088. wagtail/users/locale/zh/LC_MESSAGES/django.po +1 -1
  1089. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1090. wagtail/users/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1091. wagtail/users/templates/wagtailusers/users/create.html +2 -0
  1092. wagtail/users/templates/wagtailusers/users/edit.html +2 -0
  1093. wagtail/users/tests/test_admin_views.py +4 -0
  1094. wagtail/users/views/users.py +1 -1
  1095. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/METADATA +8 -7
  1096. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/RECORD +1102 -1108
  1097. wagtail/admin/templates/wagtailadmin/collection_privacy/set_privacy.html +0 -13
  1098. wagtail/admin/templates/wagtailadmin/page_privacy/set_privacy.html +0 -13
  1099. wagtail/search/tests/__init__.py +0 -0
  1100. wagtail/search/tests/elasticsearch_common_tests.py +0 -251
  1101. wagtail/search/tests/test_backends.py +0 -1215
  1102. wagtail/search/tests/test_db_backend.py +0 -62
  1103. wagtail/search/tests/test_elasticsearch7_backend.py +0 -1452
  1104. wagtail/search/tests/test_elasticsearch8_backend.py +0 -15
  1105. wagtail/search/tests/test_index_functions.py +0 -256
  1106. wagtail/search/tests/test_indexed_class.py +0 -157
  1107. wagtail/search/tests/test_mysql_backend.py +0 -192
  1108. wagtail/search/tests/test_postgres_backend.py +0 -210
  1109. wagtail/search/tests/test_queries.py +0 -332
  1110. wagtail/search/tests/test_related_fields.py +0 -102
  1111. wagtail/search/tests/test_sqlite_backend.py +0 -52
  1112. wagtail/test/search/__init__.py +0 -0
  1113. wagtail/test/search/apps.py +0 -9
  1114. wagtail/test/search/fixtures/search.json +0 -545
  1115. wagtail/test/search/migrations/0001_initial.py +0 -146
  1116. wagtail/test/search/migrations/0002_bookunindexed.py +0 -43
  1117. wagtail/test/search/migrations/0003_book_summary.py +0 -18
  1118. wagtail/test/search/migrations/__init__.py +0 -0
  1119. wagtail/test/search/models.py +0 -137
  1120. /wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_cell.html → tables/ordering_cell.html} +0 -0
  1121. /wagtail/{search/checks.py → checks.py} +0 -0
  1122. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/WHEEL +0 -0
  1123. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/entry_points.txt +0 -0
  1124. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/licenses/LICENSE +0 -0
  1125. {wagtail-7.1.2.dist-info → wagtail-7.2.dist-info}/top_level.txt +0 -0
@@ -4,6 +4,7 @@
4
4
  #
5
5
  # Translators:
6
6
  # Cihad GÜNDOĞDU <cihadgundogdu@gmail.com>, 2016,2025
7
+ # Ertuğrul Keremoğlu, 2025
7
8
  # Halim Turan <halim_turan_61@hotmail.com>, 2022
8
9
  # José Luis <alagunajs@gmail.com>, 2015
9
10
  # Py Data Geek <pydatageek@gmail.com>, 2019
@@ -13,9 +14,9 @@ msgid ""
13
14
  msgstr ""
14
15
  "Project-Id-Version: Wagtail\n"
15
16
  "Report-Msgid-Bugs-To: \n"
16
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
17
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
17
18
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
18
- "Last-Translator: Ragıp Ünal <ragip@ragipunal.com>, 2016\n"
19
+ "Last-Translator: Ertuğrul Keremoğlu, 2025\n"
19
20
  "Language-Team: Turkish (http://app.transifex.com/torchbox/wagtail/language/"
20
21
  "tr/)\n"
21
22
  "MIME-Version: 1.0\n"
@@ -166,21 +167,55 @@ msgstr "resim"
166
167
  msgid "images"
167
168
  msgstr "resimler"
168
169
 
170
+ msgid "Add tags to images"
171
+ msgstr "Resimlere etiket ekle"
172
+
173
+ msgid "Are you sure you want to tag the following image?"
174
+ msgid_plural "Are you sure you want to tag the following images?"
175
+ msgstr[0] "Aşağıdaki resmi etiketlemek istediğinizden emin misiniz?"
176
+ msgstr[1] "Aşağıdaki resimleri etiketlemek istediğinizden emin misiniz?"
177
+
169
178
  msgid "You don't have permission to add tags to this image"
170
179
  msgid_plural "You don't have permission to add tags to these images"
171
180
  msgstr[0] "Bu resme etiket eklemek için izniniz yok"
172
181
  msgstr[1] "Bu resimlere etiket eklemek için izniniz yok"
173
182
 
183
+ msgid "Yes, add"
184
+ msgstr "Evet, ekle"
185
+
186
+ msgid "No, don't add"
187
+ msgstr "Hayır, ekleme"
188
+
189
+ #, python-format
190
+ msgid "Add 1 image to new collection"
191
+ msgid_plural "Add %(counter)s images to new collection"
192
+ msgstr[0] "1 resmi yeni koleksiyona ekle"
193
+ msgstr[1] "%(counter)s resmi yeni koleksiyona ekle"
194
+
174
195
  msgid "You don't have permission to add this image to a collection"
175
196
  msgid_plural "You don't have permission to add these images to a collection"
176
197
  msgstr[0] "Bu resmi bir koleksiyona eklemek için izniniz yok"
177
198
  msgstr[1] "Bu resimleri bir koleksiyona eklemek için izniniz yok"
178
199
 
200
+ #, python-format
201
+ msgid "Delete 1 image"
202
+ msgid_plural "Delete %(counter)s images"
203
+ msgstr[0] "1 resmi sil"
204
+ msgstr[1] "%(counter)s resmi sil"
205
+
206
+ msgid "Delete images"
207
+ msgstr "Resimleri sil"
208
+
179
209
  msgid "Are you sure you want to delete this image?"
180
210
  msgid_plural "Are you sure you want to delete these images?"
181
211
  msgstr[0] "Bu resimleri silmek istediğinize emin misiniz?"
182
212
  msgstr[1] "Bu resimleri silmek istediğinize emin misiniz?"
183
213
 
214
+ msgid "You don't have permission to delete this image"
215
+ msgid_plural "You don't have permission to delete these images"
216
+ msgstr[0] "Bu resmi silme izniniz yok"
217
+ msgstr[1] "Bu resimleri silme izniniz yok"
218
+
184
219
  msgid "Yes, delete"
185
220
  msgstr "Evet, sil"
186
221
 
@@ -190,12 +225,18 @@ msgstr "Hayır, silme"
190
225
  msgid "Popular tags"
191
226
  msgstr "Yaygın etiketler"
192
227
 
228
+ msgid "Layout"
229
+ msgstr "Düzen"
230
+
193
231
  msgid "Existing"
194
232
  msgstr "Mevcut"
195
233
 
196
234
  msgid "New"
197
235
  msgstr "Yeni"
198
236
 
237
+ msgid "Use new image"
238
+ msgstr "Yeni resim kullan"
239
+
199
240
  msgid "Use existing and delete new"
200
241
  msgstr "Mevcut olanı kullan ve yenisini sil"
201
242
 
@@ -251,6 +292,15 @@ msgstr "Yükleniyor…"
251
292
  msgid "Upload"
252
293
  msgstr "Yükle"
253
294
 
295
+ msgid "Keep new image"
296
+ msgstr "Yeni resmi koru"
297
+
298
+ msgid "Delete new image"
299
+ msgstr "Yeni resmi sil"
300
+
301
+ msgid "Image focal point"
302
+ msgstr "Resim odak noktası"
303
+
254
304
  msgid "URL Generator"
255
305
  msgstr "URL Üretici"
256
306
 
@@ -317,8 +367,11 @@ msgstr ""
317
367
  "Resim yüklemediniz. Neden <a href=\"%(wagtailimages_add_image_url)s\">şimdi "
318
368
  "bir tane yüklemiyorsunuz</a>?"
319
369
 
320
- msgid "Toggle layout"
321
- msgstr "Düzeni değiştir"
370
+ msgid "Grid layout"
371
+ msgstr "Izgara düzeni"
372
+
373
+ msgid "List layout"
374
+ msgstr "Liste düzeni"
322
375
 
323
376
  msgid "Preview"
324
377
  msgstr "Önizleme"
@@ -326,6 +379,9 @@ msgstr "Önizleme"
326
379
  msgid "URL"
327
380
  msgstr "URL"
328
381
 
382
+ msgid "Image URL"
383
+ msgstr "Resim URL'i"
384
+
329
385
  msgid "Copy URL"
330
386
  msgstr "URL'yi kopyala"
331
387
 
@@ -362,6 +418,13 @@ msgstr ""
362
418
  "Yükleme başarılı. Lütfen gerekliyse resim için daha uygun bir başlık "
363
419
  "belirleyin. Eğer yükleme gerekli değilse resmi tamamen silebilirsiniz."
364
420
 
421
+ msgid ""
422
+ "Upload successful. However, your new image seems to be a duplicate of this "
423
+ "existing image. You may delete it if it wasn't required."
424
+ msgstr ""
425
+ "Yükleme başarılı. Ancak yeni resminiz, mevcut bir resmin kopyası gibi "
426
+ "görünüyor. Gerekli değilse silebilirsiniz."
427
+
365
428
  msgid "Sorry, upload failed."
366
429
  msgstr "Üzgünüm, yükleme başarısız oldu."
367
430
 
@@ -397,6 +460,12 @@ msgid_plural "New tags have been added to %(num_parent_objects)d images"
397
460
  msgstr[0] "%(num_parent_objects)d resme yeni etiketler eklendi"
398
461
  msgstr[1] "%(num_parent_objects)d resme yeni etiketler eklendi"
399
462
 
463
+ msgid "Add to collection"
464
+ msgstr "Koleksiyona ekle"
465
+
466
+ msgid "Add selected images to collection"
467
+ msgstr "Seçilen resimleri koleksiyona ekle"
468
+
400
469
  #, python-format
401
470
  msgid "%(num_parent_objects)d image has been added to %(collection)s"
402
471
  msgid_plural "%(num_parent_objects)d images have been added to %(collection)s"
@@ -406,12 +475,21 @@ msgstr[1] "%(num_parent_objects)d resim %(collection)s koleksiyonuna eklendi"
406
475
  msgid "Delete"
407
476
  msgstr "Sil"
408
477
 
478
+ msgid "Delete selected images"
479
+ msgstr "Seçilen resimleri sil"
480
+
409
481
  #, python-format
410
482
  msgid "%(num_parent_objects)d image has been deleted"
411
483
  msgid_plural "%(num_parent_objects)d images have been deleted"
412
484
  msgstr[0] "%(num_parent_objects)d resim silindi"
413
485
  msgstr[1] "%(num_parent_objects)d resim silindi"
414
486
 
487
+ msgid "Title"
488
+ msgstr "Başlık"
489
+
490
+ msgid "Created"
491
+ msgstr "Oluşturulma zamanı"
492
+
415
493
  msgid "Choose an image"
416
494
  msgstr "Bir resim seç"
417
495
 
@@ -433,6 +511,9 @@ msgstr "Başlık: (A -> Z)"
433
511
  msgid "Title: (Z -> A)"
434
512
  msgstr "Başlık: (Z -> A)"
435
513
 
514
+ msgid "File size: (low to high)"
515
+ msgstr "Dosya boyutu: (küçükten büyüğe)"
516
+
436
517
  msgid "File size: (high to low)"
437
518
  msgstr "Dosya boyutu: (yüksekten düşüğe)"
438
519
 
@@ -445,9 +526,6 @@ msgstr "Kullanım sayısı: (yüksekten düşüğe)"
445
526
  msgid "Images"
446
527
  msgstr "Resimler"
447
528
 
448
- msgid "Title"
449
- msgstr "Başlık"
450
-
451
529
  msgid "The image could not be saved due to errors."
452
530
  msgstr "Hata oluştuğu için resim kaydedilemedi."
453
531
 
@@ -12,7 +12,7 @@ msgid ""
12
12
  msgstr ""
13
13
  "Project-Id-Version: Wagtail\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
15
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
16
16
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
17
17
  "Last-Translator: Py Data Geek <pydatageek@gmail.com>, 2019\n"
18
18
  "Language-Team: Turkish (Turkey) (http://app.transifex.com/torchbox/wagtail/"
@@ -291,6 +291,9 @@ msgstr "Etiketler"
291
291
  msgid "Delete"
292
292
  msgstr "Sil"
293
293
 
294
+ msgid "Title"
295
+ msgstr "Başlık"
296
+
294
297
  msgid "Choose an image"
295
298
  msgstr "Bir resim seç"
296
299
 
@@ -300,9 +303,6 @@ msgstr "Resmi düzenle"
300
303
  msgid "Images"
301
304
  msgstr "Resimler"
302
305
 
303
- msgid "Title"
304
- msgstr "Başlık"
305
-
306
306
  msgid "The image could not be saved due to errors."
307
307
  msgstr "Hata oluştuğu için resim kaydedilemedi."
308
308
 
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: Wagtail\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
11
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
12
12
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
13
13
  "Last-Translator: Abduqadir Abliz <sahranbay@gmail.com>, 2024\n"
14
14
  "Language-Team: Uyghur (http://app.transifex.com/torchbox/wagtail/language/"
@@ -489,6 +489,12 @@ msgid_plural "%(num_parent_objects)d images have been deleted"
489
489
  msgstr[0] "%(num_parent_objects)d سۈرەت ئۆچۈرۈلدى"
490
490
  msgstr[1] "%(num_parent_objects)d سۈرەت ئۆچۈرۈلدى"
491
491
 
492
+ msgid "Title"
493
+ msgstr "ماۋزۇ"
494
+
495
+ msgid "Created"
496
+ msgstr "قۇرغان ۋاقىت"
497
+
492
498
  msgid "Choose an image"
493
499
  msgstr "سۈرەت تاللىنىدۇ"
494
500
 
@@ -519,12 +525,6 @@ msgstr "ھۆججەت چوڭلۇقى: (چوڭدىن كىچىككە)"
519
525
  msgid "Images"
520
526
  msgstr "سۈرەت"
521
527
 
522
- msgid "Title"
523
- msgstr "ماۋزۇ"
524
-
525
- msgid "Created"
526
- msgstr "قۇرغان ۋاقىت"
527
-
528
528
  msgid "The image could not be saved due to errors."
529
529
  msgstr "خاتالىق سەۋەبىدىن سۈرەتنى ساقلىغىلى بولمىدى."
530
530
 
@@ -12,7 +12,7 @@ msgid ""
12
12
  msgstr ""
13
13
  "Project-Id-Version: Wagtail\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
15
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
16
16
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
17
17
  "Last-Translator: d55ee35323c0c760f088259cd23b1b6d_9e8a7d1 "
18
18
  "<5459f3ae99ecdd5ed0be0220acd46004_1019581>, 2021\n"
@@ -491,6 +491,12 @@ msgstr[1] "%(num_parent_objects)d зображення було видалено
491
491
  msgstr[2] "%(num_parent_objects)d зображень було видалено"
492
492
  msgstr[3] "%(num_parent_objects)d зображень було видалено"
493
493
 
494
+ msgid "Title"
495
+ msgstr "Заголовок"
496
+
497
+ msgid "Created"
498
+ msgstr "Створено"
499
+
494
500
  msgid "Choose an image"
495
501
  msgstr "Оберіть зображення"
496
502
 
@@ -521,12 +527,6 @@ msgstr "Розмір файлу: (від більших до менших)"
521
527
  msgid "Images"
522
528
  msgstr "Зображення"
523
529
 
524
- msgid "Title"
525
- msgstr "Заголовок"
526
-
527
- msgid "Created"
528
- msgstr "Створено"
529
-
530
530
  msgid "The image could not be saved due to errors."
531
531
  msgstr "Це зображення не можна зберегти через помилки"
532
532
 
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: Wagtail\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
10
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
11
11
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: Vietnamese (http://app.transifex.com/torchbox/wagtail/"
@@ -83,12 +83,12 @@ msgstr "Thẻ"
83
83
  msgid "Delete"
84
84
  msgstr "Xoá"
85
85
 
86
- msgid "Choose an image"
87
- msgstr "Chọn một hình ảnh"
88
-
89
86
  msgid "Title"
90
87
  msgstr "Tiêu đề"
91
88
 
89
+ msgid "Choose an image"
90
+ msgstr "Chọn một hình ảnh"
91
+
92
92
  msgid "Delete image"
93
93
  msgstr "Xóa Ảnh"
94
94
 
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: Wagtail\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
12
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
13
13
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
14
14
  "Last-Translator: Adeline Link, 2022\n"
15
15
  "Language-Team: Chinese (http://app.transifex.com/torchbox/wagtail/language/"
@@ -93,6 +93,9 @@ msgstr "标签"
93
93
  msgid "Delete"
94
94
  msgstr "删除"
95
95
 
96
+ msgid "Title"
97
+ msgstr "标题"
98
+
96
99
  msgid "Choose an image"
97
100
  msgstr "选择一个图片"
98
101
 
@@ -102,9 +105,6 @@ msgstr "选择另外一个图片"
102
105
  msgid "Images"
103
106
  msgstr "图片"
104
107
 
105
- msgid "Title"
106
- msgstr "标题"
107
-
108
108
  msgid "The image could not be saved due to errors."
109
109
  msgstr "图片 因为有错不能被保存"
110
110
 
@@ -21,7 +21,7 @@ msgid ""
21
21
  msgstr ""
22
22
  "Project-Id-Version: Wagtail\n"
23
23
  "Report-Msgid-Bugs-To: \n"
24
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
24
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
25
25
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
26
26
  "Last-Translator: Yu Cheng, 2024\n"
27
27
  "Language-Team: Chinese (China) (http://app.transifex.com/torchbox/wagtail/"
@@ -448,6 +448,12 @@ msgid "%(num_parent_objects)d image has been deleted"
448
448
  msgid_plural "%(num_parent_objects)d images have been deleted"
449
449
  msgstr[0] "已删除%(num_parent_objects)d个图片"
450
450
 
451
+ msgid "Title"
452
+ msgstr "标题"
453
+
454
+ msgid "Created"
455
+ msgstr "已创建"
456
+
451
457
  msgid "Choose an image"
452
458
  msgstr "选择一个图片"
453
459
 
@@ -475,12 +481,6 @@ msgstr "文件大小:(从大到小)"
475
481
  msgid "Images"
476
482
  msgstr "图片"
477
483
 
478
- msgid "Title"
479
- msgstr "标题"
480
-
481
- msgid "Created"
482
- msgstr "已创建"
483
-
484
484
  msgid "The image could not be saved due to errors."
485
485
  msgstr "图片无法保存。出现错误。"
486
486
 
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: Wagtail\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2025-07-24 16:20+0200\n"
12
+ "POT-Creation-Date: 2025-10-23 16:45+0100\n"
13
13
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
14
14
  "Last-Translator: Yeh Yen-Ke <yyken@outlook.com>, 2019\n"
15
15
  "Language-Team: Chinese Traditional (http://app.transifex.com/torchbox/"
@@ -285,6 +285,12 @@ msgstr "刪除"
285
285
  msgid "Delete selected images"
286
286
  msgstr "刪除選擇的圖片"
287
287
 
288
+ msgid "Title"
289
+ msgstr "標題"
290
+
291
+ msgid "Created"
292
+ msgstr "已建立"
293
+
288
294
  msgid "Choose an image"
289
295
  msgstr "選擇一個圖片"
290
296
 
@@ -294,12 +300,6 @@ msgstr "編輯此圖片"
294
300
  msgid "Images"
295
301
  msgstr "圖片"
296
302
 
297
- msgid "Title"
298
- msgstr "標題"
299
-
300
- msgid "Created"
301
- msgstr "已建立"
302
-
303
303
  msgid "The image could not be saved due to errors."
304
304
  msgstr "圖片無法儲存。出現錯誤。"
305
305
 
wagtail/images/models.py CHANGED
@@ -191,7 +191,7 @@ class ImageFileMixin:
191
191
  else:
192
192
  # Some external storage backends don't allow reopening
193
193
  # the file. Get a fresh file instance. #1397
194
- storage = self._meta.get_field("file").storage
194
+ storage = self.file.storage
195
195
  image_file = storage.open(self.file.name, "rb")
196
196
 
197
197
  close_file = True
@@ -1 +1 @@
1
- $((function(){$("#fileupload").fileupload({dataType:"html",sequentialUploads:!0,dropZone:$(".drop-zone"),previewMinWidth:150,previewMaxWidth:150,previewMinHeight:150,previewMaxHeight:150,add:function(e,t){var a=$(this),o=a.data("blueimp-fileupload")||a.data("fileupload"),s=$($("#upload-list-item").html()).addClass("upload-uploading"),i=o.options;$("#upload-list").append(s),t.context=s,t.process((function(){return a.fileupload("process",t)})).always((function(){t.context.removeClass("processing"),t.context.find(".left").each((function(e,a){$(a).append(escapeHtml(t.files[e].name))})),t.context.find(".preview .thumb").each((function(e,a){$(a).find(".icon").remove(),$(a).append(t.files[e].preview)}))})).done((function(){t.context.find(".start").prop("disabled",!1),!1!==o._trigger("added",e,t)&&(i.autoUpload||t.autoUpload)&&!1!==t.autoUpload&&t.submit()})).fail((function(){t.files.error&&t.context.each((function(e){var a=t.files[e].error;a&&$(this).find(".error_messages").html(a)}))}))},processfail:function(e,t){$(t.context).removeClass("upload-uploading").addClass("upload-failure")},progress:function(e,t){if(e.isDefaultPrevented())return!1;var a=Math.floor(t.loaded/t.total*100);t.context.each((function(){$(this).find(".progress").addClass("active").attr("aria-valuenow",a).find(".bar").css("width",a+"%").html(a+"%")}))},progressall:function(e,t){var a=parseInt(t.loaded/t.total*100,10);$("#overall-progress").addClass("active").attr("aria-valuenow",a).find(".bar").css("width",a+"%").html(a+"%"),a>=100&&$("#overall-progress").removeClass("active").find(".bar").css("width","0%")},formData:function(e){var t=this.files[0].name,a={title:t.replace(/\.[^.]+$/,"")};return e.get(0).dispatchEvent(new CustomEvent("wagtail:images-upload",{bubbles:!0,cancelable:!0,detail:{data:a,filename:t,maxTitleLength:this.maxTitleLength}}))?e.serializeArray().concat({name:"title",value:a.title}):e.serializeArray()},done:function(e,t){var a=$(t.context),o=JSON.parse(t.result);o.success?o.duplicate?(a.addClass("upload-duplicate"),$(".right",a).append(o.confirm_duplicate_upload),$(".confirm-duplicate-upload",a).on("click",".confirm-upload",(function(e){e.preventDefault(),$(this).closest(".confirm-duplicate-upload").remove(),$(".right",a).append(o.form)}))):(a.addClass("upload-success"),$(".right",a).append(o.form)):(a.addClass("upload-failure"),$(".right .error_messages",a).append(o.error_message))},fail:function(e,t){var a=$(t.context),o=$(".server-error",a);$(".error-text",o).text(t.errorThrown),$(".error-code",o).text(t.jqXHR.status),a.addClass("upload-server-error")},always:function(e,t){$(t.context).removeClass("upload-uploading").addClass("upload-complete")}}),$("#upload-list").on("submit","form",(function(e){var t=$(this),a=new FormData(this),o=t.closest("#upload-list > li");e.preventDefault(),$.ajax({contentType:!1,data:a,processData:!1,type:"POST",url:this.action}).done((function(e){if(e.success){var a=$(".status-msg.update-success").first().text();document.dispatchEvent(new CustomEvent("w-messages:add",{detail:{clear:!0,text:a,type:"success"}})),o.slideUp((function(){$(this).remove()}))}else t.replaceWith(e.form)}))})),$("#upload-list").on("click",".delete",(function(e){var t=$(this).closest("form"),a=t.closest("#upload-list > li");e.preventDefault();var o=$('input[name="csrfmiddlewaretoken"]',t).val();$.post(this.href,{csrfmiddlewaretoken:o},(function(e){e.success&&a.slideUp((function(){$(this).remove()}))}))}))}));
1
+ $(function(){$("#fileupload").fileupload({dataType:"html",sequentialUploads:!0,dropZone:$(".drop-zone"),previewMinWidth:150,previewMaxWidth:150,previewMinHeight:150,previewMaxHeight:150,add:function(e,t){var a=$(this),o=a.data("blueimp-fileupload")||a.data("fileupload"),s=$($("#upload-list-item").html()).addClass("upload-uploading"),i=o.options;$("#upload-list").append(s),t.context=s,t.process(function(){return a.fileupload("process",t)}).always(function(){t.context.removeClass("processing"),t.context.find(".left").each(function(e,a){$(a).append(escapeHtml(t.files[e].name))}),t.context.find(".preview .thumb").each(function(e,a){$(a).find(".icon").remove(),$(a).append(t.files[e].preview)})}).done(function(){t.context.find(".start").prop("disabled",!1),!1!==o._trigger("added",e,t)&&(i.autoUpload||t.autoUpload)&&!1!==t.autoUpload&&t.submit()}).fail(function(){t.files.error&&t.context.each(function(e){var a=t.files[e].error;a&&$(this).find(".error_messages").html(a)})})},processfail:function(e,t){$(t.context).removeClass("upload-uploading").addClass("upload-failure")},progress:function(e,t){if(e.isDefaultPrevented())return!1;var a=Math.floor(t.loaded/t.total*100);t.context.each(function(){$(this).find(".progress").addClass("active").attr("aria-valuenow",a).find(".bar").css("width",a+"%").html(a+"%")})},progressall:function(e,t){var a=parseInt(t.loaded/t.total*100,10);$("#overall-progress").addClass("active").attr("aria-valuenow",a).find(".bar").css("width",a+"%").html(a+"%"),a>=100&&$("#overall-progress").removeClass("active").find(".bar").css("width","0%")},formData:function(e){var t=this.files[0].name,a={title:t.replace(/\.[^.]+$/,"")};return e.get(0).dispatchEvent(new CustomEvent("wagtail:images-upload",{bubbles:!0,cancelable:!0,detail:{data:a,filename:t,maxTitleLength:this.maxTitleLength}}))?e.serializeArray().concat({name:"title",value:a.title}):e.serializeArray()},done:function(e,t){var a=$(t.context),o=JSON.parse(t.result);o.success?o.duplicate?(a.addClass("upload-duplicate"),$(".right",a).append(o.confirm_duplicate_upload),$(".confirm-duplicate-upload",a).on("click",".confirm-upload",function(e){e.preventDefault(),$(this).closest(".confirm-duplicate-upload").remove(),$(".right",a).append(o.form)})):(a.addClass("upload-success"),$(".right",a).append(o.form)):(a.addClass("upload-failure"),$(".right .error_messages",a).append(o.error_message))},fail:function(e,t){var a=$(t.context),o=$(".server-error",a);$(".error-text",o).text(t.errorThrown),$(".error-code",o).text(t.jqXHR.status),a.addClass("upload-server-error")},always:function(e,t){$(t.context).removeClass("upload-uploading").addClass("upload-complete")}}),$("#upload-list").on("submit","form",function(e){var t=$(this),a=new FormData(this),o=t.closest("#upload-list > li");e.preventDefault(),$.ajax({contentType:!1,data:a,processData:!1,type:"POST",url:this.action}).done(function(e){if(e.success){var a=$(".status-msg.update-success").first().text();document.dispatchEvent(new CustomEvent("w-messages:add",{detail:{clear:!0,text:a,type:"success"}})),o.slideUp(function(){$(this).remove()})}else t.replaceWith(e.form)})}),$("#upload-list").on("click",".delete",function(e){var t=$(this).closest("form"),a=t.closest("#upload-list > li");e.preventDefault();var o=$('input[name="csrfmiddlewaretoken"]',t).val();$.post(this.href,{csrfmiddlewaretoken:o},function(e){e.success&&a.slideUp(function(){$(this).remove()})})})});
@@ -1 +1 @@
1
- var jcropapi;function setupJcrop(t,i,o,e){t.Jcrop({trueSize:[i.width,i.height],bgColor:"rgb(192, 192, 192)",onSelect:function(t){var i=Math.floor((t.x+t.x2)/2),o=Math.floor((t.y+t.y2)/2),a=Math.floor(t.w),h=Math.floor(t.h);e.x.val(i),e.y.val(o),e.width.val(a),e.height.val(h)},onRelease:function(){e.x.val(o.x),e.y.val(o.y),e.width.val(o.width),e.height.val(o.height)}},(function(){jcropapi=this,$("img",this.ui.holder).attr("alt","");const t=o.label;if(!t)return;const i="jcrop-holder-input";$("input",this.ui.holder).attr("id",i);const e=document.createElement("label");e.setAttribute("for",i),e.classList.add("w-sr-only"),e.textContent=t,document.getElementsByClassName("jcrop-holder")[0].prepend(e)}))}$((function(){var t=$("div.focal-point-chooser"),i=$(".current-focal-point-indicator",t),o=$("img",t),e={width:o.data("originalWidth"),height:o.data("originalHeight")},a={label:t.data("focalInputLabel"),x:t.data("focalPointX"),y:t.data("focalPointY"),width:t.data("focalPointWidth"),height:t.data("focalPointHeight")},h={x:$("input.focal_point_x"),y:$("input.focal_point_y"),width:$("input.focal_point_width"),height:$("input.focal_point_height")},l=a.x-a.width/2,r=a.y-a.height/2,n=a.width,c=a.height;t.css("max-height",t.data("max-height")),t.css("max-width",t.data("max-width")),i.css("left",100*l/e.width+"%"),i.css("top",100*r/e.height+"%"),i.css("width",100*n/e.width+"%"),i.css("height",100*c/e.height+"%");var d=[o,e,a,h];setupJcrop.apply(this,d),$(window).on("resize",$.debounce(300,(function(){jcropapi.destroy(),o.removeAttr("style"),$(".jcrop-holder").remove(),setupJcrop.apply(this,d)}))),$(".remove-focal-point").on("click",(function(){jcropapi.destroy(),o.removeAttr("style"),$(".jcrop-holder").remove(),$(".current-focal-point-indicator").remove(),h.x.val(""),h.y.val(""),h.width.val(""),h.height.val(""),setupJcrop.apply(this,d)}))}));
1
+ var jcropapi;function setupJcrop(t,i,o,e){t.Jcrop({trueSize:[i.width,i.height],bgColor:"rgb(192, 192, 192)",onSelect:function(t){var i=Math.floor((t.x+t.x2)/2),o=Math.floor((t.y+t.y2)/2),a=Math.floor(t.w),h=Math.floor(t.h);e.x.val(i),e.y.val(o),e.width.val(a),e.height.val(h)},onRelease:function(){e.x.val(o.x),e.y.val(o.y),e.width.val(o.width),e.height.val(o.height)}},function(){jcropapi=this,$("img",this.ui.holder).attr("alt","");const t=o.label;if(!t)return;const i="jcrop-holder-input";$("input",this.ui.holder).attr("id",i);const e=document.createElement("label");e.setAttribute("for",i),e.classList.add("w-sr-only"),e.textContent=t,document.getElementsByClassName("jcrop-holder")[0].prepend(e)})}$(function(){var t=$("div.focal-point-chooser"),i=$(".current-focal-point-indicator",t),o=$("img",t),e={width:o.data("originalWidth"),height:o.data("originalHeight")},a={label:t.data("focalInputLabel"),x:t.data("focalPointX"),y:t.data("focalPointY"),width:t.data("focalPointWidth"),height:t.data("focalPointHeight")},h={x:$("input.focal_point_x"),y:$("input.focal_point_y"),width:$("input.focal_point_width"),height:$("input.focal_point_height")},l=a.x-a.width/2,r=a.y-a.height/2,n=a.width,c=a.height;t.css("max-height",t.data("max-height")),t.css("max-width",t.data("max-width")),i.css("left",100*l/e.width+"%"),i.css("top",100*r/e.height+"%"),i.css("width",100*n/e.width+"%"),i.css("height",100*c/e.height+"%");var d=[o,e,a,h];setupJcrop.apply(this,d),$(window).on("resize",$.debounce(300,function(){jcropapi.destroy(),o.removeAttr("style"),$(".jcrop-holder").remove(),setupJcrop.apply(this,d)})),$(".remove-focal-point").on("click",function(){jcropapi.destroy(),o.removeAttr("style"),$(".jcrop-holder").remove(),$(".current-focal-point-indicator").remove(),h.x.val(""),h.y.val(""),h.width.val(""),h.height.val(""),setupJcrop.apply(this,d)})});
@@ -1 +1 @@
1
- (()=>{class e extends window.wagtailStreamField.blocks.StructBlockDefinition{render(e,t,a,d){const l=super.render(e,t,a,d),i=document.getElementById(`${t}-alt_text`),n=document.getElementById(`${t}-decorative`),c=()=>{n.checked?i.setAttribute("disabled",!0):i.removeAttribute("disabled")};c(),n.addEventListener("change",c);const r=l.childBlocks.image.widget;let s=a?.image?.default_alt_text||"";return r.addEventListener("chosen",(({detail:e})=>{i.value===s&&(i.value=e.default_alt_text),s=e.default_alt_text})),l}}window.telepath.register("wagtail.images.blocks.ImageBlock",e)})();
1
+ (()=>{class e extends window.wagtailStreamField.blocks.StructBlockDefinition{render(e,t,a,d){const l=super.render(e,t,a,d),i=document.getElementById(`${t}-alt_text`),n=document.getElementById(`${t}-decorative`),c=()=>{n.checked?i.setAttribute("disabled",!0):i.removeAttribute("disabled")};c(),n.addEventListener("change",c);const r=l.childBlocks.image.widget;let s=a?.image?.default_alt_text||"";return r.addEventListener("chosen",({detail:e})=>{i.value===s&&(i.value=e.default_alt_text),s=e.default_alt_text}),l}}window.telepath.register("wagtail.images.blocks.ImageBlock",e)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e,o={3188:(e,o,t)=>{var r=t(1669),a=t.n(r),i=t(2614);class n extends i.C4{ajaxifyLinks(e,o){super.ajaxifyLinks(e,o),a()("a.upload-one-now").on("click",(e=>{const o=a()("#id_collection_id").val();o&&a()("#id_image-chooser-upload-collection").val(o),e.preventDefault()}))}onLoadChooseStep(e){super.onLoadChooseStep(e),a()("a.suggested-tag").on("click",(e=>(a()("#id_q").val(""),this.searchController.search({tag:a()(e.currentTarget).text(),collection_id:a()("#id_collection_id").val()}),!1)))}onLoadDuplicateFoundStep(e,o){a()("#tab-upload",e.body).replaceWith(o.htmlFragment),a()(".use-new-image",e.body).on("click",(o=>(e.loadUrl(o.currentTarget.href),!1))),a()(".use-existing-image",e.body).on("click",(o=>{var t=a()(o.currentTarget).closest("form"),r=a()('input[name="csrfmiddlewaretoken"]',t).val();return e.postForm(o.currentTarget.href,{csrfmiddlewaretoken:r}),!1}))}onLoadSelectFormatStep(e){var o=document.querySelector("#id_image-chooser-insertion-image_is_decorative"),t=document.querySelector("#id_image-chooser-insertion-alt_text"),r=document.querySelector('[for="id_image-chooser-insertion-alt_text"]');function i(){t.setAttribute("disabled","disabled"),r.classList.remove("required")}function n(){t.removeAttribute("disabled"),r.classList.add("required")}o.checked?i():n(),o.addEventListener("change",(e=>{e.target.checked?i():n()})),a()("form",e.body).on("submit",(o=>(a().post(o.currentTarget.action,a()(o.currentTarget).serialize(),e.loadResponseText,"text"),!1)))}getOnLoadHandlers(){const e=super.getOnLoadHandlers();return e.duplicate_found=(e,o)=>{this.onLoadDuplicateFoundStep(e,o)},e.select_format=(e,o)=>{this.onLoadSelectFormatStep(e,o)},e}}window.IMAGE_CHOOSER_MODAL_ONLOAD_HANDLERS=new n({creationFormFileFieldSelector:"#id_image-chooser-upload-file",creationFormTitleFieldSelector:"#id_image-chooser-upload-title",creationFormEventName:"wagtail:images-upload",creationFormTabSelector:"#tab-upload"}).getOnLoadHandlers();class l extends i.ZZ{onloadHandlers=window.IMAGE_CHOOSER_MODAL_ONLOAD_HANDLERS}window.ImageChooserModal=l},1669:e=>{e.exports=jQuery}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var i=t[e]={exports:{}};return o[e](i,i.exports,r),i.exports}r.m=o,e=[],r.O=(o,t,a,i)=>{if(!t){var n=1/0;for(s=0;s<e.length;s++){for(var[t,a,i]=e[s],l=!0,d=0;d<t.length;d++)(!1&i||n>=i)&&Object.keys(r.O).every((e=>r.O[e](t[d])))?t.splice(d--,1):(l=!1,i<n&&(n=i));if(l){e.splice(s--,1);var c=a();void 0!==c&&(o=c)}}return o}i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[t,a,i]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.j=678,(()=>{var e={678:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,i,[n,l,d]=t,c=0;if(n.some((o=>0!==e[o]))){for(a in l)r.o(l,a)&&(r.m[a]=l[a]);if(d)var s=d(r)}for(o&&o(t);c<n.length;c++)i=n[c],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(s)},t=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var a=r.O(void 0,[321],(()=>r(3188)));a=r.O(a)})();
1
+ (()=>{"use strict";var e,t={1669:e=>{e.exports=jQuery},3188:(e,t,o)=>{var r=o(1669),a=o.n(r),n=o(2614);class i extends n.C4{ajaxifyLinks(e,t){super.ajaxifyLinks(e,t),a()("a.upload-one-now").on("click",e=>{const t=a()("#id_collection_id").val();t&&a()("#id_image-chooser-upload-collection").val(t),e.preventDefault()})}onLoadChooseStep(e){super.onLoadChooseStep(e),a()("a.suggested-tag").on("click",e=>(a()("#id_q").val(""),this.searchController.search({tag:a()(e.currentTarget).text(),collection_id:a()("#id_collection_id").val()}),!1))}onLoadDuplicateFoundStep(e,t){a()("#tab-upload",e.body).replaceWith(t.htmlFragment),a()(".use-new-image",e.body).on("click",t=>(e.loadUrl(t.currentTarget.href),!1)),a()(".use-existing-image",e.body).on("click",t=>{var o=a()(t.currentTarget).closest("form"),r=a()('input[name="csrfmiddlewaretoken"]',o).val();return e.postForm(t.currentTarget.href,{csrfmiddlewaretoken:r}),!1})}onLoadSelectFormatStep(e){var t=document.querySelector("#id_image-chooser-insertion-image_is_decorative"),o=document.querySelector("#id_image-chooser-insertion-alt_text"),r=document.querySelector('[for="id_image-chooser-insertion-alt_text"]');function n(){o.setAttribute("disabled","disabled"),r.classList.remove("required")}function i(){o.removeAttribute("disabled"),r.classList.add("required")}t.checked?n():i(),t.addEventListener("change",e=>{e.target.checked?n():i()}),a()("form",e.body).on("submit",t=>(a().post(t.currentTarget.action,a()(t.currentTarget).serialize(),e.loadResponseText,"text"),!1))}getOnLoadHandlers(){const e=super.getOnLoadHandlers();return e.duplicate_found=(e,t)=>{this.onLoadDuplicateFoundStep(e,t)},e.select_format=(e,t)=>{this.onLoadSelectFormatStep(e,t)},e}}window.IMAGE_CHOOSER_MODAL_ONLOAD_HANDLERS=new i({creationFormTabSelector:"#tab-upload"}).getOnLoadHandlers();class l extends n.ZZ{onloadHandlers=window.IMAGE_CHOOSER_MODAL_ONLOAD_HANDLERS}window.ImageChooserModal=l}},o={};function r(e){var a=o[e];if(void 0!==a)return a.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.m=t,e=[],r.O=(t,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,d=0;d<o.length;d++)(!1&n||i>=n)&&Object.keys(r.O).every(e=>r.O[e](o[d]))?o.splice(d--,1):(l=!1,n<i&&(i=n));if(l){e.splice(c--,1);var s=a();void 0!==s&&(t=s)}}return t}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]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.j=678,(()=>{var e={678:0};r.O.j=t=>0===e[t];var t=(t,o)=>{var a,n,[i,l,d]=o,s=0;if(i.some(t=>0!==e[t])){for(a in l)r.o(l,a)&&(r.m[a]=l[a]);if(d)var c=d(r)}for(t&&t(o);s<i.length;s++)n=i[s],r.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return r.O(c)},o=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var a=r.O(void 0,[321],()=>r(3188));a=r.O(a)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e,t={7199:(e,t,r)=>{var i=r(9465);class a extends i.y{chooserModalClass=ImageChooserModal;initHTMLElements(e){super.initHTMLElements(e),this.previewImage=this.chooserElement.querySelector("[data-chooser-image]")}getStateFromHTML(){const e=super.getStateFromHTML();return e&&(e.preview={url:this.previewImage.getAttribute("src"),width:this.previewImage.getAttribute("width"),height:this.previewImage.getAttribute("height")},e.default_alt_text=this.previewImage.getAttribute("data-default-alt-text")),e}renderState(e){super.renderState(e),this.previewImage.setAttribute("src",e.preview.url),this.previewImage.setAttribute("width",e.preview.width),this.previewImage.setAttribute("data-default-alt-text",e.default_alt_text)}}class o extends i._{widgetClass=a;chooserModalClass=ImageChooserModal}window.telepath.register("wagtail.images.widgets.ImageChooser",o)},1669:e=>{e.exports=jQuery}},r={};function i(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.m=t,e=[],i.O=(t,r,a,o)=>{if(!r){var s=1/0;for(h=0;h<e.length;h++){for(var[r,a,o]=e[h],l=!0,n=0;n<r.length;n++)(!1&o||s>=o)&&Object.keys(i.O).every((e=>i.O[e](r[n])))?r.splice(n--,1):(l=!1,o<s&&(s=o));if(l){e.splice(h--,1);var u=a();void 0!==u&&(t=u)}}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]=[r,a,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=246,(()=>{var e={246:0};i.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[s,l,n]=r,u=0;if(s.some((t=>0!==e[t]))){for(a in l)i.o(l,a)&&(i.m[a]=l[a]);if(n)var h=n(i)}for(t&&t(r);u<s.length;u++)o=s[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(h)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=i.O(void 0,[321],(()=>i(7199)));a=i.O(a)})();
1
+ (()=>{"use strict";var e,t={1669:e=>{e.exports=jQuery},7199:(e,t,r)=>{var i=r(9465);class a extends i.y{chooserModalClass=ImageChooserModal;initHTMLElements(e){super.initHTMLElements(e),this.previewImage=this.chooserElement.querySelector("[data-chooser-image]")}getStateFromHTML(){const e=super.getStateFromHTML();return e&&(e.preview={url:this.previewImage.getAttribute("src"),width:this.previewImage.getAttribute("width"),height:this.previewImage.getAttribute("height")},e.default_alt_text=this.previewImage.getAttribute("data-default-alt-text")),e}renderState(e){super.renderState(e),this.previewImage.setAttribute("src",e.preview.url),this.previewImage.setAttribute("width",e.preview.width),this.previewImage.setAttribute("data-default-alt-text",e.default_alt_text)}}class o extends i._{widgetClass=a;chooserModalClass=ImageChooserModal}window.telepath.register("wagtail.images.widgets.ImageChooser",o)}},r={};function i(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.m=t,e=[],i.O=(t,r,a,o)=>{if(!r){var s=1/0;for(h=0;h<e.length;h++){for(var[r,a,o]=e[h],l=!0,n=0;n<r.length;n++)(!1&o||s>=o)&&Object.keys(i.O).every(e=>i.O[e](r[n]))?r.splice(n--,1):(l=!1,o<s&&(s=o));if(l){e.splice(h--,1);var u=a();void 0!==u&&(t=u)}}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]=[r,a,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=246,(()=>{var e={246:0};i.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[s,l,n]=r,u=0;if(s.some(t=>0!==e[t])){for(a in l)i.o(l,a)&&(i.m[a]=l[a]);if(n)var h=n(i)}for(t&&t(r);u<s.length;u++)o=s[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(h)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=i.O(void 0,[321],()=>i(7199));a=i.O(a)})();
@@ -1 +1 @@
1
- (()=>{"use strict";var e,t={4023:(e,t,r)=>{var i=r(9465);class a extends i.y{chooserModalClass=ImageChooserModal;initHTMLElements(e){super.initHTMLElements(e),this.previewImage=this.chooserElement.querySelector("[data-chooser-image]")}getStateFromHTML(){const e=super.getStateFromHTML();return e&&(e.preview={url:this.previewImage.getAttribute("src"),width:this.previewImage.getAttribute("width"),height:this.previewImage.getAttribute("height")},e.default_alt_text=this.previewImage.getAttribute("data-default-alt-text")),e}renderState(e){super.renderState(e),this.previewImage.setAttribute("src",e.preview.url),this.previewImage.setAttribute("width",e.preview.width),this.previewImage.setAttribute("data-default-alt-text",e.default_alt_text)}}window.ImageChooser=a},1669:e=>{e.exports=jQuery}},r={};function i(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.m=t,e=[],i.O=(t,r,a,o)=>{if(!r){var n=1/0;for(h=0;h<e.length;h++){for(var[r,a,o]=e[h],s=!0,l=0;l<r.length;l++)(!1&o||n>=o)&&Object.keys(i.O).every((e=>i.O[e](r[l])))?r.splice(l--,1):(s=!1,o<n&&(n=o));if(s){e.splice(h--,1);var u=a();void 0!==u&&(t=u)}}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]=[r,a,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=306,(()=>{var e={306:0};i.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[n,s,l]=r,u=0;if(n.some((t=>0!==e[t]))){for(a in s)i.o(s,a)&&(i.m[a]=s[a]);if(l)var h=l(i)}for(t&&t(r);u<n.length;u++)o=n[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(h)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=i.O(void 0,[321],(()=>i(4023)));a=i.O(a)})();
1
+ (()=>{"use strict";var e,t={1669:e=>{e.exports=jQuery},4023:(e,t,r)=>{var i=r(9465);class a extends i.y{chooserModalClass=ImageChooserModal;initHTMLElements(e){super.initHTMLElements(e),this.previewImage=this.chooserElement.querySelector("[data-chooser-image]")}getStateFromHTML(){const e=super.getStateFromHTML();return e&&(e.preview={url:this.previewImage.getAttribute("src"),width:this.previewImage.getAttribute("width"),height:this.previewImage.getAttribute("height")},e.default_alt_text=this.previewImage.getAttribute("data-default-alt-text")),e}renderState(e){super.renderState(e),this.previewImage.setAttribute("src",e.preview.url),this.previewImage.setAttribute("width",e.preview.width),this.previewImage.setAttribute("data-default-alt-text",e.default_alt_text)}}window.ImageChooser=a}},r={};function i(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.m=t,e=[],i.O=(t,r,a,o)=>{if(!r){var n=1/0;for(h=0;h<e.length;h++){for(var[r,a,o]=e[h],s=!0,l=0;l<r.length;l++)(!1&o||n>=o)&&Object.keys(i.O).every(e=>i.O[e](r[l]))?r.splice(l--,1):(s=!1,o<n&&(n=o));if(s){e.splice(h--,1);var u=a();void 0!==u&&(t=u)}}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]=[r,a,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.j=306,(()=>{var e={306:0};i.O.j=t=>0===e[t];var t=(t,r)=>{var a,o,[n,s,l]=r,u=0;if(n.some(t=>0!==e[t])){for(a in s)i.o(s,a)&&(i.m[a]=s[a]);if(l)var h=l(i)}for(t&&t(r);u<n.length;u++)o=n[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(h)},r=globalThis.webpackChunkwagtail=globalThis.webpackChunkwagtail||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a=i.O(void 0,[321],()=>i(4023));a=i.O(a)})();
@@ -1 +1 @@
1
- $((function(){$("[data-generator-url]").each((function(){var i=$(this),e=i.find("form"),n=e.find("select#id_filter_method"),a=e.find("input#id_width"),l=e.find("input#id_height"),r=e.find("input#id_closeness"),t=i.find("#result-url"),d=i.find(".loading-mask"),o=i.find("img.preview"),f=i.data("generatorUrl");function s(){var i=n.val();d.addClass("loading"),"width"===i?i+="-"+a.val():"height"===i?i+="-"+l.val():"min"!==i&&"max"!==i&&"fill"!==i||(i+="fill"===i?"-"+a.val()+"x"+l.val()+"-c"+r.val():"-"+a.val()+"x"+l.val()),$.getJSON(f.replace("__filterspec__",i)).done((function(i){t.val(i.url),o.attr("src",i.preview_url),d.removeClass("loading")})).fail((function(i){t.val(i.responseJSON.error),o.attr("src",""),d.removeClass("loading")}))}e.on("change",$.debounce(500,s)),e.on("keyup",$.debounce(500,s)),s()}))}));
1
+ $(function(){$("[data-generator-url]").each(function(){var i=$(this),e=i.find("form"),n=e.find("select#id_filter_method"),a=e.find("input#id_width"),l=e.find("input#id_height"),r=e.find("input#id_closeness"),t=i.find("#result-url"),d=i.find(".loading-mask"),o=i.find("img.preview"),f=i.data("generatorUrl");function s(){var i=n.val();d.addClass("loading"),"width"===i?i+="-"+a.val():"height"===i?i+="-"+l.val():"min"!==i&&"max"!==i&&"fill"!==i||(i+="fill"===i?"-"+a.val()+"x"+l.val()+"-c"+r.val():"-"+a.val()+"x"+l.val()),$.getJSON(f.replace("__filterspec__",i)).done(function(i){t.val(i.url),o.attr("src",i.preview_url),d.removeClass("loading")}).fail(function(i){t.val(i.responseJSON.error),o.attr("src",""),d.removeClass("loading")})}e.on("change",$.debounce(500,s)),e.on("keyup",$.debounce(500,s)),s()})});
@@ -1 +1 @@
1
- !function(e){e.Jcrop=function(t,n){function o(e){return Math.round(e)+"px"}function r(e){return M.baseClass+"-"+e}function a(){return e.fx.step.hasOwnProperty("backgroundColor")}function i(t){var n=e(t).offset();return[n.left,n.top]}function s(e){return[e.pageX-z[0],e.pageY-z[1]]}function c(t){"object"!=typeof t&&(t={}),M=e.extend(M,t),e.each(["onChange","onSelect","onRelease","onDblClick"],(function(e,t){"function"!=typeof M[t]&&(M[t]=function(){})}))}function u(e,t,n){if(z=i(P),re.setCursor("move"===e?e:e+"-resize"),"move"===e)return re.activateHandlers(function(e){var t=e;return ae.watchKeys(),function(e){te.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,oe.update()}}(t),g,n);var o=te.getFixed(),r=l(e),a=te.getCorner(l(r));te.setPressed(te.getCorner(r)),te.setCurrent(a),re.activateHandlers(d(e,o),g,n)}function d(e,t){return function(n){if(M.aspectRatio)switch(e){case"e":case"w":n[1]=t.y+1;break;case"n":case"s":n[0]=t.x+1}else switch(e){case"e":case"w":n[1]=t.y2;break;case"n":case"s":n[0]=t.x2}te.setCurrent(n),oe.update()}}function l(e){switch(e){case"n":case"ne":return"sw";case"s":case"e":case"se":return"nw";case"w":case"sw":return"ne";case"nw":return"se"}}function h(e){return function(t){return!(M.disabled||"move"===e&&!M.allowMove||(z=i(P),V=!0,u(e,s(t)),t.stopPropagation(),t.preventDefault(),1))}}function f(e,t,n){var o=e.width(),r=e.height();o>t&&t>0&&(o=t,r=t/e.width()*e.height()),r>n&&n>0&&(r=n,o=n/e.height()*e.width()),G=e.width()/o,N=e.height()/r,e.width(o).height(r)}function p(e){return{x:e.x*G,y:e.y*N,x2:e.x2*G,y2:e.y2*N,w:e.w*G,h:e.h*N}}function g(e){var t=te.getFixed();t.w>M.minSelect[0]&&t.h>M.minSelect[1]?(oe.enableHandles(),oe.done()):oe.release(),re.setCursor(M.allowSelect?"crosshair":"default")}function b(e){if(M.disabled)return!1;if(!M.allowSelect)return!1;V=!0,z=i(P),oe.disableHandles(),re.setCursor("crosshair");var t=s(e);return te.setPressed(t),oe.update(),re.activateHandlers(w,g,"touch"===e.type.substring(0,5)),ae.watchKeys(),e.stopPropagation(),e.preventDefault(),!1}function w(e){te.setCurrent(e),oe.update()}function v(){var t=e("<div></div>").addClass(r("tracker"));return j&&t.css({opacity:0,backgroundColor:"white"}),t}function y(e){m([e[0]/G,e[1]/N,e[2]/G,e[3]/N]),M.onSelect.call(ie,p(te.getFixed())),oe.enableHandles()}function m(e){te.setPressed([e[0],e[1]]),te.setCurrent([e[2],e[3]]),oe.update()}function C(){M.disabled=!0,oe.disableHandles(),oe.setCursor("default"),re.setCursor("default")}function x(){M.disabled=!1,k()}function S(e,t,n){var o=t||M.bgColor;M.bgFade&&a()&&M.fadeTime&&!n?e.animate({backgroundColor:o},{queue:!1,duration:M.fadeTime}):e.css("backgroundColor",o)}function k(e){M.allowResize?e?oe.enableOnly():oe.enableHandles():oe.disableHandles(),re.setCursor(M.allowSelect?"crosshair":"default"),oe.setCursor(M.allowMove?"move":"default"),M.hasOwnProperty("trueSize")&&(G=M.trueSize[0]/J,N=M.trueSize[1]/A),M.hasOwnProperty("setSelect")&&(y(M.setSelect),oe.done(),delete M.setSelect),ne.refresh(),M.bgColor!=$&&(S(M.shade?ne.getShades():R,M.shade&&M.shadeColor||M.bgColor),$=M.bgColor),_!=M.bgOpacity&&(_=M.bgOpacity,M.shade?ne.refresh():oe.setBgOpacity(_)),Y=M.maxSize[0]||0,q=M.maxSize[1]||0,L=M.minSize[0]||0,X=M.minSize[1]||0,M.hasOwnProperty("outerImage")&&(P.attr("src",M.outerImage),delete M.outerImage),oe.refresh()}var z,M=e.extend({},e.Jcrop.defaults),O=navigator.userAgent.toLowerCase(),j=/msie/.test(O),F=/msie [1-6]\./.test(O);"object"!=typeof t&&(t=e(t)[0]),"object"!=typeof n&&(n={}),c(n);var H={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},D=e(t),I=!0;if("IMG"==t.tagName){if(0!=D[0].width&&0!=D[0].height)D.width(D[0].width),D.height(D[0].height);else{var B=new Image;B.src=D[0].src,D.width(B.width),D.height(B.height)}var P=D.clone().removeAttr("id").css(H).show();P.width(D.width()),P.height(D.height()),D.after(P).hide()}else P=D.css(H).show(),I=!1,null===M.shade&&(M.shade=!0);f(P,M.boxWidth,M.boxHeight);var J=P.width(),A=P.height(),R=e("<div />").width(J).height(A).addClass(r("holder")).css({position:"relative",backgroundColor:M.bgColor}).insertAfter(D).append(P);M.addClass&&R.addClass(M.addClass);var T=e("<div />"),K=e("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),E=e("<div />").width("100%").height("100%").css("zIndex",320),W=e("<div />").css({position:"absolute",zIndex:600}).on("dblclick",(function(){var e=te.getFixed();M.onDblClick.call(ie,e)})).insertBefore(P).append(K,E);I&&(T=e("<img />").attr("src",P.attr("src")).css(H).width(J).height(A),K.append(T)),F&&W.css({overflowY:"hidden"});var Y,q,L,X,G,N,V,Q,U=M.boundary,Z=v().width(J+2*U).height(A+2*U).css({position:"absolute",top:o(-U),left:o(-U),zIndex:290}).on("mousedown",b),$=M.bgColor,_=M.bgOpacity;z=i(P);var ee=function(){function e(){var e,t={},n=["touchstart","touchmove","touchend"],o=document.createElement("div");try{for(e=0;e<n.length;e++){var r=n[e],a=(r="on"+r)in o;a||(o.setAttribute(r,"return;"),a="function"==typeof o[r]),t[n[e]]=a}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return!(M.disabled||"move"===e&&!M.allowMove||(z=i(P),V=!0,u(e,s(ee.cfilter(t)),!0),t.stopPropagation(),t.preventDefault(),1))}},newSelection:function(e){return b(ee.cfilter(e))},cfilter:function(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,e},isSupported:e,support:!0===M.touchSupport||!1===M.touchSupport?M.touchSupport:e()}}(),te=function(){function e(){if(!M.aspectRatio)return function(){var e,t=c-i,r=u-s;return Y&&Math.abs(t)>Y&&(c=t>0?i+Y:i-Y),q&&Math.abs(r)>q&&(u=r>0?s+q:s-q),X/N&&Math.abs(r)<X/N&&(u=r>0?s+X/N:s-X/N),L/G&&Math.abs(t)<L/G&&(c=t>0?i+L/G:i-L/G),i<0&&(c-=i,i-=i),s<0&&(u-=s,s-=s),c<0&&(i-=c,c-=c),u<0&&(s-=u,u-=u),c>J&&(i-=e=c-J,c-=e),u>A&&(s-=e=u-A,u-=e),i>J&&(u-=e=i-A,s-=e),s>A&&(u-=e=s-A,s-=e),o(n(i,s,c,u))}();var e,t,r,a,d=M.aspectRatio,l=M.minSize[0]/G,h=M.maxSize[0]/G,f=M.maxSize[1]/N,p=c-i,g=u-s,b=Math.abs(p),w=Math.abs(g);return 0===h&&(h=10*J),0===f&&(f=10*A),b/w<d?(t=u,r=w*d,(e=p<0?i-r:r+i)<0?(e=0,a=Math.abs((e-i)/d),t=g<0?s-a:a+s):e>J&&(e=J,a=Math.abs((e-i)/d),t=g<0?s-a:a+s)):(e=c,a=b/d,(t=g<0?s-a:s+a)<0?(t=0,r=Math.abs((t-s)*d),e=p<0?i-r:r+i):t>A&&(t=A,r=Math.abs(t-s)*d,e=p<0?i-r:r+i)),e>i?(e-i<l?e=i+l:e-i>h&&(e=i+h),t=t>s?s+(e-i)/d:s-(e-i)/d):e<i&&(i-e<l?e=i-l:i-e>h&&(e=i-h),t=t>s?s+(i-e)/d:s-(i-e)/d),e<0?(i-=e,e=0):e>J&&(i-=e-J,e=J),t<0?(s-=t,t=0):t>A&&(s-=t-A,t=A),o(n(i,s,e,t))}function t(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>J&&(e[0]=J),e[1]>A&&(e[1]=A),[Math.round(e[0]),Math.round(e[1])]}function n(e,t,n,o){var r=e,a=n,i=t,s=o;return n<e&&(r=n,a=e),o<t&&(i=o,s=t),[r,i,a,s]}function o(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}var r,a,i=0,s=0,c=0,u=0;return{flipCoords:n,setPressed:function(e){e=t(e),c=i=e[0],u=s=e[1]},setCurrent:function(e){e=t(e),r=e[0]-c,a=e[1]-u,c=e[0],u=e[1]},getOffset:function(){return[r,a]},moveOffset:function(e){var t=e[0],n=e[1];0>i+t&&(t-=t+i),0>s+n&&(n-=n+s),A<u+n&&(n+=A-(u+n)),J<c+t&&(t+=J-(c+t)),i+=t,c+=t,s+=n,u+=n},getCorner:function(t){var n=e();switch(t){case"ne":return[n.x2,n.y];case"nw":return[n.x,n.y];case"se":return[n.x2,n.y2];case"sw":return[n.x,n.y2]}},getFixed:e}}(),ne=function(){function t(){return n(te.getFixed())}function n(e){h.top.css({left:o(e.x),width:o(e.w),height:o(e.y)}),h.bottom.css({top:o(e.y2),left:o(e.x),width:o(e.w),height:o(A-e.y2)}),h.right.css({left:o(e.x2),width:o(J-e.x2)}),h.left.css({width:o(e.x)})}function r(){return e("<div />").css({position:"absolute",backgroundColor:M.shadeColor||M.bgColor}).appendTo(l)}function a(){d||(d=!0,l.insertBefore(P),t(),oe.setBgOpacity(1,0,1),T.hide(),i(M.shadeColor||M.bgColor,1),oe.isAwake()?c(M.bgOpacity,1):c(1,1))}function i(e,t){S(u(),e,t)}function s(){d&&(l.remove(),T.show(),d=!1,oe.isAwake()?oe.setBgOpacity(M.bgOpacity,1,1):(oe.setBgOpacity(1,1,1),oe.disableHandles()),S(R,0,1))}function c(e,t){d&&(M.bgFade&&!t?l.animate({opacity:1-e},{queue:!1,duration:M.fadeTime}):l.css({opacity:1-e}))}function u(){return l.children()}var d=!1,l=e("<div />").css({position:"absolute",zIndex:240,opacity:0}),h={top:r(),left:r().height(A),right:r().height(A),bottom:r()};return{update:t,updateRaw:n,getShades:u,setBgColor:i,enable:a,disable:s,resize:function(e,t){h.left.css({height:o(t)}),h.right.css({height:o(t)})},refresh:function(){M.shade?a():s(),oe.isAwake()&&c(M.bgOpacity)},opacity:c}}(),oe=function(){function t(t){var n=e("<div />").css({position:"absolute",opacity:M.borderOpacity}).addClass(r(t));return K.append(n),n}function n(t,n){var o=e("<div />").on("mousedown",h(t)).css({cursor:t+"-resize",position:"absolute",zIndex:n}).addClass("ord-"+t);return ee.support&&o.on("touchstart.jcrop",ee.createDragger(t)),E.append(o),o}function a(e){var t=M.handleSize,o=n(e,w++).css({opacity:M.handleOpacity}).addClass(r("handle"));return t&&o.width(t).height(t),o}function i(e){return n(e,w++).addClass("jcrop-dragbar")}function s(){var e=te.getFixed();te.setPressed([e.x,e.y]),te.setCurrent([e.x2,e.y2]),c()}function c(e){if(b)return u(e)}function u(e){var t=te.getFixed();(function(e,t){W.width(Math.round(e)).height(Math.round(t))})(t.w,t.h),function(e,t){M.shade||T.css({top:o(-t),left:o(-e)}),W.css({top:o(t),left:o(e)})}(t.x,t.y),M.shade&&ne.updateRaw(t),b||(W.show(),M.shade?ne.opacity(_):d(_,!0),b=!0),e?M.onSelect.call(ie,p(t)):M.onChange.call(ie,p(t))}function d(e,t,n){(b||t)&&(M.bgFade&&!n?P.animate({opacity:e},{queue:!1,duration:M.fadeTime}):P.css("opacity",e))}function l(){if(x=!0,M.allowResize)return E.show(),!0}function f(){x=!1,E.hide()}function g(e){e?(Q=!0,f()):(Q=!1,l())}var b,w=370,y={},m={},C={},x=!1;M.dragEdges&&e.isArray(M.createDragbars)&&function(e){var t;for(t=0;t<e.length;t++)C[e[t]]=i(e[t])}(M.createDragbars),e.isArray(M.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)m[e[t]]=a(e[t])}(M.createHandles),M.drawBorders&&e.isArray(M.createBorders)&&function(e){var n,o;for(o=0;o<e.length;o++){switch(e[o]){case"n":n="hline";break;case"s":n="hline bottom";break;case"e":n="vline right";break;case"w":n="vline"}y[e[o]]=t(n)}}(M.createBorders),e(document).on("touchstart.jcrop-ios",(function(t){e(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()}));var S=v().on("mousedown",h("move")).css({cursor:"move",position:"absolute",zIndex:360});return ee.support&&S.on("touchstart.jcrop",ee.createDragger("move")),K.append(S),f(),{updateVisible:c,update:u,release:function(){f(),W.hide(),M.shade?ne.opacity(1):d(1),b=!1,M.onRelease.call(ie)},refresh:s,isAwake:function(){return b},setCursor:function(e){S.css("cursor",e)},enableHandles:l,enableOnly:function(){x=!0},showHandles:function(){x&&E.show()},disableHandles:f,animMode:g,setBgOpacity:d,done:function(){g(!1),s()}}}(),re=function(){function t(t){Z.css({zIndex:450}),t?e(document).on("touchmove.jcrop",a).on("touchend.jcrop",i):d&&e(document).on("mousemove.jcrop",o).on("mouseup.jcrop",r)}function n(){Z.css({zIndex:290}),e(document).off(".jcrop")}function o(e){return c(s(e)),!1}function r(e){return e.preventDefault(),e.stopPropagation(),V&&(V=!1,u(s(e)),oe.isAwake()&&M.onSelect.call(ie,p(te.getFixed())),n(),c=function(){},u=function(){}),!1}function a(e){return c(s(ee.cfilter(e))),!1}function i(e){return r(ee.cfilter(e))}var c=function(){},u=function(){},d=M.trackDocument;return d||Z.mousemove(o).mouseup(r).mouseout(r),P.before(Z),{activateHandlers:function(e,n,o){return V=!0,c=e,u=n,t(o),!1},setCursor:function(e){Z.css("cursor",e)}}}(),ae=function(){function t(e,t,n){M.allowMove&&(te.moveOffset([t,n]),oe.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}var n=e('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),o=e("<div />").css({position:"absolute",overflow:"hidden"}).append(n);return M.keySupport&&(n.on("keydown",(function(e){if(e.ctrlKey||e.metaKey)return!0;var n=e.shiftKey?10:1;switch(e.keyCode){case 37:t(e,-n,0);break;case 39:t(e,n,0);break;case 38:t(e,0,-n);break;case 40:t(e,0,n);break;case 27:M.allowSelect&&oe.release();break;case 9:return!0}return!1})).on("blur",(function(e){n.hide()})),F||!M.fixedSupport?(n.css({position:"absolute",left:"-20px"}),o.append(n).insertBefore(P)):n.insertBefore(P)),{watchKeys:function(){M.keySupport&&(n.show(),n.trigger("focus"))}}}();ee.support&&Z.on("touchstart.jcrop",ee.newSelection),E.hide(),k(!0);var ie={setImage:function(e,t){oe.release(),C();var n=new Image;n.onload=function(){var o=n.width,r=n.height,a=M.boxWidth,i=M.boxHeight;P.width(o).height(r),P.attr("src",e),T.attr("src",e),f(P,a,i),J=P.width(),A=P.height(),T.width(J).height(A),Z.width(J+2*U).height(A+2*U),R.width(J).height(A),ne.resize(J,A),x(),"function"==typeof t&&t.call(ie)},n.src=e},animateTo:function(e,t){function n(){window.setTimeout(v,l)}var o=e[0]/G,r=e[1]/N,a=e[2]/G,i=e[3]/N;if(!Q){var s=te.flipCoords(o,r,a,i),c=te.getFixed(),u=[c.x,c.y,c.x2,c.y2],d=u,l=M.animationDelay,h=s[0]-u[0],f=s[1]-u[1],p=s[2]-u[2],g=s[3]-u[3],b=0,w=M.swingSpeed;o=d[0],r=d[1],a=d[2],i=d[3],oe.animMode(!0);var v=function(){b+=(100-b)/w,d[0]=Math.round(o+b/100*h),d[1]=Math.round(r+b/100*f),d[2]=Math.round(a+b/100*p),d[3]=Math.round(i+b/100*g),b>=99.8&&(b=100),b<100?(m(d),n()):(oe.done(),oe.animMode(!1),"function"==typeof t&&t.call(ie))};n()}},setSelect:y,setOptions:function(e){c(e),k()},tellSelect:function(){return p(te.getFixed())},tellScaled:function(){return te.getFixed()},setClass:function(e){R.removeClass().addClass(r("holder")).addClass(e)},disable:C,enable:x,cancel:function(){oe.done(),re.activateHandlers(null,null)},release:oe.release,destroy:function(){R.remove(),D.show(),D.css("visibility","visible"),e(t).removeData("Jcrop")},focus:ae.watchKeys,getBounds:function(){return[J*G,A*N]},getWidgetSize:function(){return[J,A]},getScaleFactor:function(){return[G,N]},getOptions:function(){return M},ui:{holder:R,selection:W}};return j&&R.on("selectstart",(function(){return!1})),D.data("Jcrop",ie),ie},e.fn.Jcrop=function(t,n){var o;return this.each((function(){if(e(this).data("Jcrop")){if("api"===t)return e(this).data("Jcrop");e(this).data("Jcrop").setOptions(t)}else"IMG"==this.tagName?e.Jcrop.Loader(this,(function(){e(this).css({display:"block",visibility:"hidden"}),o=e.Jcrop(this,t),e.isFunction(n)&&n.call(o)})):(e(this).css({display:"block",visibility:"hidden"}),o=e.Jcrop(this,t),e.isFunction(n)&&n.call(o))})),this},e.Jcrop.Loader=function(t,n,o){var r=e(t),a=r[0];r.on("load.jcloader",(function t(){a.complete?(r.off(".jcloader"),e.isFunction(n)&&n.call(a)):window.setTimeout(t,50)})).on("error.jcloader",(function(t){r.off(".jcloader"),e.isFunction(o)&&o.call(a)})),a.complete&&e.isFunction(n)&&(r.off(".jcloader"),n.call(a))},e.Jcrop.defaults={allowSelect:!0,allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,borderOpacity:.4,handleOpacity:.5,handleSize:null,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createDragbars:["n","s","e","w"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(jQuery);
1
+ !function(e){e.Jcrop=function(t,n){function o(e){return Math.round(e)+"px"}function r(e){return M.baseClass+"-"+e}function a(){return e.fx.step.hasOwnProperty("backgroundColor")}function i(t){var n=e(t).offset();return[n.left,n.top]}function s(e){return[e.pageX-z[0],e.pageY-z[1]]}function c(t){"object"!=typeof t&&(t={}),M=e.extend(M,t),e.each(["onChange","onSelect","onRelease","onDblClick"],function(e,t){"function"!=typeof M[t]&&(M[t]=function(){})})}function u(e,t,n){if(z=i(P),re.setCursor("move"===e?e:e+"-resize"),"move"===e)return re.activateHandlers(function(e){var t=e;return ae.watchKeys(),function(e){te.moveOffset([e[0]-t[0],e[1]-t[1]]),t=e,oe.update()}}(t),g,n);var o=te.getFixed(),r=l(e),a=te.getCorner(l(r));te.setPressed(te.getCorner(r)),te.setCurrent(a),re.activateHandlers(d(e,o),g,n)}function d(e,t){return function(n){if(M.aspectRatio)switch(e){case"e":case"w":n[1]=t.y+1;break;case"n":case"s":n[0]=t.x+1}else switch(e){case"e":case"w":n[1]=t.y2;break;case"n":case"s":n[0]=t.x2}te.setCurrent(n),oe.update()}}function l(e){switch(e){case"n":case"ne":return"sw";case"s":case"e":case"se":return"nw";case"w":case"sw":return"ne";case"nw":return"se"}}function h(e){return function(t){return!(M.disabled||"move"===e&&!M.allowMove||(z=i(P),V=!0,u(e,s(t)),t.stopPropagation(),t.preventDefault(),1))}}function f(e,t,n){var o=e.width(),r=e.height();o>t&&t>0&&(o=t,r=t/e.width()*e.height()),r>n&&n>0&&(r=n,o=n/e.height()*e.width()),G=e.width()/o,N=e.height()/r,e.width(o).height(r)}function p(e){return{x:e.x*G,y:e.y*N,x2:e.x2*G,y2:e.y2*N,w:e.w*G,h:e.h*N}}function g(e){var t=te.getFixed();t.w>M.minSelect[0]&&t.h>M.minSelect[1]?(oe.enableHandles(),oe.done()):oe.release(),re.setCursor(M.allowSelect?"crosshair":"default")}function b(e){if(M.disabled)return!1;if(!M.allowSelect)return!1;V=!0,z=i(P),oe.disableHandles(),re.setCursor("crosshair");var t=s(e);return te.setPressed(t),oe.update(),re.activateHandlers(w,g,"touch"===e.type.substring(0,5)),ae.watchKeys(),e.stopPropagation(),e.preventDefault(),!1}function w(e){te.setCurrent(e),oe.update()}function v(){var t=e("<div></div>").addClass(r("tracker"));return j&&t.css({opacity:0,backgroundColor:"white"}),t}function y(e){m([e[0]/G,e[1]/N,e[2]/G,e[3]/N]),M.onSelect.call(ie,p(te.getFixed())),oe.enableHandles()}function m(e){te.setPressed([e[0],e[1]]),te.setCurrent([e[2],e[3]]),oe.update()}function C(){M.disabled=!0,oe.disableHandles(),oe.setCursor("default"),re.setCursor("default")}function x(){M.disabled=!1,k()}function S(e,t,n){var o=t||M.bgColor;M.bgFade&&a()&&M.fadeTime&&!n?e.animate({backgroundColor:o},{queue:!1,duration:M.fadeTime}):e.css("backgroundColor",o)}function k(e){M.allowResize?e?oe.enableOnly():oe.enableHandles():oe.disableHandles(),re.setCursor(M.allowSelect?"crosshair":"default"),oe.setCursor(M.allowMove?"move":"default"),M.hasOwnProperty("trueSize")&&(G=M.trueSize[0]/J,N=M.trueSize[1]/A),M.hasOwnProperty("setSelect")&&(y(M.setSelect),oe.done(),delete M.setSelect),ne.refresh(),M.bgColor!=$&&(S(M.shade?ne.getShades():R,M.shade&&M.shadeColor||M.bgColor),$=M.bgColor),_!=M.bgOpacity&&(_=M.bgOpacity,M.shade?ne.refresh():oe.setBgOpacity(_)),Y=M.maxSize[0]||0,q=M.maxSize[1]||0,L=M.minSize[0]||0,X=M.minSize[1]||0,M.hasOwnProperty("outerImage")&&(P.attr("src",M.outerImage),delete M.outerImage),oe.refresh()}var z,M=e.extend({},e.Jcrop.defaults),O=navigator.userAgent.toLowerCase(),j=/msie/.test(O),F=/msie [1-6]\./.test(O);"object"!=typeof t&&(t=e(t)[0]),"object"!=typeof n&&(n={}),c(n);var H={border:"none",visibility:"visible",margin:0,padding:0,position:"absolute",top:0,left:0},D=e(t),I=!0;if("IMG"==t.tagName){if(0!=D[0].width&&0!=D[0].height)D.width(D[0].width),D.height(D[0].height);else{var B=new Image;B.src=D[0].src,D.width(B.width),D.height(B.height)}var P=D.clone().removeAttr("id").css(H).show();P.width(D.width()),P.height(D.height()),D.after(P).hide()}else P=D.css(H).show(),I=!1,null===M.shade&&(M.shade=!0);f(P,M.boxWidth,M.boxHeight);var J=P.width(),A=P.height(),R=e("<div />").width(J).height(A).addClass(r("holder")).css({position:"relative",backgroundColor:M.bgColor}).insertAfter(D).append(P);M.addClass&&R.addClass(M.addClass);var T=e("<div />"),K=e("<div />").width("100%").height("100%").css({zIndex:310,position:"absolute",overflow:"hidden"}),E=e("<div />").width("100%").height("100%").css("zIndex",320),W=e("<div />").css({position:"absolute",zIndex:600}).on("dblclick",function(){var e=te.getFixed();M.onDblClick.call(ie,e)}).insertBefore(P).append(K,E);I&&(T=e("<img />").attr("src",P.attr("src")).css(H).width(J).height(A),K.append(T)),F&&W.css({overflowY:"hidden"});var Y,q,L,X,G,N,V,Q,U=M.boundary,Z=v().width(J+2*U).height(A+2*U).css({position:"absolute",top:o(-U),left:o(-U),zIndex:290}).on("mousedown",b),$=M.bgColor,_=M.bgOpacity;z=i(P);var ee=function(){function e(){var e,t={},n=["touchstart","touchmove","touchend"],o=document.createElement("div");try{for(e=0;e<n.length;e++){var r=n[e],a=(r="on"+r)in o;a||(o.setAttribute(r,"return;"),a="function"==typeof o[r]),t[n[e]]=a}return t.touchstart&&t.touchend&&t.touchmove}catch(e){return!1}}return{createDragger:function(e){return function(t){return!(M.disabled||"move"===e&&!M.allowMove||(z=i(P),V=!0,u(e,s(ee.cfilter(t)),!0),t.stopPropagation(),t.preventDefault(),1))}},newSelection:function(e){return b(ee.cfilter(e))},cfilter:function(e){return e.pageX=e.originalEvent.changedTouches[0].pageX,e.pageY=e.originalEvent.changedTouches[0].pageY,e},isSupported:e,support:!0===M.touchSupport||!1===M.touchSupport?M.touchSupport:e()}}(),te=function(){function e(){if(!M.aspectRatio)return function(){var e,t=c-i,r=u-s;return Y&&Math.abs(t)>Y&&(c=t>0?i+Y:i-Y),q&&Math.abs(r)>q&&(u=r>0?s+q:s-q),X/N&&Math.abs(r)<X/N&&(u=r>0?s+X/N:s-X/N),L/G&&Math.abs(t)<L/G&&(c=t>0?i+L/G:i-L/G),i<0&&(c-=i,i-=i),s<0&&(u-=s,s-=s),c<0&&(i-=c,c-=c),u<0&&(s-=u,u-=u),c>J&&(i-=e=c-J,c-=e),u>A&&(s-=e=u-A,u-=e),i>J&&(u-=e=i-A,s-=e),s>A&&(u-=e=s-A,s-=e),o(n(i,s,c,u))}();var e,t,r,a,d=M.aspectRatio,l=M.minSize[0]/G,h=M.maxSize[0]/G,f=M.maxSize[1]/N,p=c-i,g=u-s,b=Math.abs(p),w=Math.abs(g);return 0===h&&(h=10*J),0===f&&(f=10*A),b/w<d?(t=u,r=w*d,(e=p<0?i-r:r+i)<0?(e=0,a=Math.abs((e-i)/d),t=g<0?s-a:a+s):e>J&&(e=J,a=Math.abs((e-i)/d),t=g<0?s-a:a+s)):(e=c,a=b/d,(t=g<0?s-a:s+a)<0?(t=0,r=Math.abs((t-s)*d),e=p<0?i-r:r+i):t>A&&(t=A,r=Math.abs(t-s)*d,e=p<0?i-r:r+i)),e>i?(e-i<l?e=i+l:e-i>h&&(e=i+h),t=t>s?s+(e-i)/d:s-(e-i)/d):e<i&&(i-e<l?e=i-l:i-e>h&&(e=i-h),t=t>s?s+(i-e)/d:s-(i-e)/d),e<0?(i-=e,e=0):e>J&&(i-=e-J,e=J),t<0?(s-=t,t=0):t>A&&(s-=t-A,t=A),o(n(i,s,e,t))}function t(e){return e[0]<0&&(e[0]=0),e[1]<0&&(e[1]=0),e[0]>J&&(e[0]=J),e[1]>A&&(e[1]=A),[Math.round(e[0]),Math.round(e[1])]}function n(e,t,n,o){var r=e,a=n,i=t,s=o;return n<e&&(r=n,a=e),o<t&&(i=o,s=t),[r,i,a,s]}function o(e){return{x:e[0],y:e[1],x2:e[2],y2:e[3],w:e[2]-e[0],h:e[3]-e[1]}}var r,a,i=0,s=0,c=0,u=0;return{flipCoords:n,setPressed:function(e){e=t(e),c=i=e[0],u=s=e[1]},setCurrent:function(e){e=t(e),r=e[0]-c,a=e[1]-u,c=e[0],u=e[1]},getOffset:function(){return[r,a]},moveOffset:function(e){var t=e[0],n=e[1];0>i+t&&(t-=t+i),0>s+n&&(n-=n+s),A<u+n&&(n+=A-(u+n)),J<c+t&&(t+=J-(c+t)),i+=t,c+=t,s+=n,u+=n},getCorner:function(t){var n=e();switch(t){case"ne":return[n.x2,n.y];case"nw":return[n.x,n.y];case"se":return[n.x2,n.y2];case"sw":return[n.x,n.y2]}},getFixed:e}}(),ne=function(){function t(){return n(te.getFixed())}function n(e){h.top.css({left:o(e.x),width:o(e.w),height:o(e.y)}),h.bottom.css({top:o(e.y2),left:o(e.x),width:o(e.w),height:o(A-e.y2)}),h.right.css({left:o(e.x2),width:o(J-e.x2)}),h.left.css({width:o(e.x)})}function r(){return e("<div />").css({position:"absolute",backgroundColor:M.shadeColor||M.bgColor}).appendTo(l)}function a(){d||(d=!0,l.insertBefore(P),t(),oe.setBgOpacity(1,0,1),T.hide(),i(M.shadeColor||M.bgColor,1),oe.isAwake()?c(M.bgOpacity,1):c(1,1))}function i(e,t){S(u(),e,t)}function s(){d&&(l.remove(),T.show(),d=!1,oe.isAwake()?oe.setBgOpacity(M.bgOpacity,1,1):(oe.setBgOpacity(1,1,1),oe.disableHandles()),S(R,0,1))}function c(e,t){d&&(M.bgFade&&!t?l.animate({opacity:1-e},{queue:!1,duration:M.fadeTime}):l.css({opacity:1-e}))}function u(){return l.children()}var d=!1,l=e("<div />").css({position:"absolute",zIndex:240,opacity:0}),h={top:r(),left:r().height(A),right:r().height(A),bottom:r()};return{update:t,updateRaw:n,getShades:u,setBgColor:i,enable:a,disable:s,resize:function(e,t){h.left.css({height:o(t)}),h.right.css({height:o(t)})},refresh:function(){M.shade?a():s(),oe.isAwake()&&c(M.bgOpacity)},opacity:c}}(),oe=function(){function t(t){var n=e("<div />").css({position:"absolute",opacity:M.borderOpacity}).addClass(r(t));return K.append(n),n}function n(t,n){var o=e("<div />").on("mousedown",h(t)).css({cursor:t+"-resize",position:"absolute",zIndex:n}).addClass("ord-"+t);return ee.support&&o.on("touchstart.jcrop",ee.createDragger(t)),E.append(o),o}function a(e){var t=M.handleSize,o=n(e,w++).css({opacity:M.handleOpacity}).addClass(r("handle"));return t&&o.width(t).height(t),o}function i(e){return n(e,w++).addClass("jcrop-dragbar")}function s(){var e=te.getFixed();te.setPressed([e.x,e.y]),te.setCurrent([e.x2,e.y2]),c()}function c(e){if(b)return u(e)}function u(e){var t=te.getFixed();(function(e,t){W.width(Math.round(e)).height(Math.round(t))})(t.w,t.h),function(e,t){M.shade||T.css({top:o(-t),left:o(-e)}),W.css({top:o(t),left:o(e)})}(t.x,t.y),M.shade&&ne.updateRaw(t),b||(W.show(),M.shade?ne.opacity(_):d(_,!0),b=!0),e?M.onSelect.call(ie,p(t)):M.onChange.call(ie,p(t))}function d(e,t,n){(b||t)&&(M.bgFade&&!n?P.animate({opacity:e},{queue:!1,duration:M.fadeTime}):P.css("opacity",e))}function l(){if(x=!0,M.allowResize)return E.show(),!0}function f(){x=!1,E.hide()}function g(e){e?(Q=!0,f()):(Q=!1,l())}var b,w=370,y={},m={},C={},x=!1;M.dragEdges&&e.isArray(M.createDragbars)&&function(e){var t;for(t=0;t<e.length;t++)C[e[t]]=i(e[t])}(M.createDragbars),e.isArray(M.createHandles)&&function(e){var t;for(t=0;t<e.length;t++)m[e[t]]=a(e[t])}(M.createHandles),M.drawBorders&&e.isArray(M.createBorders)&&function(e){var n,o;for(o=0;o<e.length;o++){switch(e[o]){case"n":n="hline";break;case"s":n="hline bottom";break;case"e":n="vline right";break;case"w":n="vline"}y[e[o]]=t(n)}}(M.createBorders),e(document).on("touchstart.jcrop-ios",function(t){e(t.currentTarget).hasClass("jcrop-tracker")&&t.stopPropagation()});var S=v().on("mousedown",h("move")).css({cursor:"move",position:"absolute",zIndex:360});return ee.support&&S.on("touchstart.jcrop",ee.createDragger("move")),K.append(S),f(),{updateVisible:c,update:u,release:function(){f(),W.hide(),M.shade?ne.opacity(1):d(1),b=!1,M.onRelease.call(ie)},refresh:s,isAwake:function(){return b},setCursor:function(e){S.css("cursor",e)},enableHandles:l,enableOnly:function(){x=!0},showHandles:function(){x&&E.show()},disableHandles:f,animMode:g,setBgOpacity:d,done:function(){g(!1),s()}}}(),re=function(){function t(t){Z.css({zIndex:450}),t?e(document).on("touchmove.jcrop",a).on("touchend.jcrop",i):d&&e(document).on("mousemove.jcrop",o).on("mouseup.jcrop",r)}function n(){Z.css({zIndex:290}),e(document).off(".jcrop")}function o(e){return c(s(e)),!1}function r(e){return e.preventDefault(),e.stopPropagation(),V&&(V=!1,u(s(e)),oe.isAwake()&&M.onSelect.call(ie,p(te.getFixed())),n(),c=function(){},u=function(){}),!1}function a(e){return c(s(ee.cfilter(e))),!1}function i(e){return r(ee.cfilter(e))}var c=function(){},u=function(){},d=M.trackDocument;return d||Z.mousemove(o).mouseup(r).mouseout(r),P.before(Z),{activateHandlers:function(e,n,o){return V=!0,c=e,u=n,t(o),!1},setCursor:function(e){Z.css("cursor",e)}}}(),ae=function(){function t(e,t,n){M.allowMove&&(te.moveOffset([t,n]),oe.updateVisible(!0)),e.preventDefault(),e.stopPropagation()}var n=e('<input type="radio" />').css({position:"fixed",left:"-120px",width:"12px"}).addClass("jcrop-keymgr"),o=e("<div />").css({position:"absolute",overflow:"hidden"}).append(n);return M.keySupport&&(n.on("keydown",function(e){if(e.ctrlKey||e.metaKey)return!0;var n=e.shiftKey?10:1;switch(e.keyCode){case 37:t(e,-n,0);break;case 39:t(e,n,0);break;case 38:t(e,0,-n);break;case 40:t(e,0,n);break;case 27:M.allowSelect&&oe.release();break;case 9:return!0}return!1}).on("blur",function(e){n.hide()}),F||!M.fixedSupport?(n.css({position:"absolute",left:"-20px"}),o.append(n).insertBefore(P)):n.insertBefore(P)),{watchKeys:function(){M.keySupport&&(n.show(),n.trigger("focus"))}}}();ee.support&&Z.on("touchstart.jcrop",ee.newSelection),E.hide(),k(!0);var ie={setImage:function(e,t){oe.release(),C();var n=new Image;n.onload=function(){var o=n.width,r=n.height,a=M.boxWidth,i=M.boxHeight;P.width(o).height(r),P.attr("src",e),T.attr("src",e),f(P,a,i),J=P.width(),A=P.height(),T.width(J).height(A),Z.width(J+2*U).height(A+2*U),R.width(J).height(A),ne.resize(J,A),x(),"function"==typeof t&&t.call(ie)},n.src=e},animateTo:function(e,t){function n(){window.setTimeout(v,l)}var o=e[0]/G,r=e[1]/N,a=e[2]/G,i=e[3]/N;if(!Q){var s=te.flipCoords(o,r,a,i),c=te.getFixed(),u=[c.x,c.y,c.x2,c.y2],d=u,l=M.animationDelay,h=s[0]-u[0],f=s[1]-u[1],p=s[2]-u[2],g=s[3]-u[3],b=0,w=M.swingSpeed;o=d[0],r=d[1],a=d[2],i=d[3],oe.animMode(!0);var v=function(){b+=(100-b)/w,d[0]=Math.round(o+b/100*h),d[1]=Math.round(r+b/100*f),d[2]=Math.round(a+b/100*p),d[3]=Math.round(i+b/100*g),b>=99.8&&(b=100),b<100?(m(d),n()):(oe.done(),oe.animMode(!1),"function"==typeof t&&t.call(ie))};n()}},setSelect:y,setOptions:function(e){c(e),k()},tellSelect:function(){return p(te.getFixed())},tellScaled:function(){return te.getFixed()},setClass:function(e){R.removeClass().addClass(r("holder")).addClass(e)},disable:C,enable:x,cancel:function(){oe.done(),re.activateHandlers(null,null)},release:oe.release,destroy:function(){R.remove(),D.show(),D.css("visibility","visible"),e(t).removeData("Jcrop")},focus:ae.watchKeys,getBounds:function(){return[J*G,A*N]},getWidgetSize:function(){return[J,A]},getScaleFactor:function(){return[G,N]},getOptions:function(){return M},ui:{holder:R,selection:W}};return j&&R.on("selectstart",function(){return!1}),D.data("Jcrop",ie),ie},e.fn.Jcrop=function(t,n){var o;return this.each(function(){if(e(this).data("Jcrop")){if("api"===t)return e(this).data("Jcrop");e(this).data("Jcrop").setOptions(t)}else"IMG"==this.tagName?e.Jcrop.Loader(this,function(){e(this).css({display:"block",visibility:"hidden"}),o=e.Jcrop(this,t),e.isFunction(n)&&n.call(o)}):(e(this).css({display:"block",visibility:"hidden"}),o=e.Jcrop(this,t),e.isFunction(n)&&n.call(o))}),this},e.Jcrop.Loader=function(t,n,o){var r=e(t),a=r[0];r.on("load.jcloader",function t(){a.complete?(r.off(".jcloader"),e.isFunction(n)&&n.call(a)):window.setTimeout(t,50)}).on("error.jcloader",function(t){r.off(".jcloader"),e.isFunction(o)&&o.call(a)}),a.complete&&e.isFunction(n)&&(r.off(".jcloader"),n.call(a))},e.Jcrop.defaults={allowSelect:!0,allowMove:!0,allowResize:!0,trackDocument:!0,baseClass:"jcrop",addClass:null,bgColor:"black",bgOpacity:.6,bgFade:!1,borderOpacity:.4,handleOpacity:.5,handleSize:null,aspectRatio:0,keySupport:!0,createHandles:["n","s","e","w","nw","ne","se","sw"],createDragbars:["n","s","e","w"],createBorders:["n","s","e","w"],drawBorders:!0,dragEdges:!0,fixedSupport:!0,touchSupport:null,shade:null,boxWidth:0,boxHeight:0,boundary:2,fadeTime:400,animationDelay:20,swingSpeed:3,minSelect:[0,0],maxSize:[0,0],minSize:[0,0],onChange:function(){},onSelect:function(){},onDblClick:function(){},onRelease:function(){}}}(jQuery);