codex 1.7.0a0__py3-none-any.whl → 1.7.0a2__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.
- codex/choices.py +424 -0
- codex/choices_to_json.py +122 -0
- codex/db.py +31 -15
- codex/exceptions.py +2 -3
- codex/librarian/bookmark/__init__.py +1 -0
- codex/librarian/bookmark/bookmarkd.py +38 -0
- codex/librarian/bookmark/tasks.py +19 -0
- codex/librarian/bookmark/update.py +154 -0
- codex/librarian/covers/coverd.py +3 -4
- codex/librarian/covers/create.py +8 -7
- codex/librarian/covers/path.py +1 -2
- codex/librarian/covers/purge.py +2 -2
- codex/librarian/janitor/integrity.py +1 -0
- codex/librarian/librariand.py +5 -0
- codex/librarian/watchdog/emitter.py +21 -19
- codex/librarian/watchdog/event_batcherd.py +0 -1
- codex/migrations/0030_nocase_collation_day_month_indexes_status_types.py +4 -0
- codex/models/admin.py +0 -5
- codex/models/functions.py +6 -5
- codex/models/query.py +6 -0
- codex/run.py +11 -9
- codex/serializers/admin/tasks.py +2 -2
- codex/serializers/browser/mixins.py +18 -14
- codex/serializers/browser/settings.py +4 -4
- codex/serializers/fields.py +9 -5
- codex/startup.py +6 -4
- codex/static_root/assets/VCheckbox-CCOzQpCw.a65ad95bd21a.js +1 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.a65ad95bd21a.js.br +0 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.a65ad95bd21a.js.gz +0 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.js +1 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.js.br +0 -0
- codex/static_root/assets/VCheckbox-CCOzQpCw.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.876fda35b85a.js +1 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.876fda35b85a.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.876fda35b85a.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.js +1 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-DnBH3a96.js.gz +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.e7a4db7ab7f0.js +1 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.e7a4db7ab7f0.js.br +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.e7a4db7ab7f0.js.gz +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.js +1 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.js.br +0 -0
- codex/static_root/assets/VCombobox-DwwoR4yO.js.gz +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.css +1 -0
- codex/static_root/assets/VDialog-CSvrKKb2.css.br +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.css.gz +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css +1 -0
- codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.br +0 -0
- codex/static_root/assets/VDialog-CSvrKKb2.fd4d50904b17.css.gz +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.b2843f79d90f.js +1 -0
- codex/static_root/assets/VDialog-DbN2FfmF.b2843f79d90f.js.br +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.b2843f79d90f.js.gz +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.js +1 -0
- codex/static_root/assets/VDialog-DbN2FfmF.js.br +0 -0
- codex/static_root/assets/VDialog-DbN2FfmF.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.212f4cad7d78.js +1 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.212f4cad7d78.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.212f4cad7d78.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.js +1 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CBPnoy7O.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.b42735892aec.js +1 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.b42735892aec.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.b42735892aec.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.js +1 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C7Zu_Eup.js.gz +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.dee138de5dd0.js +1 -0
- codex/static_root/assets/VSelect-BTy7SKk0.dee138de5dd0.js.br +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.dee138de5dd0.js.gz +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.js +1 -0
- codex/static_root/assets/VSelect-BTy7SKk0.js.br +0 -0
- codex/static_root/assets/VSelect-BTy7SKk0.js.gz +0 -0
- codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css +1 -0
- codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css.br +0 -0
- codex/static_root/assets/VSelect-DLu8bpcs.98bdcf35411c.css.gz +0 -0
- codex/static_root/assets/VSelect-DLu8bpcs.css +1 -0
- codex/static_root/assets/VSelect-DLu8bpcs.css.br +0 -0
- codex/static_root/assets/VSelect-DLu8bpcs.css.gz +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.bf64d259ddef.js +1 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.bf64d259ddef.js.br +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.bf64d259ddef.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.js +1 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.js.br +0 -0
- codex/static_root/assets/VSelectionControl-B42mmzLA.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css +1 -0
- codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css.br +0 -0
- codex/static_root/assets/VSlideGroup-BtXPhMOT.830f136ffd41.css.gz +0 -0
- codex/static_root/assets/VSlideGroup-BtXPhMOT.css +1 -0
- codex/static_root/assets/VSlideGroup-BtXPhMOT.css.br +0 -0
- codex/static_root/assets/VSlideGroup-BtXPhMOT.css.gz +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.33e2bd94e34a.js +1 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.33e2bd94e34a.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.33e2bd94e34a.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.js +1 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.js.br +0 -0
- codex/static_root/assets/VSlideGroup-BtfHoWCn.js.gz +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.ee07d9c2ca5f.js +1 -0
- codex/static_root/assets/VTable-R3X0iPjV.ee07d9c2ca5f.js.br +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.ee07d9c2ca5f.js.gz +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.js +1 -0
- codex/static_root/assets/VTable-R3X0iPjV.js.br +0 -0
- codex/static_root/assets/VTable-R3X0iPjV.js.gz +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css +1 -0
- codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.br +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.b0c32b2c0b14.css.gz +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.css +1 -0
- codex/static_root/assets/VTextField-BnCEPZIq.css.br +0 -0
- codex/static_root/assets/VTextField-BnCEPZIq.css.gz +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.47beb9e7e547.js +1 -0
- codex/static_root/assets/VTextField-D9pqgz_R.47beb9e7e547.js.br +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.47beb9e7e547.js.gz +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.js +1 -0
- codex/static_root/assets/VTextField-D9pqgz_R.js.br +0 -0
- codex/static_root/assets/VTextField-D9pqgz_R.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.f6bf6b893442.js +1 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.f6bf6b893442.js.br +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.f6bf6b893442.js.gz +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.js +1 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.js.br +0 -0
- codex/static_root/assets/VWindowItem-DHTDdYfK.js.gz +0 -0
- codex/static_root/assets/admin-CIWyRJnH.dde0ee029f08.js +1 -0
- codex/static_root/assets/admin-CIWyRJnH.dde0ee029f08.js.br +0 -0
- codex/static_root/assets/admin-CIWyRJnH.dde0ee029f08.js.gz +0 -0
- codex/static_root/assets/admin-CIWyRJnH.js +1 -0
- codex/static_root/assets/admin-CIWyRJnH.js.br +0 -0
- codex/static_root/assets/admin-CIWyRJnH.js.gz +0 -0
- codex/static_root/assets/{admin-CWEjaFr5.7d4523387384.css → admin-DJ7pIXDQ.css} +1 -1
- codex/static_root/assets/admin-DJ7pIXDQ.css.br +0 -0
- codex/static_root/assets/admin-DJ7pIXDQ.css.gz +0 -0
- codex/static_root/assets/{admin-CWEjaFr5.css → admin-DJ7pIXDQ.e2a77af73ef2.css} +1 -1
- codex/static_root/assets/admin-DJ7pIXDQ.e2a77af73ef2.css.br +0 -0
- codex/static_root/assets/admin-DJ7pIXDQ.e2a77af73ef2.css.gz +0 -0
- codex/static_root/assets/admin-menu-B9bzD6hV.c13b7df2ff57.css +1 -0
- codex/static_root/assets/admin-menu-B9bzD6hV.c13b7df2ff57.css.br +0 -0
- codex/static_root/assets/admin-menu-B9bzD6hV.c13b7df2ff57.css.gz +0 -0
- codex/static_root/assets/admin-menu-B9bzD6hV.css +1 -0
- codex/static_root/assets/admin-menu-B9bzD6hV.css.br +0 -0
- codex/static_root/assets/admin-menu-B9bzD6hV.css.gz +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.1ed26b58fb9f.js +1 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.1ed26b58fb9f.js.br +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.1ed26b58fb9f.js.gz +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.js +1 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.js.br +0 -0
- codex/static_root/assets/admin-menu-BHOUwxhf.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.85a213c96423.js +1 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.85a213c96423.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.85a213c96423.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.js +1 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-DHIl0C8k.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-DUUQfVsZ.2548c49a853e.css +1 -0
- codex/static_root/assets/admin-settings-button-progress-DUUQfVsZ.css +1 -0
- codex/static_root/assets/browser-6T4uwUjJ.7dd4a7f74df6.js +1 -0
- codex/static_root/assets/browser-6T4uwUjJ.7dd4a7f74df6.js.br +0 -0
- codex/static_root/assets/browser-6T4uwUjJ.7dd4a7f74df6.js.gz +0 -0
- codex/static_root/assets/browser-6T4uwUjJ.js +1 -0
- codex/static_root/assets/browser-6T4uwUjJ.js.br +0 -0
- codex/static_root/assets/browser-6T4uwUjJ.js.gz +0 -0
- codex/static_root/assets/browser-Br5CorL4.6e2a416309d5.css +1 -0
- codex/static_root/assets/browser-Br5CorL4.6e2a416309d5.css.br +0 -0
- codex/static_root/assets/browser-Br5CorL4.6e2a416309d5.css.gz +0 -0
- codex/static_root/assets/browser-Br5CorL4.css +1 -0
- codex/static_root/assets/browser-Br5CorL4.css.br +0 -0
- codex/static_root/assets/browser-Br5CorL4.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.48db4c906920.js +1 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.48db4c906920.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.48db4c906920.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.js +1 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BfiQBpUn.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css +1 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.br +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.217574b45b02.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.css +1 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.css.br +0 -0
- codex/static_root/assets/change-password-dialog-DrIXdKUC.css.gz +0 -0
- codex/static_root/assets/confirm-dialog-B7w6z2rf.472011c06253.css +1 -0
- codex/static_root/assets/confirm-dialog-B7w6z2rf.css +1 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.cf28325e58b7.js +1 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.cf28325e58b7.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.cf28325e58b7.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.js +1 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Iyuhxfyi.js.gz +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.b6a92a6bcce9.js +1 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.b6a92a6bcce9.js.br +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.b6a92a6bcce9.js.gz +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.js +1 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.js.br +0 -0
- codex/static_root/assets/datetime-column-Dnxh9sRh.js.gz +0 -0
- codex/static_root/assets/filter-CmOjoKbH.ea79c4727d92.js +1 -0
- codex/static_root/assets/filter-CmOjoKbH.ea79c4727d92.js.br +0 -0
- codex/static_root/assets/filter-CmOjoKbH.ea79c4727d92.js.gz +0 -0
- codex/static_root/assets/filter-CmOjoKbH.js +1 -0
- codex/static_root/assets/filter-CmOjoKbH.js.br +0 -0
- codex/static_root/assets/filter-CmOjoKbH.js.gz +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.2fc60db57915.js +1 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.2fc60db57915.js.br +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.2fc60db57915.js.gz +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.js +1 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.js.br +0 -0
- codex/static_root/assets/flag-tab-1PeNvDA9.js.gz +0 -0
- codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css +1 -0
- codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css.br +0 -0
- codex/static_root/assets/flag-tab-CqWovuBu.4dfc6b251e85.css.gz +0 -0
- codex/static_root/assets/flag-tab-CqWovuBu.css +1 -0
- codex/static_root/assets/flag-tab-CqWovuBu.css.br +0 -0
- codex/static_root/assets/flag-tab-CqWovuBu.css.gz +0 -0
- codex/static_root/assets/group-tab-DkIN1Heu.948e907b1e6b.css +1 -0
- codex/static_root/assets/group-tab-DkIN1Heu.948e907b1e6b.css.br +0 -0
- codex/static_root/assets/group-tab-DkIN1Heu.948e907b1e6b.css.gz +0 -0
- codex/static_root/assets/group-tab-DkIN1Heu.css +1 -0
- codex/static_root/assets/group-tab-DkIN1Heu.css.br +0 -0
- codex/static_root/assets/group-tab-DkIN1Heu.css.gz +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.dbeed7f2d08f.js +1 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.dbeed7f2d08f.js.br +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.dbeed7f2d08f.js.gz +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.js +1 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.js.br +0 -0
- codex/static_root/assets/group-tab-Zl_C7M7Z.js.gz +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.73e9978dc0ce.js +1 -0
- codex/static_root/assets/http-error-YNrrsTPg.73e9978dc0ce.js.br +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.73e9978dc0ce.js.gz +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.js +1 -0
- codex/static_root/assets/http-error-YNrrsTPg.js.br +0 -0
- codex/static_root/assets/http-error-YNrrsTPg.js.gz +0 -0
- codex/static_root/assets/index-CL_6g4tJ.523d7b3d350f.css +1 -0
- codex/static_root/assets/index-CL_6g4tJ.523d7b3d350f.css.br +0 -0
- codex/static_root/assets/index-CL_6g4tJ.523d7b3d350f.css.gz +0 -0
- codex/static_root/assets/index-CL_6g4tJ.css +1 -0
- codex/static_root/assets/index-CL_6g4tJ.css.br +0 -0
- codex/static_root/assets/index-CL_6g4tJ.css.gz +0 -0
- codex/static_root/assets/index-j5K-C_JC.65c2dc5af141.js +1 -0
- codex/static_root/assets/index-j5K-C_JC.65c2dc5af141.js.br +0 -0
- codex/static_root/assets/index-j5K-C_JC.65c2dc5af141.js.gz +0 -0
- codex/static_root/assets/index-j5K-C_JC.js +1 -0
- codex/static_root/assets/index-j5K-C_JC.js.br +0 -0
- codex/static_root/assets/index-j5K-C_JC.js.gz +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.c6bfd6d53b17.js +1 -0
- codex/static_root/assets/library-tab-CxKs8G-K.c6bfd6d53b17.js.br +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.c6bfd6d53b17.js.gz +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.js +1 -0
- codex/static_root/assets/library-tab-CxKs8G-K.js.br +0 -0
- codex/static_root/assets/library-tab-CxKs8G-K.js.gz +0 -0
- codex/static_root/assets/{library-tab-Bh7ErAk7.7c44200ee727.css → library-tab-Wew8YOLv.0c1780a6b68e.css} +1 -1
- codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.br +0 -0
- codex/static_root/assets/library-tab-Wew8YOLv.0c1780a6b68e.css.gz +0 -0
- codex/static_root/assets/{library-tab-Bh7ErAk7.css → library-tab-Wew8YOLv.css} +1 -1
- codex/static_root/assets/library-tab-Wew8YOLv.css.br +0 -0
- codex/static_root/assets/library-tab-Wew8YOLv.css.gz +0 -0
- codex/static_root/assets/main-H14uUxuN.cc1511f0f146.js +35 -0
- codex/static_root/assets/main-H14uUxuN.cc1511f0f146.js.br +0 -0
- codex/static_root/assets/main-H14uUxuN.cc1511f0f146.js.gz +0 -0
- codex/static_root/assets/main-H14uUxuN.js +35 -0
- codex/static_root/assets/main-H14uUxuN.js.br +0 -0
- codex/static_root/assets/main-H14uUxuN.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.ca9cdb9619ff.js +1 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.ca9cdb9619ff.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.ca9cdb9619ff.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.js +1 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-DcRg28qt.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.ab5fa1be17a3.js +1 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.ab5fa1be17a3.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.ab5fa1be17a3.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.js +1 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BgoV4zqc.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BcRNpoaW.882f6e967869.js → pdf-doc-BbuJd_VS.225d8590d020.js} +3 -3
- codex/static_root/assets/pdf-doc-BbuJd_VS.225d8590d020.js.br +0 -0
- codex/static_root/assets/pdf-doc-BbuJd_VS.225d8590d020.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-BcRNpoaW.js → pdf-doc-BbuJd_VS.js} +3 -3
- codex/static_root/assets/pdf-doc-BbuJd_VS.js.br +0 -0
- codex/static_root/assets/pdf-doc-BbuJd_VS.js.gz +0 -0
- codex/static_root/assets/reader-DORea4Al.d8e756bb0027.js +2 -0
- codex/static_root/assets/reader-DORea4Al.d8e756bb0027.js.br +0 -0
- codex/static_root/assets/reader-DORea4Al.d8e756bb0027.js.gz +0 -0
- codex/static_root/assets/reader-DORea4Al.js +2 -0
- codex/static_root/assets/reader-DORea4Al.js.br +0 -0
- codex/static_root/assets/reader-DORea4Al.js.gz +0 -0
- codex/static_root/assets/{reader-DveZZr9x.7b21b9f8f628.css → reader-OpKdTZ_B.css} +1 -1
- codex/static_root/assets/reader-OpKdTZ_B.css.br +0 -0
- codex/static_root/assets/reader-OpKdTZ_B.css.gz +0 -0
- codex/static_root/assets/{reader-DveZZr9x.css → reader-OpKdTZ_B.ebd1512b7014.css} +1 -1
- codex/static_root/assets/reader-OpKdTZ_B.ebd1512b7014.css.br +0 -0
- codex/static_root/assets/reader-OpKdTZ_B.ebd1512b7014.css.gz +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.0c7a53962f2b.js +1 -0
- codex/static_root/assets/relation-chips-kqofGdNg.0c7a53962f2b.js.br +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.0c7a53962f2b.js.gz +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.js +1 -0
- codex/static_root/assets/relation-chips-kqofGdNg.js.br +0 -0
- codex/static_root/assets/relation-chips-kqofGdNg.js.gz +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.0eaf7e00ee9b.js +2 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.0eaf7e00ee9b.js.br +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.0eaf7e00ee9b.js.gz +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.js +2 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.js.br +0 -0
- codex/static_root/assets/settings-drawer-C-hgtHJt.js.gz +0 -0
- codex/static_root/assets/{stats-tab-DpfGsVX3.1cb66f2649a9.css → stats-tab-BAYTqQNg.5f715428c394.css} +1 -1
- codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.br +0 -0
- codex/static_root/assets/stats-tab-BAYTqQNg.5f715428c394.css.gz +0 -0
- codex/static_root/assets/{stats-tab-DpfGsVX3.css → stats-tab-BAYTqQNg.css} +1 -1
- codex/static_root/assets/stats-tab-BAYTqQNg.css.br +0 -0
- codex/static_root/assets/stats-tab-BAYTqQNg.css.gz +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.f1039eba03c2.js +1 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.f1039eba03c2.js.br +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.f1039eba03c2.js.gz +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.js +1 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.js.br +0 -0
- codex/static_root/assets/stats-tab-C7iJCFa5.js.gz +0 -0
- codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css +1 -0
- codex/static_root/assets/{task-tab-1XiWn9xP.06cb8e1b794d.css.br → task-tab--cXi48kg.5dfd6890a1c2.css.br} +1 -1
- codex/static_root/assets/task-tab--cXi48kg.5dfd6890a1c2.css.gz +0 -0
- codex/static_root/assets/task-tab--cXi48kg.css +1 -0
- codex/static_root/assets/{task-tab-1XiWn9xP.css.br → task-tab--cXi48kg.css.br} +1 -1
- codex/static_root/assets/task-tab--cXi48kg.css.gz +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.0b387dcd4f5a.js +1 -0
- codex/static_root/assets/task-tab-Drfz5uaT.0b387dcd4f5a.js.br +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.0b387dcd4f5a.js.gz +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.js +1 -0
- codex/static_root/assets/task-tab-Drfz5uaT.js.br +0 -0
- codex/static_root/assets/task-tab-Drfz5uaT.js.gz +0 -0
- codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css +1 -0
- codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css.br +4 -0
- codex/static_root/assets/transition-5LRFTPo5.3d726f9bbcb0.css.gz +0 -0
- codex/static_root/assets/transition-5LRFTPo5.css +1 -0
- codex/static_root/assets/transition-5LRFTPo5.css.br +4 -0
- codex/static_root/assets/transition-5LRFTPo5.css.gz +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.ba35e475243a.js +1 -0
- codex/static_root/assets/transition-CQVFPpmZ.ba35e475243a.js.br +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.ba35e475243a.js.gz +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.js +1 -0
- codex/static_root/assets/transition-CQVFPpmZ.js.br +0 -0
- codex/static_root/assets/transition-CQVFPpmZ.js.gz +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.968d6e6e57bd.js +1 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.968d6e6e57bd.js.br +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.968d6e6e57bd.js.gz +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.js +1 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.js.br +0 -0
- codex/static_root/assets/unauthorized-Cfxq6rru.js.gz +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.c29142ed5212.js +1 -0
- codex/static_root/assets/user-tab-icKcK_Qd.c29142ed5212.js.br +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.c29142ed5212.js.gz +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.js +1 -0
- codex/static_root/assets/user-tab-icKcK_Qd.js.br +0 -0
- codex/static_root/assets/user-tab-icKcK_Qd.js.gz +0 -0
- codex/static_root/manifest.3eee2b4822b7.json +712 -0
- codex/static_root/manifest.3eee2b4822b7.json.br +0 -0
- codex/static_root/manifest.3eee2b4822b7.json.gz +0 -0
- codex/static_root/manifest.json +377 -300
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/status_controller.py +5 -6
- codex/threads.py +1 -1
- codex/urls/api/auth.py +1 -1
- codex/urls/api/browser.py +1 -1
- codex/views/admin/library.py +18 -13
- codex/views/admin/stats.py +23 -16
- codex/views/auth.py +42 -77
- codex/views/bookmark.py +16 -153
- codex/views/browser/annotate/__init__.py +1 -0
- codex/views/browser/annotate/bookmark.py +112 -0
- codex/views/browser/annotate/card.py +61 -0
- codex/views/browser/annotate/order.py +247 -0
- codex/views/browser/breadcrumbs.py +90 -11
- codex/views/browser/browser.py +44 -110
- codex/views/browser/choices.py +15 -18
- codex/views/browser/cover.py +10 -20
- codex/views/browser/filters/bookmark.py +18 -19
- codex/views/browser/filters/field.py +8 -3
- codex/views/browser/filters/filter.py +69 -0
- codex/views/browser/filters/group.py +9 -6
- codex/views/browser/filters/search/fts.py +5 -19
- codex/views/browser/filters/search/parse.py +54 -24
- codex/views/browser/group_mtime.py +83 -0
- codex/views/browser/metadata/__init__.py +1 -0
- codex/views/browser/metadata/annotate.py +109 -0
- codex/views/browser/metadata/copy_intersections.py +90 -0
- codex/views/browser/metadata/metadata.py +83 -0
- codex/views/browser/metadata/query_intersections.py +112 -0
- codex/views/browser/mtime.py +2 -10
- codex/views/browser/order_by.py +22 -22
- codex/views/browser/page_in_bounds.py +2 -2
- codex/views/browser/paginate.py +9 -15
- codex/views/browser/params.py +64 -0
- codex/views/browser/title.py +1 -6
- codex/views/browser/validate.py +68 -33
- codex/views/download.py +1 -1
- codex/views/mixins.py +27 -15
- codex/views/opds/const.py +2 -3
- codex/views/opds/urls.py +2 -2
- codex/views/opds/util.py +2 -3
- codex/views/opds/v1/entry/links.py +3 -1
- codex/views/opds/v1/facets.py +65 -12
- codex/views/opds/v1/feed.py +5 -64
- codex/views/opds/v1/links.py +5 -4
- codex/views/opds/v2/feed.py +1 -28
- codex/views/opds/v2/links.py +26 -1
- codex/views/opds/v2/publications.py +5 -6
- codex/views/opds/v2/top_links.py +3 -6
- codex/views/public.py +2 -2
- codex/views/reader/arcs.py +0 -3
- codex/views/reader/books.py +57 -41
- codex/views/reader/page.py +10 -4
- codex/views/reader/{init.py → params.py} +37 -31
- codex/views/reader/reader.py +1 -2
- codex/views/session.py +43 -54
- codex/views/timezone.py +54 -0
- codex/views/version.py +1 -1
- {codex-1.7.0a0.dist-info → codex-1.7.0a2.dist-info}/METADATA +1 -1
- {codex-1.7.0a0.dist-info → codex-1.7.0a2.dist-info}/RECORD +417 -383
- codex/serializers/choices.py +0 -196
- codex/static_root/assets/VCheckbox-CWiqcZ7a.3feebd47daab.js +0 -1
- codex/static_root/assets/VCheckbox-CWiqcZ7a.3feebd47daab.js.br +0 -0
- codex/static_root/assets/VCheckbox-CWiqcZ7a.3feebd47daab.js.gz +0 -0
- codex/static_root/assets/VCheckbox-CWiqcZ7a.js +0 -1
- codex/static_root/assets/VCheckbox-CWiqcZ7a.js.br +0 -0
- codex/static_root/assets/VCheckbox-CWiqcZ7a.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.bc66d5351baa.js +0 -1
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.bc66d5351baa.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.bc66d5351baa.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.js +0 -1
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-Dk3iB62X.js.gz +0 -0
- codex/static_root/assets/VCombobox-D1_KU27A.b1d30587a973.js +0 -1
- codex/static_root/assets/VCombobox-D1_KU27A.b1d30587a973.js.br +0 -0
- codex/static_root/assets/VCombobox-D1_KU27A.b1d30587a973.js.gz +0 -0
- codex/static_root/assets/VCombobox-D1_KU27A.js +0 -1
- codex/static_root/assets/VCombobox-D1_KU27A.js.br +0 -0
- codex/static_root/assets/VCombobox-D1_KU27A.js.gz +0 -0
- codex/static_root/assets/VDialog-38np3TSA.5a0cb7a9e56d.css +0 -1
- codex/static_root/assets/VDialog-38np3TSA.5a0cb7a9e56d.css.br +0 -0
- codex/static_root/assets/VDialog-38np3TSA.5a0cb7a9e56d.css.gz +0 -0
- codex/static_root/assets/VDialog-38np3TSA.css +0 -1
- codex/static_root/assets/VDialog-38np3TSA.css.br +0 -0
- codex/static_root/assets/VDialog-38np3TSA.css.gz +0 -0
- codex/static_root/assets/VDialog-GbxvFMMN.594fb3a39ced.js +0 -1
- codex/static_root/assets/VDialog-GbxvFMMN.594fb3a39ced.js.br +0 -0
- codex/static_root/assets/VDialog-GbxvFMMN.594fb3a39ced.js.gz +0 -0
- codex/static_root/assets/VDialog-GbxvFMMN.js +0 -1
- codex/static_root/assets/VDialog-GbxvFMMN.js.br +0 -0
- codex/static_root/assets/VDialog-GbxvFMMN.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.a762e63858e5.js +0 -1
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.a762e63858e5.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.a762e63858e5.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.js +0 -1
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Cywv_bEj.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-C0etmxpZ.0eb3009a6300.js +0 -1
- codex/static_root/assets/VRadioGroup-C0etmxpZ.0eb3009a6300.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C0etmxpZ.0eb3009a6300.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-C0etmxpZ.js +0 -1
- codex/static_root/assets/VRadioGroup-C0etmxpZ.js.br +0 -0
- codex/static_root/assets/VRadioGroup-C0etmxpZ.js.gz +0 -0
- codex/static_root/assets/VSelect-Ca2bIOso.6613989e4c45.css +0 -1
- codex/static_root/assets/VSelect-Ca2bIOso.6613989e4c45.css.br +0 -0
- codex/static_root/assets/VSelect-Ca2bIOso.6613989e4c45.css.gz +0 -0
- codex/static_root/assets/VSelect-Ca2bIOso.css +0 -1
- codex/static_root/assets/VSelect-Ca2bIOso.css.br +0 -0
- codex/static_root/assets/VSelect-Ca2bIOso.css.gz +0 -0
- codex/static_root/assets/VSelect-txrnRiNJ.a5625760018c.js +0 -1
- codex/static_root/assets/VSelect-txrnRiNJ.a5625760018c.js.br +0 -0
- codex/static_root/assets/VSelect-txrnRiNJ.a5625760018c.js.gz +0 -0
- codex/static_root/assets/VSelect-txrnRiNJ.js +0 -1
- codex/static_root/assets/VSelect-txrnRiNJ.js.br +0 -0
- codex/static_root/assets/VSelect-txrnRiNJ.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-CY6RmcvW.7e8824224f6c.js +0 -1
- codex/static_root/assets/VSelectionControl-CY6RmcvW.7e8824224f6c.js.br +0 -0
- codex/static_root/assets/VSelectionControl-CY6RmcvW.7e8824224f6c.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-CY6RmcvW.js +0 -1
- codex/static_root/assets/VSelectionControl-CY6RmcvW.js.br +0 -0
- codex/static_root/assets/VSelectionControl-CY6RmcvW.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-Dk_1upHt.2c836070ec75.css +0 -1
- codex/static_root/assets/VSlideGroup-Dk_1upHt.2c836070ec75.css.br +0 -0
- codex/static_root/assets/VSlideGroup-Dk_1upHt.2c836070ec75.css.gz +0 -0
- codex/static_root/assets/VSlideGroup-Dk_1upHt.css +0 -1
- codex/static_root/assets/VSlideGroup-Dk_1upHt.css.br +0 -0
- codex/static_root/assets/VSlideGroup-Dk_1upHt.css.gz +0 -0
- codex/static_root/assets/VSlideGroup-DtEQMwY1.6c72325635ed.js +0 -1
- codex/static_root/assets/VSlideGroup-DtEQMwY1.6c72325635ed.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DtEQMwY1.6c72325635ed.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-DtEQMwY1.js +0 -1
- codex/static_root/assets/VSlideGroup-DtEQMwY1.js.br +0 -0
- codex/static_root/assets/VSlideGroup-DtEQMwY1.js.gz +0 -0
- codex/static_root/assets/VTable-2af995xo.6c5bf36631b2.js +0 -1
- codex/static_root/assets/VTable-2af995xo.6c5bf36631b2.js.br +0 -0
- codex/static_root/assets/VTable-2af995xo.6c5bf36631b2.js.gz +0 -0
- codex/static_root/assets/VTable-2af995xo.js +0 -1
- codex/static_root/assets/VTable-2af995xo.js.br +0 -0
- codex/static_root/assets/VTable-2af995xo.js.gz +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css +0 -1
- codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.br +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.39995ccf4d52.css.gz +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.css +0 -1
- codex/static_root/assets/VTextField-Crc3gdNh.css.br +0 -0
- codex/static_root/assets/VTextField-Crc3gdNh.css.gz +0 -0
- codex/static_root/assets/VTextField-G6CMj7yO.657a130dd302.js +0 -1
- codex/static_root/assets/VTextField-G6CMj7yO.657a130dd302.js.br +0 -0
- codex/static_root/assets/VTextField-G6CMj7yO.657a130dd302.js.gz +0 -0
- codex/static_root/assets/VTextField-G6CMj7yO.js +0 -1
- codex/static_root/assets/VTextField-G6CMj7yO.js.br +0 -0
- codex/static_root/assets/VTextField-G6CMj7yO.js.gz +0 -0
- codex/static_root/assets/VWindowItem-CzoGd6Ul.721e5da11ad4.js +0 -1
- codex/static_root/assets/VWindowItem-CzoGd6Ul.721e5da11ad4.js.br +0 -0
- codex/static_root/assets/VWindowItem-CzoGd6Ul.721e5da11ad4.js.gz +0 -0
- codex/static_root/assets/VWindowItem-CzoGd6Ul.js +0 -1
- codex/static_root/assets/VWindowItem-CzoGd6Ul.js.br +0 -0
- codex/static_root/assets/VWindowItem-CzoGd6Ul.js.gz +0 -0
- codex/static_root/assets/admin-CWEjaFr5.7d4523387384.css.br +0 -0
- codex/static_root/assets/admin-CWEjaFr5.7d4523387384.css.gz +0 -0
- codex/static_root/assets/admin-CWEjaFr5.css.br +0 -0
- codex/static_root/assets/admin-CWEjaFr5.css.gz +0 -0
- codex/static_root/assets/admin-CsPAIQeG.5175467148a3.js +0 -1
- codex/static_root/assets/admin-CsPAIQeG.5175467148a3.js.br +0 -0
- codex/static_root/assets/admin-CsPAIQeG.5175467148a3.js.gz +0 -0
- codex/static_root/assets/admin-CsPAIQeG.js +0 -1
- codex/static_root/assets/admin-CsPAIQeG.js.br +0 -0
- codex/static_root/assets/admin-CsPAIQeG.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.73a064628c19.js +0 -30
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.73a064628c19.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.73a064628c19.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.js +0 -30
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BAT7GA64.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css +0 -1
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.3cb33056e994.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css +0 -1
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-Bs2wgKj3.css.gz +0 -0
- codex/static_root/assets/browser-C18l93yc.923860009ef4.js +0 -1
- codex/static_root/assets/browser-C18l93yc.923860009ef4.js.br +0 -0
- codex/static_root/assets/browser-C18l93yc.923860009ef4.js.gz +0 -0
- codex/static_root/assets/browser-C18l93yc.js +0 -1
- codex/static_root/assets/browser-C18l93yc.js.br +0 -0
- codex/static_root/assets/browser-C18l93yc.js.gz +0 -0
- codex/static_root/assets/browser-DaAqlBYO.708ecf0904bb.css +0 -1
- codex/static_root/assets/browser-DaAqlBYO.708ecf0904bb.css.br +0 -0
- codex/static_root/assets/browser-DaAqlBYO.708ecf0904bb.css.gz +0 -0
- codex/static_root/assets/browser-DaAqlBYO.css +0 -1
- codex/static_root/assets/browser-DaAqlBYO.css.br +0 -0
- codex/static_root/assets/browser-DaAqlBYO.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.0a4e02656a35.js +0 -1
- codex/static_root/assets/change-password-dialog-BazJdNs9.0a4e02656a35.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.0a4e02656a35.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.js +0 -1
- codex/static_root/assets/change-password-dialog-BazJdNs9.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BazJdNs9.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.111421f51e79.css +0 -1
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.111421f51e79.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.111421f51e79.css.gz +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.css +0 -1
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.css.br +0 -0
- codex/static_root/assets/change-password-dialog-Mlmvz8_4.css.gz +0 -0
- codex/static_root/assets/confirm-dialog-BmhedLCx.7c2103d319d4.css +0 -1
- codex/static_root/assets/confirm-dialog-BmhedLCx.css +0 -1
- codex/static_root/assets/confirm-dialog-CbW3hlOp.9dd39b443c31.js +0 -1
- codex/static_root/assets/confirm-dialog-CbW3hlOp.9dd39b443c31.js.br +0 -0
- codex/static_root/assets/confirm-dialog-CbW3hlOp.9dd39b443c31.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-CbW3hlOp.js +0 -1
- codex/static_root/assets/confirm-dialog-CbW3hlOp.js.br +0 -0
- codex/static_root/assets/confirm-dialog-CbW3hlOp.js.gz +0 -0
- codex/static_root/assets/datetime-column-uSqKZU37.b157b0743db5.js +0 -1
- codex/static_root/assets/datetime-column-uSqKZU37.b157b0743db5.js.br +0 -0
- codex/static_root/assets/datetime-column-uSqKZU37.b157b0743db5.js.gz +0 -0
- codex/static_root/assets/datetime-column-uSqKZU37.js +0 -1
- codex/static_root/assets/datetime-column-uSqKZU37.js.br +0 -0
- codex/static_root/assets/datetime-column-uSqKZU37.js.gz +0 -0
- codex/static_root/assets/filter-CBl5KEsB.845a81573c2e.js +0 -1
- codex/static_root/assets/filter-CBl5KEsB.845a81573c2e.js.br +0 -0
- codex/static_root/assets/filter-CBl5KEsB.845a81573c2e.js.gz +0 -0
- codex/static_root/assets/filter-CBl5KEsB.js +0 -1
- codex/static_root/assets/filter-CBl5KEsB.js.br +0 -0
- codex/static_root/assets/filter-CBl5KEsB.js.gz +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.ecb6eee2e7a0.js +0 -1
- codex/static_root/assets/flag-tab-CT8pqM4r.ecb6eee2e7a0.js.br +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.ecb6eee2e7a0.js.gz +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.js +0 -1
- codex/static_root/assets/flag-tab-CT8pqM4r.js.br +0 -0
- codex/static_root/assets/flag-tab-CT8pqM4r.js.gz +0 -0
- codex/static_root/assets/flag-tab-DBqpLKi7.css +0 -1
- codex/static_root/assets/flag-tab-DBqpLKi7.css.br +0 -0
- codex/static_root/assets/flag-tab-DBqpLKi7.css.gz +0 -0
- codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css +0 -1
- codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css.br +0 -0
- codex/static_root/assets/flag-tab-DBqpLKi7.dcfef39f541e.css.gz +0 -0
- codex/static_root/assets/group-tab-BOW9kigw.7e5007596367.js +0 -1
- codex/static_root/assets/group-tab-BOW9kigw.7e5007596367.js.br +0 -0
- codex/static_root/assets/group-tab-BOW9kigw.7e5007596367.js.gz +0 -0
- codex/static_root/assets/group-tab-BOW9kigw.js +0 -1
- codex/static_root/assets/group-tab-BOW9kigw.js.br +0 -0
- codex/static_root/assets/group-tab-BOW9kigw.js.gz +0 -0
- codex/static_root/assets/group-tab-CBKuS3Iv.7e4746634782.css +0 -1
- codex/static_root/assets/group-tab-CBKuS3Iv.7e4746634782.css.br +0 -0
- codex/static_root/assets/group-tab-CBKuS3Iv.7e4746634782.css.gz +0 -0
- codex/static_root/assets/group-tab-CBKuS3Iv.css +0 -1
- codex/static_root/assets/group-tab-CBKuS3Iv.css.br +0 -0
- codex/static_root/assets/group-tab-CBKuS3Iv.css.gz +0 -0
- codex/static_root/assets/http-error-C6yuLApo.45cf99eb7a70.js +0 -1
- codex/static_root/assets/http-error-C6yuLApo.45cf99eb7a70.js.br +0 -4
- codex/static_root/assets/http-error-C6yuLApo.45cf99eb7a70.js.gz +0 -0
- codex/static_root/assets/http-error-C6yuLApo.js +0 -1
- codex/static_root/assets/http-error-C6yuLApo.js.br +0 -4
- codex/static_root/assets/http-error-C6yuLApo.js.gz +0 -0
- codex/static_root/assets/library-tab-Bh7ErAk7.7c44200ee727.css.br +0 -2
- codex/static_root/assets/library-tab-Bh7ErAk7.7c44200ee727.css.gz +0 -0
- codex/static_root/assets/library-tab-Bh7ErAk7.css.br +0 -2
- codex/static_root/assets/library-tab-Bh7ErAk7.css.gz +0 -0
- codex/static_root/assets/library-tab-D3WOtpE0.9af34e6e7235.js +0 -1
- codex/static_root/assets/library-tab-D3WOtpE0.9af34e6e7235.js.br +0 -0
- codex/static_root/assets/library-tab-D3WOtpE0.9af34e6e7235.js.gz +0 -0
- codex/static_root/assets/library-tab-D3WOtpE0.js +0 -1
- codex/static_root/assets/library-tab-D3WOtpE0.js.br +0 -0
- codex/static_root/assets/library-tab-D3WOtpE0.js.gz +0 -0
- codex/static_root/assets/main-CmjU2oTp.6a471f6900e5.js +0 -6
- codex/static_root/assets/main-CmjU2oTp.6a471f6900e5.js.br +0 -0
- codex/static_root/assets/main-CmjU2oTp.6a471f6900e5.js.gz +0 -0
- codex/static_root/assets/main-CmjU2oTp.js +0 -6
- codex/static_root/assets/main-CmjU2oTp.js.br +0 -0
- codex/static_root/assets/main-CmjU2oTp.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.6e92d0555cd7.js +0 -1
- codex/static_root/assets/pager-full-pdf-BH54_5f6.6e92d0555cd7.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.6e92d0555cd7.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.js +0 -1
- codex/static_root/assets/pager-full-pdf-BH54_5f6.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-BH54_5f6.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.451171f7ac33.js +0 -1
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.451171f7ac33.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.451171f7ac33.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.js +0 -1
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-JH3Kbffr.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BcRNpoaW.882f6e967869.js.br +0 -0
- codex/static_root/assets/pdf-doc-BcRNpoaW.882f6e967869.js.gz +0 -0
- codex/static_root/assets/pdf-doc-BcRNpoaW.js.br +0 -0
- codex/static_root/assets/pdf-doc-BcRNpoaW.js.gz +0 -0
- codex/static_root/assets/reader-DIPRg2VB.900370e097aa.js +0 -2
- codex/static_root/assets/reader-DIPRg2VB.900370e097aa.js.br +0 -0
- codex/static_root/assets/reader-DIPRg2VB.900370e097aa.js.gz +0 -0
- codex/static_root/assets/reader-DIPRg2VB.js +0 -2
- codex/static_root/assets/reader-DIPRg2VB.js.br +0 -0
- codex/static_root/assets/reader-DIPRg2VB.js.gz +0 -0
- codex/static_root/assets/reader-DveZZr9x.7b21b9f8f628.css.br +0 -0
- codex/static_root/assets/reader-DveZZr9x.7b21b9f8f628.css.gz +0 -0
- codex/static_root/assets/reader-DveZZr9x.css.br +0 -0
- codex/static_root/assets/reader-DveZZr9x.css.gz +0 -0
- codex/static_root/assets/relation-chips-3tTlR5QH.71f18bc92adc.js +0 -1
- codex/static_root/assets/relation-chips-3tTlR5QH.71f18bc92adc.js.br +0 -0
- codex/static_root/assets/relation-chips-3tTlR5QH.71f18bc92adc.js.gz +0 -0
- codex/static_root/assets/relation-chips-3tTlR5QH.js +0 -1
- codex/static_root/assets/relation-chips-3tTlR5QH.js.br +0 -0
- codex/static_root/assets/relation-chips-3tTlR5QH.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BdyFhA_r.151f4c3061ed.js +0 -2
- codex/static_root/assets/settings-drawer-BdyFhA_r.151f4c3061ed.js.br +0 -0
- codex/static_root/assets/settings-drawer-BdyFhA_r.151f4c3061ed.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BdyFhA_r.js +0 -2
- codex/static_root/assets/settings-drawer-BdyFhA_r.js.br +0 -0
- codex/static_root/assets/settings-drawer-BdyFhA_r.js.gz +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.7557c71b4cfa.js +0 -1
- codex/static_root/assets/stats-tab-DeKjwvmh.7557c71b4cfa.js.br +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.7557c71b4cfa.js.gz +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.js +0 -1
- codex/static_root/assets/stats-tab-DeKjwvmh.js.br +0 -0
- codex/static_root/assets/stats-tab-DeKjwvmh.js.gz +0 -0
- codex/static_root/assets/stats-tab-DpfGsVX3.1cb66f2649a9.css.br +0 -0
- codex/static_root/assets/stats-tab-DpfGsVX3.1cb66f2649a9.css.gz +0 -0
- codex/static_root/assets/stats-tab-DpfGsVX3.css.br +0 -0
- codex/static_root/assets/stats-tab-DpfGsVX3.css.gz +0 -0
- codex/static_root/assets/task-tab-1XiWn9xP.06cb8e1b794d.css +0 -1
- codex/static_root/assets/task-tab-1XiWn9xP.06cb8e1b794d.css.gz +0 -0
- codex/static_root/assets/task-tab-1XiWn9xP.css +0 -1
- codex/static_root/assets/task-tab-1XiWn9xP.css.gz +0 -0
- codex/static_root/assets/task-tab-C8D0qRP_.d4ab174c69a3.js +0 -1
- codex/static_root/assets/task-tab-C8D0qRP_.d4ab174c69a3.js.br +0 -0
- codex/static_root/assets/task-tab-C8D0qRP_.d4ab174c69a3.js.gz +0 -0
- codex/static_root/assets/task-tab-C8D0qRP_.js +0 -1
- codex/static_root/assets/task-tab-C8D0qRP_.js.br +0 -0
- codex/static_root/assets/task-tab-C8D0qRP_.js.gz +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.8e5c1b9e52b0.js +0 -1
- codex/static_root/assets/unauthorized-BHgBRF4z.8e5c1b9e52b0.js.br +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.8e5c1b9e52b0.js.gz +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.js +0 -1
- codex/static_root/assets/unauthorized-BHgBRF4z.js.br +0 -0
- codex/static_root/assets/unauthorized-BHgBRF4z.js.gz +0 -0
- codex/static_root/assets/user-tab-BU31Z92y.35613c713faf.js +0 -1
- codex/static_root/assets/user-tab-BU31Z92y.35613c713faf.js.br +0 -0
- codex/static_root/assets/user-tab-BU31Z92y.35613c713faf.js.gz +0 -0
- codex/static_root/assets/user-tab-BU31Z92y.js +0 -1
- codex/static_root/assets/user-tab-BU31Z92y.js.br +0 -0
- codex/static_root/assets/user-tab-BU31Z92y.js.gz +0 -0
- codex/static_root/js/choices-admin.8aa64c911203.json +0 -1
- codex/static_root/js/choices-admin.8aa64c911203.json.br +0 -0
- codex/static_root/js/choices-admin.8aa64c911203.json.gz +0 -0
- codex/static_root/js/choices-admin.json +0 -1
- codex/static_root/js/choices-admin.json.br +0 -0
- codex/static_root/js/choices-admin.json.gz +0 -0
- codex/static_root/js/choices.2f6b0359e1ef.json +0 -1
- codex/static_root/js/choices.2f6b0359e1ef.json.br +0 -0
- codex/static_root/js/choices.2f6b0359e1ef.json.gz +0 -0
- codex/static_root/js/choices.json +0 -1
- codex/static_root/js/choices.json.br +0 -0
- codex/static_root/js/choices.json.gz +0 -0
- codex/static_root/manifest.45cb46e19686.json +0 -635
- codex/static_root/manifest.45cb46e19686.json.br +0 -0
- codex/static_root/manifest.45cb46e19686.json.gz +0 -0
- codex/views/browser/annotations.py +0 -339
- codex/views/browser/base.py +0 -139
- codex/views/browser/filters/annotations.py +0 -125
- codex/views/browser/metadata.py +0 -332
- {codex-1.7.0a0.dist-info → codex-1.7.0a2.dist-info}/LICENSE +0 -0
- {codex-1.7.0a0.dist-info → codex-1.7.0a2.dist-info}/WHEEL +0 -0
- {codex-1.7.0a0.dist-info → codex-1.7.0a2.dist-info}/entry_points.txt +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-doc-BbuJd_VS.js","assets/main-H14uUxuN.js","assets/main-BZ73p_WW.css","assets/pdf-doc-CG5-AZ2M.css","assets/pager-full-pdf-DcRg28qt.js","assets/transition-CQVFPpmZ.js","assets/transition-5LRFTPo5.css","assets/settings-drawer-C-hgtHJt.js","assets/VDialog-DbN2FfmF.js","assets/VDialog-CSvrKKb2.css","assets/VSelectionControl-B42mmzLA.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-D9pqgz_R.js","assets/VTextField-BnCEPZIq.css","assets/unauthorized-Cfxq6rru.js","assets/change-password-dialog-BfiQBpUn.js","assets/change-password-dialog-DrIXdKUC.css","assets/unauthorized-BjhIc97q.css","assets/copy-to-clipboard-DoUvDJVx.js","assets/VSlideGroup-BtfHoWCn.js","assets/VSlideGroup-BtXPhMOT.css","assets/settings-drawer-DKncO_vX.css","assets/VWindowItem-DHTDdYfK.js","assets/VWindowItem-ByIod57Y.css","assets/VSelect-BTy7SKk0.js","assets/VCheckboxBtn-DnBH3a96.js","assets/VSelect-DLu8bpcs.css","assets/VExpansionPanels-CBPnoy7O.js","assets/VExpansionPanels-6G1AUajL.css","assets/VRadioGroup-C7Zu_Eup.js","assets/VRadioGroup-i2qP9Wu9.css","assets/VCheckbox-CCOzQpCw.js","assets/VCheckbox-CMKdyl0R.css","assets/index-j5K-C_JC.js","assets/index-CL_6g4tJ.css","assets/pagination-toolbar-BgoV4zqc.js","assets/pagination-toolbar-DGrxp2OD.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{v as P,al as c,y as f,m as b,_ as k,r as h,o as l,c as p,w as d,a as r,b as v,C as S,n as R,E as w,A as _,N as ee,F as y,am as Pe,an as we,i as U,ao as te,ap as oe,aq as Se,D as ae,ar as re,as as se,at as ye,au as E,X as Re,K as B,ai as Ce,av as ne,B as V,ae as ie,L as g,aw as Be,ax as Te,ay as De,az as Ie,u as M,aA as H,aB as Le,aC as $e,aD as Ve,aE as Oe,aa as Ne,aF as Ee,Y as Ae,O as xe,H as T,aG as Ue,aH as Fe,aI as ze,aJ as Me,a3 as We,a4 as He,a5 as Ke,a6 as qe,aK as je,aL as Ge,a1 as F,aM as le,a7 as Ye,aN as Xe}from"./main-H14uUxuN.js";import{V as C}from"./transition-CQVFPpmZ.js";import{d as Ze,b as Je,S as Qe,V as et,a as tt}from"./settings-drawer-C-hgtHJt.js";import{P as ot,E as ce,U as at,V as rt}from"./unauthorized-Cfxq6rru.js";import{b as de,V as ue}from"./VWindowItem-DHTDdYfK.js";import{b as st}from"./VSelect-BTy7SKk0.js";import{I as nt,V as it}from"./VTextField-D9pqgz_R.js";import{D as W}from"./change-password-dialog-BfiQBpUn.js";import{V as lt,a as ct,b as dt,c as ut}from"./VExpansionPanels-CBPnoy7O.js";import{c as ht,V as pt,d as gt}from"./VSelectionControl-B42mmzLA.js";import{V as D,a as A}from"./VRadioGroup-C7Zu_Eup.js";import{V as I}from"./VCheckbox-CCOzQpCw.js";import{V as he}from"./VDialog-DbN2FfmF.js";import{T as K}from"./index-j5K-C_JC.js";import{a as z}from"./VSlideGroup-BtfHoWCn.js";import{T as mt,M as kt,V as x,a as bt,P as pe,b as ft,c as vt}from"./pagination-toolbar-BgoV4zqc.js";function ge(e,t){const{self:a=!1}=t.modifiers??{},u=t.value,s=typeof u=="object"&&u.options||{passive:!0},o=typeof u=="function"||"handleEvent"in u?u:u.handler,n=a?e:t.arg?document.querySelector(t.arg):window;n&&(n.addEventListener("scroll",o,s),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:o,options:s,target:a?void 0:n})}function me(e,t){var o;if(!((o=e._onScroll)!=null&&o[t.instance.$.uid]))return;const{handler:a,options:u,target:s=e}=e._onScroll[t.instance.$.uid];s.removeEventListener("scroll",a,u),delete e._onScroll[t.instance.$.uid]}function _t(e,t){t.value!==t.oldValue&&(me(e,t),ge(e,t))}const Pt={mounted:ge,unmounted:me,updated:_t},wt={name:"BookChangeDrawer",props:{direction:{type:String,required:!0}},head(){if(this.isDrawerOpen)return this.prefetchLinks(this.params,this.computedDirection,!0)},computed:{...P(c,["isBTT"]),...f(c,{computedDirection(){return this.normalizeDirection(this.direction)},params(e){return e.routes.books[this.computedDirection]},isDrawerOpen(e){return e.bookChange===this.computedDirection},icon(){return this.bookChangeIcon(this.computedDirection)}}),drawerLocation(){return this.bookChangeLocation(this.direction)},cursorClass(){return this.bookChangeCursorClass(this.computedDirection)},show(){return this.bookChangeShow(this.computedDirection)},route(){return this.toRoute(this.params)},label(){return this.linkLabel(this.computedDirection,"Book")}},methods:{...b(c,["linkLabel","normalizeDirection","prefetchLinks","toRoute","bookChangeLocation","bookChangeCursorClass","bookChangeShow","bookChangeIcon"])}};function St(e,t,a,u,s,o){const n=h("router-link");return o.show?(l(),p(Ze,{key:0,class:R(["bookChangeDrawer",{drawerActivated:e.isDrawerOpen}]),"disable-resize-watcher":"","disable-route-watcher":"",location:o.drawerLocation,"model-value":e.isDrawerOpen,scrim:!1,temporary:"",touchless:""},{default:d(()=>[r(n,{class:R({navLink:!0,[o.cursorClass]:!0}),to:o.route,"aria-label":o.label,title:o.label,onClick:t[0]||(t[0]=i=>i.stopImmediatePropagation())},{default:d(()=>[r(C,{class:"bookChangeIcon"},{default:d(()=>[v(S(e.icon),1)]),_:1})]),_:1},8,["class","to","aria-label","title"])]),_:1},8,["location","model-value","class"])):w("",!0)}const yt=k(wt,[["render",St],["__scopeId","data-v-bd4115bf"]]),Rt={name:"BookChangeActivator",components:{BookChangeDrawer:yt},props:{direction:{type:String,required:!0}},computed:{show(){return this.bookChangeShow(this.computedDirection)},computedDirection(){return this.normalizeDirection(this.direction)},positionClass(){return this.bookChangeLocation(this.direction)+"Pos"},cursorClass(){return this.bookChangeCursorClass(this.direction)}},methods:{...b(c,["bookChangeCursorClass","bookChangeLocation","bookChangeShow","normalizeDirection","setBookChangeFlag"])}};function Ct(e,t,a,u,s,o){const n=h("BookChangeDrawer");return l(),_(y,null,[o.show?(l(),_("div",{key:0,class:R(["changeColumn",{[o.positionClass]:!0,[o.cursorClass]:!0}]),onClick:t[0]||(t[0]=ee(i=>e.setBookChangeFlag(a.direction),["stop"]))},null,2)):w("",!0),r(n,{direction:a.direction},null,8,["direction"])],64)}const Bt=k(Rt,[["render",Ct],["__scopeId","data-v-a8fdaab3"]]),Tt={name:"LoadingPage",components:{Placeholder:ot},props:{twoPages:{type:Boolean,required:!0}}};function Dt(e,t,a,u,s,o){const n=h("Placeholder");return l(),_("div",{class:R(["pageLoading",{twoPages:a.twoPages}])},[r(n,{class:"pagePlaceholder"})],2)}const It=k(Tt,[["render",Dt],["__scopeId","data-v-04027168"]]),q="unauthorized",Lt={name:"ErrorPage",components:{EmptyState:ce},props:{twoPages:{type:Boolean,required:!0},type:{type:String,required:!0}},emits:["retry"],computed:{text(){return this.type===q?"Protected page":"Failed to load page"},icon(){return this.type===q?Pe:we}},methods:{onAction(e){this.$emit("retry",e)}}};function $t(e,t,a,u,s,o){const n=h("EmptyState");return l(),p(n,{class:R(["pageError",{twoPages:a.twoPages}]),headline:o.text,icon:o.icon,"action-text":"Retry","onClick:action":o.onAction},null,8,["class","headline","icon","onClick:action"])}const Vt=k(Lt,[["render",$t],["__scopeId","data-v-97fa48e8"]]),Ot={name:"ImgPage",props:{book:{type:Object,required:!0},src:{type:String,required:!0}},emits:["load","error"],computed:{...f(c,{scale:e=>e.clientSettings.scale}),style(){const e={};if(this.scale==1)return e;const t=this.$el;if(!(t!=null&&t.naturalWidth))return e;const a=t.naturalWidth/2;return e.transformOrigin=`${a}px top`,e.transform=`scale(${this.scale})`,e},bookSettings(){return this.getBookSettings(this.book)},classes(){return this.bookSettings.fitToClass}},methods:{...b(c,["getBookSettings"])}},Nt=["src"];function Et(e,t,a,u,s,o){return l(),_("img",U({class:[o.classes,"img"],draggable:"false",src:a.src,style:o.style},e.$attrs,{onError:t[0]||(t[0]=n=>e.$emit("error",n)),onLoad:t[1]||(t[1]=n=>e.$emit("load",n))}),null,16,Nt)}const j=k(Ot,[["render",Et],["__scopeId","data-v-f0601a0d"]]),G=te(oe(()=>se(()=>import("./pdf-doc-BbuJd_VS.js"),__vite__mapDeps([0,1,2,3])))),At=333,xt={name:"BookPage",components:{ErrorPage:Vt,LoadingPage:It,PDFDoc:G,ImgPage:j},props:{book:{type:Object,required:!0},page:{type:Number,required:!0}},data(){return{showProgress:!1,loaded:!1,error:"",ts:0}},computed:{...f(c,{scale:e=>e.clientSettings.scale}),style(){var a;const e={};if(this.book.fileType==="PDF"||this.scale==1)return e;const t=(a=this.$refs.pageComponent)==null?void 0:a.$el;return t!=null&&t.naturalHeight&&(e.height=t.naturalHeight*this.scale+"px",e.width=t.naturalWidth*this.scale+"px"),e},src(){const e=Math.max(this.book.mtime,this.ts),t={pk:this.book.pk,page:this.page,mtime:e};return Se(t)},component(){return this.book.fileType==="PDF"?G:j}},mounted(){setTimeout(function(){this.loaded||(this.loading=!0)},At)},methods:{onLoad(){this.showProgress=!1,this.loaded=!0,this.error=!1},onError(){this.error="load",this.showProgress=!1},onUnauthorized(){this.error="unauthorized",this.showProgress=!1},onRetry(){this.ts=Date.now()}}},Ut=["id","data-page"];function Ft(e,t,a,u,s,o){const n=h("ErrorPage"),i=h("LoadingPage");return l(),_("div",{id:`page${a.page}`,key:s.ts,"data-page":a.page,class:"page",style:re(o.style)},[s.error?(l(),p(n,{key:0,"two-pages":e.settings.twoPages,type:s.error,onRetry:o.onRetry},null,8,["two-pages","type","onRetry"])):s.showProgress&&!s.loaded?(l(),p(i,{key:1,"two-pages":e.settings.twoPages},null,8,["two-pages"])):(l(),p(ae(o.component),{key:2,ref:"pageComponent",book:a.book,page:1,src:o.src,onError:o.onError,onLoad:o.onLoad,onUnauthorized:o.onUnauthorized},null,40,["book","src","onError","onLoad","onUnauthorized"]))],12,Ut)}const ke=k(xt,[["render",Ft],["__scopeId","data-v-ea178cb3"]]),zt=.5,Mt={name:"ScaleForScroll",emits:["click"],data(){return{mdiMagnifyMinusOutline:ye}},computed:{...f(c,{scale:e=>e.clientSettings.scale}),showReset(){return this.scale!=E},style(){return{cursor:this.scale==E?"zoom-in":"all-scroll"}}},methods:{...b(c,["setSettingsClient"]),clearSelection(){window.getSelection&&window.getSelection().removeAllRanges()},onDoubleClick(){this.clearSelection();const e=this.scale+zt;this.setSettingsClient({scale:e})},scaleReset(){this.setSettingsClient({scale:E})}}};function Wt(e,t,a,u,s,o){const n=Re("drag-scroller");return B((l(),_("div",{class:"scaleForScroll",style:re(o.style),onDblclick:t[0]||(t[0]=(...i)=>o.onDoubleClick&&o.onDoubleClick(...i))},[Ce(e.$slots,"default",{},void 0,!0),o.showReset?(l(),p(C,{key:0,class:"resetIcon",onClick:ee(o.scaleReset,["stop"])},{default:d(()=>[v(S(s.mdiMagnifyMinusOutline),1)]),_:1},8,["onClick"])):w("",!0)],36)),[[n,,void 0,{onlyX:!0}]])}const be=k(Mt,[["render",Wt],["__scopeId","data-v-a222c504"]]),Ht={name:"HorizontalPages",components:{BookPage:ke,ScaleForScroll:be},props:{book:{type:Object,required:!0},page:{type:Number,required:!0}},emits:["click"],computed:{bookSettings(){return this.getBookSettings(this.book)},isReadInReverse(){return this.bookSettings.isReadInReverse},showSecondPage(){return this.bookSettings.twoPages&&this.page<this.book.maxPage&&!this.isCoverPage(this.book,this.page)},showPageOne(){return!this.isReadInReverse||this.showSecondPage},showPageTwo(){return this.isReadInReverse||this.showSecondPage},pageOne(){return this.isReadInReverse?this.page+1:this.page},pageTwo(){return this.isReadInReverse?this.page:this.page+1}},methods:{...b(c,["getBookSettings","isCoverPage"])}};function Kt(e,t,a,u,s,o){const n=h("BookPage"),i=h("ScaleForScroll");return l(),p(i,{class:"noWrap"},{default:d(()=>[o.showPageOne?(l(),p(n,{key:0,ref:"pageOne",book:a.book,page:o.pageOne,class:"horizontalPage"},null,8,["book","page"])):w("",!0),o.showPageTwo?(l(),p(n,{key:1,book:a.book,page:o.pageTwo,class:"horizontalPage"},null,8,["book","page"])):w("",!0)]),_:1})}const qt=k(Ht,[["render",Kt],["__scopeId","data-v-ce77a1b1"]]),jt={name:"PageChangeLink",props:{direction:{type:String,required:!0}},head(){return this.prefetchLinks(this.params,this.computedDirection)},computed:{...P(c,["isFirstPage","isLastPage"]),...f(c,{params(e){return e.routes[this.computedDirection]}}),computedDirection(){return this.normalizeDirection(this.direction)},show(){return this.computedDirection==="prev"?!this.isFirstPage:!this.isLastPage},pageChangeClass(){return"pageChangeColumn"},directionClass(){return this.direction},route(){return this.toRoute(this.params)},label(){return this.linkLabel(this.computedDirection,"Page")}},methods:{...b(c,["linkLabel","normalizeDirection","prefetchLinks","toRoute"])}};function Gt(e,t,a,u,s,o){const n=h("router-link");return o.show?(l(),p(n,{key:0,to:o.route,"aria-label":o.label,class:R(["changeColumn",{[o.directionClass]:!0}]),onClick:t[0]||(t[0]=i=>i.stopImmediatePropagation())},null,8,["to","aria-label","class"])):w("",!0)}const Yt=k(jt,[["render",Gt],["__scopeId","data-v-349ebac6"]]),Xt=48,Zt=48,Jt={name:"PagerHorizontal",components:{HorizontalPages:qt,PageChangeLink:Yt},props:{book:{type:Object,required:!0}},data(){return{activePage:0,pages:[]}},computed:{...f(c,{prevBook:e=>{var t;return(t=e.routes.books)==null?void 0:t.prev},nextBook:e=>{var t;return(t=e.routes.books)==null?void 0:t.next},storePage:e=>e.page,storePk:e=>e.books.current.pk}),bookSettings(){return this.getBookSettings(this.book)},twoPages(){return this.bookSettings.twoPages},isReadInReverse(){return this.bookSettings.isReadInReverse},windowIndex(){const e=this.activePage-this.pages[0];return Math.min(Math.max(0,e),this.book.maxPage)}},watch:{twoPages(){this.setActivePage(this.storePage,!0)},storePage(e){if(this.book.pk===this.storePk){this.activePage=e;const t=this.pages.at(0),a=this.pages.at(-1);(e<t||e>a)&&this.setPages()}},prevBook(e){this.book.pk===e.pk&&(this.activePage=this.book.maxPage)},nextBook(e){this.book.pk===e.pk&&(this.activePage=0)}},created(){this.book.pk===this.storePk?this.activePage=+this.$route.params.page:this.book.pk===this.prevBook.pk?this.activePage=this.book.maxPage:this.activePage=0,this.setPages()},methods:{...b(c,["getBookSettings","setBookChangeFlag","setActivePage"]),setPages(){const e=Math.max(this.activePage-Xt,0),t=Math.min(this.activePage+Zt,this.book.maxPage);this.pages=ne(e,t+1)}}};function Qt(e,t,a,u,s,o){const n=h("PageChangeLink"),i=h("HorizontalPages");return l(),p(ue,{"show-arrows":"",continuous:"","model-value":o.windowIndex,reverse:o.isReadInReverse},{prev:d(()=>[r(n,{direction:"prev"})]),next:d(()=>[r(n,{direction:"next"})]),default:d(()=>[(l(!0),_(y,null,V(s.pages,m=>(l(),p(de,{key:`c/${a.book.pk}/${m}`,class:"windowItem",disabled:"",eager:m>=e.storePage-1&&m<=e.storePage+2,"model-value":m,transition:!0},{default:d(()=>[r(i,{book:a.book,page:m},null,8,["book","page"])]),_:2},1032,["eager","model-value"]))),128))]),_:1},8,["model-value","reverse"])}const Y=k(Jt,[["render",Qt],["__scopeId","data-v-17343bd0"]]),X=250,eo={name:"PagerVertical",components:{BookPage:ke,ScaleForScroll:be},props:{book:{type:Object,required:!0}},data(){return{innerHeight:window.innerHeight,innerWidth:window.innerWidth,intersectorOn:!1,programmaticScroll:!1,intersectOptions:{handler:this.onIntersect,options:{threshold:[.75]}}}},computed:{...f(c,{storePage:e=>e.page,showToolbars:e=>e.showToolbars}),...ie(c,["reactWithScroll"]),bookSettings(){return this.getBookSettings(this.book)},isReadInReverse(){return this.bookSettings.isReadInReverse},items(){var a;const e=(a=this.book)!=null&&a.maxPage?this.book.maxPage+1:0,t=ne(0,e);return this.isReadInReverse&&t.reverse(),t}},watch:{storePage(e){this.reactWithScroll&&this.scrollToPage(e)}},mounted(){window.addEventListener("resize",this.onResize),setTimeout(()=>{this.scrollToPage(this.storePage)},X)},beforeUnmount(){window.removeEventListener("resize",this.onResize)},methods:{...b(c,["getBookSettings","setActivePage","setBookChangeFlag"]),onIntersect(e,t){if(e&&this.intersectorOn){const u=+t[0].target.dataset.page;this.setActivePage(u,!1)}},onScroll(){if(this.programmaticScroll)return;this.intersectorOn=!0;const e=this.$refs.verticalScroll.$el,t=e.scrollTop;if(this.storePage===0&&t===0)this.setBookChangeFlag("prev");else if(this.storePage===this.book.maxPage){const a=e.scrollTopMax||e.scrollHeight-e.clientTop;window.innerHeight+t+1>=a&&this.setBookChangeFlag("next")}},scrollToPage(e){this.intersectorOn=!1,this.programmaticScroll=!0;const t=this.$refs.verticalScroll;t?t.scrollToIndex(e):console.debug("Can't find verticalScroll component."),setTimeout(()=>{this.programmaticScroll=!1},X)},onResize(){this.innerHeight=window.innerHeight,this.innerWidth=window.innerWidth}}},to=["data-page"];function oo(e,t,a,u,s,o){const n=h("BookPage"),i=h("ScaleForScroll");return l(),p(i,null,{default:d(()=>[B((l(),p(st,{id:"verticalScroll",key:o.isReadInReverse,ref:"verticalScroll",items:o.items,height:s.innerHeight,width:s.innerWidth},{default:d(({item:m})=>[r(n,{book:a.book,page:m,class:"verticalPage"},null,8,["book","page"]),B(g("div",{class:R(["pageTracker",{pageTrackerToolbars:e.showToolbars}]),"data-page":m},null,10,to),[[nt,s.intersectOptions,void 0,{quiet:!0}]])]),_:1},8,["items","height","width"])),[[Pt,o.onScroll,"#verticalScroll"]])]),_:1})}const Z=k(eo,[["render",oo],["__scopeId","data-v-17541277"]]),J=te(oe(()=>se(()=>import("./pager-full-pdf-DcRg28qt.js"),__vite__mapDeps([4,1,2,0,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))),ao={name:"PagerSelector",components:{PagerHorizontal:Y,PagerPDF:J,PagerVertical:Z},props:{book:{type:Object,required:!0}},emits:["click"],head(){return this.prefetchBook(this.book)},computed:{...P(c,["cacheBook"]),...f(c,{storePk:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.pk)||0}}),isActiveBook(){var e;return this.book&&this.storePk===((e=this.book)==null?void 0:e.pk)},bookSettings(){return this.getBookSettings(this.book)},readerFullPdf(){var e;return((e=this.book)==null?void 0:e.fileType)=="PDF"&&this.cacheBook&&!this.bookSettings.isVertical},component(){let e;return this.readerFullPdf?e=J:this.bookSettings.isVertical?e=Z:e=Y,e}},watch:{$route(e){+e.params.pk===this.book.pk&&this.setActivePage(+e.params.page,!0)}},created(){this.isActiveBook&&this.setActivePage(+this.$route.params.page,!0)},methods:{...b(c,["getBookSettings","isBookVertical","setActivePage","prefetchBook"])}};function ro(e,t,a,u,s,o){return l(),p(ae(o.component),{book:a.book},null,8,["book"])}const so=k(ao,[["render",ro]]),no={name:"BooksWindow",components:{BookChangeActivator:Bt,Pager:so},computed:{...P(c,["isBTT"]),...f(c,{books:e=>[e.books.prev,e.books.current,e.books.next].filter(Boolean),bookChange:e=>e.bookChange,currentBookPk:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.pk)||0},bookRoutes:e=>e.routes.books}),bookChangePrev(){return this.bookChangeShow("prev")},bookChangeNext(){return this.bookChangeShow("next")}},watch:{$route(e,t){(!t||!t.params||+e.params.pk!=+t.params.pk)&&this.loadBooks({params:e.params})}},beforeMount(){this.setBookChangeFlag(),this.loadBooks({})},methods:{...b(c,["loadBooks","setBookChangeFlag","toggleToolbars"]),click(){this.toggleToolbars(),this.setBookChangeFlag()},eager(e){return this.bookChange&&this.bookRoutes[this.bookChange]&&this.bookRoutes[this.bookChange].pk===e}}};function io(e,t,a,u,s,o){const n=h("BookChangeActivator"),i=h("Pager");return l(),p(ue,{id:"booksWindow",direction:"vertical","model-value":e.currentBookPk,reverse:e.isBTT,"show-arrows":"",onClick:e.toggleToolbars},{prev:d(()=>[r(n,{direction:"prev"})]),next:d(()=>[r(n,{direction:"next"})]),default:d(()=>[(l(!0),_(y,null,V(e.books,m=>(l(),p(de,{key:`c/${m.pk}`,class:"windowItem",disabled:"",eager:o.eager(m.pk),value:m.pk,transition:!0},{default:d(()=>[r(i,{book:m,onClick:o.click},null,8,["book","onClick"])]),_:2},1032,["eager","value"]))),128))]),_:1},8,["model-value","reverse","onClick"])}const lo=k(no,[["render",io],["__scopeId","data-v-36f4263b"]]),co={name:"DownloadPanel",components:{DrawerItem:W},data(){return{mdiDownload:Be,mdiFileImage:Te}},computed:{...P(c,["activeTitle","routeParams"]),...f(c,{currentBook:e=>{var t;return(t=e.books)==null?void 0:t.current},storePage:e=>e.page}),downloadURL(){return De(this.currentBook)},filename(){var e;return(e=this.currentBook)==null?void 0:e.filename},pageSrc(){const{pk:e,mtime:t}=this.currentBook;return Ie({pk:e,page:this.storePage,mtime:t})},pageName(){const e=this.currentBook.fileType==="PDF"?"pdf":"jpg";return`${this.activeTitle} - page ${this.storePage}.${e}`},downloadPageTitle(){return`Download Page ${this.storePage}`}},methods:{...b(M,["downloadIOSPWAFix"]),downloadPage(){H(this.pageSrc,this.pageName)},downloadBook(){H(this.downloadURL,this.filename)}}},uo={key:0,id:"downloadPanel"};function ho(e,t,a,u,s,o){const n=h("DrawerItem");return e.currentBook?(l(),_("div",uo,[r(n,{"prepend-icon":s.mdiFileImage,title:o.downloadPageTitle,onClick:o.downloadPage},null,8,["prepend-icon","title","onClick"]),r(n,{"prepend-icon":s.mdiDownload,title:"Download Book",onClick:o.downloadBook},null,8,["prepend-icon","onClick"])])):w("",!0)}const po=k(co,[["render",ho],["__scopeId","data-v-5eb3869f"]]),go={name:"KeyboardShortcutsTable",data(){return{mdiMenuLeft:Le,mdiMenuRight:$e,mdiKeyboardSpace:Ve,mdiAppleKeyboardShift:Oe}}},mo={class:"highlight-table"};function ko(e,t,a,u,s,o){return l(),_(y,null,[t[9]||(t[9]=g("h4",null,"Navigation",-1)),g("table",mo,[g("tbody",null,[g("tr",null,[g("td",null,[r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiMenuLeft),1)]),_:1}),t[0]||(t[0]=v(", j, ")),g("div",null,[r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiAppleKeyboardShift),1)]),_:1}),r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiKeyboardSpace),1)]),_:1})])]),t[1]||(t[1]=g("td",null,"Previous page",-1))]),g("tr",null,[g("td",null,[r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiMenuRight),1)]),_:1}),t[2]||(t[2]=v(", k, ")),r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiKeyboardSpace),1)]),_:1})]),t[3]||(t[3]=g("td",null,"Next page",-1))]),t[4]||(t[4]=g("tr",null,[g("td",null,","),g("td",null,[v("Next "),g("em",null,"only"),v(" one page in two page mode.")])],-1)),t[5]||(t[5]=g("tr",null,[g("td",null,"."),g("td",null,[v("Previous "),g("em",null,"only"),v(" one page in two page mode.")])],-1)),t[6]||(t[6]=g("tr",null,[g("td",null,"p"),g("td",null,"Previous Book")],-1)),t[7]||(t[7]=g("tr",null,[g("td",null,"n"),g("td",null,"Next Book")],-1)),t[8]||(t[8]=g("tr",null,[g("td",null,"esc"),g("td",null,"Close book")],-1))])]),t[10]||(t[10]=Ne('<h4 data-v-1624cd48>Fit Page To</h4><table class="highlight-table" data-v-1624cd48><tbody data-v-1624cd48><tr data-v-1624cd48><td data-v-1624cd48>s</td><td data-v-1624cd48>screen</td></tr><tr data-v-1624cd48><td data-v-1624cd48>h</td><td data-v-1624cd48>screen height</td></tr><tr data-v-1624cd48><td data-v-1624cd48>w</td><td data-v-1624cd48>screen width</td></tr><tr data-v-1624cd48><td data-v-1624cd48>o</td><td data-v-1624cd48>Show page at original size</td></tr><tr data-v-1624cd48><td data-v-1624cd48>2</td><td data-v-1624cd48>Toggle two page view</td></tr><tr data-v-1624cd48><td data-v-1624cd48>r</td><td data-v-1624cd48>Read Right to Left</td></tr><tr data-v-1624cd48><td data-v-1624cd48>l</td><td data-v-1624cd48>Read Left to Right</td></tr><tr data-v-1624cd48><td data-v-1624cd48>t</td><td data-v-1624cd48>Read Top to Bottom</td></tr><tr data-v-1624cd48><td data-v-1624cd48>b</td><td data-v-1624cd48>Read in Bottom to Top</td></tr></tbody></table><h4 data-v-1624cd48>Other</h4><table class="highlight-table" data-v-1624cd48><tbody data-v-1624cd48><tr data-v-1624cd48><td data-v-1624cd48>m</td><td data-v-1624cd48>Show comic's metadata</td></tr><tr data-v-1624cd48><td data-v-1624cd48>double click</td><td data-v-1624cd48>Zoom page</td></tr></tbody></table>',4))],64)}const bo=k(go,[["render",ko],["__scopeId","data-v-1624cd48"]]),fo={name:"KeyboardShortcutsPanel",components:{DrawerItem:W,KeyboardShortcutsTable:bo},data(){return{mdiKeyboardOutline:Ee}},computed:{...P(M,["isMobile"])}};function vo(e,t,a,u,s,o){const n=h("DrawerItem"),i=h("KeyboardShortcutsTable");return e.isMobile?w("",!0):(l(),p(ut,{key:0},{default:d(()=>[r(lt,{id:"readerKeyboardShortcuts"},{default:d(()=>[r(ct,{id:"shortcutsTitle"},{default:d(()=>[r(n,{id:"keyboardShortcutsItem","prepend-icon":s.mdiKeyboardOutline,title:"Keyboard Shortcuts"},null,8,["prepend-icon"])]),_:1}),r(dt,null,{default:d(()=>[r(i)]),_:1})]),_:1})]),_:1}))}const _o=k(fo,[["render",vo],["__scopeId","data-v-699651a3"]]),fe=["fitTo","readingDirection","twoPages"];Object.freeze(fe);const Po={name:"ReaderSettingsPanel",components:{DrawerItem:W},data(){return{isGlobalScope:!1,mdiOpenInNew:Ae,mdiEye:xe,openDelay:2e3}},computed:{...P(T,["isAuthDialogOpen"]),...P(c,["isVertical","isPDF","cacheBook"]),...f(c,{choices:e=>e.choices,validBook:e=>{var t;return!!((t=e.books)!=null&&t.current)},selectedSettings(e){var t,a;return this.isGlobalScope||!((t=e.books)!=null&&t.current)?e.readerSettings:(a=e.books)==null?void 0:a.current.settings},isClearSettingsButtonDisabled(e){var t,a;if(this.isGlobalScope||!((t=e.books)!=null&&t.current))return!0;for(const u of fe){const s=(a=e.books)==null?void 0:a.current.settings[u];if(!e.choices.nullValues.has(s))return!1}return!0},pdfInBrowserURL(e){var t,a;return this.isPDF&&((t=e.books)!=null&&t.current)?Ue((a=e.books)==null?void 0:a.current):""},finishOnLastPage:e=>e.readerSettings.finishOnLastPage}),...ie(c,["readRtlInReverse"]),fitToChoices(){return this.choicesWithoutNull("fitTo")},readingDirectionChoices(){return this.choicesWithoutNull("readingDirection")},disableTwoPages(){return this.isVertical||this.isPDF&&this.cacheBook},disableCacheBook(){return this.isVertical&&this.isPDF}},mounted(){document.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){document.removeEventListener("keyup",this._keyUpListener)},methods:{...b(c,["clearSettingsLocal","setSettingsGlobal","setSettingsLocal","setSettingsClient"]),settingsDialogChanged(e){this.isGlobalScope?this.setSettingsGlobal(e):this.setSettingsLocal(e)},choicesWithoutNull(e){const t=[];for(const a of this.choices[e])a.value&&t.push(a);return Object.freeze(t),t},_keyUpListener(e){if(e.stopPropagation(),this.isAuthDialogOpen)return;let t;switch(e.key){case"w":t={fitTo:"W"};break;case"h":t={fitTo:"H"};break;case"s":t={fitTo:"S"};break;case"o":t={fitTo:"O"};break;case"2":t={twoPages:!this.selectedSettings.twoPages};break;case"l":t={readingDirection:"ltr"};break;case"r":t={readingDirection:"rtl"};break;case"t":t={readingDirection:"ttb"};break;case"b":t={readingDirection:"bbt"};break}t&&this.setSettingsLocal(t)}}},wo={id:"readerScopedSettings",class:"readerDrawerItem"};function So(e,t,a,u,s,o){const n=h("DrawerItem");return l(),_(y,null,[r(A,{modelValue:s.isGlobalScope,"onUpdate:modelValue":t[0]||(t[0]=i=>s.isGlobalScope=i),class:"scopeRadioButton readerDrawerItem",density:"compact",label:"Scope","hide-details":"auto"},{default:d(()=>[r(D,{label:"Only this comic",value:!1}),r(D,{label:"Default for all comics",value:!0})]),_:1},8,["modelValue"]),r(ht,null,{default:d(()=>[g("div",wo,[r(A,{class:"displayRadioGroup",density:"compact",label:"Display","hide-details":"auto","model-value":e.selectedSettings.fitTo,"onUpdate:modelValue":t[1]||(t[1]=i=>o.settingsDialogChanged({fitTo:i}))},{default:d(()=>[(l(!0),_(y,null,V(o.fitToChoices,i=>(l(),p(D,{key:i.value,label:i.title,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"]),r(I,{disabled:o.disableTwoPages,class:"displayTwoPages",density:"compact",label:"Two pages","hide-details":"auto","model-value":e.selectedSettings.twoPages,"true-value":!0,indeterminate:e.selectedSettings.twoPages===null||e.selectedSettings.twoPages===void 0,"onUpdate:modelValue":t[2]||(t[2]=i=>o.settingsDialogChanged({twoPages:i}))},null,8,["disabled","model-value","indeterminate"]),r(A,{class:"displayRadioGroup",density:"compact",label:"Reading Direction","hide-details":"auto","model-value":e.selectedSettings.readingDirection,"onUpdate:modelValue":t[3]||(t[3]=i=>o.settingsDialogChanged({readingDirection:i}))},{default:d(()=>[(l(!0),_(y,null,V(o.readingDirectionChoices,i=>(l(),p(D,{key:i.value,label:i.title,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"]),s.isGlobalScope?w("",!0):B((l(),p(he,{key:0,id:"clearSettingsButton",disabled:e.isClearSettingsButtonDisabled,onClick:e.clearSettingsLocal},{default:d(()=>t[7]||(t[7]=[v(" Clear Settings ")])),_:1},8,["disabled","onClick"])),[[K,{openDelay:s.openDelay,text:"Use the default settings for all comics for this comic"}]])])]),_:1}),r(z),r(I,{class:"readerDrawerItem","model-value":e.finishOnLastPage,density:"compact",label:"Finish Book On Last Page","hide-details":"auto","true-value":!0,"onUpdate:modelValue":t[4]||(t[4]=i=>o.settingsDialogChanged({finishOnLastPage:i}))},null,8,["model-value"]),r(I,{"model-value":e.selectedSettings.readRtlInReverse,class:"readerDrawerItem",density:"compact",label:"Read RTL Comics as LTR","hide-details":"auto","true-value":!0,"onUpdate:modelValue":t[5]||(t[5]=i=>o.settingsDialogChanged({readRtlInReverse:i}))},null,8,["model-value"]),B(r(I,{"model-value":e.cacheBook,class:"readerDrawerItem cacheBook",density:"compact",disabled:o.disableCacheBook,label:"Cache Entire Book","hide-details":"auto","true-value":!0,"onUpdate:modelValue":t[6]||(t[6]=i=>e.setSettingsClient({cacheBook:i}))},null,8,["model-value","disabled"]),[[K,{openDelay:s.openDelay,text:"Cache all pages from this book in the browser"}]]),e.pdfInBrowserURL?(l(),p(n,{key:0,"prepend-icon":s.mdiEye,"append-icon":s.mdiOpenInNew,title:"Read in Tab",href:e.pdfInBrowserURL,target:"_blank"},null,8,["prepend-icon","append-icon","href"])):w("",!0)],64)}const yo=k(Po,[["render",So],["__scopeId","data-v-42dbb202"]]),Ro={name:"ReaderSettingsSuperPanel",components:{DownloadPanel:po,ReaderKeyboardShortcutsPanel:_o,ReaderSettingsPanel:yo}};function Co(e,t,a,u,s,o){const n=h("ReaderSettingsPanel"),i=h("ReaderKeyboardShortcutsPanel"),m=h("DownloadPanel");return l(),_(y,null,[r(n),r(z),r(i),r(z),r(m)],64)}const Bo=k(Ro,[["render",Co]]),To={name:"ReaderSettingsDrawer",components:{SettingsDrawer:Je,ReaderSettingsSuperPanel:Bo}};function Do(e,t,a,u,s,o){const n=h("ReaderSettingsSuperPanel"),i=h("SettingsDrawer");return l(),p(i,{title:"Reader",temporary:"","disable-resize-watcher":""},{panel:d(()=>[r(n)]),_:1})}const Io=k(To,[["render",Do]]),Q={a:Me,f:We,p:He,i:Ke,s:qe,v:je},Lo={a:"Story Arc",f:"Folder",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},$o={name:"ReaderArcSelect",components:{ToolbarSelect:mt},data(){return{mdiFilterOutline:Fe}},computed:{...f(c,{arcGroup:e=>{var t;return((t=e.arc)==null?void 0:t.group)||"s"},arc:e=>e.arc,arcName:e=>{for(const t of e.arcs)if(e.arc.group===t.group&&e.arc.pks===t.pks)return t.name;return"Unknown"},arcItems:e=>{const t=[];for(const a of e.arcs){const u={value:a,title:a.name,group:a.group,filters:a.filters,subtitle:Lo[a.group],prependIcon:Q[a.group]};t.push(u)}return t}})},methods:{...b(c,["loadBooks"]),arcIcon(e){return Q[e]},checkIcon(e){return e.group===this.arc.group&&e.pks==this.arc.pks?ze:""},subtitle(e){let t=e.subtitle;return e.filters&&(t+=" (filtered)"),t},onUpdate(e){const t={group:e.group,pks:e.pks};this.loadBooks({arc:t})}}},Vo={id:"arcPos"};function Oo(e,t,a,u,s,o){const n=h("ToolbarSelect");return l(),p(n,{"model-value":e.arc,class:"arcSelect","select-label":"reading order",items:e.arcItems,disabled:!e.arcItems||e.arcItems.length<=1,"onUpdate:modelValue":o.onUpdate},{item:d(({item:i,props:m})=>[r(it,U(m,{density:"compact",variant:"plain","prepend-icon":i.raw.prependIcon,subtitle:o.subtitle(i.raw),"append-icon":o.checkIcon(m.value)}),null,16,["prepend-icon","subtitle","append-icon"])]),selection:d(({item:i,props:m})=>[r(C,U({size:"large"},m,{class:"arcSelectIcon"}),{default:d(()=>[v(S(o.arcIcon(i.raw.group)),1)]),_:2},1040),g("span",Vo,S(e.arc.index)+" / "+S(e.arc.count),1)]),_:1},8,["model-value","items","disabled","onUpdate:modelValue"])}const No=k($o,[["render",Oo],["__scopeId","data-v-62bf79bd"]]),Eo={name:"ReaderTitleToolbar",components:{MetadataDialog:kt,ReaderArcSelect:No,SettingsDrawerButton:Qe},data(){return{mdiClose:Ge,routeChanged:!1}},head(){return{meta:[{hid:"description",name:"description",content:`reader ${this.activeTitle} page ${this.storePage}`}]}},computed:{...P(T,["isAuthDialogOpen"]),...P(c,["activeTitle","closeBookRoute"]),...f(c,{showToolbars:e=>e.showToolbars,currentBook:e=>{var t;return((t=e.books)==null?void 0:t.current)||{}},empty:e=>e.empty,subtitle:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.name)||""}}),title(){return this.activeTitle},extensionHeight(){let e=32;return this.subtitle&&(e*=2),e+=4,e},closeRoute(){const e=F(this.closeBookRoute),t=F(e.params);return delete t.name,e.params=t,e}},watch:{$route(e,t){t&&(this.routeChanged=!0)}},mounted(){document.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){document.removeEventListener("keyup",this._keyUpListener)},methods:{...b(M,["setTimestamp"]),...b(c,["routeToDirection","routeToDirectionOne","routeToBook","setBookChangeFlag"]),openMetadata(){this.$refs.metadataDialog.dialog=!0},onCloseBook(){this.routeChanged&&this.setTimestamp()},_keyUpListener(e){if(e.stopPropagation(),!this.isAuthDialogOpen)switch(e.key){case"Escape":this.$refs.closeBook.$el.click();break;case"m":this.empty||this.openMetadata();break}}}},Ao={id:"title"},xo={key:0,id:"subtitle"};function Uo(e,t,a,u,s,o){const n=h("ReaderArcSelect"),i=h("MetadataDialog"),m=h("SettingsDrawerButton");return l(),p(pt,null,{default:d(()=>[B(r(tt,{id:"readerToolbarTop",density:"compact","extension-height":o.extensionHeight},Ye({default:d(()=>[r(x,null,{default:d(()=>[r(he,{ref:"closeBook",class:"closeBook",to:o.closeRoute,size:"large",density:"compact",variant:"plain",onClick:o.onCloseBook},{default:d(()=>t[0]||(t[0]=[v(" close book ")])),_:1},8,["to","onClick"])]),_:1}),r(bt),e.empty?w("",!0):(l(),p(x,{key:0},{default:d(()=>[r(n),r(i,{ref:"metadataDialog",group:"c",toolbar:!0,book:e.currentBook},null,8,["book"])]),_:1})),r(x,null,{default:d(()=>[r(m)]),_:1})]),_:2},[o.title?{name:"extension",fn:d(()=>[r(et,{class:"readerTitle"},{default:d(()=>[g("div",Ao,S(o.title),1),e.subtitle?(l(),_("div",xo,S(e.subtitle),1)):w("",!0)]),_:1})]),key:"0"}:void 0]),1032,["extension-height"]),[[le,e.showToolbars]])]),_:1})}const ve=k(Eo,[["render",Uo],["__scopeId","data-v-dc4c0fde"]]),Fo={name:"ReaderEmptyBooks",components:{ReaderTopToolbar:ve,EmptyState:ce},data(){return{mdiBookRemoveOutline:Xe}},methods:{...b(c,["loadBooks"]),onAction(){this.loadBooks({mtime:Date.now()})}}};function zo(e,t,a,u,s,o){const n=h("ReaderTopToolbar"),i=h("EmptyState");return l(),_(y,null,[r(n),r(i,{headline:"Book Not Found",title:"Close the reader and find another book",icon:s.mdiBookRemoveOutline,"action-text":"Try to load book again","onClick:action":o.onAction},null,8,["icon","onClick:action"])],64)}const Mo=k(Fo,[["render",zo]]),Wo={name:"ReaderBookChangeNavButton",components:{PaginationNavButton:pe},props:{direction:{type:String,required:!0}},computed:{...P(c,["isBTT"]),...f(c,{toRoute(e){var a;const t=(a=e==null?void 0:e.routes)==null?void 0:a.books[this.direction];return t?{params:F(t)}:""}}),title(){return(this.direction==="prev"?"Previous":"Next")+" Book"},icon(){return this.bookChangeIcon(this.direction)},classes(){return{bookChangeNavButtonLeft:this.direction==="prev",bookChangeNavButtonRight:this.direction==="next"}}},methods:{...b(c,["bookChangeIcon"])}};function Ho(e,t,a,u,s,o){const n=h("PaginationNavButton");return e.toRoute?(l(),p(n,{key:0,class:R(o.classes),icon:o.icon,variant:"plain",title:o.title,to:e.toRoute},null,8,["class","icon","title","to"])):w("",!0)}const Ko=k(Wo,[["render",Ho],["__scopeId","data-v-0cead61e"]]),qo={name:"ReaderNavButton",components:{PaginationNavButton:pe},props:{value:{type:Number,required:!0},twoPages:{type:Boolean,default:!1}},computed:{...P(c,["isVertical"]),...f(c,{storePage:e=>e.page,toRoute(e){if(!this.isVertical)return{params:{pk:e.books.current.pk,page:this.value}}},isBookPrev:e=>!!e.routes.books.prev,isBookNext:e=>!!e.routes.books.next}),classes(){return{readerNavButtonLeft:!this.isBookPrev&&this.value===0,readerNavButtonRight:!this.isBookNext&&this.value!=0}},title(){return"Page "+this.value},disabled(){return this.value===this.storePage||this.twoPages&&!!(this.value%2)&&this.value-1===this.storePage}},methods:{...b(c,["setActivePage"]),onClick(){this.isVertical&&this.setActivePage(this.value,!0)}}};function jo(e,t,a,u,s,o){const n=h("PaginationNavButton");return l(),p(n,{key:e.isVertical,disabled:o.disabled,class:R(["readerNavButton",o.classes]),title:o.title,to:e.toRoute,onClick:o.onClick},{default:d(()=>[v(S(a.value),1)]),_:1},8,["disabled","class","title","to","onClick"])}const Go=k(qo,[["render",jo],["__scopeId","data-v-530fba8c"]]),L="prev",$="next",Yo={name:"ReaderNavToolbar",components:{PaginationSlider:ft,ReaderNavButton:Go,PaginationToolbar:vt,ReaderBookChangeNavButton:Ko},computed:{...P(T,["isAuthDialogOpen"]),...P(c,["activeSettings","isReadInReverse","isVertical"]),...f(c,{showToolbars:e=>e.showToolbars,storePage:e=>e.page,key(e){var a,u;return`${(u=(a=e.books)==null?void 0:a.current)==null?void 0:u.pk}:${this.step}:${this.isReadInReverse}`},maxPage:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.maxPage)||0}}),twoPages(){return this.activeSettings.twoPages},step(){return this.activeSettings.twoPages?2:1},trackColor(){return this.twoPages&&+this.storePage>=this.maxPage-1?this.$vuetify.theme.current.colors.primary:""},min(){return this.isReadInReverse?this.maxPage:0},max(){return this.isReadInReverse?0:this.maxPage},bookPrev(){return this.isReadInReverse?"next":"prev"},bookNext(){return this.isReadInReverse?"prev":"next"}},mounted(){document.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){document.removeEventListener("keyup",this._keyUpListener)},methods:{...b(c,["routeToBook","routeToDirection","routeToDirectionOne","routeToPage","setActivePage"]),onSliderUpdate(e){this.isVertical?this.setActivePage(e,!0):this.routeToPage(e)},_keyUpListener(e){if(e.stopPropagation(),!this.isAuthDialogOpen)switch(e.key){case" ":!e.shiftKey&&window.innerHeight+window.scrollY+1>=document.body.scrollHeight?this.routeToDirection($):e.shiftKey&&window.scrollY===0&&this.routeToDirection(L);break;case"j":case"ArrowRight":this.routeToDirection($);break;case"k":case"ArrowLeft":this.routeToDirection(L);break;case",":this.routeToDirectionOne(L);break;case".":this.routeToDirectionOne($);break;case"n":this.routeToBook($);break;case"p":this.routeToBook(L);break}}}};function Xo(e,t,a,u,s,o){const n=h("ReaderBookChangeNavButton"),i=h("ReaderNavButton"),m=h("PaginationSlider"),O=h("PaginationToolbar");return l(),p(gt,null,{default:d(()=>[e.maxPage?B((l(),p(O,{key:0,id:"readerToolbarNav"},{default:d(()=>[r(n,{direction:o.bookPrev,narrow:!1},null,8,["direction"]),r(i,{value:o.min,"two-pages":o.twoPages},null,8,["value","two-pages"]),(l(),p(m,{key:e.key,"model-value":e.storePage,min:0,max:e.maxPage,step:o.step,"track-color":o.trackColor,reverse:e.isReadInReverse,"onUpdate:modelValue":t[0]||(t[0]=N=>o.onSliderUpdate(N))},null,8,["model-value","max","step","track-color","reverse"])),r(i,{value:o.max,"two-pages":o.twoPages},null,8,["value","two-pages"]),r(n,{direction:o.bookNext,narrow:!1},null,8,["direction"])]),_:1},512)),[[le,e.showToolbars]]):w("",!0)]),_:1})}const Zo=k(Yo,[["render",Xo],["__scopeId","data-v-955ab3ce"]]),Jo={name:"MainReader",components:{BooksWindow:lo,ReaderEmpty:Mo,ReaderNavToolbar:Zo,ReaderTopToolbar:ve,ReaderSettingsDrawer:Io,Unauthorized:at},data(){return{showToolbars:!1}},computed:{...P(T,["isAuthorized"]),...f(T,{user:e=>e.user}),...f(c,{empty:e=>e.empty,arc:e=>e.arc})},watch:{user(){this.loadReaderSettings()},isAuthorized(){this.loadReaderSettings()}},beforeMount(){this.reset(),this.loadReaderSettings()},methods:{...b(c,["loadReaderSettings","reset"])}},Qo={key:0},ea={id:"readerContainer"};function ta(e,t,a,u,s,o){const n=h("ReaderTopToolbar"),i=h("BooksWindow"),m=h("ReaderNavToolbar"),O=h("ReaderEmpty"),N=h("ReaderSettingsDrawer"),_e=h("Unauthorized");return e.isAuthorized?(l(),p(rt,{key:0,id:"readerWrapper"},{default:d(()=>[e.empty?(l(),p(O,{key:1})):(l(),_("div",Qo,[g("div",ea,[r(n),r(i),r(m)])])),r(N)]),_:1})):(l(),p(_e,{key:1}))}const oa=k(Jo,[["render",ta],["__scopeId","data-v-4f31abfa"]]),va=Object.freeze(Object.defineProperty({__proto__:null,default:oa},Symbol.toStringTag,{value:"Module"}));export{Yt as P,be as S,va as r};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-doc-BbuJd_VS.js","assets/main-H14uUxuN.js","assets/main-BZ73p_WW.css","assets/pdf-doc-CG5-AZ2M.css","assets/pager-full-pdf-DcRg28qt.js","assets/transition-CQVFPpmZ.js","assets/transition-5LRFTPo5.css","assets/settings-drawer-C-hgtHJt.js","assets/VDialog-DbN2FfmF.js","assets/VDialog-CSvrKKb2.css","assets/VSelectionControl-B42mmzLA.js","assets/VSelectionControl-CiViEYoC.css","assets/VTextField-D9pqgz_R.js","assets/VTextField-BnCEPZIq.css","assets/unauthorized-Cfxq6rru.js","assets/change-password-dialog-BfiQBpUn.js","assets/change-password-dialog-DrIXdKUC.css","assets/unauthorized-BjhIc97q.css","assets/copy-to-clipboard-DoUvDJVx.js","assets/VSlideGroup-BtfHoWCn.js","assets/VSlideGroup-BtXPhMOT.css","assets/settings-drawer-DKncO_vX.css","assets/VWindowItem-DHTDdYfK.js","assets/VWindowItem-ByIod57Y.css","assets/VSelect-BTy7SKk0.js","assets/VCheckboxBtn-DnBH3a96.js","assets/VSelect-DLu8bpcs.css","assets/VExpansionPanels-CBPnoy7O.js","assets/VExpansionPanels-6G1AUajL.css","assets/VRadioGroup-C7Zu_Eup.js","assets/VRadioGroup-i2qP9Wu9.css","assets/VCheckbox-CCOzQpCw.js","assets/VCheckbox-CMKdyl0R.css","assets/index-j5K-C_JC.js","assets/index-CL_6g4tJ.css","assets/pagination-toolbar-BgoV4zqc.js","assets/pagination-toolbar-DGrxp2OD.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{v as P,al as c,y as f,m as b,_ as k,r as h,o as l,c as p,w as d,a as r,b as v,C as S,n as R,E as w,A as _,N as ee,F as y,am as Pe,an as we,i as U,ao as te,ap as oe,aq as Se,D as ae,ar as re,as as se,at as ye,au as E,X as Re,K as B,ai as Ce,av as ne,B as V,ae as ie,L as g,aw as Be,ax as Te,ay as De,az as Ie,u as M,aA as H,aB as Le,aC as $e,aD as Ve,aE as Oe,aa as Ne,aF as Ee,Y as Ae,O as xe,H as T,aG as Ue,aH as Fe,aI as ze,aJ as Me,a3 as We,a4 as He,a5 as Ke,a6 as qe,aK as je,aL as Ge,a1 as F,aM as le,a7 as Ye,aN as Xe}from"./main-H14uUxuN.js";import{V as C}from"./transition-CQVFPpmZ.js";import{d as Ze,b as Je,S as Qe,V as et,a as tt}from"./settings-drawer-C-hgtHJt.js";import{P as ot,E as ce,U as at,V as rt}from"./unauthorized-Cfxq6rru.js";import{b as de,V as ue}from"./VWindowItem-DHTDdYfK.js";import{b as st}from"./VSelect-BTy7SKk0.js";import{I as nt,V as it}from"./VTextField-D9pqgz_R.js";import{D as W}from"./change-password-dialog-BfiQBpUn.js";import{V as lt,a as ct,b as dt,c as ut}from"./VExpansionPanels-CBPnoy7O.js";import{c as ht,V as pt,d as gt}from"./VSelectionControl-B42mmzLA.js";import{V as D,a as A}from"./VRadioGroup-C7Zu_Eup.js";import{V as I}from"./VCheckbox-CCOzQpCw.js";import{V as he}from"./VDialog-DbN2FfmF.js";import{T as K}from"./index-j5K-C_JC.js";import{a as z}from"./VSlideGroup-BtfHoWCn.js";import{T as mt,M as kt,V as x,a as bt,P as pe,b as ft,c as vt}from"./pagination-toolbar-BgoV4zqc.js";function ge(e,t){const{self:a=!1}=t.modifiers??{},u=t.value,s=typeof u=="object"&&u.options||{passive:!0},o=typeof u=="function"||"handleEvent"in u?u:u.handler,n=a?e:t.arg?document.querySelector(t.arg):window;n&&(n.addEventListener("scroll",o,s),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:o,options:s,target:a?void 0:n})}function me(e,t){var o;if(!((o=e._onScroll)!=null&&o[t.instance.$.uid]))return;const{handler:a,options:u,target:s=e}=e._onScroll[t.instance.$.uid];s.removeEventListener("scroll",a,u),delete e._onScroll[t.instance.$.uid]}function _t(e,t){t.value!==t.oldValue&&(me(e,t),ge(e,t))}const Pt={mounted:ge,unmounted:me,updated:_t},wt={name:"BookChangeDrawer",props:{direction:{type:String,required:!0}},head(){if(this.isDrawerOpen)return this.prefetchLinks(this.params,this.computedDirection,!0)},computed:{...P(c,["isBTT"]),...f(c,{computedDirection(){return this.normalizeDirection(this.direction)},params(e){return e.routes.books[this.computedDirection]},isDrawerOpen(e){return e.bookChange===this.computedDirection},icon(){return this.bookChangeIcon(this.computedDirection)}}),drawerLocation(){return this.bookChangeLocation(this.direction)},cursorClass(){return this.bookChangeCursorClass(this.computedDirection)},show(){return this.bookChangeShow(this.computedDirection)},route(){return this.toRoute(this.params)},label(){return this.linkLabel(this.computedDirection,"Book")}},methods:{...b(c,["linkLabel","normalizeDirection","prefetchLinks","toRoute","bookChangeLocation","bookChangeCursorClass","bookChangeShow","bookChangeIcon"])}};function St(e,t,a,u,s,o){const n=h("router-link");return o.show?(l(),p(Ze,{key:0,class:R(["bookChangeDrawer",{drawerActivated:e.isDrawerOpen}]),"disable-resize-watcher":"","disable-route-watcher":"",location:o.drawerLocation,"model-value":e.isDrawerOpen,scrim:!1,temporary:"",touchless:""},{default:d(()=>[r(n,{class:R({navLink:!0,[o.cursorClass]:!0}),to:o.route,"aria-label":o.label,title:o.label,onClick:t[0]||(t[0]=i=>i.stopImmediatePropagation())},{default:d(()=>[r(C,{class:"bookChangeIcon"},{default:d(()=>[v(S(e.icon),1)]),_:1})]),_:1},8,["class","to","aria-label","title"])]),_:1},8,["location","model-value","class"])):w("",!0)}const yt=k(wt,[["render",St],["__scopeId","data-v-bd4115bf"]]),Rt={name:"BookChangeActivator",components:{BookChangeDrawer:yt},props:{direction:{type:String,required:!0}},computed:{show(){return this.bookChangeShow(this.computedDirection)},computedDirection(){return this.normalizeDirection(this.direction)},positionClass(){return this.bookChangeLocation(this.direction)+"Pos"},cursorClass(){return this.bookChangeCursorClass(this.direction)}},methods:{...b(c,["bookChangeCursorClass","bookChangeLocation","bookChangeShow","normalizeDirection","setBookChangeFlag"])}};function Ct(e,t,a,u,s,o){const n=h("BookChangeDrawer");return l(),_(y,null,[o.show?(l(),_("div",{key:0,class:R(["changeColumn",{[o.positionClass]:!0,[o.cursorClass]:!0}]),onClick:t[0]||(t[0]=ee(i=>e.setBookChangeFlag(a.direction),["stop"]))},null,2)):w("",!0),r(n,{direction:a.direction},null,8,["direction"])],64)}const Bt=k(Rt,[["render",Ct],["__scopeId","data-v-a8fdaab3"]]),Tt={name:"LoadingPage",components:{Placeholder:ot},props:{twoPages:{type:Boolean,required:!0}}};function Dt(e,t,a,u,s,o){const n=h("Placeholder");return l(),_("div",{class:R(["pageLoading",{twoPages:a.twoPages}])},[r(n,{class:"pagePlaceholder"})],2)}const It=k(Tt,[["render",Dt],["__scopeId","data-v-04027168"]]),q="unauthorized",Lt={name:"ErrorPage",components:{EmptyState:ce},props:{twoPages:{type:Boolean,required:!0},type:{type:String,required:!0}},emits:["retry"],computed:{text(){return this.type===q?"Protected page":"Failed to load page"},icon(){return this.type===q?Pe:we}},methods:{onAction(e){this.$emit("retry",e)}}};function $t(e,t,a,u,s,o){const n=h("EmptyState");return l(),p(n,{class:R(["pageError",{twoPages:a.twoPages}]),headline:o.text,icon:o.icon,"action-text":"Retry","onClick:action":o.onAction},null,8,["class","headline","icon","onClick:action"])}const Vt=k(Lt,[["render",$t],["__scopeId","data-v-97fa48e8"]]),Ot={name:"ImgPage",props:{book:{type:Object,required:!0},src:{type:String,required:!0}},emits:["load","error"],computed:{...f(c,{scale:e=>e.clientSettings.scale}),style(){const e={};if(this.scale==1)return e;const t=this.$el;if(!(t!=null&&t.naturalWidth))return e;const a=t.naturalWidth/2;return e.transformOrigin=`${a}px top`,e.transform=`scale(${this.scale})`,e},bookSettings(){return this.getBookSettings(this.book)},classes(){return this.bookSettings.fitToClass}},methods:{...b(c,["getBookSettings"])}},Nt=["src"];function Et(e,t,a,u,s,o){return l(),_("img",U({class:[o.classes,"img"],draggable:"false",src:a.src,style:o.style},e.$attrs,{onError:t[0]||(t[0]=n=>e.$emit("error",n)),onLoad:t[1]||(t[1]=n=>e.$emit("load",n))}),null,16,Nt)}const j=k(Ot,[["render",Et],["__scopeId","data-v-f0601a0d"]]),G=te(oe(()=>se(()=>import("./pdf-doc-BbuJd_VS.js"),__vite__mapDeps([0,1,2,3])))),At=333,xt={name:"BookPage",components:{ErrorPage:Vt,LoadingPage:It,PDFDoc:G,ImgPage:j},props:{book:{type:Object,required:!0},page:{type:Number,required:!0}},data(){return{showProgress:!1,loaded:!1,error:"",ts:0}},computed:{...f(c,{scale:e=>e.clientSettings.scale}),style(){var a;const e={};if(this.book.fileType==="PDF"||this.scale==1)return e;const t=(a=this.$refs.pageComponent)==null?void 0:a.$el;return t!=null&&t.naturalHeight&&(e.height=t.naturalHeight*this.scale+"px",e.width=t.naturalWidth*this.scale+"px"),e},src(){const e=Math.max(this.book.mtime,this.ts),t={pk:this.book.pk,page:this.page,mtime:e};return Se(t)},component(){return this.book.fileType==="PDF"?G:j}},mounted(){setTimeout(function(){this.loaded||(this.loading=!0)},At)},methods:{onLoad(){this.showProgress=!1,this.loaded=!0,this.error=!1},onError(){this.error="load",this.showProgress=!1},onUnauthorized(){this.error="unauthorized",this.showProgress=!1},onRetry(){this.ts=Date.now()}}},Ut=["id","data-page"];function Ft(e,t,a,u,s,o){const n=h("ErrorPage"),i=h("LoadingPage");return l(),_("div",{id:`page${a.page}`,key:s.ts,"data-page":a.page,class:"page",style:re(o.style)},[s.error?(l(),p(n,{key:0,"two-pages":e.settings.twoPages,type:s.error,onRetry:o.onRetry},null,8,["two-pages","type","onRetry"])):s.showProgress&&!s.loaded?(l(),p(i,{key:1,"two-pages":e.settings.twoPages},null,8,["two-pages"])):(l(),p(ae(o.component),{key:2,ref:"pageComponent",book:a.book,page:1,src:o.src,onError:o.onError,onLoad:o.onLoad,onUnauthorized:o.onUnauthorized},null,40,["book","src","onError","onLoad","onUnauthorized"]))],12,Ut)}const ke=k(xt,[["render",Ft],["__scopeId","data-v-ea178cb3"]]),zt=.5,Mt={name:"ScaleForScroll",emits:["click"],data(){return{mdiMagnifyMinusOutline:ye}},computed:{...f(c,{scale:e=>e.clientSettings.scale}),showReset(){return this.scale!=E},style(){return{cursor:this.scale==E?"zoom-in":"all-scroll"}}},methods:{...b(c,["setSettingsClient"]),clearSelection(){window.getSelection&&window.getSelection().removeAllRanges()},onDoubleClick(){this.clearSelection();const e=this.scale+zt;this.setSettingsClient({scale:e})},scaleReset(){this.setSettingsClient({scale:E})}}};function Wt(e,t,a,u,s,o){const n=Re("drag-scroller");return B((l(),_("div",{class:"scaleForScroll",style:re(o.style),onDblclick:t[0]||(t[0]=(...i)=>o.onDoubleClick&&o.onDoubleClick(...i))},[Ce(e.$slots,"default",{},void 0,!0),o.showReset?(l(),p(C,{key:0,class:"resetIcon",onClick:ee(o.scaleReset,["stop"])},{default:d(()=>[v(S(s.mdiMagnifyMinusOutline),1)]),_:1},8,["onClick"])):w("",!0)],36)),[[n,,void 0,{onlyX:!0}]])}const be=k(Mt,[["render",Wt],["__scopeId","data-v-a222c504"]]),Ht={name:"HorizontalPages",components:{BookPage:ke,ScaleForScroll:be},props:{book:{type:Object,required:!0},page:{type:Number,required:!0}},emits:["click"],computed:{bookSettings(){return this.getBookSettings(this.book)},isReadInReverse(){return this.bookSettings.isReadInReverse},showSecondPage(){return this.bookSettings.twoPages&&this.page<this.book.maxPage&&!this.isCoverPage(this.book,this.page)},showPageOne(){return!this.isReadInReverse||this.showSecondPage},showPageTwo(){return this.isReadInReverse||this.showSecondPage},pageOne(){return this.isReadInReverse?this.page+1:this.page},pageTwo(){return this.isReadInReverse?this.page:this.page+1}},methods:{...b(c,["getBookSettings","isCoverPage"])}};function Kt(e,t,a,u,s,o){const n=h("BookPage"),i=h("ScaleForScroll");return l(),p(i,{class:"noWrap"},{default:d(()=>[o.showPageOne?(l(),p(n,{key:0,ref:"pageOne",book:a.book,page:o.pageOne,class:"horizontalPage"},null,8,["book","page"])):w("",!0),o.showPageTwo?(l(),p(n,{key:1,book:a.book,page:o.pageTwo,class:"horizontalPage"},null,8,["book","page"])):w("",!0)]),_:1})}const qt=k(Ht,[["render",Kt],["__scopeId","data-v-ce77a1b1"]]),jt={name:"PageChangeLink",props:{direction:{type:String,required:!0}},head(){return this.prefetchLinks(this.params,this.computedDirection)},computed:{...P(c,["isFirstPage","isLastPage"]),...f(c,{params(e){return e.routes[this.computedDirection]}}),computedDirection(){return this.normalizeDirection(this.direction)},show(){return this.computedDirection==="prev"?!this.isFirstPage:!this.isLastPage},pageChangeClass(){return"pageChangeColumn"},directionClass(){return this.direction},route(){return this.toRoute(this.params)},label(){return this.linkLabel(this.computedDirection,"Page")}},methods:{...b(c,["linkLabel","normalizeDirection","prefetchLinks","toRoute"])}};function Gt(e,t,a,u,s,o){const n=h("router-link");return o.show?(l(),p(n,{key:0,to:o.route,"aria-label":o.label,class:R(["changeColumn",{[o.directionClass]:!0}]),onClick:t[0]||(t[0]=i=>i.stopImmediatePropagation())},null,8,["to","aria-label","class"])):w("",!0)}const Yt=k(jt,[["render",Gt],["__scopeId","data-v-349ebac6"]]),Xt=48,Zt=48,Jt={name:"PagerHorizontal",components:{HorizontalPages:qt,PageChangeLink:Yt},props:{book:{type:Object,required:!0}},data(){return{activePage:0,pages:[]}},computed:{...f(c,{prevBook:e=>{var t;return(t=e.routes.books)==null?void 0:t.prev},nextBook:e=>{var t;return(t=e.routes.books)==null?void 0:t.next},storePage:e=>e.page,storePk:e=>e.books.current.pk}),bookSettings(){return this.getBookSettings(this.book)},twoPages(){return this.bookSettings.twoPages},isReadInReverse(){return this.bookSettings.isReadInReverse},windowIndex(){const e=this.activePage-this.pages[0];return Math.min(Math.max(0,e),this.book.maxPage)}},watch:{twoPages(){this.setActivePage(this.storePage,!0)},storePage(e){if(this.book.pk===this.storePk){this.activePage=e;const t=this.pages.at(0),a=this.pages.at(-1);(e<t||e>a)&&this.setPages()}},prevBook(e){this.book.pk===e.pk&&(this.activePage=this.book.maxPage)},nextBook(e){this.book.pk===e.pk&&(this.activePage=0)}},created(){this.book.pk===this.storePk?this.activePage=+this.$route.params.page:this.book.pk===this.prevBook.pk?this.activePage=this.book.maxPage:this.activePage=0,this.setPages()},methods:{...b(c,["getBookSettings","setBookChangeFlag","setActivePage"]),setPages(){const e=Math.max(this.activePage-Xt,0),t=Math.min(this.activePage+Zt,this.book.maxPage);this.pages=ne(e,t+1)}}};function Qt(e,t,a,u,s,o){const n=h("PageChangeLink"),i=h("HorizontalPages");return l(),p(ue,{"show-arrows":"",continuous:"","model-value":o.windowIndex,reverse:o.isReadInReverse},{prev:d(()=>[r(n,{direction:"prev"})]),next:d(()=>[r(n,{direction:"next"})]),default:d(()=>[(l(!0),_(y,null,V(s.pages,m=>(l(),p(de,{key:`c/${a.book.pk}/${m}`,class:"windowItem",disabled:"",eager:m>=e.storePage-1&&m<=e.storePage+2,"model-value":m,transition:!0},{default:d(()=>[r(i,{book:a.book,page:m},null,8,["book","page"])]),_:2},1032,["eager","model-value"]))),128))]),_:1},8,["model-value","reverse"])}const Y=k(Jt,[["render",Qt],["__scopeId","data-v-17343bd0"]]),X=250,eo={name:"PagerVertical",components:{BookPage:ke,ScaleForScroll:be},props:{book:{type:Object,required:!0}},data(){return{innerHeight:window.innerHeight,innerWidth:window.innerWidth,intersectorOn:!1,programmaticScroll:!1,intersectOptions:{handler:this.onIntersect,options:{threshold:[.75]}}}},computed:{...f(c,{storePage:e=>e.page,showToolbars:e=>e.showToolbars}),...ie(c,["reactWithScroll"]),bookSettings(){return this.getBookSettings(this.book)},isReadInReverse(){return this.bookSettings.isReadInReverse},items(){var a;const e=(a=this.book)!=null&&a.maxPage?this.book.maxPage+1:0,t=ne(0,e);return this.isReadInReverse&&t.reverse(),t}},watch:{storePage(e){this.reactWithScroll&&this.scrollToPage(e)}},mounted(){window.addEventListener("resize",this.onResize),setTimeout(()=>{this.scrollToPage(this.storePage)},X)},beforeUnmount(){window.removeEventListener("resize",this.onResize)},methods:{...b(c,["getBookSettings","setActivePage","setBookChangeFlag"]),onIntersect(e,t){if(e&&this.intersectorOn){const u=+t[0].target.dataset.page;this.setActivePage(u,!1)}},onScroll(){if(this.programmaticScroll)return;this.intersectorOn=!0;const e=this.$refs.verticalScroll.$el,t=e.scrollTop;if(this.storePage===0&&t===0)this.setBookChangeFlag("prev");else if(this.storePage===this.book.maxPage){const a=e.scrollTopMax||e.scrollHeight-e.clientTop;window.innerHeight+t+1>=a&&this.setBookChangeFlag("next")}},scrollToPage(e){this.intersectorOn=!1,this.programmaticScroll=!0;const t=this.$refs.verticalScroll;t?t.scrollToIndex(e):console.debug("Can't find verticalScroll component."),setTimeout(()=>{this.programmaticScroll=!1},X)},onResize(){this.innerHeight=window.innerHeight,this.innerWidth=window.innerWidth}}},to=["data-page"];function oo(e,t,a,u,s,o){const n=h("BookPage"),i=h("ScaleForScroll");return l(),p(i,null,{default:d(()=>[B((l(),p(st,{id:"verticalScroll",key:o.isReadInReverse,ref:"verticalScroll",items:o.items,height:s.innerHeight,width:s.innerWidth},{default:d(({item:m})=>[r(n,{book:a.book,page:m,class:"verticalPage"},null,8,["book","page"]),B(g("div",{class:R(["pageTracker",{pageTrackerToolbars:e.showToolbars}]),"data-page":m},null,10,to),[[nt,s.intersectOptions,void 0,{quiet:!0}]])]),_:1},8,["items","height","width"])),[[Pt,o.onScroll,"#verticalScroll"]])]),_:1})}const Z=k(eo,[["render",oo],["__scopeId","data-v-17541277"]]),J=te(oe(()=>se(()=>import("./pager-full-pdf-DcRg28qt.js"),__vite__mapDeps([4,1,2,0,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36])))),ao={name:"PagerSelector",components:{PagerHorizontal:Y,PagerPDF:J,PagerVertical:Z},props:{book:{type:Object,required:!0}},emits:["click"],head(){return this.prefetchBook(this.book)},computed:{...P(c,["cacheBook"]),...f(c,{storePk:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.pk)||0}}),isActiveBook(){var e;return this.book&&this.storePk===((e=this.book)==null?void 0:e.pk)},bookSettings(){return this.getBookSettings(this.book)},readerFullPdf(){var e;return((e=this.book)==null?void 0:e.fileType)=="PDF"&&this.cacheBook&&!this.bookSettings.isVertical},component(){let e;return this.readerFullPdf?e=J:this.bookSettings.isVertical?e=Z:e=Y,e}},watch:{$route(e){+e.params.pk===this.book.pk&&this.setActivePage(+e.params.page,!0)}},created(){this.isActiveBook&&this.setActivePage(+this.$route.params.page,!0)},methods:{...b(c,["getBookSettings","isBookVertical","setActivePage","prefetchBook"])}};function ro(e,t,a,u,s,o){return l(),p(ae(o.component),{book:a.book},null,8,["book"])}const so=k(ao,[["render",ro]]),no={name:"BooksWindow",components:{BookChangeActivator:Bt,Pager:so},computed:{...P(c,["isBTT"]),...f(c,{books:e=>[e.books.prev,e.books.current,e.books.next].filter(Boolean),bookChange:e=>e.bookChange,currentBookPk:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.pk)||0},bookRoutes:e=>e.routes.books}),bookChangePrev(){return this.bookChangeShow("prev")},bookChangeNext(){return this.bookChangeShow("next")}},watch:{$route(e,t){(!t||!t.params||+e.params.pk!=+t.params.pk)&&this.loadBooks({params:e.params})}},beforeMount(){this.setBookChangeFlag(),this.loadBooks({})},methods:{...b(c,["loadBooks","setBookChangeFlag","toggleToolbars"]),click(){this.toggleToolbars(),this.setBookChangeFlag()},eager(e){return this.bookChange&&this.bookRoutes[this.bookChange]&&this.bookRoutes[this.bookChange].pk===e}}};function io(e,t,a,u,s,o){const n=h("BookChangeActivator"),i=h("Pager");return l(),p(ue,{id:"booksWindow",direction:"vertical","model-value":e.currentBookPk,reverse:e.isBTT,"show-arrows":"",onClick:e.toggleToolbars},{prev:d(()=>[r(n,{direction:"prev"})]),next:d(()=>[r(n,{direction:"next"})]),default:d(()=>[(l(!0),_(y,null,V(e.books,m=>(l(),p(de,{key:`c/${m.pk}`,class:"windowItem",disabled:"",eager:o.eager(m.pk),value:m.pk,transition:!0},{default:d(()=>[r(i,{book:m,onClick:o.click},null,8,["book","onClick"])]),_:2},1032,["eager","value"]))),128))]),_:1},8,["model-value","reverse","onClick"])}const lo=k(no,[["render",io],["__scopeId","data-v-36f4263b"]]),co={name:"DownloadPanel",components:{DrawerItem:W},data(){return{mdiDownload:Be,mdiFileImage:Te}},computed:{...P(c,["activeTitle","routeParams"]),...f(c,{currentBook:e=>{var t;return(t=e.books)==null?void 0:t.current},storePage:e=>e.page}),downloadURL(){return De(this.currentBook)},filename(){var e;return(e=this.currentBook)==null?void 0:e.filename},pageSrc(){const{pk:e,mtime:t}=this.currentBook;return Ie({pk:e,page:this.storePage,mtime:t})},pageName(){const e=this.currentBook.fileType==="PDF"?"pdf":"jpg";return`${this.activeTitle} - page ${this.storePage}.${e}`},downloadPageTitle(){return`Download Page ${this.storePage}`}},methods:{...b(M,["downloadIOSPWAFix"]),downloadPage(){H(this.pageSrc,this.pageName)},downloadBook(){H(this.downloadURL,this.filename)}}},uo={key:0,id:"downloadPanel"};function ho(e,t,a,u,s,o){const n=h("DrawerItem");return e.currentBook?(l(),_("div",uo,[r(n,{"prepend-icon":s.mdiFileImage,title:o.downloadPageTitle,onClick:o.downloadPage},null,8,["prepend-icon","title","onClick"]),r(n,{"prepend-icon":s.mdiDownload,title:"Download Book",onClick:o.downloadBook},null,8,["prepend-icon","onClick"])])):w("",!0)}const po=k(co,[["render",ho],["__scopeId","data-v-5eb3869f"]]),go={name:"KeyboardShortcutsTable",data(){return{mdiMenuLeft:Le,mdiMenuRight:$e,mdiKeyboardSpace:Ve,mdiAppleKeyboardShift:Oe}}},mo={class:"highlight-table"};function ko(e,t,a,u,s,o){return l(),_(y,null,[t[9]||(t[9]=g("h4",null,"Navigation",-1)),g("table",mo,[g("tbody",null,[g("tr",null,[g("td",null,[r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiMenuLeft),1)]),_:1}),t[0]||(t[0]=v(", j, ")),g("div",null,[r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiAppleKeyboardShift),1)]),_:1}),r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiKeyboardSpace),1)]),_:1})])]),t[1]||(t[1]=g("td",null,"Previous page",-1))]),g("tr",null,[g("td",null,[r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiMenuRight),1)]),_:1}),t[2]||(t[2]=v(", k, ")),r(C,{class:"keyIcon",density:"compact"},{default:d(()=>[v(S(s.mdiKeyboardSpace),1)]),_:1})]),t[3]||(t[3]=g("td",null,"Next page",-1))]),t[4]||(t[4]=g("tr",null,[g("td",null,","),g("td",null,[v("Next "),g("em",null,"only"),v(" one page in two page mode.")])],-1)),t[5]||(t[5]=g("tr",null,[g("td",null,"."),g("td",null,[v("Previous "),g("em",null,"only"),v(" one page in two page mode.")])],-1)),t[6]||(t[6]=g("tr",null,[g("td",null,"p"),g("td",null,"Previous Book")],-1)),t[7]||(t[7]=g("tr",null,[g("td",null,"n"),g("td",null,"Next Book")],-1)),t[8]||(t[8]=g("tr",null,[g("td",null,"esc"),g("td",null,"Close book")],-1))])]),t[10]||(t[10]=Ne('<h4 data-v-1624cd48>Fit Page To</h4><table class="highlight-table" data-v-1624cd48><tbody data-v-1624cd48><tr data-v-1624cd48><td data-v-1624cd48>s</td><td data-v-1624cd48>screen</td></tr><tr data-v-1624cd48><td data-v-1624cd48>h</td><td data-v-1624cd48>screen height</td></tr><tr data-v-1624cd48><td data-v-1624cd48>w</td><td data-v-1624cd48>screen width</td></tr><tr data-v-1624cd48><td data-v-1624cd48>o</td><td data-v-1624cd48>Show page at original size</td></tr><tr data-v-1624cd48><td data-v-1624cd48>2</td><td data-v-1624cd48>Toggle two page view</td></tr><tr data-v-1624cd48><td data-v-1624cd48>r</td><td data-v-1624cd48>Read Right to Left</td></tr><tr data-v-1624cd48><td data-v-1624cd48>l</td><td data-v-1624cd48>Read Left to Right</td></tr><tr data-v-1624cd48><td data-v-1624cd48>t</td><td data-v-1624cd48>Read Top to Bottom</td></tr><tr data-v-1624cd48><td data-v-1624cd48>b</td><td data-v-1624cd48>Read in Bottom to Top</td></tr></tbody></table><h4 data-v-1624cd48>Other</h4><table class="highlight-table" data-v-1624cd48><tbody data-v-1624cd48><tr data-v-1624cd48><td data-v-1624cd48>m</td><td data-v-1624cd48>Show comic's metadata</td></tr><tr data-v-1624cd48><td data-v-1624cd48>double click</td><td data-v-1624cd48>Zoom page</td></tr></tbody></table>',4))],64)}const bo=k(go,[["render",ko],["__scopeId","data-v-1624cd48"]]),fo={name:"KeyboardShortcutsPanel",components:{DrawerItem:W,KeyboardShortcutsTable:bo},data(){return{mdiKeyboardOutline:Ee}},computed:{...P(M,["isMobile"])}};function vo(e,t,a,u,s,o){const n=h("DrawerItem"),i=h("KeyboardShortcutsTable");return e.isMobile?w("",!0):(l(),p(ut,{key:0},{default:d(()=>[r(lt,{id:"readerKeyboardShortcuts"},{default:d(()=>[r(ct,{id:"shortcutsTitle"},{default:d(()=>[r(n,{id:"keyboardShortcutsItem","prepend-icon":s.mdiKeyboardOutline,title:"Keyboard Shortcuts"},null,8,["prepend-icon"])]),_:1}),r(dt,null,{default:d(()=>[r(i)]),_:1})]),_:1})]),_:1}))}const _o=k(fo,[["render",vo],["__scopeId","data-v-699651a3"]]),fe=["fitTo","readingDirection","twoPages"];Object.freeze(fe);const Po={name:"ReaderSettingsPanel",components:{DrawerItem:W},data(){return{isGlobalScope:!1,mdiOpenInNew:Ae,mdiEye:xe,openDelay:2e3}},computed:{...P(T,["isAuthDialogOpen"]),...P(c,["isVertical","isPDF","cacheBook"]),...f(c,{choices:e=>e.choices,validBook:e=>{var t;return!!((t=e.books)!=null&&t.current)},selectedSettings(e){var t,a;return this.isGlobalScope||!((t=e.books)!=null&&t.current)?e.readerSettings:(a=e.books)==null?void 0:a.current.settings},isClearSettingsButtonDisabled(e){var t,a;if(this.isGlobalScope||!((t=e.books)!=null&&t.current))return!0;for(const u of fe){const s=(a=e.books)==null?void 0:a.current.settings[u];if(!e.choices.nullValues.has(s))return!1}return!0},pdfInBrowserURL(e){var t,a;return this.isPDF&&((t=e.books)!=null&&t.current)?Ue((a=e.books)==null?void 0:a.current):""},finishOnLastPage:e=>e.readerSettings.finishOnLastPage}),...ie(c,["readRtlInReverse"]),fitToChoices(){return this.choicesWithoutNull("fitTo")},readingDirectionChoices(){return this.choicesWithoutNull("readingDirection")},disableTwoPages(){return this.isVertical||this.isPDF&&this.cacheBook},disableCacheBook(){return this.isVertical&&this.isPDF}},mounted(){document.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){document.removeEventListener("keyup",this._keyUpListener)},methods:{...b(c,["clearSettingsLocal","setSettingsGlobal","setSettingsLocal","setSettingsClient"]),settingsDialogChanged(e){this.isGlobalScope?this.setSettingsGlobal(e):this.setSettingsLocal(e)},choicesWithoutNull(e){const t=[];for(const a of this.choices[e])a.value&&t.push(a);return Object.freeze(t),t},_keyUpListener(e){if(e.stopPropagation(),this.isAuthDialogOpen)return;let t;switch(e.key){case"w":t={fitTo:"W"};break;case"h":t={fitTo:"H"};break;case"s":t={fitTo:"S"};break;case"o":t={fitTo:"O"};break;case"2":t={twoPages:!this.selectedSettings.twoPages};break;case"l":t={readingDirection:"ltr"};break;case"r":t={readingDirection:"rtl"};break;case"t":t={readingDirection:"ttb"};break;case"b":t={readingDirection:"bbt"};break}t&&this.setSettingsLocal(t)}}},wo={id:"readerScopedSettings",class:"readerDrawerItem"};function So(e,t,a,u,s,o){const n=h("DrawerItem");return l(),_(y,null,[r(A,{modelValue:s.isGlobalScope,"onUpdate:modelValue":t[0]||(t[0]=i=>s.isGlobalScope=i),class:"scopeRadioButton readerDrawerItem",density:"compact",label:"Scope","hide-details":"auto"},{default:d(()=>[r(D,{label:"Only this comic",value:!1}),r(D,{label:"Default for all comics",value:!0})]),_:1},8,["modelValue"]),r(ht,null,{default:d(()=>[g("div",wo,[r(A,{class:"displayRadioGroup",density:"compact",label:"Display","hide-details":"auto","model-value":e.selectedSettings.fitTo,"onUpdate:modelValue":t[1]||(t[1]=i=>o.settingsDialogChanged({fitTo:i}))},{default:d(()=>[(l(!0),_(y,null,V(o.fitToChoices,i=>(l(),p(D,{key:i.value,label:i.title,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"]),r(I,{disabled:o.disableTwoPages,class:"displayTwoPages",density:"compact",label:"Two pages","hide-details":"auto","model-value":e.selectedSettings.twoPages,"true-value":!0,indeterminate:e.selectedSettings.twoPages===null||e.selectedSettings.twoPages===void 0,"onUpdate:modelValue":t[2]||(t[2]=i=>o.settingsDialogChanged({twoPages:i}))},null,8,["disabled","model-value","indeterminate"]),r(A,{class:"displayRadioGroup",density:"compact",label:"Reading Direction","hide-details":"auto","model-value":e.selectedSettings.readingDirection,"onUpdate:modelValue":t[3]||(t[3]=i=>o.settingsDialogChanged({readingDirection:i}))},{default:d(()=>[(l(!0),_(y,null,V(o.readingDirectionChoices,i=>(l(),p(D,{key:i.value,label:i.title,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["model-value"]),s.isGlobalScope?w("",!0):B((l(),p(he,{key:0,id:"clearSettingsButton",disabled:e.isClearSettingsButtonDisabled,onClick:e.clearSettingsLocal},{default:d(()=>t[7]||(t[7]=[v(" Clear Settings ")])),_:1},8,["disabled","onClick"])),[[K,{openDelay:s.openDelay,text:"Use the default settings for all comics for this comic"}]])])]),_:1}),r(z),r(I,{class:"readerDrawerItem","model-value":e.finishOnLastPage,density:"compact",label:"Finish Book On Last Page","hide-details":"auto","true-value":!0,"onUpdate:modelValue":t[4]||(t[4]=i=>o.settingsDialogChanged({finishOnLastPage:i}))},null,8,["model-value"]),r(I,{"model-value":e.selectedSettings.readRtlInReverse,class:"readerDrawerItem",density:"compact",label:"Read RTL Comics as LTR","hide-details":"auto","true-value":!0,"onUpdate:modelValue":t[5]||(t[5]=i=>o.settingsDialogChanged({readRtlInReverse:i}))},null,8,["model-value"]),B(r(I,{"model-value":e.cacheBook,class:"readerDrawerItem cacheBook",density:"compact",disabled:o.disableCacheBook,label:"Cache Entire Book","hide-details":"auto","true-value":!0,"onUpdate:modelValue":t[6]||(t[6]=i=>e.setSettingsClient({cacheBook:i}))},null,8,["model-value","disabled"]),[[K,{openDelay:s.openDelay,text:"Cache all pages from this book in the browser"}]]),e.pdfInBrowserURL?(l(),p(n,{key:0,"prepend-icon":s.mdiEye,"append-icon":s.mdiOpenInNew,title:"Read in Tab",href:e.pdfInBrowserURL,target:"_blank"},null,8,["prepend-icon","append-icon","href"])):w("",!0)],64)}const yo=k(Po,[["render",So],["__scopeId","data-v-42dbb202"]]),Ro={name:"ReaderSettingsSuperPanel",components:{DownloadPanel:po,ReaderKeyboardShortcutsPanel:_o,ReaderSettingsPanel:yo}};function Co(e,t,a,u,s,o){const n=h("ReaderSettingsPanel"),i=h("ReaderKeyboardShortcutsPanel"),m=h("DownloadPanel");return l(),_(y,null,[r(n),r(z),r(i),r(z),r(m)],64)}const Bo=k(Ro,[["render",Co]]),To={name:"ReaderSettingsDrawer",components:{SettingsDrawer:Je,ReaderSettingsSuperPanel:Bo}};function Do(e,t,a,u,s,o){const n=h("ReaderSettingsSuperPanel"),i=h("SettingsDrawer");return l(),p(i,{title:"Reader",temporary:"","disable-resize-watcher":""},{panel:d(()=>[r(n)]),_:1})}const Io=k(To,[["render",Do]]),Q={a:Me,f:We,p:He,i:Ke,s:qe,v:je},Lo={a:"Story Arc",f:"Folder",p:"Publisher",i:"Imprint",s:"Series",v:"Volume"},$o={name:"ReaderArcSelect",components:{ToolbarSelect:mt},data(){return{mdiFilterOutline:Fe}},computed:{...f(c,{arcGroup:e=>{var t;return((t=e.arc)==null?void 0:t.group)||"s"},arc:e=>e.arc,arcName:e=>{for(const t of e.arcs)if(e.arc.group===t.group&&e.arc.pks===t.pks)return t.name;return"Unknown"},arcItems:e=>{const t=[];for(const a of e.arcs){const u={value:a,title:a.name,group:a.group,filters:a.filters,subtitle:Lo[a.group],prependIcon:Q[a.group]};t.push(u)}return t}})},methods:{...b(c,["loadBooks"]),arcIcon(e){return Q[e]},checkIcon(e){return e.group===this.arc.group&&e.pks==this.arc.pks?ze:""},subtitle(e){let t=e.subtitle;return e.filters&&(t+=" (filtered)"),t},onUpdate(e){const t={group:e.group,pks:e.pks};this.loadBooks({arc:t})}}},Vo={id:"arcPos"};function Oo(e,t,a,u,s,o){const n=h("ToolbarSelect");return l(),p(n,{"model-value":e.arc,class:"arcSelect","select-label":"reading order",items:e.arcItems,disabled:!e.arcItems||e.arcItems.length<=1,"onUpdate:modelValue":o.onUpdate},{item:d(({item:i,props:m})=>[r(it,U(m,{density:"compact",variant:"plain","prepend-icon":i.raw.prependIcon,subtitle:o.subtitle(i.raw),"append-icon":o.checkIcon(m.value)}),null,16,["prepend-icon","subtitle","append-icon"])]),selection:d(({item:i,props:m})=>[r(C,U({size:"large"},m,{class:"arcSelectIcon"}),{default:d(()=>[v(S(o.arcIcon(i.raw.group)),1)]),_:2},1040),g("span",Vo,S(e.arc.index)+" / "+S(e.arc.count),1)]),_:1},8,["model-value","items","disabled","onUpdate:modelValue"])}const No=k($o,[["render",Oo],["__scopeId","data-v-62bf79bd"]]),Eo={name:"ReaderTitleToolbar",components:{MetadataDialog:kt,ReaderArcSelect:No,SettingsDrawerButton:Qe},data(){return{mdiClose:Ge,routeChanged:!1}},head(){return{meta:[{hid:"description",name:"description",content:`reader ${this.activeTitle} page ${this.storePage}`}]}},computed:{...P(T,["isAuthDialogOpen"]),...P(c,["activeTitle","closeBookRoute"]),...f(c,{showToolbars:e=>e.showToolbars,currentBook:e=>{var t;return((t=e.books)==null?void 0:t.current)||{}},empty:e=>e.empty,subtitle:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.name)||""}}),title(){return this.activeTitle},extensionHeight(){let e=32;return this.subtitle&&(e*=2),e+=4,e},closeRoute(){const e=F(this.closeBookRoute),t=F(e.params);return delete t.name,e.params=t,e}},watch:{$route(e,t){t&&(this.routeChanged=!0)}},mounted(){document.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){document.removeEventListener("keyup",this._keyUpListener)},methods:{...b(M,["setTimestamp"]),...b(c,["routeToDirection","routeToDirectionOne","routeToBook","setBookChangeFlag"]),openMetadata(){this.$refs.metadataDialog.dialog=!0},onCloseBook(){this.routeChanged&&this.setTimestamp()},_keyUpListener(e){if(e.stopPropagation(),!this.isAuthDialogOpen)switch(e.key){case"Escape":this.$refs.closeBook.$el.click();break;case"m":this.empty||this.openMetadata();break}}}},Ao={id:"title"},xo={key:0,id:"subtitle"};function Uo(e,t,a,u,s,o){const n=h("ReaderArcSelect"),i=h("MetadataDialog"),m=h("SettingsDrawerButton");return l(),p(pt,null,{default:d(()=>[B(r(tt,{id:"readerToolbarTop",density:"compact","extension-height":o.extensionHeight},Ye({default:d(()=>[r(x,null,{default:d(()=>[r(he,{ref:"closeBook",class:"closeBook",to:o.closeRoute,size:"large",density:"compact",variant:"plain",onClick:o.onCloseBook},{default:d(()=>t[0]||(t[0]=[v(" close book ")])),_:1},8,["to","onClick"])]),_:1}),r(bt),e.empty?w("",!0):(l(),p(x,{key:0},{default:d(()=>[r(n),r(i,{ref:"metadataDialog",group:"c",toolbar:!0,book:e.currentBook},null,8,["book"])]),_:1})),r(x,null,{default:d(()=>[r(m)]),_:1})]),_:2},[o.title?{name:"extension",fn:d(()=>[r(et,{class:"readerTitle"},{default:d(()=>[g("div",Ao,S(o.title),1),e.subtitle?(l(),_("div",xo,S(e.subtitle),1)):w("",!0)]),_:1})]),key:"0"}:void 0]),1032,["extension-height"]),[[le,e.showToolbars]])]),_:1})}const ve=k(Eo,[["render",Uo],["__scopeId","data-v-dc4c0fde"]]),Fo={name:"ReaderEmptyBooks",components:{ReaderTopToolbar:ve,EmptyState:ce},data(){return{mdiBookRemoveOutline:Xe}},methods:{...b(c,["loadBooks"]),onAction(){this.loadBooks({mtime:Date.now()})}}};function zo(e,t,a,u,s,o){const n=h("ReaderTopToolbar"),i=h("EmptyState");return l(),_(y,null,[r(n),r(i,{headline:"Book Not Found",title:"Close the reader and find another book",icon:s.mdiBookRemoveOutline,"action-text":"Try to load book again","onClick:action":o.onAction},null,8,["icon","onClick:action"])],64)}const Mo=k(Fo,[["render",zo]]),Wo={name:"ReaderBookChangeNavButton",components:{PaginationNavButton:pe},props:{direction:{type:String,required:!0}},computed:{...P(c,["isBTT"]),...f(c,{toRoute(e){var a;const t=(a=e==null?void 0:e.routes)==null?void 0:a.books[this.direction];return t?{params:F(t)}:""}}),title(){return(this.direction==="prev"?"Previous":"Next")+" Book"},icon(){return this.bookChangeIcon(this.direction)},classes(){return{bookChangeNavButtonLeft:this.direction==="prev",bookChangeNavButtonRight:this.direction==="next"}}},methods:{...b(c,["bookChangeIcon"])}};function Ho(e,t,a,u,s,o){const n=h("PaginationNavButton");return e.toRoute?(l(),p(n,{key:0,class:R(o.classes),icon:o.icon,variant:"plain",title:o.title,to:e.toRoute},null,8,["class","icon","title","to"])):w("",!0)}const Ko=k(Wo,[["render",Ho],["__scopeId","data-v-0cead61e"]]),qo={name:"ReaderNavButton",components:{PaginationNavButton:pe},props:{value:{type:Number,required:!0},twoPages:{type:Boolean,default:!1}},computed:{...P(c,["isVertical"]),...f(c,{storePage:e=>e.page,toRoute(e){if(!this.isVertical)return{params:{pk:e.books.current.pk,page:this.value}}},isBookPrev:e=>!!e.routes.books.prev,isBookNext:e=>!!e.routes.books.next}),classes(){return{readerNavButtonLeft:!this.isBookPrev&&this.value===0,readerNavButtonRight:!this.isBookNext&&this.value!=0}},title(){return"Page "+this.value},disabled(){return this.value===this.storePage||this.twoPages&&!!(this.value%2)&&this.value-1===this.storePage}},methods:{...b(c,["setActivePage"]),onClick(){this.isVertical&&this.setActivePage(this.value,!0)}}};function jo(e,t,a,u,s,o){const n=h("PaginationNavButton");return l(),p(n,{key:e.isVertical,disabled:o.disabled,class:R(["readerNavButton",o.classes]),title:o.title,to:e.toRoute,onClick:o.onClick},{default:d(()=>[v(S(a.value),1)]),_:1},8,["disabled","class","title","to","onClick"])}const Go=k(qo,[["render",jo],["__scopeId","data-v-530fba8c"]]),L="prev",$="next",Yo={name:"ReaderNavToolbar",components:{PaginationSlider:ft,ReaderNavButton:Go,PaginationToolbar:vt,ReaderBookChangeNavButton:Ko},computed:{...P(T,["isAuthDialogOpen"]),...P(c,["activeSettings","isReadInReverse","isVertical"]),...f(c,{showToolbars:e=>e.showToolbars,storePage:e=>e.page,key(e){var a,u;return`${(u=(a=e.books)==null?void 0:a.current)==null?void 0:u.pk}:${this.step}:${this.isReadInReverse}`},maxPage:e=>{var t,a;return((a=(t=e.books)==null?void 0:t.current)==null?void 0:a.maxPage)||0}}),twoPages(){return this.activeSettings.twoPages},step(){return this.activeSettings.twoPages?2:1},trackColor(){return this.twoPages&&+this.storePage>=this.maxPage-1?this.$vuetify.theme.current.colors.primary:""},min(){return this.isReadInReverse?this.maxPage:0},max(){return this.isReadInReverse?0:this.maxPage},bookPrev(){return this.isReadInReverse?"next":"prev"},bookNext(){return this.isReadInReverse?"prev":"next"}},mounted(){document.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){document.removeEventListener("keyup",this._keyUpListener)},methods:{...b(c,["routeToBook","routeToDirection","routeToDirectionOne","routeToPage","setActivePage"]),onSliderUpdate(e){this.isVertical?this.setActivePage(e,!0):this.routeToPage(e)},_keyUpListener(e){if(e.stopPropagation(),!this.isAuthDialogOpen)switch(e.key){case" ":!e.shiftKey&&window.innerHeight+window.scrollY+1>=document.body.scrollHeight?this.routeToDirection($):e.shiftKey&&window.scrollY===0&&this.routeToDirection(L);break;case"j":case"ArrowRight":this.routeToDirection($);break;case"k":case"ArrowLeft":this.routeToDirection(L);break;case",":this.routeToDirectionOne(L);break;case".":this.routeToDirectionOne($);break;case"n":this.routeToBook($);break;case"p":this.routeToBook(L);break}}}};function Xo(e,t,a,u,s,o){const n=h("ReaderBookChangeNavButton"),i=h("ReaderNavButton"),m=h("PaginationSlider"),O=h("PaginationToolbar");return l(),p(gt,null,{default:d(()=>[e.maxPage?B((l(),p(O,{key:0,id:"readerToolbarNav"},{default:d(()=>[r(n,{direction:o.bookPrev,narrow:!1},null,8,["direction"]),r(i,{value:o.min,"two-pages":o.twoPages},null,8,["value","two-pages"]),(l(),p(m,{key:e.key,"model-value":e.storePage,min:0,max:e.maxPage,step:o.step,"track-color":o.trackColor,reverse:e.isReadInReverse,"onUpdate:modelValue":t[0]||(t[0]=N=>o.onSliderUpdate(N))},null,8,["model-value","max","step","track-color","reverse"])),r(i,{value:o.max,"two-pages":o.twoPages},null,8,["value","two-pages"]),r(n,{direction:o.bookNext,narrow:!1},null,8,["direction"])]),_:1},512)),[[le,e.showToolbars]]):w("",!0)]),_:1})}const Zo=k(Yo,[["render",Xo],["__scopeId","data-v-955ab3ce"]]),Jo={name:"MainReader",components:{BooksWindow:lo,ReaderEmpty:Mo,ReaderNavToolbar:Zo,ReaderTopToolbar:ve,ReaderSettingsDrawer:Io,Unauthorized:at},data(){return{showToolbars:!1}},computed:{...P(T,["isAuthorized"]),...f(T,{user:e=>e.user}),...f(c,{empty:e=>e.empty,arc:e=>e.arc})},watch:{user(){this.loadReaderSettings()},isAuthorized(){this.loadReaderSettings()}},beforeMount(){this.reset(),this.loadReaderSettings()},methods:{...b(c,["loadReaderSettings","reset"])}},Qo={key:0},ea={id:"readerContainer"};function ta(e,t,a,u,s,o){const n=h("ReaderTopToolbar"),i=h("BooksWindow"),m=h("ReaderNavToolbar"),O=h("ReaderEmpty"),N=h("ReaderSettingsDrawer"),_e=h("Unauthorized");return e.isAuthorized?(l(),p(rt,{key:0,id:"readerWrapper"},{default:d(()=>[e.empty?(l(),p(O,{key:1})):(l(),_("div",Qo,[g("div",ea,[r(n),r(i),r(m)])])),r(N)]),_:1})):(l(),p(_e,{key:1}))}const oa=k(Jo,[["render",ta],["__scopeId","data-v-4f31abfa"]]),va=Object.freeze(Object.defineProperty({__proto__:null,default:oa},Symbol.toStringTag,{value:"Module"}));export{Yt as P,be as S,va as r};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.bookChangeDrawer[data-v-bd4115bf]{opacity:.75!important;z-index:15!important}.drawerActivated[data-v-bd4115bf]{width:33vw!important}.prevCursor[data-v-bd4115bf]{cursor:n-resize}.nextCursor[data-v-bd4115bf]{cursor:s-resize}.navLink[data-v-bd4115bf]{display:block;height:100%}.bookChangeIcon[data-v-bd4115bf]{top:50%;left:50%;transform:translate(-50%) translateY(-50%);height:25%;width:25%;color:#fff}.changeColumn[data-v-a8fdaab3]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.leftPos[data-v-a8fdaab3]{left:0}.rightPos[data-v-a8fdaab3]{right:0}.upCursor[data-v-a8fdaab3]{cursor:n-resize}.downCursor[data-v-a8fdaab3]{cursor:s-resize}.pageLoading[data-v-04027168]{display:inline-flex;height:100vh;width:100vw;justify-content:center;align-items:center}.twoPages[data-v-04027168]{max-width:50vw}.pagePlaceholder[data-v-04027168]{height:50%!important;width:50%!important}.pageError[data-v-97fa48e8]{height:100vh}.pageError[data-v-97fa48e8] .v-icon,.pageError[data-v-97fa48e8] .v-empty-state__headline{color:rgb(var(--v-theme-error))!important}.twoPages[data-v-97fa48e8]{max-width:50vw}.img[data-v-f0601a0d]{transition:transform .5s ease-in-out}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{object-fit:contain}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d],.fitToHeight[data-v-f0601a0d],.fitToHeightTwo[data-v-f0601a0d],.fitToHeightVertical[data-v-f0601a0d]{height:100vh}.fitToScreenTwo[data-v-f0601a0d]{max-width:50vw}.fitToWidth[data-v-f0601a0d],.fitToWidthVertical[data-v-f0601a0d],.fitToScreen[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{width:100vw}.fitToWidthTwo[data-v-f0601a0d]{width:50vw}.fitToOrig[data-v-f0601a0d],.fitToOrigTwo[data-v-f0601a0d],.fitToOrigVertical[data-v-f0601a0d]{object-fit:none}.page[data-v-ea178cb3]{font-size:0}.scaleForScroll[data-v-a222c504]{overflow:scroll;-webkit-overflow-scrolling:touch}.resetIcon[data-v-a222c504]{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 45px);right:50%;transform:translate(50%);z-index:200;font-size:50px;color:#fff;filter:drop-shadow(1px 1px 1px black);opacity:.666}.resetIcon[data-v-a222c504]:hover{opacity:1}.noWrap[data-v-ce77a1b1]{white-space:nowrap}.horizontalPage[data-v-ce77a1b1]{display:inline-block}.changeColumn[data-v-349ebac6]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.prev[data-v-349ebac6]{left:0;cursor:w-resize}.next[data-v-349ebac6]{right:0;cursor:e-resize}.windowItem[data-v-17343bd0]{font-size:0}.verticalPage[data-v-17541277]{display:block}[data-v-17541277] .v-virtual-scroll__item{position:relative}.pageTracker[data-v-17541277]{position:absolute;top:0;z-index:15;width:100%;height:calc((100vh - env(safe-area-inset-bottom))*.95)}.pageTrackerToolbars[data-v-17541277]{height:calc((100vh - env(safe-area-inset-bottom) - 186px)*.95)!important}[data-v-36f4263b] .windowItem{min-height:100vh;text-align:center}[data-v-36f4263b] .v-window__controls{position:fixed;top:48px;height:calc(100vh - 96px);padding:0}#downloadPanel[data-v-5eb3869f]{background-color:rgb(var(--v-theme-background))}[data-v-1624cd48] .v-expansion-panel-title--active{min-height:48px!important}[data-v-1624cd48] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.highlight-table[data-v-1624cd48]{margin-top:10px;border-collapse:collapse;color:rgb(var(--v-theme-textDisabled))}h4[data-v-1624cd48]{padding-left:.5em;color:rgb(var(--v-theme-textSecondary))}.highlight-table tr[data-v-1624cd48]:nth-child(odd){background-color:rgb(var(--v-theme-surface))!important}.highlight-table td[data-v-1624cd48]{min-width:60px;padding:5px}.highlight-table td[data-v-1624cd48]:first-child{text-align:center}.keyIcon[data-v-1624cd48]{margin:0}#readerKeyboardShortcuts[data-v-699651a3]{background-color:rgb(var(--v-theme-background))}#shortcutsTitle[data-v-699651a3]{padding:0 10px 0 17px;font-size:16px}#keyboardShortcutsItem[data-v-699651a3]{padding-left:0}[data-v-699651a3] .v-expansion-panel-title--active{min-height:48px!important}[data-v-699651a3] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.scopeRadioButton[data-v-42dbb202]{padding-top:10px}.readerDrawerItem[data-v-42dbb202]{padding-left:15px;padding-right:env(safe-area-inset-right)}.displayTwoPages[data-v-42dbb202]{margin-top:5px;margin-bottom:10px}#clearSettingsButton[data-v-42dbb202]{margin-top:6px;margin-bottom:4px}#readerScopedSettings[data-v-42dbb202]{background-color:#191919;margin:4px 8px 5px 10px;padding-left:5px;padding-top:4px}.arcSelect[data-v-62bf79bd]{min-width:74px}#arcPos[data-v-62bf79bd]{height:22.75px;padding-top:4px;font-size:16px;letter-spacing:-.15em}[data-v-62bf79bd] .v-select__selection{color:rgb(var(--v-theme-textSecondary))!important}[data-v-62bf79bd] .v-select__selection .arcSelectIcon{top:4px;color:rgb(var(--v-theme-textSecondary))}[data-v-62bf79bd] .v-select__selection:hover .arcSelectIcon{color:#fff}[data-v-62bf79bd] .v-list-item__spacer{max-width:12px}#readerToolbarTop[data-v-dc4c0fde]{position:fixed;top:0;width:100%;padding-top:env(safe-area-inset-top);padding-left:0;padding-right:0;z-index:20}.closeBook[data-v-dc4c0fde]{padding-left:max(18px,env(safe-area-inset-left) / 2)}.readerTitle[data-v-dc4c0fde]{padding-left:calc(env(safe-area-inset-left)/2);padding-right:calc(env(safe-area-inset-left)/2);text-align:center;white-space:nowrap;overflow:scroll}.readerTitle[data-v-dc4c0fde]{padding-bottom:4px}#title[data-v-dc4c0fde]{font-size:clamp(18px,3vw,20px)}#subtitle[data-v-dc4c0fde]{font-size:clamp(16px,3vw,18px);color:rgb(var(--v-theme-textSecondary));padding-bottom:10px}@media (max-width: 599.98px){.closeBook[data-v-dc4c0fde]{padding-left:max(10px,env(safe-area-inset-left) / 2)}}.bookChangeNavButtonLeft[data-v-
|
|
1
|
+
.bookChangeDrawer[data-v-bd4115bf]{opacity:.75!important;z-index:15!important}.drawerActivated[data-v-bd4115bf]{width:33vw!important}.prevCursor[data-v-bd4115bf]{cursor:n-resize}.nextCursor[data-v-bd4115bf]{cursor:s-resize}.navLink[data-v-bd4115bf]{display:block;height:100%}.bookChangeIcon[data-v-bd4115bf]{top:50%;left:50%;transform:translate(-50%) translateY(-50%);height:25%;width:25%;color:#fff}.changeColumn[data-v-a8fdaab3]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.leftPos[data-v-a8fdaab3]{left:0}.rightPos[data-v-a8fdaab3]{right:0}.upCursor[data-v-a8fdaab3]{cursor:n-resize}.downCursor[data-v-a8fdaab3]{cursor:s-resize}.pageLoading[data-v-04027168]{display:inline-flex;height:100vh;width:100vw;justify-content:center;align-items:center}.twoPages[data-v-04027168]{max-width:50vw}.pagePlaceholder[data-v-04027168]{height:50%!important;width:50%!important}.pageError[data-v-97fa48e8]{height:100vh}.pageError[data-v-97fa48e8] .v-icon,.pageError[data-v-97fa48e8] .v-empty-state__headline{color:rgb(var(--v-theme-error))!important}.twoPages[data-v-97fa48e8]{max-width:50vw}.img[data-v-f0601a0d]{transition:transform .5s ease-in-out}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{object-fit:contain}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d],.fitToHeight[data-v-f0601a0d],.fitToHeightTwo[data-v-f0601a0d],.fitToHeightVertical[data-v-f0601a0d]{height:100vh}.fitToScreenTwo[data-v-f0601a0d]{max-width:50vw}.fitToWidth[data-v-f0601a0d],.fitToWidthVertical[data-v-f0601a0d],.fitToScreen[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{width:100vw}.fitToWidthTwo[data-v-f0601a0d]{width:50vw}.fitToOrig[data-v-f0601a0d],.fitToOrigTwo[data-v-f0601a0d],.fitToOrigVertical[data-v-f0601a0d]{object-fit:none}.page[data-v-ea178cb3]{font-size:0}.scaleForScroll[data-v-a222c504]{overflow:scroll;-webkit-overflow-scrolling:touch}.resetIcon[data-v-a222c504]{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 45px);right:50%;transform:translate(50%);z-index:200;font-size:50px;color:#fff;filter:drop-shadow(1px 1px 1px black);opacity:.666}.resetIcon[data-v-a222c504]:hover{opacity:1}.noWrap[data-v-ce77a1b1]{white-space:nowrap}.horizontalPage[data-v-ce77a1b1]{display:inline-block}.changeColumn[data-v-349ebac6]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.prev[data-v-349ebac6]{left:0;cursor:w-resize}.next[data-v-349ebac6]{right:0;cursor:e-resize}.windowItem[data-v-17343bd0]{font-size:0}.verticalPage[data-v-17541277]{display:block}[data-v-17541277] .v-virtual-scroll__item{position:relative}.pageTracker[data-v-17541277]{position:absolute;top:0;z-index:15;width:100%;height:calc((100vh - env(safe-area-inset-bottom))*.95)}.pageTrackerToolbars[data-v-17541277]{height:calc((100vh - env(safe-area-inset-bottom) - 186px)*.95)!important}[data-v-36f4263b] .windowItem{min-height:100vh;text-align:center}[data-v-36f4263b] .v-window__controls{position:fixed;top:48px;height:calc(100vh - 96px);padding:0}#downloadPanel[data-v-5eb3869f]{background-color:rgb(var(--v-theme-background))}[data-v-1624cd48] .v-expansion-panel-title--active{min-height:48px!important}[data-v-1624cd48] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.highlight-table[data-v-1624cd48]{margin-top:10px;border-collapse:collapse;color:rgb(var(--v-theme-textDisabled))}h4[data-v-1624cd48]{padding-left:.5em;color:rgb(var(--v-theme-textSecondary))}.highlight-table tr[data-v-1624cd48]:nth-child(odd){background-color:rgb(var(--v-theme-surface))!important}.highlight-table td[data-v-1624cd48]{min-width:60px;padding:5px}.highlight-table td[data-v-1624cd48]:first-child{text-align:center}.keyIcon[data-v-1624cd48]{margin:0}#readerKeyboardShortcuts[data-v-699651a3]{background-color:rgb(var(--v-theme-background))}#shortcutsTitle[data-v-699651a3]{padding:0 10px 0 17px;font-size:16px}#keyboardShortcutsItem[data-v-699651a3]{padding-left:0}[data-v-699651a3] .v-expansion-panel-title--active{min-height:48px!important}[data-v-699651a3] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.scopeRadioButton[data-v-42dbb202]{padding-top:10px}.readerDrawerItem[data-v-42dbb202]{padding-left:15px;padding-right:env(safe-area-inset-right)}.displayTwoPages[data-v-42dbb202]{margin-top:5px;margin-bottom:10px}#clearSettingsButton[data-v-42dbb202]{margin-top:6px;margin-bottom:4px}#readerScopedSettings[data-v-42dbb202]{background-color:#191919;margin:4px 8px 5px 10px;padding-left:5px;padding-top:4px}.arcSelect[data-v-62bf79bd]{min-width:74px}#arcPos[data-v-62bf79bd]{height:22.75px;padding-top:4px;font-size:16px;letter-spacing:-.15em}[data-v-62bf79bd] .v-select__selection{color:rgb(var(--v-theme-textSecondary))!important}[data-v-62bf79bd] .v-select__selection .arcSelectIcon{top:4px;color:rgb(var(--v-theme-textSecondary))}[data-v-62bf79bd] .v-select__selection:hover .arcSelectIcon{color:#fff}[data-v-62bf79bd] .v-list-item__spacer{max-width:12px}#readerToolbarTop[data-v-dc4c0fde]{position:fixed;top:0;width:100%;padding-top:env(safe-area-inset-top);padding-left:0;padding-right:0;z-index:20}.closeBook[data-v-dc4c0fde]{padding-left:max(18px,env(safe-area-inset-left) / 2)}.readerTitle[data-v-dc4c0fde]{padding-left:calc(env(safe-area-inset-left)/2);padding-right:calc(env(safe-area-inset-left)/2);text-align:center;white-space:nowrap;overflow:scroll}.readerTitle[data-v-dc4c0fde]{padding-bottom:4px}#title[data-v-dc4c0fde]{font-size:clamp(18px,3vw,20px)}#subtitle[data-v-dc4c0fde]{font-size:clamp(16px,3vw,18px);color:rgb(var(--v-theme-textSecondary));padding-bottom:10px}@media (max-width: 599.98px){.closeBook[data-v-dc4c0fde]{padding-left:max(10px,env(safe-area-inset-left) / 2)}}.bookChangeNavButtonLeft[data-v-0cead61e]{padding-left:max(15px,env(safe-area-inset-left) / 3)}.bookChangeNavButtonRight[data-v-0cead61e]{padding-right:max(15px,env(safe-area-inset-right) / 3)}.readerNavButton[data-v-530fba8c]{padding-left:15px;padding-right:15px}.readerNavButtonLeft[data-v-530fba8c]{padding-left:max(15px,env(safe-area-inset-left) / 3)!important}.readerNavButtonRight[data-v-530fba8c]{padding-right:max(15px,env(safe-area-inset-right) / 3)!important}#readerToolbarNav[data-v-955ab3ce]{padding-left:0;padding-right:0;padding-bottom:env(safe-area-inset-top)}#readerContainer[data-v-4f31abfa]{max-width:100%;position:relative}
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.bookChangeDrawer[data-v-bd4115bf]{opacity:.75!important;z-index:15!important}.drawerActivated[data-v-bd4115bf]{width:33vw!important}.prevCursor[data-v-bd4115bf]{cursor:n-resize}.nextCursor[data-v-bd4115bf]{cursor:s-resize}.navLink[data-v-bd4115bf]{display:block;height:100%}.bookChangeIcon[data-v-bd4115bf]{top:50%;left:50%;transform:translate(-50%) translateY(-50%);height:25%;width:25%;color:#fff}.changeColumn[data-v-a8fdaab3]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.leftPos[data-v-a8fdaab3]{left:0}.rightPos[data-v-a8fdaab3]{right:0}.upCursor[data-v-a8fdaab3]{cursor:n-resize}.downCursor[data-v-a8fdaab3]{cursor:s-resize}.pageLoading[data-v-04027168]{display:inline-flex;height:100vh;width:100vw;justify-content:center;align-items:center}.twoPages[data-v-04027168]{max-width:50vw}.pagePlaceholder[data-v-04027168]{height:50%!important;width:50%!important}.pageError[data-v-97fa48e8]{height:100vh}.pageError[data-v-97fa48e8] .v-icon,.pageError[data-v-97fa48e8] .v-empty-state__headline{color:rgb(var(--v-theme-error))!important}.twoPages[data-v-97fa48e8]{max-width:50vw}.img[data-v-f0601a0d]{transition:transform .5s ease-in-out}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{object-fit:contain}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d],.fitToHeight[data-v-f0601a0d],.fitToHeightTwo[data-v-f0601a0d],.fitToHeightVertical[data-v-f0601a0d]{height:100vh}.fitToScreenTwo[data-v-f0601a0d]{max-width:50vw}.fitToWidth[data-v-f0601a0d],.fitToWidthVertical[data-v-f0601a0d],.fitToScreen[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{width:100vw}.fitToWidthTwo[data-v-f0601a0d]{width:50vw}.fitToOrig[data-v-f0601a0d],.fitToOrigTwo[data-v-f0601a0d],.fitToOrigVertical[data-v-f0601a0d]{object-fit:none}.page[data-v-ea178cb3]{font-size:0}.scaleForScroll[data-v-a222c504]{overflow:scroll;-webkit-overflow-scrolling:touch}.resetIcon[data-v-a222c504]{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 45px);right:50%;transform:translate(50%);z-index:200;font-size:50px;color:#fff;filter:drop-shadow(1px 1px 1px black);opacity:.666}.resetIcon[data-v-a222c504]:hover{opacity:1}.noWrap[data-v-ce77a1b1]{white-space:nowrap}.horizontalPage[data-v-ce77a1b1]{display:inline-block}.changeColumn[data-v-349ebac6]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.prev[data-v-349ebac6]{left:0;cursor:w-resize}.next[data-v-349ebac6]{right:0;cursor:e-resize}.windowItem[data-v-17343bd0]{font-size:0}.verticalPage[data-v-17541277]{display:block}[data-v-17541277] .v-virtual-scroll__item{position:relative}.pageTracker[data-v-17541277]{position:absolute;top:0;z-index:15;width:100%;height:calc((100vh - env(safe-area-inset-bottom))*.95)}.pageTrackerToolbars[data-v-17541277]{height:calc((100vh - env(safe-area-inset-bottom) - 186px)*.95)!important}[data-v-36f4263b] .windowItem{min-height:100vh;text-align:center}[data-v-36f4263b] .v-window__controls{position:fixed;top:48px;height:calc(100vh - 96px);padding:0}#downloadPanel[data-v-5eb3869f]{background-color:rgb(var(--v-theme-background))}[data-v-1624cd48] .v-expansion-panel-title--active{min-height:48px!important}[data-v-1624cd48] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.highlight-table[data-v-1624cd48]{margin-top:10px;border-collapse:collapse;color:rgb(var(--v-theme-textDisabled))}h4[data-v-1624cd48]{padding-left:.5em;color:rgb(var(--v-theme-textSecondary))}.highlight-table tr[data-v-1624cd48]:nth-child(odd){background-color:rgb(var(--v-theme-surface))!important}.highlight-table td[data-v-1624cd48]{min-width:60px;padding:5px}.highlight-table td[data-v-1624cd48]:first-child{text-align:center}.keyIcon[data-v-1624cd48]{margin:0}#readerKeyboardShortcuts[data-v-699651a3]{background-color:rgb(var(--v-theme-background))}#shortcutsTitle[data-v-699651a3]{padding:0 10px 0 17px;font-size:16px}#keyboardShortcutsItem[data-v-699651a3]{padding-left:0}[data-v-699651a3] .v-expansion-panel-title--active{min-height:48px!important}[data-v-699651a3] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.scopeRadioButton[data-v-42dbb202]{padding-top:10px}.readerDrawerItem[data-v-42dbb202]{padding-left:15px;padding-right:env(safe-area-inset-right)}.displayTwoPages[data-v-42dbb202]{margin-top:5px;margin-bottom:10px}#clearSettingsButton[data-v-42dbb202]{margin-top:6px;margin-bottom:4px}#readerScopedSettings[data-v-42dbb202]{background-color:#191919;margin:4px 8px 5px 10px;padding-left:5px;padding-top:4px}.arcSelect[data-v-62bf79bd]{min-width:74px}#arcPos[data-v-62bf79bd]{height:22.75px;padding-top:4px;font-size:16px;letter-spacing:-.15em}[data-v-62bf79bd] .v-select__selection{color:rgb(var(--v-theme-textSecondary))!important}[data-v-62bf79bd] .v-select__selection .arcSelectIcon{top:4px;color:rgb(var(--v-theme-textSecondary))}[data-v-62bf79bd] .v-select__selection:hover .arcSelectIcon{color:#fff}[data-v-62bf79bd] .v-list-item__spacer{max-width:12px}#readerToolbarTop[data-v-dc4c0fde]{position:fixed;top:0;width:100%;padding-top:env(safe-area-inset-top);padding-left:0;padding-right:0;z-index:20}.closeBook[data-v-dc4c0fde]{padding-left:max(18px,env(safe-area-inset-left) / 2)}.readerTitle[data-v-dc4c0fde]{padding-left:calc(env(safe-area-inset-left)/2);padding-right:calc(env(safe-area-inset-left)/2);text-align:center;white-space:nowrap;overflow:scroll}.readerTitle[data-v-dc4c0fde]{padding-bottom:4px}#title[data-v-dc4c0fde]{font-size:clamp(18px,3vw,20px)}#subtitle[data-v-dc4c0fde]{font-size:clamp(16px,3vw,18px);color:rgb(var(--v-theme-textSecondary));padding-bottom:10px}@media (max-width: 599.98px){.closeBook[data-v-dc4c0fde]{padding-left:max(10px,env(safe-area-inset-left) / 2)}}.bookChangeNavButtonLeft[data-v-
|
|
1
|
+
.bookChangeDrawer[data-v-bd4115bf]{opacity:.75!important;z-index:15!important}.drawerActivated[data-v-bd4115bf]{width:33vw!important}.prevCursor[data-v-bd4115bf]{cursor:n-resize}.nextCursor[data-v-bd4115bf]{cursor:s-resize}.navLink[data-v-bd4115bf]{display:block;height:100%}.bookChangeIcon[data-v-bd4115bf]{top:50%;left:50%;transform:translate(-50%) translateY(-50%);height:25%;width:25%;color:#fff}.changeColumn[data-v-a8fdaab3]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.leftPos[data-v-a8fdaab3]{left:0}.rightPos[data-v-a8fdaab3]{right:0}.upCursor[data-v-a8fdaab3]{cursor:n-resize}.downCursor[data-v-a8fdaab3]{cursor:s-resize}.pageLoading[data-v-04027168]{display:inline-flex;height:100vh;width:100vw;justify-content:center;align-items:center}.twoPages[data-v-04027168]{max-width:50vw}.pagePlaceholder[data-v-04027168]{height:50%!important;width:50%!important}.pageError[data-v-97fa48e8]{height:100vh}.pageError[data-v-97fa48e8] .v-icon,.pageError[data-v-97fa48e8] .v-empty-state__headline{color:rgb(var(--v-theme-error))!important}.twoPages[data-v-97fa48e8]{max-width:50vw}.img[data-v-f0601a0d]{transition:transform .5s ease-in-out}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{object-fit:contain}.fitToScreen[data-v-f0601a0d],.fitToScreenTwo[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d],.fitToHeight[data-v-f0601a0d],.fitToHeightTwo[data-v-f0601a0d],.fitToHeightVertical[data-v-f0601a0d]{height:100vh}.fitToScreenTwo[data-v-f0601a0d]{max-width:50vw}.fitToWidth[data-v-f0601a0d],.fitToWidthVertical[data-v-f0601a0d],.fitToScreen[data-v-f0601a0d],.fitToScreenVertical[data-v-f0601a0d]{width:100vw}.fitToWidthTwo[data-v-f0601a0d]{width:50vw}.fitToOrig[data-v-f0601a0d],.fitToOrigTwo[data-v-f0601a0d],.fitToOrigVertical[data-v-f0601a0d]{object-fit:none}.page[data-v-ea178cb3]{font-size:0}.scaleForScroll[data-v-a222c504]{overflow:scroll;-webkit-overflow-scrolling:touch}.resetIcon[data-v-a222c504]{position:fixed;bottom:calc(env(safe-area-inset-bottom) + 45px);right:50%;transform:translate(50%);z-index:200;font-size:50px;color:#fff;filter:drop-shadow(1px 1px 1px black);opacity:.666}.resetIcon[data-v-a222c504]:hover{opacity:1}.noWrap[data-v-ce77a1b1]{white-space:nowrap}.horizontalPage[data-v-ce77a1b1]{display:inline-block}.changeColumn[data-v-349ebac6]{position:fixed;top:48px;height:calc(100vh - 96px);width:33vw}.prev[data-v-349ebac6]{left:0;cursor:w-resize}.next[data-v-349ebac6]{right:0;cursor:e-resize}.windowItem[data-v-17343bd0]{font-size:0}.verticalPage[data-v-17541277]{display:block}[data-v-17541277] .v-virtual-scroll__item{position:relative}.pageTracker[data-v-17541277]{position:absolute;top:0;z-index:15;width:100%;height:calc((100vh - env(safe-area-inset-bottom))*.95)}.pageTrackerToolbars[data-v-17541277]{height:calc((100vh - env(safe-area-inset-bottom) - 186px)*.95)!important}[data-v-36f4263b] .windowItem{min-height:100vh;text-align:center}[data-v-36f4263b] .v-window__controls{position:fixed;top:48px;height:calc(100vh - 96px);padding:0}#downloadPanel[data-v-5eb3869f]{background-color:rgb(var(--v-theme-background))}[data-v-1624cd48] .v-expansion-panel-title--active{min-height:48px!important}[data-v-1624cd48] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.highlight-table[data-v-1624cd48]{margin-top:10px;border-collapse:collapse;color:rgb(var(--v-theme-textDisabled))}h4[data-v-1624cd48]{padding-left:.5em;color:rgb(var(--v-theme-textSecondary))}.highlight-table tr[data-v-1624cd48]:nth-child(odd){background-color:rgb(var(--v-theme-surface))!important}.highlight-table td[data-v-1624cd48]{min-width:60px;padding:5px}.highlight-table td[data-v-1624cd48]:first-child{text-align:center}.keyIcon[data-v-1624cd48]{margin:0}#readerKeyboardShortcuts[data-v-699651a3]{background-color:rgb(var(--v-theme-background))}#shortcutsTitle[data-v-699651a3]{padding:0 10px 0 17px;font-size:16px}#keyboardShortcutsItem[data-v-699651a3]{padding-left:0}[data-v-699651a3] .v-expansion-panel-title--active{min-height:48px!important}[data-v-699651a3] .v-expansion-panel-text__wrapper{padding-left:10px;padding-right:10px}.scopeRadioButton[data-v-42dbb202]{padding-top:10px}.readerDrawerItem[data-v-42dbb202]{padding-left:15px;padding-right:env(safe-area-inset-right)}.displayTwoPages[data-v-42dbb202]{margin-top:5px;margin-bottom:10px}#clearSettingsButton[data-v-42dbb202]{margin-top:6px;margin-bottom:4px}#readerScopedSettings[data-v-42dbb202]{background-color:#191919;margin:4px 8px 5px 10px;padding-left:5px;padding-top:4px}.arcSelect[data-v-62bf79bd]{min-width:74px}#arcPos[data-v-62bf79bd]{height:22.75px;padding-top:4px;font-size:16px;letter-spacing:-.15em}[data-v-62bf79bd] .v-select__selection{color:rgb(var(--v-theme-textSecondary))!important}[data-v-62bf79bd] .v-select__selection .arcSelectIcon{top:4px;color:rgb(var(--v-theme-textSecondary))}[data-v-62bf79bd] .v-select__selection:hover .arcSelectIcon{color:#fff}[data-v-62bf79bd] .v-list-item__spacer{max-width:12px}#readerToolbarTop[data-v-dc4c0fde]{position:fixed;top:0;width:100%;padding-top:env(safe-area-inset-top);padding-left:0;padding-right:0;z-index:20}.closeBook[data-v-dc4c0fde]{padding-left:max(18px,env(safe-area-inset-left) / 2)}.readerTitle[data-v-dc4c0fde]{padding-left:calc(env(safe-area-inset-left)/2);padding-right:calc(env(safe-area-inset-left)/2);text-align:center;white-space:nowrap;overflow:scroll}.readerTitle[data-v-dc4c0fde]{padding-bottom:4px}#title[data-v-dc4c0fde]{font-size:clamp(18px,3vw,20px)}#subtitle[data-v-dc4c0fde]{font-size:clamp(16px,3vw,18px);color:rgb(var(--v-theme-textSecondary));padding-bottom:10px}@media (max-width: 599.98px){.closeBook[data-v-dc4c0fde]{padding-left:max(10px,env(safe-area-inset-left) / 2)}}.bookChangeNavButtonLeft[data-v-0cead61e]{padding-left:max(15px,env(safe-area-inset-left) / 3)}.bookChangeNavButtonRight[data-v-0cead61e]{padding-right:max(15px,env(safe-area-inset-right) / 3)}.readerNavButton[data-v-530fba8c]{padding-left:15px;padding-right:15px}.readerNavButtonLeft[data-v-530fba8c]{padding-left:max(15px,env(safe-area-inset-left) / 3)!important}.readerNavButtonRight[data-v-530fba8c]{padding-right:max(15px,env(safe-area-inset-right) / 3)!important}#readerToolbarNav[data-v-955ab3ce]{padding-left:0;padding-right:0;padding-bottom:env(safe-area-inset-top)}#readerContainer[data-v-4f31abfa]{max-width:100%;position:relative}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bH as Ut,_ as X,bI as Wt,o as E,c as q,i as D,w as ae,L as et,C as Le,m as tt,x as at,bJ as Me,a1 as ze,r as ie,a as i,D as Kt,n as Qt,e as Q,bK as Yt,p as B,a0 as G,W as Jt,aP as Xt,g as W,k as Y,aS as ue,aR as Zt,aQ as ea,bo as pe,aT as $e,l as ve,be as ta,f as k,b5 as de,t as T,h as Z,b7 as qe,aW as Ue,bh as lt,aV as le,bL as nt,aU as rt,j as ne,b6 as Re,bM as aa,q as L,bN as la,bO as na,bP as st,bE as Fe,bQ as me,bR as ce,bn as Ee,F as J,b as We,bS as Ae,N as Ke,bT as fe,bU as ot,a7 as ra,B as it,ai as sa,bV as oa,A as Qe}from"./main-H14uUxuN.js";import{V as z,i as ia,t as ua,q as da,e as ca,p as fa,D as va,A as ma,L as ga}from"./VDialog-DbN2FfmF.js";import{S as ha,d as ba}from"./VTextField-D9pqgz_R.js";import{c as ut,e as Ne,g as ya,h as pa,i as xa}from"./VSelect-BTy7SKk0.js";import{m as Sa,g as wa,a as Pa,c as ka,V as Ye}from"./transition-CQVFPpmZ.js";import{V as Ge}from"./VCheckboxBtn-DnBH3a96.js";import{m as _a,V as ge}from"./VTable-R3X0iPjV.js";import{m as dt,u as ct}from"./filter-CmOjoKbH.js";import{a as Da}from"./VSlideGroup-BtfHoWCn.js";import{C as Ia}from"./confirm-dialog-Iyuhxfyi.js";function Je(e,l,a){return Object.keys(e).filter(t=>Ut(t)&&t.endsWith(l)).reduce((t,n)=>(t[n.slice(0,-l.length)]=r=>e[n](r,a(r)),t),{})}const Ta={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:Wt}}};function Va(e,l,a,t,n,r){return a.update?(E(),q(z,D({key:0,icon:n.mdiPencil},e.$attrs,{size:a.size,density:a.density}),null,16,["icon","size","density"])):(E(),q(z,D({key:1},e.$attrs,{size:a.size,density:a.density}),{default:ae(()=>[et("span",null,"+ "+Le(a.table),1)]),_:1},16,["size","density"]))}const Ca=X(Ta,[["render",Va]]),Ba={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:Ca,SubmitFooter:ha},props:{table:{type:String,required:!0},label:{type:String,default:""},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return this.label||this.table},buttonTitle(){return(this.oldRow?"Edit":"Add")+" "+this.title}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...tt(at,["createRow","updateRow"]),validate(){let e=!1;for(const[a,t]of Object.entries(this.row))if(!Me(this.oldRow[a],t)){e=!0;break}if(!e)return!1;const l=this.$refs.form;return l?l.validate().then(({valid:a})=>a).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return ze(this.inputs.EMPTY_ROW);const l={};for(const a of this.inputs.UPDATE_KEYS)l[a]=ze(this.oldRow[a]);return l},doUpdate:function(){const e={};for(const[l,a]of Object.entries(this.row))Me(this.oldRow[l],a)||(e[l]=a);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:l})=>{if(l)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function Ra(e,l,a,t,n,r){const o=ie("AdminCreateUpdateButton"),s=ie("SubmitFooter");return E(),q(ia,D({modelValue:n.showDialog,"onUpdate:modelValue":l[1]||(l[1]=u=>n.showDialog=u),transition:"scale-transition"},e.$attrs),{activator:ae(({props:u})=>[i(o,D({update:!!a.oldRow,table:a.table,label:a.label},u,{size:a.size,density:a.density,title:r.buttonTitle}),null,16,["update","table","label","size","density","title"])]),default:ae(()=>[i(ba,{ref:"form",class:"cuForm"},{default:ae(()=>[et("h2",null,Le(r.title),1),(E(),q(Kt(a.inputs),{"old-row":a.oldRow,onChange:r.change},null,40,["old-row","onChange"])),i(s,{verb:r.verb,table:a.table,label:a.label,disabled:!n.submitButtonEnabled,onSubmit:r.submit,onCancel:l[0]||(l[0]=u=>n.showDialog=!1)},null,8,["verb","table","label","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Il=X(Ba,[["render",Ra],["__scopeId","data-v-b61575f9"]]),Fa={name:"GroupChip",props:{titleKey:{type:String,default:""},groupType:{type:Boolean,default:void 0},item:{type:Object,default:void 0}},computed:{classes(){let e={};return this.groupType&&this.item&&(e.include=!this.item.exclude,e.exclude=this.item.exclude),e},text(){return this.item&&this.titleKey?this.item[this.titleKey]:""},value(){if(this.item)return this.groupType?this.item.exclude:this.item.value}}};function Aa(e,l,a,t,n,r){return E(),q(ut,{class:Qt(r.classes),text:r.text,value:r.value},null,8,["class","text","value"])}const ft=X(Fa,[["render",Aa],["__scopeId","data-v-495e15c6"]]),$a={name:"AdminRelationPicker",components:{GroupChip:ft},props:{objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{vuetifyItems(){const e=[];for(const l of this.objs)e.push({...l,value:l.pk,title:l[this.titleKey]});return e}}};function Oa(e,l,a,t,n,r){const o=ie("GroupChip");return E(),q(Ne,D({chips:!0,"closable-chips":!0,density:"compact",multiple:!0,items:r.vuetifyItems},e.$attrs),{chip:ae(({item:s})=>[i(o,{"title-key":"title",item:s,"group-type":a.groupType},null,8,["item","group-type"])]),_:1},16,["items"])}const Tl=X($a,[["render",Oa]]);function La(){const e=Q([]);Yt(()=>e.value=[]);function l(a,t){e.value[t]=a}return{refs:e,updateRef:l}}const Ea=B({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:G,default:"$first"},prevIcon:{type:G,default:"$prev"},nextIcon:{type:G,default:"$next"},lastIcon:{type:G,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ua(),...Jt(),...Sa(),...da(),...ca(),...wa(),...Pa({tag:"nav"}),...Xt(),...fa({variant:"text"})},"VPagination"),Xe=W()({name:"VPagination",props:Ea(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,l){let{slots:a,emit:t}=l;const n=Y(e,"modelValue"),{t:r,n:o}=ue(),{isRtl:s}=Zt(),{themeClasses:u}=ea(e),{width:c}=pe(),m=$e(-1);ve(void 0,{scoped:!0});const{resizeRef:y}=ta(b=>{if(!b.length)return;const{target:d,contentRect:w}=b[0],P=d.querySelector(".v-pagination__list > *");if(!P)return;const I=w.width,C=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;m.value=S(I,C)}),v=k(()=>parseInt(e.length,10)),x=k(()=>parseInt(e.start,10)),h=k(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):m.value>=0?m.value:S(c.value,58));function S(b,d){const w=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((b-d*w)/d).toFixed(2)))}const g=k(()=>{if(v.value<=0||isNaN(v.value)||v.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[n.value];if(v.value<=h.value)return de(v.value,x.value);const b=h.value%2===0,d=b?h.value/2:Math.floor(h.value/2),w=b?d:d+1,P=v.value-d;if(w-n.value>=0)return[...de(Math.max(1,h.value-1),x.value),e.ellipsis,v.value];if(n.value-P>=(b?1:0)){const I=h.value-1,C=v.value-I+x.value;return[x.value,e.ellipsis,...de(I,C)]}else{const I=Math.max(1,h.value-3),C=I===1?n.value:n.value-Math.ceil(I/2)+x.value;return[x.value,e.ellipsis,...de(I,C),e.ellipsis,v.value]}});function p(b,d,w){b.preventDefault(),n.value=d,w&&t(w,d)}const{refs:f,updateRef:V}=La();ve({VPaginationBtn:{color:T(e,"color"),border:T(e,"border"),density:T(e,"density"),size:T(e,"size"),variant:T(e,"variant"),rounded:T(e,"rounded"),elevation:T(e,"elevation")}});const R=k(()=>g.value.map((b,d)=>{const w=P=>V(P,d);if(typeof b=="string")return{isActive:!1,key:`ellipsis-${d}`,page:b,props:{ref:w,ellipsis:!0,icon:!0,disabled:!0}};{const P=b===n.value;return{isActive:P,key:b,page:o(b),props:{ref:w,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:P?e.activeColor:e.color,"aria-current":P,"aria-label":r(P?e.currentPageAriaLabel:e.pageAriaLabel,b),onClick:I=>p(I,b)}}}})),_=k(()=>{const b=!!e.disabled||n.value<=x.value,d=!!e.disabled||n.value>=x.value+v.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:w=>p(w,x.value,"first"),disabled:b,"aria-label":r(e.firstAriaLabel),"aria-disabled":b}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:w=>p(w,n.value-1,"prev"),disabled:b,"aria-label":r(e.previousAriaLabel),"aria-disabled":b},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:w=>p(w,n.value+1,"next"),disabled:d,"aria-label":r(e.nextAriaLabel),"aria-disabled":d},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:w=>p(w,x.value+v.value-1,"last"),disabled:d,"aria-label":r(e.lastAriaLabel),"aria-disabled":d}:void 0}});function N(){var d;const b=n.value-x.value;(d=f.value[b])==null||d.$el.focus()}function j(b){b.key===qe.left&&!e.disabled&&n.value>+e.start?(n.value=n.value-1,Ue(N)):b.key===qe.right&&!e.disabled&&n.value<x.value+v.value-1&&(n.value=n.value+1,Ue(N))}return Z(()=>i(e.tag,{ref:y,class:["v-pagination",u.value,e.class],style:e.style,role:"navigation","aria-label":r(e.ariaLabel),onKeydown:j,"data-test":"v-pagination-root"},{default:()=>[i("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&i("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[a.first?a.first(_.value.first):i(z,D({_as:"VPaginationBtn"},_.value.first),null)]),i("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[a.prev?a.prev(_.value.prev):i(z,D({_as:"VPaginationBtn"},_.value.prev),null)]),R.value.map((b,d)=>i("li",{key:b.key,class:["v-pagination__item",{"v-pagination__item--is-active":b.isActive}],"data-test":"v-pagination-item"},[a.item?a.item(b):i(z,D({_as:"VPaginationBtn"},b.props),{default:()=>[b.page]})])),i("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[a.next?a.next(_.value.next):i(z,D({_as:"VPaginationBtn"},_.value.next),null)]),e.showFirstLastPage&&i("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[a.last?a.last(_.value.last):i(z,D({_as:"VPaginationBtn"},_.value.last),null)])])]})),{}}}),Na=B({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),vt=Symbol.for("vuetify:data-table-pagination");function Ga(e){const l=Y(e,"page",void 0,t=>+(t??1)),a=Y(e,"itemsPerPage",void 0,t=>+(t??10));return{page:l,itemsPerPage:a}}function ja(e){const{page:l,itemsPerPage:a,itemsLength:t}=e,n=k(()=>a.value===-1?0:a.value*(l.value-1)),r=k(()=>a.value===-1?t.value:Math.min(t.value,n.value+a.value)),o=k(()=>a.value===-1||t.value===0?1:Math.ceil(t.value/a.value));lt(()=>{l.value>o.value&&(l.value=o.value)});function s(v){a.value=v,l.value=1}function u(){l.value=Re(l.value+1,1,o.value)}function c(){l.value=Re(l.value-1,1,o.value)}function m(v){l.value=Re(v,1,o.value)}const y={page:l,itemsPerPage:a,startIndex:n,stopIndex:r,pageCount:o,itemsLength:t,nextPage:u,prevPage:c,setPage:m,setItemsPerPage:s};return le(vt,y),y}function Ha(){const e=ne(vt);if(!e)throw new Error("Missing pagination!");return e}function Ma(e){const l=nt("usePaginatedItems"),{items:a,startIndex:t,stopIndex:n,itemsPerPage:r}=e,o=k(()=>r.value<=0?a.value:a.value.slice(t.value,n.value));return rt(o,s=>{l.emit("update:currentItems",s)}),{paginatedItems:o}}const mt=B({prevIcon:{type:G,default:"$prev"},nextIcon:{type:G,default:"$next"},firstIcon:{type:G,default:"$first"},lastIcon:{type:G,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Ze=W()({name:"VDataTableFooter",props:mt(),setup(e,l){let{slots:a}=l;const{t}=ue(),{page:n,pageCount:r,startIndex:o,stopIndex:s,itemsLength:u,itemsPerPage:c,setItemsPerPage:m}=Ha(),y=k(()=>e.itemsPerPageOptions.map(v=>typeof v=="number"?{value:v,title:v===-1?t("$vuetify.dataFooter.itemsPerPageAll"):String(v)}:{...v,title:isNaN(Number(v.title))?t(v.title):v.title}));return Z(()=>{var x;const v=Xe.filterProps(e);return i("div",{class:"v-data-table-footer"},[(x=a.prepend)==null?void 0:x.call(a),i("div",{class:"v-data-table-footer__items-per-page"},[i("span",null,[t(e.itemsPerPageText)]),i(Ne,{items:y.value,modelValue:c.value,"onUpdate:modelValue":h=>m(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),i("div",{class:"v-data-table-footer__info"},[i("div",null,[t(e.pageText,u.value?o.value+1:0,s.value,u.value)])]),i("div",{class:"v-data-table-footer__pagination"},[i(Xe,D({modelValue:n.value,"onUpdate:modelValue":h=>n.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:r.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},v),null)])])}),{}}}),he=aa({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,l)=>{let{slots:a}=l;const t=e.tag??"td";return i(t,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:L(e.height),width:L(e.width),maxWidth:L(e.maxWidth),left:L(e.fixedOffset||null)}},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a)]}})}),za=B({headers:Array},"DataTable-header"),gt=Symbol.for("vuetify:data-table-headers"),ht={title:"",sortable:!1},qa={...ht,width:48};function Ua(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,t)=>{let n=!1;for(let r=0;r<l.length;r++)if(l[r].priority>t){l.splice(r,0,{element:a,priority:t}),n=!0;break}n||l.push({element:a,priority:t})},size:()=>l.length,count:()=>{let a=0;if(!l.length)return 0;const t=Math.floor(l[0].priority);for(let n=0;n<l.length;n++)Math.floor(l[n].priority)===t&&(a+=1);return a},dequeue:()=>l.shift()}}function Oe(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)l.push(e);else for(const a of e.children)Oe(a,l);return l}function bt(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const a of e)a.key&&l.add(a.key),a.children&&bt(a.children,l);return l}function Wa(e){if(e.key){if(e.key==="data-table-group")return ht;if(["data-table-expand","data-table-select"].includes(e.key))return qa}}function je(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(l,...e.children.map(a=>je(a,l+1))):l}function Ka(e){let l=!1;function a(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r)if(o&&(r.fixed=!0),r.fixed)if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s],!0);else l?isNaN(+r.width)&&na(`Multiple fixed columns should have a static width (key: ${r.key})`):r.lastFixed=!0,l=!0;else if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s]);else l=!1}for(let r=e.length-1;r>=0;r--)a(e[r]);function t(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return o;if(r.children){r.fixedOffset=o;for(const s of r.children)o=t(s,o)}else r.fixed&&(r.fixedOffset=o,o+=parseFloat(r.width||"0")||0);return o}let n=0;for(const r of e)n=t(r,n)}function Qa(e,l){const a=[];let t=0;const n=Ua(e);for(;n.size()>0;){let o=n.count();const s=[];let u=1;for(;o>0;){const{element:c,priority:m}=n.dequeue(),y=l-t-je(c);if(s.push({...c,rowspan:y??1,colspan:c.children?Oe(c).length:1}),c.children)for(const v of c.children){const x=m%1+u/Math.pow(10,t+2);n.enqueue(v,t+y+x)}u+=1,o-=1}t+=1,a.push(s)}return{columns:e.map(o=>Oe(o)).flat(),headers:a}}function yt(e){const l=[];for(const a of e){const t={...Wa(a),...a},n=t.key??(typeof t.value=="string"?t.value:null),r=t.value??n??null,o={...t,key:n,value:r,sortable:t.sortable??(t.key!=null||!!t.sort),children:t.children?yt(t.children):void 0};l.push(o)}return l}function pt(e,l){const a=Q([]),t=Q([]),n=Q({}),r=Q({}),o=Q({});lt(()=>{var S,g,p;const c=(e.headers||Object.keys(e.items[0]??{}).map(f=>({key:f,title:la(f)}))).slice(),m=bt(c);(S=l==null?void 0:l.groupBy)!=null&&S.value.length&&!m.has("data-table-group")&&c.unshift({key:"data-table-group",title:"Group"}),(g=l==null?void 0:l.showSelect)!=null&&g.value&&!m.has("data-table-select")&&c.unshift({key:"data-table-select"}),(p=l==null?void 0:l.showExpand)!=null&&p.value&&!m.has("data-table-expand")&&c.push({key:"data-table-expand"});const y=yt(c);Ka(y);const v=Math.max(...y.map(f=>je(f)))+1,x=Qa(y,v);a.value=x.headers,t.value=x.columns;const h=x.headers.flat(1);for(const f of h)f.key&&(f.sortable&&(f.sort&&(n.value[f.key]=f.sort),f.sortRaw&&(r.value[f.key]=f.sortRaw)),f.filter&&(o.value[f.key]=f.filter))});const s={headers:a,columns:t,sortFunctions:n,sortRawFunctions:r,filterFunctions:o};return le(gt,s),s}function xe(){const e=ne(gt);if(!e)throw new Error("Missing headers!");return e}const Ya={showSelectAll:!1,allSelected:()=>[],select:e=>{var t;let{items:l,value:a}=e;return new Set(a?[(t=l[0])==null?void 0:t.value]:[])},selectAll:e=>{let{selected:l}=e;return l}},xt={showSelectAll:!0,allSelected:e=>{let{currentPage:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(n.value):t.delete(n.value);return t},selectAll:e=>{let{value:l,currentPage:a,selected:t}=e;return xt.select({items:a,value:l,selected:t})}},St={showSelectAll:!0,allSelected:e=>{let{allItems:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(n.value):t.delete(n.value);return t},selectAll:e=>{let{value:l,allItems:a,selected:t}=e;return St.select({items:a,value:l,selected:t})}},Ja=B({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:st}},"DataTable-select"),wt=Symbol.for("vuetify:data-table-selection");function Pt(e,l){let{allItems:a,currentPage:t}=l;const n=Y(e,"modelValue",e.modelValue,p=>new Set(Fe(p).map(f=>{var V;return((V=a.value.find(R=>e.valueComparator(f,R.value)))==null?void 0:V.value)??f})),p=>[...p.values()]),r=k(()=>a.value.filter(p=>p.selectable)),o=k(()=>t.value.filter(p=>p.selectable)),s=k(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Ya;case"all":return St;case"page":default:return xt}});function u(p){return Fe(p).every(f=>n.value.has(f.value))}function c(p){return Fe(p).some(f=>n.value.has(f.value))}function m(p,f){const V=s.value.select({items:p,value:f,selected:new Set(n.value)});n.value=V}function y(p){m([p],!u([p]))}function v(p){const f=s.value.selectAll({value:p,allItems:r.value,currentPage:o.value,selected:new Set(n.value)});n.value=f}const x=k(()=>n.value.size>0),h=k(()=>{const p=s.value.allSelected({allItems:r.value,currentPage:o.value});return!!p.length&&u(p)}),S=k(()=>s.value.showSelectAll),g={toggleSelect:y,select:m,selectAll:v,isSelected:u,isSomeSelected:c,someSelected:x,allSelected:h,showSelectAll:S};return le(wt,g),g}function Se(){const e=ne(wt);if(!e)throw new Error("Missing selection!");return e}const Xa=B({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),kt=Symbol.for("vuetify:data-table-sort");function _t(e){const l=Y(e,"sortBy"),a=T(e,"mustSort"),t=T(e,"multiSort");return{sortBy:l,mustSort:a,multiSort:t}}function Dt(e){const{sortBy:l,mustSort:a,multiSort:t,page:n}=e,r=u=>{if(u.key==null)return;let c=l.value.map(y=>({...y}))??[];const m=c.find(y=>y.key===u.key);m?m.order==="desc"?a.value?m.order="asc":c=c.filter(y=>y.key!==u.key):m.order="desc":t.value?c=[...c,{key:u.key,order:"asc"}]:c=[{key:u.key,order:"asc"}],l.value=c,n&&(n.value=1)};function o(u){return!!l.value.find(c=>c.key===u.key)}const s={sortBy:l,toggleSort:r,isSorted:o};return le(kt,s),s}function It(){const e=ne(kt);if(!e)throw new Error("Missing sort!");return e}function Tt(e,l,a,t){const n=ue();return{sortedItems:k(()=>{var o,s;return a.value.length?Za(l.value,a.value,n.current.value,{transform:t==null?void 0:t.transform,sortFunctions:{...e.customKeySort,...(o=t==null?void 0:t.sortFunctions)==null?void 0:o.value},sortRawFunctions:(s=t==null?void 0:t.sortRawFunctions)==null?void 0:s.value}):l.value})}}function Za(e,l,a,t){const n=new Intl.Collator(a,{sensitivity:"accent",usage:"sort"});return e.map(o=>[o,t!=null&&t.transform?t.transform(o):o]).sort((o,s)=>{var u,c;for(let m=0;m<l.length;m++){let y=!1;const v=l[m].key,x=l[m].order??"asc";if(x===!1)continue;let h=me(o[1],v),S=me(s[1],v),g=o[0].raw,p=s[0].raw;if(x==="desc"&&([h,S]=[S,h],[g,p]=[p,g]),(u=t==null?void 0:t.sortRawFunctions)!=null&&u[v]){const f=t.sortRawFunctions[v](g,p);if(f==null)continue;if(y=!0,f)return f}if((c=t==null?void 0:t.sortFunctions)!=null&&c[v]){const f=t.sortFunctions[v](h,S);if(f==null)continue;if(y=!0,f)return f}if(!y){if(h instanceof Date&&S instanceof Date)return h.getTime()-S.getTime();if([h,S]=[h,S].map(f=>f!=null?f.toString().toLocaleLowerCase():f),h!==S)return ce(h)&&ce(S)?0:ce(h)?-1:ce(S)?1:!isNaN(h)&&!isNaN(S)?Number(h)-Number(S):n.compare(h,S)}}return 0}).map(o=>{let[s]=o;return s})}const Vt=B({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:G,default:"$sortAsc"},sortDescIcon:{type:G,default:"$sortDesc"},headerProps:{type:Object},...Ee(),...va()},"VDataTableHeaders"),be=W()({name:"VDataTableHeaders",props:Vt(),setup(e,l){let{slots:a}=l;const{t}=ue(),{toggleSort:n,sortBy:r,isSorted:o}=It(),{someSelected:s,allSelected:u,selectAll:c,showSelectAll:m}=Se(),{columns:y,headers:v}=xe(),{loaderClasses:x}=ma(e);function h(b,d){if(!(!e.sticky&&!b.fixed))return{position:"sticky",left:b.fixed?L(b.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${d})`:void 0}}function S(b){const d=r.value.find(w=>w.key===b.key);return d?d.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:g,backgroundColorStyles:p}=ka(e,"color"),{displayClasses:f,mobile:V}=pe(e),R=k(()=>({headers:v.value,columns:y.value,toggleSort:n,isSorted:o,sortBy:r.value,someSelected:s.value,allSelected:u.value,selectAll:c,getSortIcon:S})),_=k(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},f.value,x.value]),N=b=>{let{column:d,x:w,y:P}=b;const I=d.key==="data-table-select"||d.key==="data-table-expand",C=D(e.headerProps??{},d.headerProps??{});return i(he,D({tag:"th",align:d.align,class:[{"v-data-table__th--sortable":d.sortable&&!e.disableSort,"v-data-table__th--sorted":o(d),"v-data-table__th--fixed":d.fixed},..._.value],style:{width:L(d.width),minWidth:L(d.minWidth),maxWidth:L(d.maxWidth),...h(d,P)},colspan:d.colspan,rowspan:d.rowspan,onClick:d.sortable?()=>n(d):void 0,fixed:d.fixed,nowrap:d.nowrap,lastFixed:d.lastFixed,noPadding:I},C),{default:()=>{var U;const H=`header.${d.key}`,ee={column:d,selectAll:c,isSorted:o,toggleSort:n,sortBy:r.value,someSelected:s.value,allSelected:u.value,getSortIcon:S};return a[H]?a[H](ee):d.key==="data-table-select"?((U=a["header.data-table-select"])==null?void 0:U.call(a,ee))??(m.value&&i(Ge,{modelValue:u.value,indeterminate:s.value&&!u.value,"onUpdate:modelValue":c},null)):i("div",{class:"v-data-table-header__content"},[i("span",null,[d.title]),d.sortable&&!e.disableSort&&i(Ye,{key:"icon",class:"v-data-table-header__sort-icon",icon:S(d)},null),e.multiSort&&o(d)&&i("div",{key:"badge",class:["v-data-table-header__sort-badge",...g.value],style:p.value},[r.value.findIndex(K=>K.key===d.key)+1])])}})},j=()=>{const b=D(e.headerProps??{}??{}),d=k(()=>y.value.filter(P=>(P==null?void 0:P.sortable)&&!e.disableSort)),w=k(()=>{if(y.value.find(I=>I.key==="data-table-select")!=null)return u.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff"});return i(he,D({tag:"th",class:[..._.value],colspan:v.value.length+1},b),{default:()=>[i("div",{class:"v-data-table-header__content"},[i(Ne,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:d.value,label:t("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],appendIcon:w.value,"onClick:append":()=>c(!u.value)},{...a,chip:P=>{var I;return i(ut,{onClick:(I=P.item.raw)!=null&&I.sortable?()=>n(P.item.raw):void 0,onMousedown:C=>{C.preventDefault(),C.stopPropagation()}},{default:()=>[P.item.title,i(Ye,{class:["v-data-table__td-sort-icon",o(P.item.raw)&&"v-data-table__td-sort-icon-active"],icon:S(P.item.raw),size:"small"},null)]})}})])]})};Z(()=>V.value?i("tr",null,[i(j,null,null)]):i(J,null,[a.headers?a.headers(R.value):v.value.map((b,d)=>i("tr",null,[b.map((w,P)=>i(N,{column:w,x:P,y:d},null))])),e.loading&&i("tr",{class:"v-data-table-progress"},[i("th",{colspan:y.value.length},[i(ga,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:a.loader})])])]))}}),Ct=B({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Bt=Symbol.for("vuetify:data-table-group");function Rt(e){return{groupBy:Y(e,"groupBy")}}function Ft(e){const{disableSort:l,groupBy:a,sortBy:t}=e,n=Q(new Set),r=k(()=>a.value.map(m=>({...m,order:m.order??!1})).concat(l!=null&&l.value?[]:t.value));function o(m){return n.value.has(m.id)}function s(m){const y=new Set(n.value);o(m)?y.delete(m.id):y.add(m.id),n.value=y}function u(m){function y(v){const x=[];for(const h of v.items)"type"in h&&h.type==="group"?x.push(...y(h)):x.push(h);return x}return y({type:"group",items:m,id:"dummy",key:"dummy",value:"dummy",depth:0})}const c={sortByWithGroups:r,toggleGroup:s,opened:n,groupBy:a,extractRows:u,isGroupOpen:o};return le(Bt,c),c}function At(){const e=ne(Bt);if(!e)throw new Error("Missing group!");return e}function el(e,l){if(!e.length)return[];const a=new Map;for(const t of e){const n=me(t.raw,l);a.has(n)||a.set(n,[]),a.get(n).push(t)}return a}function $t(e,l){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!l.length)return[];const n=el(e,l[0]),r=[],o=l.slice(1);return n.forEach((s,u)=>{const c=l[0],m=`${t}_${c}_${u}`;r.push({depth:a,id:m,key:c,value:u,items:o.length?$t(s,o,a+1,m):s,type:"group"})}),r}function Ot(e,l){const a=[];for(const t of e)"type"in t&&t.type==="group"?(t.value!=null&&a.push(t),(l.has(t.id)||t.value==null)&&a.push(...Ot(t.items,l))):a.push(t);return a}function Lt(e,l,a){return{flatItems:k(()=>{if(!l.value.length)return e.value;const n=$t(e.value,l.value.map(r=>r.key));return Ot(n,a.value)})}}const tl=B({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),al=W()({name:"VDataTableGroupHeaderRow",props:tl(),setup(e,l){let{slots:a}=l;const{isGroupOpen:t,toggleGroup:n,extractRows:r}=At(),{isSelected:o,isSomeSelected:s,select:u}=Se(),{columns:c}=xe(),m=k(()=>r([e.item]));return()=>i("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[c.value.map(y=>{var v,x;if(y.key==="data-table-group"){const h=t(e.item)?"$expand":"$next",S=()=>n(e.item);return((v=a["data-table-group"])==null?void 0:v.call(a,{item:e.item,count:m.value.length,props:{icon:h,onClick:S}}))??i(he,{class:"v-data-table-group-header-row__column"},{default:()=>[i(z,{size:"small",variant:"text",icon:h,onClick:S},null),i("span",null,[e.item.value]),i("span",null,[We("("),m.value.length,We(")")])]})}if(y.key==="data-table-select"){const h=o(m.value),S=s(m.value)&&!h,g=p=>u(m.value,p);return((x=a["data-table-select"])==null?void 0:x.call(a,{props:{modelValue:h,indeterminate:S,"onUpdate:modelValue":g}}))??i("td",null,[i(Ge,{modelValue:h,indeterminate:S,"onUpdate:modelValue":g},null)])}return i("td",null,null)})])}}),ll=B({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Et=Symbol.for("vuetify:datatable:expanded");function Nt(e){const l=T(e,"expandOnClick"),a=Y(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function t(s,u){const c=new Set(a.value);u?c.add(s.value):c.delete(s.value),a.value=c}function n(s){return a.value.has(s.value)}function r(s){t(s,!n(s))}const o={expand:t,expanded:a,expandOnClick:l,isExpanded:n,toggleExpand:r};return le(Et,o),o}function Gt(){const e=ne(Et);if(!e)throw new Error("foo");return e}const nl=B({index:Number,item:Object,cellProps:[Object,Function],onClick:Ae(),onContextmenu:Ae(),onDblclick:Ae(),...Ee()},"VDataTableRow"),jt=W()({name:"VDataTableRow",props:nl(),setup(e,l){let{slots:a}=l;const{displayClasses:t,mobile:n}=pe(e,"v-data-table__tr"),{isSelected:r,toggleSelect:o,someSelected:s,allSelected:u,selectAll:c}=Se(),{isExpanded:m,toggleExpand:y}=Gt(),{toggleSort:v,sortBy:x,isSorted:h}=It(),{columns:S}=xe();Z(()=>i("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},t.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&S.value.map((g,p)=>{const f=e.item,V=`item.${g.key}`,R=`header.${g.key}`,_={index:e.index,item:f.raw,internalItem:f,value:me(f.columns,g.key),column:g,isSelected:r,toggleSelect:o,isExpanded:m,toggleExpand:y},N={column:g,selectAll:c,isSorted:h,toggleSort:v,sortBy:x.value,someSelected:s.value,allSelected:u.value,getSortIcon:()=>""},j=typeof e.cellProps=="function"?e.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value,column:g}):e.cellProps,b=typeof g.cellProps=="function"?g.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value}):g.cellProps;return i(he,D({align:g.align,class:{"v-data-table__td--expanded-row":g.key==="data-table-expand","v-data-table__td--select-row":g.key==="data-table-select"},fixed:g.fixed,fixedOffset:g.fixedOffset,lastFixed:g.lastFixed,maxWidth:n.value?void 0:g.maxWidth,noPadding:g.key==="data-table-select"||g.key==="data-table-expand",nowrap:g.nowrap,width:n.value?void 0:g.width},j,b),{default:()=>{var w,P,I,C,H;if(a[V]&&!n.value)return(w=a[V])==null?void 0:w.call(a,_);if(g.key==="data-table-select")return((P=a["item.data-table-select"])==null?void 0:P.call(a,_))??i(Ge,{disabled:!f.selectable,modelValue:r([f]),onClick:Ke(()=>o(f),["stop"])},null);if(g.key==="data-table-expand")return((I=a["item.data-table-expand"])==null?void 0:I.call(a,_))??i(z,{icon:m(f)?"$collapse":"$expand",size:"small",variant:"text",onClick:Ke(()=>y(f),["stop"])},null);const d=Le(_.value);return n.value?i(J,null,[i("div",{class:"v-data-table__td-title"},[((C=a[R])==null?void 0:C.call(a,N))??g.title]),i("div",{class:"v-data-table__td-value"},[((H=a[V])==null?void 0:H.call(a,_))??d])]):d}})})]))}}),Ht=B({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Ee()},"VDataTableRows"),ye=W()({name:"VDataTableRows",inheritAttrs:!1,props:Ht(),setup(e,l){let{attrs:a,slots:t}=l;const{columns:n}=xe(),{expandOnClick:r,toggleExpand:o,isExpanded:s}=Gt(),{isSelected:u,toggleSelect:c}=Se(),{toggleGroup:m,isGroupOpen:y}=At(),{t:v}=ue(),{mobile:x}=pe(e);return Z(()=>{var h,S;return e.loading&&(!e.items.length||t.loading)?i("tr",{class:"v-data-table-rows-loading",key:"loading"},[i("td",{colspan:n.value.length},[((h=t.loading)==null?void 0:h.call(t))??v(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?i("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[i("td",{colspan:n.value.length},[((S=t["no-data"])==null?void 0:S.call(t))??v(e.noDataText)])]):i(J,null,[e.items.map((g,p)=>{var R;if(g.type==="group"){const _={index:p,item:g,columns:n.value,isExpanded:s,toggleExpand:o,isSelected:u,toggleSelect:c,toggleGroup:m,isGroupOpen:y};return t["group-header"]?t["group-header"](_):i(al,D({key:`group-header_${g.id}`,item:g},Je(a,":group-header",()=>_)),t)}const f={index:p,item:g.raw,internalItem:g,columns:n.value,isExpanded:s,toggleExpand:o,isSelected:u,toggleSelect:c},V={...f,props:D({key:`item_${g.key??g.index}`,onClick:r.value?()=>{o(g)}:void 0,index:p,item:g,cellProps:e.cellProps,mobile:x.value},Je(a,":row",()=>f),typeof e.rowProps=="function"?e.rowProps({item:f.item,index:f.index,internalItem:f.internalItem}):e.rowProps)};return i(J,{key:V.props.key},[t.item?t.item(V):i(jt,V.props,t),s(g)&&((R=t["expanded-row"])==null?void 0:R.call(t,f))])})])}),{}}}),rl=B({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function sl(e,l,a,t){const n=e.returnObject?l:fe(l,e.itemValue),r=fe(l,e.itemSelectable,!0),o=t.reduce((s,u)=>(u.key!=null&&(s[u.key]=fe(l,u.value)),s),{});return{type:"item",key:e.returnObject?fe(l,e.itemValue):n,index:a,value:n,selectable:r,columns:o,raw:l}}function ol(e,l,a){return l.map((t,n)=>sl(e,t,n,a))}function Mt(e,l){return{items:k(()=>ol(e,e.items,l.value))}}function zt(e){let{page:l,itemsPerPage:a,sortBy:t,groupBy:n,search:r}=e;const o=nt("VDataTable"),s=k(()=>({page:l.value,itemsPerPage:a.value,sortBy:t.value,groupBy:n.value,search:r.value}));let u=null;rt(s,()=>{st(u,s.value)||(u&&u.search!==s.value.search&&(l.value=1),o.emit("update:options",s.value),u=s.value)},{deep:!0,immediate:!0})}const qt=B({...Ht(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...ll(),...Ct(),...za(),...rl(),...Ja(),...Xa(),...Vt(),..._a()},"DataTable"),il=B({...Na(),...qt(),...dt(),...mt()},"VDataTable");W()({name:"VDataTable",props:il(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,l){let{attrs:a,slots:t}=l;const{groupBy:n}=Rt(e),{sortBy:r,multiSort:o,mustSort:s}=_t(e),{page:u,itemsPerPage:c}=Ga(e),{disableSort:m}=ot(e),{columns:y,headers:v,sortFunctions:x,sortRawFunctions:h,filterFunctions:S}=pt(e,{groupBy:n,showSelect:T(e,"showSelect"),showExpand:T(e,"showExpand")}),{items:g}=Mt(e,y),p=T(e,"search"),{filteredItems:f}=ct(e,g,p,{transform:F=>F.columns,customKeyFilter:S}),{toggleSort:V}=Dt({sortBy:r,multiSort:o,mustSort:s,page:u}),{sortByWithGroups:R,opened:_,extractRows:N,isGroupOpen:j,toggleGroup:b}=Ft({groupBy:n,sortBy:r,disableSort:m}),{sortedItems:d}=Tt(e,f,R,{transform:F=>({...F.raw,...F.columns}),sortFunctions:x,sortRawFunctions:h}),{flatItems:w}=Lt(d,n,_),P=k(()=>w.value.length),{startIndex:I,stopIndex:C,pageCount:H,setItemsPerPage:ee}=ja({page:u,itemsPerPage:c,itemsLength:P}),{paginatedItems:U}=Ma({items:w,startIndex:I,stopIndex:C,itemsPerPage:c}),K=k(()=>N(U.value)),{isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,someSelected:De,allSelected:Ie}=Pt(e,{allItems:g,currentPage:K}),{isExpanded:Te,toggleExpand:Ve}=Nt(e);zt({page:u,itemsPerPage:c,sortBy:r,groupBy:n,search:p}),ve({VDataTableRows:{hideNoData:T(e,"hideNoData"),noDataText:T(e,"noDataText"),loading:T(e,"loading"),loadingText:T(e,"loadingText")}});const $=k(()=>({page:u.value,itemsPerPage:c.value,sortBy:r.value,pageCount:H.value,toggleSort:V,setItemsPerPage:ee,someSelected:De.value,allSelected:Ie.value,isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,isExpanded:Te,toggleExpand:Ve,isGroupOpen:j,toggleGroup:b,items:K.value.map(F=>F.raw),internalItems:K.value,groupedItems:U.value,columns:y.value,headers:v.value}));return Z(()=>{const F=Ze.filterProps(e),O=be.filterProps(e),Ce=ye.filterProps(e),Be=ge.filterProps(e);return i(ge,D({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},Be),{top:()=>{var A;return(A=t.top)==null?void 0:A.call(t,$.value)},default:()=>{var A,re,se,M,te,oe;return t.default?t.default($.value):i(J,null,[(A=t.colgroup)==null?void 0:A.call(t,$.value),!e.hideDefaultHeader&&i("thead",{key:"thead"},[i(be,O,t)]),(re=t.thead)==null?void 0:re.call(t,$.value),!e.hideDefaultBody&&i("tbody",null,[(se=t["body.prepend"])==null?void 0:se.call(t,$.value),t.body?t.body($.value):i(ye,D(a,Ce,{items:U.value}),t),(M=t["body.append"])==null?void 0:M.call(t,$.value)]),(te=t.tbody)==null?void 0:te.call(t,$.value),(oe=t.tfoot)==null?void 0:oe.call(t,$.value)])},bottom:()=>t.bottom?t.bottom($.value):!e.hideDefaultFooter&&i(J,null,[i(Da,null,null),i(Ze,F,{prepend:t["footer.prepend"]})])})}),{}}});const ul=B({...qt(),...Ct(),...ya(),...dt()},"VDataTableVirtual"),dl=W()({name:"VDataTableVirtual",props:ul(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,l){let{attrs:a,slots:t}=l;const{groupBy:n}=Rt(e),{sortBy:r,multiSort:o,mustSort:s}=_t(e),{disableSort:u}=ot(e),{columns:c,headers:m,filterFunctions:y,sortFunctions:v,sortRawFunctions:x}=pt(e,{groupBy:n,showSelect:T(e,"showSelect"),showExpand:T(e,"showExpand")}),{items:h}=Mt(e,c),S=T(e,"search"),{filteredItems:g}=ct(e,h,S,{transform:O=>O.columns,customKeyFilter:y}),{toggleSort:p}=Dt({sortBy:r,multiSort:o,mustSort:s}),{sortByWithGroups:f,opened:V,extractRows:R,isGroupOpen:_,toggleGroup:N}=Ft({groupBy:n,sortBy:r,disableSort:u}),{sortedItems:j}=Tt(e,g,f,{transform:O=>({...O.raw,...O.columns}),sortFunctions:v,sortRawFunctions:x}),{flatItems:b}=Lt(j,n,V),d=k(()=>R(b.value)),{isSelected:w,select:P,selectAll:I,toggleSelect:C,someSelected:H,allSelected:ee}=Pt(e,{allItems:d,currentPage:d}),{isExpanded:U,toggleExpand:K}=Nt(e),{containerRef:we,markerRef:Pe,paddingTop:ke,paddingBottom:_e,computedItems:De,handleItemResize:Ie,handleScroll:Te,handleScrollend:Ve}=pa(e,b),$=k(()=>De.value.map(O=>O.raw));zt({sortBy:r,page:$e(1),itemsPerPage:$e(-1),groupBy:n,search:S}),ve({VDataTableRows:{hideNoData:T(e,"hideNoData"),noDataText:T(e,"noDataText"),loading:T(e,"loading"),loadingText:T(e,"loadingText")}});const F=k(()=>({sortBy:r.value,toggleSort:p,someSelected:H.value,allSelected:ee.value,isSelected:w,select:P,selectAll:I,toggleSelect:C,isExpanded:U,toggleExpand:K,isGroupOpen:_,toggleGroup:N,items:d.value.map(O=>O.raw),internalItems:d.value,groupedItems:b.value,columns:c.value,headers:m.value}));Z(()=>{const O=be.filterProps(e),Ce=ye.filterProps(e),Be=ge.filterProps(e);return i(ge,D({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},Be),{top:()=>{var A;return(A=t.top)==null?void 0:A.call(t,F.value)},wrapper:()=>{var A,re,se;return i("div",{ref:we,onScrollPassive:Te,onScrollend:Ve,class:"v-table__wrapper",style:{height:L(e.height)}},[i("table",null,[(A=t.colgroup)==null?void 0:A.call(t,F.value),!e.hideDefaultHeader&&i("thead",{key:"thead"},[i(be,D(O,{sticky:e.fixedHeader}),t)]),!e.hideDefaultBody&&i("tbody",null,[i("tr",{ref:Pe,style:{height:L(ke.value),border:0}},[i("td",{colspan:c.value.length,style:{height:0,border:0}},null)]),(re=t["body.prepend"])==null?void 0:re.call(t,F.value),i(ye,D(a,Ce,{items:$.value}),{...t,item:M=>i(xa,{key:M.internalItem.index,renderless:!0,"onUpdate:height":te=>Ie(M.internalItem.index,te)},{default:te=>{var He;let{itemRef:oe}=te;return((He=t.item)==null?void 0:He.call(t,{...M,itemRef:oe}))??i(jt,D(M.props,{ref:oe,key:M.internalItem.index,index:M.internalItem.index}),t)}})}),(se=t["body.append"])==null?void 0:se.call(t,F.value),i("tr",{style:{height:L(_e.value),border:0}},[i("td",{colspan:c.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var A;return(A=t.bottom)==null?void 0:A.call(t,F.value)}})})}}),cl={name:"AdminTable"};function fl(e,l,a,t,n,r){return E(),q(dl,{"fixed-header":"","item-value":"pk",mobile:e.$vuetify.display.xs},ra({_:2},[it(e.$slots,(o,s)=>({name:s,fn:ae(u=>[sa(e.$slots,s,D({props:o},u),void 0,!0)])}))]),1032,["mobile"])}const Vl=X(cl,[["render",fl],["__scopeId","data-v-8b5d9183"]]),vl={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Ia},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:oa}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...tt(at,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function ml(e,l,a,t,n,r){const o=ie("ConfirmDialog");return E(),q(o,{icon:n.mdiTrashCan,"title-text":r.titleText,"object-name":a.name,"confirm-text":r.titleText,onConfirm:r.confirm},null,8,["icon","title-text","object-name","confirm-text","onConfirm"])}const Cl=X(vl,[["render",ml]]),gl={name:"RelationChips",components:{GroupChip:ft},props:{pks:{type:Array,required:!0},objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{map(){const e={};for(const l of this.objs)e[l.pk]=l;return e}}};function hl(e,l,a,t,n,r){const o=ie("GroupChip");return E(),Qe("span",null,[(E(!0),Qe(J,null,it(a.pks,s=>(E(),q(o,{key:s,"title-key":a.titleKey,"group-type":a.groupType,item:r.map[s]},null,8,["title-key","group-type","item"]))),128))])}const Bl=X(gl,[["render",hl]]);export{Tl as A,ft as G,Bl as R,Vl as a,Cl as b,Il as c};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bH as Ut,_ as X,bI as Wt,o as E,c as q,i as D,w as ae,L as et,C as Le,m as tt,x as at,bJ as Me,a1 as ze,r as ie,a as i,D as Kt,n as Qt,e as Q,bK as Yt,p as B,a0 as G,W as Jt,aP as Xt,g as W,k as Y,aS as ue,aR as Zt,aQ as ea,bo as pe,aT as $e,l as ve,be as ta,f as k,b5 as de,t as T,h as Z,b7 as qe,aW as Ue,bh as lt,aV as le,bL as nt,aU as rt,j as ne,b6 as Re,bM as aa,q as L,bN as la,bO as na,bP as st,bE as Fe,bQ as me,bR as ce,bn as Ee,F as J,b as We,bS as Ae,N as Ke,bT as fe,bU as ot,a7 as ra,B as it,ai as sa,bV as oa,A as Qe}from"./main-H14uUxuN.js";import{V as z,i as ia,t as ua,q as da,e as ca,p as fa,D as va,A as ma,L as ga}from"./VDialog-DbN2FfmF.js";import{S as ha,d as ba}from"./VTextField-D9pqgz_R.js";import{c as ut,e as Ne,g as ya,h as pa,i as xa}from"./VSelect-BTy7SKk0.js";import{m as Sa,g as wa,a as Pa,c as ka,V as Ye}from"./transition-CQVFPpmZ.js";import{V as Ge}from"./VCheckboxBtn-DnBH3a96.js";import{m as _a,V as ge}from"./VTable-R3X0iPjV.js";import{m as dt,u as ct}from"./filter-CmOjoKbH.js";import{a as Da}from"./VSlideGroup-BtfHoWCn.js";import{C as Ia}from"./confirm-dialog-Iyuhxfyi.js";function Je(e,l,a){return Object.keys(e).filter(t=>Ut(t)&&t.endsWith(l)).reduce((t,n)=>(t[n.slice(0,-l.length)]=r=>e[n](r,a(r)),t),{})}const Ta={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:Wt}}};function Va(e,l,a,t,n,r){return a.update?(E(),q(z,D({key:0,icon:n.mdiPencil},e.$attrs,{size:a.size,density:a.density}),null,16,["icon","size","density"])):(E(),q(z,D({key:1},e.$attrs,{size:a.size,density:a.density}),{default:ae(()=>[et("span",null,"+ "+Le(a.table),1)]),_:1},16,["size","density"]))}const Ca=X(Ta,[["render",Va]]),Ba={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:Ca,SubmitFooter:ha},props:{table:{type:String,required:!0},label:{type:String,default:""},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return this.label||this.table},buttonTitle(){return(this.oldRow?"Edit":"Add")+" "+this.title}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...tt(at,["createRow","updateRow"]),validate(){let e=!1;for(const[a,t]of Object.entries(this.row))if(!Me(this.oldRow[a],t)){e=!0;break}if(!e)return!1;const l=this.$refs.form;return l?l.validate().then(({valid:a})=>a).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return ze(this.inputs.EMPTY_ROW);const l={};for(const a of this.inputs.UPDATE_KEYS)l[a]=ze(this.oldRow[a]);return l},doUpdate:function(){const e={};for(const[l,a]of Object.entries(this.row))Me(this.oldRow[l],a)||(e[l]=a);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:l})=>{if(l)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function Ra(e,l,a,t,n,r){const o=ie("AdminCreateUpdateButton"),s=ie("SubmitFooter");return E(),q(ia,D({modelValue:n.showDialog,"onUpdate:modelValue":l[1]||(l[1]=u=>n.showDialog=u),transition:"scale-transition"},e.$attrs),{activator:ae(({props:u})=>[i(o,D({update:!!a.oldRow,table:a.table,label:a.label},u,{size:a.size,density:a.density,title:r.buttonTitle}),null,16,["update","table","label","size","density","title"])]),default:ae(()=>[i(ba,{ref:"form",class:"cuForm"},{default:ae(()=>[et("h2",null,Le(r.title),1),(E(),q(Kt(a.inputs),{"old-row":a.oldRow,onChange:r.change},null,40,["old-row","onChange"])),i(s,{verb:r.verb,table:a.table,label:a.label,disabled:!n.submitButtonEnabled,onSubmit:r.submit,onCancel:l[0]||(l[0]=u=>n.showDialog=!1)},null,8,["verb","table","label","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Il=X(Ba,[["render",Ra],["__scopeId","data-v-b61575f9"]]),Fa={name:"GroupChip",props:{titleKey:{type:String,default:""},groupType:{type:Boolean,default:void 0},item:{type:Object,default:void 0}},computed:{classes(){let e={};return this.groupType&&this.item&&(e.include=!this.item.exclude,e.exclude=this.item.exclude),e},text(){return this.item&&this.titleKey?this.item[this.titleKey]:""},value(){if(this.item)return this.groupType?this.item.exclude:this.item.value}}};function Aa(e,l,a,t,n,r){return E(),q(ut,{class:Qt(r.classes),text:r.text,value:r.value},null,8,["class","text","value"])}const ft=X(Fa,[["render",Aa],["__scopeId","data-v-495e15c6"]]),$a={name:"AdminRelationPicker",components:{GroupChip:ft},props:{objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{vuetifyItems(){const e=[];for(const l of this.objs)e.push({...l,value:l.pk,title:l[this.titleKey]});return e}}};function Oa(e,l,a,t,n,r){const o=ie("GroupChip");return E(),q(Ne,D({chips:!0,"closable-chips":!0,density:"compact",multiple:!0,items:r.vuetifyItems},e.$attrs),{chip:ae(({item:s})=>[i(o,{"title-key":"title",item:s,"group-type":a.groupType},null,8,["item","group-type"])]),_:1},16,["items"])}const Tl=X($a,[["render",Oa]]);function La(){const e=Q([]);Yt(()=>e.value=[]);function l(a,t){e.value[t]=a}return{refs:e,updateRef:l}}const Ea=B({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0},totalVisible:[Number,String],firstIcon:{type:G,default:"$first"},prevIcon:{type:G,default:"$prev"},nextIcon:{type:G,default:"$next"},lastIcon:{type:G,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...ua(),...Jt(),...Sa(),...da(),...ca(),...wa(),...Pa({tag:"nav"}),...Xt(),...fa({variant:"text"})},"VPagination"),Xe=W()({name:"VPagination",props:Ea(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,l){let{slots:a,emit:t}=l;const n=Y(e,"modelValue"),{t:r,n:o}=ue(),{isRtl:s}=Zt(),{themeClasses:u}=ea(e),{width:c}=pe(),m=$e(-1);ve(void 0,{scoped:!0});const{resizeRef:y}=ta(b=>{if(!b.length)return;const{target:d,contentRect:w}=b[0],P=d.querySelector(".v-pagination__list > *");if(!P)return;const I=w.width,C=P.offsetWidth+parseFloat(getComputedStyle(P).marginRight)*2;m.value=S(I,C)}),v=k(()=>parseInt(e.length,10)),x=k(()=>parseInt(e.start,10)),h=k(()=>e.totalVisible!=null?parseInt(e.totalVisible,10):m.value>=0?m.value:S(c.value,58));function S(b,d){const w=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(+((b-d*w)/d).toFixed(2)))}const g=k(()=>{if(v.value<=0||isNaN(v.value)||v.value>Number.MAX_SAFE_INTEGER)return[];if(h.value<=0)return[];if(h.value===1)return[n.value];if(v.value<=h.value)return de(v.value,x.value);const b=h.value%2===0,d=b?h.value/2:Math.floor(h.value/2),w=b?d:d+1,P=v.value-d;if(w-n.value>=0)return[...de(Math.max(1,h.value-1),x.value),e.ellipsis,v.value];if(n.value-P>=(b?1:0)){const I=h.value-1,C=v.value-I+x.value;return[x.value,e.ellipsis,...de(I,C)]}else{const I=Math.max(1,h.value-3),C=I===1?n.value:n.value-Math.ceil(I/2)+x.value;return[x.value,e.ellipsis,...de(I,C),e.ellipsis,v.value]}});function p(b,d,w){b.preventDefault(),n.value=d,w&&t(w,d)}const{refs:f,updateRef:V}=La();ve({VPaginationBtn:{color:T(e,"color"),border:T(e,"border"),density:T(e,"density"),size:T(e,"size"),variant:T(e,"variant"),rounded:T(e,"rounded"),elevation:T(e,"elevation")}});const R=k(()=>g.value.map((b,d)=>{const w=P=>V(P,d);if(typeof b=="string")return{isActive:!1,key:`ellipsis-${d}`,page:b,props:{ref:w,ellipsis:!0,icon:!0,disabled:!0}};{const P=b===n.value;return{isActive:P,key:b,page:o(b),props:{ref:w,ellipsis:!1,icon:!0,disabled:!!e.disabled||+e.length<2,color:P?e.activeColor:e.color,"aria-current":P,"aria-label":r(P?e.currentPageAriaLabel:e.pageAriaLabel,b),onClick:I=>p(I,b)}}}})),_=k(()=>{const b=!!e.disabled||n.value<=x.value,d=!!e.disabled||n.value>=x.value+v.value-1;return{first:e.showFirstLastPage?{icon:s.value?e.lastIcon:e.firstIcon,onClick:w=>p(w,x.value,"first"),disabled:b,"aria-label":r(e.firstAriaLabel),"aria-disabled":b}:void 0,prev:{icon:s.value?e.nextIcon:e.prevIcon,onClick:w=>p(w,n.value-1,"prev"),disabled:b,"aria-label":r(e.previousAriaLabel),"aria-disabled":b},next:{icon:s.value?e.prevIcon:e.nextIcon,onClick:w=>p(w,n.value+1,"next"),disabled:d,"aria-label":r(e.nextAriaLabel),"aria-disabled":d},last:e.showFirstLastPage?{icon:s.value?e.firstIcon:e.lastIcon,onClick:w=>p(w,x.value+v.value-1,"last"),disabled:d,"aria-label":r(e.lastAriaLabel),"aria-disabled":d}:void 0}});function N(){var d;const b=n.value-x.value;(d=f.value[b])==null||d.$el.focus()}function j(b){b.key===qe.left&&!e.disabled&&n.value>+e.start?(n.value=n.value-1,Ue(N)):b.key===qe.right&&!e.disabled&&n.value<x.value+v.value-1&&(n.value=n.value+1,Ue(N))}return Z(()=>i(e.tag,{ref:y,class:["v-pagination",u.value,e.class],style:e.style,role:"navigation","aria-label":r(e.ariaLabel),onKeydown:j,"data-test":"v-pagination-root"},{default:()=>[i("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&i("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[a.first?a.first(_.value.first):i(z,D({_as:"VPaginationBtn"},_.value.first),null)]),i("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[a.prev?a.prev(_.value.prev):i(z,D({_as:"VPaginationBtn"},_.value.prev),null)]),R.value.map((b,d)=>i("li",{key:b.key,class:["v-pagination__item",{"v-pagination__item--is-active":b.isActive}],"data-test":"v-pagination-item"},[a.item?a.item(b):i(z,D({_as:"VPaginationBtn"},b.props),{default:()=>[b.page]})])),i("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[a.next?a.next(_.value.next):i(z,D({_as:"VPaginationBtn"},_.value.next),null)]),e.showFirstLastPage&&i("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[a.last?a.last(_.value.last):i(z,D({_as:"VPaginationBtn"},_.value.last),null)])])]})),{}}}),Na=B({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),vt=Symbol.for("vuetify:data-table-pagination");function Ga(e){const l=Y(e,"page",void 0,t=>+(t??1)),a=Y(e,"itemsPerPage",void 0,t=>+(t??10));return{page:l,itemsPerPage:a}}function ja(e){const{page:l,itemsPerPage:a,itemsLength:t}=e,n=k(()=>a.value===-1?0:a.value*(l.value-1)),r=k(()=>a.value===-1?t.value:Math.min(t.value,n.value+a.value)),o=k(()=>a.value===-1||t.value===0?1:Math.ceil(t.value/a.value));lt(()=>{l.value>o.value&&(l.value=o.value)});function s(v){a.value=v,l.value=1}function u(){l.value=Re(l.value+1,1,o.value)}function c(){l.value=Re(l.value-1,1,o.value)}function m(v){l.value=Re(v,1,o.value)}const y={page:l,itemsPerPage:a,startIndex:n,stopIndex:r,pageCount:o,itemsLength:t,nextPage:u,prevPage:c,setPage:m,setItemsPerPage:s};return le(vt,y),y}function Ha(){const e=ne(vt);if(!e)throw new Error("Missing pagination!");return e}function Ma(e){const l=nt("usePaginatedItems"),{items:a,startIndex:t,stopIndex:n,itemsPerPage:r}=e,o=k(()=>r.value<=0?a.value:a.value.slice(t.value,n.value));return rt(o,s=>{l.emit("update:currentItems",s)}),{paginatedItems:o}}const mt=B({prevIcon:{type:G,default:"$prev"},nextIcon:{type:G,default:"$next"},firstIcon:{type:G,default:"$first"},lastIcon:{type:G,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Ze=W()({name:"VDataTableFooter",props:mt(),setup(e,l){let{slots:a}=l;const{t}=ue(),{page:n,pageCount:r,startIndex:o,stopIndex:s,itemsLength:u,itemsPerPage:c,setItemsPerPage:m}=Ha(),y=k(()=>e.itemsPerPageOptions.map(v=>typeof v=="number"?{value:v,title:v===-1?t("$vuetify.dataFooter.itemsPerPageAll"):String(v)}:{...v,title:isNaN(Number(v.title))?t(v.title):v.title}));return Z(()=>{var x;const v=Xe.filterProps(e);return i("div",{class:"v-data-table-footer"},[(x=a.prepend)==null?void 0:x.call(a),i("div",{class:"v-data-table-footer__items-per-page"},[i("span",null,[t(e.itemsPerPageText)]),i(Ne,{items:y.value,modelValue:c.value,"onUpdate:modelValue":h=>m(Number(h)),density:"compact",variant:"outlined","hide-details":!0},null)]),i("div",{class:"v-data-table-footer__info"},[i("div",null,[t(e.pageText,u.value?o.value+1:0,s.value,u.value)])]),i("div",{class:"v-data-table-footer__pagination"},[i(Xe,D({modelValue:n.value,"onUpdate:modelValue":h=>n.value=h,density:"comfortable","first-aria-label":e.firstPageLabel,"last-aria-label":e.lastPageLabel,length:r.value,"next-aria-label":e.nextPageLabel,"previous-aria-label":e.prevPageLabel,rounded:!0,"show-first-last-page":!0,"total-visible":e.showCurrentPage?1:0,variant:"plain"},v),null)])])}),{}}}),he=aa({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(e,l)=>{let{slots:a}=l;const t=e.tag??"td";return i(t,{class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap},`v-data-table-column--align-${e.align}`],style:{height:L(e.height),width:L(e.width),maxWidth:L(e.maxWidth),left:L(e.fixedOffset||null)}},{default:()=>{var n;return[(n=a.default)==null?void 0:n.call(a)]}})}),za=B({headers:Array},"DataTable-header"),gt=Symbol.for("vuetify:data-table-headers"),ht={title:"",sortable:!1},qa={...ht,width:48};function Ua(){const l=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(a=>({element:a,priority:0}));return{enqueue:(a,t)=>{let n=!1;for(let r=0;r<l.length;r++)if(l[r].priority>t){l.splice(r,0,{element:a,priority:t}),n=!0;break}n||l.push({element:a,priority:t})},size:()=>l.length,count:()=>{let a=0;if(!l.length)return 0;const t=Math.floor(l[0].priority);for(let n=0;n<l.length;n++)Math.floor(l[n].priority)===t&&(a+=1);return a},dequeue:()=>l.shift()}}function Oe(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!e.children)l.push(e);else for(const a of e.children)Oe(a,l);return l}function bt(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const a of e)a.key&&l.add(a.key),a.children&&bt(a.children,l);return l}function Wa(e){if(e.key){if(e.key==="data-table-group")return ht;if(["data-table-expand","data-table-select"].includes(e.key))return qa}}function je(e){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.children?Math.max(l,...e.children.map(a=>je(a,l+1))):l}function Ka(e){let l=!1;function a(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r)if(o&&(r.fixed=!0),r.fixed)if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s],!0);else l?isNaN(+r.width)&&na(`Multiple fixed columns should have a static width (key: ${r.key})`):r.lastFixed=!0,l=!0;else if(r.children)for(let s=r.children.length-1;s>=0;s--)a(r.children[s]);else l=!1}for(let r=e.length-1;r>=0;r--)a(e[r]);function t(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!r)return o;if(r.children){r.fixedOffset=o;for(const s of r.children)o=t(s,o)}else r.fixed&&(r.fixedOffset=o,o+=parseFloat(r.width||"0")||0);return o}let n=0;for(const r of e)n=t(r,n)}function Qa(e,l){const a=[];let t=0;const n=Ua(e);for(;n.size()>0;){let o=n.count();const s=[];let u=1;for(;o>0;){const{element:c,priority:m}=n.dequeue(),y=l-t-je(c);if(s.push({...c,rowspan:y??1,colspan:c.children?Oe(c).length:1}),c.children)for(const v of c.children){const x=m%1+u/Math.pow(10,t+2);n.enqueue(v,t+y+x)}u+=1,o-=1}t+=1,a.push(s)}return{columns:e.map(o=>Oe(o)).flat(),headers:a}}function yt(e){const l=[];for(const a of e){const t={...Wa(a),...a},n=t.key??(typeof t.value=="string"?t.value:null),r=t.value??n??null,o={...t,key:n,value:r,sortable:t.sortable??(t.key!=null||!!t.sort),children:t.children?yt(t.children):void 0};l.push(o)}return l}function pt(e,l){const a=Q([]),t=Q([]),n=Q({}),r=Q({}),o=Q({});lt(()=>{var S,g,p;const c=(e.headers||Object.keys(e.items[0]??{}).map(f=>({key:f,title:la(f)}))).slice(),m=bt(c);(S=l==null?void 0:l.groupBy)!=null&&S.value.length&&!m.has("data-table-group")&&c.unshift({key:"data-table-group",title:"Group"}),(g=l==null?void 0:l.showSelect)!=null&&g.value&&!m.has("data-table-select")&&c.unshift({key:"data-table-select"}),(p=l==null?void 0:l.showExpand)!=null&&p.value&&!m.has("data-table-expand")&&c.push({key:"data-table-expand"});const y=yt(c);Ka(y);const v=Math.max(...y.map(f=>je(f)))+1,x=Qa(y,v);a.value=x.headers,t.value=x.columns;const h=x.headers.flat(1);for(const f of h)f.key&&(f.sortable&&(f.sort&&(n.value[f.key]=f.sort),f.sortRaw&&(r.value[f.key]=f.sortRaw)),f.filter&&(o.value[f.key]=f.filter))});const s={headers:a,columns:t,sortFunctions:n,sortRawFunctions:r,filterFunctions:o};return le(gt,s),s}function xe(){const e=ne(gt);if(!e)throw new Error("Missing headers!");return e}const Ya={showSelectAll:!1,allSelected:()=>[],select:e=>{var t;let{items:l,value:a}=e;return new Set(a?[(t=l[0])==null?void 0:t.value]:[])},selectAll:e=>{let{selected:l}=e;return l}},xt={showSelectAll:!0,allSelected:e=>{let{currentPage:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(n.value):t.delete(n.value);return t},selectAll:e=>{let{value:l,currentPage:a,selected:t}=e;return xt.select({items:a,value:l,selected:t})}},St={showSelectAll:!0,allSelected:e=>{let{allItems:l}=e;return l},select:e=>{let{items:l,value:a,selected:t}=e;for(const n of l)a?t.add(n.value):t.delete(n.value);return t},selectAll:e=>{let{value:l,allItems:a,selected:t}=e;return St.select({items:a,value:l,selected:t})}},Ja=B({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:st}},"DataTable-select"),wt=Symbol.for("vuetify:data-table-selection");function Pt(e,l){let{allItems:a,currentPage:t}=l;const n=Y(e,"modelValue",e.modelValue,p=>new Set(Fe(p).map(f=>{var V;return((V=a.value.find(R=>e.valueComparator(f,R.value)))==null?void 0:V.value)??f})),p=>[...p.values()]),r=k(()=>a.value.filter(p=>p.selectable)),o=k(()=>t.value.filter(p=>p.selectable)),s=k(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single":return Ya;case"all":return St;case"page":default:return xt}});function u(p){return Fe(p).every(f=>n.value.has(f.value))}function c(p){return Fe(p).some(f=>n.value.has(f.value))}function m(p,f){const V=s.value.select({items:p,value:f,selected:new Set(n.value)});n.value=V}function y(p){m([p],!u([p]))}function v(p){const f=s.value.selectAll({value:p,allItems:r.value,currentPage:o.value,selected:new Set(n.value)});n.value=f}const x=k(()=>n.value.size>0),h=k(()=>{const p=s.value.allSelected({allItems:r.value,currentPage:o.value});return!!p.length&&u(p)}),S=k(()=>s.value.showSelectAll),g={toggleSelect:y,select:m,selectAll:v,isSelected:u,isSomeSelected:c,someSelected:x,allSelected:h,showSelectAll:S};return le(wt,g),g}function Se(){const e=ne(wt);if(!e)throw new Error("Missing selection!");return e}const Xa=B({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),kt=Symbol.for("vuetify:data-table-sort");function _t(e){const l=Y(e,"sortBy"),a=T(e,"mustSort"),t=T(e,"multiSort");return{sortBy:l,mustSort:a,multiSort:t}}function Dt(e){const{sortBy:l,mustSort:a,multiSort:t,page:n}=e,r=u=>{if(u.key==null)return;let c=l.value.map(y=>({...y}))??[];const m=c.find(y=>y.key===u.key);m?m.order==="desc"?a.value?m.order="asc":c=c.filter(y=>y.key!==u.key):m.order="desc":t.value?c=[...c,{key:u.key,order:"asc"}]:c=[{key:u.key,order:"asc"}],l.value=c,n&&(n.value=1)};function o(u){return!!l.value.find(c=>c.key===u.key)}const s={sortBy:l,toggleSort:r,isSorted:o};return le(kt,s),s}function It(){const e=ne(kt);if(!e)throw new Error("Missing sort!");return e}function Tt(e,l,a,t){const n=ue();return{sortedItems:k(()=>{var o,s;return a.value.length?Za(l.value,a.value,n.current.value,{transform:t==null?void 0:t.transform,sortFunctions:{...e.customKeySort,...(o=t==null?void 0:t.sortFunctions)==null?void 0:o.value},sortRawFunctions:(s=t==null?void 0:t.sortRawFunctions)==null?void 0:s.value}):l.value})}}function Za(e,l,a,t){const n=new Intl.Collator(a,{sensitivity:"accent",usage:"sort"});return e.map(o=>[o,t!=null&&t.transform?t.transform(o):o]).sort((o,s)=>{var u,c;for(let m=0;m<l.length;m++){let y=!1;const v=l[m].key,x=l[m].order??"asc";if(x===!1)continue;let h=me(o[1],v),S=me(s[1],v),g=o[0].raw,p=s[0].raw;if(x==="desc"&&([h,S]=[S,h],[g,p]=[p,g]),(u=t==null?void 0:t.sortRawFunctions)!=null&&u[v]){const f=t.sortRawFunctions[v](g,p);if(f==null)continue;if(y=!0,f)return f}if((c=t==null?void 0:t.sortFunctions)!=null&&c[v]){const f=t.sortFunctions[v](h,S);if(f==null)continue;if(y=!0,f)return f}if(!y){if(h instanceof Date&&S instanceof Date)return h.getTime()-S.getTime();if([h,S]=[h,S].map(f=>f!=null?f.toString().toLocaleLowerCase():f),h!==S)return ce(h)&&ce(S)?0:ce(h)?-1:ce(S)?1:!isNaN(h)&&!isNaN(S)?Number(h)-Number(S):n.compare(h,S)}}return 0}).map(o=>{let[s]=o;return s})}const Vt=B({color:String,sticky:Boolean,disableSort:Boolean,multiSort:Boolean,sortAscIcon:{type:G,default:"$sortAsc"},sortDescIcon:{type:G,default:"$sortDesc"},headerProps:{type:Object},...Ee(),...va()},"VDataTableHeaders"),be=W()({name:"VDataTableHeaders",props:Vt(),setup(e,l){let{slots:a}=l;const{t}=ue(),{toggleSort:n,sortBy:r,isSorted:o}=It(),{someSelected:s,allSelected:u,selectAll:c,showSelectAll:m}=Se(),{columns:y,headers:v}=xe(),{loaderClasses:x}=ma(e);function h(b,d){if(!(!e.sticky&&!b.fixed))return{position:"sticky",left:b.fixed?L(b.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${d})`:void 0}}function S(b){const d=r.value.find(w=>w.key===b.key);return d?d.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:g,backgroundColorStyles:p}=ka(e,"color"),{displayClasses:f,mobile:V}=pe(e),R=k(()=>({headers:v.value,columns:y.value,toggleSort:n,isSorted:o,sortBy:r.value,someSelected:s.value,allSelected:u.value,selectAll:c,getSortIcon:S})),_=k(()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky},f.value,x.value]),N=b=>{let{column:d,x:w,y:P}=b;const I=d.key==="data-table-select"||d.key==="data-table-expand",C=D(e.headerProps??{},d.headerProps??{});return i(he,D({tag:"th",align:d.align,class:[{"v-data-table__th--sortable":d.sortable&&!e.disableSort,"v-data-table__th--sorted":o(d),"v-data-table__th--fixed":d.fixed},..._.value],style:{width:L(d.width),minWidth:L(d.minWidth),maxWidth:L(d.maxWidth),...h(d,P)},colspan:d.colspan,rowspan:d.rowspan,onClick:d.sortable?()=>n(d):void 0,fixed:d.fixed,nowrap:d.nowrap,lastFixed:d.lastFixed,noPadding:I},C),{default:()=>{var U;const H=`header.${d.key}`,ee={column:d,selectAll:c,isSorted:o,toggleSort:n,sortBy:r.value,someSelected:s.value,allSelected:u.value,getSortIcon:S};return a[H]?a[H](ee):d.key==="data-table-select"?((U=a["header.data-table-select"])==null?void 0:U.call(a,ee))??(m.value&&i(Ge,{modelValue:u.value,indeterminate:s.value&&!u.value,"onUpdate:modelValue":c},null)):i("div",{class:"v-data-table-header__content"},[i("span",null,[d.title]),d.sortable&&!e.disableSort&&i(Ye,{key:"icon",class:"v-data-table-header__sort-icon",icon:S(d)},null),e.multiSort&&o(d)&&i("div",{key:"badge",class:["v-data-table-header__sort-badge",...g.value],style:p.value},[r.value.findIndex(K=>K.key===d.key)+1])])}})},j=()=>{const b=D(e.headerProps??{}??{}),d=k(()=>y.value.filter(P=>(P==null?void 0:P.sortable)&&!e.disableSort)),w=k(()=>{if(y.value.find(I=>I.key==="data-table-select")!=null)return u.value?"$checkboxOn":s.value?"$checkboxIndeterminate":"$checkboxOff"});return i(he,D({tag:"th",class:[..._.value],colspan:v.value.length+1},b),{default:()=>[i("div",{class:"v-data-table-header__content"},[i(Ne,{chips:!0,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:d.value,label:t("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],appendIcon:w.value,"onClick:append":()=>c(!u.value)},{...a,chip:P=>{var I;return i(ut,{onClick:(I=P.item.raw)!=null&&I.sortable?()=>n(P.item.raw):void 0,onMousedown:C=>{C.preventDefault(),C.stopPropagation()}},{default:()=>[P.item.title,i(Ye,{class:["v-data-table__td-sort-icon",o(P.item.raw)&&"v-data-table__td-sort-icon-active"],icon:S(P.item.raw),size:"small"},null)]})}})])]})};Z(()=>V.value?i("tr",null,[i(j,null,null)]):i(J,null,[a.headers?a.headers(R.value):v.value.map((b,d)=>i("tr",null,[b.map((w,P)=>i(N,{column:w,x:P,y:d},null))])),e.loading&&i("tr",{class:"v-data-table-progress"},[i("th",{colspan:y.value.length},[i(ga,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:a.loader})])])]))}}),Ct=B({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Bt=Symbol.for("vuetify:data-table-group");function Rt(e){return{groupBy:Y(e,"groupBy")}}function Ft(e){const{disableSort:l,groupBy:a,sortBy:t}=e,n=Q(new Set),r=k(()=>a.value.map(m=>({...m,order:m.order??!1})).concat(l!=null&&l.value?[]:t.value));function o(m){return n.value.has(m.id)}function s(m){const y=new Set(n.value);o(m)?y.delete(m.id):y.add(m.id),n.value=y}function u(m){function y(v){const x=[];for(const h of v.items)"type"in h&&h.type==="group"?x.push(...y(h)):x.push(h);return x}return y({type:"group",items:m,id:"dummy",key:"dummy",value:"dummy",depth:0})}const c={sortByWithGroups:r,toggleGroup:s,opened:n,groupBy:a,extractRows:u,isGroupOpen:o};return le(Bt,c),c}function At(){const e=ne(Bt);if(!e)throw new Error("Missing group!");return e}function el(e,l){if(!e.length)return[];const a=new Map;for(const t of e){const n=me(t.raw,l);a.has(n)||a.set(n,[]),a.get(n).push(t)}return a}function $t(e,l){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!l.length)return[];const n=el(e,l[0]),r=[],o=l.slice(1);return n.forEach((s,u)=>{const c=l[0],m=`${t}_${c}_${u}`;r.push({depth:a,id:m,key:c,value:u,items:o.length?$t(s,o,a+1,m):s,type:"group"})}),r}function Ot(e,l){const a=[];for(const t of e)"type"in t&&t.type==="group"?(t.value!=null&&a.push(t),(l.has(t.id)||t.value==null)&&a.push(...Ot(t.items,l))):a.push(t);return a}function Lt(e,l,a){return{flatItems:k(()=>{if(!l.value.length)return e.value;const n=$t(e.value,l.value.map(r=>r.key));return Ot(n,a.value)})}}const tl=B({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),al=W()({name:"VDataTableGroupHeaderRow",props:tl(),setup(e,l){let{slots:a}=l;const{isGroupOpen:t,toggleGroup:n,extractRows:r}=At(),{isSelected:o,isSomeSelected:s,select:u}=Se(),{columns:c}=xe(),m=k(()=>r([e.item]));return()=>i("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[c.value.map(y=>{var v,x;if(y.key==="data-table-group"){const h=t(e.item)?"$expand":"$next",S=()=>n(e.item);return((v=a["data-table-group"])==null?void 0:v.call(a,{item:e.item,count:m.value.length,props:{icon:h,onClick:S}}))??i(he,{class:"v-data-table-group-header-row__column"},{default:()=>[i(z,{size:"small",variant:"text",icon:h,onClick:S},null),i("span",null,[e.item.value]),i("span",null,[We("("),m.value.length,We(")")])]})}if(y.key==="data-table-select"){const h=o(m.value),S=s(m.value)&&!h,g=p=>u(m.value,p);return((x=a["data-table-select"])==null?void 0:x.call(a,{props:{modelValue:h,indeterminate:S,"onUpdate:modelValue":g}}))??i("td",null,[i(Ge,{modelValue:h,indeterminate:S,"onUpdate:modelValue":g},null)])}return i("td",null,null)})])}}),ll=B({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Et=Symbol.for("vuetify:datatable:expanded");function Nt(e){const l=T(e,"expandOnClick"),a=Y(e,"expanded",e.expanded,s=>new Set(s),s=>[...s.values()]);function t(s,u){const c=new Set(a.value);u?c.add(s.value):c.delete(s.value),a.value=c}function n(s){return a.value.has(s.value)}function r(s){t(s,!n(s))}const o={expand:t,expanded:a,expandOnClick:l,isExpanded:n,toggleExpand:r};return le(Et,o),o}function Gt(){const e=ne(Et);if(!e)throw new Error("foo");return e}const nl=B({index:Number,item:Object,cellProps:[Object,Function],onClick:Ae(),onContextmenu:Ae(),onDblclick:Ae(),...Ee()},"VDataTableRow"),jt=W()({name:"VDataTableRow",props:nl(),setup(e,l){let{slots:a}=l;const{displayClasses:t,mobile:n}=pe(e,"v-data-table__tr"),{isSelected:r,toggleSelect:o,someSelected:s,allSelected:u,selectAll:c}=Se(),{isExpanded:m,toggleExpand:y}=Gt(),{toggleSort:v,sortBy:x,isSorted:h}=It(),{columns:S}=xe();Z(()=>i("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},t.value],onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&S.value.map((g,p)=>{const f=e.item,V=`item.${g.key}`,R=`header.${g.key}`,_={index:e.index,item:f.raw,internalItem:f,value:me(f.columns,g.key),column:g,isSelected:r,toggleSelect:o,isExpanded:m,toggleExpand:y},N={column:g,selectAll:c,isSorted:h,toggleSort:v,sortBy:x.value,someSelected:s.value,allSelected:u.value,getSortIcon:()=>""},j=typeof e.cellProps=="function"?e.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value,column:g}):e.cellProps,b=typeof g.cellProps=="function"?g.cellProps({index:_.index,item:_.item,internalItem:_.internalItem,value:_.value}):g.cellProps;return i(he,D({align:g.align,class:{"v-data-table__td--expanded-row":g.key==="data-table-expand","v-data-table__td--select-row":g.key==="data-table-select"},fixed:g.fixed,fixedOffset:g.fixedOffset,lastFixed:g.lastFixed,maxWidth:n.value?void 0:g.maxWidth,noPadding:g.key==="data-table-select"||g.key==="data-table-expand",nowrap:g.nowrap,width:n.value?void 0:g.width},j,b),{default:()=>{var w,P,I,C,H;if(a[V]&&!n.value)return(w=a[V])==null?void 0:w.call(a,_);if(g.key==="data-table-select")return((P=a["item.data-table-select"])==null?void 0:P.call(a,_))??i(Ge,{disabled:!f.selectable,modelValue:r([f]),onClick:Ke(()=>o(f),["stop"])},null);if(g.key==="data-table-expand")return((I=a["item.data-table-expand"])==null?void 0:I.call(a,_))??i(z,{icon:m(f)?"$collapse":"$expand",size:"small",variant:"text",onClick:Ke(()=>y(f),["stop"])},null);const d=Le(_.value);return n.value?i(J,null,[i("div",{class:"v-data-table__td-title"},[((C=a[R])==null?void 0:C.call(a,N))??g.title]),i("div",{class:"v-data-table__td-value"},[((H=a[V])==null?void 0:H.call(a,_))??d])]):d}})})]))}}),Ht=B({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...Ee()},"VDataTableRows"),ye=W()({name:"VDataTableRows",inheritAttrs:!1,props:Ht(),setup(e,l){let{attrs:a,slots:t}=l;const{columns:n}=xe(),{expandOnClick:r,toggleExpand:o,isExpanded:s}=Gt(),{isSelected:u,toggleSelect:c}=Se(),{toggleGroup:m,isGroupOpen:y}=At(),{t:v}=ue(),{mobile:x}=pe(e);return Z(()=>{var h,S;return e.loading&&(!e.items.length||t.loading)?i("tr",{class:"v-data-table-rows-loading",key:"loading"},[i("td",{colspan:n.value.length},[((h=t.loading)==null?void 0:h.call(t))??v(e.loadingText)])]):!e.loading&&!e.items.length&&!e.hideNoData?i("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[i("td",{colspan:n.value.length},[((S=t["no-data"])==null?void 0:S.call(t))??v(e.noDataText)])]):i(J,null,[e.items.map((g,p)=>{var R;if(g.type==="group"){const _={index:p,item:g,columns:n.value,isExpanded:s,toggleExpand:o,isSelected:u,toggleSelect:c,toggleGroup:m,isGroupOpen:y};return t["group-header"]?t["group-header"](_):i(al,D({key:`group-header_${g.id}`,item:g},Je(a,":group-header",()=>_)),t)}const f={index:p,item:g.raw,internalItem:g,columns:n.value,isExpanded:s,toggleExpand:o,isSelected:u,toggleSelect:c},V={...f,props:D({key:`item_${g.key??g.index}`,onClick:r.value?()=>{o(g)}:void 0,index:p,item:g,cellProps:e.cellProps,mobile:x.value},Je(a,":row",()=>f),typeof e.rowProps=="function"?e.rowProps({item:f.item,index:f.index,internalItem:f.internalItem}):e.rowProps)};return i(J,{key:V.props.key},[t.item?t.item(V):i(jt,V.props,t),s(g)&&((R=t["expanded-row"])==null?void 0:R.call(t,f))])})])}),{}}}),rl=B({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function sl(e,l,a,t){const n=e.returnObject?l:fe(l,e.itemValue),r=fe(l,e.itemSelectable,!0),o=t.reduce((s,u)=>(u.key!=null&&(s[u.key]=fe(l,u.value)),s),{});return{type:"item",key:e.returnObject?fe(l,e.itemValue):n,index:a,value:n,selectable:r,columns:o,raw:l}}function ol(e,l,a){return l.map((t,n)=>sl(e,t,n,a))}function Mt(e,l){return{items:k(()=>ol(e,e.items,l.value))}}function zt(e){let{page:l,itemsPerPage:a,sortBy:t,groupBy:n,search:r}=e;const o=nt("VDataTable"),s=k(()=>({page:l.value,itemsPerPage:a.value,sortBy:t.value,groupBy:n.value,search:r.value}));let u=null;rt(s,()=>{st(u,s.value)||(u&&u.search!==s.value.search&&(l.value=1),o.emit("update:options",s.value),u=s.value)},{deep:!0,immediate:!0})}const qt=B({...Ht(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...ll(),...Ct(),...za(),...rl(),...Ja(),...Xa(),...Vt(),..._a()},"DataTable"),il=B({...Na(),...qt(),...dt(),...mt()},"VDataTable");W()({name:"VDataTable",props:il(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,l){let{attrs:a,slots:t}=l;const{groupBy:n}=Rt(e),{sortBy:r,multiSort:o,mustSort:s}=_t(e),{page:u,itemsPerPage:c}=Ga(e),{disableSort:m}=ot(e),{columns:y,headers:v,sortFunctions:x,sortRawFunctions:h,filterFunctions:S}=pt(e,{groupBy:n,showSelect:T(e,"showSelect"),showExpand:T(e,"showExpand")}),{items:g}=Mt(e,y),p=T(e,"search"),{filteredItems:f}=ct(e,g,p,{transform:F=>F.columns,customKeyFilter:S}),{toggleSort:V}=Dt({sortBy:r,multiSort:o,mustSort:s,page:u}),{sortByWithGroups:R,opened:_,extractRows:N,isGroupOpen:j,toggleGroup:b}=Ft({groupBy:n,sortBy:r,disableSort:m}),{sortedItems:d}=Tt(e,f,R,{transform:F=>({...F.raw,...F.columns}),sortFunctions:x,sortRawFunctions:h}),{flatItems:w}=Lt(d,n,_),P=k(()=>w.value.length),{startIndex:I,stopIndex:C,pageCount:H,setItemsPerPage:ee}=ja({page:u,itemsPerPage:c,itemsLength:P}),{paginatedItems:U}=Ma({items:w,startIndex:I,stopIndex:C,itemsPerPage:c}),K=k(()=>N(U.value)),{isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,someSelected:De,allSelected:Ie}=Pt(e,{allItems:g,currentPage:K}),{isExpanded:Te,toggleExpand:Ve}=Nt(e);zt({page:u,itemsPerPage:c,sortBy:r,groupBy:n,search:p}),ve({VDataTableRows:{hideNoData:T(e,"hideNoData"),noDataText:T(e,"noDataText"),loading:T(e,"loading"),loadingText:T(e,"loadingText")}});const $=k(()=>({page:u.value,itemsPerPage:c.value,sortBy:r.value,pageCount:H.value,toggleSort:V,setItemsPerPage:ee,someSelected:De.value,allSelected:Ie.value,isSelected:we,select:Pe,selectAll:ke,toggleSelect:_e,isExpanded:Te,toggleExpand:Ve,isGroupOpen:j,toggleGroup:b,items:K.value.map(F=>F.raw),internalItems:K.value,groupedItems:U.value,columns:y.value,headers:v.value}));return Z(()=>{const F=Ze.filterProps(e),O=be.filterProps(e),Ce=ye.filterProps(e),Be=ge.filterProps(e);return i(ge,D({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},Be),{top:()=>{var A;return(A=t.top)==null?void 0:A.call(t,$.value)},default:()=>{var A,re,se,M,te,oe;return t.default?t.default($.value):i(J,null,[(A=t.colgroup)==null?void 0:A.call(t,$.value),!e.hideDefaultHeader&&i("thead",{key:"thead"},[i(be,O,t)]),(re=t.thead)==null?void 0:re.call(t,$.value),!e.hideDefaultBody&&i("tbody",null,[(se=t["body.prepend"])==null?void 0:se.call(t,$.value),t.body?t.body($.value):i(ye,D(a,Ce,{items:U.value}),t),(M=t["body.append"])==null?void 0:M.call(t,$.value)]),(te=t.tbody)==null?void 0:te.call(t,$.value),(oe=t.tfoot)==null?void 0:oe.call(t,$.value)])},bottom:()=>t.bottom?t.bottom($.value):!e.hideDefaultFooter&&i(J,null,[i(Da,null,null),i(Ze,F,{prepend:t["footer.prepend"]})])})}),{}}});const ul=B({...qt(),...Ct(),...ya(),...dt()},"VDataTableVirtual"),dl=W()({name:"VDataTableVirtual",props:ul(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,l){let{attrs:a,slots:t}=l;const{groupBy:n}=Rt(e),{sortBy:r,multiSort:o,mustSort:s}=_t(e),{disableSort:u}=ot(e),{columns:c,headers:m,filterFunctions:y,sortFunctions:v,sortRawFunctions:x}=pt(e,{groupBy:n,showSelect:T(e,"showSelect"),showExpand:T(e,"showExpand")}),{items:h}=Mt(e,c),S=T(e,"search"),{filteredItems:g}=ct(e,h,S,{transform:O=>O.columns,customKeyFilter:y}),{toggleSort:p}=Dt({sortBy:r,multiSort:o,mustSort:s}),{sortByWithGroups:f,opened:V,extractRows:R,isGroupOpen:_,toggleGroup:N}=Ft({groupBy:n,sortBy:r,disableSort:u}),{sortedItems:j}=Tt(e,g,f,{transform:O=>({...O.raw,...O.columns}),sortFunctions:v,sortRawFunctions:x}),{flatItems:b}=Lt(j,n,V),d=k(()=>R(b.value)),{isSelected:w,select:P,selectAll:I,toggleSelect:C,someSelected:H,allSelected:ee}=Pt(e,{allItems:d,currentPage:d}),{isExpanded:U,toggleExpand:K}=Nt(e),{containerRef:we,markerRef:Pe,paddingTop:ke,paddingBottom:_e,computedItems:De,handleItemResize:Ie,handleScroll:Te,handleScrollend:Ve}=pa(e,b),$=k(()=>De.value.map(O=>O.raw));zt({sortBy:r,page:$e(1),itemsPerPage:$e(-1),groupBy:n,search:S}),ve({VDataTableRows:{hideNoData:T(e,"hideNoData"),noDataText:T(e,"noDataText"),loading:T(e,"loading"),loadingText:T(e,"loadingText")}});const F=k(()=>({sortBy:r.value,toggleSort:p,someSelected:H.value,allSelected:ee.value,isSelected:w,select:P,selectAll:I,toggleSelect:C,isExpanded:U,toggleExpand:K,isGroupOpen:_,toggleGroup:N,items:d.value.map(O=>O.raw),internalItems:d.value,groupedItems:b.value,columns:c.value,headers:m.value}));Z(()=>{const O=be.filterProps(e),Ce=ye.filterProps(e),Be=ge.filterProps(e);return i(ge,D({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},Be),{top:()=>{var A;return(A=t.top)==null?void 0:A.call(t,F.value)},wrapper:()=>{var A,re,se;return i("div",{ref:we,onScrollPassive:Te,onScrollend:Ve,class:"v-table__wrapper",style:{height:L(e.height)}},[i("table",null,[(A=t.colgroup)==null?void 0:A.call(t,F.value),!e.hideDefaultHeader&&i("thead",{key:"thead"},[i(be,D(O,{sticky:e.fixedHeader}),t)]),!e.hideDefaultBody&&i("tbody",null,[i("tr",{ref:Pe,style:{height:L(ke.value),border:0}},[i("td",{colspan:c.value.length,style:{height:0,border:0}},null)]),(re=t["body.prepend"])==null?void 0:re.call(t,F.value),i(ye,D(a,Ce,{items:$.value}),{...t,item:M=>i(xa,{key:M.internalItem.index,renderless:!0,"onUpdate:height":te=>Ie(M.internalItem.index,te)},{default:te=>{var He;let{itemRef:oe}=te;return((He=t.item)==null?void 0:He.call(t,{...M,itemRef:oe}))??i(jt,D(M.props,{ref:oe,key:M.internalItem.index,index:M.internalItem.index}),t)}})}),(se=t["body.append"])==null?void 0:se.call(t,F.value),i("tr",{style:{height:L(_e.value),border:0}},[i("td",{colspan:c.value.length,style:{height:0,border:0}},null)])])])])},bottom:()=>{var A;return(A=t.bottom)==null?void 0:A.call(t,F.value)}})})}}),cl={name:"AdminTable"};function fl(e,l,a,t,n,r){return E(),q(dl,{"fixed-header":"","item-value":"pk",mobile:e.$vuetify.display.xs},ra({_:2},[it(e.$slots,(o,s)=>({name:s,fn:ae(u=>[sa(e.$slots,s,D({props:o},u),void 0,!0)])}))]),1032,["mobile"])}const Vl=X(cl,[["render",fl],["__scopeId","data-v-8b5d9183"]]),vl={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Ia},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:oa}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...tt(at,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function ml(e,l,a,t,n,r){const o=ie("ConfirmDialog");return E(),q(o,{icon:n.mdiTrashCan,"title-text":r.titleText,"object-name":a.name,"confirm-text":r.titleText,onConfirm:r.confirm},null,8,["icon","title-text","object-name","confirm-text","onConfirm"])}const Cl=X(vl,[["render",ml]]),gl={name:"RelationChips",components:{GroupChip:ft},props:{pks:{type:Array,required:!0},objs:{type:Object,required:!0},titleKey:{type:String,required:!0},groupType:{type:Boolean,default:!1}},computed:{map(){const e={};for(const l of this.objs)e[l.pk]=l;return e}}};function hl(e,l,a,t,n,r){const o=ie("GroupChip");return E(),Qe("span",null,[(E(!0),Qe(J,null,it(a.pks,s=>(E(),q(o,{key:s,"title-key":a.titleKey,"group-type":a.groupType,item:r.map[s]},null,8,["title-key","group-type","item"]))),128))])}const Bl=X(gl,[["render",hl]]);export{Tl as A,ft as G,Bl as R,Vl as a,Cl as b,Il as c};
|
|
Binary file
|
|
Binary file
|