codex 1.8.0a7__py3-none-any.whl → 1.8.0a8__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 (439) hide show
  1. codex/librarian/scribe/importer/create/link_fks.py +1 -1
  2. codex/librarian/scribe/importer/link/delete.py +1 -1
  3. codex/librarian/scribe/importer/link/many_to_many.py +1 -1
  4. codex/librarian/scribe/importer/link/prepare.py +1 -1
  5. codex/librarian/scribe/importer/query/{query_fks.py → foreign_keys.py} +2 -2
  6. codex/librarian/scribe/importer/query/update_comics.py +1 -1
  7. codex/librarian/scribe/importer/read/foreign_keys.py +1 -1
  8. codex/librarian/scribe/importer/read/many_to_many.py +1 -1
  9. codex/librarian/scribe/importer/search/update.py +1 -1
  10. codex/librarian/scribe/janitor/cleanup.py +1 -1
  11. codex/librarian/scribe/janitor/integrity.py +4 -3
  12. codex/librarian/watchdog/event_batcherd.py +1 -1
  13. codex/librarian/watchdog/handlers.py +1 -1
  14. codex/librarian/watchdog/observers.py +2 -2
  15. codex/models/admin.py +1 -1
  16. codex/serializers/admin/tasks.py +1 -1
  17. codex/serializers/browser/choices.py +1 -1
  18. codex/startup/__init__.py +2 -2
  19. codex/static_root/assets/{VCheckbox-DWxWEepo.1acd2cc6d629.js → VCheckbox-DUW6_hDa.1ef41a544a92.js} +1 -1
  20. codex/static_root/assets/VCheckbox-DUW6_hDa.1ef41a544a92.js.br +0 -0
  21. codex/static_root/assets/VCheckbox-DUW6_hDa.1ef41a544a92.js.gz +0 -0
  22. codex/static_root/assets/{VCheckbox-DWxWEepo.js → VCheckbox-DUW6_hDa.js} +1 -1
  23. codex/static_root/assets/VCheckbox-DUW6_hDa.js.br +0 -0
  24. codex/static_root/assets/VCheckbox-DUW6_hDa.js.gz +0 -0
  25. codex/static_root/assets/{VCheckboxBtn-C_KP91Hh.a275b49a13e7.js → VCheckboxBtn-C-lQiBqA.9a3b577ca744.js} +1 -1
  26. codex/static_root/assets/VCheckboxBtn-C-lQiBqA.9a3b577ca744.js.br +0 -0
  27. codex/static_root/assets/VCheckboxBtn-C-lQiBqA.9a3b577ca744.js.gz +0 -0
  28. codex/static_root/assets/{VCheckboxBtn-C_KP91Hh.js → VCheckboxBtn-C-lQiBqA.js} +1 -1
  29. codex/static_root/assets/VCheckboxBtn-C-lQiBqA.js.br +0 -0
  30. codex/static_root/assets/VCheckboxBtn-C-lQiBqA.js.gz +0 -0
  31. codex/static_root/assets/{VCombobox-B4BO1uO9.eba6114f3e21.js → VCombobox-DN068PcH.e48a063e22c8.js} +1 -1
  32. codex/static_root/assets/VCombobox-DN068PcH.e48a063e22c8.js.br +0 -0
  33. codex/static_root/assets/VCombobox-DN068PcH.e48a063e22c8.js.gz +0 -0
  34. codex/static_root/assets/{VCombobox-B4BO1uO9.js → VCombobox-DN068PcH.js} +1 -1
  35. codex/static_root/assets/VCombobox-DN068PcH.js.br +0 -0
  36. codex/static_root/assets/VCombobox-DN068PcH.js.gz +0 -0
  37. codex/static_root/assets/VDialog-CNXFr29h.1b503cbf1c8a.js +1 -0
  38. codex/static_root/assets/VDialog-CNXFr29h.1b503cbf1c8a.js.br +0 -0
  39. codex/static_root/assets/VDialog-CNXFr29h.1b503cbf1c8a.js.gz +0 -0
  40. codex/static_root/assets/VDialog-CNXFr29h.js +1 -0
  41. codex/static_root/assets/VDialog-CNXFr29h.js.br +0 -0
  42. codex/static_root/assets/VDialog-CNXFr29h.js.gz +0 -0
  43. codex/static_root/assets/{VDivider-CnxeDDcO.792921c1a4a1.js → VDivider-CMJgJBsn.ba01c6098f6a.js} +1 -1
  44. codex/static_root/assets/VDivider-CMJgJBsn.ba01c6098f6a.js.br +0 -0
  45. codex/static_root/assets/VDivider-CMJgJBsn.ba01c6098f6a.js.gz +0 -0
  46. codex/static_root/assets/{VDivider-CnxeDDcO.js → VDivider-CMJgJBsn.js} +1 -1
  47. codex/static_root/assets/VDivider-CMJgJBsn.js.br +0 -0
  48. codex/static_root/assets/VDivider-CMJgJBsn.js.gz +0 -0
  49. codex/static_root/assets/{VExpansionPanels-6RbcaUkU.33ee286d20e7.js → VExpansionPanels-DlvNPW3D.996da93a53cd.js} +1 -1
  50. codex/static_root/assets/VExpansionPanels-DlvNPW3D.996da93a53cd.js.br +0 -0
  51. codex/static_root/assets/VExpansionPanels-DlvNPW3D.996da93a53cd.js.gz +0 -0
  52. codex/static_root/assets/{VExpansionPanels-6RbcaUkU.js → VExpansionPanels-DlvNPW3D.js} +1 -1
  53. codex/static_root/assets/VExpansionPanels-DlvNPW3D.js.br +0 -0
  54. codex/static_root/assets/VExpansionPanels-DlvNPW3D.js.gz +0 -0
  55. codex/static_root/assets/{VForm-BiZGZD6F.fb9d8426ef72.js → VForm-g3pClFlH.e59cff7f285e.js} +1 -1
  56. codex/static_root/assets/VForm-g3pClFlH.e59cff7f285e.js.br +0 -0
  57. codex/static_root/assets/VForm-g3pClFlH.e59cff7f285e.js.gz +0 -0
  58. codex/static_root/assets/{VForm-BiZGZD6F.js → VForm-g3pClFlH.js} +1 -1
  59. codex/static_root/assets/VForm-g3pClFlH.js.br +0 -0
  60. codex/static_root/assets/VForm-g3pClFlH.js.gz +0 -0
  61. codex/static_root/assets/{VRadioGroup-C454wUvX.689995f3ff8c.js → VRadioGroup-Bv8An5nC.47fec3aea984.js} +1 -1
  62. codex/static_root/assets/VRadioGroup-Bv8An5nC.47fec3aea984.js.br +0 -0
  63. codex/static_root/assets/VRadioGroup-Bv8An5nC.47fec3aea984.js.gz +0 -0
  64. codex/static_root/assets/{VRadioGroup-C454wUvX.js → VRadioGroup-Bv8An5nC.js} +1 -1
  65. codex/static_root/assets/VRadioGroup-Bv8An5nC.js.br +0 -0
  66. codex/static_root/assets/VRadioGroup-Bv8An5nC.js.gz +0 -0
  67. codex/static_root/assets/VSelect-5V0L32ek.d6eedd1c4964.js +1 -0
  68. codex/static_root/assets/VSelect-5V0L32ek.d6eedd1c4964.js.br +0 -0
  69. codex/static_root/assets/VSelect-5V0L32ek.d6eedd1c4964.js.gz +0 -0
  70. codex/static_root/assets/VSelect-5V0L32ek.js +1 -0
  71. codex/static_root/assets/VSelect-5V0L32ek.js.br +0 -0
  72. codex/static_root/assets/VSelect-5V0L32ek.js.gz +0 -0
  73. codex/static_root/assets/VSelectionControl-DnfftqAx.556b8bb83bdc.js +1 -0
  74. codex/static_root/assets/VSelectionControl-DnfftqAx.556b8bb83bdc.js.br +0 -0
  75. codex/static_root/assets/VSelectionControl-DnfftqAx.556b8bb83bdc.js.gz +0 -0
  76. codex/static_root/assets/VSelectionControl-DnfftqAx.js +1 -0
  77. codex/static_root/assets/VSelectionControl-DnfftqAx.js.br +0 -0
  78. codex/static_root/assets/VSelectionControl-DnfftqAx.js.gz +0 -0
  79. codex/static_root/assets/{VTable-D0O9TP1l.851d06430ab7.js → VTable-DwXTycqf.626c254120d6.js} +1 -1
  80. codex/static_root/assets/VTable-DwXTycqf.626c254120d6.js.br +0 -0
  81. codex/static_root/assets/VTable-DwXTycqf.626c254120d6.js.gz +0 -0
  82. codex/static_root/assets/{VTable-D0O9TP1l.js → VTable-DwXTycqf.js} +1 -1
  83. codex/static_root/assets/VTable-DwXTycqf.js.br +0 -0
  84. codex/static_root/assets/VTable-DwXTycqf.js.gz +0 -0
  85. codex/static_root/assets/{VWindowItem-D1r_6PXp.b5cdd9ef6ce9.js → VWindowItem-CRKodQol.663a9ed570f5.js} +1 -1
  86. codex/static_root/assets/VWindowItem-CRKodQol.663a9ed570f5.js.br +0 -0
  87. codex/static_root/assets/VWindowItem-CRKodQol.663a9ed570f5.js.gz +0 -0
  88. codex/static_root/assets/{VWindowItem-D1r_6PXp.js → VWindowItem-CRKodQol.js} +1 -1
  89. codex/static_root/assets/VWindowItem-CRKodQol.js.br +0 -0
  90. codex/static_root/assets/VWindowItem-CRKodQol.js.gz +0 -0
  91. codex/static_root/assets/{admin-B9Oz5KrR.14ab2e54fa5b.js → admin-BqW0weON.8f6c13fd9ec2.js} +1 -1
  92. codex/static_root/assets/admin-BqW0weON.8f6c13fd9ec2.js.br +0 -0
  93. codex/static_root/assets/admin-BqW0weON.8f6c13fd9ec2.js.gz +0 -0
  94. codex/static_root/assets/{admin-B9Oz5KrR.js → admin-BqW0weON.js} +1 -1
  95. codex/static_root/assets/admin-BqW0weON.js.br +0 -0
  96. codex/static_root/assets/admin-BqW0weON.js.gz +0 -0
  97. codex/static_root/assets/{admin-CfDzTfnG.ba240b5a4a40.js → admin-C2Ip50qb.1b25eed056ba.js} +1 -1
  98. codex/static_root/assets/admin-C2Ip50qb.1b25eed056ba.js.br +0 -0
  99. codex/static_root/assets/admin-C2Ip50qb.1b25eed056ba.js.gz +0 -0
  100. codex/static_root/assets/{admin-CfDzTfnG.js → admin-C2Ip50qb.js} +1 -1
  101. codex/static_root/assets/admin-C2Ip50qb.js.br +0 -0
  102. codex/static_root/assets/admin-C2Ip50qb.js.gz +0 -0
  103. codex/static_root/assets/{admin-menu-BTCthv5r.js → admin-menu-BKYBVovM.8b2fd527feda.js} +1 -1
  104. codex/static_root/assets/admin-menu-BKYBVovM.8b2fd527feda.js.br +0 -0
  105. codex/static_root/assets/admin-menu-BKYBVovM.8b2fd527feda.js.gz +0 -0
  106. codex/static_root/assets/{admin-menu-BTCthv5r.f4c60585345c.js → admin-menu-BKYBVovM.js} +1 -1
  107. codex/static_root/assets/admin-menu-BKYBVovM.js.br +0 -0
  108. codex/static_root/assets/admin-menu-BKYBVovM.js.gz +0 -0
  109. codex/static_root/assets/{admin-settings-button-progress-Byb3ZZbF.c38abf7a183e.js → admin-settings-button-progress-BcsRN1LK.bdc3ca33f5a9.js} +1 -1
  110. codex/static_root/assets/admin-settings-button-progress-BcsRN1LK.bdc3ca33f5a9.js.br +3 -0
  111. codex/static_root/assets/admin-settings-button-progress-BcsRN1LK.bdc3ca33f5a9.js.gz +0 -0
  112. codex/static_root/assets/{admin-settings-button-progress-Byb3ZZbF.js → admin-settings-button-progress-BcsRN1LK.js} +1 -1
  113. codex/static_root/assets/admin-settings-button-progress-BcsRN1LK.js.br +3 -0
  114. codex/static_root/assets/admin-settings-button-progress-BcsRN1LK.js.gz +0 -0
  115. codex/static_root/assets/{browser-BbFRLvto.js → browser-BxgjC3t-.ffdd3301600f.js} +1 -1
  116. codex/static_root/assets/browser-BxgjC3t-.ffdd3301600f.js.br +0 -0
  117. codex/static_root/assets/browser-BxgjC3t-.ffdd3301600f.js.gz +0 -0
  118. codex/static_root/assets/{browser-BbFRLvto.2ddc78dbd6d2.js → browser-BxgjC3t-.js} +1 -1
  119. codex/static_root/assets/browser-BxgjC3t-.js.br +0 -0
  120. codex/static_root/assets/browser-BxgjC3t-.js.gz +0 -0
  121. codex/static_root/assets/{change-password-dialog-DVgKRnnC.0cae12f0ba55.js → change-password-dialog-HgA0CORX.1028163b5339.js} +1 -1
  122. codex/static_root/assets/change-password-dialog-HgA0CORX.1028163b5339.js.br +0 -0
  123. codex/static_root/assets/change-password-dialog-HgA0CORX.1028163b5339.js.gz +0 -0
  124. codex/static_root/assets/{change-password-dialog-DVgKRnnC.js → change-password-dialog-HgA0CORX.js} +1 -1
  125. codex/static_root/assets/change-password-dialog-HgA0CORX.js.br +0 -0
  126. codex/static_root/assets/change-password-dialog-HgA0CORX.js.gz +0 -0
  127. codex/static_root/assets/{confirm-dialog-CId2DpVz.7cc09b1259d5.js → confirm-dialog-CxSqELz_.14faaeb29572.js} +1 -1
  128. codex/static_root/assets/confirm-dialog-CxSqELz_.14faaeb29572.js.br +0 -0
  129. codex/static_root/assets/confirm-dialog-CxSqELz_.14faaeb29572.js.gz +0 -0
  130. codex/static_root/assets/{confirm-dialog-CId2DpVz.js → confirm-dialog-CxSqELz_.js} +1 -1
  131. codex/static_root/assets/confirm-dialog-CxSqELz_.js.br +0 -0
  132. codex/static_root/assets/confirm-dialog-CxSqELz_.js.gz +0 -0
  133. codex/static_root/assets/{datetime-column-80bdFW1G.8fecf1c8a4df.js → datetime-column-rZsFnTUM.d63b1f84c50e.js} +1 -1
  134. codex/static_root/assets/datetime-column-rZsFnTUM.d63b1f84c50e.js.br +0 -0
  135. codex/static_root/assets/datetime-column-rZsFnTUM.d63b1f84c50e.js.gz +0 -0
  136. codex/static_root/assets/{datetime-column-80bdFW1G.js → datetime-column-rZsFnTUM.js} +1 -1
  137. codex/static_root/assets/datetime-column-rZsFnTUM.js.br +0 -0
  138. codex/static_root/assets/datetime-column-rZsFnTUM.js.gz +0 -0
  139. codex/static_root/assets/{filter-AqFs16gs.b81b28d3b1cd.js → filter-CZcRVxSc.5d1d9164ac58.js} +1 -1
  140. codex/static_root/assets/filter-CZcRVxSc.5d1d9164ac58.js.br +0 -0
  141. codex/static_root/assets/filter-CZcRVxSc.5d1d9164ac58.js.gz +0 -0
  142. codex/static_root/assets/{filter-AqFs16gs.js → filter-CZcRVxSc.js} +1 -1
  143. codex/static_root/assets/filter-CZcRVxSc.js.br +0 -0
  144. codex/static_root/assets/filter-CZcRVxSc.js.gz +0 -0
  145. codex/static_root/assets/{flag-tab--riWEaDz.600d45990e7e.js → flag-tab-2Ll3YGPX.74f9a0136fb3.js} +1 -1
  146. codex/static_root/assets/flag-tab-2Ll3YGPX.74f9a0136fb3.js.br +0 -0
  147. codex/static_root/assets/flag-tab-2Ll3YGPX.74f9a0136fb3.js.gz +0 -0
  148. codex/static_root/assets/{flag-tab--riWEaDz.js → flag-tab-2Ll3YGPX.js} +1 -1
  149. codex/static_root/assets/flag-tab-2Ll3YGPX.js.br +0 -0
  150. codex/static_root/assets/flag-tab-2Ll3YGPX.js.gz +0 -0
  151. codex/static_root/assets/forwardRefs-BGipb1NY.101a28110d2a.js +1 -0
  152. codex/static_root/assets/forwardRefs-BGipb1NY.101a28110d2a.js.br +0 -0
  153. codex/static_root/assets/forwardRefs-BGipb1NY.101a28110d2a.js.gz +0 -0
  154. codex/static_root/assets/forwardRefs-BGipb1NY.js +1 -0
  155. codex/static_root/assets/forwardRefs-BGipb1NY.js.br +0 -0
  156. codex/static_root/assets/forwardRefs-BGipb1NY.js.gz +0 -0
  157. codex/static_root/assets/{group-tab-DW2cxPzu.c484f88ea5aa.js → group-tab-hByOodup.17ce8aae7db5.js} +1 -1
  158. codex/static_root/assets/group-tab-hByOodup.17ce8aae7db5.js.br +0 -0
  159. codex/static_root/assets/group-tab-hByOodup.17ce8aae7db5.js.gz +0 -0
  160. codex/static_root/assets/{group-tab-DW2cxPzu.js → group-tab-hByOodup.js} +1 -1
  161. codex/static_root/assets/group-tab-hByOodup.js.br +0 -0
  162. codex/static_root/assets/group-tab-hByOodup.js.gz +0 -0
  163. codex/static_root/assets/{http-error--HzaZjdl.a51e63e5e831.js → http-error-BG99vdG1.b2db362dd13f.js} +1 -1
  164. codex/static_root/assets/http-error-BG99vdG1.b2db362dd13f.js.br +0 -0
  165. codex/static_root/assets/http-error-BG99vdG1.b2db362dd13f.js.gz +0 -0
  166. codex/static_root/assets/{http-error--HzaZjdl.js → http-error-BG99vdG1.js} +1 -1
  167. codex/static_root/assets/http-error-BG99vdG1.js.br +0 -0
  168. codex/static_root/assets/http-error-BG99vdG1.js.gz +0 -0
  169. codex/static_root/assets/{index-DkPXJI21.0d7b8f8cf7be.js → index-ab7P5Bab.12abede3cd43.js} +1 -1
  170. codex/static_root/assets/index-ab7P5Bab.12abede3cd43.js.br +0 -0
  171. codex/static_root/assets/index-ab7P5Bab.12abede3cd43.js.gz +0 -0
  172. codex/static_root/assets/{index-DkPXJI21.js → index-ab7P5Bab.js} +1 -1
  173. codex/static_root/assets/index-ab7P5Bab.js.br +0 -0
  174. codex/static_root/assets/index-ab7P5Bab.js.gz +0 -0
  175. codex/static_root/assets/{library-tab-BwPXDL63.dc7f661f7bc7.js → library-tab-CbVRgrCk.4d5322f66c55.js} +1 -1
  176. codex/static_root/assets/library-tab-CbVRgrCk.4d5322f66c55.js.br +0 -0
  177. codex/static_root/assets/library-tab-CbVRgrCk.4d5322f66c55.js.gz +0 -0
  178. codex/static_root/assets/{library-tab-BwPXDL63.js → library-tab-CbVRgrCk.js} +1 -1
  179. codex/static_root/assets/library-tab-CbVRgrCk.js.br +0 -0
  180. codex/static_root/assets/library-tab-CbVRgrCk.js.gz +0 -0
  181. codex/static_root/assets/{main-DXiGoFcV.5a499dbcbbfe.js → main-693Xq5cv.40008d4a0dcd.js} +14 -14
  182. codex/static_root/assets/main-693Xq5cv.40008d4a0dcd.js.br +0 -0
  183. codex/static_root/assets/main-693Xq5cv.40008d4a0dcd.js.gz +0 -0
  184. codex/static_root/assets/{main-DXiGoFcV.js → main-693Xq5cv.js} +14 -14
  185. codex/static_root/assets/main-693Xq5cv.js.br +0 -0
  186. codex/static_root/assets/main-693Xq5cv.js.gz +0 -0
  187. codex/static_root/assets/pager-full-pdf-BjR2RW3n.89fde37b9a1e.js +1 -0
  188. codex/static_root/assets/pager-full-pdf-BjR2RW3n.89fde37b9a1e.js.br +0 -0
  189. codex/static_root/assets/pager-full-pdf-BjR2RW3n.89fde37b9a1e.js.gz +0 -0
  190. codex/static_root/assets/pager-full-pdf-BjR2RW3n.js +1 -0
  191. codex/static_root/assets/pager-full-pdf-BjR2RW3n.js.br +0 -0
  192. codex/static_root/assets/pager-full-pdf-BjR2RW3n.js.gz +0 -0
  193. codex/static_root/assets/{pagination-toolbar-gxf2sShG.4c0846bf3224.js → pagination-toolbar-BiRAGarK.78d10e3a792c.js} +1 -1
  194. codex/static_root/assets/pagination-toolbar-BiRAGarK.78d10e3a792c.js.br +0 -0
  195. codex/static_root/assets/pagination-toolbar-BiRAGarK.78d10e3a792c.js.gz +0 -0
  196. codex/static_root/assets/{pagination-toolbar-gxf2sShG.js → pagination-toolbar-BiRAGarK.js} +1 -1
  197. codex/static_root/assets/pagination-toolbar-BiRAGarK.js.br +0 -0
  198. codex/static_root/assets/pagination-toolbar-BiRAGarK.js.gz +0 -0
  199. codex/static_root/assets/{pdf-doc-BKIb3c50.71a27ab500e3.js → pdf-doc-Cxhh9veI.23ae192282cc.js} +1 -1
  200. codex/static_root/assets/pdf-doc-Cxhh9veI.23ae192282cc.js.br +0 -0
  201. codex/static_root/assets/pdf-doc-Cxhh9veI.23ae192282cc.js.gz +0 -0
  202. codex/static_root/assets/{pdf-doc-BKIb3c50.js → pdf-doc-Cxhh9veI.js} +1 -1
  203. codex/static_root/assets/pdf-doc-Cxhh9veI.js.br +0 -0
  204. codex/static_root/assets/pdf-doc-Cxhh9veI.js.gz +0 -0
  205. codex/static_root/assets/{reader-DN0gXesY.js → reader-C_ekcGCq.61c8768ed7df.js} +2 -2
  206. codex/static_root/assets/reader-C_ekcGCq.61c8768ed7df.js.br +0 -0
  207. codex/static_root/assets/reader-C_ekcGCq.61c8768ed7df.js.gz +0 -0
  208. codex/static_root/assets/{reader-DN0gXesY.a8decf766e54.js → reader-C_ekcGCq.js} +2 -2
  209. codex/static_root/assets/reader-C_ekcGCq.js.br +0 -0
  210. codex/static_root/assets/reader-C_ekcGCq.js.gz +0 -0
  211. codex/static_root/assets/relation-chips-BJa3zS3b.0fc59d112776.js +1 -0
  212. codex/static_root/assets/relation-chips-BJa3zS3b.0fc59d112776.js.br +0 -0
  213. codex/static_root/assets/relation-chips-BJa3zS3b.0fc59d112776.js.gz +0 -0
  214. codex/static_root/assets/relation-chips-BJa3zS3b.js +1 -0
  215. codex/static_root/assets/relation-chips-BJa3zS3b.js.br +0 -0
  216. codex/static_root/assets/relation-chips-BJa3zS3b.js.gz +0 -0
  217. codex/static_root/assets/{settings-drawer-BBM7vyXE.js → settings-drawer-_3XwKnOZ.d2fca6defe05.js} +2 -2
  218. codex/static_root/assets/settings-drawer-_3XwKnOZ.d2fca6defe05.js.br +0 -0
  219. codex/static_root/assets/settings-drawer-_3XwKnOZ.d2fca6defe05.js.gz +0 -0
  220. codex/static_root/assets/{settings-drawer-BBM7vyXE.b3a49d6d6f4c.js → settings-drawer-_3XwKnOZ.js} +2 -2
  221. codex/static_root/assets/settings-drawer-_3XwKnOZ.js.br +0 -0
  222. codex/static_root/assets/settings-drawer-_3XwKnOZ.js.gz +0 -0
  223. codex/static_root/assets/{ssrBoot-Bz995UNv.88843c6b5c94.js → ssrBoot-DYCTuClQ.b44e73e1499c.js} +1 -1
  224. codex/static_root/assets/ssrBoot-DYCTuClQ.b44e73e1499c.js.br +0 -0
  225. codex/static_root/assets/ssrBoot-DYCTuClQ.b44e73e1499c.js.gz +0 -0
  226. codex/static_root/assets/{ssrBoot-Bz995UNv.js → ssrBoot-DYCTuClQ.js} +1 -1
  227. codex/static_root/assets/ssrBoot-DYCTuClQ.js.br +0 -0
  228. codex/static_root/assets/ssrBoot-DYCTuClQ.js.gz +0 -0
  229. codex/static_root/assets/{stats-tab-D0ysKA-O.22ade1f1c862.js → stats-tab-Bm_-Ryds.10af923ccdf8.js} +1 -1
  230. codex/static_root/assets/stats-tab-Bm_-Ryds.10af923ccdf8.js.br +0 -0
  231. codex/static_root/assets/stats-tab-Bm_-Ryds.10af923ccdf8.js.gz +0 -0
  232. codex/static_root/assets/{stats-tab-D0ysKA-O.js → stats-tab-Bm_-Ryds.js} +1 -1
  233. codex/static_root/assets/stats-tab-Bm_-Ryds.js.br +0 -0
  234. codex/static_root/assets/stats-tab-Bm_-Ryds.js.gz +0 -0
  235. codex/static_root/assets/{task-tab-K3T_nwIk.1189081e1886.js → task-tab-DdFZN_NF.2fa5c14c097a.js} +1 -1
  236. codex/static_root/assets/task-tab-DdFZN_NF.2fa5c14c097a.js.br +0 -0
  237. codex/static_root/assets/task-tab-DdFZN_NF.2fa5c14c097a.js.gz +0 -0
  238. codex/static_root/assets/{task-tab-K3T_nwIk.js → task-tab-DdFZN_NF.js} +1 -1
  239. codex/static_root/assets/task-tab-DdFZN_NF.js.br +0 -0
  240. codex/static_root/assets/task-tab-DdFZN_NF.js.gz +0 -0
  241. codex/static_root/assets/{unauthorized-C9hDLcp6.6397ed699c7c.js → unauthorized-C7QkM-2L.c4ab0c298f6f.js} +1 -1
  242. codex/static_root/assets/unauthorized-C7QkM-2L.c4ab0c298f6f.js.br +0 -0
  243. codex/static_root/assets/unauthorized-C7QkM-2L.c4ab0c298f6f.js.gz +0 -0
  244. codex/static_root/assets/{unauthorized-C9hDLcp6.js → unauthorized-C7QkM-2L.js} +1 -1
  245. codex/static_root/assets/unauthorized-C7QkM-2L.js.br +0 -0
  246. codex/static_root/assets/unauthorized-C7QkM-2L.js.gz +0 -0
  247. codex/static_root/assets/{user-tab-DpQuTwTk.c3b440ac6074.js → user-tab-GSZppBHI.fcf50d91004a.js} +1 -1
  248. codex/static_root/assets/user-tab-GSZppBHI.fcf50d91004a.js.br +0 -0
  249. codex/static_root/assets/user-tab-GSZppBHI.fcf50d91004a.js.gz +0 -0
  250. codex/static_root/assets/{user-tab-DpQuTwTk.js → user-tab-GSZppBHI.js} +1 -1
  251. codex/static_root/assets/user-tab-GSZppBHI.js.br +0 -0
  252. codex/static_root/assets/user-tab-GSZppBHI.js.gz +0 -0
  253. codex/static_root/{manifest.b16c282e2ba4.json → manifest.27f259e865a0.json} +307 -307
  254. codex/static_root/manifest.27f259e865a0.json.br +0 -0
  255. codex/static_root/manifest.27f259e865a0.json.gz +0 -0
  256. codex/static_root/manifest.json +307 -307
  257. codex/static_root/manifest.json.br +0 -0
  258. codex/static_root/manifest.json.gz +0 -0
  259. codex/static_root/staticfiles.json +1 -1
  260. codex/util.py +2 -2
  261. codex/views/admin/tasks.py +1 -3
  262. codex/views/browser/breadcrumbs.py +1 -1
  263. codex/views/browser/page_in_bounds.py +1 -1
  264. codex/views/opds/v2/feed.py +1 -2
  265. {codex-1.8.0a7.dist-info → codex-1.8.0a8.dist-info}/METADATA +38 -39
  266. {codex-1.8.0a7.dist-info → codex-1.8.0a8.dist-info}/RECORD +269 -269
  267. codex/static_root/assets/VCheckbox-DWxWEepo.1acd2cc6d629.js.br +0 -0
  268. codex/static_root/assets/VCheckbox-DWxWEepo.1acd2cc6d629.js.gz +0 -0
  269. codex/static_root/assets/VCheckbox-DWxWEepo.js.br +0 -0
  270. codex/static_root/assets/VCheckbox-DWxWEepo.js.gz +0 -0
  271. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.a275b49a13e7.js.br +0 -0
  272. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.a275b49a13e7.js.gz +0 -0
  273. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.js.br +0 -0
  274. codex/static_root/assets/VCheckboxBtn-C_KP91Hh.js.gz +0 -0
  275. codex/static_root/assets/VCombobox-B4BO1uO9.eba6114f3e21.js.br +0 -0
  276. codex/static_root/assets/VCombobox-B4BO1uO9.eba6114f3e21.js.gz +0 -0
  277. codex/static_root/assets/VCombobox-B4BO1uO9.js.br +0 -0
  278. codex/static_root/assets/VCombobox-B4BO1uO9.js.gz +0 -0
  279. codex/static_root/assets/VDialog-DSiQFoFP.7378780e9a46.js +0 -1
  280. codex/static_root/assets/VDialog-DSiQFoFP.7378780e9a46.js.br +0 -0
  281. codex/static_root/assets/VDialog-DSiQFoFP.7378780e9a46.js.gz +0 -0
  282. codex/static_root/assets/VDialog-DSiQFoFP.js +0 -1
  283. codex/static_root/assets/VDialog-DSiQFoFP.js.br +0 -0
  284. codex/static_root/assets/VDialog-DSiQFoFP.js.gz +0 -0
  285. codex/static_root/assets/VDivider-CnxeDDcO.792921c1a4a1.js.br +0 -0
  286. codex/static_root/assets/VDivider-CnxeDDcO.792921c1a4a1.js.gz +0 -0
  287. codex/static_root/assets/VDivider-CnxeDDcO.js.br +0 -0
  288. codex/static_root/assets/VDivider-CnxeDDcO.js.gz +0 -0
  289. codex/static_root/assets/VExpansionPanels-6RbcaUkU.33ee286d20e7.js.br +0 -0
  290. codex/static_root/assets/VExpansionPanels-6RbcaUkU.33ee286d20e7.js.gz +0 -0
  291. codex/static_root/assets/VExpansionPanels-6RbcaUkU.js.br +0 -0
  292. codex/static_root/assets/VExpansionPanels-6RbcaUkU.js.gz +0 -0
  293. codex/static_root/assets/VForm-BiZGZD6F.fb9d8426ef72.js.br +0 -0
  294. codex/static_root/assets/VForm-BiZGZD6F.fb9d8426ef72.js.gz +0 -0
  295. codex/static_root/assets/VForm-BiZGZD6F.js.br +0 -0
  296. codex/static_root/assets/VForm-BiZGZD6F.js.gz +0 -0
  297. codex/static_root/assets/VRadioGroup-C454wUvX.689995f3ff8c.js.br +0 -0
  298. codex/static_root/assets/VRadioGroup-C454wUvX.689995f3ff8c.js.gz +0 -0
  299. codex/static_root/assets/VRadioGroup-C454wUvX.js.br +0 -0
  300. codex/static_root/assets/VRadioGroup-C454wUvX.js.gz +0 -0
  301. codex/static_root/assets/VSelect-DnTo44Ok.dd359bb94795.js +0 -1
  302. codex/static_root/assets/VSelect-DnTo44Ok.dd359bb94795.js.br +0 -0
  303. codex/static_root/assets/VSelect-DnTo44Ok.dd359bb94795.js.gz +0 -0
  304. codex/static_root/assets/VSelect-DnTo44Ok.js +0 -1
  305. codex/static_root/assets/VSelect-DnTo44Ok.js.br +0 -0
  306. codex/static_root/assets/VSelect-DnTo44Ok.js.gz +0 -0
  307. codex/static_root/assets/VSelectionControl-BQOk7BCO.4cacab8d06c5.js +0 -1
  308. codex/static_root/assets/VSelectionControl-BQOk7BCO.4cacab8d06c5.js.br +0 -0
  309. codex/static_root/assets/VSelectionControl-BQOk7BCO.4cacab8d06c5.js.gz +0 -0
  310. codex/static_root/assets/VSelectionControl-BQOk7BCO.js +0 -1
  311. codex/static_root/assets/VSelectionControl-BQOk7BCO.js.br +0 -0
  312. codex/static_root/assets/VSelectionControl-BQOk7BCO.js.gz +0 -0
  313. codex/static_root/assets/VTable-D0O9TP1l.851d06430ab7.js.br +0 -0
  314. codex/static_root/assets/VTable-D0O9TP1l.851d06430ab7.js.gz +0 -0
  315. codex/static_root/assets/VTable-D0O9TP1l.js.br +0 -0
  316. codex/static_root/assets/VTable-D0O9TP1l.js.gz +0 -0
  317. codex/static_root/assets/VWindowItem-D1r_6PXp.b5cdd9ef6ce9.js.br +0 -0
  318. codex/static_root/assets/VWindowItem-D1r_6PXp.b5cdd9ef6ce9.js.gz +0 -0
  319. codex/static_root/assets/VWindowItem-D1r_6PXp.js.br +0 -0
  320. codex/static_root/assets/VWindowItem-D1r_6PXp.js.gz +0 -0
  321. codex/static_root/assets/admin-B9Oz5KrR.14ab2e54fa5b.js.br +0 -0
  322. codex/static_root/assets/admin-B9Oz5KrR.14ab2e54fa5b.js.gz +0 -0
  323. codex/static_root/assets/admin-B9Oz5KrR.js.br +0 -0
  324. codex/static_root/assets/admin-B9Oz5KrR.js.gz +0 -0
  325. codex/static_root/assets/admin-CfDzTfnG.ba240b5a4a40.js.br +0 -0
  326. codex/static_root/assets/admin-CfDzTfnG.ba240b5a4a40.js.gz +0 -0
  327. codex/static_root/assets/admin-CfDzTfnG.js.br +0 -0
  328. codex/static_root/assets/admin-CfDzTfnG.js.gz +0 -0
  329. codex/static_root/assets/admin-menu-BTCthv5r.f4c60585345c.js.br +0 -0
  330. codex/static_root/assets/admin-menu-BTCthv5r.f4c60585345c.js.gz +0 -0
  331. codex/static_root/assets/admin-menu-BTCthv5r.js.br +0 -0
  332. codex/static_root/assets/admin-menu-BTCthv5r.js.gz +0 -0
  333. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.c38abf7a183e.js.br +0 -0
  334. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.c38abf7a183e.js.gz +0 -0
  335. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.js.br +0 -0
  336. codex/static_root/assets/admin-settings-button-progress-Byb3ZZbF.js.gz +0 -0
  337. codex/static_root/assets/browser-BbFRLvto.2ddc78dbd6d2.js.br +0 -0
  338. codex/static_root/assets/browser-BbFRLvto.2ddc78dbd6d2.js.gz +0 -0
  339. codex/static_root/assets/browser-BbFRLvto.js.br +0 -0
  340. codex/static_root/assets/browser-BbFRLvto.js.gz +0 -0
  341. codex/static_root/assets/change-password-dialog-DVgKRnnC.0cae12f0ba55.js.br +0 -0
  342. codex/static_root/assets/change-password-dialog-DVgKRnnC.0cae12f0ba55.js.gz +0 -0
  343. codex/static_root/assets/change-password-dialog-DVgKRnnC.js.br +0 -0
  344. codex/static_root/assets/change-password-dialog-DVgKRnnC.js.gz +0 -0
  345. codex/static_root/assets/confirm-dialog-CId2DpVz.7cc09b1259d5.js.br +0 -0
  346. codex/static_root/assets/confirm-dialog-CId2DpVz.7cc09b1259d5.js.gz +0 -0
  347. codex/static_root/assets/confirm-dialog-CId2DpVz.js.br +0 -0
  348. codex/static_root/assets/confirm-dialog-CId2DpVz.js.gz +0 -0
  349. codex/static_root/assets/datetime-column-80bdFW1G.8fecf1c8a4df.js.br +0 -0
  350. codex/static_root/assets/datetime-column-80bdFW1G.8fecf1c8a4df.js.gz +0 -0
  351. codex/static_root/assets/datetime-column-80bdFW1G.js.br +0 -0
  352. codex/static_root/assets/datetime-column-80bdFW1G.js.gz +0 -0
  353. codex/static_root/assets/filter-AqFs16gs.b81b28d3b1cd.js.br +0 -0
  354. codex/static_root/assets/filter-AqFs16gs.b81b28d3b1cd.js.gz +0 -0
  355. codex/static_root/assets/filter-AqFs16gs.js.br +0 -0
  356. codex/static_root/assets/filter-AqFs16gs.js.gz +0 -0
  357. codex/static_root/assets/flag-tab--riWEaDz.600d45990e7e.js.br +0 -0
  358. codex/static_root/assets/flag-tab--riWEaDz.600d45990e7e.js.gz +0 -0
  359. codex/static_root/assets/flag-tab--riWEaDz.js.br +0 -0
  360. codex/static_root/assets/flag-tab--riWEaDz.js.gz +0 -0
  361. codex/static_root/assets/forwardRefs-Cnj0FOMT.41a81fb0cd94.js +0 -1
  362. codex/static_root/assets/forwardRefs-Cnj0FOMT.41a81fb0cd94.js.br +0 -0
  363. codex/static_root/assets/forwardRefs-Cnj0FOMT.41a81fb0cd94.js.gz +0 -0
  364. codex/static_root/assets/forwardRefs-Cnj0FOMT.js +0 -1
  365. codex/static_root/assets/forwardRefs-Cnj0FOMT.js.br +0 -0
  366. codex/static_root/assets/forwardRefs-Cnj0FOMT.js.gz +0 -0
  367. codex/static_root/assets/group-tab-DW2cxPzu.c484f88ea5aa.js.br +0 -0
  368. codex/static_root/assets/group-tab-DW2cxPzu.c484f88ea5aa.js.gz +0 -0
  369. codex/static_root/assets/group-tab-DW2cxPzu.js.br +0 -0
  370. codex/static_root/assets/group-tab-DW2cxPzu.js.gz +0 -0
  371. codex/static_root/assets/http-error--HzaZjdl.a51e63e5e831.js.br +0 -0
  372. codex/static_root/assets/http-error--HzaZjdl.a51e63e5e831.js.gz +0 -0
  373. codex/static_root/assets/http-error--HzaZjdl.js.br +0 -0
  374. codex/static_root/assets/http-error--HzaZjdl.js.gz +0 -0
  375. codex/static_root/assets/index-DkPXJI21.0d7b8f8cf7be.js.br +0 -0
  376. codex/static_root/assets/index-DkPXJI21.0d7b8f8cf7be.js.gz +0 -0
  377. codex/static_root/assets/index-DkPXJI21.js.br +0 -0
  378. codex/static_root/assets/index-DkPXJI21.js.gz +0 -0
  379. codex/static_root/assets/library-tab-BwPXDL63.dc7f661f7bc7.js.br +0 -0
  380. codex/static_root/assets/library-tab-BwPXDL63.dc7f661f7bc7.js.gz +0 -0
  381. codex/static_root/assets/library-tab-BwPXDL63.js.br +0 -0
  382. codex/static_root/assets/library-tab-BwPXDL63.js.gz +0 -0
  383. codex/static_root/assets/main-DXiGoFcV.5a499dbcbbfe.js.br +0 -0
  384. codex/static_root/assets/main-DXiGoFcV.5a499dbcbbfe.js.gz +0 -0
  385. codex/static_root/assets/main-DXiGoFcV.js.br +0 -0
  386. codex/static_root/assets/main-DXiGoFcV.js.gz +0 -0
  387. codex/static_root/assets/pager-full-pdf-5UMeIJSd.4b0b03e1ad3e.js +0 -1
  388. codex/static_root/assets/pager-full-pdf-5UMeIJSd.4b0b03e1ad3e.js.br +0 -0
  389. codex/static_root/assets/pager-full-pdf-5UMeIJSd.4b0b03e1ad3e.js.gz +0 -0
  390. codex/static_root/assets/pager-full-pdf-5UMeIJSd.js +0 -1
  391. codex/static_root/assets/pager-full-pdf-5UMeIJSd.js.br +0 -0
  392. codex/static_root/assets/pager-full-pdf-5UMeIJSd.js.gz +0 -0
  393. codex/static_root/assets/pagination-toolbar-gxf2sShG.4c0846bf3224.js.br +0 -0
  394. codex/static_root/assets/pagination-toolbar-gxf2sShG.4c0846bf3224.js.gz +0 -0
  395. codex/static_root/assets/pagination-toolbar-gxf2sShG.js.br +0 -0
  396. codex/static_root/assets/pagination-toolbar-gxf2sShG.js.gz +0 -0
  397. codex/static_root/assets/pdf-doc-BKIb3c50.71a27ab500e3.js.br +0 -0
  398. codex/static_root/assets/pdf-doc-BKIb3c50.71a27ab500e3.js.gz +0 -0
  399. codex/static_root/assets/pdf-doc-BKIb3c50.js.br +0 -0
  400. codex/static_root/assets/pdf-doc-BKIb3c50.js.gz +0 -0
  401. codex/static_root/assets/reader-DN0gXesY.a8decf766e54.js.br +0 -0
  402. codex/static_root/assets/reader-DN0gXesY.a8decf766e54.js.gz +0 -0
  403. codex/static_root/assets/reader-DN0gXesY.js.br +0 -0
  404. codex/static_root/assets/reader-DN0gXesY.js.gz +0 -0
  405. codex/static_root/assets/relation-chips-Cu4Ch_yZ.5d94bc55409f.js +0 -1
  406. codex/static_root/assets/relation-chips-Cu4Ch_yZ.5d94bc55409f.js.br +0 -0
  407. codex/static_root/assets/relation-chips-Cu4Ch_yZ.5d94bc55409f.js.gz +0 -0
  408. codex/static_root/assets/relation-chips-Cu4Ch_yZ.js +0 -1
  409. codex/static_root/assets/relation-chips-Cu4Ch_yZ.js.br +0 -0
  410. codex/static_root/assets/relation-chips-Cu4Ch_yZ.js.gz +0 -0
  411. codex/static_root/assets/settings-drawer-BBM7vyXE.b3a49d6d6f4c.js.br +0 -0
  412. codex/static_root/assets/settings-drawer-BBM7vyXE.b3a49d6d6f4c.js.gz +0 -0
  413. codex/static_root/assets/settings-drawer-BBM7vyXE.js.br +0 -0
  414. codex/static_root/assets/settings-drawer-BBM7vyXE.js.gz +0 -0
  415. codex/static_root/assets/ssrBoot-Bz995UNv.88843c6b5c94.js.br +0 -0
  416. codex/static_root/assets/ssrBoot-Bz995UNv.88843c6b5c94.js.gz +0 -0
  417. codex/static_root/assets/ssrBoot-Bz995UNv.js.br +0 -0
  418. codex/static_root/assets/ssrBoot-Bz995UNv.js.gz +0 -0
  419. codex/static_root/assets/stats-tab-D0ysKA-O.22ade1f1c862.js.br +0 -0
  420. codex/static_root/assets/stats-tab-D0ysKA-O.22ade1f1c862.js.gz +0 -0
  421. codex/static_root/assets/stats-tab-D0ysKA-O.js.br +0 -0
  422. codex/static_root/assets/stats-tab-D0ysKA-O.js.gz +0 -0
  423. codex/static_root/assets/task-tab-K3T_nwIk.1189081e1886.js.br +0 -0
  424. codex/static_root/assets/task-tab-K3T_nwIk.1189081e1886.js.gz +0 -0
  425. codex/static_root/assets/task-tab-K3T_nwIk.js.br +0 -0
  426. codex/static_root/assets/task-tab-K3T_nwIk.js.gz +0 -0
  427. codex/static_root/assets/unauthorized-C9hDLcp6.6397ed699c7c.js.br +0 -0
  428. codex/static_root/assets/unauthorized-C9hDLcp6.6397ed699c7c.js.gz +0 -0
  429. codex/static_root/assets/unauthorized-C9hDLcp6.js.br +0 -0
  430. codex/static_root/assets/unauthorized-C9hDLcp6.js.gz +0 -0
  431. codex/static_root/assets/user-tab-DpQuTwTk.c3b440ac6074.js.br +0 -0
  432. codex/static_root/assets/user-tab-DpQuTwTk.c3b440ac6074.js.gz +0 -0
  433. codex/static_root/assets/user-tab-DpQuTwTk.js.br +0 -0
  434. codex/static_root/assets/user-tab-DpQuTwTk.js.gz +0 -0
  435. codex/static_root/manifest.b16c282e2ba4.json.br +0 -0
  436. codex/static_root/manifest.b16c282e2ba4.json.gz +0 -0
  437. {codex-1.8.0a7.dist-info → codex-1.8.0a8.dist-info}/WHEEL +0 -0
  438. {codex-1.8.0a7.dist-info → codex-1.8.0a8.dist-info}/entry_points.txt +0 -0
  439. {codex-1.8.0a7.dist-info → codex-1.8.0a8.dist-info}/licenses/LICENSE +0 -0
@@ -1 +1 @@
1
- import{_ as y,aP as B,x as a,m,v as n,B as f,k as D,D as E,C as w,E as p,by as v,G as h,w as i,s as d,q as L,y as N,a as l,A as b,b as C,X as g}from"./main-DXiGoFcV.js";import{V as P}from"./forwardRefs-Cnj0FOMT.js";import{C as A,V as O}from"./VDialog-DSiQFoFP.js";import{S as T,V as U}from"./VForm-BiZGZD6F.js";import{useAdminStore as I}from"./admin-B9Oz5KrR.js";import{c as u}from"./VSelectionControl-BQOk7BCO.js";const x={name:"CloseButton",data(){return{mdiClose:B}}};function M(e,s,t,S,o,c){return n(),a(P,m({class:"closeButton",icon:o.mdiClose},e.$attrs),null,16,["icon"])}const F=y(x,[["render",M],["__scopeId","data-v-6e7a50d4"]]),R={name:"ChangePasswordDialog",components:{SubmitFooter:T,CloseButton:F,CodexListItem:A},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,mdiLockReset:v,showOnlyThisDialog:!1}},computed:{...E(w,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...D(p,["showChangePasswordDialog"])},watch:{showOnlyThisDialog(e){if(this.showChangePasswordDialog=e,e){const s=this.$refs.form;s&&s.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:s})=>(this.submitButtonEnabled=s,this.submitButtonEnabled)).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){globalThis.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){globalThis.removeEventListener("keyup",this._keyUpListener)},methods:{...f(p,["changePassword"]),...f(w,["clearErrors"]),doUserChange(){return I().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:s})=>{if(s)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}},W={key:0,class:"codexFormSuccess"},q=["value"];function z(e,s,t,S,o,c){const V=d("CodexListItem"),_=d("CloseButton"),k=d("SubmitFooter");return t.user?(n(),a(O,{key:0,modelValue:o.showOnlyThisDialog,"onUpdate:modelValue":s[7]||(s[7]=r=>o.showOnlyThisDialog=r),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:i(({props:r})=>[t.isAdminMode?(n(),a(P,m({key:0,icon:o.mdiLockReset},r,{size:t.size,density:t.density,title:"Change Password"}),null,16,["icon","size","density"])):(n(),a(V,m({key:1,"prepend-icon":o.mdiLockReset},r,{title:"Change Password"}),null,16,["prepend-icon"]))]),default:i(()=>[e.formSuccess?(n(),L("div",W,[N(b(e.formSuccess)+" ",1),l(_,{onClick:s[0]||(s[0]=r=>o.showOnlyThisDialog=!1)})])):(n(),a(U,{key:1,ref:"form",class:"changePasswordForm"},{default:i(()=>[C("h2",null,"User "+b(t.user.username),1),C("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:t.user.username},null,8,q),t.isAdminMode?h("",!0):(n(),a(u,{key:0,ref:"oldPassword",modelValue:o.credentials.oldPassword,"onUpdate:modelValue":s[1]||(s[1]=r=>o.credentials.oldPassword=r),autocomplete:"current-password",label:"Old Password",rules:o.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:s[2]||(s[2]=g(r=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),l(u,{ref:"password",modelValue:o.credentials.password,"onUpdate:modelValue":s[3]||(s[3]=r=>o.credentials.password=r),autocomplete:"new-password",label:"New Password",rules:o.rules.password,clearable:"",type:"password",autofocus:t.isAdminMode,onKeydown:s[4]||(s[4]=g(r=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),l(u,{ref:"passwordConfirm",modelValue:o.credentials.passwordConfirm,"onUpdate:modelValue":s[5]||(s[5]=r=>o.credentials.passwordConfirm=r),autocomplete:"new-password",label:"Confirm Password",rules:o.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),l(k,{verb:"Change",table:"Password",disabled:!o.submitButtonEnabled,onSubmit:c.submit,onCancel:s[6]||(s[6]=r=>o.showOnlyThisDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):h("",!0)}const Q=y(R,[["render",z],["__scopeId","data-v-70ed2110"]]);export{F as C,Q as a};
1
+ import{_ as y,aP as B,x as a,m,v as n,B as f,k as D,D as E,C as w,E as p,by as v,G as h,w as i,s as d,q as L,y as N,a as l,A as b,b as C,X as g}from"./main-693Xq5cv.js";import{V as P}from"./forwardRefs-BGipb1NY.js";import{C as A,V as O}from"./VDialog-CNXFr29h.js";import{S as T,V as U}from"./VForm-g3pClFlH.js";import{useAdminStore as I}from"./admin-BqW0weON.js";import{c as u}from"./VSelectionControl-DnfftqAx.js";const x={name:"CloseButton",data(){return{mdiClose:B}}};function M(e,s,t,S,o,c){return n(),a(P,m({class:"closeButton",icon:o.mdiClose},e.$attrs),null,16,["icon"])}const F=y(x,[["render",M],["__scopeId","data-v-6e7a50d4"]]),R={name:"ChangePasswordDialog",components:{SubmitFooter:T,CloseButton:F,CodexListItem:A},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,mdiLockReset:v,showOnlyThisDialog:!1}},computed:{...E(w,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...D(p,["showChangePasswordDialog"])},watch:{showOnlyThisDialog(e){if(this.showChangePasswordDialog=e,e){const s=this.$refs.form;s&&s.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:s})=>(this.submitButtonEnabled=s,this.submitButtonEnabled)).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){globalThis.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){globalThis.removeEventListener("keyup",this._keyUpListener)},methods:{...f(p,["changePassword"]),...f(w,["clearErrors"]),doUserChange(){return I().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:s})=>{if(s)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}},W={key:0,class:"codexFormSuccess"},q=["value"];function z(e,s,t,S,o,c){const V=d("CodexListItem"),_=d("CloseButton"),k=d("SubmitFooter");return t.user?(n(),a(O,{key:0,modelValue:o.showOnlyThisDialog,"onUpdate:modelValue":s[7]||(s[7]=r=>o.showOnlyThisDialog=r),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:i(({props:r})=>[t.isAdminMode?(n(),a(P,m({key:0,icon:o.mdiLockReset},r,{size:t.size,density:t.density,title:"Change Password"}),null,16,["icon","size","density"])):(n(),a(V,m({key:1,"prepend-icon":o.mdiLockReset},r,{title:"Change Password"}),null,16,["prepend-icon"]))]),default:i(()=>[e.formSuccess?(n(),L("div",W,[N(b(e.formSuccess)+" ",1),l(_,{onClick:s[0]||(s[0]=r=>o.showOnlyThisDialog=!1)})])):(n(),a(U,{key:1,ref:"form",class:"changePasswordForm"},{default:i(()=>[C("h2",null,"User "+b(t.user.username),1),C("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:t.user.username},null,8,q),t.isAdminMode?h("",!0):(n(),a(u,{key:0,ref:"oldPassword",modelValue:o.credentials.oldPassword,"onUpdate:modelValue":s[1]||(s[1]=r=>o.credentials.oldPassword=r),autocomplete:"current-password",label:"Old Password",rules:o.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:s[2]||(s[2]=g(r=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),l(u,{ref:"password",modelValue:o.credentials.password,"onUpdate:modelValue":s[3]||(s[3]=r=>o.credentials.password=r),autocomplete:"new-password",label:"New Password",rules:o.rules.password,clearable:"",type:"password",autofocus:t.isAdminMode,onKeydown:s[4]||(s[4]=g(r=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),l(u,{ref:"passwordConfirm",modelValue:o.credentials.passwordConfirm,"onUpdate:modelValue":s[5]||(s[5]=r=>o.credentials.passwordConfirm=r),autocomplete:"new-password",label:"Confirm Password",rules:o.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),l(k,{verb:"Change",table:"Password",disabled:!o.submitButtonEnabled,onSubmit:c.submit,onCancel:s[6]||(s[6]=r=>o.showOnlyThisDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):h("",!0)}const Q=y(R,[["render",z],["__scopeId","data-v-70ed2110"]]);export{F as C,Q as a};
@@ -1 +1 @@
1
- import{C as k,h as g,V as b}from"./VDialog-DSiQFoFP.js";import{_,x as i,w as a,s as f,v as l,b as u,y as c,a as V,A as r,m as d,G as h}from"./main-DXiGoFcV.js";import{V as y,k as T}from"./forwardRefs-Cnj0FOMT.js";const D={name:"ConfirmDialog",components:{ConfirmFooter:g,CodexListItem:k},props:{block:{type:Boolean,default:!1},button:{type:Boolean,default:!0},buttonText:{type:String,default:""},confirm:{type:Boolean,default:!0},confirmText:{type:String,required:!0},density:{type:String,default:"default"},icon:{type:String,default:""},prependIcon:{type:String,default:""},size:{type:String,default:"default"},text:{type:String,required:!0},titleText:{type:String,required:!0}},data(){return{showDialog:!1}},methods:{close(s){this.$emit(s),this.showDialog=!1},autoConfirm(){this.confirm||this.close("confirm")}}},I={class:"confirmDialog"};function S(s,o,e,v,m,n){const C=f("CodexListItem"),x=f("ConfirmFooter");return l(),i(b,{modelValue:m.showDialog,"onUpdate:modelValue":o[2]||(o[2]=t=>m.showDialog=t),transition:"fab-transition","min-width":"20em",width:"auto","overlay-opacity":"0.5"},{activator:a(({props:t})=>[e.button&&e.icon?(l(),i(y,d({key:0},t,{block:e.block,density:e.density,icon:e.icon,size:e.size,title:e.titleText,onClick:n.autoConfirm}),null,16,["block","density","icon","size","title","onClick"])):e.button?(l(),i(y,d({key:1},t,{block:e.block,density:e.density,size:e.size,title:e.titleText,onClick:n.autoConfirm}),{default:a(()=>[e.prependIcon?(l(),i(T,{key:0},{default:a(()=>[c(r(e.prependIcon),1)]),_:1})):h("",!0),c(" "+r(e.buttonText),1)]),_:2},1040,["block","density","size","title","onClick"])):(l(),i(C,d({key:2},t,{"prepend-icon":e.prependIcon,title:e.titleText,onClick:n.autoConfirm}),null,16,["prepend-icon","title","onClick"]))]),default:a(()=>[u("div",I,[u("h3",null,r(e.titleText),1),c(" "+r(e.text)+" ",1),V(x,{"confirm-text":e.confirmText,onConfirm:o[0]||(o[0]=t=>n.close("confirm")),onCancel:o[1]||(o[1]=t=>n.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const N=_(D,[["render",S],["__scopeId","data-v-dee628ec"]]);export{N as C};
1
+ import{C as k,h as g,V as b}from"./VDialog-CNXFr29h.js";import{_,x as i,w as a,s as f,v as l,b as u,y as c,a as V,A as r,m as d,G as h}from"./main-693Xq5cv.js";import{V as y,k as T}from"./forwardRefs-BGipb1NY.js";const D={name:"ConfirmDialog",components:{ConfirmFooter:g,CodexListItem:k},props:{block:{type:Boolean,default:!1},button:{type:Boolean,default:!0},buttonText:{type:String,default:""},confirm:{type:Boolean,default:!0},confirmText:{type:String,required:!0},density:{type:String,default:"default"},icon:{type:String,default:""},prependIcon:{type:String,default:""},size:{type:String,default:"default"},text:{type:String,required:!0},titleText:{type:String,required:!0}},data(){return{showDialog:!1}},methods:{close(s){this.$emit(s),this.showDialog=!1},autoConfirm(){this.confirm||this.close("confirm")}}},I={class:"confirmDialog"};function S(s,o,e,v,m,n){const C=f("CodexListItem"),x=f("ConfirmFooter");return l(),i(b,{modelValue:m.showDialog,"onUpdate:modelValue":o[2]||(o[2]=t=>m.showDialog=t),transition:"fab-transition","min-width":"20em",width:"auto","overlay-opacity":"0.5"},{activator:a(({props:t})=>[e.button&&e.icon?(l(),i(y,d({key:0},t,{block:e.block,density:e.density,icon:e.icon,size:e.size,title:e.titleText,onClick:n.autoConfirm}),null,16,["block","density","icon","size","title","onClick"])):e.button?(l(),i(y,d({key:1},t,{block:e.block,density:e.density,size:e.size,title:e.titleText,onClick:n.autoConfirm}),{default:a(()=>[e.prependIcon?(l(),i(T,{key:0},{default:a(()=>[c(r(e.prependIcon),1)]),_:1})):h("",!0),c(" "+r(e.buttonText),1)]),_:2},1040,["block","density","size","title","onClick"])):(l(),i(C,d({key:2},t,{"prepend-icon":e.prependIcon,title:e.titleText,onClick:n.autoConfirm}),null,16,["prepend-icon","title","onClick"]))]),default:a(()=>[u("div",I,[u("h3",null,r(e.titleText),1),c(" "+r(e.text)+" ",1),V(x,{"confirm-text":e.confirmText,onConfirm:o[0]||(o[0]=t=>n.close("confirm")),onCancel:o[1]||(o[1]=t=>n.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const N=_(D,[["render",S],["__scopeId","data-v-dee628ec"]]);export{N as C};
@@ -1 +1 @@
1
- import{C as k,h as g,V as b}from"./VDialog-DSiQFoFP.js";import{_,x as i,w as a,s as f,v as l,b as u,y as c,a as V,A as r,m as d,G as h}from"./main-DXiGoFcV.js";import{V as y,k as T}from"./forwardRefs-Cnj0FOMT.js";const D={name:"ConfirmDialog",components:{ConfirmFooter:g,CodexListItem:k},props:{block:{type:Boolean,default:!1},button:{type:Boolean,default:!0},buttonText:{type:String,default:""},confirm:{type:Boolean,default:!0},confirmText:{type:String,required:!0},density:{type:String,default:"default"},icon:{type:String,default:""},prependIcon:{type:String,default:""},size:{type:String,default:"default"},text:{type:String,required:!0},titleText:{type:String,required:!0}},data(){return{showDialog:!1}},methods:{close(s){this.$emit(s),this.showDialog=!1},autoConfirm(){this.confirm||this.close("confirm")}}},I={class:"confirmDialog"};function S(s,o,e,v,m,n){const C=f("CodexListItem"),x=f("ConfirmFooter");return l(),i(b,{modelValue:m.showDialog,"onUpdate:modelValue":o[2]||(o[2]=t=>m.showDialog=t),transition:"fab-transition","min-width":"20em",width:"auto","overlay-opacity":"0.5"},{activator:a(({props:t})=>[e.button&&e.icon?(l(),i(y,d({key:0},t,{block:e.block,density:e.density,icon:e.icon,size:e.size,title:e.titleText,onClick:n.autoConfirm}),null,16,["block","density","icon","size","title","onClick"])):e.button?(l(),i(y,d({key:1},t,{block:e.block,density:e.density,size:e.size,title:e.titleText,onClick:n.autoConfirm}),{default:a(()=>[e.prependIcon?(l(),i(T,{key:0},{default:a(()=>[c(r(e.prependIcon),1)]),_:1})):h("",!0),c(" "+r(e.buttonText),1)]),_:2},1040,["block","density","size","title","onClick"])):(l(),i(C,d({key:2},t,{"prepend-icon":e.prependIcon,title:e.titleText,onClick:n.autoConfirm}),null,16,["prepend-icon","title","onClick"]))]),default:a(()=>[u("div",I,[u("h3",null,r(e.titleText),1),c(" "+r(e.text)+" ",1),V(x,{"confirm-text":e.confirmText,onConfirm:o[0]||(o[0]=t=>n.close("confirm")),onCancel:o[1]||(o[1]=t=>n.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const N=_(D,[["render",S],["__scopeId","data-v-dee628ec"]]);export{N as C};
1
+ import{C as k,h as g,V as b}from"./VDialog-CNXFr29h.js";import{_,x as i,w as a,s as f,v as l,b as u,y as c,a as V,A as r,m as d,G as h}from"./main-693Xq5cv.js";import{V as y,k as T}from"./forwardRefs-BGipb1NY.js";const D={name:"ConfirmDialog",components:{ConfirmFooter:g,CodexListItem:k},props:{block:{type:Boolean,default:!1},button:{type:Boolean,default:!0},buttonText:{type:String,default:""},confirm:{type:Boolean,default:!0},confirmText:{type:String,required:!0},density:{type:String,default:"default"},icon:{type:String,default:""},prependIcon:{type:String,default:""},size:{type:String,default:"default"},text:{type:String,required:!0},titleText:{type:String,required:!0}},data(){return{showDialog:!1}},methods:{close(s){this.$emit(s),this.showDialog=!1},autoConfirm(){this.confirm||this.close("confirm")}}},I={class:"confirmDialog"};function S(s,o,e,v,m,n){const C=f("CodexListItem"),x=f("ConfirmFooter");return l(),i(b,{modelValue:m.showDialog,"onUpdate:modelValue":o[2]||(o[2]=t=>m.showDialog=t),transition:"fab-transition","min-width":"20em",width:"auto","overlay-opacity":"0.5"},{activator:a(({props:t})=>[e.button&&e.icon?(l(),i(y,d({key:0},t,{block:e.block,density:e.density,icon:e.icon,size:e.size,title:e.titleText,onClick:n.autoConfirm}),null,16,["block","density","icon","size","title","onClick"])):e.button?(l(),i(y,d({key:1},t,{block:e.block,density:e.density,size:e.size,title:e.titleText,onClick:n.autoConfirm}),{default:a(()=>[e.prependIcon?(l(),i(T,{key:0},{default:a(()=>[c(r(e.prependIcon),1)]),_:1})):h("",!0),c(" "+r(e.buttonText),1)]),_:2},1040,["block","density","size","title","onClick"])):(l(),i(C,d({key:2},t,{"prepend-icon":e.prependIcon,title:e.titleText,onClick:n.autoConfirm}),null,16,["prepend-icon","title","onClick"]))]),default:a(()=>[u("div",I,[u("h3",null,r(e.titleText),1),c(" "+r(e.text)+" ",1),V(x,{"confirm-text":e.confirmText,onConfirm:o[0]||(o[0]=t=>n.close("confirm")),onCancel:o[1]||(o[1]=t=>n.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const N=_(D,[["render",S],["__scopeId","data-v-dee628ec"]]);export{N as C};
@@ -1 +1 @@
1
- import{_ as s,D as m,bK as i,ae as d,M as n,q as a,y as c,b as u,A as r,v as o}from"./main-DXiGoFcV.js";const _={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...m(n,{twentyFourHourTime:t=>t.settings.twentyFourHourTime}),formattedDate(){return d.format(this.date)},formattedTime(){return i(this.twentyFourHourTime).format(this.date)},isNever(){return!this.dttm||new Date(this.dttm).getUTCFullYear()<2e3}},created(){}},f={key:0},T={key:1,datetime:"formattedDate"},p={class:"colTime",datetime:"formattedTime"};function l(t,D,h,y,F,e){return e.isNever?(o(),a("span",f,"Never")):(o(),a("time",T,[c(r(e.formattedDate)+" ",1),u("time",p,r(e.formattedTime),1)]))}const g=s(_,[["render",l],["__scopeId","data-v-4b6c3d4e"]]);export{g as D};
1
+ import{_ as s,D as m,bK as i,ae as d,M as n,q as a,y as c,b as u,A as r,v as o}from"./main-693Xq5cv.js";const _={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...m(n,{twentyFourHourTime:t=>t.settings.twentyFourHourTime}),formattedDate(){return d.format(this.date)},formattedTime(){return i(this.twentyFourHourTime).format(this.date)},isNever(){return!this.dttm||new Date(this.dttm).getUTCFullYear()<2e3}},created(){}},f={key:0},T={key:1,datetime:"formattedDate"},p={class:"colTime",datetime:"formattedTime"};function l(t,D,h,y,F,e){return e.isNever?(o(),a("span",f,"Never")):(o(),a("time",T,[c(r(e.formattedDate)+" ",1),u("time",p,r(e.formattedTime),1)]))}const g=s(_,[["render",l],["__scopeId","data-v-4b6c3d4e"]]);export{g as D};
@@ -1 +1 @@
1
- import{_ as s,D as m,bK as i,ae as d,M as n,q as a,y as c,b as u,A as r,v as o}from"./main-DXiGoFcV.js";const _={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...m(n,{twentyFourHourTime:t=>t.settings.twentyFourHourTime}),formattedDate(){return d.format(this.date)},formattedTime(){return i(this.twentyFourHourTime).format(this.date)},isNever(){return!this.dttm||new Date(this.dttm).getUTCFullYear()<2e3}},created(){}},f={key:0},T={key:1,datetime:"formattedDate"},p={class:"colTime",datetime:"formattedTime"};function l(t,D,h,y,F,e){return e.isNever?(o(),a("span",f,"Never")):(o(),a("time",T,[c(r(e.formattedDate)+" ",1),u("time",p,r(e.formattedTime),1)]))}const g=s(_,[["render",l],["__scopeId","data-v-4b6c3d4e"]]);export{g as D};
1
+ import{_ as s,D as m,bK as i,ae as d,M as n,q as a,y as c,b as u,A as r,v as o}from"./main-693Xq5cv.js";const _={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...m(n,{twentyFourHourTime:t=>t.settings.twentyFourHourTime}),formattedDate(){return d.format(this.date)},formattedTime(){return i(this.twentyFourHourTime).format(this.date)},isNever(){return!this.dttm||new Date(this.dttm).getUTCFullYear()<2e3}},created(){}},f={key:0},T={key:1,datetime:"formattedDate"},p={class:"colTime",datetime:"formattedTime"};function l(t,D,h,y,F,e){return e.isNever?(o(),a("span",f,"Never")):(o(),a("time",T,[c(r(e.formattedDate)+" ",1),u("time",p,r(e.formattedTime),1)]))}const g=s(_,[["render",l],["__scopeId","data-v-4b6c3d4e"]]);export{g as D};
@@ -1 +1 @@
1
- import{p as I,aT as _,c as L,bZ as F,bi as O,bD as w,bW as j,b as M,d as k,F as v}from"./main-DXiGoFcV.js";const S=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let l=e.indexOf(t);for(;~l;)r.push([l,l+t.length]),l=e.indexOf(t,l+t.length);return r.length?r:-1};function p(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const C=I({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function A(e,t,n){const r=[],l=n?.default??S,f=n?.filterKeys?w(n.filterKeys):!1,o=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;e:for(let c=0;c<e.length;c++){const[s,m=s]=w(e[c]),g={},a={};let i=-1;if((t||o>0)&&!n?.noFilter){if(typeof s=="object"){if(s.type==="divider"||s.type==="subheader")continue;const b=f||Object.keys(m);for(const d of b){const y=j(m,d),K=n?.customKeyFilter?.[d];if(i=K?K(y,t,s):l(y,t,s),i!==-1&&i!==!1)K?g[d]=p(i,t):a[d]=p(i,t);else if(n?.filterMode==="every")continue e}}else i=l(s,t,s),i!==-1&&i!==!1&&(a.title=p(i,t));const u=Object.keys(a).length,h=Object.keys(g).length;if(!u&&!h||n?.filterMode==="union"&&h!==o&&!u||n?.filterMode==="intersection"&&(h!==o||!u))continue}r.push({index:c,matches:{...a,...g}})}return r}function $(e,t,n,r){const l=_([]),f=_(new Map),o=L(()=>r?.transform?F(t).map(s=>[s,r.transform(s)]):F(t));O(()=>{const s=typeof n=="function"?n():F(n),m=typeof s!="string"&&typeof s!="number"?"":String(s),g=A(o.value,m,{customKeyFilter:{...e.customKeyFilter,...F(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),a=F(t),i=[],u=new Map;g.forEach(h=>{let{index:b,matches:d}=h;const y=a[b];i.push(y),u.set(y.value,d)}),l.value=i,f.value=u});function c(s){return f.value.get(s.value)}return{filteredItems:l,filteredMatches:f,getMatches:c}}function B(e,t,n){return n==null||!n.length?t:n.map((r,l)=>{const f=l===0?0:n[l-1][1],o=[M("span",{class:k(`${e}__unmask`)},[t.slice(f,r[0])]),M("span",{class:k(`${e}__mask`)},[t.slice(r[0],r[1])])];return l===n.length-1&&o.push(M("span",{class:k(`${e}__unmask`)},[t.slice(r[1])])),M(v,null,[o])})}export{B as h,C as m,$ as u};
1
+ import{p as I,aT as _,c as L,bZ as F,bi as O,bD as w,bW as j,b as M,d as k,F as v}from"./main-693Xq5cv.js";const S=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let l=e.indexOf(t);for(;~l;)r.push([l,l+t.length]),l=e.indexOf(t,l+t.length);return r.length?r:-1};function p(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const C=I({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function A(e,t,n){const r=[],l=n?.default??S,f=n?.filterKeys?w(n.filterKeys):!1,o=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;e:for(let c=0;c<e.length;c++){const[s,m=s]=w(e[c]),g={},a={};let i=-1;if((t||o>0)&&!n?.noFilter){if(typeof s=="object"){if(s.type==="divider"||s.type==="subheader")continue;const b=f||Object.keys(m);for(const d of b){const y=j(m,d),K=n?.customKeyFilter?.[d];if(i=K?K(y,t,s):l(y,t,s),i!==-1&&i!==!1)K?g[d]=p(i,t):a[d]=p(i,t);else if(n?.filterMode==="every")continue e}}else i=l(s,t,s),i!==-1&&i!==!1&&(a.title=p(i,t));const u=Object.keys(a).length,h=Object.keys(g).length;if(!u&&!h||n?.filterMode==="union"&&h!==o&&!u||n?.filterMode==="intersection"&&(h!==o||!u))continue}r.push({index:c,matches:{...a,...g}})}return r}function $(e,t,n,r){const l=_([]),f=_(new Map),o=L(()=>r?.transform?F(t).map(s=>[s,r.transform(s)]):F(t));O(()=>{const s=typeof n=="function"?n():F(n),m=typeof s!="string"&&typeof s!="number"?"":String(s),g=A(o.value,m,{customKeyFilter:{...e.customKeyFilter,...F(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),a=F(t),i=[],u=new Map;g.forEach(h=>{let{index:b,matches:d}=h;const y=a[b];i.push(y),u.set(y.value,d)}),l.value=i,f.value=u});function c(s){return f.value.get(s.value)}return{filteredItems:l,filteredMatches:f,getMatches:c}}function B(e,t,n){return n==null||!n.length?t:n.map((r,l)=>{const f=l===0?0:n[l-1][1],o=[M("span",{class:k(`${e}__unmask`)},[t.slice(f,r[0])]),M("span",{class:k(`${e}__mask`)},[t.slice(r[0],r[1])])];return l===n.length-1&&o.push(M("span",{class:k(`${e}__unmask`)},[t.slice(r[1])])),M(v,null,[o])})}export{B as h,C as m,$ as u};
@@ -1 +1 @@
1
- import{p as I,aT as _,c as L,bZ as F,bi as O,bD as w,bW as j,b as M,d as k,F as v}from"./main-DXiGoFcV.js";const S=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let l=e.indexOf(t);for(;~l;)r.push([l,l+t.length]),l=e.indexOf(t,l+t.length);return r.length?r:-1};function p(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const C=I({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function A(e,t,n){const r=[],l=n?.default??S,f=n?.filterKeys?w(n.filterKeys):!1,o=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;e:for(let c=0;c<e.length;c++){const[s,m=s]=w(e[c]),g={},a={};let i=-1;if((t||o>0)&&!n?.noFilter){if(typeof s=="object"){if(s.type==="divider"||s.type==="subheader")continue;const b=f||Object.keys(m);for(const d of b){const y=j(m,d),K=n?.customKeyFilter?.[d];if(i=K?K(y,t,s):l(y,t,s),i!==-1&&i!==!1)K?g[d]=p(i,t):a[d]=p(i,t);else if(n?.filterMode==="every")continue e}}else i=l(s,t,s),i!==-1&&i!==!1&&(a.title=p(i,t));const u=Object.keys(a).length,h=Object.keys(g).length;if(!u&&!h||n?.filterMode==="union"&&h!==o&&!u||n?.filterMode==="intersection"&&(h!==o||!u))continue}r.push({index:c,matches:{...a,...g}})}return r}function $(e,t,n,r){const l=_([]),f=_(new Map),o=L(()=>r?.transform?F(t).map(s=>[s,r.transform(s)]):F(t));O(()=>{const s=typeof n=="function"?n():F(n),m=typeof s!="string"&&typeof s!="number"?"":String(s),g=A(o.value,m,{customKeyFilter:{...e.customKeyFilter,...F(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),a=F(t),i=[],u=new Map;g.forEach(h=>{let{index:b,matches:d}=h;const y=a[b];i.push(y),u.set(y.value,d)}),l.value=i,f.value=u});function c(s){return f.value.get(s.value)}return{filteredItems:l,filteredMatches:f,getMatches:c}}function B(e,t,n){return n==null||!n.length?t:n.map((r,l)=>{const f=l===0?0:n[l-1][1],o=[M("span",{class:k(`${e}__unmask`)},[t.slice(f,r[0])]),M("span",{class:k(`${e}__mask`)},[t.slice(r[0],r[1])])];return l===n.length-1&&o.push(M("span",{class:k(`${e}__unmask`)},[t.slice(r[1])])),M(v,null,[o])})}export{B as h,C as m,$ as u};
1
+ import{p as I,aT as _,c as L,bZ as F,bi as O,bD as w,bW as j,b as M,d as k,F as v}from"./main-693Xq5cv.js";const S=(e,t,n)=>{if(e==null||t==null)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let l=e.indexOf(t);for(;~l;)r.push([l,l+t.length]),l=e.indexOf(t,l+t.length);return r.length?r:-1};function p(e,t){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const C=I({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function A(e,t,n){const r=[],l=n?.default??S,f=n?.filterKeys?w(n.filterKeys):!1,o=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;e:for(let c=0;c<e.length;c++){const[s,m=s]=w(e[c]),g={},a={};let i=-1;if((t||o>0)&&!n?.noFilter){if(typeof s=="object"){if(s.type==="divider"||s.type==="subheader")continue;const b=f||Object.keys(m);for(const d of b){const y=j(m,d),K=n?.customKeyFilter?.[d];if(i=K?K(y,t,s):l(y,t,s),i!==-1&&i!==!1)K?g[d]=p(i,t):a[d]=p(i,t);else if(n?.filterMode==="every")continue e}}else i=l(s,t,s),i!==-1&&i!==!1&&(a.title=p(i,t));const u=Object.keys(a).length,h=Object.keys(g).length;if(!u&&!h||n?.filterMode==="union"&&h!==o&&!u||n?.filterMode==="intersection"&&(h!==o||!u))continue}r.push({index:c,matches:{...a,...g}})}return r}function $(e,t,n,r){const l=_([]),f=_(new Map),o=L(()=>r?.transform?F(t).map(s=>[s,r.transform(s)]):F(t));O(()=>{const s=typeof n=="function"?n():F(n),m=typeof s!="string"&&typeof s!="number"?"":String(s),g=A(o.value,m,{customKeyFilter:{...e.customKeyFilter,...F(r?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),a=F(t),i=[],u=new Map;g.forEach(h=>{let{index:b,matches:d}=h;const y=a[b];i.push(y),u.set(y.value,d)}),l.value=i,f.value=u});function c(s){return f.value.get(s.value)}return{filteredItems:l,filteredMatches:f,getMatches:c}}function B(e,t,n){return n==null||!n.length?t:n.map((r,l)=>{const f=l===0?0:n[l-1][1],o=[M("span",{class:k(`${e}__unmask`)},[t.slice(f,r[0])]),M("span",{class:k(`${e}__mask`)},[t.slice(r[0],r[1])])];return l===n.length-1&&o.push(M("span",{class:k(`${e}__unmask`)},[t.slice(r[1])])),M(v,null,[o])})}export{B as h,C as m,$ as u};
@@ -1 +1 @@
1
- import{_ as p,B as b,D as h,x as i,w as y,C as g,bx as v,v as r,b as o,q as d,F as k,z as w,G as T,A as m,a as B}from"./main-DXiGoFcV.js";import{useAdminStore as f}from"./admin-B9Oz5KrR.js";import{V as x}from"./VTable-D0O9TP1l.js";import{c as C}from"./VSelectionControl-BQOk7BCO.js";import{V as S}from"./forwardRefs-Cnj0FOMT.js";import{V}from"./VCheckbox-DWxWEepo.js";import"./VCheckboxBtn-C_KP91Hh.js";const I="Auto Update",A="Banner Text",U="Folder View",F="Import Metadata on Library Scan",_="Import Metadata on Demand",E="Non Users",N="Registration",D="Send Stats",L={AU:I,BT:A,FV:U,IM:F,LI:_,NU:E,RG:N,ST:D},M="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",R="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",G="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",O=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,Y="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. This makes importing comics fast, but disables most of the metadata browser and search functionality for lack of data, making codex mostly a file tree browser.",P="Import metadata for books that have none one at a time when you hover over the 🏷 button. On many systems this will happen fast enough that clicking the button will show populated metadata. This gives users individual metadata on demand for setups that have Bulk Import Metadata disabled above and lets them slowly populate the database. Eventually there might be enough data for search and filtering to be useful.",$="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",z="A customized text headline that appears at the top of every codex page.",q={AU:M,NU:R,RG:G,FV:O,IM:Y,LI:P,ST:$,BT:z},K={name:"AdminFlagsTab",components:{},data(){return{DESC:q,banner:"",mdiContentSaveOutline:v,lastUpdate:{name:"",field:void 0},errors:{}}},computed:{...h(g,{formErrors:e=>e.form.errors}),...h(f,{flags:e=>e.flags}),storeBanner(){for(const e of this.flags)if(e.key==="BT")return e.value;return""}},watch:{storeBanner(e){this.banner=e}},mounted(){this.loadTables(["Flag"])},methods:{...b(f,["updateRow","clearErrors","loadTables"]),setError(e,a){this.formErrors&&this.formErrors.length>0?this.errors[e]=this.formErrors[0][a]:delete this.errors[e]},changeCol(e,a,u){this.lastUpdate.name=e,this.lastUpdate.field=a;const c={[a]:u};this.updateRow("Flag",e,c).then(()=>this.setError(e,a)).catch(console.error)},title(e){return L[e.key]},colspan(e){return e.key==="BT"?1:2}}},j=["colspan"],H={class:"desc"},J={key:0,class:"bannerTextField"};function Q(e,a,u,c,s,l){return r(),i(x,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:y(()=>[a[2]||(a[2]=o("thead",null,[o("tr",null,[o("th",null,"Description"),o("th",null,"Value"),o("th",null,"Enabled")])],-1)),o("tbody",null,[(r(!0),d(k,null,w(e.flags,t=>(r(),d("tr",{key:`f${t.key}`},[o("td",{class:"nameCol",colspan:l.colspan(t)},[o("h4",null,m(l.title(t)),1),o("p",H,m(s.DESC[t.key]),1)],8,j),t.key==="BT"?(r(),d("td",J,[B(C,{"model-value":s.banner,label:"Banner",clearable:"","hide-details":"auto","error-messages":s.errors[t.key],"onUpdate:modelValue":a[0]||(a[0]=n=>s.banner=n),"onClick:clear":a[1]||(a[1]=n=>s.banner="")},null,8,["model-value","error-messages"])])):T("",!0),o("td",null,[t.key==="BT"?(r(),i(S,{key:0,variant:"plain",class:"flagSaveButton",icon:s.mdiContentSaveOutline,title:"Save Banner",onClick:n=>l.changeCol(t.key,"value",s.banner)},null,8,["icon","onClick"])):(r(),i(V,{key:1,"model-value":t.on,"true-value":!0,"error-messages":s.errors[t.key],"hide-details":"auto","onUpdate:modelValue":n=>l.changeCol(t.key,"on",n)},null,8,["model-value","error-messages","onUpdate:modelValue"]))])]))),128))])]),_:1,__:[2]},8,["items"])}const se=p(K,[["render",Q],["__scopeId","data-v-1f6d7170"]]);export{se as default};
1
+ import{_ as p,B as b,D as h,x as i,w as y,C as g,bx as v,v as r,b as o,q as d,F as k,z as w,G as T,A as m,a as B}from"./main-693Xq5cv.js";import{useAdminStore as f}from"./admin-BqW0weON.js";import{V as x}from"./VTable-DwXTycqf.js";import{c as C}from"./VSelectionControl-DnfftqAx.js";import{V as S}from"./forwardRefs-BGipb1NY.js";import{V}from"./VCheckbox-DUW6_hDa.js";import"./VCheckboxBtn-C-lQiBqA.js";const I="Auto Update",A="Banner Text",U="Folder View",F="Import Metadata on Library Scan",_="Import Metadata on Demand",E="Non Users",N="Registration",D="Send Stats",L={AU:I,BT:A,FV:U,IM:F,LI:_,NU:E,RG:N,ST:D},M="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",R="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",G="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",O=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,Y="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. This makes importing comics fast, but disables most of the metadata browser and search functionality for lack of data, making codex mostly a file tree browser.",P="Import metadata for books that have none one at a time when you hover over the 🏷 button. On many systems this will happen fast enough that clicking the button will show populated metadata. This gives users individual metadata on demand for setups that have Bulk Import Metadata disabled above and lets them slowly populate the database. Eventually there might be enough data for search and filtering to be useful.",$="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",z="A customized text headline that appears at the top of every codex page.",q={AU:M,NU:R,RG:G,FV:O,IM:Y,LI:P,ST:$,BT:z},K={name:"AdminFlagsTab",components:{},data(){return{DESC:q,banner:"",mdiContentSaveOutline:v,lastUpdate:{name:"",field:void 0},errors:{}}},computed:{...h(g,{formErrors:e=>e.form.errors}),...h(f,{flags:e=>e.flags}),storeBanner(){for(const e of this.flags)if(e.key==="BT")return e.value;return""}},watch:{storeBanner(e){this.banner=e}},mounted(){this.loadTables(["Flag"])},methods:{...b(f,["updateRow","clearErrors","loadTables"]),setError(e,a){this.formErrors&&this.formErrors.length>0?this.errors[e]=this.formErrors[0][a]:delete this.errors[e]},changeCol(e,a,u){this.lastUpdate.name=e,this.lastUpdate.field=a;const c={[a]:u};this.updateRow("Flag",e,c).then(()=>this.setError(e,a)).catch(console.error)},title(e){return L[e.key]},colspan(e){return e.key==="BT"?1:2}}},j=["colspan"],H={class:"desc"},J={key:0,class:"bannerTextField"};function Q(e,a,u,c,s,l){return r(),i(x,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:y(()=>[a[2]||(a[2]=o("thead",null,[o("tr",null,[o("th",null,"Description"),o("th",null,"Value"),o("th",null,"Enabled")])],-1)),o("tbody",null,[(r(!0),d(k,null,w(e.flags,t=>(r(),d("tr",{key:`f${t.key}`},[o("td",{class:"nameCol",colspan:l.colspan(t)},[o("h4",null,m(l.title(t)),1),o("p",H,m(s.DESC[t.key]),1)],8,j),t.key==="BT"?(r(),d("td",J,[B(C,{"model-value":s.banner,label:"Banner",clearable:"","hide-details":"auto","error-messages":s.errors[t.key],"onUpdate:modelValue":a[0]||(a[0]=n=>s.banner=n),"onClick:clear":a[1]||(a[1]=n=>s.banner="")},null,8,["model-value","error-messages"])])):T("",!0),o("td",null,[t.key==="BT"?(r(),i(S,{key:0,variant:"plain",class:"flagSaveButton",icon:s.mdiContentSaveOutline,title:"Save Banner",onClick:n=>l.changeCol(t.key,"value",s.banner)},null,8,["icon","onClick"])):(r(),i(V,{key:1,"model-value":t.on,"true-value":!0,"error-messages":s.errors[t.key],"hide-details":"auto","onUpdate:modelValue":n=>l.changeCol(t.key,"on",n)},null,8,["model-value","error-messages","onUpdate:modelValue"]))])]))),128))])]),_:1,__:[2]},8,["items"])}const se=p(K,[["render",Q],["__scopeId","data-v-1f6d7170"]]);export{se as default};
@@ -1 +1 @@
1
- import{_ as p,B as b,D as h,x as i,w as y,C as g,bx as v,v as r,b as o,q as d,F as k,z as w,G as T,A as m,a as B}from"./main-DXiGoFcV.js";import{useAdminStore as f}from"./admin-B9Oz5KrR.js";import{V as x}from"./VTable-D0O9TP1l.js";import{c as C}from"./VSelectionControl-BQOk7BCO.js";import{V as S}from"./forwardRefs-Cnj0FOMT.js";import{V}from"./VCheckbox-DWxWEepo.js";import"./VCheckboxBtn-C_KP91Hh.js";const I="Auto Update",A="Banner Text",U="Folder View",F="Import Metadata on Library Scan",_="Import Metadata on Demand",E="Non Users",N="Registration",D="Send Stats",L={AU:I,BT:A,FV:U,IM:F,LI:_,NU:E,RG:N,ST:D},M="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",R="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",G="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",O=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,Y="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. This makes importing comics fast, but disables most of the metadata browser and search functionality for lack of data, making codex mostly a file tree browser.",P="Import metadata for books that have none one at a time when you hover over the 🏷 button. On many systems this will happen fast enough that clicking the button will show populated metadata. This gives users individual metadata on demand for setups that have Bulk Import Metadata disabled above and lets them slowly populate the database. Eventually there might be enough data for search and filtering to be useful.",$="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",z="A customized text headline that appears at the top of every codex page.",q={AU:M,NU:R,RG:G,FV:O,IM:Y,LI:P,ST:$,BT:z},K={name:"AdminFlagsTab",components:{},data(){return{DESC:q,banner:"",mdiContentSaveOutline:v,lastUpdate:{name:"",field:void 0},errors:{}}},computed:{...h(g,{formErrors:e=>e.form.errors}),...h(f,{flags:e=>e.flags}),storeBanner(){for(const e of this.flags)if(e.key==="BT")return e.value;return""}},watch:{storeBanner(e){this.banner=e}},mounted(){this.loadTables(["Flag"])},methods:{...b(f,["updateRow","clearErrors","loadTables"]),setError(e,a){this.formErrors&&this.formErrors.length>0?this.errors[e]=this.formErrors[0][a]:delete this.errors[e]},changeCol(e,a,u){this.lastUpdate.name=e,this.lastUpdate.field=a;const c={[a]:u};this.updateRow("Flag",e,c).then(()=>this.setError(e,a)).catch(console.error)},title(e){return L[e.key]},colspan(e){return e.key==="BT"?1:2}}},j=["colspan"],H={class:"desc"},J={key:0,class:"bannerTextField"};function Q(e,a,u,c,s,l){return r(),i(x,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:y(()=>[a[2]||(a[2]=o("thead",null,[o("tr",null,[o("th",null,"Description"),o("th",null,"Value"),o("th",null,"Enabled")])],-1)),o("tbody",null,[(r(!0),d(k,null,w(e.flags,t=>(r(),d("tr",{key:`f${t.key}`},[o("td",{class:"nameCol",colspan:l.colspan(t)},[o("h4",null,m(l.title(t)),1),o("p",H,m(s.DESC[t.key]),1)],8,j),t.key==="BT"?(r(),d("td",J,[B(C,{"model-value":s.banner,label:"Banner",clearable:"","hide-details":"auto","error-messages":s.errors[t.key],"onUpdate:modelValue":a[0]||(a[0]=n=>s.banner=n),"onClick:clear":a[1]||(a[1]=n=>s.banner="")},null,8,["model-value","error-messages"])])):T("",!0),o("td",null,[t.key==="BT"?(r(),i(S,{key:0,variant:"plain",class:"flagSaveButton",icon:s.mdiContentSaveOutline,title:"Save Banner",onClick:n=>l.changeCol(t.key,"value",s.banner)},null,8,["icon","onClick"])):(r(),i(V,{key:1,"model-value":t.on,"true-value":!0,"error-messages":s.errors[t.key],"hide-details":"auto","onUpdate:modelValue":n=>l.changeCol(t.key,"on",n)},null,8,["model-value","error-messages","onUpdate:modelValue"]))])]))),128))])]),_:1,__:[2]},8,["items"])}const se=p(K,[["render",Q],["__scopeId","data-v-1f6d7170"]]);export{se as default};
1
+ import{_ as p,B as b,D as h,x as i,w as y,C as g,bx as v,v as r,b as o,q as d,F as k,z as w,G as T,A as m,a as B}from"./main-693Xq5cv.js";import{useAdminStore as f}from"./admin-BqW0weON.js";import{V as x}from"./VTable-DwXTycqf.js";import{c as C}from"./VSelectionControl-DnfftqAx.js";import{V as S}from"./forwardRefs-BGipb1NY.js";import{V}from"./VCheckbox-DUW6_hDa.js";import"./VCheckboxBtn-C-lQiBqA.js";const I="Auto Update",A="Banner Text",U="Folder View",F="Import Metadata on Library Scan",_="Import Metadata on Demand",E="Non Users",N="Registration",D="Send Stats",L={AU:I,BT:A,FV:U,IM:F,LI:_,NU:E,RG:N,ST:D},M="If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",R="By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",G="By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",O=`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option and the path from search indexing.`,Y="If disabled, Codex will not bulk import metadata from comic libraries when they are scanned and only import folders and filenames. This makes importing comics fast, but disables most of the metadata browser and search functionality for lack of data, making codex mostly a file tree browser.",P="Import metadata for books that have none one at a time when you hover over the 🏷 button. On many systems this will happen fast enough that clicking the button will show populated metadata. This gives users individual metadata on demand for setups that have Bulk Import Metadata disabled above and lets them slowly populate the database. Eventually there might be enough data for search and filtering to be useful.",$="Anonymously send the contents of the Admin Stats tab once a week to understand how people use Codex and improve the software. The server collecting the stats does not log or store your IP. The author considers all personally identifying information and the names and metadata of your comics to be a radioactive privacy violation and will never be exposed to it. Only the information you see on the stats page is collected. Your API Key is not sent. Stats are not sent for the first 24 hours to allow opt-out.",z="A customized text headline that appears at the top of every codex page.",q={AU:M,NU:R,RG:G,FV:O,IM:Y,LI:P,ST:$,BT:z},K={name:"AdminFlagsTab",components:{},data(){return{DESC:q,banner:"",mdiContentSaveOutline:v,lastUpdate:{name:"",field:void 0},errors:{}}},computed:{...h(g,{formErrors:e=>e.form.errors}),...h(f,{flags:e=>e.flags}),storeBanner(){for(const e of this.flags)if(e.key==="BT")return e.value;return""}},watch:{storeBanner(e){this.banner=e}},mounted(){this.loadTables(["Flag"])},methods:{...b(f,["updateRow","clearErrors","loadTables"]),setError(e,a){this.formErrors&&this.formErrors.length>0?this.errors[e]=this.formErrors[0][a]:delete this.errors[e]},changeCol(e,a,u){this.lastUpdate.name=e,this.lastUpdate.field=a;const c={[a]:u};this.updateRow("Flag",e,c).then(()=>this.setError(e,a)).catch(console.error)},title(e){return L[e.key]},colspan(e){return e.key==="BT"?1:2}}},j=["colspan"],H={class:"desc"},J={key:0,class:"bannerTextField"};function Q(e,a,u,c,s,l){return r(),i(x,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:y(()=>[a[2]||(a[2]=o("thead",null,[o("tr",null,[o("th",null,"Description"),o("th",null,"Value"),o("th",null,"Enabled")])],-1)),o("tbody",null,[(r(!0),d(k,null,w(e.flags,t=>(r(),d("tr",{key:`f${t.key}`},[o("td",{class:"nameCol",colspan:l.colspan(t)},[o("h4",null,m(l.title(t)),1),o("p",H,m(s.DESC[t.key]),1)],8,j),t.key==="BT"?(r(),d("td",J,[B(C,{"model-value":s.banner,label:"Banner",clearable:"","hide-details":"auto","error-messages":s.errors[t.key],"onUpdate:modelValue":a[0]||(a[0]=n=>s.banner=n),"onClick:clear":a[1]||(a[1]=n=>s.banner="")},null,8,["model-value","error-messages"])])):T("",!0),o("td",null,[t.key==="BT"?(r(),i(S,{key:0,variant:"plain",class:"flagSaveButton",icon:s.mdiContentSaveOutline,title:"Save Banner",onClick:n=>l.changeCol(t.key,"value",s.banner)},null,8,["icon","onClick"])):(r(),i(V,{key:1,"model-value":t.on,"true-value":!0,"error-messages":s.errors[t.key],"hide-details":"auto","onUpdate:modelValue":n=>l.changeCol(t.key,"on",n)},null,8,["model-value","error-messages","onUpdate:modelValue"]))])]))),128))])]),_:1,__:[2]},8,["items"])}const se=p(K,[["render",Q],["__scopeId","data-v-1f6d7170"]]);export{se as default};
@@ -0,0 +1 @@
1
+ import{cv as q,p as y,g as N,bX as ft,f as Ee,c as b,h as C,cp as Ie,cn as W,cw as we,cx as vt,cy as mt,cz as gt,cd as $,cA as le,j as ue,c9 as ht,bq as Le,m as X,cB as bt,ca as yt,cl as Te,t as g,b as S,d as k,F as pt,aA as M,J as G,az as K,u as D,a as _,n as L,bP as J,bt as Ct,aV as Re,i as wt,bl as Ne,aU as ge,ct as ce,e as $e,bk as St,cC as xt,bE as ze,bD as _t,cD as kt,bZ as Bt,aT as Oe,cE as Vt,cF as Pt,cG as Et,cH as It,K as de,r as Ae,bn as De,be as Lt,b7 as fe,bi as Tt,aC as We,bs as Fe,H as Rt,cI as Se,aW as He,S as Nt,A as $t}from"./main-693Xq5cv.js";const Me=["top","bottom"],zt=["start","end","left","right"];function Ot(e,t){let[n,s]=e.split(" ");return s||(s=q(Me,n)?"start":q(zt,n)?"top":"center"),{side:xe(n,t),align:xe(s,t)}}function xe(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function xn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function _n(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function kn(e){return{side:e.align,align:e.side}}function Bn(e){return q(Me,e.side)?"y":"x"}class R{constructor(t){let{x:n,y:s,width:i,height:a}=t;this.x=n,this.y=s,this.width=i,this.height=a}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Vn(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function Pn(e){return Array.isArray(e)?new R({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function En(e){if(e===document.documentElement)return visualViewport?new R({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale,height:visualViewport.height*visualViewport.scale}):new R({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});{const t=e.getBoundingClientRect();return new R({x:t.x,y:t.y,width:e.clientWidth,height:e.clientHeight})}}function In(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),s=n.transform;if(s){let i,a,r,o,l;if(s.startsWith("matrix3d("))i=s.slice(9,-1).split(/, /),a=Number(i[0]),r=Number(i[5]),o=Number(i[12]),l=Number(i[13]);else if(s.startsWith("matrix("))i=s.slice(7,-1).split(/, /),a=Number(i[0]),r=Number(i[3]),o=Number(i[4]),l=Number(i[5]);else return new R(t);const c=n.transformOrigin,f=t.x-o-(1-a)*parseFloat(c),m=t.y-l-(1-r)*parseFloat(c.slice(c.indexOf(" ")+1)),u=a?t.width/a:e.offsetWidth+1,v=r?t.height/r:e.offsetHeight+1;return new R({x:f,y:m,width:u,height:v})}else return new R(t)}function Ln(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let s;try{s=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof s.finished>"u"&&(s.finished=new Promise(i=>{s.onfinish=()=>{i(s)}})),s}const Tn="cubic-bezier(0.4, 0, 0.2, 1)",Rn="cubic-bezier(0.0, 0, 0.2, 1)",Nn="cubic-bezier(0.4, 0, 1, 1)",j=y({tag:{type:[String,Object,Function],default:"div"}},"tag"),At=y({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ne=N(!1)({name:"VDefaultsProvider",props:At(),setup(e,t){let{slots:n}=t;const{defaults:s,disabled:i,reset:a,root:r,scoped:o}=ft(e);return Ee(s,{reset:a,root:r,scoped:o,disabled:i}),()=>n.default?.()}}),Dt=y({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Wt(e){return{dimensionStyles:b(()=>{const n={},s=C(e.height),i=C(e.maxHeight),a=C(e.maxWidth),r=C(e.minHeight),o=C(e.minWidth),l=C(e.width);return s!=null&&(n.height=s),i!=null&&(n.maxHeight=i),a!=null&&(n.maxWidth=a),r!=null&&(n.minHeight=r),o!=null&&(n.minWidth=o),l!=null&&(n.width=l),n})}}function he(e){return Ie(()=>{const t=W(e),n=[],s={};if(t.background)if(we(t.background)){if(s.backgroundColor=t.background,!t.text&&vt(t.background)){const i=mt(t.background);if(i.a==null||i.a===1){const a=gt(i);s.color=a,s.caretColor=a}}}else n.push(`bg-${t.background}`);return t.text&&(we(t.text)?(s.color=t.text,s.caretColor=t.text):n.push(`text-${t.text}`)),{colorClasses:n,colorStyles:s}})}function U(e){const{colorClasses:t,colorStyles:n}=he(()=>({text:W(e)}));return{textColorClasses:t,textColorStyles:n}}function se(e){const{colorClasses:t,colorStyles:n}=he(()=>({background:W(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}const be=y({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function ye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{roundedClasses:b(()=>{const s=le(e)?e.value:e.rounded,i=le(e)?e.value:e.tile,a=[];if(s===!0||s==="")a.push(`${t}--rounded`);else if(typeof s=="string"||s===0)for(const r of String(s).split(" "))a.push(`rounded-${r}`);else(i||s===!1)&&a.push("rounded-0");return a})}}const $n=y({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),zn=(e,t)=>{let{slots:n}=t;const{transition:s,disabled:i,group:a,...r}=e,{component:o=a?ht:Le,...l}=ue(s)?s:{};let c;return ue(s)?c=X(l,bt({disabled:i,group:a}),r):c=X({name:i||!s?"":s},r),yt(o,c,n)};function Ft(e,t){if(!Te)return;const n=t.modifiers||{},s=t.value,{handler:i,options:a}=typeof s=="object"?s:{handler:s,options:{}},r=new IntersectionObserver(function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const c=e._observe?.[t.instance.$.uid];if(!c)return;const f=o.some(m=>m.isIntersecting);i&&(!n.quiet||c.init)&&(!n.once||f||c.init)&&i(f,o,l),f&&n.once?Ge(e,t):c.init=!0},a);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:r},r.observe(e)}function Ge(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const On={mounted:Ft,unmounted:Ge},je=y({border:[Boolean,Number,String]},"border");function qe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{borderClasses:b(()=>{const s=e.border;return s===!0||s===""?`${t}--border`:typeof s=="string"||s===0?String(s).split(" ").map(i=>`border-${i}`):[]})}}const Xe=y({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Ue(e){return{elevationClasses:g(()=>{const n=le(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const Ht=["elevated","flat","tonal","outlined","text","plain"];function Mt(e,t){return S(pt,null,[e&&S("span",{key:"overlay",class:k(`${t}__overlay`)},null),S("span",{key:"underlay",class:k(`${t}__underlay`)},null)])}const Ye=y({color:String,variant:{type:String,default:"elevated",validator:e=>Ht.includes(e)}},"variant");function Gt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();const n=g(()=>{const{variant:a}=W(e);return`${t}--variant-${a}`}),{colorClasses:s,colorStyles:i}=he(()=>{const{variant:a,color:r}=W(e);return{[["elevated","flat"].includes(a)?"background":"text"]:r}});return{colorClasses:s,colorStyles:i,variantClasses:n}}const jt=[null,"default","comfortable","compact"],Ke=y({density:{type:String,default:"default",validator:e=>jt.includes(e)}},"density");function Je(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{densityClasses:g(()=>`${t}--density-${e.density}`)}}const Ze=y({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...je(),...G(),...Ke(),...Xe(),...be(),...j(),...M(),...Ye()},"VBtnGroup"),_e=N()({name:"VBtnGroup",props:Ze(),setup(e,t){let{slots:n}=t;const{themeClasses:s}=K(e),{densityClasses:i}=Je(e),{borderClasses:a}=qe(e),{elevationClasses:r}=Ue(e),{roundedClasses:o}=ye(e);Ee({VBtn:{height:g(()=>e.direction==="horizontal"?"auto":null),baseColor:g(()=>e.baseColor),color:g(()=>e.color),density:g(()=>e.density),flat:!0,variant:g(()=>e.variant)}}),D(()=>_(e.tag,{class:k(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},s.value,a.value,i.value,r.value,o.value,e.class]),style:L(e.style)},n))}}),qt=y({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Xt=y({value:null,disabled:Boolean,selectedClass:String},"group-item");function Ut(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const s=J("useGroupItem");if(!s)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=Ct();Re(Symbol.for(`${t.description}:id`),i);const a=wt(t,null);if(!a){if(!n)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const r=g(()=>e.value),o=b(()=>!!(a.disabled.value||e.disabled));a.register({id:i,value:r,disabled:o},s),Ne(()=>{a.unregister(i)});const l=b(()=>a.isSelected(i)),c=b(()=>a.items.value[0].id===i),f=b(()=>a.items.value[a.items.value.length-1].id===i),m=b(()=>l.value&&[a.selectedClass.value,e.selectedClass]);return ge(l,u=>{s.emit("group:selected",{value:u})},{flush:"sync"}),{id:i,isSelected:l,isFirst:c,isLast:f,toggle:()=>a.select(i,!l.value),select:u=>a.select(i,u),selectedClass:m,value:r,disabled:o,group:a}}function Yt(e,t){let n=!1;const s=ce([]),i=$e(e,"modelValue",[],u=>u==null?[]:Qe(s,_t(u)),u=>{const v=Jt(s,u);return e.multiple?v:v[0]}),a=J("useGroup");function r(u,v){const p=u,d=Symbol.for(`${t.description}:id`),w=kt(d,a?.vnode).indexOf(v);Bt(p.value)==null&&(p.value=w,p.useIndexAsValue=!0),w>-1?s.splice(w,0,p):s.push(p)}function o(u){if(n)return;l();const v=s.findIndex(p=>p.id===u);s.splice(v,1)}function l(){const u=s.find(v=>!v.disabled);u&&e.mandatory==="force"&&!i.value.length&&(i.value=[u.id])}St(()=>{l()}),Ne(()=>{n=!0}),xt(()=>{for(let u=0;u<s.length;u++)s[u].useIndexAsValue&&(s[u].value=u)});function c(u,v){const p=s.find(d=>d.id===u);if(!(v&&p?.disabled))if(e.multiple){const d=i.value.slice(),h=d.findIndex(P=>P===u),w=~h;if(v=v??!w,w&&e.mandatory&&d.length<=1||!w&&e.max!=null&&d.length+1>e.max)return;h<0&&v?d.push(u):h>=0&&!v&&d.splice(h,1),i.value=d}else{const d=i.value.includes(u);if(e.mandatory&&d||!d&&!v)return;i.value=v??!d?[u]:[]}}function f(u){if(e.multiple,i.value.length){const v=i.value[0],p=s.findIndex(w=>w.id===v);let d=(p+u)%s.length,h=s[d];for(;h.disabled&&d!==p;)d=(d+u)%s.length,h=s[d];if(h.disabled)return;i.value=[s[d].id]}else{const v=s.find(p=>!p.disabled);v&&(i.value=[v.id])}}const m={register:r,unregister:o,selected:i,select:c,disabled:g(()=>e.disabled),prev:()=>f(s.length-1),next:()=>f(1),isSelected:u=>i.value.includes(u),selectedClass:g(()=>e.selectedClass),items:g(()=>s),getItemIndex:u=>Kt(s,u)};return Re(t,m),m}function Kt(e,t){const n=Qe(e,[t]);return n.length?e.findIndex(s=>s.id===n[0]):-1}function Qe(e,t){const n=[];return t.forEach(s=>{const i=e.find(r=>ze(s,r.value)),a=e[s];i?.value!=null?n.push(i.id):a?.useIndexAsValue&&n.push(a.id)}),n}function Jt(e,t){const n=[];return t.forEach(s=>{const i=e.findIndex(a=>a.id===s);if(~i){const a=e[i];n.push(a.value!=null?a.value:i)}}),n}const et=Symbol.for("vuetify:v-btn-toggle"),Zt=y({...Ze(),...qt()},"VBtnToggle");N()({name:"VBtnToggle",props:Zt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:s,next:i,prev:a,select:r,selected:o}=Yt(e,et);return D(()=>{const l=_e.filterProps(e);return _(_e,X({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>[n.default?.({isSelected:s,next:i,prev:a,select:r,selected:o})]})}),{next:i,prev:a,select:r}}});const Qt=["x-small","small","default","large","x-large"],pe=y({size:{type:[String,Number],default:"default"}},"size");function Ce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return Ie(()=>{const n=e.size;let s,i;return q(Qt,n)?s=`${t}--size-${n}`:n&&(i={width:C(n),height:C(n)}),{sizeClasses:s,sizeStyles:i}})}const en=y({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:de,opacity:[String,Number],...G(),...pe(),...j({tag:"i"}),...M()},"VIcon"),ae=N()({name:"VIcon",props:en(),setup(e,t){let{attrs:n,slots:s}=t;const i=Oe(),{themeClasses:a}=Vt(),{iconData:r}=Pt(()=>i.value||e.icon),{sizeClasses:o}=Ce(e),{textColorClasses:l,textColorStyles:c}=U(()=>e.color);return D(()=>{const f=s.default?.();f&&(i.value=Et(f).filter(u=>u.type===It&&u.children&&typeof u.children=="string")[0]?.children);const m=!!(n.onClick||n.onClickOnce);return _(r.value.component,{tag:e.tag,icon:r.value.icon,class:k(["v-icon","notranslate",a.value,o.value,l.value,{"v-icon--clickable":m,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:L([{"--v-icon-opacity":e.opacity},o.value?void 0:{fontSize:C(e.size),height:C(e.size),width:C(e.size)},c.value,e.style]),role:m?"button":void 0,"aria-hidden":!m,tabindex:m?e.disabled?-1:0:void 0},{default:()=>[f]})}),{}}});function tt(e,t){const n=Ae(),s=Oe(!1);if(Te){const i=new IntersectionObserver(a=>{s.value=!!a.find(r=>r.isIntersecting)},t);De(()=>{i.disconnect()}),ge(n,(a,r)=>{r&&(i.unobserve(r),s.value=!1),a&&i.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:s}}const tn=y({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...G(),...pe(),...j({tag:"div"}),...M()},"VProgressCircular"),nn=N()({name:"VProgressCircular",props:tn(),setup(e,t){let{slots:n}=t;const s=20,i=2*Math.PI*s,a=Ae(),{themeClasses:r}=K(e),{sizeClasses:o,sizeStyles:l}=Ce(e),{textColorClasses:c,textColorStyles:f}=U(()=>e.color),{textColorClasses:m,textColorStyles:u}=U(()=>e.bgColor),{intersectionRef:v,isIntersecting:p}=tt(),{resizeRef:d,contentRect:h}=Lt(),w=g(()=>fe(parseFloat(e.modelValue),0,100)),P=g(()=>Number(e.width)),E=g(()=>l.value?Number(e.size):h.value?h.value.width:Math.max(P.value,32)),V=g(()=>s/(1-P.value/E.value)*2),T=g(()=>P.value/E.value*V.value),z=g(()=>C((100-w.value)/100*i));return Tt(()=>{v.value=a.value,d.value=a.value}),D(()=>_(e.tag,{ref:a,class:k(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},r.value,o.value,c.value,e.class]),style:L([l.value,f.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:w.value},{default:()=>[S("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${V.value} ${V.value}`},[S("circle",{class:k(["v-progress-circular__underlay",m.value]),style:L(u.value),fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":T.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),S("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":T.value,"stroke-dasharray":i,"stroke-dashoffset":z.value},null)]),n.default&&S("div",{class:"v-progress-circular__content"},[n.default({value:w.value})])]})),{}}}),ke={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},nt=y({location:String},"location");function st(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:s}=We();return{locationStyles:b(()=>{if(!e.location)return{};const{side:a,align:r}=Ot(e.location.split(" ").length>1?e.location:`${e.location} center`,s.value);function o(c){return n?n(c):0}const l={};return a!=="center"&&(t?l[ke[a]]=`calc(100% - ${o(a)}px)`:l[a]=0),r!=="center"?t?l[ke[r]]=`calc(100% - ${o(r)}px)`:l[r]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const sn=y({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...G(),...nt({location:"top"}),...be(),...j(),...M()},"VProgressLinear"),an=N()({name:"VProgressLinear",props:sn(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const s=$e(e,"modelValue"),{isRtl:i,rtlClasses:a}=We(),{themeClasses:r}=K(e),{locationStyles:o}=st(e),{textColorClasses:l,textColorStyles:c}=U(()=>e.color),{backgroundColorClasses:f,backgroundColorStyles:m}=se(()=>e.bgColor||e.color),{backgroundColorClasses:u,backgroundColorStyles:v}=se(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:p,backgroundColorStyles:d}=se(()=>e.color),{roundedClasses:h}=ye(e),{intersectionRef:w,isIntersecting:P}=tt(),E=b(()=>parseFloat(e.max)),V=b(()=>parseFloat(e.height)),T=b(()=>fe(parseFloat(e.bufferValue)/E.value*100,0,100)),z=b(()=>fe(parseFloat(s.value)/E.value*100,0,100)),I=b(()=>i.value!==e.reverse),Z=b(()=>e.indeterminate?"fade-transition":"slide-x-transition"),O=Fe&&window.matchMedia?.("(forced-colors: active)").matches;function Q(x){if(!w.value)return;const{left:ee,right:te,width:A}=w.value.getBoundingClientRect(),dt=I.value?A-x.clientX+(te-A):x.clientX-ee;s.value=Math.round(dt/A*E.value)}return D(()=>_(e.tag,{ref:w,class:k(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&P.value,"v-progress-linear--reverse":I.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},h.value,r.value,a.value,e.class]),style:L([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?C(V.value):0,"--v-progress-linear-height":C(V.value),...e.absolute?o.value:{}},e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(s.value),E.value),onClick:e.clickable&&Q},{default:()=>[e.stream&&S("div",{key:"stream",class:k(["v-progress-linear__stream",l.value]),style:{...c.value,[I.value?"left":"right"]:C(-V.value),borderTop:`${C(V.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${C(V.value/4)})`,width:C(100-T.value,"%"),"--v-progress-linear-stream-to":C(V.value*(I.value?1:-1))}},null),S("div",{class:k(["v-progress-linear__background",O?void 0:f.value]),style:L([m.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),S("div",{class:k(["v-progress-linear__buffer",O?void 0:u.value]),style:L([v.value,{opacity:parseFloat(e.bufferOpacity),width:C(T.value,"%")}])},null),_(Le,{name:Z.value},{default:()=>[e.indeterminate?S("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(x=>S("div",{key:x,class:k(["v-progress-linear__indeterminate",x,O?void 0:p.value]),style:L(d.value)},null))]):S("div",{class:k(["v-progress-linear__determinate",O?void 0:p.value]),style:L([d.value,{width:C(z.value,"%")}])},null)]}),n.default&&S("div",{class:"v-progress-linear__content"},[n.default({value:z.value,buffer:T.value})])]})),{}}}),rn=y({loading:[Boolean,String]},"loader");function on(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{loaderClasses:g(()=>({[`${t}--loading`]:e.loading}))}}function An(e,t){let{slots:n}=t;return S("div",{class:k(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||_(an,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const ln=["static","relative","fixed","absolute","sticky"],un=y({position:{type:String,validator:e=>ln.includes(e)}},"position");function cn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{positionClasses:g(()=>e.position?`${t}--${e.position}`:void 0)}}function dn(){const e=J("useRoute");return b(()=>e?.proxy?.$route)}function Dn(){return J("useRouter")?.proxy?.$router}function fn(e,t){const n=Rt("RouterLink"),s=g(()=>!!(e.href||e.to)),i=b(()=>s?.value||Se(t,"click")||Se(e,"click"));if(typeof n=="string"||!("useLink"in n)){const f=g(()=>e.href);return{isLink:s,isClickable:i,href:f,linkProps:ce({href:f})}}const a=n.useLink({to:g(()=>e.to||""),replace:g(()=>e.replace)}),r=b(()=>e.to?a:void 0),o=dn(),l=b(()=>r.value?e.exact?o.value?r.value.isExactActive?.value&&ze(r.value.route.value.query,o.value.query):r.value.isExactActive?.value??!1:r.value.isActive?.value??!1:!1),c=b(()=>e.to?r.value?.route.value.href:e.href);return{isLink:s,isClickable:i,isActive:l,route:r.value?.route,navigate:r.value?.navigate,href:c,linkProps:ce({href:c,"aria-current":g(()=>l.value?"page":void 0)})}}const vn=y({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let ie=!1;function Wn(e,t){let n=!1,s,i;Fe&&e?.beforeEach&&(He(()=>{window.addEventListener("popstate",a),s=e.beforeEach((r,o,l)=>{ie?n?t(l):l():setTimeout(()=>n?t(l):l()),ie=!0}),i=e?.afterEach(()=>{ie=!1})}),De(()=>{window.removeEventListener("popstate",a),s?.(),i?.()}));function a(r){r.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function mn(e,t){ge(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&He(()=>{t(n)})},{immediate:!0})}const ve=Symbol("rippleStop"),gn=80;function Be(e,t){e.style.transform=t,e.style.webkitTransform=t}function me(e){return e.constructor.name==="TouchEvent"}function at(e){return e.constructor.name==="KeyboardEvent"}const hn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=0,i=0;if(!at(e)){const m=t.getBoundingClientRect(),u=me(e)?e.touches[e.touches.length-1]:e;s=u.clientX-m.left,i=u.clientY-m.top}let a=0,r=.3;t._ripple?.circle?(r=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((s-a)**2+(i-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const o=`${(t.clientWidth-a*2)/2}px`,l=`${(t.clientHeight-a*2)/2}px`,c=n.center?o:`${s-a}px`,f=n.center?l:`${i-a}px`;return{radius:a,scale:r,x:c,y:f,centerX:o,centerY:l}},Y={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const s=document.createElement("span"),i=document.createElement("span");s.appendChild(i),s.className="v-ripple__container",n.class&&(s.className+=` ${n.class}`);const{radius:a,scale:r,x:o,y:l,centerX:c,centerY:f}=hn(e,t,n),m=`${a*2}px`;i.className="v-ripple__animation",i.style.width=m,i.style.height=m,t.appendChild(s);const u=window.getComputedStyle(t);u&&u.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),Be(i,`translate(${o}, ${l}) scale3d(${r},${r},${r})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),Be(i,`translate(${c}, ${f}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const s=performance.now()-Number(n.dataset.activated),i=Math.max(250-s,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},i)}};function it(e){return typeof e>"u"||!!e}function F(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[ve])){if(e[ve]=!0,me(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||at(e),n._ripple.class&&(t.class=n._ripple.class),me(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Y.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},gn)}else Y.show(e,n,t)}}function Ve(e){e[ve]=!0}function B(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{B(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Y.hide(t)}}function rt(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let H=!1;function Pe(e,t){!H&&t.includes(e.key)&&(H=!0,F(e))}function ot(e){H=!1,B(e)}function lt(e){H&&(H=!1,B(e))}function ut(e,t,n){const{value:s,modifiers:i}=t,a=it(s);a||Y.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=i.center,e._ripple.circle=i.circle;const r=ue(s)?s:{};r.class&&(e._ripple.class=r.class);const o=r.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>Pe(l,o),a&&!n){if(i.stop){e.addEventListener("touchstart",Ve,{passive:!0}),e.addEventListener("mousedown",Ve);return}e.addEventListener("touchstart",F,{passive:!0}),e.addEventListener("touchend",B,{passive:!0}),e.addEventListener("touchmove",rt,{passive:!0}),e.addEventListener("touchcancel",B),e.addEventListener("mousedown",F),e.addEventListener("mouseup",B),e.addEventListener("mouseleave",B),e.addEventListener("keydown",l=>Pe(l,o)),e.addEventListener("keyup",ot),e.addEventListener("blur",lt),e.addEventListener("dragstart",B,{passive:!0})}else!a&&n&&ct(e)}function ct(e){e.removeEventListener("mousedown",F),e.removeEventListener("touchstart",F),e.removeEventListener("touchend",B),e.removeEventListener("touchmove",rt),e.removeEventListener("touchcancel",B),e.removeEventListener("mouseup",B),e.removeEventListener("mouseleave",B),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",ot),e.removeEventListener("dragstart",B),e.removeEventListener("blur",lt)}function bn(e,t){ut(e,t,!1)}function yn(e){ct(e),delete e._ripple}function pn(e,t){if(t.value===t.oldValue)return;const n=it(t.oldValue);ut(e,t,n)}const Cn={mounted:bn,unmounted:yn,updated:pn},wn=y({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:et},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:de,appendIcon:de,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...je(),...G(),...Ke(),...Dt(),...Xe(),...Xt(),...rn(),...nt(),...un(),...be(),...vn(),...pe(),...j({tag:"button"}),...M(),...Ye({variant:"elevated"})},"VBtn"),Fn=N()({name:"VBtn",props:wn(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:s}=t;const{themeClasses:i}=K(e),{borderClasses:a}=qe(e),{densityClasses:r}=Je(e),{dimensionStyles:o}=Wt(e),{elevationClasses:l}=Ue(e),{loaderClasses:c}=on(e),{locationStyles:f}=st(e),{positionClasses:m}=cn(e),{roundedClasses:u}=ye(e),{sizeClasses:v,sizeStyles:p}=Ce(e),d=Ut(e,e.symbol,!1),h=fn(e,n),w=b(()=>e.active!==void 0?e.active:h.isLink.value?h.isActive?.value:d?.isSelected.value),P=g(()=>w.value?e.activeColor??e.color:e.color),E=b(()=>({color:d?.isSelected.value&&(!h.isLink.value||h.isActive?.value)||!d||h.isActive?.value?P.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:V,colorStyles:T,variantClasses:z}=Gt(E),I=b(()=>d?.disabled.value||e.disabled),Z=g(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),O=b(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function Q(x){I.value||h.isLink.value&&(x.metaKey||x.ctrlKey||x.shiftKey||x.button!==0||n.target==="_blank")||(h.navigate?.(x),d?.toggle())}return mn(h,d?.select),D(()=>{const x=h.isLink.value?"a":e.tag,ee=!!(e.prependIcon||s.prepend),te=!!(e.appendIcon||s.append),A=!!(e.icon&&e.icon!==!0);return Nt(_(x,X({type:x==="a"?void 0:"button",class:["v-btn",d?.selectedClass.value,{"v-btn--active":w.value,"v-btn--block":e.block,"v-btn--disabled":I.value,"v-btn--elevated":Z.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},i.value,a.value,V.value,r.value,l.value,c.value,m.value,u.value,v.value,z.value,e.class],style:[T.value,o.value,f.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:I.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:Q,value:O.value},h.linkProps),{default:()=>[Mt(!0,"v-btn"),!e.icon&&ee&&S("span",{key:"prepend",class:"v-btn__prepend"},[s.prepend?_(ne,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},s.prepend):_(ae,{key:"prepend-icon",icon:e.prependIcon},null)]),S("span",{class:"v-btn__content","data-no-activator":""},[!s.default&&A?_(ae,{key:"content-icon",icon:e.icon},null):_(ne,{key:"content-defaults",disabled:!A,defaults:{VIcon:{icon:e.icon}}},{default:()=>[s.default?.()??$t(e.text)]})]),!e.icon&&te&&S("span",{key:"append",class:"v-btn__append"},[s.append?_(ne,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},s.append):_(ae,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&S("span",{key:"loader",class:"v-btn__loader"},[s.loader?.()??_(nn,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[Cn,!I.value&&e.ripple,"",{center:!!e.icon}]])}),{group:d}}}),re=Symbol("Forwarded refs");function oe(e,t){let n=e;for(;n;){const s=Reflect.getOwnPropertyDescriptor(n,t);if(s)return s;n=Object.getPrototypeOf(n)}}function Hn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return e[re]=n,new Proxy(e,{get(i,a){if(Reflect.has(i,a))return Reflect.get(i,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const r of n)if(r.value&&Reflect.has(r.value,a)){const o=Reflect.get(r.value,a);return typeof o=="function"?o.bind(r.value):o}}},has(i,a){if(Reflect.has(i,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const r of n)if(r.value&&Reflect.has(r.value,a))return!0;return!1},set(i,a,r){if(Reflect.has(i,a))return Reflect.set(i,a,r);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,a))return Reflect.set(o.value,a,r);return!1},getOwnPropertyDescriptor(i,a){const r=Reflect.getOwnPropertyDescriptor(i,a);if(r)return r;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const o of n){if(!o.value)continue;const l=oe(o.value,a)??("_"in o.value?oe(o.value._?.setupState,a):void 0);if(l)return l}for(const o of n){const l=o.value&&o.value[re];if(!l)continue;const c=l.slice();for(;c.length;){const f=c.shift(),m=oe(f.value,a);if(m)return m;const u=f.value&&f.value[re];u&&c.push(...u)}}}}})}export{Vn as $,Xt as A,Ye as B,Dn as C,xe as D,on as E,nn as F,pe as G,qt as H,On as I,rn as J,Ce as K,An as L,zn as M,Mt as N,In as O,Nn as P,Rn as Q,Cn as R,Pn as S,Ot as T,xn as U,Fn as V,_n as W,kn as X,R as Y,En as Z,Bn as _,Ln as a,Wn as a0,Je as b,se as c,j as d,Ke as e,Hn as f,fn as g,vn as h,ye as i,be as j,ae as k,ne as l,wn as m,an as n,Wt as o,$n as p,Dt as q,qe as r,Tn as s,Ue as t,U as u,Xe as v,je as w,Gt as x,Yt as y,Ut as z};
@@ -0,0 +1 @@
1
+ import{cv as q,p as y,g as N,bX as ft,f as Ee,c as b,h as C,cp as Ie,cn as W,cw as we,cx as vt,cy as mt,cz as gt,cd as $,cA as le,j as ue,c9 as ht,bq as Le,m as X,cB as bt,ca as yt,cl as Te,t as g,b as S,d as k,F as pt,aA as M,J as G,az as K,u as D,a as _,n as L,bP as J,bt as Ct,aV as Re,i as wt,bl as Ne,aU as ge,ct as ce,e as $e,bk as St,cC as xt,bE as ze,bD as _t,cD as kt,bZ as Bt,aT as Oe,cE as Vt,cF as Pt,cG as Et,cH as It,K as de,r as Ae,bn as De,be as Lt,b7 as fe,bi as Tt,aC as We,bs as Fe,H as Rt,cI as Se,aW as He,S as Nt,A as $t}from"./main-693Xq5cv.js";const Me=["top","bottom"],zt=["start","end","left","right"];function Ot(e,t){let[n,s]=e.split(" ");return s||(s=q(Me,n)?"start":q(zt,n)?"top":"center"),{side:xe(n,t),align:xe(s,t)}}function xe(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function xn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function _n(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function kn(e){return{side:e.align,align:e.side}}function Bn(e){return q(Me,e.side)?"y":"x"}class R{constructor(t){let{x:n,y:s,width:i,height:a}=t;this.x=n,this.y=s,this.width=i,this.height=a}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Vn(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function Pn(e){return Array.isArray(e)?new R({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function En(e){if(e===document.documentElement)return visualViewport?new R({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale,height:visualViewport.height*visualViewport.scale}):new R({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});{const t=e.getBoundingClientRect();return new R({x:t.x,y:t.y,width:e.clientWidth,height:e.clientHeight})}}function In(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),s=n.transform;if(s){let i,a,r,o,l;if(s.startsWith("matrix3d("))i=s.slice(9,-1).split(/, /),a=Number(i[0]),r=Number(i[5]),o=Number(i[12]),l=Number(i[13]);else if(s.startsWith("matrix("))i=s.slice(7,-1).split(/, /),a=Number(i[0]),r=Number(i[3]),o=Number(i[4]),l=Number(i[5]);else return new R(t);const c=n.transformOrigin,f=t.x-o-(1-a)*parseFloat(c),m=t.y-l-(1-r)*parseFloat(c.slice(c.indexOf(" ")+1)),u=a?t.width/a:e.offsetWidth+1,v=r?t.height/r:e.offsetHeight+1;return new R({x:f,y:m,width:u,height:v})}else return new R(t)}function Ln(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let s;try{s=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof s.finished>"u"&&(s.finished=new Promise(i=>{s.onfinish=()=>{i(s)}})),s}const Tn="cubic-bezier(0.4, 0, 0.2, 1)",Rn="cubic-bezier(0.0, 0, 0.2, 1)",Nn="cubic-bezier(0.4, 0, 1, 1)",j=y({tag:{type:[String,Object,Function],default:"div"}},"tag"),At=y({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),ne=N(!1)({name:"VDefaultsProvider",props:At(),setup(e,t){let{slots:n}=t;const{defaults:s,disabled:i,reset:a,root:r,scoped:o}=ft(e);return Ee(s,{reset:a,root:r,scoped:o,disabled:i}),()=>n.default?.()}}),Dt=y({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Wt(e){return{dimensionStyles:b(()=>{const n={},s=C(e.height),i=C(e.maxHeight),a=C(e.maxWidth),r=C(e.minHeight),o=C(e.minWidth),l=C(e.width);return s!=null&&(n.height=s),i!=null&&(n.maxHeight=i),a!=null&&(n.maxWidth=a),r!=null&&(n.minHeight=r),o!=null&&(n.minWidth=o),l!=null&&(n.width=l),n})}}function he(e){return Ie(()=>{const t=W(e),n=[],s={};if(t.background)if(we(t.background)){if(s.backgroundColor=t.background,!t.text&&vt(t.background)){const i=mt(t.background);if(i.a==null||i.a===1){const a=gt(i);s.color=a,s.caretColor=a}}}else n.push(`bg-${t.background}`);return t.text&&(we(t.text)?(s.color=t.text,s.caretColor=t.text):n.push(`text-${t.text}`)),{colorClasses:n,colorStyles:s}})}function U(e){const{colorClasses:t,colorStyles:n}=he(()=>({text:W(e)}));return{textColorClasses:t,textColorStyles:n}}function se(e){const{colorClasses:t,colorStyles:n}=he(()=>({background:W(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}const be=y({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function ye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{roundedClasses:b(()=>{const s=le(e)?e.value:e.rounded,i=le(e)?e.value:e.tile,a=[];if(s===!0||s==="")a.push(`${t}--rounded`);else if(typeof s=="string"||s===0)for(const r of String(s).split(" "))a.push(`rounded-${r}`);else(i||s===!1)&&a.push("rounded-0");return a})}}const $n=y({transition:{type:null,default:"fade-transition",validator:e=>e!==!0}},"transition"),zn=(e,t)=>{let{slots:n}=t;const{transition:s,disabled:i,group:a,...r}=e,{component:o=a?ht:Le,...l}=ue(s)?s:{};let c;return ue(s)?c=X(l,bt({disabled:i,group:a}),r):c=X({name:i||!s?"":s},r),yt(o,c,n)};function Ft(e,t){if(!Te)return;const n=t.modifiers||{},s=t.value,{handler:i,options:a}=typeof s=="object"?s:{handler:s,options:{}},r=new IntersectionObserver(function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=arguments.length>1?arguments[1]:void 0;const c=e._observe?.[t.instance.$.uid];if(!c)return;const f=o.some(m=>m.isIntersecting);i&&(!n.quiet||c.init)&&(!n.once||f||c.init)&&i(f,o,l),f&&n.once?Ge(e,t):c.init=!0},a);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:r},r.observe(e)}function Ge(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const On={mounted:Ft,unmounted:Ge},je=y({border:[Boolean,Number,String]},"border");function qe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{borderClasses:b(()=>{const s=e.border;return s===!0||s===""?`${t}--border`:typeof s=="string"||s===0?String(s).split(" ").map(i=>`border-${i}`):[]})}}const Xe=y({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Ue(e){return{elevationClasses:g(()=>{const n=le(e)?e.value:e.elevation;return n==null?[]:[`elevation-${n}`]})}}const Ht=["elevated","flat","tonal","outlined","text","plain"];function Mt(e,t){return S(pt,null,[e&&S("span",{key:"overlay",class:k(`${t}__overlay`)},null),S("span",{key:"underlay",class:k(`${t}__underlay`)},null)])}const Ye=y({color:String,variant:{type:String,default:"elevated",validator:e=>Ht.includes(e)}},"variant");function Gt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();const n=g(()=>{const{variant:a}=W(e);return`${t}--variant-${a}`}),{colorClasses:s,colorStyles:i}=he(()=>{const{variant:a,color:r}=W(e);return{[["elevated","flat"].includes(a)?"background":"text"]:r}});return{colorClasses:s,colorStyles:i,variantClasses:n}}const jt=[null,"default","comfortable","compact"],Ke=y({density:{type:String,default:"default",validator:e=>jt.includes(e)}},"density");function Je(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{densityClasses:g(()=>`${t}--density-${e.density}`)}}const Ze=y({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...je(),...G(),...Ke(),...Xe(),...be(),...j(),...M(),...Ye()},"VBtnGroup"),_e=N()({name:"VBtnGroup",props:Ze(),setup(e,t){let{slots:n}=t;const{themeClasses:s}=K(e),{densityClasses:i}=Je(e),{borderClasses:a}=qe(e),{elevationClasses:r}=Ue(e),{roundedClasses:o}=ye(e);Ee({VBtn:{height:g(()=>e.direction==="horizontal"?"auto":null),baseColor:g(()=>e.baseColor),color:g(()=>e.color),density:g(()=>e.density),flat:!0,variant:g(()=>e.variant)}}),D(()=>_(e.tag,{class:k(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided},s.value,a.value,i.value,r.value,o.value,e.class]),style:L(e.style)},n))}}),qt=y({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Xt=y({value:null,disabled:Boolean,selectedClass:String},"group-item");function Ut(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const s=J("useGroupItem");if(!s)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=Ct();Re(Symbol.for(`${t.description}:id`),i);const a=wt(t,null);if(!a){if(!n)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const r=g(()=>e.value),o=b(()=>!!(a.disabled.value||e.disabled));a.register({id:i,value:r,disabled:o},s),Ne(()=>{a.unregister(i)});const l=b(()=>a.isSelected(i)),c=b(()=>a.items.value[0].id===i),f=b(()=>a.items.value[a.items.value.length-1].id===i),m=b(()=>l.value&&[a.selectedClass.value,e.selectedClass]);return ge(l,u=>{s.emit("group:selected",{value:u})},{flush:"sync"}),{id:i,isSelected:l,isFirst:c,isLast:f,toggle:()=>a.select(i,!l.value),select:u=>a.select(i,u),selectedClass:m,value:r,disabled:o,group:a}}function Yt(e,t){let n=!1;const s=ce([]),i=$e(e,"modelValue",[],u=>u==null?[]:Qe(s,_t(u)),u=>{const v=Jt(s,u);return e.multiple?v:v[0]}),a=J("useGroup");function r(u,v){const p=u,d=Symbol.for(`${t.description}:id`),w=kt(d,a?.vnode).indexOf(v);Bt(p.value)==null&&(p.value=w,p.useIndexAsValue=!0),w>-1?s.splice(w,0,p):s.push(p)}function o(u){if(n)return;l();const v=s.findIndex(p=>p.id===u);s.splice(v,1)}function l(){const u=s.find(v=>!v.disabled);u&&e.mandatory==="force"&&!i.value.length&&(i.value=[u.id])}St(()=>{l()}),Ne(()=>{n=!0}),xt(()=>{for(let u=0;u<s.length;u++)s[u].useIndexAsValue&&(s[u].value=u)});function c(u,v){const p=s.find(d=>d.id===u);if(!(v&&p?.disabled))if(e.multiple){const d=i.value.slice(),h=d.findIndex(P=>P===u),w=~h;if(v=v??!w,w&&e.mandatory&&d.length<=1||!w&&e.max!=null&&d.length+1>e.max)return;h<0&&v?d.push(u):h>=0&&!v&&d.splice(h,1),i.value=d}else{const d=i.value.includes(u);if(e.mandatory&&d||!d&&!v)return;i.value=v??!d?[u]:[]}}function f(u){if(e.multiple,i.value.length){const v=i.value[0],p=s.findIndex(w=>w.id===v);let d=(p+u)%s.length,h=s[d];for(;h.disabled&&d!==p;)d=(d+u)%s.length,h=s[d];if(h.disabled)return;i.value=[s[d].id]}else{const v=s.find(p=>!p.disabled);v&&(i.value=[v.id])}}const m={register:r,unregister:o,selected:i,select:c,disabled:g(()=>e.disabled),prev:()=>f(s.length-1),next:()=>f(1),isSelected:u=>i.value.includes(u),selectedClass:g(()=>e.selectedClass),items:g(()=>s),getItemIndex:u=>Kt(s,u)};return Re(t,m),m}function Kt(e,t){const n=Qe(e,[t]);return n.length?e.findIndex(s=>s.id===n[0]):-1}function Qe(e,t){const n=[];return t.forEach(s=>{const i=e.find(r=>ze(s,r.value)),a=e[s];i?.value!=null?n.push(i.id):a?.useIndexAsValue&&n.push(a.id)}),n}function Jt(e,t){const n=[];return t.forEach(s=>{const i=e.findIndex(a=>a.id===s);if(~i){const a=e[i];n.push(a.value!=null?a.value:i)}}),n}const et=Symbol.for("vuetify:v-btn-toggle"),Zt=y({...Ze(),...qt()},"VBtnToggle");N()({name:"VBtnToggle",props:Zt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:s,next:i,prev:a,select:r,selected:o}=Yt(e,et);return D(()=>{const l=_e.filterProps(e);return _(_e,X({class:["v-btn-toggle",e.class]},l,{style:e.style}),{default:()=>[n.default?.({isSelected:s,next:i,prev:a,select:r,selected:o})]})}),{next:i,prev:a,select:r}}});const Qt=["x-small","small","default","large","x-large"],pe=y({size:{type:[String,Number],default:"default"}},"size");function Ce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return Ie(()=>{const n=e.size;let s,i;return q(Qt,n)?s=`${t}--size-${n}`:n&&(i={width:C(n),height:C(n)}),{sizeClasses:s,sizeStyles:i}})}const en=y({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:de,opacity:[String,Number],...G(),...pe(),...j({tag:"i"}),...M()},"VIcon"),ae=N()({name:"VIcon",props:en(),setup(e,t){let{attrs:n,slots:s}=t;const i=Oe(),{themeClasses:a}=Vt(),{iconData:r}=Pt(()=>i.value||e.icon),{sizeClasses:o}=Ce(e),{textColorClasses:l,textColorStyles:c}=U(()=>e.color);return D(()=>{const f=s.default?.();f&&(i.value=Et(f).filter(u=>u.type===It&&u.children&&typeof u.children=="string")[0]?.children);const m=!!(n.onClick||n.onClickOnce);return _(r.value.component,{tag:e.tag,icon:r.value.icon,class:k(["v-icon","notranslate",a.value,o.value,l.value,{"v-icon--clickable":m,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:L([{"--v-icon-opacity":e.opacity},o.value?void 0:{fontSize:C(e.size),height:C(e.size),width:C(e.size)},c.value,e.style]),role:m?"button":void 0,"aria-hidden":!m,tabindex:m?e.disabled?-1:0:void 0},{default:()=>[f]})}),{}}});function tt(e,t){const n=Ae(),s=Oe(!1);if(Te){const i=new IntersectionObserver(a=>{s.value=!!a.find(r=>r.isIntersecting)},t);De(()=>{i.disconnect()}),ge(n,(a,r)=>{r&&(i.unobserve(r),s.value=!1),a&&i.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:s}}const tn=y({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...G(),...pe(),...j({tag:"div"}),...M()},"VProgressCircular"),nn=N()({name:"VProgressCircular",props:tn(),setup(e,t){let{slots:n}=t;const s=20,i=2*Math.PI*s,a=Ae(),{themeClasses:r}=K(e),{sizeClasses:o,sizeStyles:l}=Ce(e),{textColorClasses:c,textColorStyles:f}=U(()=>e.color),{textColorClasses:m,textColorStyles:u}=U(()=>e.bgColor),{intersectionRef:v,isIntersecting:p}=tt(),{resizeRef:d,contentRect:h}=Lt(),w=g(()=>fe(parseFloat(e.modelValue),0,100)),P=g(()=>Number(e.width)),E=g(()=>l.value?Number(e.size):h.value?h.value.width:Math.max(P.value,32)),V=g(()=>s/(1-P.value/E.value)*2),T=g(()=>P.value/E.value*V.value),z=g(()=>C((100-w.value)/100*i));return Tt(()=>{v.value=a.value,d.value=a.value}),D(()=>_(e.tag,{ref:a,class:k(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":p.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},r.value,o.value,c.value,e.class]),style:L([l.value,f.value,e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:w.value},{default:()=>[S("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${V.value} ${V.value}`},[S("circle",{class:k(["v-progress-circular__underlay",m.value]),style:L(u.value),fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":T.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),S("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":T.value,"stroke-dasharray":i,"stroke-dashoffset":z.value},null)]),n.default&&S("div",{class:"v-progress-circular__content"},[n.default({value:w.value})])]})),{}}}),ke={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},nt=y({location:String},"location");function st(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:s}=We();return{locationStyles:b(()=>{if(!e.location)return{};const{side:a,align:r}=Ot(e.location.split(" ").length>1?e.location:`${e.location} center`,s.value);function o(c){return n?n(c):0}const l={};return a!=="center"&&(t?l[ke[a]]=`calc(100% - ${o(a)}px)`:l[a]=0),r!=="center"?t?l[ke[r]]=`calc(100% - ${o(r)}px)`:l[r]=0:(a==="center"?l.top=l.left="50%":l[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",l.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),l})}}const sn=y({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...G(),...nt({location:"top"}),...be(),...j(),...M()},"VProgressLinear"),an=N()({name:"VProgressLinear",props:sn(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const s=$e(e,"modelValue"),{isRtl:i,rtlClasses:a}=We(),{themeClasses:r}=K(e),{locationStyles:o}=st(e),{textColorClasses:l,textColorStyles:c}=U(()=>e.color),{backgroundColorClasses:f,backgroundColorStyles:m}=se(()=>e.bgColor||e.color),{backgroundColorClasses:u,backgroundColorStyles:v}=se(()=>e.bufferColor||e.bgColor||e.color),{backgroundColorClasses:p,backgroundColorStyles:d}=se(()=>e.color),{roundedClasses:h}=ye(e),{intersectionRef:w,isIntersecting:P}=tt(),E=b(()=>parseFloat(e.max)),V=b(()=>parseFloat(e.height)),T=b(()=>fe(parseFloat(e.bufferValue)/E.value*100,0,100)),z=b(()=>fe(parseFloat(s.value)/E.value*100,0,100)),I=b(()=>i.value!==e.reverse),Z=b(()=>e.indeterminate?"fade-transition":"slide-x-transition"),O=Fe&&window.matchMedia?.("(forced-colors: active)").matches;function Q(x){if(!w.value)return;const{left:ee,right:te,width:A}=w.value.getBoundingClientRect(),dt=I.value?A-x.clientX+(te-A):x.clientX-ee;s.value=Math.round(dt/A*E.value)}return D(()=>_(e.tag,{ref:w,class:k(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&P.value,"v-progress-linear--reverse":I.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},h.value,r.value,a.value,e.class]),style:L([{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?C(V.value):0,"--v-progress-linear-height":C(V.value),...e.absolute?o.value:{}},e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(s.value),E.value),onClick:e.clickable&&Q},{default:()=>[e.stream&&S("div",{key:"stream",class:k(["v-progress-linear__stream",l.value]),style:{...c.value,[I.value?"left":"right"]:C(-V.value),borderTop:`${C(V.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${C(V.value/4)})`,width:C(100-T.value,"%"),"--v-progress-linear-stream-to":C(V.value*(I.value?1:-1))}},null),S("div",{class:k(["v-progress-linear__background",O?void 0:f.value]),style:L([m.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}])},null),S("div",{class:k(["v-progress-linear__buffer",O?void 0:u.value]),style:L([v.value,{opacity:parseFloat(e.bufferOpacity),width:C(T.value,"%")}])},null),_(Le,{name:Z.value},{default:()=>[e.indeterminate?S("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(x=>S("div",{key:x,class:k(["v-progress-linear__indeterminate",x,O?void 0:p.value]),style:L(d.value)},null))]):S("div",{class:k(["v-progress-linear__determinate",O?void 0:p.value]),style:L([d.value,{width:C(z.value,"%")}])},null)]}),n.default&&S("div",{class:"v-progress-linear__content"},[n.default({value:z.value,buffer:T.value})])]})),{}}}),rn=y({loading:[Boolean,String]},"loader");function on(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{loaderClasses:g(()=>({[`${t}--loading`]:e.loading}))}}function An(e,t){let{slots:n}=t;return S("div",{class:k(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||_(an,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const ln=["static","relative","fixed","absolute","sticky"],un=y({position:{type:String,validator:e=>ln.includes(e)}},"position");function cn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$();return{positionClasses:g(()=>e.position?`${t}--${e.position}`:void 0)}}function dn(){const e=J("useRoute");return b(()=>e?.proxy?.$route)}function Dn(){return J("useRouter")?.proxy?.$router}function fn(e,t){const n=Rt("RouterLink"),s=g(()=>!!(e.href||e.to)),i=b(()=>s?.value||Se(t,"click")||Se(e,"click"));if(typeof n=="string"||!("useLink"in n)){const f=g(()=>e.href);return{isLink:s,isClickable:i,href:f,linkProps:ce({href:f})}}const a=n.useLink({to:g(()=>e.to||""),replace:g(()=>e.replace)}),r=b(()=>e.to?a:void 0),o=dn(),l=b(()=>r.value?e.exact?o.value?r.value.isExactActive?.value&&ze(r.value.route.value.query,o.value.query):r.value.isExactActive?.value??!1:r.value.isActive?.value??!1:!1),c=b(()=>e.to?r.value?.route.value.href:e.href);return{isLink:s,isClickable:i,isActive:l,route:r.value?.route,navigate:r.value?.navigate,href:c,linkProps:ce({href:c,"aria-current":g(()=>l.value?"page":void 0)})}}const vn=y({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let ie=!1;function Wn(e,t){let n=!1,s,i;Fe&&e?.beforeEach&&(He(()=>{window.addEventListener("popstate",a),s=e.beforeEach((r,o,l)=>{ie?n?t(l):l():setTimeout(()=>n?t(l):l()),ie=!0}),i=e?.afterEach(()=>{ie=!1})}),De(()=>{window.removeEventListener("popstate",a),s?.(),i?.()}));function a(r){r.state?.replaced||(n=!0,setTimeout(()=>n=!1))}}function mn(e,t){ge(()=>e.isActive?.value,n=>{e.isLink.value&&n!=null&&t&&He(()=>{t(n)})},{immediate:!0})}const ve=Symbol("rippleStop"),gn=80;function Be(e,t){e.style.transform=t,e.style.webkitTransform=t}function me(e){return e.constructor.name==="TouchEvent"}function at(e){return e.constructor.name==="KeyboardEvent"}const hn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=0,i=0;if(!at(e)){const m=t.getBoundingClientRect(),u=me(e)?e.touches[e.touches.length-1]:e;s=u.clientX-m.left,i=u.clientY-m.top}let a=0,r=.3;t._ripple?.circle?(r=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((s-a)**2+(i-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const o=`${(t.clientWidth-a*2)/2}px`,l=`${(t.clientHeight-a*2)/2}px`,c=n.center?o:`${s-a}px`,f=n.center?l:`${i-a}px`;return{radius:a,scale:r,x:c,y:f,centerX:o,centerY:l}},Y={show(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t?._ripple?.enabled)return;const s=document.createElement("span"),i=document.createElement("span");s.appendChild(i),s.className="v-ripple__container",n.class&&(s.className+=` ${n.class}`);const{radius:a,scale:r,x:o,y:l,centerX:c,centerY:f}=hn(e,t,n),m=`${a*2}px`;i.className="v-ripple__animation",i.style.width=m,i.style.height=m,t.appendChild(s);const u=window.getComputedStyle(t);u&&u.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),Be(i,`translate(${o}, ${l}) scale3d(${r},${r},${r})`),i.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),Be(i,`translate(${c}, ${f}) scale3d(1,1,1)`)})})},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const s=performance.now()-Number(n.dataset.activated),i=Math.max(250-s,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},i)}};function it(e){return typeof e>"u"||!!e}function F(e){const t={},n=e.currentTarget;if(!(!n?._ripple||n._ripple.touched||e[ve])){if(e[ve]=!0,me(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||at(e),n._ripple.class&&(t.class=n._ripple.class),me(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Y.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},gn)}else Y.show(e,n,t)}}function Ve(e){e[ve]=!0}function B(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{B(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Y.hide(t)}}function rt(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let H=!1;function Pe(e,t){!H&&t.includes(e.key)&&(H=!0,F(e))}function ot(e){H=!1,B(e)}function lt(e){H&&(H=!1,B(e))}function ut(e,t,n){const{value:s,modifiers:i}=t,a=it(s);a||Y.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=i.center,e._ripple.circle=i.circle;const r=ue(s)?s:{};r.class&&(e._ripple.class=r.class);const o=r.keys??["Enter","Space"];if(e._ripple.keyDownHandler=l=>Pe(l,o),a&&!n){if(i.stop){e.addEventListener("touchstart",Ve,{passive:!0}),e.addEventListener("mousedown",Ve);return}e.addEventListener("touchstart",F,{passive:!0}),e.addEventListener("touchend",B,{passive:!0}),e.addEventListener("touchmove",rt,{passive:!0}),e.addEventListener("touchcancel",B),e.addEventListener("mousedown",F),e.addEventListener("mouseup",B),e.addEventListener("mouseleave",B),e.addEventListener("keydown",l=>Pe(l,o)),e.addEventListener("keyup",ot),e.addEventListener("blur",lt),e.addEventListener("dragstart",B,{passive:!0})}else!a&&n&&ct(e)}function ct(e){e.removeEventListener("mousedown",F),e.removeEventListener("touchstart",F),e.removeEventListener("touchend",B),e.removeEventListener("touchmove",rt),e.removeEventListener("touchcancel",B),e.removeEventListener("mouseup",B),e.removeEventListener("mouseleave",B),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",ot),e.removeEventListener("dragstart",B),e.removeEventListener("blur",lt)}function bn(e,t){ut(e,t,!1)}function yn(e){ct(e),delete e._ripple}function pn(e,t){if(t.value===t.oldValue)return;const n=it(t.oldValue);ut(e,t,n)}const Cn={mounted:bn,unmounted:yn,updated:pn},wn=y({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:et},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:de,appendIcon:de,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...je(),...G(),...Ke(),...Dt(),...Xe(),...Xt(),...rn(),...nt(),...un(),...be(),...vn(),...pe(),...j({tag:"button"}),...M(),...Ye({variant:"elevated"})},"VBtn"),Fn=N()({name:"VBtn",props:wn(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:s}=t;const{themeClasses:i}=K(e),{borderClasses:a}=qe(e),{densityClasses:r}=Je(e),{dimensionStyles:o}=Wt(e),{elevationClasses:l}=Ue(e),{loaderClasses:c}=on(e),{locationStyles:f}=st(e),{positionClasses:m}=cn(e),{roundedClasses:u}=ye(e),{sizeClasses:v,sizeStyles:p}=Ce(e),d=Ut(e,e.symbol,!1),h=fn(e,n),w=b(()=>e.active!==void 0?e.active:h.isLink.value?h.isActive?.value:d?.isSelected.value),P=g(()=>w.value?e.activeColor??e.color:e.color),E=b(()=>({color:d?.isSelected.value&&(!h.isLink.value||h.isActive?.value)||!d||h.isActive?.value?P.value??e.baseColor:e.baseColor,variant:e.variant})),{colorClasses:V,colorStyles:T,variantClasses:z}=Gt(E),I=b(()=>d?.disabled.value||e.disabled),Z=g(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),O=b(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function Q(x){I.value||h.isLink.value&&(x.metaKey||x.ctrlKey||x.shiftKey||x.button!==0||n.target==="_blank")||(h.navigate?.(x),d?.toggle())}return mn(h,d?.select),D(()=>{const x=h.isLink.value?"a":e.tag,ee=!!(e.prependIcon||s.prepend),te=!!(e.appendIcon||s.append),A=!!(e.icon&&e.icon!==!0);return Nt(_(x,X({type:x==="a"?void 0:"button",class:["v-btn",d?.selectedClass.value,{"v-btn--active":w.value,"v-btn--block":e.block,"v-btn--disabled":I.value,"v-btn--elevated":Z.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},i.value,a.value,V.value,r.value,l.value,c.value,m.value,u.value,v.value,z.value,e.class],style:[T.value,o.value,f.value,p.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:I.value||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:Q,value:O.value},h.linkProps),{default:()=>[Mt(!0,"v-btn"),!e.icon&&ee&&S("span",{key:"prepend",class:"v-btn__prepend"},[s.prepend?_(ne,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},s.prepend):_(ae,{key:"prepend-icon",icon:e.prependIcon},null)]),S("span",{class:"v-btn__content","data-no-activator":""},[!s.default&&A?_(ae,{key:"content-icon",icon:e.icon},null):_(ne,{key:"content-defaults",disabled:!A,defaults:{VIcon:{icon:e.icon}}},{default:()=>[s.default?.()??$t(e.text)]})]),!e.icon&&te&&S("span",{key:"append",class:"v-btn__append"},[s.append?_(ne,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},s.append):_(ae,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&S("span",{key:"loader",class:"v-btn__loader"},[s.loader?.()??_(nn,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[Cn,!I.value&&e.ripple,"",{center:!!e.icon}]])}),{group:d}}}),re=Symbol("Forwarded refs");function oe(e,t){let n=e;for(;n;){const s=Reflect.getOwnPropertyDescriptor(n,t);if(s)return s;n=Object.getPrototypeOf(n)}}function Hn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];return e[re]=n,new Proxy(e,{get(i,a){if(Reflect.has(i,a))return Reflect.get(i,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const r of n)if(r.value&&Reflect.has(r.value,a)){const o=Reflect.get(r.value,a);return typeof o=="function"?o.bind(r.value):o}}},has(i,a){if(Reflect.has(i,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const r of n)if(r.value&&Reflect.has(r.value,a))return!0;return!1},set(i,a,r){if(Reflect.has(i,a))return Reflect.set(i,a,r);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const o of n)if(o.value&&Reflect.has(o.value,a))return Reflect.set(o.value,a,r);return!1},getOwnPropertyDescriptor(i,a){const r=Reflect.getOwnPropertyDescriptor(i,a);if(r)return r;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const o of n){if(!o.value)continue;const l=oe(o.value,a)??("_"in o.value?oe(o.value._?.setupState,a):void 0);if(l)return l}for(const o of n){const l=o.value&&o.value[re];if(!l)continue;const c=l.slice();for(;c.length;){const f=c.shift(),m=oe(f.value,a);if(m)return m;const u=f.value&&f.value[re];u&&c.push(...u)}}}}})}export{Vn as $,Xt as A,Ye as B,Dn as C,xe as D,on as E,nn as F,pe as G,qt as H,On as I,rn as J,Ce as K,An as L,zn as M,Mt as N,In as O,Nn as P,Rn as Q,Cn as R,Pn as S,Ot as T,xn as U,Fn as V,_n as W,kn as X,R as Y,En as Z,Bn as _,Ln as a,Wn as a0,Je as b,se as c,j as d,Ke as e,Hn as f,fn as g,vn as h,ye as i,be as j,ae as k,ne as l,wn as m,an as n,Wt as o,$n as p,Dt as q,qe as r,Tn as s,Ue as t,U as u,Xe as v,je as w,Gt as x,Yt as y,Ut as z};
@@ -1 +1 @@
1
- import{_ as k,B as G,D as b,q as h,v as A,a as o,w as a,s as i,L as f,b as t,y as m,an as T}from"./main-DXiGoFcV.js";import{G as C,A as v,R as I,a as V,b as D,c as j}from"./relation-chips-Cu4Ch_yZ.js";import{useAdminStore as d}from"./admin-B9Oz5KrR.js";import{c as E}from"./VSelectionControl-BQOk7BCO.js";import{a as w,V as L}from"./VRadioGroup-C454wUvX.js";import"./forwardRefs-Cnj0FOMT.js";import"./VForm-BiZGZD6F.js";import"./VDialog-DSiQFoFP.js";import"./VSelect-DnTo44Ok.js";import"./ssrBoot-Bz995UNv.js";import"./VDivider-CnxeDDcO.js";import"./VCheckboxBtn-C_KP91Hh.js";import"./VTable-D0O9TP1l.js";import"./filter-AqFs16gs.js";import"./confirm-dialog-CId2DpVz.js";const S=["name","userSet","librarySet","exclude"];Object.freeze(S);const y={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(y);const N={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:v,GroupChip:C},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[l=>!!l||"Name is required",l=>!!l&&!this.names.has(l.trim())||"Name already used"]},row:{...y,...f(this.oldRow)}}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(l){this.$emit("change",l)},deep:!0},oldRow:{handler(l){this.row=f(l)},deep:!0}},methods:{...G(d,["nameSet"])},UPDATE_KEYS:S,EMPTY_ROW:y};function H(l,e,c,x,s,g){const p=i("GroupChip"),u=i("AdminRelationPicker");return A(),h("div",null,[o(E,{modelValue:s.row.name,"onUpdate:modelValue":e[0]||(e[0]=r=>s.row.name=r),label:"Group Name",rules:s.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),o(L,{inline:"",label:"Type","model-value":s.row.exclude,"hide-details":"auto","onUpdate:modelValue":e[1]||(e[1]=r=>s.row.exclude=r)},{default:a(()=>[o(w,{value:!1},{label:a(()=>[o(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),o(w,{value:!0},{label:a(()=>[o(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),o(u,{"model-value":s.row.userSet,label:"Users",objs:l.users,"title-key":"username","onUpdate:modelValue":e[2]||(e[2]=r=>s.row.userSet=r)},null,8,["model-value","objs"]),o(u,{"model-value":s.row.librarySet,label:"Libraries",objs:l.normalLibraries,"title-key":"path","onUpdate:modelValue":e[3]||(e[3]=r=>s.row.librarySet=r)},null,8,["model-value","objs"])])}const P=k(N,[["render",H]]),O=180,B={name:"AdminGroupsTab",components:{AdminTable:j,AdminDeleteRowDialog:D,AdminCreateUpdateDialog:V,RelationChips:I,GroupChip:C},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:T(P),GROUP_HELP_HEIGHT:O,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...G(d,["loadTables"]),groupType(l){const e=l.exclude;return{name:e?"Exclude ":"Include",exclude:e}}}},z={class:"tabHeader"},_={id:"groupHelp"},q={id:"groupTable"};function Y(l,e,c,x,s,g){const p=i("AdminCreateUpdateDialog"),u=i("GroupChip"),r=i("RelationChips"),U=i("AdminDeleteRowDialog"),R=i("AdminTable");return A(),h("div",null,[t("header",z,[o(p,{table:"Group","max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),o(R,{"item-title":"name",headers:s.headers,items:l.groups},{"no-data":a(()=>e[0]||(e[0]=[t("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)])),"item.exclude":a(({item:n})=>[o(u,{"group-type":"",item:g.groupType(n),"title-key":"name"},null,8,["item"])]),"item.userSet":a(({item:n})=>[o(r,{pks:n.userSet,objs:l.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":a(({item:n})=>[o(r,{pks:n.librarySet,objs:l.normalLibraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":a(({item:n})=>[o(p,{table:"Group","old-row":n,"max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),o(U,{table:"Group",pk:n.pk,name:n.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),t("div",_,[e[9]||(e[9]=t("h3",null,"Group Logic",-1)),e[10]||(e[10]=t("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),e[11]||(e[11]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Include groups is accessible "),t("em",null,"only"),m(" to users who are in those groups. ")],-1)),e[12]||(e[12]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),e[13]||(e[13]=t("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),t("table",q,[e[8]||(e[8]=t("thead",null,[t("tr",null,[t("th",null,"Library in Group Type"),t("th",null,"Guest"),t("th",null,"User Out of Group"),t("th",null,"User In Group")])],-1)),t("tbody",null,[e[7]||(e[7]=t("tr",null,[t("td",null,"Not in a Group"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See")],-1)),t("tr",null,[t("td",null,[o(u,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),e[1]||(e[1]=t("td",{class:"hidden"},"Hidden",-1)),e[2]||(e[2]=t("td",{class:"hidden"},"Hidden",-1)),e[3]||(e[3]=t("td",{class:"see"},"Can See",-1))]),t("tr",null,[t("td",null,[o(u,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),e[4]||(e[4]=t("td",{class:"hidden"},"Hidden",-1)),e[5]||(e[5]=t("td",{class:"see"},"Can See",-1)),e[6]||(e[6]=t("td",{class:"hidden"},"Hidden",-1))])])])])])}const ne=k(B,[["render",Y],["__scopeId","data-v-84dde1bc"]]);export{ne as default};
1
+ import{_ as k,B as G,D as b,q as h,v as A,a as o,w as a,s as i,L as f,b as t,y as m,an as T}from"./main-693Xq5cv.js";import{G as C,A as v,R as I,a as V,b as D,c as j}from"./relation-chips-BJa3zS3b.js";import{useAdminStore as d}from"./admin-BqW0weON.js";import{c as E}from"./VSelectionControl-DnfftqAx.js";import{a as w,V as L}from"./VRadioGroup-Bv8An5nC.js";import"./forwardRefs-BGipb1NY.js";import"./VForm-g3pClFlH.js";import"./VDialog-CNXFr29h.js";import"./VSelect-5V0L32ek.js";import"./ssrBoot-DYCTuClQ.js";import"./VDivider-CMJgJBsn.js";import"./VCheckboxBtn-C-lQiBqA.js";import"./VTable-DwXTycqf.js";import"./filter-CZcRVxSc.js";import"./confirm-dialog-CxSqELz_.js";const S=["name","userSet","librarySet","exclude"];Object.freeze(S);const y={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(y);const N={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:v,GroupChip:C},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[l=>!!l||"Name is required",l=>!!l&&!this.names.has(l.trim())||"Name already used"]},row:{...y,...f(this.oldRow)}}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(l){this.$emit("change",l)},deep:!0},oldRow:{handler(l){this.row=f(l)},deep:!0}},methods:{...G(d,["nameSet"])},UPDATE_KEYS:S,EMPTY_ROW:y};function H(l,e,c,x,s,g){const p=i("GroupChip"),u=i("AdminRelationPicker");return A(),h("div",null,[o(E,{modelValue:s.row.name,"onUpdate:modelValue":e[0]||(e[0]=r=>s.row.name=r),label:"Group Name",rules:s.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),o(L,{inline:"",label:"Type","model-value":s.row.exclude,"hide-details":"auto","onUpdate:modelValue":e[1]||(e[1]=r=>s.row.exclude=r)},{default:a(()=>[o(w,{value:!1},{label:a(()=>[o(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),o(w,{value:!0},{label:a(()=>[o(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),o(u,{"model-value":s.row.userSet,label:"Users",objs:l.users,"title-key":"username","onUpdate:modelValue":e[2]||(e[2]=r=>s.row.userSet=r)},null,8,["model-value","objs"]),o(u,{"model-value":s.row.librarySet,label:"Libraries",objs:l.normalLibraries,"title-key":"path","onUpdate:modelValue":e[3]||(e[3]=r=>s.row.librarySet=r)},null,8,["model-value","objs"])])}const P=k(N,[["render",H]]),O=180,B={name:"AdminGroupsTab",components:{AdminTable:j,AdminDeleteRowDialog:D,AdminCreateUpdateDialog:V,RelationChips:I,GroupChip:C},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:T(P),GROUP_HELP_HEIGHT:O,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...G(d,["loadTables"]),groupType(l){const e=l.exclude;return{name:e?"Exclude ":"Include",exclude:e}}}},z={class:"tabHeader"},_={id:"groupHelp"},q={id:"groupTable"};function Y(l,e,c,x,s,g){const p=i("AdminCreateUpdateDialog"),u=i("GroupChip"),r=i("RelationChips"),U=i("AdminDeleteRowDialog"),R=i("AdminTable");return A(),h("div",null,[t("header",z,[o(p,{table:"Group","max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),o(R,{"item-title":"name",headers:s.headers,items:l.groups},{"no-data":a(()=>e[0]||(e[0]=[t("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)])),"item.exclude":a(({item:n})=>[o(u,{"group-type":"",item:g.groupType(n),"title-key":"name"},null,8,["item"])]),"item.userSet":a(({item:n})=>[o(r,{pks:n.userSet,objs:l.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":a(({item:n})=>[o(r,{pks:n.librarySet,objs:l.normalLibraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":a(({item:n})=>[o(p,{table:"Group","old-row":n,"max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),o(U,{table:"Group",pk:n.pk,name:n.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),t("div",_,[e[9]||(e[9]=t("h3",null,"Group Logic",-1)),e[10]||(e[10]=t("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),e[11]||(e[11]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Include groups is accessible "),t("em",null,"only"),m(" to users who are in those groups. ")],-1)),e[12]||(e[12]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),e[13]||(e[13]=t("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),t("table",q,[e[8]||(e[8]=t("thead",null,[t("tr",null,[t("th",null,"Library in Group Type"),t("th",null,"Guest"),t("th",null,"User Out of Group"),t("th",null,"User In Group")])],-1)),t("tbody",null,[e[7]||(e[7]=t("tr",null,[t("td",null,"Not in a Group"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See")],-1)),t("tr",null,[t("td",null,[o(u,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),e[1]||(e[1]=t("td",{class:"hidden"},"Hidden",-1)),e[2]||(e[2]=t("td",{class:"hidden"},"Hidden",-1)),e[3]||(e[3]=t("td",{class:"see"},"Can See",-1))]),t("tr",null,[t("td",null,[o(u,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),e[4]||(e[4]=t("td",{class:"hidden"},"Hidden",-1)),e[5]||(e[5]=t("td",{class:"see"},"Can See",-1)),e[6]||(e[6]=t("td",{class:"hidden"},"Hidden",-1))])])])])])}const ne=k(B,[["render",Y],["__scopeId","data-v-84dde1bc"]]);export{ne as default};
@@ -1 +1 @@
1
- import{_ as k,B as G,D as b,q as h,v as A,a as o,w as a,s as i,L as f,b as t,y as m,an as T}from"./main-DXiGoFcV.js";import{G as C,A as v,R as I,a as V,b as D,c as j}from"./relation-chips-Cu4Ch_yZ.js";import{useAdminStore as d}from"./admin-B9Oz5KrR.js";import{c as E}from"./VSelectionControl-BQOk7BCO.js";import{a as w,V as L}from"./VRadioGroup-C454wUvX.js";import"./forwardRefs-Cnj0FOMT.js";import"./VForm-BiZGZD6F.js";import"./VDialog-DSiQFoFP.js";import"./VSelect-DnTo44Ok.js";import"./ssrBoot-Bz995UNv.js";import"./VDivider-CnxeDDcO.js";import"./VCheckboxBtn-C_KP91Hh.js";import"./VTable-D0O9TP1l.js";import"./filter-AqFs16gs.js";import"./confirm-dialog-CId2DpVz.js";const S=["name","userSet","librarySet","exclude"];Object.freeze(S);const y={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(y);const N={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:v,GroupChip:C},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[l=>!!l||"Name is required",l=>!!l&&!this.names.has(l.trim())||"Name already used"]},row:{...y,...f(this.oldRow)}}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(l){this.$emit("change",l)},deep:!0},oldRow:{handler(l){this.row=f(l)},deep:!0}},methods:{...G(d,["nameSet"])},UPDATE_KEYS:S,EMPTY_ROW:y};function H(l,e,c,x,s,g){const p=i("GroupChip"),u=i("AdminRelationPicker");return A(),h("div",null,[o(E,{modelValue:s.row.name,"onUpdate:modelValue":e[0]||(e[0]=r=>s.row.name=r),label:"Group Name",rules:s.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),o(L,{inline:"",label:"Type","model-value":s.row.exclude,"hide-details":"auto","onUpdate:modelValue":e[1]||(e[1]=r=>s.row.exclude=r)},{default:a(()=>[o(w,{value:!1},{label:a(()=>[o(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),o(w,{value:!0},{label:a(()=>[o(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),o(u,{"model-value":s.row.userSet,label:"Users",objs:l.users,"title-key":"username","onUpdate:modelValue":e[2]||(e[2]=r=>s.row.userSet=r)},null,8,["model-value","objs"]),o(u,{"model-value":s.row.librarySet,label:"Libraries",objs:l.normalLibraries,"title-key":"path","onUpdate:modelValue":e[3]||(e[3]=r=>s.row.librarySet=r)},null,8,["model-value","objs"])])}const P=k(N,[["render",H]]),O=180,B={name:"AdminGroupsTab",components:{AdminTable:j,AdminDeleteRowDialog:D,AdminCreateUpdateDialog:V,RelationChips:I,GroupChip:C},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:T(P),GROUP_HELP_HEIGHT:O,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...G(d,["loadTables"]),groupType(l){const e=l.exclude;return{name:e?"Exclude ":"Include",exclude:e}}}},z={class:"tabHeader"},_={id:"groupHelp"},q={id:"groupTable"};function Y(l,e,c,x,s,g){const p=i("AdminCreateUpdateDialog"),u=i("GroupChip"),r=i("RelationChips"),U=i("AdminDeleteRowDialog"),R=i("AdminTable");return A(),h("div",null,[t("header",z,[o(p,{table:"Group","max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),o(R,{"item-title":"name",headers:s.headers,items:l.groups},{"no-data":a(()=>e[0]||(e[0]=[t("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)])),"item.exclude":a(({item:n})=>[o(u,{"group-type":"",item:g.groupType(n),"title-key":"name"},null,8,["item"])]),"item.userSet":a(({item:n})=>[o(r,{pks:n.userSet,objs:l.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":a(({item:n})=>[o(r,{pks:n.librarySet,objs:l.normalLibraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":a(({item:n})=>[o(p,{table:"Group","old-row":n,"max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),o(U,{table:"Group",pk:n.pk,name:n.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),t("div",_,[e[9]||(e[9]=t("h3",null,"Group Logic",-1)),e[10]||(e[10]=t("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),e[11]||(e[11]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Include groups is accessible "),t("em",null,"only"),m(" to users who are in those groups. ")],-1)),e[12]||(e[12]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),e[13]||(e[13]=t("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),t("table",q,[e[8]||(e[8]=t("thead",null,[t("tr",null,[t("th",null,"Library in Group Type"),t("th",null,"Guest"),t("th",null,"User Out of Group"),t("th",null,"User In Group")])],-1)),t("tbody",null,[e[7]||(e[7]=t("tr",null,[t("td",null,"Not in a Group"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See")],-1)),t("tr",null,[t("td",null,[o(u,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),e[1]||(e[1]=t("td",{class:"hidden"},"Hidden",-1)),e[2]||(e[2]=t("td",{class:"hidden"},"Hidden",-1)),e[3]||(e[3]=t("td",{class:"see"},"Can See",-1))]),t("tr",null,[t("td",null,[o(u,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),e[4]||(e[4]=t("td",{class:"hidden"},"Hidden",-1)),e[5]||(e[5]=t("td",{class:"see"},"Can See",-1)),e[6]||(e[6]=t("td",{class:"hidden"},"Hidden",-1))])])])])])}const ne=k(B,[["render",Y],["__scopeId","data-v-84dde1bc"]]);export{ne as default};
1
+ import{_ as k,B as G,D as b,q as h,v as A,a as o,w as a,s as i,L as f,b as t,y as m,an as T}from"./main-693Xq5cv.js";import{G as C,A as v,R as I,a as V,b as D,c as j}from"./relation-chips-BJa3zS3b.js";import{useAdminStore as d}from"./admin-BqW0weON.js";import{c as E}from"./VSelectionControl-DnfftqAx.js";import{a as w,V as L}from"./VRadioGroup-Bv8An5nC.js";import"./forwardRefs-BGipb1NY.js";import"./VForm-g3pClFlH.js";import"./VDialog-CNXFr29h.js";import"./VSelect-5V0L32ek.js";import"./ssrBoot-DYCTuClQ.js";import"./VDivider-CMJgJBsn.js";import"./VCheckboxBtn-C-lQiBqA.js";import"./VTable-DwXTycqf.js";import"./filter-CZcRVxSc.js";import"./confirm-dialog-CxSqELz_.js";const S=["name","userSet","librarySet","exclude"];Object.freeze(S);const y={name:"",userSet:[],librarySet:[],exclude:!1};Object.freeze(y);const N={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:v,GroupChip:C},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[l=>!!l||"Name is required",l=>!!l&&!this.names.has(l.trim())||"Name already used"]},row:{...y,...f(this.oldRow)}}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(l){this.$emit("change",l)},deep:!0},oldRow:{handler(l){this.row=f(l)},deep:!0}},methods:{...G(d,["nameSet"])},UPDATE_KEYS:S,EMPTY_ROW:y};function H(l,e,c,x,s,g){const p=i("GroupChip"),u=i("AdminRelationPicker");return A(),h("div",null,[o(E,{modelValue:s.row.name,"onUpdate:modelValue":e[0]||(e[0]=r=>s.row.name=r),label:"Group Name",rules:s.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),o(L,{inline:"",label:"Type","model-value":s.row.exclude,"hide-details":"auto","onUpdate:modelValue":e[1]||(e[1]=r=>s.row.exclude=r)},{default:a(()=>[o(w,{value:!1},{label:a(()=>[o(p,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),_:1}),o(w,{value:!0},{label:a(()=>[o(p,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),_:1})]),_:1},8,["model-value"]),o(u,{"model-value":s.row.userSet,label:"Users",objs:l.users,"title-key":"username","onUpdate:modelValue":e[2]||(e[2]=r=>s.row.userSet=r)},null,8,["model-value","objs"]),o(u,{"model-value":s.row.librarySet,label:"Libraries",objs:l.normalLibraries,"title-key":"path","onUpdate:modelValue":e[3]||(e[3]=r=>s.row.librarySet=r)},null,8,["model-value","objs"])])}const P=k(N,[["render",H]]),O=180,B={name:"AdminGroupsTab",components:{AdminTable:j,AdminDeleteRowDialog:D,AdminCreateUpdateDialog:V,RelationChips:I,GroupChip:C},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:T(P),GROUP_HELP_HEIGHT:O,headers:[{title:"Name",key:"name",align:"start"},{title:"Type",key:"exclude",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...b(d,["normalLibraries"]),...b(d,{groups:l=>l.groups,users:l=>l.users})},mounted(){this.loadTables(["User","Library","Group"])},methods:{...G(d,["loadTables"]),groupType(l){const e=l.exclude;return{name:e?"Exclude ":"Include",exclude:e}}}},z={class:"tabHeader"},_={id:"groupHelp"},q={id:"groupTable"};function Y(l,e,c,x,s,g){const p=i("AdminCreateUpdateDialog"),u=i("GroupChip"),r=i("RelationChips"),U=i("AdminDeleteRowDialog"),R=i("AdminTable");return A(),h("div",null,[t("header",z,[o(p,{table:"Group","max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),o(R,{"item-title":"name",headers:s.headers,items:l.groups},{"no-data":a(()=>e[0]||(e[0]=[t("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)])),"item.exclude":a(({item:n})=>[o(u,{"group-type":"",item:g.groupType(n),"title-key":"name"},null,8,["item"])]),"item.userSet":a(({item:n})=>[o(r,{pks:n.userSet,objs:l.users,"title-key":"username"},null,8,["pks","objs"])]),"item.librarySet":a(({item:n})=>[o(r,{pks:n.librarySet,objs:l.normalLibraries,"title-key":"path"},null,8,["pks","objs"])]),"item.actions":a(({item:n})=>[o(p,{table:"Group","old-row":n,"max-width":"20em",inputs:s.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),o(U,{table:"Group",pk:n.pk,name:n.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),t("div",_,[e[9]||(e[9]=t("h3",null,"Group Logic",-1)),e[10]||(e[10]=t("p",null," A library in no groups is accessible to every user and non-users if those are enabled. ",-1)),e[11]||(e[11]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Include groups is accessible "),t("em",null,"only"),m(" to users who are in those groups. ")],-1)),e[12]||(e[12]=t("p",null,[m(" A library with "),t("em",null,"any"),m(" Exclude groups is not accessible to Guest users but is acccessable to any logged in users that are not in the Exclude groups. ")],-1)),e[13]||(e[13]=t("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ",-1)),t("table",q,[e[8]||(e[8]=t("thead",null,[t("tr",null,[t("th",null,"Library in Group Type"),t("th",null,"Guest"),t("th",null,"User Out of Group"),t("th",null,"User In Group")])],-1)),t("tbody",null,[e[7]||(e[7]=t("tr",null,[t("td",null,"Not in a Group"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See"),t("td",{class:"see"},"Can See")],-1)),t("tr",null,[t("td",null,[o(u,{item:{name:"Include",exclude:!1},"title-key":"name","group-type":""})]),e[1]||(e[1]=t("td",{class:"hidden"},"Hidden",-1)),e[2]||(e[2]=t("td",{class:"hidden"},"Hidden",-1)),e[3]||(e[3]=t("td",{class:"see"},"Can See",-1))]),t("tr",null,[t("td",null,[o(u,{item:{name:"Exclude",exclude:!0},"title-key":"name","group-type":""})]),e[4]||(e[4]=t("td",{class:"hidden"},"Hidden",-1)),e[5]||(e[5]=t("td",{class:"see"},"Can See",-1)),e[6]||(e[6]=t("td",{class:"hidden"},"Hidden",-1))])])])])])}const ne=k(B,[["render",Y],["__scopeId","data-v-84dde1bc"]]);export{ne as default};
@@ -1 +1 @@
1
- import{_ as h,D as l,x as a,w as s,s as e,E as f,v as i,a as d,b as o,A as p}from"./main-DXiGoFcV.js";import{U as k,A,c as B}from"./unauthorized-C9hDLcp6.js";import"./VDialog-DSiQFoFP.js";import"./forwardRefs-Cnj0FOMT.js";import"./change-password-dialog-DVgKRnnC.js";import"./VForm-BiZGZD6F.js";import"./VSelectionControl-BQOk7BCO.js";import"./admin-B9Oz5KrR.js";import"./ssrBoot-Bz995UNv.js";const c={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(c);const E={name:"HttpError",components:{AppBanner:A,Unauthorized:k},data(){return{}},computed:{...l(f,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=c[this.code];return t||(t="Unknown Error"),t}}},z={id:"httpCode"},x={id:"title"};function S(t,r,U,v,C,n){const u=e("AppBanner"),m=e("router-link"),_=e("Unauthorized");return t.isAuthorized?(i(),a(B,{key:0,id:"httpError"},{default:s(()=>[d(u),o("h1",z,p(n.code),1),o("h1",x,p(n.title),1),d(m,{id:"link",to:{name:"home"}},{default:s(()=>r[0]||(r[0]=[o("h2",null,"Codex Home",-1)])),_:1,__:[0]})]),_:1})):(i(),a(_,{key:1}))}const H=h(E,[["render",S],["__scopeId","data-v-1cd9a888"]]);export{H as default};
1
+ import{_ as h,D as l,x as a,w as s,s as e,E as f,v as i,a as d,b as o,A as p}from"./main-693Xq5cv.js";import{U as k,A,c as B}from"./unauthorized-C7QkM-2L.js";import"./VDialog-CNXFr29h.js";import"./forwardRefs-BGipb1NY.js";import"./change-password-dialog-HgA0CORX.js";import"./VForm-g3pClFlH.js";import"./VSelectionControl-DnfftqAx.js";import"./admin-BqW0weON.js";import"./ssrBoot-DYCTuClQ.js";const c={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(c);const E={name:"HttpError",components:{AppBanner:A,Unauthorized:k},data(){return{}},computed:{...l(f,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=c[this.code];return t||(t="Unknown Error"),t}}},z={id:"httpCode"},x={id:"title"};function S(t,r,U,v,C,n){const u=e("AppBanner"),m=e("router-link"),_=e("Unauthorized");return t.isAuthorized?(i(),a(B,{key:0,id:"httpError"},{default:s(()=>[d(u),o("h1",z,p(n.code),1),o("h1",x,p(n.title),1),d(m,{id:"link",to:{name:"home"}},{default:s(()=>r[0]||(r[0]=[o("h2",null,"Codex Home",-1)])),_:1,__:[0]})]),_:1})):(i(),a(_,{key:1}))}const H=h(E,[["render",S],["__scopeId","data-v-1cd9a888"]]);export{H as default};
@@ -1 +1 @@
1
- import{_ as h,D as l,x as a,w as s,s as e,E as f,v as i,a as d,b as o,A as p}from"./main-DXiGoFcV.js";import{U as k,A,c as B}from"./unauthorized-C9hDLcp6.js";import"./VDialog-DSiQFoFP.js";import"./forwardRefs-Cnj0FOMT.js";import"./change-password-dialog-DVgKRnnC.js";import"./VForm-BiZGZD6F.js";import"./VSelectionControl-BQOk7BCO.js";import"./admin-B9Oz5KrR.js";import"./ssrBoot-Bz995UNv.js";const c={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(c);const E={name:"HttpError",components:{AppBanner:A,Unauthorized:k},data(){return{}},computed:{...l(f,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=c[this.code];return t||(t="Unknown Error"),t}}},z={id:"httpCode"},x={id:"title"};function S(t,r,U,v,C,n){const u=e("AppBanner"),m=e("router-link"),_=e("Unauthorized");return t.isAuthorized?(i(),a(B,{key:0,id:"httpError"},{default:s(()=>[d(u),o("h1",z,p(n.code),1),o("h1",x,p(n.title),1),d(m,{id:"link",to:{name:"home"}},{default:s(()=>r[0]||(r[0]=[o("h2",null,"Codex Home",-1)])),_:1,__:[0]})]),_:1})):(i(),a(_,{key:1}))}const H=h(E,[["render",S],["__scopeId","data-v-1cd9a888"]]);export{H as default};
1
+ import{_ as h,D as l,x as a,w as s,s as e,E as f,v as i,a as d,b as o,A as p}from"./main-693Xq5cv.js";import{U as k,A,c as B}from"./unauthorized-C7QkM-2L.js";import"./VDialog-CNXFr29h.js";import"./forwardRefs-BGipb1NY.js";import"./change-password-dialog-HgA0CORX.js";import"./VForm-g3pClFlH.js";import"./VSelectionControl-DnfftqAx.js";import"./admin-BqW0weON.js";import"./ssrBoot-DYCTuClQ.js";const c={400:"Bad Request",403:"Forbidden",404:"Page Not Found",500:"Server Error"};Object.freeze(c);const E={name:"HttpError",components:{AppBanner:A,Unauthorized:k},data(){return{}},computed:{...l(f,["isAuthorized"]),code:function(){return+this.$route.params.code},title:function(){let t=c[this.code];return t||(t="Unknown Error"),t}}},z={id:"httpCode"},x={id:"title"};function S(t,r,U,v,C,n){const u=e("AppBanner"),m=e("router-link"),_=e("Unauthorized");return t.isAuthorized?(i(),a(B,{key:0,id:"httpError"},{default:s(()=>[d(u),o("h1",z,p(n.code),1),o("h1",x,p(n.title),1),d(m,{id:"link",to:{name:"home"}},{default:s(()=>r[0]||(r[0]=[o("h2",null,"Codex Home",-1)])),_:1,__:[0]})]),_:1})):(i(),a(_,{key:1}))}const H=h(E,[["render",S],["__scopeId","data-v-1cd9a888"]]);export{H as default};
@@ -1 +1 @@
1
- import{p as V,o as P,g as O,e as T,bt as S,t as g,r as k,c as d,m,u as A,a as $,cO as x,j,ca as w,s as b}from"./main-DXiGoFcV.js";import{q as I,u as R,p as y}from"./VDialog-DSiQFoFP.js";import{f as B}from"./forwardRefs-Cnj0FOMT.js";const q=V({id:String,interactive:Boolean,text:String,...P(I({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","persistent"])},"VTooltip"),D=O()({name:"VTooltip",props:q(),emits:{"update:modelValue":t=>!0},setup(t,n){let{slots:a}=n;const e=T(t,"modelValue"),{scopeId:s}=R(),i=S(),o=g(()=>t.id||`v-tooltip-${i}`),r=k(),f=d(()=>t.location.split(" ").length>1?t.location:t.location+" center"),v=d(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),l=g(()=>t.transition!=null?t.transition:e.value?"scale-transition":"fade-transition"),h=d(()=>m({"aria-describedby":o.value},t.activatorProps));return A(()=>{const C=y.filterProps(t);return $(y,m({ref:r,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:o.value},C,{modelValue:e.value,"onUpdate:modelValue":c=>e.value=c,transition:l.value,absolute:!0,location:f.value,origin:v.value,persistent:!0,role:"tooltip",activatorProps:h.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){for(var c=arguments.length,p=new Array(c),u=0;u<c;u++)p[u]=arguments[u];return a.default?.(...p)??t.text}})}),B({},r)}});function F(t,n){const a=typeof t=="string"?b(t):t,e=G(a,n);return{mounted:e,updated:e,unmounted(s){x(null,s)}}}function G(t,n){return function(a,e,s){const i=typeof n=="function"?n(e):n,o=e.value?.text??e.value??i?.text,r=j(e.value)?e.value:{},f=()=>o??a.textContent,v=(s.ctx===e.instance.$?H(s,e.instance.$)?.provides:s.ctx?.provides)??e.instance.$.provides,l=w(t,m(i,r),f);l.appContext=Object.assign(Object.create(null),e.instance.$.appContext,{provides:v}),x(l,a)}}function H(t,n){const a=new Set,e=i=>{for(const o of i){if(!o)continue;if(o===t||o.el&&t.el&&o.el===t.el)return!0;a.add(o);let r;if(o.suspense?r=e([o.ssContent]):Array.isArray(o.children)?r=e(o.children):o.component?.vnode&&(r=e([o.component?.subTree])),r)return r;a.delete(o)}return!1};if(!e([n.subTree]))return n;const s=Array.from(a).reverse();for(const i of s)if(i.component)return i.component;return n}const W=F(D,t=>({activator:"parent",location:t.arg?.replace("-"," "),text:typeof t.value=="boolean"?void 0:t.value}));export{W as T};
1
+ import{p as V,o as P,g as O,e as T,bt as S,t as g,r as k,c as d,m,u as A,a as $,cN as x,j,ca as w,s as b}from"./main-693Xq5cv.js";import{q as I,u as R,p as y}from"./VDialog-CNXFr29h.js";import{f as B}from"./forwardRefs-BGipb1NY.js";const N=V({id:String,interactive:Boolean,text:String,...P(I({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","persistent"])},"VTooltip"),q=O()({name:"VTooltip",props:N(),emits:{"update:modelValue":t=>!0},setup(t,n){let{slots:a}=n;const e=T(t,"modelValue"),{scopeId:s}=R(),i=S(),o=g(()=>t.id||`v-tooltip-${i}`),r=k(),f=d(()=>t.location.split(" ").length>1?t.location:t.location+" center"),v=d(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),l=g(()=>t.transition!=null?t.transition:e.value?"scale-transition":"fade-transition"),h=d(()=>m({"aria-describedby":o.value},t.activatorProps));return A(()=>{const C=y.filterProps(t);return $(y,m({ref:r,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:o.value},C,{modelValue:e.value,"onUpdate:modelValue":c=>e.value=c,transition:l.value,absolute:!0,location:f.value,origin:v.value,persistent:!0,role:"tooltip",activatorProps:h.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){for(var c=arguments.length,p=new Array(c),u=0;u<c;u++)p[u]=arguments[u];return a.default?.(...p)??t.text}})}),B({},r)}});function D(t,n){const a=typeof t=="string"?b(t):t,e=F(a,n);return{mounted:e,updated:e,unmounted(s){x(null,s)}}}function F(t,n){return function(a,e,s){const i=typeof n=="function"?n(e):n,o=e.value?.text??e.value??i?.text,r=j(e.value)?e.value:{},f=()=>o??a.textContent,v=(s.ctx===e.instance.$?G(s,e.instance.$)?.provides:s.ctx?.provides)??e.instance.$.provides,l=w(t,m(i,r),f);l.appContext=Object.assign(Object.create(null),e.instance.$.appContext,{provides:v}),x(l,a)}}function G(t,n){const a=new Set,e=i=>{for(const o of i){if(!o)continue;if(o===t||o.el&&t.el&&o.el===t.el)return!0;a.add(o);let r;if(o.suspense?r=e([o.ssContent]):Array.isArray(o.children)?r=e(o.children):o.component?.vnode&&(r=e([o.component?.subTree])),r)return r;a.delete(o)}return!1};if(!e([n.subTree]))return n;const s=Array.from(a).reverse();for(const i of s)if(i.component)return i.component;return n}const W=D(q,t=>({activator:"parent",location:t.arg?.replace("-"," "),text:typeof t.value=="boolean"?void 0:t.value}));export{W as T};
@@ -1 +1 @@
1
- import{p as V,o as P,g as O,e as T,bt as S,t as g,r as k,c as d,m,u as A,a as $,cO as x,j,ca as w,s as b}from"./main-DXiGoFcV.js";import{q as I,u as R,p as y}from"./VDialog-DSiQFoFP.js";import{f as B}from"./forwardRefs-Cnj0FOMT.js";const q=V({id:String,interactive:Boolean,text:String,...P(I({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","persistent"])},"VTooltip"),D=O()({name:"VTooltip",props:q(),emits:{"update:modelValue":t=>!0},setup(t,n){let{slots:a}=n;const e=T(t,"modelValue"),{scopeId:s}=R(),i=S(),o=g(()=>t.id||`v-tooltip-${i}`),r=k(),f=d(()=>t.location.split(" ").length>1?t.location:t.location+" center"),v=d(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),l=g(()=>t.transition!=null?t.transition:e.value?"scale-transition":"fade-transition"),h=d(()=>m({"aria-describedby":o.value},t.activatorProps));return A(()=>{const C=y.filterProps(t);return $(y,m({ref:r,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:o.value},C,{modelValue:e.value,"onUpdate:modelValue":c=>e.value=c,transition:l.value,absolute:!0,location:f.value,origin:v.value,persistent:!0,role:"tooltip",activatorProps:h.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){for(var c=arguments.length,p=new Array(c),u=0;u<c;u++)p[u]=arguments[u];return a.default?.(...p)??t.text}})}),B({},r)}});function F(t,n){const a=typeof t=="string"?b(t):t,e=G(a,n);return{mounted:e,updated:e,unmounted(s){x(null,s)}}}function G(t,n){return function(a,e,s){const i=typeof n=="function"?n(e):n,o=e.value?.text??e.value??i?.text,r=j(e.value)?e.value:{},f=()=>o??a.textContent,v=(s.ctx===e.instance.$?H(s,e.instance.$)?.provides:s.ctx?.provides)??e.instance.$.provides,l=w(t,m(i,r),f);l.appContext=Object.assign(Object.create(null),e.instance.$.appContext,{provides:v}),x(l,a)}}function H(t,n){const a=new Set,e=i=>{for(const o of i){if(!o)continue;if(o===t||o.el&&t.el&&o.el===t.el)return!0;a.add(o);let r;if(o.suspense?r=e([o.ssContent]):Array.isArray(o.children)?r=e(o.children):o.component?.vnode&&(r=e([o.component?.subTree])),r)return r;a.delete(o)}return!1};if(!e([n.subTree]))return n;const s=Array.from(a).reverse();for(const i of s)if(i.component)return i.component;return n}const W=F(D,t=>({activator:"parent",location:t.arg?.replace("-"," "),text:typeof t.value=="boolean"?void 0:t.value}));export{W as T};
1
+ import{p as V,o as P,g as O,e as T,bt as S,t as g,r as k,c as d,m,u as A,a as $,cN as x,j,ca as w,s as b}from"./main-693Xq5cv.js";import{q as I,u as R,p as y}from"./VDialog-CNXFr29h.js";import{f as B}from"./forwardRefs-BGipb1NY.js";const N=V({id:String,interactive:Boolean,text:String,...P(I({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","persistent"])},"VTooltip"),q=O()({name:"VTooltip",props:N(),emits:{"update:modelValue":t=>!0},setup(t,n){let{slots:a}=n;const e=T(t,"modelValue"),{scopeId:s}=R(),i=S(),o=g(()=>t.id||`v-tooltip-${i}`),r=k(),f=d(()=>t.location.split(" ").length>1?t.location:t.location+" center"),v=d(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),l=g(()=>t.transition!=null?t.transition:e.value?"scale-transition":"fade-transition"),h=d(()=>m({"aria-describedby":o.value},t.activatorProps));return A(()=>{const C=y.filterProps(t);return $(y,m({ref:r,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:o.value},C,{modelValue:e.value,"onUpdate:modelValue":c=>e.value=c,transition:l.value,absolute:!0,location:f.value,origin:v.value,persistent:!0,role:"tooltip",activatorProps:h.value,_disableGlobalStack:!0},s),{activator:a.activator,default:function(){for(var c=arguments.length,p=new Array(c),u=0;u<c;u++)p[u]=arguments[u];return a.default?.(...p)??t.text}})}),B({},r)}});function D(t,n){const a=typeof t=="string"?b(t):t,e=F(a,n);return{mounted:e,updated:e,unmounted(s){x(null,s)}}}function F(t,n){return function(a,e,s){const i=typeof n=="function"?n(e):n,o=e.value?.text??e.value??i?.text,r=j(e.value)?e.value:{},f=()=>o??a.textContent,v=(s.ctx===e.instance.$?G(s,e.instance.$)?.provides:s.ctx?.provides)??e.instance.$.provides,l=w(t,m(i,r),f);l.appContext=Object.assign(Object.create(null),e.instance.$.appContext,{provides:v}),x(l,a)}}function G(t,n){const a=new Set,e=i=>{for(const o of i){if(!o)continue;if(o===t||o.el&&t.el&&o.el===t.el)return!0;a.add(o);let r;if(o.suspense?r=e([o.ssContent]):Array.isArray(o.children)?r=e(o.children):o.component?.vnode&&(r=e([o.component?.subTree])),r)return r;a.delete(o)}return!1};if(!e([n.subTree]))return n;const s=Array.from(a).reverse();for(const i of s)if(i.component)return i.component;return n}const W=D(q,t=>({activator:"parent",location:t.arg?.replace("-"," "),text:typeof t.value=="boolean"?void 0:t.value}));export{W as T};