codex 1.8.0a7__py3-none-any.whl → 1.8.0a9__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.

Potentially problematic release.


This version of codex might be problematic. Click here for more details.

Files changed (447) hide show
  1. codex/librarian/bookmark/tasks.py +2 -1
  2. codex/librarian/covers/tasks.py +2 -1
  3. codex/librarian/restarter/tasks.py +3 -1
  4. codex/librarian/scribe/importer/create/link_fks.py +1 -1
  5. codex/librarian/scribe/importer/link/delete.py +1 -1
  6. codex/librarian/scribe/importer/link/many_to_many.py +1 -1
  7. codex/librarian/scribe/importer/link/prepare.py +1 -1
  8. codex/librarian/scribe/importer/query/{query_fks.py → foreign_keys.py} +2 -2
  9. codex/librarian/scribe/importer/query/update_comics.py +1 -1
  10. codex/librarian/scribe/importer/read/foreign_keys.py +1 -1
  11. codex/librarian/scribe/importer/read/many_to_many.py +1 -1
  12. codex/librarian/scribe/importer/search/update.py +1 -1
  13. codex/librarian/scribe/janitor/cleanup.py +1 -1
  14. codex/librarian/scribe/janitor/integrity.py +4 -3
  15. codex/librarian/scribe/priority.py +6 -2
  16. codex/librarian/scribe/scribed.py +1 -1
  17. codex/librarian/scribe/tasks.py +2 -1
  18. codex/librarian/status_controller.py +3 -1
  19. codex/librarian/watchdog/event_batcherd.py +1 -1
  20. codex/librarian/watchdog/handlers.py +1 -1
  21. codex/librarian/watchdog/observers.py +2 -2
  22. codex/librarian/watchdog/tasks.py +2 -1
  23. codex/models/admin.py +1 -1
  24. codex/serializers/admin/tasks.py +1 -1
  25. codex/serializers/browser/choices.py +1 -1
  26. codex/startup/__init__.py +2 -2
  27. codex/static_root/assets/{VCheckbox-DWxWEepo.1acd2cc6d629.js → VCheckbox-DJagUpbb.6a84695184fd.js} +1 -1
  28. codex/static_root/assets/VCheckbox-DJagUpbb.6a84695184fd.js.br +0 -0
  29. codex/static_root/assets/VCheckbox-DJagUpbb.6a84695184fd.js.gz +0 -0
  30. codex/static_root/assets/{VCheckbox-DWxWEepo.js → VCheckbox-DJagUpbb.js} +1 -1
  31. codex/static_root/assets/VCheckbox-DJagUpbb.js.br +0 -0
  32. codex/static_root/assets/VCheckbox-DJagUpbb.js.gz +0 -0
  33. codex/static_root/assets/{VCheckboxBtn-C_KP91Hh.a275b49a13e7.js → VCheckboxBtn-D0e96Bwj.a8761978bb0e.js} +1 -1
  34. codex/static_root/assets/VCheckboxBtn-D0e96Bwj.a8761978bb0e.js.br +0 -0
  35. codex/static_root/assets/VCheckboxBtn-D0e96Bwj.a8761978bb0e.js.gz +0 -0
  36. codex/static_root/assets/{VCheckboxBtn-C_KP91Hh.js → VCheckboxBtn-D0e96Bwj.js} +1 -1
  37. codex/static_root/assets/VCheckboxBtn-D0e96Bwj.js.br +0 -0
  38. codex/static_root/assets/VCheckboxBtn-D0e96Bwj.js.gz +0 -0
  39. codex/static_root/assets/{VCombobox-B4BO1uO9.eba6114f3e21.js → VCombobox-BN4qTcjm.dfec3a85dcb3.js} +1 -1
  40. codex/static_root/assets/VCombobox-BN4qTcjm.dfec3a85dcb3.js.br +0 -0
  41. codex/static_root/assets/VCombobox-BN4qTcjm.dfec3a85dcb3.js.gz +0 -0
  42. codex/static_root/assets/{VCombobox-B4BO1uO9.js → VCombobox-BN4qTcjm.js} +1 -1
  43. codex/static_root/assets/VCombobox-BN4qTcjm.js.br +0 -0
  44. codex/static_root/assets/VCombobox-BN4qTcjm.js.gz +0 -0
  45. codex/static_root/assets/VDialog-C-WVEJzZ.6d7d05b9c976.js +1 -0
  46. codex/static_root/assets/VDialog-C-WVEJzZ.6d7d05b9c976.js.br +0 -0
  47. codex/static_root/assets/VDialog-C-WVEJzZ.6d7d05b9c976.js.gz +0 -0
  48. codex/static_root/assets/VDialog-C-WVEJzZ.js +1 -0
  49. codex/static_root/assets/VDialog-C-WVEJzZ.js.br +0 -0
  50. codex/static_root/assets/VDialog-C-WVEJzZ.js.gz +0 -0
  51. codex/static_root/assets/{VDivider-CnxeDDcO.792921c1a4a1.js → VDivider-Bauncah3.fab6c477d84d.js} +1 -1
  52. codex/static_root/assets/VDivider-Bauncah3.fab6c477d84d.js.br +0 -0
  53. codex/static_root/assets/VDivider-Bauncah3.fab6c477d84d.js.gz +0 -0
  54. codex/static_root/assets/{VDivider-CnxeDDcO.js → VDivider-Bauncah3.js} +1 -1
  55. codex/static_root/assets/VDivider-Bauncah3.js.br +0 -0
  56. codex/static_root/assets/VDivider-Bauncah3.js.gz +0 -0
  57. codex/static_root/assets/{VExpansionPanels-6RbcaUkU.33ee286d20e7.js → VExpansionPanels-BCf0nzuL.c49dd5f1fdf2.js} +1 -1
  58. codex/static_root/assets/VExpansionPanels-BCf0nzuL.c49dd5f1fdf2.js.br +0 -0
  59. codex/static_root/assets/VExpansionPanels-BCf0nzuL.c49dd5f1fdf2.js.gz +0 -0
  60. codex/static_root/assets/{VExpansionPanels-6RbcaUkU.js → VExpansionPanels-BCf0nzuL.js} +1 -1
  61. codex/static_root/assets/VExpansionPanels-BCf0nzuL.js.br +0 -0
  62. codex/static_root/assets/VExpansionPanels-BCf0nzuL.js.gz +0 -0
  63. codex/static_root/assets/{VForm-BiZGZD6F.fb9d8426ef72.js → VForm-o_DPR4SR.23e5efe8799d.js} +1 -1
  64. codex/static_root/assets/VForm-o_DPR4SR.23e5efe8799d.js.br +0 -0
  65. codex/static_root/assets/VForm-o_DPR4SR.23e5efe8799d.js.gz +0 -0
  66. codex/static_root/assets/{VForm-BiZGZD6F.js → VForm-o_DPR4SR.js} +1 -1
  67. codex/static_root/assets/VForm-o_DPR4SR.js.br +0 -0
  68. codex/static_root/assets/VForm-o_DPR4SR.js.gz +0 -0
  69. codex/static_root/assets/{VRadioGroup-C454wUvX.689995f3ff8c.js → VRadioGroup-Df9XhLMv.c152fa483bf8.js} +1 -1
  70. codex/static_root/assets/VRadioGroup-Df9XhLMv.c152fa483bf8.js.br +0 -0
  71. codex/static_root/assets/VRadioGroup-Df9XhLMv.c152fa483bf8.js.gz +0 -0
  72. codex/static_root/assets/{VRadioGroup-C454wUvX.js → VRadioGroup-Df9XhLMv.js} +1 -1
  73. codex/static_root/assets/VRadioGroup-Df9XhLMv.js.br +0 -0
  74. codex/static_root/assets/VRadioGroup-Df9XhLMv.js.gz +0 -0
  75. codex/static_root/assets/VSelect-eWzjJ77Z.5484d79ce04a.js +1 -0
  76. codex/static_root/assets/VSelect-eWzjJ77Z.5484d79ce04a.js.br +0 -0
  77. codex/static_root/assets/VSelect-eWzjJ77Z.5484d79ce04a.js.gz +0 -0
  78. codex/static_root/assets/VSelect-eWzjJ77Z.js +1 -0
  79. codex/static_root/assets/VSelect-eWzjJ77Z.js.br +0 -0
  80. codex/static_root/assets/VSelect-eWzjJ77Z.js.gz +0 -0
  81. codex/static_root/assets/VSelectionControl-DdY-OLpS.818bd094609b.js +1 -0
  82. codex/static_root/assets/VSelectionControl-DdY-OLpS.818bd094609b.js.br +0 -0
  83. codex/static_root/assets/VSelectionControl-DdY-OLpS.818bd094609b.js.gz +0 -0
  84. codex/static_root/assets/VSelectionControl-DdY-OLpS.js +1 -0
  85. codex/static_root/assets/VSelectionControl-DdY-OLpS.js.br +0 -0
  86. codex/static_root/assets/VSelectionControl-DdY-OLpS.js.gz +0 -0
  87. codex/static_root/assets/{VTable-D0O9TP1l.851d06430ab7.js → VTable-DieJFSEd.539d225b0302.js} +1 -1
  88. codex/static_root/assets/VTable-DieJFSEd.539d225b0302.js.br +0 -0
  89. codex/static_root/assets/VTable-DieJFSEd.539d225b0302.js.gz +0 -0
  90. codex/static_root/assets/{VTable-D0O9TP1l.js → VTable-DieJFSEd.js} +1 -1
  91. codex/static_root/assets/VTable-DieJFSEd.js.br +0 -0
  92. codex/static_root/assets/VTable-DieJFSEd.js.gz +0 -0
  93. codex/static_root/assets/{VWindowItem-D1r_6PXp.b5cdd9ef6ce9.js → VWindowItem-CDyJjJOR.6f8cd0f055d7.js} +1 -1
  94. codex/static_root/assets/VWindowItem-CDyJjJOR.6f8cd0f055d7.js.br +0 -0
  95. codex/static_root/assets/VWindowItem-CDyJjJOR.6f8cd0f055d7.js.gz +0 -0
  96. codex/static_root/assets/{VWindowItem-D1r_6PXp.js → VWindowItem-CDyJjJOR.js} +1 -1
  97. codex/static_root/assets/VWindowItem-CDyJjJOR.js.br +0 -0
  98. codex/static_root/assets/VWindowItem-CDyJjJOR.js.gz +0 -0
  99. codex/static_root/assets/{admin-CfDzTfnG.ba240b5a4a40.js → admin-B3f-cKjQ.213ed1d5589e.js} +1 -1
  100. codex/static_root/assets/admin-B3f-cKjQ.213ed1d5589e.js.br +0 -0
  101. codex/static_root/assets/admin-B3f-cKjQ.213ed1d5589e.js.gz +0 -0
  102. codex/static_root/assets/{admin-CfDzTfnG.js → admin-B3f-cKjQ.js} +1 -1
  103. codex/static_root/assets/admin-B3f-cKjQ.js.br +0 -0
  104. codex/static_root/assets/admin-B3f-cKjQ.js.gz +0 -0
  105. codex/static_root/assets/{admin-B9Oz5KrR.14ab2e54fa5b.js → admin-D9tZzklx.04a20fe253bb.js} +1 -1
  106. codex/static_root/assets/admin-D9tZzklx.04a20fe253bb.js.br +0 -0
  107. codex/static_root/assets/admin-D9tZzklx.04a20fe253bb.js.gz +0 -0
  108. codex/static_root/assets/{admin-B9Oz5KrR.js → admin-D9tZzklx.js} +1 -1
  109. codex/static_root/assets/admin-D9tZzklx.js.br +0 -0
  110. codex/static_root/assets/admin-D9tZzklx.js.gz +0 -0
  111. codex/static_root/assets/{admin-menu-BTCthv5r.js → admin-menu-CVnP1_h6.2d0d1229b6df.js} +1 -1
  112. codex/static_root/assets/admin-menu-CVnP1_h6.2d0d1229b6df.js.br +0 -0
  113. codex/static_root/assets/admin-menu-CVnP1_h6.2d0d1229b6df.js.gz +0 -0
  114. codex/static_root/assets/{admin-menu-BTCthv5r.f4c60585345c.js → admin-menu-CVnP1_h6.js} +1 -1
  115. codex/static_root/assets/admin-menu-CVnP1_h6.js.br +0 -0
  116. codex/static_root/assets/admin-menu-CVnP1_h6.js.gz +0 -0
  117. codex/static_root/assets/{admin-settings-button-progress-Byb3ZZbF.c38abf7a183e.js → admin-settings-button-progress-CvhG7p5Z.a50a586218b7.js} +1 -1
  118. codex/static_root/assets/admin-settings-button-progress-CvhG7p5Z.a50a586218b7.js.br +2 -0
  119. codex/static_root/assets/admin-settings-button-progress-CvhG7p5Z.a50a586218b7.js.gz +0 -0
  120. codex/static_root/assets/{admin-settings-button-progress-Byb3ZZbF.js → admin-settings-button-progress-CvhG7p5Z.js} +1 -1
  121. codex/static_root/assets/admin-settings-button-progress-CvhG7p5Z.js.br +2 -0
  122. codex/static_root/assets/admin-settings-button-progress-CvhG7p5Z.js.gz +0 -0
  123. codex/static_root/assets/{browser-BbFRLvto.js → browser-DdPHpzxe.4d52ec8197da.js} +1 -1
  124. codex/static_root/assets/browser-DdPHpzxe.4d52ec8197da.js.br +0 -0
  125. codex/static_root/assets/browser-DdPHpzxe.4d52ec8197da.js.gz +0 -0
  126. codex/static_root/assets/{browser-BbFRLvto.2ddc78dbd6d2.js → browser-DdPHpzxe.js} +1 -1
  127. codex/static_root/assets/browser-DdPHpzxe.js.br +0 -0
  128. codex/static_root/assets/browser-DdPHpzxe.js.gz +0 -0
  129. codex/static_root/assets/{change-password-dialog-DVgKRnnC.0cae12f0ba55.js → change-password-dialog-C7kwgYBE.52ee3cd65535.js} +1 -1
  130. codex/static_root/assets/change-password-dialog-C7kwgYBE.52ee3cd65535.js.br +0 -0
  131. codex/static_root/assets/change-password-dialog-C7kwgYBE.52ee3cd65535.js.gz +0 -0
  132. codex/static_root/assets/{change-password-dialog-DVgKRnnC.js → change-password-dialog-C7kwgYBE.js} +1 -1
  133. codex/static_root/assets/change-password-dialog-C7kwgYBE.js.br +0 -0
  134. codex/static_root/assets/change-password-dialog-C7kwgYBE.js.gz +0 -0
  135. codex/static_root/assets/{confirm-dialog-CId2DpVz.7cc09b1259d5.js → confirm-dialog-BhwMx-UM.708027b0d25a.js} +1 -1
  136. codex/static_root/assets/confirm-dialog-BhwMx-UM.708027b0d25a.js.br +0 -0
  137. codex/static_root/assets/confirm-dialog-BhwMx-UM.708027b0d25a.js.gz +0 -0
  138. codex/static_root/assets/{confirm-dialog-CId2DpVz.js → confirm-dialog-BhwMx-UM.js} +1 -1
  139. codex/static_root/assets/confirm-dialog-BhwMx-UM.js.br +0 -0
  140. codex/static_root/assets/confirm-dialog-BhwMx-UM.js.gz +0 -0
  141. codex/static_root/assets/{datetime-column-80bdFW1G.8fecf1c8a4df.js → datetime-column-KAycgN-k.8fbc2a2866a3.js} +1 -1
  142. codex/static_root/assets/datetime-column-KAycgN-k.8fbc2a2866a3.js.br +0 -0
  143. codex/static_root/assets/datetime-column-KAycgN-k.8fbc2a2866a3.js.gz +0 -0
  144. codex/static_root/assets/{datetime-column-80bdFW1G.js → datetime-column-KAycgN-k.js} +1 -1
  145. codex/static_root/assets/datetime-column-KAycgN-k.js.br +0 -0
  146. codex/static_root/assets/datetime-column-KAycgN-k.js.gz +0 -0
  147. codex/static_root/assets/{filter-AqFs16gs.b81b28d3b1cd.js → filter-wPypfYV3.5eecd33a9668.js} +1 -1
  148. codex/static_root/assets/filter-wPypfYV3.5eecd33a9668.js.br +0 -0
  149. codex/static_root/assets/filter-wPypfYV3.5eecd33a9668.js.gz +0 -0
  150. codex/static_root/assets/{filter-AqFs16gs.js → filter-wPypfYV3.js} +1 -1
  151. codex/static_root/assets/filter-wPypfYV3.js.br +0 -0
  152. codex/static_root/assets/filter-wPypfYV3.js.gz +0 -0
  153. codex/static_root/assets/{flag-tab--riWEaDz.600d45990e7e.js → flag-tab-BIQg1U5A.dc3851ad1b39.js} +1 -1
  154. codex/static_root/assets/flag-tab-BIQg1U5A.dc3851ad1b39.js.br +0 -0
  155. codex/static_root/assets/flag-tab-BIQg1U5A.dc3851ad1b39.js.gz +0 -0
  156. codex/static_root/assets/{flag-tab--riWEaDz.js → flag-tab-BIQg1U5A.js} +1 -1
  157. codex/static_root/assets/flag-tab-BIQg1U5A.js.br +0 -0
  158. codex/static_root/assets/flag-tab-BIQg1U5A.js.gz +0 -0
  159. codex/static_root/assets/forwardRefs-BVVeyGTq.44a9f9204e12.js +1 -0
  160. codex/static_root/assets/forwardRefs-BVVeyGTq.44a9f9204e12.js.br +0 -0
  161. codex/static_root/assets/forwardRefs-BVVeyGTq.44a9f9204e12.js.gz +0 -0
  162. codex/static_root/assets/forwardRefs-BVVeyGTq.js +1 -0
  163. codex/static_root/assets/forwardRefs-BVVeyGTq.js.br +0 -0
  164. codex/static_root/assets/forwardRefs-BVVeyGTq.js.gz +0 -0
  165. codex/static_root/assets/{group-tab-DW2cxPzu.c484f88ea5aa.js → group-tab-DYgmy5A8.5d9eff1df161.js} +1 -1
  166. codex/static_root/assets/group-tab-DYgmy5A8.5d9eff1df161.js.br +0 -0
  167. codex/static_root/assets/group-tab-DYgmy5A8.5d9eff1df161.js.gz +0 -0
  168. codex/static_root/assets/{group-tab-DW2cxPzu.js → group-tab-DYgmy5A8.js} +1 -1
  169. codex/static_root/assets/group-tab-DYgmy5A8.js.br +0 -0
  170. codex/static_root/assets/group-tab-DYgmy5A8.js.gz +0 -0
  171. codex/static_root/assets/{http-error--HzaZjdl.a51e63e5e831.js → http-error-yMqASHiY.0d3a583c91d2.js} +1 -1
  172. codex/static_root/assets/http-error-yMqASHiY.0d3a583c91d2.js.br +0 -0
  173. codex/static_root/assets/http-error-yMqASHiY.0d3a583c91d2.js.gz +0 -0
  174. codex/static_root/assets/{http-error--HzaZjdl.js → http-error-yMqASHiY.js} +1 -1
  175. codex/static_root/assets/http-error-yMqASHiY.js.br +0 -0
  176. codex/static_root/assets/http-error-yMqASHiY.js.gz +0 -0
  177. codex/static_root/assets/{index-DkPXJI21.0d7b8f8cf7be.js → index-yiP640xd.7116f1b6010e.js} +1 -1
  178. codex/static_root/assets/index-yiP640xd.7116f1b6010e.js.br +0 -0
  179. codex/static_root/assets/index-yiP640xd.7116f1b6010e.js.gz +0 -0
  180. codex/static_root/assets/{index-DkPXJI21.js → index-yiP640xd.js} +1 -1
  181. codex/static_root/assets/index-yiP640xd.js.br +0 -0
  182. codex/static_root/assets/index-yiP640xd.js.gz +0 -0
  183. codex/static_root/assets/{library-tab-BwPXDL63.dc7f661f7bc7.js → library-tab-DYzguIVv.a9f948a4eae3.js} +1 -1
  184. codex/static_root/assets/library-tab-DYzguIVv.a9f948a4eae3.js.br +0 -0
  185. codex/static_root/assets/library-tab-DYzguIVv.a9f948a4eae3.js.gz +0 -0
  186. codex/static_root/assets/{library-tab-BwPXDL63.js → library-tab-DYzguIVv.js} +1 -1
  187. codex/static_root/assets/library-tab-DYzguIVv.js.br +0 -0
  188. codex/static_root/assets/library-tab-DYzguIVv.js.gz +0 -0
  189. codex/static_root/assets/{main-DXiGoFcV.5a499dbcbbfe.js → main-CDIGwmNp.e6b2c81fc113.js} +14 -14
  190. codex/static_root/assets/main-CDIGwmNp.e6b2c81fc113.js.br +0 -0
  191. codex/static_root/assets/main-CDIGwmNp.e6b2c81fc113.js.gz +0 -0
  192. codex/static_root/assets/{main-DXiGoFcV.js → main-CDIGwmNp.js} +14 -14
  193. codex/static_root/assets/main-CDIGwmNp.js.br +0 -0
  194. codex/static_root/assets/main-CDIGwmNp.js.gz +0 -0
  195. codex/static_root/assets/pager-full-pdf-RETOMqUJ.7c84e64f58a2.js +1 -0
  196. codex/static_root/assets/pager-full-pdf-RETOMqUJ.7c84e64f58a2.js.br +0 -0
  197. codex/static_root/assets/pager-full-pdf-RETOMqUJ.7c84e64f58a2.js.gz +0 -0
  198. codex/static_root/assets/pager-full-pdf-RETOMqUJ.js +1 -0
  199. codex/static_root/assets/pager-full-pdf-RETOMqUJ.js.br +0 -0
  200. codex/static_root/assets/pager-full-pdf-RETOMqUJ.js.gz +0 -0
  201. codex/static_root/assets/{pagination-toolbar-gxf2sShG.4c0846bf3224.js → pagination-toolbar-CrE6RasO.ae70a774c94a.js} +1 -1
  202. codex/static_root/assets/pagination-toolbar-CrE6RasO.ae70a774c94a.js.br +0 -0
  203. codex/static_root/assets/pagination-toolbar-CrE6RasO.ae70a774c94a.js.gz +0 -0
  204. codex/static_root/assets/{pagination-toolbar-gxf2sShG.js → pagination-toolbar-CrE6RasO.js} +1 -1
  205. codex/static_root/assets/pagination-toolbar-CrE6RasO.js.br +0 -0
  206. codex/static_root/assets/pagination-toolbar-CrE6RasO.js.gz +0 -0
  207. codex/static_root/assets/{pdf-doc-BKIb3c50.71a27ab500e3.js → pdf-doc-BWBKYFoc.29ece2adcfa8.js} +1 -1
  208. codex/static_root/assets/pdf-doc-BWBKYFoc.29ece2adcfa8.js.br +0 -0
  209. codex/static_root/assets/pdf-doc-BWBKYFoc.29ece2adcfa8.js.gz +0 -0
  210. codex/static_root/assets/{pdf-doc-BKIb3c50.js → pdf-doc-BWBKYFoc.js} +1 -1
  211. codex/static_root/assets/pdf-doc-BWBKYFoc.js.br +0 -0
  212. codex/static_root/assets/pdf-doc-BWBKYFoc.js.gz +0 -0
  213. codex/static_root/assets/{reader-DN0gXesY.js → reader-UDfN-rBG.84acd342e7a5.js} +2 -2
  214. codex/static_root/assets/reader-UDfN-rBG.84acd342e7a5.js.br +0 -0
  215. codex/static_root/assets/reader-UDfN-rBG.84acd342e7a5.js.gz +0 -0
  216. codex/static_root/assets/{reader-DN0gXesY.a8decf766e54.js → reader-UDfN-rBG.js} +2 -2
  217. codex/static_root/assets/reader-UDfN-rBG.js.br +0 -0
  218. codex/static_root/assets/reader-UDfN-rBG.js.gz +0 -0
  219. codex/static_root/assets/relation-chips-YLZbngpL.bcb11cb9e1d7.js +1 -0
  220. codex/static_root/assets/relation-chips-YLZbngpL.bcb11cb9e1d7.js.br +0 -0
  221. codex/static_root/assets/relation-chips-YLZbngpL.bcb11cb9e1d7.js.gz +0 -0
  222. codex/static_root/assets/relation-chips-YLZbngpL.js +1 -0
  223. codex/static_root/assets/relation-chips-YLZbngpL.js.br +0 -0
  224. codex/static_root/assets/relation-chips-YLZbngpL.js.gz +0 -0
  225. codex/static_root/assets/{settings-drawer-BBM7vyXE.js → settings-drawer-BBhjYtn3.51ce89fc3136.js} +2 -2
  226. codex/static_root/assets/settings-drawer-BBhjYtn3.51ce89fc3136.js.br +0 -0
  227. codex/static_root/assets/settings-drawer-BBhjYtn3.51ce89fc3136.js.gz +0 -0
  228. codex/static_root/assets/{settings-drawer-BBM7vyXE.b3a49d6d6f4c.js → settings-drawer-BBhjYtn3.js} +2 -2
  229. codex/static_root/assets/settings-drawer-BBhjYtn3.js.br +0 -0
  230. codex/static_root/assets/settings-drawer-BBhjYtn3.js.gz +0 -0
  231. codex/static_root/assets/{ssrBoot-Bz995UNv.88843c6b5c94.js → ssrBoot-CvwZSuVh.e9499022a758.js} +1 -1
  232. codex/static_root/assets/ssrBoot-CvwZSuVh.e9499022a758.js.br +0 -0
  233. codex/static_root/assets/ssrBoot-CvwZSuVh.e9499022a758.js.gz +0 -0
  234. codex/static_root/assets/{ssrBoot-Bz995UNv.js → ssrBoot-CvwZSuVh.js} +1 -1
  235. codex/static_root/assets/ssrBoot-CvwZSuVh.js.br +0 -0
  236. codex/static_root/assets/ssrBoot-CvwZSuVh.js.gz +0 -0
  237. codex/static_root/assets/{stats-tab-D0ysKA-O.22ade1f1c862.js → stats-tab-DwrCOGvj.e5388a822da3.js} +1 -1
  238. codex/static_root/assets/stats-tab-DwrCOGvj.e5388a822da3.js.br +0 -0
  239. codex/static_root/assets/stats-tab-DwrCOGvj.e5388a822da3.js.gz +0 -0
  240. codex/static_root/assets/{stats-tab-D0ysKA-O.js → stats-tab-DwrCOGvj.js} +1 -1
  241. codex/static_root/assets/stats-tab-DwrCOGvj.js.br +0 -0
  242. codex/static_root/assets/stats-tab-DwrCOGvj.js.gz +0 -0
  243. codex/static_root/assets/{task-tab-K3T_nwIk.1189081e1886.js → task-tab-Cao7lL55.1789be782741.js} +1 -1
  244. codex/static_root/assets/task-tab-Cao7lL55.1789be782741.js.br +0 -0
  245. codex/static_root/assets/task-tab-Cao7lL55.1789be782741.js.gz +0 -0
  246. codex/static_root/assets/{task-tab-K3T_nwIk.js → task-tab-Cao7lL55.js} +1 -1
  247. codex/static_root/assets/task-tab-Cao7lL55.js.br +0 -0
  248. codex/static_root/assets/task-tab-Cao7lL55.js.gz +0 -0
  249. codex/static_root/assets/{unauthorized-C9hDLcp6.6397ed699c7c.js → unauthorized-CQMd2z1i.5ae4823bb4a1.js} +1 -1
  250. codex/static_root/assets/unauthorized-CQMd2z1i.5ae4823bb4a1.js.br +0 -0
  251. codex/static_root/assets/unauthorized-CQMd2z1i.5ae4823bb4a1.js.gz +0 -0
  252. codex/static_root/assets/{unauthorized-C9hDLcp6.js → unauthorized-CQMd2z1i.js} +1 -1
  253. codex/static_root/assets/unauthorized-CQMd2z1i.js.br +0 -0
  254. codex/static_root/assets/unauthorized-CQMd2z1i.js.gz +0 -0
  255. codex/static_root/assets/{user-tab-DpQuTwTk.c3b440ac6074.js → user-tab-BncpHHPt.50a6d126fde2.js} +1 -1
  256. codex/static_root/assets/user-tab-BncpHHPt.50a6d126fde2.js.br +0 -0
  257. codex/static_root/assets/user-tab-BncpHHPt.50a6d126fde2.js.gz +0 -0
  258. codex/static_root/assets/{user-tab-DpQuTwTk.js → user-tab-BncpHHPt.js} +1 -1
  259. codex/static_root/assets/user-tab-BncpHHPt.js.br +0 -0
  260. codex/static_root/assets/user-tab-BncpHHPt.js.gz +0 -0
  261. codex/static_root/{manifest.b16c282e2ba4.json → manifest.c7f31be2c75e.json} +301 -301
  262. codex/static_root/manifest.c7f31be2c75e.json.br +0 -0
  263. codex/static_root/manifest.c7f31be2c75e.json.gz +0 -0
  264. codex/static_root/manifest.json +301 -301
  265. codex/static_root/manifest.json.br +0 -0
  266. codex/static_root/manifest.json.gz +0 -0
  267. codex/static_root/staticfiles.json +1 -1
  268. codex/util.py +2 -2
  269. codex/views/admin/tasks.py +1 -3
  270. codex/views/browser/breadcrumbs.py +1 -1
  271. codex/views/browser/page_in_bounds.py +1 -1
  272. codex/views/opds/v2/feed.py +1 -2
  273. {codex-1.8.0a7.dist-info → codex-1.8.0a9.dist-info}/METADATA +43 -44
  274. {codex-1.8.0a7.dist-info → codex-1.8.0a9.dist-info}/RECORD +277 -277
  275. codex/static_root/assets/VCheckbox-DWxWEepo.1acd2cc6d629.js.br +0 -0
  276. codex/static_root/assets/VCheckbox-DWxWEepo.1acd2cc6d629.js.gz +0 -0
  277. codex/static_root/assets/VCheckbox-DWxWEepo.js.br +0 -0
  278. codex/static_root/assets/VCheckbox-DWxWEepo.js.gz +0 -0
  279. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.a275b49a13e7.js.br +0 -0
  280. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.a275b49a13e7.js.gz +0 -0
  281. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.js.br +0 -0
  282. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.js.gz +0 -0
  283. codex/static_root/assets/VCombobox-B4BO1uO9.eba6114f3e21.js.br +0 -0
  284. codex/static_root/assets/VCombobox-B4BO1uO9.eba6114f3e21.js.gz +0 -0
  285. codex/static_root/assets/VCombobox-B4BO1uO9.js.br +0 -0
  286. codex/static_root/assets/VCombobox-B4BO1uO9.js.gz +0 -0
  287. codex/static_root/assets/VDialog-DSiQFoFP.7378780e9a46.js +0 -1
  288. codex/static_root/assets/VDialog-DSiQFoFP.7378780e9a46.js.br +0 -0
  289. codex/static_root/assets/VDialog-DSiQFoFP.7378780e9a46.js.gz +0 -0
  290. codex/static_root/assets/VDialog-DSiQFoFP.js +0 -1
  291. codex/static_root/assets/VDialog-DSiQFoFP.js.br +0 -0
  292. codex/static_root/assets/VDialog-DSiQFoFP.js.gz +0 -0
  293. codex/static_root/assets/VDivider-CnxeDDcO.792921c1a4a1.js.br +0 -0
  294. codex/static_root/assets/VDivider-CnxeDDcO.792921c1a4a1.js.gz +0 -0
  295. codex/static_root/assets/VDivider-CnxeDDcO.js.br +0 -0
  296. codex/static_root/assets/VDivider-CnxeDDcO.js.gz +0 -0
  297. codex/static_root/assets/VExpansionPanels-6RbcaUkU.33ee286d20e7.js.br +0 -0
  298. codex/static_root/assets/VExpansionPanels-6RbcaUkU.33ee286d20e7.js.gz +0 -0
  299. codex/static_root/assets/VExpansionPanels-6RbcaUkU.js.br +0 -0
  300. codex/static_root/assets/VExpansionPanels-6RbcaUkU.js.gz +0 -0
  301. codex/static_root/assets/VForm-BiZGZD6F.fb9d8426ef72.js.br +0 -0
  302. codex/static_root/assets/VForm-BiZGZD6F.fb9d8426ef72.js.gz +0 -0
  303. codex/static_root/assets/VForm-BiZGZD6F.js.br +0 -0
  304. codex/static_root/assets/VForm-BiZGZD6F.js.gz +0 -0
  305. codex/static_root/assets/VRadioGroup-C454wUvX.689995f3ff8c.js.br +0 -0
  306. codex/static_root/assets/VRadioGroup-C454wUvX.689995f3ff8c.js.gz +0 -0
  307. codex/static_root/assets/VRadioGroup-C454wUvX.js.br +0 -0
  308. codex/static_root/assets/VRadioGroup-C454wUvX.js.gz +0 -0
  309. codex/static_root/assets/VSelect-DnTo44Ok.dd359bb94795.js +0 -1
  310. codex/static_root/assets/VSelect-DnTo44Ok.dd359bb94795.js.br +0 -0
  311. codex/static_root/assets/VSelect-DnTo44Ok.dd359bb94795.js.gz +0 -0
  312. codex/static_root/assets/VSelect-DnTo44Ok.js +0 -1
  313. codex/static_root/assets/VSelect-DnTo44Ok.js.br +0 -0
  314. codex/static_root/assets/VSelect-DnTo44Ok.js.gz +0 -0
  315. codex/static_root/assets/VSelectionControl-BQOk7BCO.4cacab8d06c5.js +0 -1
  316. codex/static_root/assets/VSelectionControl-BQOk7BCO.4cacab8d06c5.js.br +0 -0
  317. codex/static_root/assets/VSelectionControl-BQOk7BCO.4cacab8d06c5.js.gz +0 -0
  318. codex/static_root/assets/VSelectionControl-BQOk7BCO.js +0 -1
  319. codex/static_root/assets/VSelectionControl-BQOk7BCO.js.br +0 -0
  320. codex/static_root/assets/VSelectionControl-BQOk7BCO.js.gz +0 -0
  321. codex/static_root/assets/VTable-D0O9TP1l.851d06430ab7.js.br +0 -0
  322. codex/static_root/assets/VTable-D0O9TP1l.851d06430ab7.js.gz +0 -0
  323. codex/static_root/assets/VTable-D0O9TP1l.js.br +0 -0
  324. codex/static_root/assets/VTable-D0O9TP1l.js.gz +0 -0
  325. codex/static_root/assets/VWindowItem-D1r_6PXp.b5cdd9ef6ce9.js.br +0 -0
  326. codex/static_root/assets/VWindowItem-D1r_6PXp.b5cdd9ef6ce9.js.gz +0 -0
  327. codex/static_root/assets/VWindowItem-D1r_6PXp.js.br +0 -0
  328. codex/static_root/assets/VWindowItem-D1r_6PXp.js.gz +0 -0
  329. codex/static_root/assets/admin-B9Oz5KrR.14ab2e54fa5b.js.br +0 -0
  330. codex/static_root/assets/admin-B9Oz5KrR.14ab2e54fa5b.js.gz +0 -0
  331. codex/static_root/assets/admin-B9Oz5KrR.js.br +0 -0
  332. codex/static_root/assets/admin-B9Oz5KrR.js.gz +0 -0
  333. codex/static_root/assets/admin-CfDzTfnG.ba240b5a4a40.js.br +0 -0
  334. codex/static_root/assets/admin-CfDzTfnG.ba240b5a4a40.js.gz +0 -0
  335. codex/static_root/assets/admin-CfDzTfnG.js.br +0 -0
  336. codex/static_root/assets/admin-CfDzTfnG.js.gz +0 -0
  337. codex/static_root/assets/admin-menu-BTCthv5r.f4c60585345c.js.br +0 -0
  338. codex/static_root/assets/admin-menu-BTCthv5r.f4c60585345c.js.gz +0 -0
  339. codex/static_root/assets/admin-menu-BTCthv5r.js.br +0 -0
  340. codex/static_root/assets/admin-menu-BTCthv5r.js.gz +0 -0
  341. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.c38abf7a183e.js.br +0 -0
  342. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.c38abf7a183e.js.gz +0 -0
  343. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.js.br +0 -0
  344. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.js.gz +0 -0
  345. codex/static_root/assets/browser-BbFRLvto.2ddc78dbd6d2.js.br +0 -0
  346. codex/static_root/assets/browser-BbFRLvto.2ddc78dbd6d2.js.gz +0 -0
  347. codex/static_root/assets/browser-BbFRLvto.js.br +0 -0
  348. codex/static_root/assets/browser-BbFRLvto.js.gz +0 -0
  349. codex/static_root/assets/change-password-dialog-DVgKRnnC.0cae12f0ba55.js.br +0 -0
  350. codex/static_root/assets/change-password-dialog-DVgKRnnC.0cae12f0ba55.js.gz +0 -0
  351. codex/static_root/assets/change-password-dialog-DVgKRnnC.js.br +0 -0
  352. codex/static_root/assets/change-password-dialog-DVgKRnnC.js.gz +0 -0
  353. codex/static_root/assets/confirm-dialog-CId2DpVz.7cc09b1259d5.js.br +0 -0
  354. codex/static_root/assets/confirm-dialog-CId2DpVz.7cc09b1259d5.js.gz +0 -0
  355. codex/static_root/assets/confirm-dialog-CId2DpVz.js.br +0 -0
  356. codex/static_root/assets/confirm-dialog-CId2DpVz.js.gz +0 -0
  357. codex/static_root/assets/datetime-column-80bdFW1G.8fecf1c8a4df.js.br +0 -0
  358. codex/static_root/assets/datetime-column-80bdFW1G.8fecf1c8a4df.js.gz +0 -0
  359. codex/static_root/assets/datetime-column-80bdFW1G.js.br +0 -0
  360. codex/static_root/assets/datetime-column-80bdFW1G.js.gz +0 -0
  361. codex/static_root/assets/filter-AqFs16gs.b81b28d3b1cd.js.br +0 -0
  362. codex/static_root/assets/filter-AqFs16gs.b81b28d3b1cd.js.gz +0 -0
  363. codex/static_root/assets/filter-AqFs16gs.js.br +0 -0
  364. codex/static_root/assets/filter-AqFs16gs.js.gz +0 -0
  365. codex/static_root/assets/flag-tab--riWEaDz.600d45990e7e.js.br +0 -0
  366. codex/static_root/assets/flag-tab--riWEaDz.600d45990e7e.js.gz +0 -0
  367. codex/static_root/assets/flag-tab--riWEaDz.js.br +0 -0
  368. codex/static_root/assets/flag-tab--riWEaDz.js.gz +0 -0
  369. codex/static_root/assets/forwardRefs-Cnj0FOMT.41a81fb0cd94.js +0 -1
  370. codex/static_root/assets/forwardRefs-Cnj0FOMT.41a81fb0cd94.js.br +0 -0
  371. codex/static_root/assets/forwardRefs-Cnj0FOMT.41a81fb0cd94.js.gz +0 -0
  372. codex/static_root/assets/forwardRefs-Cnj0FOMT.js +0 -1
  373. codex/static_root/assets/forwardRefs-Cnj0FOMT.js.br +0 -0
  374. codex/static_root/assets/forwardRefs-Cnj0FOMT.js.gz +0 -0
  375. codex/static_root/assets/group-tab-DW2cxPzu.c484f88ea5aa.js.br +0 -0
  376. codex/static_root/assets/group-tab-DW2cxPzu.c484f88ea5aa.js.gz +0 -0
  377. codex/static_root/assets/group-tab-DW2cxPzu.js.br +0 -0
  378. codex/static_root/assets/group-tab-DW2cxPzu.js.gz +0 -0
  379. codex/static_root/assets/http-error--HzaZjdl.a51e63e5e831.js.br +0 -0
  380. codex/static_root/assets/http-error--HzaZjdl.a51e63e5e831.js.gz +0 -0
  381. codex/static_root/assets/http-error--HzaZjdl.js.br +0 -0
  382. codex/static_root/assets/http-error--HzaZjdl.js.gz +0 -0
  383. codex/static_root/assets/index-DkPXJI21.0d7b8f8cf7be.js.br +0 -0
  384. codex/static_root/assets/index-DkPXJI21.0d7b8f8cf7be.js.gz +0 -0
  385. codex/static_root/assets/index-DkPXJI21.js.br +0 -0
  386. codex/static_root/assets/index-DkPXJI21.js.gz +0 -0
  387. codex/static_root/assets/library-tab-BwPXDL63.dc7f661f7bc7.js.br +0 -0
  388. codex/static_root/assets/library-tab-BwPXDL63.dc7f661f7bc7.js.gz +0 -0
  389. codex/static_root/assets/library-tab-BwPXDL63.js.br +0 -0
  390. codex/static_root/assets/library-tab-BwPXDL63.js.gz +0 -0
  391. codex/static_root/assets/main-DXiGoFcV.5a499dbcbbfe.js.br +0 -0
  392. codex/static_root/assets/main-DXiGoFcV.5a499dbcbbfe.js.gz +0 -0
  393. codex/static_root/assets/main-DXiGoFcV.js.br +0 -0
  394. codex/static_root/assets/main-DXiGoFcV.js.gz +0 -0
  395. codex/static_root/assets/pager-full-pdf-5UMeIJSd.4b0b03e1ad3e.js +0 -1
  396. codex/static_root/assets/pager-full-pdf-5UMeIJSd.4b0b03e1ad3e.js.br +0 -0
  397. codex/static_root/assets/pager-full-pdf-5UMeIJSd.4b0b03e1ad3e.js.gz +0 -0
  398. codex/static_root/assets/pager-full-pdf-5UMeIJSd.js +0 -1
  399. codex/static_root/assets/pager-full-pdf-5UMeIJSd.js.br +0 -0
  400. codex/static_root/assets/pager-full-pdf-5UMeIJSd.js.gz +0 -0
  401. codex/static_root/assets/pagination-toolbar-gxf2sShG.4c0846bf3224.js.br +0 -0
  402. codex/static_root/assets/pagination-toolbar-gxf2sShG.4c0846bf3224.js.gz +0 -0
  403. codex/static_root/assets/pagination-toolbar-gxf2sShG.js.br +0 -0
  404. codex/static_root/assets/pagination-toolbar-gxf2sShG.js.gz +0 -0
  405. codex/static_root/assets/pdf-doc-BKIb3c50.71a27ab500e3.js.br +0 -0
  406. codex/static_root/assets/pdf-doc-BKIb3c50.71a27ab500e3.js.gz +0 -0
  407. codex/static_root/assets/pdf-doc-BKIb3c50.js.br +0 -0
  408. codex/static_root/assets/pdf-doc-BKIb3c50.js.gz +0 -0
  409. codex/static_root/assets/reader-DN0gXesY.a8decf766e54.js.br +0 -0
  410. codex/static_root/assets/reader-DN0gXesY.a8decf766e54.js.gz +0 -0
  411. codex/static_root/assets/reader-DN0gXesY.js.br +0 -0
  412. codex/static_root/assets/reader-DN0gXesY.js.gz +0 -0
  413. codex/static_root/assets/relation-chips-Cu4Ch_yZ.5d94bc55409f.js +0 -1
  414. codex/static_root/assets/relation-chips-Cu4Ch_yZ.5d94bc55409f.js.br +0 -0
  415. codex/static_root/assets/relation-chips-Cu4Ch_yZ.5d94bc55409f.js.gz +0 -0
  416. codex/static_root/assets/relation-chips-Cu4Ch_yZ.js +0 -1
  417. codex/static_root/assets/relation-chips-Cu4Ch_yZ.js.br +0 -0
  418. codex/static_root/assets/relation-chips-Cu4Ch_yZ.js.gz +0 -0
  419. codex/static_root/assets/settings-drawer-BBM7vyXE.b3a49d6d6f4c.js.br +0 -0
  420. codex/static_root/assets/settings-drawer-BBM7vyXE.b3a49d6d6f4c.js.gz +0 -0
  421. codex/static_root/assets/settings-drawer-BBM7vyXE.js.br +0 -0
  422. codex/static_root/assets/settings-drawer-BBM7vyXE.js.gz +0 -0
  423. codex/static_root/assets/ssrBoot-Bz995UNv.88843c6b5c94.js.br +0 -0
  424. codex/static_root/assets/ssrBoot-Bz995UNv.88843c6b5c94.js.gz +0 -0
  425. codex/static_root/assets/ssrBoot-Bz995UNv.js.br +0 -0
  426. codex/static_root/assets/ssrBoot-Bz995UNv.js.gz +0 -0
  427. codex/static_root/assets/stats-tab-D0ysKA-O.22ade1f1c862.js.br +0 -0
  428. codex/static_root/assets/stats-tab-D0ysKA-O.22ade1f1c862.js.gz +0 -0
  429. codex/static_root/assets/stats-tab-D0ysKA-O.js.br +0 -0
  430. codex/static_root/assets/stats-tab-D0ysKA-O.js.gz +0 -0
  431. codex/static_root/assets/task-tab-K3T_nwIk.1189081e1886.js.br +0 -0
  432. codex/static_root/assets/task-tab-K3T_nwIk.1189081e1886.js.gz +0 -0
  433. codex/static_root/assets/task-tab-K3T_nwIk.js.br +0 -0
  434. codex/static_root/assets/task-tab-K3T_nwIk.js.gz +0 -0
  435. codex/static_root/assets/unauthorized-C9hDLcp6.6397ed699c7c.js.br +0 -0
  436. codex/static_root/assets/unauthorized-C9hDLcp6.6397ed699c7c.js.gz +0 -0
  437. codex/static_root/assets/unauthorized-C9hDLcp6.js.br +0 -0
  438. codex/static_root/assets/unauthorized-C9hDLcp6.js.gz +0 -0
  439. codex/static_root/assets/user-tab-DpQuTwTk.c3b440ac6074.js.br +0 -0
  440. codex/static_root/assets/user-tab-DpQuTwTk.c3b440ac6074.js.gz +0 -0
  441. codex/static_root/assets/user-tab-DpQuTwTk.js.br +0 -0
  442. codex/static_root/assets/user-tab-DpQuTwTk.js.gz +0 -0
  443. codex/static_root/manifest.b16c282e2ba4.json.br +0 -0
  444. codex/static_root/manifest.b16c282e2ba4.json.gz +0 -0
  445. {codex-1.8.0a7.dist-info → codex-1.8.0a9.dist-info}/WHEEL +0 -0
  446. {codex-1.8.0a7.dist-info → codex-1.8.0a9.dist-info}/entry_points.txt +0 -0
  447. {codex-1.8.0a7.dist-info → codex-1.8.0a9.dist-info}/licenses/LICENSE +0 -0
@@ -1 +0,0 @@
1
- import{bL as qt,_ as Z,bM as Kt,x as M,m as V,w as ae,v as N,b,A as Oe,B as Ze,bN as ze,L as Me,s as se,a as S,H as Ut,d as J,r as Y,bO as Wt,g as U,p as B,e as Q,aB as oe,aC as Yt,az as Jt,bo as pe,aT as fe,f as ve,be as Qt,c as _,b6 as ie,t as I,u as ee,n as et,aA as Xt,J as Zt,K as j,b8 as qe,aW as Ke,aU as $e,bP as tt,b7 as Fe,i as le,aV as ne,bQ as ea,h as A,bi as ta,bR as aa,bS as la,bD as Re,bE as at,bT as me,bU as ue,F as X,br as Le,y as Ue,bV as Ae,aa as de,bW as ce,bX as lt,o as na,V as ra,z as nt,a5 as sa,bY as oa,q as We}from"./main-DXiGoFcV.js";import{V as z,B as ia,d as ua,G as da,j as ca,v as fa,e as va,w as ma,E as ga,c as ba,L as ha,J as ya,k as Ye}from"./forwardRefs-Cnj0FOMT.js";import{S as pa,V as xa}from"./VForm-BiZGZD6F.js";import{useAdminStore as rt}from"./admin-B9Oz5KrR.js";import{V as Sa}from"./VDialog-DSiQFoFP.js";import{d as st,c as Ne,g as wa,h as Pa,i as ka}from"./VSelect-DnTo44Ok.js";import{V as Ge}from"./VCheckboxBtn-C_KP91Hh.js";import{m as _a,V as ge}from"./VTable-D0O9TP1l.js";import{m as ot,u as it}from"./filter-AqFs16gs.js";import{a as Da}from"./VDivider-CnxeDDcO.js";import{C as Ia}from"./confirm-dialog-CId2DpVz.js";function Je(e,l,t){return Object.keys(e).filter(a=>qt(a)&&a.endsWith(l)).reduce((a,n)=>(a[n.slice(0,-l.length)]=o=>e[n](o,t(o)),a),{})}const Ta={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:Kt}}};function Va(e,l,t,a,n,o){return t.update?(N(),M(z,V({key:0,icon:n.mdiPencil},e.$attrs,{size:t.size,density:t.density}),null,16,["icon","size","density"])):(N(),M(z,V({key:1},e.$attrs,{size:t.size,density:t.density}),{default:ae(()=>[b("span",null,"+ "+Oe(t.table),1)]),_:1},16,["size","density"]))}const Ca=Z(Ta,[["render",Va]]),Ba={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:Ca,SubmitFooter:pa},props:{table:{type:String,required:!0},label:{type:String,default:""},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return this.label||this.table},buttonTitle(){return(this.oldRow?"Edit":"Add")+" "+this.title}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...Ze(rt,["createRow","updateRow"]),validate(){let e=!1;for(const[t,a]of Object.entries(this.row))if(!ze(this.oldRow[t],a)){e=!0;break}if(!e)return!1;const l=this.$refs.form;return l?l.validate().then(({valid:t})=>t).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return Me(this.inputs.EMPTY_ROW);const l={};for(const t of this.inputs.UPDATE_KEYS)l[t]=Me(this.oldRow[t]);return l},doUpdate:function(){const e={};for(const[l,t]of Object.entries(this.row))ze(this.oldRow[l],t)||(e[l]=t);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:l})=>{if(l)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function Fa(e,l,t,a,n,o){const i=se("AdminCreateUpdateButton"),r=se("SubmitFooter");return N(),M(Sa,V({modelValue:n.showDialog,"onUpdate:modelValue":l[1]||(l[1]=s=>n.showDialog=s),transition:"scale-transition"},e.$attrs),{activator:ae(({props:s})=>[S(i,V({update:!!t.oldRow,table:t.table,label:t.label},s,{size:t.size,density:t.density,title:o.buttonTitle}),null,16,["update","table","label","size","density","title"])]),default:ae(()=>[S(xa,{ref:"form",class:"cuForm"},{default:ae(()=>[b("h2",null,Oe(o.title),1),(N(),M(Ut(t.inputs),{"old-row":t.oldRow,onChange:o.change},null,40,["old-row","onChange"])),S(r,{verb:o.verb,table:t.table,label:t.label,disabled:!n.submitButtonEnabled,onSubmit:o.submit,onCancel:l[0]||(l[0]=s=>n.showDialog=!1)},null,8,["verb","table","label","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Tl=Z(Ba,[["render",Fa],["__scopeId","data-v-b61575f9"]]),Ra={name:"GroupChip",props:{titleKey:{type:String,default:""},groupType:{type:Boolean,default:void 0},item:{type:Object,default:void 0}},computed:{classes(){let e={};return this.groupType&&this.item&&(e.include=!this.item.exclude,e.exclude=this.item.exclude),e},text(){return this.item&&this.titleKey?this.item[this.titleKey]:""},value(){if(this.item)return this.groupType?this.item.exclude:this.item.value}}};function Aa(e,l,t,a,n,o){return N(),M(st,{class:J(o.classes),text:o.text,value:o.value},null,8,["class","text","value"])}const ut=Z(Ra,[["render",Aa],["__scopeId","data-v-fe7786ef"]]),Ea={name:"AdminRelationPicker",components:{GroupChip:ut},props:{objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{vuetifyItems(){const e=[];for(const l of this.objs)e.push({...l,value:l.pk,title:l[this.titleKey]});return e}}};function Oa(e,l,t,a,n,o){const i=se("GroupChip");return N(),M(Ne,V({chips:!0,"closable-chips":!0,density:"compact",multiple:!0,items:o.vuetifyItems},e.$attrs),{chip:ae(({item:r})=>[S(i,{"title-key":"title",item:r,"group-type":t.groupType},null,8,["item","group-type"])]),_:1},16,["items"])}const Vl=Z(Ea,[["render",Oa]]);function $a(){const e=Y([]);Wt(()=>e.value=[]);function l(t,a){e.value[a]=t}return{refs:e,updateRef:l}}const La=B({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:j,default:"$first"},prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},lastIcon:{type:j,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ma(),...Zt(),...va(),...fa(),...ca(),...da(),...ua({tag:"nav"}),...Xt(),...ia({variant:"text"})},"VPagination"),Qe=U()({name:"VPagination",props:La(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,l){let{slots:t,emit:a}=l;const n=Q(e,"modelValue"),{t:o,n:i}=oe(),{isRtl:r}=Yt(),{themeClasses:s}=Jt(e),{width:u}=pe(),f=fe(-1);ve(void 0,{scoped:!0});const{resizeRef:g}=Qt(y=>{if(!y.length)return;const{target:h,contentRect:c}=y[0],P=h.querySelector(".v-pagination__list > *");if(!P)return;const T=c.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;f.value=w(T,L)}),d=_(()=>parseInt(e.length,10)),v=_(()=>parseInt(e.start,10)),x=_(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):f.value>=0?f.value:w(u.value,58));function w(y,h){const c=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((y-h*c)/h).toFixed(2))))}const m=_(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(x.value<=0)return[];if(x.value===1)return[n.value];if(d.value<=x.value)return ie(d.value,v.value);const y=x.value%2===0,h=y?x.value/2:Math.floor(x.value/2),c=y?h:h+1,P=d.value-h;if(c-n.value>=0)return[...ie(Math.max(1,x.value-1),v.value),e.ellipsis,d.value];if(n.value-P>=(y?1:0)){const T=x.value-1,L=d.value-T+v.value;return[v.value,e.ellipsis,...ie(T,L)]}else{const T=Math.max(1,x.value-2),L=T===1?n.value:n.value-Math.ceil(T/2)+v.value;return[v.value,e.ellipsis,...ie(T,L),e.ellipsis,d.value]}});function C(y,h,c){y.preventDefault(),n.value=h,c&&a(c,h)}const{refs:p,updateRef:D}=$a();ve({VPaginationBtn:{color:I(()=>e.color),border:I(()=>e.border),density:I(()=>e.density),size:I(()=>e.size),variant:I(()=>e.variant),rounded:I(()=>e.rounded),elevation:I(()=>e.elevation)}});const F=_(()=>m.value.map((y,h)=>{const c=P=>D(P,h);if(typeof y=="string")return{isActive:!1,key:`ellipsis-${h}`,page:y,props:{ref:c,ellipsis:!0,icon:!0,disabled:!0}};{const P=y===n.value;return{isActive:P,key:y,page:i(y),props:{ref:c,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:P?e.activeColor:e.color,"aria-current":P,"aria-label":o(P?e.currentPageAriaLabel:e.pageAriaLabel,y),onClick:T=>C(T,y)}}}})),k=_(()=>{const y=!!e.disabled||n.value<=v.value,h=!!e.disabled||n.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:r.value?e.lastIcon:e.firstIcon,onClick:c=>C(c,v.value,"first"),disabled:y,"aria-label":o(e.firstAriaLabel),"aria-disabled":y}:void 0,prev:{icon:r.value?e.nextIcon:e.prevIcon,onClick:c=>C(c,n.value-1,"prev"),disabled:y,"aria-label":o(e.previousAriaLabel),"aria-disabled":y},next:{icon:r.value?e.prevIcon:e.nextIcon,onClick:c=>C(c,n.value+1,"next"),disabled:h,"aria-label":o(e.nextAriaLabel),"aria-disabled":h},last:e.showFirstLastPage?{icon:r.value?e.firstIcon:e.lastIcon,onClick:c=>C(c,v.value+d.value-1,"last"),disabled:h,"aria-label":o(e.lastAriaLabel),"aria-disabled":h}:void 0}});function R(){const y=n.value-v.value;p.value[y]?.$el.focus()}function $(y){y.key===qe.left&&!e.disabled&&n.value>Number(e.start)?(n.value=n.value-1,Ke(R)):y.key===qe.right&&!e.disabled&&n.value<v.value+d.value-1&&(n.value=n.value+1,Ke(R))}return ee(()=>S(e.tag,{ref:g,class:J(["v-pagination",s.value,e.class]),style:et(e.style),role:"navigation","aria-label":o(e.ariaLabel),onKeydown:$,"data-test":"v-pagination-root"},{default:()=>[b("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&b("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[t.first?t.first(k.value.first):S(z,V({_as:"VPaginationBtn"},k.value.first),null)]),b("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[t.prev?t.prev(k.value.prev):S(z,V({_as:"VPaginationBtn"},k.value.prev),null)]),F.value.map((y,h)=>b("li",{key:y.key,class:J(["v-pagination__item",{"v-pagination__item--is-active":y.isActive}]),"data-test":"v-pagination-item"},[t.item?t.item(y):S(z,V({_as:"VPaginationBtn"},y.props),{default:()=>[y.page]})])),b("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[t.next?t.next(k.value.next):S(z,V({_as:"VPaginationBtn"},k.value.next),null)]),e.showFirstLastPage&&b("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[t.last?t.last(k.value.last):S(z,V({_as:"VPaginationBtn"},k.value.last),null)])])]})),{}}}),Na=B({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),dt=Symbol.for("vuetify:data-table-pagination");function Ga(e){const l=Q(e,"page",void 0,a=>Number(a??1)),t=Q(e,"itemsPerPage",void 0,a=>Number(a??10));return{page:l,itemsPerPage:t}}function Ha(e){const{page:l,itemsPerPage:t,itemsLength:a}=e,n=_(()=>t.value===-1?0:t.value*(l.value-1)),o=_(()=>t.value===-1?a.value:Math.min(a.value,n.value+t.value)),i=_(()=>t.value===-1||a.value===0?1:Math.ceil(a.value/t.value));$e([l,i],()=>{l.value>i.value&&(l.value=i.value)});function r(d){t.value=d,l.value=1}function s(){l.value=Fe(l.value+1,1,i.value)}function u(){l.value=Fe(l.value-1,1,i.value)}function f(d){l.value=Fe(d,1,i.value)}const g={page:l,itemsPerPage:t,startIndex:n,stopIndex:o,pageCount:i,itemsLength:a,nextPage:s,prevPage:u,setPage:f,setItemsPerPage:r};return ne(dt,g),g}function ja(){const e=le(dt);if(!e)throw new Error("Missing pagination!");return e}function za(e){const l=tt("usePaginatedItems"),{items:t,startIndex:a,stopIndex:n,itemsPerPage:o}=e,i=_(()=>o.value<=0?t.value:t.value.slice(a.value,n.value));return $e(i,r=>{l.emit("update:currentItems",r)},{immediate:!0}),{paginatedItems:i}}const ct=B({prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},firstIcon:{type:j,default:"$first"},lastIcon:{type:j,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Xe=U()({name:"VDataTableFooter",props:ct(),setup(e,l){let{slots:t}=l;const{t:a}=oe(),{page:n,pageCount:o,startIndex:i,stopIndex:r,itemsLength:s,itemsPerPage:u,setItemsPerPage:f}=ja(),g=_(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?a("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?a(d.title):d.title}));return ee(()=>{const d=Qe.filterProps(e);return b("div",{class:"v-data-table-footer"},[t.prepend?.(),b("div",{class:"v-data-table-footer__items-per-page"},[b("span",{"aria-label":a(e.itemsPerPageText)},[a(e.itemsPerPageText)]),S(Ne,{items:g.value,modelValue:u.value,"onUpdate:modelValue":v=>f(Number(v)),density:"compact",variant:"outlined","hide-details":!0},null)]),b("div",{class:"v-data-table-footer__info"},[b("div",null,[a(e.pageText,s.value?i.value+1:0,r.value,s.value)])]),b("div",{class:"v-data-table-footer__pagination"},[S(Qe,V({modelValue:n.value,"onUpdate:modelValue":v=>n.value=v,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:o.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),be=ea({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,l)=>{let{slots:t}=l;const a=e.tag??"td",n=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return S(a,{class:J(["v-data-table__td",{"v-data-table-column--fixed":n==="start","v-data-table-column--fixed-end":n==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`]),style:{height:A(e.height),width:A(e.width),maxWidth:A(e.maxWidth),left:n==="start"?A(e.fixedOffset||null):void 0,right:n==="end"?A(e.fixedEndOffset||null):void 0}},{default:()=>[t.default?.()]})}),Ma=B({headers:Array},"DataTable-header"),ft=Symbol.for("vuetify:data-table-headers"),vt={title:"",sortable:!1},qa={...vt,width:48};function Ka(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(t=>({element:t,priority:0}));return{enqueue:(t,a)=>{let n=!1;for(let o=0;o<l.length;o++)if(l[o].priority>a){l.splice(o,0,{element:t,priority:a}),n=!0;break}n||l.push({element:t,priority:a})},size:()=>l.length,count:()=>{let t=0;if(!l.length)return 0;const a=Math.floor(l[0].priority);for(let n=0;n<l.length;n++)Math.floor(l[n].priority)===a&&(t+=1);return t},dequeue:()=>l.shift()}}function Ee(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)l.push(e);else for(const t of e.children)Ee(t,l);return l}function mt(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const t of e)t.key&&l.add(t.key),t.children&&mt(t.children,l);return l}function Ua(e){if(e.key){if(e.key==="data-table-group")return vt;if(["data-table-expand","data-table-select"].includes(e.key))return qa}}function He(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(l,...e.children.map(t=>He(t,l+1))):l}function Wa(e){let l=!1;function t(r,s){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(!r)return;u!=="none"&&(r.fixed=u),r.fixed===!0&&(r.fixed="start");const f=s==="start"?r.children?.toReversed():r.children;if(r.fixed===s)if(f)for(const g of f)t(g,s,s);else!l&&s==="start"?r.lastFixed=!0:!l&&s==="end"?r.firstFixedEnd=!0:isNaN(Number(r.width))?la(`Multiple fixed columns should have a static width (key: ${r.key})`):r.minWidth=Math.max(Number(r.width)||0,Number(r.minWidth)||0),l=!0;else if(f)for(const g of f)t(g,s);else l=!1}for(const r of e.toReversed())t(r,"start");for(const r of e)t(r,"end");function a(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return s;if(r.children){r.fixedOffset=s;for(const u of r.children)s=a(u,s)}else r.fixed&&r.fixed!=="end"&&(r.fixedOffset=s,s+=parseFloat(r.width||"0")||0);return s}let n=0;for(const r of e)n=a(r,n);function o(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return s;if(r.children){r.fixedEndOffset=s;for(const u of r.children)s=o(u,s)}else r.fixed==="end"&&(r.fixedEndOffset=s,s+=parseFloat(r.width||"0")||0);return s}let i=0;for(const r of e.toReversed())i=o(r,i)}function Ya(e,l){const t=[];let a=0;const n=Ka(e);for(;n.size()>0;){let i=n.count();const r=[];let s=1;for(;i>0;){const{element:u,priority:f}=n.dequeue(),g=l-a-He(u);if(r.push({...u,rowspan:g??1,colspan:u.children?Ee(u).length:1}),u.children)for(const d of u.children){const v=f%1+s/Math.pow(10,a+2);n.enqueue(d,a+g+v)}s+=1,i-=1}a+=1,t.push(r)}return{columns:e.map(i=>Ee(i)).flat(),headers:t}}function gt(e){const l=[];for(const t of e){const a={...Ua(t),...t},n=a.key??(typeof a.value=="string"?a.value:null),o=a.value??n??null,i={...a,key:n,value:o,sortable:a.sortable??(a.key!=null||!!a.sort),children:a.children?gt(a.children):void 0};l.push(i)}return l}function bt(e,l){const t=Y([]),a=Y([]),n=Y({}),o=Y({}),i=Y({});ta(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(w=>({key:w,title:aa(w)}))).slice(),f=mt(u);l?.groupBy?.value.length&&!f.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),l?.showSelect?.value&&!f.has("data-table-select")&&u.unshift({key:"data-table-select"}),l?.showExpand?.value&&!f.has("data-table-expand")&&u.push({key:"data-table-expand"});const g=gt(u);Wa(g);const d=Math.max(...g.map(w=>He(w)))+1,v=Ya(g,d);t.value=v.headers,a.value=v.columns;const x=v.headers.flat(1);for(const w of x)w.key&&(w.sortable&&(w.sort&&(n.value[w.key]=w.sort),w.sortRaw&&(o.value[w.key]=w.sortRaw)),w.filter&&(i.value[w.key]=w.filter))});const r={headers:t,columns:a,sortFunctions:n,sortRawFunctions:o,filterFunctions:i};return ne(ft,r),r}function xe(){const e=le(ft);if(!e)throw new Error("Missing headers!");return e}const Ja={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:l,value:t}=e;return new Set(t?[l[0]?.value]:[])},selectAll:e=>{let{selected:l}=e;return l}},ht={showSelectAll:!0,allSelected:e=>{let{currentPage:l}=e;return l},select:e=>{let{items:l,value:t,selected:a}=e;for(const n of l)t?a.add(n.value):a.delete(n.value);return a},selectAll:e=>{let{value:l,currentPage:t,selected:a}=e;return ht.select({items:t,value:l,selected:a})}},yt={showSelectAll:!0,allSelected:e=>{let{allItems:l}=e;return l},select:e=>{let{items:l,value:t,selected:a}=e;for(const n of l)t?a.add(n.value):a.delete(n.value);return a},selectAll:e=>{let{value:l,allItems:t,selected:a}=e;return yt.select({items:t,value:l,selected:a})}},Qa=B({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:at}},"DataTable-select"),pt=Symbol.for("vuetify:data-table-selection");function xt(e,l){let{allItems:t,currentPage:a}=l;const n=Q(e,"modelValue",e.modelValue,p=>new Set(Re(p).map(D=>t.value.find(F=>e.valueComparator(D,F.value))?.value??D)),p=>[...p.values()]),o=_(()=>t.value.filter(p=>p.selectable)),i=_(()=>a.value.filter(p=>p.selectable)),r=_(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Ja;case"all":return yt;case"page":default:return ht}}),s=fe(null);function u(p){return Re(p).every(D=>n.value.has(D.value))}function f(p){return Re(p).some(D=>n.value.has(D.value))}function g(p,D){const F=r.value.select({items:p,value:D,selected:new Set(n.value)});n.value=F}function d(p,D,F){const k=[];if(D=D??a.value.findIndex(R=>R.value===p.value),e.selectStrategy!=="single"&&F?.shiftKey&&s.value!==null){const[R,$]=[s.value,D].sort((y,h)=>y-h);k.push(...a.value.slice(R,$+1).filter(y=>y.selectable))}else k.push(p),s.value=D;g(k,!u([p]))}function v(p){const D=r.value.selectAll({value:p,allItems:o.value,currentPage:i.value,selected:new Set(n.value)});n.value=D}const x=_(()=>n.value.size>0),w=_(()=>{const p=r.value.allSelected({allItems:o.value,currentPage:i.value});return!!p.length&&u(p)}),m=I(()=>r.value.showSelectAll),C={toggleSelect:d,select:g,selectAll:v,isSelected:u,isSomeSelected:f,someSelected:x,allSelected:w,showSelectAll:m,lastSelectedIndex:s,selectStrategy:r};return ne(pt,C),C}function Se(){const e=le(pt);if(!e)throw new Error("Missing selection!");return e}const Xa=B({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),St=Symbol.for("vuetify:data-table-sort");function wt(e){const l=Q(e,"sortBy"),t=I(()=>e.mustSort),a=I(()=>e.multiSort);return{sortBy:l,mustSort:t,multiSort:a}}function Pt(e){const{sortBy:l,mustSort:t,multiSort:a,page:n}=e,o=s=>{if(s.key==null)return;let u=l.value.map(g=>({...g}))??[];const f=u.find(g=>g.key===s.key);f?f.order==="desc"?t.value&&u.length===1?f.order="asc":u=u.filter(g=>g.key!==s.key):f.order="desc":a.value?u.push({key:s.key,order:"asc"}):u=[{key:s.key,order:"asc"}],l.value=u,n&&(n.value=1)};function i(s){return!!l.value.find(u=>u.key===s.key)}const r={sortBy:l,toggleSort:o,isSorted:i};return ne(St,r),r}function kt(){const e=le(St);if(!e)throw new Error("Missing sort!");return e}function _t(e,l,t,a){const n=oe();return{sortedItems:_(()=>t.value.length?Za(l.value,t.value,n.current.value,{transform:a?.transform,sortFunctions:{...e.customKeySort,...a?.sortFunctions?.value},sortRawFunctions:a?.sortRawFunctions?.value}):l.value)}}function Za(e,l,t,a){const n=new Intl.Collator(t,{sensitivity:"accent",usage:"sort"});return e.map(i=>[i,a?.transform?a.transform(i):i]).sort((i,r)=>{for(let s=0;s<l.length;s++){let u=!1;const f=l[s].key,g=l[s].order??"asc";if(g===!1)continue;let d=me(i[1],f),v=me(r[1],f),x=i[0].raw,w=r[0].raw;if(g==="desc"&&([d,v]=[v,d],[x,w]=[w,x]),a?.sortRawFunctions?.[f]){const m=a.sortRawFunctions[f](x,w);if(m==null)continue;if(u=!0,m)return m}if(a?.sortFunctions?.[f]){const m=a.sortFunctions[f](d,v);if(m==null)continue;if(u=!0,m)return m}if(!u&&(d instanceof Date&&v instanceof Date&&(d=d.getTime(),v=v.getTime()),[d,v]=[d,v].map(m=>m!=null?m.toString().toLocaleLowerCase():m),d!==v))return ue(d)&&ue(v)?0:ue(d)?-1:ue(v)?1:!isNaN(d)&&!isNaN(v)?Number(d)-Number(v):n.compare(d,v)}return 0}).map(i=>{let[r]=i;return r})}const Dt=B({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,sortAscIcon:{type:j,default:"$sortAsc"},sortDescIcon:{type:j,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...Le(),...ya()},"VDataTableHeaders"),he=U()({name:"VDataTableHeaders",props:Dt(),setup(e,l){let{slots:t}=l;const{t:a}=oe(),{toggleSort:n,sortBy:o,isSorted:i}=kt(),{someSelected:r,allSelected:s,selectAll:u,showSelectAll:f}=Se(),{columns:g,headers:d}=xe(),{loaderClasses:v}=ga(e);function x(h,c){if(!(e.sticky||e.fixedHeader)&&!h.fixed)return;const P=typeof h.fixed=="string"?h.fixed:h.fixed?"start":"none";return{position:"sticky",left:P==="start"?A(h.fixedOffset):void 0,right:P==="end"?A(h.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${c})`:void 0}}function w(h,c){h.key==="Enter"&&!e.disableSort&&n(c)}function m(h){const c=o.value.find(P=>P.key===h.key);return c?c.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:C,backgroundColorStyles:p}=ba(()=>e.color),{displayClasses:D,mobile:F}=pe(e),k=_(()=>({headers:d.value,columns:g.value,toggleSort:n,isSorted:i,sortBy:o.value,someSelected:r.value,allSelected:s.value,selectAll:u,getSortIcon:m})),R=_(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},D.value,v.value]),$=h=>{let{column:c,x:P,y:T}=h;const L=c.key==="data-table-select"||c.key==="data-table-expand",re=V(e.headerProps??{},c.headerProps??{});return S(be,V({tag:"th",align:c.align,class:[{"v-data-table__th--sortable":c.sortable&&!e.disableSort,"v-data-table__th--sorted":i(c),"v-data-table__th--fixed":c.fixed},...R.value],style:{width:A(c.width),minWidth:A(c.minWidth),maxWidth:A(c.maxWidth),...x(c,T)},colspan:c.colspan,rowspan:c.rowspan,fixed:c.fixed,nowrap:c.nowrap,lastFixed:c.lastFixed,firstFixedEnd:c.firstFixedEnd,noPadding:L,tabindex:c.sortable?0:void 0,onClick:c.sortable?()=>n(c):void 0,onKeydown:c.sortable?q=>w(q,c):void 0},re),{default:()=>{const q=`header.${c.key}`,K={column:c,selectAll:u,isSorted:i,toggleSort:n,sortBy:o.value,someSelected:r.value,allSelected:s.value,getSortIcon:m};return t[q]?t[q](K):c.key==="data-table-select"?t["header.data-table-select"]?.(K)??(f.value&&S(Ge,{modelValue:s.value,indeterminate:r.value&&!s.value,"onUpdate:modelValue":u},null)):b("div",{class:"v-data-table-header__content"},[b("span",null,[c.title]),c.sortable&&!e.disableSort&&S(Ye,{key:"icon",class:"v-data-table-header__sort-icon",icon:m(c)},null),e.multiSort&&i(c)&&b("div",{key:"badge",class:J(["v-data-table-header__sort-badge",...C.value]),style:et(p.value)},[o.value.findIndex(W=>W.key===c.key)+1])])}})},y=()=>{const h=_(()=>g.value.filter(P=>P?.sortable&&!e.disableSort)),c=_(()=>{if(g.value.find(T=>T.key==="data-table-select")!=null)return s.value?"$checkboxOn":r.value?"$checkboxIndeterminate":"$checkboxOff"});return S(be,V({tag:"th",class:[...R.value],colspan:d.value.length+1},e.headerProps),{default:()=>[b("div",{class:"v-data-table-header__content"},[S(Ne,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:h.value,label:a("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>o.value=[],appendIcon:c.value,"onClick:append":()=>u(!s.value)},{...t,chip:P=>S(st,{onClick:P.item.raw?.sortable?()=>n(P.item.raw):void 0,onMousedown:T=>{T.preventDefault(),T.stopPropagation()}},{default:()=>[P.item.title,S(Ye,{class:J(["v-data-table__td-sort-icon",i(P.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:m(P.item.raw),size:"small"},null)]})})])]})};ee(()=>F.value?b("tr",null,[S(y,null,null)]):b(X,null,[t.headers?t.headers(k.value):d.value.map((h,c)=>b("tr",null,[h.map((P,T)=>S($,{column:P,x:T,y:c},null))])),e.loading&&b("tr",{class:"v-data-table-progress"},[b("th",{colspan:g.value.length},[S(ha,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:t.loader})])])]))}}),It=B({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Tt=Symbol.for("vuetify:data-table-group");function Vt(e){return{groupBy:Q(e,"groupBy")}}function Ct(e){const{disableSort:l,groupBy:t,sortBy:a}=e,n=Y(new Set),o=_(()=>t.value.map(f=>({...f,order:f.order??!1})).concat(l?.value?[]:a.value));function i(f){return n.value.has(f.id)}function r(f){const g=new Set(n.value);i(f)?g.delete(f.id):g.add(f.id),n.value=g}function s(f){function g(d){const v=[];for(const x of d.items)"type"in x&&x.type==="group"?v.push(...g(x)):v.push(x);return[...new Set(v)]}return g({items:f})}const u={sortByWithGroups:o,toggleGroup:r,opened:n,groupBy:t,extractRows:s,isGroupOpen:i};return ne(Tt,u),u}function Bt(){const e=le(Tt);if(!e)throw new Error("Missing group!");return e}function el(e,l){if(!e.length)return[];const t=new Map;for(const a of e){const n=me(a.raw,l);t.has(n)||t.set(n,[]),t.get(n).push(a)}return t}function Ft(e,l){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!l.length)return[];const n=el(e,l[0]),o=[],i=l.slice(1);return n.forEach((r,s)=>{const u=l[0],f=`${a}_${u}_${s}`;o.push({depth:t,id:f,key:u,value:s,items:i.length?Ft(r,i,t+1,f):r,type:"group"})}),o}function Rt(e,l){const t=[];for(const a of e)"type"in a&&a.type==="group"?(a.value!=null&&t.push(a),(l.has(a.id)||a.value==null)&&t.push(...Rt(a.items,l))):t.push(a);return t}function At(e,l,t){return{flatItems:_(()=>{if(!l.value.length)return e.value;const n=Ft(e.value,l.value.map(o=>o.key));return Rt(n,t.value)})}}const tl=B({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),al=U()({name:"VDataTableGroupHeaderRow",props:tl(),setup(e,l){let{slots:t}=l;const{isGroupOpen:a,toggleGroup:n,extractRows:o}=Bt(),{isSelected:i,isSomeSelected:r,select:s}=Se(),{columns:u}=xe(),f=_(()=>o([e.item]));return()=>b("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(g=>{if(g.key==="data-table-group"){const d=a(e.item)?"$expand":"$next",v=()=>n(e.item);return t["data-table-group"]?.({item:e.item,count:f.value.length,props:{icon:d,onClick:v}})??S(be,{class:"v-data-table-group-header-row__column"},{default:()=>[S(z,{size:"small",variant:"text",icon:d,onClick:v},null),b("span",null,[e.item.value]),b("span",null,[Ue("("),f.value.length,Ue(")")])]})}if(g.key==="data-table-select"){const d=i(f.value),v=r(f.value)&&!d,x=w=>s(f.value,w);return t["data-table-select"]?.({props:{modelValue:d,indeterminate:v,"onUpdate:modelValue":x}})??b("td",null,[S(Ge,{modelValue:d,indeterminate:v,"onUpdate:modelValue":x},null)])}return b("td",null,null)})])}}),ll=B({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Et=Symbol.for("vuetify:datatable:expanded");function Ot(e){const l=I(()=>e.expandOnClick),t=Q(e,"expanded",e.expanded,r=>new Set(r),r=>[...r.values()]);function a(r,s){const u=new Set(t.value);s?u.add(r.value):u.delete(r.value),t.value=u}function n(r){return t.value.has(r.value)}function o(r){a(r,!n(r))}const i={expand:a,expanded:t,expandOnClick:l,isExpanded:n,toggleExpand:o};return ne(Et,i),i}function $t(){const e=le(Et);if(!e)throw new Error("foo");return e}const nl=B({index:Number,item:Object,cellProps:[Object,Function],onClick:Ae(),onContextmenu:Ae(),onDblclick:Ae(),...Le()},"VDataTableRow"),Lt=U()({name:"VDataTableRow",props:nl(),setup(e,l){let{slots:t}=l;const{displayClasses:a,mobile:n}=pe(e,"v-data-table__tr"),{isSelected:o,toggleSelect:i,someSelected:r,allSelected:s,selectAll:u}=Se(),{isExpanded:f,toggleExpand:g}=$t(),{toggleSort:d,sortBy:v,isSorted:x}=kt(),{columns:w}=xe();ee(()=>b("tr",{class:J(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},a.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&w.value.map((m,C)=>{const p=e.item,D=`item.${m.key}`,F=`header.${m.key}`,k={index:e.index,item:p.raw,internalItem:p,value:me(p.columns,m.key),column:m,isSelected:o,toggleSelect:i,isExpanded:f,toggleExpand:g},R={column:m,selectAll:u,isSorted:x,toggleSort:d,sortBy:v.value,someSelected:r.value,allSelected:s.value,getSortIcon:()=>""},$=typeof e.cellProps=="function"?e.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value,column:m}):e.cellProps,y=typeof m.cellProps=="function"?m.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value}):m.cellProps;return S(be,V({align:m.align,class:{"v-data-table__td--expanded-row":m.key==="data-table-expand","v-data-table__td--select-row":m.key==="data-table-select"},fixed:m.fixed,fixedOffset:m.fixedOffset,fixedEndOffset:m.fixedEndOffset,lastFixed:m.lastFixed,firstFixedEnd:m.firstFixedEnd,maxWidth:n.value?void 0:m.maxWidth,noPadding:m.key==="data-table-select"||m.key==="data-table-expand",nowrap:m.nowrap,width:n.value?void 0:m.width},$,y),{default:()=>{if(m.key==="data-table-select")return t["item.data-table-select"]?.({...k,props:{disabled:!p.selectable,modelValue:o([p]),onClick:de(()=>i(p),["stop"])}})??S(Ge,{disabled:!p.selectable,modelValue:o([p]),onClick:de(c=>i(p,e.index,c),["stop"])},null);if(m.key==="data-table-expand")return t["item.data-table-expand"]?.({...k,props:{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])}})??S(z,{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])},null);if(t[D]&&!n.value)return t[D](k);const h=Oe(k.value);return n.value?b(X,null,[b("div",{class:"v-data-table__td-title"},[t[F]?.(R)??m.title]),b("div",{class:"v-data-table__td-value"},[t[D]?.(k)??h])]):h}})})]))}}),Nt=B({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Le()},"VDataTableRows"),ye=U()({name:"VDataTableRows",inheritAttrs:!1,props:Nt(),setup(e,l){let{attrs:t,slots:a}=l;const{columns:n}=xe(),{expandOnClick:o,toggleExpand:i,isExpanded:r}=$t(),{isSelected:s,toggleSelect:u}=Se(),{toggleGroup:f,isGroupOpen:g}=Bt(),{t:d}=oe(),{mobile:v}=pe(e);return ee(()=>e.loading&&(!e.items.length||a.loading)?b("tr",{class:"v-data-table-rows-loading",key:"loading"},[b("td",{colspan:n.value.length},[a.loading?.()??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?b("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[b("td",{colspan:n.value.length},[a["no-data"]?.()??d(e.noDataText)])]):b(X,null,[e.items.map((x,w)=>{if(x.type==="group"){const p={index:w,item:x,columns:n.value,isExpanded:r,toggleExpand:i,isSelected:s,toggleSelect:u,toggleGroup:f,isGroupOpen:g};return a["group-header"]?a["group-header"](p):S(al,V({key:`group-header_${x.id}`,item:x},Je(t,":group-header",()=>p)),a)}const m={index:w,item:x.raw,internalItem:x,columns:n.value,isExpanded:r,toggleExpand:i,isSelected:s,toggleSelect:u},C={...m,props:V({key:`item_${x.key??x.index}`,onClick:o.value?()=>{i(x)}:void 0,index:w,item:x,cellProps:e.cellProps,mobile:v.value},Je(t,":row",()=>m),typeof e.rowProps=="function"?e.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):e.rowProps)};return b(X,{key:C.props.key},[a.item?a.item(C):S(Lt,C.props,a),r(x)&&a["expanded-row"]?.(m)])})])),{}}}),rl=B({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function sl(e,l,t,a){const n=e.returnObject?l:ce(l,e.itemValue),o=ce(l,e.itemSelectable,!0),i=a.reduce((r,s)=>(s.key!=null&&(r[s.key]=ce(l,s.value)),r),{});return{type:"item",key:e.returnObject?ce(l,e.itemValue):n,index:t,value:n,selectable:o,columns:i,raw:l}}function ol(e,l,t){return l.map((a,n)=>sl(e,a,n,t))}function Gt(e,l){return{items:_(()=>ol(e,e.items,l.value))}}function Ht(e){let{page:l,itemsPerPage:t,sortBy:a,groupBy:n,search:o}=e;const i=tt("VDataTable"),r=()=>({page:l.value,itemsPerPage:t.value,sortBy:a.value,groupBy:n.value,search:o.value});let s=null;$e(r,u=>{at(s,u)||(s&&s.search!==u.search&&(l.value=1),i.emit("update:options",u),s=u)},{deep:!0,immediate:!0})}const jt=B({...Nt(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...ll(),...It(),...Ma(),...rl(),...Qa(),...Xa(),...Dt(),..._a()},"DataTable"),il=B({...Na(),...jt(),...ot(),...ct()},"VDataTable");U()({name:"VDataTable",props:il(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,l){let{attrs:t,slots:a}=l;const{groupBy:n}=Vt(e),{sortBy:o,multiSort:i,mustSort:r}=wt(e),{page:s,itemsPerPage:u}=Ga(e),{disableSort:f}=lt(e),{columns:g,headers:d,sortFunctions:v,sortRawFunctions:x,filterFunctions:w}=bt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:m}=Gt(e,g),C=I(()=>e.search),{filteredItems:p}=it(e,m,C,{transform:G=>G.columns,customKeyFilter:w}),{toggleSort:D}=Pt({sortBy:o,multiSort:i,mustSort:r,page:s}),{sortByWithGroups:F,opened:k,extractRows:R,isGroupOpen:$,toggleGroup:y}=Ct({groupBy:n,sortBy:o,disableSort:f}),{sortedItems:h}=_t(e,p,F,{transform:G=>({...G.raw,...G.columns}),sortFunctions:v,sortRawFunctions:x}),{flatItems:c}=At(h,n,k),P=_(()=>c.value.length),{startIndex:T,stopIndex:L,pageCount:re,setItemsPerPage:q}=Ha({page:s,itemsPerPage:u,itemsLength:P}),{paginatedItems:K}=za({items:c,startIndex:T,stopIndex:L,itemsPerPage:u}),W=_(()=>R(K.value)),{isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,someSelected:De,allSelected:Ie}=xt(e,{allItems:m,currentPage:W}),{isExpanded:Te,toggleExpand:Ve}=Ot(e);Ht({page:s,itemsPerPage:u,sortBy:o,groupBy:n,search:C}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const E=_(()=>({page:s.value,itemsPerPage:u.value,sortBy:o.value,pageCount:re.value,toggleSort:D,setItemsPerPage:q,someSelected:De.value,allSelected:Ie.value,isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,isExpanded:Te,toggleExpand:Ve,isGroupOpen:$,toggleGroup:y,items:W.value.map(G=>G.raw),internalItems:W.value,groupedItems:K.value,columns:g.value,headers:d.value}));return ee(()=>{const G=Xe.filterProps(e),Ce=he.filterProps(e),H=ye.filterProps(e),O=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},O,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>a.top?.(E.value),default:()=>a.default?a.default(E.value):b(X,null,[a.colgroup?.(E.value),!e.hideDefaultHeader&&b("thead",{key:"thead"},[S(he,Ce,a)]),a.thead?.(E.value),!e.hideDefaultBody&&b("tbody",null,[a["body.prepend"]?.(E.value),a.body?a.body(E.value):S(ye,V(t,H,{items:K.value}),a),a["body.append"]?.(E.value)]),a.tbody?.(E.value),a.tfoot?.(E.value)]),bottom:()=>a.bottom?a.bottom(E.value):!e.hideDefaultFooter&&b(X,null,[S(Da,null,null),S(Xe,G,{prepend:a["footer.prepend"]})])})}),{}}});const ul=B({...na(jt(),["hideDefaultFooter"]),...It(),...Pa(),...ot()},"VDataTableVirtual"),dl=U()({name:"VDataTableVirtual",props:ul(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,l){let{attrs:t,slots:a}=l;const{groupBy:n}=Vt(e),{sortBy:o,multiSort:i,mustSort:r}=wt(e),{disableSort:s}=lt(e),{columns:u,headers:f,filterFunctions:g,sortFunctions:d,sortRawFunctions:v}=bt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:x}=Gt(e,u),w=I(()=>e.search),{filteredItems:m}=it(e,x,w,{transform:O=>O.columns,customKeyFilter:g}),{toggleSort:C}=Pt({sortBy:o,multiSort:i,mustSort:r}),{sortByWithGroups:p,opened:D,extractRows:F,isGroupOpen:k,toggleGroup:R}=Ct({groupBy:n,sortBy:o,disableSort:s}),{sortedItems:$}=_t(e,m,p,{transform:O=>({...O.raw,...O.columns}),sortFunctions:d,sortRawFunctions:v}),{flatItems:y}=At($,n,D),h=_(()=>F(y.value)),{isSelected:c,select:P,selectAll:T,toggleSelect:L,someSelected:re,allSelected:q}=xt(e,{allItems:h,currentPage:h}),{isExpanded:K,toggleExpand:W}=Ot(e),{containerRef:we,markerRef:Pe,paddingTop:ke,paddingBottom:_e,computedItems:De,handleItemResize:Ie,handleScroll:Te,handleScrollend:Ve,calculateVisibleItems:E,scrollToIndex:G}=wa(e,y),Ce=_(()=>De.value.map(O=>O.raw));Ht({sortBy:o,page:fe(1),itemsPerPage:fe(-1),groupBy:n,search:w}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const H=_(()=>({sortBy:o.value,toggleSort:C,someSelected:re.value,allSelected:q.value,isSelected:c,select:P,selectAll:T,toggleSelect:L,isExpanded:K,toggleExpand:W,isGroupOpen:k,toggleGroup:R,items:h.value.map(O=>O.raw),internalItems:h.value,groupedItems:y.value,columns:u.value,headers:f.value}));return ee(()=>{const O=he.filterProps(e),zt=ye.filterProps(e),Mt=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},Mt,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>a.top?.(H.value),wrapper:()=>b("div",{ref:we,onScrollPassive:Te,onScrollend:Ve,class:"v-table__wrapper",style:{height:A(e.height)}},[b("table",null,[a.colgroup?.(H.value),!e.hideDefaultHeader&&b("thead",{key:"thead"},[S(he,O,a)]),a.thead?.(H.value),!e.hideDefaultBody&&b("tbody",{key:"tbody"},[b("tr",{ref:Pe,style:{height:A(ke.value),border:0}},[b("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),a["body.prepend"]?.(H.value),S(ye,V(t,zt,{items:Ce.value}),{...a,item:te=>S(ka,{key:te.internalItem.index,renderless:!0,"onUpdate:height":Be=>Ie(te.internalItem.index,Be)},{default:Be=>{let{itemRef:je}=Be;return a.item?.({...te,itemRef:je})??S(Lt,V(te.props,{ref:je,key:te.internalItem.index,index:te.internalItem.index}),a)}})}),a["body.append"]?.(H.value),b("tr",{style:{height:A(_e.value),border:0}},[b("td",{colspan:u.value.length,style:{height:0,border:0}},null)])]),a.tbody?.(H.value),a.tfoot?.(H.value)])]),bottom:()=>a.bottom?.(H.value)})}),{calculateVisibleItems:E,scrollToIndex:G}}}),cl={name:"AdminTable"};function fl(e,l,t,a,n,o){return N(),M(dl,{"fixed-header":"","item-value":"pk",mobile:e.$vuetify.display.xs},ra({_:2},[nt(e.$slots,(i,r)=>({name:r,fn:ae(s=>[sa(e.$slots,r,V({props:i},s),void 0,!0)])}))]),1032,["mobile"])}const Cl=Z(cl,[["render",fl],["__scopeId","data-v-8b5d9183"]]),vl={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Ia},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:oa}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...Ze(rt,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function ml(e,l,t,a,n,o){const i=se("ConfirmDialog");return N(),M(i,{icon:n.mdiTrashCan,"title-text":o.titleText,text:t.name,"confirm-text":o.titleText,onConfirm:o.confirm},null,8,["icon","title-text","text","confirm-text","onConfirm"])}const Bl=Z(vl,[["render",ml]]),gl={name:"RelationChips",components:{GroupChip:ut},props:{pks:{type:Array,required:!0},objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{map(){const e={};for(const l of this.objs)e[l.pk]=l;return e}}};function bl(e,l,t,a,n,o){const i=se("GroupChip");return N(),We("span",null,[(N(!0),We(X,null,nt(t.pks,r=>(N(),M(i,{key:r,"title-key":t.titleKey,"group-type":t.groupType,item:o.map[r]},null,8,["title-key","group-type","item"]))),128))])}const Fl=Z(gl,[["render",bl]]);export{Vl as A,ut as G,Fl as R,Tl as a,Bl as b,Cl as c};
@@ -1 +0,0 @@
1
- import{bL as qt,_ as Z,bM as Kt,x as M,m as V,w as ae,v as N,b,A as Oe,B as Ze,bN as ze,L as Me,s as se,a as S,H as Ut,d as J,r as Y,bO as Wt,g as U,p as B,e as Q,aB as oe,aC as Yt,az as Jt,bo as pe,aT as fe,f as ve,be as Qt,c as _,b6 as ie,t as I,u as ee,n as et,aA as Xt,J as Zt,K as j,b8 as qe,aW as Ke,aU as $e,bP as tt,b7 as Fe,i as le,aV as ne,bQ as ea,h as A,bi as ta,bR as aa,bS as la,bD as Re,bE as at,bT as me,bU as ue,F as X,br as Le,y as Ue,bV as Ae,aa as de,bW as ce,bX as lt,o as na,V as ra,z as nt,a5 as sa,bY as oa,q as We}from"./main-DXiGoFcV.js";import{V as z,B as ia,d as ua,G as da,j as ca,v as fa,e as va,w as ma,E as ga,c as ba,L as ha,J as ya,k as Ye}from"./forwardRefs-Cnj0FOMT.js";import{S as pa,V as xa}from"./VForm-BiZGZD6F.js";import{useAdminStore as rt}from"./admin-B9Oz5KrR.js";import{V as Sa}from"./VDialog-DSiQFoFP.js";import{d as st,c as Ne,g as wa,h as Pa,i as ka}from"./VSelect-DnTo44Ok.js";import{V as Ge}from"./VCheckboxBtn-C_KP91Hh.js";import{m as _a,V as ge}from"./VTable-D0O9TP1l.js";import{m as ot,u as it}from"./filter-AqFs16gs.js";import{a as Da}from"./VDivider-CnxeDDcO.js";import{C as Ia}from"./confirm-dialog-CId2DpVz.js";function Je(e,l,t){return Object.keys(e).filter(a=>qt(a)&&a.endsWith(l)).reduce((a,n)=>(a[n.slice(0,-l.length)]=o=>e[n](o,t(o)),a),{})}const Ta={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:Kt}}};function Va(e,l,t,a,n,o){return t.update?(N(),M(z,V({key:0,icon:n.mdiPencil},e.$attrs,{size:t.size,density:t.density}),null,16,["icon","size","density"])):(N(),M(z,V({key:1},e.$attrs,{size:t.size,density:t.density}),{default:ae(()=>[b("span",null,"+ "+Oe(t.table),1)]),_:1},16,["size","density"]))}const Ca=Z(Ta,[["render",Va]]),Ba={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:Ca,SubmitFooter:pa},props:{table:{type:String,required:!0},label:{type:String,default:""},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return this.label||this.table},buttonTitle(){return(this.oldRow?"Edit":"Add")+" "+this.title}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...Ze(rt,["createRow","updateRow"]),validate(){let e=!1;for(const[t,a]of Object.entries(this.row))if(!ze(this.oldRow[t],a)){e=!0;break}if(!e)return!1;const l=this.$refs.form;return l?l.validate().then(({valid:t})=>t).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return Me(this.inputs.EMPTY_ROW);const l={};for(const t of this.inputs.UPDATE_KEYS)l[t]=Me(this.oldRow[t]);return l},doUpdate:function(){const e={};for(const[l,t]of Object.entries(this.row))ze(this.oldRow[l],t)||(e[l]=t);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:l})=>{if(l)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function Fa(e,l,t,a,n,o){const i=se("AdminCreateUpdateButton"),r=se("SubmitFooter");return N(),M(Sa,V({modelValue:n.showDialog,"onUpdate:modelValue":l[1]||(l[1]=s=>n.showDialog=s),transition:"scale-transition"},e.$attrs),{activator:ae(({props:s})=>[S(i,V({update:!!t.oldRow,table:t.table,label:t.label},s,{size:t.size,density:t.density,title:o.buttonTitle}),null,16,["update","table","label","size","density","title"])]),default:ae(()=>[S(xa,{ref:"form",class:"cuForm"},{default:ae(()=>[b("h2",null,Oe(o.title),1),(N(),M(Ut(t.inputs),{"old-row":t.oldRow,onChange:o.change},null,40,["old-row","onChange"])),S(r,{verb:o.verb,table:t.table,label:t.label,disabled:!n.submitButtonEnabled,onSubmit:o.submit,onCancel:l[0]||(l[0]=s=>n.showDialog=!1)},null,8,["verb","table","label","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Tl=Z(Ba,[["render",Fa],["__scopeId","data-v-b61575f9"]]),Ra={name:"GroupChip",props:{titleKey:{type:String,default:""},groupType:{type:Boolean,default:void 0},item:{type:Object,default:void 0}},computed:{classes(){let e={};return this.groupType&&this.item&&(e.include=!this.item.exclude,e.exclude=this.item.exclude),e},text(){return this.item&&this.titleKey?this.item[this.titleKey]:""},value(){if(this.item)return this.groupType?this.item.exclude:this.item.value}}};function Aa(e,l,t,a,n,o){return N(),M(st,{class:J(o.classes),text:o.text,value:o.value},null,8,["class","text","value"])}const ut=Z(Ra,[["render",Aa],["__scopeId","data-v-fe7786ef"]]),Ea={name:"AdminRelationPicker",components:{GroupChip:ut},props:{objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{vuetifyItems(){const e=[];for(const l of this.objs)e.push({...l,value:l.pk,title:l[this.titleKey]});return e}}};function Oa(e,l,t,a,n,o){const i=se("GroupChip");return N(),M(Ne,V({chips:!0,"closable-chips":!0,density:"compact",multiple:!0,items:o.vuetifyItems},e.$attrs),{chip:ae(({item:r})=>[S(i,{"title-key":"title",item:r,"group-type":t.groupType},null,8,["item","group-type"])]),_:1},16,["items"])}const Vl=Z(Ea,[["render",Oa]]);function $a(){const e=Y([]);Wt(()=>e.value=[]);function l(t,a){e.value[a]=t}return{refs:e,updateRef:l}}const La=B({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:j,default:"$first"},prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},lastIcon:{type:j,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ma(),...Zt(),...va(),...fa(),...ca(),...da(),...ua({tag:"nav"}),...Xt(),...ia({variant:"text"})},"VPagination"),Qe=U()({name:"VPagination",props:La(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,l){let{slots:t,emit:a}=l;const n=Q(e,"modelValue"),{t:o,n:i}=oe(),{isRtl:r}=Yt(),{themeClasses:s}=Jt(e),{width:u}=pe(),f=fe(-1);ve(void 0,{scoped:!0});const{resizeRef:g}=Qt(y=>{if(!y.length)return;const{target:h,contentRect:c}=y[0],P=h.querySelector(".v-pagination__list > *");if(!P)return;const T=c.width,L=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;f.value=w(T,L)}),d=_(()=>parseInt(e.length,10)),v=_(()=>parseInt(e.start,10)),x=_(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):f.value>=0?f.value:w(u.value,58));function w(y,h){const c=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((y-h*c)/h).toFixed(2))))}const m=_(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(x.value<=0)return[];if(x.value===1)return[n.value];if(d.value<=x.value)return ie(d.value,v.value);const y=x.value%2===0,h=y?x.value/2:Math.floor(x.value/2),c=y?h:h+1,P=d.value-h;if(c-n.value>=0)return[...ie(Math.max(1,x.value-1),v.value),e.ellipsis,d.value];if(n.value-P>=(y?1:0)){const T=x.value-1,L=d.value-T+v.value;return[v.value,e.ellipsis,...ie(T,L)]}else{const T=Math.max(1,x.value-2),L=T===1?n.value:n.value-Math.ceil(T/2)+v.value;return[v.value,e.ellipsis,...ie(T,L),e.ellipsis,d.value]}});function C(y,h,c){y.preventDefault(),n.value=h,c&&a(c,h)}const{refs:p,updateRef:D}=$a();ve({VPaginationBtn:{color:I(()=>e.color),border:I(()=>e.border),density:I(()=>e.density),size:I(()=>e.size),variant:I(()=>e.variant),rounded:I(()=>e.rounded),elevation:I(()=>e.elevation)}});const F=_(()=>m.value.map((y,h)=>{const c=P=>D(P,h);if(typeof y=="string")return{isActive:!1,key:`ellipsis-${h}`,page:y,props:{ref:c,ellipsis:!0,icon:!0,disabled:!0}};{const P=y===n.value;return{isActive:P,key:y,page:i(y),props:{ref:c,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:P?e.activeColor:e.color,"aria-current":P,"aria-label":o(P?e.currentPageAriaLabel:e.pageAriaLabel,y),onClick:T=>C(T,y)}}}})),k=_(()=>{const y=!!e.disabled||n.value<=v.value,h=!!e.disabled||n.value>=v.value+d.value-1;return{first:e.showFirstLastPage?{icon:r.value?e.lastIcon:e.firstIcon,onClick:c=>C(c,v.value,"first"),disabled:y,"aria-label":o(e.firstAriaLabel),"aria-disabled":y}:void 0,prev:{icon:r.value?e.nextIcon:e.prevIcon,onClick:c=>C(c,n.value-1,"prev"),disabled:y,"aria-label":o(e.previousAriaLabel),"aria-disabled":y},next:{icon:r.value?e.prevIcon:e.nextIcon,onClick:c=>C(c,n.value+1,"next"),disabled:h,"aria-label":o(e.nextAriaLabel),"aria-disabled":h},last:e.showFirstLastPage?{icon:r.value?e.firstIcon:e.lastIcon,onClick:c=>C(c,v.value+d.value-1,"last"),disabled:h,"aria-label":o(e.lastAriaLabel),"aria-disabled":h}:void 0}});function R(){const y=n.value-v.value;p.value[y]?.$el.focus()}function $(y){y.key===qe.left&&!e.disabled&&n.value>Number(e.start)?(n.value=n.value-1,Ke(R)):y.key===qe.right&&!e.disabled&&n.value<v.value+d.value-1&&(n.value=n.value+1,Ke(R))}return ee(()=>S(e.tag,{ref:g,class:J(["v-pagination",s.value,e.class]),style:et(e.style),role:"navigation","aria-label":o(e.ariaLabel),onKeydown:$,"data-test":"v-pagination-root"},{default:()=>[b("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&b("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[t.first?t.first(k.value.first):S(z,V({_as:"VPaginationBtn"},k.value.first),null)]),b("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[t.prev?t.prev(k.value.prev):S(z,V({_as:"VPaginationBtn"},k.value.prev),null)]),F.value.map((y,h)=>b("li",{key:y.key,class:J(["v-pagination__item",{"v-pagination__item--is-active":y.isActive}]),"data-test":"v-pagination-item"},[t.item?t.item(y):S(z,V({_as:"VPaginationBtn"},y.props),{default:()=>[y.page]})])),b("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[t.next?t.next(k.value.next):S(z,V({_as:"VPaginationBtn"},k.value.next),null)]),e.showFirstLastPage&&b("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[t.last?t.last(k.value.last):S(z,V({_as:"VPaginationBtn"},k.value.last),null)])])]})),{}}}),Na=B({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),dt=Symbol.for("vuetify:data-table-pagination");function Ga(e){const l=Q(e,"page",void 0,a=>Number(a??1)),t=Q(e,"itemsPerPage",void 0,a=>Number(a??10));return{page:l,itemsPerPage:t}}function Ha(e){const{page:l,itemsPerPage:t,itemsLength:a}=e,n=_(()=>t.value===-1?0:t.value*(l.value-1)),o=_(()=>t.value===-1?a.value:Math.min(a.value,n.value+t.value)),i=_(()=>t.value===-1||a.value===0?1:Math.ceil(a.value/t.value));$e([l,i],()=>{l.value>i.value&&(l.value=i.value)});function r(d){t.value=d,l.value=1}function s(){l.value=Fe(l.value+1,1,i.value)}function u(){l.value=Fe(l.value-1,1,i.value)}function f(d){l.value=Fe(d,1,i.value)}const g={page:l,itemsPerPage:t,startIndex:n,stopIndex:o,pageCount:i,itemsLength:a,nextPage:s,prevPage:u,setPage:f,setItemsPerPage:r};return ne(dt,g),g}function ja(){const e=le(dt);if(!e)throw new Error("Missing pagination!");return e}function za(e){const l=tt("usePaginatedItems"),{items:t,startIndex:a,stopIndex:n,itemsPerPage:o}=e,i=_(()=>o.value<=0?t.value:t.value.slice(a.value,n.value));return $e(i,r=>{l.emit("update:currentItems",r)},{immediate:!0}),{paginatedItems:i}}const ct=B({prevIcon:{type:j,default:"$prev"},nextIcon:{type:j,default:"$next"},firstIcon:{type:j,default:"$first"},lastIcon:{type:j,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Xe=U()({name:"VDataTableFooter",props:ct(),setup(e,l){let{slots:t}=l;const{t:a}=oe(),{page:n,pageCount:o,startIndex:i,stopIndex:r,itemsLength:s,itemsPerPage:u,setItemsPerPage:f}=ja(),g=_(()=>e.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?a("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?a(d.title):d.title}));return ee(()=>{const d=Qe.filterProps(e);return b("div",{class:"v-data-table-footer"},[t.prepend?.(),b("div",{class:"v-data-table-footer__items-per-page"},[b("span",{"aria-label":a(e.itemsPerPageText)},[a(e.itemsPerPageText)]),S(Ne,{items:g.value,modelValue:u.value,"onUpdate:modelValue":v=>f(Number(v)),density:"compact",variant:"outlined","hide-details":!0},null)]),b("div",{class:"v-data-table-footer__info"},[b("div",null,[a(e.pageText,s.value?i.value+1:0,r.value,s.value)])]),b("div",{class:"v-data-table-footer__pagination"},[S(Qe,V({modelValue:n.value,"onUpdate:modelValue":v=>n.value=v,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:o.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},d),null)])])}),{}}}),be=ea({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,l)=>{let{slots:t}=l;const a=e.tag??"td",n=typeof e.fixed=="string"?e.fixed:e.fixed?"start":"none";return S(a,{class:J(["v-data-table__td",{"v-data-table-column--fixed":n==="start","v-data-table-column--fixed-end":n==="end","v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`]),style:{height:A(e.height),width:A(e.width),maxWidth:A(e.maxWidth),left:n==="start"?A(e.fixedOffset||null):void 0,right:n==="end"?A(e.fixedEndOffset||null):void 0}},{default:()=>[t.default?.()]})}),Ma=B({headers:Array},"DataTable-header"),ft=Symbol.for("vuetify:data-table-headers"),vt={title:"",sortable:!1},qa={...vt,width:48};function Ka(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(t=>({element:t,priority:0}));return{enqueue:(t,a)=>{let n=!1;for(let o=0;o<l.length;o++)if(l[o].priority>a){l.splice(o,0,{element:t,priority:a}),n=!0;break}n||l.push({element:t,priority:a})},size:()=>l.length,count:()=>{let t=0;if(!l.length)return 0;const a=Math.floor(l[0].priority);for(let n=0;n<l.length;n++)Math.floor(l[n].priority)===a&&(t+=1);return t},dequeue:()=>l.shift()}}function Ee(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)l.push(e);else for(const t of e.children)Ee(t,l);return l}function mt(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const t of e)t.key&&l.add(t.key),t.children&&mt(t.children,l);return l}function Ua(e){if(e.key){if(e.key==="data-table-group")return vt;if(["data-table-expand","data-table-select"].includes(e.key))return qa}}function He(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(l,...e.children.map(t=>He(t,l+1))):l}function Wa(e){let l=!1;function t(r,s){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(!r)return;u!=="none"&&(r.fixed=u),r.fixed===!0&&(r.fixed="start");const f=s==="start"?r.children?.toReversed():r.children;if(r.fixed===s)if(f)for(const g of f)t(g,s,s);else!l&&s==="start"?r.lastFixed=!0:!l&&s==="end"?r.firstFixedEnd=!0:isNaN(Number(r.width))?la(`Multiple fixed columns should have a static width (key: ${r.key})`):r.minWidth=Math.max(Number(r.width)||0,Number(r.minWidth)||0),l=!0;else if(f)for(const g of f)t(g,s);else l=!1}for(const r of e.toReversed())t(r,"start");for(const r of e)t(r,"end");function a(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return s;if(r.children){r.fixedOffset=s;for(const u of r.children)s=a(u,s)}else r.fixed&&r.fixed!=="end"&&(r.fixedOffset=s,s+=parseFloat(r.width||"0")||0);return s}let n=0;for(const r of e)n=a(r,n);function o(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return s;if(r.children){r.fixedEndOffset=s;for(const u of r.children)s=o(u,s)}else r.fixed==="end"&&(r.fixedEndOffset=s,s+=parseFloat(r.width||"0")||0);return s}let i=0;for(const r of e.toReversed())i=o(r,i)}function Ya(e,l){const t=[];let a=0;const n=Ka(e);for(;n.size()>0;){let i=n.count();const r=[];let s=1;for(;i>0;){const{element:u,priority:f}=n.dequeue(),g=l-a-He(u);if(r.push({...u,rowspan:g??1,colspan:u.children?Ee(u).length:1}),u.children)for(const d of u.children){const v=f%1+s/Math.pow(10,a+2);n.enqueue(d,a+g+v)}s+=1,i-=1}a+=1,t.push(r)}return{columns:e.map(i=>Ee(i)).flat(),headers:t}}function gt(e){const l=[];for(const t of e){const a={...Ua(t),...t},n=a.key??(typeof a.value=="string"?a.value:null),o=a.value??n??null,i={...a,key:n,value:o,sortable:a.sortable??(a.key!=null||!!a.sort),children:a.children?gt(a.children):void 0};l.push(i)}return l}function bt(e,l){const t=Y([]),a=Y([]),n=Y({}),o=Y({}),i=Y({});ta(()=>{const u=(e.headers||Object.keys(e.items[0]??{}).map(w=>({key:w,title:aa(w)}))).slice(),f=mt(u);l?.groupBy?.value.length&&!f.has("data-table-group")&&u.unshift({key:"data-table-group",title:"Group"}),l?.showSelect?.value&&!f.has("data-table-select")&&u.unshift({key:"data-table-select"}),l?.showExpand?.value&&!f.has("data-table-expand")&&u.push({key:"data-table-expand"});const g=gt(u);Wa(g);const d=Math.max(...g.map(w=>He(w)))+1,v=Ya(g,d);t.value=v.headers,a.value=v.columns;const x=v.headers.flat(1);for(const w of x)w.key&&(w.sortable&&(w.sort&&(n.value[w.key]=w.sort),w.sortRaw&&(o.value[w.key]=w.sortRaw)),w.filter&&(i.value[w.key]=w.filter))});const r={headers:t,columns:a,sortFunctions:n,sortRawFunctions:o,filterFunctions:i};return ne(ft,r),r}function xe(){const e=le(ft);if(!e)throw new Error("Missing headers!");return e}const Ja={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:l,value:t}=e;return new Set(t?[l[0]?.value]:[])},selectAll:e=>{let{selected:l}=e;return l}},ht={showSelectAll:!0,allSelected:e=>{let{currentPage:l}=e;return l},select:e=>{let{items:l,value:t,selected:a}=e;for(const n of l)t?a.add(n.value):a.delete(n.value);return a},selectAll:e=>{let{value:l,currentPage:t,selected:a}=e;return ht.select({items:t,value:l,selected:a})}},yt={showSelectAll:!0,allSelected:e=>{let{allItems:l}=e;return l},select:e=>{let{items:l,value:t,selected:a}=e;for(const n of l)t?a.add(n.value):a.delete(n.value);return a},selectAll:e=>{let{value:l,allItems:t,selected:a}=e;return yt.select({items:t,value:l,selected:a})}},Qa=B({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:at}},"DataTable-select"),pt=Symbol.for("vuetify:data-table-selection");function xt(e,l){let{allItems:t,currentPage:a}=l;const n=Q(e,"modelValue",e.modelValue,p=>new Set(Re(p).map(D=>t.value.find(F=>e.valueComparator(D,F.value))?.value??D)),p=>[...p.values()]),o=_(()=>t.value.filter(p=>p.selectable)),i=_(()=>a.value.filter(p=>p.selectable)),r=_(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Ja;case"all":return yt;case"page":default:return ht}}),s=fe(null);function u(p){return Re(p).every(D=>n.value.has(D.value))}function f(p){return Re(p).some(D=>n.value.has(D.value))}function g(p,D){const F=r.value.select({items:p,value:D,selected:new Set(n.value)});n.value=F}function d(p,D,F){const k=[];if(D=D??a.value.findIndex(R=>R.value===p.value),e.selectStrategy!=="single"&&F?.shiftKey&&s.value!==null){const[R,$]=[s.value,D].sort((y,h)=>y-h);k.push(...a.value.slice(R,$+1).filter(y=>y.selectable))}else k.push(p),s.value=D;g(k,!u([p]))}function v(p){const D=r.value.selectAll({value:p,allItems:o.value,currentPage:i.value,selected:new Set(n.value)});n.value=D}const x=_(()=>n.value.size>0),w=_(()=>{const p=r.value.allSelected({allItems:o.value,currentPage:i.value});return!!p.length&&u(p)}),m=I(()=>r.value.showSelectAll),C={toggleSelect:d,select:g,selectAll:v,isSelected:u,isSomeSelected:f,someSelected:x,allSelected:w,showSelectAll:m,lastSelectedIndex:s,selectStrategy:r};return ne(pt,C),C}function Se(){const e=le(pt);if(!e)throw new Error("Missing selection!");return e}const Xa=B({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),St=Symbol.for("vuetify:data-table-sort");function wt(e){const l=Q(e,"sortBy"),t=I(()=>e.mustSort),a=I(()=>e.multiSort);return{sortBy:l,mustSort:t,multiSort:a}}function Pt(e){const{sortBy:l,mustSort:t,multiSort:a,page:n}=e,o=s=>{if(s.key==null)return;let u=l.value.map(g=>({...g}))??[];const f=u.find(g=>g.key===s.key);f?f.order==="desc"?t.value&&u.length===1?f.order="asc":u=u.filter(g=>g.key!==s.key):f.order="desc":a.value?u.push({key:s.key,order:"asc"}):u=[{key:s.key,order:"asc"}],l.value=u,n&&(n.value=1)};function i(s){return!!l.value.find(u=>u.key===s.key)}const r={sortBy:l,toggleSort:o,isSorted:i};return ne(St,r),r}function kt(){const e=le(St);if(!e)throw new Error("Missing sort!");return e}function _t(e,l,t,a){const n=oe();return{sortedItems:_(()=>t.value.length?Za(l.value,t.value,n.current.value,{transform:a?.transform,sortFunctions:{...e.customKeySort,...a?.sortFunctions?.value},sortRawFunctions:a?.sortRawFunctions?.value}):l.value)}}function Za(e,l,t,a){const n=new Intl.Collator(t,{sensitivity:"accent",usage:"sort"});return e.map(i=>[i,a?.transform?a.transform(i):i]).sort((i,r)=>{for(let s=0;s<l.length;s++){let u=!1;const f=l[s].key,g=l[s].order??"asc";if(g===!1)continue;let d=me(i[1],f),v=me(r[1],f),x=i[0].raw,w=r[0].raw;if(g==="desc"&&([d,v]=[v,d],[x,w]=[w,x]),a?.sortRawFunctions?.[f]){const m=a.sortRawFunctions[f](x,w);if(m==null)continue;if(u=!0,m)return m}if(a?.sortFunctions?.[f]){const m=a.sortFunctions[f](d,v);if(m==null)continue;if(u=!0,m)return m}if(!u&&(d instanceof Date&&v instanceof Date&&(d=d.getTime(),v=v.getTime()),[d,v]=[d,v].map(m=>m!=null?m.toString().toLocaleLowerCase():m),d!==v))return ue(d)&&ue(v)?0:ue(d)?-1:ue(v)?1:!isNaN(d)&&!isNaN(v)?Number(d)-Number(v):n.compare(d,v)}return 0}).map(i=>{let[r]=i;return r})}const Dt=B({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,sortAscIcon:{type:j,default:"$sortAsc"},sortDescIcon:{type:j,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...Le(),...ya()},"VDataTableHeaders"),he=U()({name:"VDataTableHeaders",props:Dt(),setup(e,l){let{slots:t}=l;const{t:a}=oe(),{toggleSort:n,sortBy:o,isSorted:i}=kt(),{someSelected:r,allSelected:s,selectAll:u,showSelectAll:f}=Se(),{columns:g,headers:d}=xe(),{loaderClasses:v}=ga(e);function x(h,c){if(!(e.sticky||e.fixedHeader)&&!h.fixed)return;const P=typeof h.fixed=="string"?h.fixed:h.fixed?"start":"none";return{position:"sticky",left:P==="start"?A(h.fixedOffset):void 0,right:P==="end"?A(h.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${c})`:void 0}}function w(h,c){h.key==="Enter"&&!e.disableSort&&n(c)}function m(h){const c=o.value.find(P=>P.key===h.key);return c?c.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:C,backgroundColorStyles:p}=ba(()=>e.color),{displayClasses:D,mobile:F}=pe(e),k=_(()=>({headers:d.value,columns:g.value,toggleSort:n,isSorted:i,sortBy:o.value,someSelected:r.value,allSelected:s.value,selectAll:u,getSortIcon:m})),R=_(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},D.value,v.value]),$=h=>{let{column:c,x:P,y:T}=h;const L=c.key==="data-table-select"||c.key==="data-table-expand",re=V(e.headerProps??{},c.headerProps??{});return S(be,V({tag:"th",align:c.align,class:[{"v-data-table__th--sortable":c.sortable&&!e.disableSort,"v-data-table__th--sorted":i(c),"v-data-table__th--fixed":c.fixed},...R.value],style:{width:A(c.width),minWidth:A(c.minWidth),maxWidth:A(c.maxWidth),...x(c,T)},colspan:c.colspan,rowspan:c.rowspan,fixed:c.fixed,nowrap:c.nowrap,lastFixed:c.lastFixed,firstFixedEnd:c.firstFixedEnd,noPadding:L,tabindex:c.sortable?0:void 0,onClick:c.sortable?()=>n(c):void 0,onKeydown:c.sortable?q=>w(q,c):void 0},re),{default:()=>{const q=`header.${c.key}`,K={column:c,selectAll:u,isSorted:i,toggleSort:n,sortBy:o.value,someSelected:r.value,allSelected:s.value,getSortIcon:m};return t[q]?t[q](K):c.key==="data-table-select"?t["header.data-table-select"]?.(K)??(f.value&&S(Ge,{modelValue:s.value,indeterminate:r.value&&!s.value,"onUpdate:modelValue":u},null)):b("div",{class:"v-data-table-header__content"},[b("span",null,[c.title]),c.sortable&&!e.disableSort&&S(Ye,{key:"icon",class:"v-data-table-header__sort-icon",icon:m(c)},null),e.multiSort&&i(c)&&b("div",{key:"badge",class:J(["v-data-table-header__sort-badge",...C.value]),style:et(p.value)},[o.value.findIndex(W=>W.key===c.key)+1])])}})},y=()=>{const h=_(()=>g.value.filter(P=>P?.sortable&&!e.disableSort)),c=_(()=>{if(g.value.find(T=>T.key==="data-table-select")!=null)return s.value?"$checkboxOn":r.value?"$checkboxIndeterminate":"$checkboxOff"});return S(be,V({tag:"th",class:[...R.value],colspan:d.value.length+1},e.headerProps),{default:()=>[b("div",{class:"v-data-table-header__content"},[S(Ne,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:h.value,label:a("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>o.value=[],appendIcon:c.value,"onClick:append":()=>u(!s.value)},{...t,chip:P=>S(st,{onClick:P.item.raw?.sortable?()=>n(P.item.raw):void 0,onMousedown:T=>{T.preventDefault(),T.stopPropagation()}},{default:()=>[P.item.title,S(Ye,{class:J(["v-data-table__td-sort-icon",i(P.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:m(P.item.raw),size:"small"},null)]})})])]})};ee(()=>F.value?b("tr",null,[S(y,null,null)]):b(X,null,[t.headers?t.headers(k.value):d.value.map((h,c)=>b("tr",null,[h.map((P,T)=>S($,{column:P,x:T,y:c},null))])),e.loading&&b("tr",{class:"v-data-table-progress"},[b("th",{colspan:g.value.length},[S(ha,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:t.loader})])])]))}}),It=B({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Tt=Symbol.for("vuetify:data-table-group");function Vt(e){return{groupBy:Q(e,"groupBy")}}function Ct(e){const{disableSort:l,groupBy:t,sortBy:a}=e,n=Y(new Set),o=_(()=>t.value.map(f=>({...f,order:f.order??!1})).concat(l?.value?[]:a.value));function i(f){return n.value.has(f.id)}function r(f){const g=new Set(n.value);i(f)?g.delete(f.id):g.add(f.id),n.value=g}function s(f){function g(d){const v=[];for(const x of d.items)"type"in x&&x.type==="group"?v.push(...g(x)):v.push(x);return[...new Set(v)]}return g({items:f})}const u={sortByWithGroups:o,toggleGroup:r,opened:n,groupBy:t,extractRows:s,isGroupOpen:i};return ne(Tt,u),u}function Bt(){const e=le(Tt);if(!e)throw new Error("Missing group!");return e}function el(e,l){if(!e.length)return[];const t=new Map;for(const a of e){const n=me(a.raw,l);t.has(n)||t.set(n,[]),t.get(n).push(a)}return t}function Ft(e,l){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!l.length)return[];const n=el(e,l[0]),o=[],i=l.slice(1);return n.forEach((r,s)=>{const u=l[0],f=`${a}_${u}_${s}`;o.push({depth:t,id:f,key:u,value:s,items:i.length?Ft(r,i,t+1,f):r,type:"group"})}),o}function Rt(e,l){const t=[];for(const a of e)"type"in a&&a.type==="group"?(a.value!=null&&t.push(a),(l.has(a.id)||a.value==null)&&t.push(...Rt(a.items,l))):t.push(a);return t}function At(e,l,t){return{flatItems:_(()=>{if(!l.value.length)return e.value;const n=Ft(e.value,l.value.map(o=>o.key));return Rt(n,t.value)})}}const tl=B({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),al=U()({name:"VDataTableGroupHeaderRow",props:tl(),setup(e,l){let{slots:t}=l;const{isGroupOpen:a,toggleGroup:n,extractRows:o}=Bt(),{isSelected:i,isSomeSelected:r,select:s}=Se(),{columns:u}=xe(),f=_(()=>o([e.item]));return()=>b("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[u.value.map(g=>{if(g.key==="data-table-group"){const d=a(e.item)?"$expand":"$next",v=()=>n(e.item);return t["data-table-group"]?.({item:e.item,count:f.value.length,props:{icon:d,onClick:v}})??S(be,{class:"v-data-table-group-header-row__column"},{default:()=>[S(z,{size:"small",variant:"text",icon:d,onClick:v},null),b("span",null,[e.item.value]),b("span",null,[Ue("("),f.value.length,Ue(")")])]})}if(g.key==="data-table-select"){const d=i(f.value),v=r(f.value)&&!d,x=w=>s(f.value,w);return t["data-table-select"]?.({props:{modelValue:d,indeterminate:v,"onUpdate:modelValue":x}})??b("td",null,[S(Ge,{modelValue:d,indeterminate:v,"onUpdate:modelValue":x},null)])}return b("td",null,null)})])}}),ll=B({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Et=Symbol.for("vuetify:datatable:expanded");function Ot(e){const l=I(()=>e.expandOnClick),t=Q(e,"expanded",e.expanded,r=>new Set(r),r=>[...r.values()]);function a(r,s){const u=new Set(t.value);s?u.add(r.value):u.delete(r.value),t.value=u}function n(r){return t.value.has(r.value)}function o(r){a(r,!n(r))}const i={expand:a,expanded:t,expandOnClick:l,isExpanded:n,toggleExpand:o};return ne(Et,i),i}function $t(){const e=le(Et);if(!e)throw new Error("foo");return e}const nl=B({index:Number,item:Object,cellProps:[Object,Function],onClick:Ae(),onContextmenu:Ae(),onDblclick:Ae(),...Le()},"VDataTableRow"),Lt=U()({name:"VDataTableRow",props:nl(),setup(e,l){let{slots:t}=l;const{displayClasses:a,mobile:n}=pe(e,"v-data-table__tr"),{isSelected:o,toggleSelect:i,someSelected:r,allSelected:s,selectAll:u}=Se(),{isExpanded:f,toggleExpand:g}=$t(),{toggleSort:d,sortBy:v,isSorted:x}=kt(),{columns:w}=xe();ee(()=>b("tr",{class:J(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},a.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&w.value.map((m,C)=>{const p=e.item,D=`item.${m.key}`,F=`header.${m.key}`,k={index:e.index,item:p.raw,internalItem:p,value:me(p.columns,m.key),column:m,isSelected:o,toggleSelect:i,isExpanded:f,toggleExpand:g},R={column:m,selectAll:u,isSorted:x,toggleSort:d,sortBy:v.value,someSelected:r.value,allSelected:s.value,getSortIcon:()=>""},$=typeof e.cellProps=="function"?e.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value,column:m}):e.cellProps,y=typeof m.cellProps=="function"?m.cellProps({index:k.index,item:k.item,internalItem:k.internalItem,value:k.value}):m.cellProps;return S(be,V({align:m.align,class:{"v-data-table__td--expanded-row":m.key==="data-table-expand","v-data-table__td--select-row":m.key==="data-table-select"},fixed:m.fixed,fixedOffset:m.fixedOffset,fixedEndOffset:m.fixedEndOffset,lastFixed:m.lastFixed,firstFixedEnd:m.firstFixedEnd,maxWidth:n.value?void 0:m.maxWidth,noPadding:m.key==="data-table-select"||m.key==="data-table-expand",nowrap:m.nowrap,width:n.value?void 0:m.width},$,y),{default:()=>{if(m.key==="data-table-select")return t["item.data-table-select"]?.({...k,props:{disabled:!p.selectable,modelValue:o([p]),onClick:de(()=>i(p),["stop"])}})??S(Ge,{disabled:!p.selectable,modelValue:o([p]),onClick:de(c=>i(p,e.index,c),["stop"])},null);if(m.key==="data-table-expand")return t["item.data-table-expand"]?.({...k,props:{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])}})??S(z,{icon:f(p)?"$collapse":"$expand",size:"small",variant:"text",onClick:de(()=>g(p),["stop"])},null);if(t[D]&&!n.value)return t[D](k);const h=Oe(k.value);return n.value?b(X,null,[b("div",{class:"v-data-table__td-title"},[t[F]?.(R)??m.title]),b("div",{class:"v-data-table__td-value"},[t[D]?.(k)??h])]):h}})})]))}}),Nt=B({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Le()},"VDataTableRows"),ye=U()({name:"VDataTableRows",inheritAttrs:!1,props:Nt(),setup(e,l){let{attrs:t,slots:a}=l;const{columns:n}=xe(),{expandOnClick:o,toggleExpand:i,isExpanded:r}=$t(),{isSelected:s,toggleSelect:u}=Se(),{toggleGroup:f,isGroupOpen:g}=Bt(),{t:d}=oe(),{mobile:v}=pe(e);return ee(()=>e.loading&&(!e.items.length||a.loading)?b("tr",{class:"v-data-table-rows-loading",key:"loading"},[b("td",{colspan:n.value.length},[a.loading?.()??d(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?b("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[b("td",{colspan:n.value.length},[a["no-data"]?.()??d(e.noDataText)])]):b(X,null,[e.items.map((x,w)=>{if(x.type==="group"){const p={index:w,item:x,columns:n.value,isExpanded:r,toggleExpand:i,isSelected:s,toggleSelect:u,toggleGroup:f,isGroupOpen:g};return a["group-header"]?a["group-header"](p):S(al,V({key:`group-header_${x.id}`,item:x},Je(t,":group-header",()=>p)),a)}const m={index:w,item:x.raw,internalItem:x,columns:n.value,isExpanded:r,toggleExpand:i,isSelected:s,toggleSelect:u},C={...m,props:V({key:`item_${x.key??x.index}`,onClick:o.value?()=>{i(x)}:void 0,index:w,item:x,cellProps:e.cellProps,mobile:v.value},Je(t,":row",()=>m),typeof e.rowProps=="function"?e.rowProps({item:m.item,index:m.index,internalItem:m.internalItem}):e.rowProps)};return b(X,{key:C.props.key},[a.item?a.item(C):S(Lt,C.props,a),r(x)&&a["expanded-row"]?.(m)])})])),{}}}),rl=B({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function sl(e,l,t,a){const n=e.returnObject?l:ce(l,e.itemValue),o=ce(l,e.itemSelectable,!0),i=a.reduce((r,s)=>(s.key!=null&&(r[s.key]=ce(l,s.value)),r),{});return{type:"item",key:e.returnObject?ce(l,e.itemValue):n,index:t,value:n,selectable:o,columns:i,raw:l}}function ol(e,l,t){return l.map((a,n)=>sl(e,a,n,t))}function Gt(e,l){return{items:_(()=>ol(e,e.items,l.value))}}function Ht(e){let{page:l,itemsPerPage:t,sortBy:a,groupBy:n,search:o}=e;const i=tt("VDataTable"),r=()=>({page:l.value,itemsPerPage:t.value,sortBy:a.value,groupBy:n.value,search:o.value});let s=null;$e(r,u=>{at(s,u)||(s&&s.search!==u.search&&(l.value=1),i.emit("update:options",u),s=u)},{deep:!0,immediate:!0})}const jt=B({...Nt(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...ll(),...It(),...Ma(),...rl(),...Qa(),...Xa(),...Dt(),..._a()},"DataTable"),il=B({...Na(),...jt(),...ot(),...ct()},"VDataTable");U()({name:"VDataTable",props:il(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,l){let{attrs:t,slots:a}=l;const{groupBy:n}=Vt(e),{sortBy:o,multiSort:i,mustSort:r}=wt(e),{page:s,itemsPerPage:u}=Ga(e),{disableSort:f}=lt(e),{columns:g,headers:d,sortFunctions:v,sortRawFunctions:x,filterFunctions:w}=bt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:m}=Gt(e,g),C=I(()=>e.search),{filteredItems:p}=it(e,m,C,{transform:G=>G.columns,customKeyFilter:w}),{toggleSort:D}=Pt({sortBy:o,multiSort:i,mustSort:r,page:s}),{sortByWithGroups:F,opened:k,extractRows:R,isGroupOpen:$,toggleGroup:y}=Ct({groupBy:n,sortBy:o,disableSort:f}),{sortedItems:h}=_t(e,p,F,{transform:G=>({...G.raw,...G.columns}),sortFunctions:v,sortRawFunctions:x}),{flatItems:c}=At(h,n,k),P=_(()=>c.value.length),{startIndex:T,stopIndex:L,pageCount:re,setItemsPerPage:q}=Ha({page:s,itemsPerPage:u,itemsLength:P}),{paginatedItems:K}=za({items:c,startIndex:T,stopIndex:L,itemsPerPage:u}),W=_(()=>R(K.value)),{isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,someSelected:De,allSelected:Ie}=xt(e,{allItems:m,currentPage:W}),{isExpanded:Te,toggleExpand:Ve}=Ot(e);Ht({page:s,itemsPerPage:u,sortBy:o,groupBy:n,search:C}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const E=_(()=>({page:s.value,itemsPerPage:u.value,sortBy:o.value,pageCount:re.value,toggleSort:D,setItemsPerPage:q,someSelected:De.value,allSelected:Ie.value,isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,isExpanded:Te,toggleExpand:Ve,isGroupOpen:$,toggleGroup:y,items:W.value.map(G=>G.raw),internalItems:W.value,groupedItems:K.value,columns:g.value,headers:d.value}));return ee(()=>{const G=Xe.filterProps(e),Ce=he.filterProps(e),H=ye.filterProps(e),O=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},O,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>a.top?.(E.value),default:()=>a.default?a.default(E.value):b(X,null,[a.colgroup?.(E.value),!e.hideDefaultHeader&&b("thead",{key:"thead"},[S(he,Ce,a)]),a.thead?.(E.value),!e.hideDefaultBody&&b("tbody",null,[a["body.prepend"]?.(E.value),a.body?a.body(E.value):S(ye,V(t,H,{items:K.value}),a),a["body.append"]?.(E.value)]),a.tbody?.(E.value),a.tfoot?.(E.value)]),bottom:()=>a.bottom?a.bottom(E.value):!e.hideDefaultFooter&&b(X,null,[S(Da,null,null),S(Xe,G,{prepend:a["footer.prepend"]})])})}),{}}});const ul=B({...na(jt(),["hideDefaultFooter"]),...It(),...Pa(),...ot()},"VDataTableVirtual"),dl=U()({name:"VDataTableVirtual",props:ul(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,l){let{attrs:t,slots:a}=l;const{groupBy:n}=Vt(e),{sortBy:o,multiSort:i,mustSort:r}=wt(e),{disableSort:s}=lt(e),{columns:u,headers:f,filterFunctions:g,sortFunctions:d,sortRawFunctions:v}=bt(e,{groupBy:n,showSelect:I(()=>e.showSelect),showExpand:I(()=>e.showExpand)}),{items:x}=Gt(e,u),w=I(()=>e.search),{filteredItems:m}=it(e,x,w,{transform:O=>O.columns,customKeyFilter:g}),{toggleSort:C}=Pt({sortBy:o,multiSort:i,mustSort:r}),{sortByWithGroups:p,opened:D,extractRows:F,isGroupOpen:k,toggleGroup:R}=Ct({groupBy:n,sortBy:o,disableSort:s}),{sortedItems:$}=_t(e,m,p,{transform:O=>({...O.raw,...O.columns}),sortFunctions:d,sortRawFunctions:v}),{flatItems:y}=At($,n,D),h=_(()=>F(y.value)),{isSelected:c,select:P,selectAll:T,toggleSelect:L,someSelected:re,allSelected:q}=xt(e,{allItems:h,currentPage:h}),{isExpanded:K,toggleExpand:W}=Ot(e),{containerRef:we,markerRef:Pe,paddingTop:ke,paddingBottom:_e,computedItems:De,handleItemResize:Ie,handleScroll:Te,handleScrollend:Ve,calculateVisibleItems:E,scrollToIndex:G}=wa(e,y),Ce=_(()=>De.value.map(O=>O.raw));Ht({sortBy:o,page:fe(1),itemsPerPage:fe(-1),groupBy:n,search:w}),ve({VDataTableRows:{hideNoData:I(()=>e.hideNoData),noDataText:I(()=>e.noDataText),loading:I(()=>e.loading),loadingText:I(()=>e.loadingText)}});const H=_(()=>({sortBy:o.value,toggleSort:C,someSelected:re.value,allSelected:q.value,isSelected:c,select:P,selectAll:T,toggleSelect:L,isExpanded:K,toggleExpand:W,isGroupOpen:k,toggleGroup:R,items:h.value.map(O=>O.raw),internalItems:h.value,groupedItems:y.value,columns:u.value,headers:f.value}));return ee(()=>{const O=he.filterProps(e),zt=ye.filterProps(e),Mt=ge.filterProps(e);return S(ge,V({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},Mt,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>a.top?.(H.value),wrapper:()=>b("div",{ref:we,onScrollPassive:Te,onScrollend:Ve,class:"v-table__wrapper",style:{height:A(e.height)}},[b("table",null,[a.colgroup?.(H.value),!e.hideDefaultHeader&&b("thead",{key:"thead"},[S(he,O,a)]),a.thead?.(H.value),!e.hideDefaultBody&&b("tbody",{key:"tbody"},[b("tr",{ref:Pe,style:{height:A(ke.value),border:0}},[b("td",{colspan:u.value.length,style:{height:0,border:0}},null)]),a["body.prepend"]?.(H.value),S(ye,V(t,zt,{items:Ce.value}),{...a,item:te=>S(ka,{key:te.internalItem.index,renderless:!0,"onUpdate:height":Be=>Ie(te.internalItem.index,Be)},{default:Be=>{let{itemRef:je}=Be;return a.item?.({...te,itemRef:je})??S(Lt,V(te.props,{ref:je,key:te.internalItem.index,index:te.internalItem.index}),a)}})}),a["body.append"]?.(H.value),b("tr",{style:{height:A(_e.value),border:0}},[b("td",{colspan:u.value.length,style:{height:0,border:0}},null)])]),a.tbody?.(H.value),a.tfoot?.(H.value)])]),bottom:()=>a.bottom?.(H.value)})}),{calculateVisibleItems:E,scrollToIndex:G}}}),cl={name:"AdminTable"};function fl(e,l,t,a,n,o){return N(),M(dl,{"fixed-header":"","item-value":"pk",mobile:e.$vuetify.display.xs},ra({_:2},[nt(e.$slots,(i,r)=>({name:r,fn:ae(s=>[sa(e.$slots,r,V({props:i},s),void 0,!0)])}))]),1032,["mobile"])}const Cl=Z(cl,[["render",fl],["__scopeId","data-v-8b5d9183"]]),vl={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Ia},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:oa}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...Ze(rt,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function ml(e,l,t,a,n,o){const i=se("ConfirmDialog");return N(),M(i,{icon:n.mdiTrashCan,"title-text":o.titleText,text:t.name,"confirm-text":o.titleText,onConfirm:o.confirm},null,8,["icon","title-text","text","confirm-text","onConfirm"])}const Bl=Z(vl,[["render",ml]]),gl={name:"RelationChips",components:{GroupChip:ut},props:{pks:{type:Array,required:!0},objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{map(){const e={};for(const l of this.objs)e[l.pk]=l;return e}}};function bl(e,l,t,a,n,o){const i=se("GroupChip");return N(),We("span",null,[(N(!0),We(X,null,nt(t.pks,r=>(N(),M(i,{key:r,"title-key":t.titleKey,"group-type":t.groupType,item:o.map[r]},null,8,["title-key","group-type","item"]))),128))])}const Fl=Z(gl,[["render",bl]]);export{Vl as A,ut as G,Fl as R,Tl as a,Bl as b,Cl as c};