codex 1.7.1__py3-none-any.whl → 1.7.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (562) hide show
  1. codex/choices.py +0 -10
  2. codex/serializers/browser/choices.py +9 -11
  3. codex/serializers/browser/metadata.py +1 -1
  4. codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js +1 -0
  5. codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js.br +0 -0
  6. codex/static_root/assets/VCheckbox-DLMzIII1.1ff8fc2d9a21.js.gz +0 -0
  7. codex/static_root/assets/VCheckbox-DLMzIII1.js +1 -0
  8. codex/static_root/assets/VCheckbox-DLMzIII1.js.br +0 -0
  9. codex/static_root/assets/VCheckbox-DLMzIII1.js.gz +0 -0
  10. codex/static_root/assets/{VCheckboxBtn-D5jbIiqO.921713d268ba.js → VCheckboxBtn-BzoQl8XC.094679a3624b.js} +1 -1
  11. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.094679a3624b.js.br +0 -0
  12. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.094679a3624b.js.gz +0 -0
  13. codex/static_root/assets/{VCheckboxBtn-D5jbIiqO.js → VCheckboxBtn-BzoQl8XC.js} +1 -1
  14. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.js.br +0 -0
  15. codex/static_root/assets/VCheckboxBtn-BzoQl8XC.js.gz +0 -0
  16. codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js +1 -0
  17. codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js.br +0 -0
  18. codex/static_root/assets/VCombobox-CBY8K5CP.fcf2221a9edd.js.gz +0 -0
  19. codex/static_root/assets/VCombobox-CBY8K5CP.js +1 -0
  20. codex/static_root/assets/VCombobox-CBY8K5CP.js.br +0 -0
  21. codex/static_root/assets/VCombobox-CBY8K5CP.js.gz +0 -0
  22. codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css +1 -0
  23. codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css.br +0 -0
  24. codex/static_root/assets/VDialog-DXQz0Ylp.7b23d86dbd0d.css.gz +0 -0
  25. codex/static_root/assets/VDialog-DXQz0Ylp.css +1 -0
  26. codex/static_root/assets/VDialog-DXQz0Ylp.css.br +0 -0
  27. codex/static_root/assets/VDialog-DXQz0Ylp.css.gz +0 -0
  28. codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js +1 -0
  29. codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js.br +0 -0
  30. codex/static_root/assets/VDialog-Db4tJYqR.e21a79a5030e.js.gz +0 -0
  31. codex/static_root/assets/VDialog-Db4tJYqR.js +1 -0
  32. codex/static_root/assets/VDialog-Db4tJYqR.js.br +0 -0
  33. codex/static_root/assets/VDialog-Db4tJYqR.js.gz +0 -0
  34. codex/static_root/assets/{VExpansionPanels-BLAGU-dj.e244f3902cf9.js → VExpansionPanels-DN4yGbOt.163e59e38865.js} +1 -1
  35. codex/static_root/assets/VExpansionPanels-DN4yGbOt.163e59e38865.js.br +0 -0
  36. codex/static_root/assets/VExpansionPanels-DN4yGbOt.163e59e38865.js.gz +0 -0
  37. codex/static_root/assets/{VExpansionPanels-BLAGU-dj.js → VExpansionPanels-DN4yGbOt.js} +1 -1
  38. codex/static_root/assets/VExpansionPanels-DN4yGbOt.js.br +0 -0
  39. codex/static_root/assets/VExpansionPanels-DN4yGbOt.js.gz +0 -0
  40. codex/static_root/assets/{VRadioGroup-Bnt5BbmK.826e1c2d9134.js → VRadioGroup-D2-PWEfs.ce7644863c25.js} +1 -1
  41. codex/static_root/assets/VRadioGroup-D2-PWEfs.ce7644863c25.js.br +0 -0
  42. codex/static_root/assets/VRadioGroup-D2-PWEfs.ce7644863c25.js.gz +0 -0
  43. codex/static_root/assets/{VRadioGroup-Bnt5BbmK.js → VRadioGroup-D2-PWEfs.js} +1 -1
  44. codex/static_root/assets/VRadioGroup-D2-PWEfs.js.br +0 -0
  45. codex/static_root/assets/VRadioGroup-D2-PWEfs.js.gz +0 -0
  46. codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js +1 -0
  47. codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js.br +0 -0
  48. codex/static_root/assets/VSelect-DqXJ23Pc.a1360cbed050.js.gz +0 -0
  49. codex/static_root/assets/VSelect-DqXJ23Pc.js +1 -0
  50. codex/static_root/assets/VSelect-DqXJ23Pc.js.br +0 -0
  51. codex/static_root/assets/VSelect-DqXJ23Pc.js.gz +0 -0
  52. codex/static_root/assets/{VSelectionControl-CrzLF2bD.965af5336c62.js → VSelectionControl-CxhDNufT.dd7ca99567fc.js} +1 -1
  53. codex/static_root/assets/VSelectionControl-CxhDNufT.dd7ca99567fc.js.br +0 -0
  54. codex/static_root/assets/VSelectionControl-CxhDNufT.dd7ca99567fc.js.gz +0 -0
  55. codex/static_root/assets/{VSelectionControl-CrzLF2bD.js → VSelectionControl-CxhDNufT.js} +1 -1
  56. codex/static_root/assets/VSelectionControl-CxhDNufT.js.br +0 -0
  57. codex/static_root/assets/VSelectionControl-CxhDNufT.js.gz +0 -0
  58. codex/static_root/assets/{VSlideGroup-ZRALPG67.9807cdc6b330.js → VSlideGroup-DRbthp6q.7365c5542d47.js} +1 -1
  59. codex/static_root/assets/VSlideGroup-DRbthp6q.7365c5542d47.js.br +0 -0
  60. codex/static_root/assets/VSlideGroup-DRbthp6q.7365c5542d47.js.gz +0 -0
  61. codex/static_root/assets/{VSlideGroup-ZRALPG67.js → VSlideGroup-DRbthp6q.js} +1 -1
  62. codex/static_root/assets/VSlideGroup-DRbthp6q.js.br +0 -0
  63. codex/static_root/assets/VSlideGroup-DRbthp6q.js.gz +0 -0
  64. codex/static_root/assets/{VTable-Ci8_04Au.1382ab272e40.js → VTable-Cbq-yJos.c884706cac21.js} +1 -1
  65. codex/static_root/assets/VTable-Cbq-yJos.c884706cac21.js.br +0 -0
  66. codex/static_root/assets/VTable-Cbq-yJos.c884706cac21.js.gz +0 -0
  67. codex/static_root/assets/{VTable-Ci8_04Au.js → VTable-Cbq-yJos.js} +1 -1
  68. codex/static_root/assets/VTable-Cbq-yJos.js.br +0 -0
  69. codex/static_root/assets/VTable-Cbq-yJos.js.gz +0 -0
  70. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css +1 -0
  71. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.br +0 -0
  72. codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.gz +0 -0
  73. codex/static_root/assets/VTextField-Crc3gdNh.css +1 -0
  74. codex/static_root/assets/VTextField-Crc3gdNh.css.br +0 -0
  75. codex/static_root/assets/VTextField-Crc3gdNh.css.gz +0 -0
  76. codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js +1 -0
  77. codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js.br +0 -0
  78. codex/static_root/assets/VTextField-X5yAw35c.155e276dd747.js.gz +0 -0
  79. codex/static_root/assets/VTextField-X5yAw35c.js +1 -0
  80. codex/static_root/assets/VTextField-X5yAw35c.js.br +0 -0
  81. codex/static_root/assets/VTextField-X5yAw35c.js.gz +0 -0
  82. codex/static_root/assets/{VWindowItem-CGBsUHpV.7c57d79cf74a.js → VWindowItem-CRqhVh-9.cd73d01e0591.js} +1 -1
  83. codex/static_root/assets/VWindowItem-CRqhVh-9.cd73d01e0591.js.br +0 -0
  84. codex/static_root/assets/VWindowItem-CRqhVh-9.cd73d01e0591.js.gz +0 -0
  85. codex/static_root/assets/{VWindowItem-CGBsUHpV.js → VWindowItem-CRqhVh-9.js} +1 -1
  86. codex/static_root/assets/VWindowItem-CRqhVh-9.js.br +0 -0
  87. codex/static_root/assets/VWindowItem-CRqhVh-9.js.gz +0 -0
  88. codex/static_root/assets/{admin-BTXUbxw5.23e0d3602f29.js → admin-BFvQwinN.6cfff21f780a.js} +1 -1
  89. codex/static_root/assets/admin-BFvQwinN.6cfff21f780a.js.br +0 -0
  90. codex/static_root/assets/admin-BFvQwinN.6cfff21f780a.js.gz +0 -0
  91. codex/static_root/assets/{admin-BTXUbxw5.js → admin-BFvQwinN.js} +1 -1
  92. codex/static_root/assets/admin-BFvQwinN.js.br +0 -0
  93. codex/static_root/assets/admin-BFvQwinN.js.gz +0 -0
  94. codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js +1 -0
  95. codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js.br +0 -0
  96. codex/static_root/assets/admin-menu-Jfmp_Yd8.39fa7a18b3b4.js.gz +0 -0
  97. codex/static_root/assets/admin-menu-Jfmp_Yd8.js +1 -0
  98. codex/static_root/assets/admin-menu-Jfmp_Yd8.js.br +0 -0
  99. codex/static_root/assets/admin-menu-Jfmp_Yd8.js.gz +0 -0
  100. codex/static_root/assets/{admin-settings-button-progress-DSOZWzf1.fad596375b9b.js → admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js} +1 -1
  101. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js.br +0 -0
  102. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.cbf73c71330d.js.gz +0 -0
  103. codex/static_root/assets/{admin-settings-button-progress-DSOZWzf1.js → admin-settings-button-progress-BAk-B1sR.js} +1 -1
  104. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.js.br +0 -0
  105. codex/static_root/assets/admin-settings-button-progress-BAk-B1sR.js.gz +0 -0
  106. codex/static_root/assets/browser-CctlSJji.css +1 -0
  107. codex/static_root/assets/browser-CctlSJji.css.br +0 -0
  108. codex/static_root/assets/browser-CctlSJji.css.gz +0 -0
  109. codex/static_root/assets/browser-CctlSJji.d42d796476d2.css +1 -0
  110. codex/static_root/assets/browser-CctlSJji.d42d796476d2.css.br +0 -0
  111. codex/static_root/assets/browser-CctlSJji.d42d796476d2.css.gz +0 -0
  112. codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js +1 -0
  113. codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js.br +0 -0
  114. codex/static_root/assets/browser-DJnEeVHz.a78c47516b08.js.gz +0 -0
  115. codex/static_root/assets/browser-DJnEeVHz.js +1 -0
  116. codex/static_root/assets/browser-DJnEeVHz.js.br +0 -0
  117. codex/static_root/assets/browser-DJnEeVHz.js.gz +0 -0
  118. codex/static_root/assets/change-password-dialog-C_EOKOn9.a30e68c6e303.css +1 -0
  119. codex/static_root/assets/change-password-dialog-C_EOKOn9.a30e68c6e303.css.br +0 -0
  120. codex/static_root/assets/change-password-dialog-C_EOKOn9.a30e68c6e303.css.gz +0 -0
  121. codex/static_root/assets/change-password-dialog-C_EOKOn9.css +1 -0
  122. codex/static_root/assets/change-password-dialog-C_EOKOn9.css.br +0 -0
  123. codex/static_root/assets/change-password-dialog-C_EOKOn9.css.gz +0 -0
  124. codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js +1 -0
  125. codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js.br +0 -0
  126. codex/static_root/assets/change-password-dialog-DJtOQw7K.be7fa5ec653d.js.gz +0 -0
  127. codex/static_root/assets/change-password-dialog-DJtOQw7K.js +1 -0
  128. codex/static_root/assets/change-password-dialog-DJtOQw7K.js.br +0 -0
  129. codex/static_root/assets/change-password-dialog-DJtOQw7K.js.gz +0 -0
  130. codex/static_root/assets/confirm-dialog-54rblwf7.9b5915b112c0.css +1 -0
  131. codex/static_root/assets/confirm-dialog-54rblwf7.9b5915b112c0.css.br +0 -0
  132. codex/static_root/assets/confirm-dialog-54rblwf7.css +1 -0
  133. codex/static_root/assets/confirm-dialog-54rblwf7.css.br +0 -0
  134. codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js +1 -0
  135. codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js.br +0 -0
  136. codex/static_root/assets/confirm-dialog-CME4gKSZ.1606233e784c.js.gz +0 -0
  137. codex/static_root/assets/confirm-dialog-CME4gKSZ.js +1 -0
  138. codex/static_root/assets/confirm-dialog-CME4gKSZ.js.br +0 -0
  139. codex/static_root/assets/confirm-dialog-CME4gKSZ.js.gz +0 -0
  140. codex/static_root/assets/{datetime-column-BN2Ulei5.a31061d3729c.js → datetime-column-D_F30OLW.09cdce0ef96e.js} +1 -1
  141. codex/static_root/assets/datetime-column-D_F30OLW.09cdce0ef96e.js.br +2 -0
  142. codex/static_root/assets/datetime-column-D_F30OLW.09cdce0ef96e.js.gz +0 -0
  143. codex/static_root/assets/{datetime-column-BN2Ulei5.js → datetime-column-D_F30OLW.js} +1 -1
  144. codex/static_root/assets/datetime-column-D_F30OLW.js.br +2 -0
  145. codex/static_root/assets/datetime-column-D_F30OLW.js.gz +0 -0
  146. codex/static_root/assets/{filter-CnO_WiBE.4044b9091aae.js → filter-ud5mPZpn.0f0a537959aa.js} +1 -1
  147. codex/static_root/assets/filter-ud5mPZpn.0f0a537959aa.js.br +0 -0
  148. codex/static_root/assets/filter-ud5mPZpn.0f0a537959aa.js.gz +0 -0
  149. codex/static_root/assets/{filter-CnO_WiBE.js → filter-ud5mPZpn.js} +1 -1
  150. codex/static_root/assets/filter-ud5mPZpn.js.br +0 -0
  151. codex/static_root/assets/filter-ud5mPZpn.js.gz +0 -0
  152. codex/static_root/assets/{flag-tab-C5NP3j6O.1c692a00884d.js → flag-tab-k2g6u_vi.3e1da9318af9.js} +1 -1
  153. codex/static_root/assets/flag-tab-k2g6u_vi.3e1da9318af9.js.br +0 -0
  154. codex/static_root/assets/flag-tab-k2g6u_vi.3e1da9318af9.js.gz +0 -0
  155. codex/static_root/assets/{flag-tab-C5NP3j6O.js → flag-tab-k2g6u_vi.js} +1 -1
  156. codex/static_root/assets/flag-tab-k2g6u_vi.js.br +0 -0
  157. codex/static_root/assets/flag-tab-k2g6u_vi.js.gz +0 -0
  158. codex/static_root/assets/{group-tab-Cq4QjmHS.a9d15dac0289.js → group-tab-C6Ykf03Z.ff0cc204013a.js} +1 -1
  159. codex/static_root/assets/group-tab-C6Ykf03Z.ff0cc204013a.js.br +0 -0
  160. codex/static_root/assets/group-tab-C6Ykf03Z.ff0cc204013a.js.gz +0 -0
  161. codex/static_root/assets/{group-tab-Cq4QjmHS.js → group-tab-C6Ykf03Z.js} +1 -1
  162. codex/static_root/assets/group-tab-C6Ykf03Z.js.br +0 -0
  163. codex/static_root/assets/group-tab-C6Ykf03Z.js.gz +0 -0
  164. codex/static_root/assets/http-error-Ctcws1xe.cfd378a792d2.css +1 -0
  165. codex/static_root/assets/{http-error-DKulXuTl.95e42988d5d5.css.br → http-error-Ctcws1xe.cfd378a792d2.css.br} +0 -0
  166. codex/static_root/assets/http-error-Ctcws1xe.cfd378a792d2.css.gz +0 -0
  167. codex/static_root/assets/http-error-Ctcws1xe.css +1 -0
  168. codex/static_root/assets/{http-error-DKulXuTl.css.br → http-error-Ctcws1xe.css.br} +0 -0
  169. codex/static_root/assets/http-error-Ctcws1xe.css.gz +0 -0
  170. codex/static_root/assets/{http-error-DGFbgQC5.da17e7b6d980.js → http-error-DQBHK8v5.aea50b1327fd.js} +1 -1
  171. codex/static_root/assets/http-error-DQBHK8v5.aea50b1327fd.js.br +0 -0
  172. codex/static_root/assets/http-error-DQBHK8v5.aea50b1327fd.js.gz +0 -0
  173. codex/static_root/assets/{http-error-DGFbgQC5.js → http-error-DQBHK8v5.js} +1 -1
  174. codex/static_root/assets/http-error-DQBHK8v5.js.br +0 -0
  175. codex/static_root/assets/http-error-DQBHK8v5.js.gz +0 -0
  176. codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js +1 -0
  177. codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js.br +0 -0
  178. codex/static_root/assets/index-ClGiHwWc.0717bacf5135.js.gz +0 -0
  179. codex/static_root/assets/index-ClGiHwWc.js +1 -0
  180. codex/static_root/assets/index-ClGiHwWc.js.br +0 -0
  181. codex/static_root/assets/index-ClGiHwWc.js.gz +0 -0
  182. codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js +1 -0
  183. codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js.br +0 -0
  184. codex/static_root/assets/library-tab-BpinbqAu.53fa2625e727.js.gz +0 -0
  185. codex/static_root/assets/library-tab-BpinbqAu.js +1 -0
  186. codex/static_root/assets/library-tab-BpinbqAu.js.br +0 -0
  187. codex/static_root/assets/library-tab-BpinbqAu.js.gz +0 -0
  188. codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css +1 -0
  189. codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css.br +0 -0
  190. codex/static_root/assets/library-tab-Cat0MAK5.5911f022188e.css.gz +0 -0
  191. codex/static_root/assets/library-tab-Cat0MAK5.css +1 -0
  192. codex/static_root/assets/library-tab-Cat0MAK5.css.br +0 -0
  193. codex/static_root/assets/library-tab-Cat0MAK5.css.gz +0 -0
  194. codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js +35 -0
  195. codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js.br +0 -0
  196. codex/static_root/assets/main-BVKrDunc.1c6f8cdc3afb.js.gz +0 -0
  197. codex/static_root/assets/main-BVKrDunc.js +35 -0
  198. codex/static_root/assets/main-BVKrDunc.js.br +0 -0
  199. codex/static_root/assets/main-BVKrDunc.js.gz +0 -0
  200. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js +1 -0
  201. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js.br +0 -0
  202. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.f2e95b19621c.js.gz +0 -0
  203. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js +1 -0
  204. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js.br +0 -0
  205. codex/static_root/assets/pager-full-pdf-C1ZSyXfG.js.gz +0 -0
  206. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css +1 -0
  207. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css.br +0 -0
  208. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.546121fa7a0d.css.gz +0 -0
  209. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css +1 -0
  210. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css.br +0 -0
  211. codex/static_root/assets/pagination-toolbar-Cx_9nh6D.css.gz +0 -0
  212. codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js +1 -0
  213. codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js.br +0 -0
  214. codex/static_root/assets/pagination-toolbar-Diad0EdD.140911bf86af.js.gz +0 -0
  215. codex/static_root/assets/pagination-toolbar-Diad0EdD.js +1 -0
  216. codex/static_root/assets/pagination-toolbar-Diad0EdD.js.br +0 -0
  217. codex/static_root/assets/pagination-toolbar-Diad0EdD.js.gz +0 -0
  218. codex/static_root/assets/{pdf-doc-6j4uJzw7.59963079f1ec.js → pdf-doc-b-GyNR6z.c9d18f0d36ed.js} +1 -1
  219. codex/static_root/assets/pdf-doc-b-GyNR6z.c9d18f0d36ed.js.br +0 -0
  220. codex/static_root/assets/pdf-doc-b-GyNR6z.c9d18f0d36ed.js.gz +0 -0
  221. codex/static_root/assets/{pdf-doc-6j4uJzw7.js → pdf-doc-b-GyNR6z.js} +1 -1
  222. codex/static_root/assets/pdf-doc-b-GyNR6z.js.br +0 -0
  223. codex/static_root/assets/pdf-doc-b-GyNR6z.js.gz +0 -0
  224. codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js +2 -0
  225. codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js.br +0 -0
  226. codex/static_root/assets/reader-2up6WEuE.c56ad81d14c6.js.gz +0 -0
  227. codex/static_root/assets/reader-2up6WEuE.js +2 -0
  228. codex/static_root/assets/reader-2up6WEuE.js.br +0 -0
  229. codex/static_root/assets/reader-2up6WEuE.js.gz +0 -0
  230. codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css +1 -0
  231. codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css.br +0 -0
  232. codex/static_root/assets/reader-Dd2KmdCN.115d4bfe9280.css.gz +0 -0
  233. codex/static_root/assets/reader-Dd2KmdCN.css +1 -0
  234. codex/static_root/assets/reader-Dd2KmdCN.css.br +0 -0
  235. codex/static_root/assets/reader-Dd2KmdCN.css.gz +0 -0
  236. codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js +1 -0
  237. codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js.br +0 -0
  238. codex/static_root/assets/relation-chips-piYv1IcD.f8a2ae79de89.js.gz +0 -0
  239. codex/static_root/assets/relation-chips-piYv1IcD.js +1 -0
  240. codex/static_root/assets/relation-chips-piYv1IcD.js.br +0 -0
  241. codex/static_root/assets/relation-chips-piYv1IcD.js.gz +0 -0
  242. codex/static_root/assets/{settings-drawer-lRimDTyf.054f1f057cee.js → settings-drawer-yVoY-WCS.1240cc47a246.js} +2 -2
  243. codex/static_root/assets/settings-drawer-yVoY-WCS.1240cc47a246.js.br +0 -0
  244. codex/static_root/assets/settings-drawer-yVoY-WCS.1240cc47a246.js.gz +0 -0
  245. codex/static_root/assets/{settings-drawer-lRimDTyf.js → settings-drawer-yVoY-WCS.js} +2 -2
  246. codex/static_root/assets/settings-drawer-yVoY-WCS.js.br +0 -0
  247. codex/static_root/assets/settings-drawer-yVoY-WCS.js.gz +0 -0
  248. codex/static_root/assets/{stats-tab-BAYTqQNg.5f715428c394.css → stats-tab-BlXGStge.9fdb0106124d.css} +1 -1
  249. codex/static_root/assets/stats-tab-BlXGStge.9fdb0106124d.css.br +0 -0
  250. codex/static_root/assets/stats-tab-BlXGStge.9fdb0106124d.css.gz +0 -0
  251. codex/static_root/assets/{stats-tab-BAYTqQNg.css → stats-tab-BlXGStge.css} +1 -1
  252. codex/static_root/assets/stats-tab-BlXGStge.css.br +0 -0
  253. codex/static_root/assets/stats-tab-BlXGStge.css.gz +0 -0
  254. codex/static_root/assets/{stats-tab-Cyli0TxY.f9af7d3387d9.js → stats-tab-bqSPLvTp.05106cb03ef0.js} +1 -1
  255. codex/static_root/assets/stats-tab-bqSPLvTp.05106cb03ef0.js.br +0 -0
  256. codex/static_root/assets/stats-tab-bqSPLvTp.05106cb03ef0.js.gz +0 -0
  257. codex/static_root/assets/{stats-tab-Cyli0TxY.js → stats-tab-bqSPLvTp.js} +1 -1
  258. codex/static_root/assets/stats-tab-bqSPLvTp.js.br +0 -0
  259. codex/static_root/assets/stats-tab-bqSPLvTp.js.gz +0 -0
  260. codex/static_root/assets/{task-tab-CrRRKMNo.52cc73a5889d.js → task-tab-DWPKaGPT.da4df28dde5c.js} +1 -1
  261. codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js.br +0 -0
  262. codex/static_root/assets/task-tab-DWPKaGPT.da4df28dde5c.js.gz +0 -0
  263. codex/static_root/assets/{task-tab-CrRRKMNo.js → task-tab-DWPKaGPT.js} +1 -1
  264. codex/static_root/assets/task-tab-DWPKaGPT.js.br +0 -0
  265. codex/static_root/assets/task-tab-DWPKaGPT.js.gz +0 -0
  266. codex/static_root/assets/task-tab-EGlhcKTH.478e74041f80.css +1 -0
  267. codex/static_root/assets/{task-tab--cXi48kg.5dfd6890a1c2.css.br → task-tab-EGlhcKTH.478e74041f80.css.br} +1 -1
  268. codex/static_root/assets/task-tab-EGlhcKTH.478e74041f80.css.gz +0 -0
  269. codex/static_root/assets/task-tab-EGlhcKTH.css +1 -0
  270. codex/static_root/assets/{task-tab--cXi48kg.css.br → task-tab-EGlhcKTH.css.br} +1 -1
  271. codex/static_root/assets/task-tab-EGlhcKTH.css.gz +0 -0
  272. codex/static_root/assets/{transition-CyIqQdeu.7496bae455dc.js → transition-DWVQ2EZ3.0bdfaa37b937.js} +1 -1
  273. codex/static_root/assets/transition-DWVQ2EZ3.0bdfaa37b937.js.br +0 -0
  274. codex/static_root/assets/transition-DWVQ2EZ3.0bdfaa37b937.js.gz +0 -0
  275. codex/static_root/assets/{transition-CyIqQdeu.js → transition-DWVQ2EZ3.js} +1 -1
  276. codex/static_root/assets/transition-DWVQ2EZ3.js.br +0 -0
  277. codex/static_root/assets/transition-DWVQ2EZ3.js.gz +0 -0
  278. codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js +1 -0
  279. codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js.br +0 -0
  280. codex/static_root/assets/unauthorized-CEGD20tR.064b0993a944.js.gz +0 -0
  281. codex/static_root/assets/unauthorized-CEGD20tR.js +1 -0
  282. codex/static_root/assets/unauthorized-CEGD20tR.js.br +0 -0
  283. codex/static_root/assets/unauthorized-CEGD20tR.js.gz +0 -0
  284. codex/static_root/assets/{unauthorized-BjhIc97q.728511c92cd0.css → unauthorized-DyojW2ic.css} +1 -1
  285. codex/static_root/assets/unauthorized-DyojW2ic.css.br +0 -0
  286. codex/static_root/assets/unauthorized-DyojW2ic.css.gz +0 -0
  287. codex/static_root/assets/{unauthorized-BjhIc97q.css → unauthorized-DyojW2ic.feefa7628a23.css} +1 -1
  288. codex/static_root/assets/unauthorized-DyojW2ic.feefa7628a23.css.br +0 -0
  289. codex/static_root/assets/unauthorized-DyojW2ic.feefa7628a23.css.gz +0 -0
  290. codex/static_root/assets/{user-tab-Bt7BG8Ih.8f797a19b7ae.js → user-tab-EsokzMCB.b0acc46b56a3.js} +1 -1
  291. codex/static_root/assets/user-tab-EsokzMCB.b0acc46b56a3.js.br +0 -0
  292. codex/static_root/assets/user-tab-EsokzMCB.b0acc46b56a3.js.gz +0 -0
  293. codex/static_root/assets/{user-tab-Bt7BG8Ih.js → user-tab-EsokzMCB.js} +1 -1
  294. codex/static_root/assets/user-tab-EsokzMCB.js.br +0 -0
  295. codex/static_root/assets/user-tab-EsokzMCB.js.gz +0 -0
  296. codex/static_root/{manifest.dbf5ed7a4b40.json → manifest.4a38de3db1c5.json} +275 -275
  297. codex/static_root/manifest.4a38de3db1c5.json.br +0 -0
  298. codex/static_root/manifest.4a38de3db1c5.json.gz +0 -0
  299. codex/static_root/manifest.json +275 -275
  300. codex/static_root/manifest.json.br +0 -0
  301. codex/static_root/manifest.json.gz +0 -0
  302. codex/static_root/staticfiles.json +1 -1
  303. codex/urls/api/browser.py +9 -0
  304. codex/urls/api/reader.py +8 -4
  305. codex/util.py +11 -0
  306. codex/views/browser/annotate/card.py +1 -3
  307. codex/views/browser/download.py +64 -0
  308. codex/views/browser/filters/group.py +2 -0
  309. codex/views/browser/validate.py +7 -3
  310. codex/views/download.py +5 -5
  311. codex/views/reader/page.py +11 -6
  312. codex/views/reader/params.py +1 -1
  313. codex/views/session.py +2 -1
  314. {codex-1.7.1.dist-info → codex-1.7.2.dist-info}/METADATA +3 -2
  315. {codex-1.7.1.dist-info → codex-1.7.2.dist-info}/RECORD +318 -315
  316. codex/static_root/assets/VCheckbox-Cf74Jfrq.2fbb5106ef5a.js +0 -1
  317. codex/static_root/assets/VCheckbox-Cf74Jfrq.2fbb5106ef5a.js.br +0 -0
  318. codex/static_root/assets/VCheckbox-Cf74Jfrq.2fbb5106ef5a.js.gz +0 -0
  319. codex/static_root/assets/VCheckbox-Cf74Jfrq.js +0 -1
  320. codex/static_root/assets/VCheckbox-Cf74Jfrq.js.br +0 -0
  321. codex/static_root/assets/VCheckbox-Cf74Jfrq.js.gz +0 -0
  322. codex/static_root/assets/VCheckboxBtn-D5jbIiqO.921713d268ba.js.br +0 -0
  323. codex/static_root/assets/VCheckboxBtn-D5jbIiqO.921713d268ba.js.gz +0 -0
  324. codex/static_root/assets/VCheckboxBtn-D5jbIiqO.js.br +0 -0
  325. codex/static_root/assets/VCheckboxBtn-D5jbIiqO.js.gz +0 -0
  326. codex/static_root/assets/VCombobox-Dq3Y5j2w.8f4884677e5a.js +0 -1
  327. codex/static_root/assets/VCombobox-Dq3Y5j2w.8f4884677e5a.js.br +0 -0
  328. codex/static_root/assets/VCombobox-Dq3Y5j2w.8f4884677e5a.js.gz +0 -0
  329. codex/static_root/assets/VCombobox-Dq3Y5j2w.js +0 -1
  330. codex/static_root/assets/VCombobox-Dq3Y5j2w.js.br +0 -0
  331. codex/static_root/assets/VCombobox-Dq3Y5j2w.js.gz +0 -0
  332. codex/static_root/assets/VDialog-BVHV10WD.993b98f2be7f.js +0 -1
  333. codex/static_root/assets/VDialog-BVHV10WD.993b98f2be7f.js.br +0 -0
  334. codex/static_root/assets/VDialog-BVHV10WD.993b98f2be7f.js.gz +0 -0
  335. codex/static_root/assets/VDialog-BVHV10WD.js +0 -1
  336. codex/static_root/assets/VDialog-BVHV10WD.js.br +0 -0
  337. codex/static_root/assets/VDialog-BVHV10WD.js.gz +0 -0
  338. codex/static_root/assets/VDialog-CSvrKKb2.css +0 -1
  339. codex/static_root/assets/VDialog-CSvrKKb2.css.br +0 -0
  340. codex/static_root/assets/VDialog-CSvrKKb2.css.gz +0 -0
  341. codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css +0 -1
  342. codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.br +0 -0
  343. codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.gz +0 -0
  344. codex/static_root/assets/VExpansionPanels-BLAGU-dj.e244f3902cf9.js.br +0 -0
  345. codex/static_root/assets/VExpansionPanels-BLAGU-dj.e244f3902cf9.js.gz +0 -0
  346. codex/static_root/assets/VExpansionPanels-BLAGU-dj.js.br +0 -0
  347. codex/static_root/assets/VExpansionPanels-BLAGU-dj.js.gz +0 -0
  348. codex/static_root/assets/VRadioGroup-Bnt5BbmK.826e1c2d9134.js.br +0 -0
  349. codex/static_root/assets/VRadioGroup-Bnt5BbmK.826e1c2d9134.js.gz +0 -0
  350. codex/static_root/assets/VRadioGroup-Bnt5BbmK.js.br +0 -0
  351. codex/static_root/assets/VRadioGroup-Bnt5BbmK.js.gz +0 -0
  352. codex/static_root/assets/VSelect-BTo1ZM8U.ea4a7a7bbce9.js +0 -1
  353. codex/static_root/assets/VSelect-BTo1ZM8U.ea4a7a7bbce9.js.br +0 -0
  354. codex/static_root/assets/VSelect-BTo1ZM8U.ea4a7a7bbce9.js.gz +0 -0
  355. codex/static_root/assets/VSelect-BTo1ZM8U.js +0 -1
  356. codex/static_root/assets/VSelect-BTo1ZM8U.js.br +0 -0
  357. codex/static_root/assets/VSelect-BTo1ZM8U.js.gz +0 -0
  358. codex/static_root/assets/VSelectionControl-CrzLF2bD.965af5336c62.js.br +0 -0
  359. codex/static_root/assets/VSelectionControl-CrzLF2bD.965af5336c62.js.gz +0 -0
  360. codex/static_root/assets/VSelectionControl-CrzLF2bD.js.br +0 -0
  361. codex/static_root/assets/VSelectionControl-CrzLF2bD.js.gz +0 -0
  362. codex/static_root/assets/VSlideGroup-ZRALPG67.9807cdc6b330.js.br +0 -0
  363. codex/static_root/assets/VSlideGroup-ZRALPG67.9807cdc6b330.js.gz +0 -0
  364. codex/static_root/assets/VSlideGroup-ZRALPG67.js.br +0 -0
  365. codex/static_root/assets/VSlideGroup-ZRALPG67.js.gz +0 -0
  366. codex/static_root/assets/VTable-Ci8_04Au.1382ab272e40.js.br +0 -0
  367. codex/static_root/assets/VTable-Ci8_04Au.1382ab272e40.js.gz +0 -0
  368. codex/static_root/assets/VTable-Ci8_04Au.js.br +0 -0
  369. codex/static_root/assets/VTable-Ci8_04Au.js.gz +0 -0
  370. codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css +0 -1
  371. codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.br +0 -0
  372. codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.gz +0 -0
  373. codex/static_root/assets/VTextField-BnCEPZIq.css +0 -1
  374. codex/static_root/assets/VTextField-BnCEPZIq.css.br +0 -0
  375. codex/static_root/assets/VTextField-BnCEPZIq.css.gz +0 -0
  376. codex/static_root/assets/VTextField-D7pt5iJ3.c020691495b7.js +0 -1
  377. codex/static_root/assets/VTextField-D7pt5iJ3.c020691495b7.js.br +0 -0
  378. codex/static_root/assets/VTextField-D7pt5iJ3.c020691495b7.js.gz +0 -0
  379. codex/static_root/assets/VTextField-D7pt5iJ3.js +0 -1
  380. codex/static_root/assets/VTextField-D7pt5iJ3.js.br +0 -0
  381. codex/static_root/assets/VTextField-D7pt5iJ3.js.gz +0 -0
  382. codex/static_root/assets/VWindowItem-CGBsUHpV.7c57d79cf74a.js.br +0 -0
  383. codex/static_root/assets/VWindowItem-CGBsUHpV.7c57d79cf74a.js.gz +0 -0
  384. codex/static_root/assets/VWindowItem-CGBsUHpV.js.br +0 -0
  385. codex/static_root/assets/VWindowItem-CGBsUHpV.js.gz +0 -0
  386. codex/static_root/assets/admin-BTXUbxw5.23e0d3602f29.js.br +0 -0
  387. codex/static_root/assets/admin-BTXUbxw5.23e0d3602f29.js.gz +0 -0
  388. codex/static_root/assets/admin-BTXUbxw5.js.br +0 -0
  389. codex/static_root/assets/admin-BTXUbxw5.js.gz +0 -0
  390. codex/static_root/assets/admin-menu-Dbt1Rajw.043fb778ba6c.js +0 -1
  391. codex/static_root/assets/admin-menu-Dbt1Rajw.043fb778ba6c.js.br +0 -0
  392. codex/static_root/assets/admin-menu-Dbt1Rajw.043fb778ba6c.js.gz +0 -0
  393. codex/static_root/assets/admin-menu-Dbt1Rajw.js +0 -1
  394. codex/static_root/assets/admin-menu-Dbt1Rajw.js.br +0 -0
  395. codex/static_root/assets/admin-menu-Dbt1Rajw.js.gz +0 -0
  396. codex/static_root/assets/admin-settings-button-progress-DSOZWzf1.fad596375b9b.js.br +0 -0
  397. codex/static_root/assets/admin-settings-button-progress-DSOZWzf1.fad596375b9b.js.gz +0 -0
  398. codex/static_root/assets/admin-settings-button-progress-DSOZWzf1.js.br +0 -0
  399. codex/static_root/assets/admin-settings-button-progress-DSOZWzf1.js.gz +0 -0
  400. codex/static_root/assets/browser-3Sm5qvA_.188da1350ec3.css +0 -1
  401. codex/static_root/assets/browser-3Sm5qvA_.188da1350ec3.css.br +0 -0
  402. codex/static_root/assets/browser-3Sm5qvA_.188da1350ec3.css.gz +0 -0
  403. codex/static_root/assets/browser-3Sm5qvA_.css +0 -1
  404. codex/static_root/assets/browser-3Sm5qvA_.css.br +0 -0
  405. codex/static_root/assets/browser-3Sm5qvA_.css.gz +0 -0
  406. codex/static_root/assets/browser-Dq-fQLJF.2e88354a9574.js +0 -1
  407. codex/static_root/assets/browser-Dq-fQLJF.2e88354a9574.js.br +0 -0
  408. codex/static_root/assets/browser-Dq-fQLJF.2e88354a9574.js.gz +0 -0
  409. codex/static_root/assets/browser-Dq-fQLJF.js +0 -1
  410. codex/static_root/assets/browser-Dq-fQLJF.js.br +0 -0
  411. codex/static_root/assets/browser-Dq-fQLJF.js.gz +0 -0
  412. codex/static_root/assets/change-password-dialog-BaGA_bnX.af8ea11b1579.js +0 -1
  413. codex/static_root/assets/change-password-dialog-BaGA_bnX.af8ea11b1579.js.br +0 -0
  414. codex/static_root/assets/change-password-dialog-BaGA_bnX.af8ea11b1579.js.gz +0 -0
  415. codex/static_root/assets/change-password-dialog-BaGA_bnX.js +0 -1
  416. codex/static_root/assets/change-password-dialog-BaGA_bnX.js.br +0 -0
  417. codex/static_root/assets/change-password-dialog-BaGA_bnX.js.gz +0 -0
  418. codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css +0 -1
  419. codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.br +0 -0
  420. codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.gz +0 -0
  421. codex/static_root/assets/change-password-dialog-DrIXdKUC.css +0 -1
  422. codex/static_root/assets/change-password-dialog-DrIXdKUC.css.br +0 -0
  423. codex/static_root/assets/change-password-dialog-DrIXdKUC.css.gz +0 -0
  424. codex/static_root/assets/confirm-dialog-B7w6z2rf.472011c06253.css +0 -1
  425. codex/static_root/assets/confirm-dialog-B7w6z2rf.css +0 -1
  426. codex/static_root/assets/confirm-dialog-X14gSw1w.21504f7c1db4.js +0 -1
  427. codex/static_root/assets/confirm-dialog-X14gSw1w.21504f7c1db4.js.br +0 -0
  428. codex/static_root/assets/confirm-dialog-X14gSw1w.21504f7c1db4.js.gz +0 -0
  429. codex/static_root/assets/confirm-dialog-X14gSw1w.js +0 -1
  430. codex/static_root/assets/confirm-dialog-X14gSw1w.js.br +0 -0
  431. codex/static_root/assets/confirm-dialog-X14gSw1w.js.gz +0 -0
  432. codex/static_root/assets/datetime-column-BN2Ulei5.a31061d3729c.js.br +0 -0
  433. codex/static_root/assets/datetime-column-BN2Ulei5.a31061d3729c.js.gz +0 -0
  434. codex/static_root/assets/datetime-column-BN2Ulei5.js.br +0 -0
  435. codex/static_root/assets/datetime-column-BN2Ulei5.js.gz +0 -0
  436. codex/static_root/assets/filter-CnO_WiBE.4044b9091aae.js.br +0 -0
  437. codex/static_root/assets/filter-CnO_WiBE.4044b9091aae.js.gz +0 -0
  438. codex/static_root/assets/filter-CnO_WiBE.js.br +0 -0
  439. codex/static_root/assets/filter-CnO_WiBE.js.gz +0 -0
  440. codex/static_root/assets/flag-tab-C5NP3j6O.1c692a00884d.js.br +0 -0
  441. codex/static_root/assets/flag-tab-C5NP3j6O.1c692a00884d.js.gz +0 -0
  442. codex/static_root/assets/flag-tab-C5NP3j6O.js.br +0 -0
  443. codex/static_root/assets/flag-tab-C5NP3j6O.js.gz +0 -0
  444. codex/static_root/assets/group-tab-Cq4QjmHS.a9d15dac0289.js.br +0 -0
  445. codex/static_root/assets/group-tab-Cq4QjmHS.a9d15dac0289.js.gz +0 -0
  446. codex/static_root/assets/group-tab-Cq4QjmHS.js.br +0 -0
  447. codex/static_root/assets/group-tab-Cq4QjmHS.js.gz +0 -0
  448. codex/static_root/assets/http-error-DGFbgQC5.da17e7b6d980.js.br +0 -0
  449. codex/static_root/assets/http-error-DGFbgQC5.da17e7b6d980.js.gz +0 -0
  450. codex/static_root/assets/http-error-DGFbgQC5.js.br +0 -0
  451. codex/static_root/assets/http-error-DGFbgQC5.js.gz +0 -0
  452. codex/static_root/assets/http-error-DKulXuTl.95e42988d5d5.css +0 -1
  453. codex/static_root/assets/http-error-DKulXuTl.95e42988d5d5.css.gz +0 -0
  454. codex/static_root/assets/http-error-DKulXuTl.css +0 -1
  455. codex/static_root/assets/http-error-DKulXuTl.css.gz +0 -0
  456. codex/static_root/assets/index-BI-1EK3Q.51e5dd220639.js +0 -1
  457. codex/static_root/assets/index-BI-1EK3Q.51e5dd220639.js.br +0 -0
  458. codex/static_root/assets/index-BI-1EK3Q.51e5dd220639.js.gz +0 -0
  459. codex/static_root/assets/index-BI-1EK3Q.js +0 -1
  460. codex/static_root/assets/index-BI-1EK3Q.js.br +0 -0
  461. codex/static_root/assets/index-BI-1EK3Q.js.gz +0 -0
  462. codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css +0 -1
  463. codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.br +0 -0
  464. codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.gz +0 -0
  465. codex/static_root/assets/library-tab-Wew8YOLv.css +0 -1
  466. codex/static_root/assets/library-tab-Wew8YOLv.css.br +0 -0
  467. codex/static_root/assets/library-tab-Wew8YOLv.css.gz +0 -0
  468. codex/static_root/assets/library-tab-woA1HyfN.acfc4f327913.js +0 -1
  469. codex/static_root/assets/library-tab-woA1HyfN.acfc4f327913.js.br +0 -0
  470. codex/static_root/assets/library-tab-woA1HyfN.acfc4f327913.js.gz +0 -0
  471. codex/static_root/assets/library-tab-woA1HyfN.js +0 -1
  472. codex/static_root/assets/library-tab-woA1HyfN.js.br +0 -0
  473. codex/static_root/assets/library-tab-woA1HyfN.js.gz +0 -0
  474. codex/static_root/assets/main-Ed96tESk.7777498eb960.js +0 -35
  475. codex/static_root/assets/main-Ed96tESk.7777498eb960.js.br +0 -0
  476. codex/static_root/assets/main-Ed96tESk.7777498eb960.js.gz +0 -0
  477. codex/static_root/assets/main-Ed96tESk.js +0 -35
  478. codex/static_root/assets/main-Ed96tESk.js.br +0 -0
  479. codex/static_root/assets/main-Ed96tESk.js.gz +0 -0
  480. codex/static_root/assets/pager-full-pdf-DpxPZAZR.ec23b0e50b95.js +0 -1
  481. codex/static_root/assets/pager-full-pdf-DpxPZAZR.ec23b0e50b95.js.br +0 -0
  482. codex/static_root/assets/pager-full-pdf-DpxPZAZR.ec23b0e50b95.js.gz +0 -0
  483. codex/static_root/assets/pager-full-pdf-DpxPZAZR.js +0 -1
  484. codex/static_root/assets/pager-full-pdf-DpxPZAZR.js.br +0 -0
  485. codex/static_root/assets/pager-full-pdf-DpxPZAZR.js.gz +0 -0
  486. codex/static_root/assets/pagination-toolbar-Bz5nEUwa.d01b9cf3ab5e.js +0 -1
  487. codex/static_root/assets/pagination-toolbar-Bz5nEUwa.d01b9cf3ab5e.js.br +0 -0
  488. codex/static_root/assets/pagination-toolbar-Bz5nEUwa.d01b9cf3ab5e.js.gz +0 -0
  489. codex/static_root/assets/pagination-toolbar-Bz5nEUwa.js +0 -1
  490. codex/static_root/assets/pagination-toolbar-Bz5nEUwa.js.br +0 -0
  491. codex/static_root/assets/pagination-toolbar-Bz5nEUwa.js.gz +0 -0
  492. codex/static_root/assets/pagination-toolbar-DGrxp2OD.css +0 -1
  493. codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.br +0 -0
  494. codex/static_root/assets/pagination-toolbar-DGrxp2OD.css.gz +0 -0
  495. codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css +0 -1
  496. codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.br +0 -0
  497. codex/static_root/assets/pagination-toolbar-DGrxp2OD.f960a624f04f.css.gz +0 -0
  498. codex/static_root/assets/pdf-doc-6j4uJzw7.59963079f1ec.js.br +0 -0
  499. codex/static_root/assets/pdf-doc-6j4uJzw7.59963079f1ec.js.gz +0 -0
  500. codex/static_root/assets/pdf-doc-6j4uJzw7.js.br +0 -0
  501. codex/static_root/assets/pdf-doc-6j4uJzw7.js.gz +0 -0
  502. codex/static_root/assets/reader-DAyPkkSs.0f54806aed4b.js +0 -2
  503. codex/static_root/assets/reader-DAyPkkSs.0f54806aed4b.js.br +0 -0
  504. codex/static_root/assets/reader-DAyPkkSs.0f54806aed4b.js.gz +0 -0
  505. codex/static_root/assets/reader-DAyPkkSs.js +0 -2
  506. codex/static_root/assets/reader-DAyPkkSs.js.br +0 -0
  507. codex/static_root/assets/reader-DAyPkkSs.js.gz +0 -0
  508. codex/static_root/assets/reader-nD70BeEz.06e85e73c391.css +0 -1
  509. codex/static_root/assets/reader-nD70BeEz.06e85e73c391.css.br +0 -0
  510. codex/static_root/assets/reader-nD70BeEz.06e85e73c391.css.gz +0 -0
  511. codex/static_root/assets/reader-nD70BeEz.css +0 -1
  512. codex/static_root/assets/reader-nD70BeEz.css.br +0 -0
  513. codex/static_root/assets/reader-nD70BeEz.css.gz +0 -0
  514. codex/static_root/assets/relation-chips-DUOduJmS.8b39d35f8503.js +0 -1
  515. codex/static_root/assets/relation-chips-DUOduJmS.8b39d35f8503.js.br +0 -0
  516. codex/static_root/assets/relation-chips-DUOduJmS.8b39d35f8503.js.gz +0 -0
  517. codex/static_root/assets/relation-chips-DUOduJmS.js +0 -1
  518. codex/static_root/assets/relation-chips-DUOduJmS.js.br +0 -0
  519. codex/static_root/assets/relation-chips-DUOduJmS.js.gz +0 -0
  520. codex/static_root/assets/settings-drawer-lRimDTyf.054f1f057cee.js.br +0 -0
  521. codex/static_root/assets/settings-drawer-lRimDTyf.054f1f057cee.js.gz +0 -0
  522. codex/static_root/assets/settings-drawer-lRimDTyf.js.br +0 -0
  523. codex/static_root/assets/settings-drawer-lRimDTyf.js.gz +0 -0
  524. codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.br +0 -0
  525. codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.gz +0 -0
  526. codex/static_root/assets/stats-tab-BAYTqQNg.css.br +0 -0
  527. codex/static_root/assets/stats-tab-BAYTqQNg.css.gz +0 -0
  528. codex/static_root/assets/stats-tab-Cyli0TxY.f9af7d3387d9.js.br +0 -0
  529. codex/static_root/assets/stats-tab-Cyli0TxY.f9af7d3387d9.js.gz +0 -0
  530. codex/static_root/assets/stats-tab-Cyli0TxY.js.br +0 -0
  531. codex/static_root/assets/stats-tab-Cyli0TxY.js.gz +0 -0
  532. codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css +0 -1
  533. codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css.gz +0 -0
  534. codex/static_root/assets/task-tab--cXi48kg.css +0 -1
  535. codex/static_root/assets/task-tab--cXi48kg.css.gz +0 -0
  536. codex/static_root/assets/task-tab-CrRRKMNo.52cc73a5889d.js.br +0 -0
  537. codex/static_root/assets/task-tab-CrRRKMNo.52cc73a5889d.js.gz +0 -0
  538. codex/static_root/assets/task-tab-CrRRKMNo.js.br +0 -0
  539. codex/static_root/assets/task-tab-CrRRKMNo.js.gz +0 -0
  540. codex/static_root/assets/transition-CyIqQdeu.7496bae455dc.js.br +0 -0
  541. codex/static_root/assets/transition-CyIqQdeu.7496bae455dc.js.gz +0 -0
  542. codex/static_root/assets/transition-CyIqQdeu.js.br +0 -0
  543. codex/static_root/assets/transition-CyIqQdeu.js.gz +0 -0
  544. codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.br +0 -0
  545. codex/static_root/assets/unauthorized-BjhIc97q.728511c92cd0.css.gz +0 -0
  546. codex/static_root/assets/unauthorized-BjhIc97q.css.br +0 -0
  547. codex/static_root/assets/unauthorized-BjhIc97q.css.gz +0 -0
  548. codex/static_root/assets/unauthorized-IWC3QdqX.1d5d2dafa046.js +0 -1
  549. codex/static_root/assets/unauthorized-IWC3QdqX.1d5d2dafa046.js.br +0 -0
  550. codex/static_root/assets/unauthorized-IWC3QdqX.1d5d2dafa046.js.gz +0 -0
  551. codex/static_root/assets/unauthorized-IWC3QdqX.js +0 -1
  552. codex/static_root/assets/unauthorized-IWC3QdqX.js.br +0 -0
  553. codex/static_root/assets/unauthorized-IWC3QdqX.js.gz +0 -0
  554. codex/static_root/assets/user-tab-Bt7BG8Ih.8f797a19b7ae.js.br +0 -0
  555. codex/static_root/assets/user-tab-Bt7BG8Ih.8f797a19b7ae.js.gz +0 -0
  556. codex/static_root/assets/user-tab-Bt7BG8Ih.js.br +0 -0
  557. codex/static_root/assets/user-tab-Bt7BG8Ih.js.gz +0 -0
  558. codex/static_root/manifest.dbf5ed7a4b40.json.br +0 -0
  559. codex/static_root/manifest.dbf5ed7a4b40.json.gz +0 -0
  560. {codex-1.7.1.dist-info → codex-1.7.2.dist-info}/LICENSE +0 -0
  561. {codex-1.7.1.dist-info → codex-1.7.2.dist-info}/WHEEL +0 -0
  562. {codex-1.7.1.dist-info → codex-1.7.2.dist-info}/entry_points.txt +0 -0
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-DSOZWzf1.js","assets/main-Ed96tESk.js","assets/main-BZ73p_WW.css","assets/VDialog-BVHV10WD.js","assets/transition-CyIqQdeu.js","assets/transition-5LRFTPo5.css","assets/VDialog-CSvrKKb2.css","assets/admin-settings-button-progress-DUUQfVsZ.css","assets/admin-menu-Dbt1Rajw.js","assets/change-password-dialog-BaGA_bnX.js","assets/VTextField-D7pt5iJ3.js","assets/VSelectionControl-CrzLF2bD.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-BnCEPZIq.css","assets/change-password-dialog-DrIXdKUC.css","assets/VSlideGroup-ZRALPG67.js","assets/VSlideGroup-BtXPhMOT.css","assets/index-BI-1EK3Q.js","assets/index-CL_6g4tJ.css","assets/admin-menu-B9bzD6hV.css"])))=>i.map(i=>d[i]);
2
- import{_ as U,o as C,c as B,a7 as Ze,B as je,w as k,ai as Ve,i as Q,ao as Pe,ap as De,b8 as Ke,y as ee,H as re,m as te,u as N,r as A,a as s,b as E,C as P,D as xe,E as O,N as Qe,as as Be,p as ae,W as oe,g as ne,h as le,aP as ue,t as Z,aQ as ce,aR as Ee,aT as M,f as y,l as Re,q as F,b9 as Ie,ba as Je,bb as et,A as Y,L as x,K as tt,aM as at,Y as $e,bc as ot,bd as Oe,e as Me,be as nt,bf as G,bg as Le,bh as Ae,bi as lt,v as Ne,bj as Ue,aU as X,bk as He,bl as st,bm as it,bn as rt,bo as ut,k as ct,bp as dt,F as vt,aW as mt}from"./main-Ed96tESk.js";import{V as ze,t as de,q as ve,e as me,v as he,r as fe,g as ge,h as K,i as ht,w as ft,x as gt,u as yt,y as bt,z as _t}from"./VDialog-BVHV10WD.js";import{V as W,a as se,c as J}from"./transition-CyIqQdeu.js";import{c as pt,i as wt}from"./VSelectionControl-CrzLF2bD.js";import{b as Fe,u as St}from"./VTextField-D7pt5iJ3.js";import{P as kt,a as Ct}from"./unauthorized-IWC3QdqX.js";import{c as Tt}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-ZRALPG67.js";const Vt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Ve(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Vt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-DSOZWzf1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=A("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),It=[null,"prominent","default","comfortable","compact"],$t=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>It.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:$t(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var $;const p=!!(e.title||a.title),T=!!(a.image||e.image),I=($=a.extension)==null?void 0:$.call(a);return c.value=!!(e.extended||I),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[T&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,L;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(L=a.append)==null?void 0:L.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[I])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:Ie,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Tt(this.url,this.showTooltip)}}},Mt=["title"],Lt={key:0},At={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",Lt,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",At,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:kt},data(){return{mdiRss:Ie}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=A("OPDSUrl"),u=A("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:$e,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Ae(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:$e,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Te(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Te(u),y:Te(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",L,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",L)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let T;function I(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function $(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(T=[r,h],p.value=I(u.value?r:h,a.value),m.value=$(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-T[0]),w=Math.abs(h-T[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=$(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=I(u.value?r:h,!0):g<0&&(p.value=I(u.value?r:h,!1))}function L(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Ae(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),T=ct(e,"modelValue",null,V=>!!V),{ssrBootStyles:I}=St(),{scopeId:$}=yt(),R=Me(),D=M(!1),{runOpenDelay:L,runCloseDelay:q}=_t(e,V=>{D.value=V}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,V=>d("update:rail",!V))}),G(()=>!e.disableResizeWatcher,()=>{X(g,V=>!e.permanent&&mt(()=>T.value=!V))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(T.value=!1))}),X(()=>e.permanent,V=>{V&&(T.value=!0)}),e.modelValue==null&&!g.value&&(T.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:T,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const V=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?V*H.value:V}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>T.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const V=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:L,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":T.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,I.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},$,a),{default:()=>{var pe,we,Se;return[V&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||T.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(T.value=!1)}},$),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-Dbt1Rajw.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:Ct,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=A("AuthMenu"),u=A("OPDSDialog"),b=A("RepoFooter"),_=A("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Ve(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-BAk-B1sR.js","assets/main-BVKrDunc.js","assets/main-BZ73p_WW.css","assets/VDialog-Db4tJYqR.js","assets/transition-DWVQ2EZ3.js","assets/transition-5LRFTPo5.css","assets/VDialog-DXQz0Ylp.css","assets/admin-settings-button-progress-DUUQfVsZ.css","assets/admin-menu-Jfmp_Yd8.js","assets/change-password-dialog-DJtOQw7K.js","assets/VTextField-X5yAw35c.js","assets/VSelectionControl-CxhDNufT.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-Crc3gdNh.css","assets/change-password-dialog-C_EOKOn9.css","assets/VSlideGroup-DRbthp6q.js","assets/VSlideGroup-BtXPhMOT.css","assets/index-ClGiHwWc.js","assets/index-CL_6g4tJ.css","assets/admin-menu-B9bzD6hV.css"])))=>i.map(i=>d[i]);
2
+ import{_ as U,o as C,c as B,a9 as Ze,B as je,w as k,ak as Te,i as Q,aq as Pe,ar as De,bc as Ke,y as ee,H as re,m as te,u as N,r as L,a as s,b as E,C as P,D as xe,E as O,P as Qe,au as Be,p as ae,Y as oe,g as ne,h as le,aQ as ue,t as Z,aR as ce,aS as Ee,aU as M,f as y,l as Re,q as F,bd as $e,be as Je,bf as et,A as Y,L as x,K as tt,aN as at,$ as Ie,bg as ot,bh as Oe,e as Me,bi as nt,bj as G,bk as Ae,bl as Le,bm as lt,v as Ne,bn as Ue,aV as X,bo as He,bp as st,bq as it,br as rt,bs as ut,k as ct,bt as dt,F as vt,aX as mt}from"./main-BVKrDunc.js";import{V as ze,x as de,v as ve,e as me,y as he,w as fe,g as ge,r as Fe,h as K,i as ht,z as ft,A as gt,u as yt,B as bt,D as _t}from"./VDialog-Db4tJYqR.js";import{V as W,a as se,c as J}from"./transition-DWVQ2EZ3.js";import{c as pt,i as wt}from"./VSelectionControl-CxhDNufT.js";import{P as St,a as kt}from"./unauthorized-CEGD20tR.js";import{c as Ct}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-DRbthp6q.js";import{u as Vt}from"./VTextField-X5yAw35c.js";const Tt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Te(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Tt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-BAk-B1sR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=L("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),$t=[null,"prominent","default","comfortable","compact"],It=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>$t.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:It(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var I;const p=!!(e.title||a.title),V=!!(a.image||e.image),$=(I=a.extension)==null?void 0:I.call(a);return c.value=!!(e.extended||$),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[V&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,A;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(A=a.append)==null?void 0:A.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[$])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:$e,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Ct(this.url,this.showTooltip)}}},Mt=["title"],At={key:0},Lt={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",At,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",Lt,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:St},data(){return{mdiRss:$e}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=L("OPDSUrl"),u=L("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:Ie,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Le(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:Ie,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Ve(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Ve(u),y:Ve(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",A,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",A)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let V;function $(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function I(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(V=[r,h],p.value=$(u.value?r:h,a.value),m.value=I(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-V[0]),w=Math.abs(h-V[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=I(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=$(u.value?r:h,!0):g<0&&(p.value=$(u.value?r:h,!1))}function A(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Le(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),V=ct(e,"modelValue",null,T=>!!T),{ssrBootStyles:$}=Vt(),{scopeId:I}=yt(),R=Me(),D=M(!1),{runOpenDelay:A,runCloseDelay:q}=_t(e,T=>{D.value=T}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,T=>d("update:rail",!T))}),G(()=>!e.disableResizeWatcher,()=>{X(g,T=>!e.permanent&&mt(()=>V.value=!T))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(V.value=!1))}),X(()=>e.permanent,T=>{T&&(V.value=!0)}),e.modelValue==null&&!g.value&&(V.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:V,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const T=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?T*H.value:T}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>V.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const T=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:A,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":V.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,$.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},I,a),{default:()=>{var pe,we,Se;return[T&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||V.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(V.value=!1)}},I),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-Jfmp_Yd8.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:kt,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=L("AuthMenu"),u=L("OPDSDialog"),b=L("RepoFooter"),_=L("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Te(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-DSOZWzf1.js","assets/main-Ed96tESk.js","assets/main-BZ73p_WW.css","assets/VDialog-BVHV10WD.js","assets/transition-CyIqQdeu.js","assets/transition-5LRFTPo5.css","assets/VDialog-CSvrKKb2.css","assets/admin-settings-button-progress-DUUQfVsZ.css","assets/admin-menu-Dbt1Rajw.js","assets/change-password-dialog-BaGA_bnX.js","assets/VTextField-D7pt5iJ3.js","assets/VSelectionControl-CrzLF2bD.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-BnCEPZIq.css","assets/change-password-dialog-DrIXdKUC.css","assets/VSlideGroup-ZRALPG67.js","assets/VSlideGroup-BtXPhMOT.css","assets/index-BI-1EK3Q.js","assets/index-CL_6g4tJ.css","assets/admin-menu-B9bzD6hV.css"])))=>i.map(i=>d[i]);
2
- import{_ as U,o as C,c as B,a7 as Ze,B as je,w as k,ai as Ve,i as Q,ao as Pe,ap as De,b8 as Ke,y as ee,H as re,m as te,u as N,r as A,a as s,b as E,C as P,D as xe,E as O,N as Qe,as as Be,p as ae,W as oe,g as ne,h as le,aP as ue,t as Z,aQ as ce,aR as Ee,aT as M,f as y,l as Re,q as F,b9 as Ie,ba as Je,bb as et,A as Y,L as x,K as tt,aM as at,Y as $e,bc as ot,bd as Oe,e as Me,be as nt,bf as G,bg as Le,bh as Ae,bi as lt,v as Ne,bj as Ue,aU as X,bk as He,bl as st,bm as it,bn as rt,bo as ut,k as ct,bp as dt,F as vt,aW as mt}from"./main-Ed96tESk.js";import{V as ze,t as de,q as ve,e as me,v as he,r as fe,g as ge,h as K,i as ht,w as ft,x as gt,u as yt,y as bt,z as _t}from"./VDialog-BVHV10WD.js";import{V as W,a as se,c as J}from"./transition-CyIqQdeu.js";import{c as pt,i as wt}from"./VSelectionControl-CrzLF2bD.js";import{b as Fe,u as St}from"./VTextField-D7pt5iJ3.js";import{P as kt,a as Ct}from"./unauthorized-IWC3QdqX.js";import{c as Tt}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-ZRALPG67.js";const Vt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Ve(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Vt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-DSOZWzf1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=A("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),It=[null,"prominent","default","comfortable","compact"],$t=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>It.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:$t(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var $;const p=!!(e.title||a.title),T=!!(a.image||e.image),I=($=a.extension)==null?void 0:$.call(a);return c.value=!!(e.extended||I),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[T&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,L;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(L=a.append)==null?void 0:L.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[I])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:Ie,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Tt(this.url,this.showTooltip)}}},Mt=["title"],Lt={key:0},At={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",Lt,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",At,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:kt},data(){return{mdiRss:Ie}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=A("OPDSUrl"),u=A("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:$e,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Ae(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:$e,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Te(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Te(u),y:Te(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",L,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",L)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let T;function I(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function $(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(T=[r,h],p.value=I(u.value?r:h,a.value),m.value=$(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-T[0]),w=Math.abs(h-T[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=$(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=I(u.value?r:h,!0):g<0&&(p.value=I(u.value?r:h,!1))}function L(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Ae(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),T=ct(e,"modelValue",null,V=>!!V),{ssrBootStyles:I}=St(),{scopeId:$}=yt(),R=Me(),D=M(!1),{runOpenDelay:L,runCloseDelay:q}=_t(e,V=>{D.value=V}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,V=>d("update:rail",!V))}),G(()=>!e.disableResizeWatcher,()=>{X(g,V=>!e.permanent&&mt(()=>T.value=!V))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(T.value=!1))}),X(()=>e.permanent,V=>{V&&(T.value=!0)}),e.modelValue==null&&!g.value&&(T.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:T,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const V=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?V*H.value:V}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Le({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>T.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const V=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:L,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":T.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,I.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},$,a),{default:()=>{var pe,we,Se;return[V&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||T.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(T.value=!1)}},$),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-Dbt1Rajw.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:Ct,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=A("AuthMenu"),u=A("OPDSDialog"),b=A("RepoFooter"),_=A("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Ve(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-BAk-B1sR.js","assets/main-BVKrDunc.js","assets/main-BZ73p_WW.css","assets/VDialog-Db4tJYqR.js","assets/transition-DWVQ2EZ3.js","assets/transition-5LRFTPo5.css","assets/VDialog-DXQz0Ylp.css","assets/admin-settings-button-progress-DUUQfVsZ.css","assets/admin-menu-Jfmp_Yd8.js","assets/change-password-dialog-DJtOQw7K.js","assets/VTextField-X5yAw35c.js","assets/VSelectionControl-CxhDNufT.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-Crc3gdNh.css","assets/change-password-dialog-C_EOKOn9.css","assets/VSlideGroup-DRbthp6q.js","assets/VSlideGroup-BtXPhMOT.css","assets/index-ClGiHwWc.js","assets/index-CL_6g4tJ.css","assets/admin-menu-B9bzD6hV.css"])))=>i.map(i=>d[i]);
2
+ import{_ as U,o as C,c as B,a9 as Ze,B as je,w as k,ak as Te,i as Q,aq as Pe,ar as De,bc as Ke,y as ee,H as re,m as te,u as N,r as L,a as s,b as E,C as P,D as xe,E as O,P as Qe,au as Be,p as ae,Y as oe,g as ne,h as le,aQ as ue,t as Z,aR as ce,aS as Ee,aU as M,f as y,l as Re,q as F,bd as $e,be as Je,bf as et,A as Y,L as x,K as tt,aN as at,$ as Ie,bg as ot,bh as Oe,e as Me,bi as nt,bj as G,bk as Ae,bl as Le,bm as lt,v as Ne,bn as Ue,aV as X,bo as He,bp as st,bq as it,br as rt,bs as ut,k as ct,bt as dt,F as vt,aX as mt}from"./main-BVKrDunc.js";import{V as ze,x as de,v as ve,e as me,y as he,w as fe,g as ge,r as Fe,h as K,i as ht,z as ft,A as gt,u as yt,B as bt,D as _t}from"./VDialog-Db4tJYqR.js";import{V as W,a as se,c as J}from"./transition-DWVQ2EZ3.js";import{c as pt,i as wt}from"./VSelectionControl-CxhDNufT.js";import{P as St,a as kt}from"./unauthorized-CEGD20tR.js";import{c as Ct}from"./copy-to-clipboard-DoUvDJVx.js";import{a as ie}from"./VSlideGroup-DRbthp6q.js";import{u as Vt}from"./VTextField-X5yAw35c.js";const Tt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Pt(e,n,a,d,t,o){return C(),B(ze,{density:o.density},Ze({_:2},[je(e.$slots,(l,u)=>({name:u,fn:k(b=>[Te(e.$slots,u,Q({props:l},b))])}))]),1032,["density"])}const Dt=U(Tt,[["render",Pt]]),ke=Pe(De(()=>Be(()=>import("./admin-settings-button-progress-BAk-B1sR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])))),xt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ke,ScaleButton:Dt},data(){return{mdiMenu:Ke,AdminSettingsButtonProgress:ke}},computed:{...ee(re,["isUserAdmin"])},methods:{...te(N,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Bt(e,n,a,d,t,o){const l=L("ScaleButton");return C(),B(l,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Qe(o.onClick,["prevent"])},{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(C(),B(xe(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const Pa=U(xt,[["render",Bt],["__scopeId","data-v-cdf6ad8a"]]),Et=ae({text:String,...oe(),...se()},"VToolbarTitle"),Rt=ne()({name:"VToolbarTitle",props:Et(),setup(e,n){let{slots:a}=n;return le(()=>{const d=!!(a.default||a.text||e.text);return s(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var t;return[d&&s("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(t=a.default)==null?void 0:t.call(a)])]}})}),{}}}),$t=[null,"prominent","default","comfortable","compact"],It=ae({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>$t.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...de(),...oe(),...ve(),...me(),...se({tag:"header"}),...ue()},"VToolbar"),Da=ne()({name:"VToolbar",props:It(),setup(e,n){var m;let{slots:a}=n;const{backgroundColorClasses:d,backgroundColorStyles:t}=J(Z(e,"color")),{borderClasses:o}=he(e),{elevationClasses:l}=fe(e),{roundedClasses:u}=ge(e),{themeClasses:b}=ce(e),{rtlClasses:_}=Ee(),c=M(!!(e.extended||(m=a.extension)!=null&&m.call(a))),f=y(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),v=y(()=>c.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Re({VBtn:{variant:"text"}}),le(()=>{var I;const p=!!(e.title||a.title),V=!!(a.image||e.image),$=(I=a.extension)==null?void 0:I.call(a);return c.value=!!(e.extended||$),s(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},d.value,o.value,l.value,u.value,b.value,_.value,e.class],style:[t.value,e.style]},{default:()=>[V&&s("div",{key:"image",class:"v-toolbar__image"},[a.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):s(Fe,{key:"image-img",cover:!0,src:e.image},null)]),s(K,{defaults:{VTabs:{height:F(f.value)}}},{default:()=>{var R,D,A;return[s("div",{class:"v-toolbar__content",style:{height:F(f.value)}},[a.prepend&&s("div",{class:"v-toolbar__prepend"},[(R=a.prepend)==null?void 0:R.call(a)]),p&&s(Rt,{key:"title",text:e.title},{text:a.title}),(D=a.default)==null?void 0:D.call(a),a.append&&s("div",{class:"v-toolbar__append"},[(A=a.append)==null?void 0:A.call(a)])])]}}),s(K,{defaults:{VTabs:{height:F(v.value)}}},{default:()=>[s(pt,null,{default:()=>[c.value&&s("div",{class:"v-toolbar__extension",style:{height:F(v.value)}},[$])]})]})]})}),{contentHeight:f,extensionHeight:v}}}),Ot={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:$e,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Je:et},tooltip(){return this.clipBoardEnabled},url(){return window.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&Ct(this.url,this.showTooltip)}}},Mt=["title"],At={key:0},Lt={class:"copied"},Nt={key:1,class:"subtitle"},Ut={class:"opdsUrl"};function Ht(e,n,a,d,t,o){return C(),Y("div",{class:"opdsVersion",title:o.tooltip,onClick:n[0]||(n[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[x("h3",null,[E(P(a.title)+" ",1),o.clipBoardEnabled?(C(),Y("span",At,[s(W,{class:"clipBoardIcon",size:"small"},{default:k(()=>[E(P(o.clipBoardIcon),1)]),_:1}),s(wt,null,{default:k(()=>[tt(x("span",Lt,"Copied",512),[[at,t.showTooltip.show]])]),_:1})])):O("",!0),a.subtitle?(C(),Y("span",Nt,P(a.subtitle),1)):O("",!0)]),x("div",Ut,P(o.url),1)],8,Mt)}const zt=U(Ot,[["render",Ht],["__scopeId","data-v-b8e2453a"]]),Ft={name:"OPDSDialog",components:{OPDSUrl:zt,PlaceholderLoading:St},data(){return{mdiRss:$e}},computed:{...ee(N,{opdsURLs:e=>e.opdsURLs})},methods:{...te(N,["loadOPDSURLs"])}},Yt={key:0,id:"opds"};function Wt(e,n,a,d,t,o){const l=L("OPDSUrl"),u=L("PlaceholderLoading");return C(),B(ht,{"max-width":"30em"},{activator:k(({props:b})=>[s(ze,Q({id:"opdsButton",icon:"",size:"small",variant:"plain"},b,{onClick:e.loadOPDSURLs}),{default:k(()=>[s(W,null,{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[0]||(n[0]=E(" OPDS "))]),_:2},1040,["onClick"])]),default:k(()=>[e.opdsURLs?(C(),Y("div",Yt,[x("h2",null,[s(W,{size:"x=small",class:"inline"},{default:k(()=>[E(P(t.mdiRss),1)]),_:1}),n[1]||(n[1]=E(" OPDS "))]),s(l,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),s(l,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(C(),B(u,{key:1}))]),_:1})}const qt=U(Ft,[["render",Wt],["__scopeId","data-v-5646b9a1"]]),Xt={name:"RepoFooter",data(){return{mdiOpenInNew:Ie,mdiSourceRepository:ot}}},Gt={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function Zt(e,n,a,d,t,o){return C(),Y("a",Gt,[s(W,{id:"repoIcon",size:"x-small"},{default:k(()=>[E(P(t.mdiSourceRepository),1)]),_:1}),n[0]||(n[0]=E(" repository")),s(W,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:k(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const jt=U(Xt,[["render",Zt],["__scopeId","data-v-fae4fb39"]]),Kt=ae({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...de(),...oe(),...ve(),...Oe(),...me(),...se({tag:"footer"}),...ue()},"VFooter"),Ye=ne()({name:"VFooter",props:Kt(),setup(e,n){let{slots:a}=n;const d=Me(),{themeClasses:t}=ce(e),{backgroundColorClasses:o,backgroundColorStyles:l}=J(Z(e,"color")),{borderClasses:u}=he(e),{elevationClasses:b}=fe(e),{roundedClasses:_}=ge(e),c=M(32),{resizeRef:f}=nt(m=>{m.length&&(c.value=m[0].target.clientHeight)}),v=y(()=>e.height==="auto"?c.value:parseInt(e.height,10));return G(()=>e.app,()=>{const m=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:y(()=>"bottom"),layoutSize:v,elementSize:y(()=>e.height==="auto"?void 0:v.value),active:y(()=>e.app),absolute:Z(e,"absolute")});Le(()=>{d.value=m.layoutItemStyles.value})}),le(()=>s(e.tag,{ref:f,class:["v-footer",t.value,o.value,u.value,b.value,_.value,e.class],style:[l.value,e.app?d.value:{height:F(e.height)},e.style]},a)),{}}}),Qt={name:"VersionFooter",data(){return{mdiOpenInNew:Ie,mdiContentCopy:lt}},computed:{...ee(N,{versions:e=>e.versions}),...Ne(re,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...te(N,["loadVersions"]),semverGreaterThan(e,n){try{if(!e||!n)return!1;const a=e.split("."),d=n.split(".");for(const[t,o]of a.entries())if(+o>+d[t])return!0}catch(a){console.debug("compare codex versions",e,">",n,a)}return!1}}},Jt={id:"version"},ea={key:0,id:"latest"};function ta(e,n,a,d,t,o){return C(),B(Ye,{id:"version-footer",title:o.versionTitle},{default:k(()=>[x("div",Jt,"codex v"+P(e.versions.installed),1),o.outdated?(C(),Y("div",ea," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const aa=U(Qt,[["render",ta],["__scopeId","data-v-4787569d"]]);function oa(e){let{rootEl:n,isSticky:a,layoutItemStyles:d}=e;const t=M(!1),o=M(0),l=y(()=>{const _=typeof t.value=="boolean"?"top":t.value;return[a.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[_]:F(o.value)}:{top:d.value.top}]});Ue(()=>{X(a,_=>{_?window.addEventListener("scroll",b,{passive:!0}):window.removeEventListener("scroll",b)},{immediate:!0})}),He(()=>{window.removeEventListener("scroll",b)});let u=0;function b(){const _=u>window.scrollY?"up":"down",c=n.value.getBoundingClientRect(),f=parseFloat(d.value.top??0),v=window.scrollY-Math.max(0,o.value-f),m=c.height+Math.max(o.value,f)-window.scrollY-window.innerHeight,p=parseFloat(getComputedStyle(n.value).getPropertyValue("--v-body-scroll-y"))||0;c.height<window.innerHeight-f?(t.value="top",o.value=f):_==="up"&&t.value==="bottom"||_==="down"&&t.value==="top"?(o.value=window.scrollY+c.top-p,t.value=!0):_==="down"&&m<=0?(o.value=0,t.value="bottom"):_==="up"&&v<=0&&(p?t.value!=="top"&&(o.value=-v+p+f,t.value="top"):(o.value=c.top+v,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:l}}const na=100,la=20;function Ce(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Ve(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let n=0;for(let a=e.length-1;a>0;a--){if(e[a].t===e[a-1].t)continue;const d=Ce(n),t=(e[a].d-e[a-1].d)/(e[a].t-e[a-1].t);n+=(t-d)*Math.abs(t),a===e.length-1&&(n*=.5)}return Ce(n)*1e3}function sa(){const e={};function n(t){Array.from(t.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new st(la))).push([t.timeStamp,o])})}function a(t){Array.from(t.changedTouches).forEach(o=>{delete e[o.identifier]})}function d(t){var _;const o=(_=e[t])==null?void 0:_.values().reverse();if(!o)throw new Error(`No samples for touch id ${t}`);const l=o[0],u=[],b=[];for(const c of o){if(l[0]-c[0]>na)break;u.push({t:c[0],d:c[1].clientX}),b.push({t:c[0],d:c[1].clientY})}return{x:Ve(u),y:Ve(b),get direction(){const{x:c,y:f}=this,[v,m]=[Math.abs(c),Math.abs(f)];return v>m&&c>=0?"right":v>m&&c<=0?"left":m>v&&f>=0?"down":m>v&&f<=0?"up":ia()}}}return{addMovement:n,endTouch:a,getVelocity:d}}function ia(){throw new Error}function ra(e){let{el:n,isActive:a,isTemporary:d,width:t,touchless:o,position:l}=e;Ue(()=>{window.addEventListener("touchstart",R,{passive:!0}),window.addEventListener("touchmove",D,{passive:!1}),window.addEventListener("touchend",A,{passive:!0})}),He(()=>{window.removeEventListener("touchstart",R),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",A)});const u=y(()=>["left","right"].includes(l.value)),{addMovement:b,endTouch:_,getVelocity:c}=sa();let f=!1;const v=M(!1),m=M(0),p=M(0);let V;function $(i,r){return(l.value==="left"?i:l.value==="right"?document.documentElement.clientWidth-i:l.value==="top"?i:l.value==="bottom"?document.documentElement.clientHeight-i:z())-(r?t.value:0)}function I(i){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const h=l.value==="left"?(i-p.value)/t.value:l.value==="right"?(document.documentElement.clientWidth-i-p.value)/t.value:l.value==="top"?(i-p.value)/t.value:l.value==="bottom"?(document.documentElement.clientHeight-i-p.value)/t.value:z();return r?Math.max(0,Math.min(1,h)):h}function R(i){if(o.value)return;const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY,g=25,S=l.value==="left"?r<g:l.value==="right"?r>document.documentElement.clientWidth-g:l.value==="top"?h<g:l.value==="bottom"?h>document.documentElement.clientHeight-g:z(),w=a.value&&(l.value==="left"?r<t.value:l.value==="right"?r>document.documentElement.clientWidth-t.value:l.value==="top"?h<t.value:l.value==="bottom"?h>document.documentElement.clientHeight-t.value:z());(S||w||a.value&&d.value)&&(V=[r,h],p.value=$(u.value?r:h,a.value),m.value=I(u.value?r:h),f=p.value>-20&&p.value<80,_(i),b(i))}function D(i){const r=i.changedTouches[0].clientX,h=i.changedTouches[0].clientY;if(f){if(!i.cancelable){f=!1;return}const S=Math.abs(r-V[0]),w=Math.abs(h-V[1]);(u.value?S>w&&S>3:w>S&&w>3)?(v.value=!0,f=!1):(u.value?w:S)>3&&(f=!1)}if(!v.value)return;i.preventDefault(),b(i);const g=I(u.value?r:h,!1);m.value=Math.max(0,Math.min(1,g)),g>1?p.value=$(u.value?r:h,!0):g<0&&(p.value=$(u.value?r:h,!1))}function A(i){if(f=!1,!v.value)return;b(i),v.value=!1;const r=c(i.changedTouches[0].identifier),h=Math.abs(r.x),g=Math.abs(r.y);(u.value?h>g&&h>400:g>h&&g>3)?a.value=r.direction===({left:"right",right:"left",top:"down",bottom:"up"}[l.value]||z()):a.value=m.value>.5}const q=y(()=>v.value?{transform:l.value==="left"?`translateX(calc(-100% + ${m.value*t.value}px))`:l.value==="right"?`translateX(calc(100% - ${m.value*t.value}px))`:l.value==="top"?`translateY(calc(-100% + ${m.value*t.value}px))`:l.value==="bottom"?`translateY(calc(100% - ${m.value*t.value}px))`:z(),transition:"none"}:void 0);return G(v,()=>{var h,g;const i=((h=n.value)==null?void 0:h.style.transform)??null,r=((g=n.value)==null?void 0:g.style.transition)??null;Le(()=>{var S,w,H,j;(w=n.value)==null||w.style.setProperty("transform",((S=q.value)==null?void 0:S.transform)||"none"),(j=n.value)==null||j.style.setProperty("transition",((H=q.value)==null?void 0:H.transition)||null)}),it(()=>{var S,w;(S=n.value)==null||S.style.setProperty("transform",i),(w=n.value)==null||w.style.setProperty("transition",r)})}),{isDragging:v,dragProgress:m,dragStyles:q}}function z(){throw new Error}const ua=["start","end","left","right","top","bottom"],ca=ae({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ua.includes(e)},sticky:Boolean,...de(),...oe(),...ft(),...rt({mobile:null}),...ve(),...Oe(),...me(),...se({tag:"nav"}),...ue()},"VNavigationDrawer"),da=ne()({name:"VNavigationDrawer",props:ca(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,n){let{attrs:a,emit:d,slots:t}=n;const{isRtl:o}=Ee(),{themeClasses:l}=ce(e),{borderClasses:u}=he(e),{backgroundColorClasses:b,backgroundColorStyles:_}=J(Z(e,"color")),{elevationClasses:c}=fe(e),{displayClasses:f,mobile:v}=ut(e),{roundedClasses:m}=ge(e),p=gt(),V=ct(e,"modelValue",null,T=>!!T),{ssrBootStyles:$}=Vt(),{scopeId:I}=yt(),R=Me(),D=M(!1),{runOpenDelay:A,runCloseDelay:q}=_t(e,T=>{D.value=T}),i=y(()=>e.rail&&e.expandOnHover&&D.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),r=y(()=>bt(e.location,o.value)),h=y(()=>e.persistent),g=y(()=>!e.permanent&&(v.value||e.temporary)),S=y(()=>e.sticky&&!g.value&&r.value!=="bottom");G(()=>e.expandOnHover&&e.rail!=null,()=>{X(D,T=>d("update:rail",!T))}),G(()=>!e.disableResizeWatcher,()=>{X(g,T=>!e.permanent&&mt(()=>V.value=!T))}),G(()=>!e.disableRouteWatcher&&!!p,()=>{X(p.currentRoute,()=>g.value&&(V.value=!1))}),X(()=>e.permanent,T=>{T&&(V.value=!0)}),e.modelValue==null&&!g.value&&(V.value=e.permanent||!v.value);const{isDragging:w,dragProgress:H}=ra({el:R,isActive:V,isTemporary:g,width:i,touchless:Z(e,"touchless"),position:r}),j=y(()=>{const T=g.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):i.value;return w.value?T*H.value:T}),We=y(()=>["top","bottom"].includes(e.location)?0:i.value),{layoutItemStyles:ye,layoutItemScrimStyles:qe}=Ae({id:e.name,order:y(()=>parseInt(e.order,10)),position:r,layoutSize:j,elementSize:We,active:y(()=>V.value||w.value),disableTransitions:y(()=>w.value),absolute:y(()=>e.absolute||S.value&&typeof be.value!="string")}),{isStuck:be,stickyStyles:Xe}=oa({rootEl:R,isSticky:S,layoutItemStyles:ye}),_e=J(y(()=>typeof e.scrim=="string"?e.scrim:null)),Ge=y(()=>({...w.value?{opacity:H.value*.2,transition:"none"}:void 0,...qe.value}));return Re({VList:{bgColor:"transparent"}}),le(()=>{const T=t.image||e.image;return s(vt,null,[s(e.tag,Q({ref:R,onMouseenter:A,onMouseleave:q,class:["v-navigation-drawer",`v-navigation-drawer--${r.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":D.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":g.value,"v-navigation-drawer--persistent":h.value,"v-navigation-drawer--active":V.value,"v-navigation-drawer--sticky":S.value},l.value,b.value,u.value,f.value,c.value,m.value,e.class],style:[_.value,ye.value,$.value,Xe.value,e.style,["top","bottom"].includes(r.value)?{height:"auto"}:{}]},I,a),{default:()=>{var pe,we,Se;return[T&&s("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?s(K,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):s(Fe,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&s("div",{class:"v-navigation-drawer__prepend"},[(pe=t.prepend)==null?void 0:pe.call(t)]),s("div",{class:"v-navigation-drawer__content"},[(we=t.default)==null?void 0:we.call(t)]),t.append&&s("div",{class:"v-navigation-drawer__append"},[(Se=t.append)==null?void 0:Se.call(t)])]}}),s(dt,{name:"fade-transition"},{default:()=>[g.value&&(w.value||V.value)&&!!e.scrim&&s("div",Q({class:["v-navigation-drawer__scrim",_e.backgroundColorClasses.value],style:[Ge.value,_e.backgroundColorStyles.value],onClick:()=>{h.value||(V.value=!1)}},I),null)]})])}),{isStuck:be}}}),va=Pe(De(()=>Be(()=>import("./admin-menu-Jfmp_Yd8.js"),__vite__mapDeps([8,1,2,9,3,4,5,6,10,11,12,13,14,15,16,17,18,19])))),ma={name:"SettingsDrawer",components:{AuthMenu:kt,OPDSDialog:qt,RepoFooter:jt,VersionFooter:aa},props:{title:{type:String,required:!0}},data(){return{AdminMenu:va}},computed:{...Ne(re,["isUserAdmin","isAuthorized"]),...ee(N,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...te(N,["setSettingsDrawerOpen"])}},ha={class:"settingsDrawerContainer"},fa={id:"topBlock"},ga={class:"settingsHeader"},ya={id:"scrollFooter",class:"footer"};function ba(e,n,a,d,t,o){const l=L("AuthMenu"),u=L("OPDSDialog"),b=L("RepoFooter"),_=L("VersionFooter");return C(),B(da,{modelValue:o.open,"onUpdate:modelValue":n[0]||(n[0]=c=>o.open=c),"disable-route-watcher":"",location:"right",touchless:""},{append:k(()=>[s(Ye,{id:"bottomFooter",class:"footer"},{default:k(()=>[s(_)]),_:1})]),default:k(()=>[x("div",ha,[x("div",fa,[x("header",ga,[x("h3",null,P(a.title),1)]),s(ie),e.isAuthorized?Te(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(C(),B(ie,{key:1})):O("",!0),s(l),e.isUserAdmin?(C(),B(xe(t.AdminMenu),{key:2})):O("",!0),s(ie)]),x("div",ya,[e.isAuthorized?(C(),B(u,{key:0})):O("",!0),s(b)])])]),_:3},8,["modelValue"])}const xa=U(ma,[["render",ba],["__scopeId","data-v-0412ab42"]]);export{Pa as S,Rt as V,Da as a,xa as b,Dt as c,da as d};
@@ -1 +1 @@
1
- .statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-160b75a6]{font-size:small;color:rgb(var(--v-theme-textSecondary));background-color:rgb(var(--v-theme-background))}#schemaDoc>td[data-v-160b75a6]{border-bottom:none!important}
1
+ .statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-00c3cd2c]{font-size:small;color:rgb(var(--v-theme-textSecondary));background-color:rgb(var(--v-theme-background))}#schemaDoc>td[data-v-00c3cd2c]{border-bottom:none!important}
@@ -1 +1 @@
1
- .statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-160b75a6]{font-size:small;color:rgb(var(--v-theme-textSecondary));background-color:rgb(var(--v-theme-background))}#schemaDoc>td[data-v-160b75a6]{border-bottom:none!important}
1
+ .statBlock[data-v-4bb3ecd9]{display:inline-block;vertical-align:top;margin-bottom:20px;margin-right:40px}h3[data-v-4bb3ecd9]{margin-top:1em;text-align:center}.highlight-table[data-v-4bb3ecd9]{color:rgb(var(--v-theme-textSecondary))}.highlight-table tbody[data-v-4bb3ecd9]:nth-child(2n){background-color:rgb(var(--v-theme-background))!important}tr td[data-v-4bb3ecd9]:nth-child(2){text-align:right}.subtitleRow[data-v-4bb3ecd9]{height:28px!important;font-weight:700!important;background-color:rgb(var(--v-theme-surface))!important}.indent[data-v-4bb3ecd9]{padding-left:2em!important}#schemaDoc[data-v-00c3cd2c]{font-size:small;color:rgb(var(--v-theme-textSecondary));background-color:rgb(var(--v-theme-background))}#schemaDoc>td[data-v-00c3cd2c]{border-bottom:none!important}
@@ -1 +1 @@
1
- import{_ as g,S as j,o as c,A as u,L as l,C as b,a as d,w as k,F as p,B as h,n as w,ai as I,y,u as K,x as _,ba as L,bb as B,cg as P,z as T,m as E,r as C,E as D,ch as N,ci as R,cj as V,ck as v,b as x}from"./main-Ed96tESk.js";import{V as G}from"./VTable-Ci8_04Au.js";import{C as z}from"./confirm-dialog-X14gSw1w.js";import{c as U}from"./copy-to-clipboard-DoUvDJVx.js";import"./transition-CyIqQdeu.js";import"./VDialog-BVHV10WD.js";const F={name:"StatsTable",props:{title:{type:String,required:!0},items:{type:Object,required:!0}},data(){return{}},methods:{valueTable(e){return e&&typeof e=="object"?e:{}},tdClasses(e){return{indent:e[0]==="+"}},tdLabel(e){return e.replace(/^\+/,"")},nf(e){return typeof e=="number"?j.format(e):e}}},$={class:"statBlock"},H={key:0},M={colspan:"2",class:"subtitleRow"},q={key:1},X={class:"indent"};function Y(e,s,t,r,o,a){return c(),u("div",$,[l("h3",null,b(t.title),1),d(G,{class:"highlight-table"},{default:k(()=>[(c(!0),u(p,null,h(Object.entries(t.items),([n,i])=>(c(),u("tbody",{key:n},[typeof i=="object"?(c(),u("tr",H,[l("th",M,b(n),1)])):(c(),u("tr",q,[l("td",{class:w(a.tdClasses(n))},b(a.tdLabel(n)),3),l("td",null,b(a.nf(i)),1)])),(c(!0),u(p,null,h(Object.entries(a.valueTable(i)),([f,m])=>(c(),u("tr",{key:f},[l("td",X,b(f),1),l("td",null,b(a.nf(m)),1)]))),128))]))),128)),I(e.$slots,"default",{},void 0,!0)]),_:3})])}const J=g(F,[["render",Y],["__scopeId","data-v-4bb3ecd9"]]),S={topGroup:N,orderBy:R,fitTo:V,readingDirection:v},A={authGroupCount:"Authorization Groups",libraryCount:"Libraries",userAnonymousCount:"Anonymous Users",userRegisteredCount:"Registered Users"};Object.freeze(A);Object.freeze(S);const O=new Set(["storyArcNumbersCount","identifierTypesCount","contributorPersonsCount","contributorRolesCount"]);Object.freeze(O);const Q={name:"AdminTasksTab",components:{ConfirmDialog:z,StatsTable:J},data(){return{showTooltip:{show:!1},schemaHref:window.CODEX.API_V3_PATH+"#/api/api_v3_admin_stats_retrieve"}},computed:{...y(K,{}),...y(_,{stats:e=>e.stats}),clipBoardEnabled(){return location.prototcal=="https:"},apiTooltip(){return this.clipBoardEnabled},clipBoardIcon(){return this.showTooltip?L:B},platformTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.platform)){const o=this.keyToLabel(t),a=t==="system"?`${r.name} ${r.release}`:r;e[o]=a}return e},configTable(){var t;const e={};let s="";for(const[r,o]of Object.entries((t=this.stats)==null?void 0:t.config)){let a;if(r=="apiKey"){s=o;continue}else a=A[r];e[a]=o}return e["API Key"]=s,e},userSettingsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.sessions)){const o={},a=S[t];for(const[i,f]of Object.entries(r)){let m;a?m=a[P(i)]:m=i,o[m]=f}const n=this.keyToLabel(t);e[n]=o}return e},browserGroupsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.groups)){let o=this.keyToLabel(t);o!=="Series"&&(o+="s"),e[o]=r}return e},fileTypesTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.fileTypes)){const o=t==="unknown"?T(t):this.keyToLabel(t).toUpperCase();e[o]=r}return e},metadataTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.metadata)){let o=t==="countryCount"?"Countries":this.keyToLabel(t)+"s";O.has(t)&&(o=o.replace(/^\w+ /,"+")),e[o]=r}return e}},created(){this.loadStats()},methods:{...E(_,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},onClickAPIKey(){this.clipBoardEnabled&&U(this.stats.config.apiKey,this.showTooltip)},keyToLabel(e){return e=e.replace(/Count$/,""),T(e)}}},W={key:0,id:"stats"},Z={id:"schemaDoc"},ee={colspan:"2"},te=["href"],se={colspan:"2"};function ae(e,s,t,r,o,a){const n=C("StatsTable"),i=C("ConfirmDialog");return e.stats?(c(),u("div",W,[d(n,{title:"Platform",items:a.platformTable},null,8,["items"]),d(n,{title:"Config",items:a.configTable},{default:k(()=>[l("tbody",null,[l("tr",Z,[l("td",ee,[s[0]||(s[0]=x(" The only endpoint accessible by API Key is ")),l("a",{href:o.schemaHref,target:"_blank"},"/admin/stats",8,te)])]),l("tr",null,[l("td",se,[d(i,{"button-text":"Regenerate API Key","title-text":"Regenerate","object-name":"API Key","confirm-text":"Regenerate",onConfirm:a.regenAPIKey},null,8,["onConfirm"])])])])]),_:1},8,["items"]),d(n,{title:"User Settings",items:a.userSettingsTable},null,8,["items"]),d(n,{title:"Browser Groups",items:a.browserGroupsTable},null,8,["items"]),d(n,{title:"File Types",items:a.fileTypesTable},null,8,["items"]),d(n,{title:"Metadata",items:a.metadataTable},null,8,["items"])])):D("",!0)}const ue=g(Q,[["render",ae],["__scopeId","data-v-160b75a6"]]);export{ue as default};
1
+ import{_ as g,U as j,o as c,A as u,L as l,C as b,a as d,w as k,F as p,B as h,n as w,ak as I,y,u as K,x as _,be as L,bf as B,ch as P,z as T,m as E,r as C,E as x,a$ as D,ci as N,cj as R,ck as V,b as v}from"./main-BVKrDunc.js";import{V as G}from"./VTable-Cbq-yJos.js";import{C as U}from"./confirm-dialog-CME4gKSZ.js";import{c as z}from"./copy-to-clipboard-DoUvDJVx.js";import"./transition-DWVQ2EZ3.js";import"./VDialog-Db4tJYqR.js";const F={name:"StatsTable",props:{title:{type:String,required:!0},items:{type:Object,required:!0}},data(){return{}},methods:{valueTable(e){return e&&typeof e=="object"?e:{}},tdClasses(e){return{indent:e[0]==="+"}},tdLabel(e){return e.replace(/^\+/,"")},nf(e){return typeof e=="number"?j.format(e):e}}},$={class:"statBlock"},H={key:0},M={colspan:"2",class:"subtitleRow"},q={key:1},X={class:"indent"};function Y(e,s,t,r,o,a){return c(),u("div",$,[l("h3",null,b(t.title),1),d(G,{class:"highlight-table"},{default:k(()=>[(c(!0),u(p,null,h(Object.entries(t.items),([n,i])=>(c(),u("tbody",{key:n},[typeof i=="object"?(c(),u("tr",H,[l("th",M,b(n),1)])):(c(),u("tr",q,[l("td",{class:w(a.tdClasses(n))},b(a.tdLabel(n)),3),l("td",null,b(a.nf(i)),1)])),(c(!0),u(p,null,h(Object.entries(a.valueTable(i)),([f,m])=>(c(),u("tr",{key:f},[l("td",X,b(f),1),l("td",null,b(a.nf(m)),1)]))),128))]))),128)),I(e.$slots,"default",{},void 0,!0)]),_:3})])}const J=g(F,[["render",Y],["__scopeId","data-v-4bb3ecd9"]]),A={topGroup:D,orderBy:N,fitTo:R,readingDirection:V},O={authGroupCount:"Authorization Groups",libraryCount:"Libraries",userAnonymousCount:"Anonymous Users",userRegisteredCount:"Registered Users"};Object.freeze(O);Object.freeze(A);const S=new Set(["storyArcNumbersCount","identifierTypesCount","contributorPersonsCount","contributorRolesCount"]);Object.freeze(S);const Q={name:"AdminTasksTab",components:{ConfirmDialog:U,StatsTable:J},data(){return{showTooltip:{show:!1},schemaHref:window.CODEX.API_V3_PATH+"#/api/api_v3_admin_stats_retrieve"}},computed:{...y(K,{}),...y(_,{stats:e=>e.stats}),clipBoardEnabled(){return location.prototcal=="https:"},apiTooltip(){return this.clipBoardEnabled},clipBoardIcon(){return this.showTooltip?L:B},platformTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.platform)){const o=this.keyToLabel(t),a=t==="system"?`${r.name} ${r.release}`:r;e[o]=a}return e},configTable(){var t;const e={};let s="";for(const[r,o]of Object.entries((t=this.stats)==null?void 0:t.config)){let a;if(r=="apiKey"){s=o;continue}else a=O[r];e[a]=o}return e["API Key"]=s,e},userSettingsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.sessions)){const o={},a=A[t];for(const[i,f]of Object.entries(r)){let m;a?m=a[P(i)]:m=i,o[m]=f}const n=this.keyToLabel(t);e[n]=o}return e},browserGroupsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.groups)){let o=this.keyToLabel(t);o!=="Series"&&(o+="s"),e[o]=r}return e},fileTypesTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.fileTypes)){const o=t==="unknown"?T(t):this.keyToLabel(t).toUpperCase();e[o]=r}return e},metadataTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.metadata)){let o=t==="countryCount"?"Countries":this.keyToLabel(t)+"s";S.has(t)&&(o=o.replace(/^\w+ /,"+")),e[o]=r}return e}},created(){this.loadStats()},methods:{...E(_,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},onClickAPIKey(){this.clipBoardEnabled&&z(this.stats.config.apiKey,this.showTooltip)},keyToLabel(e){return e=e.replace(/Count$/,""),T(e)}}},W={key:0,id:"stats"},Z={id:"schemaDoc"},ee={colspan:"2"},te=["href"],se={colspan:"2"};function ae(e,s,t,r,o,a){const n=C("StatsTable"),i=C("ConfirmDialog");return e.stats?(c(),u("div",W,[d(n,{title:"Platform",items:a.platformTable},null,8,["items"]),d(n,{title:"Config",items:a.configTable},{default:k(()=>[l("tbody",null,[l("tr",Z,[l("td",ee,[s[0]||(s[0]=v(" The only endpoint accessible by API Key is ")),l("a",{href:o.schemaHref,target:"_blank"},"/admin/stats",8,te)])]),l("tr",null,[l("td",se,[d(i,{"button-text":"Regenerate API Key","title-text":"Regenerate",text:"API Key","confirm-text":"Regenerate",onConfirm:a.regenAPIKey},null,8,["onConfirm"])])])])]),_:1},8,["items"]),d(n,{title:"User Settings",items:a.userSettingsTable},null,8,["items"]),d(n,{title:"Browser Groups",items:a.browserGroupsTable},null,8,["items"]),d(n,{title:"File Types",items:a.fileTypesTable},null,8,["items"]),d(n,{title:"Metadata",items:a.metadataTable},null,8,["items"])])):x("",!0)}const ue=g(Q,[["render",ae],["__scopeId","data-v-00c3cd2c"]]);export{ue as default};
@@ -1 +1 @@
1
- import{_ as g,S as j,o as c,A as u,L as l,C as b,a as d,w as k,F as p,B as h,n as w,ai as I,y,u as K,x as _,ba as L,bb as B,cg as P,z as T,m as E,r as C,E as D,ch as N,ci as R,cj as V,ck as v,b as x}from"./main-Ed96tESk.js";import{V as G}from"./VTable-Ci8_04Au.js";import{C as z}from"./confirm-dialog-X14gSw1w.js";import{c as U}from"./copy-to-clipboard-DoUvDJVx.js";import"./transition-CyIqQdeu.js";import"./VDialog-BVHV10WD.js";const F={name:"StatsTable",props:{title:{type:String,required:!0},items:{type:Object,required:!0}},data(){return{}},methods:{valueTable(e){return e&&typeof e=="object"?e:{}},tdClasses(e){return{indent:e[0]==="+"}},tdLabel(e){return e.replace(/^\+/,"")},nf(e){return typeof e=="number"?j.format(e):e}}},$={class:"statBlock"},H={key:0},M={colspan:"2",class:"subtitleRow"},q={key:1},X={class:"indent"};function Y(e,s,t,r,o,a){return c(),u("div",$,[l("h3",null,b(t.title),1),d(G,{class:"highlight-table"},{default:k(()=>[(c(!0),u(p,null,h(Object.entries(t.items),([n,i])=>(c(),u("tbody",{key:n},[typeof i=="object"?(c(),u("tr",H,[l("th",M,b(n),1)])):(c(),u("tr",q,[l("td",{class:w(a.tdClasses(n))},b(a.tdLabel(n)),3),l("td",null,b(a.nf(i)),1)])),(c(!0),u(p,null,h(Object.entries(a.valueTable(i)),([f,m])=>(c(),u("tr",{key:f},[l("td",X,b(f),1),l("td",null,b(a.nf(m)),1)]))),128))]))),128)),I(e.$slots,"default",{},void 0,!0)]),_:3})])}const J=g(F,[["render",Y],["__scopeId","data-v-4bb3ecd9"]]),S={topGroup:N,orderBy:R,fitTo:V,readingDirection:v},A={authGroupCount:"Authorization Groups",libraryCount:"Libraries",userAnonymousCount:"Anonymous Users",userRegisteredCount:"Registered Users"};Object.freeze(A);Object.freeze(S);const O=new Set(["storyArcNumbersCount","identifierTypesCount","contributorPersonsCount","contributorRolesCount"]);Object.freeze(O);const Q={name:"AdminTasksTab",components:{ConfirmDialog:z,StatsTable:J},data(){return{showTooltip:{show:!1},schemaHref:window.CODEX.API_V3_PATH+"#/api/api_v3_admin_stats_retrieve"}},computed:{...y(K,{}),...y(_,{stats:e=>e.stats}),clipBoardEnabled(){return location.prototcal=="https:"},apiTooltip(){return this.clipBoardEnabled},clipBoardIcon(){return this.showTooltip?L:B},platformTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.platform)){const o=this.keyToLabel(t),a=t==="system"?`${r.name} ${r.release}`:r;e[o]=a}return e},configTable(){var t;const e={};let s="";for(const[r,o]of Object.entries((t=this.stats)==null?void 0:t.config)){let a;if(r=="apiKey"){s=o;continue}else a=A[r];e[a]=o}return e["API Key"]=s,e},userSettingsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.sessions)){const o={},a=S[t];for(const[i,f]of Object.entries(r)){let m;a?m=a[P(i)]:m=i,o[m]=f}const n=this.keyToLabel(t);e[n]=o}return e},browserGroupsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.groups)){let o=this.keyToLabel(t);o!=="Series"&&(o+="s"),e[o]=r}return e},fileTypesTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.fileTypes)){const o=t==="unknown"?T(t):this.keyToLabel(t).toUpperCase();e[o]=r}return e},metadataTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.metadata)){let o=t==="countryCount"?"Countries":this.keyToLabel(t)+"s";O.has(t)&&(o=o.replace(/^\w+ /,"+")),e[o]=r}return e}},created(){this.loadStats()},methods:{...E(_,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},onClickAPIKey(){this.clipBoardEnabled&&U(this.stats.config.apiKey,this.showTooltip)},keyToLabel(e){return e=e.replace(/Count$/,""),T(e)}}},W={key:0,id:"stats"},Z={id:"schemaDoc"},ee={colspan:"2"},te=["href"],se={colspan:"2"};function ae(e,s,t,r,o,a){const n=C("StatsTable"),i=C("ConfirmDialog");return e.stats?(c(),u("div",W,[d(n,{title:"Platform",items:a.platformTable},null,8,["items"]),d(n,{title:"Config",items:a.configTable},{default:k(()=>[l("tbody",null,[l("tr",Z,[l("td",ee,[s[0]||(s[0]=x(" The only endpoint accessible by API Key is ")),l("a",{href:o.schemaHref,target:"_blank"},"/admin/stats",8,te)])]),l("tr",null,[l("td",se,[d(i,{"button-text":"Regenerate API Key","title-text":"Regenerate","object-name":"API Key","confirm-text":"Regenerate",onConfirm:a.regenAPIKey},null,8,["onConfirm"])])])])]),_:1},8,["items"]),d(n,{title:"User Settings",items:a.userSettingsTable},null,8,["items"]),d(n,{title:"Browser Groups",items:a.browserGroupsTable},null,8,["items"]),d(n,{title:"File Types",items:a.fileTypesTable},null,8,["items"]),d(n,{title:"Metadata",items:a.metadataTable},null,8,["items"])])):D("",!0)}const ue=g(Q,[["render",ae],["__scopeId","data-v-160b75a6"]]);export{ue as default};
1
+ import{_ as g,U as j,o as c,A as u,L as l,C as b,a as d,w as k,F as p,B as h,n as w,ak as I,y,u as K,x as _,be as L,bf as B,ch as P,z as T,m as E,r as C,E as x,a$ as D,ci as N,cj as R,ck as V,b as v}from"./main-BVKrDunc.js";import{V as G}from"./VTable-Cbq-yJos.js";import{C as U}from"./confirm-dialog-CME4gKSZ.js";import{c as z}from"./copy-to-clipboard-DoUvDJVx.js";import"./transition-DWVQ2EZ3.js";import"./VDialog-Db4tJYqR.js";const F={name:"StatsTable",props:{title:{type:String,required:!0},items:{type:Object,required:!0}},data(){return{}},methods:{valueTable(e){return e&&typeof e=="object"?e:{}},tdClasses(e){return{indent:e[0]==="+"}},tdLabel(e){return e.replace(/^\+/,"")},nf(e){return typeof e=="number"?j.format(e):e}}},$={class:"statBlock"},H={key:0},M={colspan:"2",class:"subtitleRow"},q={key:1},X={class:"indent"};function Y(e,s,t,r,o,a){return c(),u("div",$,[l("h3",null,b(t.title),1),d(G,{class:"highlight-table"},{default:k(()=>[(c(!0),u(p,null,h(Object.entries(t.items),([n,i])=>(c(),u("tbody",{key:n},[typeof i=="object"?(c(),u("tr",H,[l("th",M,b(n),1)])):(c(),u("tr",q,[l("td",{class:w(a.tdClasses(n))},b(a.tdLabel(n)),3),l("td",null,b(a.nf(i)),1)])),(c(!0),u(p,null,h(Object.entries(a.valueTable(i)),([f,m])=>(c(),u("tr",{key:f},[l("td",X,b(f),1),l("td",null,b(a.nf(m)),1)]))),128))]))),128)),I(e.$slots,"default",{},void 0,!0)]),_:3})])}const J=g(F,[["render",Y],["__scopeId","data-v-4bb3ecd9"]]),A={topGroup:D,orderBy:N,fitTo:R,readingDirection:V},O={authGroupCount:"Authorization Groups",libraryCount:"Libraries",userAnonymousCount:"Anonymous Users",userRegisteredCount:"Registered Users"};Object.freeze(O);Object.freeze(A);const S=new Set(["storyArcNumbersCount","identifierTypesCount","contributorPersonsCount","contributorRolesCount"]);Object.freeze(S);const Q={name:"AdminTasksTab",components:{ConfirmDialog:U,StatsTable:J},data(){return{showTooltip:{show:!1},schemaHref:window.CODEX.API_V3_PATH+"#/api/api_v3_admin_stats_retrieve"}},computed:{...y(K,{}),...y(_,{stats:e=>e.stats}),clipBoardEnabled(){return location.prototcal=="https:"},apiTooltip(){return this.clipBoardEnabled},clipBoardIcon(){return this.showTooltip?L:B},platformTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.platform)){const o=this.keyToLabel(t),a=t==="system"?`${r.name} ${r.release}`:r;e[o]=a}return e},configTable(){var t;const e={};let s="";for(const[r,o]of Object.entries((t=this.stats)==null?void 0:t.config)){let a;if(r=="apiKey"){s=o;continue}else a=O[r];e[a]=o}return e["API Key"]=s,e},userSettingsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.sessions)){const o={},a=A[t];for(const[i,f]of Object.entries(r)){let m;a?m=a[P(i)]:m=i,o[m]=f}const n=this.keyToLabel(t);e[n]=o}return e},browserGroupsTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.groups)){let o=this.keyToLabel(t);o!=="Series"&&(o+="s"),e[o]=r}return e},fileTypesTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.fileTypes)){const o=t==="unknown"?T(t):this.keyToLabel(t).toUpperCase();e[o]=r}return e},metadataTable(){var s;const e={};for(const[t,r]of Object.entries((s=this.stats)==null?void 0:s.metadata)){let o=t==="countryCount"?"Countries":this.keyToLabel(t)+"s";S.has(t)&&(o=o.replace(/^\w+ /,"+")),e[o]=r}return e}},created(){this.loadStats()},methods:{...E(_,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},onClickAPIKey(){this.clipBoardEnabled&&z(this.stats.config.apiKey,this.showTooltip)},keyToLabel(e){return e=e.replace(/Count$/,""),T(e)}}},W={key:0,id:"stats"},Z={id:"schemaDoc"},ee={colspan:"2"},te=["href"],se={colspan:"2"};function ae(e,s,t,r,o,a){const n=C("StatsTable"),i=C("ConfirmDialog");return e.stats?(c(),u("div",W,[d(n,{title:"Platform",items:a.platformTable},null,8,["items"]),d(n,{title:"Config",items:a.configTable},{default:k(()=>[l("tbody",null,[l("tr",Z,[l("td",ee,[s[0]||(s[0]=v(" The only endpoint accessible by API Key is ")),l("a",{href:o.schemaHref,target:"_blank"},"/admin/stats",8,te)])]),l("tr",null,[l("td",se,[d(i,{"button-text":"Regenerate API Key","title-text":"Regenerate",text:"API Key","confirm-text":"Regenerate",onConfirm:a.regenAPIKey},null,8,["onConfirm"])])])])]),_:1},8,["items"]),d(n,{title:"User Settings",items:a.userSettingsTable},null,8,["items"]),d(n,{title:"Browser Groups",items:a.browserGroupsTable},null,8,["items"]),d(n,{title:"File Types",items:a.fileTypesTable},null,8,["items"]),d(n,{title:"Metadata",items:a.metadataTable},null,8,["items"])])):x("",!0)}const ue=g(Q,[["render",ae],["__scopeId","data-v-00c3cd2c"]]);export{ue as default};
@@ -1 +1 @@
1
- import{_ as f,y as v,u as p,m as _,x as b,r as k,A as s,L as i,C as o,F as l,B as n,o as e,n as y,c as d,w as g,b as C}from"./main-Ed96tESk.js";import{C as x}from"./confirm-dialog-X14gSw1w.js";import{V as R}from"./VDialog-BVHV10WD.js";import"./transition-CyIqQdeu.js";const S=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"},{value:"create_all_comic_covers",title:"Create All Comic Covers",desc:"Pre-generate covers for every comic in every library and all custom covers",confirm:"Are you sure?"},{value:"force_update_groups",title:"Update Group Timestamps",desc:"Force the update of group timestamps. Will bust the browser cache for browser views and covers."}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_optimize",title:"Optimize Search Index",desc:"Merge Search Index for optimal lookup time. Runs nightly."},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."},{value:"search_index_clear",title:"Clear Search Index",desc:"of all entries"},{value:"db_fts_integrity_check",title:"Integrity Check Search Index",desc:"Repairs Search Index on failure. Runs nightly"},{value:"db_fts_rebuild",title:"Repair Search Index",desc:"Probably faster than Rebuild if integrity check fails."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 OPTIMIZE and VACUUM pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_foreign_key_check",title:"Remove Illegal Foreign Keys",desc:"Check for and remove illegal foreign keys. Mark affected comics for update. Runs nightly."},{value:"db_integrity_check",title:"Check Database Integrity",desc:"Check logs for results. Runs nightly.",confirm:"Can take a while on large databases, Are you sure?"}]},{title:"Codex Software",tasks:[{value:"codex_latest_version",title:"Check for Codex Latest Version",desc:"Check PyPi for the latest version of Codex"},{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_db_custom_covers",title:"Remove Orphan Database Custom Covers",desc:"Remove Custom Covers from the db that no longer represent custom cover images on disk. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Cover Thumbnails",desc:"no longer have source comics or custom images. Runs nightly."},{value:"cleanup_bookmarks",title:"Remove Orphan Bookmarks",desc:"Owned by no session or user. Runs nightly."},{value:"adopt_folders",title:"Adopt Orphan Folders",desc:"Move orphaned folders from the top of the folder tree to under their correct parent. Runs nightly and at startup."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],w={name:"AdminTasksTab",components:{ConfirmDialog:x},data(){return{tasks:S}},computed:{...v(p,{formSuccess:t=>t.form.success,formErrors:t=>t.form.errors})},methods:{..._(b,["librarianTask"])}},I={id:"tasks"},A={key:0,id:"success"},T={key:1,id:"error"},L={key:2,id:"noRecentTask"},D={class:"taskBox"},B={class:"taskDesc"};function F(t,c,O,E,u,U){const h=k("ConfirmDialog");return e(),s("div",I,[i("div",null,[c[0]||(c[0]=i("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),i("span",null,[t.formSuccess?(e(),s("span",A,o(t.formSuccess),1)):t.formErrors&&t.formErrors.length>0?(e(),s("span",T,[(e(!0),s(l,null,n(t.formErrors,r=>(e(),s("span",{key:r},o(r),1))),128))])):(e(),s("span",L,"No recent task"))])]),(e(!0),s(l,null,n(u.tasks,r=>(e(),s("div",{key:r.title,"fixed-header":"",class:"taskGroup"},[i("h3",null,o(r.title),1),(e(!0),s(l,null,n(r.tasks,a=>(e(),s("div",{key:a.value,class:y(["trow",{selected:!1}])},[i("div",D,[a.confirm?(e(),d(h,{key:0,"button-text":a.title,"title-text":a.title,"object-name":a.confirm,"confirm-text":"Confirm",onConfirm:m=>t.librarianTask(a.value,a.title)},null,8,["button-text","title-text","object-name","onConfirm"])):(e(),d(R,{key:1,block:"",onClick:m=>t.librarianTask(a.value,a.title)},{default:g(()=>[C(o(a.title),1)]),_:2},1032,["onClick"])),i("div",B,o(a.desc),1)])]))),128))]))),128))])}const $=f(w,[["render",F],["__scopeId","data-v-12865971"]]);export{$ as default};
1
+ import{_ as f,y as v,u as p,m as _,x as k,r as b,A as s,L as i,C as o,F as l,B as n,o as e,n as y,c as d,w as g,b as C}from"./main-BVKrDunc.js";import{C as x}from"./confirm-dialog-CME4gKSZ.js";import{V as R}from"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";const S=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"},{value:"create_all_comic_covers",title:"Create All Comic Covers",desc:"Pre-generate covers for every comic in every library and all custom covers",confirm:"Are you sure?"},{value:"force_update_groups",title:"Update Group Timestamps",desc:"Force the update of group timestamps. Will bust the browser cache for browser views and covers."}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_optimize",title:"Optimize Search Index",desc:"Merge Search Index for optimal lookup time. Runs nightly."},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."},{value:"search_index_clear",title:"Clear Search Index",desc:"of all entries"},{value:"db_fts_integrity_check",title:"Integrity Check Search Index",desc:"Repairs Search Index on failure. Runs nightly"},{value:"db_fts_rebuild",title:"Repair Search Index",desc:"Probably faster than Rebuild if integrity check fails."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 OPTIMIZE and VACUUM pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_foreign_key_check",title:"Remove Illegal Foreign Keys",desc:"Check for and remove illegal foreign keys. Mark affected comics for update. Runs nightly."},{value:"db_integrity_check",title:"Check Database Integrity",desc:"Check logs for results. Runs nightly.",confirm:"Can take a while on large databases, Are you sure?"}]},{title:"Codex Software",tasks:[{value:"codex_latest_version",title:"Check for Codex Latest Version",desc:"Check PyPi for the latest version of Codex"},{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_db_custom_covers",title:"Remove Orphan Database Custom Covers",desc:"Remove Custom Covers from the db that no longer represent custom cover images on disk. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Cover Thumbnails",desc:"no longer have source comics or custom images. Runs nightly."},{value:"cleanup_bookmarks",title:"Remove Orphan Bookmarks",desc:"Owned by no session or user. Runs nightly."},{value:"adopt_folders",title:"Adopt Orphan Folders",desc:"Move orphaned folders from the top of the folder tree to under their correct parent. Runs nightly and at startup."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],w={name:"AdminTasksTab",components:{ConfirmDialog:x},data(){return{tasks:S}},computed:{...v(p,{formSuccess:t=>t.form.success,formErrors:t=>t.form.errors})},methods:{..._(k,["librarianTask"])}},I={id:"tasks"},A={key:0,id:"success"},T={key:1,id:"error"},L={key:2,id:"noRecentTask"},D={class:"taskBox"},B={class:"taskDesc"};function F(t,c,O,E,u,U){const h=b("ConfirmDialog");return e(),s("div",I,[i("div",null,[c[0]||(c[0]=i("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),i("span",null,[t.formSuccess?(e(),s("span",A,o(t.formSuccess),1)):t.formErrors&&t.formErrors.length>0?(e(),s("span",T,[(e(!0),s(l,null,n(t.formErrors,r=>(e(),s("span",{key:r},o(r),1))),128))])):(e(),s("span",L,"No recent task"))])]),(e(!0),s(l,null,n(u.tasks,r=>(e(),s("div",{key:r.title,"fixed-header":"",class:"taskGroup"},[i("h3",null,o(r.title),1),(e(!0),s(l,null,n(r.tasks,a=>(e(),s("div",{key:a.value,class:y(["trow",{selected:!1}])},[i("div",D,[a.confirm?(e(),d(h,{key:0,"button-text":a.title,"title-text":a.title,text:a.confirm,block:!0,"confirm-text":"Confirm",onConfirm:m=>t.librarianTask(a.value,a.title)},null,8,["button-text","title-text","text","onConfirm"])):(e(),d(R,{key:1,block:"",onClick:m=>t.librarianTask(a.value,a.title)},{default:g(()=>[C(o(a.title),1)]),_:2},1032,["onClick"])),i("div",B,o(a.desc),1)])]))),128))]))),128))])}const $=f(w,[["render",F],["__scopeId","data-v-c5281d1b"]]);export{$ as default};
@@ -1 +1 @@
1
- import{_ as f,y as v,u as p,m as _,x as b,r as k,A as s,L as i,C as o,F as l,B as n,o as e,n as y,c as d,w as g,b as C}from"./main-Ed96tESk.js";import{C as x}from"./confirm-dialog-X14gSw1w.js";import{V as R}from"./VDialog-BVHV10WD.js";import"./transition-CyIqQdeu.js";const S=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"},{value:"create_all_comic_covers",title:"Create All Comic Covers",desc:"Pre-generate covers for every comic in every library and all custom covers",confirm:"Are you sure?"},{value:"force_update_groups",title:"Update Group Timestamps",desc:"Force the update of group timestamps. Will bust the browser cache for browser views and covers."}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_optimize",title:"Optimize Search Index",desc:"Merge Search Index for optimal lookup time. Runs nightly."},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."},{value:"search_index_clear",title:"Clear Search Index",desc:"of all entries"},{value:"db_fts_integrity_check",title:"Integrity Check Search Index",desc:"Repairs Search Index on failure. Runs nightly"},{value:"db_fts_rebuild",title:"Repair Search Index",desc:"Probably faster than Rebuild if integrity check fails."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 OPTIMIZE and VACUUM pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_foreign_key_check",title:"Remove Illegal Foreign Keys",desc:"Check for and remove illegal foreign keys. Mark affected comics for update. Runs nightly."},{value:"db_integrity_check",title:"Check Database Integrity",desc:"Check logs for results. Runs nightly.",confirm:"Can take a while on large databases, Are you sure?"}]},{title:"Codex Software",tasks:[{value:"codex_latest_version",title:"Check for Codex Latest Version",desc:"Check PyPi for the latest version of Codex"},{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_db_custom_covers",title:"Remove Orphan Database Custom Covers",desc:"Remove Custom Covers from the db that no longer represent custom cover images on disk. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Cover Thumbnails",desc:"no longer have source comics or custom images. Runs nightly."},{value:"cleanup_bookmarks",title:"Remove Orphan Bookmarks",desc:"Owned by no session or user. Runs nightly."},{value:"adopt_folders",title:"Adopt Orphan Folders",desc:"Move orphaned folders from the top of the folder tree to under their correct parent. Runs nightly and at startup."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],w={name:"AdminTasksTab",components:{ConfirmDialog:x},data(){return{tasks:S}},computed:{...v(p,{formSuccess:t=>t.form.success,formErrors:t=>t.form.errors})},methods:{..._(b,["librarianTask"])}},I={id:"tasks"},A={key:0,id:"success"},T={key:1,id:"error"},L={key:2,id:"noRecentTask"},D={class:"taskBox"},B={class:"taskDesc"};function F(t,c,O,E,u,U){const h=k("ConfirmDialog");return e(),s("div",I,[i("div",null,[c[0]||(c[0]=i("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),i("span",null,[t.formSuccess?(e(),s("span",A,o(t.formSuccess),1)):t.formErrors&&t.formErrors.length>0?(e(),s("span",T,[(e(!0),s(l,null,n(t.formErrors,r=>(e(),s("span",{key:r},o(r),1))),128))])):(e(),s("span",L,"No recent task"))])]),(e(!0),s(l,null,n(u.tasks,r=>(e(),s("div",{key:r.title,"fixed-header":"",class:"taskGroup"},[i("h3",null,o(r.title),1),(e(!0),s(l,null,n(r.tasks,a=>(e(),s("div",{key:a.value,class:y(["trow",{selected:!1}])},[i("div",D,[a.confirm?(e(),d(h,{key:0,"button-text":a.title,"title-text":a.title,"object-name":a.confirm,"confirm-text":"Confirm",onConfirm:m=>t.librarianTask(a.value,a.title)},null,8,["button-text","title-text","object-name","onConfirm"])):(e(),d(R,{key:1,block:"",onClick:m=>t.librarianTask(a.value,a.title)},{default:g(()=>[C(o(a.title),1)]),_:2},1032,["onClick"])),i("div",B,o(a.desc),1)])]))),128))]))),128))])}const $=f(w,[["render",F],["__scopeId","data-v-12865971"]]);export{$ as default};
1
+ import{_ as f,y as v,u as p,m as _,x as k,r as b,A as s,L as i,C as o,F as l,B as n,o as e,n as y,c as d,w as g,b as C}from"./main-BVKrDunc.js";import{C as x}from"./confirm-dialog-CME4gKSZ.js";import{V as R}from"./VDialog-Db4tJYqR.js";import"./transition-DWVQ2EZ3.js";const S=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"},{value:"create_all_comic_covers",title:"Create All Comic Covers",desc:"Pre-generate covers for every comic in every library and all custom covers",confirm:"Are you sure?"},{value:"force_update_groups",title:"Update Group Timestamps",desc:"Force the update of group timestamps. Will bust the browser cache for browser views and covers."}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_optimize",title:"Optimize Search Index",desc:"Merge Search Index for optimal lookup time. Runs nightly."},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."},{value:"search_index_clear",title:"Clear Search Index",desc:"of all entries"},{value:"db_fts_integrity_check",title:"Integrity Check Search Index",desc:"Repairs Search Index on failure. Runs nightly"},{value:"db_fts_rebuild",title:"Repair Search Index",desc:"Probably faster than Rebuild if integrity check fails."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 OPTIMIZE and VACUUM pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_foreign_key_check",title:"Remove Illegal Foreign Keys",desc:"Check for and remove illegal foreign keys. Mark affected comics for update. Runs nightly."},{value:"db_integrity_check",title:"Check Database Integrity",desc:"Check logs for results. Runs nightly.",confirm:"Can take a while on large databases, Are you sure?"}]},{title:"Codex Software",tasks:[{value:"codex_latest_version",title:"Check for Codex Latest Version",desc:"Check PyPi for the latest version of Codex"},{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_db_custom_covers",title:"Remove Orphan Database Custom Covers",desc:"Remove Custom Covers from the db that no longer represent custom cover images on disk. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Cover Thumbnails",desc:"no longer have source comics or custom images. Runs nightly."},{value:"cleanup_bookmarks",title:"Remove Orphan Bookmarks",desc:"Owned by no session or user. Runs nightly."},{value:"adopt_folders",title:"Adopt Orphan Folders",desc:"Move orphaned folders from the top of the folder tree to under their correct parent. Runs nightly and at startup."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],w={name:"AdminTasksTab",components:{ConfirmDialog:x},data(){return{tasks:S}},computed:{...v(p,{formSuccess:t=>t.form.success,formErrors:t=>t.form.errors})},methods:{..._(k,["librarianTask"])}},I={id:"tasks"},A={key:0,id:"success"},T={key:1,id:"error"},L={key:2,id:"noRecentTask"},D={class:"taskBox"},B={class:"taskDesc"};function F(t,c,O,E,u,U){const h=b("ConfirmDialog");return e(),s("div",I,[i("div",null,[c[0]||(c[0]=i("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),i("span",null,[t.formSuccess?(e(),s("span",A,o(t.formSuccess),1)):t.formErrors&&t.formErrors.length>0?(e(),s("span",T,[(e(!0),s(l,null,n(t.formErrors,r=>(e(),s("span",{key:r},o(r),1))),128))])):(e(),s("span",L,"No recent task"))])]),(e(!0),s(l,null,n(u.tasks,r=>(e(),s("div",{key:r.title,"fixed-header":"",class:"taskGroup"},[i("h3",null,o(r.title),1),(e(!0),s(l,null,n(r.tasks,a=>(e(),s("div",{key:a.value,class:y(["trow",{selected:!1}])},[i("div",D,[a.confirm?(e(),d(h,{key:0,"button-text":a.title,"title-text":a.title,text:a.confirm,block:!0,"confirm-text":"Confirm",onConfirm:m=>t.librarianTask(a.value,a.title)},null,8,["button-text","title-text","text","onConfirm"])):(e(),d(R,{key:1,block:"",onClick:m=>t.librarianTask(a.value,a.title)},{default:g(()=>[C(o(a.title),1)]),_:2},1032,["onClick"])),i("div",B,o(a.desc),1)])]))),128))]))),128))])}const $=f(w,[["render",F],["__scopeId","data-v-c5281d1b"]]);export{$ as default};
@@ -0,0 +1 @@
1
+ #lastTaskLabel[data-v-c5281d1b]{margin-right:1em}#success[data-v-c5281d1b]{color:rgb(var(--v-theme-success))}#error[data-v-c5281d1b]{color:rgb(var(--v-theme-error))}#noRecentTask[data-v-c5281d1b]{color:rgb(var(--v-theme-textDisabled))}.taskGroup[data-v-c5281d1b]{margin-top:1em}.taskBox[data-v-c5281d1b]{padding:12px;margin:10px;border-radius:5px;background-color:rgb(var(--v-theme-surface-light))}.taskDesc[data-v-c5281d1b]{vertical-align:top;color:rgb(var(--v-theme-textSecondary));padding-top:.25em}#tasks[data-v-c5281d1b]{max-width:512px;margin-left:auto;margin-right:auto}
@@ -1,2 +1,2 @@
1
- A@dp^��v��T��u��HJ�*���|���"�W�af��]A�� T�Z�]U�>�(�j���:1�=���m-eB�Bp��fHI�?��BX(�a�%
1
+ A@dp^��v��T��u��HJ�*���|���"�W�af��]A�� T�Z�]U�>@�J������:1�=���m-eB�Bp��fHI�?��BX(�a�%
2
2
  ��� P�� U�����Vh���ċo��jL_��\j�����g��Z* �@��W
@@ -0,0 +1 @@
1
+ #lastTaskLabel[data-v-c5281d1b]{margin-right:1em}#success[data-v-c5281d1b]{color:rgb(var(--v-theme-success))}#error[data-v-c5281d1b]{color:rgb(var(--v-theme-error))}#noRecentTask[data-v-c5281d1b]{color:rgb(var(--v-theme-textDisabled))}.taskGroup[data-v-c5281d1b]{margin-top:1em}.taskBox[data-v-c5281d1b]{padding:12px;margin:10px;border-radius:5px;background-color:rgb(var(--v-theme-surface-light))}.taskDesc[data-v-c5281d1b]{vertical-align:top;color:rgb(var(--v-theme-textSecondary));padding-top:.25em}#tasks[data-v-c5281d1b]{max-width:512px;margin-left:auto;margin-right:auto}
@@ -1,2 +1,2 @@
1
- A@dp^��v��T��u��HJ�*���|���"�W�af��]A�� T�Z�]U�>�(�j���:1�=���m-eB�Bp��fHI�?��BX(�a�%
1
+ A@dp^��v��T��u��HJ�*���|���"�W�af��]A�� T�Z�]U�>@�J������:1�=���m-eB�Bp��fHI�?��BX(�a�%
2
2
  ��� P�� U�����Vh���ċo��jL_��\j�����g��Z* �@��W
@@ -1 +1 @@
1
- import{p as v,ce as S,f as C,cn as z,cs as $,cx as E,cy as j,cz as M,cA as O,cl as Y,q as d,a0 as X,W as q,aP as F,g as A,e as K,aQ as G,cB as Q,t as U,h as J,cC as Z,cD as ee,a as te,s as ne,cE as x,c5 as ie,i as se,cd as ae,bp as oe}from"./main-Ed96tESk.js";const re=[null,"default","comfortable","compact"],_e=v({density:{type:String,default:"default",validator:e=>re.includes(e)}},"density");function be(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return{densityClasses:C(()=>`${t}--density-${e.density}`)}}const ce=v({tag:{type:String,default:"div"}},"tag");function N(e){return $(()=>{const t=[],n={};if(e.value.background)if(E(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&j(e.value.background)){const i=M(e.value.background);if(i.a==null||i.a===1){const s=O(i);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(E(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function le(e,t){const n=C(()=>({text:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{textColorClasses:i,textColorStyles:s}}function we(e,t){const n=C(()=>({background:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{backgroundColorClasses:i,backgroundColorStyles:s}}const ue=["x-small","small","default","large","x-large"],de=v({size:{type:[String,Number],default:"default"}},"size");function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return $(()=>{let n,i;return Y(ue,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:d(e.size),height:d(e.size)}),{sizeClasses:n,sizeStyles:i}})}const pe=v({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:X,...q(),...de(),...ce({tag:"i"}),...F()},"VIcon"),Te=A()({name:"VIcon",props:pe(),setup(e,t){let{attrs:n,slots:i}=t;const s=K(),{themeClasses:a}=G(e),{iconData:o}=Q(C(()=>s.value||e.icon)),{sizeClasses:r}=me(e),{textColorClasses:u,textColorStyles:h}=le(U(e,"color"));return J(()=>{var p,f;const m=(p=i.default)==null?void 0:p.call(i);m&&(s.value=(f=Z(m).filter(b=>b.type===ee&&b.children&&typeof b.children=="string")[0])==null?void 0:f.children);const l=!!(n.onClick||n.onClickOnce);return te(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,r.value,u.value,{"v-icon--clickable":l,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[r.value?void 0:{fontSize:d(e.size),height:d(e.size),width:d(e.size)},h.value,e.style],role:l?"button":void 0,"aria-hidden":!l,tabindex:l?e.disabled?-1:0:void 0},{default:()=>[m]})}),{}}}),Ee=v({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function xe(e){return{dimensionStyles:C(()=>{const n={},i=d(e.height),s=d(e.maxHeight),a=d(e.maxWidth),o=d(e.minHeight),r=d(e.minWidth),u=d(e.width);return i!=null&&(n.height=i),s!=null&&(n.maxHeight=s),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),r!=null&&(n.minWidth=r),u!=null&&(n.width=u),n})}}const w=Symbol("rippleStop"),fe=80;function k(e,t){e.style.transform=t,e.style.webkitTransform=t}function T(e){return e.constructor.name==="TouchEvent"}function P(e){return e.constructor.name==="KeyboardEvent"}const he=function(e,t){var l;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,s=0;if(!P(e)){const p=t.getBoundingClientRect(),f=T(e)?e.touches[e.touches.length-1]:e;i=f.clientX-p.left,s=f.clientY-p.top}let a=0,o=.3;(l=t._ripple)!=null&&l.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(s-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-a*2)/2}px`,u=`${(t.clientHeight-a*2)/2}px`,h=n.center?r:`${i-a}px`,m=n.center?u:`${s-a}px`;return{radius:a,scale:o,x:h,y:m,centerX:r,centerY:u}},_={show(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((f=t==null?void 0:t._ripple)!=null&&f.enabled))return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:r,y:u,centerX:h,centerY:m}=he(e,t,n),l=`${a*2}px`;s.className="v-ripple__animation",s.style.width=l,s.style.height=l,t.appendChild(i);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),k(s,`translate(${r}, ${u}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),k(s,`translate(${h}, ${m}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.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 i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var r;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=n.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function H(e){return typeof e>"u"||!!e}function g(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[w])){if(e[w]=!0,T(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||P(e),n._ripple.class&&(t.class=n._ripple.class),T(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},fe)}else _.show(e,n,t)}}function L(e){e[w]=!0}function c(e){const t=e.currentTarget;if(t!=null&&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(()=>{c(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),_.hide(t)}}function R(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let y=!1;function W(e){!y&&(e.keyCode===x.enter||e.keyCode===x.space)&&(y=!0,g(e))}function V(e){y=!1,c(e)}function B(e){y&&(y=!1,c(e))}function I(e,t,n){const{value:i,modifiers:s}=t,a=H(i);if(a||_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=s.center,e._ripple.circle=s.circle,ne(i)&&i.class&&(e._ripple.class=i.class),a&&!n){if(s.stop){e.addEventListener("touchstart",L,{passive:!0}),e.addEventListener("mousedown",L);return}e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchend",c,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),e.addEventListener("touchcancel",c),e.addEventListener("mousedown",g),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",c),e.addEventListener("keydown",W),e.addEventListener("keyup",V),e.addEventListener("blur",B),e.addEventListener("dragstart",c,{passive:!0})}else!a&&n&&D(e)}function D(e){e.removeEventListener("mousedown",g),e.removeEventListener("touchstart",g),e.removeEventListener("touchend",c),e.removeEventListener("touchmove",R),e.removeEventListener("touchcancel",c),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",c),e.removeEventListener("keydown",W),e.removeEventListener("keyup",V),e.removeEventListener("dragstart",c),e.removeEventListener("blur",B)}function ve(e,t){I(e,t,!1)}function ge(e){delete e._ripple,D(e)}function ye(e,t){if(t.value===t.oldValue)return;const n=H(t.oldValue);I(e,t,n)}const ke={mounted:ve,unmounted:ge,updated:ye},Le=v({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Se=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:s,group:a,...o}=e,{component:r=a?ae:oe,...u}=typeof i=="object"?i:{};return ie(r,se(typeof i=="string"?{name:s?"":i}:u,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:a}).filter(h=>{let[m,l]=h;return l!==void 0})),o),n)};export{Se as M,ke as R,Te as V,ce as a,be as b,we as c,Ee as d,Le as e,xe as f,de as g,me as h,N as i,_e as m,le as u};
1
+ import{p as v,ce as S,f as C,cn as z,cv as $,cA as E,cB as Y,cC as j,cD as M,cl as O,q as d,a2 as F,Y as X,aQ as q,g as A,e as G,aR as K,cE as Q,t as U,h as J,cF as Z,cG as ee,a as te,s as ne,cH as k,cc as ie,i as se,cb as ae,bt as oe}from"./main-BVKrDunc.js";const re=[null,"default","comfortable","compact"],_e=v({density:{type:String,default:"default",validator:e=>re.includes(e)}},"density");function be(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return{densityClasses:C(()=>`${t}--density-${e.density}`)}}const ce=v({tag:{type:String,default:"div"}},"tag");function N(e){return $(()=>{const t=[],n={};if(e.value.background)if(E(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&Y(e.value.background)){const i=j(e.value.background);if(i.a==null||i.a===1){const s=M(i);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(E(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function le(e,t){const n=C(()=>({text:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{textColorClasses:i,textColorStyles:s}}function we(e,t){const n=C(()=>({background:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{backgroundColorClasses:i,backgroundColorStyles:s}}const ue=["x-small","small","default","large","x-large"],de=v({size:{type:[String,Number],default:"default"}},"size");function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return $(()=>{let n,i;return O(ue,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:d(e.size),height:d(e.size)}),{sizeClasses:n,sizeStyles:i}})}const pe=v({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:F,...X(),...de(),...ce({tag:"i"}),...q()},"VIcon"),Te=A()({name:"VIcon",props:pe(),setup(e,t){let{attrs:n,slots:i}=t;const s=G(),{themeClasses:a}=K(e),{iconData:o}=Q(C(()=>s.value||e.icon)),{sizeClasses:r}=me(e),{textColorClasses:u,textColorStyles:h}=le(U(e,"color"));return J(()=>{var p,f;const m=(p=i.default)==null?void 0:p.call(i);m&&(s.value=(f=Z(m).filter(b=>b.type===ee&&b.children&&typeof b.children=="string")[0])==null?void 0:f.children);const l=!!(n.onClick||n.onClickOnce);return te(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,r.value,u.value,{"v-icon--clickable":l,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[r.value?void 0:{fontSize:d(e.size),height:d(e.size),width:d(e.size)},h.value,e.style],role:l?"button":void 0,"aria-hidden":!l,tabindex:l?e.disabled?-1:0:void 0},{default:()=>[m]})}),{}}}),Ee=v({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function ke(e){return{dimensionStyles:C(()=>{const n={},i=d(e.height),s=d(e.maxHeight),a=d(e.maxWidth),o=d(e.minHeight),r=d(e.minWidth),u=d(e.width);return i!=null&&(n.height=i),s!=null&&(n.maxHeight=s),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),r!=null&&(n.minWidth=r),u!=null&&(n.width=u),n})}}const w=Symbol("rippleStop"),fe=80;function x(e,t){e.style.transform=t,e.style.webkitTransform=t}function T(e){return e.constructor.name==="TouchEvent"}function P(e){return e.constructor.name==="KeyboardEvent"}const he=function(e,t){var l;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,s=0;if(!P(e)){const p=t.getBoundingClientRect(),f=T(e)?e.touches[e.touches.length-1]:e;i=f.clientX-p.left,s=f.clientY-p.top}let a=0,o=.3;(l=t._ripple)!=null&&l.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(s-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-a*2)/2}px`,u=`${(t.clientHeight-a*2)/2}px`,h=n.center?r:`${i-a}px`,m=n.center?u:`${s-a}px`;return{radius:a,scale:o,x:h,y:m,centerX:r,centerY:u}},_={show(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((f=t==null?void 0:t._ripple)!=null&&f.enabled))return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:r,y:u,centerX:h,centerY:m}=he(e,t,n),l=`${a*2}px`;s.className="v-ripple__animation",s.style.width=l,s.style.height=l,t.appendChild(i);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),x(s,`translate(${r}, ${u}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),x(s,`translate(${h}, ${m}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.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 i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var r;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=n.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function H(e){return typeof e>"u"||!!e}function g(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[w])){if(e[w]=!0,T(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||P(e),n._ripple.class&&(t.class=n._ripple.class),T(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},fe)}else _.show(e,n,t)}}function L(e){e[w]=!0}function c(e){const t=e.currentTarget;if(t!=null&&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(()=>{c(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),_.hide(t)}}function R(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let y=!1;function W(e){!y&&(e.keyCode===k.enter||e.keyCode===k.space)&&(y=!0,g(e))}function V(e){y=!1,c(e)}function B(e){y&&(y=!1,c(e))}function I(e,t,n){const{value:i,modifiers:s}=t,a=H(i);if(a||_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=s.center,e._ripple.circle=s.circle,ne(i)&&i.class&&(e._ripple.class=i.class),a&&!n){if(s.stop){e.addEventListener("touchstart",L,{passive:!0}),e.addEventListener("mousedown",L);return}e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchend",c,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),e.addEventListener("touchcancel",c),e.addEventListener("mousedown",g),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",c),e.addEventListener("keydown",W),e.addEventListener("keyup",V),e.addEventListener("blur",B),e.addEventListener("dragstart",c,{passive:!0})}else!a&&n&&D(e)}function D(e){e.removeEventListener("mousedown",g),e.removeEventListener("touchstart",g),e.removeEventListener("touchend",c),e.removeEventListener("touchmove",R),e.removeEventListener("touchcancel",c),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",c),e.removeEventListener("keydown",W),e.removeEventListener("keyup",V),e.removeEventListener("dragstart",c),e.removeEventListener("blur",B)}function ve(e,t){I(e,t,!1)}function ge(e){delete e._ripple,D(e)}function ye(e,t){if(t.value===t.oldValue)return;const n=H(t.oldValue);I(e,t,n)}const xe={mounted:ve,unmounted:ge,updated:ye},Le=v({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Se=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:s,group:a,...o}=e,{component:r=a?ae:oe,...u}=typeof i=="object"?i:{};return ie(r,se(typeof i=="string"?{name:s?"":i}:u,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:a}).filter(h=>{let[m,l]=h;return l!==void 0})),o),n)};export{Se as M,xe as R,Te as V,ce as a,be as b,we as c,Ee as d,Le as e,ke as f,de as g,me as h,N as i,_e as m,le as u};
@@ -1 +1 @@
1
- import{p as v,ce as S,f as C,cn as z,cs as $,cx as E,cy as j,cz as M,cA as O,cl as Y,q as d,a0 as X,W as q,aP as F,g as A,e as K,aQ as G,cB as Q,t as U,h as J,cC as Z,cD as ee,a as te,s as ne,cE as x,c5 as ie,i as se,cd as ae,bp as oe}from"./main-Ed96tESk.js";const re=[null,"default","comfortable","compact"],_e=v({density:{type:String,default:"default",validator:e=>re.includes(e)}},"density");function be(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return{densityClasses:C(()=>`${t}--density-${e.density}`)}}const ce=v({tag:{type:String,default:"div"}},"tag");function N(e){return $(()=>{const t=[],n={};if(e.value.background)if(E(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&j(e.value.background)){const i=M(e.value.background);if(i.a==null||i.a===1){const s=O(i);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(E(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function le(e,t){const n=C(()=>({text:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{textColorClasses:i,textColorStyles:s}}function we(e,t){const n=C(()=>({background:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{backgroundColorClasses:i,backgroundColorStyles:s}}const ue=["x-small","small","default","large","x-large"],de=v({size:{type:[String,Number],default:"default"}},"size");function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return $(()=>{let n,i;return Y(ue,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:d(e.size),height:d(e.size)}),{sizeClasses:n,sizeStyles:i}})}const pe=v({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:X,...q(),...de(),...ce({tag:"i"}),...F()},"VIcon"),Te=A()({name:"VIcon",props:pe(),setup(e,t){let{attrs:n,slots:i}=t;const s=K(),{themeClasses:a}=G(e),{iconData:o}=Q(C(()=>s.value||e.icon)),{sizeClasses:r}=me(e),{textColorClasses:u,textColorStyles:h}=le(U(e,"color"));return J(()=>{var p,f;const m=(p=i.default)==null?void 0:p.call(i);m&&(s.value=(f=Z(m).filter(b=>b.type===ee&&b.children&&typeof b.children=="string")[0])==null?void 0:f.children);const l=!!(n.onClick||n.onClickOnce);return te(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,r.value,u.value,{"v-icon--clickable":l,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[r.value?void 0:{fontSize:d(e.size),height:d(e.size),width:d(e.size)},h.value,e.style],role:l?"button":void 0,"aria-hidden":!l,tabindex:l?e.disabled?-1:0:void 0},{default:()=>[m]})}),{}}}),Ee=v({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function xe(e){return{dimensionStyles:C(()=>{const n={},i=d(e.height),s=d(e.maxHeight),a=d(e.maxWidth),o=d(e.minHeight),r=d(e.minWidth),u=d(e.width);return i!=null&&(n.height=i),s!=null&&(n.maxHeight=s),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),r!=null&&(n.minWidth=r),u!=null&&(n.width=u),n})}}const w=Symbol("rippleStop"),fe=80;function k(e,t){e.style.transform=t,e.style.webkitTransform=t}function T(e){return e.constructor.name==="TouchEvent"}function P(e){return e.constructor.name==="KeyboardEvent"}const he=function(e,t){var l;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,s=0;if(!P(e)){const p=t.getBoundingClientRect(),f=T(e)?e.touches[e.touches.length-1]:e;i=f.clientX-p.left,s=f.clientY-p.top}let a=0,o=.3;(l=t._ripple)!=null&&l.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(s-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-a*2)/2}px`,u=`${(t.clientHeight-a*2)/2}px`,h=n.center?r:`${i-a}px`,m=n.center?u:`${s-a}px`;return{radius:a,scale:o,x:h,y:m,centerX:r,centerY:u}},_={show(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((f=t==null?void 0:t._ripple)!=null&&f.enabled))return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:r,y:u,centerX:h,centerY:m}=he(e,t,n),l=`${a*2}px`;s.className="v-ripple__animation",s.style.width=l,s.style.height=l,t.appendChild(i);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),k(s,`translate(${r}, ${u}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),k(s,`translate(${h}, ${m}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.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 i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var r;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=n.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function H(e){return typeof e>"u"||!!e}function g(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[w])){if(e[w]=!0,T(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||P(e),n._ripple.class&&(t.class=n._ripple.class),T(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},fe)}else _.show(e,n,t)}}function L(e){e[w]=!0}function c(e){const t=e.currentTarget;if(t!=null&&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(()=>{c(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),_.hide(t)}}function R(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let y=!1;function W(e){!y&&(e.keyCode===x.enter||e.keyCode===x.space)&&(y=!0,g(e))}function V(e){y=!1,c(e)}function B(e){y&&(y=!1,c(e))}function I(e,t,n){const{value:i,modifiers:s}=t,a=H(i);if(a||_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=s.center,e._ripple.circle=s.circle,ne(i)&&i.class&&(e._ripple.class=i.class),a&&!n){if(s.stop){e.addEventListener("touchstart",L,{passive:!0}),e.addEventListener("mousedown",L);return}e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchend",c,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),e.addEventListener("touchcancel",c),e.addEventListener("mousedown",g),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",c),e.addEventListener("keydown",W),e.addEventListener("keyup",V),e.addEventListener("blur",B),e.addEventListener("dragstart",c,{passive:!0})}else!a&&n&&D(e)}function D(e){e.removeEventListener("mousedown",g),e.removeEventListener("touchstart",g),e.removeEventListener("touchend",c),e.removeEventListener("touchmove",R),e.removeEventListener("touchcancel",c),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",c),e.removeEventListener("keydown",W),e.removeEventListener("keyup",V),e.removeEventListener("dragstart",c),e.removeEventListener("blur",B)}function ve(e,t){I(e,t,!1)}function ge(e){delete e._ripple,D(e)}function ye(e,t){if(t.value===t.oldValue)return;const n=H(t.oldValue);I(e,t,n)}const ke={mounted:ve,unmounted:ge,updated:ye},Le=v({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Se=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:s,group:a,...o}=e,{component:r=a?ae:oe,...u}=typeof i=="object"?i:{};return ie(r,se(typeof i=="string"?{name:s?"":i}:u,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:a}).filter(h=>{let[m,l]=h;return l!==void 0})),o),n)};export{Se as M,ke as R,Te as V,ce as a,be as b,we as c,Ee as d,Le as e,xe as f,de as g,me as h,N as i,_e as m,le as u};
1
+ import{p as v,ce as S,f as C,cn as z,cv as $,cA as E,cB as Y,cC as j,cD as M,cl as O,q as d,a2 as F,Y as X,aQ as q,g as A,e as G,aR as K,cE as Q,t as U,h as J,cF as Z,cG as ee,a as te,s as ne,cH as k,cc as ie,i as se,cb as ae,bt as oe}from"./main-BVKrDunc.js";const re=[null,"default","comfortable","compact"],_e=v({density:{type:String,default:"default",validator:e=>re.includes(e)}},"density");function be(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return{densityClasses:C(()=>`${t}--density-${e.density}`)}}const ce=v({tag:{type:String,default:"div"}},"tag");function N(e){return $(()=>{const t=[],n={};if(e.value.background)if(E(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&Y(e.value.background)){const i=j(e.value.background);if(i.a==null||i.a===1){const s=M(i);n.color=s,n.caretColor=s}}}else t.push(`bg-${e.value.background}`);return e.value.text&&(E(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function le(e,t){const n=C(()=>({text:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{textColorClasses:i,textColorStyles:s}}function we(e,t){const n=C(()=>({background:z(e)?e.value:t?e[t]:null})),{colorClasses:i,colorStyles:s}=N(n);return{backgroundColorClasses:i,backgroundColorStyles:s}}const ue=["x-small","small","default","large","x-large"],de=v({size:{type:[String,Number],default:"default"}},"size");function me(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S();return $(()=>{let n,i;return O(ue,e.size)?n=`${t}--size-${e.size}`:e.size&&(i={width:d(e.size),height:d(e.size)}),{sizeClasses:n,sizeStyles:i}})}const pe=v({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:F,...X(),...de(),...ce({tag:"i"}),...q()},"VIcon"),Te=A()({name:"VIcon",props:pe(),setup(e,t){let{attrs:n,slots:i}=t;const s=G(),{themeClasses:a}=K(e),{iconData:o}=Q(C(()=>s.value||e.icon)),{sizeClasses:r}=me(e),{textColorClasses:u,textColorStyles:h}=le(U(e,"color"));return J(()=>{var p,f;const m=(p=i.default)==null?void 0:p.call(i);m&&(s.value=(f=Z(m).filter(b=>b.type===ee&&b.children&&typeof b.children=="string")[0])==null?void 0:f.children);const l=!!(n.onClick||n.onClickOnce);return te(o.value.component,{tag:e.tag,icon:o.value.icon,class:["v-icon","notranslate",a.value,r.value,u.value,{"v-icon--clickable":l,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[r.value?void 0:{fontSize:d(e.size),height:d(e.size),width:d(e.size)},h.value,e.style],role:l?"button":void 0,"aria-hidden":!l,tabindex:l?e.disabled?-1:0:void 0},{default:()=>[m]})}),{}}}),Ee=v({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function ke(e){return{dimensionStyles:C(()=>{const n={},i=d(e.height),s=d(e.maxHeight),a=d(e.maxWidth),o=d(e.minHeight),r=d(e.minWidth),u=d(e.width);return i!=null&&(n.height=i),s!=null&&(n.maxHeight=s),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),r!=null&&(n.minWidth=r),u!=null&&(n.width=u),n})}}const w=Symbol("rippleStop"),fe=80;function x(e,t){e.style.transform=t,e.style.webkitTransform=t}function T(e){return e.constructor.name==="TouchEvent"}function P(e){return e.constructor.name==="KeyboardEvent"}const he=function(e,t){var l;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=0,s=0;if(!P(e)){const p=t.getBoundingClientRect(),f=T(e)?e.touches[e.touches.length-1]:e;i=f.clientX-p.left,s=f.clientY-p.top}let a=0,o=.3;(l=t._ripple)!=null&&l.circle?(o=.15,a=t.clientWidth/2,a=n.center?a:a+Math.sqrt((i-a)**2+(s-a)**2)/4):a=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const r=`${(t.clientWidth-a*2)/2}px`,u=`${(t.clientHeight-a*2)/2}px`,h=n.center?r:`${i-a}px`,m=n.center?u:`${s-a}px`;return{radius:a,scale:o,x:h,y:m,centerX:r,centerY:u}},_={show(e,t){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((f=t==null?void 0:t._ripple)!=null&&f.enabled))return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:a,scale:o,x:r,y:u,centerX:h,centerY:m}=he(e,t,n),l=`${a*2}px`;s.className="v-ripple__animation",s.style.width=l,s.style.height=l,t.appendChild(i);const p=window.getComputedStyle(t);p&&p.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),x(s,`translate(${r}, ${u}) scale3d(${o},${o},${o})`),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),x(s,`translate(${h}, ${m}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.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 i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var r;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((r=n.parentNode)==null?void 0:r.parentNode)===e&&e.removeChild(n.parentNode)},300)},s)}};function H(e){return typeof e>"u"||!!e}function g(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[w])){if(e[w]=!0,T(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||P(e),n._ripple.class&&(t.class=n._ripple.class),T(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{_.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var i;(i=n==null?void 0:n._ripple)!=null&&i.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},fe)}else _.show(e,n,t)}}function L(e){e[w]=!0}function c(e){const t=e.currentTarget;if(t!=null&&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(()=>{c(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),_.hide(t)}}function R(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let y=!1;function W(e){!y&&(e.keyCode===k.enter||e.keyCode===k.space)&&(y=!0,g(e))}function V(e){y=!1,c(e)}function B(e){y&&(y=!1,c(e))}function I(e,t,n){const{value:i,modifiers:s}=t,a=H(i);if(a||_.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=s.center,e._ripple.circle=s.circle,ne(i)&&i.class&&(e._ripple.class=i.class),a&&!n){if(s.stop){e.addEventListener("touchstart",L,{passive:!0}),e.addEventListener("mousedown",L);return}e.addEventListener("touchstart",g,{passive:!0}),e.addEventListener("touchend",c,{passive:!0}),e.addEventListener("touchmove",R,{passive:!0}),e.addEventListener("touchcancel",c),e.addEventListener("mousedown",g),e.addEventListener("mouseup",c),e.addEventListener("mouseleave",c),e.addEventListener("keydown",W),e.addEventListener("keyup",V),e.addEventListener("blur",B),e.addEventListener("dragstart",c,{passive:!0})}else!a&&n&&D(e)}function D(e){e.removeEventListener("mousedown",g),e.removeEventListener("touchstart",g),e.removeEventListener("touchend",c),e.removeEventListener("touchmove",R),e.removeEventListener("touchcancel",c),e.removeEventListener("mouseup",c),e.removeEventListener("mouseleave",c),e.removeEventListener("keydown",W),e.removeEventListener("keyup",V),e.removeEventListener("dragstart",c),e.removeEventListener("blur",B)}function ve(e,t){I(e,t,!1)}function ge(e){delete e._ripple,D(e)}function ye(e,t){if(t.value===t.oldValue)return;const n=H(t.oldValue);I(e,t,n)}const xe={mounted:ve,unmounted:ge,updated:ye},Le=v({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Se=(e,t)=>{let{slots:n}=t;const{transition:i,disabled:s,group:a,...o}=e,{component:r=a?ae:oe,...u}=typeof i=="object"?i:{};return ie(r,se(typeof i=="string"?{name:s?"":i}:u,typeof i=="string"?{}:Object.fromEntries(Object.entries({disabled:s,group:a}).filter(h=>{let[m,l]=h;return l!==void 0})),o),n)};export{Se as M,xe as R,Te as V,ce as a,be as b,we as c,Ee as d,Le as e,ke as f,de as g,me as h,N as i,_e as m,le as u};