wagtail 7.1.1__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 (1138) 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/generic/form.html +3 -1
  181. wagtail/admin/templates/wagtailadmin/panels/multi_field_panel_child.html +1 -1
  182. wagtail/admin/templates/wagtailadmin/panels/object_list.html +1 -1
  183. wagtail/admin/templates/wagtailadmin/panels/tabbed_interface.html +3 -2
  184. wagtail/admin/templates/wagtailadmin/shared/formatted_field.html +1 -1
  185. wagtail/admin/templates/wagtailadmin/shared/forms/single_checkbox.html +1 -1
  186. wagtail/admin/templates/wagtailadmin/shared/keyboard_shortcuts_dialog.html +19 -0
  187. wagtail/admin/templates/wagtailadmin/shared/panel.html +1 -1
  188. wagtail/admin/templates/wagtailadmin/shared/set_privacy.html +15 -0
  189. wagtail/admin/templates/wagtailadmin/shared/side_panels/checks.html +28 -1
  190. wagtail/admin/templates/wagtailadmin/shared/workflow_history/detail.html +2 -2
  191. wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_header.html → tables/ordering_header.html} +2 -2
  192. wagtail/admin/templates/wagtailadmin/tables/title_cell.html +1 -1
  193. wagtail/admin/templates/wagtailadmin/userbar/base.html +6 -3
  194. wagtail/admin/templates/wagtailadmin/userbar/item_admin.html +2 -2
  195. wagtail/admin/templates/wagtailadmin/userbar/item_page_add.html +2 -2
  196. wagtail/admin/templates/wagtailadmin/userbar/item_page_edit.html +2 -2
  197. wagtail/admin/templates/wagtailadmin/userbar/item_page_explore.html +2 -2
  198. wagtail/admin/templates/wagtailadmin/widgets/{daterange_input.html → range_input.html} +1 -1
  199. wagtail/admin/templates/wagtailadmin/workflows/task_chooser/chooser.html +4 -2
  200. wagtail/admin/templatetags/wagtailadmin_tags.py +56 -22
  201. wagtail/admin/tests/api/test_pages.py +7 -7
  202. wagtail/admin/tests/api/test_renderer_classes.py +16 -0
  203. wagtail/admin/tests/pages/test_create_page.py +42 -2
  204. wagtail/admin/tests/pages/test_edit_page.py +128 -14
  205. wagtail/admin/tests/pages/test_explorer_view.py +34 -7
  206. wagtail/admin/tests/pages/test_reorder_page.py +11 -0
  207. wagtail/admin/tests/test_collections_views.py +12 -0
  208. wagtail/admin/tests/test_edit_handlers.py +3 -3
  209. wagtail/admin/tests/test_filters.py +2 -2
  210. wagtail/admin/tests/test_keyboard_shortcuts.py +52 -2
  211. wagtail/admin/tests/test_menu.py +0 -2
  212. wagtail/admin/tests/test_privacy.py +16 -16
  213. wagtail/admin/tests/test_templatetags.py +137 -0
  214. wagtail/admin/tests/test_userbar.py +75 -35
  215. wagtail/admin/tests/test_views_generic.py +34 -0
  216. wagtail/admin/tests/test_workflows.py +34 -0
  217. wagtail/admin/tests/viewsets/test_model_viewset.py +322 -0
  218. wagtail/admin/ui/tables/orderable.py +73 -0
  219. wagtail/admin/ui/tables/pages.py +3 -13
  220. wagtail/admin/userbar.py +6 -1
  221. wagtail/admin/views/collection_privacy.py +6 -2
  222. wagtail/admin/views/generic/__init__.py +1 -0
  223. wagtail/admin/views/generic/mixins.py +20 -2
  224. wagtail/admin/views/generic/models.py +67 -1
  225. wagtail/admin/views/generic/ordering.py +79 -0
  226. wagtail/admin/views/home.py +3 -3
  227. wagtail/admin/views/page_privacy.py +5 -2
  228. wagtail/admin/views/pages/create.py +1 -1
  229. wagtail/admin/views/pages/edit.py +2 -2
  230. wagtail/admin/views/pages/listing.py +7 -42
  231. wagtail/admin/views/pages/move.py +1 -1
  232. wagtail/admin/views/pages/ordering.py +1 -1
  233. wagtail/admin/viewsets/base.py +1 -1
  234. wagtail/admin/viewsets/model.py +49 -1
  235. wagtail/admin/wagtail_hooks.py +2 -1
  236. wagtail/admin/widgets/slug.py +10 -10
  237. wagtail/api/v2/serializers.py +1 -1
  238. wagtail/api/v2/tests/test_renderer_classes.py +32 -0
  239. wagtail/apps.py +2 -0
  240. wagtail/bin/wagtail.py +1 -1
  241. wagtail/blocks/struct_block.py +2 -1
  242. wagtail/contrib/forms/locale/af/LC_MESSAGES/django.po +1 -1
  243. wagtail/contrib/forms/locale/ar/LC_MESSAGES/django.po +1 -1
  244. wagtail/contrib/forms/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  245. wagtail/contrib/forms/locale/be/LC_MESSAGES/django.po +1 -1
  246. wagtail/contrib/forms/locale/bg/LC_MESSAGES/django.po +1 -1
  247. wagtail/contrib/forms/locale/bn/LC_MESSAGES/django.po +1 -1
  248. wagtail/contrib/forms/locale/ca/LC_MESSAGES/django.po +1 -1
  249. wagtail/contrib/forms/locale/cs/LC_MESSAGES/django.po +1 -1
  250. wagtail/contrib/forms/locale/cy/LC_MESSAGES/django.po +1 -1
  251. wagtail/contrib/forms/locale/da/LC_MESSAGES/django.po +1 -1
  252. wagtail/contrib/forms/locale/de/LC_MESSAGES/django.po +1 -1
  253. wagtail/contrib/forms/locale/dv/LC_MESSAGES/django.po +1 -1
  254. wagtail/contrib/forms/locale/el/LC_MESSAGES/django.po +1 -1
  255. wagtail/contrib/forms/locale/en/LC_MESSAGES/django.po +14 -14
  256. wagtail/contrib/forms/locale/es/LC_MESSAGES/django.po +1 -1
  257. wagtail/contrib/forms/locale/es_419/LC_MESSAGES/django.po +1 -1
  258. wagtail/contrib/forms/locale/et/LC_MESSAGES/django.po +1 -1
  259. wagtail/contrib/forms/locale/eu/LC_MESSAGES/django.po +1 -1
  260. wagtail/contrib/forms/locale/fa/LC_MESSAGES/django.po +1 -1
  261. wagtail/contrib/forms/locale/fi/LC_MESSAGES/django.po +1 -1
  262. wagtail/contrib/forms/locale/fr/LC_MESSAGES/django.po +1 -1
  263. wagtail/contrib/forms/locale/gl/LC_MESSAGES/django.po +1 -1
  264. wagtail/contrib/forms/locale/he_IL/LC_MESSAGES/django.po +1 -1
  265. wagtail/contrib/forms/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  266. wagtail/contrib/forms/locale/ht/LC_MESSAGES/django.po +1 -1
  267. wagtail/contrib/forms/locale/hu/LC_MESSAGES/django.po +1 -1
  268. wagtail/contrib/forms/locale/hy/LC_MESSAGES/django.po +1 -1
  269. wagtail/contrib/forms/locale/id_ID/LC_MESSAGES/django.po +1 -1
  270. wagtail/contrib/forms/locale/is_IS/LC_MESSAGES/django.po +1 -1
  271. wagtail/contrib/forms/locale/it/LC_MESSAGES/django.po +1 -1
  272. wagtail/contrib/forms/locale/ja/LC_MESSAGES/django.po +1 -1
  273. wagtail/contrib/forms/locale/ka/LC_MESSAGES/django.po +1 -1
  274. wagtail/contrib/forms/locale/ko/LC_MESSAGES/django.po +1 -1
  275. wagtail/contrib/forms/locale/lt/LC_MESSAGES/django.po +1 -1
  276. wagtail/contrib/forms/locale/lv/LC_MESSAGES/django.po +1 -1
  277. wagtail/contrib/forms/locale/mi/LC_MESSAGES/django.po +1 -1
  278. wagtail/contrib/forms/locale/mn/LC_MESSAGES/django.po +1 -1
  279. wagtail/contrib/forms/locale/my/LC_MESSAGES/django.po +1 -1
  280. wagtail/contrib/forms/locale/nb/LC_MESSAGES/django.po +1 -1
  281. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.mo +0 -0
  282. wagtail/contrib/forms/locale/nl/LC_MESSAGES/django.po +20 -3
  283. wagtail/contrib/forms/locale/pl/LC_MESSAGES/django.po +1 -1
  284. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  285. wagtail/contrib/forms/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  286. wagtail/contrib/forms/locale/ro/LC_MESSAGES/django.po +1 -1
  287. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.mo +0 -0
  288. wagtail/contrib/forms/locale/ru/LC_MESSAGES/django.po +19 -2
  289. wagtail/contrib/forms/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  290. wagtail/contrib/forms/locale/sl/LC_MESSAGES/django.po +1 -1
  291. wagtail/contrib/forms/locale/sv/LC_MESSAGES/django.po +1 -1
  292. wagtail/contrib/forms/locale/tet/LC_MESSAGES/django.po +1 -1
  293. wagtail/contrib/forms/locale/th/LC_MESSAGES/django.po +1 -1
  294. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.mo +0 -0
  295. wagtail/contrib/forms/locale/tr/LC_MESSAGES/django.po +12 -2
  296. wagtail/contrib/forms/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  297. wagtail/contrib/forms/locale/ug/LC_MESSAGES/django.po +1 -1
  298. wagtail/contrib/forms/locale/uk/LC_MESSAGES/django.po +1 -1
  299. wagtail/contrib/forms/locale/vi/LC_MESSAGES/django.po +1 -1
  300. wagtail/contrib/forms/locale/zh/LC_MESSAGES/django.po +1 -1
  301. wagtail/contrib/forms/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  302. wagtail/contrib/forms/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  303. wagtail/contrib/frontend_cache/tests.py +4 -2
  304. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.mo +0 -0
  305. wagtail/contrib/redirects/locale/ar/LC_MESSAGES/django.po +1 -13
  306. wagtail/contrib/redirects/locale/be/LC_MESSAGES/django.po +1 -1
  307. wagtail/contrib/redirects/locale/bg/LC_MESSAGES/django.po +1 -1
  308. wagtail/contrib/redirects/locale/bn/LC_MESSAGES/django.po +1 -1
  309. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.mo +0 -0
  310. wagtail/contrib/redirects/locale/ca/LC_MESSAGES/django.po +9 -10
  311. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.mo +0 -0
  312. wagtail/contrib/redirects/locale/cs/LC_MESSAGES/django.po +1 -13
  313. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.mo +0 -0
  314. wagtail/contrib/redirects/locale/cy/LC_MESSAGES/django.po +1 -13
  315. wagtail/contrib/redirects/locale/da/LC_MESSAGES/django.po +1 -1
  316. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.mo +0 -0
  317. wagtail/contrib/redirects/locale/de/LC_MESSAGES/django.po +1 -13
  318. wagtail/contrib/redirects/locale/dv/LC_MESSAGES/django.po +1 -1
  319. wagtail/contrib/redirects/locale/el/LC_MESSAGES/django.po +1 -1
  320. wagtail/contrib/redirects/locale/en/LC_MESSAGES/django.po +4 -4
  321. wagtail/contrib/redirects/locale/en_IN/LC_MESSAGES/django.po +1 -1
  322. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.mo +0 -0
  323. wagtail/contrib/redirects/locale/es/LC_MESSAGES/django.po +1 -14
  324. wagtail/contrib/redirects/locale/es_419/LC_MESSAGES/django.po +1 -1
  325. wagtail/contrib/redirects/locale/es_VE/LC_MESSAGES/django.po +1 -1
  326. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.mo +0 -0
  327. wagtail/contrib/redirects/locale/et/LC_MESSAGES/django.po +1 -13
  328. wagtail/contrib/redirects/locale/eu/LC_MESSAGES/django.po +1 -1
  329. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.po +1 -1
  330. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.mo +0 -0
  331. wagtail/contrib/redirects/locale/fi/LC_MESSAGES/django.po +7 -11
  332. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.mo +0 -0
  333. wagtail/contrib/redirects/locale/fr/LC_MESSAGES/django.po +9 -8
  334. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.mo +0 -0
  335. wagtail/contrib/redirects/locale/gl/LC_MESSAGES/django.po +9 -9
  336. wagtail/contrib/redirects/locale/he_IL/LC_MESSAGES/django.po +1 -1
  337. wagtail/contrib/redirects/locale/hi/LC_MESSAGES/django.po +1 -1
  338. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  339. wagtail/contrib/redirects/locale/hr_HR/LC_MESSAGES/django.po +1 -13
  340. wagtail/contrib/redirects/locale/ht/LC_MESSAGES/django.po +1 -1
  341. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.mo +0 -0
  342. wagtail/contrib/redirects/locale/hu/LC_MESSAGES/django.po +1 -13
  343. wagtail/contrib/redirects/locale/hy/LC_MESSAGES/django.po +1 -1
  344. wagtail/contrib/redirects/locale/id_ID/LC_MESSAGES/django.po +1 -1
  345. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  346. wagtail/contrib/redirects/locale/is_IS/LC_MESSAGES/django.po +1 -13
  347. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.mo +0 -0
  348. wagtail/contrib/redirects/locale/it/LC_MESSAGES/django.po +1 -14
  349. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.mo +0 -0
  350. wagtail/contrib/redirects/locale/ja/LC_MESSAGES/django.po +1 -13
  351. wagtail/contrib/redirects/locale/ka/LC_MESSAGES/django.po +1 -1
  352. wagtail/contrib/redirects/locale/ko/LC_MESSAGES/django.po +1 -1
  353. wagtail/contrib/redirects/locale/lt/LC_MESSAGES/django.po +1 -1
  354. wagtail/contrib/redirects/locale/lv/LC_MESSAGES/django.po +1 -1
  355. wagtail/contrib/redirects/locale/mi/LC_MESSAGES/django.po +1 -1
  356. wagtail/contrib/redirects/locale/mn/LC_MESSAGES/django.po +1 -1
  357. wagtail/contrib/redirects/locale/my/LC_MESSAGES/django.po +1 -1
  358. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.mo +0 -0
  359. wagtail/contrib/redirects/locale/nb/LC_MESSAGES/django.po +1 -13
  360. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.mo +0 -0
  361. wagtail/contrib/redirects/locale/nl/LC_MESSAGES/django.po +9 -9
  362. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.mo +0 -0
  363. wagtail/contrib/redirects/locale/pl/LC_MESSAGES/django.po +1 -14
  364. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  365. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +1 -13
  366. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  367. wagtail/contrib/redirects/locale/pt_PT/LC_MESSAGES/django.po +1 -13
  368. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.mo +0 -0
  369. wagtail/contrib/redirects/locale/ro/LC_MESSAGES/django.po +1 -13
  370. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.mo +0 -0
  371. wagtail/contrib/redirects/locale/ru/LC_MESSAGES/django.po +1 -13
  372. wagtail/contrib/redirects/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  373. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.mo +0 -0
  374. wagtail/contrib/redirects/locale/sl/LC_MESSAGES/django.po +1 -14
  375. wagtail/contrib/redirects/locale/sr/LC_MESSAGES/django.po +1 -1
  376. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.mo +0 -0
  377. wagtail/contrib/redirects/locale/sv/LC_MESSAGES/django.po +1 -13
  378. wagtail/contrib/redirects/locale/ta/LC_MESSAGES/django.po +1 -1
  379. wagtail/contrib/redirects/locale/tet/LC_MESSAGES/django.po +1 -1
  380. wagtail/contrib/redirects/locale/th/LC_MESSAGES/django.po +1 -1
  381. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.mo +0 -0
  382. wagtail/contrib/redirects/locale/tr/LC_MESSAGES/django.po +1 -13
  383. wagtail/contrib/redirects/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  384. wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.mo +0 -0
  385. wagtail/contrib/redirects/locale/ug/LC_MESSAGES/django.po +1 -13
  386. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.mo +0 -0
  387. wagtail/contrib/redirects/locale/uk/LC_MESSAGES/django.po +1 -13
  388. wagtail/contrib/redirects/locale/vi/LC_MESSAGES/django.po +1 -1
  389. wagtail/contrib/redirects/locale/zh/LC_MESSAGES/django.po +1 -1
  390. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  391. wagtail/contrib/redirects/locale/zh_Hans/LC_MESSAGES/django.po +1 -13
  392. wagtail/contrib/redirects/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  393. wagtail/contrib/redirects/tests/test_tmp_storages.py +20 -0
  394. wagtail/contrib/redirects/tmp_storages.py +1 -1
  395. wagtail/contrib/redirects/views.py +3 -3
  396. wagtail/contrib/search_promotions/locale/af/LC_MESSAGES/django.po +1 -1
  397. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.mo +0 -0
  398. wagtail/contrib/search_promotions/locale/ar/LC_MESSAGES/django.po +1 -7
  399. wagtail/contrib/search_promotions/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  400. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.mo +0 -0
  401. wagtail/contrib/search_promotions/locale/be/LC_MESSAGES/django.po +1 -7
  402. wagtail/contrib/search_promotions/locale/bg/LC_MESSAGES/django.po +1 -1
  403. wagtail/contrib/search_promotions/locale/bn/LC_MESSAGES/django.po +1 -1
  404. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.mo +0 -0
  405. wagtail/contrib/search_promotions/locale/ca/LC_MESSAGES/django.po +5 -5
  406. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.mo +0 -0
  407. wagtail/contrib/search_promotions/locale/cs/LC_MESSAGES/django.po +1 -7
  408. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.mo +0 -0
  409. wagtail/contrib/search_promotions/locale/cy/LC_MESSAGES/django.po +1 -7
  410. wagtail/contrib/search_promotions/locale/da/LC_MESSAGES/django.po +1 -1
  411. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.mo +0 -0
  412. wagtail/contrib/search_promotions/locale/de/LC_MESSAGES/django.po +1 -7
  413. wagtail/contrib/search_promotions/locale/dv/LC_MESSAGES/django.po +1 -1
  414. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.mo +0 -0
  415. wagtail/contrib/search_promotions/locale/el/LC_MESSAGES/django.po +1 -7
  416. wagtail/contrib/search_promotions/locale/en/LC_MESSAGES/django.po +3 -3
  417. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.mo +0 -0
  418. wagtail/contrib/search_promotions/locale/es/LC_MESSAGES/django.po +1 -7
  419. wagtail/contrib/search_promotions/locale/es_419/LC_MESSAGES/django.po +1 -1
  420. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.mo +0 -0
  421. wagtail/contrib/search_promotions/locale/et/LC_MESSAGES/django.po +1 -7
  422. wagtail/contrib/search_promotions/locale/eu/LC_MESSAGES/django.po +1 -1
  423. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.mo +0 -0
  424. wagtail/contrib/search_promotions/locale/fa/LC_MESSAGES/django.po +1 -7
  425. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.mo +0 -0
  426. wagtail/contrib/search_promotions/locale/fi/LC_MESSAGES/django.po +1 -7
  427. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.mo +0 -0
  428. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +5 -5
  429. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.mo +0 -0
  430. wagtail/contrib/search_promotions/locale/gl/LC_MESSAGES/django.po +5 -5
  431. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  432. wagtail/contrib/search_promotions/locale/he_IL/LC_MESSAGES/django.po +1 -7
  433. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  434. wagtail/contrib/search_promotions/locale/hr_HR/LC_MESSAGES/django.po +1 -7
  435. wagtail/contrib/search_promotions/locale/ht/LC_MESSAGES/django.po +1 -1
  436. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.mo +0 -0
  437. wagtail/contrib/search_promotions/locale/hu/LC_MESSAGES/django.po +1 -7
  438. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  439. wagtail/contrib/search_promotions/locale/id_ID/LC_MESSAGES/django.po +1 -7
  440. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  441. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +1 -7
  442. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.mo +0 -0
  443. wagtail/contrib/search_promotions/locale/it/LC_MESSAGES/django.po +1 -7
  444. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.mo +0 -0
  445. wagtail/contrib/search_promotions/locale/ja/LC_MESSAGES/django.po +1 -7
  446. wagtail/contrib/search_promotions/locale/ka/LC_MESSAGES/django.po +1 -1
  447. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.mo +0 -0
  448. wagtail/contrib/search_promotions/locale/ko/LC_MESSAGES/django.po +1 -7
  449. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.mo +0 -0
  450. wagtail/contrib/search_promotions/locale/lt/LC_MESSAGES/django.po +1 -7
  451. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.mo +0 -0
  452. wagtail/contrib/search_promotions/locale/lv/LC_MESSAGES/django.po +1 -7
  453. wagtail/contrib/search_promotions/locale/mi/LC_MESSAGES/django.po +1 -1
  454. wagtail/contrib/search_promotions/locale/mn/LC_MESSAGES/django.po +1 -1
  455. wagtail/contrib/search_promotions/locale/my/LC_MESSAGES/django.po +1 -1
  456. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.mo +0 -0
  457. wagtail/contrib/search_promotions/locale/nb/LC_MESSAGES/django.po +1 -7
  458. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.mo +0 -0
  459. wagtail/contrib/search_promotions/locale/nl/LC_MESSAGES/django.po +4 -4
  460. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.mo +0 -0
  461. wagtail/contrib/search_promotions/locale/pl/LC_MESSAGES/django.po +1 -7
  462. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  463. wagtail/contrib/search_promotions/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  464. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  465. wagtail/contrib/search_promotions/locale/pt_PT/LC_MESSAGES/django.po +1 -7
  466. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.mo +0 -0
  467. wagtail/contrib/search_promotions/locale/ro/LC_MESSAGES/django.po +1 -7
  468. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.mo +0 -0
  469. wagtail/contrib/search_promotions/locale/ru/LC_MESSAGES/django.po +1 -7
  470. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  471. wagtail/contrib/search_promotions/locale/sk_SK/LC_MESSAGES/django.po +1 -7
  472. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.mo +0 -0
  473. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +1 -7
  474. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.mo +0 -0
  475. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.po +1 -7
  476. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.mo +0 -0
  477. wagtail/contrib/search_promotions/locale/tet/LC_MESSAGES/django.po +1 -7
  478. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.mo +0 -0
  479. wagtail/contrib/search_promotions/locale/th/LC_MESSAGES/django.po +1 -7
  480. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.mo +0 -0
  481. wagtail/contrib/search_promotions/locale/tr/LC_MESSAGES/django.po +44 -10
  482. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  483. wagtail/contrib/search_promotions/locale/tr_TR/LC_MESSAGES/django.po +1 -7
  484. wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.mo +0 -0
  485. wagtail/contrib/search_promotions/locale/ug/LC_MESSAGES/django.po +1 -7
  486. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.mo +0 -0
  487. wagtail/contrib/search_promotions/locale/uk/LC_MESSAGES/django.po +1 -7
  488. wagtail/contrib/search_promotions/locale/vi/LC_MESSAGES/django.po +1 -1
  489. wagtail/contrib/search_promotions/locale/zh/LC_MESSAGES/django.po +1 -1
  490. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  491. wagtail/contrib/search_promotions/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
  492. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  493. wagtail/contrib/search_promotions/locale/zh_Hant/LC_MESSAGES/django.po +1 -7
  494. wagtail/contrib/search_promotions/static/wagtailsearchpromotions/js/query-chooser-modal.js +1 -1
  495. wagtail/contrib/search_promotions/views/settings.py +2 -2
  496. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.mo +0 -0
  497. wagtail/contrib/settings/locale/cs/LC_MESSAGES/django.po +6 -1
  498. wagtail/contrib/settings/locale/en/LC_MESSAGES/django.po +1 -1
  499. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.mo +0 -0
  500. wagtail/contrib/settings/locale/nl/LC_MESSAGES/django.po +6 -2
  501. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.mo +0 -0
  502. wagtail/contrib/settings/locale/ru/LC_MESSAGES/django.po +6 -1
  503. wagtail/contrib/settings/tests/site_specific/test_admin.py +48 -6
  504. wagtail/contrib/simple_translation/locale/en/LC_MESSAGES/django.po +1 -1
  505. wagtail/contrib/styleguide/locale/en/LC_MESSAGES/django.po +1 -1
  506. wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html +5 -5
  507. wagtail/contrib/table_block/blocks.py +1 -0
  508. wagtail/contrib/table_block/locale/ar/LC_MESSAGES/django.po +1 -1
  509. wagtail/contrib/table_block/locale/be/LC_MESSAGES/django.po +1 -1
  510. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.mo +0 -0
  511. wagtail/contrib/table_block/locale/ca/LC_MESSAGES/django.po +6 -3
  512. wagtail/contrib/table_block/locale/cs/LC_MESSAGES/django.po +1 -1
  513. wagtail/contrib/table_block/locale/cy/LC_MESSAGES/django.po +1 -1
  514. wagtail/contrib/table_block/locale/de/LC_MESSAGES/django.po +1 -1
  515. wagtail/contrib/table_block/locale/dv/LC_MESSAGES/django.po +1 -1
  516. wagtail/contrib/table_block/locale/el/LC_MESSAGES/django.po +1 -1
  517. wagtail/contrib/table_block/locale/en/LC_MESSAGES/django.po +5 -1
  518. wagtail/contrib/table_block/locale/en_IN/LC_MESSAGES/django.po +1 -1
  519. wagtail/contrib/table_block/locale/es/LC_MESSAGES/django.po +1 -1
  520. wagtail/contrib/table_block/locale/et/LC_MESSAGES/django.po +1 -1
  521. wagtail/contrib/table_block/locale/fa/LC_MESSAGES/django.po +1 -1
  522. wagtail/contrib/table_block/locale/fi/LC_MESSAGES/django.po +1 -1
  523. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.mo +0 -0
  524. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.po +6 -3
  525. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.mo +0 -0
  526. wagtail/contrib/table_block/locale/gl/LC_MESSAGES/django.po +6 -3
  527. wagtail/contrib/table_block/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  528. wagtail/contrib/table_block/locale/ht/LC_MESSAGES/django.po +1 -1
  529. wagtail/contrib/table_block/locale/hu/LC_MESSAGES/django.po +1 -1
  530. wagtail/contrib/table_block/locale/id_ID/LC_MESSAGES/django.po +1 -1
  531. wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.po +1 -1
  532. wagtail/contrib/table_block/locale/it/LC_MESSAGES/django.po +1 -1
  533. wagtail/contrib/table_block/locale/ja/LC_MESSAGES/django.po +1 -1
  534. wagtail/contrib/table_block/locale/ko/LC_MESSAGES/django.po +1 -1
  535. wagtail/contrib/table_block/locale/lt/LC_MESSAGES/django.po +1 -1
  536. wagtail/contrib/table_block/locale/lv/LC_MESSAGES/django.po +1 -1
  537. wagtail/contrib/table_block/locale/mi/LC_MESSAGES/django.po +1 -1
  538. wagtail/contrib/table_block/locale/mn/LC_MESSAGES/django.po +1 -1
  539. wagtail/contrib/table_block/locale/my/LC_MESSAGES/django.po +1 -1
  540. wagtail/contrib/table_block/locale/nb/LC_MESSAGES/django.po +1 -1
  541. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.mo +0 -0
  542. wagtail/contrib/table_block/locale/nl/LC_MESSAGES/django.po +6 -3
  543. wagtail/contrib/table_block/locale/pl/LC_MESSAGES/django.po +1 -1
  544. wagtail/contrib/table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  545. wagtail/contrib/table_block/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  546. wagtail/contrib/table_block/locale/ro/LC_MESSAGES/django.po +1 -1
  547. wagtail/contrib/table_block/locale/ru/LC_MESSAGES/django.po +1 -1
  548. wagtail/contrib/table_block/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  549. wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.po +1 -1
  550. wagtail/contrib/table_block/locale/sv/LC_MESSAGES/django.po +1 -1
  551. wagtail/contrib/table_block/locale/tet/LC_MESSAGES/django.po +1 -1
  552. wagtail/contrib/table_block/locale/th/LC_MESSAGES/django.po +1 -1
  553. wagtail/contrib/table_block/locale/tr/LC_MESSAGES/django.po +1 -1
  554. wagtail/contrib/table_block/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  555. wagtail/contrib/table_block/locale/ug/LC_MESSAGES/django.po +1 -1
  556. wagtail/contrib/table_block/locale/uk/LC_MESSAGES/django.po +1 -1
  557. wagtail/contrib/table_block/locale/vi/LC_MESSAGES/django.po +1 -1
  558. wagtail/contrib/table_block/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  559. wagtail/contrib/table_block/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  560. wagtail/contrib/table_block/static/table_block/js/table.js +1 -1
  561. wagtail/contrib/typed_table_block/locale/en/LC_MESSAGES/django.po +1 -1
  562. wagtail/contrib/typed_table_block/static/typed_table_block/js/typed_table_block.js +1 -1
  563. wagtail/coreutils.py +5 -5
  564. wagtail/documents/forms.py +18 -1
  565. wagtail/documents/locale/af/LC_MESSAGES/django.po +1 -1
  566. wagtail/documents/locale/ar/LC_MESSAGES/django.mo +0 -0
  567. wagtail/documents/locale/ar/LC_MESSAGES/django.po +1 -5
  568. wagtail/documents/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  569. wagtail/documents/locale/be/LC_MESSAGES/django.mo +0 -0
  570. wagtail/documents/locale/be/LC_MESSAGES/django.po +1 -5
  571. wagtail/documents/locale/bg/LC_MESSAGES/django.po +1 -1
  572. wagtail/documents/locale/bn/LC_MESSAGES/django.po +1 -1
  573. wagtail/documents/locale/ca/LC_MESSAGES/django.mo +0 -0
  574. wagtail/documents/locale/ca/LC_MESSAGES/django.po +5 -5
  575. wagtail/documents/locale/cs/LC_MESSAGES/django.mo +0 -0
  576. wagtail/documents/locale/cs/LC_MESSAGES/django.po +1 -7
  577. wagtail/documents/locale/cy/LC_MESSAGES/django.po +1 -1
  578. wagtail/documents/locale/da/LC_MESSAGES/django.po +1 -1
  579. wagtail/documents/locale/de/LC_MESSAGES/django.mo +0 -0
  580. wagtail/documents/locale/de/LC_MESSAGES/django.po +1 -7
  581. wagtail/documents/locale/dv/LC_MESSAGES/django.po +1 -1
  582. wagtail/documents/locale/el/LC_MESSAGES/django.mo +0 -0
  583. wagtail/documents/locale/el/LC_MESSAGES/django.po +1 -7
  584. wagtail/documents/locale/en/LC_MESSAGES/django.po +10 -10
  585. wagtail/documents/locale/es/LC_MESSAGES/django.mo +0 -0
  586. wagtail/documents/locale/es/LC_MESSAGES/django.po +1 -7
  587. wagtail/documents/locale/es_419/LC_MESSAGES/django.po +1 -1
  588. wagtail/documents/locale/et/LC_MESSAGES/django.mo +0 -0
  589. wagtail/documents/locale/et/LC_MESSAGES/django.po +1 -5
  590. wagtail/documents/locale/eu/LC_MESSAGES/django.po +1 -1
  591. wagtail/documents/locale/fa/LC_MESSAGES/django.mo +0 -0
  592. wagtail/documents/locale/fa/LC_MESSAGES/django.po +1 -5
  593. wagtail/documents/locale/fi/LC_MESSAGES/django.mo +0 -0
  594. wagtail/documents/locale/fi/LC_MESSAGES/django.po +1 -5
  595. wagtail/documents/locale/fr/LC_MESSAGES/django.mo +0 -0
  596. wagtail/documents/locale/fr/LC_MESSAGES/django.po +5 -5
  597. wagtail/documents/locale/gl/LC_MESSAGES/django.mo +0 -0
  598. wagtail/documents/locale/gl/LC_MESSAGES/django.po +5 -5
  599. wagtail/documents/locale/he_IL/LC_MESSAGES/django.mo +0 -0
  600. wagtail/documents/locale/he_IL/LC_MESSAGES/django.po +1 -5
  601. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  602. wagtail/documents/locale/hr_HR/LC_MESSAGES/django.po +1 -6
  603. wagtail/documents/locale/ht/LC_MESSAGES/django.po +1 -1
  604. wagtail/documents/locale/hu/LC_MESSAGES/django.mo +0 -0
  605. wagtail/documents/locale/hu/LC_MESSAGES/django.po +1 -7
  606. wagtail/documents/locale/id_ID/LC_MESSAGES/django.mo +0 -0
  607. wagtail/documents/locale/id_ID/LC_MESSAGES/django.po +1 -6
  608. wagtail/documents/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  609. wagtail/documents/locale/is_IS/LC_MESSAGES/django.po +1 -5
  610. wagtail/documents/locale/it/LC_MESSAGES/django.mo +0 -0
  611. wagtail/documents/locale/it/LC_MESSAGES/django.po +1 -5
  612. wagtail/documents/locale/ja/LC_MESSAGES/django.mo +0 -0
  613. wagtail/documents/locale/ja/LC_MESSAGES/django.po +1 -7
  614. wagtail/documents/locale/ka/LC_MESSAGES/django.po +1 -1
  615. wagtail/documents/locale/ko/LC_MESSAGES/django.mo +0 -0
  616. wagtail/documents/locale/ko/LC_MESSAGES/django.po +1 -6
  617. wagtail/documents/locale/lt/LC_MESSAGES/django.mo +0 -0
  618. wagtail/documents/locale/lt/LC_MESSAGES/django.po +1 -5
  619. wagtail/documents/locale/lv/LC_MESSAGES/django.po +1 -1
  620. wagtail/documents/locale/mi/LC_MESSAGES/django.mo +0 -0
  621. wagtail/documents/locale/mi/LC_MESSAGES/django.po +1 -7
  622. wagtail/documents/locale/mn/LC_MESSAGES/django.mo +0 -0
  623. wagtail/documents/locale/mn/LC_MESSAGES/django.po +1 -5
  624. wagtail/documents/locale/my/LC_MESSAGES/django.po +1 -1
  625. wagtail/documents/locale/nb/LC_MESSAGES/django.mo +0 -0
  626. wagtail/documents/locale/nb/LC_MESSAGES/django.po +1 -5
  627. wagtail/documents/locale/nl/LC_MESSAGES/django.mo +0 -0
  628. wagtail/documents/locale/nl/LC_MESSAGES/django.po +15 -6
  629. wagtail/documents/locale/pl/LC_MESSAGES/django.mo +0 -0
  630. wagtail/documents/locale/pl/LC_MESSAGES/django.po +1 -6
  631. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  632. wagtail/documents/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  633. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  634. wagtail/documents/locale/pt_PT/LC_MESSAGES/django.po +1 -6
  635. wagtail/documents/locale/ro/LC_MESSAGES/django.mo +0 -0
  636. wagtail/documents/locale/ro/LC_MESSAGES/django.po +1 -5
  637. wagtail/documents/locale/ru/LC_MESSAGES/django.mo +0 -0
  638. wagtail/documents/locale/ru/LC_MESSAGES/django.po +10 -7
  639. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  640. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.po +1 -5
  641. wagtail/documents/locale/sl/LC_MESSAGES/django.mo +0 -0
  642. wagtail/documents/locale/sl/LC_MESSAGES/django.po +1 -7
  643. wagtail/documents/locale/sv/LC_MESSAGES/django.mo +0 -0
  644. wagtail/documents/locale/sv/LC_MESSAGES/django.po +1 -6
  645. wagtail/documents/locale/tet/LC_MESSAGES/django.po +1 -1
  646. wagtail/documents/locale/th/LC_MESSAGES/django.mo +0 -0
  647. wagtail/documents/locale/th/LC_MESSAGES/django.po +1 -5
  648. wagtail/documents/locale/tr/LC_MESSAGES/django.mo +0 -0
  649. wagtail/documents/locale/tr/LC_MESSAGES/django.po +13 -5
  650. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.mo +0 -0
  651. wagtail/documents/locale/tr_TR/LC_MESSAGES/django.po +1 -5
  652. wagtail/documents/locale/ug/LC_MESSAGES/django.mo +0 -0
  653. wagtail/documents/locale/ug/LC_MESSAGES/django.po +1 -5
  654. wagtail/documents/locale/uk/LC_MESSAGES/django.mo +0 -0
  655. wagtail/documents/locale/uk/LC_MESSAGES/django.po +1 -5
  656. wagtail/documents/locale/vi/LC_MESSAGES/django.po +1 -1
  657. wagtail/documents/locale/zh/LC_MESSAGES/django.po +1 -1
  658. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  659. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.po +1 -5
  660. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.mo +0 -0
  661. wagtail/documents/locale/zh_Hant/LC_MESSAGES/django.po +1 -5
  662. wagtail/documents/models.py +1 -1
  663. wagtail/documents/static/wagtaildocs/js/add-multiple.js +1 -1
  664. wagtail/documents/static/wagtaildocs/js/document-chooser-modal.js +1 -1
  665. wagtail/documents/static/wagtaildocs/js/document-chooser-telepath.js +1 -1
  666. wagtail/documents/static/wagtaildocs/js/document-chooser.js +1 -1
  667. wagtail/documents/templates/wagtaildocs/documents/add.html +0 -34
  668. wagtail/documents/tests/test_admin_views.py +132 -26
  669. wagtail/documents/tests/test_collection_privacy.py +18 -4
  670. wagtail/documents/tests/test_form_overrides.py +1 -1
  671. wagtail/documents/tests/test_search.py +21 -8
  672. wagtail/documents/views/documents.py +1 -1
  673. wagtail/embeds/locale/en/LC_MESSAGES/django.po +1 -1
  674. wagtail/embeds/static/wagtailembeds/js/embed-chooser-modal.js +1 -1
  675. wagtail/images/forms.py +16 -1
  676. wagtail/images/locale/ar/LC_MESSAGES/django.mo +0 -0
  677. wagtail/images/locale/ar/LC_MESSAGES/django.po +7 -10
  678. wagtail/images/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  679. wagtail/images/locale/be/LC_MESSAGES/django.po +7 -7
  680. wagtail/images/locale/bg/LC_MESSAGES/django.po +4 -4
  681. wagtail/images/locale/bn/LC_MESSAGES/django.po +1 -1
  682. wagtail/images/locale/ca/LC_MESSAGES/django.mo +0 -0
  683. wagtail/images/locale/ca/LC_MESSAGES/django.po +15 -9
  684. wagtail/images/locale/cs/LC_MESSAGES/django.mo +0 -0
  685. wagtail/images/locale/cs/LC_MESSAGES/django.po +19 -8
  686. wagtail/images/locale/cy/LC_MESSAGES/django.po +4 -4
  687. wagtail/images/locale/da/LC_MESSAGES/django.po +1 -1
  688. wagtail/images/locale/de/LC_MESSAGES/django.po +7 -7
  689. wagtail/images/locale/dv/LC_MESSAGES/django.po +7 -7
  690. wagtail/images/locale/el/LC_MESSAGES/django.po +7 -7
  691. wagtail/images/locale/en/LC_MESSAGES/django.po +57 -46
  692. wagtail/images/locale/es/LC_MESSAGES/django.po +7 -7
  693. wagtail/images/locale/es_419/LC_MESSAGES/django.po +1 -1
  694. wagtail/images/locale/et/LC_MESSAGES/django.po +7 -7
  695. wagtail/images/locale/eu/LC_MESSAGES/django.po +1 -1
  696. wagtail/images/locale/fa/LC_MESSAGES/django.po +4 -4
  697. wagtail/images/locale/fi/LC_MESSAGES/django.mo +0 -0
  698. wagtail/images/locale/fi/LC_MESSAGES/django.po +18 -9
  699. wagtail/images/locale/fr/LC_MESSAGES/django.mo +0 -0
  700. wagtail/images/locale/fr/LC_MESSAGES/django.po +15 -9
  701. wagtail/images/locale/gl/LC_MESSAGES/django.mo +0 -0
  702. wagtail/images/locale/gl/LC_MESSAGES/django.po +15 -9
  703. wagtail/images/locale/he_IL/LC_MESSAGES/django.po +4 -4
  704. wagtail/images/locale/hr_HR/LC_MESSAGES/django.po +7 -7
  705. wagtail/images/locale/ht/LC_MESSAGES/django.po +1 -1
  706. wagtail/images/locale/hu/LC_MESSAGES/django.mo +0 -0
  707. wagtail/images/locale/hu/LC_MESSAGES/django.po +7 -10
  708. wagtail/images/locale/id_ID/LC_MESSAGES/django.po +4 -4
  709. wagtail/images/locale/is_IS/LC_MESSAGES/django.po +7 -7
  710. wagtail/images/locale/it/LC_MESSAGES/django.po +7 -7
  711. wagtail/images/locale/ja/LC_MESSAGES/django.po +7 -7
  712. wagtail/images/locale/ka/LC_MESSAGES/django.po +4 -4
  713. wagtail/images/locale/ko/LC_MESSAGES/django.po +7 -7
  714. wagtail/images/locale/lt/LC_MESSAGES/django.po +7 -7
  715. wagtail/images/locale/lv/LC_MESSAGES/django.po +4 -4
  716. wagtail/images/locale/mi/LC_MESSAGES/django.po +7 -7
  717. wagtail/images/locale/mn/LC_MESSAGES/django.po +4 -4
  718. wagtail/images/locale/my/LC_MESSAGES/django.po +1 -1
  719. wagtail/images/locale/nb/LC_MESSAGES/django.po +7 -7
  720. wagtail/images/locale/nl/LC_MESSAGES/django.mo +0 -0
  721. wagtail/images/locale/nl/LC_MESSAGES/django.po +50 -21
  722. wagtail/images/locale/pl/LC_MESSAGES/django.po +7 -7
  723. wagtail/images/locale/pt_BR/LC_MESSAGES/django.po +7 -7
  724. wagtail/images/locale/pt_PT/LC_MESSAGES/django.po +7 -7
  725. wagtail/images/locale/ro/LC_MESSAGES/django.po +7 -7
  726. wagtail/images/locale/ru/LC_MESSAGES/django.mo +0 -0
  727. wagtail/images/locale/ru/LC_MESSAGES/django.po +24 -8
  728. wagtail/images/locale/sk_SK/LC_MESSAGES/django.po +4 -4
  729. wagtail/images/locale/sl/LC_MESSAGES/django.po +7 -7
  730. wagtail/images/locale/sv/LC_MESSAGES/django.po +7 -7
  731. wagtail/images/locale/tet/LC_MESSAGES/django.po +4 -4
  732. wagtail/images/locale/th/LC_MESSAGES/django.po +4 -4
  733. wagtail/images/locale/tr/LC_MESSAGES/django.mo +0 -0
  734. wagtail/images/locale/tr/LC_MESSAGES/django.po +85 -7
  735. wagtail/images/locale/tr_TR/LC_MESSAGES/django.po +4 -4
  736. wagtail/images/locale/ug/LC_MESSAGES/django.po +7 -7
  737. wagtail/images/locale/uk/LC_MESSAGES/django.po +7 -7
  738. wagtail/images/locale/vi/LC_MESSAGES/django.po +4 -4
  739. wagtail/images/locale/zh/LC_MESSAGES/django.po +4 -4
  740. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.po +7 -7
  741. wagtail/images/locale/zh_Hant/LC_MESSAGES/django.po +7 -7
  742. wagtail/images/models.py +1 -1
  743. wagtail/images/static/wagtailimages/js/add-multiple.js +1 -1
  744. wagtail/images/static/wagtailimages/js/focal-point-chooser.js +1 -1
  745. wagtail/images/static/wagtailimages/js/image-block.js +1 -1
  746. wagtail/images/static/wagtailimages/js/image-chooser-modal.js +1 -1
  747. wagtail/images/static/wagtailimages/js/image-chooser-telepath.js +1 -1
  748. wagtail/images/static/wagtailimages/js/image-chooser.js +1 -1
  749. wagtail/images/static/wagtailimages/js/image-url-generator.js +1 -1
  750. wagtail/images/static/wagtailimages/js/vendor/jquery.Jcrop.min.js +1 -1
  751. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-image.js +1 -1
  752. wagtail/images/static/wagtailimages/js/vendor/jquery.fileupload-validate.js +1 -1
  753. wagtail/images/static/wagtailimages/js/vendor/load-image.min.js +1 -1
  754. wagtail/images/templates/wagtailimages/chooser/chooser.html +22 -13
  755. wagtail/images/templates/wagtailimages/chooser/image_preview_column_cell.html +10 -0
  756. wagtail/images/templates/wagtailimages/chooser/results.html +24 -20
  757. wagtail/images/templates/wagtailimages/chooser/title_column_cell.html +15 -0
  758. wagtail/images/templates/wagtailimages/images/add.html +0 -34
  759. wagtail/images/templates/wagtailimages/images/index.html +3 -3
  760. wagtail/images/templates/wagtailimages/images/index_results.html +1 -1
  761. wagtail/images/templates/wagtailimages/images/layout_toggle_button.html +8 -7
  762. wagtail/images/templatetags/wagtailimages_tags.py +2 -2
  763. wagtail/images/tests/test_admin_views.py +87 -0
  764. wagtail/images/tests/test_form_overrides.py +1 -1
  765. wagtail/images/tests/test_models.py +48 -9
  766. wagtail/images/views/chooser.py +66 -2
  767. wagtail/locale/af/LC_MESSAGES/django.po +1 -1
  768. wagtail/locale/ar/LC_MESSAGES/django.mo +0 -0
  769. wagtail/locale/ar/LC_MESSAGES/django.po +1 -9
  770. wagtail/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  771. wagtail/locale/be/LC_MESSAGES/django.po +1 -1
  772. wagtail/locale/bg/LC_MESSAGES/django.po +1 -1
  773. wagtail/locale/bn/LC_MESSAGES/django.po +1 -1
  774. wagtail/locale/ca/LC_MESSAGES/django.mo +0 -0
  775. wagtail/locale/ca/LC_MESSAGES/django.po +4 -4
  776. wagtail/locale/cs/LC_MESSAGES/django.po +1 -1
  777. wagtail/locale/cy/LC_MESSAGES/django.po +1 -1
  778. wagtail/locale/da/LC_MESSAGES/django.po +1 -1
  779. wagtail/locale/de/LC_MESSAGES/django.mo +0 -0
  780. wagtail/locale/de/LC_MESSAGES/django.po +1 -9
  781. wagtail/locale/dv/LC_MESSAGES/django.mo +0 -0
  782. wagtail/locale/dv/LC_MESSAGES/django.po +1 -8
  783. wagtail/locale/el/LC_MESSAGES/django.po +1 -1
  784. wagtail/locale/en/LC_MESSAGES/django.po +55 -55
  785. wagtail/locale/es/LC_MESSAGES/django.po +1 -1
  786. wagtail/locale/es_419/LC_MESSAGES/django.po +1 -1
  787. wagtail/locale/et/LC_MESSAGES/django.po +1 -1
  788. wagtail/locale/eu/LC_MESSAGES/django.po +1 -1
  789. wagtail/locale/fa/LC_MESSAGES/django.po +1 -1
  790. wagtail/locale/fi/LC_MESSAGES/django.po +1 -1
  791. wagtail/locale/fr/LC_MESSAGES/django.mo +0 -0
  792. wagtail/locale/fr/LC_MESSAGES/django.po +4 -4
  793. wagtail/locale/gl/LC_MESSAGES/django.mo +0 -0
  794. wagtail/locale/gl/LC_MESSAGES/django.po +3 -3
  795. wagtail/locale/he_IL/LC_MESSAGES/django.po +1 -1
  796. wagtail/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  797. wagtail/locale/hu/LC_MESSAGES/django.mo +0 -0
  798. wagtail/locale/hu/LC_MESSAGES/django.po +1 -9
  799. wagtail/locale/id_ID/LC_MESSAGES/django.po +1 -1
  800. wagtail/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  801. wagtail/locale/is_IS/LC_MESSAGES/django.po +4 -12
  802. wagtail/locale/it/LC_MESSAGES/django.po +1 -1
  803. wagtail/locale/ja/LC_MESSAGES/django.po +1 -1
  804. wagtail/locale/ka/LC_MESSAGES/django.po +1 -1
  805. wagtail/locale/ko/LC_MESSAGES/django.po +1 -1
  806. wagtail/locale/lt/LC_MESSAGES/django.po +1 -1
  807. wagtail/locale/lv/LC_MESSAGES/django.po +1 -1
  808. wagtail/locale/mi/LC_MESSAGES/django.po +1 -1
  809. wagtail/locale/mn/LC_MESSAGES/django.po +1 -1
  810. wagtail/locale/my/LC_MESSAGES/django.po +1 -1
  811. wagtail/locale/nb/LC_MESSAGES/django.po +1 -1
  812. wagtail/locale/nl/LC_MESSAGES/django.mo +0 -0
  813. wagtail/locale/nl/LC_MESSAGES/django.po +15 -6
  814. wagtail/locale/pl/LC_MESSAGES/django.mo +0 -0
  815. wagtail/locale/pl/LC_MESSAGES/django.po +1 -9
  816. wagtail/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  817. wagtail/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  818. wagtail/locale/ro/LC_MESSAGES/django.mo +0 -0
  819. wagtail/locale/ro/LC_MESSAGES/django.po +1 -9
  820. wagtail/locale/ru/LC_MESSAGES/django.mo +0 -0
  821. wagtail/locale/ru/LC_MESSAGES/django.po +12 -10
  822. wagtail/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  823. wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
  824. wagtail/locale/sl/LC_MESSAGES/django.po +1 -9
  825. wagtail/locale/sv/LC_MESSAGES/django.mo +0 -0
  826. wagtail/locale/sv/LC_MESSAGES/django.po +1 -9
  827. wagtail/locale/tet/LC_MESSAGES/django.po +1 -1
  828. wagtail/locale/th/LC_MESSAGES/django.po +1 -1
  829. wagtail/locale/tr/LC_MESSAGES/django.mo +0 -0
  830. wagtail/locale/tr/LC_MESSAGES/django.po +4 -8
  831. wagtail/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  832. wagtail/locale/ug/LC_MESSAGES/django.mo +0 -0
  833. wagtail/locale/ug/LC_MESSAGES/django.po +1 -8
  834. wagtail/locale/uk/LC_MESSAGES/django.po +1 -1
  835. wagtail/locale/vi/LC_MESSAGES/django.po +1 -1
  836. wagtail/locale/zh/LC_MESSAGES/django.po +1 -1
  837. wagtail/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  838. wagtail/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  839. wagtail/locales/locale/en/LC_MESSAGES/django.po +1 -1
  840. wagtail/locales/locale/nl/LC_MESSAGES/django.mo +0 -0
  841. wagtail/locales/locale/nl/LC_MESSAGES/django.po +12 -1
  842. wagtail/locales/locale/ru/LC_MESSAGES/django.mo +0 -0
  843. wagtail/locales/locale/ru/LC_MESSAGES/django.po +10 -1
  844. wagtail/locales/views.py +2 -2
  845. wagtail/models/orderable.py +10 -0
  846. wagtail/models/pages.py +9 -11
  847. wagtail/models/sites.py +1 -1
  848. wagtail/models/workflows.py +8 -5
  849. wagtail/project_template/home/tests.py +6 -7
  850. wagtail/project_template/project_name/settings/base.py +9 -9
  851. wagtail/project_template/requirements.txt +1 -1
  852. wagtail/query.py +7 -2
  853. wagtail/rich_text/rewriters.py +1 -1
  854. wagtail/search/apps.py +4 -49
  855. wagtail/search/backends/__init__.py +1 -113
  856. wagtail/search/backends/base.py +1 -547
  857. wagtail/search/backends/database/__init__.py +1 -50
  858. wagtail/search/backends/database/fallback.py +1 -253
  859. wagtail/search/backends/database/mysql/mysql.py +1 -700
  860. wagtail/search/backends/database/mysql/query.py +1 -258
  861. wagtail/search/backends/database/postgres/postgres.py +1 -749
  862. wagtail/search/backends/database/postgres/query.py +1 -83
  863. wagtail/search/backends/database/postgres/weights.py +1 -63
  864. wagtail/search/backends/database/sqlite/query.py +1 -294
  865. wagtail/search/backends/database/sqlite/sqlite.py +1 -719
  866. wagtail/search/backends/database/sqlite/utils.py +1 -35
  867. wagtail/search/backends/deprecation.py +45 -0
  868. wagtail/search/backends/elasticsearch7.py +18 -1260
  869. wagtail/search/backends/elasticsearch8.py +21 -96
  870. wagtail/search/backends/elasticsearch9.py +35 -0
  871. wagtail/search/backends/opensearch2.py +35 -0
  872. wagtail/search/backends/opensearch3.py +35 -0
  873. wagtail/search/index.py +1 -358
  874. wagtail/search/locale/ar/LC_MESSAGES/django.mo +0 -0
  875. wagtail/search/locale/ar/LC_MESSAGES/django.po +1 -7
  876. wagtail/search/locale/be/LC_MESSAGES/django.mo +0 -0
  877. wagtail/search/locale/be/LC_MESSAGES/django.po +1 -7
  878. wagtail/search/locale/ca/LC_MESSAGES/django.mo +0 -0
  879. wagtail/search/locale/ca/LC_MESSAGES/django.po +1 -7
  880. wagtail/search/locale/cs/LC_MESSAGES/django.po +1 -1
  881. wagtail/search/locale/cy/LC_MESSAGES/django.mo +0 -0
  882. wagtail/search/locale/cy/LC_MESSAGES/django.po +1 -7
  883. wagtail/search/locale/de/LC_MESSAGES/django.mo +0 -0
  884. wagtail/search/locale/de/LC_MESSAGES/django.po +1 -7
  885. wagtail/search/locale/dv/LC_MESSAGES/django.mo +0 -0
  886. wagtail/search/locale/dv/LC_MESSAGES/django.po +1 -7
  887. wagtail/search/locale/en/LC_MESSAGES/django.po +2 -10
  888. wagtail/search/locale/es/LC_MESSAGES/django.mo +0 -0
  889. wagtail/search/locale/es/LC_MESSAGES/django.po +1 -7
  890. wagtail/search/locale/et/LC_MESSAGES/django.po +1 -1
  891. wagtail/search/locale/fa/LC_MESSAGES/django.po +1 -1
  892. wagtail/search/locale/fi/LC_MESSAGES/django.mo +0 -0
  893. wagtail/search/locale/fi/LC_MESSAGES/django.po +1 -7
  894. wagtail/search/locale/fr/LC_MESSAGES/django.mo +0 -0
  895. wagtail/search/locale/fr/LC_MESSAGES/django.po +1 -7
  896. wagtail/search/locale/gl/LC_MESSAGES/django.mo +0 -0
  897. wagtail/search/locale/gl/LC_MESSAGES/django.po +1 -7
  898. wagtail/search/locale/hr_HR/LC_MESSAGES/django.mo +0 -0
  899. wagtail/search/locale/hr_HR/LC_MESSAGES/django.po +1 -7
  900. wagtail/search/locale/ht/LC_MESSAGES/django.po +1 -1
  901. wagtail/search/locale/hu/LC_MESSAGES/django.mo +0 -0
  902. wagtail/search/locale/hu/LC_MESSAGES/django.po +1 -7
  903. wagtail/search/locale/id_ID/LC_MESSAGES/django.po +1 -1
  904. wagtail/search/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  905. wagtail/search/locale/is_IS/LC_MESSAGES/django.po +1 -7
  906. wagtail/search/locale/it/LC_MESSAGES/django.mo +0 -0
  907. wagtail/search/locale/it/LC_MESSAGES/django.po +1 -7
  908. wagtail/search/locale/ja/LC_MESSAGES/django.po +1 -1
  909. wagtail/search/locale/ko/LC_MESSAGES/django.mo +0 -0
  910. wagtail/search/locale/ko/LC_MESSAGES/django.po +1 -7
  911. wagtail/search/locale/lt/LC_MESSAGES/django.po +1 -1
  912. wagtail/search/locale/mi/LC_MESSAGES/django.po +1 -1
  913. wagtail/search/locale/mn/LC_MESSAGES/django.po +1 -1
  914. wagtail/search/locale/my/LC_MESSAGES/django.po +1 -1
  915. wagtail/search/locale/nb/LC_MESSAGES/django.mo +0 -0
  916. wagtail/search/locale/nb/LC_MESSAGES/django.po +1 -7
  917. wagtail/search/locale/nl/LC_MESSAGES/django.mo +0 -0
  918. wagtail/search/locale/nl/LC_MESSAGES/django.po +1 -7
  919. wagtail/search/locale/pl/LC_MESSAGES/django.mo +0 -0
  920. wagtail/search/locale/pl/LC_MESSAGES/django.po +1 -7
  921. wagtail/search/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  922. wagtail/search/locale/pt_BR/LC_MESSAGES/django.po +1 -7
  923. wagtail/search/locale/pt_PT/LC_MESSAGES/django.mo +0 -0
  924. wagtail/search/locale/pt_PT/LC_MESSAGES/django.po +1 -7
  925. wagtail/search/locale/ro/LC_MESSAGES/django.mo +0 -0
  926. wagtail/search/locale/ro/LC_MESSAGES/django.po +1 -7
  927. wagtail/search/locale/ru/LC_MESSAGES/django.mo +0 -0
  928. wagtail/search/locale/ru/LC_MESSAGES/django.po +1 -7
  929. wagtail/search/locale/sl/LC_MESSAGES/django.mo +0 -0
  930. wagtail/search/locale/sl/LC_MESSAGES/django.po +1 -7
  931. wagtail/search/locale/sv/LC_MESSAGES/django.mo +0 -0
  932. wagtail/search/locale/sv/LC_MESSAGES/django.po +1 -7
  933. wagtail/search/locale/tet/LC_MESSAGES/django.po +1 -1
  934. wagtail/search/locale/th/LC_MESSAGES/django.po +1 -1
  935. wagtail/search/locale/tr/LC_MESSAGES/django.mo +0 -0
  936. wagtail/search/locale/tr/LC_MESSAGES/django.po +1 -7
  937. wagtail/search/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  938. wagtail/search/locale/ug/LC_MESSAGES/django.mo +0 -0
  939. wagtail/search/locale/ug/LC_MESSAGES/django.po +1 -7
  940. wagtail/search/locale/uk/LC_MESSAGES/django.mo +0 -0
  941. wagtail/search/locale/uk/LC_MESSAGES/django.po +1 -7
  942. wagtail/search/locale/vi/LC_MESSAGES/django.po +1 -1
  943. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  944. wagtail/search/locale/zh_Hans/LC_MESSAGES/django.po +1 -7
  945. wagtail/search/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  946. wagtail/search/management/commands/update_index.py +1 -205
  947. wagtail/search/management/commands/wagtail_update_index.py +1 -4
  948. wagtail/search/models.py +29 -158
  949. wagtail/search/query.py +1 -114
  950. wagtail/search/queryset.py +1 -43
  951. wagtail/search/signal_handlers.py +1 -24
  952. wagtail/search/tasks.py +1 -10
  953. wagtail/search/tests/test_elasticsearch.py +22 -0
  954. wagtail/search/utils.py +1 -206
  955. wagtail/sites/locale/en/LC_MESSAGES/django.po +1 -1
  956. wagtail/snippets/locale/af/LC_MESSAGES/django.po +1 -1
  957. wagtail/snippets/locale/ar/LC_MESSAGES/django.po +1 -1
  958. wagtail/snippets/locale/az_AZ/LC_MESSAGES/django.po +1 -1
  959. wagtail/snippets/locale/be/LC_MESSAGES/django.po +1 -1
  960. wagtail/snippets/locale/bg/LC_MESSAGES/django.po +1 -1
  961. wagtail/snippets/locale/bn/LC_MESSAGES/django.po +1 -1
  962. wagtail/snippets/locale/ca/LC_MESSAGES/django.po +1 -1
  963. wagtail/snippets/locale/cs/LC_MESSAGES/django.po +1 -1
  964. wagtail/snippets/locale/cy/LC_MESSAGES/django.po +1 -1
  965. wagtail/snippets/locale/da/LC_MESSAGES/django.po +1 -1
  966. wagtail/snippets/locale/de/LC_MESSAGES/django.po +1 -1
  967. wagtail/snippets/locale/dv/LC_MESSAGES/django.po +1 -1
  968. wagtail/snippets/locale/el/LC_MESSAGES/django.po +1 -1
  969. wagtail/snippets/locale/en/LC_MESSAGES/django.po +3 -3
  970. wagtail/snippets/locale/en_IN/LC_MESSAGES/django.po +1 -1
  971. wagtail/snippets/locale/es/LC_MESSAGES/django.po +1 -1
  972. wagtail/snippets/locale/es_419/LC_MESSAGES/django.po +1 -1
  973. wagtail/snippets/locale/es_VE/LC_MESSAGES/django.po +1 -1
  974. wagtail/snippets/locale/et/LC_MESSAGES/django.po +1 -1
  975. wagtail/snippets/locale/eu/LC_MESSAGES/django.po +1 -1
  976. wagtail/snippets/locale/fa/LC_MESSAGES/django.po +1 -1
  977. wagtail/snippets/locale/fi/LC_MESSAGES/django.po +1 -1
  978. wagtail/snippets/locale/fr/LC_MESSAGES/django.po +1 -1
  979. wagtail/snippets/locale/gl/LC_MESSAGES/django.po +1 -1
  980. wagtail/snippets/locale/he_IL/LC_MESSAGES/django.po +1 -1
  981. wagtail/snippets/locale/hi/LC_MESSAGES/django.po +1 -1
  982. wagtail/snippets/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  983. wagtail/snippets/locale/ht/LC_MESSAGES/django.po +1 -1
  984. wagtail/snippets/locale/hu/LC_MESSAGES/django.po +1 -1
  985. wagtail/snippets/locale/id_ID/LC_MESSAGES/django.po +1 -1
  986. wagtail/snippets/locale/is_IS/LC_MESSAGES/django.po +1 -1
  987. wagtail/snippets/locale/it/LC_MESSAGES/django.po +1 -1
  988. wagtail/snippets/locale/ja/LC_MESSAGES/django.po +1 -1
  989. wagtail/snippets/locale/ka/LC_MESSAGES/django.po +1 -1
  990. wagtail/snippets/locale/ko/LC_MESSAGES/django.po +1 -1
  991. wagtail/snippets/locale/lt/LC_MESSAGES/django.po +1 -1
  992. wagtail/snippets/locale/lv/LC_MESSAGES/django.po +1 -1
  993. wagtail/snippets/locale/mi/LC_MESSAGES/django.po +1 -1
  994. wagtail/snippets/locale/mn/LC_MESSAGES/django.po +1 -1
  995. wagtail/snippets/locale/my/LC_MESSAGES/django.po +1 -1
  996. wagtail/snippets/locale/nb/LC_MESSAGES/django.po +1 -1
  997. wagtail/snippets/locale/nl/LC_MESSAGES/django.po +1 -1
  998. wagtail/snippets/locale/pl/LC_MESSAGES/django.po +1 -1
  999. wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1000. wagtail/snippets/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1001. wagtail/snippets/locale/ro/LC_MESSAGES/django.po +1 -1
  1002. wagtail/snippets/locale/ru/LC_MESSAGES/django.mo +0 -0
  1003. wagtail/snippets/locale/ru/LC_MESSAGES/django.po +9 -2
  1004. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1005. wagtail/snippets/locale/sl/LC_MESSAGES/django.po +1 -1
  1006. wagtail/snippets/locale/sr/LC_MESSAGES/django.po +1 -1
  1007. wagtail/snippets/locale/sv/LC_MESSAGES/django.po +1 -1
  1008. wagtail/snippets/locale/ta/LC_MESSAGES/django.po +1 -1
  1009. wagtail/snippets/locale/tet/LC_MESSAGES/django.po +1 -1
  1010. wagtail/snippets/locale/th/LC_MESSAGES/django.po +1 -1
  1011. wagtail/snippets/locale/tr/LC_MESSAGES/django.mo +0 -0
  1012. wagtail/snippets/locale/tr/LC_MESSAGES/django.po +9 -2
  1013. wagtail/snippets/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1014. wagtail/snippets/locale/ug/LC_MESSAGES/django.po +1 -1
  1015. wagtail/snippets/locale/uk/LC_MESSAGES/django.po +1 -1
  1016. wagtail/snippets/locale/vi/LC_MESSAGES/django.po +1 -1
  1017. wagtail/snippets/locale/zh/LC_MESSAGES/django.po +1 -1
  1018. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1019. wagtail/snippets/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1020. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser-telepath.js +1 -1
  1021. wagtail/snippets/static/wagtailsnippets/js/snippet-chooser.js +1 -1
  1022. wagtail/snippets/tests/test_preview.py +5 -6
  1023. wagtail/snippets/tests/test_reordering.py +319 -0
  1024. wagtail/snippets/tests/test_snippets.py +77 -12
  1025. wagtail/snippets/views/snippets.py +16 -0
  1026. wagtail/test/numberformat.py +30 -0
  1027. wagtail/test/settings.py +35 -12
  1028. wagtail/test/testapp/fields.py +12 -0
  1029. wagtail/test/testapp/migrations/0056_commentablejsonpage.py +50 -0
  1030. wagtail/test/testapp/migrations/0057_featurecompletetoy_sort_order.py +23 -0
  1031. wagtail/test/testapp/migrations/0058_customlocktask.py +31 -0
  1032. wagtail/test/testapp/models.py +27 -0
  1033. wagtail/test/testapp/urls.py +1 -0
  1034. wagtail/test/testapp/views.py +18 -2
  1035. wagtail/test/utils/page_tests.py +17 -17
  1036. wagtail/test/utils/template_tests.py +4 -6
  1037. wagtail/test/utils/wagtail_tests.py +1 -2
  1038. wagtail/tests/test_blocks.py +15 -0
  1039. wagtail/tests/test_page_model.py +15 -0
  1040. wagtail/{search/tests → tests}/test_page_search.py +29 -2
  1041. wagtail/tests/test_search_fields.py +69 -0
  1042. wagtail/tests/test_tests.py +62 -6
  1043. wagtail/tests/test_workflow.py +25 -1
  1044. wagtail/users/locale/ar/LC_MESSAGES/django.po +1 -1
  1045. wagtail/users/locale/be/LC_MESSAGES/django.po +1 -1
  1046. wagtail/users/locale/bg/LC_MESSAGES/django.po +1 -1
  1047. wagtail/users/locale/bn/LC_MESSAGES/django.po +1 -1
  1048. wagtail/users/locale/ca/LC_MESSAGES/django.po +1 -1
  1049. wagtail/users/locale/cs/LC_MESSAGES/django.mo +0 -0
  1050. wagtail/users/locale/cs/LC_MESSAGES/django.po +4 -1
  1051. wagtail/users/locale/cy/LC_MESSAGES/django.po +1 -1
  1052. wagtail/users/locale/da/LC_MESSAGES/django.po +1 -1
  1053. wagtail/users/locale/de/LC_MESSAGES/django.po +1 -1
  1054. wagtail/users/locale/dv/LC_MESSAGES/django.po +1 -1
  1055. wagtail/users/locale/el/LC_MESSAGES/django.po +1 -1
  1056. wagtail/users/locale/en/LC_MESSAGES/django.po +2 -2
  1057. wagtail/users/locale/es/LC_MESSAGES/django.po +1 -1
  1058. wagtail/users/locale/es_419/LC_MESSAGES/django.po +1 -1
  1059. wagtail/users/locale/et/LC_MESSAGES/django.po +1 -1
  1060. wagtail/users/locale/eu/LC_MESSAGES/django.po +1 -1
  1061. wagtail/users/locale/fa/LC_MESSAGES/django.po +1 -1
  1062. wagtail/users/locale/fi/LC_MESSAGES/django.mo +0 -0
  1063. wagtail/users/locale/fi/LC_MESSAGES/django.po +6 -3
  1064. wagtail/users/locale/fr/LC_MESSAGES/django.po +1 -1
  1065. wagtail/users/locale/gl/LC_MESSAGES/django.po +1 -1
  1066. wagtail/users/locale/he_IL/LC_MESSAGES/django.po +1 -1
  1067. wagtail/users/locale/hr_HR/LC_MESSAGES/django.po +1 -1
  1068. wagtail/users/locale/hu/LC_MESSAGES/django.po +1 -1
  1069. wagtail/users/locale/hy/LC_MESSAGES/django.po +1 -1
  1070. wagtail/users/locale/id_ID/LC_MESSAGES/django.po +1 -1
  1071. wagtail/users/locale/is_IS/LC_MESSAGES/django.po +1 -1
  1072. wagtail/users/locale/it/LC_MESSAGES/django.po +1 -1
  1073. wagtail/users/locale/ja/LC_MESSAGES/django.po +1 -1
  1074. wagtail/users/locale/ka/LC_MESSAGES/django.po +1 -1
  1075. wagtail/users/locale/ko/LC_MESSAGES/django.po +1 -1
  1076. wagtail/users/locale/lt/LC_MESSAGES/django.po +1 -1
  1077. wagtail/users/locale/lv/LC_MESSAGES/django.po +1 -1
  1078. wagtail/users/locale/mi/LC_MESSAGES/django.po +1 -1
  1079. wagtail/users/locale/mn/LC_MESSAGES/django.po +1 -1
  1080. wagtail/users/locale/my/LC_MESSAGES/django.po +1 -1
  1081. wagtail/users/locale/nb/LC_MESSAGES/django.po +1 -1
  1082. wagtail/users/locale/nl/LC_MESSAGES/django.mo +0 -0
  1083. wagtail/users/locale/nl/LC_MESSAGES/django.po +7 -4
  1084. wagtail/users/locale/pl/LC_MESSAGES/django.po +1 -1
  1085. wagtail/users/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  1086. wagtail/users/locale/pt_PT/LC_MESSAGES/django.po +1 -1
  1087. wagtail/users/locale/ro/LC_MESSAGES/django.po +1 -1
  1088. wagtail/users/locale/ru/LC_MESSAGES/django.mo +0 -0
  1089. wagtail/users/locale/ru/LC_MESSAGES/django.po +6 -2
  1090. wagtail/users/locale/sk_SK/LC_MESSAGES/django.po +1 -1
  1091. wagtail/users/locale/sl/LC_MESSAGES/django.po +1 -1
  1092. wagtail/users/locale/sv/LC_MESSAGES/django.po +1 -1
  1093. wagtail/users/locale/tet/LC_MESSAGES/django.po +1 -1
  1094. wagtail/users/locale/th/LC_MESSAGES/django.po +1 -1
  1095. wagtail/users/locale/tr/LC_MESSAGES/django.mo +0 -0
  1096. wagtail/users/locale/tr/LC_MESSAGES/django.po +79 -5
  1097. wagtail/users/locale/tr_TR/LC_MESSAGES/django.po +1 -1
  1098. wagtail/users/locale/ug/LC_MESSAGES/django.po +1 -1
  1099. wagtail/users/locale/uk/LC_MESSAGES/django.po +1 -1
  1100. wagtail/users/locale/vi/LC_MESSAGES/django.po +1 -1
  1101. wagtail/users/locale/zh/LC_MESSAGES/django.po +1 -1
  1102. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.po +1 -1
  1103. wagtail/users/locale/zh_Hant/LC_MESSAGES/django.po +1 -1
  1104. wagtail/users/templates/wagtailusers/users/create.html +2 -0
  1105. wagtail/users/templates/wagtailusers/users/edit.html +2 -0
  1106. wagtail/users/tests/test_admin_views.py +4 -0
  1107. wagtail/users/views/users.py +1 -1
  1108. {wagtail-7.1.1.dist-info → wagtail-7.2.dist-info}/METADATA +8 -7
  1109. {wagtail-7.1.1.dist-info → wagtail-7.2.dist-info}/RECORD +1115 -1121
  1110. wagtail/admin/templates/wagtailadmin/collection_privacy/set_privacy.html +0 -13
  1111. wagtail/admin/templates/wagtailadmin/page_privacy/set_privacy.html +0 -13
  1112. wagtail/search/tests/__init__.py +0 -0
  1113. wagtail/search/tests/elasticsearch_common_tests.py +0 -251
  1114. wagtail/search/tests/test_backends.py +0 -1215
  1115. wagtail/search/tests/test_db_backend.py +0 -62
  1116. wagtail/search/tests/test_elasticsearch7_backend.py +0 -1452
  1117. wagtail/search/tests/test_elasticsearch8_backend.py +0 -15
  1118. wagtail/search/tests/test_index_functions.py +0 -256
  1119. wagtail/search/tests/test_indexed_class.py +0 -157
  1120. wagtail/search/tests/test_mysql_backend.py +0 -192
  1121. wagtail/search/tests/test_postgres_backend.py +0 -210
  1122. wagtail/search/tests/test_queries.py +0 -332
  1123. wagtail/search/tests/test_related_fields.py +0 -102
  1124. wagtail/search/tests/test_sqlite_backend.py +0 -52
  1125. wagtail/test/search/__init__.py +0 -0
  1126. wagtail/test/search/apps.py +0 -9
  1127. wagtail/test/search/fixtures/search.json +0 -545
  1128. wagtail/test/search/migrations/0001_initial.py +0 -146
  1129. wagtail/test/search/migrations/0002_bookunindexed.py +0 -43
  1130. wagtail/test/search/migrations/0003_book_summary.py +0 -18
  1131. wagtail/test/search/migrations/__init__.py +0 -0
  1132. wagtail/test/search/models.py +0 -137
  1133. /wagtail/admin/templates/wagtailadmin/{pages/listing/_ordering_cell.html → tables/ordering_cell.html} +0 -0
  1134. /wagtail/{search/checks.py → checks.py} +0 -0
  1135. {wagtail-7.1.1.dist-info → wagtail-7.2.dist-info}/WHEEL +0 -0
  1136. {wagtail-7.1.1.dist-info → wagtail-7.2.dist-info}/entry_points.txt +0 -0
  1137. {wagtail-7.1.1.dist-info → wagtail-7.2.dist-info}/licenses/LICENSE +0 -0
  1138. {wagtail-7.1.1.dist-info → wagtail-7.2.dist-info}/top_level.txt +0 -0
@@ -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);
@@ -1 +1 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","load-image","load-image-meta","load-image-exif","load-image-ios","./jquery.fileupload-process"],e):e(window.jQuery,window.loadImage)}((function(e,i){"use strict";e.blueimp.fileupload.prototype.options.processQueue.unshift({action:"loadImageMetaData",disableImageHead:"@",disableExif:"@",disableExifThumbnail:"@",disableExifSub:"@",disableExifGps:"@",disabled:"@disableImageMetaDataLoad"},{action:"loadImage",prefix:!0,fileTypes:"@",maxFileSize:"@",noRevoke:"@",disabled:"@disableImageLoad"},{action:"resizeImage",prefix:"image",maxWidth:"@",maxHeight:"@",minWidth:"@",minHeight:"@",crop:"@",orientation:"@",forceResize:"@",disabled:"@disableImageResize"},{action:"saveImage",quality:"@imageQuality",type:"@imageType",disabled:"@disableImageResize"},{action:"saveImageMetaData",disabled:"@disableImageMetaDataSave"},{action:"resizeImage",prefix:"preview",maxWidth:"@",maxHeight:"@",minWidth:"@",minHeight:"@",crop:"@",orientation:"@",thumbnail:"@",canvas:"@",disabled:"@disableImagePreview"},{action:"setImage",name:"@imagePreviewName",disabled:"@disableImagePreview"},{action:"deleteImageReferences",disabled:"@disableImageReferencesDeletion"}),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{loadImageFileTypes:/^image\/(gif|jpeg|png|svg\+xml)$/,loadImageMaxFileSize:1e7,imageMaxWidth:1920,imageMaxHeight:1080,imageOrientation:!1,imageCrop:!1,disableImageResize:!0,previewMaxWidth:80,previewMaxHeight:80,previewOrientation:!0,previewThumbnail:!0,previewCrop:!1,previewCanvas:!0},processActions:{loadImage:function(a,t){if(t.disabled)return a;var n=this,s=a.files[a.index],r=e.Deferred();return"number"===e.type(t.maxFileSize)&&s.size>t.maxFileSize||t.fileTypes&&!t.fileTypes.test(s.type)||!i(s,(function(e){e.src&&(a.img=e),r.resolveWith(n,[a])}),t)?a:r.promise()},resizeImage:function(a,t){if(t.disabled||!a.canvas&&!a.img)return a;t=e.extend({canvas:!0},t);var n,s=this,r=e.Deferred(),d=t.canvas&&a.canvas||a.img,o=function(e){e&&(e.width!==d.width||e.height!==d.height||t.forceResize)&&(a[e.getContext?"canvas":"img"]=e),a.preview=e,r.resolveWith(s,[a])};if(a.exif){if(!0===t.orientation&&(t.orientation=a.exif.get("Orientation")),t.thumbnail&&(n=a.exif.get("Thumbnail")))return i(n,o,t),r.promise();a.orientation?delete t.orientation:a.orientation=t.orientation}return d?(o(i.scale(d,t)),r.promise()):a},saveImage:function(i,a){if(!i.canvas||a.disabled)return i;var t=this,n=i.files[i.index],s=e.Deferred();return i.canvas.toBlob?(i.canvas.toBlob((function(e){e.name||(n.type===e.type?e.name=n.name:n.name&&(e.name=n.name.replace(/\..+$/,"."+e.type.substr(6)))),n.type!==e.type&&delete i.imageHead,i.files[i.index]=e,s.resolveWith(t,[i])}),a.type||n.type,a.quality),s.promise()):i},loadImageMetaData:function(a,t){if(t.disabled)return a;var n=this,s=e.Deferred();return i.parseMetaData(a.files[a.index],(function(i){e.extend(a,i),s.resolveWith(n,[a])}),t),s.promise()},saveImageMetaData:function(e,i){if(!(e.imageHead&&e.canvas&&e.canvas.toBlob)||i.disabled)return e;var a=e.files[e.index],t=new Blob([e.imageHead,this._blobSlice.call(a,20)],{type:a.type});return t.name=a.name,e.files[e.index]=t,e},setImage:function(e,i){return e.preview&&!i.disabled&&(e.files[e.index][i.name||"preview"]=e.preview),e},deleteImageReferences:function(e,i){return i.disabled||(delete e.img,delete e.canvas,delete e.preview,delete e.imageHead),e}}})}));
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","load-image","load-image-meta","load-image-exif","load-image-ios","./jquery.fileupload-process"],e):e(window.jQuery,window.loadImage)}(function(e,i){"use strict";e.blueimp.fileupload.prototype.options.processQueue.unshift({action:"loadImageMetaData",disableImageHead:"@",disableExif:"@",disableExifThumbnail:"@",disableExifSub:"@",disableExifGps:"@",disabled:"@disableImageMetaDataLoad"},{action:"loadImage",prefix:!0,fileTypes:"@",maxFileSize:"@",noRevoke:"@",disabled:"@disableImageLoad"},{action:"resizeImage",prefix:"image",maxWidth:"@",maxHeight:"@",minWidth:"@",minHeight:"@",crop:"@",orientation:"@",forceResize:"@",disabled:"@disableImageResize"},{action:"saveImage",quality:"@imageQuality",type:"@imageType",disabled:"@disableImageResize"},{action:"saveImageMetaData",disabled:"@disableImageMetaDataSave"},{action:"resizeImage",prefix:"preview",maxWidth:"@",maxHeight:"@",minWidth:"@",minHeight:"@",crop:"@",orientation:"@",thumbnail:"@",canvas:"@",disabled:"@disableImagePreview"},{action:"setImage",name:"@imagePreviewName",disabled:"@disableImagePreview"},{action:"deleteImageReferences",disabled:"@disableImageReferencesDeletion"}),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{loadImageFileTypes:/^image\/(gif|jpeg|png|svg\+xml)$/,loadImageMaxFileSize:1e7,imageMaxWidth:1920,imageMaxHeight:1080,imageOrientation:!1,imageCrop:!1,disableImageResize:!0,previewMaxWidth:80,previewMaxHeight:80,previewOrientation:!0,previewThumbnail:!0,previewCrop:!1,previewCanvas:!0},processActions:{loadImage:function(a,t){if(t.disabled)return a;var n=this,s=a.files[a.index],r=e.Deferred();return"number"===e.type(t.maxFileSize)&&s.size>t.maxFileSize||t.fileTypes&&!t.fileTypes.test(s.type)||!i(s,function(e){e.src&&(a.img=e),r.resolveWith(n,[a])},t)?a:r.promise()},resizeImage:function(a,t){if(t.disabled||!a.canvas&&!a.img)return a;t=e.extend({canvas:!0},t);var n,s=this,r=e.Deferred(),d=t.canvas&&a.canvas||a.img,o=function(e){e&&(e.width!==d.width||e.height!==d.height||t.forceResize)&&(a[e.getContext?"canvas":"img"]=e),a.preview=e,r.resolveWith(s,[a])};if(a.exif){if(!0===t.orientation&&(t.orientation=a.exif.get("Orientation")),t.thumbnail&&(n=a.exif.get("Thumbnail")))return i(n,o,t),r.promise();a.orientation?delete t.orientation:a.orientation=t.orientation}return d?(o(i.scale(d,t)),r.promise()):a},saveImage:function(i,a){if(!i.canvas||a.disabled)return i;var t=this,n=i.files[i.index],s=e.Deferred();return i.canvas.toBlob?(i.canvas.toBlob(function(e){e.name||(n.type===e.type?e.name=n.name:n.name&&(e.name=n.name.replace(/\..+$/,"."+e.type.substr(6)))),n.type!==e.type&&delete i.imageHead,i.files[i.index]=e,s.resolveWith(t,[i])},a.type||n.type,a.quality),s.promise()):i},loadImageMetaData:function(a,t){if(t.disabled)return a;var n=this,s=e.Deferred();return i.parseMetaData(a.files[a.index],function(i){e.extend(a,i),s.resolveWith(n,[a])},t),s.promise()},saveImageMetaData:function(e,i){if(!(e.imageHead&&e.canvas&&e.canvas.toBlob)||i.disabled)return e;var a=e.files[e.index],t=new Blob([e.imageHead,this._blobSlice.call(a,20)],{type:a.type});return t.name=a.name,e.files[e.index]=t,e},setImage:function(e,i){return e.preview&&!i.disabled&&(e.files[e.index][i.name||"preview"]=e.preview),e},deleteImageReferences:function(e,i){return i.disabled||(delete e.img,delete e.canvas,delete e.preview,delete e.imageHead),e}}})});
@@ -1 +1 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload-process"],e):e(window.jQuery)}((function(e){"use strict";e.blueimp.fileupload.prototype.options.processQueue.push({action:"validate",always:!0,acceptFileTypes:"@",maxFileSize:"@",minFileSize:"@",maxNumberOfFiles:"@",disabled:"@disableValidation"}),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{getNumberOfFiles:e.noop,messages:{maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small"}},processActions:{validate:function(i,l){if(l.disabled)return i;var r,s=e.Deferred(),t=this.options,o=i.files[i.index];return(l.minFileSize||l.maxFileSize)&&(r=o.size),"number"===e.type(l.maxNumberOfFiles)&&(t.getNumberOfFiles()||0)+i.files.length>l.maxNumberOfFiles?o.error=t.i18n("maxNumberOfFiles"):!l.acceptFileTypes||l.acceptFileTypes.test(o.type)||l.acceptFileTypes.test(o.name)?r>l.maxFileSize?o.error=t.i18n("maxFileSize"):"number"===e.type(r)&&r<l.minFileSize?o.error=t.i18n("minFileSize"):delete o.error:o.error=t.i18n("acceptFileTypes"),o.error||i.files.error?(i.files.error=!0,s.rejectWith(this,[i])):s.resolveWith(this,[i]),s.promise()}}})}));
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload-process"],e):e(window.jQuery)}(function(e){"use strict";e.blueimp.fileupload.prototype.options.processQueue.push({action:"validate",always:!0,acceptFileTypes:"@",maxFileSize:"@",minFileSize:"@",maxNumberOfFiles:"@",disabled:"@disableValidation"}),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{getNumberOfFiles:e.noop,messages:{maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small"}},processActions:{validate:function(i,l){if(l.disabled)return i;var r,s=e.Deferred(),t=this.options,o=i.files[i.index];return(l.minFileSize||l.maxFileSize)&&(r=o.size),"number"===e.type(l.maxNumberOfFiles)&&(t.getNumberOfFiles()||0)+i.files.length>l.maxNumberOfFiles?o.error=t.i18n("maxNumberOfFiles"):!l.acceptFileTypes||l.acceptFileTypes.test(o.type)||l.acceptFileTypes.test(o.name)?r>l.maxFileSize?o.error=t.i18n("maxFileSize"):"number"===e.type(r)&&r<l.minFileSize?o.error=t.i18n("minFileSize"):delete o.error:o.error=t.i18n("acceptFileTypes"),o.error||i.files.error?(i.files.error=!0,s.rejectWith(this,[i])):s.resolveWith(this,[i]),s.promise()}}})});
@@ -1 +1 @@
1
- !function(e){"use strict";var t=function(e,i,a){var n,r,o=document.createElement("img");if(o.onerror=i,o.onload=function(){!r||a&&a.noRevoke||t.revokeObjectURL(r),i&&i(t.scale(o,a))},t.isInstanceOf("Blob",e)||t.isInstanceOf("File",e))n=r=t.createObjectURL(e),o._type=e.type;else{if("string"!=typeof e)return!1;n=e,a&&a.crossOrigin&&(o.crossOrigin=a.crossOrigin)}return n?(o.src=n,o):t.readFile(e,(function(e){var t=e.target;t&&t.result?o.src=t.result:i&&i(e)}))},i=window.createObjectURL&&window||window.URL&&URL.revokeObjectURL&&URL||window.webkitURL&&webkitURL;t.isInstanceOf=function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},t.transformCoordinates=function(){},t.getTransformedOptions=function(e){return e},t.renderImageToCanvas=function(e,t,i,a,n,r,o,s,d,l){return e.getContext("2d").drawImage(t,i,a,n,r,o,s,d,l),e},t.hasCanvasOption=function(e){return e.canvas||e.crop},t.scale=function(e,i){i=i||{};var a,n,r,o,s,d,l,c,u,g=document.createElement("canvas"),f=e.getContext||t.hasCanvasOption(i)&&g.getContext,h=e.naturalWidth||e.width,m=e.naturalHeight||e.height,p=h,S=m,b=function(){var e=Math.max((r||p)/p,(o||S)/S);e>1&&(p=Math.ceil(p*e),S=Math.ceil(S*e))},v=function(){var e=Math.min((a||p)/p,(n||S)/S);1>e&&(p=Math.ceil(p*e),S=Math.ceil(S*e))};return f&&(l=(i=t.getTransformedOptions(i)).left||0,c=i.top||0,i.sourceWidth?(s=i.sourceWidth,void 0!==i.right&&void 0===i.left&&(l=h-s-i.right)):s=h-l-(i.right||0),i.sourceHeight?(d=i.sourceHeight,void 0!==i.bottom&&void 0===i.top&&(c=m-d-i.bottom)):d=m-c-(i.bottom||0),p=s,S=d),a=i.maxWidth,n=i.maxHeight,r=i.minWidth,o=i.minHeight,f&&a&&n&&i.crop?(p=a,S=n,0>(u=s/d-a/n)?(d=n*s/a,void 0===i.top&&void 0===i.bottom&&(c=(m-d)/2)):u>0&&(s=a*d/n,void 0===i.left&&void 0===i.right&&(l=(h-s)/2))):((i.contain||i.cover)&&(r=a=a||r,o=n=n||o),i.cover?(v(),b()):(b(),v())),f?(g.width=p,g.height=S,t.transformCoordinates(g,i),t.renderImageToCanvas(g,e,l,c,s,d,0,0,p,S)):(e.width=p,e.height=S,e)},t.createObjectURL=function(e){return!!i&&i.createObjectURL(e)},t.revokeObjectURL=function(e){return!!i&&i.revokeObjectURL(e)},t.readFile=function(e,t,i){if(window.FileReader){var a=new FileReader;if(a.onload=a.onerror=t,a[i=i||"readAsDataURL"])return a[i](e),a}return!1},"function"==typeof define&&define.amd?define((function(){return t})):e.loadImage=t}(this),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image"],e):e(window.loadImage)}((function(e){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var t=e.renderImageToCanvas;e.detectSubsampling=function(e){var t,i;return e.width*e.height>1048576&&((t=document.createElement("canvas")).width=t.height=1,(i=t.getContext("2d")).drawImage(e,1-e.width,0),0===i.getImageData(0,0,1,1).data[3])},e.detectVerticalSquash=function(e,t){var i,a,n,r,o=e.naturalHeight||e.height,s=document.createElement("canvas"),d=s.getContext("2d");for(t&&(o/=2),s.width=1,s.height=o,d.drawImage(e,0,0),i=d.getImageData(0,0,1,o).data,a=0,n=o,r=o;r>a;)0===i[4*(r-1)+3]?n=r:a=r,r=n+a>>1;return r/o||1},e.renderImageToCanvas=function(i,a,n,r,o,s,d,l,c,u){if("image/jpeg"===a._type){var g,f,h,m,p=i.getContext("2d"),S=document.createElement("canvas"),b=1024,v=S.getContext("2d");if(S.width=b,S.height=b,p.save(),(g=e.detectSubsampling(a))&&(n/=2,r/=2,o/=2,s/=2),f=e.detectVerticalSquash(a,g),g||1!==f){for(r*=f,c=Math.ceil(b*c/o),u=Math.ceil(b*u/s/f),l=0,m=0;s>m;){for(d=0,h=0;o>h;)v.clearRect(0,0,b,b),v.drawImage(a,n,r,o,s,-h,-m,o,s),p.drawImage(S,0,0,b,b,d,l,c,u),h+=b,d+=c;m+=b,l+=u}return p.restore(),i}}return t(i,a,n,r,o,s,d,l,c,u)}}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image"],e):e(window.loadImage)}((function(e){"use strict";var t=e.hasCanvasOption;e.hasCanvasOption=function(e){return t(e)||e.orientation},e.transformCoordinates=function(e,t){var i=e.getContext("2d"),a=e.width,n=e.height,r=t.orientation;if(r)switch(r>4&&(e.width=n,e.height=a),r){case 2:i.translate(a,0),i.scale(-1,1);break;case 3:i.translate(a,n),i.rotate(Math.PI);break;case 4:i.translate(0,n),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n);break;case 7:i.rotate(.5*Math.PI),i.translate(a,-n),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-a,0)}},e.getTransformedOptions=function(e){if(!e.orientation||1===e.orientation)return e;var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);switch(e.orientation){case 2:i.left=e.right,i.right=e.left;break;case 3:i.left=e.right,i.top=e.bottom,i.right=e.left,i.bottom=e.top;break;case 4:i.top=e.bottom,i.bottom=e.top;break;case 5:i.left=e.top,i.top=e.left,i.right=e.bottom,i.bottom=e.right;break;case 6:i.left=e.top,i.top=e.right,i.right=e.bottom,i.bottom=e.left;break;case 7:i.left=e.bottom,i.top=e.right,i.right=e.top,i.bottom=e.left;break;case 8:i.left=e.bottom,i.top=e.left,i.right=e.top,i.bottom=e.right}return e.orientation>4&&(i.maxWidth=e.maxHeight,i.maxHeight=e.maxWidth,i.minWidth=e.minHeight,i.minHeight=e.minWidth,i.sourceWidth=e.sourceHeight,i.sourceHeight=e.sourceWidth),i}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image"],e):e(window.loadImage)}((function(e){"use strict";var t=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);e.blobSlice=t&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},e.metaDataParsers={jpeg:{65505:[]}},e.parseMetaData=function(t,i,a){var n=this,r=(a=a||{}).maxMetaDataSize||262144,o={};(!(window.DataView&&t&&t.size>=12&&"image/jpeg"===t.type&&e.blobSlice)||!e.readFile(e.blobSlice.call(t,0,r),(function(t){if(t.target.error)return console.log(t.target.error),void i(o);var r,s,d,l,c=t.target.result,u=new DataView(c),g=2,f=u.byteLength-4,h=g;if(65496===u.getUint16(0)){for(;f>g&&((r=u.getUint16(g))>=65504&&65519>=r||65534===r);){if(g+(s=u.getUint16(g+2)+2)>u.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if(d=e.metaDataParsers.jpeg[r])for(l=0;l<d.length;l+=1)d[l].call(n,u,g,s,o,a);h=g+=s}!a.disableImageHead&&h>6&&(o.imageHead=c.slice?c.slice(0,h):new Uint8Array(c).subarray(0,h))}else console.log("Invalid JPEG file: Missing JPEG marker.");i(o)}),"readAsArrayBuffer"))&&i(o)}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image","load-image-meta"],e):e(window.loadImage)}((function(e){"use strict";e.ExifMap=function(){return this},e.ExifMap.prototype.map={Orientation:274},e.ExifMap.prototype.get=function(e){return this[e]||this[this.map[e]]},e.getExifThumbnail=function(e,t,i){var a,n,r;if(i&&!(t+i>e.byteLength)){for(a=[],n=0;i>n;n+=1)r=e.getUint8(t+n),a.push((16>r?"0":"")+r.toString(16));return"data:image/jpeg,%"+a.join("%")}console.log("Invalid Exif data: Invalid thumbnail data.")},e.exifTagTypes={1:{getValue:function(e,t){return e.getUint8(t)},size:1},2:{getValue:function(e,t){return String.fromCharCode(e.getUint8(t))},size:1,ascii:!0},3:{getValue:function(e,t,i){return e.getUint16(t,i)},size:2},4:{getValue:function(e,t,i){return e.getUint32(t,i)},size:4},5:{getValue:function(e,t,i){return e.getUint32(t,i)/e.getUint32(t+4,i)},size:8},9:{getValue:function(e,t,i){return e.getInt32(t,i)},size:4},10:{getValue:function(e,t,i){return e.getInt32(t,i)/e.getInt32(t+4,i)},size:8}},e.exifTagTypes[7]=e.exifTagTypes[1],e.getExifValue=function(t,i,a,n,r,o){var s,d,l,c,u,g,f=e.exifTagTypes[n];if(f){if(!((d=(s=f.size*r)>4?i+t.getUint32(a+8,o):a+8)+s>t.byteLength)){if(1===r)return f.getValue(t,d,o);for(l=[],c=0;r>c;c+=1)l[c]=f.getValue(t,d+c*f.size,o);if(f.ascii){for(u="",c=0;c<l.length&&"\0"!==(g=l[c]);c+=1)u+=g;return u}return l}console.log("Invalid Exif data: Invalid data offset.")}else console.log("Invalid Exif data: Invalid tag type.")},e.parseExifTag=function(t,i,a,n,r){var o=t.getUint16(a,n);r.exif[o]=e.getExifValue(t,i,a,t.getUint16(a+2,n),t.getUint32(a+4,n),n)},e.parseExifTags=function(e,t,i,a,n){var r,o,s;if(i+6>e.byteLength)console.log("Invalid Exif data: Invalid directory offset.");else{if(!((o=i+2+12*(r=e.getUint16(i,a)))+4>e.byteLength)){for(s=0;r>s;s+=1)this.parseExifTag(e,t,i+2+12*s,a,n);return e.getUint32(o,a)}console.log("Invalid Exif data: Invalid directory size.")}},e.parseExifData=function(t,i,a,n,r){if(!r.disableExif){var o,s,d,l=i+10;if(1165519206===t.getUint32(i+4)){if(l+8>t.byteLength)return void console.log("Invalid Exif data: Invalid segment size.");if(0!==t.getUint16(i+8))return void console.log("Invalid Exif data: Missing byte alignment offset.");switch(t.getUint16(l)){case 18761:o=!0;break;case 19789:o=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==t.getUint16(l+2,o))return void console.log("Invalid Exif data: Missing TIFF marker.");s=t.getUint32(l+4,o),n.exif=new e.ExifMap,(s=e.parseExifTags(t,l,l+s,o,n))&&!r.disableExifThumbnail&&(d={exif:{}},s=e.parseExifTags(t,l,l+s,o,d),d.exif[513]&&(n.exif.Thumbnail=e.getExifThumbnail(t,l+d.exif[513],d.exif[514]))),n.exif[34665]&&!r.disableExifSub&&e.parseExifTags(t,l,l+n.exif[34665],o,n),n.exif[34853]&&!r.disableExifGps&&e.parseExifTags(t,l,l+n.exif[34853],o,n)}}},e.metaDataParsers.jpeg[65505].push(e.parseExifData)})),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image","load-image-exif"],e):e(window.loadImage)}((function(e){"use strict";e.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},e.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},e.ExifMap.prototype.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},function(e){var t,i=e.tags,a=e.map;for(t in i)i.hasOwnProperty(t)&&(a[i[t]]=t)}(e.ExifMap.prototype),e.ExifMap.prototype.getAll=function(){var e,t,i={};for(e in this)this.hasOwnProperty(e)&&(t=this.tags[e])&&(i[t]=this.getText(t));return i}}));
1
+ !function(e){"use strict";var t=function(e,i,a){var n,r,o=document.createElement("img");if(o.onerror=i,o.onload=function(){!r||a&&a.noRevoke||t.revokeObjectURL(r),i&&i(t.scale(o,a))},t.isInstanceOf("Blob",e)||t.isInstanceOf("File",e))n=r=t.createObjectURL(e),o._type=e.type;else{if("string"!=typeof e)return!1;n=e,a&&a.crossOrigin&&(o.crossOrigin=a.crossOrigin)}return n?(o.src=n,o):t.readFile(e,function(e){var t=e.target;t&&t.result?o.src=t.result:i&&i(e)})},i=window.createObjectURL&&window||window.URL&&URL.revokeObjectURL&&URL||window.webkitURL&&webkitURL;t.isInstanceOf=function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},t.transformCoordinates=function(){},t.getTransformedOptions=function(e){return e},t.renderImageToCanvas=function(e,t,i,a,n,r,o,s,d,l){return e.getContext("2d").drawImage(t,i,a,n,r,o,s,d,l),e},t.hasCanvasOption=function(e){return e.canvas||e.crop},t.scale=function(e,i){i=i||{};var a,n,r,o,s,d,l,c,u,g=document.createElement("canvas"),f=e.getContext||t.hasCanvasOption(i)&&g.getContext,h=e.naturalWidth||e.width,m=e.naturalHeight||e.height,p=h,S=m,b=function(){var e=Math.max((r||p)/p,(o||S)/S);e>1&&(p=Math.ceil(p*e),S=Math.ceil(S*e))},v=function(){var e=Math.min((a||p)/p,(n||S)/S);1>e&&(p=Math.ceil(p*e),S=Math.ceil(S*e))};return f&&(l=(i=t.getTransformedOptions(i)).left||0,c=i.top||0,i.sourceWidth?(s=i.sourceWidth,void 0!==i.right&&void 0===i.left&&(l=h-s-i.right)):s=h-l-(i.right||0),i.sourceHeight?(d=i.sourceHeight,void 0!==i.bottom&&void 0===i.top&&(c=m-d-i.bottom)):d=m-c-(i.bottom||0),p=s,S=d),a=i.maxWidth,n=i.maxHeight,r=i.minWidth,o=i.minHeight,f&&a&&n&&i.crop?(p=a,S=n,0>(u=s/d-a/n)?(d=n*s/a,void 0===i.top&&void 0===i.bottom&&(c=(m-d)/2)):u>0&&(s=a*d/n,void 0===i.left&&void 0===i.right&&(l=(h-s)/2))):((i.contain||i.cover)&&(r=a=a||r,o=n=n||o),i.cover?(v(),b()):(b(),v())),f?(g.width=p,g.height=S,t.transformCoordinates(g,i),t.renderImageToCanvas(g,e,l,c,s,d,0,0,p,S)):(e.width=p,e.height=S,e)},t.createObjectURL=function(e){return!!i&&i.createObjectURL(e)},t.revokeObjectURL=function(e){return!!i&&i.revokeObjectURL(e)},t.readFile=function(e,t,i){if(window.FileReader){var a=new FileReader;if(a.onload=a.onerror=t,a[i=i||"readAsDataURL"])return a[i](e),a}return!1},"function"==typeof define&&define.amd?define(function(){return t}):e.loadImage=t}(this),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image"],e):e(window.loadImage)}(function(e){"use strict";if(window.navigator&&window.navigator.platform&&/iP(hone|od|ad)/.test(window.navigator.platform)){var t=e.renderImageToCanvas;e.detectSubsampling=function(e){var t,i;return e.width*e.height>1048576&&((t=document.createElement("canvas")).width=t.height=1,(i=t.getContext("2d")).drawImage(e,1-e.width,0),0===i.getImageData(0,0,1,1).data[3])},e.detectVerticalSquash=function(e,t){var i,a,n,r,o=e.naturalHeight||e.height,s=document.createElement("canvas"),d=s.getContext("2d");for(t&&(o/=2),s.width=1,s.height=o,d.drawImage(e,0,0),i=d.getImageData(0,0,1,o).data,a=0,n=o,r=o;r>a;)0===i[4*(r-1)+3]?n=r:a=r,r=n+a>>1;return r/o||1},e.renderImageToCanvas=function(i,a,n,r,o,s,d,l,c,u){if("image/jpeg"===a._type){var g,f,h,m,p=i.getContext("2d"),S=document.createElement("canvas"),b=1024,v=S.getContext("2d");if(S.width=b,S.height=b,p.save(),(g=e.detectSubsampling(a))&&(n/=2,r/=2,o/=2,s/=2),f=e.detectVerticalSquash(a,g),g||1!==f){for(r*=f,c=Math.ceil(b*c/o),u=Math.ceil(b*u/s/f),l=0,m=0;s>m;){for(d=0,h=0;o>h;)v.clearRect(0,0,b,b),v.drawImage(a,n,r,o,s,-h,-m,o,s),p.drawImage(S,0,0,b,b,d,l,c,u),h+=b,d+=c;m+=b,l+=u}return p.restore(),i}}return t(i,a,n,r,o,s,d,l,c,u)}}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image"],e):e(window.loadImage)}(function(e){"use strict";var t=e.hasCanvasOption;e.hasCanvasOption=function(e){return t(e)||e.orientation},e.transformCoordinates=function(e,t){var i=e.getContext("2d"),a=e.width,n=e.height,r=t.orientation;if(r)switch(r>4&&(e.width=n,e.height=a),r){case 2:i.translate(a,0),i.scale(-1,1);break;case 3:i.translate(a,n),i.rotate(Math.PI);break;case 4:i.translate(0,n),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n);break;case 7:i.rotate(.5*Math.PI),i.translate(a,-n),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-a,0)}},e.getTransformedOptions=function(e){if(!e.orientation||1===e.orientation)return e;var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);switch(e.orientation){case 2:i.left=e.right,i.right=e.left;break;case 3:i.left=e.right,i.top=e.bottom,i.right=e.left,i.bottom=e.top;break;case 4:i.top=e.bottom,i.bottom=e.top;break;case 5:i.left=e.top,i.top=e.left,i.right=e.bottom,i.bottom=e.right;break;case 6:i.left=e.top,i.top=e.right,i.right=e.bottom,i.bottom=e.left;break;case 7:i.left=e.bottom,i.top=e.right,i.right=e.top,i.bottom=e.left;break;case 8:i.left=e.bottom,i.top=e.left,i.right=e.top,i.bottom=e.right}return e.orientation>4&&(i.maxWidth=e.maxHeight,i.maxHeight=e.maxWidth,i.minWidth=e.minHeight,i.minHeight=e.minWidth,i.sourceWidth=e.sourceHeight,i.sourceHeight=e.sourceWidth),i}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image"],e):e(window.loadImage)}(function(e){"use strict";var t=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);e.blobSlice=t&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},e.metaDataParsers={jpeg:{65505:[]}},e.parseMetaData=function(t,i,a){var n=this,r=(a=a||{}).maxMetaDataSize||262144,o={};(!(window.DataView&&t&&t.size>=12&&"image/jpeg"===t.type&&e.blobSlice)||!e.readFile(e.blobSlice.call(t,0,r),function(t){if(t.target.error)return console.log(t.target.error),void i(o);var r,s,d,l,c=t.target.result,u=new DataView(c),g=2,f=u.byteLength-4,h=g;if(65496===u.getUint16(0)){for(;f>g&&((r=u.getUint16(g))>=65504&&65519>=r||65534===r);){if(g+(s=u.getUint16(g+2)+2)>u.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if(d=e.metaDataParsers.jpeg[r])for(l=0;l<d.length;l+=1)d[l].call(n,u,g,s,o,a);h=g+=s}!a.disableImageHead&&h>6&&(o.imageHead=c.slice?c.slice(0,h):new Uint8Array(c).subarray(0,h))}else console.log("Invalid JPEG file: Missing JPEG marker.");i(o)},"readAsArrayBuffer"))&&i(o)}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image","load-image-meta"],e):e(window.loadImage)}(function(e){"use strict";e.ExifMap=function(){return this},e.ExifMap.prototype.map={Orientation:274},e.ExifMap.prototype.get=function(e){return this[e]||this[this.map[e]]},e.getExifThumbnail=function(e,t,i){var a,n,r;if(i&&!(t+i>e.byteLength)){for(a=[],n=0;i>n;n+=1)r=e.getUint8(t+n),a.push((16>r?"0":"")+r.toString(16));return"data:image/jpeg,%"+a.join("%")}console.log("Invalid Exif data: Invalid thumbnail data.")},e.exifTagTypes={1:{getValue:function(e,t){return e.getUint8(t)},size:1},2:{getValue:function(e,t){return String.fromCharCode(e.getUint8(t))},size:1,ascii:!0},3:{getValue:function(e,t,i){return e.getUint16(t,i)},size:2},4:{getValue:function(e,t,i){return e.getUint32(t,i)},size:4},5:{getValue:function(e,t,i){return e.getUint32(t,i)/e.getUint32(t+4,i)},size:8},9:{getValue:function(e,t,i){return e.getInt32(t,i)},size:4},10:{getValue:function(e,t,i){return e.getInt32(t,i)/e.getInt32(t+4,i)},size:8}},e.exifTagTypes[7]=e.exifTagTypes[1],e.getExifValue=function(t,i,a,n,r,o){var s,d,l,c,u,g,f=e.exifTagTypes[n];if(f){if(!((d=(s=f.size*r)>4?i+t.getUint32(a+8,o):a+8)+s>t.byteLength)){if(1===r)return f.getValue(t,d,o);for(l=[],c=0;r>c;c+=1)l[c]=f.getValue(t,d+c*f.size,o);if(f.ascii){for(u="",c=0;c<l.length&&"\0"!==(g=l[c]);c+=1)u+=g;return u}return l}console.log("Invalid Exif data: Invalid data offset.")}else console.log("Invalid Exif data: Invalid tag type.")},e.parseExifTag=function(t,i,a,n,r){var o=t.getUint16(a,n);r.exif[o]=e.getExifValue(t,i,a,t.getUint16(a+2,n),t.getUint32(a+4,n),n)},e.parseExifTags=function(e,t,i,a,n){var r,o,s;if(i+6>e.byteLength)console.log("Invalid Exif data: Invalid directory offset.");else{if(!((o=i+2+12*(r=e.getUint16(i,a)))+4>e.byteLength)){for(s=0;r>s;s+=1)this.parseExifTag(e,t,i+2+12*s,a,n);return e.getUint32(o,a)}console.log("Invalid Exif data: Invalid directory size.")}},e.parseExifData=function(t,i,a,n,r){if(!r.disableExif){var o,s,d,l=i+10;if(1165519206===t.getUint32(i+4)){if(l+8>t.byteLength)return void console.log("Invalid Exif data: Invalid segment size.");if(0!==t.getUint16(i+8))return void console.log("Invalid Exif data: Missing byte alignment offset.");switch(t.getUint16(l)){case 18761:o=!0;break;case 19789:o=!1;break;default:return void console.log("Invalid Exif data: Invalid byte alignment marker.")}if(42!==t.getUint16(l+2,o))return void console.log("Invalid Exif data: Missing TIFF marker.");s=t.getUint32(l+4,o),n.exif=new e.ExifMap,(s=e.parseExifTags(t,l,l+s,o,n))&&!r.disableExifThumbnail&&(d={exif:{}},s=e.parseExifTags(t,l,l+s,o,d),d.exif[513]&&(n.exif.Thumbnail=e.getExifThumbnail(t,l+d.exif[513],d.exif[514]))),n.exif[34665]&&!r.disableExifSub&&e.parseExifTags(t,l,l+n.exif[34665],o,n),n.exif[34853]&&!r.disableExifGps&&e.parseExifTags(t,l,l+n.exif[34853],o,n)}}},e.metaDataParsers.jpeg[65505].push(e.parseExifData)}),function(e){"use strict";"function"==typeof define&&define.amd?define(["load-image","load-image-exif"],e):e(window.loadImage)}(function(e){"use strict";e.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},e.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"},Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},e.ExifMap.prototype.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},function(e){var t,i=e.tags,a=e.map;for(t in i)i.hasOwnProperty(t)&&(a[i[t]]=t)}(e.ExifMap.prototype),e.ExifMap.prototype.getAll=function(){var e,t,i={};for(e in this)this.hasOwnProperty(e)&&(t=this.tags[e])&&(i[t]=this.getText(t));return i}});
@@ -3,18 +3,27 @@
3
3
 
4
4
  {% block filter_form %}
5
5
  <form data-chooser-modal-search action="{{ results_url }}" method="GET" autocomplete="off" novalidate>
6
- <ul class="fields">
7
- {% for field in filter_form %}
8
- <li>{% formattedfield field %}</li>
9
- {% endfor %}
10
- {% if popular_tags %}
11
- <li class="taglist w-label-3">
12
- <h3>{% trans 'Popular tags' %}</h3>
13
- {% for tag in popular_tags %}
14
- <a class="suggested-tag tag" href="{% url 'wagtailimages:index' %}?tag={{ tag.name|urlencode }}">{{ tag.name }}</a>
15
- {% endfor %}
16
- </li>
17
- {% endif %}
18
- </ul>
6
+ <div class="md:w-flex w-gap-8">
7
+ <ul class="fields w-grow">
8
+ {% for field in filter_form %}
9
+ <li>{% formattedfield field %}</li>
10
+ {% endfor %}
11
+ {% if popular_tags %}
12
+ <li class="taglist w-label-3">
13
+ <h3>{% trans 'Popular tags' %}</h3>
14
+ {% for tag in popular_tags %}
15
+ <a class="suggested-tag tag" href="{% url 'wagtailimages:index' %}?tag={{ tag.name|urlencode }}">{{ tag.name }}</a>
16
+ {% endfor %}
17
+ </li>
18
+ {% endif %}
19
+ </ul>
20
+ <fieldset class="w-pb-0">
21
+ <legend class="w-field__label w-mb-2">{% trans 'Layout' %}</legend>
22
+ <div id="layout-switch-control" class="w-layout-switch-control w-mb-8" data-chooser-modal-search-filter>
23
+ {% include "wagtailimages/images/layout_toggle_button.html" %}
24
+ </div>
25
+ </fieldset>
26
+ </div>
19
27
  </form>
28
+
20
29
  {% endblock %}
@@ -0,0 +1,10 @@
1
+ {% load wagtailadmin_tags %}
2
+ {% load wagtailimages_tags %}
3
+
4
+ <td {% if column.classname %}class="{{ column.classname }}"{% endif %}>
5
+ <a data-chooser-modal-choice class="image-choice--list" href="{{ instance.chosen_url }}">
6
+ <div class="image">
7
+ {% image instance max-165x165 class="show-transparency" %}
8
+ </div>
9
+ </a>
10
+ </td>
@@ -4,26 +4,30 @@
4
4
  {% block listing_title %}<h2>{% trans "Latest images" %}</h2>{% endblock %}
5
5
 
6
6
  {% block results_listing %}
7
- <ul class="listing horiz images chooser">
8
- {% for image in results %}
9
- <li>
10
- {% if is_multiple_choice %}
11
- <label title="Select {% if collections %}{{ image.collection.name }} » {% endif %}{{ image.title }}">
12
- <div class="image">{% image image max-165x165 class="show-transparency" %}</div>
13
- <h3>
14
- <input type="checkbox" data-multiple-choice-select name="id" value="{{ image.id }}" title="{% blocktrans trimmed with title=image.title %}Select {{ title }}{% endblocktrans %}">
15
- {{ image.title|ellipsistrim:60 }}
16
- </h3>
17
- </label>
18
- {% else %}
19
- <a data-chooser-modal-choice class="image-choice" title="{% if collections %}{{ image.collection.name }} » {% endif %}{{ image.title }}" href="{{ image.chosen_url }}">
20
- <div class="image">{% image image max-165x165 class="show-transparency" %}</div>
21
- <h3>{{ image.title|ellipsistrim:60 }}</h3>
22
- </a>
23
- {% endif %}
24
- </li>
25
- {% endfor %}
26
- </ul>
7
+ {% if layout == "list" %}
8
+ {% include "wagtailadmin/tables/table.html" with table_classname="listing" %}
9
+ {% else %}
10
+ <ul class="listing horiz images chooser">
11
+ {% for image in results %}
12
+ <li>
13
+ {% if is_multiple_choice %}
14
+ <label title="Select {% if collections %}{{ image.collection.name }} » {% endif %}{{ image.title }}">
15
+ <div class="image">{% image image max-165x165 class="show-transparency" %}</div>
16
+ <h3>
17
+ <input type="checkbox" data-multiple-choice-select name="id" value="{{ image.id }}" title="{% blocktrans trimmed with title=image.title %}Select {{ title }}{% endblocktrans %}">
18
+ {{ image.title|ellipsistrim:60 }}
19
+ </h3>
20
+ </label>
21
+ {% else %}
22
+ <a data-chooser-modal-choice class="image-choice" title="{% if collections %}{{ image.collection.name }} » {% endif %}{{ image.title }}" href="{{ image.chosen_url }}">
23
+ <div class="image">{% image image max-165x165 class="show-transparency" %}</div>
24
+ <h3>{{ image.title|ellipsistrim:60 }}</h3>
25
+ </a>
26
+ {% endif %}
27
+ </li>
28
+ {% endfor %}
29
+ </ul>
30
+ {% endif %}
27
31
  {% endblock %}
28
32
 
29
33
  {% block no_items_message %}
@@ -0,0 +1,15 @@
1
+ {% extends "wagtailadmin/tables/title_cell.html" %}
2
+ {% load wagtailadmin_tags %}
3
+
4
+ {% block title %}
5
+ {% if link_url %}
6
+ <a data-chooser-modal-choice href="{{ link_url }}">{{ value }}</a>
7
+ {% else %}
8
+ {{ value }}
9
+ {% endif %}
10
+ {% endblock %}
11
+ {% block extra %}
12
+ <div class="filename-wrapper">
13
+ <span>{{ instance.filename }}</span>
14
+ </div>
15
+ {% endblock %}
@@ -2,40 +2,6 @@
2
2
  {% load wagtailimages_tags wagtailadmin_tags i18n %}
3
3
  {% block titletag %}{% trans "Add an image" %}{% endblock %}
4
4
 
5
- {% block extra_js %}
6
- {{ block.super }}
7
-
8
- <script>
9
- $(function() {
10
- $('#id_file').on(
11
- 'change',
12
- function() {
13
- var $titleField = $('#id_title');
14
-
15
- // do not override a title that already exists (from manual editing or previous upload)
16
- if ($titleField.val()) return;
17
-
18
- // file widget value example: `C:\fakepath\image.jpg` - convert to just the filename part
19
- var filename = $(this).val().split('\\').slice(-1)[0];
20
- var data = { title: filename.replace(/\.[^.]+$/, '') };
21
- var maxTitleLength = parseInt($titleField.attr('maxLength') || '0', 10) || null;
22
-
23
- // allow an event handler to customise data or call event.preventDefault to stop any title pre-filling
24
- var form = $(this).closest('form').get(0);
25
- var event = form.dispatchEvent(new CustomEvent(
26
- 'wagtail:images-upload',
27
- { bubbles: true, cancelable: true, detail: { data: data, filename: filename, maxTitleLength: maxTitleLength } }
28
- ));
29
-
30
- if (!event) return; // do not set a title if event.preventDefault(); is called by handler
31
-
32
- $titleField.val(data.title);
33
- }
34
- );
35
- });
36
- </script>
37
- {% endblock %}
38
-
39
5
  {% block actions %}
40
6
  <button
41
7
  type="submit"
@@ -8,9 +8,6 @@
8
8
 
9
9
  {% block slim_header %}
10
10
  {% fragment as extra_form_fields %}
11
- <div id="layout-toggle-button">
12
- {% include "wagtailimages/images/layout_toggle_button.html" %}
13
- </div>
14
11
  {% rawformattedfield label_text=_("Sort by") id_for_label="order_images_by" sr_only_label=True %}
15
12
  <select id="order_images_by" name="ordering">
16
13
  {% for ordering, ordering_text in ORDERING_OPTIONS.items %}
@@ -18,6 +15,9 @@
18
15
  {% endfor %}
19
16
  </select>
20
17
  {% endrawformattedfield %}
18
+ <div id="layout-switch-control" class="w-layout-switch-control">
19
+ {% include "wagtailimages/images/layout_toggle_button.html" %}
20
+ </div>
21
21
  {% endfragment %}
22
22
  {% include "wagtailimages/images/image_listing_header.html" with breadcrumbs_items=breadcrumbs_items side_panels=side_panels history_url=history_url title=header_title search_url=index_results_url search_form=search_form filters=filters buttons=header_buttons icon_name=header_icon extra_form_fields=extra_form_fields only %}
23
23
  {% endblock %}
@@ -4,7 +4,7 @@
4
4
 
5
5
  {% block before_results %}
6
6
  {{ block.super }}
7
- <template data-controller="w-teleport" data-w-teleport-target-value="#layout-toggle-button" data-w-teleport-reset-value="true">
7
+ <template data-controller="w-teleport" data-w-teleport-target-value="#layout-switch-control" data-w-teleport-reset-value="true">
8
8
  {% include "wagtailimages/images/layout_toggle_button.html" %}
9
9
  </template>
10
10
  {% endblock %}