codex 1.8.10__py3-none-any.whl → 1.8.12__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 (483) hide show
  1. codex/applications/websocket.py +2 -2
  2. codex/choices/choices_to_json.py +1 -1
  3. codex/librarian/librariand.py +3 -3
  4. codex/librarian/restarter/restarter.py +4 -3
  5. codex/librarian/scribe/importer/read/extract.py +74 -29
  6. codex/librarian/scribe/importer/read/foreign_keys.py +9 -1
  7. codex/librarian/scribe/janitor/update.py +1 -1
  8. codex/librarian/scribe/search/prepare.py +1 -1
  9. codex/models/groups.py +1 -1
  10. codex/run.py +2 -2
  11. codex/static_root/assets/{VCheckbox-BfVeJY8A.b8e4dee22b3c.js → VCheckbox-mMixTHeh.d292a58d01be.js} +1 -1
  12. codex/static_root/assets/VCheckbox-mMixTHeh.d292a58d01be.js.br +0 -0
  13. codex/static_root/assets/VCheckbox-mMixTHeh.d292a58d01be.js.gz +0 -0
  14. codex/static_root/assets/{VCheckbox-BfVeJY8A.js → VCheckbox-mMixTHeh.js} +1 -1
  15. codex/static_root/assets/VCheckbox-mMixTHeh.js.br +0 -0
  16. codex/static_root/assets/VCheckbox-mMixTHeh.js.gz +0 -0
  17. codex/static_root/assets/{VCheckboxBtn-dotsoE0r.6b66667a9120.js → VCheckboxBtn-CmvquRAN.e7da40760708.js} +1 -1
  18. codex/static_root/assets/VCheckboxBtn-CmvquRAN.e7da40760708.js.br +0 -0
  19. codex/static_root/assets/VCheckboxBtn-CmvquRAN.e7da40760708.js.gz +0 -0
  20. codex/static_root/assets/{VCheckboxBtn-dotsoE0r.js → VCheckboxBtn-CmvquRAN.js} +1 -1
  21. codex/static_root/assets/VCheckboxBtn-CmvquRAN.js.br +0 -0
  22. codex/static_root/assets/VCheckboxBtn-CmvquRAN.js.gz +0 -0
  23. codex/static_root/assets/{VCombobox-D6t70eT1.a5c82ecd9544.js → VCombobox-B-q89wJH.176455c7dbee.js} +1 -1
  24. codex/static_root/assets/VCombobox-B-q89wJH.176455c7dbee.js.br +0 -0
  25. codex/static_root/assets/VCombobox-B-q89wJH.176455c7dbee.js.gz +0 -0
  26. codex/static_root/assets/{VCombobox-D6t70eT1.js → VCombobox-B-q89wJH.js} +1 -1
  27. codex/static_root/assets/VCombobox-B-q89wJH.js.br +0 -0
  28. codex/static_root/assets/VCombobox-B-q89wJH.js.gz +0 -0
  29. codex/static_root/assets/{VDialog-Bn_MNvQ-.d1ca39e120b8.js → VDialog-VIXXkGcp.5df40dd559f6.js} +1 -1
  30. codex/static_root/assets/VDialog-VIXXkGcp.5df40dd559f6.js.br +0 -0
  31. codex/static_root/assets/VDialog-VIXXkGcp.5df40dd559f6.js.gz +0 -0
  32. codex/static_root/assets/{VDialog-Bn_MNvQ-.js → VDialog-VIXXkGcp.js} +1 -1
  33. codex/static_root/assets/VDialog-VIXXkGcp.js.br +0 -0
  34. codex/static_root/assets/VDialog-VIXXkGcp.js.gz +0 -0
  35. codex/static_root/assets/{VDivider-DOOd4a9s.b14fca685b97.js → VDivider-DZYqABoC.e1b49b0e84e7.js} +1 -1
  36. codex/static_root/assets/VDivider-DZYqABoC.e1b49b0e84e7.js.br +0 -0
  37. codex/static_root/assets/VDivider-DZYqABoC.e1b49b0e84e7.js.gz +0 -0
  38. codex/static_root/assets/{VDivider-DOOd4a9s.js → VDivider-DZYqABoC.js} +1 -1
  39. codex/static_root/assets/VDivider-DZYqABoC.js.br +0 -0
  40. codex/static_root/assets/VDivider-DZYqABoC.js.gz +0 -0
  41. codex/static_root/assets/{VExpansionPanels-Be8WWdca.f7f019bb8480.js → VExpansionPanels-Cfecx3wB.e58028ac7689.js} +1 -1
  42. codex/static_root/assets/VExpansionPanels-Cfecx3wB.e58028ac7689.js.br +0 -0
  43. codex/static_root/assets/VExpansionPanels-Cfecx3wB.e58028ac7689.js.gz +0 -0
  44. codex/static_root/assets/{VExpansionPanels-Be8WWdca.js → VExpansionPanels-Cfecx3wB.js} +1 -1
  45. codex/static_root/assets/VExpansionPanels-Cfecx3wB.js.br +0 -0
  46. codex/static_root/assets/VExpansionPanels-Cfecx3wB.js.gz +0 -0
  47. codex/static_root/assets/{VForm-BRei2Gn2.967e83055611.js → VForm-DxSBwqZJ.ac95f820d0ef.js} +1 -1
  48. codex/static_root/assets/VForm-DxSBwqZJ.ac95f820d0ef.js.br +0 -0
  49. codex/static_root/assets/VForm-DxSBwqZJ.ac95f820d0ef.js.gz +0 -0
  50. codex/static_root/assets/{VForm-BRei2Gn2.js → VForm-DxSBwqZJ.js} +1 -1
  51. codex/static_root/assets/VForm-DxSBwqZJ.js.br +0 -0
  52. codex/static_root/assets/VForm-DxSBwqZJ.js.gz +0 -0
  53. codex/static_root/assets/{VRadioGroup-DVVCXDtV.79214c05c9a4.js → VRadioGroup-BWhV6-Ik.9a12480f7db9.js} +1 -1
  54. codex/static_root/assets/VRadioGroup-BWhV6-Ik.9a12480f7db9.js.br +0 -0
  55. codex/static_root/assets/VRadioGroup-BWhV6-Ik.9a12480f7db9.js.gz +0 -0
  56. codex/static_root/assets/{VRadioGroup-DVVCXDtV.js → VRadioGroup-BWhV6-Ik.js} +1 -1
  57. codex/static_root/assets/VRadioGroup-BWhV6-Ik.js.br +0 -0
  58. codex/static_root/assets/VRadioGroup-BWhV6-Ik.js.gz +0 -0
  59. codex/static_root/assets/{VSelect-CJ_8hyFq.c3d39e72c0b5.js → VSelect-TZp4owlN.59c05699f974.js} +1 -1
  60. codex/static_root/assets/VSelect-TZp4owlN.59c05699f974.js.br +0 -0
  61. codex/static_root/assets/VSelect-TZp4owlN.59c05699f974.js.gz +0 -0
  62. codex/static_root/assets/{VSelect-CJ_8hyFq.js → VSelect-TZp4owlN.js} +1 -1
  63. codex/static_root/assets/VSelect-TZp4owlN.js.br +0 -0
  64. codex/static_root/assets/VSelect-TZp4owlN.js.gz +0 -0
  65. codex/static_root/assets/{VSelectionControl-N_wsNRlD.1e50d58ecadb.js → VSelectionControl-GD0v-LdL.4d345a0fe321.js} +1 -1
  66. codex/static_root/assets/VSelectionControl-GD0v-LdL.4d345a0fe321.js.br +0 -0
  67. codex/static_root/assets/VSelectionControl-GD0v-LdL.4d345a0fe321.js.gz +0 -0
  68. codex/static_root/assets/{VSelectionControl-N_wsNRlD.js → VSelectionControl-GD0v-LdL.js} +1 -1
  69. codex/static_root/assets/VSelectionControl-GD0v-LdL.js.br +0 -0
  70. codex/static_root/assets/VSelectionControl-GD0v-LdL.js.gz +0 -0
  71. codex/static_root/assets/{VTable-YgXyPctG.b776e9689646.js → VTable-XDHc7lys.0f7c71a2ef3b.js} +1 -1
  72. codex/static_root/assets/VTable-XDHc7lys.0f7c71a2ef3b.js.br +0 -0
  73. codex/static_root/assets/VTable-XDHc7lys.0f7c71a2ef3b.js.gz +0 -0
  74. codex/static_root/assets/{VTable-YgXyPctG.js → VTable-XDHc7lys.js} +1 -1
  75. codex/static_root/assets/VTable-XDHc7lys.js.br +0 -0
  76. codex/static_root/assets/VTable-XDHc7lys.js.gz +0 -0
  77. codex/static_root/assets/{VWindowItem-BmpD4isF.61a906c1109e.js → VWindowItem-DkI0HNsq.1e2dac9f8c38.js} +1 -1
  78. codex/static_root/assets/VWindowItem-DkI0HNsq.1e2dac9f8c38.js.br +0 -0
  79. codex/static_root/assets/VWindowItem-DkI0HNsq.1e2dac9f8c38.js.gz +0 -0
  80. codex/static_root/assets/{VWindowItem-BmpD4isF.js → VWindowItem-DkI0HNsq.js} +1 -1
  81. codex/static_root/assets/VWindowItem-DkI0HNsq.js.br +0 -0
  82. codex/static_root/assets/VWindowItem-DkI0HNsq.js.gz +0 -0
  83. codex/static_root/assets/{admin-26AnWn-T.fe23350475b4.js → admin-B8FOS3y0.7854efcc062c.js} +1 -1
  84. codex/static_root/assets/admin-B8FOS3y0.7854efcc062c.js.br +0 -0
  85. codex/static_root/assets/admin-B8FOS3y0.7854efcc062c.js.gz +0 -0
  86. codex/static_root/assets/{admin-26AnWn-T.js → admin-B8FOS3y0.js} +1 -1
  87. codex/static_root/assets/admin-B8FOS3y0.js.br +0 -0
  88. codex/static_root/assets/admin-B8FOS3y0.js.gz +0 -0
  89. codex/static_root/assets/{admin-BhRwDL_I.72c00e104cd2.js → admin-D5xz_Oqi.d7262a95b289.js} +1 -1
  90. codex/static_root/assets/admin-D5xz_Oqi.d7262a95b289.js.br +0 -0
  91. codex/static_root/assets/admin-D5xz_Oqi.d7262a95b289.js.gz +0 -0
  92. codex/static_root/assets/{admin-BhRwDL_I.js → admin-D5xz_Oqi.js} +1 -1
  93. codex/static_root/assets/admin-D5xz_Oqi.js.br +0 -0
  94. codex/static_root/assets/admin-D5xz_Oqi.js.gz +0 -0
  95. codex/static_root/assets/admin-menu-BdgFc4sK.3a1221757854.css +1 -0
  96. codex/static_root/assets/admin-menu-BdgFc4sK.3a1221757854.css.br +0 -0
  97. codex/static_root/assets/admin-menu-BdgFc4sK.3a1221757854.css.gz +0 -0
  98. codex/static_root/assets/admin-menu-BdgFc4sK.css +1 -0
  99. codex/static_root/assets/admin-menu-BdgFc4sK.css.br +0 -0
  100. codex/static_root/assets/admin-menu-BdgFc4sK.css.gz +0 -0
  101. codex/static_root/assets/{admin-menu-42Q4jLGf.b87cc355497b.js → admin-menu-CowNEAHz.00a2856c8342.js} +1 -1
  102. codex/static_root/assets/admin-menu-CowNEAHz.00a2856c8342.js.br +0 -0
  103. codex/static_root/assets/admin-menu-CowNEAHz.00a2856c8342.js.gz +0 -0
  104. codex/static_root/assets/{admin-menu-42Q4jLGf.js → admin-menu-CowNEAHz.js} +1 -1
  105. codex/static_root/assets/admin-menu-CowNEAHz.js.br +0 -0
  106. codex/static_root/assets/admin-menu-CowNEAHz.js.gz +0 -0
  107. codex/static_root/assets/{admin-settings-button-progress-hYnDmn23.ffed6d808c68.js → admin-settings-button-progress-Fn6FLZKO.ba02b3db9f08.js} +1 -1
  108. codex/static_root/assets/admin-settings-button-progress-Fn6FLZKO.ba02b3db9f08.js.br +0 -0
  109. codex/static_root/assets/admin-settings-button-progress-Fn6FLZKO.ba02b3db9f08.js.gz +0 -0
  110. codex/static_root/assets/{admin-settings-button-progress-hYnDmn23.js → admin-settings-button-progress-Fn6FLZKO.js} +1 -1
  111. codex/static_root/assets/admin-settings-button-progress-Fn6FLZKO.js.br +0 -0
  112. codex/static_root/assets/admin-settings-button-progress-Fn6FLZKO.js.gz +0 -0
  113. codex/static_root/assets/browser-DobQRNGw.fea37ea67039.js +1 -0
  114. codex/static_root/assets/browser-DobQRNGw.fea37ea67039.js.br +0 -0
  115. codex/static_root/assets/browser-DobQRNGw.fea37ea67039.js.gz +0 -0
  116. codex/static_root/assets/browser-DobQRNGw.js +1 -0
  117. codex/static_root/assets/browser-DobQRNGw.js.br +0 -0
  118. codex/static_root/assets/browser-DobQRNGw.js.gz +0 -0
  119. codex/static_root/assets/{change-password-dialog-Df28DwbL.7e3eb3fdb42a.js → change-password-dialog-CM_QAQIF.e81732a436e7.js} +1 -1
  120. codex/static_root/assets/change-password-dialog-CM_QAQIF.e81732a436e7.js.br +0 -0
  121. codex/static_root/assets/change-password-dialog-CM_QAQIF.e81732a436e7.js.gz +0 -0
  122. codex/static_root/assets/{change-password-dialog-Df28DwbL.js → change-password-dialog-CM_QAQIF.js} +1 -1
  123. codex/static_root/assets/change-password-dialog-CM_QAQIF.js.br +0 -0
  124. codex/static_root/assets/change-password-dialog-CM_QAQIF.js.gz +0 -0
  125. codex/static_root/assets/{confirm-dialog-DgKUUL0b.bd6e76fa370e.js → confirm-dialog-B5yPnYfL.1ff1c7580366.js} +1 -1
  126. codex/static_root/assets/confirm-dialog-B5yPnYfL.1ff1c7580366.js.br +0 -0
  127. codex/static_root/assets/confirm-dialog-B5yPnYfL.1ff1c7580366.js.gz +0 -0
  128. codex/static_root/assets/{confirm-dialog-DgKUUL0b.js → confirm-dialog-B5yPnYfL.js} +1 -1
  129. codex/static_root/assets/confirm-dialog-B5yPnYfL.js.br +0 -0
  130. codex/static_root/assets/confirm-dialog-B5yPnYfL.js.gz +0 -0
  131. codex/static_root/assets/{datetime-column-jb1Y13cY.f98386c3c6cf.js → datetime-column-BjtCGhs4.8cd255932c51.js} +1 -1
  132. codex/static_root/assets/datetime-column-BjtCGhs4.8cd255932c51.js.br +4 -0
  133. codex/static_root/assets/datetime-column-BjtCGhs4.8cd255932c51.js.gz +0 -0
  134. codex/static_root/assets/{datetime-column-jb1Y13cY.js → datetime-column-BjtCGhs4.js} +1 -1
  135. codex/static_root/assets/datetime-column-BjtCGhs4.js.br +4 -0
  136. codex/static_root/assets/datetime-column-BjtCGhs4.js.gz +0 -0
  137. codex/static_root/assets/{filter-DU947LwF.64baedae8854.js → filter-B5vuKzJr.decb97e4aacf.js} +1 -1
  138. codex/static_root/assets/filter-B5vuKzJr.decb97e4aacf.js.br +0 -0
  139. codex/static_root/assets/filter-B5vuKzJr.decb97e4aacf.js.gz +0 -0
  140. codex/static_root/assets/{filter-DU947LwF.js → filter-B5vuKzJr.js} +1 -1
  141. codex/static_root/assets/filter-B5vuKzJr.js.br +0 -0
  142. codex/static_root/assets/filter-B5vuKzJr.js.gz +0 -0
  143. codex/static_root/assets/{flag-tab-BTT0536t.4219f4036821.js → flag-tab-BJVFBJGD.12bd4905b099.js} +1 -1
  144. codex/static_root/assets/flag-tab-BJVFBJGD.12bd4905b099.js.br +0 -0
  145. codex/static_root/assets/flag-tab-BJVFBJGD.12bd4905b099.js.gz +0 -0
  146. codex/static_root/assets/{flag-tab-BTT0536t.js → flag-tab-BJVFBJGD.js} +1 -1
  147. codex/static_root/assets/flag-tab-BJVFBJGD.js.br +0 -0
  148. codex/static_root/assets/flag-tab-BJVFBJGD.js.gz +0 -0
  149. codex/static_root/assets/{forwardRefs-BGAZ1bvO.676c1aac262e.js → forwardRefs-DB5ky8tb.1bd4338967d0.js} +1 -1
  150. codex/static_root/assets/forwardRefs-DB5ky8tb.1bd4338967d0.js.br +0 -0
  151. codex/static_root/assets/forwardRefs-DB5ky8tb.1bd4338967d0.js.gz +0 -0
  152. codex/static_root/assets/{forwardRefs-BGAZ1bvO.js → forwardRefs-DB5ky8tb.js} +1 -1
  153. codex/static_root/assets/forwardRefs-DB5ky8tb.js.br +0 -0
  154. codex/static_root/assets/forwardRefs-DB5ky8tb.js.gz +0 -0
  155. codex/static_root/assets/group-tab-BheHSkwp.5bae3d475496.js +1 -0
  156. codex/static_root/assets/group-tab-BheHSkwp.5bae3d475496.js.br +0 -0
  157. codex/static_root/assets/group-tab-BheHSkwp.5bae3d475496.js.gz +0 -0
  158. codex/static_root/assets/group-tab-BheHSkwp.js +1 -0
  159. codex/static_root/assets/group-tab-BheHSkwp.js.br +0 -0
  160. codex/static_root/assets/group-tab-BheHSkwp.js.gz +0 -0
  161. codex/static_root/assets/http-error-QIRqZMe7.0e7afa8486e0.js +1 -0
  162. codex/static_root/assets/http-error-QIRqZMe7.0e7afa8486e0.js.br +0 -0
  163. codex/static_root/assets/http-error-QIRqZMe7.0e7afa8486e0.js.gz +0 -0
  164. codex/static_root/assets/http-error-QIRqZMe7.js +1 -0
  165. codex/static_root/assets/http-error-QIRqZMe7.js.br +0 -0
  166. codex/static_root/assets/http-error-QIRqZMe7.js.gz +0 -0
  167. codex/static_root/assets/{index-Cm9w_Tog.a1b4683f2e1d.js → index-Cfl3hEsB.6eb5b66f8d59.js} +1 -1
  168. codex/static_root/assets/index-Cfl3hEsB.6eb5b66f8d59.js.br +0 -0
  169. codex/static_root/assets/index-Cfl3hEsB.6eb5b66f8d59.js.gz +0 -0
  170. codex/static_root/assets/{index-Cm9w_Tog.js → index-Cfl3hEsB.js} +1 -1
  171. codex/static_root/assets/index-Cfl3hEsB.js.br +0 -0
  172. codex/static_root/assets/index-Cfl3hEsB.js.gz +0 -0
  173. codex/static_root/assets/{library-tab-5StL67ei.0fad8998a237.css → library-tab-DIIxAUNe.10ec98cfe11d.css} +1 -1
  174. codex/static_root/assets/library-tab-DIIxAUNe.10ec98cfe11d.css.br +0 -0
  175. codex/static_root/assets/library-tab-DIIxAUNe.10ec98cfe11d.css.gz +0 -0
  176. codex/static_root/assets/{library-tab-5StL67ei.css → library-tab-DIIxAUNe.css} +1 -1
  177. codex/static_root/assets/library-tab-DIIxAUNe.css.br +0 -0
  178. codex/static_root/assets/library-tab-DIIxAUNe.css.gz +0 -0
  179. codex/static_root/assets/library-tab-DcF440Qi.8464c8a644eb.js +1 -0
  180. codex/static_root/assets/library-tab-DcF440Qi.8464c8a644eb.js.br +0 -0
  181. codex/static_root/assets/library-tab-DcF440Qi.8464c8a644eb.js.gz +0 -0
  182. codex/static_root/assets/library-tab-DcF440Qi.js +1 -0
  183. codex/static_root/assets/library-tab-DcF440Qi.js.br +0 -0
  184. codex/static_root/assets/library-tab-DcF440Qi.js.gz +0 -0
  185. codex/static_root/assets/main-C-77N8Gu.b7e2f72f401d.js +39 -0
  186. codex/static_root/assets/main-C-77N8Gu.b7e2f72f401d.js.br +0 -0
  187. codex/static_root/assets/main-C-77N8Gu.b7e2f72f401d.js.gz +0 -0
  188. codex/static_root/assets/main-C-77N8Gu.js +39 -0
  189. codex/static_root/assets/main-C-77N8Gu.js.br +0 -0
  190. codex/static_root/assets/main-C-77N8Gu.js.gz +0 -0
  191. codex/static_root/assets/pager-full-pdf-DCh3kFgd.47ca6515953d.js +1 -0
  192. codex/static_root/assets/pager-full-pdf-DCh3kFgd.47ca6515953d.js.br +0 -0
  193. codex/static_root/assets/pager-full-pdf-DCh3kFgd.47ca6515953d.js.gz +0 -0
  194. codex/static_root/assets/pager-full-pdf-DCh3kFgd.js +1 -0
  195. codex/static_root/assets/pager-full-pdf-DCh3kFgd.js.br +0 -0
  196. codex/static_root/assets/pager-full-pdf-DCh3kFgd.js.gz +0 -0
  197. codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.3a224c7806a5.css → pagination-toolbar-BMm-LmG-.92cfb20daeb9.css} +1 -1
  198. codex/static_root/assets/pagination-toolbar-BMm-LmG-.92cfb20daeb9.css.br +0 -0
  199. codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.3a224c7806a5.css.gz → pagination-toolbar-BMm-LmG-.92cfb20daeb9.css.gz} +0 -0
  200. codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.css → pagination-toolbar-BMm-LmG-.css} +1 -1
  201. codex/static_root/assets/pagination-toolbar-BMm-LmG-.css.br +0 -0
  202. codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.css.gz → pagination-toolbar-BMm-LmG-.css.gz} +0 -0
  203. codex/static_root/assets/pagination-toolbar-CHsRqwrF.45e5d7271642.js +1 -0
  204. codex/static_root/assets/pagination-toolbar-CHsRqwrF.45e5d7271642.js.br +0 -0
  205. codex/static_root/assets/pagination-toolbar-CHsRqwrF.45e5d7271642.js.gz +0 -0
  206. codex/static_root/assets/pagination-toolbar-CHsRqwrF.js +1 -0
  207. codex/static_root/assets/pagination-toolbar-CHsRqwrF.js.br +0 -0
  208. codex/static_root/assets/pagination-toolbar-CHsRqwrF.js.gz +0 -0
  209. codex/static_root/assets/{pdf-doc-CMzddyqW.5ef7eef50756.js → pdf-doc-DfhEteIr.b37589840b4a.js} +4 -4
  210. codex/static_root/assets/pdf-doc-DfhEteIr.b37589840b4a.js.br +0 -0
  211. codex/static_root/assets/pdf-doc-DfhEteIr.b37589840b4a.js.gz +0 -0
  212. codex/static_root/assets/{pdf-doc-CMzddyqW.js → pdf-doc-DfhEteIr.js} +4 -4
  213. codex/static_root/assets/pdf-doc-DfhEteIr.js.br +0 -0
  214. codex/static_root/assets/pdf-doc-DfhEteIr.js.gz +0 -0
  215. codex/static_root/assets/{reader-HE07eoaG.8626eeb7c718.css → reader-BUEw0RYD.css} +1 -1
  216. codex/static_root/assets/reader-BUEw0RYD.css.br +0 -0
  217. codex/static_root/assets/reader-BUEw0RYD.css.gz +0 -0
  218. codex/static_root/assets/{reader-HE07eoaG.css → reader-BUEw0RYD.e084c3b621d4.css} +1 -1
  219. codex/static_root/assets/reader-BUEw0RYD.e084c3b621d4.css.br +0 -0
  220. codex/static_root/assets/reader-BUEw0RYD.e084c3b621d4.css.gz +0 -0
  221. codex/static_root/assets/{reader-DFkGB8xM.ba0585d918b5.js → reader-DzF84pko.338d999961f3.js} +2 -2
  222. codex/static_root/assets/reader-DzF84pko.338d999961f3.js.br +0 -0
  223. codex/static_root/assets/reader-DzF84pko.338d999961f3.js.gz +0 -0
  224. codex/static_root/assets/{reader-DFkGB8xM.js → reader-DzF84pko.js} +2 -2
  225. codex/static_root/assets/reader-DzF84pko.js.br +0 -0
  226. codex/static_root/assets/reader-DzF84pko.js.gz +0 -0
  227. codex/static_root/assets/{relation-chips-32lE_odZ.7cc1620d4c97.js → relation-chips-BuoX-Umg.b163536480a5.js} +1 -1
  228. codex/static_root/assets/relation-chips-BuoX-Umg.b163536480a5.js.br +0 -0
  229. codex/static_root/assets/relation-chips-BuoX-Umg.b163536480a5.js.gz +0 -0
  230. codex/static_root/assets/{relation-chips-32lE_odZ.js → relation-chips-BuoX-Umg.js} +1 -1
  231. codex/static_root/assets/relation-chips-BuoX-Umg.js.br +0 -0
  232. codex/static_root/assets/relation-chips-BuoX-Umg.js.gz +0 -0
  233. codex/static_root/assets/{settings-drawer-B-pwZRSy.8fc8b237bb52.css → settings-drawer-D7bFOc4_.9748ddd58be9.css} +1 -1
  234. codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.br +0 -0
  235. codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.gz +0 -0
  236. codex/static_root/assets/{settings-drawer-B-pwZRSy.css → settings-drawer-D7bFOc4_.css} +1 -1
  237. codex/static_root/assets/settings-drawer-D7bFOc4_.css.br +0 -0
  238. codex/static_root/assets/settings-drawer-D7bFOc4_.css.gz +0 -0
  239. codex/static_root/assets/settings-drawer-F5ukKBlm.8d65a1441b5d.js +2 -0
  240. codex/static_root/assets/settings-drawer-F5ukKBlm.8d65a1441b5d.js.br +0 -0
  241. codex/static_root/assets/settings-drawer-F5ukKBlm.8d65a1441b5d.js.gz +0 -0
  242. codex/static_root/assets/settings-drawer-F5ukKBlm.js +2 -0
  243. codex/static_root/assets/settings-drawer-F5ukKBlm.js.br +0 -0
  244. codex/static_root/assets/settings-drawer-F5ukKBlm.js.gz +0 -0
  245. codex/static_root/assets/{ssrBoot-CjQLVcFD.0db2c2fe9b66.js → ssrBoot-CWYTAaF-.aee3c0981f33.js} +1 -1
  246. codex/static_root/assets/ssrBoot-CWYTAaF-.aee3c0981f33.js.br +0 -0
  247. codex/static_root/assets/ssrBoot-CWYTAaF-.aee3c0981f33.js.gz +0 -0
  248. codex/static_root/assets/{ssrBoot-CjQLVcFD.js → ssrBoot-CWYTAaF-.js} +1 -1
  249. codex/static_root/assets/ssrBoot-CWYTAaF-.js.br +0 -0
  250. codex/static_root/assets/ssrBoot-CWYTAaF-.js.gz +0 -0
  251. codex/static_root/assets/{stats-tab-WD67DkuY.4cd13274173f.js → stats-tab-BojXzJxX.4bacf1b7de0a.js} +1 -1
  252. codex/static_root/assets/stats-tab-BojXzJxX.4bacf1b7de0a.js.br +0 -0
  253. codex/static_root/assets/stats-tab-BojXzJxX.4bacf1b7de0a.js.gz +0 -0
  254. codex/static_root/assets/{stats-tab-WD67DkuY.js → stats-tab-BojXzJxX.js} +1 -1
  255. codex/static_root/assets/stats-tab-BojXzJxX.js.br +0 -0
  256. codex/static_root/assets/stats-tab-BojXzJxX.js.gz +0 -0
  257. codex/static_root/assets/{task-tab-CHOLNUJh.bbf1c7a95058.js → task-tab-CHqUvlgk.8e7f5e5fd5c1.js} +1 -1
  258. codex/static_root/assets/task-tab-CHqUvlgk.8e7f5e5fd5c1.js.br +0 -0
  259. codex/static_root/assets/task-tab-CHqUvlgk.8e7f5e5fd5c1.js.gz +0 -0
  260. codex/static_root/assets/{task-tab-CHOLNUJh.js → task-tab-CHqUvlgk.js} +1 -1
  261. codex/static_root/assets/task-tab-CHqUvlgk.js.br +0 -0
  262. codex/static_root/assets/task-tab-CHqUvlgk.js.gz +0 -0
  263. codex/static_root/assets/{unauthorized-BsEyzLQ2.js → unauthorized-CEVes9z_.d4be9ecbbe99.js} +1 -1
  264. codex/static_root/assets/unauthorized-CEVes9z_.d4be9ecbbe99.js.br +0 -0
  265. codex/static_root/assets/unauthorized-CEVes9z_.d4be9ecbbe99.js.gz +0 -0
  266. codex/static_root/assets/{unauthorized-BsEyzLQ2.e54a69cff5c6.js → unauthorized-CEVes9z_.js} +1 -1
  267. codex/static_root/assets/unauthorized-CEVes9z_.js.br +0 -0
  268. codex/static_root/assets/unauthorized-CEVes9z_.js.gz +0 -0
  269. codex/static_root/assets/{user-tab-CbNhbZzZ.af38f932a795.js → user-tab-CBwvHAwM.aba98371e7eb.js} +1 -1
  270. codex/static_root/assets/user-tab-CBwvHAwM.aba98371e7eb.js.br +0 -0
  271. codex/static_root/assets/user-tab-CBwvHAwM.aba98371e7eb.js.gz +0 -0
  272. codex/static_root/assets/{user-tab-CbNhbZzZ.js → user-tab-CBwvHAwM.js} +1 -1
  273. codex/static_root/assets/user-tab-CBwvHAwM.js.br +0 -0
  274. codex/static_root/assets/user-tab-CBwvHAwM.js.gz +0 -0
  275. codex/static_root/{manifest.39fe502cd3a2.json → manifest.f16b9aa8fb6b.json} +323 -323
  276. codex/static_root/manifest.f16b9aa8fb6b.json.br +0 -0
  277. codex/static_root/manifest.f16b9aa8fb6b.json.gz +0 -0
  278. codex/static_root/manifest.json +323 -323
  279. codex/static_root/manifest.json.br +0 -0
  280. codex/static_root/manifest.json.gz +0 -0
  281. codex/static_root/staticfiles.json +1 -1
  282. codex/websockets/consumers.py +2 -3
  283. {codex-1.8.10.dist-info → codex-1.8.12.dist-info}/METADATA +23 -23
  284. codex-1.8.12.dist-info/RECORD +1102 -0
  285. codex-1.8.12.dist-info/WHEEL +4 -0
  286. {codex-1.8.10.dist-info → codex-1.8.12.dist-info}/entry_points.txt +1 -0
  287. codex/static_root/assets/VCheckbox-BfVeJY8A.b8e4dee22b3c.js.br +0 -0
  288. codex/static_root/assets/VCheckbox-BfVeJY8A.b8e4dee22b3c.js.gz +0 -0
  289. codex/static_root/assets/VCheckbox-BfVeJY8A.js.br +0 -0
  290. codex/static_root/assets/VCheckbox-BfVeJY8A.js.gz +0 -0
  291. codex/static_root/assets/VCheckboxBtn-dotsoE0r.6b66667a9120.js.br +0 -0
  292. codex/static_root/assets/VCheckboxBtn-dotsoE0r.6b66667a9120.js.gz +0 -0
  293. codex/static_root/assets/VCheckboxBtn-dotsoE0r.js.br +0 -0
  294. codex/static_root/assets/VCheckboxBtn-dotsoE0r.js.gz +0 -0
  295. codex/static_root/assets/VCombobox-D6t70eT1.a5c82ecd9544.js.br +0 -0
  296. codex/static_root/assets/VCombobox-D6t70eT1.a5c82ecd9544.js.gz +0 -0
  297. codex/static_root/assets/VCombobox-D6t70eT1.js.br +0 -0
  298. codex/static_root/assets/VCombobox-D6t70eT1.js.gz +0 -0
  299. codex/static_root/assets/VDialog-Bn_MNvQ-.d1ca39e120b8.js.br +0 -0
  300. codex/static_root/assets/VDialog-Bn_MNvQ-.d1ca39e120b8.js.gz +0 -0
  301. codex/static_root/assets/VDialog-Bn_MNvQ-.js.br +0 -0
  302. codex/static_root/assets/VDialog-Bn_MNvQ-.js.gz +0 -0
  303. codex/static_root/assets/VDivider-DOOd4a9s.b14fca685b97.js.br +0 -0
  304. codex/static_root/assets/VDivider-DOOd4a9s.b14fca685b97.js.gz +0 -0
  305. codex/static_root/assets/VDivider-DOOd4a9s.js.br +0 -0
  306. codex/static_root/assets/VDivider-DOOd4a9s.js.gz +0 -0
  307. codex/static_root/assets/VExpansionPanels-Be8WWdca.f7f019bb8480.js.br +0 -0
  308. codex/static_root/assets/VExpansionPanels-Be8WWdca.f7f019bb8480.js.gz +0 -0
  309. codex/static_root/assets/VExpansionPanels-Be8WWdca.js.br +0 -0
  310. codex/static_root/assets/VExpansionPanels-Be8WWdca.js.gz +0 -0
  311. codex/static_root/assets/VForm-BRei2Gn2.967e83055611.js.br +0 -0
  312. codex/static_root/assets/VForm-BRei2Gn2.967e83055611.js.gz +0 -0
  313. codex/static_root/assets/VForm-BRei2Gn2.js.br +0 -0
  314. codex/static_root/assets/VForm-BRei2Gn2.js.gz +0 -0
  315. codex/static_root/assets/VRadioGroup-DVVCXDtV.79214c05c9a4.js.br +0 -0
  316. codex/static_root/assets/VRadioGroup-DVVCXDtV.79214c05c9a4.js.gz +0 -0
  317. codex/static_root/assets/VRadioGroup-DVVCXDtV.js.br +0 -0
  318. codex/static_root/assets/VRadioGroup-DVVCXDtV.js.gz +0 -0
  319. codex/static_root/assets/VSelect-CJ_8hyFq.c3d39e72c0b5.js.br +0 -0
  320. codex/static_root/assets/VSelect-CJ_8hyFq.c3d39e72c0b5.js.gz +0 -0
  321. codex/static_root/assets/VSelect-CJ_8hyFq.js.br +0 -0
  322. codex/static_root/assets/VSelect-CJ_8hyFq.js.gz +0 -0
  323. codex/static_root/assets/VSelectionControl-N_wsNRlD.1e50d58ecadb.js.br +0 -0
  324. codex/static_root/assets/VSelectionControl-N_wsNRlD.1e50d58ecadb.js.gz +0 -0
  325. codex/static_root/assets/VSelectionControl-N_wsNRlD.js.br +0 -0
  326. codex/static_root/assets/VSelectionControl-N_wsNRlD.js.gz +0 -0
  327. codex/static_root/assets/VTable-YgXyPctG.b776e9689646.js.br +0 -0
  328. codex/static_root/assets/VTable-YgXyPctG.b776e9689646.js.gz +0 -0
  329. codex/static_root/assets/VTable-YgXyPctG.js.br +0 -0
  330. codex/static_root/assets/VTable-YgXyPctG.js.gz +0 -0
  331. codex/static_root/assets/VWindowItem-BmpD4isF.61a906c1109e.js.br +0 -0
  332. codex/static_root/assets/VWindowItem-BmpD4isF.61a906c1109e.js.gz +0 -0
  333. codex/static_root/assets/VWindowItem-BmpD4isF.js.br +0 -0
  334. codex/static_root/assets/VWindowItem-BmpD4isF.js.gz +0 -0
  335. codex/static_root/assets/admin-26AnWn-T.fe23350475b4.js.br +0 -0
  336. codex/static_root/assets/admin-26AnWn-T.fe23350475b4.js.gz +0 -0
  337. codex/static_root/assets/admin-26AnWn-T.js.br +0 -0
  338. codex/static_root/assets/admin-26AnWn-T.js.gz +0 -0
  339. codex/static_root/assets/admin-BhRwDL_I.72c00e104cd2.js.br +0 -0
  340. codex/static_root/assets/admin-BhRwDL_I.72c00e104cd2.js.gz +0 -0
  341. codex/static_root/assets/admin-BhRwDL_I.js.br +0 -0
  342. codex/static_root/assets/admin-BhRwDL_I.js.gz +0 -0
  343. codex/static_root/assets/admin-menu-42Q4jLGf.b87cc355497b.js.br +0 -0
  344. codex/static_root/assets/admin-menu-42Q4jLGf.b87cc355497b.js.gz +0 -0
  345. codex/static_root/assets/admin-menu-42Q4jLGf.js.br +0 -0
  346. codex/static_root/assets/admin-menu-42Q4jLGf.js.gz +0 -0
  347. codex/static_root/assets/admin-menu-hpyUS8ku.18284a11084d.css +0 -1
  348. codex/static_root/assets/admin-menu-hpyUS8ku.18284a11084d.css.br +0 -0
  349. codex/static_root/assets/admin-menu-hpyUS8ku.18284a11084d.css.gz +0 -0
  350. codex/static_root/assets/admin-menu-hpyUS8ku.css +0 -1
  351. codex/static_root/assets/admin-menu-hpyUS8ku.css.br +0 -0
  352. codex/static_root/assets/admin-menu-hpyUS8ku.css.gz +0 -0
  353. codex/static_root/assets/admin-settings-button-progress-hYnDmn23.ffed6d808c68.js.br +0 -4
  354. codex/static_root/assets/admin-settings-button-progress-hYnDmn23.ffed6d808c68.js.gz +0 -0
  355. codex/static_root/assets/admin-settings-button-progress-hYnDmn23.js.br +0 -4
  356. codex/static_root/assets/admin-settings-button-progress-hYnDmn23.js.gz +0 -0
  357. codex/static_root/assets/browser-BiLF_XL8.d0ffb7b04624.js +0 -1
  358. codex/static_root/assets/browser-BiLF_XL8.d0ffb7b04624.js.br +0 -0
  359. codex/static_root/assets/browser-BiLF_XL8.d0ffb7b04624.js.gz +0 -0
  360. codex/static_root/assets/browser-BiLF_XL8.js +0 -1
  361. codex/static_root/assets/browser-BiLF_XL8.js.br +0 -0
  362. codex/static_root/assets/browser-BiLF_XL8.js.gz +0 -0
  363. codex/static_root/assets/change-password-dialog-Df28DwbL.7e3eb3fdb42a.js.br +0 -0
  364. codex/static_root/assets/change-password-dialog-Df28DwbL.7e3eb3fdb42a.js.gz +0 -0
  365. codex/static_root/assets/change-password-dialog-Df28DwbL.js.br +0 -0
  366. codex/static_root/assets/change-password-dialog-Df28DwbL.js.gz +0 -0
  367. codex/static_root/assets/confirm-dialog-DgKUUL0b.bd6e76fa370e.js.br +0 -0
  368. codex/static_root/assets/confirm-dialog-DgKUUL0b.bd6e76fa370e.js.gz +0 -0
  369. codex/static_root/assets/confirm-dialog-DgKUUL0b.js.br +0 -0
  370. codex/static_root/assets/confirm-dialog-DgKUUL0b.js.gz +0 -0
  371. codex/static_root/assets/datetime-column-jb1Y13cY.f98386c3c6cf.js.br +0 -0
  372. codex/static_root/assets/datetime-column-jb1Y13cY.f98386c3c6cf.js.gz +0 -0
  373. codex/static_root/assets/datetime-column-jb1Y13cY.js.br +0 -0
  374. codex/static_root/assets/datetime-column-jb1Y13cY.js.gz +0 -0
  375. codex/static_root/assets/filter-DU947LwF.64baedae8854.js.br +0 -0
  376. codex/static_root/assets/filter-DU947LwF.64baedae8854.js.gz +0 -0
  377. codex/static_root/assets/filter-DU947LwF.js.br +0 -0
  378. codex/static_root/assets/filter-DU947LwF.js.gz +0 -0
  379. codex/static_root/assets/flag-tab-BTT0536t.4219f4036821.js.br +0 -0
  380. codex/static_root/assets/flag-tab-BTT0536t.4219f4036821.js.gz +0 -0
  381. codex/static_root/assets/flag-tab-BTT0536t.js.br +0 -0
  382. codex/static_root/assets/flag-tab-BTT0536t.js.gz +0 -0
  383. codex/static_root/assets/forwardRefs-BGAZ1bvO.676c1aac262e.js.br +0 -0
  384. codex/static_root/assets/forwardRefs-BGAZ1bvO.676c1aac262e.js.gz +0 -0
  385. codex/static_root/assets/forwardRefs-BGAZ1bvO.js.br +0 -0
  386. codex/static_root/assets/forwardRefs-BGAZ1bvO.js.gz +0 -0
  387. codex/static_root/assets/group-tab-BP-SEY6G.0cb4e211f69e.js +0 -1
  388. codex/static_root/assets/group-tab-BP-SEY6G.0cb4e211f69e.js.br +0 -0
  389. codex/static_root/assets/group-tab-BP-SEY6G.0cb4e211f69e.js.gz +0 -0
  390. codex/static_root/assets/group-tab-BP-SEY6G.js +0 -1
  391. codex/static_root/assets/group-tab-BP-SEY6G.js.br +0 -0
  392. codex/static_root/assets/group-tab-BP-SEY6G.js.gz +0 -0
  393. codex/static_root/assets/http-error-1DNqtVPW.968aac8be867.js +0 -1
  394. codex/static_root/assets/http-error-1DNqtVPW.968aac8be867.js.br +0 -0
  395. codex/static_root/assets/http-error-1DNqtVPW.968aac8be867.js.gz +0 -0
  396. codex/static_root/assets/http-error-1DNqtVPW.js +0 -1
  397. codex/static_root/assets/http-error-1DNqtVPW.js.br +0 -0
  398. codex/static_root/assets/http-error-1DNqtVPW.js.gz +0 -0
  399. codex/static_root/assets/index-Cm9w_Tog.a1b4683f2e1d.js.br +0 -0
  400. codex/static_root/assets/index-Cm9w_Tog.a1b4683f2e1d.js.gz +0 -0
  401. codex/static_root/assets/index-Cm9w_Tog.js.br +0 -0
  402. codex/static_root/assets/index-Cm9w_Tog.js.gz +0 -0
  403. codex/static_root/assets/library-tab-5StL67ei.0fad8998a237.css.br +0 -0
  404. codex/static_root/assets/library-tab-5StL67ei.0fad8998a237.css.gz +0 -0
  405. codex/static_root/assets/library-tab-5StL67ei.css.br +0 -0
  406. codex/static_root/assets/library-tab-5StL67ei.css.gz +0 -0
  407. codex/static_root/assets/library-tab-C6FTaygv.b5c79b97a5a3.js +0 -1
  408. codex/static_root/assets/library-tab-C6FTaygv.b5c79b97a5a3.js.br +0 -0
  409. codex/static_root/assets/library-tab-C6FTaygv.b5c79b97a5a3.js.gz +0 -0
  410. codex/static_root/assets/library-tab-C6FTaygv.js +0 -1
  411. codex/static_root/assets/library-tab-C6FTaygv.js.br +0 -0
  412. codex/static_root/assets/library-tab-C6FTaygv.js.gz +0 -0
  413. codex/static_root/assets/main-CTlarBH9.047e388380e4.js +0 -39
  414. codex/static_root/assets/main-CTlarBH9.047e388380e4.js.br +0 -0
  415. codex/static_root/assets/main-CTlarBH9.047e388380e4.js.gz +0 -0
  416. codex/static_root/assets/main-CTlarBH9.js +0 -39
  417. codex/static_root/assets/main-CTlarBH9.js.br +0 -0
  418. codex/static_root/assets/main-CTlarBH9.js.gz +0 -0
  419. codex/static_root/assets/pager-full-pdf-BRkb6G_B.62c8a1533096.js +0 -1
  420. codex/static_root/assets/pager-full-pdf-BRkb6G_B.62c8a1533096.js.br +0 -0
  421. codex/static_root/assets/pager-full-pdf-BRkb6G_B.62c8a1533096.js.gz +0 -0
  422. codex/static_root/assets/pager-full-pdf-BRkb6G_B.js +0 -1
  423. codex/static_root/assets/pager-full-pdf-BRkb6G_B.js.br +0 -0
  424. codex/static_root/assets/pager-full-pdf-BRkb6G_B.js.gz +0 -0
  425. codex/static_root/assets/pagination-toolbar-U9PS3jI7.27a94126052e.js +0 -1
  426. codex/static_root/assets/pagination-toolbar-U9PS3jI7.27a94126052e.js.br +0 -0
  427. codex/static_root/assets/pagination-toolbar-U9PS3jI7.27a94126052e.js.gz +0 -0
  428. codex/static_root/assets/pagination-toolbar-U9PS3jI7.js +0 -1
  429. codex/static_root/assets/pagination-toolbar-U9PS3jI7.js.br +0 -0
  430. codex/static_root/assets/pagination-toolbar-U9PS3jI7.js.gz +0 -0
  431. codex/static_root/assets/pagination-toolbar-rUdD4-Qi.3a224c7806a5.css.br +0 -0
  432. codex/static_root/assets/pagination-toolbar-rUdD4-Qi.css.br +0 -0
  433. codex/static_root/assets/pdf-doc-CMzddyqW.5ef7eef50756.js.br +0 -0
  434. codex/static_root/assets/pdf-doc-CMzddyqW.5ef7eef50756.js.gz +0 -0
  435. codex/static_root/assets/pdf-doc-CMzddyqW.js.br +0 -0
  436. codex/static_root/assets/pdf-doc-CMzddyqW.js.gz +0 -0
  437. codex/static_root/assets/reader-DFkGB8xM.ba0585d918b5.js.br +0 -0
  438. codex/static_root/assets/reader-DFkGB8xM.ba0585d918b5.js.gz +0 -0
  439. codex/static_root/assets/reader-DFkGB8xM.js.br +0 -0
  440. codex/static_root/assets/reader-DFkGB8xM.js.gz +0 -0
  441. codex/static_root/assets/reader-HE07eoaG.8626eeb7c718.css.br +0 -0
  442. codex/static_root/assets/reader-HE07eoaG.8626eeb7c718.css.gz +0 -0
  443. codex/static_root/assets/reader-HE07eoaG.css.br +0 -0
  444. codex/static_root/assets/reader-HE07eoaG.css.gz +0 -0
  445. codex/static_root/assets/relation-chips-32lE_odZ.7cc1620d4c97.js.br +0 -0
  446. codex/static_root/assets/relation-chips-32lE_odZ.7cc1620d4c97.js.gz +0 -0
  447. codex/static_root/assets/relation-chips-32lE_odZ.js.br +0 -0
  448. codex/static_root/assets/relation-chips-32lE_odZ.js.gz +0 -0
  449. codex/static_root/assets/settings-drawer-B-pwZRSy.8fc8b237bb52.css.br +0 -0
  450. codex/static_root/assets/settings-drawer-B-pwZRSy.8fc8b237bb52.css.gz +0 -0
  451. codex/static_root/assets/settings-drawer-B-pwZRSy.css.br +0 -0
  452. codex/static_root/assets/settings-drawer-B-pwZRSy.css.gz +0 -0
  453. codex/static_root/assets/settings-drawer-BaTLfqbD.8693ca4de517.js +0 -2
  454. codex/static_root/assets/settings-drawer-BaTLfqbD.8693ca4de517.js.br +0 -0
  455. codex/static_root/assets/settings-drawer-BaTLfqbD.8693ca4de517.js.gz +0 -0
  456. codex/static_root/assets/settings-drawer-BaTLfqbD.js +0 -2
  457. codex/static_root/assets/settings-drawer-BaTLfqbD.js.br +0 -0
  458. codex/static_root/assets/settings-drawer-BaTLfqbD.js.gz +0 -0
  459. codex/static_root/assets/ssrBoot-CjQLVcFD.0db2c2fe9b66.js.br +0 -0
  460. codex/static_root/assets/ssrBoot-CjQLVcFD.0db2c2fe9b66.js.gz +0 -0
  461. codex/static_root/assets/ssrBoot-CjQLVcFD.js.br +0 -0
  462. codex/static_root/assets/ssrBoot-CjQLVcFD.js.gz +0 -0
  463. codex/static_root/assets/stats-tab-WD67DkuY.4cd13274173f.js.br +0 -0
  464. codex/static_root/assets/stats-tab-WD67DkuY.4cd13274173f.js.gz +0 -0
  465. codex/static_root/assets/stats-tab-WD67DkuY.js.br +0 -0
  466. codex/static_root/assets/stats-tab-WD67DkuY.js.gz +0 -0
  467. codex/static_root/assets/task-tab-CHOLNUJh.bbf1c7a95058.js.br +0 -0
  468. codex/static_root/assets/task-tab-CHOLNUJh.bbf1c7a95058.js.gz +0 -0
  469. codex/static_root/assets/task-tab-CHOLNUJh.js.br +0 -0
  470. codex/static_root/assets/task-tab-CHOLNUJh.js.gz +0 -0
  471. codex/static_root/assets/unauthorized-BsEyzLQ2.e54a69cff5c6.js.br +0 -0
  472. codex/static_root/assets/unauthorized-BsEyzLQ2.e54a69cff5c6.js.gz +0 -0
  473. codex/static_root/assets/unauthorized-BsEyzLQ2.js.br +0 -0
  474. codex/static_root/assets/unauthorized-BsEyzLQ2.js.gz +0 -0
  475. codex/static_root/assets/user-tab-CbNhbZzZ.af38f932a795.js.br +0 -0
  476. codex/static_root/assets/user-tab-CbNhbZzZ.af38f932a795.js.gz +0 -0
  477. codex/static_root/assets/user-tab-CbNhbZzZ.js.br +0 -0
  478. codex/static_root/assets/user-tab-CbNhbZzZ.js.gz +0 -0
  479. codex/static_root/manifest.39fe502cd3a2.json.br +0 -0
  480. codex/static_root/manifest.39fe502cd3a2.json.gz +0 -0
  481. codex-1.8.10.dist-info/RECORD +0 -1103
  482. codex-1.8.10.dist-info/WHEEL +0 -4
  483. codex-1.8.10.dist-info/licenses/LICENSE +0 -674
@@ -1 +0,0 @@
1
- import{_ as m,E as c,v as e,q as s,x as l,a as o,w as u,aK as _,al as d}from"./main-CTlarBH9.js";import{S as g,P}from"./reader-DFkGB8xM.js";import f from"./pdf-doc-CMzddyqW.js";import"./settings-drawer-BaTLfqbD.js";import"./forwardRefs-BGAZ1bvO.js";import"./unauthorized-BsEyzLQ2.js";import"./VDialog-Bn_MNvQ-.js";import"./change-password-dialog-Df28DwbL.js";import"./VForm-BRei2Gn2.js";import"./VSelectionControl-N_wsNRlD.js";import"./admin-26AnWn-T.js";import"./ssrBoot-CjQLVcFD.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDivider-DOOd4a9s.js";import"./VWindowItem-BmpD4isF.js";import"./VSelect-CJ_8hyFq.js";import"./VCheckboxBtn-dotsoE0r.js";import"./pagination-toolbar-U9PS3jI7.js";import"./VTable-YgXyPctG.js";import"./confirm-dialog-DgKUUL0b.js";import"./VExpansionPanels-Be8WWdca.js";import"./VRadioGroup-DVVCXDtV.js";import"./VCheckbox-BfVeJY8A.js";import"./index-Cm9w_Tog.js";const k={name:"PagerFullPDF",components:{PageChangeLink:P,PDFDoc:f,ScaleForScroll:g},props:{book:{type:Object,required:!0}},emits:["load","error","unauthorized"],computed:{...c(d,{page:r=>r.page||0}),src(){return _(this.book)}}};function F(r,S,a,D,h,p){const t=e("PageChangeLink"),n=e("PDFDoc"),i=e("ScaleForScroll");return l(),s("span",null,[o(t,{direction:"prev"}),o(t,{direction:"next"}),o(i,null,{default:u(()=>[o(n,{book:a.book,page:r.page,src:p.src},null,8,["book","page","src"])]),_:1})])}const M=m(k,[["render",F]]);export{M as default};
@@ -1 +0,0 @@
1
- import{_ as m,E as c,v as e,q as s,x as l,a as o,w as u,aK as _,al as d}from"./main-CTlarBH9.js";import{S as g,P}from"./reader-DFkGB8xM.js";import f from"./pdf-doc-CMzddyqW.js";import"./settings-drawer-BaTLfqbD.js";import"./forwardRefs-BGAZ1bvO.js";import"./unauthorized-BsEyzLQ2.js";import"./VDialog-Bn_MNvQ-.js";import"./change-password-dialog-Df28DwbL.js";import"./VForm-BRei2Gn2.js";import"./VSelectionControl-N_wsNRlD.js";import"./admin-26AnWn-T.js";import"./ssrBoot-CjQLVcFD.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDivider-DOOd4a9s.js";import"./VWindowItem-BmpD4isF.js";import"./VSelect-CJ_8hyFq.js";import"./VCheckboxBtn-dotsoE0r.js";import"./pagination-toolbar-U9PS3jI7.js";import"./VTable-YgXyPctG.js";import"./confirm-dialog-DgKUUL0b.js";import"./VExpansionPanels-Be8WWdca.js";import"./VRadioGroup-DVVCXDtV.js";import"./VCheckbox-BfVeJY8A.js";import"./index-Cm9w_Tog.js";const k={name:"PagerFullPDF",components:{PageChangeLink:P,PDFDoc:f,ScaleForScroll:g},props:{book:{type:Object,required:!0}},emits:["load","error","unauthorized"],computed:{...c(d,{page:r=>r.page||0}),src(){return _(this.book)}}};function F(r,S,a,D,h,p){const t=e("PageChangeLink"),n=e("PDFDoc"),i=e("ScaleForScroll");return l(),s("span",null,[o(t,{direction:"prev"}),o(t,{direction:"next"}),o(i,null,{default:u(()=>[o(n,{book:a.book,page:r.page,src:p.src},null,8,["book","page","src"])]),_:1})])}const M=m(k,[["render",F]]);export{M as default};
@@ -1 +0,0 @@
1
- import{g as ke,p as he,f as ot,t as $,u as ye,b as m,n as re,d as V,K as Re,aY as $e,_ as T,y as f,W as Ne,A as ue,w as C,m as Z,x as l,a6 as Ve,a as u,E as M,aZ as lt,N as L,q as p,H as h,B as w,aw as ut,ae as Te,a_ as dt,a$ as ct,az as mt,v as _,C as de,b0 as ht,b1 as ft,U as pt,a0 as Le,z as F,b2 as vt,b3 as Fe,l as gt,b4 as bt,F as me,ag as kt,ac as yt,ad as _t,a9 as Ue,G as St,b5 as wt,ab as Ct,Y as Tt,c as g,b6 as De,aD as Ie,aU as Ee,r as be,b7 as Mt,b8 as Me,aX as Bt,aW as Rt,i as qe,b9 as Nt,h as ie,T as ze,aR as Vt,e as Lt}from"./main-CTlarBH9.js";import{A as It,V as _e,k as ne,n as xt,t as Pt,j as $t,R as Oe,s as Ft,u as Dt,c as Be,i as Et,f as zt}from"./forwardRefs-BGAZ1bvO.js";import{c as Ot,d as At}from"./VSelect-CJ_8hyFq.js";import{a as Gt,c as jt,d as Ut,V as qt}from"./VDialog-Bn_MNvQ-.js";import{C as Ht}from"./change-password-dialog-Df28DwbL.js";import{d as Kt,f as Wt,u as Yt,g as Ae,m as Zt,h as Xt,i as Qt}from"./VSelectionControl-N_wsNRlD.js";import{V as He}from"./VTable-YgXyPctG.js";import{C as Ke}from"./confirm-dialog-DgKUUL0b.js";import{P as Jt,V as ea}from"./unauthorized-BsEyzLQ2.js";const ta=he({...Re(),...It({variant:"text"})},"VToolbarItems"),pi=ke()({name:"VToolbarItems",props:ta(),setup(e,t){let{slots:a}=t;return ot({VBtn:{color:$(()=>e.color),height:"inherit",variant:$(()=>e.variant)}}),ye(()=>m("div",{class:V(["v-toolbar-items",e.class]),style:re(e.style)},[a.default?.()])),{}}}),Ce=new Set(["",$e,$e.toString(),void 0]),aa=function(e){let t;if(Ce.has(e))t=e;else if(e instanceof Object)if("ids"in e){const a=new Set(e.ids);Ce.intersection(a).size>0?t=void 0:t={value:e.ids.join(","),title:e.name}}else Ce.has(e.pk)?t=void 0:t={value:e.pk,title:e.name};else t={value:e,title:e.toString()};return e?.url&&(t.url=e.url),t},sa=function(e,t){return e.title.localeCompare(t.title)},ia=function(e,t){return Number.parseFloat(e.title)-Number.parseFloat(t.title)},Ge=function({items:e,filter:t,numeric:a=!1,sort:r=!0}){const n=e||[],s=t&&t.toLowerCase();let i=[];for(const o of n){const d=aa(o);d!=null&&(!s||d?.title?.toLowerCase().includes(s))&&i.push(d)}if(r){const o=a?ia:sa;i=i.sort(o)}return i},na={name:"ToolbarSelect",props:{selectLabel:{type:String,default:""},maxSelectLen:{type:Number,default:0}},computed:{style(){if(this.maxSelectLen){const e=this.$vuetify.display.xs?"max-width":"width",t=this.maxSelectLen*.7+"em";return`${e}: ${t}`}return""}}};function ra(e,t,a,r,n,s){return l(),f(Ot,Z(e.$attrs,{label:a.selectLabel,"aria-label":a.selectLabel,class:"toolbarSelect",density:"compact","full-width":"","menu-props":{maxHeight:void 0},"hide-details":"auto",style:s.style,variant:"plain"}),Ne({item:C(({item:i,props:o})=>[u(Gt,Z(o,{density:"compact",variant:"plain",title:i.title,value:i.value}),null,16,["title","value"])]),_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1040,["label","aria-label","style"])}const vi=T(na,[["render",ra],["__scopeId","data-v-cda2da63"]]),gi=jt("v-spacer","div","VSpacer"),oa={name:"BookCover",props:{group:{type:String,required:!0},pks:{type:Array,required:!0},childCount:{type:Number,default:1},finished:{type:Boolean},mtime:{type:Number,default:Date.now()}},data(){return{showPlaceholder:!1}},computed:{...M(L,["coverSettings"]),coverSrc(){return lt({group:this.group,pks:this.pks},this.coverSettings,this.mtime)},multiPkClasses(){const e=this.pks.length,t={};return e>=4?t.stack4=!0:e>1&&(t[`stack${e}`]=!0),t}},mounted:function(){this.delayPlaceholder()},methods:{delayPlaceholder:function(){setTimeout(()=>{this.showPlaceholder=!0},2e3)}}},la={class:"bookCover"},ua={key:1,class:"childCount"};function da(e,t,a,r,n,s){return l(),p("div",la,[u(Ut,{src:s.coverSrc,class:V(["coverImg",s.multiPkClasses])},null,8,["src","class"]),a.finished!==!0?(l(),p("div",{key:0,class:V({unreadFlag:!0,mixedreadFlag:a.finished===null})},null,2)):h("",!0),a.group!=="c"?(l(),p("span",ua,w(a.childCount),1)):h("",!0)])}const ca=T(oa,[["render",da],["__scopeId","data-v-8e8f21d5"]]),ma=10,ha={name:"DownloadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},data(){return{mdiDownload:mt}},computed:{...M(L,["filterOnlySettings","groupNames"]),show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},isOneComic(){return this.item?.group==="c"&&this.item?.ids?.length===1},downloadFn(){return this.isOneComic?this.item.name:`${this.groupNames[this.item?.group]} - ${this.item.name} Comics.zip`},downloadURL(){let e="";if(this.isOneComic){const t=this.item.ids[0];e=dt({pk:t},this.downloadFn,this.item?.mtime)}else{const t=this.item?.group,a=this.item?.ids,r=this.filterOnlySettings;e=ct({group:t,pks:a},this.downloadFn,r,this.item?.mtime)}return e},formattedChildren(){return Te.format(this.item?.childCount)},title(){let e="Download";return e+=this.isOneComic?" Book":` ${this.formattedChildren} Books`,e},confirm(){return this.item?.childCount>ma},confirmText(){return this.confirm?`Download ${this.formattedChildren} books`:""}},methods:{download(){const e=this.downloadURL,t=this.downloadFn;if(this.isOneComic)ut(e,t);else{const a=document.createElement("a");a.download=this.downloadFn,a.href=this.downloadURL,a.click(),a.remove()}}}};function fa(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.title,confirm:s.confirm,"confirm-text":"Download","prepend-icon":n.mdiDownload,"title-text":s.title,text:"May take a while",onConfirm:s.download},null,8,["button","button-text","confirm","prepend-icon","title-text","onConfirm"])):h("",!0)}const pa=T(ha,[["render",fa],["__scopeId","data-v-4c14087b"]]),va=1,ga={name:"MarkReadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},computed:{...M(L,["groupNames"]),verb(){return this.item.finished?"Unread":"Read"},confirm(){return this.item.children>va},show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},icon(){return this.item.finished?ht:ft},confirmText(){return this.confirm?`Mark ${this.verb}`:""},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");const t=this.groupNames[this.item.group];return e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name||"(Empty)"}},methods:{...de(L,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished)}}};function ba(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.markReadText,confirm:s.confirm,"confirm-text":s.confirmText,"prepend-icon":s.icon,"title-text":s.markReadText,text:s.itemName,onConfirm:s.toggleRead},null,8,["button","button-text","confirm","confirm-text","prepend-icon","title-text","text","onConfirm"])):h("",!0)}const ka=T(ga,[["render",ba],["__scopeId","data-v-7b148c61"]]),ya=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_a=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Sa=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],wa=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],je=(e,t,a)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,a):(t===!0||a!==void 0)&&(r=e.toLocaleString(void 0,a)),r},We=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10("0."+t.slice(0,15))},Ca=e=>typeof e=="number"?Math.log(e):We(e)*Math.log(10),Ta=(e,t)=>{if(typeof e=="number")return e/t;const a=e/BigInt(t),r=e%BigInt(t);return Number(a)+Number(r)/t};function Ye(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const a=t.bits?t.binary?wa:Sa:t.binary?_a:ya,r=t.space?" ":"";if(t.signed&&(typeof e=="number"?e===0:e===0n))return` 0${r}${a[0]}`;const n=e<0,s=n?"-":t.signed?"+":"";n&&(e=-e);let i;if(t.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1){const B=je(e,t.locale,i);return s+B+r+a[0]}const o=Math.min(Math.floor(t.binary?Ca(e)/Math.log(1024):We(e)/3),a.length-1);e=Ta(e,(t.binary?1024:1e3)**o),i||(e=e.toPrecision(3));const d=je(Number(e),t.locale,i),k=a[o];return s+d+r+k}const Ma={name:"MetadataExpandButton"};function Ba(e,t,a,r,n,s){return l(),f(_e,{density:"compact",text:"...expand",variant:"text"})}const Ra=T(Ma,[["render",Ba]]),Na={name:"MetadataTextBox",components:{ExpandButton:Ra},props:{group:{type:String,default:""},highlight:{type:Boolean,default:!1},label:{type:String,default:""},maxHeight:{type:Number,default:0},value:{type:[Object,String,Number,Boolean],default:void 0}},data(){return{mdiOpenInNew:Le,expanded:!1,mounted:!1}},computed:{...M(L,["groupNames"]),...M(L,{browserShow:e=>e.settings.show,browserTopGroup:e=>e.settings.topGroup,folderViewEnabled:e=>e.page.adminFlags.folderView}),computedValue(){return this.value&&this.value.name!==void 0?this.value.name:this.value},lastSlashIndex(){return this.computedValue.lastIndexOf("/")+1},displayValue(){let e;return this.group==="f"&&this.computedValue?e=this.computedValue.slice(0,Math.max(0,this.lastSlashIndex)):this.group==="v"&&this.computedValue?e=pt(this.computedValue,this.value.numberTo):e=this.computedValue,e},textValueStyles(){const e=this.maxHeight>0&&!this.expanded?this.maxHeight:0;return e?"max-height: "+e+"px;":""},textValueRefName(){return"mdTextValue"+this.label.replaceAll(" ","")},isOverflow(){if(!this.mounted)return!1;const e=this.$refs[this.textValueRefName];return e?e.clientHeight<e.scrollHeight:!1},showExpandButton(){return!this.expanded&&this.maxHeight>0&&this.isOverflow},linkPks(){return(this.value.ids||[this.value.pk]).join(",")},clickable(){const e=this.$router.currentRoute.value.params;return!this.group||e.group===this.group||this.group==="f"&&!this.folderViewEnabled||!["a","f"].includes(this.group)&&!this.browserShow[this.group]?!1:!!this.linkPks?.length},classes(){return{clickable:this.clickable,highlight:this.highlight}},toRoute(){if(!this.clickable)return"";const e=this.group,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){return{topGroup:this.getTopGroup(this.group)}},title(){let e;return this.label?e=this.label:this.group?e=this.groupNames[this.group]:e="",this.toRoute?`Browse to ${e}`:e},baseName(){return this.group==="f"?this.computedValue.slice(Math.max(0,this.lastSlashIndex)):""}},mounted(){this.mounted=!0},methods:{...de(L,["routeWithSettings","getTopGroup"]),onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Va={key:0,class:"text"},La={key:0,class:"textLabel"},Ia=["title"],xa={key:0,class:"textContent"};function Pa(e,t,a,r,n,s){const i=_("ExpandButton");return s.displayValue?(l(),p("div",Va,[a.label?(l(),p("div",La,[F(w(a.label)+" ",1),s.showExpandButton?(l(),f(i,{key:0,class:"expandButton",onClick:t[0]||(t[0]=o=>n.expanded=!0)})):h("",!0)])):h("",!0),u(Kt,null,{default:C(()=>[m("div",null,[m("div",{ref:s.textValueRefName,class:"textValue",style:re(s.textValueStyles)},[m("span",{class:V(["textContent",s.classes]),title:s.title,onClick:t[1]||(t[1]=(...o)=>s.onClick&&s.onClick(...o))},w(s.displayValue),11,Ia),s.baseName?(l(),p("span",xa,w(s.baseName),1)):h("",!0)],4),s.showExpandButton&&!a.label?(l(),f(i,{key:0,class:"expandButton",onClick:t[2]||(t[2]=o=>n.expanded=!0)})):h("",!0)])]),_:1})])):h("",!0)}const xe=T(Na,[["render",Pa],["__scopeId","data-v-847af0f1"]]),Ze=["writer","author","plotter","plot","script","scripter","story","interviewer","translator","artist","penciller","breakdowns","pencils","illustrator","layouts","inker","finishes","inks","embellisher","inkAssists","colorist","colorer","colourer","colors","colours","colorDesigner","colorFlats","colorSeparations","designer","digitalArtTechnician","grayTone","letterer","cover","covers","coverArtist","editor","edits","editing"];Object.freeze(Ze);const Xe=["genres","characters","teams","locations","seriesGroups","stories","storyArcNumbers","tags","universes"];Object.freeze(Xe);const Qe=new Set(["Characters","Teams"]);Object.freeze(Qe);function $a(e,t){const a=e.name.split(" ").pop(),r=t.name.split(" ").pop();return a.localeCompare(r)}const z=vt("metadata",{state:()=>({md:void 0}),getters:{roleMap(e){const t={};for(const{role:a}of e.md.credits){const r=a?.name?a.name:"Other";t[r]=a}return t},_mappedCredits(e){const t={};if(!e?.md?.credits)return t;for(const{role:a,person:r}of e.md.credits){const n=a?.name?a.name:"Other";n in t||(t[n]=[]),t[n].push(r)}for(const[a,r]of Object.entries(t))t[a]=r.sort($a);return t},_sortedRoles(e){const t=new Set(Object.keys(e._mappedCredits)),a=[];for(const n of Ze)t.has(n)&&(a.push(n),t.delete(n));const r=[...t].sort();return[...a,...r]},credits(e){return this.mapTag(e._mappedCredits,e._sortedRoles)},identifiers(e){const t=[];if(!e.md?.identifiers)return t;for(const a of e.md.identifiers){const r=a.name.split(":"),n=r[0],s=r[1],i=L().identifierSourceTitle(n);let o="";i&&i!=="None"&&(o+=i+":"),o+=s;const d={pk:a.pk,url:a.url,name:o};t.push(d)}return t},tags(e){const t=e.mapTag(e.md,Xe);e.identifiers?.length&&(t.Identifiers={filter:"identifiers",tags:this.identifiers});for(const a of Object.values(t))a.tags=a.tags.sort((r,n)=>r.name.localeCompare(n.name));return t}},actions:{async loadMetadata({group:e,pks:t}){await Fe.getMetadata({group:e,pks:t},L().metadataSettings).then(a=>{const r={...a.data};return r.loaded=!0,this.md=r,!0}).catch(a=>{console.error(a),this.clearMetadata()})},clearMetadata(){this.md=void 0},getTagName(e){var t;return e==="storyArcNumbers"?t="Story Arcs":t=gt(e),t},markTagMain(e,t){const a="main"+e.slice(0,-1),r=this.md[a]?.pk,n=[];var s=[];for(const i of t)r===i.pk?s.push(i):n.push(i);return{mainTags:s,regularTags:n}},mapTag(e,t){const a={};for(const s of t){const i=e[s];if(!i?.length)continue;const o=this.getTagName(s);var r=[],n=[];Qe.has(o)?{mainTags:r,regularTags:n}=this.markTagMain(o,i):n=i,a[o]={filter:s,tags:n,mainTags:r}}return a},lazyImport({group:e,ids:t}){return Fe.getLazyImport({group:e,pks:t})}}}),Fa={name:"MetadataRatings",components:{MetadataText:xe},computed:{...M(z,{md:e=>e.md}),show(){return this.md?.criticRating!==void 0||this.md?.ageRating}}},Da={key:0},Ea={key:1};function za(e,t,a,r,n,s){const i=_("MetadataText");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[e.md.criticalRating?(l(),p("tr",Da,[t[0]||(t[0]=m("td",{class:"key"},"Critical Rating",-1)),m("td",null,[u(i,{value:e.md.criticalRating},null,8,["value"])])])):h("",!0),e.md.ageRating?(l(),p("tr",Ea,[t[1]||(t[1]=m("td",{class:"key"},"Age Rating",-1)),m("td",null,[u(i,{value:e.md.ageRating.name},null,8,["value"])])])):h("",!0)])]),_:1})):h("",!0)}const Oa=T(Fa,[["render",za],["__scopeId","data-v-8b5cb217"]]),Aa=new Set(["p","i","s","v"]),Ga={name:"MetadataTags",props:{item:{type:Object,required:!0},filter:{type:String,default:""},main:{type:Boolean,default:!1}},data(){return{mdiStar:bt,mdiOpenInNew:Le}},computed:{...M(L,{browserShow:e=>e.settings.show,filterValues(e){return e.settings.filters[this.filter]},topGroup:e=>e.settings.topGroup}),...M(z,{mdGroup:e=>e.md.group,mdIds:e=>e.md.ids}),groupMode(){return Aa.has(this.filter)},clickable(){return this.filter&&this.item.value&&(!this.groupMode||this.browserShow[this.filter])},classes(){return{clickable:(this.clickable||this.item.url)&&!this.highlight}},highlight(){return!!(this.groupMode&&this.filter===this.mdGroup&&this.mdIds.includes(this.item.value)||this.filterValues?.includes(this.item.value))},variant(){return this.highlight?"flat":"tonal"},color(){const e=this.$vuetify.theme.current.colors;return this.highlight?e["primary-darken-1"]:""},linkGroup(){let e;return this.groupMode?e=this.filter:e=["f","s"].includes(this.topGroup)?this.topGroup:"r",e},linkPks(){return this.groupMode||this.linkGroup!=="a"&&this.filter==="storyArcs"?this.item.value.toString():"0"},toRoute(){if(!this.clickable)return"";const e=this.linkGroup,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){let e;return this.linkPks==="0"?e={filters:{[this.filter]:[this.item.value]}}:e={topGroup:this.getTopGroup(this.linkGroup)},e},title(){return this.filter==="identifiers"?this.identifierSourceTitle(this.item.title):this.item.title}},methods:{...de(L,["routeWithSettings","getTopGroup","identifierSourceTitle"]),async onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},ja=["href"],Ua={key:1};function qa(e,t,a,r,n,s){return l(),f(At,{class:V(s.classes),color:s.color,value:a.item.value,variant:s.variant,onClick:s.onClick},{default:C(()=>[a.item.url?(l(),p("a",{key:0,href:a.item.url,target:"_blank"},[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})],8,ja)):(l(),p("span",Ua,[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(" "+w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0)]))]),_:1},8,["class","color","value","variant","onClick"])}const Ha=T(Ga,[["render",qa],["__scopeId","data-v-1da1eb5b"]]),Ka={name:"MetadataTags",components:{MetadataChip:Ha},props:{label:{type:String,default:""},values:{type:Array,default(){return[]}},mainValues:{type:Array,default(){return[]}},filter:{type:String,required:!1,default:void 0}},computed:{mainItems(){return Ge({items:this.mainValues,sort:!1})},items(){let e;return this.filter==="universes"?e=this.fixUniverseTitles(this.values):e=this.values,Ge({items:e,sort:!1})}},methods:{...de(L,["fixUniverseTitles"])}},Wa={key:0},Ya={key:0,class:"chipGroupLabel"};function Za(e,t,a,r,n,s){const i=_("MetadataChip");return s.items?.length>0?(l(),p("div",Wa,[a.label?(l(),p("div",Ya,w(a.label),1)):h("",!0),m("div",null,[(l(!0),p(me,null,ue(s.mainItems,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o,main:!0},null,8,["filter","item"]))),128)),(l(!0),p(me,null,ue(s.items,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o},null,8,["filter","item"]))),128))])])):h("",!0)}const Je=T(Ka,[["render",Za],["__scopeId","data-v-836d9fbb"]]),Xa={name:"MetadataTagsTable",components:{MetadataTags:Je},data(){return{mdiOpenInNew:Le}},props:{keyMap:{type:Object,default:void 0},tagMap:{type:Object,required:!0}},computed:{show(){return Object.keys(this.tagMap).length>0}}},Qa={key:0,class:"key keyLink"},Ja={href:"keyMap[key].url"},es={key:1,class:"key"},ts={class:"tags"};function as(e,t,a,r,n,s){const i=_("MetadataTags");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[(l(!0),p(me,null,ue(Object.entries(a.tagMap),([o,{filter:d,tags:k,mainTags:B}])=>(l(),p("tr",{key:o},[a.keyMap&&a.keyMap[o]&&a.keyMap[o].url?(l(),p("td",Qa,[m("a",Ja,[F(w(o),1),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})])])):(l(),p("td",es,w(o),1)),m("td",ts,[u(i,{filter:d,values:k,mainValues:B},null,8,["filter","values","mainValues"])])]))),128))])]),_:1})):h("",!0)}const ss=T(Xa,[["render",as],["__scopeId","data-v-56102c2c"]]),is={name:"MetadataBody",components:{MetadataRatings:Oa,MetadataTagsTable:ss,MetadataText:xe},props:{book:{type:Object,required:!0}},computed:{...M(z,["credits","ratings","tags"]),...M(L,{twentyFourHourTime:e=>e.settings?.twentyFourHourTime,readingDirectionTitles:e=>e.choices.static.readingDirection}),...M(z,{md:e=>e.md,roleMap:e=>e.roleMap}),readingDirectionText(){return this.md?this.readingDirectionTitles[this.md.readingDirection]:"Unknown"},size(){return this?.md?.size>0?Ye(this.md.size):0},sizeLabel(){return this?.md?.group==="c"?"Size":"Total Size"},fileType(){return this?.md?.fileType||"Unknown"}},methods:{formatDateTime(e){return kt(e,this.twentyFourHourTime)}}},ns={id:"metadataBody"},rs={class:"mdSection"},os={class:"mdSection"},ls={class:"quarterRow"},us={class:"thirdRow"},ds={class:"lastSmallRow"},cs={key:0,class:"halfRow mdSection"},ms={class:"mdSection"},hs={class:"inlineRow"},fs={class:"inlineRow"};function ps(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataTagsTable"),d=_("MetadataRatings");return l(),p("div",ns,[m("section",rs,[u(i,{value:e.md.summary,"max-height":100},null,8,["value"]),u(i,{value:e.md.review,label:"Review","max-height":100},null,8,["value"])]),u(o,{"key-map":e.roleMap,"tag-map":e.credits,class:"mdSection"},null,8,["key-map","tag-map"]),m("section",os,[m("div",ls,[e.md.createdAt?(l(),f(i,{key:0,value:s.formatDateTime(e.md.createdAt),label:"Created at",class:"mtime"},null,8,["value"])):h("",!0),e.md.updatedAt?(l(),f(i,{key:1,value:s.formatDateTime(e.md.updatedAt),label:"Updated at",class:"mtime"},null,8,["value"])):h("",!0),u(i,{value:s.size,label:s.sizeLabel},null,8,["value","label"]),u(i,{value:s.fileType,label:"File Type"},null,8,["value"])]),m("div",us,[u(i,{label:"Reading Direction",value:s.readingDirectionText},null,8,["value"]),u(i,{value:e.md.originalFormat?.name,label:"Original Format"},null,8,["value"]),u(i,{value:(!!e.md.monochrome).toString(),label:"Monochrome"},null,8,["value"])]),m("div",ds,[u(i,{group:"f",value:{pk:e.md.parentFolderId,name:e.md.path},label:"Path"},null,8,["value"])])]),e.md?.country||e.md?.language?(l(),p("section",cs,[u(i,{value:e.md.country?.name,label:"Country"},null,8,["value"]),u(i,{value:e.md.language?.name,label:"Language"},null,8,["value"])])):h("",!0),u(d,{class:"mdSection"}),u(o,{"tag-map":e.tags,class:"mdSection"},null,8,["tag-map"]),m("section",ms,[m("section",hs,[u(i,{value:e.md.notes,label:"Notes"},null,8,["value"])]),m("section",fs,[u(i,{value:e.md.tagger,label:"Tagger"},null,8,["value"]),u(i,{value:e.md.scanInfo,label:"Scan"},null,8,["value"])])])])}const vs=T(is,[["render",ps],["__scopeId","data-v-e65fff8f"]]),et=new Set("rtl","btt");Object.freeze(et);const tt=({ids:e,page:t,readingDirection:a,pageCount:r},n)=>{if(e.length===0||n&&!r)return"";const s=e[0];if(t)t=Number(t);else if(et.has(a)){const i=Number(r)-1;t=Math.max(i,0)}else t=0;return{name:"reader",params:{pk:s,page:t}}},at={p:"publisher",i:"imprint",s:"series",v:"volume",f:"folder",a:"storyArc"};Object.freeze(at);const gs={name:"MetadataControls",components:{DownloadButton:pa,MarkReadButton:ka},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md}),...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata}),downloadName(){const e=this.md;let t;if(!e)t="Unknown.cbz";else if(e.fileName)t=e.fileName;else{if(this.md.group==="f")return[this.firstNameFromList(e.folderList)];if(this.md.group==="a")return[this.firstNameFromList(e.storyArcList)];t=[this.firstNameFromList(e.publisherList),this.firstNameFromList(e.imprintList),this.firstNameFromList(e.seriesList),this.firstNameFromList(e.volumeList),Ue(this.md,3),this.md.name].filter(Boolean).join(" ")}return t},downloadItem(){return{group:this.md?.group,ids:this.md?.ids,childCount:this.md?.childCount,mtime:this.md?.mtime,name:this.downloadName}},isReadButtonShown(){return this.group==="c"&&this.$route.name!="reader"},isReadButtonEnabled(){return!!this.readerRoute},markReadItem(){let e="";const t=at[this.md.group];return t?e=(this.md[t+"List"]||[]).map(({name:n})=>n).join(", "):e=this.md.name,{group:this.md.group,ids:this.md.ids,finished:this.md.finished,name:e,children:this.md.childCount||1}},readButtonIcon(){return this.isReadButtonEnabled?yt:_t},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},size(){return this.$vuetify.display.smAndDown?"x-small":"default"}},methods:{firstNameFromList(e){let t="";if(!e)return t;for(const a of Object.values(e))if(a.name){t=a.name;break}return t}}},bs={class:"controlRow"};function ks(e,t,a,r,n,s){const i=_("DownloadButton"),o=_("MarkReadButton");return l(),p("section",bs,[u(i,{id:"downloadButton",button:!0,item:s.downloadItem,size:s.size},null,8,["item","size"]),u(o,{id:"markReadButton",button:!0,item:s.markReadItem,size:s.size},null,8,["item","size"]),s.isReadButtonShown?(l(),f(_e,{key:0,id:"readButton",title:"Read Comic",disabled:!s.isReadButtonEnabled,size:s.size,to:s.readerRoute},{default:C(()=>[u(ne,null,{default:C(()=>[F(w(s.readButtonIcon),1)]),_:1}),t[0]||(t[0]=F(" Read ",-1))]),_:1,__:[0]},8,["disabled","size","to"])):h("",!0)])}const ys=T(gs,[["render",ks],["__scopeId","data-v-d254bb05"]]),_s={name:"MetadataBookCover",components:{BookCover:ca},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md})}},Ss={class:"bookCoverWrapper"};function ws(e,t,a,r,n,s){const i=_("BookCover");return l(),p("div",Ss,[u(i,{id:"bookCover",group:a.group,pks:e.md.ids,"child-count":e.md.childCount,finished:e.md.finished,mtime:e.md.mtime},null,8,["group","pks","child-count","finished","mtime"]),u(xt,{class:"bookCoverProgress","model-value":e.md.progress,rounded:"","background-color":"inherit",height:"2","aria-label":"% read"},null,8,["model-value"])])}const Cs=T(_s,[["render",ws],["__scopeId","data-v-3a0db03b"]]),Ts={name:"MetadataHeader",components:{MetadataBookCover:Cs,MetadataControls:ys,MetadataTags:Je,MetadataText:xe},props:{group:{type:String,required:!0}},computed:{...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata,q:e=>e.settings.q}),...M(z,{md:e=>e.md}),collectionTitle(){if(this.md.collectionTitle)return`${this.md.collectionTitle}:`},date(){if(!this.md.year&&!this.md.month&&!this.md.day)return"";const e=new Date(this.md.year||1970,this.md.month||1,this.md.day||1),t={};return this.md.year&&(t.year="numeric"),this.md.month&&(t.month=this.$vuetify.display.smAndDown?"short":"long"),this.md.day&&(t.day="numeric"),e.toLocaleDateString("default",t)},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},formattedIssueNumber(){if(!this.md)return"Unknown";if(!((this.md.issueNumber===null||this.md.issueNumber===void 0)&&!this.md.issueSuffix))return"#"+Ue(this.md)},pages(){let e="";if(!this.md)return e;if(this.md.page){const a=Te.format(this.md.page);e+=this.$vuetify.display.smAndDown?`${a} / `:`Read ${a} of `}const t=Te.format(this.md.pageCount);return e+=`${t} page`,this.md.pageCount!==1&&(e+="s"),this.$vuetify.display.smAndUp&&this.md.progress>0&&(e+=` (${Math.round(this.md.progress)}%)`),e},size(){return this?.md?.size>0?Ye(this.md.size):0},fileType(){return this?.md?.fileType||"Unknown"},seriesVolumeCount(){const e=this.md.seriesVolumeCount;return e?`of ${e}`:""},volumeIssueCount(){const e=this.md.volumeIssueCount;return e?`/ ${e}`:""}}},Ms={id:"metadataHeader"},Bs={key:1,id:"seriesHeader"},Rs={id:"seriesRow",class:"inlineRow"},Ns={key:2,id:"titleRow"},Vs={key:4,id:"publisherRow",class:"inlineRow"},Ls={key:7,id:"pageDateRow",class:"inlineRow"};function Is(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataBookCover"),d=_("MetadataTags"),k=_("MetadataControls");return l(),p(me,null,[m("header",Ms,[e.q?(l(),f(i,{key:0,id:"search",value:e.q,label:"Search Query",highlight:!0},null,8,["value"])):h("",!0),u(o,{id:"metadataBookCover",group:a.group},null,8,["group"]),e.md.seriesList?.length===1?(l(),p("section",Bs,[m("div",Rs,[(l(),f(i,{id:"series",key:e.md.seriesList[0].ids,value:e.md.seriesList[0],group:"s",highlight:e.md.group==="s"},null,8,["value","highlight"])),e.md.volumeList?.length===1?(l(),f(i,{id:"volume",key:e.md.volumeList[0].ids,value:e.md.volumeList[0],group:"v",highlight:e.md.group==="v"},null,8,["value","highlight"])):h("",!0),u(i,{value:s.seriesVolumeCount,class:"subdued"},null,8,["value"]),u(i,{id:"issue",value:s.formattedIssueNumber,group:"c",highlight:e.md.group==="c"},null,8,["value","highlight"]),u(i,{value:s.volumeIssueCount,class:"subdued"},null,8,["value"])])])):h("",!0),e.md.name?(l(),p("span",Ns,w(s.collectionTitle)+" "+w(e.md.name),1)):h("",!0),e.md.seriesList?.length>1?(l(),f(d,{key:3,id:"seriesTags",class:"groupTags",label:"Series",values:e.md.seriesList,filter:"s"},null,8,["values"])):h("",!0),m("div",null,[e.md.volumeList?.length>1?(l(),f(d,{key:0,id:"volumeTags",class:"groupTags",label:"Volumes",values:e.md.volumeList,filter:"v"},null,8,["values"])):h("",!0)]),e.md.publisherList?.length===1?(l(),p("div",Vs,[(l(),f(i,{id:"publisher",key:e.md.publisherList[0].ids,group:"p",highlight:e.md.group==="p",value:e.md.publisherList[0]},null,8,["highlight","value"])),e.md.imprintList?.length===1?(l(),f(i,{id:"imprint",key:e.md.imprintList[0].ids,group:"i",highlight:e.md.group==="i",value:e.md.imprintList[0]},null,8,["highlight","value"])):h("",!0)])):h("",!0),e.md.publisherList?.length>1?(l(),f(d,{key:5,id:"publisherTags",class:"groupTags",label:"Publishers",values:e.md.publisherList,filter:"p"},null,8,["values"])):h("",!0),e.md.imprintList?.length>1?(l(),f(d,{key:6,id:"imprintTags",class:"groupTags",label:"Imprints",values:e.md.imprintList,filter:"i"},null,8,["values"])):h("",!0),s.pages||e.md.year||e.md.month||e.md.day?(l(),p("div",Ls,[u(i,{value:s.pages},null,8,["value"]),u(i,{value:s.date,class:"datePicker"},null,8,["value"])])):h("",!0)]),u(k,{id:"controls",group:a.group},null,8,["group"])],64)}const xs=T(Ts,[["render",Is],["__scopeId","data-v-a05541e5"]]),Ps={name:"MetadataActivator",props:{book:{type:Object,required:!0},toolbar:{type:Boolean,require:!0}},data(){return{mdiTagOutline:wt}},computed:{...M(St,{lazyImportEnabled:e=>e.adminFlags.lazyImportMetadata}),variant(){return this.toolbar?"plain":"text"}},methods:{...de(z,["lazyImport"]),onMouseEnter(){if(this.lazyImportEnabled&&this.book.group==="c"&&!this.book.hasMetadata){const e=this.book.ids||[this.book.pk];this.lazyImport({group:this.book.group,ids:e}),this.book.hasMetadata=!0}}}};function $s(e,t,a,r,n,s){return l(),f(_e,{onMouseenter:s.onMouseEnter,"aria-label":"tags",class:"tagButton cardControlButton",variant:s.variant,icon:n.mdiTagOutline,title:"Tags",onClick:t[0]||(t[0]=Ct(()=>{},["prevent"]))},null,8,["onMouseenter","variant","icon"])}const Fs=T(Ps,[["render",$s]]),Ds=1160,Es=.05,zs=250,Os={name:"MetadataButton",components:{CloseButton:Ht,MetadataActivator:Fs,MetadataBody:vs,MetadataHeader:xs,PlaceholderLoading:Jt},props:{book:{type:Object,required:!0},toolbar:{type:Boolean,default:!1}},data(){return{dialog:!1,progress:0}},computed:{...M(z,{md:e=>e.md}),showContainer(){return this.md?.loaded||!1},children(){return this.book.childCount||0}},watch:{dialog(e){e?this.dialogOpened():this.clearMetadata()}},methods:{...de(z,["clearMetadata","loadMetadata"]),dialogOpened(){const e=this.book.ids||[this.book.pk],t={group:this.book.group,pks:e};this.loadMetadata(t),this.startProgress()},startProgress(){this.startTime=Date.now(),this.estimatedMS=Math.max(Es,this.children/Ds)*1e3,this.updateProgress()},updateProgress(){const e=Date.now()-this.startTime;this.progress=e/this.estimatedMS*100,!(this.progress>=100||this.md)&&setTimeout(()=>{this.updateProgress()},zs)}}},As={key:1,id:"placeholderContainer"};function Gs(e,t,a,r,n,s){const i=_("MetadataActivator"),o=_("CloseButton"),d=_("MetadataHeader"),k=_("MetadataBody"),B=_("PlaceholderLoading");return l(),f(qt,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=y=>n.dialog=y),fullscreen:"",transition:"dialog-bottom-transition"},{activator:C(({props:y})=>[u(i,Z(y,{book:a.book,toolbar:a.toolbar}),null,16,["book","toolbar"])]),default:C(()=>[u(o,{class:"closeButton",title:"Close Metadata (esc)",onClick:t[0]||(t[0]=y=>n.dialog=!1)}),s.showContainer?(l(),p("div",{key:0,id:"metadataContainer",onKeyup:t[1]||(t[1]=Tt(y=>n.dialog=!1,["esc"]))},[u(d,{group:a.book.group},null,8,["group"]),u(k,{book:a.book},null,8,["book"])],32)):(l(),p("div",As,[t[3]||(t[3]=m("div",{id:"placeholderTitle"},"Tags Loading",-1)),u(B,{"model-value":n.progress,indeterminate:n.progress>=100,class:"placeholder"},null,8,["model-value","indeterminate"])]))]),_:1},8,["modelValue"])}const bi=T(Os,[["render",Gs],["__scopeId","data-v-e1a86bc1"]]),js={name:"PaginationNavButton",props:{narrow:{type:Boolean,default:!0}},computed:{classes(){return{narrowButton:this.narrow}}}};function Us(e,t,a,r,n,s){return l(),f(_e,{variant:"plain",density:"compact",class:V(["paginationNavButton",s.classes]),size:"medium"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1032,["class"])}const ki=T(js,[["render",Us],["__scopeId","data-v-cf061c30"]]),Pe=Symbol.for("vuetify:v-slider");function qs(e,t,a){const r=a==="vertical",n=t.getBoundingClientRect(),s="touches"in e?e.touches[0]:e;return r?s.clientY-(n.top+n.height/2):s.clientX-(n.left+n.width/2)}function Hs(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Ks=he({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...$t(),...Pt({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Ws=e=>{const t=g(()=>parseFloat(e.min)),a=g(()=>parseFloat(e.max)),r=g(()=>Number(e.step)>0?parseFloat(e.step):0),n=g(()=>Math.max(De(r.value),De(t.value)));function s(i){if(i=parseFloat(i),r.value<=0)return i;const o=Me(i,t.value,a.value),d=t.value%r.value;let k=Math.round((o-d)/r.value)*r.value+d;return o>k&&k+r.value>a.value&&(k=a.value),parseFloat(Math.min(k,a.value).toFixed(n.value))}return{min:t,max:a,step:r,decimals:n,roundValue:s}},Ys=e=>{let{props:t,steps:a,onSliderStart:r,onSliderMove:n,onSliderEnd:s,getActiveThumb:i}=e;const{isRtl:o}=Ie(),d=$(()=>t.reverse),k=g(()=>t.direction==="vertical"),B=g(()=>k.value!==d.value),{min:y,max:I,step:D,decimals:O,roundValue:K}=a,X=g(()=>parseInt(t.thumbSize,10)),Q=g(()=>parseInt(t.tickSize,10)),A=g(()=>parseInt(t.trackSize,10)),G=g(()=>(I.value-y.value)/D.value),j=$(()=>t.disabled),U=g(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),q=g(()=>t.error||t.disabled?void 0:t.thumbColor),W=g(()=>t.error||t.disabled?void 0:t.trackColor??t.color),x=g(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),P=Ee(!1),S=Ee(0),Y=be(),b=be();function E(c){const v=Y.value?.$el;if(!v)return;const se=t.direction==="vertical",ve=se?"top":"left",ge=se?"height":"width",st=se?"clientY":"clientX",{[ve]:it,[ge]:nt}=v.getBoundingClientRect(),rt=Hs(c,st);let we=Me((rt-it-S.value)/nt)||0;return(se?B.value:B.value!==o.value)&&(we=1-we),K(y.value+we*(I.value-y.value))}const J=c=>{const v=E(c);v!=null&&s({value:v}),P.value=!1,S.value=0},ce=c=>{const v=E(c);b.value=i(c),b.value&&(P.value=!0,b.value.contains(c.target)?S.value=qs(c,b.value,t.direction):(S.value=0,v!=null&&n({value:v})),v!=null&&r({value:v}),Bt(()=>b.value?.focus()))},ee={passive:!0,capture:!0};function H(c){const v=E(c);v!=null&&n({value:v})}function te(c){c.stopPropagation(),c.preventDefault(),J(c),window.removeEventListener("mousemove",H,ee),window.removeEventListener("mouseup",te)}function oe(c){J(c),window.removeEventListener("touchmove",H,ee),c.target?.removeEventListener("touchend",oe)}function ae(c){ce(c),window.addEventListener("touchmove",H,ee),c.target?.addEventListener("touchend",oe,{passive:!1})}function Se(c){c.button===0&&(c.preventDefault(),ce(c),window.addEventListener("mousemove",H,ee),window.addEventListener("mouseup",te,{passive:!1}))}const le=c=>{const v=(c-y.value)/(I.value-y.value)*100;return Me(isNaN(v)?0:v,0,100)},fe=$(()=>t.showTicks),pe=g(()=>fe.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(c=>({value:c,position:le(c),label:c.toString()})):Object.keys(t.ticks).map(c=>({value:parseFloat(c),position:le(parseFloat(c)),label:t.ticks[c]})):G.value!==1/0?Mt(G.value+1).map(c=>{const v=y.value+c*D.value;return{value:v,position:le(v)}}):[]:[]),N=g(()=>pe.value.some(c=>{let{label:v}=c;return!!v})),R={activeThumbRef:b,color:$(()=>t.color),decimals:O,disabled:j,direction:$(()=>t.direction),elevation:$(()=>t.elevation),hasLabels:N,isReversed:d,indexFromEnd:B,min:y,max:I,mousePressed:P,noKeyboard:$(()=>t.noKeyboard),numTicks:G,onSliderMousedown:Se,onSliderTouchstart:ae,parsedTicks:pe,parseMouseMove:E,position:le,readonly:$(()=>t.readonly),rounded:$(()=>t.rounded),roundValue:K,showTicks:fe,startOffset:S,step:D,thumbSize:X,thumbColor:U,thumbLabelColor:q,thumbLabel:$(()=>t.thumbLabel),ticks:$(()=>t.ticks),tickSize:Q,trackColor:W,trackContainerRef:Y,trackFillColor:x,trackSize:A,vertical:k};return Rt(Pe,R),R},Zs=he({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...Re()},"VSliderThumb"),Xs=ke()({name:"VSliderThumb",directives:{vRipple:Oe},props:Zs(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=qe(Pe),{isRtl:s,rtlClasses:i}=Ie();if(!n)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:d,thumbColor:k,thumbLabelColor:B,step:y,disabled:I,thumbSize:D,thumbLabel:O,direction:K,isReversed:X,vertical:Q,readonly:A,elevation:G,mousePressed:j,decimals:U,indexFromEnd:q}=n,W=g(()=>I.value?void 0:G.value),{elevationClasses:x}=Ft(W),{textColorClasses:P,textColorStyles:S}=Dt(k),{backgroundColorClasses:Y,backgroundColorStyles:b}=Be(B),{pageup:E,pagedown:J,end:ce,home:ee,left:H,right:te,down:oe,up:ae}=Nt,Se=[E,J,ce,ee,H,te,oe,ae],le=g(()=>y.value?[1,2,3]:[1,5,10]);function fe(N,R){if(e.noKeyboard||!Se.includes(N.key))return;N.preventDefault();const c=y.value||.1,v=(d.value-o.value)/c;if([H,te,oe,ae].includes(N.key)){const ve=(Q.value?[s.value?H:te,X.value?oe:ae]:q.value!==s.value?[H,ae]:[te,ae]).includes(N.key)?1:-1,ge=N.shiftKey?2:N.ctrlKey?1:0;ve===-1&&R===d.value&&!ge&&!Number.isInteger(v)?R=R-v%1*c:R=R+ve*c*le.value[ge]}else if(N.key===ee)R=o.value;else if(N.key===ce)R=d.value;else{const se=N.key===J?1:-1;R=R-se*c*(v>100?v/10:10)}return Math.max(e.min,Math.min(e.max,R))}function pe(N){const R=fe(N,e.modelValue);R!=null&&r("update:modelValue",R)}return ye(()=>{const N=ie(q.value?100-e.position:e.position,"%");return m("div",{class:V(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&j.value},e.class,i.value]),style:re([{"--v-slider-thumb-position":N,"--v-slider-thumb-size":ie(D.value)},e.style]),role:"slider",tabindex:I.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,"aria-readonly":!!A.value,"aria-orientation":K.value,onKeydown:A.value?void 0:pe},[m("div",{class:V(["v-slider-thumb__surface",P.value,x.value]),style:re(S.value)},null),ze(m("div",{class:V(["v-slider-thumb__ripple",P.value]),style:re(S.value)},null),[[Oe,e.ripple,null,{circle:!0,center:!0}]]),u(Wt,{origin:"bottom center"},{default:()=>[ze(m("div",{class:"v-slider-thumb__label-container"},[m("div",{class:V(["v-slider-thumb__label",Y.value]),style:re(b.value)},[m("div",null,[a["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(y.value?U.value:1)]),m("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[Vt,O.value&&e.focused||O.value==="always"]])]})])}),{}}}),Qs=he({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Re()},"VSliderTrack"),Js=ke()({name:"VSliderTrack",props:Qs(),emits:{},setup(e,t){let{slots:a}=t;const r=qe(Pe);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:n,parsedTicks:s,rounded:i,showTicks:o,tickSize:d,trackColor:k,trackFillColor:B,trackSize:y,vertical:I,min:D,max:O,indexFromEnd:K}=r,{roundedClasses:X}=Et(i),{backgroundColorClasses:Q,backgroundColorStyles:A}=Be(B),{backgroundColorClasses:G,backgroundColorStyles:j}=Be(k),U=g(()=>`inset-${I.value?"block":"inline"}-${K.value?"end":"start"}`),q=g(()=>I.value?"height":"width"),W=g(()=>({[U.value]:"0%",[q.value]:"100%"})),x=g(()=>e.stop-e.start),P=g(()=>({[U.value]:ie(e.start,"%"),[q.value]:ie(x.value,"%")})),S=g(()=>o.value?(I.value?s.value.slice().reverse():s.value).map((b,E)=>{const J=b.value!==D.value&&b.value!==O.value?ie(b.position,"%"):void 0;return m("div",{key:b.value,class:V(["v-slider-track__tick",{"v-slider-track__tick--filled":b.position>=e.start&&b.position<=e.stop,"v-slider-track__tick--first":b.value===D.value,"v-slider-track__tick--last":b.value===O.value}]),style:{[U.value]:J}},[(b.label||a["tick-label"])&&m("div",{class:"v-slider-track__tick-label"},[a["tick-label"]?.({tick:b,index:E})??b.label])])}):[]);return ye(()=>m("div",{class:V(["v-slider-track",X.value,e.class]),style:re([{"--v-slider-track-size":ie(y.value),"--v-slider-tick-size":ie(d.value)},e.style])},[m("div",{class:V(["v-slider-track__background",G.value,{"v-slider-track__background--opacity":!!n.value||!B.value}]),style:{...W.value,...j.value}},null),m("div",{class:V(["v-slider-track__fill",Q.value]),style:{...P.value,...A.value}},null),o.value&&m("div",{class:V(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[S.value])])),{}}}),ei=he({...Xt(),...Ks(),...Zt(),modelValue:{type:[Number,String],default:0}},"VSlider"),ti=ke()({name:"VSlider",props:ei(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=be(),s=be(),{rtlClasses:i}=Ie(),o=Ws(e),d=Lt(e,"modelValue",void 0,x=>o.roundValue(x??o.min.value)),{min:k,max:B,mousePressed:y,roundValue:I,onSliderMousedown:D,onSliderTouchstart:O,trackContainerRef:K,position:X,hasLabels:Q,readonly:A,noKeyboard:G}=Ys({props:e,steps:o,onSliderStart:()=>{r("start",d.value)},onSliderEnd:x=>{let{value:P}=x;const S=I(P);d.value=S,r("end",S)},onSliderMove:x=>{let{value:P}=x;return d.value=I(P)},getActiveThumb:()=>n.value?.$el}),{isFocused:j,focus:U,blur:q}=Yt(e),W=g(()=>X(d.value));return ye(()=>{const x=Ae.filterProps(e),P=!!(e.label||a.label||a.prepend);return u(Ae,Z({ref:s,class:["v-slider",{"v-slider--has-labels":!!a["tick-label"]||Q.value,"v-slider--focused":j.value,"v-slider--pressed":y.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},x,{focused:j.value}),{...a,prepend:P?S=>m(me,null,[a.label?.(S)??(e.label?u(Qt,{id:S.id.value,class:"v-slider__label",text:e.label},null):void 0),a.prepend?.(S)]):void 0,default:S=>{let{id:Y,messagesId:b}=S;return m("div",{class:"v-slider__container",onMousedown:A.value?void 0:D,onTouchstartPassive:A.value?void 0:O},[m("input",{id:Y.value,name:e.name||Y.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:d.value},null),u(Js,{ref:K,start:0,stop:W.value},{"tick-label":a["tick-label"]}),u(Xs,{ref:n,"aria-describedby":b.value,focused:j.value,noKeyboard:G.value,min:k.value,max:B.value,modelValue:d.value,"onUpdate:modelValue":E=>d.value=E,position:W.value,elevation:e.elevation,onFocus:U,onBlur:q,ripple:e.ripple,name:e.name},{"thumb-label":a["thumb-label"]})])}})}),zt({focus:()=>n.value?.$el.focus()},s)}}),ai={name:"PaginationSlider",props:{min:{type:Number,default:0}}};function si(e,t,a,r,n,s){return l(),f(ti,Z({"thumb-size":"36",class:"paginationSlider",density:"compact","hide-details":"auto",min:a.min,rounded:!0,"show-ticks":"always",step:1,"thumb-label":"always"},e.$attrs),{"tick-label":C(({index:i})=>[F(w(i+a.min),1)]),_:1},16,["min"])}const yi=T(ai,[["render",si],["__scopeId","data-v-01b67afd"]]),ii={name:"PaginationToolbar"};function ni(e,t,a,r,n,s){return l(),f(ea,{class:"paginationToolbar codexToolbar",density:"compact",transform:"center bottom"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1024)}const _i=T(ii,[["render",ni],["__scopeId","data-v-cfa8cce0"]]);export{ca as B,pa as D,ka as M,Ce as N,ki as P,vi as T,pi as V,gi as a,bi as b,_i as c,yi as d,tt as g,Ye as p,Ge as t};
@@ -1 +0,0 @@
1
- import{g as ke,p as he,f as ot,t as $,u as ye,b as m,n as re,d as V,K as Re,aY as $e,_ as T,y as f,W as Ne,A as ue,w as C,m as Z,x as l,a6 as Ve,a as u,E as M,aZ as lt,N as L,q as p,H as h,B as w,aw as ut,ae as Te,a_ as dt,a$ as ct,az as mt,v as _,C as de,b0 as ht,b1 as ft,U as pt,a0 as Le,z as F,b2 as vt,b3 as Fe,l as gt,b4 as bt,F as me,ag as kt,ac as yt,ad as _t,a9 as Ue,G as St,b5 as wt,ab as Ct,Y as Tt,c as g,b6 as De,aD as Ie,aU as Ee,r as be,b7 as Mt,b8 as Me,aX as Bt,aW as Rt,i as qe,b9 as Nt,h as ie,T as ze,aR as Vt,e as Lt}from"./main-CTlarBH9.js";import{A as It,V as _e,k as ne,n as xt,t as Pt,j as $t,R as Oe,s as Ft,u as Dt,c as Be,i as Et,f as zt}from"./forwardRefs-BGAZ1bvO.js";import{c as Ot,d as At}from"./VSelect-CJ_8hyFq.js";import{a as Gt,c as jt,d as Ut,V as qt}from"./VDialog-Bn_MNvQ-.js";import{C as Ht}from"./change-password-dialog-Df28DwbL.js";import{d as Kt,f as Wt,u as Yt,g as Ae,m as Zt,h as Xt,i as Qt}from"./VSelectionControl-N_wsNRlD.js";import{V as He}from"./VTable-YgXyPctG.js";import{C as Ke}from"./confirm-dialog-DgKUUL0b.js";import{P as Jt,V as ea}from"./unauthorized-BsEyzLQ2.js";const ta=he({...Re(),...It({variant:"text"})},"VToolbarItems"),pi=ke()({name:"VToolbarItems",props:ta(),setup(e,t){let{slots:a}=t;return ot({VBtn:{color:$(()=>e.color),height:"inherit",variant:$(()=>e.variant)}}),ye(()=>m("div",{class:V(["v-toolbar-items",e.class]),style:re(e.style)},[a.default?.()])),{}}}),Ce=new Set(["",$e,$e.toString(),void 0]),aa=function(e){let t;if(Ce.has(e))t=e;else if(e instanceof Object)if("ids"in e){const a=new Set(e.ids);Ce.intersection(a).size>0?t=void 0:t={value:e.ids.join(","),title:e.name}}else Ce.has(e.pk)?t=void 0:t={value:e.pk,title:e.name};else t={value:e,title:e.toString()};return e?.url&&(t.url=e.url),t},sa=function(e,t){return e.title.localeCompare(t.title)},ia=function(e,t){return Number.parseFloat(e.title)-Number.parseFloat(t.title)},Ge=function({items:e,filter:t,numeric:a=!1,sort:r=!0}){const n=e||[],s=t&&t.toLowerCase();let i=[];for(const o of n){const d=aa(o);d!=null&&(!s||d?.title?.toLowerCase().includes(s))&&i.push(d)}if(r){const o=a?ia:sa;i=i.sort(o)}return i},na={name:"ToolbarSelect",props:{selectLabel:{type:String,default:""},maxSelectLen:{type:Number,default:0}},computed:{style(){if(this.maxSelectLen){const e=this.$vuetify.display.xs?"max-width":"width",t=this.maxSelectLen*.7+"em";return`${e}: ${t}`}return""}}};function ra(e,t,a,r,n,s){return l(),f(Ot,Z(e.$attrs,{label:a.selectLabel,"aria-label":a.selectLabel,class:"toolbarSelect",density:"compact","full-width":"","menu-props":{maxHeight:void 0},"hide-details":"auto",style:s.style,variant:"plain"}),Ne({item:C(({item:i,props:o})=>[u(Gt,Z(o,{density:"compact",variant:"plain",title:i.title,value:i.value}),null,16,["title","value"])]),_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1040,["label","aria-label","style"])}const vi=T(na,[["render",ra],["__scopeId","data-v-cda2da63"]]),gi=jt("v-spacer","div","VSpacer"),oa={name:"BookCover",props:{group:{type:String,required:!0},pks:{type:Array,required:!0},childCount:{type:Number,default:1},finished:{type:Boolean},mtime:{type:Number,default:Date.now()}},data(){return{showPlaceholder:!1}},computed:{...M(L,["coverSettings"]),coverSrc(){return lt({group:this.group,pks:this.pks},this.coverSettings,this.mtime)},multiPkClasses(){const e=this.pks.length,t={};return e>=4?t.stack4=!0:e>1&&(t[`stack${e}`]=!0),t}},mounted:function(){this.delayPlaceholder()},methods:{delayPlaceholder:function(){setTimeout(()=>{this.showPlaceholder=!0},2e3)}}},la={class:"bookCover"},ua={key:1,class:"childCount"};function da(e,t,a,r,n,s){return l(),p("div",la,[u(Ut,{src:s.coverSrc,class:V(["coverImg",s.multiPkClasses])},null,8,["src","class"]),a.finished!==!0?(l(),p("div",{key:0,class:V({unreadFlag:!0,mixedreadFlag:a.finished===null})},null,2)):h("",!0),a.group!=="c"?(l(),p("span",ua,w(a.childCount),1)):h("",!0)])}const ca=T(oa,[["render",da],["__scopeId","data-v-8e8f21d5"]]),ma=10,ha={name:"DownloadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},data(){return{mdiDownload:mt}},computed:{...M(L,["filterOnlySettings","groupNames"]),show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},isOneComic(){return this.item?.group==="c"&&this.item?.ids?.length===1},downloadFn(){return this.isOneComic?this.item.name:`${this.groupNames[this.item?.group]} - ${this.item.name} Comics.zip`},downloadURL(){let e="";if(this.isOneComic){const t=this.item.ids[0];e=dt({pk:t},this.downloadFn,this.item?.mtime)}else{const t=this.item?.group,a=this.item?.ids,r=this.filterOnlySettings;e=ct({group:t,pks:a},this.downloadFn,r,this.item?.mtime)}return e},formattedChildren(){return Te.format(this.item?.childCount)},title(){let e="Download";return e+=this.isOneComic?" Book":` ${this.formattedChildren} Books`,e},confirm(){return this.item?.childCount>ma},confirmText(){return this.confirm?`Download ${this.formattedChildren} books`:""}},methods:{download(){const e=this.downloadURL,t=this.downloadFn;if(this.isOneComic)ut(e,t);else{const a=document.createElement("a");a.download=this.downloadFn,a.href=this.downloadURL,a.click(),a.remove()}}}};function fa(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.title,confirm:s.confirm,"confirm-text":"Download","prepend-icon":n.mdiDownload,"title-text":s.title,text:"May take a while",onConfirm:s.download},null,8,["button","button-text","confirm","prepend-icon","title-text","onConfirm"])):h("",!0)}const pa=T(ha,[["render",fa],["__scopeId","data-v-4c14087b"]]),va=1,ga={name:"MarkReadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},computed:{...M(L,["groupNames"]),verb(){return this.item.finished?"Unread":"Read"},confirm(){return this.item.children>va},show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},icon(){return this.item.finished?ht:ft},confirmText(){return this.confirm?`Mark ${this.verb}`:""},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");const t=this.groupNames[this.item.group];return e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name||"(Empty)"}},methods:{...de(L,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished)}}};function ba(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.markReadText,confirm:s.confirm,"confirm-text":s.confirmText,"prepend-icon":s.icon,"title-text":s.markReadText,text:s.itemName,onConfirm:s.toggleRead},null,8,["button","button-text","confirm","confirm-text","prepend-icon","title-text","text","onConfirm"])):h("",!0)}const ka=T(ga,[["render",ba],["__scopeId","data-v-7b148c61"]]),ya=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_a=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Sa=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],wa=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],je=(e,t,a)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,a):(t===!0||a!==void 0)&&(r=e.toLocaleString(void 0,a)),r},We=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10("0."+t.slice(0,15))},Ca=e=>typeof e=="number"?Math.log(e):We(e)*Math.log(10),Ta=(e,t)=>{if(typeof e=="number")return e/t;const a=e/BigInt(t),r=e%BigInt(t);return Number(a)+Number(r)/t};function Ye(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const a=t.bits?t.binary?wa:Sa:t.binary?_a:ya,r=t.space?" ":"";if(t.signed&&(typeof e=="number"?e===0:e===0n))return` 0${r}${a[0]}`;const n=e<0,s=n?"-":t.signed?"+":"";n&&(e=-e);let i;if(t.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1){const B=je(e,t.locale,i);return s+B+r+a[0]}const o=Math.min(Math.floor(t.binary?Ca(e)/Math.log(1024):We(e)/3),a.length-1);e=Ta(e,(t.binary?1024:1e3)**o),i||(e=e.toPrecision(3));const d=je(Number(e),t.locale,i),k=a[o];return s+d+r+k}const Ma={name:"MetadataExpandButton"};function Ba(e,t,a,r,n,s){return l(),f(_e,{density:"compact",text:"...expand",variant:"text"})}const Ra=T(Ma,[["render",Ba]]),Na={name:"MetadataTextBox",components:{ExpandButton:Ra},props:{group:{type:String,default:""},highlight:{type:Boolean,default:!1},label:{type:String,default:""},maxHeight:{type:Number,default:0},value:{type:[Object,String,Number,Boolean],default:void 0}},data(){return{mdiOpenInNew:Le,expanded:!1,mounted:!1}},computed:{...M(L,["groupNames"]),...M(L,{browserShow:e=>e.settings.show,browserTopGroup:e=>e.settings.topGroup,folderViewEnabled:e=>e.page.adminFlags.folderView}),computedValue(){return this.value&&this.value.name!==void 0?this.value.name:this.value},lastSlashIndex(){return this.computedValue.lastIndexOf("/")+1},displayValue(){let e;return this.group==="f"&&this.computedValue?e=this.computedValue.slice(0,Math.max(0,this.lastSlashIndex)):this.group==="v"&&this.computedValue?e=pt(this.computedValue,this.value.numberTo):e=this.computedValue,e},textValueStyles(){const e=this.maxHeight>0&&!this.expanded?this.maxHeight:0;return e?"max-height: "+e+"px;":""},textValueRefName(){return"mdTextValue"+this.label.replaceAll(" ","")},isOverflow(){if(!this.mounted)return!1;const e=this.$refs[this.textValueRefName];return e?e.clientHeight<e.scrollHeight:!1},showExpandButton(){return!this.expanded&&this.maxHeight>0&&this.isOverflow},linkPks(){return(this.value.ids||[this.value.pk]).join(",")},clickable(){const e=this.$router.currentRoute.value.params;return!this.group||e.group===this.group||this.group==="f"&&!this.folderViewEnabled||!["a","f"].includes(this.group)&&!this.browserShow[this.group]?!1:!!this.linkPks?.length},classes(){return{clickable:this.clickable,highlight:this.highlight}},toRoute(){if(!this.clickable)return"";const e=this.group,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){return{topGroup:this.getTopGroup(this.group)}},title(){let e;return this.label?e=this.label:this.group?e=this.groupNames[this.group]:e="",this.toRoute?`Browse to ${e}`:e},baseName(){return this.group==="f"?this.computedValue.slice(Math.max(0,this.lastSlashIndex)):""}},mounted(){this.mounted=!0},methods:{...de(L,["routeWithSettings","getTopGroup"]),onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Va={key:0,class:"text"},La={key:0,class:"textLabel"},Ia=["title"],xa={key:0,class:"textContent"};function Pa(e,t,a,r,n,s){const i=_("ExpandButton");return s.displayValue?(l(),p("div",Va,[a.label?(l(),p("div",La,[F(w(a.label)+" ",1),s.showExpandButton?(l(),f(i,{key:0,class:"expandButton",onClick:t[0]||(t[0]=o=>n.expanded=!0)})):h("",!0)])):h("",!0),u(Kt,null,{default:C(()=>[m("div",null,[m("div",{ref:s.textValueRefName,class:"textValue",style:re(s.textValueStyles)},[m("span",{class:V(["textContent",s.classes]),title:s.title,onClick:t[1]||(t[1]=(...o)=>s.onClick&&s.onClick(...o))},w(s.displayValue),11,Ia),s.baseName?(l(),p("span",xa,w(s.baseName),1)):h("",!0)],4),s.showExpandButton&&!a.label?(l(),f(i,{key:0,class:"expandButton",onClick:t[2]||(t[2]=o=>n.expanded=!0)})):h("",!0)])]),_:1})])):h("",!0)}const xe=T(Na,[["render",Pa],["__scopeId","data-v-847af0f1"]]),Ze=["writer","author","plotter","plot","script","scripter","story","interviewer","translator","artist","penciller","breakdowns","pencils","illustrator","layouts","inker","finishes","inks","embellisher","inkAssists","colorist","colorer","colourer","colors","colours","colorDesigner","colorFlats","colorSeparations","designer","digitalArtTechnician","grayTone","letterer","cover","covers","coverArtist","editor","edits","editing"];Object.freeze(Ze);const Xe=["genres","characters","teams","locations","seriesGroups","stories","storyArcNumbers","tags","universes"];Object.freeze(Xe);const Qe=new Set(["Characters","Teams"]);Object.freeze(Qe);function $a(e,t){const a=e.name.split(" ").pop(),r=t.name.split(" ").pop();return a.localeCompare(r)}const z=vt("metadata",{state:()=>({md:void 0}),getters:{roleMap(e){const t={};for(const{role:a}of e.md.credits){const r=a?.name?a.name:"Other";t[r]=a}return t},_mappedCredits(e){const t={};if(!e?.md?.credits)return t;for(const{role:a,person:r}of e.md.credits){const n=a?.name?a.name:"Other";n in t||(t[n]=[]),t[n].push(r)}for(const[a,r]of Object.entries(t))t[a]=r.sort($a);return t},_sortedRoles(e){const t=new Set(Object.keys(e._mappedCredits)),a=[];for(const n of Ze)t.has(n)&&(a.push(n),t.delete(n));const r=[...t].sort();return[...a,...r]},credits(e){return this.mapTag(e._mappedCredits,e._sortedRoles)},identifiers(e){const t=[];if(!e.md?.identifiers)return t;for(const a of e.md.identifiers){const r=a.name.split(":"),n=r[0],s=r[1],i=L().identifierSourceTitle(n);let o="";i&&i!=="None"&&(o+=i+":"),o+=s;const d={pk:a.pk,url:a.url,name:o};t.push(d)}return t},tags(e){const t=e.mapTag(e.md,Xe);e.identifiers?.length&&(t.Identifiers={filter:"identifiers",tags:this.identifiers});for(const a of Object.values(t))a.tags=a.tags.sort((r,n)=>r.name.localeCompare(n.name));return t}},actions:{async loadMetadata({group:e,pks:t}){await Fe.getMetadata({group:e,pks:t},L().metadataSettings).then(a=>{const r={...a.data};return r.loaded=!0,this.md=r,!0}).catch(a=>{console.error(a),this.clearMetadata()})},clearMetadata(){this.md=void 0},getTagName(e){var t;return e==="storyArcNumbers"?t="Story Arcs":t=gt(e),t},markTagMain(e,t){const a="main"+e.slice(0,-1),r=this.md[a]?.pk,n=[];var s=[];for(const i of t)r===i.pk?s.push(i):n.push(i);return{mainTags:s,regularTags:n}},mapTag(e,t){const a={};for(const s of t){const i=e[s];if(!i?.length)continue;const o=this.getTagName(s);var r=[],n=[];Qe.has(o)?{mainTags:r,regularTags:n}=this.markTagMain(o,i):n=i,a[o]={filter:s,tags:n,mainTags:r}}return a},lazyImport({group:e,ids:t}){return Fe.getLazyImport({group:e,pks:t})}}}),Fa={name:"MetadataRatings",components:{MetadataText:xe},computed:{...M(z,{md:e=>e.md}),show(){return this.md?.criticRating!==void 0||this.md?.ageRating}}},Da={key:0},Ea={key:1};function za(e,t,a,r,n,s){const i=_("MetadataText");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[e.md.criticalRating?(l(),p("tr",Da,[t[0]||(t[0]=m("td",{class:"key"},"Critical Rating",-1)),m("td",null,[u(i,{value:e.md.criticalRating},null,8,["value"])])])):h("",!0),e.md.ageRating?(l(),p("tr",Ea,[t[1]||(t[1]=m("td",{class:"key"},"Age Rating",-1)),m("td",null,[u(i,{value:e.md.ageRating.name},null,8,["value"])])])):h("",!0)])]),_:1})):h("",!0)}const Oa=T(Fa,[["render",za],["__scopeId","data-v-8b5cb217"]]),Aa=new Set(["p","i","s","v"]),Ga={name:"MetadataTags",props:{item:{type:Object,required:!0},filter:{type:String,default:""},main:{type:Boolean,default:!1}},data(){return{mdiStar:bt,mdiOpenInNew:Le}},computed:{...M(L,{browserShow:e=>e.settings.show,filterValues(e){return e.settings.filters[this.filter]},topGroup:e=>e.settings.topGroup}),...M(z,{mdGroup:e=>e.md.group,mdIds:e=>e.md.ids}),groupMode(){return Aa.has(this.filter)},clickable(){return this.filter&&this.item.value&&(!this.groupMode||this.browserShow[this.filter])},classes(){return{clickable:(this.clickable||this.item.url)&&!this.highlight}},highlight(){return!!(this.groupMode&&this.filter===this.mdGroup&&this.mdIds.includes(this.item.value)||this.filterValues?.includes(this.item.value))},variant(){return this.highlight?"flat":"tonal"},color(){const e=this.$vuetify.theme.current.colors;return this.highlight?e["primary-darken-1"]:""},linkGroup(){let e;return this.groupMode?e=this.filter:e=["f","s"].includes(this.topGroup)?this.topGroup:"r",e},linkPks(){return this.groupMode||this.linkGroup!=="a"&&this.filter==="storyArcs"?this.item.value.toString():"0"},toRoute(){if(!this.clickable)return"";const e=this.linkGroup,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){let e;return this.linkPks==="0"?e={filters:{[this.filter]:[this.item.value]}}:e={topGroup:this.getTopGroup(this.linkGroup)},e},title(){return this.filter==="identifiers"?this.identifierSourceTitle(this.item.title):this.item.title}},methods:{...de(L,["routeWithSettings","getTopGroup","identifierSourceTitle"]),async onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},ja=["href"],Ua={key:1};function qa(e,t,a,r,n,s){return l(),f(At,{class:V(s.classes),color:s.color,value:a.item.value,variant:s.variant,onClick:s.onClick},{default:C(()=>[a.item.url?(l(),p("a",{key:0,href:a.item.url,target:"_blank"},[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})],8,ja)):(l(),p("span",Ua,[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(" "+w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0)]))]),_:1},8,["class","color","value","variant","onClick"])}const Ha=T(Ga,[["render",qa],["__scopeId","data-v-1da1eb5b"]]),Ka={name:"MetadataTags",components:{MetadataChip:Ha},props:{label:{type:String,default:""},values:{type:Array,default(){return[]}},mainValues:{type:Array,default(){return[]}},filter:{type:String,required:!1,default:void 0}},computed:{mainItems(){return Ge({items:this.mainValues,sort:!1})},items(){let e;return this.filter==="universes"?e=this.fixUniverseTitles(this.values):e=this.values,Ge({items:e,sort:!1})}},methods:{...de(L,["fixUniverseTitles"])}},Wa={key:0},Ya={key:0,class:"chipGroupLabel"};function Za(e,t,a,r,n,s){const i=_("MetadataChip");return s.items?.length>0?(l(),p("div",Wa,[a.label?(l(),p("div",Ya,w(a.label),1)):h("",!0),m("div",null,[(l(!0),p(me,null,ue(s.mainItems,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o,main:!0},null,8,["filter","item"]))),128)),(l(!0),p(me,null,ue(s.items,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o},null,8,["filter","item"]))),128))])])):h("",!0)}const Je=T(Ka,[["render",Za],["__scopeId","data-v-836d9fbb"]]),Xa={name:"MetadataTagsTable",components:{MetadataTags:Je},data(){return{mdiOpenInNew:Le}},props:{keyMap:{type:Object,default:void 0},tagMap:{type:Object,required:!0}},computed:{show(){return Object.keys(this.tagMap).length>0}}},Qa={key:0,class:"key keyLink"},Ja={href:"keyMap[key].url"},es={key:1,class:"key"},ts={class:"tags"};function as(e,t,a,r,n,s){const i=_("MetadataTags");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[(l(!0),p(me,null,ue(Object.entries(a.tagMap),([o,{filter:d,tags:k,mainTags:B}])=>(l(),p("tr",{key:o},[a.keyMap&&a.keyMap[o]&&a.keyMap[o].url?(l(),p("td",Qa,[m("a",Ja,[F(w(o),1),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})])])):(l(),p("td",es,w(o),1)),m("td",ts,[u(i,{filter:d,values:k,mainValues:B},null,8,["filter","values","mainValues"])])]))),128))])]),_:1})):h("",!0)}const ss=T(Xa,[["render",as],["__scopeId","data-v-56102c2c"]]),is={name:"MetadataBody",components:{MetadataRatings:Oa,MetadataTagsTable:ss,MetadataText:xe},props:{book:{type:Object,required:!0}},computed:{...M(z,["credits","ratings","tags"]),...M(L,{twentyFourHourTime:e=>e.settings?.twentyFourHourTime,readingDirectionTitles:e=>e.choices.static.readingDirection}),...M(z,{md:e=>e.md,roleMap:e=>e.roleMap}),readingDirectionText(){return this.md?this.readingDirectionTitles[this.md.readingDirection]:"Unknown"},size(){return this?.md?.size>0?Ye(this.md.size):0},sizeLabel(){return this?.md?.group==="c"?"Size":"Total Size"},fileType(){return this?.md?.fileType||"Unknown"}},methods:{formatDateTime(e){return kt(e,this.twentyFourHourTime)}}},ns={id:"metadataBody"},rs={class:"mdSection"},os={class:"mdSection"},ls={class:"quarterRow"},us={class:"thirdRow"},ds={class:"lastSmallRow"},cs={key:0,class:"halfRow mdSection"},ms={class:"mdSection"},hs={class:"inlineRow"},fs={class:"inlineRow"};function ps(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataTagsTable"),d=_("MetadataRatings");return l(),p("div",ns,[m("section",rs,[u(i,{value:e.md.summary,"max-height":100},null,8,["value"]),u(i,{value:e.md.review,label:"Review","max-height":100},null,8,["value"])]),u(o,{"key-map":e.roleMap,"tag-map":e.credits,class:"mdSection"},null,8,["key-map","tag-map"]),m("section",os,[m("div",ls,[e.md.createdAt?(l(),f(i,{key:0,value:s.formatDateTime(e.md.createdAt),label:"Created at",class:"mtime"},null,8,["value"])):h("",!0),e.md.updatedAt?(l(),f(i,{key:1,value:s.formatDateTime(e.md.updatedAt),label:"Updated at",class:"mtime"},null,8,["value"])):h("",!0),u(i,{value:s.size,label:s.sizeLabel},null,8,["value","label"]),u(i,{value:s.fileType,label:"File Type"},null,8,["value"])]),m("div",us,[u(i,{label:"Reading Direction",value:s.readingDirectionText},null,8,["value"]),u(i,{value:e.md.originalFormat?.name,label:"Original Format"},null,8,["value"]),u(i,{value:(!!e.md.monochrome).toString(),label:"Monochrome"},null,8,["value"])]),m("div",ds,[u(i,{group:"f",value:{pk:e.md.parentFolderId,name:e.md.path},label:"Path"},null,8,["value"])])]),e.md?.country||e.md?.language?(l(),p("section",cs,[u(i,{value:e.md.country?.name,label:"Country"},null,8,["value"]),u(i,{value:e.md.language?.name,label:"Language"},null,8,["value"])])):h("",!0),u(d,{class:"mdSection"}),u(o,{"tag-map":e.tags,class:"mdSection"},null,8,["tag-map"]),m("section",ms,[m("section",hs,[u(i,{value:e.md.notes,label:"Notes"},null,8,["value"])]),m("section",fs,[u(i,{value:e.md.tagger,label:"Tagger"},null,8,["value"]),u(i,{value:e.md.scanInfo,label:"Scan"},null,8,["value"])])])])}const vs=T(is,[["render",ps],["__scopeId","data-v-e65fff8f"]]),et=new Set("rtl","btt");Object.freeze(et);const tt=({ids:e,page:t,readingDirection:a,pageCount:r},n)=>{if(e.length===0||n&&!r)return"";const s=e[0];if(t)t=Number(t);else if(et.has(a)){const i=Number(r)-1;t=Math.max(i,0)}else t=0;return{name:"reader",params:{pk:s,page:t}}},at={p:"publisher",i:"imprint",s:"series",v:"volume",f:"folder",a:"storyArc"};Object.freeze(at);const gs={name:"MetadataControls",components:{DownloadButton:pa,MarkReadButton:ka},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md}),...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata}),downloadName(){const e=this.md;let t;if(!e)t="Unknown.cbz";else if(e.fileName)t=e.fileName;else{if(this.md.group==="f")return[this.firstNameFromList(e.folderList)];if(this.md.group==="a")return[this.firstNameFromList(e.storyArcList)];t=[this.firstNameFromList(e.publisherList),this.firstNameFromList(e.imprintList),this.firstNameFromList(e.seriesList),this.firstNameFromList(e.volumeList),Ue(this.md,3),this.md.name].filter(Boolean).join(" ")}return t},downloadItem(){return{group:this.md?.group,ids:this.md?.ids,childCount:this.md?.childCount,mtime:this.md?.mtime,name:this.downloadName}},isReadButtonShown(){return this.group==="c"&&this.$route.name!="reader"},isReadButtonEnabled(){return!!this.readerRoute},markReadItem(){let e="";const t=at[this.md.group];return t?e=(this.md[t+"List"]||[]).map(({name:n})=>n).join(", "):e=this.md.name,{group:this.md.group,ids:this.md.ids,finished:this.md.finished,name:e,children:this.md.childCount||1}},readButtonIcon(){return this.isReadButtonEnabled?yt:_t},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},size(){return this.$vuetify.display.smAndDown?"x-small":"default"}},methods:{firstNameFromList(e){let t="";if(!e)return t;for(const a of Object.values(e))if(a.name){t=a.name;break}return t}}},bs={class:"controlRow"};function ks(e,t,a,r,n,s){const i=_("DownloadButton"),o=_("MarkReadButton");return l(),p("section",bs,[u(i,{id:"downloadButton",button:!0,item:s.downloadItem,size:s.size},null,8,["item","size"]),u(o,{id:"markReadButton",button:!0,item:s.markReadItem,size:s.size},null,8,["item","size"]),s.isReadButtonShown?(l(),f(_e,{key:0,id:"readButton",title:"Read Comic",disabled:!s.isReadButtonEnabled,size:s.size,to:s.readerRoute},{default:C(()=>[u(ne,null,{default:C(()=>[F(w(s.readButtonIcon),1)]),_:1}),t[0]||(t[0]=F(" Read ",-1))]),_:1,__:[0]},8,["disabled","size","to"])):h("",!0)])}const ys=T(gs,[["render",ks],["__scopeId","data-v-d254bb05"]]),_s={name:"MetadataBookCover",components:{BookCover:ca},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md})}},Ss={class:"bookCoverWrapper"};function ws(e,t,a,r,n,s){const i=_("BookCover");return l(),p("div",Ss,[u(i,{id:"bookCover",group:a.group,pks:e.md.ids,"child-count":e.md.childCount,finished:e.md.finished,mtime:e.md.mtime},null,8,["group","pks","child-count","finished","mtime"]),u(xt,{class:"bookCoverProgress","model-value":e.md.progress,rounded:"","background-color":"inherit",height:"2","aria-label":"% read"},null,8,["model-value"])])}const Cs=T(_s,[["render",ws],["__scopeId","data-v-3a0db03b"]]),Ts={name:"MetadataHeader",components:{MetadataBookCover:Cs,MetadataControls:ys,MetadataTags:Je,MetadataText:xe},props:{group:{type:String,required:!0}},computed:{...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata,q:e=>e.settings.q}),...M(z,{md:e=>e.md}),collectionTitle(){if(this.md.collectionTitle)return`${this.md.collectionTitle}:`},date(){if(!this.md.year&&!this.md.month&&!this.md.day)return"";const e=new Date(this.md.year||1970,this.md.month||1,this.md.day||1),t={};return this.md.year&&(t.year="numeric"),this.md.month&&(t.month=this.$vuetify.display.smAndDown?"short":"long"),this.md.day&&(t.day="numeric"),e.toLocaleDateString("default",t)},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},formattedIssueNumber(){if(!this.md)return"Unknown";if(!((this.md.issueNumber===null||this.md.issueNumber===void 0)&&!this.md.issueSuffix))return"#"+Ue(this.md)},pages(){let e="";if(!this.md)return e;if(this.md.page){const a=Te.format(this.md.page);e+=this.$vuetify.display.smAndDown?`${a} / `:`Read ${a} of `}const t=Te.format(this.md.pageCount);return e+=`${t} page`,this.md.pageCount!==1&&(e+="s"),this.$vuetify.display.smAndUp&&this.md.progress>0&&(e+=` (${Math.round(this.md.progress)}%)`),e},size(){return this?.md?.size>0?Ye(this.md.size):0},fileType(){return this?.md?.fileType||"Unknown"},seriesVolumeCount(){const e=this.md.seriesVolumeCount;return e?`of ${e}`:""},volumeIssueCount(){const e=this.md.volumeIssueCount;return e?`/ ${e}`:""}}},Ms={id:"metadataHeader"},Bs={key:1,id:"seriesHeader"},Rs={id:"seriesRow",class:"inlineRow"},Ns={key:2,id:"titleRow"},Vs={key:4,id:"publisherRow",class:"inlineRow"},Ls={key:7,id:"pageDateRow",class:"inlineRow"};function Is(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataBookCover"),d=_("MetadataTags"),k=_("MetadataControls");return l(),p(me,null,[m("header",Ms,[e.q?(l(),f(i,{key:0,id:"search",value:e.q,label:"Search Query",highlight:!0},null,8,["value"])):h("",!0),u(o,{id:"metadataBookCover",group:a.group},null,8,["group"]),e.md.seriesList?.length===1?(l(),p("section",Bs,[m("div",Rs,[(l(),f(i,{id:"series",key:e.md.seriesList[0].ids,value:e.md.seriesList[0],group:"s",highlight:e.md.group==="s"},null,8,["value","highlight"])),e.md.volumeList?.length===1?(l(),f(i,{id:"volume",key:e.md.volumeList[0].ids,value:e.md.volumeList[0],group:"v",highlight:e.md.group==="v"},null,8,["value","highlight"])):h("",!0),u(i,{value:s.seriesVolumeCount,class:"subdued"},null,8,["value"]),u(i,{id:"issue",value:s.formattedIssueNumber,group:"c",highlight:e.md.group==="c"},null,8,["value","highlight"]),u(i,{value:s.volumeIssueCount,class:"subdued"},null,8,["value"])])])):h("",!0),e.md.name?(l(),p("span",Ns,w(s.collectionTitle)+" "+w(e.md.name),1)):h("",!0),e.md.seriesList?.length>1?(l(),f(d,{key:3,id:"seriesTags",class:"groupTags",label:"Series",values:e.md.seriesList,filter:"s"},null,8,["values"])):h("",!0),m("div",null,[e.md.volumeList?.length>1?(l(),f(d,{key:0,id:"volumeTags",class:"groupTags",label:"Volumes",values:e.md.volumeList,filter:"v"},null,8,["values"])):h("",!0)]),e.md.publisherList?.length===1?(l(),p("div",Vs,[(l(),f(i,{id:"publisher",key:e.md.publisherList[0].ids,group:"p",highlight:e.md.group==="p",value:e.md.publisherList[0]},null,8,["highlight","value"])),e.md.imprintList?.length===1?(l(),f(i,{id:"imprint",key:e.md.imprintList[0].ids,group:"i",highlight:e.md.group==="i",value:e.md.imprintList[0]},null,8,["highlight","value"])):h("",!0)])):h("",!0),e.md.publisherList?.length>1?(l(),f(d,{key:5,id:"publisherTags",class:"groupTags",label:"Publishers",values:e.md.publisherList,filter:"p"},null,8,["values"])):h("",!0),e.md.imprintList?.length>1?(l(),f(d,{key:6,id:"imprintTags",class:"groupTags",label:"Imprints",values:e.md.imprintList,filter:"i"},null,8,["values"])):h("",!0),s.pages||e.md.year||e.md.month||e.md.day?(l(),p("div",Ls,[u(i,{value:s.pages},null,8,["value"]),u(i,{value:s.date,class:"datePicker"},null,8,["value"])])):h("",!0)]),u(k,{id:"controls",group:a.group},null,8,["group"])],64)}const xs=T(Ts,[["render",Is],["__scopeId","data-v-a05541e5"]]),Ps={name:"MetadataActivator",props:{book:{type:Object,required:!0},toolbar:{type:Boolean,require:!0}},data(){return{mdiTagOutline:wt}},computed:{...M(St,{lazyImportEnabled:e=>e.adminFlags.lazyImportMetadata}),variant(){return this.toolbar?"plain":"text"}},methods:{...de(z,["lazyImport"]),onMouseEnter(){if(this.lazyImportEnabled&&this.book.group==="c"&&!this.book.hasMetadata){const e=this.book.ids||[this.book.pk];this.lazyImport({group:this.book.group,ids:e}),this.book.hasMetadata=!0}}}};function $s(e,t,a,r,n,s){return l(),f(_e,{onMouseenter:s.onMouseEnter,"aria-label":"tags",class:"tagButton cardControlButton",variant:s.variant,icon:n.mdiTagOutline,title:"Tags",onClick:t[0]||(t[0]=Ct(()=>{},["prevent"]))},null,8,["onMouseenter","variant","icon"])}const Fs=T(Ps,[["render",$s]]),Ds=1160,Es=.05,zs=250,Os={name:"MetadataButton",components:{CloseButton:Ht,MetadataActivator:Fs,MetadataBody:vs,MetadataHeader:xs,PlaceholderLoading:Jt},props:{book:{type:Object,required:!0},toolbar:{type:Boolean,default:!1}},data(){return{dialog:!1,progress:0}},computed:{...M(z,{md:e=>e.md}),showContainer(){return this.md?.loaded||!1},children(){return this.book.childCount||0}},watch:{dialog(e){e?this.dialogOpened():this.clearMetadata()}},methods:{...de(z,["clearMetadata","loadMetadata"]),dialogOpened(){const e=this.book.ids||[this.book.pk],t={group:this.book.group,pks:e};this.loadMetadata(t),this.startProgress()},startProgress(){this.startTime=Date.now(),this.estimatedMS=Math.max(Es,this.children/Ds)*1e3,this.updateProgress()},updateProgress(){const e=Date.now()-this.startTime;this.progress=e/this.estimatedMS*100,!(this.progress>=100||this.md)&&setTimeout(()=>{this.updateProgress()},zs)}}},As={key:1,id:"placeholderContainer"};function Gs(e,t,a,r,n,s){const i=_("MetadataActivator"),o=_("CloseButton"),d=_("MetadataHeader"),k=_("MetadataBody"),B=_("PlaceholderLoading");return l(),f(qt,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=y=>n.dialog=y),fullscreen:"",transition:"dialog-bottom-transition"},{activator:C(({props:y})=>[u(i,Z(y,{book:a.book,toolbar:a.toolbar}),null,16,["book","toolbar"])]),default:C(()=>[u(o,{class:"closeButton",title:"Close Metadata (esc)",onClick:t[0]||(t[0]=y=>n.dialog=!1)}),s.showContainer?(l(),p("div",{key:0,id:"metadataContainer",onKeyup:t[1]||(t[1]=Tt(y=>n.dialog=!1,["esc"]))},[u(d,{group:a.book.group},null,8,["group"]),u(k,{book:a.book},null,8,["book"])],32)):(l(),p("div",As,[t[3]||(t[3]=m("div",{id:"placeholderTitle"},"Tags Loading",-1)),u(B,{"model-value":n.progress,indeterminate:n.progress>=100,class:"placeholder"},null,8,["model-value","indeterminate"])]))]),_:1},8,["modelValue"])}const bi=T(Os,[["render",Gs],["__scopeId","data-v-e1a86bc1"]]),js={name:"PaginationNavButton",props:{narrow:{type:Boolean,default:!0}},computed:{classes(){return{narrowButton:this.narrow}}}};function Us(e,t,a,r,n,s){return l(),f(_e,{variant:"plain",density:"compact",class:V(["paginationNavButton",s.classes]),size:"medium"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1032,["class"])}const ki=T(js,[["render",Us],["__scopeId","data-v-cf061c30"]]),Pe=Symbol.for("vuetify:v-slider");function qs(e,t,a){const r=a==="vertical",n=t.getBoundingClientRect(),s="touches"in e?e.touches[0]:e;return r?s.clientY-(n.top+n.height/2):s.clientX-(n.left+n.width/2)}function Hs(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Ks=he({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...$t(),...Pt({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Ws=e=>{const t=g(()=>parseFloat(e.min)),a=g(()=>parseFloat(e.max)),r=g(()=>Number(e.step)>0?parseFloat(e.step):0),n=g(()=>Math.max(De(r.value),De(t.value)));function s(i){if(i=parseFloat(i),r.value<=0)return i;const o=Me(i,t.value,a.value),d=t.value%r.value;let k=Math.round((o-d)/r.value)*r.value+d;return o>k&&k+r.value>a.value&&(k=a.value),parseFloat(Math.min(k,a.value).toFixed(n.value))}return{min:t,max:a,step:r,decimals:n,roundValue:s}},Ys=e=>{let{props:t,steps:a,onSliderStart:r,onSliderMove:n,onSliderEnd:s,getActiveThumb:i}=e;const{isRtl:o}=Ie(),d=$(()=>t.reverse),k=g(()=>t.direction==="vertical"),B=g(()=>k.value!==d.value),{min:y,max:I,step:D,decimals:O,roundValue:K}=a,X=g(()=>parseInt(t.thumbSize,10)),Q=g(()=>parseInt(t.tickSize,10)),A=g(()=>parseInt(t.trackSize,10)),G=g(()=>(I.value-y.value)/D.value),j=$(()=>t.disabled),U=g(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),q=g(()=>t.error||t.disabled?void 0:t.thumbColor),W=g(()=>t.error||t.disabled?void 0:t.trackColor??t.color),x=g(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),P=Ee(!1),S=Ee(0),Y=be(),b=be();function E(c){const v=Y.value?.$el;if(!v)return;const se=t.direction==="vertical",ve=se?"top":"left",ge=se?"height":"width",st=se?"clientY":"clientX",{[ve]:it,[ge]:nt}=v.getBoundingClientRect(),rt=Hs(c,st);let we=Me((rt-it-S.value)/nt)||0;return(se?B.value:B.value!==o.value)&&(we=1-we),K(y.value+we*(I.value-y.value))}const J=c=>{const v=E(c);v!=null&&s({value:v}),P.value=!1,S.value=0},ce=c=>{const v=E(c);b.value=i(c),b.value&&(P.value=!0,b.value.contains(c.target)?S.value=qs(c,b.value,t.direction):(S.value=0,v!=null&&n({value:v})),v!=null&&r({value:v}),Bt(()=>b.value?.focus()))},ee={passive:!0,capture:!0};function H(c){const v=E(c);v!=null&&n({value:v})}function te(c){c.stopPropagation(),c.preventDefault(),J(c),window.removeEventListener("mousemove",H,ee),window.removeEventListener("mouseup",te)}function oe(c){J(c),window.removeEventListener("touchmove",H,ee),c.target?.removeEventListener("touchend",oe)}function ae(c){ce(c),window.addEventListener("touchmove",H,ee),c.target?.addEventListener("touchend",oe,{passive:!1})}function Se(c){c.button===0&&(c.preventDefault(),ce(c),window.addEventListener("mousemove",H,ee),window.addEventListener("mouseup",te,{passive:!1}))}const le=c=>{const v=(c-y.value)/(I.value-y.value)*100;return Me(isNaN(v)?0:v,0,100)},fe=$(()=>t.showTicks),pe=g(()=>fe.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(c=>({value:c,position:le(c),label:c.toString()})):Object.keys(t.ticks).map(c=>({value:parseFloat(c),position:le(parseFloat(c)),label:t.ticks[c]})):G.value!==1/0?Mt(G.value+1).map(c=>{const v=y.value+c*D.value;return{value:v,position:le(v)}}):[]:[]),N=g(()=>pe.value.some(c=>{let{label:v}=c;return!!v})),R={activeThumbRef:b,color:$(()=>t.color),decimals:O,disabled:j,direction:$(()=>t.direction),elevation:$(()=>t.elevation),hasLabels:N,isReversed:d,indexFromEnd:B,min:y,max:I,mousePressed:P,noKeyboard:$(()=>t.noKeyboard),numTicks:G,onSliderMousedown:Se,onSliderTouchstart:ae,parsedTicks:pe,parseMouseMove:E,position:le,readonly:$(()=>t.readonly),rounded:$(()=>t.rounded),roundValue:K,showTicks:fe,startOffset:S,step:D,thumbSize:X,thumbColor:U,thumbLabelColor:q,thumbLabel:$(()=>t.thumbLabel),ticks:$(()=>t.ticks),tickSize:Q,trackColor:W,trackContainerRef:Y,trackFillColor:x,trackSize:A,vertical:k};return Rt(Pe,R),R},Zs=he({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...Re()},"VSliderThumb"),Xs=ke()({name:"VSliderThumb",directives:{vRipple:Oe},props:Zs(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=qe(Pe),{isRtl:s,rtlClasses:i}=Ie();if(!n)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:d,thumbColor:k,thumbLabelColor:B,step:y,disabled:I,thumbSize:D,thumbLabel:O,direction:K,isReversed:X,vertical:Q,readonly:A,elevation:G,mousePressed:j,decimals:U,indexFromEnd:q}=n,W=g(()=>I.value?void 0:G.value),{elevationClasses:x}=Ft(W),{textColorClasses:P,textColorStyles:S}=Dt(k),{backgroundColorClasses:Y,backgroundColorStyles:b}=Be(B),{pageup:E,pagedown:J,end:ce,home:ee,left:H,right:te,down:oe,up:ae}=Nt,Se=[E,J,ce,ee,H,te,oe,ae],le=g(()=>y.value?[1,2,3]:[1,5,10]);function fe(N,R){if(e.noKeyboard||!Se.includes(N.key))return;N.preventDefault();const c=y.value||.1,v=(d.value-o.value)/c;if([H,te,oe,ae].includes(N.key)){const ve=(Q.value?[s.value?H:te,X.value?oe:ae]:q.value!==s.value?[H,ae]:[te,ae]).includes(N.key)?1:-1,ge=N.shiftKey?2:N.ctrlKey?1:0;ve===-1&&R===d.value&&!ge&&!Number.isInteger(v)?R=R-v%1*c:R=R+ve*c*le.value[ge]}else if(N.key===ee)R=o.value;else if(N.key===ce)R=d.value;else{const se=N.key===J?1:-1;R=R-se*c*(v>100?v/10:10)}return Math.max(e.min,Math.min(e.max,R))}function pe(N){const R=fe(N,e.modelValue);R!=null&&r("update:modelValue",R)}return ye(()=>{const N=ie(q.value?100-e.position:e.position,"%");return m("div",{class:V(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&j.value},e.class,i.value]),style:re([{"--v-slider-thumb-position":N,"--v-slider-thumb-size":ie(D.value)},e.style]),role:"slider",tabindex:I.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,"aria-readonly":!!A.value,"aria-orientation":K.value,onKeydown:A.value?void 0:pe},[m("div",{class:V(["v-slider-thumb__surface",P.value,x.value]),style:re(S.value)},null),ze(m("div",{class:V(["v-slider-thumb__ripple",P.value]),style:re(S.value)},null),[[Oe,e.ripple,null,{circle:!0,center:!0}]]),u(Wt,{origin:"bottom center"},{default:()=>[ze(m("div",{class:"v-slider-thumb__label-container"},[m("div",{class:V(["v-slider-thumb__label",Y.value]),style:re(b.value)},[m("div",null,[a["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(y.value?U.value:1)]),m("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[Vt,O.value&&e.focused||O.value==="always"]])]})])}),{}}}),Qs=he({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Re()},"VSliderTrack"),Js=ke()({name:"VSliderTrack",props:Qs(),emits:{},setup(e,t){let{slots:a}=t;const r=qe(Pe);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:n,parsedTicks:s,rounded:i,showTicks:o,tickSize:d,trackColor:k,trackFillColor:B,trackSize:y,vertical:I,min:D,max:O,indexFromEnd:K}=r,{roundedClasses:X}=Et(i),{backgroundColorClasses:Q,backgroundColorStyles:A}=Be(B),{backgroundColorClasses:G,backgroundColorStyles:j}=Be(k),U=g(()=>`inset-${I.value?"block":"inline"}-${K.value?"end":"start"}`),q=g(()=>I.value?"height":"width"),W=g(()=>({[U.value]:"0%",[q.value]:"100%"})),x=g(()=>e.stop-e.start),P=g(()=>({[U.value]:ie(e.start,"%"),[q.value]:ie(x.value,"%")})),S=g(()=>o.value?(I.value?s.value.slice().reverse():s.value).map((b,E)=>{const J=b.value!==D.value&&b.value!==O.value?ie(b.position,"%"):void 0;return m("div",{key:b.value,class:V(["v-slider-track__tick",{"v-slider-track__tick--filled":b.position>=e.start&&b.position<=e.stop,"v-slider-track__tick--first":b.value===D.value,"v-slider-track__tick--last":b.value===O.value}]),style:{[U.value]:J}},[(b.label||a["tick-label"])&&m("div",{class:"v-slider-track__tick-label"},[a["tick-label"]?.({tick:b,index:E})??b.label])])}):[]);return ye(()=>m("div",{class:V(["v-slider-track",X.value,e.class]),style:re([{"--v-slider-track-size":ie(y.value),"--v-slider-tick-size":ie(d.value)},e.style])},[m("div",{class:V(["v-slider-track__background",G.value,{"v-slider-track__background--opacity":!!n.value||!B.value}]),style:{...W.value,...j.value}},null),m("div",{class:V(["v-slider-track__fill",Q.value]),style:{...P.value,...A.value}},null),o.value&&m("div",{class:V(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[S.value])])),{}}}),ei=he({...Xt(),...Ks(),...Zt(),modelValue:{type:[Number,String],default:0}},"VSlider"),ti=ke()({name:"VSlider",props:ei(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=be(),s=be(),{rtlClasses:i}=Ie(),o=Ws(e),d=Lt(e,"modelValue",void 0,x=>o.roundValue(x??o.min.value)),{min:k,max:B,mousePressed:y,roundValue:I,onSliderMousedown:D,onSliderTouchstart:O,trackContainerRef:K,position:X,hasLabels:Q,readonly:A,noKeyboard:G}=Ys({props:e,steps:o,onSliderStart:()=>{r("start",d.value)},onSliderEnd:x=>{let{value:P}=x;const S=I(P);d.value=S,r("end",S)},onSliderMove:x=>{let{value:P}=x;return d.value=I(P)},getActiveThumb:()=>n.value?.$el}),{isFocused:j,focus:U,blur:q}=Yt(e),W=g(()=>X(d.value));return ye(()=>{const x=Ae.filterProps(e),P=!!(e.label||a.label||a.prepend);return u(Ae,Z({ref:s,class:["v-slider",{"v-slider--has-labels":!!a["tick-label"]||Q.value,"v-slider--focused":j.value,"v-slider--pressed":y.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},x,{focused:j.value}),{...a,prepend:P?S=>m(me,null,[a.label?.(S)??(e.label?u(Qt,{id:S.id.value,class:"v-slider__label",text:e.label},null):void 0),a.prepend?.(S)]):void 0,default:S=>{let{id:Y,messagesId:b}=S;return m("div",{class:"v-slider__container",onMousedown:A.value?void 0:D,onTouchstartPassive:A.value?void 0:O},[m("input",{id:Y.value,name:e.name||Y.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:d.value},null),u(Js,{ref:K,start:0,stop:W.value},{"tick-label":a["tick-label"]}),u(Xs,{ref:n,"aria-describedby":b.value,focused:j.value,noKeyboard:G.value,min:k.value,max:B.value,modelValue:d.value,"onUpdate:modelValue":E=>d.value=E,position:W.value,elevation:e.elevation,onFocus:U,onBlur:q,ripple:e.ripple,name:e.name},{"thumb-label":a["thumb-label"]})])}})}),zt({focus:()=>n.value?.$el.focus()},s)}}),ai={name:"PaginationSlider",props:{min:{type:Number,default:0}}};function si(e,t,a,r,n,s){return l(),f(ti,Z({"thumb-size":"36",class:"paginationSlider",density:"compact","hide-details":"auto",min:a.min,rounded:!0,"show-ticks":"always",step:1,"thumb-label":"always"},e.$attrs),{"tick-label":C(({index:i})=>[F(w(i+a.min),1)]),_:1},16,["min"])}const yi=T(ai,[["render",si],["__scopeId","data-v-01b67afd"]]),ii={name:"PaginationToolbar"};function ni(e,t,a,r,n,s){return l(),f(ea,{class:"paginationToolbar codexToolbar",density:"compact",transform:"center bottom"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1024)}const _i=T(ii,[["render",ni],["__scopeId","data-v-cfa8cce0"]]);export{ca as B,pa as D,ka as M,Ce as N,ki as P,vi as T,pi as V,gi as a,bi as b,_i as c,yi as d,tt as g,Ye as p,Ge as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-hYnDmn23.js","assets/main-CTlarBH9.js","assets/main-B8_0rUnw.css","assets/admin-26AnWn-T.js","assets/forwardRefs-BGAZ1bvO.js","assets/forwardRefs-C3Z4qL85.css","assets/admin-settings-button-progress-Cks9_KN-.css","assets/admin-menu-42Q4jLGf.js","assets/change-password-dialog-Df28DwbL.js","assets/VDialog-Bn_MNvQ-.js","assets/VDialog-CpWjrJ0R.css","assets/VForm-BRei2Gn2.js","assets/VSelectionControl-N_wsNRlD.js","assets/VSelectionControl-RqBzwjYi.css","assets/VForm-DxBt30-N.css","assets/change-password-dialog-DL8UMjmX.css","assets/VDivider-DOOd4a9s.js","assets/VDivider-DU47sRrT.css","assets/index-Cm9w_Tog.js","assets/index-Czf-fUM7.css","assets/admin-menu-hpyUS8ku.css"])))=>i.map(i=>d[i]);
2
- import{_ as x,y as T,W as ze,A as Fe,x as S,w,a6 as ie,m as G,C as Z,E as F,ao as re,D as M,G as ee,ba as He,aq as ue,ab as Ne,v as I,ar as ce,a as f,H as O,z as E,B as P,I as de,bb as Ye,bc as We,bd as ve,q as U,b,T as qe,aR as Xe,a0 as me,be as je,g as he,p as fe,r as ge,aA as pe,aU as R,bf as Ge,c as D,bg as X,u as ye,n as Ze,d as Ke,h as _e,aB as be,bh as we,K as Se,bi as ke,t as z,bj as De,bk as Je,bl as Ce,aV as q,bm as Pe,bn as Qe,b8 as et,bo as tt,aD as at,bp as ot,e as nt,bq as st,f as lt,br as it,F as rt,bs as ut,aX as ct}from"./main-CTlarBH9.js";import{V as Be,k as H,c as Q,r as Ve,s as Te,i as Ee,d as Oe,j as $e,t as Ie,v as Re,B as dt,C as vt,l as mt}from"./forwardRefs-BGAZ1bvO.js";import{P as ht,d as ft}from"./unauthorized-BsEyzLQ2.js";import{c as gt}from"./copy-to-clipboard-DoUvDJVx.js";import{j as pt}from"./VSelectionControl-N_wsNRlD.js";import{V as yt,u as _t,e as bt,f as wt,d as St}from"./VDialog-Bn_MNvQ-.js";import{u as kt}from"./ssrBoot-CjQLVcFD.js";import{a as J}from"./VDivider-DOOd4a9s.js";const Dt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Ct(e,o,s,c,t,a){return S(),T(Be,{density:a.density},ze({_:2},[Fe(e.$slots,(n,u)=>({name:u,fn:w(g=>[ie(e.$slots,u,G({props:n},g))])}))]),1032,["density"])}const Pt=x(Dt,[["render",Ct]]),ne=re(ue(()=>ce(()=>import("./admin-settings-button-progress-hYnDmn23.js"),__vite__mapDeps([0,1,2,3,4,5,6])))),Bt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ne,ScaleButton:Pt},data(){return{mdiMenu:He,AdminSettingsButtonProgress:ne}},computed:{...F(ee,["isUserAdmin"])},methods:{...Z(M,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Vt(e,o,s,c,t,a){const n=I("ScaleButton");return S(),T(n,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Ne(a.onClick,["prevent"])},{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(S(),T(de(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const wa=x(Bt,[["render",Vt],["__scopeId","data-v-cdf6ad8a"]]),Tt={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:ve,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Ye:We},tooltip(){return this.clipBoardEnabled},url(){return globalThis.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&gt(this.url,this.showTooltip)}}},Et=["title"],Ot={key:0},$t={class:"copied"},It={key:1,class:"subtitle"},Rt={class:"opdsUrl"};function Mt(e,o,s,c,t,a){return S(),U("div",{class:"opdsVersion",title:a.tooltip,onClick:o[0]||(o[0]=(...n)=>a.onClickURL&&a.onClickURL(...n))},[b("h3",null,[E(P(s.title)+" ",1),a.clipBoardEnabled?(S(),U("span",Ot,[f(H,{class:"clipBoardIcon",size:"small"},{default:w(()=>[E(P(a.clipBoardIcon),1)]),_:1}),f(pt,null,{default:w(()=>[qe(b("span",$t,"Copied",512),[[Xe,t.showTooltip.show]])]),_:1})])):O("",!0),s.subtitle?(S(),U("span",It,P(s.subtitle),1)):O("",!0)]),b("div",Rt,P(a.url),1)],8,Et)}const xt=x(Tt,[["render",Mt],["__scopeId","data-v-feac632b"]]),At={name:"OPDSDialog",components:{OPDSUrl:xt,PlaceholderLoading:ht},data(){return{mdiRss:ve}},computed:{...F(M,{opdsURLs:e=>e.opdsURLs})},methods:{...Z(M,["loadOPDSURLs"])}},Lt={key:0,id:"opds"};function Ut(e,o,s,c,t,a){const n=I("OPDSUrl"),u=I("PlaceholderLoading");return S(),T(yt,{"max-width":"30em"},{activator:w(({props:g})=>[f(Be,G({id:"opdsButton",icon:"",size:"small",variant:"plain"},g,{onClick:e.loadOPDSURLs}),{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[0]||(o[0]=E(" OPDS ",-1))]),_:2,__:[0]},1040,["onClick"])]),default:w(()=>[e.opdsURLs?(S(),U("div",Lt,[b("h2",null,[f(H,{size:"x=small",class:"inline"},{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[1]||(o[1]=E(" OPDS ",-1))]),f(n,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),f(n,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(S(),T(u,{key:1}))]),_:1})}const zt=x(At,[["render",Ut],["__scopeId","data-v-5646b9a1"]]),Ft={name:"DocsFooter",data(){return{mdiBookOpenVariantOutline:je,mdiOpenInNew:me}}},Ht={id:"repo",href:"https://codex-comic-reader.readthedocs.io/",title:"Codex Documentation",target:"_blank"};function Nt(e,o,s,c,t,a){return S(),U("a",Ht,[f(H,{id:"repoIcon",size:"x-small"},{default:w(()=>[E(P(t.mdiBookOpenVariantOutline),1)]),_:1}),o[0]||(o[0]=E(" documentation",-1)),f(H,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:w(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const Yt=x(Ft,[["render",Nt],["__scopeId","data-v-6eb88e3c"]]),Wt=fe({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Re(),...Se(),...Ie(),...we(),...$e(),...Oe({tag:"footer"}),...be()},"VFooter"),Me=he()({name:"VFooter",props:Wt(),setup(e,o){let{slots:s}=o;const c=ge(),{themeClasses:t}=pe(e),{backgroundColorClasses:a,backgroundColorStyles:n}=Q(()=>e.color),{borderClasses:u}=Ve(e),{elevationClasses:g}=Te(e),{roundedClasses:r}=Ee(e),p=R(32),{resizeRef:m}=Ge(y=>{y.length&&(p.value=y[0].target.clientHeight)}),d=D(()=>e.height==="auto"?p.value:parseInt(e.height,10));return X(()=>e.app,()=>{const y=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:z(()=>"bottom"),layoutSize:d,elementSize:D(()=>e.height==="auto"?void 0:d.value),active:z(()=>e.app),absolute:z(()=>e.absolute)});De(()=>{c.value=y.layoutItemStyles.value})}),ye(()=>f(e.tag,{ref:m,class:Ke(["v-footer",t.value,a.value,u.value,g.value,r.value,e.class]),style:Ze([n.value,e.app?c.value:{height:_e(e.height)},e.style])},s)),{}}}),qt={name:"VersionFooter",data(){return{mdiOpenInNew:me,mdiContentCopy:Je}},computed:{...F(M,{versions:e=>e.versions}),...F(ee,["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:{...Z(M,["loadVersions"]),semverGreaterThan(e,o){try{if(!e||!o)return!1;const s=e.split("."),c=o.split(".");for(const[t,a]of s.entries())if(+a>+c[t])return!0}catch(s){console.debug("compare codex versions",e,">",o,s)}return!1}}},Xt={id:"version"},jt={key:0,id:"latest"};function Gt(e,o,s,c,t,a){return S(),T(Me,{id:"version-footer",title:a.versionTitle},{default:w(()=>[b("div",Xt,"codex v"+P(e.versions.installed),1),a.outdated?(S(),U("div",jt," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const Zt=x(qt,[["render",Gt],["__scopeId","data-v-b77f3bde"]]);function Kt(e){let{rootEl:o,isSticky:s,layoutItemStyles:c}=e;const t=R(!1),a=R(0),n=D(()=>{const r=typeof t.value=="boolean"?"top":t.value;return[s.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[r]:_e(a.value)}:{top:c.value.top}]});Ce(()=>{q(s,r=>{r?window.addEventListener("scroll",g,{passive:!0}):window.removeEventListener("scroll",g)},{immediate:!0})}),Pe(()=>{window.removeEventListener("scroll",g)});let u=0;function g(){const r=u>window.scrollY?"up":"down",p=o.value.getBoundingClientRect(),m=parseFloat(c.value.top??0),d=window.scrollY-Math.max(0,a.value-m),y=p.height+Math.max(a.value,m)-window.scrollY-window.innerHeight,_=parseFloat(getComputedStyle(o.value).getPropertyValue("--v-body-scroll-y"))||0;p.height<window.innerHeight-m?(t.value="top",a.value=m):r==="up"&&t.value==="bottom"||r==="down"&&t.value==="top"?(a.value=window.scrollY+p.top-_,t.value=!0):r==="down"&&y<=0?(a.value=0,t.value="bottom"):r==="up"&&d<=0&&(_?t.value!=="top"&&(a.value=-d+_+m,t.value="top"):(a.value=p.top+d,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:n}}const Jt=100,Qt=20;function se(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function le(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 o=0;for(let s=e.length-1;s>0;s--){if(e[s].t===e[s-1].t)continue;const c=se(o),t=(e[s].d-e[s-1].d)/(e[s].t-e[s-1].t);o+=(t-c)*Math.abs(t),s===e.length-1&&(o*=.5)}return se(o)*1e3}function ea(){const e={};function o(t){Array.from(t.changedTouches).forEach(a=>{(e[a.identifier]??(e[a.identifier]=new Qe(Qt))).push([t.timeStamp,a])})}function s(t){Array.from(t.changedTouches).forEach(a=>{delete e[a.identifier]})}function c(t){const a=e[t]?.values().reverse();if(!a)throw new Error(`No samples for touch id ${t}`);const n=a[0],u=[],g=[];for(const r of a){if(n[0]-r[0]>Jt)break;u.push({t:r[0],d:r[1].clientX}),g.push({t:r[0],d:r[1].clientY})}return{x:le(u),y:le(g),get direction(){const{x:r,y:p}=this,[m,d]=[Math.abs(r),Math.abs(p)];return m>d&&r>=0?"right":m>d&&r<=0?"left":d>m&&p>=0?"down":d>m&&p<=0?"up":ta()}}}return{addMovement:o,endTouch:s,getVelocity:c}}function ta(){throw new Error}function aa(e){let{el:o,isActive:s,isTemporary:c,width:t,touchless:a,position:n}=e;Ce(()=>{window.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("touchmove",$,{passive:!1}),window.addEventListener("touchend",j,{passive:!0})}),Pe(()=>{window.removeEventListener("touchstart",A),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",j)});const u=D(()=>["left","right"].includes(n.value)),{addMovement:g,endTouch:r,getVelocity:p}=ea();let m=!1;const d=R(!1),y=R(0),_=R(0);let C;function N(l,i){return(n.value==="left"?l:n.value==="right"?document.documentElement.clientWidth-l:n.value==="top"?l:n.value==="bottom"?document.documentElement.clientHeight-l:L())-(i?t.value:0)}function Y(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const v=n.value==="left"?(l-_.value)/t.value:n.value==="right"?(document.documentElement.clientWidth-l-_.value)/t.value:n.value==="top"?(l-_.value)/t.value:n.value==="bottom"?(document.documentElement.clientHeight-l-_.value)/t.value:L();return i?et(v):v}function A(l){if(a.value)return;const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY,h=25,B=n.value==="left"?i<h:n.value==="right"?i>document.documentElement.clientWidth-h:n.value==="top"?v<h:n.value==="bottom"?v>document.documentElement.clientHeight-h:L(),V=s.value&&(n.value==="left"?i<t.value:n.value==="right"?i>document.documentElement.clientWidth-t.value:n.value==="top"?v<t.value:n.value==="bottom"?v>document.documentElement.clientHeight-t.value:L());(B||V||s.value&&c.value)&&(C=[i,v],_.value=N(u.value?i:v,s.value),y.value=Y(u.value?i:v),m=_.value>-20&&_.value<80,r(l),g(l))}function $(l){const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY;if(m){if(!l.cancelable){m=!1;return}const B=Math.abs(i-C[0]),V=Math.abs(v-C[1]);(u.value?B>V&&B>3:V>B&&V>3)?(d.value=!0,m=!1):(u.value?V:B)>3&&(m=!1)}if(!d.value)return;l.preventDefault(),g(l);const h=Y(u.value?i:v,!1);y.value=Math.max(0,Math.min(1,h)),h>1?_.value=N(u.value?i:v,!0):h<0&&(_.value=N(u.value?i:v,!1))}function j(l){if(m=!1,!d.value)return;g(l),d.value=!1;const i=p(l.changedTouches[0].identifier),v=Math.abs(i.x),h=Math.abs(i.y);(u.value?v>h&&v>400:h>v&&h>3)?s.value=i.direction===({left:"right",right:"left",top:"down",bottom:"up"}[n.value]||L()):s.value=y.value>.5}const W=D(()=>d.value?{transform:n.value==="left"?`translateX(calc(-100% + ${y.value*t.value}px))`:n.value==="right"?`translateX(calc(100% - ${y.value*t.value}px))`:n.value==="top"?`translateY(calc(-100% + ${y.value*t.value}px))`:n.value==="bottom"?`translateY(calc(100% - ${y.value*t.value}px))`:L(),transition:"none"}:void 0);return X(d,()=>{const l=o.value?.style.transform??null,i=o.value?.style.transition??null;De(()=>{o.value?.style.setProperty("transform",W.value?.transform||"none"),o.value?.style.setProperty("transition",W.value?.transition||null)}),tt(()=>{o.value?.style.setProperty("transform",l),o.value?.style.setProperty("transition",i)})}),{isDragging:d,dragProgress:y,dragStyles:W}}function L(){throw new Error}const oa=["start","end","left","right","top","bottom"],na=fe({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=>oa.includes(e)},sticky:Boolean,...Re(),...Se(),...wt(),...ut({mobile:null}),...Ie(),...we(),...$e(),...Oe({tag:"nav"}),...be()},"VNavigationDrawer"),sa=he()({name:"VNavigationDrawer",props:na(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,o){let{attrs:s,emit:c,slots:t}=o;const{isRtl:a}=at(),{themeClasses:n}=pe(e),{borderClasses:u}=Ve(e),{backgroundColorClasses:g,backgroundColorStyles:r}=Q(()=>e.color),{elevationClasses:p}=Te(e),{displayClasses:m,mobile:d}=ot(e),{roundedClasses:y}=Ee(e),_=dt(),C=nt(e,"modelValue",null,k=>!!k),{ssrBootStyles:N}=kt(),{scopeId:Y}=_t(),A=ge(),$=R(!1),{runOpenDelay:j,runCloseDelay:W}=bt(e,k=>{$.value=k}),l=D(()=>e.rail&&e.expandOnHover&&$.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),i=D(()=>vt(e.location,a.value)),v=z(()=>e.persistent),h=D(()=>!e.permanent&&(d.value||e.temporary)),B=D(()=>e.sticky&&!h.value&&i.value!=="bottom");X(()=>e.expandOnHover&&e.rail!=null,()=>{q($,k=>c("update:rail",!k))}),X(()=>!e.disableResizeWatcher,()=>{q(h,k=>!e.permanent&&ct(()=>C.value=!k))}),X(()=>!e.disableRouteWatcher&&!!_,()=>{q(_.currentRoute,()=>h.value&&(C.value=!1))}),q(()=>e.permanent,k=>{k&&(C.value=!0)}),e.modelValue==null&&!h.value&&(C.value=e.permanent||!d.value);const{isDragging:V,dragProgress:K}=aa({el:A,isActive:C,isTemporary:h,width:l,touchless:z(()=>e.touchless),position:i}),xe=D(()=>{const k=h.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):l.value;return V.value?k*K.value:k}),{layoutItemStyles:te,layoutItemScrimStyles:Ae}=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:i,layoutSize:xe,elementSize:l,active:st(C),disableTransitions:z(()=>V.value),absolute:D(()=>e.absolute||B.value&&typeof ae.value!="string")}),{isStuck:ae,stickyStyles:Le}=Kt({rootEl:A,isSticky:B,layoutItemStyles:te}),oe=Q(()=>typeof e.scrim=="string"?e.scrim:null),Ue=D(()=>({...V.value?{opacity:K.value*.2,transition:"none"}:void 0,...Ae.value}));return lt({VList:{bgColor:"transparent"}}),ye(()=>{const k=t.image||e.image;return b(rt,null,[f(e.tag,G({ref:A,onMouseenter:j,onMouseleave:W,class:["v-navigation-drawer",`v-navigation-drawer--${i.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":$.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":h.value,"v-navigation-drawer--persistent":v.value,"v-navigation-drawer--active":C.value,"v-navigation-drawer--sticky":B.value},n.value,g.value,u.value,m.value,p.value,y.value,e.class],style:[r.value,te.value,N.value,Le.value,e.style]},Y,s),{default:()=>[k&&b("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?f(mt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):f(St,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&b("div",{class:"v-navigation-drawer__prepend"},[t.prepend?.()]),b("div",{class:"v-navigation-drawer__content"},[t.default?.()]),t.append&&b("div",{class:"v-navigation-drawer__append"},[t.append?.()])]}),f(it,{name:"fade-transition"},{default:()=>[h.value&&(V.value||C.value)&&!!e.scrim&&b("div",G({class:["v-navigation-drawer__scrim",oe.backgroundColorClasses.value],style:[Ue.value,oe.backgroundColorStyles.value],onClick:()=>{v.value||(C.value=!1)}},Y),null)]})])}),{isStuck:ae}}}),la=re(ue(()=>ce(()=>import("./admin-menu-42Q4jLGf.js"),__vite__mapDeps([7,1,2,8,4,5,9,10,11,12,13,14,3,15,16,17,18,19,20])))),ia={name:"SettingsDrawer",components:{AuthMenu:ft,DocsFooter:Yt,OPDSDialog:zt,VersionFooter:Zt},props:{title:{type:String,required:!0}},data(){return{AdminMenu:la}},computed:{...F(ee,["isUserAdmin","isAuthorized"]),...F(M,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...Z(M,["setSettingsDrawerOpen"])}},ra={class:"settingsDrawerContainer"},ua={id:"topBlock"},ca={class:"settingsHeader"},da={id:"scrollFooter",class:"footer"};function va(e,o,s,c,t,a){const n=I("AuthMenu"),u=I("OPDSDialog"),g=I("DocsFooter"),r=I("VersionFooter");return S(),T(sa,{modelValue:a.open,"onUpdate:modelValue":o[0]||(o[0]=p=>a.open=p),"disable-route-watcher":"",location:"right",touchless:""},{append:w(()=>[f(Me,{id:"bottomFooter",class:"footer"},{default:w(()=>[f(r)]),_:1})]),default:w(()=>[b("div",ra,[b("div",ua,[b("header",ca,[b("h3",null,P(s.title),1)]),f(J),e.isAuthorized?ie(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(S(),T(J,{key:1})):O("",!0),f(n),e.isUserAdmin?(S(),T(de(t.AdminMenu),{key:2})):O("",!0),f(J)]),b("div",da,[e.isAuthorized?(S(),T(u,{key:0})):O("",!0),f(g)])])]),_:3},8,["modelValue"])}const Sa=x(ia,[["render",va],["__scopeId","data-v-de26da7a"]]);export{wa as S,sa as V,Sa as a,Pt as b};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-hYnDmn23.js","assets/main-CTlarBH9.js","assets/main-B8_0rUnw.css","assets/admin-26AnWn-T.js","assets/forwardRefs-BGAZ1bvO.js","assets/forwardRefs-C3Z4qL85.css","assets/admin-settings-button-progress-Cks9_KN-.css","assets/admin-menu-42Q4jLGf.js","assets/change-password-dialog-Df28DwbL.js","assets/VDialog-Bn_MNvQ-.js","assets/VDialog-CpWjrJ0R.css","assets/VForm-BRei2Gn2.js","assets/VSelectionControl-N_wsNRlD.js","assets/VSelectionControl-RqBzwjYi.css","assets/VForm-DxBt30-N.css","assets/change-password-dialog-DL8UMjmX.css","assets/VDivider-DOOd4a9s.js","assets/VDivider-DU47sRrT.css","assets/index-Cm9w_Tog.js","assets/index-Czf-fUM7.css","assets/admin-menu-hpyUS8ku.css"])))=>i.map(i=>d[i]);
2
- import{_ as x,y as T,W as ze,A as Fe,x as S,w,a6 as ie,m as G,C as Z,E as F,ao as re,D as M,G as ee,ba as He,aq as ue,ab as Ne,v as I,ar as ce,a as f,H as O,z as E,B as P,I as de,bb as Ye,bc as We,bd as ve,q as U,b,T as qe,aR as Xe,a0 as me,be as je,g as he,p as fe,r as ge,aA as pe,aU as R,bf as Ge,c as D,bg as X,u as ye,n as Ze,d as Ke,h as _e,aB as be,bh as we,K as Se,bi as ke,t as z,bj as De,bk as Je,bl as Ce,aV as q,bm as Pe,bn as Qe,b8 as et,bo as tt,aD as at,bp as ot,e as nt,bq as st,f as lt,br as it,F as rt,bs as ut,aX as ct}from"./main-CTlarBH9.js";import{V as Be,k as H,c as Q,r as Ve,s as Te,i as Ee,d as Oe,j as $e,t as Ie,v as Re,B as dt,C as vt,l as mt}from"./forwardRefs-BGAZ1bvO.js";import{P as ht,d as ft}from"./unauthorized-BsEyzLQ2.js";import{c as gt}from"./copy-to-clipboard-DoUvDJVx.js";import{j as pt}from"./VSelectionControl-N_wsNRlD.js";import{V as yt,u as _t,e as bt,f as wt,d as St}from"./VDialog-Bn_MNvQ-.js";import{u as kt}from"./ssrBoot-CjQLVcFD.js";import{a as J}from"./VDivider-DOOd4a9s.js";const Dt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Ct(e,o,s,c,t,a){return S(),T(Be,{density:a.density},ze({_:2},[Fe(e.$slots,(n,u)=>({name:u,fn:w(g=>[ie(e.$slots,u,G({props:n},g))])}))]),1032,["density"])}const Pt=x(Dt,[["render",Ct]]),ne=re(ue(()=>ce(()=>import("./admin-settings-button-progress-hYnDmn23.js"),__vite__mapDeps([0,1,2,3,4,5,6])))),Bt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ne,ScaleButton:Pt},data(){return{mdiMenu:He,AdminSettingsButtonProgress:ne}},computed:{...F(ee,["isUserAdmin"])},methods:{...Z(M,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Vt(e,o,s,c,t,a){const n=I("ScaleButton");return S(),T(n,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Ne(a.onClick,["prevent"])},{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(S(),T(de(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const wa=x(Bt,[["render",Vt],["__scopeId","data-v-cdf6ad8a"]]),Tt={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:ve,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Ye:We},tooltip(){return this.clipBoardEnabled},url(){return globalThis.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&&gt(this.url,this.showTooltip)}}},Et=["title"],Ot={key:0},$t={class:"copied"},It={key:1,class:"subtitle"},Rt={class:"opdsUrl"};function Mt(e,o,s,c,t,a){return S(),U("div",{class:"opdsVersion",title:a.tooltip,onClick:o[0]||(o[0]=(...n)=>a.onClickURL&&a.onClickURL(...n))},[b("h3",null,[E(P(s.title)+" ",1),a.clipBoardEnabled?(S(),U("span",Ot,[f(H,{class:"clipBoardIcon",size:"small"},{default:w(()=>[E(P(a.clipBoardIcon),1)]),_:1}),f(pt,null,{default:w(()=>[qe(b("span",$t,"Copied",512),[[Xe,t.showTooltip.show]])]),_:1})])):O("",!0),s.subtitle?(S(),U("span",It,P(s.subtitle),1)):O("",!0)]),b("div",Rt,P(a.url),1)],8,Et)}const xt=x(Tt,[["render",Mt],["__scopeId","data-v-feac632b"]]),At={name:"OPDSDialog",components:{OPDSUrl:xt,PlaceholderLoading:ht},data(){return{mdiRss:ve}},computed:{...F(M,{opdsURLs:e=>e.opdsURLs})},methods:{...Z(M,["loadOPDSURLs"])}},Lt={key:0,id:"opds"};function Ut(e,o,s,c,t,a){const n=I("OPDSUrl"),u=I("PlaceholderLoading");return S(),T(yt,{"max-width":"30em"},{activator:w(({props:g})=>[f(Be,G({id:"opdsButton",icon:"",size:"small",variant:"plain"},g,{onClick:e.loadOPDSURLs}),{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[0]||(o[0]=E(" OPDS ",-1))]),_:2,__:[0]},1040,["onClick"])]),default:w(()=>[e.opdsURLs?(S(),U("div",Lt,[b("h2",null,[f(H,{size:"x=small",class:"inline"},{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[1]||(o[1]=E(" OPDS ",-1))]),f(n,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),f(n,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(S(),T(u,{key:1}))]),_:1})}const zt=x(At,[["render",Ut],["__scopeId","data-v-5646b9a1"]]),Ft={name:"DocsFooter",data(){return{mdiBookOpenVariantOutline:je,mdiOpenInNew:me}}},Ht={id:"repo",href:"https://codex-comic-reader.readthedocs.io/",title:"Codex Documentation",target:"_blank"};function Nt(e,o,s,c,t,a){return S(),U("a",Ht,[f(H,{id:"repoIcon",size:"x-small"},{default:w(()=>[E(P(t.mdiBookOpenVariantOutline),1)]),_:1}),o[0]||(o[0]=E(" documentation",-1)),f(H,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:w(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const Yt=x(Ft,[["render",Nt],["__scopeId","data-v-6eb88e3c"]]),Wt=fe({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Re(),...Se(),...Ie(),...we(),...$e(),...Oe({tag:"footer"}),...be()},"VFooter"),Me=he()({name:"VFooter",props:Wt(),setup(e,o){let{slots:s}=o;const c=ge(),{themeClasses:t}=pe(e),{backgroundColorClasses:a,backgroundColorStyles:n}=Q(()=>e.color),{borderClasses:u}=Ve(e),{elevationClasses:g}=Te(e),{roundedClasses:r}=Ee(e),p=R(32),{resizeRef:m}=Ge(y=>{y.length&&(p.value=y[0].target.clientHeight)}),d=D(()=>e.height==="auto"?p.value:parseInt(e.height,10));return X(()=>e.app,()=>{const y=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:z(()=>"bottom"),layoutSize:d,elementSize:D(()=>e.height==="auto"?void 0:d.value),active:z(()=>e.app),absolute:z(()=>e.absolute)});De(()=>{c.value=y.layoutItemStyles.value})}),ye(()=>f(e.tag,{ref:m,class:Ke(["v-footer",t.value,a.value,u.value,g.value,r.value,e.class]),style:Ze([n.value,e.app?c.value:{height:_e(e.height)},e.style])},s)),{}}}),qt={name:"VersionFooter",data(){return{mdiOpenInNew:me,mdiContentCopy:Je}},computed:{...F(M,{versions:e=>e.versions}),...F(ee,["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:{...Z(M,["loadVersions"]),semverGreaterThan(e,o){try{if(!e||!o)return!1;const s=e.split("."),c=o.split(".");for(const[t,a]of s.entries())if(+a>+c[t])return!0}catch(s){console.debug("compare codex versions",e,">",o,s)}return!1}}},Xt={id:"version"},jt={key:0,id:"latest"};function Gt(e,o,s,c,t,a){return S(),T(Me,{id:"version-footer",title:a.versionTitle},{default:w(()=>[b("div",Xt,"codex v"+P(e.versions.installed),1),a.outdated?(S(),U("div",jt," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const Zt=x(qt,[["render",Gt],["__scopeId","data-v-b77f3bde"]]);function Kt(e){let{rootEl:o,isSticky:s,layoutItemStyles:c}=e;const t=R(!1),a=R(0),n=D(()=>{const r=typeof t.value=="boolean"?"top":t.value;return[s.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[r]:_e(a.value)}:{top:c.value.top}]});Ce(()=>{q(s,r=>{r?window.addEventListener("scroll",g,{passive:!0}):window.removeEventListener("scroll",g)},{immediate:!0})}),Pe(()=>{window.removeEventListener("scroll",g)});let u=0;function g(){const r=u>window.scrollY?"up":"down",p=o.value.getBoundingClientRect(),m=parseFloat(c.value.top??0),d=window.scrollY-Math.max(0,a.value-m),y=p.height+Math.max(a.value,m)-window.scrollY-window.innerHeight,_=parseFloat(getComputedStyle(o.value).getPropertyValue("--v-body-scroll-y"))||0;p.height<window.innerHeight-m?(t.value="top",a.value=m):r==="up"&&t.value==="bottom"||r==="down"&&t.value==="top"?(a.value=window.scrollY+p.top-_,t.value=!0):r==="down"&&y<=0?(a.value=0,t.value="bottom"):r==="up"&&d<=0&&(_?t.value!=="top"&&(a.value=-d+_+m,t.value="top"):(a.value=p.top+d,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:n}}const Jt=100,Qt=20;function se(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function le(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 o=0;for(let s=e.length-1;s>0;s--){if(e[s].t===e[s-1].t)continue;const c=se(o),t=(e[s].d-e[s-1].d)/(e[s].t-e[s-1].t);o+=(t-c)*Math.abs(t),s===e.length-1&&(o*=.5)}return se(o)*1e3}function ea(){const e={};function o(t){Array.from(t.changedTouches).forEach(a=>{(e[a.identifier]??(e[a.identifier]=new Qe(Qt))).push([t.timeStamp,a])})}function s(t){Array.from(t.changedTouches).forEach(a=>{delete e[a.identifier]})}function c(t){const a=e[t]?.values().reverse();if(!a)throw new Error(`No samples for touch id ${t}`);const n=a[0],u=[],g=[];for(const r of a){if(n[0]-r[0]>Jt)break;u.push({t:r[0],d:r[1].clientX}),g.push({t:r[0],d:r[1].clientY})}return{x:le(u),y:le(g),get direction(){const{x:r,y:p}=this,[m,d]=[Math.abs(r),Math.abs(p)];return m>d&&r>=0?"right":m>d&&r<=0?"left":d>m&&p>=0?"down":d>m&&p<=0?"up":ta()}}}return{addMovement:o,endTouch:s,getVelocity:c}}function ta(){throw new Error}function aa(e){let{el:o,isActive:s,isTemporary:c,width:t,touchless:a,position:n}=e;Ce(()=>{window.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("touchmove",$,{passive:!1}),window.addEventListener("touchend",j,{passive:!0})}),Pe(()=>{window.removeEventListener("touchstart",A),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",j)});const u=D(()=>["left","right"].includes(n.value)),{addMovement:g,endTouch:r,getVelocity:p}=ea();let m=!1;const d=R(!1),y=R(0),_=R(0);let C;function N(l,i){return(n.value==="left"?l:n.value==="right"?document.documentElement.clientWidth-l:n.value==="top"?l:n.value==="bottom"?document.documentElement.clientHeight-l:L())-(i?t.value:0)}function Y(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const v=n.value==="left"?(l-_.value)/t.value:n.value==="right"?(document.documentElement.clientWidth-l-_.value)/t.value:n.value==="top"?(l-_.value)/t.value:n.value==="bottom"?(document.documentElement.clientHeight-l-_.value)/t.value:L();return i?et(v):v}function A(l){if(a.value)return;const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY,h=25,B=n.value==="left"?i<h:n.value==="right"?i>document.documentElement.clientWidth-h:n.value==="top"?v<h:n.value==="bottom"?v>document.documentElement.clientHeight-h:L(),V=s.value&&(n.value==="left"?i<t.value:n.value==="right"?i>document.documentElement.clientWidth-t.value:n.value==="top"?v<t.value:n.value==="bottom"?v>document.documentElement.clientHeight-t.value:L());(B||V||s.value&&c.value)&&(C=[i,v],_.value=N(u.value?i:v,s.value),y.value=Y(u.value?i:v),m=_.value>-20&&_.value<80,r(l),g(l))}function $(l){const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY;if(m){if(!l.cancelable){m=!1;return}const B=Math.abs(i-C[0]),V=Math.abs(v-C[1]);(u.value?B>V&&B>3:V>B&&V>3)?(d.value=!0,m=!1):(u.value?V:B)>3&&(m=!1)}if(!d.value)return;l.preventDefault(),g(l);const h=Y(u.value?i:v,!1);y.value=Math.max(0,Math.min(1,h)),h>1?_.value=N(u.value?i:v,!0):h<0&&(_.value=N(u.value?i:v,!1))}function j(l){if(m=!1,!d.value)return;g(l),d.value=!1;const i=p(l.changedTouches[0].identifier),v=Math.abs(i.x),h=Math.abs(i.y);(u.value?v>h&&v>400:h>v&&h>3)?s.value=i.direction===({left:"right",right:"left",top:"down",bottom:"up"}[n.value]||L()):s.value=y.value>.5}const W=D(()=>d.value?{transform:n.value==="left"?`translateX(calc(-100% + ${y.value*t.value}px))`:n.value==="right"?`translateX(calc(100% - ${y.value*t.value}px))`:n.value==="top"?`translateY(calc(-100% + ${y.value*t.value}px))`:n.value==="bottom"?`translateY(calc(100% - ${y.value*t.value}px))`:L(),transition:"none"}:void 0);return X(d,()=>{const l=o.value?.style.transform??null,i=o.value?.style.transition??null;De(()=>{o.value?.style.setProperty("transform",W.value?.transform||"none"),o.value?.style.setProperty("transition",W.value?.transition||null)}),tt(()=>{o.value?.style.setProperty("transform",l),o.value?.style.setProperty("transition",i)})}),{isDragging:d,dragProgress:y,dragStyles:W}}function L(){throw new Error}const oa=["start","end","left","right","top","bottom"],na=fe({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=>oa.includes(e)},sticky:Boolean,...Re(),...Se(),...wt(),...ut({mobile:null}),...Ie(),...we(),...$e(),...Oe({tag:"nav"}),...be()},"VNavigationDrawer"),sa=he()({name:"VNavigationDrawer",props:na(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,o){let{attrs:s,emit:c,slots:t}=o;const{isRtl:a}=at(),{themeClasses:n}=pe(e),{borderClasses:u}=Ve(e),{backgroundColorClasses:g,backgroundColorStyles:r}=Q(()=>e.color),{elevationClasses:p}=Te(e),{displayClasses:m,mobile:d}=ot(e),{roundedClasses:y}=Ee(e),_=dt(),C=nt(e,"modelValue",null,k=>!!k),{ssrBootStyles:N}=kt(),{scopeId:Y}=_t(),A=ge(),$=R(!1),{runOpenDelay:j,runCloseDelay:W}=bt(e,k=>{$.value=k}),l=D(()=>e.rail&&e.expandOnHover&&$.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),i=D(()=>vt(e.location,a.value)),v=z(()=>e.persistent),h=D(()=>!e.permanent&&(d.value||e.temporary)),B=D(()=>e.sticky&&!h.value&&i.value!=="bottom");X(()=>e.expandOnHover&&e.rail!=null,()=>{q($,k=>c("update:rail",!k))}),X(()=>!e.disableResizeWatcher,()=>{q(h,k=>!e.permanent&&ct(()=>C.value=!k))}),X(()=>!e.disableRouteWatcher&&!!_,()=>{q(_.currentRoute,()=>h.value&&(C.value=!1))}),q(()=>e.permanent,k=>{k&&(C.value=!0)}),e.modelValue==null&&!h.value&&(C.value=e.permanent||!d.value);const{isDragging:V,dragProgress:K}=aa({el:A,isActive:C,isTemporary:h,width:l,touchless:z(()=>e.touchless),position:i}),xe=D(()=>{const k=h.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):l.value;return V.value?k*K.value:k}),{layoutItemStyles:te,layoutItemScrimStyles:Ae}=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:i,layoutSize:xe,elementSize:l,active:st(C),disableTransitions:z(()=>V.value),absolute:D(()=>e.absolute||B.value&&typeof ae.value!="string")}),{isStuck:ae,stickyStyles:Le}=Kt({rootEl:A,isSticky:B,layoutItemStyles:te}),oe=Q(()=>typeof e.scrim=="string"?e.scrim:null),Ue=D(()=>({...V.value?{opacity:K.value*.2,transition:"none"}:void 0,...Ae.value}));return lt({VList:{bgColor:"transparent"}}),ye(()=>{const k=t.image||e.image;return b(rt,null,[f(e.tag,G({ref:A,onMouseenter:j,onMouseleave:W,class:["v-navigation-drawer",`v-navigation-drawer--${i.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":$.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":h.value,"v-navigation-drawer--persistent":v.value,"v-navigation-drawer--active":C.value,"v-navigation-drawer--sticky":B.value},n.value,g.value,u.value,m.value,p.value,y.value,e.class],style:[r.value,te.value,N.value,Le.value,e.style]},Y,s),{default:()=>[k&&b("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?f(mt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):f(St,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&b("div",{class:"v-navigation-drawer__prepend"},[t.prepend?.()]),b("div",{class:"v-navigation-drawer__content"},[t.default?.()]),t.append&&b("div",{class:"v-navigation-drawer__append"},[t.append?.()])]}),f(it,{name:"fade-transition"},{default:()=>[h.value&&(V.value||C.value)&&!!e.scrim&&b("div",G({class:["v-navigation-drawer__scrim",oe.backgroundColorClasses.value],style:[Ue.value,oe.backgroundColorStyles.value],onClick:()=>{v.value||(C.value=!1)}},Y),null)]})])}),{isStuck:ae}}}),la=re(ue(()=>ce(()=>import("./admin-menu-42Q4jLGf.js"),__vite__mapDeps([7,1,2,8,4,5,9,10,11,12,13,14,3,15,16,17,18,19,20])))),ia={name:"SettingsDrawer",components:{AuthMenu:ft,DocsFooter:Yt,OPDSDialog:zt,VersionFooter:Zt},props:{title:{type:String,required:!0}},data(){return{AdminMenu:la}},computed:{...F(ee,["isUserAdmin","isAuthorized"]),...F(M,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...Z(M,["setSettingsDrawerOpen"])}},ra={class:"settingsDrawerContainer"},ua={id:"topBlock"},ca={class:"settingsHeader"},da={id:"scrollFooter",class:"footer"};function va(e,o,s,c,t,a){const n=I("AuthMenu"),u=I("OPDSDialog"),g=I("DocsFooter"),r=I("VersionFooter");return S(),T(sa,{modelValue:a.open,"onUpdate:modelValue":o[0]||(o[0]=p=>a.open=p),"disable-route-watcher":"",location:"right",touchless:""},{append:w(()=>[f(Me,{id:"bottomFooter",class:"footer"},{default:w(()=>[f(r)]),_:1})]),default:w(()=>[b("div",ra,[b("div",ua,[b("header",ca,[b("h3",null,P(s.title),1)]),f(J),e.isAuthorized?ie(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(S(),T(J,{key:1})):O("",!0),f(n),e.isUserAdmin?(S(),T(de(t.AdminMenu),{key:2})):O("",!0),f(J)]),b("div",da,[e.isAuthorized?(S(),T(u,{key:0})):O("",!0),f(g)])])]),_:3},8,["modelValue"])}const Sa=x(ia,[["render",va],["__scopeId","data-v-de26da7a"]]);export{wa as S,sa as V,Sa as a,Pt as b};