codex 1.8.11__py3-none-any.whl → 1.8.13__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/applications/websocket.py +2 -2
- codex/choices/choices_to_json.py +1 -1
- codex/librarian/scribe/importer/const.py +4 -3
- codex/librarian/scribe/importer/read/const.py +1 -0
- codex/librarian/scribe/importer/read/extract.py +74 -29
- codex/librarian/scribe/importer/read/foreign_keys.py +21 -7
- codex/librarian/scribe/search/prepare.py +1 -1
- codex/models/groups.py +1 -1
- codex/run.py +2 -2
- codex/static_root/assets/{VCheckbox-yJKLwTHL.c95ec3575cfc.js → VCheckbox-BwGe90i7.05dba0fbfebd.js} +1 -1
- codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js.br +0 -0
- codex/static_root/assets/VCheckbox-BwGe90i7.05dba0fbfebd.js.gz +0 -0
- codex/static_root/assets/{VCheckbox-yJKLwTHL.js → VCheckbox-BwGe90i7.js} +1 -1
- codex/static_root/assets/VCheckbox-BwGe90i7.js.br +0 -0
- codex/static_root/assets/VCheckbox-BwGe90i7.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-dB9xmqwr.5769d67bb7f2.js → VCheckboxBtn-CqdpagcB.890842fbdebe.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.890842fbdebe.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.890842fbdebe.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-dB9xmqwr.js → VCheckboxBtn-CqdpagcB.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-CqdpagcB.js.gz +0 -0
- codex/static_root/assets/{VCombobox-DOGFHYmN.88d1f3799dc6.js → VCombobox-HMiIZRsM.883f0e2ffc0a.js} +1 -1
- codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js.br +0 -0
- codex/static_root/assets/VCombobox-HMiIZRsM.883f0e2ffc0a.js.gz +0 -0
- codex/static_root/assets/{VCombobox-DOGFHYmN.js → VCombobox-HMiIZRsM.js} +1 -1
- codex/static_root/assets/VCombobox-HMiIZRsM.js.br +0 -0
- codex/static_root/assets/VCombobox-HMiIZRsM.js.gz +0 -0
- codex/static_root/assets/{VDialog-DhWYW70x.d777b17f7fda.js → VDialog-B1OSC1f5.012d5d362d84.js} +1 -1
- codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js.br +0 -0
- codex/static_root/assets/VDialog-B1OSC1f5.012d5d362d84.js.gz +0 -0
- codex/static_root/assets/{VDialog-DhWYW70x.js → VDialog-B1OSC1f5.js} +1 -1
- codex/static_root/assets/VDialog-B1OSC1f5.js.br +0 -0
- codex/static_root/assets/VDialog-B1OSC1f5.js.gz +0 -0
- codex/static_root/assets/{VDivider-D5g1AzdV.2e3bd93fadb2.js → VDivider-6KdInZc6.c4c11ffd8782.js} +1 -1
- codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js.br +0 -0
- codex/static_root/assets/VDivider-6KdInZc6.c4c11ffd8782.js.gz +0 -0
- codex/static_root/assets/{VDivider-D5g1AzdV.js → VDivider-6KdInZc6.js} +1 -1
- codex/static_root/assets/VDivider-6KdInZc6.js.br +0 -0
- codex/static_root/assets/VDivider-6KdInZc6.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-DGwHreC2.f97c0ffe01ac.js → VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js} +1 -1
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.6614e5f857f1.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-DGwHreC2.js → VExpansionPanels-Bwkzb0Oy.js} +1 -1
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-Bwkzb0Oy.js.gz +0 -0
- codex/static_root/assets/{VForm-bSlWOF1d.b3fd7d7fe68b.js → VForm-J2mEa_og.ff05ef3e7ff4.js} +1 -1
- codex/static_root/assets/VForm-J2mEa_og.ff05ef3e7ff4.js.br +0 -0
- codex/static_root/assets/VForm-J2mEa_og.ff05ef3e7ff4.js.gz +0 -0
- codex/static_root/assets/{VForm-bSlWOF1d.js → VForm-J2mEa_og.js} +1 -1
- codex/static_root/assets/VForm-J2mEa_og.js.br +0 -0
- codex/static_root/assets/VForm-J2mEa_og.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-Ctc2D2fE.72e42da00617.js → VRadioGroup-jPA1T3rE.b041ec78a828.js} +1 -1
- codex/static_root/assets/VRadioGroup-jPA1T3rE.b041ec78a828.js.br +0 -0
- codex/static_root/assets/VRadioGroup-jPA1T3rE.b041ec78a828.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-Ctc2D2fE.js → VRadioGroup-jPA1T3rE.js} +1 -1
- codex/static_root/assets/VRadioGroup-jPA1T3rE.js.br +0 -0
- codex/static_root/assets/VRadioGroup-jPA1T3rE.js.gz +0 -0
- codex/static_root/assets/{VSelect-DQPZyfSb.57477277e7dd.css → VSelect-BbzE_-2K.a86df90a9d55.css} +1 -1
- codex/static_root/assets/VSelect-BbzE_-2K.a86df90a9d55.css.br +0 -0
- codex/static_root/assets/VSelect-BbzE_-2K.a86df90a9d55.css.gz +0 -0
- codex/static_root/assets/{VSelect-DQPZyfSb.css → VSelect-BbzE_-2K.css} +1 -1
- codex/static_root/assets/VSelect-BbzE_-2K.css.br +0 -0
- codex/static_root/assets/VSelect-BbzE_-2K.css.gz +0 -0
- codex/static_root/assets/{VSelect-CHbtIx-x.js → VSelect-CP3Eb9Go.137c60644b7e.js} +1 -1
- codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js.br +0 -0
- codex/static_root/assets/VSelect-CP3Eb9Go.137c60644b7e.js.gz +0 -0
- codex/static_root/assets/{VSelect-CHbtIx-x.52ecf0514711.js → VSelect-CP3Eb9Go.js} +1 -1
- codex/static_root/assets/VSelect-CP3Eb9Go.js.br +0 -0
- codex/static_root/assets/VSelect-CP3Eb9Go.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js +1 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js.br +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.331471e38863.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.js +1 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.js.br +0 -0
- codex/static_root/assets/VSelectionControl-3mF3UtxV.js.gz +0 -0
- codex/static_root/assets/{VTable-CqSQnAGe.686a17da355c.js → VTable-KYw5fCd8.311b2d4fb655.js} +1 -1
- codex/static_root/assets/VTable-KYw5fCd8.311b2d4fb655.js.br +0 -0
- codex/static_root/assets/VTable-KYw5fCd8.311b2d4fb655.js.gz +0 -0
- codex/static_root/assets/{VTable-CqSQnAGe.js → VTable-KYw5fCd8.js} +1 -1
- codex/static_root/assets/VTable-KYw5fCd8.js.br +0 -0
- codex/static_root/assets/VTable-KYw5fCd8.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-D5CtN0yj.c8b34951a8de.js → VWindowItem-BUML2ecc.a2574b84b5d8.js} +1 -1
- codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js.br +0 -0
- codex/static_root/assets/VWindowItem-BUML2ecc.a2574b84b5d8.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-D5CtN0yj.js → VWindowItem-BUML2ecc.js} +1 -1
- codex/static_root/assets/VWindowItem-BUML2ecc.js.br +0 -0
- codex/static_root/assets/VWindowItem-BUML2ecc.js.gz +0 -0
- codex/static_root/assets/{admin-D5DpivSr.0f7dadb50319.js → admin-D7dHJsJ4.5a7b2f5af603.js} +1 -1
- codex/static_root/assets/admin-D7dHJsJ4.5a7b2f5af603.js.br +0 -0
- codex/static_root/assets/admin-D7dHJsJ4.5a7b2f5af603.js.gz +0 -0
- codex/static_root/assets/{admin-D5DpivSr.js → admin-D7dHJsJ4.js} +1 -1
- codex/static_root/assets/admin-D7dHJsJ4.js.br +0 -0
- codex/static_root/assets/admin-D7dHJsJ4.js.gz +0 -0
- codex/static_root/assets/{admin-CzajilVj.133c236f9c39.js → admin-DuXJR8qW.c11eb83c62fe.js} +1 -1
- codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js.br +0 -0
- codex/static_root/assets/admin-DuXJR8qW.c11eb83c62fe.js.gz +0 -0
- codex/static_root/assets/{admin-CzajilVj.js → admin-DuXJR8qW.js} +1 -1
- codex/static_root/assets/admin-DuXJR8qW.js.br +0 -0
- codex/static_root/assets/admin-DuXJR8qW.js.gz +0 -0
- codex/static_root/assets/admin-menu-BdgFc4sK.3a1221757854.css +1 -0
- codex/static_root/assets/admin-menu-BdgFc4sK.3a1221757854.css.br +0 -0
- codex/static_root/assets/admin-menu-BdgFc4sK.3a1221757854.css.gz +0 -0
- codex/static_root/assets/admin-menu-BdgFc4sK.css +1 -0
- codex/static_root/assets/admin-menu-BdgFc4sK.css.br +0 -0
- codex/static_root/assets/admin-menu-BdgFc4sK.css.gz +0 -0
- codex/static_root/assets/{admin-menu-MN0IHt2k.7ee7c492bfa2.js → admin-menu-Y-2f4f-t.7c6bffa811c0.js} +1 -1
- codex/static_root/assets/admin-menu-Y-2f4f-t.7c6bffa811c0.js.br +0 -0
- codex/static_root/assets/admin-menu-Y-2f4f-t.7c6bffa811c0.js.gz +0 -0
- codex/static_root/assets/{admin-menu-MN0IHt2k.js → admin-menu-Y-2f4f-t.js} +1 -1
- codex/static_root/assets/admin-menu-Y-2f4f-t.js.br +0 -0
- codex/static_root/assets/admin-menu-Y-2f4f-t.js.gz +0 -0
- codex/static_root/assets/{admin-settings-button-progress-CwHb2532.1011e5de0a37.js → admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js} +1 -1
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.37ae80a378e4.js.gz +0 -0
- codex/static_root/assets/{admin-settings-button-progress-CwHb2532.js → admin-settings-button-progress-CX4KtKvA.js} +1 -1
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.js.br +0 -0
- codex/static_root/assets/admin-settings-button-progress-CX4KtKvA.js.gz +0 -0
- codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js +1 -0
- codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js.br +0 -0
- codex/static_root/assets/browser-CqubhCxg.1e6645d0b01b.js.gz +0 -0
- codex/static_root/assets/browser-CqubhCxg.js +1 -0
- codex/static_root/assets/browser-CqubhCxg.js.br +0 -0
- codex/static_root/assets/browser-CqubhCxg.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-C2JNp2wz.93755e10c75c.js → change-password-dialog-CB7sPDF5.74381403a3ef.js} +1 -1
- codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CB7sPDF5.74381403a3ef.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-C2JNp2wz.js → change-password-dialog-CB7sPDF5.js} +1 -1
- codex/static_root/assets/change-password-dialog-CB7sPDF5.js.br +0 -0
- codex/static_root/assets/change-password-dialog-CB7sPDF5.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-g9rA18o3.cbfb51c3f0ba.js → confirm-dialog-Bc3Bw4Wf.df54617c5796.js} +1 -1
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.df54617c5796.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.df54617c5796.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-g9rA18o3.js → confirm-dialog-Bc3Bw4Wf.js} +1 -1
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.js.br +0 -0
- codex/static_root/assets/confirm-dialog-Bc3Bw4Wf.js.gz +0 -0
- codex/static_root/assets/{datetime-column-B6pIWef2.59b5ccbe4a21.js → datetime-column-zWcVwgyi.03ad8c8b24a1.js} +1 -1
- codex/static_root/assets/datetime-column-zWcVwgyi.03ad8c8b24a1.js.br +0 -0
- codex/static_root/assets/datetime-column-zWcVwgyi.03ad8c8b24a1.js.gz +0 -0
- codex/static_root/assets/{datetime-column-B6pIWef2.js → datetime-column-zWcVwgyi.js} +1 -1
- codex/static_root/assets/datetime-column-zWcVwgyi.js.br +0 -0
- codex/static_root/assets/datetime-column-zWcVwgyi.js.gz +0 -0
- codex/static_root/assets/{filter-BOz2i2LB.be5d6981c97b.js → filter-DWF4EaH3.e92b5573507a.js} +1 -1
- codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js.br +0 -0
- codex/static_root/assets/filter-DWF4EaH3.e92b5573507a.js.gz +0 -0
- codex/static_root/assets/{filter-BOz2i2LB.js → filter-DWF4EaH3.js} +1 -1
- codex/static_root/assets/filter-DWF4EaH3.js.br +0 -0
- codex/static_root/assets/filter-DWF4EaH3.js.gz +0 -0
- codex/static_root/assets/{flag-tab-EZpGBixK.e188cc5b4791.js → flag-tab-GTA-yaU7.7c095722ebed.js} +1 -1
- codex/static_root/assets/flag-tab-GTA-yaU7.7c095722ebed.js.br +0 -0
- codex/static_root/assets/flag-tab-GTA-yaU7.7c095722ebed.js.gz +0 -0
- codex/static_root/assets/{flag-tab-EZpGBixK.js → flag-tab-GTA-yaU7.js} +1 -1
- codex/static_root/assets/flag-tab-GTA-yaU7.js.br +0 -0
- codex/static_root/assets/flag-tab-GTA-yaU7.js.gz +0 -0
- codex/static_root/assets/{forwardRefs-BotGMO80.9b4b85f9c240.js → forwardRefs-CGimG8CQ.b99b41ed1eed.js} +1 -1
- codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js.br +0 -0
- codex/static_root/assets/forwardRefs-CGimG8CQ.b99b41ed1eed.js.gz +0 -0
- codex/static_root/assets/{forwardRefs-BotGMO80.js → forwardRefs-CGimG8CQ.js} +1 -1
- codex/static_root/assets/forwardRefs-CGimG8CQ.js.br +0 -0
- codex/static_root/assets/forwardRefs-CGimG8CQ.js.gz +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css +1 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css.br +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.cfdcd69926d9.css.gz +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.css +1 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.css.br +0 -0
- codex/static_root/assets/forwardRefs-vX-mze-3.css.gz +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.e36d5a728ebc.js +1 -0
- codex/static_root/assets/group-tab-BSr4dJJW.e36d5a728ebc.js.br +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.e36d5a728ebc.js.gz +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.js +1 -0
- codex/static_root/assets/group-tab-BSr4dJJW.js.br +0 -0
- codex/static_root/assets/group-tab-BSr4dJJW.js.gz +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js +1 -0
- codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js.br +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.386c711703ef.js.gz +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.js +1 -0
- codex/static_root/assets/http-error-CwCiNlwC.js.br +0 -0
- codex/static_root/assets/http-error-CwCiNlwC.js.gz +0 -0
- codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js +1 -0
- codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js.br +0 -0
- codex/static_root/assets/index-DOP9KYca.5d9b48ff6f1a.js.gz +0 -0
- codex/static_root/assets/index-DOP9KYca.js +1 -0
- codex/static_root/assets/index-DOP9KYca.js.br +0 -0
- codex/static_root/assets/index-DOP9KYca.js.gz +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.516218e664f8.js +1 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.516218e664f8.js.br +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.516218e664f8.js.gz +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.js +1 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.js.br +0 -0
- codex/static_root/assets/library-tab-B_PHwUZ-.js.gz +0 -0
- codex/static_root/assets/{library-tab-5StL67ei.0fad8998a237.css → library-tab-DIIxAUNe.10ec98cfe11d.css} +1 -1
- codex/static_root/assets/library-tab-DIIxAUNe.10ec98cfe11d.css.br +0 -0
- codex/static_root/assets/library-tab-DIIxAUNe.10ec98cfe11d.css.gz +0 -0
- codex/static_root/assets/{library-tab-5StL67ei.css → library-tab-DIIxAUNe.css} +1 -1
- codex/static_root/assets/library-tab-DIIxAUNe.css.br +0 -0
- codex/static_root/assets/library-tab-DIIxAUNe.css.gz +0 -0
- codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js +39 -0
- codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js.br +0 -0
- codex/static_root/assets/main-BERoK-j2.3915bda15ee5.js.gz +0 -0
- codex/static_root/assets/main-BERoK-j2.js +39 -0
- codex/static_root/assets/main-BERoK-j2.js.br +0 -0
- codex/static_root/assets/main-BERoK-j2.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js +1 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.2408a027dbe1.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js +1 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-Bs_Q1Bfa.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.3a224c7806a5.css → pagination-toolbar-BMm-LmG-.92cfb20daeb9.css} +1 -1
- codex/static_root/assets/pagination-toolbar-BMm-LmG-.92cfb20daeb9.css.br +0 -0
- codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.3a224c7806a5.css.gz → pagination-toolbar-BMm-LmG-.92cfb20daeb9.css.gz} +0 -0
- codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.css → pagination-toolbar-BMm-LmG-.css} +1 -1
- codex/static_root/assets/pagination-toolbar-BMm-LmG-.css.br +0 -0
- codex/static_root/assets/{pagination-toolbar-rUdD4-Qi.css.gz → pagination-toolbar-BMm-LmG-.css.gz} +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js +1 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.c440bd1066b0.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.js +1 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-CWi6EIET.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-CckhLi0L.fb5b866531f4.js → pdf-doc-BFFOclVi.b0ec00bfb616.js} +4 -4
- codex/static_root/assets/pdf-doc-BFFOclVi.b0ec00bfb616.js.br +0 -0
- codex/static_root/assets/pdf-doc-BFFOclVi.b0ec00bfb616.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-CckhLi0L.js → pdf-doc-BFFOclVi.js} +4 -4
- codex/static_root/assets/pdf-doc-BFFOclVi.js.br +0 -0
- codex/static_root/assets/pdf-doc-BFFOclVi.js.gz +0 -0
- codex/static_root/assets/{reader-HE07eoaG.8626eeb7c718.css → reader-BUEw0RYD.css} +1 -1
- codex/static_root/assets/reader-BUEw0RYD.css.br +0 -0
- codex/static_root/assets/reader-BUEw0RYD.css.gz +0 -0
- codex/static_root/assets/{reader-HE07eoaG.css → reader-BUEw0RYD.e084c3b621d4.css} +1 -1
- codex/static_root/assets/reader-BUEw0RYD.e084c3b621d4.css.br +0 -0
- codex/static_root/assets/reader-BUEw0RYD.e084c3b621d4.css.gz +0 -0
- codex/static_root/assets/{reader-C4ZyLa6d.26c257a96237.js → reader-DxFZyySj.340be27f9b2d.js} +2 -2
- codex/static_root/assets/reader-DxFZyySj.340be27f9b2d.js.br +0 -0
- codex/static_root/assets/reader-DxFZyySj.340be27f9b2d.js.gz +0 -0
- codex/static_root/assets/{reader-C4ZyLa6d.js → reader-DxFZyySj.js} +2 -2
- codex/static_root/assets/reader-DxFZyySj.js.br +0 -0
- codex/static_root/assets/reader-DxFZyySj.js.gz +0 -0
- codex/static_root/assets/{relation-chips-B7Qn-kfx.a8ee6d66d03e.js → relation-chips-C4GQrh_b.f1e80447ddb4.js} +1 -1
- codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js.br +0 -0
- codex/static_root/assets/relation-chips-C4GQrh_b.f1e80447ddb4.js.gz +0 -0
- codex/static_root/assets/{relation-chips-B7Qn-kfx.js → relation-chips-C4GQrh_b.js} +1 -1
- codex/static_root/assets/relation-chips-C4GQrh_b.js.br +0 -0
- codex/static_root/assets/relation-chips-C4GQrh_b.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.54110f5e27ec.js +2 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.54110f5e27ec.js.br +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.54110f5e27ec.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.js +2 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.js.br +0 -0
- codex/static_root/assets/settings-drawer-BD44Ahju.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-B-pwZRSy.8fc8b237bb52.css → settings-drawer-D7bFOc4_.9748ddd58be9.css} +1 -1
- codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.br +0 -0
- codex/static_root/assets/settings-drawer-D7bFOc4_.9748ddd58be9.css.gz +0 -0
- codex/static_root/assets/{settings-drawer-B-pwZRSy.css → settings-drawer-D7bFOc4_.css} +1 -1
- codex/static_root/assets/settings-drawer-D7bFOc4_.css.br +0 -0
- codex/static_root/assets/settings-drawer-D7bFOc4_.css.gz +0 -0
- codex/static_root/assets/{ssrBoot-Ehaw9KYw.f5a5d2d8dc03.js → ssrBoot-_TndNOM6.a99eba568e94.js} +1 -1
- codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js.br +0 -0
- codex/static_root/assets/ssrBoot-_TndNOM6.a99eba568e94.js.gz +0 -0
- codex/static_root/assets/{ssrBoot-Ehaw9KYw.js → ssrBoot-_TndNOM6.js} +1 -1
- codex/static_root/assets/ssrBoot-_TndNOM6.js.br +0 -0
- codex/static_root/assets/ssrBoot-_TndNOM6.js.gz +0 -0
- codex/static_root/assets/{stats-tab-73FDJsc7.f45ecc58f474.js → stats-tab-Dzy_P00k.ea54237a2011.js} +1 -1
- codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js.br +0 -0
- codex/static_root/assets/stats-tab-Dzy_P00k.ea54237a2011.js.gz +0 -0
- codex/static_root/assets/{stats-tab-73FDJsc7.js → stats-tab-Dzy_P00k.js} +1 -1
- codex/static_root/assets/stats-tab-Dzy_P00k.js.br +0 -0
- codex/static_root/assets/stats-tab-Dzy_P00k.js.gz +0 -0
- codex/static_root/assets/{task-tab-BVYsZcvv.46b9863140a4.js → task-tab-DUpMTPbM.bf11c5676008.js} +1 -1
- codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js.br +0 -0
- codex/static_root/assets/task-tab-DUpMTPbM.bf11c5676008.js.gz +0 -0
- codex/static_root/assets/{task-tab-BVYsZcvv.js → task-tab-DUpMTPbM.js} +1 -1
- codex/static_root/assets/task-tab-DUpMTPbM.js.br +0 -0
- codex/static_root/assets/task-tab-DUpMTPbM.js.gz +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.6cef38be7edd.js +1 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.6cef38be7edd.js.br +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.6cef38be7edd.js.gz +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.js +1 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.js.br +0 -0
- codex/static_root/assets/unauthorized-CN4zNUwv.js.gz +0 -0
- codex/static_root/assets/{user-tab-D6T6AHAf.31cbb86e18ed.js → user-tab-BfK1ySCm.24ed1c97836c.js} +1 -1
- codex/static_root/assets/user-tab-BfK1ySCm.24ed1c97836c.js.br +0 -0
- codex/static_root/assets/user-tab-BfK1ySCm.24ed1c97836c.js.gz +0 -0
- codex/static_root/assets/{user-tab-D6T6AHAf.js → user-tab-BfK1ySCm.js} +1 -1
- codex/static_root/assets/user-tab-BfK1ySCm.js.br +0 -0
- codex/static_root/assets/user-tab-BfK1ySCm.js.gz +0 -0
- codex/static_root/{manifest.c633402500de.json → manifest.c30398ff70cf.json} +314 -314
- codex/static_root/manifest.c30398ff70cf.json.br +0 -0
- codex/static_root/manifest.c30398ff70cf.json.gz +0 -0
- codex/static_root/manifest.json +314 -314
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/websockets/consumers.py +2 -3
- {codex-1.8.11.dist-info → codex-1.8.13.dist-info}/METADATA +23 -23
- codex-1.8.13.dist-info/RECORD +1102 -0
- codex-1.8.13.dist-info/WHEEL +4 -0
- {codex-1.8.11.dist-info → codex-1.8.13.dist-info}/entry_points.txt +1 -0
- codex/static_root/assets/VCheckbox-yJKLwTHL.c95ec3575cfc.js.br +0 -0
- codex/static_root/assets/VCheckbox-yJKLwTHL.c95ec3575cfc.js.gz +0 -0
- codex/static_root/assets/VCheckbox-yJKLwTHL.js.br +0 -0
- codex/static_root/assets/VCheckbox-yJKLwTHL.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-dB9xmqwr.5769d67bb7f2.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-dB9xmqwr.5769d67bb7f2.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-dB9xmqwr.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-dB9xmqwr.js.gz +0 -0
- codex/static_root/assets/VCombobox-DOGFHYmN.88d1f3799dc6.js.br +0 -0
- codex/static_root/assets/VCombobox-DOGFHYmN.88d1f3799dc6.js.gz +0 -0
- codex/static_root/assets/VCombobox-DOGFHYmN.js.br +0 -0
- codex/static_root/assets/VCombobox-DOGFHYmN.js.gz +0 -0
- codex/static_root/assets/VDialog-DhWYW70x.d777b17f7fda.js.br +0 -0
- codex/static_root/assets/VDialog-DhWYW70x.d777b17f7fda.js.gz +0 -0
- codex/static_root/assets/VDialog-DhWYW70x.js.br +0 -0
- codex/static_root/assets/VDialog-DhWYW70x.js.gz +0 -0
- codex/static_root/assets/VDivider-D5g1AzdV.2e3bd93fadb2.js.br +0 -0
- codex/static_root/assets/VDivider-D5g1AzdV.2e3bd93fadb2.js.gz +0 -0
- codex/static_root/assets/VDivider-D5g1AzdV.js.br +0 -0
- codex/static_root/assets/VDivider-D5g1AzdV.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-DGwHreC2.f97c0ffe01ac.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DGwHreC2.f97c0ffe01ac.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-DGwHreC2.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-DGwHreC2.js.gz +0 -0
- codex/static_root/assets/VForm-bSlWOF1d.b3fd7d7fe68b.js.br +0 -0
- codex/static_root/assets/VForm-bSlWOF1d.b3fd7d7fe68b.js.gz +0 -0
- codex/static_root/assets/VForm-bSlWOF1d.js.br +0 -0
- codex/static_root/assets/VForm-bSlWOF1d.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-Ctc2D2fE.72e42da00617.js.br +0 -0
- codex/static_root/assets/VRadioGroup-Ctc2D2fE.72e42da00617.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-Ctc2D2fE.js.br +0 -0
- codex/static_root/assets/VRadioGroup-Ctc2D2fE.js.gz +0 -0
- codex/static_root/assets/VSelect-CHbtIx-x.52ecf0514711.js.br +0 -0
- codex/static_root/assets/VSelect-CHbtIx-x.52ecf0514711.js.gz +0 -0
- codex/static_root/assets/VSelect-CHbtIx-x.js.br +0 -0
- codex/static_root/assets/VSelect-CHbtIx-x.js.gz +0 -0
- codex/static_root/assets/VSelect-DQPZyfSb.57477277e7dd.css.br +0 -0
- codex/static_root/assets/VSelect-DQPZyfSb.57477277e7dd.css.gz +0 -0
- codex/static_root/assets/VSelect-DQPZyfSb.css.br +0 -0
- codex/static_root/assets/VSelect-DQPZyfSb.css.gz +0 -0
- codex/static_root/assets/VSelectionControl-BI__4iTT.fa63635e3cbb.js +0 -1
- codex/static_root/assets/VSelectionControl-BI__4iTT.fa63635e3cbb.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BI__4iTT.fa63635e3cbb.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-BI__4iTT.js +0 -1
- codex/static_root/assets/VSelectionControl-BI__4iTT.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BI__4iTT.js.gz +0 -0
- codex/static_root/assets/VTable-CqSQnAGe.686a17da355c.js.br +0 -0
- codex/static_root/assets/VTable-CqSQnAGe.686a17da355c.js.gz +0 -0
- codex/static_root/assets/VTable-CqSQnAGe.js.br +0 -0
- codex/static_root/assets/VTable-CqSQnAGe.js.gz +0 -0
- codex/static_root/assets/VWindowItem-D5CtN0yj.c8b34951a8de.js.br +0 -0
- codex/static_root/assets/VWindowItem-D5CtN0yj.c8b34951a8de.js.gz +0 -0
- codex/static_root/assets/VWindowItem-D5CtN0yj.js.br +0 -0
- codex/static_root/assets/VWindowItem-D5CtN0yj.js.gz +0 -0
- codex/static_root/assets/admin-CzajilVj.133c236f9c39.js.br +0 -0
- codex/static_root/assets/admin-CzajilVj.133c236f9c39.js.gz +0 -0
- codex/static_root/assets/admin-CzajilVj.js.br +0 -0
- codex/static_root/assets/admin-CzajilVj.js.gz +0 -0
- codex/static_root/assets/admin-D5DpivSr.0f7dadb50319.js.br +0 -0
- codex/static_root/assets/admin-D5DpivSr.0f7dadb50319.js.gz +0 -0
- codex/static_root/assets/admin-D5DpivSr.js.br +0 -0
- codex/static_root/assets/admin-D5DpivSr.js.gz +0 -0
- codex/static_root/assets/admin-menu-MN0IHt2k.7ee7c492bfa2.js.br +0 -0
- codex/static_root/assets/admin-menu-MN0IHt2k.7ee7c492bfa2.js.gz +0 -0
- codex/static_root/assets/admin-menu-MN0IHt2k.js.br +0 -0
- codex/static_root/assets/admin-menu-MN0IHt2k.js.gz +0 -0
- codex/static_root/assets/admin-menu-hpyUS8ku.18284a11084d.css +0 -1
- codex/static_root/assets/admin-menu-hpyUS8ku.18284a11084d.css.br +0 -0
- codex/static_root/assets/admin-menu-hpyUS8ku.18284a11084d.css.gz +0 -0
- codex/static_root/assets/admin-menu-hpyUS8ku.css +0 -1
- codex/static_root/assets/admin-menu-hpyUS8ku.css.br +0 -0
- codex/static_root/assets/admin-menu-hpyUS8ku.css.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-CwHb2532.1011e5de0a37.js.br +0 -1
- codex/static_root/assets/admin-settings-button-progress-CwHb2532.1011e5de0a37.js.gz +0 -0
- codex/static_root/assets/admin-settings-button-progress-CwHb2532.js.br +0 -1
- codex/static_root/assets/admin-settings-button-progress-CwHb2532.js.gz +0 -0
- codex/static_root/assets/browser-CpLIkclU.9af33deffa94.js +0 -1
- codex/static_root/assets/browser-CpLIkclU.9af33deffa94.js.br +0 -0
- codex/static_root/assets/browser-CpLIkclU.9af33deffa94.js.gz +0 -0
- codex/static_root/assets/browser-CpLIkclU.js +0 -1
- codex/static_root/assets/browser-CpLIkclU.js.br +0 -0
- codex/static_root/assets/browser-CpLIkclU.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-C2JNp2wz.93755e10c75c.js.br +0 -0
- codex/static_root/assets/change-password-dialog-C2JNp2wz.93755e10c75c.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-C2JNp2wz.js.br +0 -0
- codex/static_root/assets/change-password-dialog-C2JNp2wz.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-g9rA18o3.cbfb51c3f0ba.js.br +0 -0
- codex/static_root/assets/confirm-dialog-g9rA18o3.cbfb51c3f0ba.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-g9rA18o3.js.br +0 -0
- codex/static_root/assets/confirm-dialog-g9rA18o3.js.gz +0 -0
- codex/static_root/assets/datetime-column-B6pIWef2.59b5ccbe4a21.js.br +0 -3
- codex/static_root/assets/datetime-column-B6pIWef2.59b5ccbe4a21.js.gz +0 -0
- codex/static_root/assets/datetime-column-B6pIWef2.js.br +0 -3
- codex/static_root/assets/datetime-column-B6pIWef2.js.gz +0 -0
- codex/static_root/assets/filter-BOz2i2LB.be5d6981c97b.js.br +0 -0
- codex/static_root/assets/filter-BOz2i2LB.be5d6981c97b.js.gz +0 -0
- codex/static_root/assets/filter-BOz2i2LB.js.br +0 -0
- codex/static_root/assets/filter-BOz2i2LB.js.gz +0 -0
- codex/static_root/assets/flag-tab-EZpGBixK.e188cc5b4791.js.br +0 -0
- codex/static_root/assets/flag-tab-EZpGBixK.e188cc5b4791.js.gz +0 -0
- codex/static_root/assets/flag-tab-EZpGBixK.js.br +0 -0
- codex/static_root/assets/flag-tab-EZpGBixK.js.gz +0 -0
- codex/static_root/assets/forwardRefs-BotGMO80.9b4b85f9c240.js.br +0 -0
- codex/static_root/assets/forwardRefs-BotGMO80.9b4b85f9c240.js.gz +0 -0
- codex/static_root/assets/forwardRefs-BotGMO80.js.br +0 -0
- codex/static_root/assets/forwardRefs-BotGMO80.js.gz +0 -0
- codex/static_root/assets/forwardRefs-C3Z4qL85.48fb131ece85.css +0 -1
- codex/static_root/assets/forwardRefs-C3Z4qL85.48fb131ece85.css.br +0 -0
- codex/static_root/assets/forwardRefs-C3Z4qL85.48fb131ece85.css.gz +0 -0
- codex/static_root/assets/forwardRefs-C3Z4qL85.css +0 -1
- codex/static_root/assets/forwardRefs-C3Z4qL85.css.br +0 -0
- codex/static_root/assets/forwardRefs-C3Z4qL85.css.gz +0 -0
- codex/static_root/assets/group-tab-46Ic9z7f.ef96094e5106.js +0 -1
- codex/static_root/assets/group-tab-46Ic9z7f.ef96094e5106.js.br +0 -0
- codex/static_root/assets/group-tab-46Ic9z7f.ef96094e5106.js.gz +0 -0
- codex/static_root/assets/group-tab-46Ic9z7f.js +0 -1
- codex/static_root/assets/group-tab-46Ic9z7f.js.br +0 -0
- codex/static_root/assets/group-tab-46Ic9z7f.js.gz +0 -0
- codex/static_root/assets/http-error-BcTquFdz.9667604bb28b.js +0 -1
- codex/static_root/assets/http-error-BcTquFdz.9667604bb28b.js.br +0 -0
- codex/static_root/assets/http-error-BcTquFdz.9667604bb28b.js.gz +0 -0
- codex/static_root/assets/http-error-BcTquFdz.js +0 -1
- codex/static_root/assets/http-error-BcTquFdz.js.br +0 -0
- codex/static_root/assets/http-error-BcTquFdz.js.gz +0 -0
- codex/static_root/assets/index-DDX_hxwV.4dbe80b8783c.js +0 -1
- codex/static_root/assets/index-DDX_hxwV.4dbe80b8783c.js.br +0 -0
- codex/static_root/assets/index-DDX_hxwV.4dbe80b8783c.js.gz +0 -0
- codex/static_root/assets/index-DDX_hxwV.js +0 -1
- codex/static_root/assets/index-DDX_hxwV.js.br +0 -0
- codex/static_root/assets/index-DDX_hxwV.js.gz +0 -0
- codex/static_root/assets/library-tab-2DEjDVUD.f23bcd6e7e25.js +0 -1
- codex/static_root/assets/library-tab-2DEjDVUD.f23bcd6e7e25.js.br +0 -0
- codex/static_root/assets/library-tab-2DEjDVUD.f23bcd6e7e25.js.gz +0 -0
- codex/static_root/assets/library-tab-2DEjDVUD.js +0 -1
- codex/static_root/assets/library-tab-2DEjDVUD.js.br +0 -0
- codex/static_root/assets/library-tab-2DEjDVUD.js.gz +0 -0
- codex/static_root/assets/library-tab-5StL67ei.0fad8998a237.css.br +0 -0
- codex/static_root/assets/library-tab-5StL67ei.0fad8998a237.css.gz +0 -0
- codex/static_root/assets/library-tab-5StL67ei.css.br +0 -0
- codex/static_root/assets/library-tab-5StL67ei.css.gz +0 -0
- codex/static_root/assets/main-CdKoY_uF.e9128a1200b4.js +0 -39
- codex/static_root/assets/main-CdKoY_uF.e9128a1200b4.js.br +0 -0
- codex/static_root/assets/main-CdKoY_uF.e9128a1200b4.js.gz +0 -0
- codex/static_root/assets/main-CdKoY_uF.js +0 -39
- codex/static_root/assets/main-CdKoY_uF.js.br +0 -0
- codex/static_root/assets/main-CdKoY_uF.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-D928P3tE.257c395fcdf3.js +0 -1
- codex/static_root/assets/pager-full-pdf-D928P3tE.257c395fcdf3.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-D928P3tE.257c395fcdf3.js.gz +0 -0
- codex/static_root/assets/pager-full-pdf-D928P3tE.js +0 -1
- codex/static_root/assets/pager-full-pdf-D928P3tE.js.br +0 -0
- codex/static_root/assets/pager-full-pdf-D928P3tE.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-YZ6fysEV.3064a17ac385.js +0 -1
- codex/static_root/assets/pagination-toolbar-YZ6fysEV.3064a17ac385.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-YZ6fysEV.3064a17ac385.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-YZ6fysEV.js +0 -1
- codex/static_root/assets/pagination-toolbar-YZ6fysEV.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-YZ6fysEV.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-rUdD4-Qi.3a224c7806a5.css.br +0 -0
- codex/static_root/assets/pagination-toolbar-rUdD4-Qi.css.br +0 -0
- codex/static_root/assets/pdf-doc-CckhLi0L.fb5b866531f4.js.br +0 -0
- codex/static_root/assets/pdf-doc-CckhLi0L.fb5b866531f4.js.gz +0 -0
- codex/static_root/assets/pdf-doc-CckhLi0L.js.br +0 -0
- codex/static_root/assets/pdf-doc-CckhLi0L.js.gz +0 -0
- codex/static_root/assets/reader-C4ZyLa6d.26c257a96237.js.br +0 -0
- codex/static_root/assets/reader-C4ZyLa6d.26c257a96237.js.gz +0 -0
- codex/static_root/assets/reader-C4ZyLa6d.js.br +0 -0
- codex/static_root/assets/reader-C4ZyLa6d.js.gz +0 -0
- codex/static_root/assets/reader-HE07eoaG.8626eeb7c718.css.br +0 -0
- codex/static_root/assets/reader-HE07eoaG.8626eeb7c718.css.gz +0 -0
- codex/static_root/assets/reader-HE07eoaG.css.br +0 -0
- codex/static_root/assets/reader-HE07eoaG.css.gz +0 -0
- codex/static_root/assets/relation-chips-B7Qn-kfx.a8ee6d66d03e.js.br +0 -0
- codex/static_root/assets/relation-chips-B7Qn-kfx.a8ee6d66d03e.js.gz +0 -0
- codex/static_root/assets/relation-chips-B7Qn-kfx.js.br +0 -0
- codex/static_root/assets/relation-chips-B7Qn-kfx.js.gz +0 -0
- codex/static_root/assets/settings-drawer-B-pwZRSy.8fc8b237bb52.css.br +0 -0
- codex/static_root/assets/settings-drawer-B-pwZRSy.8fc8b237bb52.css.gz +0 -0
- codex/static_root/assets/settings-drawer-B-pwZRSy.css.br +0 -0
- codex/static_root/assets/settings-drawer-B-pwZRSy.css.gz +0 -0
- codex/static_root/assets/settings-drawer-f_0NPvmu.3a94ab493b85.js +0 -2
- codex/static_root/assets/settings-drawer-f_0NPvmu.3a94ab493b85.js.br +0 -0
- codex/static_root/assets/settings-drawer-f_0NPvmu.3a94ab493b85.js.gz +0 -0
- codex/static_root/assets/settings-drawer-f_0NPvmu.js +0 -2
- codex/static_root/assets/settings-drawer-f_0NPvmu.js.br +0 -0
- codex/static_root/assets/settings-drawer-f_0NPvmu.js.gz +0 -0
- codex/static_root/assets/ssrBoot-Ehaw9KYw.f5a5d2d8dc03.js.br +0 -0
- codex/static_root/assets/ssrBoot-Ehaw9KYw.f5a5d2d8dc03.js.gz +0 -0
- codex/static_root/assets/ssrBoot-Ehaw9KYw.js.br +0 -0
- codex/static_root/assets/ssrBoot-Ehaw9KYw.js.gz +0 -0
- codex/static_root/assets/stats-tab-73FDJsc7.f45ecc58f474.js.br +0 -0
- codex/static_root/assets/stats-tab-73FDJsc7.f45ecc58f474.js.gz +0 -0
- codex/static_root/assets/stats-tab-73FDJsc7.js.br +0 -0
- codex/static_root/assets/stats-tab-73FDJsc7.js.gz +0 -0
- codex/static_root/assets/task-tab-BVYsZcvv.46b9863140a4.js.br +0 -0
- codex/static_root/assets/task-tab-BVYsZcvv.46b9863140a4.js.gz +0 -0
- codex/static_root/assets/task-tab-BVYsZcvv.js.br +0 -0
- codex/static_root/assets/task-tab-BVYsZcvv.js.gz +0 -0
- codex/static_root/assets/unauthorized-MOc4QcAg.96154ead3d95.js +0 -1
- codex/static_root/assets/unauthorized-MOc4QcAg.96154ead3d95.js.br +0 -0
- codex/static_root/assets/unauthorized-MOc4QcAg.96154ead3d95.js.gz +0 -0
- codex/static_root/assets/unauthorized-MOc4QcAg.js +0 -1
- codex/static_root/assets/unauthorized-MOc4QcAg.js.br +0 -0
- codex/static_root/assets/unauthorized-MOc4QcAg.js.gz +0 -0
- codex/static_root/assets/user-tab-D6T6AHAf.31cbb86e18ed.js.br +0 -0
- codex/static_root/assets/user-tab-D6T6AHAf.31cbb86e18ed.js.gz +0 -0
- codex/static_root/assets/user-tab-D6T6AHAf.js.br +0 -0
- codex/static_root/assets/user-tab-D6T6AHAf.js.gz +0 -0
- codex/static_root/manifest.c633402500de.json.br +0 -0
- codex/static_root/manifest.c633402500de.json.gz +0 -0
- codex-1.8.11.dist-info/RECORD +0 -1103
- codex-1.8.11.dist-info/WHEEL +0 -4
- codex-1.8.11.dist-info/licenses/LICENSE +0 -674
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as m,E as c,v as e,q as s,x as l,a as o,w as u,aK as _,al as d}from"./main-CdKoY_uF.js";import{S as g,P}from"./reader-C4ZyLa6d.js";import f from"./pdf-doc-CckhLi0L.js";import"./settings-drawer-f_0NPvmu.js";import"./forwardRefs-BotGMO80.js";import"./unauthorized-MOc4QcAg.js";import"./VDialog-DhWYW70x.js";import"./change-password-dialog-C2JNp2wz.js";import"./VForm-bSlWOF1d.js";import"./VSelectionControl-BI__4iTT.js";import"./admin-D5DpivSr.js";import"./ssrBoot-Ehaw9KYw.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDivider-D5g1AzdV.js";import"./VWindowItem-D5CtN0yj.js";import"./VSelect-CHbtIx-x.js";import"./VCheckboxBtn-dB9xmqwr.js";import"./pagination-toolbar-YZ6fysEV.js";import"./VTable-CqSQnAGe.js";import"./confirm-dialog-g9rA18o3.js";import"./VExpansionPanels-DGwHreC2.js";import"./VRadioGroup-Ctc2D2fE.js";import"./VCheckbox-yJKLwTHL.js";import"./index-DDX_hxwV.js";const k={name:"PagerFullPDF",components:{PageChangeLink:P,PDFDoc:f,ScaleForScroll:g},props:{book:{type:Object,required:!0}},emits:["load","error","unauthorized"],computed:{...c(d,{page:r=>r.page||0}),src(){return _(this.book)}}};function F(r,S,a,D,h,p){const t=e("PageChangeLink"),n=e("PDFDoc"),i=e("ScaleForScroll");return l(),s("span",null,[o(t,{direction:"prev"}),o(t,{direction:"next"}),o(i,null,{default:u(()=>[o(n,{book:a.book,page:r.page,src:p.src},null,8,["book","page","src"])]),_:1})])}const M=m(k,[["render",F]]);export{M as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as m,E as c,v as e,q as s,x as l,a as o,w as u,aK as _,al as d}from"./main-CdKoY_uF.js";import{S as g,P}from"./reader-C4ZyLa6d.js";import f from"./pdf-doc-CckhLi0L.js";import"./settings-drawer-f_0NPvmu.js";import"./forwardRefs-BotGMO80.js";import"./unauthorized-MOc4QcAg.js";import"./VDialog-DhWYW70x.js";import"./change-password-dialog-C2JNp2wz.js";import"./VForm-bSlWOF1d.js";import"./VSelectionControl-BI__4iTT.js";import"./admin-D5DpivSr.js";import"./ssrBoot-Ehaw9KYw.js";import"./copy-to-clipboard-DoUvDJVx.js";import"./VDivider-D5g1AzdV.js";import"./VWindowItem-D5CtN0yj.js";import"./VSelect-CHbtIx-x.js";import"./VCheckboxBtn-dB9xmqwr.js";import"./pagination-toolbar-YZ6fysEV.js";import"./VTable-CqSQnAGe.js";import"./confirm-dialog-g9rA18o3.js";import"./VExpansionPanels-DGwHreC2.js";import"./VRadioGroup-Ctc2D2fE.js";import"./VCheckbox-yJKLwTHL.js";import"./index-DDX_hxwV.js";const k={name:"PagerFullPDF",components:{PageChangeLink:P,PDFDoc:f,ScaleForScroll:g},props:{book:{type:Object,required:!0}},emits:["load","error","unauthorized"],computed:{...c(d,{page:r=>r.page||0}),src(){return _(this.book)}}};function F(r,S,a,D,h,p){const t=e("PageChangeLink"),n=e("PDFDoc"),i=e("ScaleForScroll");return l(),s("span",null,[o(t,{direction:"prev"}),o(t,{direction:"next"}),o(i,null,{default:u(()=>[o(n,{book:a.book,page:r.page,src:p.src},null,8,["book","page","src"])]),_:1})])}const M=m(k,[["render",F]]);export{M as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as ke,p as he,f as ot,t as $,u as ye,b as m,n as re,d as V,K as Re,aY as $e,_ as T,y as f,W as Ne,A as ue,w as C,m as Z,x as l,a6 as Ve,a as u,E as M,aZ as lt,N as L,q as p,H as h,B as w,aw as ut,ae as Te,a_ as dt,a$ as ct,az as mt,v as _,C as de,b0 as ht,b1 as ft,U as pt,a0 as Le,z as F,b2 as vt,b3 as Fe,l as gt,b4 as bt,F as me,ag as kt,ac as yt,ad as _t,a9 as Ue,G as St,b5 as wt,ab as Ct,Y as Tt,c as g,b6 as De,aD as Ie,aU as Ee,r as be,b7 as Mt,b8 as Me,aX as Bt,aW as Rt,i as qe,b9 as Nt,h as ie,T as ze,aR as Vt,e as Lt}from"./main-CdKoY_uF.js";import{A as It,V as _e,k as ne,n as xt,t as Pt,j as $t,R as Oe,s as Ft,u as Dt,c as Be,i as Et,f as zt}from"./forwardRefs-BotGMO80.js";import{c as Ot,d as At}from"./VSelect-CHbtIx-x.js";import{a as Gt,c as jt,d as Ut,V as qt}from"./VDialog-DhWYW70x.js";import{C as Ht}from"./change-password-dialog-C2JNp2wz.js";import{d as Kt,f as Wt,u as Yt,g as Ae,m as Zt,h as Xt,i as Qt}from"./VSelectionControl-BI__4iTT.js";import{V as He}from"./VTable-CqSQnAGe.js";import{C as Ke}from"./confirm-dialog-g9rA18o3.js";import{P as Jt,V as ea}from"./unauthorized-MOc4QcAg.js";const ta=he({...Re(),...It({variant:"text"})},"VToolbarItems"),pi=ke()({name:"VToolbarItems",props:ta(),setup(e,t){let{slots:a}=t;return ot({VBtn:{color:$(()=>e.color),height:"inherit",variant:$(()=>e.variant)}}),ye(()=>m("div",{class:V(["v-toolbar-items",e.class]),style:re(e.style)},[a.default?.()])),{}}}),Ce=new Set(["",$e,$e.toString(),void 0]),aa=function(e){let t;if(Ce.has(e))t=e;else if(e instanceof Object)if("ids"in e){const a=new Set(e.ids);Ce.intersection(a).size>0?t=void 0:t={value:e.ids.join(","),title:e.name}}else Ce.has(e.pk)?t=void 0:t={value:e.pk,title:e.name};else t={value:e,title:e.toString()};return e?.url&&(t.url=e.url),t},sa=function(e,t){return e.title.localeCompare(t.title)},ia=function(e,t){return Number.parseFloat(e.title)-Number.parseFloat(t.title)},Ge=function({items:e,filter:t,numeric:a=!1,sort:r=!0}){const n=e||[],s=t&&t.toLowerCase();let i=[];for(const o of n){const d=aa(o);d!=null&&(!s||d?.title?.toLowerCase().includes(s))&&i.push(d)}if(r){const o=a?ia:sa;i=i.sort(o)}return i},na={name:"ToolbarSelect",props:{selectLabel:{type:String,default:""},maxSelectLen:{type:Number,default:0}},computed:{style(){if(this.maxSelectLen){const e=this.$vuetify.display.xs?"max-width":"width",t=this.maxSelectLen*.7+"em";return`${e}: ${t}`}return""}}};function ra(e,t,a,r,n,s){return l(),f(Ot,Z(e.$attrs,{label:a.selectLabel,"aria-label":a.selectLabel,class:"toolbarSelect",density:"compact","full-width":"","menu-props":{maxHeight:void 0},"hide-details":"auto",style:s.style,variant:"plain"}),Ne({item:C(({item:i,props:o})=>[u(Gt,Z(o,{density:"compact",variant:"plain",title:i.title,value:i.value}),null,16,["title","value"])]),_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1040,["label","aria-label","style"])}const vi=T(na,[["render",ra],["__scopeId","data-v-cda2da63"]]),gi=jt("v-spacer","div","VSpacer"),oa={name:"BookCover",props:{group:{type:String,required:!0},pks:{type:Array,required:!0},childCount:{type:Number,default:1},finished:{type:Boolean},mtime:{type:Number,default:Date.now()}},data(){return{showPlaceholder:!1}},computed:{...M(L,["coverSettings"]),coverSrc(){return lt({group:this.group,pks:this.pks},this.coverSettings,this.mtime)},multiPkClasses(){const e=this.pks.length,t={};return e>=4?t.stack4=!0:e>1&&(t[`stack${e}`]=!0),t}},mounted:function(){this.delayPlaceholder()},methods:{delayPlaceholder:function(){setTimeout(()=>{this.showPlaceholder=!0},2e3)}}},la={class:"bookCover"},ua={key:1,class:"childCount"};function da(e,t,a,r,n,s){return l(),p("div",la,[u(Ut,{src:s.coverSrc,class:V(["coverImg",s.multiPkClasses])},null,8,["src","class"]),a.finished!==!0?(l(),p("div",{key:0,class:V({unreadFlag:!0,mixedreadFlag:a.finished===null})},null,2)):h("",!0),a.group!=="c"?(l(),p("span",ua,w(a.childCount),1)):h("",!0)])}const ca=T(oa,[["render",da],["__scopeId","data-v-8e8f21d5"]]),ma=10,ha={name:"DownloadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},data(){return{mdiDownload:mt}},computed:{...M(L,["filterOnlySettings","groupNames"]),show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},isOneComic(){return this.item?.group==="c"&&this.item?.ids?.length===1},downloadFn(){return this.isOneComic?this.item.name:`${this.groupNames[this.item?.group]} - ${this.item.name} Comics.zip`},downloadURL(){let e="";if(this.isOneComic){const t=this.item.ids[0];e=dt({pk:t},this.downloadFn,this.item?.mtime)}else{const t=this.item?.group,a=this.item?.ids,r=this.filterOnlySettings;e=ct({group:t,pks:a},this.downloadFn,r,this.item?.mtime)}return e},formattedChildren(){return Te.format(this.item?.childCount)},title(){let e="Download";return e+=this.isOneComic?" Book":` ${this.formattedChildren} Books`,e},confirm(){return this.item?.childCount>ma},confirmText(){return this.confirm?`Download ${this.formattedChildren} books`:""}},methods:{download(){const e=this.downloadURL,t=this.downloadFn;if(this.isOneComic)ut(e,t);else{const a=document.createElement("a");a.download=this.downloadFn,a.href=this.downloadURL,a.click(),a.remove()}}}};function fa(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.title,confirm:s.confirm,"confirm-text":"Download","prepend-icon":n.mdiDownload,"title-text":s.title,text:"May take a while",onConfirm:s.download},null,8,["button","button-text","confirm","prepend-icon","title-text","onConfirm"])):h("",!0)}const pa=T(ha,[["render",fa],["__scopeId","data-v-4c14087b"]]),va=1,ga={name:"MarkReadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},computed:{...M(L,["groupNames"]),verb(){return this.item.finished?"Unread":"Read"},confirm(){return this.item.children>va},show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},icon(){return this.item.finished?ht:ft},confirmText(){return this.confirm?`Mark ${this.verb}`:""},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");const t=this.groupNames[this.item.group];return e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name||"(Empty)"}},methods:{...de(L,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished)}}};function ba(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.markReadText,confirm:s.confirm,"confirm-text":s.confirmText,"prepend-icon":s.icon,"title-text":s.markReadText,text:s.itemName,onConfirm:s.toggleRead},null,8,["button","button-text","confirm","confirm-text","prepend-icon","title-text","text","onConfirm"])):h("",!0)}const ka=T(ga,[["render",ba],["__scopeId","data-v-7b148c61"]]),ya=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_a=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Sa=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],wa=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],je=(e,t,a)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,a):(t===!0||a!==void 0)&&(r=e.toLocaleString(void 0,a)),r},We=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10("0."+t.slice(0,15))},Ca=e=>typeof e=="number"?Math.log(e):We(e)*Math.log(10),Ta=(e,t)=>{if(typeof e=="number")return e/t;const a=e/BigInt(t),r=e%BigInt(t);return Number(a)+Number(r)/t};function Ye(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const a=t.bits?t.binary?wa:Sa:t.binary?_a:ya,r=t.space?" ":"";if(t.signed&&(typeof e=="number"?e===0:e===0n))return` 0${r}${a[0]}`;const n=e<0,s=n?"-":t.signed?"+":"";n&&(e=-e);let i;if(t.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1){const B=je(e,t.locale,i);return s+B+r+a[0]}const o=Math.min(Math.floor(t.binary?Ca(e)/Math.log(1024):We(e)/3),a.length-1);e=Ta(e,(t.binary?1024:1e3)**o),i||(e=e.toPrecision(3));const d=je(Number(e),t.locale,i),k=a[o];return s+d+r+k}const Ma={name:"MetadataExpandButton"};function Ba(e,t,a,r,n,s){return l(),f(_e,{density:"compact",text:"...expand",variant:"text"})}const Ra=T(Ma,[["render",Ba]]),Na={name:"MetadataTextBox",components:{ExpandButton:Ra},props:{group:{type:String,default:""},highlight:{type:Boolean,default:!1},label:{type:String,default:""},maxHeight:{type:Number,default:0},value:{type:[Object,String,Number,Boolean],default:void 0}},data(){return{mdiOpenInNew:Le,expanded:!1,mounted:!1}},computed:{...M(L,["groupNames"]),...M(L,{browserShow:e=>e.settings.show,browserTopGroup:e=>e.settings.topGroup,folderViewEnabled:e=>e.page.adminFlags.folderView}),computedValue(){return this.value&&this.value.name!==void 0?this.value.name:this.value},lastSlashIndex(){return this.computedValue.lastIndexOf("/")+1},displayValue(){let e;return this.group==="f"&&this.computedValue?e=this.computedValue.slice(0,Math.max(0,this.lastSlashIndex)):this.group==="v"&&this.computedValue?e=pt(this.computedValue,this.value.numberTo):e=this.computedValue,e},textValueStyles(){const e=this.maxHeight>0&&!this.expanded?this.maxHeight:0;return e?"max-height: "+e+"px;":""},textValueRefName(){return"mdTextValue"+this.label.replaceAll(" ","")},isOverflow(){if(!this.mounted)return!1;const e=this.$refs[this.textValueRefName];return e?e.clientHeight<e.scrollHeight:!1},showExpandButton(){return!this.expanded&&this.maxHeight>0&&this.isOverflow},linkPks(){return(this.value.ids||[this.value.pk]).join(",")},clickable(){const e=this.$router.currentRoute.value.params;return!this.group||e.group===this.group||this.group==="f"&&!this.folderViewEnabled||!["a","f"].includes(this.group)&&!this.browserShow[this.group]?!1:!!this.linkPks?.length},classes(){return{clickable:this.clickable,highlight:this.highlight}},toRoute(){if(!this.clickable)return"";const e=this.group,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){return{topGroup:this.getTopGroup(this.group)}},title(){let e;return this.label?e=this.label:this.group?e=this.groupNames[this.group]:e="",this.toRoute?`Browse to ${e}`:e},baseName(){return this.group==="f"?this.computedValue.slice(Math.max(0,this.lastSlashIndex)):""}},mounted(){this.mounted=!0},methods:{...de(L,["routeWithSettings","getTopGroup"]),onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Va={key:0,class:"text"},La={key:0,class:"textLabel"},Ia=["title"],xa={key:0,class:"textContent"};function Pa(e,t,a,r,n,s){const i=_("ExpandButton");return s.displayValue?(l(),p("div",Va,[a.label?(l(),p("div",La,[F(w(a.label)+" ",1),s.showExpandButton?(l(),f(i,{key:0,class:"expandButton",onClick:t[0]||(t[0]=o=>n.expanded=!0)})):h("",!0)])):h("",!0),u(Kt,null,{default:C(()=>[m("div",null,[m("div",{ref:s.textValueRefName,class:"textValue",style:re(s.textValueStyles)},[m("span",{class:V(["textContent",s.classes]),title:s.title,onClick:t[1]||(t[1]=(...o)=>s.onClick&&s.onClick(...o))},w(s.displayValue),11,Ia),s.baseName?(l(),p("span",xa,w(s.baseName),1)):h("",!0)],4),s.showExpandButton&&!a.label?(l(),f(i,{key:0,class:"expandButton",onClick:t[2]||(t[2]=o=>n.expanded=!0)})):h("",!0)])]),_:1})])):h("",!0)}const xe=T(Na,[["render",Pa],["__scopeId","data-v-847af0f1"]]),Ze=["writer","author","plotter","plot","script","scripter","story","interviewer","translator","artist","penciller","breakdowns","pencils","illustrator","layouts","inker","finishes","inks","embellisher","inkAssists","colorist","colorer","colourer","colors","colours","colorDesigner","colorFlats","colorSeparations","designer","digitalArtTechnician","grayTone","letterer","cover","covers","coverArtist","editor","edits","editing"];Object.freeze(Ze);const Xe=["genres","characters","teams","locations","seriesGroups","stories","storyArcNumbers","tags","universes"];Object.freeze(Xe);const Qe=new Set(["Characters","Teams"]);Object.freeze(Qe);function $a(e,t){const a=e.name.split(" ").pop(),r=t.name.split(" ").pop();return a.localeCompare(r)}const z=vt("metadata",{state:()=>({md:void 0}),getters:{roleMap(e){const t={};for(const{role:a}of e.md.credits){const r=a?.name?a.name:"Other";t[r]=a}return t},_mappedCredits(e){const t={};if(!e?.md?.credits)return t;for(const{role:a,person:r}of e.md.credits){const n=a?.name?a.name:"Other";n in t||(t[n]=[]),t[n].push(r)}for(const[a,r]of Object.entries(t))t[a]=r.sort($a);return t},_sortedRoles(e){const t=new Set(Object.keys(e._mappedCredits)),a=[];for(const n of Ze)t.has(n)&&(a.push(n),t.delete(n));const r=[...t].sort();return[...a,...r]},credits(e){return this.mapTag(e._mappedCredits,e._sortedRoles)},identifiers(e){const t=[];if(!e.md?.identifiers)return t;for(const a of e.md.identifiers){const r=a.name.split(":"),n=r[0],s=r[1],i=L().identifierSourceTitle(n);let o="";i&&i!=="None"&&(o+=i+":"),o+=s;const d={pk:a.pk,url:a.url,name:o};t.push(d)}return t},tags(e){const t=e.mapTag(e.md,Xe);e.identifiers?.length&&(t.Identifiers={filter:"identifiers",tags:this.identifiers});for(const a of Object.values(t))a.tags=a.tags.sort((r,n)=>r.name.localeCompare(n.name));return t}},actions:{async loadMetadata({group:e,pks:t}){await Fe.getMetadata({group:e,pks:t},L().metadataSettings).then(a=>{const r={...a.data};return r.loaded=!0,this.md=r,!0}).catch(a=>{console.error(a),this.clearMetadata()})},clearMetadata(){this.md=void 0},getTagName(e){var t;return e==="storyArcNumbers"?t="Story Arcs":t=gt(e),t},markTagMain(e,t){const a="main"+e.slice(0,-1),r=this.md[a]?.pk,n=[];var s=[];for(const i of t)r===i.pk?s.push(i):n.push(i);return{mainTags:s,regularTags:n}},mapTag(e,t){const a={};for(const s of t){const i=e[s];if(!i?.length)continue;const o=this.getTagName(s);var r=[],n=[];Qe.has(o)?{mainTags:r,regularTags:n}=this.markTagMain(o,i):n=i,a[o]={filter:s,tags:n,mainTags:r}}return a},lazyImport({group:e,ids:t}){return Fe.getLazyImport({group:e,pks:t})}}}),Fa={name:"MetadataRatings",components:{MetadataText:xe},computed:{...M(z,{md:e=>e.md}),show(){return this.md?.criticRating!==void 0||this.md?.ageRating}}},Da={key:0},Ea={key:1};function za(e,t,a,r,n,s){const i=_("MetadataText");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[e.md.criticalRating?(l(),p("tr",Da,[t[0]||(t[0]=m("td",{class:"key"},"Critical Rating",-1)),m("td",null,[u(i,{value:e.md.criticalRating},null,8,["value"])])])):h("",!0),e.md.ageRating?(l(),p("tr",Ea,[t[1]||(t[1]=m("td",{class:"key"},"Age Rating",-1)),m("td",null,[u(i,{value:e.md.ageRating.name},null,8,["value"])])])):h("",!0)])]),_:1})):h("",!0)}const Oa=T(Fa,[["render",za],["__scopeId","data-v-8b5cb217"]]),Aa=new Set(["p","i","s","v"]),Ga={name:"MetadataTags",props:{item:{type:Object,required:!0},filter:{type:String,default:""},main:{type:Boolean,default:!1}},data(){return{mdiStar:bt,mdiOpenInNew:Le}},computed:{...M(L,{browserShow:e=>e.settings.show,filterValues(e){return e.settings.filters[this.filter]},topGroup:e=>e.settings.topGroup}),...M(z,{mdGroup:e=>e.md.group,mdIds:e=>e.md.ids}),groupMode(){return Aa.has(this.filter)},clickable(){return this.filter&&this.item.value&&(!this.groupMode||this.browserShow[this.filter])},classes(){return{clickable:(this.clickable||this.item.url)&&!this.highlight}},highlight(){return!!(this.groupMode&&this.filter===this.mdGroup&&this.mdIds.includes(this.item.value)||this.filterValues?.includes(this.item.value))},variant(){return this.highlight?"flat":"tonal"},color(){const e=this.$vuetify.theme.current.colors;return this.highlight?e["primary-darken-1"]:""},linkGroup(){let e;return this.groupMode?e=this.filter:e=["f","s"].includes(this.topGroup)?this.topGroup:"r",e},linkPks(){return this.groupMode||this.linkGroup!=="a"&&this.filter==="storyArcs"?this.item.value.toString():"0"},toRoute(){if(!this.clickable)return"";const e=this.linkGroup,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){let e;return this.linkPks==="0"?e={filters:{[this.filter]:[this.item.value]}}:e={topGroup:this.getTopGroup(this.linkGroup)},e},title(){return this.filter==="identifiers"?this.identifierSourceTitle(this.item.title):this.item.title}},methods:{...de(L,["routeWithSettings","getTopGroup","identifierSourceTitle"]),async onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},ja=["href"],Ua={key:1};function qa(e,t,a,r,n,s){return l(),f(At,{class:V(s.classes),color:s.color,value:a.item.value,variant:s.variant,onClick:s.onClick},{default:C(()=>[a.item.url?(l(),p("a",{key:0,href:a.item.url,target:"_blank"},[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})],8,ja)):(l(),p("span",Ua,[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(" "+w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0)]))]),_:1},8,["class","color","value","variant","onClick"])}const Ha=T(Ga,[["render",qa],["__scopeId","data-v-1da1eb5b"]]),Ka={name:"MetadataTags",components:{MetadataChip:Ha},props:{label:{type:String,default:""},values:{type:Array,default(){return[]}},mainValues:{type:Array,default(){return[]}},filter:{type:String,required:!1,default:void 0}},computed:{mainItems(){return Ge({items:this.mainValues,sort:!1})},items(){let e;return this.filter==="universes"?e=this.fixUniverseTitles(this.values):e=this.values,Ge({items:e,sort:!1})}},methods:{...de(L,["fixUniverseTitles"])}},Wa={key:0},Ya={key:0,class:"chipGroupLabel"};function Za(e,t,a,r,n,s){const i=_("MetadataChip");return s.items?.length>0?(l(),p("div",Wa,[a.label?(l(),p("div",Ya,w(a.label),1)):h("",!0),m("div",null,[(l(!0),p(me,null,ue(s.mainItems,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o,main:!0},null,8,["filter","item"]))),128)),(l(!0),p(me,null,ue(s.items,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o},null,8,["filter","item"]))),128))])])):h("",!0)}const Je=T(Ka,[["render",Za],["__scopeId","data-v-836d9fbb"]]),Xa={name:"MetadataTagsTable",components:{MetadataTags:Je},data(){return{mdiOpenInNew:Le}},props:{keyMap:{type:Object,default:void 0},tagMap:{type:Object,required:!0}},computed:{show(){return Object.keys(this.tagMap).length>0}}},Qa={key:0,class:"key keyLink"},Ja={href:"keyMap[key].url"},es={key:1,class:"key"},ts={class:"tags"};function as(e,t,a,r,n,s){const i=_("MetadataTags");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[(l(!0),p(me,null,ue(Object.entries(a.tagMap),([o,{filter:d,tags:k,mainTags:B}])=>(l(),p("tr",{key:o},[a.keyMap&&a.keyMap[o]&&a.keyMap[o].url?(l(),p("td",Qa,[m("a",Ja,[F(w(o),1),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})])])):(l(),p("td",es,w(o),1)),m("td",ts,[u(i,{filter:d,values:k,mainValues:B},null,8,["filter","values","mainValues"])])]))),128))])]),_:1})):h("",!0)}const ss=T(Xa,[["render",as],["__scopeId","data-v-56102c2c"]]),is={name:"MetadataBody",components:{MetadataRatings:Oa,MetadataTagsTable:ss,MetadataText:xe},props:{book:{type:Object,required:!0}},computed:{...M(z,["credits","ratings","tags"]),...M(L,{twentyFourHourTime:e=>e.settings?.twentyFourHourTime,readingDirectionTitles:e=>e.choices.static.readingDirection}),...M(z,{md:e=>e.md,roleMap:e=>e.roleMap}),readingDirectionText(){return this.md?this.readingDirectionTitles[this.md.readingDirection]:"Unknown"},size(){return this?.md?.size>0?Ye(this.md.size):0},sizeLabel(){return this?.md?.group==="c"?"Size":"Total Size"},fileType(){return this?.md?.fileType||"Unknown"}},methods:{formatDateTime(e){return kt(e,this.twentyFourHourTime)}}},ns={id:"metadataBody"},rs={class:"mdSection"},os={class:"mdSection"},ls={class:"quarterRow"},us={class:"thirdRow"},ds={class:"lastSmallRow"},cs={key:0,class:"halfRow mdSection"},ms={class:"mdSection"},hs={class:"inlineRow"},fs={class:"inlineRow"};function ps(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataTagsTable"),d=_("MetadataRatings");return l(),p("div",ns,[m("section",rs,[u(i,{value:e.md.summary,"max-height":100},null,8,["value"]),u(i,{value:e.md.review,label:"Review","max-height":100},null,8,["value"])]),u(o,{"key-map":e.roleMap,"tag-map":e.credits,class:"mdSection"},null,8,["key-map","tag-map"]),m("section",os,[m("div",ls,[e.md.createdAt?(l(),f(i,{key:0,value:s.formatDateTime(e.md.createdAt),label:"Created at",class:"mtime"},null,8,["value"])):h("",!0),e.md.updatedAt?(l(),f(i,{key:1,value:s.formatDateTime(e.md.updatedAt),label:"Updated at",class:"mtime"},null,8,["value"])):h("",!0),u(i,{value:s.size,label:s.sizeLabel},null,8,["value","label"]),u(i,{value:s.fileType,label:"File Type"},null,8,["value"])]),m("div",us,[u(i,{label:"Reading Direction",value:s.readingDirectionText},null,8,["value"]),u(i,{value:e.md.originalFormat?.name,label:"Original Format"},null,8,["value"]),u(i,{value:(!!e.md.monochrome).toString(),label:"Monochrome"},null,8,["value"])]),m("div",ds,[u(i,{group:"f",value:{pk:e.md.parentFolderId,name:e.md.path},label:"Path"},null,8,["value"])])]),e.md?.country||e.md?.language?(l(),p("section",cs,[u(i,{value:e.md.country?.name,label:"Country"},null,8,["value"]),u(i,{value:e.md.language?.name,label:"Language"},null,8,["value"])])):h("",!0),u(d,{class:"mdSection"}),u(o,{"tag-map":e.tags,class:"mdSection"},null,8,["tag-map"]),m("section",ms,[m("section",hs,[u(i,{value:e.md.notes,label:"Notes"},null,8,["value"])]),m("section",fs,[u(i,{value:e.md.tagger,label:"Tagger"},null,8,["value"]),u(i,{value:e.md.scanInfo,label:"Scan"},null,8,["value"])])])])}const vs=T(is,[["render",ps],["__scopeId","data-v-e65fff8f"]]),et=new Set("rtl","btt");Object.freeze(et);const tt=({ids:e,page:t,readingDirection:a,pageCount:r},n)=>{if(e.length===0||n&&!r)return"";const s=e[0];if(t)t=Number(t);else if(et.has(a)){const i=Number(r)-1;t=Math.max(i,0)}else t=0;return{name:"reader",params:{pk:s,page:t}}},at={p:"publisher",i:"imprint",s:"series",v:"volume",f:"folder",a:"storyArc"};Object.freeze(at);const gs={name:"MetadataControls",components:{DownloadButton:pa,MarkReadButton:ka},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md}),...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata}),downloadName(){const e=this.md;let t;if(!e)t="Unknown.cbz";else if(e.fileName)t=e.fileName;else{if(this.md.group==="f")return[this.firstNameFromList(e.folderList)];if(this.md.group==="a")return[this.firstNameFromList(e.storyArcList)];t=[this.firstNameFromList(e.publisherList),this.firstNameFromList(e.imprintList),this.firstNameFromList(e.seriesList),this.firstNameFromList(e.volumeList),Ue(this.md,3),this.md.name].filter(Boolean).join(" ")}return t},downloadItem(){return{group:this.md?.group,ids:this.md?.ids,childCount:this.md?.childCount,mtime:this.md?.mtime,name:this.downloadName}},isReadButtonShown(){return this.group==="c"&&this.$route.name!="reader"},isReadButtonEnabled(){return!!this.readerRoute},markReadItem(){let e="";const t=at[this.md.group];return t?e=(this.md[t+"List"]||[]).map(({name:n})=>n).join(", "):e=this.md.name,{group:this.md.group,ids:this.md.ids,finished:this.md.finished,name:e,children:this.md.childCount||1}},readButtonIcon(){return this.isReadButtonEnabled?yt:_t},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},size(){return this.$vuetify.display.smAndDown?"x-small":"default"}},methods:{firstNameFromList(e){let t="";if(!e)return t;for(const a of Object.values(e))if(a.name){t=a.name;break}return t}}},bs={class:"controlRow"};function ks(e,t,a,r,n,s){const i=_("DownloadButton"),o=_("MarkReadButton");return l(),p("section",bs,[u(i,{id:"downloadButton",button:!0,item:s.downloadItem,size:s.size},null,8,["item","size"]),u(o,{id:"markReadButton",button:!0,item:s.markReadItem,size:s.size},null,8,["item","size"]),s.isReadButtonShown?(l(),f(_e,{key:0,id:"readButton",title:"Read Comic",disabled:!s.isReadButtonEnabled,size:s.size,to:s.readerRoute},{default:C(()=>[u(ne,null,{default:C(()=>[F(w(s.readButtonIcon),1)]),_:1}),t[0]||(t[0]=F(" Read ",-1))]),_:1,__:[0]},8,["disabled","size","to"])):h("",!0)])}const ys=T(gs,[["render",ks],["__scopeId","data-v-d254bb05"]]),_s={name:"MetadataBookCover",components:{BookCover:ca},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md})}},Ss={class:"bookCoverWrapper"};function ws(e,t,a,r,n,s){const i=_("BookCover");return l(),p("div",Ss,[u(i,{id:"bookCover",group:a.group,pks:e.md.ids,"child-count":e.md.childCount,finished:e.md.finished,mtime:e.md.mtime},null,8,["group","pks","child-count","finished","mtime"]),u(xt,{class:"bookCoverProgress","model-value":e.md.progress,rounded:"","background-color":"inherit",height:"2","aria-label":"% read"},null,8,["model-value"])])}const Cs=T(_s,[["render",ws],["__scopeId","data-v-3a0db03b"]]),Ts={name:"MetadataHeader",components:{MetadataBookCover:Cs,MetadataControls:ys,MetadataTags:Je,MetadataText:xe},props:{group:{type:String,required:!0}},computed:{...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata,q:e=>e.settings.q}),...M(z,{md:e=>e.md}),collectionTitle(){if(this.md.collectionTitle)return`${this.md.collectionTitle}:`},date(){if(!this.md.year&&!this.md.month&&!this.md.day)return"";const e=new Date(this.md.year||1970,this.md.month||1,this.md.day||1),t={};return this.md.year&&(t.year="numeric"),this.md.month&&(t.month=this.$vuetify.display.smAndDown?"short":"long"),this.md.day&&(t.day="numeric"),e.toLocaleDateString("default",t)},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},formattedIssueNumber(){if(!this.md)return"Unknown";if(!((this.md.issueNumber===null||this.md.issueNumber===void 0)&&!this.md.issueSuffix))return"#"+Ue(this.md)},pages(){let e="";if(!this.md)return e;if(this.md.page){const a=Te.format(this.md.page);e+=this.$vuetify.display.smAndDown?`${a} / `:`Read ${a} of `}const t=Te.format(this.md.pageCount);return e+=`${t} page`,this.md.pageCount!==1&&(e+="s"),this.$vuetify.display.smAndUp&&this.md.progress>0&&(e+=` (${Math.round(this.md.progress)}%)`),e},size(){return this?.md?.size>0?Ye(this.md.size):0},fileType(){return this?.md?.fileType||"Unknown"},seriesVolumeCount(){const e=this.md.seriesVolumeCount;return e?`of ${e}`:""},volumeIssueCount(){const e=this.md.volumeIssueCount;return e?`/ ${e}`:""}}},Ms={id:"metadataHeader"},Bs={key:1,id:"seriesHeader"},Rs={id:"seriesRow",class:"inlineRow"},Ns={key:2,id:"titleRow"},Vs={key:4,id:"publisherRow",class:"inlineRow"},Ls={key:7,id:"pageDateRow",class:"inlineRow"};function Is(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataBookCover"),d=_("MetadataTags"),k=_("MetadataControls");return l(),p(me,null,[m("header",Ms,[e.q?(l(),f(i,{key:0,id:"search",value:e.q,label:"Search Query",highlight:!0},null,8,["value"])):h("",!0),u(o,{id:"metadataBookCover",group:a.group},null,8,["group"]),e.md.seriesList?.length===1?(l(),p("section",Bs,[m("div",Rs,[(l(),f(i,{id:"series",key:e.md.seriesList[0].ids,value:e.md.seriesList[0],group:"s",highlight:e.md.group==="s"},null,8,["value","highlight"])),e.md.volumeList?.length===1?(l(),f(i,{id:"volume",key:e.md.volumeList[0].ids,value:e.md.volumeList[0],group:"v",highlight:e.md.group==="v"},null,8,["value","highlight"])):h("",!0),u(i,{value:s.seriesVolumeCount,class:"subdued"},null,8,["value"]),u(i,{id:"issue",value:s.formattedIssueNumber,group:"c",highlight:e.md.group==="c"},null,8,["value","highlight"]),u(i,{value:s.volumeIssueCount,class:"subdued"},null,8,["value"])])])):h("",!0),e.md.name?(l(),p("span",Ns,w(s.collectionTitle)+" "+w(e.md.name),1)):h("",!0),e.md.seriesList?.length>1?(l(),f(d,{key:3,id:"seriesTags",class:"groupTags",label:"Series",values:e.md.seriesList,filter:"s"},null,8,["values"])):h("",!0),m("div",null,[e.md.volumeList?.length>1?(l(),f(d,{key:0,id:"volumeTags",class:"groupTags",label:"Volumes",values:e.md.volumeList,filter:"v"},null,8,["values"])):h("",!0)]),e.md.publisherList?.length===1?(l(),p("div",Vs,[(l(),f(i,{id:"publisher",key:e.md.publisherList[0].ids,group:"p",highlight:e.md.group==="p",value:e.md.publisherList[0]},null,8,["highlight","value"])),e.md.imprintList?.length===1?(l(),f(i,{id:"imprint",key:e.md.imprintList[0].ids,group:"i",highlight:e.md.group==="i",value:e.md.imprintList[0]},null,8,["highlight","value"])):h("",!0)])):h("",!0),e.md.publisherList?.length>1?(l(),f(d,{key:5,id:"publisherTags",class:"groupTags",label:"Publishers",values:e.md.publisherList,filter:"p"},null,8,["values"])):h("",!0),e.md.imprintList?.length>1?(l(),f(d,{key:6,id:"imprintTags",class:"groupTags",label:"Imprints",values:e.md.imprintList,filter:"i"},null,8,["values"])):h("",!0),s.pages||e.md.year||e.md.month||e.md.day?(l(),p("div",Ls,[u(i,{value:s.pages},null,8,["value"]),u(i,{value:s.date,class:"datePicker"},null,8,["value"])])):h("",!0)]),u(k,{id:"controls",group:a.group},null,8,["group"])],64)}const xs=T(Ts,[["render",Is],["__scopeId","data-v-a05541e5"]]),Ps={name:"MetadataActivator",props:{book:{type:Object,required:!0},toolbar:{type:Boolean,require:!0}},data(){return{mdiTagOutline:wt}},computed:{...M(St,{lazyImportEnabled:e=>e.adminFlags.lazyImportMetadata}),variant(){return this.toolbar?"plain":"text"}},methods:{...de(z,["lazyImport"]),onMouseEnter(){if(this.lazyImportEnabled&&this.book.group==="c"&&!this.book.hasMetadata){const e=this.book.ids||[this.book.pk];this.lazyImport({group:this.book.group,ids:e}),this.book.hasMetadata=!0}}}};function $s(e,t,a,r,n,s){return l(),f(_e,{onMouseenter:s.onMouseEnter,"aria-label":"tags",class:"tagButton cardControlButton",variant:s.variant,icon:n.mdiTagOutline,title:"Tags",onClick:t[0]||(t[0]=Ct(()=>{},["prevent"]))},null,8,["onMouseenter","variant","icon"])}const Fs=T(Ps,[["render",$s]]),Ds=1160,Es=.05,zs=250,Os={name:"MetadataButton",components:{CloseButton:Ht,MetadataActivator:Fs,MetadataBody:vs,MetadataHeader:xs,PlaceholderLoading:Jt},props:{book:{type:Object,required:!0},toolbar:{type:Boolean,default:!1}},data(){return{dialog:!1,progress:0}},computed:{...M(z,{md:e=>e.md}),showContainer(){return this.md?.loaded||!1},children(){return this.book.childCount||0}},watch:{dialog(e){e?this.dialogOpened():this.clearMetadata()}},methods:{...de(z,["clearMetadata","loadMetadata"]),dialogOpened(){const e=this.book.ids||[this.book.pk],t={group:this.book.group,pks:e};this.loadMetadata(t),this.startProgress()},startProgress(){this.startTime=Date.now(),this.estimatedMS=Math.max(Es,this.children/Ds)*1e3,this.updateProgress()},updateProgress(){const e=Date.now()-this.startTime;this.progress=e/this.estimatedMS*100,!(this.progress>=100||this.md)&&setTimeout(()=>{this.updateProgress()},zs)}}},As={key:1,id:"placeholderContainer"};function Gs(e,t,a,r,n,s){const i=_("MetadataActivator"),o=_("CloseButton"),d=_("MetadataHeader"),k=_("MetadataBody"),B=_("PlaceholderLoading");return l(),f(qt,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=y=>n.dialog=y),fullscreen:"",transition:"dialog-bottom-transition"},{activator:C(({props:y})=>[u(i,Z(y,{book:a.book,toolbar:a.toolbar}),null,16,["book","toolbar"])]),default:C(()=>[u(o,{class:"closeButton",title:"Close Metadata (esc)",onClick:t[0]||(t[0]=y=>n.dialog=!1)}),s.showContainer?(l(),p("div",{key:0,id:"metadataContainer",onKeyup:t[1]||(t[1]=Tt(y=>n.dialog=!1,["esc"]))},[u(d,{group:a.book.group},null,8,["group"]),u(k,{book:a.book},null,8,["book"])],32)):(l(),p("div",As,[t[3]||(t[3]=m("div",{id:"placeholderTitle"},"Tags Loading",-1)),u(B,{"model-value":n.progress,indeterminate:n.progress>=100,class:"placeholder"},null,8,["model-value","indeterminate"])]))]),_:1},8,["modelValue"])}const bi=T(Os,[["render",Gs],["__scopeId","data-v-e1a86bc1"]]),js={name:"PaginationNavButton",props:{narrow:{type:Boolean,default:!0}},computed:{classes(){return{narrowButton:this.narrow}}}};function Us(e,t,a,r,n,s){return l(),f(_e,{variant:"plain",density:"compact",class:V(["paginationNavButton",s.classes]),size:"medium"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1032,["class"])}const ki=T(js,[["render",Us],["__scopeId","data-v-cf061c30"]]),Pe=Symbol.for("vuetify:v-slider");function qs(e,t,a){const r=a==="vertical",n=t.getBoundingClientRect(),s="touches"in e?e.touches[0]:e;return r?s.clientY-(n.top+n.height/2):s.clientX-(n.left+n.width/2)}function Hs(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Ks=he({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...$t(),...Pt({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Ws=e=>{const t=g(()=>parseFloat(e.min)),a=g(()=>parseFloat(e.max)),r=g(()=>Number(e.step)>0?parseFloat(e.step):0),n=g(()=>Math.max(De(r.value),De(t.value)));function s(i){if(i=parseFloat(i),r.value<=0)return i;const o=Me(i,t.value,a.value),d=t.value%r.value;let k=Math.round((o-d)/r.value)*r.value+d;return o>k&&k+r.value>a.value&&(k=a.value),parseFloat(Math.min(k,a.value).toFixed(n.value))}return{min:t,max:a,step:r,decimals:n,roundValue:s}},Ys=e=>{let{props:t,steps:a,onSliderStart:r,onSliderMove:n,onSliderEnd:s,getActiveThumb:i}=e;const{isRtl:o}=Ie(),d=$(()=>t.reverse),k=g(()=>t.direction==="vertical"),B=g(()=>k.value!==d.value),{min:y,max:I,step:D,decimals:O,roundValue:K}=a,X=g(()=>parseInt(t.thumbSize,10)),Q=g(()=>parseInt(t.tickSize,10)),A=g(()=>parseInt(t.trackSize,10)),G=g(()=>(I.value-y.value)/D.value),j=$(()=>t.disabled),U=g(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),q=g(()=>t.error||t.disabled?void 0:t.thumbColor),W=g(()=>t.error||t.disabled?void 0:t.trackColor??t.color),x=g(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),P=Ee(!1),S=Ee(0),Y=be(),b=be();function E(c){const v=Y.value?.$el;if(!v)return;const se=t.direction==="vertical",ve=se?"top":"left",ge=se?"height":"width",st=se?"clientY":"clientX",{[ve]:it,[ge]:nt}=v.getBoundingClientRect(),rt=Hs(c,st);let we=Me((rt-it-S.value)/nt)||0;return(se?B.value:B.value!==o.value)&&(we=1-we),K(y.value+we*(I.value-y.value))}const J=c=>{const v=E(c);v!=null&&s({value:v}),P.value=!1,S.value=0},ce=c=>{const v=E(c);b.value=i(c),b.value&&(P.value=!0,b.value.contains(c.target)?S.value=qs(c,b.value,t.direction):(S.value=0,v!=null&&n({value:v})),v!=null&&r({value:v}),Bt(()=>b.value?.focus()))},ee={passive:!0,capture:!0};function H(c){const v=E(c);v!=null&&n({value:v})}function te(c){c.stopPropagation(),c.preventDefault(),J(c),window.removeEventListener("mousemove",H,ee),window.removeEventListener("mouseup",te)}function oe(c){J(c),window.removeEventListener("touchmove",H,ee),c.target?.removeEventListener("touchend",oe)}function ae(c){ce(c),window.addEventListener("touchmove",H,ee),c.target?.addEventListener("touchend",oe,{passive:!1})}function Se(c){c.button===0&&(c.preventDefault(),ce(c),window.addEventListener("mousemove",H,ee),window.addEventListener("mouseup",te,{passive:!1}))}const le=c=>{const v=(c-y.value)/(I.value-y.value)*100;return Me(isNaN(v)?0:v,0,100)},fe=$(()=>t.showTicks),pe=g(()=>fe.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(c=>({value:c,position:le(c),label:c.toString()})):Object.keys(t.ticks).map(c=>({value:parseFloat(c),position:le(parseFloat(c)),label:t.ticks[c]})):G.value!==1/0?Mt(G.value+1).map(c=>{const v=y.value+c*D.value;return{value:v,position:le(v)}}):[]:[]),N=g(()=>pe.value.some(c=>{let{label:v}=c;return!!v})),R={activeThumbRef:b,color:$(()=>t.color),decimals:O,disabled:j,direction:$(()=>t.direction),elevation:$(()=>t.elevation),hasLabels:N,isReversed:d,indexFromEnd:B,min:y,max:I,mousePressed:P,noKeyboard:$(()=>t.noKeyboard),numTicks:G,onSliderMousedown:Se,onSliderTouchstart:ae,parsedTicks:pe,parseMouseMove:E,position:le,readonly:$(()=>t.readonly),rounded:$(()=>t.rounded),roundValue:K,showTicks:fe,startOffset:S,step:D,thumbSize:X,thumbColor:U,thumbLabelColor:q,thumbLabel:$(()=>t.thumbLabel),ticks:$(()=>t.ticks),tickSize:Q,trackColor:W,trackContainerRef:Y,trackFillColor:x,trackSize:A,vertical:k};return Rt(Pe,R),R},Zs=he({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...Re()},"VSliderThumb"),Xs=ke()({name:"VSliderThumb",directives:{vRipple:Oe},props:Zs(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=qe(Pe),{isRtl:s,rtlClasses:i}=Ie();if(!n)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:d,thumbColor:k,thumbLabelColor:B,step:y,disabled:I,thumbSize:D,thumbLabel:O,direction:K,isReversed:X,vertical:Q,readonly:A,elevation:G,mousePressed:j,decimals:U,indexFromEnd:q}=n,W=g(()=>I.value?void 0:G.value),{elevationClasses:x}=Ft(W),{textColorClasses:P,textColorStyles:S}=Dt(k),{backgroundColorClasses:Y,backgroundColorStyles:b}=Be(B),{pageup:E,pagedown:J,end:ce,home:ee,left:H,right:te,down:oe,up:ae}=Nt,Se=[E,J,ce,ee,H,te,oe,ae],le=g(()=>y.value?[1,2,3]:[1,5,10]);function fe(N,R){if(e.noKeyboard||!Se.includes(N.key))return;N.preventDefault();const c=y.value||.1,v=(d.value-o.value)/c;if([H,te,oe,ae].includes(N.key)){const ve=(Q.value?[s.value?H:te,X.value?oe:ae]:q.value!==s.value?[H,ae]:[te,ae]).includes(N.key)?1:-1,ge=N.shiftKey?2:N.ctrlKey?1:0;ve===-1&&R===d.value&&!ge&&!Number.isInteger(v)?R=R-v%1*c:R=R+ve*c*le.value[ge]}else if(N.key===ee)R=o.value;else if(N.key===ce)R=d.value;else{const se=N.key===J?1:-1;R=R-se*c*(v>100?v/10:10)}return Math.max(e.min,Math.min(e.max,R))}function pe(N){const R=fe(N,e.modelValue);R!=null&&r("update:modelValue",R)}return ye(()=>{const N=ie(q.value?100-e.position:e.position,"%");return m("div",{class:V(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&j.value},e.class,i.value]),style:re([{"--v-slider-thumb-position":N,"--v-slider-thumb-size":ie(D.value)},e.style]),role:"slider",tabindex:I.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,"aria-readonly":!!A.value,"aria-orientation":K.value,onKeydown:A.value?void 0:pe},[m("div",{class:V(["v-slider-thumb__surface",P.value,x.value]),style:re(S.value)},null),ze(m("div",{class:V(["v-slider-thumb__ripple",P.value]),style:re(S.value)},null),[[Oe,e.ripple,null,{circle:!0,center:!0}]]),u(Wt,{origin:"bottom center"},{default:()=>[ze(m("div",{class:"v-slider-thumb__label-container"},[m("div",{class:V(["v-slider-thumb__label",Y.value]),style:re(b.value)},[m("div",null,[a["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(y.value?U.value:1)]),m("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[Vt,O.value&&e.focused||O.value==="always"]])]})])}),{}}}),Qs=he({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Re()},"VSliderTrack"),Js=ke()({name:"VSliderTrack",props:Qs(),emits:{},setup(e,t){let{slots:a}=t;const r=qe(Pe);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:n,parsedTicks:s,rounded:i,showTicks:o,tickSize:d,trackColor:k,trackFillColor:B,trackSize:y,vertical:I,min:D,max:O,indexFromEnd:K}=r,{roundedClasses:X}=Et(i),{backgroundColorClasses:Q,backgroundColorStyles:A}=Be(B),{backgroundColorClasses:G,backgroundColorStyles:j}=Be(k),U=g(()=>`inset-${I.value?"block":"inline"}-${K.value?"end":"start"}`),q=g(()=>I.value?"height":"width"),W=g(()=>({[U.value]:"0%",[q.value]:"100%"})),x=g(()=>e.stop-e.start),P=g(()=>({[U.value]:ie(e.start,"%"),[q.value]:ie(x.value,"%")})),S=g(()=>o.value?(I.value?s.value.slice().reverse():s.value).map((b,E)=>{const J=b.value!==D.value&&b.value!==O.value?ie(b.position,"%"):void 0;return m("div",{key:b.value,class:V(["v-slider-track__tick",{"v-slider-track__tick--filled":b.position>=e.start&&b.position<=e.stop,"v-slider-track__tick--first":b.value===D.value,"v-slider-track__tick--last":b.value===O.value}]),style:{[U.value]:J}},[(b.label||a["tick-label"])&&m("div",{class:"v-slider-track__tick-label"},[a["tick-label"]?.({tick:b,index:E})??b.label])])}):[]);return ye(()=>m("div",{class:V(["v-slider-track",X.value,e.class]),style:re([{"--v-slider-track-size":ie(y.value),"--v-slider-tick-size":ie(d.value)},e.style])},[m("div",{class:V(["v-slider-track__background",G.value,{"v-slider-track__background--opacity":!!n.value||!B.value}]),style:{...W.value,...j.value}},null),m("div",{class:V(["v-slider-track__fill",Q.value]),style:{...P.value,...A.value}},null),o.value&&m("div",{class:V(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[S.value])])),{}}}),ei=he({...Xt(),...Ks(),...Zt(),modelValue:{type:[Number,String],default:0}},"VSlider"),ti=ke()({name:"VSlider",props:ei(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=be(),s=be(),{rtlClasses:i}=Ie(),o=Ws(e),d=Lt(e,"modelValue",void 0,x=>o.roundValue(x??o.min.value)),{min:k,max:B,mousePressed:y,roundValue:I,onSliderMousedown:D,onSliderTouchstart:O,trackContainerRef:K,position:X,hasLabels:Q,readonly:A,noKeyboard:G}=Ys({props:e,steps:o,onSliderStart:()=>{r("start",d.value)},onSliderEnd:x=>{let{value:P}=x;const S=I(P);d.value=S,r("end",S)},onSliderMove:x=>{let{value:P}=x;return d.value=I(P)},getActiveThumb:()=>n.value?.$el}),{isFocused:j,focus:U,blur:q}=Yt(e),W=g(()=>X(d.value));return ye(()=>{const x=Ae.filterProps(e),P=!!(e.label||a.label||a.prepend);return u(Ae,Z({ref:s,class:["v-slider",{"v-slider--has-labels":!!a["tick-label"]||Q.value,"v-slider--focused":j.value,"v-slider--pressed":y.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},x,{focused:j.value}),{...a,prepend:P?S=>m(me,null,[a.label?.(S)??(e.label?u(Qt,{id:S.id.value,class:"v-slider__label",text:e.label},null):void 0),a.prepend?.(S)]):void 0,default:S=>{let{id:Y,messagesId:b}=S;return m("div",{class:"v-slider__container",onMousedown:A.value?void 0:D,onTouchstartPassive:A.value?void 0:O},[m("input",{id:Y.value,name:e.name||Y.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:d.value},null),u(Js,{ref:K,start:0,stop:W.value},{"tick-label":a["tick-label"]}),u(Xs,{ref:n,"aria-describedby":b.value,focused:j.value,noKeyboard:G.value,min:k.value,max:B.value,modelValue:d.value,"onUpdate:modelValue":E=>d.value=E,position:W.value,elevation:e.elevation,onFocus:U,onBlur:q,ripple:e.ripple,name:e.name},{"thumb-label":a["thumb-label"]})])}})}),zt({focus:()=>n.value?.$el.focus()},s)}}),ai={name:"PaginationSlider",props:{min:{type:Number,default:0}}};function si(e,t,a,r,n,s){return l(),f(ti,Z({"thumb-size":"36",class:"paginationSlider",density:"compact","hide-details":"auto",min:a.min,rounded:!0,"show-ticks":"always",step:1,"thumb-label":"always"},e.$attrs),{"tick-label":C(({index:i})=>[F(w(i+a.min),1)]),_:1},16,["min"])}const yi=T(ai,[["render",si],["__scopeId","data-v-01b67afd"]]),ii={name:"PaginationToolbar"};function ni(e,t,a,r,n,s){return l(),f(ea,{class:"paginationToolbar codexToolbar",density:"compact",transform:"center bottom"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1024)}const _i=T(ii,[["render",ni],["__scopeId","data-v-cfa8cce0"]]);export{ca as B,pa as D,ka as M,Ce as N,ki as P,vi as T,pi as V,gi as a,bi as b,_i as c,yi as d,tt as g,Ye as p,Ge as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as ke,p as he,f as ot,t as $,u as ye,b as m,n as re,d as V,K as Re,aY as $e,_ as T,y as f,W as Ne,A as ue,w as C,m as Z,x as l,a6 as Ve,a as u,E as M,aZ as lt,N as L,q as p,H as h,B as w,aw as ut,ae as Te,a_ as dt,a$ as ct,az as mt,v as _,C as de,b0 as ht,b1 as ft,U as pt,a0 as Le,z as F,b2 as vt,b3 as Fe,l as gt,b4 as bt,F as me,ag as kt,ac as yt,ad as _t,a9 as Ue,G as St,b5 as wt,ab as Ct,Y as Tt,c as g,b6 as De,aD as Ie,aU as Ee,r as be,b7 as Mt,b8 as Me,aX as Bt,aW as Rt,i as qe,b9 as Nt,h as ie,T as ze,aR as Vt,e as Lt}from"./main-CdKoY_uF.js";import{A as It,V as _e,k as ne,n as xt,t as Pt,j as $t,R as Oe,s as Ft,u as Dt,c as Be,i as Et,f as zt}from"./forwardRefs-BotGMO80.js";import{c as Ot,d as At}from"./VSelect-CHbtIx-x.js";import{a as Gt,c as jt,d as Ut,V as qt}from"./VDialog-DhWYW70x.js";import{C as Ht}from"./change-password-dialog-C2JNp2wz.js";import{d as Kt,f as Wt,u as Yt,g as Ae,m as Zt,h as Xt,i as Qt}from"./VSelectionControl-BI__4iTT.js";import{V as He}from"./VTable-CqSQnAGe.js";import{C as Ke}from"./confirm-dialog-g9rA18o3.js";import{P as Jt,V as ea}from"./unauthorized-MOc4QcAg.js";const ta=he({...Re(),...It({variant:"text"})},"VToolbarItems"),pi=ke()({name:"VToolbarItems",props:ta(),setup(e,t){let{slots:a}=t;return ot({VBtn:{color:$(()=>e.color),height:"inherit",variant:$(()=>e.variant)}}),ye(()=>m("div",{class:V(["v-toolbar-items",e.class]),style:re(e.style)},[a.default?.()])),{}}}),Ce=new Set(["",$e,$e.toString(),void 0]),aa=function(e){let t;if(Ce.has(e))t=e;else if(e instanceof Object)if("ids"in e){const a=new Set(e.ids);Ce.intersection(a).size>0?t=void 0:t={value:e.ids.join(","),title:e.name}}else Ce.has(e.pk)?t=void 0:t={value:e.pk,title:e.name};else t={value:e,title:e.toString()};return e?.url&&(t.url=e.url),t},sa=function(e,t){return e.title.localeCompare(t.title)},ia=function(e,t){return Number.parseFloat(e.title)-Number.parseFloat(t.title)},Ge=function({items:e,filter:t,numeric:a=!1,sort:r=!0}){const n=e||[],s=t&&t.toLowerCase();let i=[];for(const o of n){const d=aa(o);d!=null&&(!s||d?.title?.toLowerCase().includes(s))&&i.push(d)}if(r){const o=a?ia:sa;i=i.sort(o)}return i},na={name:"ToolbarSelect",props:{selectLabel:{type:String,default:""},maxSelectLen:{type:Number,default:0}},computed:{style(){if(this.maxSelectLen){const e=this.$vuetify.display.xs?"max-width":"width",t=this.maxSelectLen*.7+"em";return`${e}: ${t}`}return""}}};function ra(e,t,a,r,n,s){return l(),f(Ot,Z(e.$attrs,{label:a.selectLabel,"aria-label":a.selectLabel,class:"toolbarSelect",density:"compact","full-width":"","menu-props":{maxHeight:void 0},"hide-details":"auto",style:s.style,variant:"plain"}),Ne({item:C(({item:i,props:o})=>[u(Gt,Z(o,{density:"compact",variant:"plain",title:i.title,value:i.value}),null,16,["title","value"])]),_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1040,["label","aria-label","style"])}const vi=T(na,[["render",ra],["__scopeId","data-v-cda2da63"]]),gi=jt("v-spacer","div","VSpacer"),oa={name:"BookCover",props:{group:{type:String,required:!0},pks:{type:Array,required:!0},childCount:{type:Number,default:1},finished:{type:Boolean},mtime:{type:Number,default:Date.now()}},data(){return{showPlaceholder:!1}},computed:{...M(L,["coverSettings"]),coverSrc(){return lt({group:this.group,pks:this.pks},this.coverSettings,this.mtime)},multiPkClasses(){const e=this.pks.length,t={};return e>=4?t.stack4=!0:e>1&&(t[`stack${e}`]=!0),t}},mounted:function(){this.delayPlaceholder()},methods:{delayPlaceholder:function(){setTimeout(()=>{this.showPlaceholder=!0},2e3)}}},la={class:"bookCover"},ua={key:1,class:"childCount"};function da(e,t,a,r,n,s){return l(),p("div",la,[u(Ut,{src:s.coverSrc,class:V(["coverImg",s.multiPkClasses])},null,8,["src","class"]),a.finished!==!0?(l(),p("div",{key:0,class:V({unreadFlag:!0,mixedreadFlag:a.finished===null})},null,2)):h("",!0),a.group!=="c"?(l(),p("span",ua,w(a.childCount),1)):h("",!0)])}const ca=T(oa,[["render",da],["__scopeId","data-v-8e8f21d5"]]),ma=10,ha={name:"DownloadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},data(){return{mdiDownload:mt}},computed:{...M(L,["filterOnlySettings","groupNames"]),show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},isOneComic(){return this.item?.group==="c"&&this.item?.ids?.length===1},downloadFn(){return this.isOneComic?this.item.name:`${this.groupNames[this.item?.group]} - ${this.item.name} Comics.zip`},downloadURL(){let e="";if(this.isOneComic){const t=this.item.ids[0];e=dt({pk:t},this.downloadFn,this.item?.mtime)}else{const t=this.item?.group,a=this.item?.ids,r=this.filterOnlySettings;e=ct({group:t,pks:a},this.downloadFn,r,this.item?.mtime)}return e},formattedChildren(){return Te.format(this.item?.childCount)},title(){let e="Download";return e+=this.isOneComic?" Book":` ${this.formattedChildren} Books`,e},confirm(){return this.item?.childCount>ma},confirmText(){return this.confirm?`Download ${this.formattedChildren} books`:""}},methods:{download(){const e=this.downloadURL,t=this.downloadFn;if(this.isOneComic)ut(e,t);else{const a=document.createElement("a");a.download=this.downloadFn,a.href=this.downloadURL,a.click(),a.remove()}}}};function fa(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.title,confirm:s.confirm,"confirm-text":"Download","prepend-icon":n.mdiDownload,"title-text":s.title,text:"May take a while",onConfirm:s.download},null,8,["button","button-text","confirm","prepend-icon","title-text","onConfirm"])):h("",!0)}const pa=T(ha,[["render",fa],["__scopeId","data-v-4c14087b"]]),va=1,ga={name:"MarkReadButton",components:{ConfirmDialog:Ke},props:{button:{type:Boolean,default:!1},item:{type:Object,required:!0}},computed:{...M(L,["groupNames"]),verb(){return this.item.finished?"Unread":"Read"},confirm(){return this.item.children>va},show(){return this.item?.ids?.length>0&&!this.item.ids.includes(0)},icon(){return this.item.finished?ht:ft},confirmText(){return this.confirm?`Mark ${this.verb}`:""},markReadText(){const e=["Mark"];this.item.group!="c"&&e.push("Entire");const t=this.groupNames[this.item.group];return e.push(t,this.verb),e.join(" ")},itemName(){return this.item.name||"(Empty)"}},methods:{...de(L,["setBookmarkFinished"]),toggleRead:function(){this.setBookmarkFinished(this.item,!this.item.finished)}}};function ba(e,t,a,r,n,s){const i=_("ConfirmDialog");return s.show?(l(),f(i,{key:0,button:a.button,"button-text":s.markReadText,confirm:s.confirm,"confirm-text":s.confirmText,"prepend-icon":s.icon,"title-text":s.markReadText,text:s.itemName,onConfirm:s.toggleRead},null,8,["button","button-text","confirm","confirm-text","prepend-icon","title-text","text","onConfirm"])):h("",!0)}const ka=T(ga,[["render",ba],["__scopeId","data-v-7b148c61"]]),ya=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_a=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Sa=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],wa=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],je=(e,t,a)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,a):(t===!0||a!==void 0)&&(r=e.toLocaleString(void 0,a)),r},We=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10("0."+t.slice(0,15))},Ca=e=>typeof e=="number"?Math.log(e):We(e)*Math.log(10),Ta=(e,t)=>{if(typeof e=="number")return e/t;const a=e/BigInt(t),r=e%BigInt(t);return Number(a)+Number(r)/t};function Ye(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const a=t.bits?t.binary?wa:Sa:t.binary?_a:ya,r=t.space?" ":"";if(t.signed&&(typeof e=="number"?e===0:e===0n))return` 0${r}${a[0]}`;const n=e<0,s=n?"-":t.signed?"+":"";n&&(e=-e);let i;if(t.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1){const B=je(e,t.locale,i);return s+B+r+a[0]}const o=Math.min(Math.floor(t.binary?Ca(e)/Math.log(1024):We(e)/3),a.length-1);e=Ta(e,(t.binary?1024:1e3)**o),i||(e=e.toPrecision(3));const d=je(Number(e),t.locale,i),k=a[o];return s+d+r+k}const Ma={name:"MetadataExpandButton"};function Ba(e,t,a,r,n,s){return l(),f(_e,{density:"compact",text:"...expand",variant:"text"})}const Ra=T(Ma,[["render",Ba]]),Na={name:"MetadataTextBox",components:{ExpandButton:Ra},props:{group:{type:String,default:""},highlight:{type:Boolean,default:!1},label:{type:String,default:""},maxHeight:{type:Number,default:0},value:{type:[Object,String,Number,Boolean],default:void 0}},data(){return{mdiOpenInNew:Le,expanded:!1,mounted:!1}},computed:{...M(L,["groupNames"]),...M(L,{browserShow:e=>e.settings.show,browserTopGroup:e=>e.settings.topGroup,folderViewEnabled:e=>e.page.adminFlags.folderView}),computedValue(){return this.value&&this.value.name!==void 0?this.value.name:this.value},lastSlashIndex(){return this.computedValue.lastIndexOf("/")+1},displayValue(){let e;return this.group==="f"&&this.computedValue?e=this.computedValue.slice(0,Math.max(0,this.lastSlashIndex)):this.group==="v"&&this.computedValue?e=pt(this.computedValue,this.value.numberTo):e=this.computedValue,e},textValueStyles(){const e=this.maxHeight>0&&!this.expanded?this.maxHeight:0;return e?"max-height: "+e+"px;":""},textValueRefName(){return"mdTextValue"+this.label.replaceAll(" ","")},isOverflow(){if(!this.mounted)return!1;const e=this.$refs[this.textValueRefName];return e?e.clientHeight<e.scrollHeight:!1},showExpandButton(){return!this.expanded&&this.maxHeight>0&&this.isOverflow},linkPks(){return(this.value.ids||[this.value.pk]).join(",")},clickable(){const e=this.$router.currentRoute.value.params;return!this.group||e.group===this.group||this.group==="f"&&!this.folderViewEnabled||!["a","f"].includes(this.group)&&!this.browserShow[this.group]?!1:!!this.linkPks?.length},classes(){return{clickable:this.clickable,highlight:this.highlight}},toRoute(){if(!this.clickable)return"";const e=this.group,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){return{topGroup:this.getTopGroup(this.group)}},title(){let e;return this.label?e=this.label:this.group?e=this.groupNames[this.group]:e="",this.toRoute?`Browse to ${e}`:e},baseName(){return this.group==="f"?this.computedValue.slice(Math.max(0,this.lastSlashIndex)):""}},mounted(){this.mounted=!0},methods:{...de(L,["routeWithSettings","getTopGroup"]),onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},Va={key:0,class:"text"},La={key:0,class:"textLabel"},Ia=["title"],xa={key:0,class:"textContent"};function Pa(e,t,a,r,n,s){const i=_("ExpandButton");return s.displayValue?(l(),p("div",Va,[a.label?(l(),p("div",La,[F(w(a.label)+" ",1),s.showExpandButton?(l(),f(i,{key:0,class:"expandButton",onClick:t[0]||(t[0]=o=>n.expanded=!0)})):h("",!0)])):h("",!0),u(Kt,null,{default:C(()=>[m("div",null,[m("div",{ref:s.textValueRefName,class:"textValue",style:re(s.textValueStyles)},[m("span",{class:V(["textContent",s.classes]),title:s.title,onClick:t[1]||(t[1]=(...o)=>s.onClick&&s.onClick(...o))},w(s.displayValue),11,Ia),s.baseName?(l(),p("span",xa,w(s.baseName),1)):h("",!0)],4),s.showExpandButton&&!a.label?(l(),f(i,{key:0,class:"expandButton",onClick:t[2]||(t[2]=o=>n.expanded=!0)})):h("",!0)])]),_:1})])):h("",!0)}const xe=T(Na,[["render",Pa],["__scopeId","data-v-847af0f1"]]),Ze=["writer","author","plotter","plot","script","scripter","story","interviewer","translator","artist","penciller","breakdowns","pencils","illustrator","layouts","inker","finishes","inks","embellisher","inkAssists","colorist","colorer","colourer","colors","colours","colorDesigner","colorFlats","colorSeparations","designer","digitalArtTechnician","grayTone","letterer","cover","covers","coverArtist","editor","edits","editing"];Object.freeze(Ze);const Xe=["genres","characters","teams","locations","seriesGroups","stories","storyArcNumbers","tags","universes"];Object.freeze(Xe);const Qe=new Set(["Characters","Teams"]);Object.freeze(Qe);function $a(e,t){const a=e.name.split(" ").pop(),r=t.name.split(" ").pop();return a.localeCompare(r)}const z=vt("metadata",{state:()=>({md:void 0}),getters:{roleMap(e){const t={};for(const{role:a}of e.md.credits){const r=a?.name?a.name:"Other";t[r]=a}return t},_mappedCredits(e){const t={};if(!e?.md?.credits)return t;for(const{role:a,person:r}of e.md.credits){const n=a?.name?a.name:"Other";n in t||(t[n]=[]),t[n].push(r)}for(const[a,r]of Object.entries(t))t[a]=r.sort($a);return t},_sortedRoles(e){const t=new Set(Object.keys(e._mappedCredits)),a=[];for(const n of Ze)t.has(n)&&(a.push(n),t.delete(n));const r=[...t].sort();return[...a,...r]},credits(e){return this.mapTag(e._mappedCredits,e._sortedRoles)},identifiers(e){const t=[];if(!e.md?.identifiers)return t;for(const a of e.md.identifiers){const r=a.name.split(":"),n=r[0],s=r[1],i=L().identifierSourceTitle(n);let o="";i&&i!=="None"&&(o+=i+":"),o+=s;const d={pk:a.pk,url:a.url,name:o};t.push(d)}return t},tags(e){const t=e.mapTag(e.md,Xe);e.identifiers?.length&&(t.Identifiers={filter:"identifiers",tags:this.identifiers});for(const a of Object.values(t))a.tags=a.tags.sort((r,n)=>r.name.localeCompare(n.name));return t}},actions:{async loadMetadata({group:e,pks:t}){await Fe.getMetadata({group:e,pks:t},L().metadataSettings).then(a=>{const r={...a.data};return r.loaded=!0,this.md=r,!0}).catch(a=>{console.error(a),this.clearMetadata()})},clearMetadata(){this.md=void 0},getTagName(e){var t;return e==="storyArcNumbers"?t="Story Arcs":t=gt(e),t},markTagMain(e,t){const a="main"+e.slice(0,-1),r=this.md[a]?.pk,n=[];var s=[];for(const i of t)r===i.pk?s.push(i):n.push(i);return{mainTags:s,regularTags:n}},mapTag(e,t){const a={};for(const s of t){const i=e[s];if(!i?.length)continue;const o=this.getTagName(s);var r=[],n=[];Qe.has(o)?{mainTags:r,regularTags:n}=this.markTagMain(o,i):n=i,a[o]={filter:s,tags:n,mainTags:r}}return a},lazyImport({group:e,ids:t}){return Fe.getLazyImport({group:e,pks:t})}}}),Fa={name:"MetadataRatings",components:{MetadataText:xe},computed:{...M(z,{md:e=>e.md}),show(){return this.md?.criticRating!==void 0||this.md?.ageRating}}},Da={key:0},Ea={key:1};function za(e,t,a,r,n,s){const i=_("MetadataText");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[e.md.criticalRating?(l(),p("tr",Da,[t[0]||(t[0]=m("td",{class:"key"},"Critical Rating",-1)),m("td",null,[u(i,{value:e.md.criticalRating},null,8,["value"])])])):h("",!0),e.md.ageRating?(l(),p("tr",Ea,[t[1]||(t[1]=m("td",{class:"key"},"Age Rating",-1)),m("td",null,[u(i,{value:e.md.ageRating.name},null,8,["value"])])])):h("",!0)])]),_:1})):h("",!0)}const Oa=T(Fa,[["render",za],["__scopeId","data-v-8b5cb217"]]),Aa=new Set(["p","i","s","v"]),Ga={name:"MetadataTags",props:{item:{type:Object,required:!0},filter:{type:String,default:""},main:{type:Boolean,default:!1}},data(){return{mdiStar:bt,mdiOpenInNew:Le}},computed:{...M(L,{browserShow:e=>e.settings.show,filterValues(e){return e.settings.filters[this.filter]},topGroup:e=>e.settings.topGroup}),...M(z,{mdGroup:e=>e.md.group,mdIds:e=>e.md.ids}),groupMode(){return Aa.has(this.filter)},clickable(){return this.filter&&this.item.value&&(!this.groupMode||this.browserShow[this.filter])},classes(){return{clickable:(this.clickable||this.item.url)&&!this.highlight}},highlight(){return!!(this.groupMode&&this.filter===this.mdGroup&&this.mdIds.includes(this.item.value)||this.filterValues?.includes(this.item.value))},variant(){return this.highlight?"flat":"tonal"},color(){const e=this.$vuetify.theme.current.colors;return this.highlight?e["primary-darken-1"]:""},linkGroup(){let e;return this.groupMode?e=this.filter:e=["f","s"].includes(this.topGroup)?this.topGroup:"r",e},linkPks(){return this.groupMode||this.linkGroup!=="a"&&this.filter==="storyArcs"?this.item.value.toString():"0"},toRoute(){if(!this.clickable)return"";const e=this.linkGroup,t=this.linkPks;return{name:"browser",params:{group:e,pks:t,page:1}}},linkSettings(){let e;return this.linkPks==="0"?e={filters:{[this.filter]:[this.item.value]}}:e={topGroup:this.getTopGroup(this.linkGroup)},e},title(){return this.filter==="identifiers"?this.identifierSourceTitle(this.item.title):this.item.title}},methods:{...de(L,["routeWithSettings","getTopGroup","identifierSourceTitle"]),async onClick(){this.clickable&&this.routeWithSettings(this.linkSettings,this.toRoute)}}},ja=["href"],Ua={key:1};function qa(e,t,a,r,n,s){return l(),f(At,{class:V(s.classes),color:s.color,value:a.item.value,variant:s.variant,onClick:s.onClick},{default:C(()=>[a.item.url?(l(),p("a",{key:0,href:a.item.url,target:"_blank"},[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})],8,ja)):(l(),p("span",Ua,[a.main?(l(),f(ne,{key:0,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0),F(" "+w(s.title)+" ",1),a.main?(l(),f(ne,{key:1,class:"mainStar"},{default:C(()=>[F(w(n.mdiStar),1)]),_:1})):h("",!0)]))]),_:1},8,["class","color","value","variant","onClick"])}const Ha=T(Ga,[["render",qa],["__scopeId","data-v-1da1eb5b"]]),Ka={name:"MetadataTags",components:{MetadataChip:Ha},props:{label:{type:String,default:""},values:{type:Array,default(){return[]}},mainValues:{type:Array,default(){return[]}},filter:{type:String,required:!1,default:void 0}},computed:{mainItems(){return Ge({items:this.mainValues,sort:!1})},items(){let e;return this.filter==="universes"?e=this.fixUniverseTitles(this.values):e=this.values,Ge({items:e,sort:!1})}},methods:{...de(L,["fixUniverseTitles"])}},Wa={key:0},Ya={key:0,class:"chipGroupLabel"};function Za(e,t,a,r,n,s){const i=_("MetadataChip");return s.items?.length>0?(l(),p("div",Wa,[a.label?(l(),p("div",Ya,w(a.label),1)):h("",!0),m("div",null,[(l(!0),p(me,null,ue(s.mainItems,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o,main:!0},null,8,["filter","item"]))),128)),(l(!0),p(me,null,ue(s.items,o=>(l(),f(i,{key:`${a.filter}/${o.value}`,filter:a.filter,item:o},null,8,["filter","item"]))),128))])])):h("",!0)}const Je=T(Ka,[["render",Za],["__scopeId","data-v-836d9fbb"]]),Xa={name:"MetadataTagsTable",components:{MetadataTags:Je},data(){return{mdiOpenInNew:Le}},props:{keyMap:{type:Object,default:void 0},tagMap:{type:Object,required:!0}},computed:{show(){return Object.keys(this.tagMap).length>0}}},Qa={key:0,class:"key keyLink"},Ja={href:"keyMap[key].url"},es={key:1,class:"key"},ts={class:"tags"};function as(e,t,a,r,n,s){const i=_("MetadataTags");return s.show?(l(),f(He,{key:0},{default:C(()=>[m("tbody",null,[(l(!0),p(me,null,ue(Object.entries(a.tagMap),([o,{filter:d,tags:k,mainTags:B}])=>(l(),p("tr",{key:o},[a.keyMap&&a.keyMap[o]&&a.keyMap[o].url?(l(),p("td",Qa,[m("a",Ja,[F(w(o),1),u(ne,null,{default:C(()=>[F(w(n.mdiOpenInNew),1)]),_:1})])])):(l(),p("td",es,w(o),1)),m("td",ts,[u(i,{filter:d,values:k,mainValues:B},null,8,["filter","values","mainValues"])])]))),128))])]),_:1})):h("",!0)}const ss=T(Xa,[["render",as],["__scopeId","data-v-56102c2c"]]),is={name:"MetadataBody",components:{MetadataRatings:Oa,MetadataTagsTable:ss,MetadataText:xe},props:{book:{type:Object,required:!0}},computed:{...M(z,["credits","ratings","tags"]),...M(L,{twentyFourHourTime:e=>e.settings?.twentyFourHourTime,readingDirectionTitles:e=>e.choices.static.readingDirection}),...M(z,{md:e=>e.md,roleMap:e=>e.roleMap}),readingDirectionText(){return this.md?this.readingDirectionTitles[this.md.readingDirection]:"Unknown"},size(){return this?.md?.size>0?Ye(this.md.size):0},sizeLabel(){return this?.md?.group==="c"?"Size":"Total Size"},fileType(){return this?.md?.fileType||"Unknown"}},methods:{formatDateTime(e){return kt(e,this.twentyFourHourTime)}}},ns={id:"metadataBody"},rs={class:"mdSection"},os={class:"mdSection"},ls={class:"quarterRow"},us={class:"thirdRow"},ds={class:"lastSmallRow"},cs={key:0,class:"halfRow mdSection"},ms={class:"mdSection"},hs={class:"inlineRow"},fs={class:"inlineRow"};function ps(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataTagsTable"),d=_("MetadataRatings");return l(),p("div",ns,[m("section",rs,[u(i,{value:e.md.summary,"max-height":100},null,8,["value"]),u(i,{value:e.md.review,label:"Review","max-height":100},null,8,["value"])]),u(o,{"key-map":e.roleMap,"tag-map":e.credits,class:"mdSection"},null,8,["key-map","tag-map"]),m("section",os,[m("div",ls,[e.md.createdAt?(l(),f(i,{key:0,value:s.formatDateTime(e.md.createdAt),label:"Created at",class:"mtime"},null,8,["value"])):h("",!0),e.md.updatedAt?(l(),f(i,{key:1,value:s.formatDateTime(e.md.updatedAt),label:"Updated at",class:"mtime"},null,8,["value"])):h("",!0),u(i,{value:s.size,label:s.sizeLabel},null,8,["value","label"]),u(i,{value:s.fileType,label:"File Type"},null,8,["value"])]),m("div",us,[u(i,{label:"Reading Direction",value:s.readingDirectionText},null,8,["value"]),u(i,{value:e.md.originalFormat?.name,label:"Original Format"},null,8,["value"]),u(i,{value:(!!e.md.monochrome).toString(),label:"Monochrome"},null,8,["value"])]),m("div",ds,[u(i,{group:"f",value:{pk:e.md.parentFolderId,name:e.md.path},label:"Path"},null,8,["value"])])]),e.md?.country||e.md?.language?(l(),p("section",cs,[u(i,{value:e.md.country?.name,label:"Country"},null,8,["value"]),u(i,{value:e.md.language?.name,label:"Language"},null,8,["value"])])):h("",!0),u(d,{class:"mdSection"}),u(o,{"tag-map":e.tags,class:"mdSection"},null,8,["tag-map"]),m("section",ms,[m("section",hs,[u(i,{value:e.md.notes,label:"Notes"},null,8,["value"])]),m("section",fs,[u(i,{value:e.md.tagger,label:"Tagger"},null,8,["value"]),u(i,{value:e.md.scanInfo,label:"Scan"},null,8,["value"])])])])}const vs=T(is,[["render",ps],["__scopeId","data-v-e65fff8f"]]),et=new Set("rtl","btt");Object.freeze(et);const tt=({ids:e,page:t,readingDirection:a,pageCount:r},n)=>{if(e.length===0||n&&!r)return"";const s=e[0];if(t)t=Number(t);else if(et.has(a)){const i=Number(r)-1;t=Math.max(i,0)}else t=0;return{name:"reader",params:{pk:s,page:t}}},at={p:"publisher",i:"imprint",s:"series",v:"volume",f:"folder",a:"storyArc"};Object.freeze(at);const gs={name:"MetadataControls",components:{DownloadButton:pa,MarkReadButton:ka},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md}),...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata}),downloadName(){const e=this.md;let t;if(!e)t="Unknown.cbz";else if(e.fileName)t=e.fileName;else{if(this.md.group==="f")return[this.firstNameFromList(e.folderList)];if(this.md.group==="a")return[this.firstNameFromList(e.storyArcList)];t=[this.firstNameFromList(e.publisherList),this.firstNameFromList(e.imprintList),this.firstNameFromList(e.seriesList),this.firstNameFromList(e.volumeList),Ue(this.md,3),this.md.name].filter(Boolean).join(" ")}return t},downloadItem(){return{group:this.md?.group,ids:this.md?.ids,childCount:this.md?.childCount,mtime:this.md?.mtime,name:this.downloadName}},isReadButtonShown(){return this.group==="c"&&this.$route.name!="reader"},isReadButtonEnabled(){return!!this.readerRoute},markReadItem(){let e="";const t=at[this.md.group];return t?e=(this.md[t+"List"]||[]).map(({name:n})=>n).join(", "):e=this.md.name,{group:this.md.group,ids:this.md.ids,finished:this.md.finished,name:e,children:this.md.childCount||1}},readButtonIcon(){return this.isReadButtonEnabled?yt:_t},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},size(){return this.$vuetify.display.smAndDown?"x-small":"default"}},methods:{firstNameFromList(e){let t="";if(!e)return t;for(const a of Object.values(e))if(a.name){t=a.name;break}return t}}},bs={class:"controlRow"};function ks(e,t,a,r,n,s){const i=_("DownloadButton"),o=_("MarkReadButton");return l(),p("section",bs,[u(i,{id:"downloadButton",button:!0,item:s.downloadItem,size:s.size},null,8,["item","size"]),u(o,{id:"markReadButton",button:!0,item:s.markReadItem,size:s.size},null,8,["item","size"]),s.isReadButtonShown?(l(),f(_e,{key:0,id:"readButton",title:"Read Comic",disabled:!s.isReadButtonEnabled,size:s.size,to:s.readerRoute},{default:C(()=>[u(ne,null,{default:C(()=>[F(w(s.readButtonIcon),1)]),_:1}),t[0]||(t[0]=F(" Read ",-1))]),_:1,__:[0]},8,["disabled","size","to"])):h("",!0)])}const ys=T(gs,[["render",ks],["__scopeId","data-v-d254bb05"]]),_s={name:"MetadataBookCover",components:{BookCover:ca},props:{group:{type:String,required:!0}},computed:{...M(z,{md:e=>e.md})}},Ss={class:"bookCoverWrapper"};function ws(e,t,a,r,n,s){const i=_("BookCover");return l(),p("div",Ss,[u(i,{id:"bookCover",group:a.group,pks:e.md.ids,"child-count":e.md.childCount,finished:e.md.finished,mtime:e.md.mtime},null,8,["group","pks","child-count","finished","mtime"]),u(xt,{class:"bookCoverProgress","model-value":e.md.progress,rounded:"","background-color":"inherit",height:"2","aria-label":"% read"},null,8,["model-value"])])}const Cs=T(_s,[["render",ws],["__scopeId","data-v-3a0db03b"]]),Ts={name:"MetadataHeader",components:{MetadataBookCover:Cs,MetadataControls:ys,MetadataTags:Je,MetadataText:xe},props:{group:{type:String,required:!0}},computed:{...M(L,{importMetadata:e=>e.page?.adminFlags?.importMetadata,q:e=>e.settings.q}),...M(z,{md:e=>e.md}),collectionTitle(){if(this.md.collectionTitle)return`${this.md.collectionTitle}:`},date(){if(!this.md.year&&!this.md.month&&!this.md.day)return"";const e=new Date(this.md.year||1970,this.md.month||1,this.md.day||1),t={};return this.md.year&&(t.year="numeric"),this.md.month&&(t.month=this.$vuetify.display.smAndDown?"short":"long"),this.md.day&&(t.day="numeric"),e.toLocaleDateString("default",t)},readerRoute(){return this.md?.ids?tt(this.md,this.importMetadata):{}},formattedIssueNumber(){if(!this.md)return"Unknown";if(!((this.md.issueNumber===null||this.md.issueNumber===void 0)&&!this.md.issueSuffix))return"#"+Ue(this.md)},pages(){let e="";if(!this.md)return e;if(this.md.page){const a=Te.format(this.md.page);e+=this.$vuetify.display.smAndDown?`${a} / `:`Read ${a} of `}const t=Te.format(this.md.pageCount);return e+=`${t} page`,this.md.pageCount!==1&&(e+="s"),this.$vuetify.display.smAndUp&&this.md.progress>0&&(e+=` (${Math.round(this.md.progress)}%)`),e},size(){return this?.md?.size>0?Ye(this.md.size):0},fileType(){return this?.md?.fileType||"Unknown"},seriesVolumeCount(){const e=this.md.seriesVolumeCount;return e?`of ${e}`:""},volumeIssueCount(){const e=this.md.volumeIssueCount;return e?`/ ${e}`:""}}},Ms={id:"metadataHeader"},Bs={key:1,id:"seriesHeader"},Rs={id:"seriesRow",class:"inlineRow"},Ns={key:2,id:"titleRow"},Vs={key:4,id:"publisherRow",class:"inlineRow"},Ls={key:7,id:"pageDateRow",class:"inlineRow"};function Is(e,t,a,r,n,s){const i=_("MetadataText"),o=_("MetadataBookCover"),d=_("MetadataTags"),k=_("MetadataControls");return l(),p(me,null,[m("header",Ms,[e.q?(l(),f(i,{key:0,id:"search",value:e.q,label:"Search Query",highlight:!0},null,8,["value"])):h("",!0),u(o,{id:"metadataBookCover",group:a.group},null,8,["group"]),e.md.seriesList?.length===1?(l(),p("section",Bs,[m("div",Rs,[(l(),f(i,{id:"series",key:e.md.seriesList[0].ids,value:e.md.seriesList[0],group:"s",highlight:e.md.group==="s"},null,8,["value","highlight"])),e.md.volumeList?.length===1?(l(),f(i,{id:"volume",key:e.md.volumeList[0].ids,value:e.md.volumeList[0],group:"v",highlight:e.md.group==="v"},null,8,["value","highlight"])):h("",!0),u(i,{value:s.seriesVolumeCount,class:"subdued"},null,8,["value"]),u(i,{id:"issue",value:s.formattedIssueNumber,group:"c",highlight:e.md.group==="c"},null,8,["value","highlight"]),u(i,{value:s.volumeIssueCount,class:"subdued"},null,8,["value"])])])):h("",!0),e.md.name?(l(),p("span",Ns,w(s.collectionTitle)+" "+w(e.md.name),1)):h("",!0),e.md.seriesList?.length>1?(l(),f(d,{key:3,id:"seriesTags",class:"groupTags",label:"Series",values:e.md.seriesList,filter:"s"},null,8,["values"])):h("",!0),m("div",null,[e.md.volumeList?.length>1?(l(),f(d,{key:0,id:"volumeTags",class:"groupTags",label:"Volumes",values:e.md.volumeList,filter:"v"},null,8,["values"])):h("",!0)]),e.md.publisherList?.length===1?(l(),p("div",Vs,[(l(),f(i,{id:"publisher",key:e.md.publisherList[0].ids,group:"p",highlight:e.md.group==="p",value:e.md.publisherList[0]},null,8,["highlight","value"])),e.md.imprintList?.length===1?(l(),f(i,{id:"imprint",key:e.md.imprintList[0].ids,group:"i",highlight:e.md.group==="i",value:e.md.imprintList[0]},null,8,["highlight","value"])):h("",!0)])):h("",!0),e.md.publisherList?.length>1?(l(),f(d,{key:5,id:"publisherTags",class:"groupTags",label:"Publishers",values:e.md.publisherList,filter:"p"},null,8,["values"])):h("",!0),e.md.imprintList?.length>1?(l(),f(d,{key:6,id:"imprintTags",class:"groupTags",label:"Imprints",values:e.md.imprintList,filter:"i"},null,8,["values"])):h("",!0),s.pages||e.md.year||e.md.month||e.md.day?(l(),p("div",Ls,[u(i,{value:s.pages},null,8,["value"]),u(i,{value:s.date,class:"datePicker"},null,8,["value"])])):h("",!0)]),u(k,{id:"controls",group:a.group},null,8,["group"])],64)}const xs=T(Ts,[["render",Is],["__scopeId","data-v-a05541e5"]]),Ps={name:"MetadataActivator",props:{book:{type:Object,required:!0},toolbar:{type:Boolean,require:!0}},data(){return{mdiTagOutline:wt}},computed:{...M(St,{lazyImportEnabled:e=>e.adminFlags.lazyImportMetadata}),variant(){return this.toolbar?"plain":"text"}},methods:{...de(z,["lazyImport"]),onMouseEnter(){if(this.lazyImportEnabled&&this.book.group==="c"&&!this.book.hasMetadata){const e=this.book.ids||[this.book.pk];this.lazyImport({group:this.book.group,ids:e}),this.book.hasMetadata=!0}}}};function $s(e,t,a,r,n,s){return l(),f(_e,{onMouseenter:s.onMouseEnter,"aria-label":"tags",class:"tagButton cardControlButton",variant:s.variant,icon:n.mdiTagOutline,title:"Tags",onClick:t[0]||(t[0]=Ct(()=>{},["prevent"]))},null,8,["onMouseenter","variant","icon"])}const Fs=T(Ps,[["render",$s]]),Ds=1160,Es=.05,zs=250,Os={name:"MetadataButton",components:{CloseButton:Ht,MetadataActivator:Fs,MetadataBody:vs,MetadataHeader:xs,PlaceholderLoading:Jt},props:{book:{type:Object,required:!0},toolbar:{type:Boolean,default:!1}},data(){return{dialog:!1,progress:0}},computed:{...M(z,{md:e=>e.md}),showContainer(){return this.md?.loaded||!1},children(){return this.book.childCount||0}},watch:{dialog(e){e?this.dialogOpened():this.clearMetadata()}},methods:{...de(z,["clearMetadata","loadMetadata"]),dialogOpened(){const e=this.book.ids||[this.book.pk],t={group:this.book.group,pks:e};this.loadMetadata(t),this.startProgress()},startProgress(){this.startTime=Date.now(),this.estimatedMS=Math.max(Es,this.children/Ds)*1e3,this.updateProgress()},updateProgress(){const e=Date.now()-this.startTime;this.progress=e/this.estimatedMS*100,!(this.progress>=100||this.md)&&setTimeout(()=>{this.updateProgress()},zs)}}},As={key:1,id:"placeholderContainer"};function Gs(e,t,a,r,n,s){const i=_("MetadataActivator"),o=_("CloseButton"),d=_("MetadataHeader"),k=_("MetadataBody"),B=_("PlaceholderLoading");return l(),f(qt,{modelValue:n.dialog,"onUpdate:modelValue":t[2]||(t[2]=y=>n.dialog=y),fullscreen:"",transition:"dialog-bottom-transition"},{activator:C(({props:y})=>[u(i,Z(y,{book:a.book,toolbar:a.toolbar}),null,16,["book","toolbar"])]),default:C(()=>[u(o,{class:"closeButton",title:"Close Metadata (esc)",onClick:t[0]||(t[0]=y=>n.dialog=!1)}),s.showContainer?(l(),p("div",{key:0,id:"metadataContainer",onKeyup:t[1]||(t[1]=Tt(y=>n.dialog=!1,["esc"]))},[u(d,{group:a.book.group},null,8,["group"]),u(k,{book:a.book},null,8,["book"])],32)):(l(),p("div",As,[t[3]||(t[3]=m("div",{id:"placeholderTitle"},"Tags Loading",-1)),u(B,{"model-value":n.progress,indeterminate:n.progress>=100,class:"placeholder"},null,8,["model-value","indeterminate"])]))]),_:1},8,["modelValue"])}const bi=T(Os,[["render",Gs],["__scopeId","data-v-e1a86bc1"]]),js={name:"PaginationNavButton",props:{narrow:{type:Boolean,default:!0}},computed:{classes(){return{narrowButton:this.narrow}}}};function Us(e,t,a,r,n,s){return l(),f(_e,{variant:"plain",density:"compact",class:V(["paginationNavButton",s.classes]),size:"medium"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1032,["class"])}const ki=T(js,[["render",Us],["__scopeId","data-v-cf061c30"]]),Pe=Symbol.for("vuetify:v-slider");function qs(e,t,a){const r=a==="vertical",n=t.getBoundingClientRect(),s="touches"in e?e.touches[0]:e;return r?s.clientY-(n.top+n.height/2):s.clientX-(n.left+n.width/2)}function Hs(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Ks=he({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>typeof e=="boolean"||e==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>typeof e=="boolean"||e==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)},reverse:Boolean,noKeyboard:Boolean,...$t(),...Pt({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Ws=e=>{const t=g(()=>parseFloat(e.min)),a=g(()=>parseFloat(e.max)),r=g(()=>Number(e.step)>0?parseFloat(e.step):0),n=g(()=>Math.max(De(r.value),De(t.value)));function s(i){if(i=parseFloat(i),r.value<=0)return i;const o=Me(i,t.value,a.value),d=t.value%r.value;let k=Math.round((o-d)/r.value)*r.value+d;return o>k&&k+r.value>a.value&&(k=a.value),parseFloat(Math.min(k,a.value).toFixed(n.value))}return{min:t,max:a,step:r,decimals:n,roundValue:s}},Ys=e=>{let{props:t,steps:a,onSliderStart:r,onSliderMove:n,onSliderEnd:s,getActiveThumb:i}=e;const{isRtl:o}=Ie(),d=$(()=>t.reverse),k=g(()=>t.direction==="vertical"),B=g(()=>k.value!==d.value),{min:y,max:I,step:D,decimals:O,roundValue:K}=a,X=g(()=>parseInt(t.thumbSize,10)),Q=g(()=>parseInt(t.tickSize,10)),A=g(()=>parseInt(t.trackSize,10)),G=g(()=>(I.value-y.value)/D.value),j=$(()=>t.disabled),U=g(()=>t.error||t.disabled?void 0:t.thumbColor??t.color),q=g(()=>t.error||t.disabled?void 0:t.thumbColor),W=g(()=>t.error||t.disabled?void 0:t.trackColor??t.color),x=g(()=>t.error||t.disabled?void 0:t.trackFillColor??t.color),P=Ee(!1),S=Ee(0),Y=be(),b=be();function E(c){const v=Y.value?.$el;if(!v)return;const se=t.direction==="vertical",ve=se?"top":"left",ge=se?"height":"width",st=se?"clientY":"clientX",{[ve]:it,[ge]:nt}=v.getBoundingClientRect(),rt=Hs(c,st);let we=Me((rt-it-S.value)/nt)||0;return(se?B.value:B.value!==o.value)&&(we=1-we),K(y.value+we*(I.value-y.value))}const J=c=>{const v=E(c);v!=null&&s({value:v}),P.value=!1,S.value=0},ce=c=>{const v=E(c);b.value=i(c),b.value&&(P.value=!0,b.value.contains(c.target)?S.value=qs(c,b.value,t.direction):(S.value=0,v!=null&&n({value:v})),v!=null&&r({value:v}),Bt(()=>b.value?.focus()))},ee={passive:!0,capture:!0};function H(c){const v=E(c);v!=null&&n({value:v})}function te(c){c.stopPropagation(),c.preventDefault(),J(c),window.removeEventListener("mousemove",H,ee),window.removeEventListener("mouseup",te)}function oe(c){J(c),window.removeEventListener("touchmove",H,ee),c.target?.removeEventListener("touchend",oe)}function ae(c){ce(c),window.addEventListener("touchmove",H,ee),c.target?.addEventListener("touchend",oe,{passive:!1})}function Se(c){c.button===0&&(c.preventDefault(),ce(c),window.addEventListener("mousemove",H,ee),window.addEventListener("mouseup",te,{passive:!1}))}const le=c=>{const v=(c-y.value)/(I.value-y.value)*100;return Me(isNaN(v)?0:v,0,100)},fe=$(()=>t.showTicks),pe=g(()=>fe.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map(c=>({value:c,position:le(c),label:c.toString()})):Object.keys(t.ticks).map(c=>({value:parseFloat(c),position:le(parseFloat(c)),label:t.ticks[c]})):G.value!==1/0?Mt(G.value+1).map(c=>{const v=y.value+c*D.value;return{value:v,position:le(v)}}):[]:[]),N=g(()=>pe.value.some(c=>{let{label:v}=c;return!!v})),R={activeThumbRef:b,color:$(()=>t.color),decimals:O,disabled:j,direction:$(()=>t.direction),elevation:$(()=>t.elevation),hasLabels:N,isReversed:d,indexFromEnd:B,min:y,max:I,mousePressed:P,noKeyboard:$(()=>t.noKeyboard),numTicks:G,onSliderMousedown:Se,onSliderTouchstart:ae,parsedTicks:pe,parseMouseMove:E,position:le,readonly:$(()=>t.readonly),rounded:$(()=>t.rounded),roundValue:K,showTicks:fe,startOffset:S,step:D,thumbSize:X,thumbColor:U,thumbLabelColor:q,thumbLabel:$(()=>t.thumbLabel),ticks:$(()=>t.ticks),tickSize:Q,trackColor:W,trackContainerRef:Y,trackFillColor:x,trackSize:A,vertical:k};return Rt(Pe,R),R},Zs=he({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...Re()},"VSliderThumb"),Xs=ke()({name:"VSliderThumb",directives:{vRipple:Oe},props:Zs(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=qe(Pe),{isRtl:s,rtlClasses:i}=Ie();if(!n)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:o,max:d,thumbColor:k,thumbLabelColor:B,step:y,disabled:I,thumbSize:D,thumbLabel:O,direction:K,isReversed:X,vertical:Q,readonly:A,elevation:G,mousePressed:j,decimals:U,indexFromEnd:q}=n,W=g(()=>I.value?void 0:G.value),{elevationClasses:x}=Ft(W),{textColorClasses:P,textColorStyles:S}=Dt(k),{backgroundColorClasses:Y,backgroundColorStyles:b}=Be(B),{pageup:E,pagedown:J,end:ce,home:ee,left:H,right:te,down:oe,up:ae}=Nt,Se=[E,J,ce,ee,H,te,oe,ae],le=g(()=>y.value?[1,2,3]:[1,5,10]);function fe(N,R){if(e.noKeyboard||!Se.includes(N.key))return;N.preventDefault();const c=y.value||.1,v=(d.value-o.value)/c;if([H,te,oe,ae].includes(N.key)){const ve=(Q.value?[s.value?H:te,X.value?oe:ae]:q.value!==s.value?[H,ae]:[te,ae]).includes(N.key)?1:-1,ge=N.shiftKey?2:N.ctrlKey?1:0;ve===-1&&R===d.value&&!ge&&!Number.isInteger(v)?R=R-v%1*c:R=R+ve*c*le.value[ge]}else if(N.key===ee)R=o.value;else if(N.key===ce)R=d.value;else{const se=N.key===J?1:-1;R=R-se*c*(v>100?v/10:10)}return Math.max(e.min,Math.min(e.max,R))}function pe(N){const R=fe(N,e.modelValue);R!=null&&r("update:modelValue",R)}return ye(()=>{const N=ie(q.value?100-e.position:e.position,"%");return m("div",{class:V(["v-slider-thumb",{"v-slider-thumb--focused":e.focused,"v-slider-thumb--pressed":e.focused&&j.value},e.class,i.value]),style:re([{"--v-slider-thumb-position":N,"--v-slider-thumb-size":ie(D.value)},e.style]),role:"slider",tabindex:I.value?-1:0,"aria-label":e.name,"aria-valuemin":o.value,"aria-valuemax":d.value,"aria-valuenow":e.modelValue,"aria-readonly":!!A.value,"aria-orientation":K.value,onKeydown:A.value?void 0:pe},[m("div",{class:V(["v-slider-thumb__surface",P.value,x.value]),style:re(S.value)},null),ze(m("div",{class:V(["v-slider-thumb__ripple",P.value]),style:re(S.value)},null),[[Oe,e.ripple,null,{circle:!0,center:!0}]]),u(Wt,{origin:"bottom center"},{default:()=>[ze(m("div",{class:"v-slider-thumb__label-container"},[m("div",{class:V(["v-slider-thumb__label",Y.value]),style:re(b.value)},[m("div",null,[a["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(y.value?U.value:1)]),m("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[Vt,O.value&&e.focused||O.value==="always"]])]})])}),{}}}),Qs=he({start:{type:Number,required:!0},stop:{type:Number,required:!0},...Re()},"VSliderTrack"),Js=ke()({name:"VSliderTrack",props:Qs(),emits:{},setup(e,t){let{slots:a}=t;const r=qe(Pe);if(!r)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:n,parsedTicks:s,rounded:i,showTicks:o,tickSize:d,trackColor:k,trackFillColor:B,trackSize:y,vertical:I,min:D,max:O,indexFromEnd:K}=r,{roundedClasses:X}=Et(i),{backgroundColorClasses:Q,backgroundColorStyles:A}=Be(B),{backgroundColorClasses:G,backgroundColorStyles:j}=Be(k),U=g(()=>`inset-${I.value?"block":"inline"}-${K.value?"end":"start"}`),q=g(()=>I.value?"height":"width"),W=g(()=>({[U.value]:"0%",[q.value]:"100%"})),x=g(()=>e.stop-e.start),P=g(()=>({[U.value]:ie(e.start,"%"),[q.value]:ie(x.value,"%")})),S=g(()=>o.value?(I.value?s.value.slice().reverse():s.value).map((b,E)=>{const J=b.value!==D.value&&b.value!==O.value?ie(b.position,"%"):void 0;return m("div",{key:b.value,class:V(["v-slider-track__tick",{"v-slider-track__tick--filled":b.position>=e.start&&b.position<=e.stop,"v-slider-track__tick--first":b.value===D.value,"v-slider-track__tick--last":b.value===O.value}]),style:{[U.value]:J}},[(b.label||a["tick-label"])&&m("div",{class:"v-slider-track__tick-label"},[a["tick-label"]?.({tick:b,index:E})??b.label])])}):[]);return ye(()=>m("div",{class:V(["v-slider-track",X.value,e.class]),style:re([{"--v-slider-track-size":ie(y.value),"--v-slider-tick-size":ie(d.value)},e.style])},[m("div",{class:V(["v-slider-track__background",G.value,{"v-slider-track__background--opacity":!!n.value||!B.value}]),style:{...W.value,...j.value}},null),m("div",{class:V(["v-slider-track__fill",Q.value]),style:{...P.value,...A.value}},null),o.value&&m("div",{class:V(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":o.value==="always"}])},[S.value])])),{}}}),ei=he({...Xt(),...Ks(),...Zt(),modelValue:{type:[Number,String],default:0}},"VSlider"),ti=ke()({name:"VSlider",props:ei(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:a,emit:r}=t;const n=be(),s=be(),{rtlClasses:i}=Ie(),o=Ws(e),d=Lt(e,"modelValue",void 0,x=>o.roundValue(x??o.min.value)),{min:k,max:B,mousePressed:y,roundValue:I,onSliderMousedown:D,onSliderTouchstart:O,trackContainerRef:K,position:X,hasLabels:Q,readonly:A,noKeyboard:G}=Ys({props:e,steps:o,onSliderStart:()=>{r("start",d.value)},onSliderEnd:x=>{let{value:P}=x;const S=I(P);d.value=S,r("end",S)},onSliderMove:x=>{let{value:P}=x;return d.value=I(P)},getActiveThumb:()=>n.value?.$el}),{isFocused:j,focus:U,blur:q}=Yt(e),W=g(()=>X(d.value));return ye(()=>{const x=Ae.filterProps(e),P=!!(e.label||a.label||a.prepend);return u(Ae,Z({ref:s,class:["v-slider",{"v-slider--has-labels":!!a["tick-label"]||Q.value,"v-slider--focused":j.value,"v-slider--pressed":y.value,"v-slider--disabled":e.disabled},i.value,e.class],style:e.style},x,{focused:j.value}),{...a,prepend:P?S=>m(me,null,[a.label?.(S)??(e.label?u(Qt,{id:S.id.value,class:"v-slider__label",text:e.label},null):void 0),a.prepend?.(S)]):void 0,default:S=>{let{id:Y,messagesId:b}=S;return m("div",{class:"v-slider__container",onMousedown:A.value?void 0:D,onTouchstartPassive:A.value?void 0:O},[m("input",{id:Y.value,name:e.name||Y.value,disabled:!!e.disabled,readonly:!!e.readonly,tabindex:"-1",value:d.value},null),u(Js,{ref:K,start:0,stop:W.value},{"tick-label":a["tick-label"]}),u(Xs,{ref:n,"aria-describedby":b.value,focused:j.value,noKeyboard:G.value,min:k.value,max:B.value,modelValue:d.value,"onUpdate:modelValue":E=>d.value=E,position:W.value,elevation:e.elevation,onFocus:U,onBlur:q,ripple:e.ripple,name:e.name},{"thumb-label":a["thumb-label"]})])}})}),zt({focus:()=>n.value?.$el.focus()},s)}}),ai={name:"PaginationSlider",props:{min:{type:Number,default:0}}};function si(e,t,a,r,n,s){return l(),f(ti,Z({"thumb-size":"36",class:"paginationSlider",density:"compact","hide-details":"auto",min:a.min,rounded:!0,"show-ticks":"always",step:1,"thumb-label":"always"},e.$attrs),{"tick-label":C(({index:i})=>[F(w(i+a.min),1)]),_:1},16,["min"])}const yi=T(ai,[["render",si],["__scopeId","data-v-01b67afd"]]),ii={name:"PaginationToolbar"};function ni(e,t,a,r,n,s){return l(),f(ea,{class:"paginationToolbar codexToolbar",density:"compact",transform:"center bottom"},Ne({_:2},[ue(e.$slots,(i,o)=>({name:o,fn:C(d=>[Ve(e.$slots,o,Z({props:i},d),void 0,!0)])}))]),1024)}const _i=T(ii,[["render",ni],["__scopeId","data-v-cfa8cce0"]]);export{ca as B,pa as D,ka as M,Ce as N,ki as P,vi as T,pi as V,gi as a,bi as b,_i as c,yi as d,tt as g,Ye as p,Ge as t};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-CwHb2532.js","assets/main-CdKoY_uF.js","assets/main-B8_0rUnw.css","assets/admin-D5DpivSr.js","assets/forwardRefs-BotGMO80.js","assets/forwardRefs-C3Z4qL85.css","assets/admin-settings-button-progress-Cks9_KN-.css","assets/admin-menu-MN0IHt2k.js","assets/change-password-dialog-C2JNp2wz.js","assets/VDialog-DhWYW70x.js","assets/VDialog-CpWjrJ0R.css","assets/VForm-bSlWOF1d.js","assets/VSelectionControl-BI__4iTT.js","assets/VSelectionControl-RqBzwjYi.css","assets/VForm-DxBt30-N.css","assets/change-password-dialog-DL8UMjmX.css","assets/VDivider-D5g1AzdV.js","assets/VDivider-DU47sRrT.css","assets/index-DDX_hxwV.js","assets/index-Czf-fUM7.css","assets/admin-menu-hpyUS8ku.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as x,y as T,W as ze,A as Fe,x as S,w,a6 as ie,m as G,C as Z,E as F,ao as re,D as M,G as ee,ba as He,aq as ue,ab as Ne,v as I,ar as ce,a as f,H as O,z as E,B as P,I as de,bb as Ye,bc as We,bd as ve,q as U,b,T as qe,aR as Xe,a0 as me,be as je,g as he,p as fe,r as ge,aA as pe,aU as R,bf as Ge,c as D,bg as X,u as ye,n as Ze,d as Ke,h as _e,aB as be,bh as we,K as Se,bi as ke,t as z,bj as De,bk as Je,bl as Ce,aV as q,bm as Pe,bn as Qe,b8 as et,bo as tt,aD as at,bp as ot,e as nt,bq as st,f as lt,br as it,F as rt,bs as ut,aX as ct}from"./main-CdKoY_uF.js";import{V as Be,k as H,c as Q,r as Ve,s as Te,i as Ee,d as Oe,j as $e,t as Ie,v as Re,B as dt,C as vt,l as mt}from"./forwardRefs-BotGMO80.js";import{P as ht,d as ft}from"./unauthorized-MOc4QcAg.js";import{c as gt}from"./copy-to-clipboard-DoUvDJVx.js";import{j as pt}from"./VSelectionControl-BI__4iTT.js";import{V as yt,u as _t,e as bt,f as wt,d as St}from"./VDialog-DhWYW70x.js";import{u as kt}from"./ssrBoot-Ehaw9KYw.js";import{a as J}from"./VDivider-D5g1AzdV.js";const Dt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Ct(e,o,s,c,t,a){return S(),T(Be,{density:a.density},ze({_:2},[Fe(e.$slots,(n,u)=>({name:u,fn:w(g=>[ie(e.$slots,u,G({props:n},g))])}))]),1032,["density"])}const Pt=x(Dt,[["render",Ct]]),ne=re(ue(()=>ce(()=>import("./admin-settings-button-progress-CwHb2532.js"),__vite__mapDeps([0,1,2,3,4,5,6])))),Bt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ne,ScaleButton:Pt},data(){return{mdiMenu:He,AdminSettingsButtonProgress:ne}},computed:{...F(ee,["isUserAdmin"])},methods:{...Z(M,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Vt(e,o,s,c,t,a){const n=I("ScaleButton");return S(),T(n,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Ne(a.onClick,["prevent"])},{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(S(),T(de(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const wa=x(Bt,[["render",Vt],["__scopeId","data-v-cdf6ad8a"]]),Tt={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:ve,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Ye:We},tooltip(){return this.clipBoardEnabled},url(){return globalThis.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&>(this.url,this.showTooltip)}}},Et=["title"],Ot={key:0},$t={class:"copied"},It={key:1,class:"subtitle"},Rt={class:"opdsUrl"};function Mt(e,o,s,c,t,a){return S(),U("div",{class:"opdsVersion",title:a.tooltip,onClick:o[0]||(o[0]=(...n)=>a.onClickURL&&a.onClickURL(...n))},[b("h3",null,[E(P(s.title)+" ",1),a.clipBoardEnabled?(S(),U("span",Ot,[f(H,{class:"clipBoardIcon",size:"small"},{default:w(()=>[E(P(a.clipBoardIcon),1)]),_:1}),f(pt,null,{default:w(()=>[qe(b("span",$t,"Copied",512),[[Xe,t.showTooltip.show]])]),_:1})])):O("",!0),s.subtitle?(S(),U("span",It,P(s.subtitle),1)):O("",!0)]),b("div",Rt,P(a.url),1)],8,Et)}const xt=x(Tt,[["render",Mt],["__scopeId","data-v-feac632b"]]),At={name:"OPDSDialog",components:{OPDSUrl:xt,PlaceholderLoading:ht},data(){return{mdiRss:ve}},computed:{...F(M,{opdsURLs:e=>e.opdsURLs})},methods:{...Z(M,["loadOPDSURLs"])}},Lt={key:0,id:"opds"};function Ut(e,o,s,c,t,a){const n=I("OPDSUrl"),u=I("PlaceholderLoading");return S(),T(yt,{"max-width":"30em"},{activator:w(({props:g})=>[f(Be,G({id:"opdsButton",icon:"",size:"small",variant:"plain"},g,{onClick:e.loadOPDSURLs}),{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[0]||(o[0]=E(" OPDS ",-1))]),_:2,__:[0]},1040,["onClick"])]),default:w(()=>[e.opdsURLs?(S(),U("div",Lt,[b("h2",null,[f(H,{size:"x=small",class:"inline"},{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[1]||(o[1]=E(" OPDS ",-1))]),f(n,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),f(n,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(S(),T(u,{key:1}))]),_:1})}const zt=x(At,[["render",Ut],["__scopeId","data-v-5646b9a1"]]),Ft={name:"DocsFooter",data(){return{mdiBookOpenVariantOutline:je,mdiOpenInNew:me}}},Ht={id:"repo",href:"https://codex-comic-reader.readthedocs.io/",title:"Codex Documentation",target:"_blank"};function Nt(e,o,s,c,t,a){return S(),U("a",Ht,[f(H,{id:"repoIcon",size:"x-small"},{default:w(()=>[E(P(t.mdiBookOpenVariantOutline),1)]),_:1}),o[0]||(o[0]=E(" documentation",-1)),f(H,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:w(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const Yt=x(Ft,[["render",Nt],["__scopeId","data-v-6eb88e3c"]]),Wt=fe({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Re(),...Se(),...Ie(),...we(),...$e(),...Oe({tag:"footer"}),...be()},"VFooter"),Me=he()({name:"VFooter",props:Wt(),setup(e,o){let{slots:s}=o;const c=ge(),{themeClasses:t}=pe(e),{backgroundColorClasses:a,backgroundColorStyles:n}=Q(()=>e.color),{borderClasses:u}=Ve(e),{elevationClasses:g}=Te(e),{roundedClasses:r}=Ee(e),p=R(32),{resizeRef:m}=Ge(y=>{y.length&&(p.value=y[0].target.clientHeight)}),d=D(()=>e.height==="auto"?p.value:parseInt(e.height,10));return X(()=>e.app,()=>{const y=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:z(()=>"bottom"),layoutSize:d,elementSize:D(()=>e.height==="auto"?void 0:d.value),active:z(()=>e.app),absolute:z(()=>e.absolute)});De(()=>{c.value=y.layoutItemStyles.value})}),ye(()=>f(e.tag,{ref:m,class:Ke(["v-footer",t.value,a.value,u.value,g.value,r.value,e.class]),style:Ze([n.value,e.app?c.value:{height:_e(e.height)},e.style])},s)),{}}}),qt={name:"VersionFooter",data(){return{mdiOpenInNew:me,mdiContentCopy:Je}},computed:{...F(M,{versions:e=>e.versions}),...F(ee,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...Z(M,["loadVersions"]),semverGreaterThan(e,o){try{if(!e||!o)return!1;const s=e.split("."),c=o.split(".");for(const[t,a]of s.entries())if(+a>+c[t])return!0}catch(s){console.debug("compare codex versions",e,">",o,s)}return!1}}},Xt={id:"version"},jt={key:0,id:"latest"};function Gt(e,o,s,c,t,a){return S(),T(Me,{id:"version-footer",title:a.versionTitle},{default:w(()=>[b("div",Xt,"codex v"+P(e.versions.installed),1),a.outdated?(S(),U("div",jt," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const Zt=x(qt,[["render",Gt],["__scopeId","data-v-b77f3bde"]]);function Kt(e){let{rootEl:o,isSticky:s,layoutItemStyles:c}=e;const t=R(!1),a=R(0),n=D(()=>{const r=typeof t.value=="boolean"?"top":t.value;return[s.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[r]:_e(a.value)}:{top:c.value.top}]});Ce(()=>{q(s,r=>{r?window.addEventListener("scroll",g,{passive:!0}):window.removeEventListener("scroll",g)},{immediate:!0})}),Pe(()=>{window.removeEventListener("scroll",g)});let u=0;function g(){const r=u>window.scrollY?"up":"down",p=o.value.getBoundingClientRect(),m=parseFloat(c.value.top??0),d=window.scrollY-Math.max(0,a.value-m),y=p.height+Math.max(a.value,m)-window.scrollY-window.innerHeight,_=parseFloat(getComputedStyle(o.value).getPropertyValue("--v-body-scroll-y"))||0;p.height<window.innerHeight-m?(t.value="top",a.value=m):r==="up"&&t.value==="bottom"||r==="down"&&t.value==="top"?(a.value=window.scrollY+p.top-_,t.value=!0):r==="down"&&y<=0?(a.value=0,t.value="bottom"):r==="up"&&d<=0&&(_?t.value!=="top"&&(a.value=-d+_+m,t.value="top"):(a.value=p.top+d,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:n}}const Jt=100,Qt=20;function se(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function le(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let o=0;for(let s=e.length-1;s>0;s--){if(e[s].t===e[s-1].t)continue;const c=se(o),t=(e[s].d-e[s-1].d)/(e[s].t-e[s-1].t);o+=(t-c)*Math.abs(t),s===e.length-1&&(o*=.5)}return se(o)*1e3}function ea(){const e={};function o(t){Array.from(t.changedTouches).forEach(a=>{(e[a.identifier]??(e[a.identifier]=new Qe(Qt))).push([t.timeStamp,a])})}function s(t){Array.from(t.changedTouches).forEach(a=>{delete e[a.identifier]})}function c(t){const a=e[t]?.values().reverse();if(!a)throw new Error(`No samples for touch id ${t}`);const n=a[0],u=[],g=[];for(const r of a){if(n[0]-r[0]>Jt)break;u.push({t:r[0],d:r[1].clientX}),g.push({t:r[0],d:r[1].clientY})}return{x:le(u),y:le(g),get direction(){const{x:r,y:p}=this,[m,d]=[Math.abs(r),Math.abs(p)];return m>d&&r>=0?"right":m>d&&r<=0?"left":d>m&&p>=0?"down":d>m&&p<=0?"up":ta()}}}return{addMovement:o,endTouch:s,getVelocity:c}}function ta(){throw new Error}function aa(e){let{el:o,isActive:s,isTemporary:c,width:t,touchless:a,position:n}=e;Ce(()=>{window.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("touchmove",$,{passive:!1}),window.addEventListener("touchend",j,{passive:!0})}),Pe(()=>{window.removeEventListener("touchstart",A),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",j)});const u=D(()=>["left","right"].includes(n.value)),{addMovement:g,endTouch:r,getVelocity:p}=ea();let m=!1;const d=R(!1),y=R(0),_=R(0);let C;function N(l,i){return(n.value==="left"?l:n.value==="right"?document.documentElement.clientWidth-l:n.value==="top"?l:n.value==="bottom"?document.documentElement.clientHeight-l:L())-(i?t.value:0)}function Y(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const v=n.value==="left"?(l-_.value)/t.value:n.value==="right"?(document.documentElement.clientWidth-l-_.value)/t.value:n.value==="top"?(l-_.value)/t.value:n.value==="bottom"?(document.documentElement.clientHeight-l-_.value)/t.value:L();return i?et(v):v}function A(l){if(a.value)return;const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY,h=25,B=n.value==="left"?i<h:n.value==="right"?i>document.documentElement.clientWidth-h:n.value==="top"?v<h:n.value==="bottom"?v>document.documentElement.clientHeight-h:L(),V=s.value&&(n.value==="left"?i<t.value:n.value==="right"?i>document.documentElement.clientWidth-t.value:n.value==="top"?v<t.value:n.value==="bottom"?v>document.documentElement.clientHeight-t.value:L());(B||V||s.value&&c.value)&&(C=[i,v],_.value=N(u.value?i:v,s.value),y.value=Y(u.value?i:v),m=_.value>-20&&_.value<80,r(l),g(l))}function $(l){const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY;if(m){if(!l.cancelable){m=!1;return}const B=Math.abs(i-C[0]),V=Math.abs(v-C[1]);(u.value?B>V&&B>3:V>B&&V>3)?(d.value=!0,m=!1):(u.value?V:B)>3&&(m=!1)}if(!d.value)return;l.preventDefault(),g(l);const h=Y(u.value?i:v,!1);y.value=Math.max(0,Math.min(1,h)),h>1?_.value=N(u.value?i:v,!0):h<0&&(_.value=N(u.value?i:v,!1))}function j(l){if(m=!1,!d.value)return;g(l),d.value=!1;const i=p(l.changedTouches[0].identifier),v=Math.abs(i.x),h=Math.abs(i.y);(u.value?v>h&&v>400:h>v&&h>3)?s.value=i.direction===({left:"right",right:"left",top:"down",bottom:"up"}[n.value]||L()):s.value=y.value>.5}const W=D(()=>d.value?{transform:n.value==="left"?`translateX(calc(-100% + ${y.value*t.value}px))`:n.value==="right"?`translateX(calc(100% - ${y.value*t.value}px))`:n.value==="top"?`translateY(calc(-100% + ${y.value*t.value}px))`:n.value==="bottom"?`translateY(calc(100% - ${y.value*t.value}px))`:L(),transition:"none"}:void 0);return X(d,()=>{const l=o.value?.style.transform??null,i=o.value?.style.transition??null;De(()=>{o.value?.style.setProperty("transform",W.value?.transform||"none"),o.value?.style.setProperty("transition",W.value?.transition||null)}),tt(()=>{o.value?.style.setProperty("transform",l),o.value?.style.setProperty("transition",i)})}),{isDragging:d,dragProgress:y,dragStyles:W}}function L(){throw new Error}const oa=["start","end","left","right","top","bottom"],na=fe({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>oa.includes(e)},sticky:Boolean,...Re(),...Se(),...wt(),...ut({mobile:null}),...Ie(),...we(),...$e(),...Oe({tag:"nav"}),...be()},"VNavigationDrawer"),sa=he()({name:"VNavigationDrawer",props:na(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,o){let{attrs:s,emit:c,slots:t}=o;const{isRtl:a}=at(),{themeClasses:n}=pe(e),{borderClasses:u}=Ve(e),{backgroundColorClasses:g,backgroundColorStyles:r}=Q(()=>e.color),{elevationClasses:p}=Te(e),{displayClasses:m,mobile:d}=ot(e),{roundedClasses:y}=Ee(e),_=dt(),C=nt(e,"modelValue",null,k=>!!k),{ssrBootStyles:N}=kt(),{scopeId:Y}=_t(),A=ge(),$=R(!1),{runOpenDelay:j,runCloseDelay:W}=bt(e,k=>{$.value=k}),l=D(()=>e.rail&&e.expandOnHover&&$.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),i=D(()=>vt(e.location,a.value)),v=z(()=>e.persistent),h=D(()=>!e.permanent&&(d.value||e.temporary)),B=D(()=>e.sticky&&!h.value&&i.value!=="bottom");X(()=>e.expandOnHover&&e.rail!=null,()=>{q($,k=>c("update:rail",!k))}),X(()=>!e.disableResizeWatcher,()=>{q(h,k=>!e.permanent&&ct(()=>C.value=!k))}),X(()=>!e.disableRouteWatcher&&!!_,()=>{q(_.currentRoute,()=>h.value&&(C.value=!1))}),q(()=>e.permanent,k=>{k&&(C.value=!0)}),e.modelValue==null&&!h.value&&(C.value=e.permanent||!d.value);const{isDragging:V,dragProgress:K}=aa({el:A,isActive:C,isTemporary:h,width:l,touchless:z(()=>e.touchless),position:i}),xe=D(()=>{const k=h.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):l.value;return V.value?k*K.value:k}),{layoutItemStyles:te,layoutItemScrimStyles:Ae}=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:i,layoutSize:xe,elementSize:l,active:st(C),disableTransitions:z(()=>V.value),absolute:D(()=>e.absolute||B.value&&typeof ae.value!="string")}),{isStuck:ae,stickyStyles:Le}=Kt({rootEl:A,isSticky:B,layoutItemStyles:te}),oe=Q(()=>typeof e.scrim=="string"?e.scrim:null),Ue=D(()=>({...V.value?{opacity:K.value*.2,transition:"none"}:void 0,...Ae.value}));return lt({VList:{bgColor:"transparent"}}),ye(()=>{const k=t.image||e.image;return b(rt,null,[f(e.tag,G({ref:A,onMouseenter:j,onMouseleave:W,class:["v-navigation-drawer",`v-navigation-drawer--${i.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":$.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":h.value,"v-navigation-drawer--persistent":v.value,"v-navigation-drawer--active":C.value,"v-navigation-drawer--sticky":B.value},n.value,g.value,u.value,m.value,p.value,y.value,e.class],style:[r.value,te.value,N.value,Le.value,e.style]},Y,s),{default:()=>[k&&b("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?f(mt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):f(St,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&b("div",{class:"v-navigation-drawer__prepend"},[t.prepend?.()]),b("div",{class:"v-navigation-drawer__content"},[t.default?.()]),t.append&&b("div",{class:"v-navigation-drawer__append"},[t.append?.()])]}),f(it,{name:"fade-transition"},{default:()=>[h.value&&(V.value||C.value)&&!!e.scrim&&b("div",G({class:["v-navigation-drawer__scrim",oe.backgroundColorClasses.value],style:[Ue.value,oe.backgroundColorStyles.value],onClick:()=>{v.value||(C.value=!1)}},Y),null)]})])}),{isStuck:ae}}}),la=re(ue(()=>ce(()=>import("./admin-menu-MN0IHt2k.js"),__vite__mapDeps([7,1,2,8,4,5,9,10,11,12,13,14,3,15,16,17,18,19,20])))),ia={name:"SettingsDrawer",components:{AuthMenu:ft,DocsFooter:Yt,OPDSDialog:zt,VersionFooter:Zt},props:{title:{type:String,required:!0}},data(){return{AdminMenu:la}},computed:{...F(ee,["isUserAdmin","isAuthorized"]),...F(M,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...Z(M,["setSettingsDrawerOpen"])}},ra={class:"settingsDrawerContainer"},ua={id:"topBlock"},ca={class:"settingsHeader"},da={id:"scrollFooter",class:"footer"};function va(e,o,s,c,t,a){const n=I("AuthMenu"),u=I("OPDSDialog"),g=I("DocsFooter"),r=I("VersionFooter");return S(),T(sa,{modelValue:a.open,"onUpdate:modelValue":o[0]||(o[0]=p=>a.open=p),"disable-route-watcher":"",location:"right",touchless:""},{append:w(()=>[f(Me,{id:"bottomFooter",class:"footer"},{default:w(()=>[f(r)]),_:1})]),default:w(()=>[b("div",ra,[b("div",ua,[b("header",ca,[b("h3",null,P(s.title),1)]),f(J),e.isAuthorized?ie(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(S(),T(J,{key:1})):O("",!0),f(n),e.isUserAdmin?(S(),T(de(t.AdminMenu),{key:2})):O("",!0),f(J)]),b("div",da,[e.isAuthorized?(S(),T(u,{key:0})):O("",!0),f(g)])])]),_:3},8,["modelValue"])}const Sa=x(ia,[["render",va],["__scopeId","data-v-de26da7a"]]);export{wa as S,sa as V,Sa as a,Pt as b};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/admin-settings-button-progress-CwHb2532.js","assets/main-CdKoY_uF.js","assets/main-B8_0rUnw.css","assets/admin-D5DpivSr.js","assets/forwardRefs-BotGMO80.js","assets/forwardRefs-C3Z4qL85.css","assets/admin-settings-button-progress-Cks9_KN-.css","assets/admin-menu-MN0IHt2k.js","assets/change-password-dialog-C2JNp2wz.js","assets/VDialog-DhWYW70x.js","assets/VDialog-CpWjrJ0R.css","assets/VForm-bSlWOF1d.js","assets/VSelectionControl-BI__4iTT.js","assets/VSelectionControl-RqBzwjYi.css","assets/VForm-DxBt30-N.css","assets/change-password-dialog-DL8UMjmX.css","assets/VDivider-D5g1AzdV.js","assets/VDivider-DU47sRrT.css","assets/index-DDX_hxwV.js","assets/index-Czf-fUM7.css","assets/admin-menu-hpyUS8ku.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as x,y as T,W as ze,A as Fe,x as S,w,a6 as ie,m as G,C as Z,E as F,ao as re,D as M,G as ee,ba as He,aq as ue,ab as Ne,v as I,ar as ce,a as f,H as O,z as E,B as P,I as de,bb as Ye,bc as We,bd as ve,q as U,b,T as qe,aR as Xe,a0 as me,be as je,g as he,p as fe,r as ge,aA as pe,aU as R,bf as Ge,c as D,bg as X,u as ye,n as Ze,d as Ke,h as _e,aB as be,bh as we,K as Se,bi as ke,t as z,bj as De,bk as Je,bl as Ce,aV as q,bm as Pe,bn as Qe,b8 as et,bo as tt,aD as at,bp as ot,e as nt,bq as st,f as lt,br as it,F as rt,bs as ut,aX as ct}from"./main-CdKoY_uF.js";import{V as Be,k as H,c as Q,r as Ve,s as Te,i as Ee,d as Oe,j as $e,t as Ie,v as Re,B as dt,C as vt,l as mt}from"./forwardRefs-BotGMO80.js";import{P as ht,d as ft}from"./unauthorized-MOc4QcAg.js";import{c as gt}from"./copy-to-clipboard-DoUvDJVx.js";import{j as pt}from"./VSelectionControl-BI__4iTT.js";import{V as yt,u as _t,e as bt,f as wt,d as St}from"./VDialog-DhWYW70x.js";import{u as kt}from"./ssrBoot-Ehaw9KYw.js";import{a as J}from"./VDivider-D5g1AzdV.js";const Dt={name:"ScaleButton",props:{scale:{type:Boolean,default:!1}},computed:{breakPoint(){return this.$vuetify.display.xs},density(){return this.breakPoint?"compact":"default"}}};function Ct(e,o,s,c,t,a){return S(),T(Be,{density:a.density},ze({_:2},[Fe(e.$slots,(n,u)=>({name:u,fn:w(g=>[ie(e.$slots,u,G({props:n},g))])}))]),1032,["density"])}const Pt=x(Dt,[["render",Ct]]),ne=re(ue(()=>ce(()=>import("./admin-settings-button-progress-CwHb2532.js"),__vite__mapDeps([0,1,2,3,4,5,6])))),Bt={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ne,ScaleButton:Pt},data(){return{mdiMenu:He,AdminSettingsButtonProgress:ne}},computed:{...F(ee,["isUserAdmin"])},methods:{...Z(M,["setSettingsDrawerOpen"]),onClick(){this.setSettingsDrawerOpen(!0)}}};function Vt(e,o,s,c,t,a){const n=I("ScaleButton");return S(),T(n,{id:"settingsDrawerButton",variant:"plain",icon:"",title:"Settings",onClick:Ne(a.onClick,["prevent"])},{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiMenu),1)]),_:1}),e.isUserAdmin?(S(),T(de(t.AdminSettingsButtonProgress),{key:0})):O("",!0)]),_:1},8,["onClick"])}const wa=x(Bt,[["render",Vt],["__scopeId","data-v-cdf6ad8a"]]),Tt={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},urlPath:{type:String,required:!0}},data(){return{mdiRss:ve,showTooltip:{show:!1}}},computed:{clipBoardEnabled(){return location.protocol=="https:"},clipBoardIcon(){return this.showTooltip.show?Ye:We},tooltip(){return this.clipBoardEnabled},url(){return globalThis.origin+this.urlPath}},methods:{onClickURL(){this.clipBoardEnabled&>(this.url,this.showTooltip)}}},Et=["title"],Ot={key:0},$t={class:"copied"},It={key:1,class:"subtitle"},Rt={class:"opdsUrl"};function Mt(e,o,s,c,t,a){return S(),U("div",{class:"opdsVersion",title:a.tooltip,onClick:o[0]||(o[0]=(...n)=>a.onClickURL&&a.onClickURL(...n))},[b("h3",null,[E(P(s.title)+" ",1),a.clipBoardEnabled?(S(),U("span",Ot,[f(H,{class:"clipBoardIcon",size:"small"},{default:w(()=>[E(P(a.clipBoardIcon),1)]),_:1}),f(pt,null,{default:w(()=>[qe(b("span",$t,"Copied",512),[[Xe,t.showTooltip.show]])]),_:1})])):O("",!0),s.subtitle?(S(),U("span",It,P(s.subtitle),1)):O("",!0)]),b("div",Rt,P(a.url),1)],8,Et)}const xt=x(Tt,[["render",Mt],["__scopeId","data-v-feac632b"]]),At={name:"OPDSDialog",components:{OPDSUrl:xt,PlaceholderLoading:ht},data(){return{mdiRss:ve}},computed:{...F(M,{opdsURLs:e=>e.opdsURLs})},methods:{...Z(M,["loadOPDSURLs"])}},Lt={key:0,id:"opds"};function Ut(e,o,s,c,t,a){const n=I("OPDSUrl"),u=I("PlaceholderLoading");return S(),T(yt,{"max-width":"30em"},{activator:w(({props:g})=>[f(Be,G({id:"opdsButton",icon:"",size:"small",variant:"plain"},g,{onClick:e.loadOPDSURLs}),{default:w(()=>[f(H,null,{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[0]||(o[0]=E(" OPDS ",-1))]),_:2,__:[0]},1040,["onClick"])]),default:w(()=>[e.opdsURLs?(S(),U("div",Lt,[b("h2",null,[f(H,{size:"x=small",class:"inline"},{default:w(()=>[E(P(t.mdiRss),1)]),_:1}),o[1]||(o[1]=E(" OPDS ",-1))]),f(n,{title:"v1.2","url-path":e.opdsURLs.v1},null,8,["url-path"]),f(n,{title:"v2.0","url-path":e.opdsURLs.v2,subtitle:"Experimental and not widely or well supported by clients"},null,8,["url-path"])])):(S(),T(u,{key:1}))]),_:1})}const zt=x(At,[["render",Ut],["__scopeId","data-v-5646b9a1"]]),Ft={name:"DocsFooter",data(){return{mdiBookOpenVariantOutline:je,mdiOpenInNew:me}}},Ht={id:"repo",href:"https://codex-comic-reader.readthedocs.io/",title:"Codex Documentation",target:"_blank"};function Nt(e,o,s,c,t,a){return S(),U("a",Ht,[f(H,{id:"repoIcon",size:"x-small"},{default:w(()=>[E(P(t.mdiBookOpenVariantOutline),1)]),_:1}),o[0]||(o[0]=E(" documentation",-1)),f(H,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:w(()=>[E(P(t.mdiOpenInNew),1)]),_:1},8,["color"])])}const Yt=x(Ft,[["render",Nt],["__scopeId","data-v-6eb88e3c"]]),Wt=fe({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...Re(),...Se(),...Ie(),...we(),...$e(),...Oe({tag:"footer"}),...be()},"VFooter"),Me=he()({name:"VFooter",props:Wt(),setup(e,o){let{slots:s}=o;const c=ge(),{themeClasses:t}=pe(e),{backgroundColorClasses:a,backgroundColorStyles:n}=Q(()=>e.color),{borderClasses:u}=Ve(e),{elevationClasses:g}=Te(e),{roundedClasses:r}=Ee(e),p=R(32),{resizeRef:m}=Ge(y=>{y.length&&(p.value=y[0].target.clientHeight)}),d=D(()=>e.height==="auto"?p.value:parseInt(e.height,10));return X(()=>e.app,()=>{const y=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:z(()=>"bottom"),layoutSize:d,elementSize:D(()=>e.height==="auto"?void 0:d.value),active:z(()=>e.app),absolute:z(()=>e.absolute)});De(()=>{c.value=y.layoutItemStyles.value})}),ye(()=>f(e.tag,{ref:m,class:Ke(["v-footer",t.value,a.value,u.value,g.value,r.value,e.class]),style:Ze([n.value,e.app?c.value:{height:_e(e.height)},e.style])},s)),{}}}),qt={name:"VersionFooter",data(){return{mdiOpenInNew:me,mdiContentCopy:Je}},computed:{...F(M,{versions:e=>e.versions}),...F(ee,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.semverGreaterThan(this.versions.latest>this.versions.installed)},versionTitle:function(){return this.outdated?`v${this.versions.latest} is available`:"up to date"}},created(){this.loadVersions()},methods:{...Z(M,["loadVersions"]),semverGreaterThan(e,o){try{if(!e||!o)return!1;const s=e.split("."),c=o.split(".");for(const[t,a]of s.entries())if(+a>+c[t])return!0}catch(s){console.debug("compare codex versions",e,">",o,s)}return!1}}},Xt={id:"version"},jt={key:0,id:"latest"};function Gt(e,o,s,c,t,a){return S(),T(Me,{id:"version-footer",title:a.versionTitle},{default:w(()=>[b("div",Xt,"codex v"+P(e.versions.installed),1),a.outdated?(S(),U("div",jt," codex v"+P(e.versions.latest)+" is available ",1)):O("",!0)]),_:1},8,["title"])}const Zt=x(qt,[["render",Gt],["__scopeId","data-v-b77f3bde"]]);function Kt(e){let{rootEl:o,isSticky:s,layoutItemStyles:c}=e;const t=R(!1),a=R(0),n=D(()=>{const r=typeof t.value=="boolean"?"top":t.value;return[s.value?{top:"auto",bottom:"auto",height:void 0}:void 0,t.value?{[r]:_e(a.value)}:{top:c.value.top}]});Ce(()=>{q(s,r=>{r?window.addEventListener("scroll",g,{passive:!0}):window.removeEventListener("scroll",g)},{immediate:!0})}),Pe(()=>{window.removeEventListener("scroll",g)});let u=0;function g(){const r=u>window.scrollY?"up":"down",p=o.value.getBoundingClientRect(),m=parseFloat(c.value.top??0),d=window.scrollY-Math.max(0,a.value-m),y=p.height+Math.max(a.value,m)-window.scrollY-window.innerHeight,_=parseFloat(getComputedStyle(o.value).getPropertyValue("--v-body-scroll-y"))||0;p.height<window.innerHeight-m?(t.value="top",a.value=m):r==="up"&&t.value==="bottom"||r==="down"&&t.value==="top"?(a.value=window.scrollY+p.top-_,t.value=!0):r==="down"&&y<=0?(a.value=0,t.value="bottom"):r==="up"&&d<=0&&(_?t.value!=="top"&&(a.value=-d+_+m,t.value="top"):(a.value=p.top+d,t.value="top")),u=window.scrollY}return{isStuck:t,stickyStyles:n}}const Jt=100,Qt=20;function se(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function le(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let o=0;for(let s=e.length-1;s>0;s--){if(e[s].t===e[s-1].t)continue;const c=se(o),t=(e[s].d-e[s-1].d)/(e[s].t-e[s-1].t);o+=(t-c)*Math.abs(t),s===e.length-1&&(o*=.5)}return se(o)*1e3}function ea(){const e={};function o(t){Array.from(t.changedTouches).forEach(a=>{(e[a.identifier]??(e[a.identifier]=new Qe(Qt))).push([t.timeStamp,a])})}function s(t){Array.from(t.changedTouches).forEach(a=>{delete e[a.identifier]})}function c(t){const a=e[t]?.values().reverse();if(!a)throw new Error(`No samples for touch id ${t}`);const n=a[0],u=[],g=[];for(const r of a){if(n[0]-r[0]>Jt)break;u.push({t:r[0],d:r[1].clientX}),g.push({t:r[0],d:r[1].clientY})}return{x:le(u),y:le(g),get direction(){const{x:r,y:p}=this,[m,d]=[Math.abs(r),Math.abs(p)];return m>d&&r>=0?"right":m>d&&r<=0?"left":d>m&&p>=0?"down":d>m&&p<=0?"up":ta()}}}return{addMovement:o,endTouch:s,getVelocity:c}}function ta(){throw new Error}function aa(e){let{el:o,isActive:s,isTemporary:c,width:t,touchless:a,position:n}=e;Ce(()=>{window.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("touchmove",$,{passive:!1}),window.addEventListener("touchend",j,{passive:!0})}),Pe(()=>{window.removeEventListener("touchstart",A),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",j)});const u=D(()=>["left","right"].includes(n.value)),{addMovement:g,endTouch:r,getVelocity:p}=ea();let m=!1;const d=R(!1),y=R(0),_=R(0);let C;function N(l,i){return(n.value==="left"?l:n.value==="right"?document.documentElement.clientWidth-l:n.value==="top"?l:n.value==="bottom"?document.documentElement.clientHeight-l:L())-(i?t.value:0)}function Y(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const v=n.value==="left"?(l-_.value)/t.value:n.value==="right"?(document.documentElement.clientWidth-l-_.value)/t.value:n.value==="top"?(l-_.value)/t.value:n.value==="bottom"?(document.documentElement.clientHeight-l-_.value)/t.value:L();return i?et(v):v}function A(l){if(a.value)return;const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY,h=25,B=n.value==="left"?i<h:n.value==="right"?i>document.documentElement.clientWidth-h:n.value==="top"?v<h:n.value==="bottom"?v>document.documentElement.clientHeight-h:L(),V=s.value&&(n.value==="left"?i<t.value:n.value==="right"?i>document.documentElement.clientWidth-t.value:n.value==="top"?v<t.value:n.value==="bottom"?v>document.documentElement.clientHeight-t.value:L());(B||V||s.value&&c.value)&&(C=[i,v],_.value=N(u.value?i:v,s.value),y.value=Y(u.value?i:v),m=_.value>-20&&_.value<80,r(l),g(l))}function $(l){const i=l.changedTouches[0].clientX,v=l.changedTouches[0].clientY;if(m){if(!l.cancelable){m=!1;return}const B=Math.abs(i-C[0]),V=Math.abs(v-C[1]);(u.value?B>V&&B>3:V>B&&V>3)?(d.value=!0,m=!1):(u.value?V:B)>3&&(m=!1)}if(!d.value)return;l.preventDefault(),g(l);const h=Y(u.value?i:v,!1);y.value=Math.max(0,Math.min(1,h)),h>1?_.value=N(u.value?i:v,!0):h<0&&(_.value=N(u.value?i:v,!1))}function j(l){if(m=!1,!d.value)return;g(l),d.value=!1;const i=p(l.changedTouches[0].identifier),v=Math.abs(i.x),h=Math.abs(i.y);(u.value?v>h&&v>400:h>v&&h>3)?s.value=i.direction===({left:"right",right:"left",top:"down",bottom:"up"}[n.value]||L()):s.value=y.value>.5}const W=D(()=>d.value?{transform:n.value==="left"?`translateX(calc(-100% + ${y.value*t.value}px))`:n.value==="right"?`translateX(calc(100% - ${y.value*t.value}px))`:n.value==="top"?`translateY(calc(-100% + ${y.value*t.value}px))`:n.value==="bottom"?`translateY(calc(100% - ${y.value*t.value}px))`:L(),transition:"none"}:void 0);return X(d,()=>{const l=o.value?.style.transform??null,i=o.value?.style.transition??null;De(()=>{o.value?.style.setProperty("transform",W.value?.transform||"none"),o.value?.style.setProperty("transition",W.value?.transition||null)}),tt(()=>{o.value?.style.setProperty("transform",l),o.value?.style.setProperty("transition",i)})}),{isDragging:d,dragProgress:y,dragStyles:W}}function L(){throw new Error}const oa=["start","end","left","right","top","bottom"],na=fe({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>oa.includes(e)},sticky:Boolean,...Re(),...Se(),...wt(),...ut({mobile:null}),...Ie(),...we(),...$e(),...Oe({tag:"nav"}),...be()},"VNavigationDrawer"),sa=he()({name:"VNavigationDrawer",props:na(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,o){let{attrs:s,emit:c,slots:t}=o;const{isRtl:a}=at(),{themeClasses:n}=pe(e),{borderClasses:u}=Ve(e),{backgroundColorClasses:g,backgroundColorStyles:r}=Q(()=>e.color),{elevationClasses:p}=Te(e),{displayClasses:m,mobile:d}=ot(e),{roundedClasses:y}=Ee(e),_=dt(),C=nt(e,"modelValue",null,k=>!!k),{ssrBootStyles:N}=kt(),{scopeId:Y}=_t(),A=ge(),$=R(!1),{runOpenDelay:j,runCloseDelay:W}=bt(e,k=>{$.value=k}),l=D(()=>e.rail&&e.expandOnHover&&$.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),i=D(()=>vt(e.location,a.value)),v=z(()=>e.persistent),h=D(()=>!e.permanent&&(d.value||e.temporary)),B=D(()=>e.sticky&&!h.value&&i.value!=="bottom");X(()=>e.expandOnHover&&e.rail!=null,()=>{q($,k=>c("update:rail",!k))}),X(()=>!e.disableResizeWatcher,()=>{q(h,k=>!e.permanent&&ct(()=>C.value=!k))}),X(()=>!e.disableRouteWatcher&&!!_,()=>{q(_.currentRoute,()=>h.value&&(C.value=!1))}),q(()=>e.permanent,k=>{k&&(C.value=!0)}),e.modelValue==null&&!h.value&&(C.value=e.permanent||!d.value);const{isDragging:V,dragProgress:K}=aa({el:A,isActive:C,isTemporary:h,width:l,touchless:z(()=>e.touchless),position:i}),xe=D(()=>{const k=h.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):l.value;return V.value?k*K.value:k}),{layoutItemStyles:te,layoutItemScrimStyles:Ae}=ke({id:e.name,order:D(()=>parseInt(e.order,10)),position:i,layoutSize:xe,elementSize:l,active:st(C),disableTransitions:z(()=>V.value),absolute:D(()=>e.absolute||B.value&&typeof ae.value!="string")}),{isStuck:ae,stickyStyles:Le}=Kt({rootEl:A,isSticky:B,layoutItemStyles:te}),oe=Q(()=>typeof e.scrim=="string"?e.scrim:null),Ue=D(()=>({...V.value?{opacity:K.value*.2,transition:"none"}:void 0,...Ae.value}));return lt({VList:{bgColor:"transparent"}}),ye(()=>{const k=t.image||e.image;return b(rt,null,[f(e.tag,G({ref:A,onMouseenter:j,onMouseleave:W,class:["v-navigation-drawer",`v-navigation-drawer--${i.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":$.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":h.value,"v-navigation-drawer--persistent":v.value,"v-navigation-drawer--active":C.value,"v-navigation-drawer--sticky":B.value},n.value,g.value,u.value,m.value,p.value,y.value,e.class],style:[r.value,te.value,N.value,Le.value,e.style]},Y,s),{default:()=>[k&&b("div",{key:"image",class:"v-navigation-drawer__img"},[t.image?f(mt,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},t.image):f(St,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),t.prepend&&b("div",{class:"v-navigation-drawer__prepend"},[t.prepend?.()]),b("div",{class:"v-navigation-drawer__content"},[t.default?.()]),t.append&&b("div",{class:"v-navigation-drawer__append"},[t.append?.()])]}),f(it,{name:"fade-transition"},{default:()=>[h.value&&(V.value||C.value)&&!!e.scrim&&b("div",G({class:["v-navigation-drawer__scrim",oe.backgroundColorClasses.value],style:[Ue.value,oe.backgroundColorStyles.value],onClick:()=>{v.value||(C.value=!1)}},Y),null)]})])}),{isStuck:ae}}}),la=re(ue(()=>ce(()=>import("./admin-menu-MN0IHt2k.js"),__vite__mapDeps([7,1,2,8,4,5,9,10,11,12,13,14,3,15,16,17,18,19,20])))),ia={name:"SettingsDrawer",components:{AuthMenu:ft,DocsFooter:Yt,OPDSDialog:zt,VersionFooter:Zt},props:{title:{type:String,required:!0}},data(){return{AdminMenu:la}},computed:{...F(ee,["isUserAdmin","isAuthorized"]),...F(M,{isSettingsDrawerOpen:e=>e.isSettingsDrawerOpen}),open:{get(){return this.isSettingsDrawerOpen||!this.isAuthorized},set(e){this.setSettingsDrawerOpen(e)}}},methods:{...Z(M,["setSettingsDrawerOpen"])}},ra={class:"settingsDrawerContainer"},ua={id:"topBlock"},ca={class:"settingsHeader"},da={id:"scrollFooter",class:"footer"};function va(e,o,s,c,t,a){const n=I("AuthMenu"),u=I("OPDSDialog"),g=I("DocsFooter"),r=I("VersionFooter");return S(),T(sa,{modelValue:a.open,"onUpdate:modelValue":o[0]||(o[0]=p=>a.open=p),"disable-route-watcher":"",location:"right",touchless:""},{append:w(()=>[f(Me,{id:"bottomFooter",class:"footer"},{default:w(()=>[f(r)]),_:1})]),default:w(()=>[b("div",ra,[b("div",ua,[b("header",ca,[b("h3",null,P(s.title),1)]),f(J),e.isAuthorized?ie(e.$slots,"panel",{key:0},void 0,!0):O("",!0),e.isAuthorized?(S(),T(J,{key:1})):O("",!0),f(n),e.isUserAdmin?(S(),T(de(t.AdminMenu),{key:2})):O("",!0),f(J)]),b("div",da,[e.isAuthorized?(S(),T(u,{key:0})):O("",!0),f(g)])])]),_:3},8,["modelValue"])}const Sa=x(ia,[["render",va],["__scopeId","data-v-de26da7a"]]);export{wa as S,sa as V,Sa as a,Pt as b};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as E,p as $,u as D,a as n,n as C,d as L,K as R,b as r,aA as Z,aD as we,aU as pe,c as j,f as Ve,aB as ee,h as A,_ as V,E as p,G as v,y as m,H as T,x as c,N as Se,P as Ce,v as g,e as G,r as J,bt as Le,t as Y,bu as xe,bv as Be,m as I,F as te,C as ae,k as Pe,D as Ae,J as Te,w,Y as W,z as Ie,bw as Ee,q as $e,ab as De,bp as Me,L as Re,W as Fe,A as Ne,a6 as Ue,bx as ze,am as We}from"./main-CdKoY_uF.js";import{d as se,C as O,V as He}from"./VDialog-DhWYW70x.js";import{a as Oe}from"./change-password-dialog-C2JNp2wz.js";import{S as Ke,V as qe}from"./VForm-bSlWOF1d.js";import{d as oe,u as je,g as Q,k as X,l as Ge,m as Je,f as Ye,c as H}from"./VSelectionControl-BI__4iTT.js";import{d as K,c as ne,r as Qe,s as Xe,i as Ze,j as et,t as tt,v as at,l as S,D as st,f as ot,k as le,L as nt,E as ie,o as re,F as lt,q as de,V as it}from"./forwardRefs-BotGMO80.js";import{u as rt}from"./ssrBoot-Ehaw9KYw.js";const dt=$({text:String,...R(),...K()},"VToolbarTitle"),ut=E()({name:"VToolbarTitle",props:dt(),setup(e,t){let{slots:o}=t;return D(()=>{const a=!!(o.default||o.text||e.text);return n(e.tag,{class:L(["v-toolbar-title",e.class]),style:C(e.style)},{default:()=>[a&&r("div",{class:"v-toolbar-title__placeholder"},[o.text?o.text():e.text,o.default?.()])]})}),{}}}),ct=[null,"prominent","default","comfortable","compact"],mt=$({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>ct.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...at(),...R(),...tt(),...et(),...K({tag:"header"}),...ee()},"VToolbar"),ft=E()({name:"VToolbar",props:mt(),setup(e,t){let{slots:o}=t;const{backgroundColorClasses:a,backgroundColorStyles:s}=ne(()=>e.color),{borderClasses:i}=Qe(e),{elevationClasses:d}=Xe(e),{roundedClasses:u}=Ze(e),{themeClasses:l}=Z(e),{rtlClasses:b}=we(),f=pe(e.extended===null?!!o.extension?.():e.extended),y=j(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),_=j(()=>f.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Ve({VBtn:{variant:"text"}}),D(()=>{const x=!!(e.title||o.title),B=!!(o.image||e.image),h=o.extension?.();return f.value=e.extended===null?!!h:e.extended,n(e.tag,{class:L(["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},a.value,i.value,d.value,u.value,l.value,b.value,e.class]),style:C([s.value,e.style])},{default:()=>[B&&r("div",{key:"image",class:"v-toolbar__image"},[o.image?n(S,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},o.image):n(se,{key:"image-img",cover:!0,src:e.image},null)]),n(S,{defaults:{VTabs:{height:A(y.value)}}},{default:()=>[r("div",{class:"v-toolbar__content",style:{height:A(y.value)}},[o.prepend&&r("div",{class:"v-toolbar__prepend"},[o.prepend?.()]),x&&n(ut,{key:"title",text:e.title},{text:o.title}),o.default?.(),o.append&&r("div",{class:"v-toolbar__append"},[o.append?.()])])]}),n(S,{defaults:{VTabs:{height:A(_.value)}}},{default:()=>[n(oe,null,{default:()=>[f.value&&r("div",{class:"v-toolbar__extension",style:{height:A(_.value)}},[h])]})]})]})}),{contentHeight:y,extensionHeight:_}}}),gt={name:"AppBanner",computed:{...p(v,["isBanner"]),...p(v,{banner:e=>e.adminFlags.bannerText})}};function ht(e,t,o,a,s,i){return e.isBanner?(c(),m(ft,{key:0,id:"banner",height:"36",density:"compact",flat:"",title:e.banner},null,8,["title"])):T("",!0)}const vt=V(gt,[["render",ht],["__scopeId","data-v-2458e7e5"]]),bt={name:"AdminBrowserLink",components:{CodexListItem:O},data(){return{mdiBookshelf:Ce}},computed:{...p(Se,["lastRoute"])}};function yt(e,t,o,a,s,i){const d=g("CodexListItem");return c(),m(d,{to:e.lastRoute,"prepend-icon":s.mdiBookshelf,title:"Browser"},null,8,["to","prepend-icon"])}const _t=V(bt,[["render",yt]]),kt=$({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Je(),...Ge()},"VSwitch"),wt=E()({name:"VSwitch",inheritAttrs:!1,props:kt(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:o,slots:a}=t;const s=G(e,"indeterminate"),i=G(e,"modelValue"),{loaderClasses:d}=st(e),{isFocused:u,focus:l,blur:b}=je(e),f=J(),y=J(),_=Le&&window.matchMedia("(forced-colors: active)").matches,x=Y(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),B=xe(),h=Y(()=>e.id||`switch-${B}`);function ue(){s.value&&(s.value=!1)}function ce(M){M.stopPropagation(),M.preventDefault(),f.value?.input?.click()}return D(()=>{const[M,me]=Be(o),fe=Q.filterProps(e),ge=X.filterProps(e);return n(Q,I({ref:y,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":s.value},d.value,e.class]},M,fe,{modelValue:i.value,"onUpdate:modelValue":F=>i.value=F,id:h.value,focused:u.value,style:e.style}),{...a,default:F=>{let{id:he,messagesId:ve,isDisabled:be,isReadonly:ye,isValid:q}=F;const N={model:i,isValid:q};return n(X,I({ref:f},ge,{modelValue:i.value,"onUpdate:modelValue":[P=>i.value=P,ue],id:he.value,"aria-describedby":ve.value,type:"checkbox","aria-checked":s.value?"mixed":void 0,disabled:be.value,readonly:ye.value,onFocus:l,onBlur:b},me),{...a,default:P=>{let{backgroundColorClasses:U,backgroundColorStyles:k}=P;return r("div",{class:L(["v-switch__track",_?void 0:U.value]),style:C(k.value),onClick:ce},[a["track-true"]&&r("div",{key:"prepend",class:"v-switch__track-true"},[a["track-true"](N)]),a["track-false"]&&r("div",{key:"append",class:"v-switch__track-false"},[a["track-false"](N)])])},input:P=>{let{inputNode:U,icon:k,backgroundColorClasses:_e,backgroundColorStyles:ke}=P;return r(te,null,[U,r("div",{class:L(["v-switch__thumb",{"v-switch__thumb--filled":k||e.loading},e.inset||_?void 0:_e.value]),style:C(e.inset?void 0:ke.value)},[a.thumb?n(S,{defaults:{VIcon:{icon:k,size:"x-small"}}},{default:()=>[a.thumb({...N,icon:k})]}):n(Ye,null,{default:()=>[e.loading?n(nt,{name:"v-switch",active:!0,color:q.value===!1?void 0:x.value},{default:z=>a.loader?a.loader(z):n(ie,{active:z.isActive,color:z.color,indeterminate:!0,size:"16",width:"2"},null)}):k&&n(le,{key:String(k),icon:k,size:"x-small"},null)]})])])}})}})}),ot({},y)}}),pt={name:"AuthLoginDialog",components:{SubmitFooter:Ke,CodexListItem:O},data(){return{rules:{username:[e=>!!e||"Username is required"],password:[e=>e?this.registerMode&&e.length<this.MIN_PASSWORD_LEN?`Password must be ${this.MIN_PASSWORD_LEN} characters long`:!0:"Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},formModel:{},credentials:{username:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,registerMode:!1,mdiLogin:Te}},computed:{...p(Ae,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success}),...p(v,{adminFlags:e=>e.adminFlags,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),...Pe(v,["showLoginDialog"]),submitButtonLabel(){return this.registerMode?"Register":"Login"},loginLabel(){let e="Login";return this.adminFlags.registration&&(e+=" or Register"),e}},watch:{showLoginDialog(e){e&&(this.loadAdminFlags(),this.$refs.form&&this.$refs.form.reset())},credentials:{handler(){const e=this.$refs.form;e?e.validate().then(({valid:t})=>(this.submitButtonEnabled=t,this.submitButtonEnabled)).catch(console.error):this.submitButtonEnabled=!1},deep:!0}},mounted(){globalThis.addEventListener("keyup",this._keyUpListener)},beforeUnmount(){globalThis.removeEventListener("keyup",this._keyUpListener)},methods:{...ae(v,["loadAdminFlags","login","register"]),doAuth(e){return this[e](this.credentials).then(()=>(this.showLoginDialog=this.formErrors&&this.formErrors.length>0,this.showLoginDialog)).catch(console.error)},submit(){this.$refs.form.validate().then(({valid:t})=>{if(!t)return;const o=this.registerMode?"register":"login";return this.doAuth(o)}).catch(console.error)},_keyUpListener(e){e.stopImmediatePropagation()}}};function Vt(e,t,o,a,s,i){const d=g("CodexListItem"),u=g("SubmitFooter");return c(),m(He,{modelValue:e.showLoginDialog,"onUpdate:modelValue":t[7]||(t[7]=l=>e.showLoginDialog=l),origin:"center-top",transition:"slide-y-transition","max-width":"20em"},{activator:w(({props:l})=>[n(d,I(l,{"prepend-icon":s.mdiLogin,title:i.loginLabel}),null,16,["prepend-icon","title"])]),default:w(()=>[n(qe,{id:"authDialog",ref:"form"},{default:w(()=>[n(H,{modelValue:s.credentials.username,"onUpdate:modelValue":t[0]||(t[0]=l=>s.credentials.username=l),autocomplete:"username",label:"Username",rules:s.rules.username,clearable:"",autofocus:"",onKeydown:t[1]||(t[1]=W(l=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"]),n(H,{ref:"password",modelValue:s.credentials.password,"onUpdate:modelValue":t[2]||(t[2]=l=>s.credentials.password=l),autocomplete:s.registerMode?"new-password":"current-password",label:"Password",rules:s.rules.password,clearable:"",type:"password",onKeydown:t[3]||(t[3]=W(l=>{s.registerMode?e.$refs.passwordConfirm.focus():i.submit()},["enter"]))},null,8,["modelValue","autocomplete","rules"]),n(oe,null,{default:w(()=>[s.registerMode?(c(),m(H,{key:0,ref:"passwordConfirm",modelValue:s.credentials.passwordConfirm,"onUpdate:modelValue":t[4]||(t[4]=l=>s.credentials.passwordConfirm=l),autocomplete:"new-password",label:"Confirm Password",rules:s.rules.passwordConfirm,clearable:"",type:"password",onKeydown:W(i.submit,["enter"])},null,8,["modelValue","rules","onKeydown"])):T("",!0)]),_:1}),e.adminFlags.registration?(c(),m(wt,{key:0,modelValue:s.registerMode,"onUpdate:modelValue":t[5]||(t[5]=l=>s.registerMode=l),label:"Register"},{default:w(()=>t[8]||(t[8]=[Ie(" Register ",-1)])),_:1,__:[8]},8,["modelValue"])):T("",!0),n(u,{verb:s.registerMode?"Register":"Login",table:"",disabled:!s.submitButtonEnabled,onSubmit:i.submit,onCancel:t[6]||(t[6]=l=>e.showLoginDialog=!1)},null,8,["verb","disabled","onSubmit"])]),_:1},512)]),_:1},8,["modelValue"])}const St=V(pt,[["render",Vt],["__scopeId","data-v-f5e28bf6"]]),Ct={name:"AuthMenu",components:{AuthLoginDialog:St,ChangePasswordDialog:Oe,CodexListItem:O},props:{showChangePassword:{type:Boolean,default:!0}},data(){return{mdiLogout:Ee}},computed:{...p(v,{user:e=>e.user}),logoutTitle(){return`Logout ${this.user.username}`}},methods:{...ae(v,["logout"])}},Lt={key:0};function xt(e,t,o,a,s,i){const d=g("CodexListItem"),u=g("ChangePasswordDialog"),l=g("AuthLoginDialog");return e.user?(c(),$e("div",Lt,[n(d,{"prepend-icon":s.mdiLogout,title:i.logoutTitle,onClick:De(e.logout,["stop"])},null,8,["prepend-icon","title","onClick"]),o.showChangePassword?(c(),m(u,{key:0,user:e.user},null,8,["user"])):T("",!0)])):(c(),m(l,{key:1}))}const Bt=V(Ct,[["render",xt]]),Pt={name:"PlaceholderLoading",props:{indeterminate:{type:Boolean,default:!0}}};function At(e,t,o,a,s,i){return c(),m(ie,I({"aria-label":"loading",class:"codexProgressCircular",indeterminate:o.indeterminate},e.$attrs),null,16,["indeterminate"])}const Tt=V(Pt,[["render",At],["__scopeId","data-v-7bb4cf22"]]),It=$({actionText:String,bgColor:String,color:String,icon:Re,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...R(),...de(),...lt({size:void 0}),...ee()},"VEmptyState"),Et=E()({name:"VEmptyState",props:It(),emits:{"click:action":e=>!0},setup(e,t){let{emit:o,slots:a}=t;const{themeClasses:s}=Z(e),{backgroundColorClasses:i,backgroundColorStyles:d}=ne(()=>e.bgColor),{dimensionStyles:u}=re(e),{displayClasses:l}=Me();function b(f){o("click:action",f)}return D(()=>{const f=!!(a.actions||e.actionText),y=!!(a.headline||e.headline),_=!!(a.title||e.title),x=!!(a.text||e.text),B=!!(a.media||e.image||e.icon),h=e.size||(e.image?200:96);return r("div",{class:L(["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},s.value,i.value,l.value,e.class]),style:C([d.value,u.value,e.style])},[B&&r("div",{key:"media",class:"v-empty-state__media"},[a.media?n(S,{key:"media-defaults",defaults:{VImg:{src:e.image,height:h},VIcon:{size:h,icon:e.icon}}},{default:()=>[a.media()]}):r(te,null,[e.image?n(se,{key:"image",src:e.image,height:h},null):e.icon?n(le,{key:"icon",color:e.color,size:h,icon:e.icon},null):void 0])]),y&&r("div",{key:"headline",class:"v-empty-state__headline"},[a.headline?.()??e.headline]),_&&r("div",{key:"title",class:"v-empty-state__title"},[a.title?.()??e.title]),x&&r("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:A(e.textWidth)}},[a.text?.()??e.text]),a.default&&r("div",{key:"content",class:"v-empty-state__content"},[a.default()]),f&&r("div",{key:"actions",class:"v-empty-state__actions"},[n(S,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",href:e.href,text:e.actionText,to:e.to}}},{default:()=>[a.actions?.({props:{onClick:b}})??n(it,{onClick:b},null)]})])])}),{}}}),$t={name:"EmptyState"};function Dt(e,t,o,a,s,i){return c(),m(Et,{class:"empty"},Fe({_:2},[Ne(e.$slots,(d,u)=>({name:u,fn:w(l=>[Ue(e.$slots,u,I({props:d},l),void 0,!0)])}))]),1024)}const Mt=V($t,[["render",Dt],["__scopeId","data-v-c7e33c8c"]]),Rt=$({scrollable:Boolean,...R(),...de(),...K({tag:"main"})},"VMain"),Ft=E()({name:"VMain",props:Rt(),setup(e,t){let{slots:o}=t;const{dimensionStyles:a}=re(e),{mainStyles:s}=ze(),{ssrBootStyles:i}=rt();return D(()=>n(e.tag,{class:L(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:C([s.value,i.value,a.value,e.style])},{default:()=>[e.scrollable?r("div",{class:"v-main__scroller"},[o.default?.()]):o.default?.()]})),{}}}),Nt={name:"UnauthorizedEmptyState",components:{AppBanner:vt,AdminBrowserLink:_t,AuthMenu:Bt,PlaceholderLoading:Tt,EmptyState:Mt},props:{admin:{type:Boolean,default:!1}},data(){return{mdiLockOutline:We}},computed:{...p(v,["isAuthChecked","isAuthorized","isUserAdmin"]),...p(v,{showAdminBrowserLink(e){return this.$router.currentRoute?.value?.name?.startsWith("admin")&&e.adminFlags.nonUsers},text(e){return e.adminFlags.registration?"":"Registration is disabled"}})}},Ut={class:"login"};function zt(e,t,o,a,s,i){const d=g("AppBanner"),u=g("AdminBrowserLink"),l=g("AuthMenu"),b=g("EmptyState"),f=g("PlaceholderLoading");return c(),m(Ft,{id:"unauthorized"},{default:w(()=>[n(d),e.isAuthChecked?(c(),m(b,{key:0,class:"empty",headline:"Unauthorized",text:e.text,icon:s.mdiLockOutline},{default:w(()=>[r("div",Ut,[e.showAdminBrowserLink?(c(),m(u,{key:0})):T("",!0),n(l,{"show-change-password":!1})])]),_:1},8,["text","icon"])):(c(),m(f,{key:1,id:"unauthorizedPlaceholder"}))]),_:1})}const Jt=V(Nt,[["render",zt],["__scopeId","data-v-4d9418eb"]]);export{vt as A,Mt as E,Tt as P,Jt as U,ft as V,ut as a,_t as b,Ft as c,Bt as d};
|
|
Binary file
|
|
Binary file
|