codex 1.6.3__py3-none-any.whl → 1.6.5__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 (402) hide show
  1. codex/librarian/importer/importer.py +1 -1
  2. codex/librarian/janitor/cleanup.py +2 -4
  3. codex/librarian/janitor/update.py +10 -9
  4. codex/librarian/search/merge.py +37 -40
  5. codex/librarian/search/remove.py +30 -26
  6. codex/librarian/search/update.py +47 -38
  7. codex/librarian/stats.py +177 -0
  8. codex/librarian/watchdog/events.py +2 -2
  9. codex/serializers/admin/stats.py +77 -65
  10. codex/serializers/fields.py +23 -0
  11. codex/settings/settings.py +3 -3
  12. codex/static_root/assets/{VCheckbox-CXQlndFT.c17c006a62e6.js → VCheckbox-OPrrn8D4.95d8259619aa.js} +1 -1
  13. codex/static_root/assets/VCheckbox-OPrrn8D4.95d8259619aa.js.br +0 -0
  14. codex/static_root/assets/VCheckbox-OPrrn8D4.95d8259619aa.js.gz +0 -0
  15. codex/static_root/assets/{VCheckbox-CXQlndFT.js → VCheckbox-OPrrn8D4.js} +1 -1
  16. codex/static_root/assets/VCheckbox-OPrrn8D4.js.br +0 -0
  17. codex/static_root/assets/VCheckbox-OPrrn8D4.js.gz +0 -0
  18. codex/static_root/assets/{VCheckboxBtn-DB72Bclg.ab414c6ae2b8.js → VCheckboxBtn-BLEc6BrH.e8ae3d2738e2.js} +1 -1
  19. codex/static_root/assets/VCheckboxBtn-BLEc6BrH.e8ae3d2738e2.js.br +0 -0
  20. codex/static_root/assets/VCheckboxBtn-BLEc6BrH.e8ae3d2738e2.js.gz +0 -0
  21. codex/static_root/assets/{VCheckboxBtn-DB72Bclg.js → VCheckboxBtn-BLEc6BrH.js} +1 -1
  22. codex/static_root/assets/VCheckboxBtn-BLEc6BrH.js.br +0 -0
  23. codex/static_root/assets/VCheckboxBtn-BLEc6BrH.js.gz +0 -0
  24. codex/static_root/assets/{VCombobox-BDcFPzYf.0b80447cd638.js → VCombobox-C18LIWGs.2a41fab61075.js} +1 -1
  25. codex/static_root/assets/VCombobox-C18LIWGs.2a41fab61075.js.br +0 -0
  26. codex/static_root/assets/VCombobox-C18LIWGs.2a41fab61075.js.gz +0 -0
  27. codex/static_root/assets/{VCombobox-BDcFPzYf.js → VCombobox-C18LIWGs.js} +1 -1
  28. codex/static_root/assets/VCombobox-C18LIWGs.js.br +0 -0
  29. codex/static_root/assets/VCombobox-C18LIWGs.js.gz +0 -0
  30. codex/static_root/assets/{VDialog-BB4zqrGw.2decc14ea597.js → VDialog-DPlcZ188.9398019bd69c.js} +1 -1
  31. codex/static_root/assets/VDialog-DPlcZ188.9398019bd69c.js.br +0 -0
  32. codex/static_root/assets/VDialog-DPlcZ188.9398019bd69c.js.gz +0 -0
  33. codex/static_root/assets/{VDialog-BB4zqrGw.js → VDialog-DPlcZ188.js} +1 -1
  34. codex/static_root/assets/VDialog-DPlcZ188.js.br +0 -0
  35. codex/static_root/assets/VDialog-DPlcZ188.js.gz +0 -0
  36. codex/static_root/assets/{VExpansionPanels-SZc735F5.19004a0eba16.js → VExpansionPanels-BrAdxiR-.f5e7507958b2.js} +1 -1
  37. codex/static_root/assets/VExpansionPanels-BrAdxiR-.f5e7507958b2.js.br +0 -0
  38. codex/static_root/assets/VExpansionPanels-BrAdxiR-.f5e7507958b2.js.gz +0 -0
  39. codex/static_root/assets/{VExpansionPanels-SZc735F5.js → VExpansionPanels-BrAdxiR-.js} +1 -1
  40. codex/static_root/assets/VExpansionPanels-BrAdxiR-.js.br +0 -0
  41. codex/static_root/assets/VExpansionPanels-BrAdxiR-.js.gz +0 -0
  42. codex/static_root/assets/{VRadioGroup-tFEuhFRq.774e14a4945a.js → VRadioGroup-BWf1qZO1.ee8a1b8d589d.js} +1 -1
  43. codex/static_root/assets/VRadioGroup-BWf1qZO1.ee8a1b8d589d.js.br +0 -0
  44. codex/static_root/assets/VRadioGroup-BWf1qZO1.ee8a1b8d589d.js.gz +0 -0
  45. codex/static_root/assets/{VRadioGroup-tFEuhFRq.js → VRadioGroup-BWf1qZO1.js} +1 -1
  46. codex/static_root/assets/VRadioGroup-BWf1qZO1.js.br +0 -0
  47. codex/static_root/assets/VRadioGroup-BWf1qZO1.js.gz +0 -0
  48. codex/static_root/assets/{VSelect-Dd5Zy8Uy.f225abf824ff.js → VSelect-BEOlJiRW.2d4996f0d6a3.js} +1 -1
  49. codex/static_root/assets/VSelect-BEOlJiRW.2d4996f0d6a3.js.br +0 -0
  50. codex/static_root/assets/VSelect-BEOlJiRW.2d4996f0d6a3.js.gz +0 -0
  51. codex/static_root/assets/{VSelect-Dd5Zy8Uy.js → VSelect-BEOlJiRW.js} +1 -1
  52. codex/static_root/assets/VSelect-BEOlJiRW.js.br +0 -0
  53. codex/static_root/assets/VSelect-BEOlJiRW.js.gz +0 -0
  54. codex/static_root/assets/{VSelectionControl-DImIQPJV.1f14d2113063.js → VSelectionControl-BpvvZpBd.d83b413a38d1.js} +1 -1
  55. codex/static_root/assets/VSelectionControl-BpvvZpBd.d83b413a38d1.js.br +0 -0
  56. codex/static_root/assets/VSelectionControl-BpvvZpBd.d83b413a38d1.js.gz +0 -0
  57. codex/static_root/assets/{VSelectionControl-DImIQPJV.js → VSelectionControl-BpvvZpBd.js} +1 -1
  58. codex/static_root/assets/VSelectionControl-BpvvZpBd.js.br +0 -0
  59. codex/static_root/assets/VSelectionControl-BpvvZpBd.js.gz +0 -0
  60. codex/static_root/assets/{VSlideGroup-CDaAHRAK.783800d70a8a.js → VSlideGroup-Bv0lRnhB.e0b8f680bcbf.js} +1 -1
  61. codex/static_root/assets/VSlideGroup-Bv0lRnhB.e0b8f680bcbf.js.br +0 -0
  62. codex/static_root/assets/VSlideGroup-Bv0lRnhB.e0b8f680bcbf.js.gz +0 -0
  63. codex/static_root/assets/{VSlideGroup-CDaAHRAK.js → VSlideGroup-Bv0lRnhB.js} +1 -1
  64. codex/static_root/assets/VSlideGroup-Bv0lRnhB.js.br +0 -0
  65. codex/static_root/assets/VSlideGroup-Bv0lRnhB.js.gz +0 -0
  66. codex/static_root/assets/{VTable-CkCZonsu.81e34381271f.js → VTable-Dw1ASmYk.4e3817348a64.js} +1 -1
  67. codex/static_root/assets/VTable-Dw1ASmYk.4e3817348a64.js.br +0 -0
  68. codex/static_root/assets/VTable-Dw1ASmYk.4e3817348a64.js.gz +0 -0
  69. codex/static_root/assets/{VTable-CkCZonsu.js → VTable-Dw1ASmYk.js} +1 -1
  70. codex/static_root/assets/VTable-Dw1ASmYk.js.br +0 -0
  71. codex/static_root/assets/VTable-Dw1ASmYk.js.gz +0 -0
  72. codex/static_root/assets/{VTextField-fNAzFu1M.00dec8623f18.js → VTextField-DhIkxARQ.e688815dc516.js} +1 -1
  73. codex/static_root/assets/VTextField-DhIkxARQ.e688815dc516.js.br +0 -0
  74. codex/static_root/assets/VTextField-DhIkxARQ.e688815dc516.js.gz +0 -0
  75. codex/static_root/assets/{VTextField-fNAzFu1M.js → VTextField-DhIkxARQ.js} +1 -1
  76. codex/static_root/assets/VTextField-DhIkxARQ.js.br +0 -0
  77. codex/static_root/assets/VTextField-DhIkxARQ.js.gz +0 -0
  78. codex/static_root/assets/{VWindowItem-_YBMW1SU.0836924f8c12.js → VWindowItem-IDCZgODl.8c4527097642.js} +1 -1
  79. codex/static_root/assets/VWindowItem-IDCZgODl.8c4527097642.js.br +0 -0
  80. codex/static_root/assets/VWindowItem-IDCZgODl.8c4527097642.js.gz +0 -0
  81. codex/static_root/assets/{VWindowItem-_YBMW1SU.js → VWindowItem-IDCZgODl.js} +1 -1
  82. codex/static_root/assets/VWindowItem-IDCZgODl.js.br +0 -0
  83. codex/static_root/assets/VWindowItem-IDCZgODl.js.gz +0 -0
  84. codex/static_root/assets/{admin-DYmGyJVg.262e6032ee86.js → admin-DQMEj7xy.f249ade8981c.js} +1 -1
  85. codex/static_root/assets/admin-DQMEj7xy.f249ade8981c.js.br +0 -0
  86. codex/static_root/assets/admin-DQMEj7xy.f249ade8981c.js.gz +0 -0
  87. codex/static_root/assets/{admin-DYmGyJVg.js → admin-DQMEj7xy.js} +1 -1
  88. codex/static_root/assets/admin-DQMEj7xy.js.br +0 -0
  89. codex/static_root/assets/admin-DQMEj7xy.js.gz +0 -0
  90. codex/static_root/assets/{admin-drawer-panel-c3f3H29x.fa2b12c75b06.js → admin-drawer-panel-Can9sQIk.7021726ce8b9.js} +20 -20
  91. codex/static_root/assets/admin-drawer-panel-Can9sQIk.7021726ce8b9.js.br +0 -0
  92. codex/static_root/assets/admin-drawer-panel-Can9sQIk.7021726ce8b9.js.gz +0 -0
  93. codex/static_root/assets/{admin-drawer-panel-c3f3H29x.js → admin-drawer-panel-Can9sQIk.js} +20 -20
  94. codex/static_root/assets/admin-drawer-panel-Can9sQIk.js.br +0 -0
  95. codex/static_root/assets/admin-drawer-panel-Can9sQIk.js.gz +0 -0
  96. codex/static_root/assets/{browser-Ck3zWCOk.d98c77747e6d.js → browser-BOPyA0wB.b69c491ad88e.js} +1 -1
  97. codex/static_root/assets/browser-BOPyA0wB.b69c491ad88e.js.br +0 -0
  98. codex/static_root/assets/browser-BOPyA0wB.b69c491ad88e.js.gz +0 -0
  99. codex/static_root/assets/{browser-Ck3zWCOk.js → browser-BOPyA0wB.js} +1 -1
  100. codex/static_root/assets/browser-BOPyA0wB.js.br +0 -0
  101. codex/static_root/assets/browser-BOPyA0wB.js.gz +0 -0
  102. codex/static_root/assets/{browser-DgawKPSA.c7cf59dc4b21.css → browser-Cy0OgQJC.css} +1 -1
  103. codex/static_root/assets/browser-Cy0OgQJC.css.br +0 -0
  104. codex/static_root/assets/browser-Cy0OgQJC.css.gz +0 -0
  105. codex/static_root/assets/{browser-DgawKPSA.css → browser-Cy0OgQJC.fabbd1aaffcf.css} +1 -1
  106. codex/static_root/assets/browser-Cy0OgQJC.fabbd1aaffcf.css.br +0 -0
  107. codex/static_root/assets/browser-Cy0OgQJC.fabbd1aaffcf.css.gz +0 -0
  108. codex/static_root/assets/{change-password-dialog-BbIO0YI5.2bb0a5dfb190.js → change-password-dialog-BKyyB0i6.81abe7a243de.js} +1 -1
  109. codex/static_root/assets/change-password-dialog-BKyyB0i6.81abe7a243de.js.br +0 -0
  110. codex/static_root/assets/change-password-dialog-BKyyB0i6.81abe7a243de.js.gz +0 -0
  111. codex/static_root/assets/{change-password-dialog-BbIO0YI5.js → change-password-dialog-BKyyB0i6.js} +1 -1
  112. codex/static_root/assets/change-password-dialog-BKyyB0i6.js.br +0 -0
  113. codex/static_root/assets/change-password-dialog-BKyyB0i6.js.gz +0 -0
  114. codex/static_root/assets/{confirm-dialog-BrzuoYAT.a0a1b6364708.js → confirm-dialog-CbDA0K1C.6fca78c3b9bf.js} +1 -1
  115. codex/static_root/assets/confirm-dialog-CbDA0K1C.6fca78c3b9bf.js.br +0 -0
  116. codex/static_root/assets/confirm-dialog-CbDA0K1C.6fca78c3b9bf.js.gz +0 -0
  117. codex/static_root/assets/{confirm-dialog-BrzuoYAT.js → confirm-dialog-CbDA0K1C.js} +1 -1
  118. codex/static_root/assets/confirm-dialog-CbDA0K1C.js.br +0 -0
  119. codex/static_root/assets/confirm-dialog-CbDA0K1C.js.gz +0 -0
  120. codex/static_root/assets/{datetime-column-D8-UeX_p.e33b1556805b.js → datetime-column-lzxYDDvK.055ffa7f271c.js} +1 -1
  121. codex/static_root/assets/datetime-column-lzxYDDvK.055ffa7f271c.js.br +0 -0
  122. codex/static_root/assets/datetime-column-lzxYDDvK.055ffa7f271c.js.gz +0 -0
  123. codex/static_root/assets/{datetime-column-D8-UeX_p.js → datetime-column-lzxYDDvK.js} +1 -1
  124. codex/static_root/assets/datetime-column-lzxYDDvK.js.br +0 -0
  125. codex/static_root/assets/datetime-column-lzxYDDvK.js.gz +0 -0
  126. codex/static_root/assets/{filter-XMAX5Nmg.c6ed87350f7d.js → filter-SD2wRta_.2db402d82ae5.js} +1 -1
  127. codex/static_root/assets/filter-SD2wRta_.2db402d82ae5.js.br +0 -0
  128. codex/static_root/assets/filter-SD2wRta_.2db402d82ae5.js.gz +0 -0
  129. codex/static_root/assets/{filter-XMAX5Nmg.js → filter-SD2wRta_.js} +1 -1
  130. codex/static_root/assets/filter-SD2wRta_.js.br +0 -0
  131. codex/static_root/assets/filter-SD2wRta_.js.gz +0 -0
  132. codex/static_root/assets/flag-tab-Caak9VvH.643528c944e7.js +1 -0
  133. codex/static_root/assets/flag-tab-Caak9VvH.643528c944e7.js.br +0 -0
  134. codex/static_root/assets/flag-tab-Caak9VvH.643528c944e7.js.gz +0 -0
  135. codex/static_root/assets/flag-tab-Caak9VvH.js +1 -0
  136. codex/static_root/assets/flag-tab-Caak9VvH.js.br +0 -0
  137. codex/static_root/assets/flag-tab-Caak9VvH.js.gz +0 -0
  138. codex/static_root/assets/flag-tab-DBqpLKi7.css +1 -0
  139. codex/static_root/assets/flag-tab-DBqpLKi7.css.br +0 -0
  140. codex/static_root/assets/flag-tab-DBqpLKi7.css.gz +0 -0
  141. codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css +1 -0
  142. codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css.br +0 -0
  143. codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css.gz +0 -0
  144. codex/static_root/assets/{group-tab-D9n5gZCA.634223001c44.js → group-tab-DI7cBTNB.8042c34ec394.js} +1 -1
  145. codex/static_root/assets/group-tab-DI7cBTNB.8042c34ec394.js.br +0 -0
  146. codex/static_root/assets/group-tab-DI7cBTNB.8042c34ec394.js.gz +0 -0
  147. codex/static_root/assets/{group-tab-D9n5gZCA.js → group-tab-DI7cBTNB.js} +1 -1
  148. codex/static_root/assets/group-tab-DI7cBTNB.js.br +0 -0
  149. codex/static_root/assets/group-tab-DI7cBTNB.js.gz +0 -0
  150. codex/static_root/assets/{http-error-C_EFLi0c.c7e906206b62.js → http-error-BpbtQXBu.5ac5d9dfb219.js} +1 -1
  151. codex/static_root/assets/http-error-BpbtQXBu.5ac5d9dfb219.js.br +0 -0
  152. codex/static_root/assets/http-error-BpbtQXBu.5ac5d9dfb219.js.gz +0 -0
  153. codex/static_root/assets/{http-error-C_EFLi0c.js → http-error-BpbtQXBu.js} +1 -1
  154. codex/static_root/assets/http-error-BpbtQXBu.js.br +0 -0
  155. codex/static_root/assets/http-error-BpbtQXBu.js.gz +0 -0
  156. codex/static_root/assets/{library-tab-fDxuhPBs.285b36d9cec0.js → library-tab-DFEha1Cd.e0c6cde24a27.js} +1 -1
  157. codex/static_root/assets/library-tab-DFEha1Cd.e0c6cde24a27.js.br +0 -0
  158. codex/static_root/assets/library-tab-DFEha1Cd.e0c6cde24a27.js.gz +0 -0
  159. codex/static_root/assets/{library-tab-fDxuhPBs.js → library-tab-DFEha1Cd.js} +1 -1
  160. codex/static_root/assets/library-tab-DFEha1Cd.js.br +0 -0
  161. codex/static_root/assets/library-tab-DFEha1Cd.js.gz +0 -0
  162. codex/static_root/assets/main-hKTXzzX1.6888db202b7a.js +6 -0
  163. codex/static_root/assets/main-hKTXzzX1.6888db202b7a.js.br +0 -0
  164. codex/static_root/assets/main-hKTXzzX1.6888db202b7a.js.gz +0 -0
  165. codex/static_root/assets/main-hKTXzzX1.js +6 -0
  166. codex/static_root/assets/main-hKTXzzX1.js.br +0 -0
  167. codex/static_root/assets/main-hKTXzzX1.js.gz +0 -0
  168. codex/static_root/assets/{pagination-toolbar-BD6nzIKF.f3ca4874c203.js → pagination-toolbar-nUqE7Y6_.573598728e43.js} +1 -1
  169. codex/static_root/assets/pagination-toolbar-nUqE7Y6_.573598728e43.js.br +0 -0
  170. codex/static_root/assets/pagination-toolbar-nUqE7Y6_.573598728e43.js.gz +0 -0
  171. codex/static_root/assets/{pagination-toolbar-BD6nzIKF.js → pagination-toolbar-nUqE7Y6_.js} +1 -1
  172. codex/static_root/assets/pagination-toolbar-nUqE7Y6_.js.br +0 -0
  173. codex/static_root/assets/pagination-toolbar-nUqE7Y6_.js.gz +0 -0
  174. codex/static_root/assets/{pdf-doc-iF15lKRp.de9a9d394438.js → pdf-doc-LW8r9w5L.0fc8e96441a3.js} +1 -1
  175. codex/static_root/assets/pdf-doc-LW8r9w5L.0fc8e96441a3.js.br +0 -0
  176. codex/static_root/assets/pdf-doc-LW8r9w5L.0fc8e96441a3.js.gz +0 -0
  177. codex/static_root/assets/{pdf-doc-iF15lKRp.js → pdf-doc-LW8r9w5L.js} +1 -1
  178. codex/static_root/assets/pdf-doc-LW8r9w5L.js.br +0 -0
  179. codex/static_root/assets/pdf-doc-LW8r9w5L.js.gz +0 -0
  180. codex/static_root/assets/{reader-5Ja_bAaT.2fe33a3891f6.js → reader-DfCdn4RV.e821068881fd.js} +2 -2
  181. codex/static_root/assets/reader-DfCdn4RV.e821068881fd.js.br +0 -0
  182. codex/static_root/assets/reader-DfCdn4RV.e821068881fd.js.gz +0 -0
  183. codex/static_root/assets/{reader-5Ja_bAaT.js → reader-DfCdn4RV.js} +2 -2
  184. codex/static_root/assets/reader-DfCdn4RV.js.br +0 -0
  185. codex/static_root/assets/reader-DfCdn4RV.js.gz +0 -0
  186. codex/static_root/assets/{relation-chips-CUWkvLNo.3d18d0c09d39.js → relation-chips-iwVvmmvT.9e8ef037d134.js} +1 -1
  187. codex/static_root/assets/relation-chips-iwVvmmvT.9e8ef037d134.js.br +0 -0
  188. codex/static_root/assets/relation-chips-iwVvmmvT.9e8ef037d134.js.gz +0 -0
  189. codex/static_root/assets/{relation-chips-CUWkvLNo.js → relation-chips-iwVvmmvT.js} +1 -1
  190. codex/static_root/assets/relation-chips-iwVvmmvT.js.br +0 -0
  191. codex/static_root/assets/relation-chips-iwVvmmvT.js.gz +0 -0
  192. codex/static_root/assets/{settings-drawer-rn3JdMxA.js → settings-drawer-D_S8wFKC.d68db990933d.js} +2 -2
  193. codex/static_root/assets/settings-drawer-D_S8wFKC.d68db990933d.js.br +0 -0
  194. codex/static_root/assets/settings-drawer-D_S8wFKC.d68db990933d.js.gz +0 -0
  195. codex/static_root/assets/{settings-drawer-rn3JdMxA.a9d7b45c2138.js → settings-drawer-D_S8wFKC.js} +2 -2
  196. codex/static_root/assets/settings-drawer-D_S8wFKC.js.br +0 -0
  197. codex/static_root/assets/settings-drawer-D_S8wFKC.js.gz +0 -0
  198. codex/static_root/assets/stats-tab-CI0u-X7Y.2d1b6a0d4139.css +1 -0
  199. codex/static_root/assets/stats-tab-CI0u-X7Y.2d1b6a0d4139.css.br +0 -0
  200. codex/static_root/assets/stats-tab-CI0u-X7Y.2d1b6a0d4139.css.gz +0 -0
  201. codex/static_root/assets/stats-tab-CI0u-X7Y.css +1 -0
  202. codex/static_root/assets/stats-tab-CI0u-X7Y.css.br +0 -0
  203. codex/static_root/assets/stats-tab-CI0u-X7Y.css.gz +0 -0
  204. codex/static_root/assets/stats-tab-DD5sxuw1.29a98d090716.js +1 -0
  205. codex/static_root/assets/stats-tab-DD5sxuw1.29a98d090716.js.br +0 -0
  206. codex/static_root/assets/stats-tab-DD5sxuw1.29a98d090716.js.gz +0 -0
  207. codex/static_root/assets/stats-tab-DD5sxuw1.js +1 -0
  208. codex/static_root/assets/stats-tab-DD5sxuw1.js.br +0 -0
  209. codex/static_root/assets/stats-tab-DD5sxuw1.js.gz +0 -0
  210. codex/static_root/assets/{task-tab-CbzDX0IR.7b43bdf9cf42.js → task-tab-DDrdraG5.ddc487971339.js} +1 -1
  211. codex/static_root/assets/task-tab-DDrdraG5.ddc487971339.js.br +0 -0
  212. codex/static_root/assets/task-tab-DDrdraG5.ddc487971339.js.gz +0 -0
  213. codex/static_root/assets/{task-tab-CbzDX0IR.js → task-tab-DDrdraG5.js} +1 -1
  214. codex/static_root/assets/task-tab-DDrdraG5.js.br +0 -0
  215. codex/static_root/assets/task-tab-DDrdraG5.js.gz +0 -0
  216. codex/static_root/assets/{unauthorized-CllrtnFV.2a18fab3dd41.js → unauthorized-BMsnj48f.512d881936ab.js} +1 -1
  217. codex/static_root/assets/unauthorized-BMsnj48f.512d881936ab.js.br +0 -0
  218. codex/static_root/assets/unauthorized-BMsnj48f.512d881936ab.js.gz +0 -0
  219. codex/static_root/assets/{unauthorized-CllrtnFV.js → unauthorized-BMsnj48f.js} +1 -1
  220. codex/static_root/assets/unauthorized-BMsnj48f.js.br +0 -0
  221. codex/static_root/assets/unauthorized-BMsnj48f.js.gz +0 -0
  222. codex/static_root/assets/{user-tab-FY1xALpi.05a88f51df4f.js → user-tab-DSq5ht4e.5b70e9642a13.js} +1 -1
  223. codex/static_root/assets/user-tab-DSq5ht4e.5b70e9642a13.js.br +0 -0
  224. codex/static_root/assets/user-tab-DSq5ht4e.5b70e9642a13.js.gz +0 -0
  225. codex/static_root/assets/{user-tab-FY1xALpi.js → user-tab-DSq5ht4e.js} +1 -1
  226. codex/static_root/assets/user-tab-DSq5ht4e.js.br +0 -0
  227. codex/static_root/assets/user-tab-DSq5ht4e.js.gz +0 -0
  228. codex/static_root/{manifest.166aa32817b1.json → manifest.342051b44ea0.json} +216 -216
  229. codex/static_root/manifest.342051b44ea0.json.br +0 -0
  230. codex/static_root/manifest.342051b44ea0.json.gz +0 -0
  231. codex/static_root/manifest.json +216 -216
  232. codex/static_root/manifest.json.br +0 -0
  233. codex/static_root/manifest.json.gz +0 -0
  234. codex/static_root/staticfiles.json +1 -1
  235. codex/urls/root.py +12 -2
  236. codex/views/admin/stats.py +38 -186
  237. codex/views/opds/v1/entry/entry.py +14 -18
  238. codex/views/opds/v1/feed.py +5 -1
  239. codex/views/opds/v1/links.py +1 -0
  240. codex/views/reader/arcs.py +5 -4
  241. {codex-1.6.3.dist-info → codex-1.6.5.dist-info}/METADATA +18 -7
  242. {codex-1.6.3.dist-info → codex-1.6.5.dist-info}/RECORD +245 -245
  243. codex/settings/logging.py +0 -20
  244. codex/static_root/assets/VCheckbox-CXQlndFT.c17c006a62e6.js.br +0 -0
  245. codex/static_root/assets/VCheckbox-CXQlndFT.c17c006a62e6.js.gz +0 -0
  246. codex/static_root/assets/VCheckbox-CXQlndFT.js.br +0 -0
  247. codex/static_root/assets/VCheckbox-CXQlndFT.js.gz +0 -0
  248. codex/static_root/assets/VCheckboxBtn-DB72Bclg.ab414c6ae2b8.js.br +0 -0
  249. codex/static_root/assets/VCheckboxBtn-DB72Bclg.ab414c6ae2b8.js.gz +0 -0
  250. codex/static_root/assets/VCheckboxBtn-DB72Bclg.js.br +0 -0
  251. codex/static_root/assets/VCheckboxBtn-DB72Bclg.js.gz +0 -0
  252. codex/static_root/assets/VCombobox-BDcFPzYf.0b80447cd638.js.br +0 -0
  253. codex/static_root/assets/VCombobox-BDcFPzYf.0b80447cd638.js.gz +0 -0
  254. codex/static_root/assets/VCombobox-BDcFPzYf.js.br +0 -0
  255. codex/static_root/assets/VCombobox-BDcFPzYf.js.gz +0 -0
  256. codex/static_root/assets/VDialog-BB4zqrGw.2decc14ea597.js.br +0 -0
  257. codex/static_root/assets/VDialog-BB4zqrGw.2decc14ea597.js.gz +0 -0
  258. codex/static_root/assets/VDialog-BB4zqrGw.js.br +0 -0
  259. codex/static_root/assets/VDialog-BB4zqrGw.js.gz +0 -0
  260. codex/static_root/assets/VExpansionPanels-SZc735F5.19004a0eba16.js.br +0 -0
  261. codex/static_root/assets/VExpansionPanels-SZc735F5.19004a0eba16.js.gz +0 -0
  262. codex/static_root/assets/VExpansionPanels-SZc735F5.js.br +0 -0
  263. codex/static_root/assets/VExpansionPanels-SZc735F5.js.gz +0 -0
  264. codex/static_root/assets/VRadioGroup-tFEuhFRq.774e14a4945a.js.br +0 -0
  265. codex/static_root/assets/VRadioGroup-tFEuhFRq.774e14a4945a.js.gz +0 -0
  266. codex/static_root/assets/VRadioGroup-tFEuhFRq.js.br +0 -0
  267. codex/static_root/assets/VRadioGroup-tFEuhFRq.js.gz +0 -0
  268. codex/static_root/assets/VSelect-Dd5Zy8Uy.f225abf824ff.js.br +0 -0
  269. codex/static_root/assets/VSelect-Dd5Zy8Uy.f225abf824ff.js.gz +0 -0
  270. codex/static_root/assets/VSelect-Dd5Zy8Uy.js.br +0 -0
  271. codex/static_root/assets/VSelect-Dd5Zy8Uy.js.gz +0 -0
  272. codex/static_root/assets/VSelectionControl-DImIQPJV.1f14d2113063.js.br +0 -0
  273. codex/static_root/assets/VSelectionControl-DImIQPJV.1f14d2113063.js.gz +0 -0
  274. codex/static_root/assets/VSelectionControl-DImIQPJV.js.br +0 -0
  275. codex/static_root/assets/VSelectionControl-DImIQPJV.js.gz +0 -0
  276. codex/static_root/assets/VSlideGroup-CDaAHRAK.783800d70a8a.js.br +0 -0
  277. codex/static_root/assets/VSlideGroup-CDaAHRAK.783800d70a8a.js.gz +0 -0
  278. codex/static_root/assets/VSlideGroup-CDaAHRAK.js.br +0 -0
  279. codex/static_root/assets/VSlideGroup-CDaAHRAK.js.gz +0 -0
  280. codex/static_root/assets/VTable-CkCZonsu.81e34381271f.js.br +0 -0
  281. codex/static_root/assets/VTable-CkCZonsu.81e34381271f.js.gz +0 -0
  282. codex/static_root/assets/VTable-CkCZonsu.js.br +0 -0
  283. codex/static_root/assets/VTable-CkCZonsu.js.gz +0 -0
  284. codex/static_root/assets/VTextField-fNAzFu1M.00dec8623f18.js.br +0 -0
  285. codex/static_root/assets/VTextField-fNAzFu1M.00dec8623f18.js.gz +0 -0
  286. codex/static_root/assets/VTextField-fNAzFu1M.js.br +0 -0
  287. codex/static_root/assets/VTextField-fNAzFu1M.js.gz +0 -0
  288. codex/static_root/assets/VWindowItem-_YBMW1SU.0836924f8c12.js.br +0 -0
  289. codex/static_root/assets/VWindowItem-_YBMW1SU.0836924f8c12.js.gz +0 -0
  290. codex/static_root/assets/VWindowItem-_YBMW1SU.js.br +0 -0
  291. codex/static_root/assets/VWindowItem-_YBMW1SU.js.gz +0 -0
  292. codex/static_root/assets/admin-DYmGyJVg.262e6032ee86.js.br +0 -0
  293. codex/static_root/assets/admin-DYmGyJVg.262e6032ee86.js.gz +0 -0
  294. codex/static_root/assets/admin-DYmGyJVg.js.br +0 -0
  295. codex/static_root/assets/admin-DYmGyJVg.js.gz +0 -0
  296. codex/static_root/assets/admin-drawer-panel-c3f3H29x.fa2b12c75b06.js.br +0 -0
  297. codex/static_root/assets/admin-drawer-panel-c3f3H29x.fa2b12c75b06.js.gz +0 -0
  298. codex/static_root/assets/admin-drawer-panel-c3f3H29x.js.br +0 -0
  299. codex/static_root/assets/admin-drawer-panel-c3f3H29x.js.gz +0 -0
  300. codex/static_root/assets/browser-Ck3zWCOk.d98c77747e6d.js.br +0 -0
  301. codex/static_root/assets/browser-Ck3zWCOk.d98c77747e6d.js.gz +0 -0
  302. codex/static_root/assets/browser-Ck3zWCOk.js.br +0 -0
  303. codex/static_root/assets/browser-Ck3zWCOk.js.gz +0 -0
  304. codex/static_root/assets/browser-DgawKPSA.c7cf59dc4b21.css.br +0 -0
  305. codex/static_root/assets/browser-DgawKPSA.c7cf59dc4b21.css.gz +0 -0
  306. codex/static_root/assets/browser-DgawKPSA.css.br +0 -0
  307. codex/static_root/assets/browser-DgawKPSA.css.gz +0 -0
  308. codex/static_root/assets/change-password-dialog-BbIO0YI5.2bb0a5dfb190.js.br +0 -0
  309. codex/static_root/assets/change-password-dialog-BbIO0YI5.2bb0a5dfb190.js.gz +0 -0
  310. codex/static_root/assets/change-password-dialog-BbIO0YI5.js.br +0 -0
  311. codex/static_root/assets/change-password-dialog-BbIO0YI5.js.gz +0 -0
  312. codex/static_root/assets/confirm-dialog-BrzuoYAT.a0a1b6364708.js.br +0 -0
  313. codex/static_root/assets/confirm-dialog-BrzuoYAT.a0a1b6364708.js.gz +0 -0
  314. codex/static_root/assets/confirm-dialog-BrzuoYAT.js.br +0 -0
  315. codex/static_root/assets/confirm-dialog-BrzuoYAT.js.gz +0 -0
  316. codex/static_root/assets/datetime-column-D8-UeX_p.e33b1556805b.js.br +0 -0
  317. codex/static_root/assets/datetime-column-D8-UeX_p.e33b1556805b.js.gz +0 -0
  318. codex/static_root/assets/datetime-column-D8-UeX_p.js.br +0 -0
  319. codex/static_root/assets/datetime-column-D8-UeX_p.js.gz +0 -0
  320. codex/static_root/assets/filter-XMAX5Nmg.c6ed87350f7d.js.br +0 -0
  321. codex/static_root/assets/filter-XMAX5Nmg.c6ed87350f7d.js.gz +0 -0
  322. codex/static_root/assets/filter-XMAX5Nmg.js.br +0 -0
  323. codex/static_root/assets/filter-XMAX5Nmg.js.gz +0 -0
  324. codex/static_root/assets/flag-tab-BLEUVMot.c14936c90346.js +0 -1
  325. codex/static_root/assets/flag-tab-BLEUVMot.c14936c90346.js.br +0 -0
  326. codex/static_root/assets/flag-tab-BLEUVMot.c14936c90346.js.gz +0 -0
  327. codex/static_root/assets/flag-tab-BLEUVMot.js +0 -1
  328. codex/static_root/assets/flag-tab-BLEUVMot.js.br +0 -0
  329. codex/static_root/assets/flag-tab-BLEUVMot.js.gz +0 -0
  330. codex/static_root/assets/flag-tab-BNwbLfrN.b755a99fff7e.css +0 -1
  331. codex/static_root/assets/flag-tab-BNwbLfrN.b755a99fff7e.css.br +0 -0
  332. codex/static_root/assets/flag-tab-BNwbLfrN.b755a99fff7e.css.gz +0 -0
  333. codex/static_root/assets/flag-tab-BNwbLfrN.css +0 -1
  334. codex/static_root/assets/flag-tab-BNwbLfrN.css.br +0 -0
  335. codex/static_root/assets/flag-tab-BNwbLfrN.css.gz +0 -0
  336. codex/static_root/assets/group-tab-D9n5gZCA.634223001c44.js.br +0 -0
  337. codex/static_root/assets/group-tab-D9n5gZCA.634223001c44.js.gz +0 -0
  338. codex/static_root/assets/group-tab-D9n5gZCA.js.br +0 -0
  339. codex/static_root/assets/group-tab-D9n5gZCA.js.gz +0 -0
  340. codex/static_root/assets/http-error-C_EFLi0c.c7e906206b62.js.br +0 -0
  341. codex/static_root/assets/http-error-C_EFLi0c.c7e906206b62.js.gz +0 -0
  342. codex/static_root/assets/http-error-C_EFLi0c.js.br +0 -0
  343. codex/static_root/assets/http-error-C_EFLi0c.js.gz +0 -0
  344. codex/static_root/assets/library-tab-fDxuhPBs.285b36d9cec0.js.br +0 -0
  345. codex/static_root/assets/library-tab-fDxuhPBs.285b36d9cec0.js.gz +0 -0
  346. codex/static_root/assets/library-tab-fDxuhPBs.js.br +0 -0
  347. codex/static_root/assets/library-tab-fDxuhPBs.js.gz +0 -0
  348. codex/static_root/assets/main-B3MfqYNN.30d1310fc082.js +0 -6
  349. codex/static_root/assets/main-B3MfqYNN.30d1310fc082.js.br +0 -0
  350. codex/static_root/assets/main-B3MfqYNN.30d1310fc082.js.gz +0 -0
  351. codex/static_root/assets/main-B3MfqYNN.js +0 -6
  352. codex/static_root/assets/main-B3MfqYNN.js.br +0 -0
  353. codex/static_root/assets/main-B3MfqYNN.js.gz +0 -0
  354. codex/static_root/assets/pagination-toolbar-BD6nzIKF.f3ca4874c203.js.br +0 -0
  355. codex/static_root/assets/pagination-toolbar-BD6nzIKF.f3ca4874c203.js.gz +0 -0
  356. codex/static_root/assets/pagination-toolbar-BD6nzIKF.js.br +0 -0
  357. codex/static_root/assets/pagination-toolbar-BD6nzIKF.js.gz +0 -0
  358. codex/static_root/assets/pdf-doc-iF15lKRp.de9a9d394438.js.br +0 -0
  359. codex/static_root/assets/pdf-doc-iF15lKRp.de9a9d394438.js.gz +0 -0
  360. codex/static_root/assets/pdf-doc-iF15lKRp.js.br +0 -0
  361. codex/static_root/assets/pdf-doc-iF15lKRp.js.gz +0 -0
  362. codex/static_root/assets/reader-5Ja_bAaT.2fe33a3891f6.js.br +0 -0
  363. codex/static_root/assets/reader-5Ja_bAaT.2fe33a3891f6.js.gz +0 -0
  364. codex/static_root/assets/reader-5Ja_bAaT.js.br +0 -0
  365. codex/static_root/assets/reader-5Ja_bAaT.js.gz +0 -0
  366. codex/static_root/assets/relation-chips-CUWkvLNo.3d18d0c09d39.js.br +0 -0
  367. codex/static_root/assets/relation-chips-CUWkvLNo.3d18d0c09d39.js.gz +0 -0
  368. codex/static_root/assets/relation-chips-CUWkvLNo.js.br +0 -0
  369. codex/static_root/assets/relation-chips-CUWkvLNo.js.gz +0 -0
  370. codex/static_root/assets/settings-drawer-rn3JdMxA.a9d7b45c2138.js.br +0 -0
  371. codex/static_root/assets/settings-drawer-rn3JdMxA.a9d7b45c2138.js.gz +0 -0
  372. codex/static_root/assets/settings-drawer-rn3JdMxA.js.br +0 -0
  373. codex/static_root/assets/settings-drawer-rn3JdMxA.js.gz +0 -0
  374. codex/static_root/assets/stats-tab-B6L-YFRA.1c90593f7b5c.css +0 -1
  375. codex/static_root/assets/stats-tab-B6L-YFRA.1c90593f7b5c.css.br +0 -0
  376. codex/static_root/assets/stats-tab-B6L-YFRA.1c90593f7b5c.css.gz +0 -0
  377. codex/static_root/assets/stats-tab-B6L-YFRA.css +0 -1
  378. codex/static_root/assets/stats-tab-B6L-YFRA.css.br +0 -0
  379. codex/static_root/assets/stats-tab-B6L-YFRA.css.gz +0 -0
  380. codex/static_root/assets/stats-tab-zts2Xsmg.9fb959ccf4da.js +0 -1
  381. codex/static_root/assets/stats-tab-zts2Xsmg.9fb959ccf4da.js.br +0 -0
  382. codex/static_root/assets/stats-tab-zts2Xsmg.9fb959ccf4da.js.gz +0 -0
  383. codex/static_root/assets/stats-tab-zts2Xsmg.js +0 -1
  384. codex/static_root/assets/stats-tab-zts2Xsmg.js.br +0 -0
  385. codex/static_root/assets/stats-tab-zts2Xsmg.js.gz +0 -0
  386. codex/static_root/assets/task-tab-CbzDX0IR.7b43bdf9cf42.js.br +0 -0
  387. codex/static_root/assets/task-tab-CbzDX0IR.7b43bdf9cf42.js.gz +0 -0
  388. codex/static_root/assets/task-tab-CbzDX0IR.js.br +0 -0
  389. codex/static_root/assets/task-tab-CbzDX0IR.js.gz +0 -0
  390. codex/static_root/assets/unauthorized-CllrtnFV.2a18fab3dd41.js.br +0 -0
  391. codex/static_root/assets/unauthorized-CllrtnFV.2a18fab3dd41.js.gz +0 -0
  392. codex/static_root/assets/unauthorized-CllrtnFV.js.br +0 -0
  393. codex/static_root/assets/unauthorized-CllrtnFV.js.gz +0 -0
  394. codex/static_root/assets/user-tab-FY1xALpi.05a88f51df4f.js.br +0 -0
  395. codex/static_root/assets/user-tab-FY1xALpi.05a88f51df4f.js.gz +0 -0
  396. codex/static_root/assets/user-tab-FY1xALpi.js.br +0 -0
  397. codex/static_root/assets/user-tab-FY1xALpi.js.gz +0 -0
  398. codex/static_root/manifest.166aa32817b1.json.br +0 -0
  399. codex/static_root/manifest.166aa32817b1.json.gz +0 -0
  400. {codex-1.6.3.dist-info → codex-1.6.5.dist-info}/LICENSE +0 -0
  401. {codex-1.6.3.dist-info → codex-1.6.5.dist-info}/WHEEL +0 -0
  402. {codex-1.6.3.dist-info → codex-1.6.5.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
1
- import{W as me,E as te,X as be,_ as ye,Z as ge,$ as L,aH as A,aQ as Ce,V as M,aI as xe,aJ as le,T as t,F as N,N as Q,P as O,r as T,S as U,av as oe,b5 as he,bq as ke,h as m,aV as Z,bY as ie,b9 as Ve,bf as H,d6 as J,d4 as _e,bg as Fe,O as Ie,Q as Pe,cD as Se,bh as Be,R as we,G as $e,aC as Re,aD as Te,as as De,a as Ee,dr as Le,L as Ae,aw as pe,cF as Me,dl as Ne,bi as Oe,au as W,ds as Ue,dt as qe,ax as je,b6 as Ke,ay as We,cE as Qe,b8 as Xe,du as Ye,n as ne,dv as ze}from"./admin-drawer-panel-c3f3H29x.js";import{C as Ge}from"./VDialog-BB4zqrGw.js";import{h as He,i as Je,b as Ze,m as et,u as se,j as tt,a as lt,V as ae}from"./VSelectionControl-DImIQPJV.js";const nt={name:"SubmitFooter",components:{ConfirmFooter:Ge},props:{verb:{type:String,required:!0},table:{type:String,required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["cancel","submit"],computed:{...me(te,{errors:e=>e.form.errors,success:e=>e.form.success}),confirmText(){const e=this.label||this.table;return`${this.verb} ${e}`}},beforeMount(){this.clearErrors()},methods:{...be(te,["clearErrors"])}},at={key:0,class:"errors"},ot={key:1,class:"success"},it={key:2};function st(e,o,a,k,l,s){const b=ge("ConfirmFooter");return L(),A("footer",null,[Ce("div",null,[e.errors&&e.errors.length>0?(L(),A("small",at,[(L(!0),A(M,null,xe(e.errors,(V,d)=>(L(),A("div",{key:d},le(V),1))),128))])):e.success?(L(),A("small",ot,le(e.success),1)):(L(),A("small",it," "))]),t(b,{"confirm-text":s.confirmText,disabled:a.disabled,onConfirm:o[0]||(o[0]=V=>e.$emit("submit")),onCancel:o[1]||(o[1]=V=>e.$emit("cancel"))},null,8,["confirm-text","disabled"])])}const xt=ye(nt,[["render",st],["__scopeId","data-v-d960409d"]]),rt=N({...Q(),...He()},"VForm"),ht=O()({name:"VForm",props:rt(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,o){let{slots:a,emit:k}=o;const l=Je(e),s=T();function b(d){d.preventDefault(),l.reset()}function V(d){const c=d,r=l.validate();c.then=r.then.bind(r),c.catch=r.catch.bind(r),c.finally=r.finally.bind(r),k("submit",c),c.defaultPrevented||r.then(F=>{var P;let{valid:p}=F;p&&((P=s.value)==null||P.submit())}),c.preventDefault()}return U(()=>{var d;return t("form",{ref:s,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:b,onSubmit:V},[(d=a.default)==null?void 0:d.call(a,l)])}),oe(l,s)}}),ut=N({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Q(),...he({transition:{component:ke}})},"VCounter"),dt=O()({name:"VCounter",functional:!0,props:ut(),setup(e,o){let{slots:a}=o;const k=m(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return U(()=>t(Ve,{transition:e.transition},{default:()=>[Z(t("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[a.default?a.default({counter:k.value,max:e.max,value:e.value}):k.value]),[[ie,e.active]])]})),{}}}),ct=N({floating:Boolean,...Q()},"VFieldLabel"),K=O()({name:"VFieldLabel",props:ct(),setup(e,o){let{slots:a}=o;return U(()=>t(Ze,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},a)),{}}}),ft=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],re=N({appendInnerIcon:H,bgColor:String,clearable:Boolean,clearIcon:{type:H,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:H,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ft.includes(e)},"onClick:clear":J(),"onClick:appendInner":J(),"onClick:prependInner":J(),...Q(),..._e(),...Fe(),...Ie()},"VField"),ue=O()({name:"VField",inheritAttrs:!1,props:{id:String,...et(),...re()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:a,emit:k,slots:l}=o;const{themeClasses:s}=Pe(e),{loaderClasses:b}=Se(e),{focusClasses:V,isFocused:d,focus:c,blur:r}=se(e),{InputIcon:F}=tt(e),{roundedClasses:p}=Be(e),{rtlClasses:P}=we(),S=m(()=>e.dirty||e.active),C=m(()=>!e.singleLine&&!!(e.label||l.label)),X=$e(),f=m(()=>e.id||`input-${X}`),Y=m(()=>`${f.value}-messages`),q=T(),D=T(),j=T(),n=m(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:y,backgroundColorStyles:g}=Re(Te(e,"bgColor")),{textColorClasses:x,textColorStyles:z}=De(m(()=>e.error||e.disabled?void 0:S.value&&d.value?e.color:e.baseColor));Ee(S,i=>{if(C.value){const u=q.value.$el,h=D.value.$el;requestAnimationFrame(()=>{const _=Le(u),v=h.getBoundingClientRect(),E=v.x-_.x,w=v.y-_.y-(_.height/2-v.height/2),$=v.width/.75,R=Math.abs($-_.width)>1?{maxWidth:Ae($)}:void 0,de=getComputedStyle(u),ee=getComputedStyle(h),ce=parseFloat(de.transitionDuration)*1e3||150,fe=parseFloat(ee.getPropertyValue("--v-field-label-scale")),ve=ee.getPropertyValue("color");u.style.visibility="visible",h.style.visibility="hidden",pe(u,{transform:`translate(${E}px, ${w}px) scale(${fe})`,color:ve,...R},{duration:ce,easing:je,direction:i?"normal":"reverse"}).finished.then(()=>{u.style.removeProperty("visibility"),h.style.removeProperty("visibility")})})}},{flush:"post"});const B=m(()=>({isActive:S,isFocused:d,controlRef:j,blur:r,focus:c}));function G(i){i.target!==document.activeElement&&i.preventDefault()}function I(i){var u;i.key!=="Enter"&&i.key!==" "||(i.preventDefault(),i.stopPropagation(),(u=e["onClick:clear"])==null||u.call(e,new MouseEvent("click")))}return U(()=>{var E,w,$;const i=e.variant==="outlined",u=!!(l["prepend-inner"]||e.prependInnerIcon),h=!!(e.clearable||l.clear),_=!!(l["append-inner"]||e.appendInnerIcon||h),v=()=>l.label?l.label({...B.value,label:e.label,props:{for:f.value}}):e.label;return t("div",W({class:["v-field",{"v-field--active":S.value,"v-field--appended":_,"v-field--center-affix":e.centerAffix??!n.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":u,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!v(),[`v-field--variant-${e.variant}`]:!0},s.value,y.value,V.value,b.value,p.value,P.value,e.class],style:[g.value,e.style],onClick:G},a),[t("div",{class:"v-field__overlay"},null),t(Me,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:l.loader}),u&&t("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&t(F,{key:"prepend-icon",name:"prependInner"},null),(E=l["prepend-inner"])==null?void 0:E.call(l,B.value)]),t("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&C.value&&t(K,{key:"floating-label",ref:D,class:[x.value],floating:!0,for:f.value,style:z.value},{default:()=>[v()]}),t(K,{ref:q,for:f.value},{default:()=>[v()]}),(w=l.default)==null?void 0:w.call(l,{...B.value,props:{id:f.value,class:"v-field__input","aria-describedby":Y.value},focus:c,blur:r})]),h&&t(Ne,{key:"clear"},{default:()=>[Z(t("div",{class:"v-field__clearable",onMousedown:R=>{R.preventDefault(),R.stopPropagation()}},[t(Oe,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[l.clear?l.clear({...B.value,props:{onKeydown:I,onFocus:c,onBlur:r,onClick:e["onClick:clear"]}}):t(F,{name:"clear",onKeydown:I,onFocus:c,onBlur:r},null)]})]),[[ie,e.dirty]])]}),_&&t("div",{key:"append",class:"v-field__append-inner"},[($=l["append-inner"])==null?void 0:$.call(l,B.value),e.appendInnerIcon&&t(F,{key:"append-icon",name:"appendInner"},null)]),t("div",{class:["v-field__outline",x.value],style:z.value},[i&&t(M,null,[t("div",{class:"v-field__outline__start"},null),C.value&&t("div",{class:"v-field__outline__notch"},[t(K,{ref:D,floating:!0,for:f.value},{default:()=>[v()]})]),t("div",{class:"v-field__outline__end"},null)]),n.value&&C.value&&t(K,{ref:D,floating:!0,for:f.value},{default:()=>[v()]})])])}),{controlRef:j}}});function vt(e){const o=Object.keys(ue.props).filter(a=>!Ue(a)&&a!=="class"&&a!=="style");return qe(e,o)}const mt=["color","file","time","date","datetime-local","week","month"],bt=N({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...lt(),...re()},"VTextField"),kt=O()({name:"VTextField",directives:{Intersect:Ke},inheritAttrs:!1,props:bt(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:a,emit:k,slots:l}=o;const s=We(e,"modelValue"),{isFocused:b,focus:V,blur:d}=se(e),c=m(()=>typeof e.counterValue=="function"?e.counterValue(s.value):typeof e.counterValue=="number"?e.counterValue:(s.value??"").toString().length),r=m(()=>{if(a.maxlength)return a.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),F=m(()=>["plain","underlined"].includes(e.variant));function p(n,y){var g,x;!e.autofocus||!n||(x=(g=y[0].target)==null?void 0:g.focus)==null||x.call(g)}const P=T(),S=T(),C=T(),X=m(()=>mt.includes(e.type)||e.persistentPlaceholder||b.value||e.active);function f(){var n;C.value!==document.activeElement&&((n=C.value)==null||n.focus()),b.value||V()}function Y(n){k("mousedown:control",n),n.target!==C.value&&(f(),n.preventDefault())}function q(n){f(),k("click:control",n)}function D(n){n.stopPropagation(),f(),ne(()=>{s.value=null,ze(e["onClick:clear"],n)})}function j(n){var g;const y=n.target;if(s.value=y.value,(g=e.modelModifiers)!=null&&g.trim&&["text","search","password","tel","url"].includes(e.type)){const x=[y.selectionStart,y.selectionEnd];ne(()=>{y.selectionStart=x[0],y.selectionEnd=x[1]})}}return U(()=>{const n=!!(l.counter||e.counter!==!1&&e.counter!=null),y=!!(n||l.details),[g,x]=Qe(a),{modelValue:z,...B}=ae.filterProps(e),G=vt(e);return t(ae,W({ref:P,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":F.value},e.class],style:e.style},g,B,{centerAffix:!F.value,focused:b.value}),{...l,default:I=>{let{id:i,isDisabled:u,isDirty:h,isReadonly:_,isValid:v}=I;return t(ue,W({ref:S,onMousedown:Y,onClick:q,"onClick:clear":D,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},G,{id:i.value,active:X.value||h.value,dirty:h.value||e.dirty,disabled:u.value,focused:b.value,error:v.value===!1}),{...l,default:E=>{let{props:{class:w,...$}}=E;const R=Z(t("input",W({ref:C,value:s.value,onInput:j,autofocus:e.autofocus,readonly:_.value,disabled:u.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:f,onBlur:d},$,x),null),[[Xe("intersect"),{handler:p},null,{once:!0}]]);return t(M,null,[e.prefix&&t("span",{class:"v-text-field__prefix"},[t("span",{class:"v-text-field__prefix__text"},[e.prefix])]),l.default?t("div",{class:w,"data-no-activator":""},[l.default(),R]):Ye(R,{class:w}),e.suffix&&t("span",{class:"v-text-field__suffix"},[t("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:y?I=>{var i;return t(M,null,[(i=l.details)==null?void 0:i.call(l,I),n&&t(M,null,[t("span",null,null),t(dt,{active:e.persistentCounter||b.value,value:c.value,max:r.value,disabled:e.disabled},l.counter)])])}:void 0})}),oe({},P,S,C)}});export{xt as S,kt as V,ht as a,bt as m};
1
+ import{W as me,E as te,X as be,_ as ye,Z as ge,$ as L,aH as A,aQ as Ce,V as M,aI as xe,aJ as le,T as t,F as N,N as Q,P as O,r as T,S as U,av as oe,b5 as he,bq as ke,h as m,aV as Z,bY as ie,b9 as Ve,bf as H,d6 as J,d4 as _e,bg as Fe,O as Ie,Q as Pe,cD as Se,bh as Be,R as we,G as $e,aC as Re,aD as Te,as as De,a as Ee,dr as Le,L as Ae,aw as pe,cF as Me,dl as Ne,bi as Oe,au as W,ds as Ue,dt as qe,ax as je,b6 as Ke,ay as We,cE as Qe,b8 as Xe,du as Ye,n as ne,dv as ze}from"./admin-drawer-panel-Can9sQIk.js";import{C as Ge}from"./VDialog-DPlcZ188.js";import{h as He,i as Je,b as Ze,m as et,u as se,j as tt,a as lt,V as ae}from"./VSelectionControl-BpvvZpBd.js";const nt={name:"SubmitFooter",components:{ConfirmFooter:Ge},props:{verb:{type:String,required:!0},table:{type:String,required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["cancel","submit"],computed:{...me(te,{errors:e=>e.form.errors,success:e=>e.form.success}),confirmText(){const e=this.label||this.table;return`${this.verb} ${e}`}},beforeMount(){this.clearErrors()},methods:{...be(te,["clearErrors"])}},at={key:0,class:"errors"},ot={key:1,class:"success"},it={key:2};function st(e,o,a,k,l,s){const b=ge("ConfirmFooter");return L(),A("footer",null,[Ce("div",null,[e.errors&&e.errors.length>0?(L(),A("small",at,[(L(!0),A(M,null,xe(e.errors,(V,d)=>(L(),A("div",{key:d},le(V),1))),128))])):e.success?(L(),A("small",ot,le(e.success),1)):(L(),A("small",it," "))]),t(b,{"confirm-text":s.confirmText,disabled:a.disabled,onConfirm:o[0]||(o[0]=V=>e.$emit("submit")),onCancel:o[1]||(o[1]=V=>e.$emit("cancel"))},null,8,["confirm-text","disabled"])])}const xt=ye(nt,[["render",st],["__scopeId","data-v-d960409d"]]),rt=N({...Q(),...He()},"VForm"),ht=O()({name:"VForm",props:rt(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,o){let{slots:a,emit:k}=o;const l=Je(e),s=T();function b(d){d.preventDefault(),l.reset()}function V(d){const c=d,r=l.validate();c.then=r.then.bind(r),c.catch=r.catch.bind(r),c.finally=r.finally.bind(r),k("submit",c),c.defaultPrevented||r.then(F=>{var P;let{valid:p}=F;p&&((P=s.value)==null||P.submit())}),c.preventDefault()}return U(()=>{var d;return t("form",{ref:s,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:b,onSubmit:V},[(d=a.default)==null?void 0:d.call(a,l)])}),oe(l,s)}}),ut=N({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Q(),...he({transition:{component:ke}})},"VCounter"),dt=O()({name:"VCounter",functional:!0,props:ut(),setup(e,o){let{slots:a}=o;const k=m(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return U(()=>t(Ve,{transition:e.transition},{default:()=>[Z(t("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[a.default?a.default({counter:k.value,max:e.max,value:e.value}):k.value]),[[ie,e.active]])]})),{}}}),ct=N({floating:Boolean,...Q()},"VFieldLabel"),K=O()({name:"VFieldLabel",props:ct(),setup(e,o){let{slots:a}=o;return U(()=>t(Ze,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},a)),{}}}),ft=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],re=N({appendInnerIcon:H,bgColor:String,clearable:Boolean,clearIcon:{type:H,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:H,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ft.includes(e)},"onClick:clear":J(),"onClick:appendInner":J(),"onClick:prependInner":J(),...Q(),..._e(),...Fe(),...Ie()},"VField"),ue=O()({name:"VField",inheritAttrs:!1,props:{id:String,...et(),...re()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:a,emit:k,slots:l}=o;const{themeClasses:s}=Pe(e),{loaderClasses:b}=Se(e),{focusClasses:V,isFocused:d,focus:c,blur:r}=se(e),{InputIcon:F}=tt(e),{roundedClasses:p}=Be(e),{rtlClasses:P}=we(),S=m(()=>e.dirty||e.active),C=m(()=>!e.singleLine&&!!(e.label||l.label)),X=$e(),f=m(()=>e.id||`input-${X}`),Y=m(()=>`${f.value}-messages`),q=T(),D=T(),j=T(),n=m(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:y,backgroundColorStyles:g}=Re(Te(e,"bgColor")),{textColorClasses:x,textColorStyles:z}=De(m(()=>e.error||e.disabled?void 0:S.value&&d.value?e.color:e.baseColor));Ee(S,i=>{if(C.value){const u=q.value.$el,h=D.value.$el;requestAnimationFrame(()=>{const _=Le(u),v=h.getBoundingClientRect(),E=v.x-_.x,w=v.y-_.y-(_.height/2-v.height/2),$=v.width/.75,R=Math.abs($-_.width)>1?{maxWidth:Ae($)}:void 0,de=getComputedStyle(u),ee=getComputedStyle(h),ce=parseFloat(de.transitionDuration)*1e3||150,fe=parseFloat(ee.getPropertyValue("--v-field-label-scale")),ve=ee.getPropertyValue("color");u.style.visibility="visible",h.style.visibility="hidden",pe(u,{transform:`translate(${E}px, ${w}px) scale(${fe})`,color:ve,...R},{duration:ce,easing:je,direction:i?"normal":"reverse"}).finished.then(()=>{u.style.removeProperty("visibility"),h.style.removeProperty("visibility")})})}},{flush:"post"});const B=m(()=>({isActive:S,isFocused:d,controlRef:j,blur:r,focus:c}));function G(i){i.target!==document.activeElement&&i.preventDefault()}function I(i){var u;i.key!=="Enter"&&i.key!==" "||(i.preventDefault(),i.stopPropagation(),(u=e["onClick:clear"])==null||u.call(e,new MouseEvent("click")))}return U(()=>{var E,w,$;const i=e.variant==="outlined",u=!!(l["prepend-inner"]||e.prependInnerIcon),h=!!(e.clearable||l.clear),_=!!(l["append-inner"]||e.appendInnerIcon||h),v=()=>l.label?l.label({...B.value,label:e.label,props:{for:f.value}}):e.label;return t("div",W({class:["v-field",{"v-field--active":S.value,"v-field--appended":_,"v-field--center-affix":e.centerAffix??!n.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":u,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!v(),[`v-field--variant-${e.variant}`]:!0},s.value,y.value,V.value,b.value,p.value,P.value,e.class],style:[g.value,e.style],onClick:G},a),[t("div",{class:"v-field__overlay"},null),t(Me,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:l.loader}),u&&t("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&t(F,{key:"prepend-icon",name:"prependInner"},null),(E=l["prepend-inner"])==null?void 0:E.call(l,B.value)]),t("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&C.value&&t(K,{key:"floating-label",ref:D,class:[x.value],floating:!0,for:f.value,style:z.value},{default:()=>[v()]}),t(K,{ref:q,for:f.value},{default:()=>[v()]}),(w=l.default)==null?void 0:w.call(l,{...B.value,props:{id:f.value,class:"v-field__input","aria-describedby":Y.value},focus:c,blur:r})]),h&&t(Ne,{key:"clear"},{default:()=>[Z(t("div",{class:"v-field__clearable",onMousedown:R=>{R.preventDefault(),R.stopPropagation()}},[t(Oe,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[l.clear?l.clear({...B.value,props:{onKeydown:I,onFocus:c,onBlur:r,onClick:e["onClick:clear"]}}):t(F,{name:"clear",onKeydown:I,onFocus:c,onBlur:r},null)]})]),[[ie,e.dirty]])]}),_&&t("div",{key:"append",class:"v-field__append-inner"},[($=l["append-inner"])==null?void 0:$.call(l,B.value),e.appendInnerIcon&&t(F,{key:"append-icon",name:"appendInner"},null)]),t("div",{class:["v-field__outline",x.value],style:z.value},[i&&t(M,null,[t("div",{class:"v-field__outline__start"},null),C.value&&t("div",{class:"v-field__outline__notch"},[t(K,{ref:D,floating:!0,for:f.value},{default:()=>[v()]})]),t("div",{class:"v-field__outline__end"},null)]),n.value&&C.value&&t(K,{ref:D,floating:!0,for:f.value},{default:()=>[v()]})])])}),{controlRef:j}}});function vt(e){const o=Object.keys(ue.props).filter(a=>!Ue(a)&&a!=="class"&&a!=="style");return qe(e,o)}const mt=["color","file","time","date","datetime-local","week","month"],bt=N({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...lt(),...re()},"VTextField"),kt=O()({name:"VTextField",directives:{Intersect:Ke},inheritAttrs:!1,props:bt(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:a,emit:k,slots:l}=o;const s=We(e,"modelValue"),{isFocused:b,focus:V,blur:d}=se(e),c=m(()=>typeof e.counterValue=="function"?e.counterValue(s.value):typeof e.counterValue=="number"?e.counterValue:(s.value??"").toString().length),r=m(()=>{if(a.maxlength)return a.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter}),F=m(()=>["plain","underlined"].includes(e.variant));function p(n,y){var g,x;!e.autofocus||!n||(x=(g=y[0].target)==null?void 0:g.focus)==null||x.call(g)}const P=T(),S=T(),C=T(),X=m(()=>mt.includes(e.type)||e.persistentPlaceholder||b.value||e.active);function f(){var n;C.value!==document.activeElement&&((n=C.value)==null||n.focus()),b.value||V()}function Y(n){k("mousedown:control",n),n.target!==C.value&&(f(),n.preventDefault())}function q(n){f(),k("click:control",n)}function D(n){n.stopPropagation(),f(),ne(()=>{s.value=null,ze(e["onClick:clear"],n)})}function j(n){var g;const y=n.target;if(s.value=y.value,(g=e.modelModifiers)!=null&&g.trim&&["text","search","password","tel","url"].includes(e.type)){const x=[y.selectionStart,y.selectionEnd];ne(()=>{y.selectionStart=x[0],y.selectionEnd=x[1]})}}return U(()=>{const n=!!(l.counter||e.counter!==!1&&e.counter!=null),y=!!(n||l.details),[g,x]=Qe(a),{modelValue:z,...B}=ae.filterProps(e),G=vt(e);return t(ae,W({ref:P,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":F.value},e.class],style:e.style},g,B,{centerAffix:!F.value,focused:b.value}),{...l,default:I=>{let{id:i,isDisabled:u,isDirty:h,isReadonly:_,isValid:v}=I;return t(ue,W({ref:S,onMousedown:Y,onClick:q,"onClick:clear":D,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},G,{id:i.value,active:X.value||h.value,dirty:h.value||e.dirty,disabled:u.value,focused:b.value,error:v.value===!1}),{...l,default:E=>{let{props:{class:w,...$}}=E;const R=Z(t("input",W({ref:C,value:s.value,onInput:j,autofocus:e.autofocus,readonly:_.value,disabled:u.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:f,onBlur:d},$,x),null),[[Xe("intersect"),{handler:p},null,{once:!0}]]);return t(M,null,[e.prefix&&t("span",{class:"v-text-field__prefix"},[t("span",{class:"v-text-field__prefix__text"},[e.prefix])]),l.default?t("div",{class:w,"data-no-activator":""},[l.default(),R]):Ye(R,{class:w}),e.suffix&&t("span",{class:"v-text-field__suffix"},[t("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:y?I=>{var i;return t(M,null,[(i=l.details)==null?void 0:i.call(l,I),n&&t(M,null,[t("span",null,null),t(dt,{active:e.persistentCounter||b.value,value:c.value,max:r.value,disabled:e.disabled},l.counter)])])}:void 0})}),oe({},P,S,C)}});export{xt as S,kt as V,ht as a,bt as m};
@@ -1 +1 @@
1
- import{F as R,N as W,aA as H,O as F,P as k,b$ as O,Q as j,R as G,c0 as z,c1 as M,r as S,h as v,s as T,a as D,p as N,T as d,at as p,S as P,aV as $,b8 as Q,c2 as U,c3 as Y,c4 as q,i as J,c5 as K,c6 as X,c7 as Z,bY as ee,b9 as te,L as V,n as ne}from"./admin-drawer-panel-c3f3H29x.js";const L=Symbol.for("vuetify:v-window"),_=Symbol.for("vuetify:v-window-group"),oe=R({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...W(),...H(),...F()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:O},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=j(e),{isRtl:l}=G(),{t:f}=z(),n=M(e,_),w=S(),u=v(()=>l.value?!e.reverse:e.reverse),r=T(!1),m=v(()=>{const o=e.direction==="vertical"?"y":"x",c=(u.value?!r.value:r.value)?"-reverse":"";return`v-window-${o}${c}-transition`}),b=T(0),g=S(void 0),h=v(()=>n.items.value.findIndex(o=>n.selected.value.includes(o.id)));D(h,(o,s)=>{const c=n.items.value.length,I=c-1;c<=2?r.value=o<s:o===I&&s===0?r.value=!0:o===0&&s===I?r.value=!1:r.value=o<s}),N(L,{transition:m,isReversed:r,transitionCount:b,transitionHeight:g,rootRef:w});const i=v(()=>e.continuous||h.value!==0),x=v(()=>e.continuous||h.value!==n.items.value.length-1);function B(){i.value&&n.prev()}function C(){x.value&&n.next()}const A=v(()=>{const o=[],s={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${u.value?"right":"left"}`,onClick:n.prev,"aria-label":f("$vuetify.carousel.prev")};o.push(i.value?a.prev?a.prev({props:s}):d(p,s,null):d("div",null,null));const c={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${u.value?"left":"right"}`,onClick:n.next,"aria-label":f("$vuetify.carousel.next")};return o.push(x.value?a.next?a.next({props:c}):d(p,c,null):d("div",null,null)),o}),E=v(()=>e.touch===!1?e.touch:{...{left:()=>{u.value?B():C()},right:()=>{u.value?C():B()},start:s=>{let{originalEvent:c}=s;c.stopPropagation()}},...e.touch===!0?{}:e.touch});return P(()=>$(d(e.tag,{ref:w,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},t.value,e.class],style:e.style},{default:()=>{var o,s;return[d("div",{class:"v-window__container",style:{height:g.value}},[(o=a.default)==null?void 0:o.call(a,{group:n}),e.showArrows!==!1&&d("div",{class:"v-window__controls"},[A.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[Q("touch"),E.value]])),{group:n}}}),ae=R({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...U(),...Y()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:q},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=J(L),l=K(e,_),{isBooted:f}=X();if(!t||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const n=T(!1),w=v(()=>f.value&&(t.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function u(){!n.value||!t||(n.value=!1,t.transitionCount.value>0&&(t.transitionCount.value-=1,t.transitionCount.value===0&&(t.transitionHeight.value=void 0)))}function r(){var i;n.value||!t||(n.value=!0,t.transitionCount.value===0&&(t.transitionHeight.value=V((i=t.rootRef.value)==null?void 0:i.clientHeight)),t.transitionCount.value+=1)}function m(){u()}function b(i){n.value&&ne(()=>{!w.value||!n.value||!t||(t.transitionHeight.value=V(i.clientHeight))})}const g=v(()=>{const i=t.isReversed.value?e.reverseTransition:e.transition;return w.value?{name:typeof i!="string"?t.transition.value:i,onBeforeEnter:r,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:r,onAfterLeave:u,onLeaveCancelled:m,onEnter:b}:!1}),{hasContent:h}=Z(e,l.isSelected);return P(()=>d(te,{transition:g.value,disabled:!f.value},{default:()=>{var i;return[$(d("div",{class:["v-window-item",l.selectedClass.value,e.class],style:e.style},[h.value&&((i=a.default)==null?void 0:i.call(a))]),[[ee,l.isSelected.value]])]}})),{groupItem:l}}});export{se as V,ae as a,re as b,oe as m};
1
+ import{F as R,N as W,aA as H,O as F,P as k,b$ as O,Q as j,R as G,c0 as z,c1 as M,r as S,h as v,s as T,a as D,p as N,T as d,at as p,S as P,aV as $,b8 as Q,c2 as U,c3 as Y,c4 as q,i as J,c5 as K,c6 as X,c7 as Z,bY as ee,b9 as te,L as V,n as ne}from"./admin-drawer-panel-Can9sQIk.js";const L=Symbol.for("vuetify:v-window"),_=Symbol.for("vuetify:v-window-group"),oe=R({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...W(),...H(),...F()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:O},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=j(e),{isRtl:l}=G(),{t:f}=z(),n=M(e,_),w=S(),u=v(()=>l.value?!e.reverse:e.reverse),r=T(!1),m=v(()=>{const o=e.direction==="vertical"?"y":"x",c=(u.value?!r.value:r.value)?"-reverse":"";return`v-window-${o}${c}-transition`}),b=T(0),g=S(void 0),h=v(()=>n.items.value.findIndex(o=>n.selected.value.includes(o.id)));D(h,(o,s)=>{const c=n.items.value.length,I=c-1;c<=2?r.value=o<s:o===I&&s===0?r.value=!0:o===0&&s===I?r.value=!1:r.value=o<s}),N(L,{transition:m,isReversed:r,transitionCount:b,transitionHeight:g,rootRef:w});const i=v(()=>e.continuous||h.value!==0),x=v(()=>e.continuous||h.value!==n.items.value.length-1);function B(){i.value&&n.prev()}function C(){x.value&&n.next()}const A=v(()=>{const o=[],s={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${u.value?"right":"left"}`,onClick:n.prev,"aria-label":f("$vuetify.carousel.prev")};o.push(i.value?a.prev?a.prev({props:s}):d(p,s,null):d("div",null,null));const c={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${u.value?"left":"right"}`,onClick:n.next,"aria-label":f("$vuetify.carousel.next")};return o.push(x.value?a.next?a.next({props:c}):d(p,c,null):d("div",null,null)),o}),E=v(()=>e.touch===!1?e.touch:{...{left:()=>{u.value?B():C()},right:()=>{u.value?C():B()},start:s=>{let{originalEvent:c}=s;c.stopPropagation()}},...e.touch===!0?{}:e.touch});return P(()=>$(d(e.tag,{ref:w,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},t.value,e.class],style:e.style},{default:()=>{var o,s;return[d("div",{class:"v-window__container",style:{height:g.value}},[(o=a.default)==null?void 0:o.call(a,{group:n}),e.showArrows!==!1&&d("div",{class:"v-window__controls"},[A.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[Q("touch"),E.value]])),{group:n}}}),ae=R({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...U(),...Y()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:q},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=J(L),l=K(e,_),{isBooted:f}=X();if(!t||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const n=T(!1),w=v(()=>f.value&&(t.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function u(){!n.value||!t||(n.value=!1,t.transitionCount.value>0&&(t.transitionCount.value-=1,t.transitionCount.value===0&&(t.transitionHeight.value=void 0)))}function r(){var i;n.value||!t||(n.value=!0,t.transitionCount.value===0&&(t.transitionHeight.value=V((i=t.rootRef.value)==null?void 0:i.clientHeight)),t.transitionCount.value+=1)}function m(){u()}function b(i){n.value&&ne(()=>{!w.value||!n.value||!t||(t.transitionHeight.value=V(i.clientHeight))})}const g=v(()=>{const i=t.isReversed.value?e.reverseTransition:e.transition;return w.value?{name:typeof i!="string"?t.transition.value:i,onBeforeEnter:r,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:r,onAfterLeave:u,onLeaveCancelled:m,onEnter:b}:!1}),{hasContent:h}=Z(e,l.isSelected);return P(()=>d(te,{transition:g.value,disabled:!f.value},{default:()=>{var i;return[$(d("div",{class:["v-window-item",l.selectedClass.value,e.class],style:e.style},[h.value&&((i=a.default)==null?void 0:i.call(a))]),[[ee,l.isSelected.value]])]}})),{groupItem:l}}});export{se as V,ae as a,re as b,oe as m};
@@ -1 +1 @@
1
- import{F as R,N as W,aA as H,O as F,P as k,b$ as O,Q as j,R as G,c0 as z,c1 as M,r as S,h as v,s as T,a as D,p as N,T as d,at as p,S as P,aV as $,b8 as Q,c2 as U,c3 as Y,c4 as q,i as J,c5 as K,c6 as X,c7 as Z,bY as ee,b9 as te,L as V,n as ne}from"./admin-drawer-panel-c3f3H29x.js";const L=Symbol.for("vuetify:v-window"),_=Symbol.for("vuetify:v-window-group"),oe=R({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...W(),...H(),...F()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:O},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=j(e),{isRtl:l}=G(),{t:f}=z(),n=M(e,_),w=S(),u=v(()=>l.value?!e.reverse:e.reverse),r=T(!1),m=v(()=>{const o=e.direction==="vertical"?"y":"x",c=(u.value?!r.value:r.value)?"-reverse":"";return`v-window-${o}${c}-transition`}),b=T(0),g=S(void 0),h=v(()=>n.items.value.findIndex(o=>n.selected.value.includes(o.id)));D(h,(o,s)=>{const c=n.items.value.length,I=c-1;c<=2?r.value=o<s:o===I&&s===0?r.value=!0:o===0&&s===I?r.value=!1:r.value=o<s}),N(L,{transition:m,isReversed:r,transitionCount:b,transitionHeight:g,rootRef:w});const i=v(()=>e.continuous||h.value!==0),x=v(()=>e.continuous||h.value!==n.items.value.length-1);function B(){i.value&&n.prev()}function C(){x.value&&n.next()}const A=v(()=>{const o=[],s={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${u.value?"right":"left"}`,onClick:n.prev,"aria-label":f("$vuetify.carousel.prev")};o.push(i.value?a.prev?a.prev({props:s}):d(p,s,null):d("div",null,null));const c={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${u.value?"left":"right"}`,onClick:n.next,"aria-label":f("$vuetify.carousel.next")};return o.push(x.value?a.next?a.next({props:c}):d(p,c,null):d("div",null,null)),o}),E=v(()=>e.touch===!1?e.touch:{...{left:()=>{u.value?B():C()},right:()=>{u.value?C():B()},start:s=>{let{originalEvent:c}=s;c.stopPropagation()}},...e.touch===!0?{}:e.touch});return P(()=>$(d(e.tag,{ref:w,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},t.value,e.class],style:e.style},{default:()=>{var o,s;return[d("div",{class:"v-window__container",style:{height:g.value}},[(o=a.default)==null?void 0:o.call(a,{group:n}),e.showArrows!==!1&&d("div",{class:"v-window__controls"},[A.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[Q("touch"),E.value]])),{group:n}}}),ae=R({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...U(),...Y()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:q},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=J(L),l=K(e,_),{isBooted:f}=X();if(!t||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const n=T(!1),w=v(()=>f.value&&(t.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function u(){!n.value||!t||(n.value=!1,t.transitionCount.value>0&&(t.transitionCount.value-=1,t.transitionCount.value===0&&(t.transitionHeight.value=void 0)))}function r(){var i;n.value||!t||(n.value=!0,t.transitionCount.value===0&&(t.transitionHeight.value=V((i=t.rootRef.value)==null?void 0:i.clientHeight)),t.transitionCount.value+=1)}function m(){u()}function b(i){n.value&&ne(()=>{!w.value||!n.value||!t||(t.transitionHeight.value=V(i.clientHeight))})}const g=v(()=>{const i=t.isReversed.value?e.reverseTransition:e.transition;return w.value?{name:typeof i!="string"?t.transition.value:i,onBeforeEnter:r,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:r,onAfterLeave:u,onLeaveCancelled:m,onEnter:b}:!1}),{hasContent:h}=Z(e,l.isSelected);return P(()=>d(te,{transition:g.value,disabled:!f.value},{default:()=>{var i;return[$(d("div",{class:["v-window-item",l.selectedClass.value,e.class],style:e.style},[h.value&&((i=a.default)==null?void 0:i.call(a))]),[[ee,l.isSelected.value]])]}})),{groupItem:l}}});export{se as V,ae as a,re as b,oe as m};
1
+ import{F as R,N as W,aA as H,O as F,P as k,b$ as O,Q as j,R as G,c0 as z,c1 as M,r as S,h as v,s as T,a as D,p as N,T as d,at as p,S as P,aV as $,b8 as Q,c2 as U,c3 as Y,c4 as q,i as J,c5 as K,c6 as X,c7 as Z,bY as ee,b9 as te,L as V,n as ne}from"./admin-drawer-panel-Can9sQIk.js";const L=Symbol.for("vuetify:v-window"),_=Symbol.for("vuetify:v-window-group"),oe=R({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},...W(),...H(),...F()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:O},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=j(e),{isRtl:l}=G(),{t:f}=z(),n=M(e,_),w=S(),u=v(()=>l.value?!e.reverse:e.reverse),r=T(!1),m=v(()=>{const o=e.direction==="vertical"?"y":"x",c=(u.value?!r.value:r.value)?"-reverse":"";return`v-window-${o}${c}-transition`}),b=T(0),g=S(void 0),h=v(()=>n.items.value.findIndex(o=>n.selected.value.includes(o.id)));D(h,(o,s)=>{const c=n.items.value.length,I=c-1;c<=2?r.value=o<s:o===I&&s===0?r.value=!0:o===0&&s===I?r.value=!1:r.value=o<s}),N(L,{transition:m,isReversed:r,transitionCount:b,transitionHeight:g,rootRef:w});const i=v(()=>e.continuous||h.value!==0),x=v(()=>e.continuous||h.value!==n.items.value.length-1);function B(){i.value&&n.prev()}function C(){x.value&&n.next()}const A=v(()=>{const o=[],s={icon:l.value?e.nextIcon:e.prevIcon,class:`v-window__${u.value?"right":"left"}`,onClick:n.prev,"aria-label":f("$vuetify.carousel.prev")};o.push(i.value?a.prev?a.prev({props:s}):d(p,s,null):d("div",null,null));const c={icon:l.value?e.prevIcon:e.nextIcon,class:`v-window__${u.value?"left":"right"}`,onClick:n.next,"aria-label":f("$vuetify.carousel.next")};return o.push(x.value?a.next?a.next({props:c}):d(p,c,null):d("div",null,null)),o}),E=v(()=>e.touch===!1?e.touch:{...{left:()=>{u.value?B():C()},right:()=>{u.value?C():B()},start:s=>{let{originalEvent:c}=s;c.stopPropagation()}},...e.touch===!0?{}:e.touch});return P(()=>$(d(e.tag,{ref:w,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},t.value,e.class],style:e.style},{default:()=>{var o,s;return[d("div",{class:"v-window__container",style:{height:g.value}},[(o=a.default)==null?void 0:o.call(a,{group:n}),e.showArrows!==!1&&d("div",{class:"v-window__controls"},[A.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[Q("touch"),E.value]])),{group:n}}}),ae=R({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...U(),...Y()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:q},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=J(L),l=K(e,_),{isBooted:f}=X();if(!t||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const n=T(!1),w=v(()=>f.value&&(t.isReversed.value?e.reverseTransition!==!1:e.transition!==!1));function u(){!n.value||!t||(n.value=!1,t.transitionCount.value>0&&(t.transitionCount.value-=1,t.transitionCount.value===0&&(t.transitionHeight.value=void 0)))}function r(){var i;n.value||!t||(n.value=!0,t.transitionCount.value===0&&(t.transitionHeight.value=V((i=t.rootRef.value)==null?void 0:i.clientHeight)),t.transitionCount.value+=1)}function m(){u()}function b(i){n.value&&ne(()=>{!w.value||!n.value||!t||(t.transitionHeight.value=V(i.clientHeight))})}const g=v(()=>{const i=t.isReversed.value?e.reverseTransition:e.transition;return w.value?{name:typeof i!="string"?t.transition.value:i,onBeforeEnter:r,onAfterEnter:u,onEnterCancelled:m,onBeforeLeave:r,onAfterLeave:u,onLeaveCancelled:m,onEnter:b}:!1}),{hasContent:h}=Z(e,l.isSelected);return P(()=>d(te,{transition:g.value,disabled:!f.value},{default:()=>{var i;return[$(d("div",{class:["v-window-item",l.selectedClass.value,e.class],style:e.style},[h.value&&((i=a.default)==null?void 0:i.call(a))]),[[ee,l.isSelected.value]])]}})),{groupItem:l}}});export{se as V,ae as a,re as b,oe as m};
@@ -1 +1 @@
1
- import{_ as x,Z as v,$ as m,Y as p,a0 as f,T as i,al as j,am as M,an as re,ao as ie,ap as R,X as J,E as le,F as B,aq as K,ar as de,P as I,as as ce,r as q,h as $,S as W,at as H,V as P,au as A,av as ue,aw as me,ax as be,i as fe,ay as Z,az as ve,aA as pe,aB as we,aC as ge,aD as h,aE as _e,aF as he,L as ye,aG as Te,D as E,W as Ve,l as Se,aH as k,aI as X,aJ as Ae,aK as xe,aL as Ce,aM as De,q as ke}from"./admin-drawer-panel-c3f3H29x.js";import{S as $e,V as Pe,a as Be,b as Ie}from"./settings-drawer-rn3JdMxA.js";import{u as We}from"./main-B3MfqYNN.js";import{m as Le,V as z,a as Ue,b as G}from"./VWindowItem-_YBMW1SU.js";import{m as Ee,V as Y}from"./VSlideGroup-CDaAHRAK.js";import{U as Me,V as ze}from"./unauthorized-CllrtnFV.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDialog-BB4zqrGw.js";import"./change-password-dialog-BbIO0YI5.js";import"./VTextField-fNAzFu1M.js";import"./VSelectionControl-DImIQPJV.js";const Ge={name:"AdminTitleToolbar",components:{SettingsDrawerButton:$e},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}}};function Re(e,s,l,t,o,r){const a=v("SettingsDrawerButton");return m(),p(Be,{id:"titleBar",class:M(["codexToolbar",{drawerMargin:!r.mdAndDown}]),density:"compact",elevation:"8"},{default:f(()=>[i(Pe,{class:"codexToolbarTitle"},{default:f(()=>[j(" Codex Administration ")]),_:1}),(m(),p(a,{key:r.mdAndDown,class:M({invisible:!r.mdAndDown}),disabled:!r.mdAndDown},null,8,["class","disabled"]))]),_:1},8,["class"])}const Fe=x(Ge,[["render",Re],["__scopeId","data-v-355452b0"]]),Oe={name:"AdminSettingsPanel",components:{DrawerItem:re},data(){return{mdiBookshelf:ie}},computed:{...R(We,["lastRoute"])}};function Ne(e,s,l,t,o,r){const a=v("DrawerItem");return m(),p(a,{to:e.lastRoute,"prepend-icon":o.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const qe=x(Oe,[["render",Ne]]),He={name:"AdminSettingsDrawer",components:{SettingsDrawer:Ie,AdminSettingsPanel:qe},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{mdAndDown(e){e||this.setSettingsDrawerOpen(!0)}},mounted(){this.mdAndDown||this.setSettingsDrawerOpen(!0)},methods:{...J(le,["setSettingsDrawerOpen"])}};function Xe(e,s,l,t,o,r){const a=v("AdminSettingsPanel"),n=v("SettingsDrawer");return m(),p(n,{title:"Admin",temporary:r.mdAndDown},{panel:f(()=>[i(a)]),_:1},8,["temporary"])}const Ye=x(He,[["render",Xe]]),F=Symbol.for("vuetify:v-tabs"),je=B({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...K(de({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Q=I()({name:"VTab",props:je(),setup(e,s){let{slots:l,attrs:t}=s;const{textColorClasses:o,textColorStyles:r}=ce(e,"sliderColor"),a=q(),n=q(),u=$(()=>e.direction==="horizontal"),_=$(()=>{var w,d;return((d=(w=a.value)==null?void 0:w.group)==null?void 0:d.isSelected.value)??!1});function L(w){var c,g;let{value:d}=w;if(d){const b=(g=(c=a.value)==null?void 0:c.$el.parentElement)==null?void 0:g.querySelector(".v-tab--selected .v-tab__slider"),U=n.value;if(!b||!U)return;const ee=getComputedStyle(b).color,y=b.getBoundingClientRect(),T=U.getBoundingClientRect(),C=u.value?"x":"y",D=u.value?"X":"Y",O=u.value?"right":"bottom",V=u.value?"width":"height",te=y[C],ae=T[C],S=te>ae?y[O]-T[O]:y[C]-T[C],se=Math.sign(S)>0?u.value?"right":"bottom":Math.sign(S)<0?u.value?"left":"top":"center",oe=(Math.abs(S)+(Math.sign(S)<0?y[V]:T[V]))/Math.max(y[V],T[V])||0,ne=y[V]/T[V]||0,N=1.5;me(U,{backgroundColor:[ee,"currentcolor"],transform:[`translate${D}(${S}px) scale${D}(${ne})`,`translate${D}(${S/N}px) scale${D}(${(oe-1)/N+1})`,"none"],transformOrigin:Array(3).fill(se)},{duration:225,easing:be})}}return W(()=>{const w=H.filterProps(e);return i(H,A({symbol:F,ref:a,class:["v-tab",e.class],style:e.style,tabindex:_.value?0:-1,role:"tab","aria-selected":String(_.value),active:!1},w,t,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":L}),{...l,default:()=>{var d;return i(P,null,[((d=l.default)==null?void 0:d.call(l))??e.text,!e.hideSlider&&i("div",{ref:n,class:["v-tab__slider",o.value],style:r.value},null)])}})}),ue({},a)}}),Je=B({...K(Le(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Ke=I()({name:"VTabsWindow",props:Je(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:l}=s;const t=fe(F,null),o=Z(e,"modelValue"),r=$({get(){var a;return o.value!=null||!t?o.value:(a=t.items.value.find(n=>t.selected.value.includes(n.id)))==null?void 0:a.value},set(a){o.value=a}});return W(()=>{const a=z.filterProps(e);return i(z,A({_as:"VTabsWindow"},a,{modelValue:r.value,"onUpdate:modelValue":n=>r.value=n,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),l)}),{}}}),Ze=B({...Ue()},"VTabsWindowItem"),Qe=I()({name:"VTabsWindowItem",props:Ze(),setup(e,s){let{slots:l}=s;return W(()=>{const t=G.filterProps(e);return i(G,A({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),l)}),{}}});function et(e){return e?e.map(s=>Te(s)?s:{text:s,value:s}):[]}const tt=B({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Ee({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ve(),...pe()},"VTabs"),at=I()({name:"VTabs",props:tt(),emits:{"update:modelValue":e=>!0},setup(e,s){let{attrs:l,slots:t}=s;const o=Z(e,"modelValue"),r=$(()=>et(e.items)),{densityClasses:a}=we(e),{backgroundColorClasses:n,backgroundColorStyles:u}=ge(h(e,"bgColor")),{scopeId:_}=_e();return he({VTab:{color:h(e,"color"),direction:h(e,"direction"),stacked:h(e,"stacked"),fixed:h(e,"fixedTabs"),sliderColor:h(e,"sliderColor"),hideSlider:h(e,"hideSlider")}}),W(()=>{const L=Y.filterProps(e),w=!!(t.window||e.items.length>0);return i(P,null,[i(Y,A(L,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},a.value,n.value,e.class],style:[{"--v-tabs-height":ye(e.height)},u.value,e.style],role:"tablist",symbol:F},_,l),{default:()=>{var d;return[((d=t.default)==null?void 0:d.call(t))??r.value.map(c=>{var g;return((g=t.tab)==null?void 0:g.call(t,{item:c}))??i(Q,A(c,{key:c.text,value:c.value}),{default:t[`tab.${c.value}`]?()=>{var b;return(b=t[`tab.${c.value}`])==null?void 0:b.call(t,{item:c})}:void 0})})]}}),w&&i(Ke,A({modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,key:"tabs-window"},_),{default:()=>{var d;return[r.value.map(c=>{var g;return((g=t.item)==null?void 0:g.call(t,{item:c}))??i(Qe,{value:c.value},{default:()=>{var b;return(b=t[`item.${c.value}`])==null?void 0:b.call(t,{item:c})}})}),(d=t.window)==null?void 0:d.call(t)]}})])}),{}}}),st={name:"AdminTabs",data(){return{activeTab:"Libraries",tabs:["Users","Groups","Libraries","Flags","Tasks","Stats"]}},computed:{...R(E,["comicLibrariesEmpty"]),...Ve(E,{librariesLoaded:e=>!!e.libraries}),mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{$route(e){const l=e.path.split("/").at(-1);this.activeTab=Se.startCase(l)}},mounted(){this.librariesLoaded||this.loadTables(["Library"])},methods:{...J(E,["loadTables"])}},ot={id:"tabContainer"},nt={key:0,id:"noLibraries"};function rt(e,s,l,t,o,r){const a=v("router-view");return m(),k("div",ot,[i(at,{class:M(["adminTabs",{drawerMargin:!r.mdAndDown}]),grow:"","show-arrows":""},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(Q,{key:n,modelValue:o.activeTab,"onUpdate:modelValue":s[0]||(s[0]=u=>o.activeTab=u),to:n.toLowerCase()},{default:f(()=>[j(Ae(n),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),i(z,{id:"tabItems",modelValue:o.activeTab,"onUpdate:modelValue":s[1]||(s[1]=n=>o.activeTab=n),touch:!1},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(a,{key:n},{default:f(({Component:u})=>[i(G,{value:n,class:"tabItemContainer"},{default:f(()=>[(m(),p(xe(u)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.comicLibrariesEmpty?Ce("",!0):(m(),k("div",nt," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const it=x(st,[["render",rt],["__scopeId","data-v-9a6023ab"]]),lt={name:"MainAdmin",components:{AdminTitleToolbar:Fe,AdminTabs:it,AdminSettingsDrawer:Ye,Unauthorized:Me},data(){return{mdiLogin:De}},computed:{...R(ke,["isUserAdmin"])}};function dt(e,s,l,t,o,r){const a=v("AdminTitleToolbar"),n=v("AdminTabs"),u=v("AdminSettingsDrawer"),_=v("Unauthorized");return e.isUserAdmin?(m(),p(ze,{key:0},{default:f(()=>[i(a),i(n),i(u)]),_:1})):(m(),p(_,{key:1}))}const Tt=x(lt,[["render",dt]]);export{Tt as default};
1
+ import{_ as x,Z as v,$ as m,Y as p,a0 as f,T as i,al as j,am as M,an as re,ao as ie,ap as R,X as J,E as le,F as B,aq as K,ar as de,P as I,as as ce,r as q,h as $,S as W,at as H,V as P,au as A,av as ue,aw as me,ax as be,i as fe,ay as Z,az as ve,aA as pe,aB as we,aC as ge,aD as h,aE as _e,aF as he,L as ye,aG as Te,D as E,W as Ve,l as Se,aH as k,aI as X,aJ as Ae,aK as xe,aL as Ce,aM as De,q as ke}from"./admin-drawer-panel-Can9sQIk.js";import{S as $e,V as Pe,a as Be,b as Ie}from"./settings-drawer-D_S8wFKC.js";import{u as We}from"./main-hKTXzzX1.js";import{m as Le,V as z,a as Ue,b as G}from"./VWindowItem-IDCZgODl.js";import{m as Ee,V as Y}from"./VSlideGroup-Bv0lRnhB.js";import{U as Me,V as ze}from"./unauthorized-BMsnj48f.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDialog-DPlcZ188.js";import"./change-password-dialog-BKyyB0i6.js";import"./VTextField-DhIkxARQ.js";import"./VSelectionControl-BpvvZpBd.js";const Ge={name:"AdminTitleToolbar",components:{SettingsDrawerButton:$e},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}}};function Re(e,s,l,t,o,r){const a=v("SettingsDrawerButton");return m(),p(Be,{id:"titleBar",class:M(["codexToolbar",{drawerMargin:!r.mdAndDown}]),density:"compact",elevation:"8"},{default:f(()=>[i(Pe,{class:"codexToolbarTitle"},{default:f(()=>[j(" Codex Administration ")]),_:1}),(m(),p(a,{key:r.mdAndDown,class:M({invisible:!r.mdAndDown}),disabled:!r.mdAndDown},null,8,["class","disabled"]))]),_:1},8,["class"])}const Fe=x(Ge,[["render",Re],["__scopeId","data-v-355452b0"]]),Oe={name:"AdminSettingsPanel",components:{DrawerItem:re},data(){return{mdiBookshelf:ie}},computed:{...R(We,["lastRoute"])}};function Ne(e,s,l,t,o,r){const a=v("DrawerItem");return m(),p(a,{to:e.lastRoute,"prepend-icon":o.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const qe=x(Oe,[["render",Ne]]),He={name:"AdminSettingsDrawer",components:{SettingsDrawer:Ie,AdminSettingsPanel:qe},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{mdAndDown(e){e||this.setSettingsDrawerOpen(!0)}},mounted(){this.mdAndDown||this.setSettingsDrawerOpen(!0)},methods:{...J(le,["setSettingsDrawerOpen"])}};function Xe(e,s,l,t,o,r){const a=v("AdminSettingsPanel"),n=v("SettingsDrawer");return m(),p(n,{title:"Admin",temporary:r.mdAndDown},{panel:f(()=>[i(a)]),_:1},8,["temporary"])}const Ye=x(He,[["render",Xe]]),F=Symbol.for("vuetify:v-tabs"),je=B({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...K(de({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Q=I()({name:"VTab",props:je(),setup(e,s){let{slots:l,attrs:t}=s;const{textColorClasses:o,textColorStyles:r}=ce(e,"sliderColor"),a=q(),n=q(),u=$(()=>e.direction==="horizontal"),_=$(()=>{var w,d;return((d=(w=a.value)==null?void 0:w.group)==null?void 0:d.isSelected.value)??!1});function L(w){var c,g;let{value:d}=w;if(d){const b=(g=(c=a.value)==null?void 0:c.$el.parentElement)==null?void 0:g.querySelector(".v-tab--selected .v-tab__slider"),U=n.value;if(!b||!U)return;const ee=getComputedStyle(b).color,y=b.getBoundingClientRect(),T=U.getBoundingClientRect(),C=u.value?"x":"y",D=u.value?"X":"Y",O=u.value?"right":"bottom",V=u.value?"width":"height",te=y[C],ae=T[C],S=te>ae?y[O]-T[O]:y[C]-T[C],se=Math.sign(S)>0?u.value?"right":"bottom":Math.sign(S)<0?u.value?"left":"top":"center",oe=(Math.abs(S)+(Math.sign(S)<0?y[V]:T[V]))/Math.max(y[V],T[V])||0,ne=y[V]/T[V]||0,N=1.5;me(U,{backgroundColor:[ee,"currentcolor"],transform:[`translate${D}(${S}px) scale${D}(${ne})`,`translate${D}(${S/N}px) scale${D}(${(oe-1)/N+1})`,"none"],transformOrigin:Array(3).fill(se)},{duration:225,easing:be})}}return W(()=>{const w=H.filterProps(e);return i(H,A({symbol:F,ref:a,class:["v-tab",e.class],style:e.style,tabindex:_.value?0:-1,role:"tab","aria-selected":String(_.value),active:!1},w,t,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":L}),{...l,default:()=>{var d;return i(P,null,[((d=l.default)==null?void 0:d.call(l))??e.text,!e.hideSlider&&i("div",{ref:n,class:["v-tab__slider",o.value],style:r.value},null)])}})}),ue({},a)}}),Je=B({...K(Le(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Ke=I()({name:"VTabsWindow",props:Je(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:l}=s;const t=fe(F,null),o=Z(e,"modelValue"),r=$({get(){var a;return o.value!=null||!t?o.value:(a=t.items.value.find(n=>t.selected.value.includes(n.id)))==null?void 0:a.value},set(a){o.value=a}});return W(()=>{const a=z.filterProps(e);return i(z,A({_as:"VTabsWindow"},a,{modelValue:r.value,"onUpdate:modelValue":n=>r.value=n,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),l)}),{}}}),Ze=B({...Ue()},"VTabsWindowItem"),Qe=I()({name:"VTabsWindowItem",props:Ze(),setup(e,s){let{slots:l}=s;return W(()=>{const t=G.filterProps(e);return i(G,A({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),l)}),{}}});function et(e){return e?e.map(s=>Te(s)?s:{text:s,value:s}):[]}const tt=B({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Ee({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ve(),...pe()},"VTabs"),at=I()({name:"VTabs",props:tt(),emits:{"update:modelValue":e=>!0},setup(e,s){let{attrs:l,slots:t}=s;const o=Z(e,"modelValue"),r=$(()=>et(e.items)),{densityClasses:a}=we(e),{backgroundColorClasses:n,backgroundColorStyles:u}=ge(h(e,"bgColor")),{scopeId:_}=_e();return he({VTab:{color:h(e,"color"),direction:h(e,"direction"),stacked:h(e,"stacked"),fixed:h(e,"fixedTabs"),sliderColor:h(e,"sliderColor"),hideSlider:h(e,"hideSlider")}}),W(()=>{const L=Y.filterProps(e),w=!!(t.window||e.items.length>0);return i(P,null,[i(Y,A(L,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},a.value,n.value,e.class],style:[{"--v-tabs-height":ye(e.height)},u.value,e.style],role:"tablist",symbol:F},_,l),{default:()=>{var d;return[((d=t.default)==null?void 0:d.call(t))??r.value.map(c=>{var g;return((g=t.tab)==null?void 0:g.call(t,{item:c}))??i(Q,A(c,{key:c.text,value:c.value}),{default:t[`tab.${c.value}`]?()=>{var b;return(b=t[`tab.${c.value}`])==null?void 0:b.call(t,{item:c})}:void 0})})]}}),w&&i(Ke,A({modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,key:"tabs-window"},_),{default:()=>{var d;return[r.value.map(c=>{var g;return((g=t.item)==null?void 0:g.call(t,{item:c}))??i(Qe,{value:c.value},{default:()=>{var b;return(b=t[`item.${c.value}`])==null?void 0:b.call(t,{item:c})}})}),(d=t.window)==null?void 0:d.call(t)]}})])}),{}}}),st={name:"AdminTabs",data(){return{activeTab:"Libraries",tabs:["Users","Groups","Libraries","Flags","Tasks","Stats"]}},computed:{...R(E,["comicLibrariesEmpty"]),...Ve(E,{librariesLoaded:e=>!!e.libraries}),mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{$route(e){const l=e.path.split("/").at(-1);this.activeTab=Se.startCase(l)}},mounted(){this.librariesLoaded||this.loadTables(["Library"])},methods:{...J(E,["loadTables"])}},ot={id:"tabContainer"},nt={key:0,id:"noLibraries"};function rt(e,s,l,t,o,r){const a=v("router-view");return m(),k("div",ot,[i(at,{class:M(["adminTabs",{drawerMargin:!r.mdAndDown}]),grow:"","show-arrows":""},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(Q,{key:n,modelValue:o.activeTab,"onUpdate:modelValue":s[0]||(s[0]=u=>o.activeTab=u),to:n.toLowerCase()},{default:f(()=>[j(Ae(n),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),i(z,{id:"tabItems",modelValue:o.activeTab,"onUpdate:modelValue":s[1]||(s[1]=n=>o.activeTab=n),touch:!1},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(a,{key:n},{default:f(({Component:u})=>[i(G,{value:n,class:"tabItemContainer"},{default:f(()=>[(m(),p(xe(u)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.comicLibrariesEmpty?Ce("",!0):(m(),k("div",nt," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const it=x(st,[["render",rt],["__scopeId","data-v-9a6023ab"]]),lt={name:"MainAdmin",components:{AdminTitleToolbar:Fe,AdminTabs:it,AdminSettingsDrawer:Ye,Unauthorized:Me},data(){return{mdiLogin:De}},computed:{...R(ke,["isUserAdmin"])}};function dt(e,s,l,t,o,r){const a=v("AdminTitleToolbar"),n=v("AdminTabs"),u=v("AdminSettingsDrawer"),_=v("Unauthorized");return e.isUserAdmin?(m(),p(ze,{key:0},{default:f(()=>[i(a),i(n),i(u)]),_:1})):(m(),p(_,{key:1}))}const Tt=x(lt,[["render",dt]]);export{Tt as default};
@@ -1 +1 @@
1
- import{_ as x,Z as v,$ as m,Y as p,a0 as f,T as i,al as j,am as M,an as re,ao as ie,ap as R,X as J,E as le,F as B,aq as K,ar as de,P as I,as as ce,r as q,h as $,S as W,at as H,V as P,au as A,av as ue,aw as me,ax as be,i as fe,ay as Z,az as ve,aA as pe,aB as we,aC as ge,aD as h,aE as _e,aF as he,L as ye,aG as Te,D as E,W as Ve,l as Se,aH as k,aI as X,aJ as Ae,aK as xe,aL as Ce,aM as De,q as ke}from"./admin-drawer-panel-c3f3H29x.js";import{S as $e,V as Pe,a as Be,b as Ie}from"./settings-drawer-rn3JdMxA.js";import{u as We}from"./main-B3MfqYNN.js";import{m as Le,V as z,a as Ue,b as G}from"./VWindowItem-_YBMW1SU.js";import{m as Ee,V as Y}from"./VSlideGroup-CDaAHRAK.js";import{U as Me,V as ze}from"./unauthorized-CllrtnFV.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDialog-BB4zqrGw.js";import"./change-password-dialog-BbIO0YI5.js";import"./VTextField-fNAzFu1M.js";import"./VSelectionControl-DImIQPJV.js";const Ge={name:"AdminTitleToolbar",components:{SettingsDrawerButton:$e},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}}};function Re(e,s,l,t,o,r){const a=v("SettingsDrawerButton");return m(),p(Be,{id:"titleBar",class:M(["codexToolbar",{drawerMargin:!r.mdAndDown}]),density:"compact",elevation:"8"},{default:f(()=>[i(Pe,{class:"codexToolbarTitle"},{default:f(()=>[j(" Codex Administration ")]),_:1}),(m(),p(a,{key:r.mdAndDown,class:M({invisible:!r.mdAndDown}),disabled:!r.mdAndDown},null,8,["class","disabled"]))]),_:1},8,["class"])}const Fe=x(Ge,[["render",Re],["__scopeId","data-v-355452b0"]]),Oe={name:"AdminSettingsPanel",components:{DrawerItem:re},data(){return{mdiBookshelf:ie}},computed:{...R(We,["lastRoute"])}};function Ne(e,s,l,t,o,r){const a=v("DrawerItem");return m(),p(a,{to:e.lastRoute,"prepend-icon":o.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const qe=x(Oe,[["render",Ne]]),He={name:"AdminSettingsDrawer",components:{SettingsDrawer:Ie,AdminSettingsPanel:qe},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{mdAndDown(e){e||this.setSettingsDrawerOpen(!0)}},mounted(){this.mdAndDown||this.setSettingsDrawerOpen(!0)},methods:{...J(le,["setSettingsDrawerOpen"])}};function Xe(e,s,l,t,o,r){const a=v("AdminSettingsPanel"),n=v("SettingsDrawer");return m(),p(n,{title:"Admin",temporary:r.mdAndDown},{panel:f(()=>[i(a)]),_:1},8,["temporary"])}const Ye=x(He,[["render",Xe]]),F=Symbol.for("vuetify:v-tabs"),je=B({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...K(de({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Q=I()({name:"VTab",props:je(),setup(e,s){let{slots:l,attrs:t}=s;const{textColorClasses:o,textColorStyles:r}=ce(e,"sliderColor"),a=q(),n=q(),u=$(()=>e.direction==="horizontal"),_=$(()=>{var w,d;return((d=(w=a.value)==null?void 0:w.group)==null?void 0:d.isSelected.value)??!1});function L(w){var c,g;let{value:d}=w;if(d){const b=(g=(c=a.value)==null?void 0:c.$el.parentElement)==null?void 0:g.querySelector(".v-tab--selected .v-tab__slider"),U=n.value;if(!b||!U)return;const ee=getComputedStyle(b).color,y=b.getBoundingClientRect(),T=U.getBoundingClientRect(),C=u.value?"x":"y",D=u.value?"X":"Y",O=u.value?"right":"bottom",V=u.value?"width":"height",te=y[C],ae=T[C],S=te>ae?y[O]-T[O]:y[C]-T[C],se=Math.sign(S)>0?u.value?"right":"bottom":Math.sign(S)<0?u.value?"left":"top":"center",oe=(Math.abs(S)+(Math.sign(S)<0?y[V]:T[V]))/Math.max(y[V],T[V])||0,ne=y[V]/T[V]||0,N=1.5;me(U,{backgroundColor:[ee,"currentcolor"],transform:[`translate${D}(${S}px) scale${D}(${ne})`,`translate${D}(${S/N}px) scale${D}(${(oe-1)/N+1})`,"none"],transformOrigin:Array(3).fill(se)},{duration:225,easing:be})}}return W(()=>{const w=H.filterProps(e);return i(H,A({symbol:F,ref:a,class:["v-tab",e.class],style:e.style,tabindex:_.value?0:-1,role:"tab","aria-selected":String(_.value),active:!1},w,t,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":L}),{...l,default:()=>{var d;return i(P,null,[((d=l.default)==null?void 0:d.call(l))??e.text,!e.hideSlider&&i("div",{ref:n,class:["v-tab__slider",o.value],style:r.value},null)])}})}),ue({},a)}}),Je=B({...K(Le(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Ke=I()({name:"VTabsWindow",props:Je(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:l}=s;const t=fe(F,null),o=Z(e,"modelValue"),r=$({get(){var a;return o.value!=null||!t?o.value:(a=t.items.value.find(n=>t.selected.value.includes(n.id)))==null?void 0:a.value},set(a){o.value=a}});return W(()=>{const a=z.filterProps(e);return i(z,A({_as:"VTabsWindow"},a,{modelValue:r.value,"onUpdate:modelValue":n=>r.value=n,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),l)}),{}}}),Ze=B({...Ue()},"VTabsWindowItem"),Qe=I()({name:"VTabsWindowItem",props:Ze(),setup(e,s){let{slots:l}=s;return W(()=>{const t=G.filterProps(e);return i(G,A({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),l)}),{}}});function et(e){return e?e.map(s=>Te(s)?s:{text:s,value:s}):[]}const tt=B({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Ee({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ve(),...pe()},"VTabs"),at=I()({name:"VTabs",props:tt(),emits:{"update:modelValue":e=>!0},setup(e,s){let{attrs:l,slots:t}=s;const o=Z(e,"modelValue"),r=$(()=>et(e.items)),{densityClasses:a}=we(e),{backgroundColorClasses:n,backgroundColorStyles:u}=ge(h(e,"bgColor")),{scopeId:_}=_e();return he({VTab:{color:h(e,"color"),direction:h(e,"direction"),stacked:h(e,"stacked"),fixed:h(e,"fixedTabs"),sliderColor:h(e,"sliderColor"),hideSlider:h(e,"hideSlider")}}),W(()=>{const L=Y.filterProps(e),w=!!(t.window||e.items.length>0);return i(P,null,[i(Y,A(L,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},a.value,n.value,e.class],style:[{"--v-tabs-height":ye(e.height)},u.value,e.style],role:"tablist",symbol:F},_,l),{default:()=>{var d;return[((d=t.default)==null?void 0:d.call(t))??r.value.map(c=>{var g;return((g=t.tab)==null?void 0:g.call(t,{item:c}))??i(Q,A(c,{key:c.text,value:c.value}),{default:t[`tab.${c.value}`]?()=>{var b;return(b=t[`tab.${c.value}`])==null?void 0:b.call(t,{item:c})}:void 0})})]}}),w&&i(Ke,A({modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,key:"tabs-window"},_),{default:()=>{var d;return[r.value.map(c=>{var g;return((g=t.item)==null?void 0:g.call(t,{item:c}))??i(Qe,{value:c.value},{default:()=>{var b;return(b=t[`item.${c.value}`])==null?void 0:b.call(t,{item:c})}})}),(d=t.window)==null?void 0:d.call(t)]}})])}),{}}}),st={name:"AdminTabs",data(){return{activeTab:"Libraries",tabs:["Users","Groups","Libraries","Flags","Tasks","Stats"]}},computed:{...R(E,["comicLibrariesEmpty"]),...Ve(E,{librariesLoaded:e=>!!e.libraries}),mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{$route(e){const l=e.path.split("/").at(-1);this.activeTab=Se.startCase(l)}},mounted(){this.librariesLoaded||this.loadTables(["Library"])},methods:{...J(E,["loadTables"])}},ot={id:"tabContainer"},nt={key:0,id:"noLibraries"};function rt(e,s,l,t,o,r){const a=v("router-view");return m(),k("div",ot,[i(at,{class:M(["adminTabs",{drawerMargin:!r.mdAndDown}]),grow:"","show-arrows":""},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(Q,{key:n,modelValue:o.activeTab,"onUpdate:modelValue":s[0]||(s[0]=u=>o.activeTab=u),to:n.toLowerCase()},{default:f(()=>[j(Ae(n),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),i(z,{id:"tabItems",modelValue:o.activeTab,"onUpdate:modelValue":s[1]||(s[1]=n=>o.activeTab=n),touch:!1},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(a,{key:n},{default:f(({Component:u})=>[i(G,{value:n,class:"tabItemContainer"},{default:f(()=>[(m(),p(xe(u)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.comicLibrariesEmpty?Ce("",!0):(m(),k("div",nt," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const it=x(st,[["render",rt],["__scopeId","data-v-9a6023ab"]]),lt={name:"MainAdmin",components:{AdminTitleToolbar:Fe,AdminTabs:it,AdminSettingsDrawer:Ye,Unauthorized:Me},data(){return{mdiLogin:De}},computed:{...R(ke,["isUserAdmin"])}};function dt(e,s,l,t,o,r){const a=v("AdminTitleToolbar"),n=v("AdminTabs"),u=v("AdminSettingsDrawer"),_=v("Unauthorized");return e.isUserAdmin?(m(),p(ze,{key:0},{default:f(()=>[i(a),i(n),i(u)]),_:1})):(m(),p(_,{key:1}))}const Tt=x(lt,[["render",dt]]);export{Tt as default};
1
+ import{_ as x,Z as v,$ as m,Y as p,a0 as f,T as i,al as j,am as M,an as re,ao as ie,ap as R,X as J,E as le,F as B,aq as K,ar as de,P as I,as as ce,r as q,h as $,S as W,at as H,V as P,au as A,av as ue,aw as me,ax as be,i as fe,ay as Z,az as ve,aA as pe,aB as we,aC as ge,aD as h,aE as _e,aF as he,L as ye,aG as Te,D as E,W as Ve,l as Se,aH as k,aI as X,aJ as Ae,aK as xe,aL as Ce,aM as De,q as ke}from"./admin-drawer-panel-Can9sQIk.js";import{S as $e,V as Pe,a as Be,b as Ie}from"./settings-drawer-D_S8wFKC.js";import{u as We}from"./main-hKTXzzX1.js";import{m as Le,V as z,a as Ue,b as G}from"./VWindowItem-IDCZgODl.js";import{m as Ee,V as Y}from"./VSlideGroup-Bv0lRnhB.js";import{U as Me,V as ze}from"./unauthorized-BMsnj48f.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDialog-DPlcZ188.js";import"./change-password-dialog-BKyyB0i6.js";import"./VTextField-DhIkxARQ.js";import"./VSelectionControl-BpvvZpBd.js";const Ge={name:"AdminTitleToolbar",components:{SettingsDrawerButton:$e},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}}};function Re(e,s,l,t,o,r){const a=v("SettingsDrawerButton");return m(),p(Be,{id:"titleBar",class:M(["codexToolbar",{drawerMargin:!r.mdAndDown}]),density:"compact",elevation:"8"},{default:f(()=>[i(Pe,{class:"codexToolbarTitle"},{default:f(()=>[j(" Codex Administration ")]),_:1}),(m(),p(a,{key:r.mdAndDown,class:M({invisible:!r.mdAndDown}),disabled:!r.mdAndDown},null,8,["class","disabled"]))]),_:1},8,["class"])}const Fe=x(Ge,[["render",Re],["__scopeId","data-v-355452b0"]]),Oe={name:"AdminSettingsPanel",components:{DrawerItem:re},data(){return{mdiBookshelf:ie}},computed:{...R(We,["lastRoute"])}};function Ne(e,s,l,t,o,r){const a=v("DrawerItem");return m(),p(a,{to:e.lastRoute,"prepend-icon":o.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const qe=x(Oe,[["render",Ne]]),He={name:"AdminSettingsDrawer",components:{SettingsDrawer:Ie,AdminSettingsPanel:qe},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{mdAndDown(e){e||this.setSettingsDrawerOpen(!0)}},mounted(){this.mdAndDown||this.setSettingsDrawerOpen(!0)},methods:{...J(le,["setSettingsDrawerOpen"])}};function Xe(e,s,l,t,o,r){const a=v("AdminSettingsPanel"),n=v("SettingsDrawer");return m(),p(n,{title:"Admin",temporary:r.mdAndDown},{panel:f(()=>[i(a)]),_:1},8,["temporary"])}const Ye=x(He,[["render",Xe]]),F=Symbol.for("vuetify:v-tabs"),je=B({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...K(de({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Q=I()({name:"VTab",props:je(),setup(e,s){let{slots:l,attrs:t}=s;const{textColorClasses:o,textColorStyles:r}=ce(e,"sliderColor"),a=q(),n=q(),u=$(()=>e.direction==="horizontal"),_=$(()=>{var w,d;return((d=(w=a.value)==null?void 0:w.group)==null?void 0:d.isSelected.value)??!1});function L(w){var c,g;let{value:d}=w;if(d){const b=(g=(c=a.value)==null?void 0:c.$el.parentElement)==null?void 0:g.querySelector(".v-tab--selected .v-tab__slider"),U=n.value;if(!b||!U)return;const ee=getComputedStyle(b).color,y=b.getBoundingClientRect(),T=U.getBoundingClientRect(),C=u.value?"x":"y",D=u.value?"X":"Y",O=u.value?"right":"bottom",V=u.value?"width":"height",te=y[C],ae=T[C],S=te>ae?y[O]-T[O]:y[C]-T[C],se=Math.sign(S)>0?u.value?"right":"bottom":Math.sign(S)<0?u.value?"left":"top":"center",oe=(Math.abs(S)+(Math.sign(S)<0?y[V]:T[V]))/Math.max(y[V],T[V])||0,ne=y[V]/T[V]||0,N=1.5;me(U,{backgroundColor:[ee,"currentcolor"],transform:[`translate${D}(${S}px) scale${D}(${ne})`,`translate${D}(${S/N}px) scale${D}(${(oe-1)/N+1})`,"none"],transformOrigin:Array(3).fill(se)},{duration:225,easing:be})}}return W(()=>{const w=H.filterProps(e);return i(H,A({symbol:F,ref:a,class:["v-tab",e.class],style:e.style,tabindex:_.value?0:-1,role:"tab","aria-selected":String(_.value),active:!1},w,t,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":L}),{...l,default:()=>{var d;return i(P,null,[((d=l.default)==null?void 0:d.call(l))??e.text,!e.hideSlider&&i("div",{ref:n,class:["v-tab__slider",o.value],style:r.value},null)])}})}),ue({},a)}}),Je=B({...K(Le(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Ke=I()({name:"VTabsWindow",props:Je(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:l}=s;const t=fe(F,null),o=Z(e,"modelValue"),r=$({get(){var a;return o.value!=null||!t?o.value:(a=t.items.value.find(n=>t.selected.value.includes(n.id)))==null?void 0:a.value},set(a){o.value=a}});return W(()=>{const a=z.filterProps(e);return i(z,A({_as:"VTabsWindow"},a,{modelValue:r.value,"onUpdate:modelValue":n=>r.value=n,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),l)}),{}}}),Ze=B({...Ue()},"VTabsWindowItem"),Qe=I()({name:"VTabsWindowItem",props:Ze(),setup(e,s){let{slots:l}=s;return W(()=>{const t=G.filterProps(e);return i(G,A({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),l)}),{}}});function et(e){return e?e.map(s=>Te(s)?s:{text:s,value:s}):[]}const tt=B({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...Ee({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ve(),...pe()},"VTabs"),at=I()({name:"VTabs",props:tt(),emits:{"update:modelValue":e=>!0},setup(e,s){let{attrs:l,slots:t}=s;const o=Z(e,"modelValue"),r=$(()=>et(e.items)),{densityClasses:a}=we(e),{backgroundColorClasses:n,backgroundColorStyles:u}=ge(h(e,"bgColor")),{scopeId:_}=_e();return he({VTab:{color:h(e,"color"),direction:h(e,"direction"),stacked:h(e,"stacked"),fixed:h(e,"fixedTabs"),sliderColor:h(e,"sliderColor"),hideSlider:h(e,"hideSlider")}}),W(()=>{const L=Y.filterProps(e),w=!!(t.window||e.items.length>0);return i(P,null,[i(Y,A(L,{modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},a.value,n.value,e.class],style:[{"--v-tabs-height":ye(e.height)},u.value,e.style],role:"tablist",symbol:F},_,l),{default:()=>{var d;return[((d=t.default)==null?void 0:d.call(t))??r.value.map(c=>{var g;return((g=t.tab)==null?void 0:g.call(t,{item:c}))??i(Q,A(c,{key:c.text,value:c.value}),{default:t[`tab.${c.value}`]?()=>{var b;return(b=t[`tab.${c.value}`])==null?void 0:b.call(t,{item:c})}:void 0})})]}}),w&&i(Ke,A({modelValue:o.value,"onUpdate:modelValue":d=>o.value=d,key:"tabs-window"},_),{default:()=>{var d;return[r.value.map(c=>{var g;return((g=t.item)==null?void 0:g.call(t,{item:c}))??i(Qe,{value:c.value},{default:()=>{var b;return(b=t[`item.${c.value}`])==null?void 0:b.call(t,{item:c})}})}),(d=t.window)==null?void 0:d.call(t)]}})])}),{}}}),st={name:"AdminTabs",data(){return{activeTab:"Libraries",tabs:["Users","Groups","Libraries","Flags","Tasks","Stats"]}},computed:{...R(E,["comicLibrariesEmpty"]),...Ve(E,{librariesLoaded:e=>!!e.libraries}),mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{$route(e){const l=e.path.split("/").at(-1);this.activeTab=Se.startCase(l)}},mounted(){this.librariesLoaded||this.loadTables(["Library"])},methods:{...J(E,["loadTables"])}},ot={id:"tabContainer"},nt={key:0,id:"noLibraries"};function rt(e,s,l,t,o,r){const a=v("router-view");return m(),k("div",ot,[i(at,{class:M(["adminTabs",{drawerMargin:!r.mdAndDown}]),grow:"","show-arrows":""},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(Q,{key:n,modelValue:o.activeTab,"onUpdate:modelValue":s[0]||(s[0]=u=>o.activeTab=u),to:n.toLowerCase()},{default:f(()=>[j(Ae(n),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),i(z,{id:"tabItems",modelValue:o.activeTab,"onUpdate:modelValue":s[1]||(s[1]=n=>o.activeTab=n),touch:!1},{default:f(()=>[(m(!0),k(P,null,X(o.tabs,n=>(m(),p(a,{key:n},{default:f(({Component:u})=>[i(G,{value:n,class:"tabItemContainer"},{default:f(()=>[(m(),p(xe(u)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.comicLibrariesEmpty?Ce("",!0):(m(),k("div",nt," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const it=x(st,[["render",rt],["__scopeId","data-v-9a6023ab"]]),lt={name:"MainAdmin",components:{AdminTitleToolbar:Fe,AdminTabs:it,AdminSettingsDrawer:Ye,Unauthorized:Me},data(){return{mdiLogin:De}},computed:{...R(ke,["isUserAdmin"])}};function dt(e,s,l,t,o,r){const a=v("AdminTitleToolbar"),n=v("AdminTabs"),u=v("AdminSettingsDrawer"),_=v("Unauthorized");return e.isUserAdmin?(m(),p(ze,{key:0},{default:f(()=>[i(a),i(n),i(u)]),_:1})):(m(),p(_,{key:1}))}const Tt=x(lt,[["render",dt]]);export{Tt as default};