codex 1.6.0a11__py3-none-any.whl → 1.6.0rc0__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 (395) hide show
  1. codex/librarian/covers/create.py +21 -16
  2. codex/serializers/browser/choices.py +21 -54
  3. codex/serializers/browser/filters.py +30 -36
  4. codex/serializers/browser/mixins.py +2 -2
  5. codex/serializers/fields.py +32 -65
  6. codex/serializers/opds/v2.py +4 -6
  7. codex/static_root/assets/{VCheckbox-BwDyxhU7.831b00df198a.js → VCheckbox-BK0IPHyB.c85e2f87e16a.js} +1 -1
  8. codex/static_root/assets/VCheckbox-BK0IPHyB.c85e2f87e16a.js.br +0 -0
  9. codex/static_root/assets/VCheckbox-BK0IPHyB.c85e2f87e16a.js.gz +0 -0
  10. codex/static_root/assets/{VCheckbox-BwDyxhU7.js → VCheckbox-BK0IPHyB.js} +1 -1
  11. codex/static_root/assets/VCheckbox-BK0IPHyB.js.br +0 -0
  12. codex/static_root/assets/VCheckbox-BK0IPHyB.js.gz +0 -0
  13. codex/static_root/assets/{VCheckboxBtn-DVq5lDK4.5e6464c8d80a.js → VCheckboxBtn-DbVzgq3g.c2e2e2b16db0.js} +1 -1
  14. codex/static_root/assets/VCheckboxBtn-DbVzgq3g.c2e2e2b16db0.js.br +0 -0
  15. codex/static_root/assets/VCheckboxBtn-DbVzgq3g.c2e2e2b16db0.js.gz +0 -0
  16. codex/static_root/assets/{VCheckboxBtn-DVq5lDK4.js → VCheckboxBtn-DbVzgq3g.js} +1 -1
  17. codex/static_root/assets/VCheckboxBtn-DbVzgq3g.js.br +0 -0
  18. codex/static_root/assets/VCheckboxBtn-DbVzgq3g.js.gz +0 -0
  19. codex/static_root/assets/{VCombobox-BASCOy0n.7801caa5e192.js → VCombobox-DRNxfPeq.db51c60468b3.js} +1 -1
  20. codex/static_root/assets/VCombobox-DRNxfPeq.db51c60468b3.js.br +0 -0
  21. codex/static_root/assets/VCombobox-DRNxfPeq.db51c60468b3.js.gz +0 -0
  22. codex/static_root/assets/{VCombobox-BASCOy0n.js → VCombobox-DRNxfPeq.js} +1 -1
  23. codex/static_root/assets/VCombobox-DRNxfPeq.js.br +0 -0
  24. codex/static_root/assets/VCombobox-DRNxfPeq.js.gz +0 -0
  25. codex/static_root/assets/{VDialog-DnbL_v_u.0bd289bda8e6.js → VDialog-xrkpB5lc.7d3fa671e281.js} +1 -1
  26. codex/static_root/assets/VDialog-xrkpB5lc.7d3fa671e281.js.br +0 -0
  27. codex/static_root/assets/VDialog-xrkpB5lc.7d3fa671e281.js.gz +0 -0
  28. codex/static_root/assets/{VDialog-DnbL_v_u.js → VDialog-xrkpB5lc.js} +1 -1
  29. codex/static_root/assets/VDialog-xrkpB5lc.js.br +0 -0
  30. codex/static_root/assets/VDialog-xrkpB5lc.js.gz +0 -0
  31. codex/static_root/assets/{VExpansionPanels-B8nz8lN5.56e5adec4f62.js → VExpansionPanels-dtwXHEmN.b8444e54d145.js} +1 -1
  32. codex/static_root/assets/VExpansionPanels-dtwXHEmN.b8444e54d145.js.br +0 -0
  33. codex/static_root/assets/VExpansionPanels-dtwXHEmN.b8444e54d145.js.gz +0 -0
  34. codex/static_root/assets/{VExpansionPanels-B8nz8lN5.js → VExpansionPanels-dtwXHEmN.js} +1 -1
  35. codex/static_root/assets/VExpansionPanels-dtwXHEmN.js.br +0 -0
  36. codex/static_root/assets/VExpansionPanels-dtwXHEmN.js.gz +0 -0
  37. codex/static_root/assets/{VRadioGroup-BgwJ_b94.55f84f3429b9.js → VRadioGroup-DUhU0d2J.62d19103a0cc.js} +1 -1
  38. codex/static_root/assets/VRadioGroup-DUhU0d2J.62d19103a0cc.js.br +0 -0
  39. codex/static_root/assets/VRadioGroup-DUhU0d2J.62d19103a0cc.js.gz +0 -0
  40. codex/static_root/assets/{VRadioGroup-BgwJ_b94.js → VRadioGroup-DUhU0d2J.js} +1 -1
  41. codex/static_root/assets/VRadioGroup-DUhU0d2J.js.br +0 -0
  42. codex/static_root/assets/VRadioGroup-DUhU0d2J.js.gz +0 -0
  43. codex/static_root/assets/{VSelect-BoKpXxwe.a88f065dfe3b.js → VSelect-C768JtGg.a9c65d26248e.js} +1 -1
  44. codex/static_root/assets/VSelect-C768JtGg.a9c65d26248e.js.br +0 -0
  45. codex/static_root/assets/VSelect-C768JtGg.a9c65d26248e.js.gz +0 -0
  46. codex/static_root/assets/{VSelect-BoKpXxwe.js → VSelect-C768JtGg.js} +1 -1
  47. codex/static_root/assets/VSelect-C768JtGg.js.br +0 -0
  48. codex/static_root/assets/VSelect-C768JtGg.js.gz +0 -0
  49. codex/static_root/assets/{VSelectionControl-BXJGg8No.js → VSelectionControl-DocEa9g1.52f73fdce6d1.js} +1 -1
  50. codex/static_root/assets/VSelectionControl-DocEa9g1.52f73fdce6d1.js.br +0 -0
  51. codex/static_root/assets/VSelectionControl-DocEa9g1.52f73fdce6d1.js.gz +0 -0
  52. codex/static_root/assets/{VSelectionControl-BXJGg8No.0cb36d941d2a.js → VSelectionControl-DocEa9g1.js} +1 -1
  53. codex/static_root/assets/VSelectionControl-DocEa9g1.js.br +0 -0
  54. codex/static_root/assets/VSelectionControl-DocEa9g1.js.gz +0 -0
  55. codex/static_root/assets/{VSlideGroup-C2TL5E34.775adeb5a973.js → VSlideGroup-w7zv3wT_.647c2d1d6877.js} +1 -1
  56. codex/static_root/assets/VSlideGroup-w7zv3wT_.647c2d1d6877.js.br +0 -0
  57. codex/static_root/assets/VSlideGroup-w7zv3wT_.647c2d1d6877.js.gz +0 -0
  58. codex/static_root/assets/{VSlideGroup-C2TL5E34.js → VSlideGroup-w7zv3wT_.js} +1 -1
  59. codex/static_root/assets/VSlideGroup-w7zv3wT_.js.br +0 -0
  60. codex/static_root/assets/VSlideGroup-w7zv3wT_.js.gz +0 -0
  61. codex/static_root/assets/{VTable-C0FptljX.e4840b635c6e.js → VTable-Bm3ZZq7k.126b28481416.js} +1 -1
  62. codex/static_root/assets/VTable-Bm3ZZq7k.126b28481416.js.br +0 -0
  63. codex/static_root/assets/VTable-Bm3ZZq7k.126b28481416.js.gz +0 -0
  64. codex/static_root/assets/{VTable-C0FptljX.js → VTable-Bm3ZZq7k.js} +1 -1
  65. codex/static_root/assets/VTable-Bm3ZZq7k.js.br +0 -0
  66. codex/static_root/assets/VTable-Bm3ZZq7k.js.gz +0 -0
  67. codex/static_root/assets/{VTextField-Aw8nKhY6.428732ac22d7.js → VTextField-DuOs5usq.b1fe3e9e431d.js} +1 -1
  68. codex/static_root/assets/VTextField-DuOs5usq.b1fe3e9e431d.js.br +0 -0
  69. codex/static_root/assets/VTextField-DuOs5usq.b1fe3e9e431d.js.gz +0 -0
  70. codex/static_root/assets/{VTextField-Aw8nKhY6.js → VTextField-DuOs5usq.js} +1 -1
  71. codex/static_root/assets/VTextField-DuOs5usq.js.br +0 -0
  72. codex/static_root/assets/VTextField-DuOs5usq.js.gz +0 -0
  73. codex/static_root/assets/{VWindowItem-D9j_u9MX.828acf3dee55.js → VWindowItem-C3SaotR1.05f0f97e8897.js} +1 -1
  74. codex/static_root/assets/VWindowItem-C3SaotR1.05f0f97e8897.js.br +0 -0
  75. codex/static_root/assets/VWindowItem-C3SaotR1.05f0f97e8897.js.gz +0 -0
  76. codex/static_root/assets/{VWindowItem-D9j_u9MX.js → VWindowItem-C3SaotR1.js} +1 -1
  77. codex/static_root/assets/VWindowItem-C3SaotR1.js.br +0 -0
  78. codex/static_root/assets/VWindowItem-C3SaotR1.js.gz +0 -0
  79. codex/static_root/assets/admin-37fN97_d.076ef24ac3c3.js +1 -0
  80. codex/static_root/assets/admin-37fN97_d.076ef24ac3c3.js.br +0 -0
  81. codex/static_root/assets/admin-37fN97_d.076ef24ac3c3.js.gz +0 -0
  82. codex/static_root/assets/admin-37fN97_d.js +1 -0
  83. codex/static_root/assets/admin-37fN97_d.js.br +0 -0
  84. codex/static_root/assets/admin-37fN97_d.js.gz +0 -0
  85. codex/static_root/assets/{admin-drawer-panel-Dmn4wEY3.af7e8490f0e3.js → admin-drawer-panel-CFthvbMb.11b1e9f05875.js} +2 -2
  86. codex/static_root/assets/admin-drawer-panel-CFthvbMb.11b1e9f05875.js.br +0 -0
  87. codex/static_root/assets/admin-drawer-panel-CFthvbMb.11b1e9f05875.js.gz +0 -0
  88. codex/static_root/assets/{admin-drawer-panel-Dmn4wEY3.js → admin-drawer-panel-CFthvbMb.js} +2 -2
  89. codex/static_root/assets/admin-drawer-panel-CFthvbMb.js.br +0 -0
  90. codex/static_root/assets/admin-drawer-panel-CFthvbMb.js.gz +0 -0
  91. codex/static_root/assets/browser-BlycPHgZ.5842145b0e63.css +1 -0
  92. codex/static_root/assets/browser-BlycPHgZ.5842145b0e63.css.br +0 -0
  93. codex/static_root/assets/browser-BlycPHgZ.5842145b0e63.css.gz +0 -0
  94. codex/static_root/assets/browser-BlycPHgZ.css +1 -0
  95. codex/static_root/assets/browser-BlycPHgZ.css.br +0 -0
  96. codex/static_root/assets/browser-BlycPHgZ.css.gz +0 -0
  97. codex/static_root/assets/browser-CA_2XCnV.fb1d5c95e960.js +1 -0
  98. codex/static_root/assets/browser-CA_2XCnV.fb1d5c95e960.js.br +0 -0
  99. codex/static_root/assets/browser-CA_2XCnV.fb1d5c95e960.js.gz +0 -0
  100. codex/static_root/assets/browser-CA_2XCnV.js +1 -0
  101. codex/static_root/assets/browser-CA_2XCnV.js.br +0 -0
  102. codex/static_root/assets/browser-CA_2XCnV.js.gz +0 -0
  103. codex/static_root/assets/{change-password-dialog-Cc1e755p.b29d200537bf.js → change-password-dialog-CdCjAlM3.39002922098f.js} +1 -1
  104. codex/static_root/assets/change-password-dialog-CdCjAlM3.39002922098f.js.br +0 -0
  105. codex/static_root/assets/change-password-dialog-CdCjAlM3.39002922098f.js.gz +0 -0
  106. codex/static_root/assets/{change-password-dialog-Cc1e755p.js → change-password-dialog-CdCjAlM3.js} +1 -1
  107. codex/static_root/assets/change-password-dialog-CdCjAlM3.js.br +0 -0
  108. codex/static_root/assets/change-password-dialog-CdCjAlM3.js.gz +0 -0
  109. codex/static_root/assets/{confirm-dialog-Cyr7HAAz.8ab1d8b6241a.js → confirm-dialog-C-TnajF6.839491684c0e.js} +1 -1
  110. codex/static_root/assets/confirm-dialog-C-TnajF6.839491684c0e.js.br +0 -0
  111. codex/static_root/assets/confirm-dialog-C-TnajF6.839491684c0e.js.gz +0 -0
  112. codex/static_root/assets/{confirm-dialog-Cyr7HAAz.js → confirm-dialog-C-TnajF6.js} +1 -1
  113. codex/static_root/assets/confirm-dialog-C-TnajF6.js.br +0 -0
  114. codex/static_root/assets/confirm-dialog-C-TnajF6.js.gz +0 -0
  115. codex/static_root/assets/{datetime-column-Cqi99Ze-.49d0ce340183.js → datetime-column-DwrIUx_h.f913e4e33aab.js} +1 -1
  116. codex/static_root/assets/datetime-column-DwrIUx_h.f913e4e33aab.js.br +0 -0
  117. codex/static_root/assets/datetime-column-DwrIUx_h.f913e4e33aab.js.gz +0 -0
  118. codex/static_root/assets/{datetime-column-Cqi99Ze-.js → datetime-column-DwrIUx_h.js} +1 -1
  119. codex/static_root/assets/datetime-column-DwrIUx_h.js.br +0 -0
  120. codex/static_root/assets/datetime-column-DwrIUx_h.js.gz +0 -0
  121. codex/static_root/assets/{filter-CuocBoS2.885d1b8d44cc.js → filter-Tm2kUX1m.efab6f87b66b.js} +1 -1
  122. codex/static_root/assets/filter-Tm2kUX1m.efab6f87b66b.js.br +0 -0
  123. codex/static_root/assets/filter-Tm2kUX1m.efab6f87b66b.js.gz +0 -0
  124. codex/static_root/assets/{filter-CuocBoS2.js → filter-Tm2kUX1m.js} +1 -1
  125. codex/static_root/assets/filter-Tm2kUX1m.js.br +0 -0
  126. codex/static_root/assets/filter-Tm2kUX1m.js.gz +0 -0
  127. codex/static_root/assets/{flag-tab-B5dRCBAt.e858f7ec9f55.js → flag-tab-CEyOjZFp.628af77cb04b.js} +1 -1
  128. codex/static_root/assets/flag-tab-CEyOjZFp.628af77cb04b.js.br +0 -0
  129. codex/static_root/assets/flag-tab-CEyOjZFp.628af77cb04b.js.gz +0 -0
  130. codex/static_root/assets/{flag-tab-B5dRCBAt.js → flag-tab-CEyOjZFp.js} +1 -1
  131. codex/static_root/assets/flag-tab-CEyOjZFp.js.br +0 -0
  132. codex/static_root/assets/flag-tab-CEyOjZFp.js.gz +0 -0
  133. codex/static_root/assets/{group-tab-_nT2o04v.c06032b254dc.js → group-tab-CBqhy8zy.75497868a808.js} +1 -1
  134. codex/static_root/assets/group-tab-CBqhy8zy.75497868a808.js.br +0 -0
  135. codex/static_root/assets/group-tab-CBqhy8zy.75497868a808.js.gz +0 -0
  136. codex/static_root/assets/{group-tab-_nT2o04v.js → group-tab-CBqhy8zy.js} +1 -1
  137. codex/static_root/assets/group-tab-CBqhy8zy.js.br +0 -0
  138. codex/static_root/assets/group-tab-CBqhy8zy.js.gz +0 -0
  139. codex/static_root/assets/{http-error-CXo9qLiW.d5a337f399c9.js → http-error-MPj9N9no.5efe701ebf21.js} +1 -1
  140. codex/static_root/assets/http-error-MPj9N9no.5efe701ebf21.js.br +0 -0
  141. codex/static_root/assets/http-error-MPj9N9no.5efe701ebf21.js.gz +0 -0
  142. codex/static_root/assets/{http-error-CXo9qLiW.js → http-error-MPj9N9no.js} +1 -1
  143. codex/static_root/assets/http-error-MPj9N9no.js.br +0 -0
  144. codex/static_root/assets/http-error-MPj9N9no.js.gz +0 -0
  145. codex/static_root/assets/{library-tab-lz5QMD4i.2f04b226ebe8.js → library-tab-5azEcqzs.47a08c31a787.js} +1 -1
  146. codex/static_root/assets/library-tab-5azEcqzs.47a08c31a787.js.br +0 -0
  147. codex/static_root/assets/library-tab-5azEcqzs.47a08c31a787.js.gz +0 -0
  148. codex/static_root/assets/{library-tab-lz5QMD4i.js → library-tab-5azEcqzs.js} +1 -1
  149. codex/static_root/assets/library-tab-5azEcqzs.js.br +0 -0
  150. codex/static_root/assets/library-tab-5azEcqzs.js.gz +0 -0
  151. codex/static_root/assets/main-BsvrAp4n.67f45fa0cbae.js +32 -0
  152. codex/static_root/assets/main-BsvrAp4n.67f45fa0cbae.js.br +0 -0
  153. codex/static_root/assets/main-BsvrAp4n.67f45fa0cbae.js.gz +0 -0
  154. codex/static_root/assets/main-BsvrAp4n.js +32 -0
  155. codex/static_root/assets/main-BsvrAp4n.js.br +0 -0
  156. codex/static_root/assets/main-BsvrAp4n.js.gz +0 -0
  157. codex/static_root/assets/pagination-toolbar-BLUoVz2y.50051431acf1.css +1 -0
  158. codex/static_root/assets/pagination-toolbar-BLUoVz2y.50051431acf1.css.br +0 -0
  159. codex/static_root/assets/pagination-toolbar-BLUoVz2y.50051431acf1.css.gz +0 -0
  160. codex/static_root/assets/pagination-toolbar-BLUoVz2y.css +1 -0
  161. codex/static_root/assets/pagination-toolbar-BLUoVz2y.css.br +0 -0
  162. codex/static_root/assets/pagination-toolbar-BLUoVz2y.css.gz +0 -0
  163. codex/static_root/assets/pagination-toolbar-CfSLqHFH.202c4c4edba3.js +1 -0
  164. codex/static_root/assets/pagination-toolbar-CfSLqHFH.202c4c4edba3.js.br +0 -0
  165. codex/static_root/assets/pagination-toolbar-CfSLqHFH.202c4c4edba3.js.gz +0 -0
  166. codex/static_root/assets/pagination-toolbar-CfSLqHFH.js +1 -0
  167. codex/static_root/assets/pagination-toolbar-CfSLqHFH.js.br +0 -0
  168. codex/static_root/assets/pagination-toolbar-CfSLqHFH.js.gz +0 -0
  169. codex/static_root/assets/{pdf-doc-BpZdmj2g.93e86d9c7927.js → pdf-doc-Dd9MUnaN.750b8c2b1614.js} +1 -1
  170. codex/static_root/assets/pdf-doc-Dd9MUnaN.750b8c2b1614.js.br +0 -0
  171. codex/static_root/assets/pdf-doc-Dd9MUnaN.750b8c2b1614.js.gz +0 -0
  172. codex/static_root/assets/{pdf-doc-BpZdmj2g.js → pdf-doc-Dd9MUnaN.js} +1 -1
  173. codex/static_root/assets/pdf-doc-Dd9MUnaN.js.br +0 -0
  174. codex/static_root/assets/pdf-doc-Dd9MUnaN.js.gz +0 -0
  175. codex/static_root/assets/{reader-CRJUR2qj.js → reader-CFLp5Avy.c10d0e7bdc6a.js} +2 -2
  176. codex/static_root/assets/reader-CFLp5Avy.c10d0e7bdc6a.js.br +0 -0
  177. codex/static_root/assets/reader-CFLp5Avy.c10d0e7bdc6a.js.gz +0 -0
  178. codex/static_root/assets/{reader-CRJUR2qj.55d626f0f9fa.js → reader-CFLp5Avy.js} +2 -2
  179. codex/static_root/assets/reader-CFLp5Avy.js.br +0 -0
  180. codex/static_root/assets/reader-CFLp5Avy.js.gz +0 -0
  181. codex/static_root/assets/{relation-chips-NgDnInw_.3b5ba16f68f0.js → relation-chips-CFQRvVd2.16c214e5a077.js} +1 -1
  182. codex/static_root/assets/relation-chips-CFQRvVd2.16c214e5a077.js.br +0 -0
  183. codex/static_root/assets/relation-chips-CFQRvVd2.16c214e5a077.js.gz +0 -0
  184. codex/static_root/assets/{relation-chips-NgDnInw_.js → relation-chips-CFQRvVd2.js} +1 -1
  185. codex/static_root/assets/relation-chips-CFQRvVd2.js.br +0 -0
  186. codex/static_root/assets/relation-chips-CFQRvVd2.js.gz +0 -0
  187. codex/static_root/assets/{settings-drawer-BaQT27kc.js → settings-drawer-DATmeafe.aed03d89d68e.js} +2 -2
  188. codex/static_root/assets/settings-drawer-DATmeafe.aed03d89d68e.js.br +0 -0
  189. codex/static_root/assets/settings-drawer-DATmeafe.aed03d89d68e.js.gz +0 -0
  190. codex/static_root/assets/{settings-drawer-BaQT27kc.e43fc1527b66.js → settings-drawer-DATmeafe.js} +2 -2
  191. codex/static_root/assets/settings-drawer-DATmeafe.js.br +0 -0
  192. codex/static_root/assets/settings-drawer-DATmeafe.js.gz +0 -0
  193. codex/static_root/assets/{stats-tab-DoHb54IU.30d7deea7b9f.js → stats-tab-BaWY3sVM.0007ad091e4a.js} +1 -1
  194. codex/static_root/assets/stats-tab-BaWY3sVM.0007ad091e4a.js.br +0 -0
  195. codex/static_root/assets/stats-tab-BaWY3sVM.0007ad091e4a.js.gz +0 -0
  196. codex/static_root/assets/{stats-tab-DoHb54IU.js → stats-tab-BaWY3sVM.js} +1 -1
  197. codex/static_root/assets/stats-tab-BaWY3sVM.js.br +0 -0
  198. codex/static_root/assets/stats-tab-BaWY3sVM.js.gz +0 -0
  199. codex/static_root/assets/{task-tab-B88ucu1U.4f240e3d82c4.js → task-tab-DVu0qD_G.5eb9fd4258f1.js} +1 -1
  200. codex/static_root/assets/task-tab-DVu0qD_G.5eb9fd4258f1.js.br +0 -0
  201. codex/static_root/assets/task-tab-DVu0qD_G.5eb9fd4258f1.js.gz +0 -0
  202. codex/static_root/assets/{task-tab-B88ucu1U.js → task-tab-DVu0qD_G.js} +1 -1
  203. codex/static_root/assets/task-tab-DVu0qD_G.js.br +0 -0
  204. codex/static_root/assets/task-tab-DVu0qD_G.js.gz +0 -0
  205. codex/static_root/assets/to-case-nvRvwQgU.a5952b24fca1.js +1 -0
  206. codex/static_root/assets/to-case-nvRvwQgU.a5952b24fca1.js.br +0 -0
  207. codex/static_root/assets/to-case-nvRvwQgU.js +1 -0
  208. codex/static_root/assets/to-case-nvRvwQgU.js.br +0 -0
  209. codex/static_root/assets/{unauthorized-AnKtlgGy.62ee74d4373c.js → unauthorized-xWMjiI8M.490ac34d8d4a.js} +1 -1
  210. codex/static_root/assets/unauthorized-xWMjiI8M.490ac34d8d4a.js.br +0 -0
  211. codex/static_root/assets/unauthorized-xWMjiI8M.490ac34d8d4a.js.gz +0 -0
  212. codex/static_root/assets/{unauthorized-AnKtlgGy.js → unauthorized-xWMjiI8M.js} +1 -1
  213. codex/static_root/assets/unauthorized-xWMjiI8M.js.br +0 -0
  214. codex/static_root/assets/unauthorized-xWMjiI8M.js.gz +0 -0
  215. codex/static_root/assets/{user-tab-BxtZ2u7W.161cc8f0dcce.js → user-tab-BhdZJ6QU.c2709e6649b1.js} +1 -1
  216. codex/static_root/assets/user-tab-BhdZJ6QU.c2709e6649b1.js.br +0 -0
  217. codex/static_root/assets/user-tab-BhdZJ6QU.c2709e6649b1.js.gz +0 -0
  218. codex/static_root/assets/{user-tab-BxtZ2u7W.js → user-tab-BhdZJ6QU.js} +1 -1
  219. codex/static_root/assets/user-tab-BhdZJ6QU.js.br +0 -0
  220. codex/static_root/assets/user-tab-BhdZJ6QU.js.gz +0 -0
  221. codex/static_root/{manifest.3851c028b0cb.json → manifest.94f4daf2f37d.json} +222 -222
  222. codex/static_root/manifest.94f4daf2f37d.json.br +0 -0
  223. codex/static_root/manifest.94f4daf2f37d.json.gz +0 -0
  224. codex/static_root/manifest.json +222 -222
  225. codex/static_root/manifest.json.br +0 -0
  226. codex/static_root/manifest.json.gz +0 -0
  227. codex/static_root/staticfiles.json +1 -1
  228. codex/views/browser/cover.py +15 -18
  229. codex/views/browser/filters/group.py +4 -3
  230. codex/views/browser/metadata.py +5 -5
  231. codex/views/reader/page.py +13 -2
  232. codex/views/util.py +13 -0
  233. {codex-1.6.0a11.dist-info → codex-1.6.0rc0.dist-info}/METADATA +2 -1
  234. {codex-1.6.0a11.dist-info → codex-1.6.0rc0.dist-info}/RECORD +237 -237
  235. codex/static_root/assets/VCheckbox-BwDyxhU7.831b00df198a.js.br +0 -0
  236. codex/static_root/assets/VCheckbox-BwDyxhU7.831b00df198a.js.gz +0 -0
  237. codex/static_root/assets/VCheckbox-BwDyxhU7.js.br +0 -0
  238. codex/static_root/assets/VCheckbox-BwDyxhU7.js.gz +0 -0
  239. codex/static_root/assets/VCheckboxBtn-DVq5lDK4.5e6464c8d80a.js.br +0 -0
  240. codex/static_root/assets/VCheckboxBtn-DVq5lDK4.5e6464c8d80a.js.gz +0 -0
  241. codex/static_root/assets/VCheckboxBtn-DVq5lDK4.js.br +0 -0
  242. codex/static_root/assets/VCheckboxBtn-DVq5lDK4.js.gz +0 -0
  243. codex/static_root/assets/VCombobox-BASCOy0n.7801caa5e192.js.br +0 -0
  244. codex/static_root/assets/VCombobox-BASCOy0n.7801caa5e192.js.gz +0 -0
  245. codex/static_root/assets/VCombobox-BASCOy0n.js.br +0 -0
  246. codex/static_root/assets/VCombobox-BASCOy0n.js.gz +0 -0
  247. codex/static_root/assets/VDialog-DnbL_v_u.0bd289bda8e6.js.br +0 -0
  248. codex/static_root/assets/VDialog-DnbL_v_u.0bd289bda8e6.js.gz +0 -0
  249. codex/static_root/assets/VDialog-DnbL_v_u.js.br +0 -0
  250. codex/static_root/assets/VDialog-DnbL_v_u.js.gz +0 -0
  251. codex/static_root/assets/VExpansionPanels-B8nz8lN5.56e5adec4f62.js.br +0 -0
  252. codex/static_root/assets/VExpansionPanels-B8nz8lN5.56e5adec4f62.js.gz +0 -0
  253. codex/static_root/assets/VExpansionPanels-B8nz8lN5.js.br +0 -0
  254. codex/static_root/assets/VExpansionPanels-B8nz8lN5.js.gz +0 -0
  255. codex/static_root/assets/VRadioGroup-BgwJ_b94.55f84f3429b9.js.br +0 -0
  256. codex/static_root/assets/VRadioGroup-BgwJ_b94.55f84f3429b9.js.gz +0 -0
  257. codex/static_root/assets/VRadioGroup-BgwJ_b94.js.br +0 -0
  258. codex/static_root/assets/VRadioGroup-BgwJ_b94.js.gz +0 -0
  259. codex/static_root/assets/VSelect-BoKpXxwe.a88f065dfe3b.js.br +0 -0
  260. codex/static_root/assets/VSelect-BoKpXxwe.a88f065dfe3b.js.gz +0 -0
  261. codex/static_root/assets/VSelect-BoKpXxwe.js.br +0 -0
  262. codex/static_root/assets/VSelect-BoKpXxwe.js.gz +0 -0
  263. codex/static_root/assets/VSelectionControl-BXJGg8No.0cb36d941d2a.js.br +0 -0
  264. codex/static_root/assets/VSelectionControl-BXJGg8No.0cb36d941d2a.js.gz +0 -0
  265. codex/static_root/assets/VSelectionControl-BXJGg8No.js.br +0 -0
  266. codex/static_root/assets/VSelectionControl-BXJGg8No.js.gz +0 -0
  267. codex/static_root/assets/VSlideGroup-C2TL5E34.775adeb5a973.js.br +0 -0
  268. codex/static_root/assets/VSlideGroup-C2TL5E34.775adeb5a973.js.gz +0 -0
  269. codex/static_root/assets/VSlideGroup-C2TL5E34.js.br +0 -0
  270. codex/static_root/assets/VSlideGroup-C2TL5E34.js.gz +0 -0
  271. codex/static_root/assets/VTable-C0FptljX.e4840b635c6e.js.br +0 -0
  272. codex/static_root/assets/VTable-C0FptljX.e4840b635c6e.js.gz +0 -0
  273. codex/static_root/assets/VTable-C0FptljX.js.br +0 -0
  274. codex/static_root/assets/VTable-C0FptljX.js.gz +0 -0
  275. codex/static_root/assets/VTextField-Aw8nKhY6.428732ac22d7.js.br +0 -0
  276. codex/static_root/assets/VTextField-Aw8nKhY6.428732ac22d7.js.gz +0 -0
  277. codex/static_root/assets/VTextField-Aw8nKhY6.js.br +0 -0
  278. codex/static_root/assets/VTextField-Aw8nKhY6.js.gz +0 -0
  279. codex/static_root/assets/VWindowItem-D9j_u9MX.828acf3dee55.js.br +0 -0
  280. codex/static_root/assets/VWindowItem-D9j_u9MX.828acf3dee55.js.gz +0 -0
  281. codex/static_root/assets/VWindowItem-D9j_u9MX.js.br +0 -0
  282. codex/static_root/assets/VWindowItem-D9j_u9MX.js.gz +0 -0
  283. codex/static_root/assets/admin-drawer-panel-Dmn4wEY3.af7e8490f0e3.js.br +0 -0
  284. codex/static_root/assets/admin-drawer-panel-Dmn4wEY3.af7e8490f0e3.js.gz +0 -0
  285. codex/static_root/assets/admin-drawer-panel-Dmn4wEY3.js.br +0 -0
  286. codex/static_root/assets/admin-drawer-panel-Dmn4wEY3.js.gz +0 -0
  287. codex/static_root/assets/admin-jf7zR2p_.4741813376d2.js +0 -1
  288. codex/static_root/assets/admin-jf7zR2p_.4741813376d2.js.br +0 -0
  289. codex/static_root/assets/admin-jf7zR2p_.4741813376d2.js.gz +0 -0
  290. codex/static_root/assets/admin-jf7zR2p_.js +0 -1
  291. codex/static_root/assets/admin-jf7zR2p_.js.br +0 -0
  292. codex/static_root/assets/admin-jf7zR2p_.js.gz +0 -0
  293. codex/static_root/assets/browser-BKZuypzF.86e5333bd7d6.js +0 -1
  294. codex/static_root/assets/browser-BKZuypzF.86e5333bd7d6.js.br +0 -0
  295. codex/static_root/assets/browser-BKZuypzF.86e5333bd7d6.js.gz +0 -0
  296. codex/static_root/assets/browser-BKZuypzF.js +0 -1
  297. codex/static_root/assets/browser-BKZuypzF.js.br +0 -0
  298. codex/static_root/assets/browser-BKZuypzF.js.gz +0 -0
  299. codex/static_root/assets/browser-D7xci5SY.css +0 -1
  300. codex/static_root/assets/browser-D7xci5SY.css.br +0 -0
  301. codex/static_root/assets/browser-D7xci5SY.css.gz +0 -0
  302. codex/static_root/assets/browser-D7xci5SY.fa305e14005c.css +0 -1
  303. codex/static_root/assets/browser-D7xci5SY.fa305e14005c.css.br +0 -0
  304. codex/static_root/assets/browser-D7xci5SY.fa305e14005c.css.gz +0 -0
  305. codex/static_root/assets/change-password-dialog-Cc1e755p.b29d200537bf.js.br +0 -0
  306. codex/static_root/assets/change-password-dialog-Cc1e755p.b29d200537bf.js.gz +0 -0
  307. codex/static_root/assets/change-password-dialog-Cc1e755p.js.br +0 -0
  308. codex/static_root/assets/change-password-dialog-Cc1e755p.js.gz +0 -0
  309. codex/static_root/assets/confirm-dialog-Cyr7HAAz.8ab1d8b6241a.js.br +0 -0
  310. codex/static_root/assets/confirm-dialog-Cyr7HAAz.8ab1d8b6241a.js.gz +0 -0
  311. codex/static_root/assets/confirm-dialog-Cyr7HAAz.js.br +0 -0
  312. codex/static_root/assets/confirm-dialog-Cyr7HAAz.js.gz +0 -0
  313. codex/static_root/assets/datetime-column-Cqi99Ze-.49d0ce340183.js.br +0 -0
  314. codex/static_root/assets/datetime-column-Cqi99Ze-.49d0ce340183.js.gz +0 -0
  315. codex/static_root/assets/datetime-column-Cqi99Ze-.js.br +0 -0
  316. codex/static_root/assets/datetime-column-Cqi99Ze-.js.gz +0 -0
  317. codex/static_root/assets/filter-CuocBoS2.885d1b8d44cc.js.br +0 -0
  318. codex/static_root/assets/filter-CuocBoS2.885d1b8d44cc.js.gz +0 -0
  319. codex/static_root/assets/filter-CuocBoS2.js.br +0 -0
  320. codex/static_root/assets/filter-CuocBoS2.js.gz +0 -0
  321. codex/static_root/assets/flag-tab-B5dRCBAt.e858f7ec9f55.js.br +0 -0
  322. codex/static_root/assets/flag-tab-B5dRCBAt.e858f7ec9f55.js.gz +0 -0
  323. codex/static_root/assets/flag-tab-B5dRCBAt.js.br +0 -0
  324. codex/static_root/assets/flag-tab-B5dRCBAt.js.gz +0 -0
  325. codex/static_root/assets/group-tab-_nT2o04v.c06032b254dc.js.br +0 -0
  326. codex/static_root/assets/group-tab-_nT2o04v.c06032b254dc.js.gz +0 -0
  327. codex/static_root/assets/group-tab-_nT2o04v.js.br +0 -0
  328. codex/static_root/assets/group-tab-_nT2o04v.js.gz +0 -0
  329. codex/static_root/assets/http-error-CXo9qLiW.d5a337f399c9.js.br +0 -0
  330. codex/static_root/assets/http-error-CXo9qLiW.d5a337f399c9.js.gz +0 -0
  331. codex/static_root/assets/http-error-CXo9qLiW.js.br +0 -0
  332. codex/static_root/assets/http-error-CXo9qLiW.js.gz +0 -0
  333. codex/static_root/assets/library-tab-lz5QMD4i.2f04b226ebe8.js.br +0 -0
  334. codex/static_root/assets/library-tab-lz5QMD4i.2f04b226ebe8.js.gz +0 -0
  335. codex/static_root/assets/library-tab-lz5QMD4i.js.br +0 -0
  336. codex/static_root/assets/library-tab-lz5QMD4i.js.gz +0 -0
  337. codex/static_root/assets/main-17i0EBCp.7093c3f755f1.js +0 -32
  338. codex/static_root/assets/main-17i0EBCp.7093c3f755f1.js.br +0 -0
  339. codex/static_root/assets/main-17i0EBCp.7093c3f755f1.js.gz +0 -0
  340. codex/static_root/assets/main-17i0EBCp.js +0 -32
  341. codex/static_root/assets/main-17i0EBCp.js.br +0 -0
  342. codex/static_root/assets/main-17i0EBCp.js.gz +0 -0
  343. codex/static_root/assets/pagination-toolbar-BBvsIXTd.ad891da6617a.js +0 -1
  344. codex/static_root/assets/pagination-toolbar-BBvsIXTd.ad891da6617a.js.br +0 -0
  345. codex/static_root/assets/pagination-toolbar-BBvsIXTd.ad891da6617a.js.gz +0 -0
  346. codex/static_root/assets/pagination-toolbar-BBvsIXTd.js +0 -1
  347. codex/static_root/assets/pagination-toolbar-BBvsIXTd.js.br +0 -0
  348. codex/static_root/assets/pagination-toolbar-BBvsIXTd.js.gz +0 -0
  349. codex/static_root/assets/pagination-toolbar-B_zL7BQQ.css +0 -1
  350. codex/static_root/assets/pagination-toolbar-B_zL7BQQ.css.br +0 -0
  351. codex/static_root/assets/pagination-toolbar-B_zL7BQQ.css.gz +0 -0
  352. codex/static_root/assets/pagination-toolbar-B_zL7BQQ.d1311bd41edc.css +0 -1
  353. codex/static_root/assets/pagination-toolbar-B_zL7BQQ.d1311bd41edc.css.br +0 -0
  354. codex/static_root/assets/pagination-toolbar-B_zL7BQQ.d1311bd41edc.css.gz +0 -0
  355. codex/static_root/assets/pdf-doc-BpZdmj2g.93e86d9c7927.js.br +0 -0
  356. codex/static_root/assets/pdf-doc-BpZdmj2g.93e86d9c7927.js.gz +0 -0
  357. codex/static_root/assets/pdf-doc-BpZdmj2g.js.br +0 -0
  358. codex/static_root/assets/pdf-doc-BpZdmj2g.js.gz +0 -0
  359. codex/static_root/assets/reader-CRJUR2qj.55d626f0f9fa.js.br +0 -0
  360. codex/static_root/assets/reader-CRJUR2qj.55d626f0f9fa.js.gz +0 -0
  361. codex/static_root/assets/reader-CRJUR2qj.js.br +0 -0
  362. codex/static_root/assets/reader-CRJUR2qj.js.gz +0 -0
  363. codex/static_root/assets/relation-chips-NgDnInw_.3b5ba16f68f0.js.br +0 -0
  364. codex/static_root/assets/relation-chips-NgDnInw_.3b5ba16f68f0.js.gz +0 -0
  365. codex/static_root/assets/relation-chips-NgDnInw_.js.br +0 -0
  366. codex/static_root/assets/relation-chips-NgDnInw_.js.gz +0 -0
  367. codex/static_root/assets/settings-drawer-BaQT27kc.e43fc1527b66.js.br +0 -0
  368. codex/static_root/assets/settings-drawer-BaQT27kc.e43fc1527b66.js.gz +0 -0
  369. codex/static_root/assets/settings-drawer-BaQT27kc.js.br +0 -0
  370. codex/static_root/assets/settings-drawer-BaQT27kc.js.gz +0 -0
  371. codex/static_root/assets/stats-tab-DoHb54IU.30d7deea7b9f.js.br +0 -0
  372. codex/static_root/assets/stats-tab-DoHb54IU.30d7deea7b9f.js.gz +0 -0
  373. codex/static_root/assets/stats-tab-DoHb54IU.js.br +0 -0
  374. codex/static_root/assets/stats-tab-DoHb54IU.js.gz +0 -0
  375. codex/static_root/assets/task-tab-B88ucu1U.4f240e3d82c4.js.br +0 -0
  376. codex/static_root/assets/task-tab-B88ucu1U.4f240e3d82c4.js.gz +0 -0
  377. codex/static_root/assets/task-tab-B88ucu1U.js.br +0 -0
  378. codex/static_root/assets/task-tab-B88ucu1U.js.gz +0 -0
  379. codex/static_root/assets/to-case-B7MjLIw-.08fc8412de69.js +0 -1
  380. codex/static_root/assets/to-case-B7MjLIw-.08fc8412de69.js.br +0 -0
  381. codex/static_root/assets/to-case-B7MjLIw-.js +0 -1
  382. codex/static_root/assets/to-case-B7MjLIw-.js.br +0 -0
  383. codex/static_root/assets/unauthorized-AnKtlgGy.62ee74d4373c.js.br +0 -0
  384. codex/static_root/assets/unauthorized-AnKtlgGy.62ee74d4373c.js.gz +0 -0
  385. codex/static_root/assets/unauthorized-AnKtlgGy.js.br +0 -0
  386. codex/static_root/assets/unauthorized-AnKtlgGy.js.gz +0 -0
  387. codex/static_root/assets/user-tab-BxtZ2u7W.161cc8f0dcce.js.br +0 -0
  388. codex/static_root/assets/user-tab-BxtZ2u7W.161cc8f0dcce.js.gz +0 -0
  389. codex/static_root/assets/user-tab-BxtZ2u7W.js.br +0 -0
  390. codex/static_root/assets/user-tab-BxtZ2u7W.js.gz +0 -0
  391. codex/static_root/manifest.3851c028b0cb.json.br +0 -0
  392. codex/static_root/manifest.3851c028b0cb.json.gz +0 -0
  393. {codex-1.6.0a11.dist-info → codex-1.6.0rc0.dist-info}/LICENSE +0 -0
  394. {codex-1.6.0a11.dist-info → codex-1.6.0rc0.dist-info}/WHEEL +0 -0
  395. {codex-1.6.0a11.dist-info → codex-1.6.0rc0.dist-info}/entry_points.txt +0 -0
@@ -1 +1 @@
1
- import{E as ee,bf as G,M as te,cu as le,ay as oe,cU as ne,O as se,Q as ae,cv as ie,b_ as re,s as x,h as g,I as D,ag as L,a as ue,R as ce,S as h,cm as q,aP as B,dc as fe}from"./admin-drawer-panel-Dmn4wEY3.js";import{n as ve}from"./main-17i0EBCp.js";function de(l){let{selectedElement:n,containerElement:o,isRtl:i,isHorizontal:v}=l;const d=z(v,o),a=U(v,i,o),p=z(v,n),c=K(v,n),S=p*.4;return a>c?c-S:a+d<c+p?c-d+p+S:a}function pe(l){let{selectedElement:n,containerElement:o,isHorizontal:i}=l;const v=z(i,o),d=K(i,n),a=z(i,n);return d-v/2+a/2}function N(l,n){const o=l?"scrollWidth":"scrollHeight";return(n==null?void 0:n[o])||0}function he(l,n){const o=l?"clientWidth":"clientHeight";return(n==null?void 0:n[o])||0}function U(l,n,o){if(!o)return 0;const{scrollLeft:i,offsetWidth:v,scrollWidth:d}=o;return l?n?d-v+i:i:o.scrollTop}function z(l,n){const o=l?"offsetWidth":"offsetHeight";return(n==null?void 0:n[o])||0}function K(l,n){const o=l?"offsetLeft":"offsetTop";return(n==null?void 0:n[o])||0}const ge=Symbol.for("vuetify:v-slide-group"),Se=ee({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:ge},nextIcon:{type:G,default:"$next"},prevIcon:{type:G,default:"$prev"},showArrows:{type:[Boolean,String],validator:l=>typeof l=="boolean"||["always","desktop","mobile"].includes(l)},...te(),...le({mobile:null}),...oe(),...ne({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),xe=se()({name:"VSlideGroup",props:Se(),emits:{"update:modelValue":l=>!0},setup(l,n){let{slots:o}=n;const{isRtl:i}=ae(),{displayClasses:v,mobile:d}=ie(l),a=re(l,l.symbol),p=x(!1),c=x(0),S=x(0),_=x(0),r=g(()=>l.direction==="horizontal"),{resizeRef:u,contentRect:w}=D(),{resizeRef:f,contentRect:R}=D(),O=ve(),A=g(()=>({container:u.el,duration:200,easing:"easeOutQuart"})),Q=g(()=>a.selected.value.length?a.items.value.findIndex(e=>e.id===a.selected.value[0]):-1),$=g(()=>a.selected.value.length?a.items.value.findIndex(e=>e.id===a.selected.value[a.selected.value.length-1]):-1);if(L){let e=-1;ue(()=>[a.selected.value,w.value,R.value,r.value],()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{if(w.value&&R.value){const t=r.value?"width":"height";S.value=w.value[t],_.value=R.value[t],p.value=S.value+1<_.value}if(Q.value>=0&&f.el){const t=f.el.children[$.value];C(t,l.centerActive)}})})}const b=x(!1);function C(e,t){let s=0;t?s=pe({containerElement:u.el,isHorizontal:r.value,selectedElement:e}):s=de({containerElement:u.el,isHorizontal:r.value,isRtl:i.value,selectedElement:e}),W(s)}function W(e){if(!L||!u.el)return;const t=z(r.value,u.el),s=U(r.value,i.value,u.el);if(!(N(r.value,u.el)<=t||Math.abs(e-s)<16)){if(r.value&&i.value&&u.el){const{scrollWidth:k,offsetWidth:P}=u.el;e=k-P-e}r.value?O.horizontal(e,A.value):O(e,A.value)}}function j(e){const{scrollTop:t,scrollLeft:s}=e.target;c.value=r.value?s:t}function J(e){if(b.value=!0,!(!p.value||!f.el)){for(const t of e.composedPath())for(const s of f.el.children)if(s===t){C(s);return}}}function X(e){b.value=!1}let E=!1;function Y(e){var t;!E&&!b.value&&!(e.relatedTarget&&((t=f.el)!=null&&t.contains(e.relatedTarget)))&&m(),E=!1}function M(){E=!0}function Z(e){if(!f.el)return;function t(s){e.preventDefault(),m(s)}r.value?e.key==="ArrowRight"?t(i.value?"prev":"next"):e.key==="ArrowLeft"&&t(i.value?"next":"prev"):e.key==="ArrowDown"?t("next"):e.key==="ArrowUp"&&t("prev"),e.key==="Home"?t("first"):e.key==="End"&&t("last")}function m(e){var s,y;if(!f.el)return;let t;if(!e)t=fe(f.el)[0];else if(e==="next"){if(t=(s=f.el.querySelector(":focus"))==null?void 0:s.nextElementSibling,!t)return m("first")}else if(e==="prev"){if(t=(y=f.el.querySelector(":focus"))==null?void 0:y.previousElementSibling,!t)return m("last")}else e==="first"?t=f.el.firstElementChild:e==="last"&&(t=f.el.lastElementChild);t&&t.focus({preventScroll:!0})}function T(e){const t=r.value&&i.value?-1:1,s=(e==="prev"?-t:t)*S.value;let y=c.value+s;if(r.value&&i.value&&u.el){const{scrollWidth:k,offsetWidth:P}=u.el;y+=k-P}W(y)}const F=g(()=>({next:a.next,prev:a.prev,select:a.select,isSelected:a.isSelected})),I=g(()=>{switch(l.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return p.value||Math.abs(c.value)>0;case"mobile":return d.value||p.value||Math.abs(c.value)>0;default:return!d.value&&(p.value||Math.abs(c.value)>0)}}),V=g(()=>Math.abs(c.value)>1),H=g(()=>{if(!u.value)return!1;const e=N(r.value,u.el),t=he(r.value,u.el);return e-t-Math.abs(c.value)>1});return ce(()=>h(l.tag,{class:["v-slide-group",{"v-slide-group--vertical":!r.value,"v-slide-group--has-affixes":I.value,"v-slide-group--is-overflowing":p.value},v.value,l.class],style:l.style,tabindex:b.value||a.selected.value.length?-1:0,onFocus:Y},{default:()=>{var e,t,s;return[I.value&&h("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!V.value}],onMousedown:M,onClick:()=>V.value&&T("prev")},[((e=o.prev)==null?void 0:e.call(o,F.value))??h(q,null,{default:()=>[h(B,{icon:i.value?l.nextIcon:l.prevIcon},null)]})]),h("div",{key:"container",ref:u,class:"v-slide-group__container",onScroll:j},[h("div",{ref:f,class:"v-slide-group__content",onFocusin:J,onFocusout:X,onKeydown:Z},[(t=o.default)==null?void 0:t.call(o,F.value)])]),I.value&&h("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!H.value}],onMousedown:M,onClick:()=>H.value&&T("next")},[((s=o.next)==null?void 0:s.call(o,F.value))??h(q,null,{default:()=>[h(B,{icon:i.value?l.prevIcon:l.nextIcon},null)]})])]}})),{selected:a.selected,scrollTo:T,scrollOffset:c,focus:m}}});export{xe as V,Se as m};
1
+ import{E as ee,be as G,M as te,cu as le,ay as oe,cU as ne,O as se,Q as ae,cv as ie,b_ as re,s as x,h as g,I as D,ag as L,a as ue,R as ce,S as h,cm as q,aP as B,dc as fe}from"./admin-drawer-panel-CFthvbMb.js";import{n as ve}from"./main-BsvrAp4n.js";function de(l){let{selectedElement:n,containerElement:o,isRtl:i,isHorizontal:v}=l;const d=z(v,o),a=U(v,i,o),p=z(v,n),c=K(v,n),S=p*.4;return a>c?c-S:a+d<c+p?c-d+p+S:a}function pe(l){let{selectedElement:n,containerElement:o,isHorizontal:i}=l;const v=z(i,o),d=K(i,n),a=z(i,n);return d-v/2+a/2}function N(l,n){const o=l?"scrollWidth":"scrollHeight";return(n==null?void 0:n[o])||0}function he(l,n){const o=l?"clientWidth":"clientHeight";return(n==null?void 0:n[o])||0}function U(l,n,o){if(!o)return 0;const{scrollLeft:i,offsetWidth:v,scrollWidth:d}=o;return l?n?d-v+i:i:o.scrollTop}function z(l,n){const o=l?"offsetWidth":"offsetHeight";return(n==null?void 0:n[o])||0}function K(l,n){const o=l?"offsetLeft":"offsetTop";return(n==null?void 0:n[o])||0}const ge=Symbol.for("vuetify:v-slide-group"),Se=ee({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:ge},nextIcon:{type:G,default:"$next"},prevIcon:{type:G,default:"$prev"},showArrows:{type:[Boolean,String],validator:l=>typeof l=="boolean"||["always","desktop","mobile"].includes(l)},...te(),...le({mobile:null}),...oe(),...ne({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),xe=se()({name:"VSlideGroup",props:Se(),emits:{"update:modelValue":l=>!0},setup(l,n){let{slots:o}=n;const{isRtl:i}=ae(),{displayClasses:v,mobile:d}=ie(l),a=re(l,l.symbol),p=x(!1),c=x(0),S=x(0),_=x(0),r=g(()=>l.direction==="horizontal"),{resizeRef:u,contentRect:w}=D(),{resizeRef:f,contentRect:R}=D(),O=ve(),A=g(()=>({container:u.el,duration:200,easing:"easeOutQuart"})),Q=g(()=>a.selected.value.length?a.items.value.findIndex(e=>e.id===a.selected.value[0]):-1),$=g(()=>a.selected.value.length?a.items.value.findIndex(e=>e.id===a.selected.value[a.selected.value.length-1]):-1);if(L){let e=-1;ue(()=>[a.selected.value,w.value,R.value,r.value],()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{if(w.value&&R.value){const t=r.value?"width":"height";S.value=w.value[t],_.value=R.value[t],p.value=S.value+1<_.value}if(Q.value>=0&&f.el){const t=f.el.children[$.value];C(t,l.centerActive)}})})}const b=x(!1);function C(e,t){let s=0;t?s=pe({containerElement:u.el,isHorizontal:r.value,selectedElement:e}):s=de({containerElement:u.el,isHorizontal:r.value,isRtl:i.value,selectedElement:e}),W(s)}function W(e){if(!L||!u.el)return;const t=z(r.value,u.el),s=U(r.value,i.value,u.el);if(!(N(r.value,u.el)<=t||Math.abs(e-s)<16)){if(r.value&&i.value&&u.el){const{scrollWidth:k,offsetWidth:P}=u.el;e=k-P-e}r.value?O.horizontal(e,A.value):O(e,A.value)}}function j(e){const{scrollTop:t,scrollLeft:s}=e.target;c.value=r.value?s:t}function J(e){if(b.value=!0,!(!p.value||!f.el)){for(const t of e.composedPath())for(const s of f.el.children)if(s===t){C(s);return}}}function X(e){b.value=!1}let E=!1;function Y(e){var t;!E&&!b.value&&!(e.relatedTarget&&((t=f.el)!=null&&t.contains(e.relatedTarget)))&&m(),E=!1}function M(){E=!0}function Z(e){if(!f.el)return;function t(s){e.preventDefault(),m(s)}r.value?e.key==="ArrowRight"?t(i.value?"prev":"next"):e.key==="ArrowLeft"&&t(i.value?"next":"prev"):e.key==="ArrowDown"?t("next"):e.key==="ArrowUp"&&t("prev"),e.key==="Home"?t("first"):e.key==="End"&&t("last")}function m(e){var s,y;if(!f.el)return;let t;if(!e)t=fe(f.el)[0];else if(e==="next"){if(t=(s=f.el.querySelector(":focus"))==null?void 0:s.nextElementSibling,!t)return m("first")}else if(e==="prev"){if(t=(y=f.el.querySelector(":focus"))==null?void 0:y.previousElementSibling,!t)return m("last")}else e==="first"?t=f.el.firstElementChild:e==="last"&&(t=f.el.lastElementChild);t&&t.focus({preventScroll:!0})}function T(e){const t=r.value&&i.value?-1:1,s=(e==="prev"?-t:t)*S.value;let y=c.value+s;if(r.value&&i.value&&u.el){const{scrollWidth:k,offsetWidth:P}=u.el;y+=k-P}W(y)}const F=g(()=>({next:a.next,prev:a.prev,select:a.select,isSelected:a.isSelected})),I=g(()=>{switch(l.showArrows){case"always":return!0;case"desktop":return!d.value;case!0:return p.value||Math.abs(c.value)>0;case"mobile":return d.value||p.value||Math.abs(c.value)>0;default:return!d.value&&(p.value||Math.abs(c.value)>0)}}),V=g(()=>Math.abs(c.value)>1),H=g(()=>{if(!u.value)return!1;const e=N(r.value,u.el),t=he(r.value,u.el);return e-t-Math.abs(c.value)>1});return ce(()=>h(l.tag,{class:["v-slide-group",{"v-slide-group--vertical":!r.value,"v-slide-group--has-affixes":I.value,"v-slide-group--is-overflowing":p.value},v.value,l.class],style:l.style,tabindex:b.value||a.selected.value.length?-1:0,onFocus:Y},{default:()=>{var e,t,s;return[I.value&&h("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!V.value}],onMousedown:M,onClick:()=>V.value&&T("prev")},[((e=o.prev)==null?void 0:e.call(o,F.value))??h(q,null,{default:()=>[h(B,{icon:i.value?l.nextIcon:l.prevIcon},null)]})]),h("div",{key:"container",ref:u,class:"v-slide-group__container",onScroll:j},[h("div",{ref:f,class:"v-slide-group__content",onFocusin:J,onFocusout:X,onKeydown:Z},[(t=o.default)==null?void 0:t.call(o,F.value)])]),I.value&&h("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!H.value}],onMousedown:M,onClick:()=>H.value&&T("next")},[((s=o.next)==null?void 0:s.call(o,F.value))??h(q,null,{default:()=>[h(B,{icon:i.value?l.prevIcon:l.nextIcon},null)]})])]}})),{selected:a.selected,scrollTo:T,scrollOffset:c,focus:m}}});export{xe as V,Se as m};
@@ -1 +1 @@
1
- import{E as h,M as m,ax as d,ay as b,N as v,O as f,P as c,az as u,R as g,S as t,K as x}from"./admin-drawer-panel-Dmn4wEY3.js";const y=h({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...m(),...d(),...b(),...v()},"VTable"),V=f()({name:"VTable",props:y(),setup(a,r){let{slots:e,emit:T}=r;const{themeClasses:i}=c(a),{densityClasses:n}=u(a);return g(()=>t(a.tag,{class:["v-table",{"v-table--fixed-height":!!a.height,"v-table--fixed-header":a.fixedHeader,"v-table--fixed-footer":a.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":a.hover},i.value,n.value,a.class],style:a.style},{default:()=>{var o,s,l;return[(o=e.top)==null?void 0:o.call(e),e.default?t("div",{class:"v-table__wrapper",style:{height:x(a.height)}},[t("table",null,[e.default()])]):(s=e.wrapper)==null?void 0:s.call(e),(l=e.bottom)==null?void 0:l.call(e)]}})),{}}});export{V,y as m};
1
+ import{E as h,M as m,ax as d,ay as b,N as v,O as f,P as c,az as u,R as g,S as t,K as x}from"./admin-drawer-panel-CFthvbMb.js";const y=h({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...m(),...d(),...b(),...v()},"VTable"),V=f()({name:"VTable",props:y(),setup(a,r){let{slots:e,emit:T}=r;const{themeClasses:i}=c(a),{densityClasses:n}=u(a);return g(()=>t(a.tag,{class:["v-table",{"v-table--fixed-height":!!a.height,"v-table--fixed-header":a.fixedHeader,"v-table--fixed-footer":a.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":a.hover},i.value,n.value,a.class],style:a.style},{default:()=>{var o,s,l;return[(o=e.top)==null?void 0:o.call(e),e.default?t("div",{class:"v-table__wrapper",style:{height:x(a.height)}},[t("table",null,[e.default()])]):(s=e.wrapper)==null?void 0:s.call(e),(l=e.bottom)==null?void 0:l.call(e)]}})),{}}});export{V,y as m};
@@ -1 +1 @@
1
- import{E as h,M as m,ax as d,ay as b,N as v,O as f,P as c,az as u,R as g,S as t,K as x}from"./admin-drawer-panel-Dmn4wEY3.js";const y=h({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...m(),...d(),...b(),...v()},"VTable"),V=f()({name:"VTable",props:y(),setup(a,r){let{slots:e,emit:T}=r;const{themeClasses:i}=c(a),{densityClasses:n}=u(a);return g(()=>t(a.tag,{class:["v-table",{"v-table--fixed-height":!!a.height,"v-table--fixed-header":a.fixedHeader,"v-table--fixed-footer":a.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":a.hover},i.value,n.value,a.class],style:a.style},{default:()=>{var o,s,l;return[(o=e.top)==null?void 0:o.call(e),e.default?t("div",{class:"v-table__wrapper",style:{height:x(a.height)}},[t("table",null,[e.default()])]):(s=e.wrapper)==null?void 0:s.call(e),(l=e.bottom)==null?void 0:l.call(e)]}})),{}}});export{V,y as m};
1
+ import{E as h,M as m,ax as d,ay as b,N as v,O as f,P as c,az as u,R as g,S as t,K as x}from"./admin-drawer-panel-CFthvbMb.js";const y=h({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...m(),...d(),...b(),...v()},"VTable"),V=f()({name:"VTable",props:y(),setup(a,r){let{slots:e,emit:T}=r;const{themeClasses:i}=c(a),{densityClasses:n}=u(a);return g(()=>t(a.tag,{class:["v-table",{"v-table--fixed-height":!!a.height,"v-table--fixed-header":a.fixedHeader,"v-table--fixed-footer":a.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":a.hover},i.value,n.value,a.class],style:a.style},{default:()=>{var o,s,l;return[(o=e.top)==null?void 0:o.call(e),e.default?t("div",{class:"v-table__wrapper",style:{height:x(a.height)}},[t("table",null,[e.default()])]):(s=e.wrapper)==null?void 0:s.call(e),(l=e.bottom)==null?void 0:l.call(e)]}})),{}}});export{V,y as m};
@@ -1 +1 @@
1
- import{V as me,D as te,W as be,_ as ye,Y as ge,Z as E,aF as L,aO as Ce,U as M,aG as xe,aH as le,S as t,E as N,M as Y,O,r as T,R as q,at as oe,b3 as he,bq as ke,h as m,aT as J,b8 as ie,b7 as Ve,bf as X,d3 as Z,d1 as _e,bg as Fe,N as Ie,P as Pe,cA as Se,bh as Be,Q as we,F as Re,aA as $e,aB as Te,aq as Ae,a as De,dn as Ee,K as Le,au as pe,cC as Me,di as Ne,bi as Oe,as as W,dp as qe,dq as Ue,av as Ke,b4 as je,aw as We,cB as Ye,b6 as ze,dr as Ge,n as ne,ds as He}from"./admin-drawer-panel-Dmn4wEY3.js";import{C as Qe}from"./VDialog-DnbL_v_u.js";import{h as Xe,i as Ze,b as Je,m as et,u as se,j as tt,a as lt,V as ae}from"./VSelectionControl-BXJGg8No.js";const nt={name:"SubmitFooter",components:{ConfirmFooter:Qe},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 E(),L("footer",null,[Ce("div",null,[e.errors&&e.errors.length>0?(E(),L("small",at,[(E(!0),L(M,null,xe(e.errors,(V,d)=>(E(),L("div",{key:d},le(V),1))),128))])):e.success?(E(),L("small",ot,le(e.success),1)):(E(),L("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({...Y(),...Xe()},"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=Ze(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 q(()=>{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},...Y(),...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 q(()=>t(Ve,{transition:e.transition},{default:()=>[J(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,...Y()},"VFieldLabel"),j=O()({name:"VFieldLabel",props:ct(),setup(e,o){let{slots:a}=o;return q(()=>t(Je,{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:X,bgColor:String,clearable:Boolean,clearIcon:{type:X,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:X,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ft.includes(e)},"onClick:clear":Z(),"onClick:appendInner":Z(),"onClick:prependInner":Z(),...Y(),..._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)),z=Re(),f=m(()=>e.id||`input-${z}`),G=m(()=>`${f.value}-messages`),U=T(),A=T(),K=T(),n=m(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:y,backgroundColorStyles:g}=$e(Te(e,"bgColor")),{textColorClasses:x,textColorStyles:H}=Ae(m(()=>e.error||e.disabled?void 0:S.value&&d.value?e.color:e.baseColor));De(S,i=>{if(C.value){const u=U.value.$el,h=A.value.$el;requestAnimationFrame(()=>{const _=Ee(u),v=h.getBoundingClientRect(),D=v.x-_.x,w=v.y-_.y-(_.height/2-v.height/2),R=v.width/.75,$=Math.abs(R-_.width)>1?{maxWidth:Le(R)}: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(${D}px, ${w}px) scale(${fe})`,color:ve,...$},{duration:ce,easing:Ke,direction:i?"normal":"reverse"}).finished.then(()=>{u.style.removeProperty("visibility"),h.style.removeProperty("visibility")})})}},{flush:"post"});const B=m(()=>({isActive:S,isFocused:d,controlRef:K,blur:r,focus:c}));function Q(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 q(()=>{var D,w,R;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:Q},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),(D=l["prepend-inner"])==null?void 0:D.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(j,{key:"floating-label",ref:A,class:[x.value],floating:!0,for:f.value,style:H.value},{default:()=>[v()]}),t(j,{ref:U,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":G.value},focus:c,blur:r})]),h&&t(Ne,{key:"clear"},{default:()=>[J(t("div",{class:"v-field__clearable",onMousedown:$=>{$.preventDefault(),$.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"},[(R=l["append-inner"])==null?void 0:R.call(l,B.value),e.appendInnerIcon&&t(F,{key:"append-icon",name:"appendInner"},null)]),t("div",{class:["v-field__outline",x.value],style:H.value},[i&&t(M,null,[t("div",{class:"v-field__outline__start"},null),C.value&&t("div",{class:"v-field__outline__notch"},[t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})]),t("div",{class:"v-field__outline__end"},null)]),n.value&&C.value&&t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})])])}),{controlRef:K}}});function vt(e){const o=Object.keys(ue.props).filter(a=>!qe(a)&&a!=="class"&&a!=="style");return Ue(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:je},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(),z=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 G(n){k("mousedown:control",n),n.target!==C.value&&(f(),n.preventDefault())}function U(n){f(),k("click:control",n)}function A(n){n.stopPropagation(),f(),ne(()=>{s.value=null,He(e["onClick:clear"],n)})}function K(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 q(()=>{const n=!!(l.counter||e.counter!==!1&&e.counter!=null),y=!!(n||l.details),[g,x]=Ye(a),{modelValue:H,...B}=ae.filterProps(e),Q=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:G,onClick:U,"onClick:clear":A,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},Q,{id:i.value,active:z.value||h.value,dirty:h.value||e.dirty,disabled:u.value,focused:b.value,error:v.value===!1}),{...l,default:D=>{let{props:{class:w,...R}}=D;const $=J(t("input",W({ref:C,value:s.value,onInput:K,autofocus:e.autofocus,readonly:_.value,disabled:u.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:f,onBlur:d},R,x),null),[[ze("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(),$]):Ge($,{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{V as me,D as te,W as be,_ as ye,Y as ge,Z as E,aF as L,aO as Ce,U as M,aG as xe,aH as le,S as t,E as N,M as Y,O,r as T,R as U,at as oe,b3 as he,bp as ke,h as m,aT as J,bV as ie,b7 as Ve,be as X,d3 as Z,d1 as _e,bf as Fe,N as Ie,P as Pe,cA as Se,bg as Be,Q as we,F as Re,aA as $e,aB as Te,aq as Ae,a as De,dn as Ee,K as Le,au as pe,cC as Me,di as Ne,bh as Oe,as as W,dp as Ue,dq as qe,av as Ke,b4 as je,aw as We,cB as Ye,b6 as ze,dr as Ge,n as ne,ds as He}from"./admin-drawer-panel-CFthvbMb.js";import{C as Qe}from"./VDialog-xrkpB5lc.js";import{h as Xe,i as Ze,b as Je,m as et,u as se,j as tt,a as lt,V as ae}from"./VSelectionControl-DocEa9g1.js";const nt={name:"SubmitFooter",components:{ConfirmFooter:Qe},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 E(),L("footer",null,[Ce("div",null,[e.errors&&e.errors.length>0?(E(),L("small",at,[(E(!0),L(M,null,xe(e.errors,(V,d)=>(E(),L("div",{key:d},le(V),1))),128))])):e.success?(E(),L("small",ot,le(e.success),1)):(E(),L("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({...Y(),...Xe()},"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=Ze(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},...Y(),...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:()=>[J(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,...Y()},"VFieldLabel"),j=O()({name:"VFieldLabel",props:ct(),setup(e,o){let{slots:a}=o;return U(()=>t(Je,{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:X,bgColor:String,clearable:Boolean,clearIcon:{type:X,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:X,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ft.includes(e)},"onClick:clear":Z(),"onClick:appendInner":Z(),"onClick:prependInner":Z(),...Y(),..._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)),z=Re(),f=m(()=>e.id||`input-${z}`),G=m(()=>`${f.value}-messages`),q=T(),A=T(),K=T(),n=m(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:y,backgroundColorStyles:g}=$e(Te(e,"bgColor")),{textColorClasses:x,textColorStyles:H}=Ae(m(()=>e.error||e.disabled?void 0:S.value&&d.value?e.color:e.baseColor));De(S,i=>{if(C.value){const u=q.value.$el,h=A.value.$el;requestAnimationFrame(()=>{const _=Ee(u),v=h.getBoundingClientRect(),D=v.x-_.x,w=v.y-_.y-(_.height/2-v.height/2),R=v.width/.75,$=Math.abs(R-_.width)>1?{maxWidth:Le(R)}: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(${D}px, ${w}px) scale(${fe})`,color:ve,...$},{duration:ce,easing:Ke,direction:i?"normal":"reverse"}).finished.then(()=>{u.style.removeProperty("visibility"),h.style.removeProperty("visibility")})})}},{flush:"post"});const B=m(()=>({isActive:S,isFocused:d,controlRef:K,blur:r,focus:c}));function Q(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 D,w,R;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:Q},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),(D=l["prepend-inner"])==null?void 0:D.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(j,{key:"floating-label",ref:A,class:[x.value],floating:!0,for:f.value,style:H.value},{default:()=>[v()]}),t(j,{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":G.value},focus:c,blur:r})]),h&&t(Ne,{key:"clear"},{default:()=>[J(t("div",{class:"v-field__clearable",onMousedown:$=>{$.preventDefault(),$.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"},[(R=l["append-inner"])==null?void 0:R.call(l,B.value),e.appendInnerIcon&&t(F,{key:"append-icon",name:"appendInner"},null)]),t("div",{class:["v-field__outline",x.value],style:H.value},[i&&t(M,null,[t("div",{class:"v-field__outline__start"},null),C.value&&t("div",{class:"v-field__outline__notch"},[t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})]),t("div",{class:"v-field__outline__end"},null)]),n.value&&C.value&&t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})])])}),{controlRef:K}}});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:je},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(),z=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 G(n){k("mousedown:control",n),n.target!==C.value&&(f(),n.preventDefault())}function q(n){f(),k("click:control",n)}function A(n){n.stopPropagation(),f(),ne(()=>{s.value=null,He(e["onClick:clear"],n)})}function K(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]=Ye(a),{modelValue:H,...B}=ae.filterProps(e),Q=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:G,onClick:q,"onClick:clear":A,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},Q,{id:i.value,active:z.value||h.value,dirty:h.value||e.dirty,disabled:u.value,focused:b.value,error:v.value===!1}),{...l,default:D=>{let{props:{class:w,...R}}=D;const $=J(t("input",W({ref:C,value:s.value,onInput:K,autofocus:e.autofocus,readonly:_.value,disabled:u.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:f,onBlur:d},R,x),null),[[ze("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(),$]):Ge($,{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{V as me,D as te,W as be,_ as ye,Y as ge,Z as E,aF as L,aO as Ce,U as M,aG as xe,aH as le,S as t,E as N,M as Y,O,r as T,R as q,at as oe,b3 as he,bq as ke,h as m,aT as J,b8 as ie,b7 as Ve,bf as X,d3 as Z,d1 as _e,bg as Fe,N as Ie,P as Pe,cA as Se,bh as Be,Q as we,F as Re,aA as $e,aB as Te,aq as Ae,a as De,dn as Ee,K as Le,au as pe,cC as Me,di as Ne,bi as Oe,as as W,dp as qe,dq as Ue,av as Ke,b4 as je,aw as We,cB as Ye,b6 as ze,dr as Ge,n as ne,ds as He}from"./admin-drawer-panel-Dmn4wEY3.js";import{C as Qe}from"./VDialog-DnbL_v_u.js";import{h as Xe,i as Ze,b as Je,m as et,u as se,j as tt,a as lt,V as ae}from"./VSelectionControl-BXJGg8No.js";const nt={name:"SubmitFooter",components:{ConfirmFooter:Qe},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 E(),L("footer",null,[Ce("div",null,[e.errors&&e.errors.length>0?(E(),L("small",at,[(E(!0),L(M,null,xe(e.errors,(V,d)=>(E(),L("div",{key:d},le(V),1))),128))])):e.success?(E(),L("small",ot,le(e.success),1)):(E(),L("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({...Y(),...Xe()},"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=Ze(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 q(()=>{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},...Y(),...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 q(()=>t(Ve,{transition:e.transition},{default:()=>[J(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,...Y()},"VFieldLabel"),j=O()({name:"VFieldLabel",props:ct(),setup(e,o){let{slots:a}=o;return q(()=>t(Je,{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:X,bgColor:String,clearable:Boolean,clearIcon:{type:X,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:X,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ft.includes(e)},"onClick:clear":Z(),"onClick:appendInner":Z(),"onClick:prependInner":Z(),...Y(),..._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)),z=Re(),f=m(()=>e.id||`input-${z}`),G=m(()=>`${f.value}-messages`),U=T(),A=T(),K=T(),n=m(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:y,backgroundColorStyles:g}=$e(Te(e,"bgColor")),{textColorClasses:x,textColorStyles:H}=Ae(m(()=>e.error||e.disabled?void 0:S.value&&d.value?e.color:e.baseColor));De(S,i=>{if(C.value){const u=U.value.$el,h=A.value.$el;requestAnimationFrame(()=>{const _=Ee(u),v=h.getBoundingClientRect(),D=v.x-_.x,w=v.y-_.y-(_.height/2-v.height/2),R=v.width/.75,$=Math.abs(R-_.width)>1?{maxWidth:Le(R)}: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(${D}px, ${w}px) scale(${fe})`,color:ve,...$},{duration:ce,easing:Ke,direction:i?"normal":"reverse"}).finished.then(()=>{u.style.removeProperty("visibility"),h.style.removeProperty("visibility")})})}},{flush:"post"});const B=m(()=>({isActive:S,isFocused:d,controlRef:K,blur:r,focus:c}));function Q(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 q(()=>{var D,w,R;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:Q},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),(D=l["prepend-inner"])==null?void 0:D.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(j,{key:"floating-label",ref:A,class:[x.value],floating:!0,for:f.value,style:H.value},{default:()=>[v()]}),t(j,{ref:U,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":G.value},focus:c,blur:r})]),h&&t(Ne,{key:"clear"},{default:()=>[J(t("div",{class:"v-field__clearable",onMousedown:$=>{$.preventDefault(),$.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"},[(R=l["append-inner"])==null?void 0:R.call(l,B.value),e.appendInnerIcon&&t(F,{key:"append-icon",name:"appendInner"},null)]),t("div",{class:["v-field__outline",x.value],style:H.value},[i&&t(M,null,[t("div",{class:"v-field__outline__start"},null),C.value&&t("div",{class:"v-field__outline__notch"},[t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})]),t("div",{class:"v-field__outline__end"},null)]),n.value&&C.value&&t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})])])}),{controlRef:K}}});function vt(e){const o=Object.keys(ue.props).filter(a=>!qe(a)&&a!=="class"&&a!=="style");return Ue(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:je},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(),z=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 G(n){k("mousedown:control",n),n.target!==C.value&&(f(),n.preventDefault())}function U(n){f(),k("click:control",n)}function A(n){n.stopPropagation(),f(),ne(()=>{s.value=null,He(e["onClick:clear"],n)})}function K(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 q(()=>{const n=!!(l.counter||e.counter!==!1&&e.counter!=null),y=!!(n||l.details),[g,x]=Ye(a),{modelValue:H,...B}=ae.filterProps(e),Q=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:G,onClick:U,"onClick:clear":A,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},Q,{id:i.value,active:z.value||h.value,dirty:h.value||e.dirty,disabled:u.value,focused:b.value,error:v.value===!1}),{...l,default:D=>{let{props:{class:w,...R}}=D;const $=J(t("input",W({ref:C,value:s.value,onInput:K,autofocus:e.autofocus,readonly:_.value,disabled:u.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:f,onBlur:d},R,x),null),[[ze("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(),$]):Ge($,{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{V as me,D as te,W as be,_ as ye,Y as ge,Z as E,aF as L,aO as Ce,U as M,aG as xe,aH as le,S as t,E as N,M as Y,O,r as T,R as U,at as oe,b3 as he,bp as ke,h as m,aT as J,bV as ie,b7 as Ve,be as X,d3 as Z,d1 as _e,bf as Fe,N as Ie,P as Pe,cA as Se,bg as Be,Q as we,F as Re,aA as $e,aB as Te,aq as Ae,a as De,dn as Ee,K as Le,au as pe,cC as Me,di as Ne,bh as Oe,as as W,dp as Ue,dq as qe,av as Ke,b4 as je,aw as We,cB as Ye,b6 as ze,dr as Ge,n as ne,ds as He}from"./admin-drawer-panel-CFthvbMb.js";import{C as Qe}from"./VDialog-xrkpB5lc.js";import{h as Xe,i as Ze,b as Je,m as et,u as se,j as tt,a as lt,V as ae}from"./VSelectionControl-DocEa9g1.js";const nt={name:"SubmitFooter",components:{ConfirmFooter:Qe},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 E(),L("footer",null,[Ce("div",null,[e.errors&&e.errors.length>0?(E(),L("small",at,[(E(!0),L(M,null,xe(e.errors,(V,d)=>(E(),L("div",{key:d},le(V),1))),128))])):e.success?(E(),L("small",ot,le(e.success),1)):(E(),L("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({...Y(),...Xe()},"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=Ze(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},...Y(),...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:()=>[J(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,...Y()},"VFieldLabel"),j=O()({name:"VFieldLabel",props:ct(),setup(e,o){let{slots:a}=o;return U(()=>t(Je,{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:X,bgColor:String,clearable:Boolean,clearIcon:{type:X,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:X,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>ft.includes(e)},"onClick:clear":Z(),"onClick:appendInner":Z(),"onClick:prependInner":Z(),...Y(),..._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)),z=Re(),f=m(()=>e.id||`input-${z}`),G=m(()=>`${f.value}-messages`),q=T(),A=T(),K=T(),n=m(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:y,backgroundColorStyles:g}=$e(Te(e,"bgColor")),{textColorClasses:x,textColorStyles:H}=Ae(m(()=>e.error||e.disabled?void 0:S.value&&d.value?e.color:e.baseColor));De(S,i=>{if(C.value){const u=q.value.$el,h=A.value.$el;requestAnimationFrame(()=>{const _=Ee(u),v=h.getBoundingClientRect(),D=v.x-_.x,w=v.y-_.y-(_.height/2-v.height/2),R=v.width/.75,$=Math.abs(R-_.width)>1?{maxWidth:Le(R)}: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(${D}px, ${w}px) scale(${fe})`,color:ve,...$},{duration:ce,easing:Ke,direction:i?"normal":"reverse"}).finished.then(()=>{u.style.removeProperty("visibility"),h.style.removeProperty("visibility")})})}},{flush:"post"});const B=m(()=>({isActive:S,isFocused:d,controlRef:K,blur:r,focus:c}));function Q(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 D,w,R;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:Q},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),(D=l["prepend-inner"])==null?void 0:D.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(j,{key:"floating-label",ref:A,class:[x.value],floating:!0,for:f.value,style:H.value},{default:()=>[v()]}),t(j,{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":G.value},focus:c,blur:r})]),h&&t(Ne,{key:"clear"},{default:()=>[J(t("div",{class:"v-field__clearable",onMousedown:$=>{$.preventDefault(),$.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"},[(R=l["append-inner"])==null?void 0:R.call(l,B.value),e.appendInnerIcon&&t(F,{key:"append-icon",name:"appendInner"},null)]),t("div",{class:["v-field__outline",x.value],style:H.value},[i&&t(M,null,[t("div",{class:"v-field__outline__start"},null),C.value&&t("div",{class:"v-field__outline__notch"},[t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})]),t("div",{class:"v-field__outline__end"},null)]),n.value&&C.value&&t(j,{ref:A,floating:!0,for:f.value},{default:()=>[v()]})])])}),{controlRef:K}}});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:je},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(),z=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 G(n){k("mousedown:control",n),n.target!==C.value&&(f(),n.preventDefault())}function q(n){f(),k("click:control",n)}function A(n){n.stopPropagation(),f(),ne(()=>{s.value=null,He(e["onClick:clear"],n)})}function K(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]=Ye(a),{modelValue:H,...B}=ae.filterProps(e),Q=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:G,onClick:q,"onClick:clear":A,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:e.role},Q,{id:i.value,active:z.value||h.value,dirty:h.value||e.dirty,disabled:u.value,focused:b.value,error:v.value===!1}),{...l,default:D=>{let{props:{class:w,...R}}=D;const $=J(t("input",W({ref:C,value:s.value,onInput:K,autofocus:e.autofocus,readonly:_.value,disabled:u.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:f,onBlur:d},R,x),null),[[ze("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(),$]):Ge($,{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{E as V,M as W,ay as H,N as O,O as k,bY as j,P as F,Q as G,bZ as M,b_ as z,r as S,h as v,s as T,a as D,p as N,S as d,ar as p,R as P,aT as $,b6 as K,b$ as Q,c0 as U,c1 as Y,i as Z,c2 as q,c3 as J,c4 as X,b8 as ee,b7 as te,K as R,n as ne}from"./admin-drawer-panel-Dmn4wEY3.js";const _=Symbol.for("vuetify:v-window"),E=Symbol.for("vuetify:v-window-group"),oe=V({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(),...O()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:j},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=F(e),{isRtl:l}=G(),{t:f}=M(),n=z(e,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(_,{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 L=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}),A=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"},[L.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[K("touch"),A.value]])),{group:n}}}),ae=V({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...Q(),...U()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:Y},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=Z(_),l=q(e,E),{isBooted:f}=J();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=R((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=R(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}=X(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{E as R,M as W,ay as H,N as O,O as k,bY as j,P as F,Q as G,bZ as M,b_ as z,r as S,h as v,s as T,a as D,p as N,S as d,ar as p,R as P,aT as $,b6 as K,b$ as Q,c0 as U,c1 as Y,i as Z,c2 as q,c3 as J,c4 as X,bV as ee,b7 as te,K as V,n as ne}from"./admin-drawer-panel-CFthvbMb.js";const _=Symbol.for("vuetify:v-window"),E=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(),...O()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:j},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=F(e),{isRtl:l}=G(),{t:f}=M(),n=z(e,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(_,{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 L=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}),A=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"},[L.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[K("touch"),A.value]])),{group:n}}}),ae=R({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...Q(),...U()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:Y},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=Z(_),l=q(e,E),{isBooted:f}=J();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}=X(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{E as V,M as W,ay as H,N as O,O as k,bY as j,P as F,Q as G,bZ as M,b_ as z,r as S,h as v,s as T,a as D,p as N,S as d,ar as p,R as P,aT as $,b6 as K,b$ as Q,c0 as U,c1 as Y,i as Z,c2 as q,c3 as J,c4 as X,b8 as ee,b7 as te,K as R,n as ne}from"./admin-drawer-panel-Dmn4wEY3.js";const _=Symbol.for("vuetify:v-window"),E=Symbol.for("vuetify:v-window-group"),oe=V({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(),...O()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:j},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=F(e),{isRtl:l}=G(),{t:f}=M(),n=z(e,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(_,{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 L=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}),A=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"},[L.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[K("touch"),A.value]])),{group:n}}}),ae=V({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...Q(),...U()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:Y},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=Z(_),l=q(e,E),{isBooted:f}=J();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=R((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=R(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}=X(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{E as R,M as W,ay as H,N as O,O as k,bY as j,P as F,Q as G,bZ as M,b_ as z,r as S,h as v,s as T,a as D,p as N,S as d,ar as p,R as P,aT as $,b6 as K,b$ as Q,c0 as U,c1 as Y,i as Z,c2 as q,c3 as J,c4 as X,bV as ee,b7 as te,K as V,n as ne}from"./admin-drawer-panel-CFthvbMb.js";const _=Symbol.for("vuetify:v-window"),E=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(),...O()},"VWindow"),se=k()({name:"VWindow",directives:{Touch:j},props:oe(),emits:{"update:modelValue":e=>!0},setup(e,y){let{slots:a}=y;const{themeClasses:t}=F(e),{isRtl:l}=G(),{t:f}=M(),n=z(e,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(_,{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 L=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}),A=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"},[L.value])]),(s=a.additional)==null?void 0:s.call(a,{group:n})]}}),[[K("touch"),A.value]])),{group:n}}}),ae=R({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...W(),...Q(),...U()},"VWindowItem"),re=k()({name:"VWindowItem",directives:{Touch:Y},props:ae(),emits:{"group:selected":e=>!0},setup(e,y){let{slots:a}=y;const t=Z(_),l=q(e,E),{isBooted:f}=J();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}=X(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};
@@ -0,0 +1 @@
1
+ import{_ as A,Y as v,Z as m,X as w,$ as f,S as i,aj as q,ak as E,al as re,am as ie,an as G,W as K,D as le,E as P,ao as J,ap as de,O as I,aq as ce,r as j,h as $,R as W,ar as H,U as B,as as x,at as ue,au as me,av as be,i as fe,aw as Z,ax as ve,ay as we,az as pe,aA as ge,aB as h,aC as _e,aD as he,K as ye,aE as Te,B as z,V as Ve,aF as k,aG as X,aH as Se,aI as xe,aJ as Ae,aK as Ce,m as De}from"./admin-drawer-panel-CFthvbMb.js";import{S as ke,V as $e,a as Be,b as Pe}from"./settings-drawer-DATmeafe.js";import{u as Ie,t as We}from"./main-BsvrAp4n.js";import{m as Ue,V as M,a as Le,b as R}from"./VWindowItem-C3SaotR1.js";import{m as ze,V as Y}from"./VSlideGroup-w7zv3wT_.js";import{U as Ee,V as Me}from"./unauthorized-xWMjiI8M.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDialog-xrkpB5lc.js";import"./change-password-dialog-CdCjAlM3.js";import"./VTextField-DuOs5usq.js";import"./VSelectionControl-DocEa9g1.js";const Re={name:"AdminTitleToolbar",components:{SettingsDrawerButton:ke},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}}};function Ge(e,s,l,t,o,r){const a=v("SettingsDrawerButton");return m(),w(Be,{id:"titleBar",class:E(["codexToolbar",{drawerMargin:!r.mdAndDown}]),density:"compact",elevation:"8"},{default:f(()=>[i($e,{class:"codexToolbarTitle"},{default:f(()=>[q(" Codex Administration ")]),_:1}),(m(),w(a,{key:r.mdAndDown,class:E({invisible:!r.mdAndDown}),disabled:!r.mdAndDown},null,8,["class","disabled"]))]),_:1},8,["class"])}const Oe=A(Re,[["render",Ge],["__scopeId","data-v-355452b0"]]),Fe={name:"AdminSettingsPanel",components:{DrawerItem:re},data(){return{mdiBookshelf:ie}},computed:{...G(Ie,["lastRoute"])}};function Ne(e,s,l,t,o,r){const a=v("DrawerItem");return m(),w(a,{to:e.lastRoute,"prepend-icon":o.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const je=A(Fe,[["render",Ne]]),He={name:"AdminSettingsDrawer",components:{SettingsDrawer:Pe,AdminSettingsPanel:je},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{mdAndDown(e){e||this.setSettingsDrawerOpen(!0)}},mounted(){this.mdAndDown||this.setSettingsDrawerOpen(!0)},methods:{...K(le,["setSettingsDrawerOpen"])}};function Xe(e,s,l,t,o,r){const a=v("AdminSettingsPanel"),n=v("SettingsDrawer");return m(),w(n,{title:"Admin",temporary:r.mdAndDown},{panel:f(()=>[i(a)]),_:1},8,["temporary"])}const Ye=A(He,[["render",Xe]]),O=Symbol.for("vuetify:v-tabs"),qe=P({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...J(de({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Q=I()({name:"VTab",props:qe(),setup(e,s){let{slots:l,attrs:t}=s;const{textColorClasses:o,textColorStyles:r}=ce(e,"sliderColor"),a=j(),n=j(),u=$(()=>e.direction==="horizontal"),_=$(()=>{var p,d;return((d=(p=a.value)==null?void 0:p.group)==null?void 0:d.isSelected.value)??!1});function U(p){var c,g;let{value:d}=p;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"),L=n.value;if(!b||!L)return;const ee=getComputedStyle(b).color,y=b.getBoundingClientRect(),T=L.getBoundingClientRect(),C=u.value?"x":"y",D=u.value?"X":"Y",F=u.value?"right":"bottom",V=u.value?"width":"height",te=y[C],ae=T[C],S=te>ae?y[F]-T[F]: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(L,{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 p=H.filterProps(e);return i(H,x({symbol:O,ref:a,class:["v-tab",e.class],style:e.style,tabindex:_.value?0:-1,role:"tab","aria-selected":String(_.value),active:!1},p,t,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":U}),{...l,default:()=>{var d;return i(B,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)}}),Ke=P({...J(Ue(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Je=I()({name:"VTabsWindow",props:Ke(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:l}=s;const t=fe(O,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=M.filterProps(e);return i(M,x({_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=P({...Le()},"VTabsWindowItem"),Qe=I()({name:"VTabsWindowItem",props:Ze(),setup(e,s){let{slots:l}=s;return W(()=>{const t=R.filterProps(e);return i(R,x({_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=P({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,...ze({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ve(),...we()},"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}=pe(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 U=Y.filterProps(e),p=!!(t.window||e.items.length>0);return i(B,null,[i(Y,x(U,{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:O},_,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,x(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})})]}}),p&&i(Je,x({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:{...G(z,["comicLibrariesExist"]),...Ve(z,{librariesLoaded:e=>!!e.libraries}),mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{$route(e){const l=e.path.split("/").at(-1);this.activeTab=We(l)}},mounted(){this.librariesLoaded||this.loadTables(["Library"])},methods:{...K(z,["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:E(["adminTabs",{drawerMargin:!r.mdAndDown}]),grow:"","show-arrows":""},{default:f(()=>[(m(!0),k(B,null,X(o.tabs,n=>(m(),w(Q,{key:n,modelValue:o.activeTab,"onUpdate:modelValue":s[0]||(s[0]=u=>o.activeTab=u),to:n.toLowerCase()},{default:f(()=>[q(Se(n),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),i(M,{id:"tabItems",modelValue:o.activeTab,"onUpdate:modelValue":s[1]||(s[1]=n=>o.activeTab=n),touch:!1},{default:f(()=>[(m(!0),k(B,null,X(o.tabs,n=>(m(),w(a,{key:n},{default:f(({Component:u})=>[i(R,{value:n,class:"tabItemContainer"},{default:f(()=>[(m(),w(xe(u)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.comicLibrariesExist?Ae("",!0):(m(),k("div",nt," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const it=A(st,[["render",rt],["__scopeId","data-v-f7a7ae94"]]),lt={name:"MainAdmin",components:{AdminTitleToolbar:Oe,AdminTabs:it,AdminSettingsDrawer:Ye,Unauthorized:Ee},data(){return{mdiLogin:Ce}},computed:{...G(De,["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(),w(Me,{key:0},{default:f(()=>[i(a),i(n),i(u)]),_:1})):(m(),w(_,{key:1}))}const Tt=A(lt,[["render",dt]]);export{Tt as default};
@@ -0,0 +1 @@
1
+ import{_ as A,Y as v,Z as m,X as w,$ as f,S as i,aj as q,ak as E,al as re,am as ie,an as G,W as K,D as le,E as P,ao as J,ap as de,O as I,aq as ce,r as j,h as $,R as W,ar as H,U as B,as as x,at as ue,au as me,av as be,i as fe,aw as Z,ax as ve,ay as we,az as pe,aA as ge,aB as h,aC as _e,aD as he,K as ye,aE as Te,B as z,V as Ve,aF as k,aG as X,aH as Se,aI as xe,aJ as Ae,aK as Ce,m as De}from"./admin-drawer-panel-CFthvbMb.js";import{S as ke,V as $e,a as Be,b as Pe}from"./settings-drawer-DATmeafe.js";import{u as Ie,t as We}from"./main-BsvrAp4n.js";import{m as Ue,V as M,a as Le,b as R}from"./VWindowItem-C3SaotR1.js";import{m as ze,V as Y}from"./VSlideGroup-w7zv3wT_.js";import{U as Ee,V as Me}from"./unauthorized-xWMjiI8M.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDialog-xrkpB5lc.js";import"./change-password-dialog-CdCjAlM3.js";import"./VTextField-DuOs5usq.js";import"./VSelectionControl-DocEa9g1.js";const Re={name:"AdminTitleToolbar",components:{SettingsDrawerButton:ke},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}}};function Ge(e,s,l,t,o,r){const a=v("SettingsDrawerButton");return m(),w(Be,{id:"titleBar",class:E(["codexToolbar",{drawerMargin:!r.mdAndDown}]),density:"compact",elevation:"8"},{default:f(()=>[i($e,{class:"codexToolbarTitle"},{default:f(()=>[q(" Codex Administration ")]),_:1}),(m(),w(a,{key:r.mdAndDown,class:E({invisible:!r.mdAndDown}),disabled:!r.mdAndDown},null,8,["class","disabled"]))]),_:1},8,["class"])}const Oe=A(Re,[["render",Ge],["__scopeId","data-v-355452b0"]]),Fe={name:"AdminSettingsPanel",components:{DrawerItem:re},data(){return{mdiBookshelf:ie}},computed:{...G(Ie,["lastRoute"])}};function Ne(e,s,l,t,o,r){const a=v("DrawerItem");return m(),w(a,{to:e.lastRoute,"prepend-icon":o.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const je=A(Fe,[["render",Ne]]),He={name:"AdminSettingsDrawer",components:{SettingsDrawer:Pe,AdminSettingsPanel:je},computed:{mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{mdAndDown(e){e||this.setSettingsDrawerOpen(!0)}},mounted(){this.mdAndDown||this.setSettingsDrawerOpen(!0)},methods:{...K(le,["setSettingsDrawerOpen"])}};function Xe(e,s,l,t,o,r){const a=v("AdminSettingsPanel"),n=v("SettingsDrawer");return m(),w(n,{title:"Admin",temporary:r.mdAndDown},{panel:f(()=>[i(a)]),_:1},8,["temporary"])}const Ye=A(He,[["render",Xe]]),O=Symbol.for("vuetify:v-tabs"),qe=P({fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...J(de({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),Q=I()({name:"VTab",props:qe(),setup(e,s){let{slots:l,attrs:t}=s;const{textColorClasses:o,textColorStyles:r}=ce(e,"sliderColor"),a=j(),n=j(),u=$(()=>e.direction==="horizontal"),_=$(()=>{var p,d;return((d=(p=a.value)==null?void 0:p.group)==null?void 0:d.isSelected.value)??!1});function U(p){var c,g;let{value:d}=p;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"),L=n.value;if(!b||!L)return;const ee=getComputedStyle(b).color,y=b.getBoundingClientRect(),T=L.getBoundingClientRect(),C=u.value?"x":"y",D=u.value?"X":"Y",F=u.value?"right":"bottom",V=u.value?"width":"height",te=y[C],ae=T[C],S=te>ae?y[F]-T[F]: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(L,{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 p=H.filterProps(e);return i(H,x({symbol:O,ref:a,class:["v-tab",e.class],style:e.style,tabindex:_.value?0:-1,role:"tab","aria-selected":String(_.value),active:!1},p,t,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":U}),{...l,default:()=>{var d;return i(B,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)}}),Ke=P({...J(Ue(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Je=I()({name:"VTabsWindow",props:Ke(),emits:{"update:modelValue":e=>!0},setup(e,s){let{slots:l}=s;const t=fe(O,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=M.filterProps(e);return i(M,x({_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=P({...Le()},"VTabsWindowItem"),Qe=I()({name:"VTabsWindowItem",props:Ze(),setup(e,s){let{slots:l}=s;return W(()=>{const t=R.filterProps(e);return i(R,x({_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=P({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,...ze({mandatory:"force",selectedClass:"v-tab-item--selected"}),...ve(),...we()},"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}=pe(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 U=Y.filterProps(e),p=!!(t.window||e.items.length>0);return i(B,null,[i(Y,x(U,{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:O},_,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,x(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})})]}}),p&&i(Je,x({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:{...G(z,["comicLibrariesExist"]),...Ve(z,{librariesLoaded:e=>!!e.libraries}),mdAndDown(){return this.$vuetify.display.mdAndDown}},watch:{$route(e){const l=e.path.split("/").at(-1);this.activeTab=We(l)}},mounted(){this.librariesLoaded||this.loadTables(["Library"])},methods:{...K(z,["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:E(["adminTabs",{drawerMargin:!r.mdAndDown}]),grow:"","show-arrows":""},{default:f(()=>[(m(!0),k(B,null,X(o.tabs,n=>(m(),w(Q,{key:n,modelValue:o.activeTab,"onUpdate:modelValue":s[0]||(s[0]=u=>o.activeTab=u),to:n.toLowerCase()},{default:f(()=>[q(Se(n),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),i(M,{id:"tabItems",modelValue:o.activeTab,"onUpdate:modelValue":s[1]||(s[1]=n=>o.activeTab=n),touch:!1},{default:f(()=>[(m(!0),k(B,null,X(o.tabs,n=>(m(),w(a,{key:n},{default:f(({Component:u})=>[i(R,{value:n,class:"tabItemContainer"},{default:f(()=>[(m(),w(xe(u)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.comicLibrariesExist?Ae("",!0):(m(),k("div",nt," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const it=A(st,[["render",rt],["__scopeId","data-v-f7a7ae94"]]),lt={name:"MainAdmin",components:{AdminTitleToolbar:Oe,AdminTabs:it,AdminSettingsDrawer:Ye,Unauthorized:Ee},data(){return{mdiLogin:Ce}},computed:{...G(De,["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(),w(Me,{key:0},{default:f(()=>[i(a),i(n),i(u)]),_:1})):(m(),w(_,{key:1}))}const Tt=A(lt,[["render",dt]]);export{Tt as default};