@runeya/runeya 2.0.109 → 2.0.111
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.
- package/agent/index.js +6 -3
- package/agent/index.js.map +1 -1
- package/{chat-L42DO6ND.js → chat-HXONIBWN.js} +3 -3
- package/{chunk-OSKZYKSN.js → chunk-NHKZXNLU.js} +42 -55
- package/chunk-NHKZXNLU.js.map +1 -0
- package/{chunk-HJZPLRNL.js → chunk-V7A622EJ.js} +20 -12
- package/chunk-V7A622EJ.js.map +1 -0
- package/{companion-7EFYZNCO.js → companion-22KIHB4W.js} +2 -2
- package/index.js +7 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/{src-SH5RPUNH.js → src-GRFQ5OCA.js} +10 -5
- package/src-GRFQ5OCA.js.map +1 -0
- package/{tray-NZOXYN5G.js → tray-ZWZIIHXO.js} +15 -2
- package/{tray-NZOXYN5G.js.map → tray-ZWZIIHXO.js.map} +1 -1
- package/web/assets/AgentScalarChatInterface.vue-kLcqfWmQ.js +13 -0
- package/web/assets/AgentTerminalPage-B1dq1kmj.js +1 -0
- package/web/assets/AiChatPage-Bbnw2Qw7.js +1 -0
- package/web/assets/AppLayout-eqJ4FAvL.js +1 -0
- package/web/assets/AuditPage-SUUB7Jms.js +1 -0
- package/web/assets/CloudAccountPage-BAl7VOtI.js +1 -0
- package/web/assets/CloudAccountPage-CUJAVszk.js +1 -0
- package/web/assets/CloudMessagingPage-BqNDMg54.js +2 -0
- package/web/assets/DashboardPage-BQLIJfUE.js +164 -0
- package/web/assets/DashboardPage-DFaiJ4c-.css +1 -0
- package/web/assets/DirectoryPickerDialog-By3rb2Fh.js +1 -0
- package/web/assets/{EditorIcon-CUl1IPtA.js → EditorIcon-CVfLr8Ap.js} +2 -2
- package/web/assets/EnvironmentForm-BYLz936T.css +1 -0
- package/web/assets/EnvironmentForm-C1PMOPnQ.js +108 -0
- package/web/assets/EnvironmentFormPage-BdSnJP_4.js +1 -0
- package/web/assets/EnvironmentListPage-CO25GNLP.js +1 -0
- package/web/assets/KanbanBoardPage-COrdWZO0.js +4 -0
- package/web/assets/KanbanListPage-C9dx7fly.js +1 -0
- package/web/assets/LaunchProjectPage-DS1mbMOh.js +1 -0
- package/web/assets/LaunchServicesPage-B7NdGdSB.js +1 -0
- package/web/assets/LogViewer-CUa7BeBD.js +3 -0
- package/web/assets/OrgKeyPrompt-CZXOo00s.js +1 -0
- package/web/assets/{ProcessControls-ahxc7B1z.js → ProcessControls-Cz5ZB6Wr.js} +1 -1
- package/web/assets/ProcessDetailPage-Cj7LsCv1.js +1 -0
- package/web/assets/{ProcessMetrics-B_nBUqkV.js → ProcessMetrics-DBd9GfXs.js} +2 -2
- package/web/assets/RandomJobTestPage-_PSlDGUw.js +2 -0
- package/web/assets/ScenarioEditorPage-BTe2zRUP.js +14 -0
- package/web/assets/SendToChatDialog-DoRRNmwL.js +1 -0
- package/web/assets/ServiceControlsBar-BdR9jsIL.js +1 -0
- package/web/assets/{ServiceDetailPage-DpgtCJPg.css → ServiceDetailPage-BcFOlsU9.css} +1 -1
- package/web/assets/ServiceDetailPage-qQNwFB1A.js +2 -0
- package/web/assets/ServiceFormPage-DubRCzyE.js +1 -0
- package/web/assets/SettingsPage-Br5RBg5u.js +2063 -0
- package/web/assets/UnlockPage-BT70o21t.js +1 -0
- package/web/assets/VaultMigrationPage-CMGQM5Yz.js +1 -0
- package/web/assets/VersionBadge-CzSHg1yg.js +1 -0
- package/web/assets/WikiPage-BQC-K3_F.js +1 -0
- package/web/assets/WikiView-BiRdU7UF.js +1 -0
- package/web/assets/add-scalar-classes-6WKMp6mM.js +387 -0
- package/web/assets/autocomplete-CLco1htx.js +308 -0
- package/web/assets/{basic-shape-diamond.svg-CSlrccn0.js → basic-shape-diamond.svg-CIFDtOMl.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-D546ruDT.js → basic-shape-hexagon.svg-BI6X-Ff-.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-C1wzRQtf.js → basic-shape-primary-circle-ellipse-round.svg-BfSkERX0.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-CWGZhIsr.js → basic-shape-primary-square-rectangle.svg-CggkF7nV.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-NhM_gs9v.js → basic-shape-shield.svg-DOLl7FRg.js} +1 -1
- package/web/assets/{browser-CgZhj2lb.js → browser-D6wWEfgA.js} +1 -1
- package/web/assets/{browser-D3zm8rqv.js → browser-YyX2T_bp.js} +1 -1
- package/web/assets/card-CiCJjR0t.js +32 -0
- package/web/assets/{checkbox-D53PfEW8.js → checkbox-CEPk5KJ6.js} +3 -3
- package/web/assets/{chip-DIIyqeB6.js → chip-C5vhJ12q.js} +2 -2
- package/web/assets/client-5AKYiHpd.js +24 -0
- package/web/assets/cloud-chat.store-O3CWq04y.js +1 -0
- package/web/assets/cloud-client-BYC_oHML.js +1 -0
- package/web/assets/cloud-session-BnBZG9hH.js +2 -0
- package/web/assets/cloud-session-CbJSALDl.js +1 -0
- package/web/assets/column-CZtxhpNk.js +907 -0
- package/web/assets/{computer-device-desktop-monitor.svg-CU1TH87U.js → computer-device-desktop-monitor.svg-C7V0Meiq.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-GjG-mCjt.js → computer-device-desktop.svg-CR2D97ea.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-bOXxoV3N.js → computer-device-laptop.svg-CsWo6R7p.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-BKAQtXBw.js → computer-device-mobile-phone-android-samsung-back.svg-Ay1Glo0_.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-DuEgqDs0.js → computer-device-mobile-phone-android-samsung.svg-DEE0eIxE.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-47gd3jF9.js → computer-device-mobile-phone-iphone-x-back.svg-R0LVOTgb.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-CjTyt_7H.js → computer-device-mobile-phone-iphone-x.svg-CLbWcFYC.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-DhUxcqM-.js → computer-device-mobile-tablet-touch.svg-Fv2fmilO.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-CrDFKzVZ.js → computer-device-mobile-tablet.svg-C5Z91Gds.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-Camx7ESr.js → computer-device-network-ethernet-cat6.svg-CDgcWWcM.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-BCTngCj3.js → computer-device-network-lan-www.svg-BranCB1m.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-gr2ZwIyG.js → computer-device-network-wifi-connection.svg-CWJhdMp8.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-BTTVOR89.js → computer-device-network-wifi-router.svg-nxOhW4GH.js} +1 -1
- package/web/assets/{cssMode-6O-nyPw0.js → cssMode-fzxNmlTr.js} +1 -1
- package/web/assets/{divider-CvjX700b.js → divider-CRQWe80J.js} +2 -2
- package/web/assets/{docx-preview-WFENW7jt.js → docx-preview-4WnloH19.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-vxfYRuIi.js → ecology-science-erlenmeyer-flask.svg-DwRGhvS9.js} +1 -1
- package/web/assets/{fieldset-BqupPuqR.js → fieldset-DRHqc4Di.js} +2 -2
- package/web/assets/{freemarker2-Ci9lamz_.js → freemarker2-CqVE0V1J.js} +1 -1
- package/web/assets/{handlebars-D3EPIxYN.js → handlebars-Clj_IFK2.js} +1 -1
- package/web/assets/{html-DL-vDMyX.js → html-O6rqd-f5.js} +1 -1
- package/web/assets/{htmlMode-C2w5defM.js → htmlMode-Cas0v8BI.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-HRrh8pka.js → image-flash-lightning.svg-DZTnHNxO.js} +1 -1
- package/web/assets/{image-picture-flower.svg-C079ghaG.js → image-picture-flower.svg-CLAFqWgX.js} +1 -1
- package/web/assets/{index-Cm1wg36J.js → index-BRka2A3M.js} +257 -257
- package/web/assets/{interface-alert-exclamation-diamond.svg-Bcc8Weh5.js → interface-alert-exclamation-diamond.svg-CHKNe6Ly.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-Bh98-iij.js → interface-alert-exclamation-triangle-warning.svg-KukKoZI3.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-SoWkrsZO.js → interface-alert-information-circle.svg-DEEne165.js} +1 -1
- package/web/assets/{interface-award-crown.svg-CgbNBSQL.js → interface-award-crown.svg-DzuVqTjZ.js} +1 -1
- package/web/assets/{interface-bookmark.svg-CXJKp9-6.js → interface-bookmark-tag.svg-DKCoFeA1.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-DtlpNX0d.js → interface-bookmark.svg-CkM2bncH.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-Ba_ke387.js → interface-calendar-date-one.svg-B7QDcbvG.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-DPUEnf2K.js → interface-content-book-open-pages.svg-CxHFf7oc.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-dsCMof_u.js → interface-content-book-page.svg-D7kUz43i.js} +1 -1
- package/web/assets/{interface-content-file.svg-CsPPGADI.js → interface-content-file.svg-BjAhnfm3.js} +1 -1
- package/web/assets/interface-content-folder.svg-D1hGwbjh.js +1 -0
- package/web/assets/{interface-content-folder.svg-BTc1SZRb.js → interface-content-folder.svg-U2bh12Kt.js} +1 -1
- package/web/assets/{interface-copy-clipboard.svg-C0dUHWMR.js → interface-copy-clipboard.svg-CK0bePnf.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-DkC6-wuV.js → interface-edit-attachment.svg-CdE5UImz.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-C4XPxcBj.js → interface-edit-binocular.svg-Ct9dnAMI.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-BSWsgFZj.js → interface-edit-magic-wand.svg-g9dFY7m1.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-bUo5fKn1.js → interface-edit-tool-paint-roller.svg-DTvNVNNZ.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-BOwTG4ej.js → interface-edit-tool-pencil.svg-D-70KgO_.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-BxBrHBnL.js → interface-favorite-award.svg-BXVk_FD3.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-CyqfpD6l.js → interface-favorite-flag.svg-BqXiKZDa.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-COpeCJ2V.js → interface-favorite-heart.svg-CIDJN7WT.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-C-NeEbqH.js → interface-favorite-star.svg-1JrliXPT.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-Dl4L3va4.js → interface-favorite-stars-sparkles.svg-Bq11oQGk.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-QDCEhPT4.js → interface-hierarchy-flowchart.svg-BgnJFVrF.js} +1 -1
- package/web/assets/{interface-home-house.svg-BxJXntjc.js → interface-home-house.svg-Dsn1Ycmv.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-BTxw0q4O.js → interface-hyperlink.svg-B0YjlNmH.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-CNUnsUrn.js → interface-lighting-brightness.svg-DDw_jWSG.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-BgURW8Cd.js → interface-lock-closed.svg-zSGzFdQB.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-DJVvMx6T.js → interface-lock-open-unlock.svg-B5nqR3Ms.js} +1 -1
- package/web/assets/{interface-login-key.svg-DKU1ANGA.js → interface-login-key.svg-Bg0MqRL-.js} +1 -1
- package/web/assets/{interface-search.svg-DWd7U6M4.js → interface-search.svg-zQBkPG_R.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-Cv1liH-N.js → interface-setting-cog.svg-lbmhkm0b.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-DiGwsYbN.js → interface-share-megaphone-bullhorn.svg-DZsgE1mY.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-BD9Kr2Tb.js → interface-share-rocket.svg-DFB9VHQw.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-ioA9f-1F.js → interface-share-satellite.svg-C33KL5KZ.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-g0JuuD8T.js → interface-share-space-ship.svg-B8xbJsKX.js} +1 -1
- package/web/assets/{interface-share.svg-Vcds0wQD.js → interface-share.svg-Dlmx8DHE.js} +1 -1
- package/web/assets/{interface-signal-square.svg-F9RmwOj2.js → interface-signal-square.svg-Dp2kD61W.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-VH9h0rJO.js → interface-time-clock-circle.svg-B1EEPVe3.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-Brg8fk3D.js → interface-time-hour-glass.svg-CmQmR21F.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-C3dClqT0.js → interface-users-multiple.svg-BwT1aOcB.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-C3vbc--A.js → interface-weather-moon.svg-DuWXidjx.js} +1 -1
- package/web/assets/{javascript-7DyMJQOL.js → javascript-CPapDvOA.js} +1 -1
- package/web/assets/{jsonMode-BSNjflOp.js → jsonMode-DTpByWjv.js} +2 -2
- package/web/assets/{liquid-3gNUTU6Z.js → liquid-81JDK-gs.js} +1 -1
- package/web/assets/{lspLanguageFeatures-DNW-cjCh.js → lspLanguageFeatures-BdkKWnkH.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-H-59s7eK.js → mail-chat-bubble-square.svg-DsIfD4ZB.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-BvNADULx.js → mail-send-email-paper-airplane.svg-CXVZDyto.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-BK0wDcVf.js → mail-send-envelope.svg-CgAhxMEH.js} +1 -1
- package/web/assets/{mdx-B8qSZaPu.js → mdx-jh6cDTAM.js} +1 -1
- package/web/assets/{minus-BHL1pXRJ.js → minus-CaGGQMDe.js} +2 -2
- package/web/assets/modal-BsI9WiH3.js +5 -0
- package/web/assets/modal-DsLNzKny.js +1 -0
- package/web/assets/{money-cashier-receipt.svg-BF4sG5JK.js → money-cashier-receipt.svg-B3oRus0I.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-Cs1ZjXPc.js → money-currency-dollar-pay.svg-BAGx42Dc.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-oTmFMKdo.js → money-graph-arrow-increase.svg-BrI_HBxB.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-DpxzHhkO.js → money-graph-bar-chart-increase.svg-DWLVMdFl.js} +1 -1
- package/web/assets/multiselect-BM4M-nkW.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-CRRVoplk.js → nature-ecology-leaf.svg-C4n72Q5s.js} +1 -1
- package/web/assets/{password-B33cxUy5.js → password-_N82obVe.js} +4 -4
- package/web/assets/{phone-telephone.svg-CYZpfd7d.js → phone-telephone.svg-CgwdCkq5.js} +1 -1
- package/web/assets/{plus-3dK18ius.js → plus-BSWeBaiQ.js} +6 -6
- package/web/assets/process.store-BT0rTymx.js +1 -0
- package/web/assets/{programming-bug.svg-Bblmkarj.js → programming-bug.svg-iwuWn7P9.js} +1 -1
- package/web/assets/{programming-cloud.svg-DIOGUGeq.js → programming-cloud.svg-C9w1zqhs.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-BqysJvkY.js → programming-computer-database-server.svg-Fj_3My-T.js} +1 -1
- package/web/assets/{programming-computer-database.svg-BDU_3Gvh.js → programming-computer-database.svg-B3dKqJbm.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-CS1CpcqV.js → programming-module-four-layout.svg-BU3-jVxw.js} +1 -1
- package/web/assets/{programming-module-three.svg-Dg7IA-LD.js → programming-module-three.svg-BnfrmjMt.js} +1 -1
- package/web/assets/{programming-module.svg-BpyHS8dA.js → programming-module.svg-BELo8c5Q.js} +1 -1
- package/web/assets/{programming-script-code.svg-C7cvlhiY.js → programming-script-code.svg-OiDJir-4.js} +1 -1
- package/web/assets/project-launch.store-DjaAuJRY.js +1 -0
- package/web/assets/project.store-dAissaS8.js +1 -0
- package/web/assets/{python-BUceWa2n.js → python-BodvY8hX.js} +1 -1
- package/web/assets/{razor-D5DfJBZK.js → razor-BQptkVvP.js} +1 -1
- package/web/assets/router-B932r4Ut.js +1 -0
- package/web/assets/settings-scope-BTtxXzYM.js +1 -0
- package/web/assets/settings.store-TyxaMEjL.js +1 -0
- package/web/assets/{shopping-cart.svg-CD7AmRRj.js → shopping-cart.svg-C5RHK9V_.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-BrDshW56.js → shopping-gift-present.svg-ZWprHSwq.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-DTQKQ4lh.js → shopping-shipping-box-parcel-package.svg-D1cvBLGN.js} +1 -1
- package/web/assets/src-BmgD0h17.js +572 -0
- package/web/assets/{src-BhnteF94.js → src-CXIP4xoh.js} +14 -14
- package/web/assets/src-DN2Ld0JH.js +1 -0
- package/web/assets/src-DT1d6_ti.css +1 -0
- package/web/assets/{tabpanel-2aAgCtis.js → tabpanel-D7VMDnm0.js} +3 -3
- package/web/assets/{tag-new-circle.svg-D7E7WEcq.js → tag-new-circle.svg-D7fC9IDO.js} +1 -1
- package/web/assets/theme-CWVvkqb0.js +1 -0
- package/web/assets/{toggleswitch-Dr6MF0VL.js → toggleswitch-B9rKrBrI.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-CjflVjBB.js → travel-map-earth-globe.svg-C_t82Y6x.js} +1 -1
- package/web/assets/trpc-rqY3-80i.js +1 -0
- package/web/assets/{tsMode-FsuSDXuj.js → tsMode-DkI7CAzv.js} +5 -5
- package/web/assets/{typescript-DgH1p2T8.js → typescript-BAHKIodv.js} +1 -1
- package/web/assets/useAiChatDrawer-OqNvg9T4.js +1 -0
- package/web/assets/{useCloudOrg-DJ4hR2Ta.js → useCloudOrg-CtvvqAYj.js} +1 -1
- package/web/assets/{VariablesTable-BZb7hcBh.css → useEnvVarAutocomplete-DFNddwqp.css} +1 -1
- package/web/assets/useEnvVarAutocomplete-cvDsVwm1.js +1 -0
- package/web/assets/useProjectCatalog-C8IJb-lg.js +1 -0
- package/web/assets/{useProjectCloudOrg-BCMidyRD.js → useProjectCloudOrg-BFOU-_dh.js} +1 -1
- package/web/assets/useServiceUrlHost-sIQNdes_.js +1 -0
- package/web/assets/{xml-fu6eSvQE.js → xml-CId0_y0l.js} +1 -1
- package/web/assets/{yaml-GHvnVG3H.js → yaml-Bc8mj3ID.js} +1 -1
- package/web/index.html +1 -1
- package/chunk-HJZPLRNL.js.map +0 -1
- package/chunk-OSKZYKSN.js.map +0 -1
- package/src-SH5RPUNH.js.map +0 -1
- package/web/assets/AgentScalarChatInterface.vue-qaU3nHHm.js +0 -13
- package/web/assets/AgentTerminalPage-Bg4pvmQC.js +0 -1
- package/web/assets/AiChatPage-Bj_UMaA8.js +0 -1
- package/web/assets/AppLayout-CCY6mnwP.js +0 -1
- package/web/assets/AuditPage-Cp6yZONE.js +0 -1
- package/web/assets/CloudAccountPage-BSxAXLF7.js +0 -1
- package/web/assets/CloudAccountPage-DTzGJFGT.js +0 -1
- package/web/assets/CloudMessagingPage-B1cPSVn3.js +0 -2
- package/web/assets/DashboardPage-DTegXvtf.css +0 -1
- package/web/assets/DashboardPage-DaG08KC3.js +0 -164
- package/web/assets/DirectoryPickerDialog-DRZg3i24.js +0 -1
- package/web/assets/EnvironmentForm-C2IKkQwL.js +0 -108
- package/web/assets/EnvironmentForm-DVMc303P.css +0 -1
- package/web/assets/EnvironmentFormPage-XxSXk54d.js +0 -1
- package/web/assets/EnvironmentListPage-CNJCuT_t.js +0 -1
- package/web/assets/KanbanBoardPage-CDJ9tEGG.js +0 -4
- package/web/assets/KanbanListPage-BSm19l6D.js +0 -1
- package/web/assets/LaunchProjectPage-1zl3ZGiA.js +0 -1
- package/web/assets/LaunchServicesPage-C7Y-scEf.js +0 -1
- package/web/assets/LogViewer-CTDxuo3U.js +0 -3
- package/web/assets/OrgKeyPrompt-_ASAKfDv.js +0 -1
- package/web/assets/ProcessDetailPage-CSWHQP1r.js +0 -1
- package/web/assets/RandomJobTestPage-ChumhCVE.js +0 -2
- package/web/assets/ScenarioEditorPage-BA0-Th_S.js +0 -14
- package/web/assets/SendToChatDialog-BTqvASzi.js +0 -1
- package/web/assets/ServiceControlsBar-B6fc6BtP.js +0 -1
- package/web/assets/ServiceDetailPage-BWki4F8y.js +0 -2
- package/web/assets/ServiceFormPage-A_tMtPha.js +0 -1
- package/web/assets/SettingsPage-CYrhRc9t.js +0 -2063
- package/web/assets/UnlockPage-CMPppHPb.js +0 -1
- package/web/assets/VariablesTable-D3HwVHm7.js +0 -1
- package/web/assets/VaultMigrationPage-CAkYThy0.js +0 -1
- package/web/assets/VersionBadge-JMYsYI__.js +0 -1
- package/web/assets/WikiPage-DMQsnN55.js +0 -1
- package/web/assets/WikiView-DT1brFpI.js +0 -1
- package/web/assets/add-scalar-classes-DqlxobXk.js +0 -387
- package/web/assets/autocomplete-DW0fiLh0.js +0 -308
- package/web/assets/card-B7q35Vau.js +0 -32
- package/web/assets/client-DH-rHV-I.js +0 -24
- package/web/assets/cloud-chat.store-wcKYueBH.js +0 -1
- package/web/assets/cloud-client-BvZabjfE.js +0 -1
- package/web/assets/cloud-session-68W_giD8.js +0 -2
- package/web/assets/cloud-session-Cr1sJAeh.js +0 -1
- package/web/assets/column-CipMB2ts.js +0 -907
- package/web/assets/interface-content-folder.svg-WIfxYmSH.js +0 -1
- package/web/assets/modal-C9--SUJG.js +0 -5
- package/web/assets/modal-C_DXoFdI.js +0 -1
- package/web/assets/multiselect-DEd1a7qa.js +0 -251
- package/web/assets/process.store-BP2Yx0AK.js +0 -1
- package/web/assets/project-launch.store-DTqJyGiE.js +0 -1
- package/web/assets/project.store-BYavTjQR.js +0 -1
- package/web/assets/router-Da2qrUmJ.js +0 -1
- package/web/assets/settings-scope-DNgjXrG7.js +0 -1
- package/web/assets/settings.store-YVk5HeIJ.js +0 -1
- package/web/assets/src-4WNjC7ZT.js +0 -572
- package/web/assets/src-Bsnnsed7.js +0 -1
- package/web/assets/src-CkiFdVCe.css +0 -1
- package/web/assets/theme-Vor3l0vc.js +0 -1
- package/web/assets/trpc-DebjUoP4.js +0 -1
- package/web/assets/useAiChatDrawer-C6ovLKaw.js +0 -1
- package/web/assets/useProjectCatalog-CPeVWCNl.js +0 -1
- /package/{chat-L42DO6ND.js.map → chat-HXONIBWN.js.map} +0 -0
- /package/{companion-7EFYZNCO.js.map → companion-22KIHB4W.js.map} +0 -0
- /package/web/assets/{abap-B8g_2xYy.js → abap-DblxFMgX.js} +0 -0
- /package/web/assets/{apex-Bm8w4T5A.js → apex-C_fmPlQy.js} +0 -0
- /package/web/assets/{azcli-BqdUW6F8.js → azcli-D73HZyav.js} +0 -0
- /package/web/assets/{bat-Bngf0lQU.js → bat-Br4Biw6V.js} +0 -0
- /package/web/assets/{bicep-DzO554JS.js → bicep-Cwg6_V-m.js} +0 -0
- /package/web/assets/{browser-BJX5ZrVN.js → browser-D6yPejPt.js} +0 -0
- /package/web/assets/{cameligo-Bcy3ohdb.js → cameligo-Dq6Izwzi.js} +0 -0
- /package/web/assets/{clojure-CZbiqkDV.js → clojure-U0exYVUx.js} +0 -0
- /package/web/assets/{coffee-CDuhyV-7.js → coffee-mPGPozSE.js} +0 -0
- /package/web/assets/{cpp-BklV8f4x.js → cpp-lpr_PQMA.js} +0 -0
- /package/web/assets/{csharp-BelR_XiC.js → csharp-saQQwY3s.js} +0 -0
- /package/web/assets/{csp-DUjeBS2K.js → csp-CcDpUBZN.js} +0 -0
- /package/web/assets/{css-CvbYbEko.js → css-D6QFYBbL.js} +0 -0
- /package/web/assets/{cypher-Dwrbk-SP.js → cypher-B_4KCq-w.js} +0 -0
- /package/web/assets/{dart-BW1E5h9O.js → dart-CgLuovz1.js} +0 -0
- /package/web/assets/{dockerfile-B41ilpF9.js → dockerfile-DObNIc52.js} +0 -0
- /package/web/assets/{ecl-BZE6Vxna.js → ecl-BpCwjSsH.js} +0 -0
- /package/web/assets/{elixir-CtYg0bLh.js → elixir-CebZWKus.js} +0 -0
- /package/web/assets/{flow9-Sgvy48_I.js → flow9-DhoDs9JD.js} +0 -0
- /package/web/assets/{fsharp-BzAfXfKg.js → fsharp-YDWqgr0W.js} +0 -0
- /package/web/assets/{go-D7oonABu.js → go-CaPX4mu5.js} +0 -0
- /package/web/assets/{graphql-BEN-qkl0.js → graphql-DOSo46Ed.js} +0 -0
- /package/web/assets/{hcl-CE0OhwCq.js → hcl-nSYpx4qj.js} +0 -0
- /package/web/assets/{ini-CCLtcvjA.js → ini-Ca22qQIM.js} +0 -0
- /package/web/assets/{java-Bao8w_gp.js → java-KrQduvTo.js} +0 -0
- /package/web/assets/{julia-Dr0hFYrl.js → julia-Bb2MDsY_.js} +0 -0
- /package/web/assets/{kotlin-Cbfu8lcM.js → kotlin-DB7e82Vg.js} +0 -0
- /package/web/assets/{less-BU4gEpXr.js → less-K5fiQqgY.js} +0 -0
- /package/web/assets/{lexon-GpBGGdTS.js → lexon-Do9EcqkA.js} +0 -0
- /package/web/assets/{lua-DIPKk37y.js → lua-DU9Dpzvs.js} +0 -0
- /package/web/assets/{m3-CSOypKGf.js → m3-pF6PmPkL.js} +0 -0
- /package/web/assets/{markdown-VDqAgkyM.js → markdown-BNRSTD3D.js} +0 -0
- /package/web/assets/{mips-BJWI6dX7.js → mips-OIXxWbNl.js} +0 -0
- /package/web/assets/{msdax-BLpuE5Dc.js → msdax-Blzk7oHr.js} +0 -0
- /package/web/assets/{mysql-ZsxiEUoY.js → mysql-CISO3r5e.js} +0 -0
- /package/web/assets/{objective-c-DcQa1iPc.js → objective-c-CfnC_OAj.js} +0 -0
- /package/web/assets/{pascal-u-hmXdyn.js → pascal-BUF-IB2S.js} +0 -0
- /package/web/assets/{pascaligo-DqbP-1C6.js → pascaligo-BKce2a7P.js} +0 -0
- /package/web/assets/{perl-CUeQpRkH.js → perl-BSNQJqG3.js} +0 -0
- /package/web/assets/{pgsql-CQ7FhAFN.js → pgsql-B6gnZ9Pz.js} +0 -0
- /package/web/assets/{php-BEf_fu3E.js → php-D3DRjlE-.js} +0 -0
- /package/web/assets/{pla-CXNNbT0w.js → pla-DMkpEwWz.js} +0 -0
- /package/web/assets/{postiats-CIXLZwPb.js → postiats-CS9vJAK8.js} +0 -0
- /package/web/assets/{powerquery-DnGPASFA.js → powerquery-5wdkUpGP.js} +0 -0
- /package/web/assets/{powershell-1Y1kqIZS.js → powershell-CFy-OLZK.js} +0 -0
- /package/web/assets/{protobuf-Cfo9haoG.js → protobuf-BexdMU0z.js} +0 -0
- /package/web/assets/{pug-BujEZqmy.js → pug-D7XxQLO5.js} +0 -0
- /package/web/assets/{qsharp-BL9AqNGD.js → qsharp-Cbf2FpNP.js} +0 -0
- /package/web/assets/{r-D0dhpGOM.js → r-DF7k9FbU.js} +0 -0
- /package/web/assets/{redis-BMLwD7W9.js → redis-CsS7YEaP.js} +0 -0
- /package/web/assets/{redshift-CkHh73og.js → redshift-ELXdujA0.js} +0 -0
- /package/web/assets/{restructuredtext-DZ-LF65W.js → restructuredtext-xoFIa5lj.js} +0 -0
- /package/web/assets/{ruby-UzPHTzc9.js → ruby-BqZs-MXO.js} +0 -0
- /package/web/assets/{rust-ja9NGnXZ.js → rust-Bg6ZO_et.js} +0 -0
- /package/web/assets/{sb-BNdOJbMY.js → sb-DiB12F6v.js} +0 -0
- /package/web/assets/{scala-LlhkyN6l.js → scala-DElpnKpP.js} +0 -0
- /package/web/assets/{scheme-BAj99YIn.js → scheme-1ahRBKOq.js} +0 -0
- /package/web/assets/{scss-chS-xxB3.js → scss-DEMPy3QV.js} +0 -0
- /package/web/assets/{shell-CcH7eYIc.js → shell-DPy86lBu.js} +0 -0
- /package/web/assets/{solidity-cVvnqX-K.js → solidity-BJ26fCkf.js} +0 -0
- /package/web/assets/{sophia-BBT-EdFw.js → sophia-BisqpnJK.js} +0 -0
- /package/web/assets/{sparql-DGEqOrB6.js → sparql-C7Lhhim4.js} +0 -0
- /package/web/assets/{sql-CcTErTxM.js → sql-BXVElqbr.js} +0 -0
- /package/web/assets/{st-Bjw-B4mN.js → st-C3Kk-cML.js} +0 -0
- /package/web/assets/{swift-Bid-7bBd.js → swift-D8IWJydR.js} +0 -0
- /package/web/assets/{systemverilog-CXju7Nd-.js → systemverilog-524SrI2Q.js} +0 -0
- /package/web/assets/{tcl-D-Dw7JFz.js → tcl-MYNTx-d-.js} +0 -0
- /package/web/assets/{twig-BIPbzEWT.js → twig-BAVZN0tW.js} +0 -0
- /package/web/assets/{typespec-UJSutGCV.js → typespec-BhgMHLJQ.js} +0 -0
- /package/web/assets/{uuid--pMuF47W.js → uuid-Cro0aJm3.js} +0 -0
- /package/web/assets/{vb-oyG_LJw0.js → vb-BLauMmY8.js} +0 -0
- /package/web/assets/{w3c-keyname-DtJs0qQm.js → w3c-keyname-tfhvQ9CV.js} +0 -0
- /package/web/assets/{wgsl-DXZ6ljB6.js → wgsl-ybvhdvmz.js} +0 -0
|
@@ -1,572 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-WFENW7jt.js","assets/index-Cm1wg36J.js","assets/index-DWNL2YPM.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$r as e,Ai as t,Ar as n,Ba as r,Bn as i,Ci as a,Cr as o,Da as s,Di as c,Ei as l,Fi as u,Gn as d,Hn as f,Jr as p,Ki as m,Kr as h,Li as g,Lr as _,Mr as v,Oa as y,Oi as b,Pi as x,Pn as S,Pr as C,Ra as w,Rn as T,Rr as ee,Sa as E,Sr as D,Ta as O,Ur as k,Vr as te,X as ne,Xi as re,Y as ie,Ya as A,Yn as j,Yr as M,Zn as N,_a as P,_n as ae,_r as F,ar as oe,at as se,bi as I,ca as ce,cn as le,dn as ue,dr as de,ea as fe,ei as pe,fn as me,gn as he,gr as ge,hn as _e,ia as L,ii as ve,it as ye,ki as R,la as be,ln as xe,mn as Se,nr as Ce,oa as z,on as we,qi as Te,qn as Ee,sa as B,si as De,ua as V,ui as Oe,vn as ke,xa as H,xi as U,yi as Ae,yr as je,zn as Me,zr as Ne}from"./index-Cm1wg36J.js";import{t as Pe}from"./checkbox-D53PfEW8.js";import{t as Fe}from"./card-B7q35Vau.js";import{t as Ie}from"./multiselect-DEd1a7qa.js";import{a as Le,i as Re,n as ze,o as Be,r as Ve,t as He}from"./tabpanel-2aAgCtis.js";import{t as Ue}from"./autocomplete-DW0fiLh0.js";import{t as We}from"./src-BhnteF94.js";var Ge=de.extend({name:`slider`,style:`
|
|
3
|
-
.p-slider {
|
|
4
|
-
display: block;
|
|
5
|
-
position: relative;
|
|
6
|
-
background: dt('slider.track.background');
|
|
7
|
-
border-radius: dt('slider.track.border.radius');
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.p-slider-handle {
|
|
11
|
-
cursor: grab;
|
|
12
|
-
touch-action: none;
|
|
13
|
-
user-select: none;
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
height: dt('slider.handle.height');
|
|
18
|
-
width: dt('slider.handle.width');
|
|
19
|
-
background: dt('slider.handle.background');
|
|
20
|
-
border-radius: dt('slider.handle.border.radius');
|
|
21
|
-
transition:
|
|
22
|
-
background dt('slider.transition.duration'),
|
|
23
|
-
color dt('slider.transition.duration'),
|
|
24
|
-
border-color dt('slider.transition.duration'),
|
|
25
|
-
box-shadow dt('slider.transition.duration'),
|
|
26
|
-
outline-color dt('slider.transition.duration');
|
|
27
|
-
outline-color: transparent;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-slider-handle::before {
|
|
31
|
-
content: '';
|
|
32
|
-
width: dt('slider.handle.content.width');
|
|
33
|
-
height: dt('slider.handle.content.height');
|
|
34
|
-
display: block;
|
|
35
|
-
background: dt('slider.handle.content.background');
|
|
36
|
-
border-radius: dt('slider.handle.content.border.radius');
|
|
37
|
-
box-shadow: dt('slider.handle.content.shadow');
|
|
38
|
-
transition: background dt('slider.transition.duration');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.p-slider:not(.p-disabled) .p-slider-handle:hover {
|
|
42
|
-
background: dt('slider.handle.hover.background');
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.p-slider:not(.p-disabled) .p-slider-handle:hover::before {
|
|
46
|
-
background: dt('slider.handle.content.hover.background');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.p-slider-handle:focus-visible {
|
|
50
|
-
box-shadow: dt('slider.handle.focus.ring.shadow');
|
|
51
|
-
outline: dt('slider.handle.focus.ring.width') dt('slider.handle.focus.ring.style') dt('slider.handle.focus.ring.color');
|
|
52
|
-
outline-offset: dt('slider.handle.focus.ring.offset');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.p-slider-range {
|
|
56
|
-
display: block;
|
|
57
|
-
background: dt('slider.range.background');
|
|
58
|
-
border-radius: dt('slider.track.border.radius');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.p-slider.p-slider-horizontal {
|
|
62
|
-
height: dt('slider.track.size');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.p-slider-horizontal .p-slider-range {
|
|
66
|
-
inset-block-start: 0;
|
|
67
|
-
inset-inline-start: 0;
|
|
68
|
-
height: 100%;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.p-slider-horizontal .p-slider-handle {
|
|
72
|
-
inset-block-start: 50%;
|
|
73
|
-
margin-block-start: calc(-1 * calc(dt('slider.handle.height') / 2));
|
|
74
|
-
margin-inline-start: calc(-1 * calc(dt('slider.handle.width') / 2));
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.p-slider-vertical {
|
|
78
|
-
min-height: 100px;
|
|
79
|
-
width: dt('slider.track.size');
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.p-slider-vertical .p-slider-handle {
|
|
83
|
-
inset-inline-start: 50%;
|
|
84
|
-
margin-inline-start: calc(-1 * calc(dt('slider.handle.width') / 2));
|
|
85
|
-
margin-block-end: calc(-1 * calc(dt('slider.handle.height') / 2));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.p-slider-vertical .p-slider-range {
|
|
89
|
-
inset-block-end: 0;
|
|
90
|
-
inset-inline-start: 0;
|
|
91
|
-
width: 100%;
|
|
92
|
-
}
|
|
93
|
-
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-slider p-component`,{"p-disabled":n.disabled,"p-invalid":t.$invalid,"p-slider-horizontal":n.orientation===`horizontal`,"p-slider-vertical":n.orientation===`vertical`}]},range:`p-slider-range`,handle:`p-slider-handle`},inlineStyles:{handle:{position:`absolute`},range:{position:`absolute`}}}),Ke={name:`BaseSlider`,extends:he,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:`horizontal`},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Ge,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qe(e)}function Je(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){var t=Xe(e,`string`);return qe(t)==`symbol`?t:t+``}function Xe(e,t){if(qe(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qe(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ze(e){return et(e)||$e(e)||W(e)||Qe()}function Qe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
94
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(e,t){if(e){if(typeof e==`string`)return tt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(e,t):void 0}}function $e(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function et(e){if(Array.isArray(e))return tt(e)}function tt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nt={name:`Slider`,extends:Ke,inheritAttrs:!1,emits:[`change`,`slideend`],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var e=this.$el.getBoundingClientRect();this.initX=e.left+k(),this.initY=e.top+F(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(e){var t,n=e.touches?e.touches[0].pageX:e.pageX,r=e.touches?e.touches[0].pageY:e.pageY;t=this.orientation===`horizontal`?C(this.$el)?(this.initX+this.barWidth-n)*100/this.barWidth:(n-this.initX)*100/this.barWidth:(this.initY+this.barHeight-r)*100/this.barHeight;var i=(this.max-this.min)*(t/100)+this.min;if(this.step){var a=this.range?this.value[this.handleIndex]:this.value,o=i-a;o<0?i=a+Math.ceil(i/this.step-a/this.step)*this.step:o>0&&(i=a+Math.floor(i/this.step-a/this.step)*this.step)}else i=Math.floor(i);this.updateModel(e,i)},updateModel:function(e,t){var n=Math.round(t*100)/100,r;this.range?(r=this.value?Ze(this.value):[],this.handleIndex==0?(n<this.min?n=this.min:n>=this.max&&(n=this.max),r[0]=n):(n>this.max?n=this.max:n<=this.min&&(n=this.min),r[1]=n)):(n<this.min?n=this.min:n>this.max&&(n=this.max),r=n),this.writeValue(r,e),this.$emit(`change`,r)},onDragStart:function(e,t){this.disabled||(this.$el.setAttribute(`data-p-sliding`,!0),this.dragging=!0,this.updateDomData(),this.range&&this.value[0]===this.max?this.handleIndex=0:this.handleIndex=t,e.currentTarget.focus())},onDrag:function(e){this.dragging&&this.setValue(e)},onDragEnd:function(e){this.dragging&&(this.dragging=!1,this.$el.setAttribute(`data-p-sliding`,!1),this.$emit(`slideend`,{originalEvent:e,value:this.value}))},onBarClick:function(e){this.disabled||n(e.target,`data-pc-section`)!==`handle`&&(this.updateDomData(),this.setValue(e))},onMouseDown:function(e,t){this.bindDragListeners(),this.onDragStart(e,t)},onKeyDown:function(e,t){switch(this.handleIndex=t,e.code){case`ArrowDown`:case`ArrowLeft`:this.decrementValue(e,t),e.preventDefault();break;case`ArrowUp`:case`ArrowRight`:this.incrementValue(e,t),e.preventDefault();break;case`PageDown`:this.decrementValue(e,t,!0),e.preventDefault();break;case`PageUp`:this.incrementValue(e,t,!0),e.preventDefault();break;case`Home`:this.updateModel(e,this.min),e.preventDefault();break;case`End`:this.updateModel(e,this.max),e.preventDefault();break}},onBlur:function(e,t){var n,r;(n=(r=this.formField).onBlur)==null||n.call(r,e)},decrementValue:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.range?this.step?this.value[t]-this.step:this.value[t]-1:this.step?this.value-this.step:!this.step&&n?this.value-10:this.value-1;this.updateModel(e,r),e.preventDefault()},incrementValue:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.range?this.step?this.value[t]+this.step:this.value[t]+1:this.step?this.value+this.step:!this.step&&n?this.value+10:this.value+1;this.updateModel(e,r),e.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener(`mousemove`,this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener(`mouseup`,this.dragEndListener))},unbindDragListeners:function(){this.dragListener&&=(document.removeEventListener(`mousemove`,this.dragListener),null),this.dragEndListener&&=(document.removeEventListener(`mouseup`,this.dragEndListener),null)},rangeStyle:function(){if(this.range){var e=this.rangeEndPosition>this.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,t=this.rangeEndPosition>this.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{"inset-inline-start":t+`%`,width:e+`%`}:{bottom:t+`%`,height:e+`%`}}else if(this.horizontal)return{width:this.handlePosition+`%`};else return{height:this.handlePosition+`%`}},handleStyle:function(){return this.horizontal?{"inset-inline-start":this.handlePosition+`%`}:{bottom:this.handlePosition+`%`}},rangeStartHandleStyle:function(){return this.horizontal?{"inset-inline-start":this.rangeStartPosition+`%`}:{bottom:this.rangeStartPosition+`%`}},rangeEndHandleStyle:function(){return this.horizontal?{"inset-inline-start":this.rangeEndPosition+`%`}:{bottom:this.rangeEndPosition+`%`}}},computed:{value:function(){return this.range?[this.d_value?.[0]??this.min,this.d_value?.[1]??this.max]:this.d_value??this.min},horizontal:function(){return this.orientation===`horizontal`},vertical:function(){return this.orientation===`vertical`},handlePosition:function(){return this.value<this.min?0:this.value>this.max?100:(this.value-this.min)*100/(this.max-this.min)},rangeStartPosition:function(){return this.value&&this.value[0]!==void 0?this.value[0]<this.min?0:(this.value[0]-this.min)*100/(this.max-this.min):0},rangeEndPosition:function(){return this.value&&this.value.length===2&&this.value[1]!==void 0?this.value[1]>this.max?100:(this.value[1]-this.min)*100/(this.max-this.min):100},dataP:function(){return M(Je({},this.orientation,this.orientation))}}},rt=[`data-p`],it=[`data-p`],G=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],at=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],ot=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`];function st(e,n,r,i,a,o){return L(),t(`div`,m({class:e.cx(`root`),onClick:n[18]||=function(){return o.onBarClick&&o.onBarClick.apply(o,arguments)}},e.ptmi(`root`),{"data-p-sliding":!1,"data-p":o.dataP}),[c(`span`,m({class:e.cx(`range`),style:[e.sx(`range`),o.rangeStyle()]},e.ptm(`range`),{"data-p":o.dataP}),null,16,it),e.range?R(``,!0):(L(),t(`span`,m({key:0,class:e.cx(`handle`),style:[e.sx(`handle`),o.handleStyle()],onTouchstartPassive:n[0]||=function(e){return o.onDragStart(e)},onTouchmovePassive:n[1]||=function(e){return o.onDrag(e)},onTouchend:n[2]||=function(e){return o.onDragEnd(e)},onMousedown:n[3]||=function(e){return o.onMouseDown(e)},onKeydown:n[4]||=function(e){return o.onKeyDown(e)},onBlur:n[5]||=function(e){return o.onBlur(e)},tabindex:e.tabindex,role:`slider`,"aria-valuemin":e.min,"aria-valuenow":e.d_value,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm(`handle`),{"data-p":o.dataP}),null,16,G)),e.range?(L(),t(`span`,m({key:1,class:e.cx(`handle`),style:[e.sx(`handle`),o.rangeStartHandleStyle()],onTouchstartPassive:n[6]||=function(e){return o.onDragStart(e,0)},onTouchmovePassive:n[7]||=function(e){return o.onDrag(e)},onTouchend:n[8]||=function(e){return o.onDragEnd(e)},onMousedown:n[9]||=function(e){return o.onMouseDown(e,0)},onKeydown:n[10]||=function(e){return o.onKeyDown(e,0)},onBlur:n[11]||=function(e){return o.onBlur(e,0)},tabindex:e.tabindex,role:`slider`,"aria-valuemin":e.min,"aria-valuenow":e.d_value?e.d_value[0]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm(`startHandler`),{"data-p":o.dataP}),null,16,at)):R(``,!0),e.range?(L(),t(`span`,m({key:2,class:e.cx(`handle`),style:[e.sx(`handle`),o.rangeEndHandleStyle()],onTouchstartPassive:n[12]||=function(e){return o.onDragStart(e,1)},onTouchmovePassive:n[13]||=function(e){return o.onDrag(e)},onTouchend:n[14]||=function(e){return o.onDragEnd(e)},onMousedown:n[15]||=function(e){return o.onMouseDown(e,1)},onKeydown:n[16]||=function(e){return o.onKeyDown(e,1)},onBlur:n[17]||=function(e){return o.onBlur(e,1)},tabindex:e.tabindex,role:`slider`,"aria-valuemin":e.min,"aria-valuenow":e.d_value?e.d_value[1]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm(`endHandler`),{"data-p":o.dataP}),null,16,ot)):R(``,!0)],16,rt)}nt.render=st;var ct={name:`CalendarIcon`,extends:j};function lt(e){return pt(e)||ft(e)||dt(e)||ut()}function ut(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
95
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dt(e,t){if(e){if(typeof e==`string`)return mt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}function ft(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function pt(e){if(Array.isArray(e))return mt(e)}function mt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ht(e,n,r,i,a,o){return L(),t(`svg`,m({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),lt(n[0]||=[c(`path`,{d:`M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z`,fill:`currentColor`},null,-1)]),16)}ct.render=ht;var gt=de.extend({name:`datepicker`,style:`
|
|
96
|
-
.p-datepicker {
|
|
97
|
-
display: inline-flex;
|
|
98
|
-
max-width: 100%;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input {
|
|
102
|
-
border-start-end-radius: 0;
|
|
103
|
-
border-end-end-radius: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.p-datepicker-input {
|
|
107
|
-
flex: 1 1 auto;
|
|
108
|
-
width: 1%;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.p-datepicker-dropdown {
|
|
112
|
-
cursor: pointer;
|
|
113
|
-
display: inline-flex;
|
|
114
|
-
user-select: none;
|
|
115
|
-
align-items: center;
|
|
116
|
-
justify-content: center;
|
|
117
|
-
overflow: hidden;
|
|
118
|
-
position: relative;
|
|
119
|
-
width: dt('datepicker.dropdown.width');
|
|
120
|
-
border-start-end-radius: dt('datepicker.dropdown.border.radius');
|
|
121
|
-
border-end-end-radius: dt('datepicker.dropdown.border.radius');
|
|
122
|
-
background: dt('datepicker.dropdown.background');
|
|
123
|
-
border: 1px solid dt('datepicker.dropdown.border.color');
|
|
124
|
-
border-inline-start: 0 none;
|
|
125
|
-
color: dt('datepicker.dropdown.color');
|
|
126
|
-
transition:
|
|
127
|
-
background dt('datepicker.transition.duration'),
|
|
128
|
-
color dt('datepicker.transition.duration'),
|
|
129
|
-
border-color dt('datepicker.transition.duration'),
|
|
130
|
-
outline-color dt('datepicker.transition.duration');
|
|
131
|
-
outline-color: transparent;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.p-datepicker-dropdown:not(:disabled):hover {
|
|
135
|
-
background: dt('datepicker.dropdown.hover.background');
|
|
136
|
-
border-color: dt('datepicker.dropdown.hover.border.color');
|
|
137
|
-
color: dt('datepicker.dropdown.hover.color');
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.p-datepicker-dropdown:not(:disabled):active {
|
|
141
|
-
background: dt('datepicker.dropdown.active.background');
|
|
142
|
-
border-color: dt('datepicker.dropdown.active.border.color');
|
|
143
|
-
color: dt('datepicker.dropdown.active.color');
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.p-datepicker-dropdown:focus-visible {
|
|
147
|
-
box-shadow: dt('datepicker.dropdown.focus.ring.shadow');
|
|
148
|
-
outline: dt('datepicker.dropdown.focus.ring.width') dt('datepicker.dropdown.focus.ring.style') dt('datepicker.dropdown.focus.ring.color');
|
|
149
|
-
outline-offset: dt('datepicker.dropdown.focus.ring.offset');
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.p-datepicker:has(.p-datepicker-input-icon-container) {
|
|
153
|
-
position: relative;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input {
|
|
157
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.p-datepicker-input-icon-container {
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
position: absolute;
|
|
163
|
-
top: 50%;
|
|
164
|
-
inset-inline-end: dt('form.field.padding.x');
|
|
165
|
-
margin-block-start: calc(-1 * (dt('icon.size') / 2));
|
|
166
|
-
color: dt('datepicker.input.icon.color');
|
|
167
|
-
line-height: 1;
|
|
168
|
-
z-index: 1;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.p-datepicker:has(.p-datepicker-input:disabled) .p-datepicker-input-icon-container {
|
|
172
|
-
cursor: default;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.p-datepicker-fluid {
|
|
176
|
-
display: flex;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.p-datepicker .p-datepicker-panel {
|
|
180
|
-
min-width: 100%;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.p-datepicker-panel {
|
|
184
|
-
width: auto;
|
|
185
|
-
padding: dt('datepicker.panel.padding');
|
|
186
|
-
background: dt('datepicker.panel.background');
|
|
187
|
-
color: dt('datepicker.panel.color');
|
|
188
|
-
border: 1px solid dt('datepicker.panel.border.color');
|
|
189
|
-
border-radius: dt('datepicker.panel.border.radius');
|
|
190
|
-
box-shadow: dt('datepicker.panel.shadow');
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.p-datepicker-panel-inline {
|
|
194
|
-
display: inline-block;
|
|
195
|
-
overflow-x: auto;
|
|
196
|
-
box-shadow: none;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.p-datepicker-header {
|
|
200
|
-
display: flex;
|
|
201
|
-
align-items: center;
|
|
202
|
-
justify-content: space-between;
|
|
203
|
-
padding: dt('datepicker.header.padding');
|
|
204
|
-
background: dt('datepicker.header.background');
|
|
205
|
-
color: dt('datepicker.header.color');
|
|
206
|
-
border-block-end: 1px solid dt('datepicker.header.border.color');
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.p-datepicker-next-button:dir(rtl) {
|
|
210
|
-
order: -1;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.p-datepicker-prev-button:dir(rtl) {
|
|
214
|
-
order: 1;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.p-datepicker-title {
|
|
218
|
-
display: flex;
|
|
219
|
-
align-items: center;
|
|
220
|
-
justify-content: space-between;
|
|
221
|
-
gap: dt('datepicker.title.gap');
|
|
222
|
-
font-weight: dt('datepicker.title.font.weight');
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.p-datepicker-select-year,
|
|
226
|
-
.p-datepicker-select-month {
|
|
227
|
-
border: none;
|
|
228
|
-
background: transparent;
|
|
229
|
-
margin: 0;
|
|
230
|
-
cursor: pointer;
|
|
231
|
-
font-weight: inherit;
|
|
232
|
-
transition:
|
|
233
|
-
background dt('datepicker.transition.duration'),
|
|
234
|
-
color dt('datepicker.transition.duration'),
|
|
235
|
-
border-color dt('datepicker.transition.duration'),
|
|
236
|
-
outline-color dt('datepicker.transition.duration'),
|
|
237
|
-
box-shadow dt('datepicker.transition.duration');
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.p-datepicker-select-month {
|
|
241
|
-
padding: dt('datepicker.select.month.padding');
|
|
242
|
-
color: dt('datepicker.select.month.color');
|
|
243
|
-
border-radius: dt('datepicker.select.month.border.radius');
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.p-datepicker-select-year {
|
|
247
|
-
padding: dt('datepicker.select.year.padding');
|
|
248
|
-
color: dt('datepicker.select.year.color');
|
|
249
|
-
border-radius: dt('datepicker.select.year.border.radius');
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.p-datepicker-select-month:enabled:hover {
|
|
253
|
-
background: dt('datepicker.select.month.hover.background');
|
|
254
|
-
color: dt('datepicker.select.month.hover.color');
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
.p-datepicker-select-year:enabled:hover {
|
|
258
|
-
background: dt('datepicker.select.year.hover.background');
|
|
259
|
-
color: dt('datepicker.select.year.hover.color');
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.p-datepicker-select-month:focus-visible,
|
|
263
|
-
.p-datepicker-select-year:focus-visible {
|
|
264
|
-
box-shadow: dt('datepicker.date.focus.ring.shadow');
|
|
265
|
-
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
|
|
266
|
-
outline-offset: dt('datepicker.date.focus.ring.offset');
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.p-datepicker-calendar-container {
|
|
270
|
-
display: flex;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.p-datepicker-calendar-container .p-datepicker-calendar {
|
|
274
|
-
flex: 1 1 auto;
|
|
275
|
-
border-inline-start: 1px solid dt('datepicker.group.border.color');
|
|
276
|
-
padding-inline-end: dt('datepicker.group.gap');
|
|
277
|
-
padding-inline-start: dt('datepicker.group.gap');
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.p-datepicker-calendar-container .p-datepicker-calendar:first-child {
|
|
281
|
-
padding-inline-start: 0;
|
|
282
|
-
border-inline-start: 0 none;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.p-datepicker-calendar-container .p-datepicker-calendar:last-child {
|
|
286
|
-
padding-inline-end: 0;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
.p-datepicker-day-view {
|
|
290
|
-
width: 100%;
|
|
291
|
-
border-collapse: collapse;
|
|
292
|
-
font-size: 1rem;
|
|
293
|
-
margin: dt('datepicker.day.view.margin');
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.p-datepicker-weekday-cell {
|
|
297
|
-
padding: dt('datepicker.week.day.padding');
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.p-datepicker-weekday {
|
|
301
|
-
font-weight: dt('datepicker.week.day.font.weight');
|
|
302
|
-
color: dt('datepicker.week.day.color');
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.p-datepicker-day-cell {
|
|
306
|
-
padding: dt('datepicker.date.padding');
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.p-datepicker-day {
|
|
310
|
-
display: flex;
|
|
311
|
-
justify-content: center;
|
|
312
|
-
align-items: center;
|
|
313
|
-
cursor: pointer;
|
|
314
|
-
margin: 0 auto;
|
|
315
|
-
overflow: hidden;
|
|
316
|
-
position: relative;
|
|
317
|
-
width: dt('datepicker.date.width');
|
|
318
|
-
height: dt('datepicker.date.height');
|
|
319
|
-
border-radius: dt('datepicker.date.border.radius');
|
|
320
|
-
transition:
|
|
321
|
-
background dt('datepicker.transition.duration'),
|
|
322
|
-
color dt('datepicker.transition.duration'),
|
|
323
|
-
border-color dt('datepicker.transition.duration'),
|
|
324
|
-
box-shadow dt('datepicker.transition.duration'),
|
|
325
|
-
outline-color dt('datepicker.transition.duration');
|
|
326
|
-
border: 1px solid transparent;
|
|
327
|
-
outline-color: transparent;
|
|
328
|
-
color: dt('datepicker.date.color');
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover {
|
|
332
|
-
background: dt('datepicker.date.hover.background');
|
|
333
|
-
color: dt('datepicker.date.hover.color');
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.p-datepicker-day:focus-visible {
|
|
337
|
-
box-shadow: dt('datepicker.date.focus.ring.shadow');
|
|
338
|
-
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
|
|
339
|
-
outline-offset: dt('datepicker.date.focus.ring.offset');
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.p-datepicker-day-selected {
|
|
343
|
-
background: dt('datepicker.date.selected.background');
|
|
344
|
-
color: dt('datepicker.date.selected.color');
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.p-datepicker-day-selected-range {
|
|
348
|
-
background: dt('datepicker.date.range.selected.background');
|
|
349
|
-
color: dt('datepicker.date.range.selected.color');
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.p-datepicker-today > .p-datepicker-day {
|
|
353
|
-
background: dt('datepicker.today.background');
|
|
354
|
-
color: dt('datepicker.today.color');
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.p-datepicker-today > .p-datepicker-day-selected {
|
|
358
|
-
background: dt('datepicker.date.selected.background');
|
|
359
|
-
color: dt('datepicker.date.selected.color');
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.p-datepicker-today > .p-datepicker-day-selected-range {
|
|
363
|
-
background: dt('datepicker.date.range.selected.background');
|
|
364
|
-
color: dt('datepicker.date.range.selected.color');
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.p-datepicker-weeknumber {
|
|
368
|
-
text-align: center;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.p-datepicker-month-view {
|
|
372
|
-
margin: dt('datepicker.month.view.margin');
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.p-datepicker-month {
|
|
376
|
-
width: 33.3%;
|
|
377
|
-
display: inline-flex;
|
|
378
|
-
align-items: center;
|
|
379
|
-
justify-content: center;
|
|
380
|
-
cursor: pointer;
|
|
381
|
-
overflow: hidden;
|
|
382
|
-
position: relative;
|
|
383
|
-
padding: dt('datepicker.month.padding');
|
|
384
|
-
transition:
|
|
385
|
-
background dt('datepicker.transition.duration'),
|
|
386
|
-
color dt('datepicker.transition.duration'),
|
|
387
|
-
border-color dt('datepicker.transition.duration'),
|
|
388
|
-
box-shadow dt('datepicker.transition.duration'),
|
|
389
|
-
outline-color dt('datepicker.transition.duration');
|
|
390
|
-
border-radius: dt('datepicker.month.border.radius');
|
|
391
|
-
outline-color: transparent;
|
|
392
|
-
color: dt('datepicker.date.color');
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
.p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover {
|
|
396
|
-
color: dt('datepicker.date.hover.color');
|
|
397
|
-
background: dt('datepicker.date.hover.background');
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.p-datepicker-month-selected {
|
|
401
|
-
color: dt('datepicker.date.selected.color');
|
|
402
|
-
background: dt('datepicker.date.selected.background');
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
.p-datepicker-month:not(.p-disabled):focus-visible {
|
|
406
|
-
box-shadow: dt('datepicker.date.focus.ring.shadow');
|
|
407
|
-
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
|
|
408
|
-
outline-offset: dt('datepicker.date.focus.ring.offset');
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.p-datepicker-year-view {
|
|
412
|
-
margin: dt('datepicker.year.view.margin');
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.p-datepicker-year {
|
|
416
|
-
width: 50%;
|
|
417
|
-
display: inline-flex;
|
|
418
|
-
align-items: center;
|
|
419
|
-
justify-content: center;
|
|
420
|
-
cursor: pointer;
|
|
421
|
-
overflow: hidden;
|
|
422
|
-
position: relative;
|
|
423
|
-
padding: dt('datepicker.year.padding');
|
|
424
|
-
transition:
|
|
425
|
-
background dt('datepicker.transition.duration'),
|
|
426
|
-
color dt('datepicker.transition.duration'),
|
|
427
|
-
border-color dt('datepicker.transition.duration'),
|
|
428
|
-
box-shadow dt('datepicker.transition.duration'),
|
|
429
|
-
outline-color dt('datepicker.transition.duration');
|
|
430
|
-
border-radius: dt('datepicker.year.border.radius');
|
|
431
|
-
outline-color: transparent;
|
|
432
|
-
color: dt('datepicker.date.color');
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
.p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover {
|
|
436
|
-
color: dt('datepicker.date.hover.color');
|
|
437
|
-
background: dt('datepicker.date.hover.background');
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
.p-datepicker-year-selected {
|
|
441
|
-
color: dt('datepicker.date.selected.color');
|
|
442
|
-
background: dt('datepicker.date.selected.background');
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.p-datepicker-year:not(.p-disabled):focus-visible {
|
|
446
|
-
box-shadow: dt('datepicker.date.focus.ring.shadow');
|
|
447
|
-
outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
|
|
448
|
-
outline-offset: dt('datepicker.date.focus.ring.offset');
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
.p-datepicker-buttonbar {
|
|
452
|
-
display: flex;
|
|
453
|
-
justify-content: space-between;
|
|
454
|
-
align-items: center;
|
|
455
|
-
padding: dt('datepicker.buttonbar.padding');
|
|
456
|
-
border-block-start: 1px solid dt('datepicker.buttonbar.border.color');
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.p-datepicker-buttonbar .p-button {
|
|
460
|
-
width: auto;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.p-datepicker-time-picker {
|
|
464
|
-
display: flex;
|
|
465
|
-
justify-content: center;
|
|
466
|
-
align-items: center;
|
|
467
|
-
border-block-start: 1px solid dt('datepicker.time.picker.border.color');
|
|
468
|
-
padding: 0;
|
|
469
|
-
gap: dt('datepicker.time.picker.gap');
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.p-datepicker-calendar-container + .p-datepicker-time-picker {
|
|
473
|
-
padding: dt('datepicker.time.picker.padding');
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.p-datepicker-time-picker > div {
|
|
477
|
-
display: flex;
|
|
478
|
-
align-items: center;
|
|
479
|
-
flex-direction: column;
|
|
480
|
-
gap: dt('datepicker.time.picker.button.gap');
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
.p-datepicker-time-picker span {
|
|
484
|
-
font-size: 1rem;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.p-datepicker-timeonly .p-datepicker-time-picker {
|
|
488
|
-
border-block-start: 0 none;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.p-datepicker-time-picker:dir(rtl) {
|
|
492
|
-
flex-direction: row-reverse;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown {
|
|
496
|
-
width: dt('datepicker.dropdown.sm.width');
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
.p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown .p-icon,
|
|
500
|
-
.p-datepicker:has(.p-inputtext-sm) .p-datepicker-input-icon {
|
|
501
|
-
font-size: dt('form.field.sm.font.size');
|
|
502
|
-
width: dt('form.field.sm.font.size');
|
|
503
|
-
height: dt('form.field.sm.font.size');
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
.p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown {
|
|
507
|
-
width: dt('datepicker.dropdown.lg.width');
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
.p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown .p-icon,
|
|
511
|
-
.p-datepicker:has(.p-inputtext-lg) .p-datepicker-input-icon {
|
|
512
|
-
font-size: dt('form.field.lg.font.size');
|
|
513
|
-
width: dt('form.field.lg.font.size');
|
|
514
|
-
height: dt('form.field.lg.font.size');
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
.p-datepicker-clear-icon {
|
|
518
|
-
position: absolute;
|
|
519
|
-
top: 50%;
|
|
520
|
-
margin-top: -0.5rem;
|
|
521
|
-
cursor: pointer;
|
|
522
|
-
color: dt('form.field.icon.color');
|
|
523
|
-
inset-inline-end: dt('form.field.padding.x');
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
.p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-clear-icon {
|
|
527
|
-
inset-inline-end: calc(dt('datepicker.dropdown.width') + dt('form.field.padding.x'));
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
.p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-clear-icon {
|
|
531
|
-
inset-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
.p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input {
|
|
535
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
.p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input {
|
|
539
|
-
padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2));
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
.p-inputgroup .p-datepicker-dropdown {
|
|
543
|
-
border-radius: 0;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.p-inputgroup > .p-datepicker:last-child:has(.p-datepicker-dropdown) > .p-datepicker-input {
|
|
547
|
-
border-start-end-radius: 0;
|
|
548
|
-
border-end-end-radius: 0;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.p-inputgroup > .p-datepicker:last-child .p-datepicker-dropdown {
|
|
552
|
-
border-start-end-radius: dt('datepicker.dropdown.border.radius');
|
|
553
|
-
border-end-end-radius: dt('datepicker.dropdown.border.radius');
|
|
554
|
-
}
|
|
555
|
-
`,classes:{root:function(e){var t=e.instance,n=e.state;return[`p-datepicker p-component p-inputwrapper`,{"p-invalid":t.$invalid,"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":n.focused||n.overlayVisible,"p-focus":n.focused||n.overlayVisible,"p-datepicker-fluid":t.$fluid}]},pcInputText:`p-datepicker-input`,clearIcon:`p-datepicker-clear-icon`,dropdown:`p-datepicker-dropdown`,inputIconContainer:`p-datepicker-input-icon-container`,inputIcon:`p-datepicker-input-icon`,panel:function(e){var t=e.props;return[`p-datepicker-panel p-component`,{"p-datepicker-panel-inline":t.inline,"p-disabled":t.disabled,"p-datepicker-timeonly":t.timeOnly}]},calendarContainer:`p-datepicker-calendar-container`,calendar:`p-datepicker-calendar`,header:`p-datepicker-header`,pcPrevButton:`p-datepicker-prev-button`,title:`p-datepicker-title`,selectMonth:`p-datepicker-select-month`,selectYear:`p-datepicker-select-year`,decade:`p-datepicker-decade`,pcNextButton:`p-datepicker-next-button`,dayView:`p-datepicker-day-view`,weekHeader:`p-datepicker-weekheader p-disabled`,weekNumber:`p-datepicker-weeknumber`,weekLabelContainer:`p-datepicker-weeklabel-container p-disabled`,weekDayCell:`p-datepicker-weekday-cell`,weekDay:`p-datepicker-weekday`,dayCell:function(e){var t=e.date;return[`p-datepicker-day-cell`,{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}]},day:function(e){var t=e.instance,n=e.props,r=e.state,i=e.date,a=``;if(t.isRangeSelection()&&t.isSelected(i)&&i.selectable){var o=typeof r.rawValue[0]==`string`?t.parseValue(r.rawValue[0])[0]:r.rawValue[0],s=typeof r.rawValue[1]==`string`?t.parseValue(r.rawValue[1])[0]:r.rawValue[1];a=t.isDateEquals(o,i)||t.isDateEquals(s,i)?`p-datepicker-day-selected`:`p-datepicker-day-selected-range`}return[`p-datepicker-day`,{"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(i)&&i.selectable,"p-disabled":n.disabled||!i.selectable},a]},monthView:`p-datepicker-month-view`,month:function(e){var t=e.instance,n=e.props,r=e.month,i=e.index;return[`p-datepicker-month`,{"p-datepicker-month-selected":t.isMonthSelected(i),"p-disabled":n.disabled||!r.selectable}]},yearView:`p-datepicker-year-view`,year:function(e){var t=e.instance,n=e.props,r=e.year;return[`p-datepicker-year`,{"p-datepicker-year-selected":t.isYearSelected(r.value),"p-disabled":n.disabled||!r.selectable}]},timePicker:`p-datepicker-time-picker`,hourPicker:`p-datepicker-hour-picker`,pcIncrementButton:`p-datepicker-increment-button`,pcDecrementButton:`p-datepicker-decrement-button`,separator:`p-datepicker-separator`,minutePicker:`p-datepicker-minute-picker`,secondPicker:`p-datepicker-second-picker`,ampmPicker:`p-datepicker-ampm-picker`,buttonbar:`p-datepicker-buttonbar`,pcTodayButton:`p-datepicker-today-button`,pcClearButton:`p-datepicker-clear-button`},inlineStyles:{root:function(e){var t=e.props;return{position:t.appendTo===`self`||t.showClear?`relative`:void 0}}}}),_t={name:`BaseDatePicker`,extends:_e,props:{selectionMode:{type:String,default:`single`},dateFormat:{type:String,default:null},updateModelType:{type:String,default:`date`},inline:{type:Boolean,default:!1},showOtherMonths:{type:Boolean,default:!0},selectOtherMonths:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},iconDisplay:{type:String,default:`button`},icon:{type:String,default:void 0},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0},incrementIcon:{type:String,default:void 0},decrementIcon:{type:String,default:void 0},numberOfMonths:{type:Number,default:1},responsiveOptions:Array,breakpoint:{type:String,default:`769px`},view:{type:String,default:`date`},minDate:{type:Date,value:null},maxDate:{type:Date,value:null},disabledDates:{type:Array,value:null},disabledDays:{type:Array,value:null},maxDateCount:{type:Number,value:null},showOnFocus:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},showButtonBar:{type:Boolean,default:!1},shortYearCutoff:{type:String,default:`+10`},showTime:{type:Boolean,default:!1},timeOnly:{type:Boolean,default:!1},hourFormat:{type:String,default:`24`},stepHour:{type:Number,default:1},stepMinute:{type:Number,default:1},stepSecond:{type:Number,default:1},showSeconds:{type:Boolean,default:!1},hideOnDateTimeSelect:{type:Boolean,default:!1},hideOnRangeSelection:{type:Boolean,default:!1},timeSeparator:{type:String,default:`:`},showWeek:{type:Boolean,default:!1},manualInput:{type:Boolean,default:!0},showClear:{type:Boolean,default:!1},appendTo:{type:[String,Object],default:`body`},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},todayButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,size:`small`}}},clearButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,size:`small`}}},navigatorButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},timepickerButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:gt,provide:function(){return{$pcDatePicker:this,$parentInstance:this}}};function vt(e,t,n){return(t=yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e){var t=bt(e,`string`);return xt(t)==`symbol`?t:t+``}function bt(e,t){if(xt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xt(e){"@babel/helpers - typeof";return xt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xt(e)}function St(e){return Tt(e)||wt(e)||Dt(e)||Ct()}function Ct(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
556
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Tt(e){if(Array.isArray(e))return Ot(e)}function Et(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Dt(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
557
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Dt(e,t){if(e){if(typeof e==`string`)return Ot(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}function Ot(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kt={name:`DatePicker`,extends:_t,inheritAttrs:!1,emits:[`show`,`hide`,`input`,`month-change`,`year-change`,`date-select`,`today-click`,`clear-click`,`focus`,`blur`,`keydown`],inject:{$pcFluid:{default:null}},navigationState:null,timePickerChange:!1,scrollHandler:null,outsideClickListener:null,resizeListener:null,matchMediaListener:null,matchMediaOrientationListener:null,overlay:null,input:null,previousButton:null,nextButton:null,timePickerTimer:null,preventFocus:!1,typeUpdate:!1,data:function(){return{currentMonth:null,currentYear:null,currentHour:null,currentMinute:null,currentSecond:null,pm:null,focused:!1,overlayVisible:!1,currentView:this.view,query:null,queryMatches:!1,queryOrientation:null,focusedDateIndex:0,rawValue:null}},watch:{modelValue:{immediate:!0,handler:function(e){var t;this.rawValue=typeof e==`string`?this.safeParse(e):e,this.updateCurrentMetaData(),!this.typeUpdate&&!this.inline&&this.input&&(this.input.value=this.formatValue(this.rawValue)),this.typeUpdate=!1,(t=this.$refs.clearIcon)!=null&&(t=t.$el)!=null&&t.style&&(this.$refs.clearIcon.$el.style.display=ve(e)?`none`:`block`)}},showTime:function(){this.updateCurrentMetaData()},minDate:function(){this.updateCurrentMetaData()},maxDate:function(){this.updateCurrentMetaData()},months:function(){this.overlay&&(this.focused||(this.inline&&(this.preventFocus=!0),setTimeout(this.updateFocus,0)))},numberOfMonths:function(){this.destroyResponsiveStyleElement(),this.createResponsiveStyle()},responsiveOptions:function(){this.destroyResponsiveStyleElement(),this.createResponsiveStyle()},currentView:function(){var e=this;Promise.resolve(null).then(function(){return e.alignOverlay()})},view:function(e){this.currentView=e}},created:function(){this.updateCurrentMetaData()},mounted:function(){if(this.createResponsiveStyle(),this.bindMatchMediaListener(),this.bindMatchMediaOrientationListener(),this.inline)this.disabled||(this.preventFocus=!0,this.initFocusableCell());else{var e;this.input.value=this.inputFieldValue,(e=this.$refs.clearIcon)!=null&&(e=e.$el)!=null&&e.style&&(this.$refs.clearIcon.$el.style.display=this.$filled?`block`:`none`)}},updated:function(){this.overlay&&(this.preventFocus=!0,setTimeout(this.updateFocus,0)),this.input&&this.selectionStart!=null&&this.selectionEnd!=null&&(this.input.selectionStart=this.selectionStart,this.input.selectionEnd=this.selectionEnd,this.selectionStart=null,this.selectionEnd=null)},beforeUnmount:function(){this.timePickerTimer&&clearTimeout(this.timePickerTimer),this.destroyResponsiveStyleElement(),this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMatchMediaListener(),this.unbindMatchMediaOrientationListener(),this.scrollHandler&&=(this.scrollHandler.destroy(),null),this.overlay&&this.autoZIndex&&ge.clear(this.overlay),this.overlay=null},methods:{isSelected:function(e){if(this.rawValue){if(this.isSingleSelection())return this.isDateEquals(this.parseValueForComparison(this.rawValue),e);if(this.isMultipleSelection()){var t=!1,n=Et(this.rawValue),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;if(t=this.isDateEquals(this.parseValueForComparison(i),e),t)break}}catch(e){n.e(e)}finally{n.f()}return t}else if(this.isRangeSelection()){var a=this.parseValueForComparison(this.rawValue[0]);if(this.rawValue[1]){var o=this.parseValueForComparison(this.rawValue[1]);return this.isDateEquals(a,e)||this.isDateEquals(o,e)||this.isDateBetween(a,o,e)}else return this.isDateEquals(a,e)}}return!1},isMonthSelected:function(e){var t=this;if(this.isMultipleSelection())return this.rawValue?.some(function(n){var r=t.parseValueForComparison(n);return r.getMonth()===e&&r.getFullYear()===t.currentYear});if(this.isRangeSelection()){var n,r,i=(n=this.rawValue)!=null&&n[0]?this.parseValueForComparison(this.rawValue[0]):null,a=(r=this.rawValue)!=null&&r[1]?this.parseValueForComparison(this.rawValue[1]):null;if(a){var o=new Date(this.currentYear,e,1),s=new Date(i.getFullYear(),i.getMonth(),1),c=new Date(a.getFullYear(),a.getMonth(),1);return o>=s&&o<=c}else return i?.getFullYear()===this.currentYear&&i?.getMonth()===e}else return this.rawValue?.getMonth()===e&&this.rawValue?.getFullYear()===this.currentYear},isYearSelected:function(e){var t=this;if(this.isMultipleSelection())return this.rawValue?.some(function(n){return t.parseValueForComparison(n).getFullYear()===e});if(this.isRangeSelection()){var n,r,i=(n=this.rawValue)!=null&&n[0]?this.parseValueForComparison(this.rawValue[0]):null,a=(r=this.rawValue)!=null&&r[1]?this.parseValueForComparison(this.rawValue[1]):null,o=i?i.getFullYear():null,s=a?a.getFullYear():null;return o===e||s===e||o<e&&s>e}else return this.rawValue?.getFullYear()===e},isDateEquals:function(e,t){return e?e.getDate()===t.day&&e.getMonth()===t.month&&e.getFullYear()===t.year:!1},isDateBetween:function(e,t,n){var r=!1,i=this.parseValueForComparison(e),a=this.parseValueForComparison(t);if(i&&a){var o=new Date(n.year,n.month,n.day);return i.getTime()<=o.getTime()&&a.getTime()>=o.getTime()}return r},getFirstDayOfMonthIndex:function(e,t){var n=new Date;n.setDate(1),n.setMonth(e),n.setFullYear(t);var r=n.getDay()+this.sundayIndex;return r>=7?r-7:r},getDaysCountInMonth:function(e,t){return 32-this.daylightSavingAdjust(new Date(t,e,32)).getDate()},getDaysCountInPrevMonth:function(e,t){var n=this.getPreviousMonthAndYear(e,t);return this.getDaysCountInMonth(n.month,n.year)},getPreviousMonthAndYear:function(e,t){var n,r;return e===0?(n=11,r=t-1):(n=e-1,r=t),{month:n,year:r}},getNextMonthAndYear:function(e,t){var n,r;return e===11?(n=0,r=t+1):(n=e+1,r=t),{month:n,year:r}},daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},isToday:function(e,t,n,r){return e.getDate()===t&&e.getMonth()===n&&e.getFullYear()===r},isSelectable:function(e,t,n,r){var i=!0,a=!0,o=!0,s=!0;return r&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>n||this.minDate.getFullYear()===n&&(this.minDate.getMonth()>t||this.minDate.getMonth()===t&&this.minDate.getDate()>e))&&(i=!1),this.maxDate&&(this.maxDate.getFullYear()<n||this.maxDate.getFullYear()===n&&(this.maxDate.getMonth()<t||this.maxDate.getMonth()===t&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(o=!this.isDateDisabled(e,t,n)),this.disabledDays&&(s=!this.isDayDisabled(e,t,n)),i&&a&&o&&s)},onOverlayEnter:function(e){v(e,this.inline?void 0:{position:`absolute`,top:`0`}),this.autoZIndex&&ge.set(`overlay`,e,this.baseZIndex||this.$primevue.config.zIndex.overlay),this.$attrSelector&&e.setAttribute(this.$attrSelector,``),this.alignOverlay(),this.$emit(`show`)},onOverlayEnterComplete:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener()},onOverlayAfterLeave:function(e){this.autoZIndex&&ge.clear(e)},onOverlayLeave:function(){this.currentView=this.view,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit(`hide`),this.overlay=null},onPrevButtonClick:function(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)},onNextButtonClick:function(e){this.navigationState={backward:!1,button:!0},this.navForward(e)},navBackward:function(e){e.preventDefault(),this.isEnabled()&&(this.currentView===`month`?(this.decrementYear(),this.$emit(`year-change`,{month:this.currentMonth,year:this.currentYear})):this.currentView===`year`?this.decrementDecade():e.shiftKey?this.decrementYear():(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.$emit(`month-change`,{month:this.currentMonth+1,year:this.currentYear})))},navForward:function(e){e.preventDefault(),this.isEnabled()&&(this.currentView===`month`?(this.incrementYear(),this.$emit(`year-change`,{month:this.currentMonth,year:this.currentYear})):this.currentView===`year`?this.incrementDecade():e.shiftKey?this.incrementYear():(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.$emit(`month-change`,{month:this.currentMonth+1,year:this.currentYear})))},decrementYear:function(){this.currentYear--},decrementDecade:function(){this.currentYear-=10},incrementYear:function(){this.currentYear++},incrementDecade:function(){this.currentYear+=10},switchToMonthView:function(e){this.currentView=`month`,setTimeout(this.updateFocus,0),e.preventDefault()},switchToYearView:function(e){this.currentView=`year`,setTimeout(this.updateFocus,0),e.preventDefault()},isEnabled:function(){return!this.disabled&&!this.readonly},updateCurrentTimeMeta:function(e){var t=e.getHours();this.hourFormat===`12`&&(this.pm=t>11,t>=12&&(t=t==12?12:t-12)),this.currentHour=Math.floor(t/this.stepHour)*this.stepHour,this.currentMinute=Math.floor(e.getMinutes()/this.stepMinute)*this.stepMinute,this.currentSecond=Math.floor(e.getSeconds()/this.stepSecond)*this.stepSecond},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.isOutsideClicked(t)&&(e.overlayVisible=!1)},document.addEventListener(`mousedown`,this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&=(document.removeEventListener(`mousedown`,this.outsideClickListener),null)},bindScrollListener:function(){var e=this;this.scrollHandler||=new Ce(this.$refs.container,function(){e.overlayVisible&&=!1}),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!ee()&&(e.overlayVisible=!1)},window.addEventListener(`resize`,this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&=(window.removeEventListener(`resize`,this.resizeListener),null)},bindMatchMediaListener:function(){var e=this;if(!this.matchMediaListener){var t=matchMedia(`(max-width: ${this.breakpoint})`);this.query=t,this.queryMatches=t.matches,this.matchMediaListener=function(){e.queryMatches=t.matches,e.mobileActive=!1},this.query.addEventListener(`change`,this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener&&=(this.query.removeEventListener(`change`,this.matchMediaListener),null)},bindMatchMediaOrientationListener:function(){var e=this;this.matchMediaOrientationListener||(this.queryOrientation=matchMedia(`(orientation: portrait)`),this.matchMediaOrientationListener=function(){e.alignOverlay()},this.queryOrientation.addEventListener(`change`,this.matchMediaOrientationListener))},unbindMatchMediaOrientationListener:function(){this.matchMediaOrientationListener&&=(this.queryOrientation.removeEventListener(`change`,this.matchMediaOrientationListener),this.queryOrientation=null,null)},isOutsideClicked:function(e){var t=e.composedPath();return!(this.$el.isSameNode(e.target)||this.isNavIconClicked(e)||t.includes(this.$el)||t.includes(this.overlay))},isNavIconClicked:function(e){return this.previousButton&&(this.previousButton.isSameNode(e.target)||this.previousButton.contains(e.target))||this.nextButton&&(this.nextButton.isSameNode(e.target)||this.nextButton.contains(e.target))},alignOverlay:function(){this.overlay&&(this.appendTo===`self`||this.inline?o(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=h(this.overlay)+`px`,this.overlay.style.minWidth=h(this.$el)+`px`):this.overlay.style.width=h(this.$el)+`px`,je(this.overlay,this.$el)))},onButtonClick:function(){this.isEnabled()&&(this.overlayVisible?this.overlayVisible=!1:(this.input.focus(),this.overlayVisible=!0))},isDateDisabled:function(e,t,n){if(this.disabledDates){var r=Et(this.disabledDates),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a.getFullYear()===n&&a.getMonth()===t&&a.getDate()===e)return!0}}catch(e){r.e(e)}finally{r.f()}}return!1},isDayDisabled:function(e,t,n){if(this.disabledDays){var r=new Date(n,t,e).getDay();return this.disabledDays.indexOf(r)!==-1}return!1},onMonthDropdownChange:function(e){this.currentMonth=parseInt(e),this.$emit(`month-change`,{month:this.currentMonth+1,year:this.currentYear})},onYearDropdownChange:function(e){this.currentYear=parseInt(e),this.$emit(`year-change`,{month:this.currentMonth,year:this.currentYear})},onDateSelect:function(e,t){var n=this;if(!(this.disabled||!t.selectable)){if(_(this.overlay,`table td span:not([data-p-disabled="true"])`).forEach(function(e){return e.tabIndex=-1}),e&&e.currentTarget.focus(),this.isMultipleSelection()&&this.isSelected(t)){var r=this.rawValue.filter(function(e){return!n.isDateEquals(n.parseValueForComparison(e),t)});this.updateModel(r)}else this.shouldSelectDate(t)&&(t.otherMonth?(this.currentMonth=t.month,this.currentYear=t.year,this.selectDate(t)):this.selectDate(t));this.isSingleSelection()&&(!this.showTime||this.hideOnDateTimeSelect)&&(this.input&&this.input.focus(),setTimeout(function(){n.overlayVisible=!1},150))}},selectDate:function(e){var t=this,n=new Date(e.year,e.month,e.day);this.showTime&&(this.hourFormat===`12`&&this.currentHour!==12&&this.pm?n.setHours(this.currentHour+12):n.setHours(this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.showSeconds?this.currentSecond:0)),this.minDate&&this.minDate>n&&(n=this.minDate,this.currentHour=n.getHours(),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.currentHour=n.getHours(),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds());var r=null;if(this.isSingleSelection())r=n;else if(this.isMultipleSelection())r=this.rawValue?[].concat(St(this.rawValue),[n]):[n];else if(this.isRangeSelection())if(this.rawValue&&this.rawValue.length){var i=this.parseValueForComparison(this.rawValue[0]),a=this.rawValue[1];!a&&n.getTime()>=i.getTime()?(a=n,this.focusedDateIndex=1):(i=n,a=null,this.focusedDateIndex=0),r=[i,a]}else r=[n,null],this.focusedDateIndex=0;r!==null&&this.updateModel(r),this.isRangeSelection()&&this.hideOnRangeSelection&&r[1]!==null&&setTimeout(function(){t.overlayVisible=!1},150),this.$emit(`date-select`,n)},updateModel:function(e){var t=this;if(this.rawValue=e,this.updateModelType===`date`)if(this.isSingleSelection())this.writeValue(e);else{var n=null;Array.isArray(e)&&(n=e.map(function(e){return t.parseValueForComparison(e)})),this.writeValue(n)}else if(this.updateModelType==`string`){if(this.isSingleSelection())this.writeValue(this.formatDateTime(e));else if(this.isMultipleSelection()){var r=null;Array.isArray(e)&&(r=e.map(function(e){return t.formatDateTime(e)})),this.writeValue(r)}else if(this.isRangeSelection()){var i=null;Array.isArray(e)&&(i=e.map(function(e){return e==null?null:typeof e==`string`?e:t.formatDateTime(e)})),this.writeValue(i)}}},shouldSelectDate:function(){return this.isMultipleSelection()?this.maxDateCount==null?!0:this.maxDateCount>(this.rawValue?this.rawValue.length:0):!0},isSingleSelection:function(){return this.selectionMode===`single`},isRangeSelection:function(){return this.selectionMode===`range`},isMultipleSelection:function(){return this.selectionMode===`multiple`},formatValue:function(e){if(typeof e==`string`)return this.dateFormat?isNaN(new Date(e))?e:this.formatDate(new Date(e),this.dateFormat):e;var t=``;if(e)try{if(this.isSingleSelection())t=this.formatDateTime(e);else if(this.isMultipleSelection())for(var n=0;n<e.length;n++){var r=typeof e[n]==`string`?this.formatDateTime(this.parseValueForComparison(e[n])):this.formatDateTime(e[n]);t+=r,n!==e.length-1&&(t+=`, `)}else if(this.isRangeSelection()&&e&&e.length){var i=this.parseValueForComparison(e[0]),a=this.parseValueForComparison(e[1]);t=this.formatDateTime(i),a&&(t+=` - `+this.formatDateTime(a))}}catch{t=e}return t},formatDateTime:function(t){var n=null;return e(t)&&De(t)?this.timeOnly?n=this.formatTime(t):(n=this.formatDate(t,this.datePattern),this.showTime&&(n+=` `+this.formatTime(t))):this.updateModelType===`string`&&(n=t),n},formatDate:function(e,t){if(!e)return``;var n,r=function(e){var r=n+1<t.length&&t.charAt(n+1)===e;return r&&n++,r},i=function(e,t,n){var i=``+t;if(r(e))for(;i.length<n;)i=`0`+i;return i},a=function(e,t,n,i){return r(e)?i[t]:n[t]},o=``,s=!1;if(e)for(n=0;n<t.length;n++)if(s)t.charAt(n)===`'`&&!r(`'`)?s=!1:o+=t.charAt(n);else switch(t.charAt(n)){case`d`:o+=i(`d`,e.getDate(),2);break;case`D`:o+=a(`D`,e.getDay(),this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case`o`:o+=i(`o`,Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case`m`:o+=i(`m`,e.getMonth()+1,2);break;case`M`:o+=a(`M`,e.getMonth(),this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case`y`:o+=r(`y`)?e.getFullYear():(e.getFullYear()%100<10?`0`:``)+e.getFullYear()%100;break;case`@`:o+=e.getTime();break;case`!`:o+=e.getTime()*1e4+this.ticksTo1970;break;case`'`:r(`'`)?o+=`'`:s=!0;break;default:o+=t.charAt(n)}return o},formatTime:function(e){if(!e)return``;var t=``,n=e.getHours(),r=e.getMinutes(),i=e.getSeconds();return this.hourFormat===`12`&&n>11&&n!==12&&(n-=12),this.hourFormat===`12`?t+=n===0?12:n<10?`0`+n:n:t+=n<10?`0`+n:n,t+=`:`,t+=r<10?`0`+r:r,this.showSeconds&&(t+=`:`,t+=i<10?`0`+i:i),this.hourFormat===`12`&&(t+=e.getHours()>11?` ${this.$primevue.config.locale.pm}`:` ${this.$primevue.config.locale.am}`),t},onTodayButtonClick:function(e){var t=new Date,n={day:t.getDate(),month:t.getMonth(),year:t.getFullYear(),otherMonth:t.getMonth()!==this.currentMonth||t.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(null,n),this.$emit(`today-click`,t),e.preventDefault()},onClearButtonClick:function(e){this.updateModel(null),this.overlayVisible=!1,this.$emit(`clear-click`,e),e.preventDefault()},onTimePickerElementMouseDown:function(e,t,n){this.isEnabled()&&(this.repeat(e,null,t,n),e.preventDefault())},onTimePickerElementMouseUp:function(e){this.isEnabled()&&(this.clearTimePickerTimer(),this.updateModelTime(),e.preventDefault())},onTimePickerElementMouseLeave:function(){this.clearTimePickerTimer()},onTimePickerElementKeyDown:function(e,t,n){switch(e.code){case`Enter`:case`NumpadEnter`:case`Space`:this.isEnabled()&&(this.repeat(e,null,t,n),e.preventDefault());break}},onTimePickerElementKeyUp:function(e){switch(e.code){case`Enter`:case`NumpadEnter`:case`Space`:this.isEnabled()&&(this.clearTimePickerTimer(),this.updateModelTime(),e.preventDefault());break}},repeat:function(e,t,n,r){var i=this,a=t||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(function(){i.repeat(e,100,n,r)},a),n){case 0:r===1?this.incrementHour(e):this.decrementHour(e);break;case 1:r===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:r===1?this.incrementSecond(e):this.decrementSecond(e);break}},convertTo24Hour:function(e,t){return this.hourFormat==`12`?e===12?t?12:0:t?e+12:e:e},validateTime:function(e,t,n,r){var i=this.viewDate,a=this.convertTo24Hour(e,r);this.isRangeSelection()&&(i=this.rawValue?this.rawValue[1]||this.rawValue[0]:i),this.isMultipleSelection()&&(i=this.rawValue?this.rawValue[this.rawValue.length-1]:i);var o=i?i.toDateString():null;return!(this.minDate&&o&&this.minDate.toDateString()===o&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>t||this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n))||this.maxDate&&o&&this.maxDate.toDateString()===o&&(this.maxDate.getHours()<a||this.maxDate.getHours()===a&&(this.maxDate.getMinutes()<t||this.maxDate.getMinutes()===t&&this.maxDate.getSeconds()<n)))},incrementHour:function(e){var t=this.currentHour,n=this.currentHour+Number(this.stepHour),r=this.pm;this.hourFormat==`24`?n=n>=24?n-24:n:this.hourFormat==`12`&&(t<12&&n>11&&(r=!this.pm),n=n>=13?n-12:n),this.validateTime(n,this.currentMinute,this.currentSecond,r)&&(this.currentHour=n,this.pm=r),e.preventDefault()},decrementHour:function(e){var t=this.currentHour-this.stepHour,n=this.pm;this.hourFormat==`24`?t=t<0?24+t:t:this.hourFormat==`12`&&(this.currentHour===12&&(n=!this.pm),t=t<=0?12+t:t),this.validateTime(t,this.currentMinute,this.currentSecond,n)&&(this.currentHour=t,this.pm=n),e.preventDefault()},incrementMinute:function(e){var t=this.currentMinute+Number(this.stepMinute);this.validateTime(this.currentHour,t,this.currentSecond,this.pm)&&(this.currentMinute=t>59?t-60:t),e.preventDefault()},decrementMinute:function(e){var t=this.currentMinute-this.stepMinute;t=t<0?60+t:t,this.validateTime(this.currentHour,t,this.currentSecond,this.pm)&&(this.currentMinute=t),e.preventDefault()},incrementSecond:function(e){var t=this.currentSecond+Number(this.stepSecond);this.validateTime(this.currentHour,this.currentMinute,t,this.pm)&&(this.currentSecond=t>59?t-60:t),e.preventDefault()},decrementSecond:function(e){var t=this.currentSecond-this.stepSecond;t=t<0?60+t:t,this.validateTime(this.currentHour,this.currentMinute,t,this.pm)&&(this.currentSecond=t),e.preventDefault()},updateModelTime:function(){var e=this;this.timePickerChange=!0;var t=this.viewDate;this.isRangeSelection()&&(t=this.rawValue?this.rawValue[this.focusedDateIndex]||this.rawValue[0]:t),this.isMultipleSelection()&&(t=this.rawValue?this.rawValue[this.rawValue.length-1]:t),t=t?new Date(t.getTime()):new Date,this.hourFormat==`12`?this.currentHour===12?t.setHours(this.pm?12:0):t.setHours(this.pm?this.currentHour+12:this.currentHour):t.setHours(this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond),this.isRangeSelection()&&(t=this.rawValue&&this.focusedDateIndex===1&&this.rawValue[1]?[this.rawValue[0],t]:this.rawValue&&this.focusedDateIndex===0?[t,this.rawValue[1]]:[t,null]),this.isMultipleSelection()&&(t=this.rawValue?[].concat(St(this.rawValue.slice(0,-1)),[t]):[t]),this.updateModel(t),this.$emit(`date-select`,t),setTimeout(function(){return e.timePickerChange=!1},0)},toggleAMPM:function(e){!this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,!this.pm)&&(this.maxDate||this.minDate)||(this.pm=!this.pm,this.updateModelTime(),e.preventDefault())},clearTimePickerTimer:function(){this.timePickerTimer&&clearInterval(this.timePickerTimer)},onMonthSelect:function(e,t){t.month;var n=t.index;this.view===`month`?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.currentView=`date`,this.$emit(`month-change`,{month:this.currentMonth+1,year:this.currentYear})),setTimeout(this.updateFocus,0)},onYearSelect:function(e,t){this.view===`year`?this.onDateSelect(e,{year:t.value,month:0,day:1,selectable:!0}):(this.currentYear=t.value,this.currentView=`month`,this.$emit(`year-change`,{month:this.currentMonth,year:this.currentYear})),setTimeout(this.updateFocus,0)},updateCurrentMetaData:function(){var e=this.viewDate;if(this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.showTime||this.timeOnly){var t=e;this.isRangeSelection()&&this.rawValue&&this.rawValue[this.focusedDateIndex]&&(t=this.rawValue[this.focusedDateIndex]),this.updateCurrentTimeMeta(t)}},isValidSelection:function(e){var t=this;if(e==null)return!0;var n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(function(e){return t.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)})&&this.isRangeSelection()&&(n=e.length>1&&e[1]>=e[0]),n},parseValue:function(e){if(!e||e.trim().length===0)return null;var t;if(this.isSingleSelection())t=this.parseDateTime(e);else if(this.isMultipleSelection()){var n=e.split(`,`);t=[];var r=Et(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.push(this.parseDateTime(a.trim()))}}catch(e){r.e(e)}finally{r.f()}}else if(this.isRangeSelection()){var o=e.split(` - `);t=[];for(var s=0;s<o.length;s++)t[s]=this.parseDateTime(o[s].trim())}return t},safeParse:function(e){try{return this.parseValue(e)}catch{var t=new Date(e);return isNaN(t.getTime())?null:this.isSingleSelection()?t:[t]}},parseValueForComparison:function(e){if(typeof e==`string`){var t=this.parseValue(e);return this.isSingleSelection()?t:t[0]}return e},parseDateTime:function(e){var t,n=`${this.$primevue.config.locale.am}|${this.$primevue.config.locale.pm}|am|pm`,r=e.match(RegExp(`(?:(.+?) )?(\\d{2}:\\d{2}(?::\\d{2})?)(?:\\s+(${n}))?`,`i`));if(this.timeOnly)t=new Date,this.populateTime(t,r[2],r[3]);else{var i=this.datePattern;this.showTime?(t=this.parseDate(r[1],i),this.populateTime(t,r[2],r[3])):t=this.parseDate(e,i)}return t},populateTime:function(e,t,n){if(this.hourFormat==`12`&&!n)throw`Invalid Time`;this.pm=n.toLowerCase()===this.$primevue.config.locale.pm.toLowerCase()||n.toLowerCase()===`pm`;var r=this.parseTime(t);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds(r.second)},parseTime:function(e){var t=e.split(`:`),n=this.showSeconds?3:2,r=/^[0-9][0-9]$/;if(t.length!==n||!t[0].match(r)||!t[1].match(r)||this.showSeconds&&!t[2].match(r))throw`Invalid time`;var i=parseInt(t[0]),a=parseInt(t[1]),o=this.showSeconds?parseInt(t[2]):null;if(isNaN(i)||isNaN(a)||i>23||a>59||this.hourFormat==`12`&&i>12||this.showSeconds&&(isNaN(o)||o>59))throw`Invalid time`;return this.hourFormat==`12`&&i!==12&&this.pm?i+=12:this.hourFormat==`12`&&i==12&&!this.pm&&(i=0),{hour:i,minute:a,second:o}},parseDate:function(e,t){if(t==null||e==null)throw`Invalid arguments`;if(e=xt(e)===`object`?e.toString():e+``,e===``)return null;var n,r,i,a=0,o=typeof this.shortYearCutoff==`string`?new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10):this.shortYearCutoff,s=-1,c=-1,l=-1,u=-1,d=!1,f,p=function(e){var r=n+1<t.length&&t.charAt(n+1)===e;return r&&n++,r},m=function(t){var n=p(t),r=t===`@`?14:t===`!`?20:t===`y`&&n?4:t===`o`?3:2,i=t===`y`?r:1,o=RegExp(`^\\d{`+i+`,`+r+`}`),s=e.substring(a).match(o);if(!s)throw`Missing number at position `+a;return a+=s[0].length,parseInt(s[0],10)},h=function(t,n,r){for(var i=-1,o=p(t)?r:n,s=[],c=0;c<o.length;c++)s.push([c,o[c]]);s.sort(function(e,t){return-(e[1].length-t[1].length)});for(var l=0;l<s.length;l++){var u=s[l][1];if(e.substr(a,u.length).toLowerCase()===u.toLowerCase()){i=s[l][0],a+=u.length;break}}if(i!==-1)return i+1;throw`Unknown name at position `+a},g=function(){if(e.charAt(a)!==t.charAt(n))throw`Unexpected literal at position `+a;a++};for(this.currentView===`month`&&(l=1),this.currentView===`year`&&(l=1,c=1),n=0;n<t.length;n++)if(d)t.charAt(n)===`'`&&!p(`'`)?d=!1:g();else switch(t.charAt(n)){case`d`:l=m(`d`);break;case`D`:h(`D`,this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case`o`:u=m(`o`);break;case`m`:c=m(`m`);break;case`M`:c=h(`M`,this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case`y`:s=m(`y`);break;case`@`:f=new Date(m(`@`)),s=f.getFullYear(),c=f.getMonth()+1,l=f.getDate();break;case`!`:f=new Date((m(`!`)-this.ticksTo1970)/1e4),s=f.getFullYear(),c=f.getMonth()+1,l=f.getDate();break;case`'`:p(`'`)?g():d=!0;break;default:g()}if(a<e.length&&(i=e.substr(a),!/^\s+/.test(i)))throw`Extra/unparsed characters found in date: `+i;if(s===-1?s=new Date().getFullYear():s<100&&(s+=new Date().getFullYear()-new Date().getFullYear()%100+(s<=o?0:-100)),u>-1){c=1,l=u;do{if(r=this.getDaysCountInMonth(c-1,s),l<=r)break;c++,l-=r}while(!0)}if(f=this.daylightSavingAdjust(new Date(s,c-1,l)),f.getFullYear()!==s||f.getMonth()+1!==c||f.getDate()!==l)throw`Invalid date`;return f},getWeekNumber:function(e){var t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t.getTime())/864e5)/7)+1},onDateCellKeydown:function(e,t,r){e.preventDefault();var i=e.currentTarget,a=i.parentElement,o=D(a);switch(e.code){case`ArrowDown`:if(i.tabIndex=`-1`,a.parentElement.nextElementSibling){var s=D(a.parentElement),c=Array.from(a.parentElement.parentElement.children).slice(s+1).find(function(e){var t=e.children[o].children[0];return!n(t,`data-p-disabled`)});if(c){var l=c.children[o].children[0];l.tabIndex=`0`,l.focus()}else this.navigationState={backward:!1},this.navForward(e)}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break;case`ArrowUp`:if(i.tabIndex=`-1`,e.altKey)this.overlayVisible=!1,this.focused=!0;else if(a.parentElement.previousElementSibling){var u=D(a.parentElement),d=Array.from(a.parentElement.parentElement.children).slice(0,u).reverse().find(function(e){var t=e.children[o].children[0];return!n(t,`data-p-disabled`)});if(d){var f=d.children[o].children[0];f.tabIndex=`0`,f.focus()}else this.navigationState={backward:!0},this.navBackward(e)}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break;case`ArrowLeft`:if(i.tabIndex=`-1`,a.previousElementSibling){var p=Array.from(a.parentElement.children).slice(0,o).reverse().find(function(e){var t=e.children[0];return!n(t,`data-p-disabled`)});if(p){var m=p.children[0];m.tabIndex=`0`,m.focus()}else this.navigateToMonth(e,!0,r)}else this.navigateToMonth(e,!0,r);e.preventDefault();break;case`ArrowRight`:if(i.tabIndex=`-1`,a.nextElementSibling){var h=Array.from(a.parentElement.children).slice(o+1).find(function(e){var t=e.children[0];return!n(t,`data-p-disabled`)});if(h){var g=h.children[0];g.tabIndex=`0`,g.focus()}else this.navigateToMonth(e,!1,r)}else this.navigateToMonth(e,!1,r);e.preventDefault();break;case`Enter`:case`NumpadEnter`:case`Space`:this.onDateSelect(e,t),e.preventDefault();break;case`Escape`:this.overlayVisible=!1,e.preventDefault();break;case`Tab`:this.inline||this.trapFocus(e);break;case`Home`:i.tabIndex=`-1`;var _=a.parentElement.children[0].children[0];n(_,`data-p-disabled`)?this.navigateToMonth(e,!0,r):(_.tabIndex=`0`,_.focus()),e.preventDefault();break;case`End`:i.tabIndex=`-1`;var v=a.parentElement,y=v.children[v.children.length-1].children[0];n(y,`data-p-disabled`)?this.navigateToMonth(e,!1,r):(y.tabIndex=`0`,y.focus()),e.preventDefault();break;case`PageUp`:i.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,r),e.preventDefault();break;case`PageDown`:i.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,r),e.preventDefault();break}},navigateToMonth:function(e,t,n){if(t)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this.navBackward(e);else{var r=this.overlay.children[n-1],i=_(r,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`),a=i[i.length-1];a.tabIndex=`0`,a.focus()}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(e);else{var o=this.overlay.children[n+1],s=p(o,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);s.tabIndex=`0`,s.focus()}},onMonthCellKeydown:function(e,t){var n=e.currentTarget;switch(e.code){case`ArrowUp`:case`ArrowDown`:n.tabIndex=`-1`;var r=n.parentElement.children,i=D(n),a=r[e.code===`ArrowDown`?i+3:i-3];a&&(a.tabIndex=`0`,a.focus()),e.preventDefault();break;case`ArrowLeft`:n.tabIndex=`-1`;var o=n.previousElementSibling;o?(o.tabIndex=`0`,o.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break;case`ArrowRight`:n.tabIndex=`-1`;var s=n.nextElementSibling;s?(s.tabIndex=`0`,s.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break;case`PageUp`:if(e.shiftKey)return;this.navigationState={backward:!0},this.navBackward(e);break;case`PageDown`:if(e.shiftKey)return;this.navigationState={backward:!1},this.navForward(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onMonthSelect(e,t),e.preventDefault();break;case`Escape`:this.overlayVisible=!1,e.preventDefault();break;case`Tab`:this.trapFocus(e);break}},onYearCellKeydown:function(e,t){var n=e.currentTarget;switch(e.code){case`ArrowUp`:case`ArrowDown`:n.tabIndex=`-1`;var r=n.parentElement.children,i=D(n),a=r[e.code===`ArrowDown`?i+2:i-2];a&&(a.tabIndex=`0`,a.focus()),e.preventDefault();break;case`ArrowLeft`:n.tabIndex=`-1`;var o=n.previousElementSibling;o?(o.tabIndex=`0`,o.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break;case`ArrowRight`:n.tabIndex=`-1`;var s=n.nextElementSibling;s?(s.tabIndex=`0`,s.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break;case`PageUp`:if(e.shiftKey)return;this.navigationState={backward:!0},this.navBackward(e);break;case`PageDown`:if(e.shiftKey)return;this.navigationState={backward:!1},this.navForward(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onYearSelect(e,t),e.preventDefault();break;case`Escape`:this.overlayVisible=!1,e.preventDefault();break;case`Tab`:this.trapFocus(e);break}},updateFocus:function(){var e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?this.previousButton&&this.previousButton.focus():this.nextButton&&this.nextButton.focus();else{if(this.navigationState.backward){var t=this.currentView===`month`?_(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?_(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):_(this.overlay,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);t&&t.length>0&&(e=t[t.length-1])}else e=this.currentView===`month`?p(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?p(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):p(this.overlay,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);e&&(e.tabIndex=`0`,e.focus())}this.navigationState=null}else this.initFocusableCell()},initFocusableCell:function(){var e;if(this.currentView===`month`){var t=_(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]`),n=p(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"][data-p-selected="true"]`);t.forEach(function(e){return e.tabIndex=-1}),e=n||t[0]}else if(this.currentView===`year`){var r=_(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),i=p(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"][data-p-selected="true"]`);r.forEach(function(e){return e.tabIndex=-1}),e=i||r[0]}else e=p(this.overlay,`span[data-p-selected="true"]`),!e&&(e=p(this.overlay,`td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])`)||p(this.overlay,`.p-datepicker-calendar td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`));e&&(e.tabIndex=`0`,!this.preventFocus&&this.overlay&&!this.overlay.contains(document.activeElement)&&e.focus(),this.preventFocus=!1)},trapFocus:function(e){e.preventDefault();var t=te(this.overlay);if(t&&t.length>0)if(!document.activeElement)t[0].focus();else{var n=t.indexOf(document.activeElement);if(e.shiftKey)n===-1||n===0?t[t.length-1].focus():t[n-1].focus();else if(n===-1)if(this.timeOnly)t[0].focus();else{var r=t.findIndex(function(e){return e.tagName===`SPAN`});r===-1&&(r=t.findIndex(function(e){return e.tagName===`BUTTON`})),r===-1?t[0].focus():t[r].focus()}else n===t.length-1?t[0].focus():t[n+1].focus()}},onContainerButtonKeydown:function(e){switch(e.code){case`Tab`:this.trapFocus(e);break;case`Escape`:this.overlayVisible=!1,e.preventDefault();break}this.$emit(`keydown`,e)},onInput:function(e){try{var t;this.selectionStart=this.input.selectionStart,this.selectionEnd=this.input.selectionEnd,(t=this.$refs.clearIcon)!=null&&(t=t.$el)!=null&&t.style&&(this.$refs.clearIcon.$el.style.display=ve(e.target.value)?`none`:`block`);var n=this.parseValue(e.target.value);this.isValidSelection(n)&&(this.typeUpdate=!0,this.updateModel(this.updateModelType===`string`?this.formatValue(n):n),this.updateCurrentMetaData())}catch{}this.$emit(`input`,e)},onInputClick:function(){this.showOnFocus&&this.isEnabled()&&!this.overlayVisible&&(this.overlayVisible=!0)},onFocus:function(e){this.showOnFocus&&this.isEnabled()&&(this.overlayVisible=!0),this.focused=!0,this.$emit(`focus`,e)},onBlur:function(e){var t,n,r;this.$emit(`blur`,{originalEvent:e,value:e.target.value}),(t=(n=this.formField).onBlur)==null||t.call(n),this.focused=!1,e.target.value=this.formatValue(this.rawValue),(r=this.$refs.clearIcon)!=null&&(r=r.$el)!=null&&r.style&&(this.$refs.clearIcon.$el.style.display=ve(e.target.value)?`none`:`block`)},onKeyDown:function(e){if(e.code===`ArrowDown`&&this.overlay)this.trapFocus(e);else if(e.code===`ArrowDown`&&!this.overlay)this.overlayVisible=!0;else if(e.code===`Escape`)this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault(),e.stopPropagation());else if(e.code===`Tab`)this.overlay&&te(this.overlay).forEach(function(e){return e.tabIndex=`-1`}),this.overlayVisible&&=!1;else if(e.code===`Enter`){if(this.manualInput&&e.target.value!==null&&e.target.value?.trim()!==``)try{var t=this.parseValue(e.target.value);this.isValidSelection(t)&&(this.overlayVisible=!1)}catch{}this.$emit(`keydown`,e)}},overlayRef:function(e){this.overlay=e},inputRef:function(e){this.input=e?e.$el:void 0},previousButtonRef:function(e){this.previousButton=e?e.$el:void 0},nextButtonRef:function(e){this.nextButton=e?e.$el:void 0},getMonthName:function(e){return this.$primevue.config.locale.monthNames[e]},getYear:function(e){return this.currentView===`month`?this.currentYear:e.year},onClearClick:function(){this.updateModel(null),this.overlayVisible=!1},onOverlayClick:function(e){e.stopPropagation(),this.inline||ke.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.inline||(this.input.focus(),this.overlayVisible=!1,e.stopPropagation());break}},onOverlayMouseUp:function(e){this.onOverlayClick(e)},createResponsiveStyle:function(){if(this.numberOfMonths>1&&this.responsiveOptions&&!this.isUnstyled){if(!this.responsiveStyleElement){var e;this.responsiveStyleElement=document.createElement(`style`),this.responsiveStyleElement.type=`text/css`,Ne(this.responsiveStyleElement,`nonce`,(e=this.$primevue)==null||(e=e.config)==null||(e=e.csp)==null?void 0:e.nonce),document.body.appendChild(this.responsiveStyleElement)}var t=``;if(this.responsiveOptions)for(var n=pe(),r=St(this.responsiveOptions).filter(function(e){return!!(e.breakpoint&&e.numMonths)}).sort(function(e,t){return-1*n(e.breakpoint,t.breakpoint)}),i=0;i<r.length;i++){for(var a=r[i],o=a.breakpoint,s=a.numMonths,c=`
|
|
558
|
-
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${s}) .p-datepicker-next-button {
|
|
559
|
-
display: inline-flex;
|
|
560
|
-
}
|
|
561
|
-
`,l=s;l<this.numberOfMonths;l++)c+=`
|
|
562
|
-
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${l+1}) {
|
|
563
|
-
display: none;
|
|
564
|
-
}
|
|
565
|
-
`;t+=`
|
|
566
|
-
@media screen and (max-width: ${o}) {
|
|
567
|
-
${c}
|
|
568
|
-
}
|
|
569
|
-
`}this.responsiveStyleElement.innerHTML=t}},destroyResponsiveStyleElement:function(){this.responsiveStyleElement&&=(this.responsiveStyleElement.remove(),null)},dayDataP:function(e){return M({today:e.today,"other-month":e.otherMonth,selected:this.isSelected(e),disabled:!e.selectable})}},computed:{viewDate:function(){var e=this.rawValue;if(e&&Array.isArray(e))if(this.isRangeSelection())if(e.length===0)e=null;else if(e.length===1)e=e[0];else{var t=this.parseValueForComparison(e[0]),n=new Date(t.getFullYear(),t.getMonth()+this.numberOfMonths,1);if(!e[1]||e[1]<n)e=e[0];else{var r=this.parseValueForComparison(e[1]);e=new Date(r.getFullYear(),r.getMonth()-this.numberOfMonths+1,1)}}else this.isMultipleSelection()&&(e=e[e.length-1]);if(e&&typeof e!=`string`)return e;var i=new Date;return this.maxDate&&this.maxDate<i?this.maxDate:this.minDate&&this.minDate>i?this.minDate:i},inputFieldValue:function(){return this.formatValue(this.rawValue)},months:function(){for(var e=[],t=0;t<this.numberOfMonths;t++){var n=this.currentMonth+t,r=this.currentYear;n>11&&(n=n%11-1,r+=1);for(var i=[],a=this.getFirstDayOfMonthIndex(n,r),o=this.getDaysCountInMonth(n,r),s=this.getDaysCountInPrevMonth(n,r),c=1,l=new Date,u=[],d=Math.ceil((o+a)/7),f=0;f<d;f++){var p=[];if(f==0){for(var m=s-a+1;m<=s;m++){var h=this.getPreviousMonthAndYear(n,r);p.push({day:m,month:h.month,year:h.year,otherMonth:!0,today:this.isToday(l,m,h.month,h.year),selectable:this.isSelectable(m,h.month,h.year,!0)})}for(var g=7-p.length,_=0;_<g;_++)p.push({day:c,month:n,year:r,today:this.isToday(l,c,n,r),selectable:this.isSelectable(c,n,r,!1)}),c++}else for(var v=0;v<7;v++){if(c>o){var y=this.getNextMonthAndYear(n,r);p.push({day:c-o,month:y.month,year:y.year,otherMonth:!0,today:this.isToday(l,c-o,y.month,y.year),selectable:this.isSelectable(c-o,y.month,y.year,!0)})}else p.push({day:c,month:n,year:r,today:this.isToday(l,c,n,r),selectable:this.isSelectable(c,n,r,!1)});c++}this.showWeek&&u.push(this.getWeekNumber(new Date(p[0].year,p[0].month,p[0].day))),i.push(p)}e.push({month:n,year:r,dates:i,weekNumbers:u})}return e},weekDays:function(){for(var e=[],t=this.$primevue.config.locale.firstDayOfWeek,n=0;n<7;n++)e.push(this.$primevue.config.locale.dayNamesMin[t]),t=t==6?0:++t;return e},ticksTo1970:function(){return 719162*24*60*60*1e7},sundayIndex:function(){return this.$primevue.config.locale.firstDayOfWeek>0?7-this.$primevue.config.locale.firstDayOfWeek:0},datePattern:function(){return this.dateFormat||this.$primevue.config.locale.dateFormat},monthPickerValues:function(){for(var e=this,t=[],n=function(t){if(e.minDate){var n=e.minDate.getMonth(),r=e.minDate.getFullYear();if(e.currentYear<r||e.currentYear===r&&t<n)return!1}if(e.maxDate){var i=e.maxDate.getMonth(),a=e.maxDate.getFullYear();if(e.currentYear>a||e.currentYear===a&&t>i)return!1}return!0},r=0;r<=11;r++)t.push({value:this.$primevue.config.locale.monthNamesShort[r],selectable:n(r)});return t},yearPickerValues:function(){for(var e=this,t=[],n=this.currentYear-this.currentYear%10,r=function(t){return!(e.minDate&&e.minDate.getFullYear()>t||e.maxDate&&e.maxDate.getFullYear()<t)},i=0;i<10;i++)t.push({value:n+i,selectable:r(n+i)});return t},formattedCurrentHour:function(){return this.currentHour==0&&this.hourFormat==`12`?this.currentHour+12:this.currentHour<10?`0`+this.currentHour:this.currentHour},formattedCurrentMinute:function(){return this.currentMinute<10?`0`+this.currentMinute:this.currentMinute},formattedCurrentSecond:function(){return this.currentSecond<10?`0`+this.currentSecond:this.currentSecond},todayLabel:function(){return this.$primevue.config.locale.today},clearLabel:function(){return this.$primevue.config.locale.clear},weekHeaderLabel:function(){return this.$primevue.config.locale.weekHeader},monthNames:function(){return this.$primevue.config.locale.monthNames},switchViewButtonDisabled:function(){return this.numberOfMonths>1||this.disabled},isClearIconVisible:function(){return this.showClear&&this.rawValue!=null&&!this.disabled},panelId:function(){return this.$id+`_panel`},containerDataP:function(){return M({fluid:this.$fluid})},panelDataP:function(){return M(vt({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return M(vt({},this.size,this.size))},timePickerDataP:function(){return M({"time-only":this.timeOnly})},hourIncrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,0,1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,0,1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},hourDecrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,0,-1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,0,-1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},minuteIncrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,1,1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,1,1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},minuteDecrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,1,-1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,1,-1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},secondIncrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,2,1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,2,1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},secondDecrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,2,-1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,2,-1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}}},components:{InputText:Se,Button:f,Portal:N,CalendarIcon:ct,ChevronLeftIcon:Le,ChevronRightIcon:se,ChevronUpIcon:ye,ChevronDownIcon:ue,TimesIcon:Ee},directives:{ripple:d}},At=[`id`,`data-p`],jt=[`disabled`,`aria-label`,`aria-expanded`,`aria-controls`],K=[`data-p`],Mt=[`id`,`role`,`aria-modal`,`aria-label`,`data-p`],Nt=[`disabled`,`aria-label`],Pt=[`disabled`,`aria-label`],Ft=[`disabled`,`aria-label`],It=[`disabled`,`aria-label`],Lt=[`data-p-disabled`],Rt=[`abbr`],zt=[`data-p-disabled`],Bt=[`aria-label`,`data-p-today`,`data-p-other-month`],Vt=[`onClick`,`onKeydown`,`aria-selected`,`aria-disabled`,`data-p`],Ht=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Ut=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Wt=[`data-p`];function Gt(e,n,r,i,o,l){var d=ce(`InputText`),f=ce(`TimesIcon`),p=ce(`Button`),h=ce(`Portal`),g=be(`ripple`);return L(),t(`span`,m({ref:`container`,id:e.$id,class:e.cx(`root`),style:e.sx(`root`),"data-p":l.containerDataP},e.ptmi(`root`)),[e.inline?R(``,!0):(L(),b(d,{key:0,ref:l.inputRef,id:e.inputId,role:`combobox`,class:O([e.inputClass,e.cx(`pcInputText`)]),style:s(e.inputStyle),defaultValue:l.inputFieldValue,placeholder:e.placeholder,name:e.name,size:e.size,invalid:e.invalid,variant:e.variant,fluid:e.fluid,required:e.required,unstyled:e.unstyled,autocomplete:`off`,"aria-autocomplete":`none`,"aria-haspopup":`dialog`,"aria-expanded":o.overlayVisible,"aria-controls":o.overlayVisible?l.panelId:void 0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:`none`,disabled:e.disabled,readonly:!e.manualInput||e.readonly,tabindex:0,onInput:l.onInput,onClick:l.onInputClick,onFocus:l.onFocus,onBlur:l.onBlur,onKeydown:l.onKeyDown,"data-p-has-dropdown":e.showIcon&&e.iconDisplay===`button`&&!e.inline,"data-p-has-e-icon":e.showIcon&&e.iconDisplay===`input`&&!e.inline,pt:e.ptm(`pcInputText`)},null,8,`id.class.style.defaultValue.placeholder.name.size.invalid.variant.fluid.required.unstyled.aria-expanded.aria-controls.aria-labelledby.aria-label.disabled.readonly.onInput.onClick.onFocus.onBlur.onKeydown.data-p-has-dropdown.data-p-has-e-icon.pt`.split(`.`))),e.showClear&&!e.inline?B(e.$slots,`clearicon`,{key:1,class:O(e.cx(`clearIcon`)),clearCallback:l.onClearClick},function(){return[u(f,m({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:l.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):R(``,!0),e.showIcon&&e.iconDisplay===`button`&&!e.inline?B(e.$slots,`dropdownbutton`,{key:2,toggleCallback:l.onButtonClick},function(){return[c(`button`,m({class:e.cx(`dropdown`),disabled:e.disabled,onClick:n[0]||=function(){return l.onButtonClick&&l.onButtonClick.apply(l,arguments)},type:`button`,"aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":o.overlayVisible,"aria-controls":l.panelId},e.ptm(`dropdown`)),[B(e.$slots,`dropdownicon`,{class:O(e.icon)},function(){return[(L(),b(V(e.icon?`span`:`CalendarIcon`),m({class:e.icon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,jt)]}):e.showIcon&&e.iconDisplay===`input`&&!e.inline?(L(),t(a,{key:3},[e.$slots.inputicon||e.showIcon?(L(),t(`span`,m({key:0,class:e.cx(`inputIconContainer`),"data-p":l.inputIconDataP},e.ptm(`inputIconContainer`)),[B(e.$slots,`inputicon`,{class:O(e.cx(`inputIcon`)),clickCallback:l.onButtonClick},function(){return[(L(),b(V(e.icon?`i`:`CalendarIcon`),m({class:[e.icon,e.cx(`inputIcon`)],onClick:l.onButtonClick},e.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,K)):R(``,!0)],64)):R(``,!0),u(h,{appendTo:e.appendTo,disabled:e.inline},{default:H(function(){return[u(Oe,m({name:`p-anchored-overlay`,onEnter:n[58]||=function(e){return l.onOverlayEnter(e)},onAfterEnter:l.onOverlayEnterComplete,onAfterLeave:l.onOverlayAfterLeave,onLeave:l.onOverlayLeave},e.ptm(`transition`)),{default:H(function(){return[e.inline||o.overlayVisible?(L(),t(`div`,m({key:0,ref:l.overlayRef,id:l.panelId,class:[e.cx(`panel`),e.panelClass],style:e.panelStyle,role:e.inline?null:`dialog`,"aria-modal":e.inline?null:`true`,"aria-label":e.$primevue.config.locale.chooseDate,onClick:n[55]||=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)},onKeydown:n[56]||=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)},onMouseup:n[57]||=function(){return l.onOverlayMouseUp&&l.onOverlayMouseUp.apply(l,arguments)},"data-p":l.panelDataP},e.ptm(`panel`)),[e.timeOnly?R(``,!0):(L(),t(a,{key:0},[c(`div`,m({class:e.cx(`calendarContainer`)},e.ptm(`calendarContainer`)),[(L(!0),t(a,null,z(l.months,function(r,i){return L(),t(`div`,m({key:r.month+r.year,class:e.cx(`calendar`)},{ref_for:!0},e.ptm(`calendar`)),[c(`div`,m({class:e.cx(`header`)},{ref_for:!0},e.ptm(`header`)),[B(e.$slots,`header`),B(e.$slots,`prevbutton`,{actionCallback:function(e){return l.onPrevButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[E(u(p,m({ref_for:!0,ref:l.previousButtonRef,class:e.cx(`pcPrevButton`),disabled:e.disabled,"aria-label":o.currentView===`year`?e.$primevue.config.locale.prevDecade:o.currentView===`month`?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth,unstyled:e.unstyled,onClick:l.onPrevButtonClick,onKeydown:l.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcPrevButton`),"data-pc-group-section":`navigator`}),{icon:H(function(t){return[B(e.$slots,`previcon`,{},function(){return[(L(),b(V(e.prevIcon?`span`:`ChevronLeftIcon`),m({class:[e.prevIcon,t.class]},{ref_for:!0},e.ptm(`pcPrevButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[Ae,i===0]])]}),c(`div`,m({class:e.cx(`title`)},{ref_for:!0},e.ptm(`title`)),[e.$primevue.config.locale.showMonthAfterYear?(L(),t(a,{key:0},[o.currentView===`year`?R(``,!0):(L(),t(`button`,m({key:0,type:`button`,onClick:n[1]||=function(){return l.switchToYearView&&l.switchToYearView.apply(l,arguments)},onKeydown:n[2]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectYear`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),y(l.getYear(r)),17,Nt)),o.currentView===`date`?(L(),t(`button`,m({key:1,type:`button`,onClick:n[3]||=function(){return l.switchToMonthView&&l.switchToMonthView.apply(l,arguments)},onKeydown:n[4]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectMonth`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),y(l.getMonthName(r.month)),17,Pt)):R(``,!0)],64)):(L(),t(a,{key:1},[o.currentView===`date`?(L(),t(`button`,m({key:0,type:`button`,onClick:n[5]||=function(){return l.switchToMonthView&&l.switchToMonthView.apply(l,arguments)},onKeydown:n[6]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectMonth`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),y(l.getMonthName(r.month)),17,Ft)):R(``,!0),o.currentView===`year`?R(``,!0):(L(),t(`button`,m({key:1,type:`button`,onClick:n[7]||=function(){return l.switchToYearView&&l.switchToYearView.apply(l,arguments)},onKeydown:n[8]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectYear`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),y(l.getYear(r)),17,It))],64)),o.currentView===`year`?(L(),t(`span`,m({key:2,class:e.cx(`decade`)},{ref_for:!0},e.ptm(`decade`)),[B(e.$slots,`decade`,{years:l.yearPickerValues},function(){return[x(y(l.yearPickerValues[0].value)+` - `+y(l.yearPickerValues[l.yearPickerValues.length-1].value),1)]})],16)):R(``,!0)],16),B(e.$slots,`nextbutton`,{actionCallback:function(e){return l.onNextButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[E(u(p,m({ref_for:!0,ref:l.nextButtonRef,class:e.cx(`pcNextButton`),disabled:e.disabled,"aria-label":o.currentView===`year`?e.$primevue.config.locale.nextDecade:o.currentView===`month`?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth,unstyled:e.unstyled,onClick:l.onNextButtonClick,onKeydown:l.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcNextButton`),"data-pc-group-section":`navigator`}),{icon:H(function(t){return[B(e.$slots,`nexticon`,{},function(){return[(L(),b(V(e.nextIcon?`span`:`ChevronRightIcon`),m({class:[e.nextIcon,t.class]},{ref_for:!0},e.ptm(`pcNextButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[Ae,e.numberOfMonths===1?!0:i===e.numberOfMonths-1]])]})],16),o.currentView===`date`?(L(),t(`table`,m({key:0,class:e.cx(`dayView`),role:`grid`},{ref_for:!0},e.ptm(`dayView`)),[c(`thead`,m({ref_for:!0},e.ptm(`tableHeader`)),[c(`tr`,m({ref_for:!0},e.ptm(`tableHeaderRow`)),[e.showWeek?(L(),t(`th`,m({key:0,scope:`col`,class:e.cx(`weekHeader`)},{ref_for:!0},e.ptm(`weekHeader`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tableheadercell`}),[B(e.$slots,`weekheaderlabel`,{},function(){return[c(`span`,m({ref_for:!0},e.ptm(`weekHeaderLabel`,{context:{disabled:e.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),y(l.weekHeaderLabel),17)]})],16,Lt)):R(``,!0),(L(!0),t(a,null,z(l.weekDays,function(n){return L(),t(`th`,m({key:n,scope:`col`,abbr:n},{ref_for:!0},e.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:e.cx(`weekDayCell`)}),[c(`span`,m({class:e.cx(`weekDay`)},{ref_for:!0},e.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),y(n),17)],16,Rt)}),128))],16)],16),c(`tbody`,m({ref_for:!0},e.ptm(`tableBody`)),[(L(!0),t(a,null,z(r.dates,function(n,o){return L(),t(`tr`,m({key:n[0].day+``+n[0].month},{ref_for:!0},e.ptm(`tableBodyRow`)),[e.showWeek?(L(),t(`td`,m({key:0,class:e.cx(`weekNumber`)},{ref_for:!0},e.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[c(`span`,m({class:e.cx(`weekLabelContainer`)},{ref_for:!0},e.ptm(`weekLabelContainer`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tablebodycelllabel`}),[B(e.$slots,`weeklabel`,{weekNumber:r.weekNumbers[o]},function(){return[r.weekNumbers[o]<10?(L(),t(`span`,m({key:0,style:{visibility:`hidden`}},{ref_for:!0},e.ptm(`weekLabel`)),`0`,16)):R(``,!0),x(` `+y(r.weekNumbers[o]),1)]})],16,zt)],16)):R(``,!0),(L(!0),t(a,null,z(n,function(n){return L(),t(`td`,m({key:n.day+``+n.month,"aria-label":n.day,class:e.cx(`dayCell`,{date:n})},{ref_for:!0},e.ptm(`dayCell`,{context:{date:n,today:n.today,otherMonth:n.otherMonth,selected:l.isSelected(n),disabled:!n.selectable}}),{"data-p-today":n.today,"data-p-other-month":n.otherMonth,"data-pc-group-section":`tablebodycell`}),[e.showOtherMonths||!n.otherMonth?E((L(),t(`span`,m({key:0,class:e.cx(`day`,{date:n}),onClick:function(e){return l.onDateSelect(e,n)},draggable:`false`,onKeydown:function(e){return l.onDateCellKeydown(e,n,i)},"aria-selected":l.isSelected(n),"aria-disabled":!n.selectable},{ref_for:!0},e.ptm(`day`,{context:{date:n,today:n.today,otherMonth:n.otherMonth,selected:l.isSelected(n),disabled:!n.selectable}}),{"data-p":l.dayDataP(n),"data-pc-group-section":`tablebodycelllabel`}),[B(e.$slots,`date`,{date:n},function(){return[x(y(n.day),1)]})],16,Vt)),[[g]]):R(``,!0),l.isSelected(n)?(L(),t(`div`,m({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),y(n.day),17)):R(``,!0)],16,Bt)}),128))],16)}),128))],16)],16)):R(``,!0)],16)}),128))],16),o.currentView===`month`?(L(),t(`div`,m({key:0,class:e.cx(`monthView`)},e.ptm(`monthView`)),[(L(!0),t(a,null,z(l.monthPickerValues,function(n,r){return E((L(),t(`span`,m({key:n,onClick:function(e){return l.onMonthSelect(e,{month:n,index:r})},onKeydown:function(e){return l.onMonthCellKeydown(e,{month:n,index:r})},class:e.cx(`month`,{month:n,index:r})},{ref_for:!0},e.ptm(`month`,{context:{month:n,monthIndex:r,selected:l.isMonthSelected(r),disabled:!n.selectable}}),{"data-p-disabled":!n.selectable,"data-p-selected":l.isMonthSelected(r)}),[x(y(n.value)+` `,1),l.isMonthSelected(r)?(L(),t(`div`,m({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),y(n.value),17)):R(``,!0)],16,Ht)),[[g]])}),128))],16)):R(``,!0),o.currentView===`year`?(L(),t(`div`,m({key:1,class:e.cx(`yearView`)},e.ptm(`yearView`)),[(L(!0),t(a,null,z(l.yearPickerValues,function(n){return E((L(),t(`span`,m({key:n.value,onClick:function(e){return l.onYearSelect(e,n)},onKeydown:function(e){return l.onYearCellKeydown(e,n)},class:e.cx(`year`,{year:n})},{ref_for:!0},e.ptm(`year`,{context:{year:n,selected:l.isYearSelected(n.value),disabled:!n.selectable}}),{"data-p-disabled":!n.selectable,"data-p-selected":l.isYearSelected(n.value)}),[x(y(n.value)+` `,1),l.isYearSelected(n.value)?(L(),t(`div`,m({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),y(n.value),17)):R(``,!0)],16,Ut)),[[g]])}),128))],16)):R(``,!0)],64)),(e.showTime||e.timeOnly)&&o.currentView===`date`?(L(),t(`div`,m({key:1,class:e.cx(`timePicker`),"data-p":l.timePickerDataP},e.ptm(`timePicker`)),[c(`div`,m({class:e.cx(`hourPicker`)},e.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[B(e.$slots,`hourincrementbutton`,{callbacks:l.hourIncrementCallbacks},function(){return[u(p,m({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextHour,unstyled:e.unstyled,onMousedown:n[9]||=function(e){return l.onTimePickerElementMouseDown(e,0,1)},onMouseup:n[10]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[12]||=I(function(e){return l.onTimePickerElementMouseDown(e,0,1)},[`enter`]),n[13]||=I(function(e){return l.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:n[11]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[14]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[15]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`incrementicon`,{},function(){return[(L(),b(V(e.incrementIcon?`span`:`ChevronUpIcon`),m({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]}),c(`span`,m(e.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),y(l.formattedCurrentHour),17),B(e.$slots,`hourdecrementbutton`,{callbacks:l.hourDecrementCallbacks},function(){return[u(p,m({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevHour,unstyled:e.unstyled,onMousedown:n[16]||=function(e){return l.onTimePickerElementMouseDown(e,0,-1)},onMouseup:n[17]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[19]||=I(function(e){return l.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),n[20]||=I(function(e){return l.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:n[18]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[21]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[22]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`decrementicon`,{},function(){return[(L(),b(V(e.decrementIcon?`span`:`ChevronDownIcon`),m({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]})],16),c(`div`,m(e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[c(`span`,m(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),y(e.timeSeparator),17)],16),c(`div`,m({class:e.cx(`minutePicker`)},e.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[B(e.$slots,`minuteincrementbutton`,{callbacks:l.minuteIncrementCallbacks},function(){return[u(p,m({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[23]||=function(e){return l.onTimePickerElementMouseDown(e,1,1)},onMouseup:n[24]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[26]||=I(function(e){return l.onTimePickerElementMouseDown(e,1,1)},[`enter`]),n[27]||=I(function(e){return l.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:n[25]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[28]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[29]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`incrementicon`,{},function(){return[(L(),b(V(e.incrementIcon?`span`:`ChevronUpIcon`),m({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),c(`span`,m(e.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),y(l.formattedCurrentMinute),17),B(e.$slots,`minutedecrementbutton`,{callbacks:l.minuteDecrementCallbacks},function(){return[u(p,m({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[30]||=function(e){return l.onTimePickerElementMouseDown(e,1,-1)},onMouseup:n[31]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[33]||=I(function(e){return l.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),n[34]||=I(function(e){return l.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:n[32]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[35]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[36]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`decrementicon`,{},function(){return[(L(),b(V(e.decrementIcon?`span`:`ChevronDownIcon`),m({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16),e.showSeconds?(L(),t(`div`,m({key:0,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[c(`span`,m(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),y(e.timeSeparator),17)],16)):R(``,!0),e.showSeconds?(L(),t(`div`,m({key:1,class:e.cx(`secondPicker`)},e.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[B(e.$slots,`secondincrementbutton`,{callbacks:l.secondIncrementCallbacks},function(){return[u(p,m({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[37]||=function(e){return l.onTimePickerElementMouseDown(e,2,1)},onMouseup:n[38]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[40]||=I(function(e){return l.onTimePickerElementMouseDown(e,2,1)},[`enter`]),n[41]||=I(function(e){return l.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:n[39]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[42]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[43]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`incrementicon`,{},function(){return[(L(),b(V(e.incrementIcon?`span`:`ChevronUpIcon`),m({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),c(`span`,m(e.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),y(l.formattedCurrentSecond),17),B(e.$slots,`seconddecrementbutton`,{callbacks:l.secondDecrementCallbacks},function(){return[u(p,m({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[44]||=function(e){return l.onTimePickerElementMouseDown(e,2,-1)},onMouseup:n[45]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[47]||=I(function(e){return l.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),n[48]||=I(function(e){return l.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:n[46]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[49]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[50]||=I(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`decrementicon`,{},function(){return[(L(),b(V(e.decrementIcon?`span`:`ChevronDownIcon`),m({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16)):R(``,!0),e.hourFormat==`12`?(L(),t(`div`,m({key:2,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[c(`span`,m(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),y(e.timeSeparator),17)],16)):R(``,!0),e.hourFormat==`12`?(L(),t(`div`,m({key:3,class:e.cx(`ampmPicker`)},e.ptm(`ampmPicker`)),[B(e.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return l.toggleAMPM(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[u(p,m({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.am,disabled:e.disabled,unstyled:e.unstyled,onClick:n[51]||=function(e){return l.toggleAMPM(e)},onKeydown:l.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`incrementicon`,{class:O(e.cx(`incrementIcon`))},function(){return[(L(),b(V(e.incrementIcon?`span`:`ChevronUpIcon`),m({class:[e.cx(`incrementIcon`),t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),c(`span`,m(e.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),y(o.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),17),B(e.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return l.toggleAMPM(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[u(p,m({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.pm,disabled:e.disabled,onClick:n[52]||=function(e){return l.toggleAMPM(e)},onKeydown:l.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[B(e.$slots,`decrementicon`,{class:O(e.cx(`decrementIcon`))},function(){return[(L(),b(V(e.decrementIcon?`span`:`ChevronDownIcon`),m({class:[e.cx(`decrementIcon`),t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`onKeydown`,`pt`])]})],16)):R(``,!0)],16,Wt)):R(``,!0),e.showButtonBar?(L(),t(`div`,m({key:2,class:e.cx(`buttonbar`)},e.ptm(`buttonbar`)),[B(e.$slots,`buttonbar`,{todayCallback:function(e){return l.onTodayButtonClick(e)},clearCallback:function(e){return l.onClearButtonClick(e)}},function(){return[B(e.$slots,`todaybutton`,{actionCallback:function(e){return l.onTodayButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[u(p,m({label:l.todayLabel,onClick:n[53]||=function(e){return l.onTodayButtonClick(e)},class:e.cx(`pcTodayButton`),unstyled:e.unstyled,onKeydown:l.onContainerButtonKeydown},e.todayButtonProps,{pt:e.ptm(`pcTodayButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]}),B(e.$slots,`clearbutton`,{actionCallback:function(e){return l.onClearButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[u(p,m({label:l.clearLabel,onClick:n[54]||=function(e){return l.onClearButtonClick(e)},class:e.cx(`pcClearButton`),unstyled:e.unstyled,onKeydown:l.onContainerButtonKeydown},e.clearButtonProps,{pt:e.ptm(`pcClearButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]})]})],16)):R(``,!0),B(e.$slots,`footer`)],16,Mt)):R(``,!0)]}),_:3},16,[`onAfterEnter`,`onAfterLeave`,`onLeave`])]}),_:3},8,[`appendTo`,`disabled`])],16,At)}kt.render=Gt;function Kt(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;let[n,r,i]=[Number(t[1]),Number(t[2]),Number(t[3])],a=new Date(n,r-1,i);return a.getFullYear()===n&&a.getMonth()===r-1&&a.getDate()===i?a:null}function qt(e,t=new Date){let n=Kt(e);if(!n)return null;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n.getTime()-r.getTime())/864e5)}function Jt(e,t=new Date){let n=qt(e,t);return n===null?null:n<0?`overdue`:n===0?`today`:n<=2?`soon`:`later`}function Yt(e,t){let n=Kt(e);return n?n.toLocaleDateString(t,{day:`2-digit`,month:`2-digit`,year:`numeric`}):e}var Xt={class:`kb-card__top`},Zt={class:`kb-card__title`},Qt={class:`kb-card__actions`},$t={key:0,class:`kb-card__groups`},en={key:1,class:`kb-card__assignees`},tn=[`title`],q=[`src`,`onError`],nn={key:2,class:`kb-card__badges`},rn={key:1,class:`kb-card__prio`},an={key:2,class:`pi pi-arrow-up`},on={key:3,class:`kb-card__img-badge`},sn={key:4,class:`pi pi-align-left`},cn={key:5,class:`kb-card__img-badge`},ln={key:6,class:`kb-card__img-badge`},un=T(g({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(e){let n=e,r=l(()=>{let e=n.card.deadline;if(!e)return null;let t=Jt(e);return t?{label:Yt(e),state:t}:null}),i=w(new Set);function o(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}function u(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}return(e,l)=>{let d=be(`tooltip`);return L(),t(a,null,[c(`div`,Xt,[c(`span`,Zt,y(n.card.title),1),c(`div`,Qt,[B(e.$slots,`actions`,{},void 0,!0)])]),n.card.groups?.length?(L(),t(`div`,$t,[(L(!0),t(a,null,z(n.card.groups,e=>(L(),t(`span`,{key:e,class:`kb-card__group`},y(e),1))),128))])):R(``,!0),n.card.assignees?.length?(L(),t(`div`,en,[(L(!0),t(a,null,z(n.card.assignees,e=>(L(),t(`span`,{key:e.id,class:`kb-card__avatar`,style:s(o(e.id)),title:e.name},[n.avatarUrl&&!i.has(e.id)?(L(),t(`img`,{key:0,src:n.avatarUrl(e.id),alt:``,onError:t=>i.add(e.id)},null,40,q)):(L(),t(a,{key:1},[x(y(u(e.name)),1)],64))],12,tn))),128))])):R(``,!0),n.card.markdown||n.card.images.length||n.card.commentCount||n.childCount||n.hasParent||r.value||e.$slots.badges?(L(),t(`div`,nn,[r.value?E((L(),t(`span`,{key:0,class:O([`kb-card__deadline`,`kb-card__deadline--${r.value.state}`])},[l[0]||=c(`i`,{class:`pi pi-calendar`},null,-1),x(` `+y(r.value.label),1)],2)),[[d,n.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):R(``,!0),n.card.priority?E((L(),t(`span`,rn,[x(y(n.card.priority),1)])),[[d,n.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):R(``,!0),n.hasParent?E((L(),t(`i`,an,null,512)),[[d,n.t(`card.hasParent`),void 0,{bottom:!0}]]):R(``,!0),n.childCount?E((L(),t(`span`,on,[l[1]||=c(`i`,{class:`pi pi-sitemap`},null,-1),x(` `+y(n.childCount),1)])),[[d,n.t(`card.hasChildren`),void 0,{bottom:!0}]]):R(``,!0),n.card.markdown?(L(),t(`i`,sn)):R(``,!0),n.card.images.length?(L(),t(`span`,cn,[l[2]||=c(`i`,{class:`pi pi-image`},null,-1),x(` `+y(n.card.images.length),1)])):R(``,!0),n.card.commentCount?(L(),t(`span`,ln,[l[3]||=c(`i`,{class:`pi pi-comment`},null,-1),x(` `+y(n.card.commentCount),1)])):R(``,!0),B(e.$slots,`badges`,{},void 0,!0)])):R(``,!0)],64)}}}),[[`__scopeId`,`data-v-f1127747`]]),dn={key:0,class:`kb-files__thumb`},fn=[`src`,`alt`],pn={key:1,class:`pi pi-file kb-files__icon`},mn=[`title`,`onClick`],hn=[`title`],gn={class:`kb-files__size`},_n=[`title`,`onClick`],vn=T(g({__name:`AttachmentList`,props:{files:{},preview:{},openable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removeLabel:{default:``},compact:{type:Boolean,default:!1}},emits:[`open`,`remove`],setup(e,{emit:n}){let r=n;function i(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}return(n,o)=>e.files.length?(L(),t(`ul`,{key:0,class:O([`kb-files`,{"kb-files--inline":e.compact}])},[(L(!0),t(a,null,z(e.files,(n,a)=>(L(),t(`li`,{key:n.id,class:`kb-files__item`},[e.preview(n)?(L(),t(`span`,dn,[c(`img`,{src:e.preview(n),alt:n.name},null,8,fn)])):(L(),t(`i`,pn)),e.openable?(L(),t(`button`,{key:2,class:`kb-files__name`,title:n.name,onClick:U(e=>r(`open`,n),[`stop`])},y(n.name),9,mn)):(L(),t(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:n.name},y(n.name),9,hn)),c(`span`,gn,y(i(n.size)),1),e.removable?(L(),t(`button`,{key:4,class:`kb-files__remove`,title:e.removeLabel,onClick:U(e=>r(`remove`,a),[`stop`])},[...o[0]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,_n)):R(``,!0)]))),128))],2)):R(``,!0)}}),[[`__scopeId`,`data-v-f30e50ba`]]),J=Uint8Array,yn=Uint16Array,bn=Int32Array,xn=new J([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Sn=new J([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Cn=new J([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wn=function(e,t){for(var n=new yn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new bn(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},Tn=wn(xn,2),En=Tn.b,Dn=Tn.r;En[28]=258,Dn[258]=28;var On=wn(Sn,0),kn=On.b;On.r;for(var An=new yn(32768),Y=0;Y<32768;++Y){var jn=(Y&43690)>>1|(Y&21845)<<1;jn=(jn&52428)>>2|(jn&13107)<<2,jn=(jn&61680)>>4|(jn&3855)<<4,An[Y]=((jn&65280)>>8|(jn&255)<<8)>>1}for(var Mn=(function(e,t,n){for(var r=e.length,i=0,a=new yn(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new yn(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new yn(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[An[d]>>c]=l}else for(s=new yn(r),i=0;i<r;++i)e[i]&&(s[i]=An[o[e[i]-1]++]>>15-e[i]);return s}),Nn=new J(288),Y=0;Y<144;++Y)Nn[Y]=8;for(var Y=144;Y<256;++Y)Nn[Y]=9;for(var Y=256;Y<280;++Y)Nn[Y]=7;for(var Y=280;Y<288;++Y)Nn[Y]=8;for(var Pn=new J(32),Y=0;Y<32;++Y)Pn[Y]=5;var Fn=Mn(Nn,9,1),In=Mn(Pn,5,1),Ln=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Rn=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},zn=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Bn=function(e){return(e+7)/8|0},Vn=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new J(e.subarray(t,n))},X=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],Z=function(e,t,n){var r=Error(t||X[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Z),!n)throw r;return r},Hn=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new J(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new J(i*3));var l=function(e){var t=n.length;if(e>t){var r=new J(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=Rn(e,d,1);var v=Rn(e,d+1,3);if(d+=3,v)if(v==1)p=Fn,m=In,h=9,g=5;else if(v==2){var y=Rn(e,d,31)+257,b=Rn(e,d+10,15)+4,x=y+Rn(e,d+5,31)+1;d+=14;for(var S=new J(x),C=new J(19),w=0;w<b;++w)C[Cn[w]]=Rn(e,d+w*3,7);d+=b*3;for(var T=Ln(C),ee=(1<<T)-1,E=Mn(C,T,1),w=0;w<x;){var D=E[Rn(e,d,ee)];d+=D&15;var O=D>>4;if(O<16)S[w++]=O;else{var k=0,te=0;for(O==16?(te=3+Rn(e,d,3),d+=2,k=S[w-1]):O==17?(te=3+Rn(e,d,7),d+=3):O==18&&(te=11+Rn(e,d,127),d+=7);te--;)S[w++]=k}}var ne=S.subarray(0,y),re=S.subarray(y);h=Ln(ne),g=Ln(re),p=Mn(ne,h,1),m=Mn(re,g,1)}else Z(1);else{var O=Bn(d)+4,ie=e[O-4]|e[O-3]<<8,A=O+ie;if(A>i){c&&Z(0);break}s&&l(f+ie),n.set(e.subarray(O,A),f),t.b=f+=ie,t.p=d=A*8,t.f=u;continue}if(d>_){c&&Z(0);break}}s&&l(f+131072);for(var j=(1<<h)-1,M=(1<<g)-1,N=d;;N=d){var k=p[zn(e,d)&j],P=k>>4;if(d+=k&15,d>_){c&&Z(0);break}if(k||Z(2),P<256)n[f++]=P;else if(P==256){N=d,p=null;break}else{var ae=P-254;if(P>264){var w=P-257,F=xn[w];ae=Rn(e,d,(1<<F)-1)+En[w],d+=F}var oe=m[zn(e,d)&M],se=oe>>4;oe||Z(3),d+=oe&15;var re=kn[se];if(se>3){var F=Sn[se];re+=zn(e,d)&(1<<F)-1,d+=F}if(d>_){c&&Z(0);break}s&&l(f+131072);var I=f+ae;if(f<re){var ce=a-re,le=Math.min(re,I);for(ce+f<0&&Z(3);f<le;++f)n[f]=r[ce+f]}for(;f<I;++f)n[f]=n[f-re]}}t.l=p,t.p=N,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?Vn(n,0,f):n.subarray(0,f)},Un=new J(0),Wn=function(e,t){return e[t]|e[t+1]<<8},Gn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Kn=function(e,t){return Gn(e,t)+Gn(e,t+4)*4294967296};function qn(e,t){return Hn(e,{i:2},t&&t.out,t&&t.dictionary)}var Jn=typeof TextDecoder<`u`&&new TextDecoder;try{Jn.decode(Un,{stream:!0})}catch{}var Yn=function(e){for(var t=``,n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:Vn(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Xn(e,t){if(t){for(var n=``,r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}else if(Jn)return Jn.decode(e);else{var i=Yn(e),a=i.s,n=i.r;return n.length&&Z(8),a}}var Zn=function(e,t){return t+30+Wn(e,t+26)+Wn(e,t+28)},Qn=function(e,t,n){var r=Wn(e,t+28),i=Xn(e.subarray(t+46,t+46+r),!(Wn(e,t+8)&2048)),a=t+46+r,o=Gn(e,t+20),s=n&&o==4294967295?$n(e,a):[o,Gn(e,t+24),Gn(e,t+42)],c=s[0],l=s[1],u=s[2];return[Wn(e,t+10),c,l,i,a+Wn(e,t+30)+Wn(e,t+32),u]},$n=function(e,t){for(;Wn(e,t)!=1;t+=4+Wn(e,t+2));return[Kn(e,t+12),Kn(e,t+4),Kn(e,t+20)]};function er(e,t){for(var n={},r=e.length-22;Gn(e,r)!=101010256;--r)(!r||e.length-r>65558)&&Z(13);var i=Wn(e,r+8);if(!i)return{};var a=Gn(e,r+16),o=a==4294967295||i==65535;if(o){var s=Gn(e,r-12);o=Gn(e,s)==101075792,o&&(i=Gn(e,s+32),a=Gn(e,s+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=Qn(e,a,o),d=u[0],f=u[1],p=u[2],m=u[3],h=u[4],g=u[5],_=Zn(e,g);a=h,(!c||c({name:m,size:f,originalSize:p,compression:d}))&&(d?d==8?n[m]=qn(e.subarray(_,_+f),{out:new J(p)}):Z(14,`unknown compression type `+d):n[m]=Vn(e,_,_+f))}return n}var tr=2e3,nr=100,rr=5e3,ir=300,ar={csv:`sheet`,tsv:`sheet`,xlsx:`sheet`,xlsm:`sheet`,ods:`sheet`,docx:`doc`,odt:`doc`,pptx:`slides`,odp:`slides`},or={"text/csv":`sheet`,"text/tab-separated-values":`sheet`,"application/csv":`sheet`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`sheet`,"application/vnd.ms-excel.sheet.macroenabled.12":`sheet`,"application/vnd.oasis.opendocument.spreadsheet":`sheet`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`doc`,"application/vnd.oasis.opendocument.text":`doc`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`slides`,"application/vnd.oasis.opendocument.presentation":`slides`};function sr(e,t){return ar[t.toLowerCase().split(`.`).pop()??``]??or[(e||``).toLowerCase().split(`;`)[0].trim()]??null}async function cr(e,t,n,r){let i=n.toLowerCase().split(`.`).pop()??``;if(i===`csv`||i===`tsv`)return mr(new TextDecoder().decode(t),n);let a=er(new Uint8Array(t)),o=a[`content.xml`];return o?xr(e,Xn(o)):e===`doc`?{mode:`render`,render:e=>lr(t,r,e)}:e===`slides`?yr(a):ur(t,r)}async function lr(e,t,n){let{renderAsync:r}=await S(async()=>{let{renderAsync:e}=await import(`./docx-preview-WFENW7jt.js`);return{renderAsync:e}},__vite__mapDeps([0,1,2]));await r(new Blob([e],{type:t}),n,void 0,{inWrapper:!0,breakPages:!0,renderAltChunks:!1,renderComments:!1,useBase64URL:!0}),fr(n)}async function ur(e,t){let n=(await S(async()=>{let{default:e}=await import(`./browser-BJX5ZrVN.js`);return{default:e}},[])).default,r=await n(new Blob([e],{type:t})),i=!1,a=r.map((e,t)=>(e.data.length>tr&&(i=!0),{name:e.sheet||`Sheet${t+1}`,rows:e.data.slice(0,tr).map(e=>(e.length>nr&&(i=!0),e.slice(0,nr).map(dr)))}));if(!a.length)throw Error(`no worksheet`);return{mode:`sheet`,sheets:a,truncated:i}}function dr(e){if(e==null)return``;if(e instanceof Date){let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t.slice(0,19).replace(`T`,` `)}if(typeof e==`object`)try{return JSON.stringify(e)??``}catch{return`[objet]`}return typeof e==`string`?e:String(e)}function fr(e){for(let t of Array.from(e.querySelectorAll(`script, iframe, object, embed`)))t.remove();for(let t of Array.from(e.querySelectorAll(`*`)))for(let e of Array.from(t.attributes)){let n=e.name.toLowerCase();(n.startsWith(`on`)||/^(href|src|xlink:href)$/.test(n)&&/^\s*javascript:/i.test(e.value))&&t.removeAttribute(e.name)}}function pr(e){let t=e.slice(0,4096).split(/\r?\n/)[0]??``,n=[`,`,`;`,` `,`|`].map(e=>[e,t.split(e).length]);return n.sort((e,t)=>t[1]-e[1]),n[0][1]>1?n[0][0]:`,`}function mr(e,t){let n=t.toLowerCase().endsWith(`.tsv`)?` `:pr(e),r=[],i=[],a=``,o=!1;for(let t=0;t<e.length;t+=1){let s=e[t];if(o){s===`"`?e[t+1]===`"`?(a+=`"`,t+=1):o=!1:a+=s;continue}if(s===`"`)o=!0;else if(s===n)i.push(a),a=``;else if(s===`
|
|
570
|
-
`||s===`\r`){if(s===`\r`&&e[t+1]===`
|
|
571
|
-
`&&(t+=1),i.push(a),a=``,r.push(i),i=[],r.length>=tr)break}else a+=s}(a||i.length)&&(i.push(a),r.push(i));let s=r.length>=tr;return{mode:`sheet`,sheets:[{name:t||`CSV`,rows:r.map(hr)}],truncated:s}}function hr(e){return e.length>nr?e.slice(0,nr):e}function gr(e){let t=new DOMParser().parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length)throw Error(`invalid XML`);return t}function _r(e,t){return Array.from(e.getElementsByTagName(t))}function vr(e,t){return _r(e,t).map(e=>e.textContent??``).join(``)}function yr(e){let t=Object.keys(e).filter(e=>/^ppt\/slides\/slide\d+\.xml$/.test(e)).sort((e,t)=>br(e)-br(t));if(!t.length)throw Error(`no slide`);let n=[];for(let r of t.slice(0,ir)){let t=_r(gr(Xn(e[r])),`a:p`).map(e=>vr(e,`a:t`).trim()).filter(Boolean);n.push({title:t[0]??``,lines:t.slice(1)})}return{mode:`slides`,slides:n,truncated:t.length>ir}}function br(e){return Number(/(\d+)\.xml$/.exec(e)?.[1]??0)}function xr(e,t){let n=gr(t);return e===`sheet`?Cr(n):e===`doc`?wr(n):Tr(n)}function Sr(e,t,n){let r=Number(e.getAttribute(t)??`1`);return!Number.isFinite(r)||r<1?1:Math.min(r,n)}function Cr(e){let t=[],n=!1;for(let r of _r(e,`table:table`)){let e=[];for(let t of _r(r,`table:table-row`)){if(e.length>=tr){n=!0;break}let r=[];for(let e of _r(t,`table:table-cell`)){if(r.length>=nr){n=!0;break}let t=_r(e,`text:p`).map(e=>e.textContent??``).join(`
|
|
572
|
-
`),i=Sr(e,`table:number-columns-repeated`,nr);for(let e=0;e<(t?i:1);e+=1)r.push(t)}for(;r.length&&r[r.length-1]===``;)r.pop();let i=Sr(t,`table:number-rows-repeated`,tr);for(let t=0;t<(r.length?i:1);t+=1)e.push([...r])}for(;e.length&&e[e.length-1].length===0;)e.pop();t.push({name:r.getAttribute(`table:name`)||`Table${t.length+1}`,rows:e})}if(!t.length)throw Error(`no table`);return{mode:`sheet`,sheets:t,truncated:n}}function wr(e){let t=e.getElementsByTagName(`office:text`)[0];if(!t)throw Error(`no text body`);let n=[],r=!1,i=e=>{for(let t of Array.from(e.children)){if(n.length>=rr){r=!0;return}let e=(t.textContent??``).trim();if(t.tagName===`text:h`)e&&n.push({type:`heading`,level:Math.min(6,Number(t.getAttribute(`text:outline-level`)??`1`)||1),text:e});else if(t.tagName===`text:p`)e&&n.push({type:`paragraph`,text:e});else if(t.tagName===`text:list`)for(let e of _r(t,`text:list-item`)){let t=(e.textContent??``).trim();t&&n.push({type:`list`,text:t})}else t.tagName===`table:table`?n.push({type:`table`,rows:_r(t,`table:table-row`).slice(0,tr).map(e=>_r(e,`table:table-cell`).slice(0,nr).map(e=>(e.textContent??``).trim()))}):t.children.length&&i(t)}};return i(t),{mode:`blocks`,blocks:n,truncated:r}}function Tr(e){let t=_r(e,`draw:page`);if(!t.length)throw Error(`no slide`);return{mode:`slides`,slides:t.slice(0,ir).map(e=>{let t=_r(e,`text:p`).map(e=>(e.textContent??``).trim()).filter(Boolean);return{title:t[0]??``,lines:t.slice(1)}}),truncated:t.length>ir}}var Er={key:0,class:`kb-upload`},Dr={key:0,class:`kb-upload__list`},Or=[`title`],kr={class:`kb-upload__bar`},Ar={class:`kb-upload__pct`},jr={key:1,class:`kb-upload__status`},Mr={key:2,class:`kb-upload__errors`},Nr=T(g({__name:`UploadProgress`,props:{queue:{},errors:{},uploading:{type:Boolean,default:!1},uploadingLabel:{default:``}},setup(e){return(n,r)=>e.queue.length||e.errors.length||e.uploading&&!e.queue.length?(L(),t(`div`,Er,[e.queue.length?(L(),t(`ul`,Dr,[(L(!0),t(a,null,z(e.queue,e=>(L(),t(`li`,{key:e.key},[c(`span`,{class:`kb-upload__name`,title:e.name},y(e.name),9,Or),c(`span`,kr,[c(`span`,{class:`kb-upload__bar-fill`,style:s({width:`${Math.round(e.ratio*100)}%`})},null,4)]),c(`span`,Ar,y(Math.round(e.ratio*100))+`%`,1)]))),128))])):e.uploading?(L(),t(`p`,jr,y(e.uploadingLabel),1)):R(``,!0),e.errors.length?(L(),t(`ul`,Mr,[(L(!0),t(a,null,z(e.errors,(e,n)=>(L(),t(`li`,{key:n},y(e.name)+` — `+y(e.reason),1))),128))])):R(``,!0)])):R(``,!0)}}),[[`__scopeId`,`data-v-06e54521`]]);function Pr(e,t){let n=new Map(e.map(e=>[e.id,e])),r=[],i=new Set,a=t;for(;a&&n.has(a)&&!i.has(a);)i.add(a),r.unshift(a),a=n.get(a).parentId;return r}function Fr(e,t){let n=[],r=new Map,i=[...e].sort((e,t)=>e.order-t.order||e.id.localeCompare(t.id));for(let e of i){let i=n;for(let n of Pr(t,e.groupId)){let e=r.get(n);e||(e={kind:`group`,id:n,children:[]},r.set(n,e),i.push(e)),i=e.children}i.push({kind:`column`,id:e.id,children:[]})}let a=e=>{let i=r.get(e.id);if(i)return i;let o={kind:`group`,id:e.id,children:[]};r.set(e.id,o);let s=e.parentId?t.find(t=>t.id===e.parentId):void 0;return(s?a(s).children:n).push(o),o};for(let e of t)Pr(t,e.id).length&&a(e);return n}function Ir(e){return e.flatMap(e=>e.kind===`column`?[e.id]:Ir(e.children))}function Lr(e,t,n,r){let i=Fr(e,t),a=e=>{let t=e.findIndex(e=>e.id===n);if(t!==-1){let n=t+r;if(n<0||n>=e.length)return!1;let[i]=e.splice(t,1);return e.splice(n,0,i),!0}return e.some(e=>e.kind===`group`&&a(e.children))};return a(i)?Ir(i):null}var Rr={class:`kg-lead`},zr={key:0,class:`kg-create`},Br={class:`kg-tree`},Vr={key:0,class:`kg-empty`},Hr=[`draggable`,`onDragstart`,`onDragover`,`onDrop`],Ur={key:2,class:`kg-row__title`},Wr={key:3,class:`kg-row__count`},Gr={key:4,class:`kg-row__actions`},Kr=[`onClick`],qr={class:`kg-loose__label`},Jr={key:0,class:`kg-empty`},Yr=[`draggable`,`onDragstart`],Xr={class:`kg-row__title`},Zr=T(g({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(e,{emit:n}){let o=e,d=n,p=oe(),m=o.t,h=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],g=l(()=>new Map(o.groups.map(e=>[e.id,e])));function _(e){return o.columns.filter(t=>(t.groupId&&g.value.has(t.groupId)?t.groupId:void 0)===e)}function v(e){return o.groups.filter(t=>(t.parentId??void 0)===e)}function x(e){return _(e).length+v(e).reduce((e,t)=>e+x(t.id),0)}let S=l(()=>Fr(o.columns,o.groups)),C=l(()=>{let e=[],t=(n,r)=>{for(let i of n){if(i.kind===`column`){if(r===0)continue;let t=o.columns.find(e=>e.id===i.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:r});continue}let n=g.value.get(i.id);n&&(e.push({kind:`group`,id:n.id,title:n.title,color:n.color,depth:r,columnCount:x(n.id)}),t(i.children,r+1))}};return t(S.value,0),e});function w(e,t){let n=Lr(o.columns,o.groups,e,t);n&&d(`intent`,{kind:`columns-reorder`,columnIds:n})}function T(e,t){return Lr(o.columns,o.groups,e,t)!==null}let ee=l(()=>_(void 0)),E=r(``);function D(){let e=E.value.trim();e&&(d(`intent`,{kind:`group-add`,title:e,color:h[o.groups.length%h.length]}),E.value=``)}let k=r(null);function te(e){e.kind===`group`&&(k.value={id:e.id,title:e.title})}function ne(){let e=k.value;if(!e)return;let t=e.title.trim(),n=g.value.get(e.id);t&&n&&t!==n.title&&d(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),k.value=null}function re(e,t){let n=g.value.get(e)?.color;d(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function ie(e){e.kind===`group`&&p.require({message:m(`groups.deleteConfirm`,{title:e.title}),header:m(`groups.deleteHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,accept:()=>d(`intent`,{kind:`group-delete`,groupId:e.id})})}let j=r(null),M=r(null);function N(e,t,n){o.readOnly||(j.value={kind:e,id:t},n.dataTransfer?.setData(`text/plain`,t),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`))}function P(e,t){if(!e)return!1;if(e.kind===`column`||t===null)return!0;let n=t,r=new Set;for(;n&&!r.has(n);){if(n===e.id)return!1;r.add(n),n=g.value.get(n)?.parentId}return!0}function ae(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(M.value=null)}function F(e,t){P(j.value,e)&&(t.preventDefault(),M.value=e??`root`)}function se(e){let t=o.columns.find(t=>t.id===e)?.groupId;return t&&g.value.has(t)?t:null}function ce(e){let t=j.value,n=P(t,e);M.value=null,j.value=null,!(!t||!n)&&d(`intent`,{kind:`group-assign`,member:t,groupId:e})}function le(){d(`update:visible`,!1)}return(n,r)=>(L(),b(A(i),{visible:e.visible,header:A(m)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":le},{default:H(()=>[c(`p`,Rr,y(A(m)(`groups.lead`)),1),e.readOnly?R(``,!0):(L(),t(`div`,zr,[u(A(Se),{modelValue:E.value,"onUpdate:modelValue":r[0]||=e=>E.value=e,placeholder:A(m)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:I(D,[`enter`])},null,8,[`modelValue`,`placeholder`]),u(A(f),{label:A(m)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:D},null,8,[`label`])])),c(`div`,Br,[C.value.length?R(``,!0):(L(),t(`div`,Vr,y(A(m)(`groups.empty`)),1)),(L(!0),t(a,null,z(C.value,n=>(L(),t(`div`,{key:`${n.kind}-${n.id}`,class:O([`kg-row`,{"kg-row--group":n.kind===`group`,"kg-row--target":M.value===n.id}]),style:s({paddingLeft:`${n.depth*1.25}rem`}),draggable:!e.readOnly,onDragstart:e=>N(n.kind,n.id,e),onDragover:e=>F(n.kind===`group`?n.id:se(n.id),e),onDragleave:ae,onDrop:U(e=>ce(n.kind===`group`?n.id:se(n.id)),[`prevent`]),onDragend:r[2]||=e=>{j.value=null,M.value=null}},[c(`i`,{class:O([n.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),n.kind===`group`?(L(),t(`span`,{key:0,class:`kg-swatch`,style:s({background:n.color||`var(--p-text-muted-color)`})},null,4)):R(``,!0),k.value&&k.value.id===n.id?(L(),b(A(Se),{key:1,modelValue:k.value.title,"onUpdate:modelValue":r[1]||=e=>k.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:I(ne,[`enter`]),onBlur:ne},null,8,[`modelValue`])):(L(),t(`span`,Ur,y(n.title),1)),n.kind===`group`?(L(),t(`span`,Wr,y(A(m)(`groups.columnCount`,{count:n.columnCount})),1)):R(``,!0),e.readOnly?R(``,!0):(L(),t(`div`,Gr,[u(A(f),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!T(n.id,-1),"aria-label":A(m)(`groups.moveUp`),class:`kg-move`,onClick:e=>w(n.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),u(A(f),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!T(n.id,1),"aria-label":A(m)(`groups.moveDown`),class:`kg-move`,onClick:e=>w(n.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),n.kind===`group`?(L(),t(a,{key:0},[(L(),t(a,null,z(h,e=>c(`span`,{key:e,class:O([`kg-dot`,{"kg-dot--on":n.color===e}]),style:s({background:e}),onClick:t=>re(n.id,e)},null,14,Kr)),64)),u(A(f),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>te(n)},null,8,[`onClick`]),u(A(f),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ie(n)},null,8,[`onClick`])],64)):R(``,!0)]))],46,Hr))),128))]),c(`div`,{class:O([`kg-loose`,{"kg-row--target":M.value===`root`}]),onDragover:r[4]||=e=>F(null,e),onDragleave:ae,onDrop:r[5]||=U(e=>ce(null),[`prevent`])},[c(`div`,qr,y(A(m)(`groups.loose`)),1),ee.value.length?R(``,!0):(L(),t(`div`,Jr,y(A(m)(`groups.looseEmpty`)),1)),(L(!0),t(a,null,z(ee.value,n=>(L(),t(`div`,{key:n.id,class:`kg-row`,draggable:!e.readOnly,onDragstart:e=>N(`column`,n.id,e),onDragend:r[3]||=e=>{j.value=null,M.value=null}},[r[6]||=c(`i`,{class:`pi pi-list kg-row__icon`},null,-1),c(`span`,Xr,y(n.title),1)],40,Yr))),128))],34)]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-48711454`]]),Qr={class:`kb-header`},$r={class:`kb-header__search`},ei={key:1,class:`kb-header__search-more`},ti={key:1,class:`kb-header__readonly`},ni={class:`kb-boardwrap`},ri={class:`kb-band__title`},ii={class:`kb-band__count`},ai=[`data-col-id`,`draggable`,`onDragstart`,`onDragover`,`onDragleave`,`onDrop`,`onTouchstart`],oi=[`title`,`onClick`],si={class:`kb-col__count`},ci={key:0,class:`pi pi-bell kb-col__bell--on`},li={key:1,class:`kb-col__header`},ui=[`value`,`readonly`,`onBlur`],di={class:`kb-col__header-right`},fi={class:`kb-col__count`},pi=[`onClick`],mi={key:3,class:`kb-col__cards`},hi=[`data-card-id`,`draggable`,`onDragstart`,`onDragover`,`onTouchstart`,`onClick`],gi=[`onClick`],_i=[`onClick`],vi={key:0,class:`kb-col__empty`},yi=[`onClick`],bi={class:`kb-subscribe__lead`},xi={class:`kb-subscribe__legend`},Si={class:`kb-subscribe__options`},Ci={class:`kb-subscribe__no`},wi={class:`kb-subscribe__legend`},Ti={class:`kb-subscribe__options`},Ei={class:`kb-subscribe__channels`},Di={class:`kb-tpl-intro`},Oi={class:`kb-tpl-list`},ki=[`onClick`],Ai={key:0,class:`kb-add-col`},ji={key:0,class:`kb-add-col__form`},Mi={class:`kb-add-col__actions`},Ni={class:`kb-filters__body`},Pi={class:`kb-filters__section`},Fi={class:`kb-side__label`},Ii={class:`kb-ops`},Li=[`onClick`],Ri={key:0,class:`kb-prio`},zi={class:`kb-prio__value`},Bi={key:1,class:`kb-side__hint`},Vi={class:`kb-filters__section`},Hi={class:`kb-side__label`},Ui={class:`kb-colors`},Wi=[`onClick`],Gi={class:`kb-filters__section`},Ki={class:`kb-side__label`},qi={key:0,class:`pi pi-ban`},Ji={class:`kb-filters__section`},Yi={class:`kb-side__label`},Xi={key:0,class:`pi pi-ban`},Zi={class:`kb-filters__section`},Qi={class:`kb-side__label`},$i={key:0,class:`pi pi-ban`},ea={key:1,class:`kb-link__col`},ta={class:`kb-side__hint`},na={class:`kb-archive__hint`},ra={class:`kb-archive__search`},ia={key:0,class:`kb-archive__empty`},aa={key:1,class:`kb-archive__empty`},oa={key:2,class:`kb-archive__empty`},sa={key:0,class:`kb-archive__filtered`},ca={key:1,class:`kb-archive__filtered`},la={class:`kb-archive__list`},ua=[`onClick`],da=[`onClick`],fa={class:`kb-archive__meta`},pa={key:0},ma={key:1},ha={key:0,class:`kb-dialog`},ga={class:`kb-dialog__main`},_a={class:`kb-dialog__edit-content`},va={class:`kb-dialog__field`},ya={for:`kanban-card-title`,class:`kb-dialog__label`},ba={class:`kb-dialog__field`},xa={for:`kanban-card-content`,class:`kb-dialog__label`},Sa={class:`kb-dialog__field`},Ca={for:`kanban-card-images`,class:`kb-dialog__label`},wa={key:0,class:`kb-dialog__images`},Ta=[`src`],Ea=[`onClick`],Da={key:1,class:`kb-dialog__upload`},Oa={class:`kb-rel`},ka={key:0,class:`kb-rel__section`},Aa={class:`kb-rel__title`},ja={key:0,class:`kb-rel__table`},Ma={class:`kb-rel__people`},Na={class:`kb-rel__num`},Pa={class:`kb-rel__actions-col`},Fa={class:`kb-rel__card`},Ia={class:`kb-rel__board`},La={class:`kb-rel__people`},Ra={key:0,class:`kb-card__assignees`},za=[`title`],Ba=[`src`,`onError`],Va={key:1,class:`kb-rel__none`},Ha={class:`kb-rel__num`},Ua={class:`kb-rel__actions-col`},Wa=[`title`],Ga=[`title`],Ka={key:1,class:`kb-rel__empty`},qa={class:`kb-coloption`},Ja={class:`kb-link__col`},Ya={key:1,class:`kb-rel__section`},Xa={class:`kb-rel__title`},Za={key:0,class:`kb-rel__table`},Qa={class:`kb-rel__people`},$a={class:`kb-rel__num`},eo={class:`kb-rel__actions-col`},to={class:`kb-rel__card`},no={class:`kb-rel__board`},ro={class:`kb-rel__people`},io={key:0,class:`kb-card__assignees`},ao=[`title`],oo=[`src`,`onError`],so={key:1,class:`kb-rel__none`},co={class:`kb-rel__num`},lo={class:`kb-rel__actions-col`},uo=[`title`,`onClick`],fo=[`title`,`onClick`],po={key:1,class:`kb-rel__empty`},mo={class:`kb-coloption`},ho={class:`kb-link__col`},go={key:2,class:`kb-rel__empty`},_o={class:`kb-comments`},vo={key:0,class:`kb-comments__empty`},yo={key:1,class:`kb-comments__list`},bo=[`onClick`],xo={key:0,class:`pi pi-sparkles`},So=[`src`,`onError`],Co={key:3,class:`pi pi-user`},wo={class:`kb-comments__body`},To={class:`kb-comments__meta`},Eo={class:`kb-comments__author`},Do={class:`kb-comments__time`},Oo={key:0,class:`kb-comments__edited`},ko={key:1,class:`kb-comments__tools`},Ao=[`title`,`onClick`],jo=[`title`,`onClick`],Mo={class:`kb-comments__actions`},No=[`onClick`,`innerHTML`],Po=[`onClick`],Fo=[`onKeydown`],Io={class:`kb-comments__actions`},Lo=[`title`],Ro={class:`kb-comments__hint`},zo={class:`kb-history`},Bo={key:0,class:`kb-history__empty`},Vo={key:1,class:`kb-history__timeline`},Ho=[`onClick`],Uo={class:`kb-history__icon`},Wo={class:`kb-history__body`},Go={class:`kb-history__label`},Ko={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},qo={key:0,class:`kb-history__detail`},Jo={class:`kb-history__time`},Yo={class:`kb-side`},Xo={key:0,class:`kb-side__block`},Zo={class:`kb-side__label`},Qo=[`title`],$o=[`src`,`onError`],es={class:`kb-assignee`},ts=[`src`,`onError`],ns={class:`kb-side__hint`},rs={class:`kb-side__block`},is={class:`kb-side__label`},as={key:0,class:`kb-prio__value`},os={key:0,class:`kb-prio`},ss=[`title`],cs={key:2,class:`kb-side__hint`},ls={class:`kb-side__block`},us={class:`kb-side__label`},ds={class:`kb-deadline`},fs=[`title`],ps={key:0,class:`kb-side__hint`},ms={class:`kb-side__block`},hs={class:`kb-side__label`},gs={class:`kb-groups__option`},_s={class:`kb-side__hint`},vs={key:1,class:`kb-side__block`},ys={class:`kb-side__label`},bs={class:`kb-tree`},xs={key:0,class:`pi pi-angle-right kb-tree__branch`},Ss=[`title`,`onClick`],Cs={class:`kb-tree__label`},ws={class:`kb-side__block`},Ts={class:`kb-side__label`},Es={class:`kb-colors`},Ds=[`disabled`],Os=[`disabled`,`onClick`],ks={class:`kb-side__hint`},As={key:2,class:`kb-side__block`},js={class:`kb-side__label`},Ms={class:`kb-side__hint`},Ns={key:3,class:`kb-side__block`},Ps={class:`kb-side__label`},Fs={class:`kb-colgroup__label`},Is={class:`kb-coloption`},Ls={key:0,class:`pi pi-arrow-right kb-coloption__away`},Rs={key:0,class:`kb-side__hint`},zs={class:`kb-side__block kb-side__meta`},Bs={key:0},Vs={key:4,class:`kb-side__block`},Hs={class:`kb-side__label`},Us={class:`kb-side__convs`},Ws=[`title`,`onClick`],Gs={class:`kb-side__conv-label`},Ks={key:5,class:`kb-side__block`},qs={class:`kb-side__label`},Js={class:`kb-side__actions`},Ys={key:6,class:`kb-side__block kb-side__danger`},Xs={class:`kb-dialog__footer`},Zs={key:0,class:`kb-dialog__unsaved`},Qs={key:0,class:`kb-viewer`},$s=[`src`,`alt`],ec=[`src`,`title`],tc=[`src`],nc=[`src`],rc={key:4,class:`kb-viewer__office`},ic={key:0,class:`kb-viewer__tabs`},ac=[`onClick`],oc={class:`kb-viewer__scroll`},sc={key:0,class:`kb-viewer__table`},cc={key:1,class:`kb-viewer__empty`},lc={key:5,class:`kb-viewer__office`},uc={class:`kb-viewer__scroll kb-viewer__doc`},dc={key:0},fc={key:1},pc={key:2},mc={key:3,class:`kb-viewer__li`},hc={key:4,class:`kb-viewer__table`},gc={key:5},_c={key:0,class:`kb-viewer__empty`},vc={key:6,class:`kb-viewer__office`},yc={class:`kb-viewer__scroll kb-viewer__slides`},bc={class:`kb-viewer__slide-no`},xc={key:0},Sc={key:7,class:`kb-viewer__office`},Cc={key:0,class:`kb-viewer__empty`},wc={key:8,class:`kb-viewer__text`},Tc={key:9,class:`kb-viewer__truncated`},Ec={key:0,class:`kb-colmenu`},Dc={class:`kb-colmenu__host`},Q=`\0void`,Oc=26,kc=512*1024,Ac=55*1024*1024,jc=5*1024*1024,Mc=400,Nc=8,Pc=60,Fc=12,Ic=T(g({__name:`KanbanBoard`,props:{columns:{},columnGroups:{default:()=>[]},name:{},readOnly:{type:Boolean,default:!1},t:{},resolveConversationId:{type:Function,default:void 0},currentUserId:{default:void 0},members:{default:()=>[]},avatarUrl:{type:Function,default:void 0},uploadImage:{type:Function,default:void 0},fetchAttachment:{type:Function,default:void 0},columnSubscriptions:{default:void 0},deleteAttachment:{type:Function,default:void 0},templates:{default:()=>[]},loadHistory:{type:Function,default:void 0},histories:{default:void 0},addComment:{type:Function,default:void 0},editComment:{type:Function,default:void 0},removeComment:{type:Function,default:void 0},moveCard:{type:Function,default:void 0},otherBoards:{default:()=>[]},moveCardToBoard:{type:Function,default:void 0},cardLinks:{default:()=>[]},linkedCards:{default:()=>[]},setCardParent:{type:Function,default:void 0},archivedCards:{default:()=>[]},loadingArchive:{type:Boolean,default:!1},archiveTruncated:{type:Boolean,default:!1},searchMatches:{default:null},searchTruncated:{type:Boolean,default:!1}},emits:[`intent`,`back`,`open-conversation`,`card-open`,`update-column-subscription`,`open-linked-card`,`load-archive`,`search-cards`],setup(e,{expose:n,emit:o}){let d=e,p=l(()=>d.loadHistory!==void 0),m=o,h=oe(),g=d.t;function _(){if(crypto.randomUUID)return crypto.randomUUID();let e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``);return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}function v(e){return JSON.parse(JSON.stringify(e))}let S=r(v(d.columns));P(()=>d.columns,e=>{S.value=v(e),Jt()});function C(e,t){S.value=e,t&&m(`intent`,t)}let T=r(``),ee=r(!1),D=r(``),k=l(()=>[...S.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),te=r(!1),j=r(`gte`),M=r(null),N=r([]),F=r([]),se=r([]),ce=r(!1),le=r(!1),ue=r(!1),de=r([]),pe=l(()=>{let e=new Set;for(let t of de.value){for(let n of rn(t,`up`))e.add(n);for(let n of rn(t,`down`))e.add(n)}return e}),me=l(()=>M.value!==null||j.value===`none`),he=l(()=>(me.value?1:0)+(N.value.length?1:0)+(F.value.length||ce.value?1:0)+(se.value.length||le.value?1:0)+(de.value.length||ue.value?1:0));function ge(){M.value=null,j.value=`gte`,N.value=[],F.value=[],se.value=[],de.value=[],ce.value=!1,le.value=!1,ue.value=!1}function _e(e){if(j.value===`none`){if(e.priority!==void 0)return!1}else if(M.value!==null){let t=e.priority;if(t===void 0||j.value===`eq`&&t!==M.value||j.value===`gte`&&t<M.value||j.value===`lte`&&t>M.value)return!1}if(N.value.length&&!N.value.includes(e.color??``))return!1;let t=e.groups??[];if(F.value.length||ce.value){let e=F.value.length&&t.some(e=>F.value.includes(e)),n=ce.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(se.value.length||le.value){let e=se.value.length&&n.some(e=>se.value.includes(e.id)),t=le.value&&n.length===0;if(!e&&!t)return!1}if(de.value.length||ue.value){let t=de.value.length&&pe.value.has(e.id),n=ue.value&&!$t(e.id)&&en(e.id).length===0;if(!t&&!n)return!1}return!0}let ve=l({get:()=>ce.value?[Q,...F.value]:F.value,set:e=>{ce.value=e.includes(Q),F.value=e.filter(e=>e!==Q)}}),ye=l(()=>[Q,...ft.value]),xe=l({get:()=>le.value?[Q,...se.value]:se.value,set:e=>{le.value=e.includes(Q),se.value=e.filter(e=>e!==Q)}}),Ce=l(()=>[{userId:Q,name:g(`filters.noAssignees`)},...d.members]),Ee=l({get:()=>ue.value?[Q,...de.value]:de.value,set:e=>{ue.value=e.includes(Q),de.value=e.filter(e=>e!==Q)}}),De=l(()=>[{id:Q,title:g(`filters.noFamily`),column:``},...k.value.flatMap(e=>e.cards.map(t=>({id:t.id,title:t.title,column:e.title}))),...d.archivedCards.map(e=>({id:e.id,title:e.title,column:g(`archive.title`)}))]),V=l(()=>{let e=d.searchMatches,t=he.value>0;return!e&&!t?k.value:k.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||_e(n)))}))}),Oe=r(!1),ke=l(()=>new Map((d.columnGroups??[]).map(e=>[e.id,e])));function je(e){let t=[],n=new Set,r=e;for(;r&&ke.value.has(r)&&!n.has(r);)n.add(r),t.unshift(r),r=ke.value.get(r).parentId;return t}let Ne=l(()=>{let e=new Map;for(let t of V.value)je(t.groupId).forEach((n,r)=>{let i=ke.value.get(n),a=e.get(n)??{id:n,title:i.title,color:i.color,depth:r,colIds:[]};a.colIds.push(t.id),e.set(n,a)});return[...e.values()]}),Fe=l(()=>Ne.value.length?(Math.max(...Ne.value.map(e=>e.depth))+1)*Oc:0),Le=r(null),Ge=r([]);function Ke(){let e=Le.value;if(!e||!Ne.value.length){Ge.value=[];return}Ge.value=Ne.value.flatMap(t=>{let n=t.colIds.map(t=>e.querySelector(`[data-col-id="${CSS.escape(t)}"]`)).filter(e=>e!==null);if(!n.length)return[];let r=Math.min(...n.map(e=>e.offsetLeft)),i=Math.max(...n.map(e=>e.offsetLeft+e.offsetWidth)),a=n.reduce((e,t)=>e+(V.value.find(e=>e.id===t.dataset.colId)?.cards.length??0),0);return[{id:t.id,title:t.title,color:t.color,top:t.depth*Oc,left:r,width:i-r,count:a}]})}let qe=null;fe(()=>{if(Ke(),typeof ResizeObserver<`u`&&Le.value){qe=new ResizeObserver(()=>Ke()),qe.observe(Le.value);for(let e of Le.value.querySelectorAll(`.kb-col`))qe.observe(e)}}),re(()=>qe?.disconnect()),P(()=>[V.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),d.columnGroups],()=>{Te(()=>{if(Ke(),!(!qe||!Le.value))for(let e of Le.value.querySelectorAll(`.kb-col`))qe.observe(e)})},{deep:!0});function Je(e){return S.value.find(t=>t.id===e)?.title??``}function Ye(e,t,n){e.history=[...e.history??[],{type:t,timestamp:new Date().toISOString(),detail:n}]}function Xe(){if(d.readOnly||!D.value.trim())return;let e=D.value.trim();C([...S.value,{id:_(),title:e,order:S.value.length,cards:[]}],{kind:`column-add`,title:e}),D.value=``,ee.value=!1}function Ze(e){if(d.readOnly)return;let t=S.value.find(t=>t.id===e);h.require({message:g(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:g(`column.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>C(S.value.filter(t=>t.id!==e),{kind:`column-delete`,columnId:e})})}function Qe(e,t){d.readOnly||!t.trim()||C(S.value.map(n=>n.id===e?{...n,title:t.trim()}:n),{kind:`column-rename`,columnId:e,title:t.trim()})}let W=r(null),$e=r(``),et=r(``),tt=r([]),rt=r([]),it=r(!1),G=r([]),at=r([]),ot=0,st=r([]),ct=w(new Map),lt=r([]),ut=r([]),dt=r([]),ft=l(()=>{let e=new Set;for(let t of S.value)for(let n of t.cards)for(let t of n.groups??[])e.add(t);for(let t of d.archivedCards)for(let n of t.groups??[])e.add(n);return[...e].sort((e,t)=>e.localeCompare(t))});function pt(e){let t=e.query.trim(),n=new Set(ut.value),r=ft.value.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t.toLowerCase()))),i=ft.value.some(e=>e.toLowerCase()===t.toLowerCase());dt.value=t&&!i&&!n.has(t)?[t,...r]:r}let mt=r(null),ht=r(null),gt=l(()=>{let e=_t(ht.value),t=e?qt(e):null;return t===null?``:t<0?g(`editor.deadlineOverdue`,{count:-t}):t===0?g(`editor.deadlineToday`):g(`editor.deadlineIn`,{count:t})});function _t(e){if(!e)return null;let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function vt(e){if(!e)return null;let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r,12)}function yt(){d.readOnly||(mt.value=5)}function bt(e){let t=e.trim();!t||ut.value.includes(t)||(ut.value=[...ut.value,t])}let xt=r(!1);function St(e){let t=e.target?.closest(`.p-autocomplete`)?.querySelector(`input`);return t instanceof HTMLInputElement?t:null}function Ct(){xt.value=!0}function wt(e){let t=St(e);if(t){if(e.type===`keydown`){if(t.getAttribute(`aria-activedescendant`))return;Tt(t);return}xt.value=!1,setTimeout(()=>{if(xt.value){xt.value=!1,t.value=``;return}Tt(t)},0)}}function Tt(e){e.value.trim()&&(bt(e.value),e.value=``)}let Et=r(``),Dt=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],Ot=r(``),At=r(`edit`),jt=r(``),K=r([]),Mt=r(null),Nt=r(null),Pt=r(null),Ft=r(``);async function It(){await Te(),Nt.value?.scrollIntoView({block:`end`})}P(W,e=>m(`card-open`,e));let Lt=r(null),Rt=r(`bottom`);function zt(e,t=`bottom`){if(!d.readOnly){if(Rt.value=t,d.templates.length===0){Vt(e,``);return}Lt.value=e}}function Bt(e){let t=Lt.value;Lt.value=null,t&&Vt(t,e?.content??``)}function Vt(e,t){let n=S.value.find(t=>t.id===e);if(!n)return;let r=new Date().toISOString();Ht(e,{id:_(),title:g(`card.defaultTitle`),markdown:t,images:[],order:Rt.value===`top`?0:n.cards.length,...p.value?{}:{history:[{type:`created`,timestamp:r,detail:g(`card.inColumn`,{name:Je(e)})}]},createdAt:r,updatedAt:r})}function Ht(e,t){if(Ln(),W.value={colId:e,card:{...t,history:[...t.history??[]]}},d.loadHistory&&Cn(t.id)){let n=d.histories?.[t.id];n&&(W.value={colId:e,card:{...t,history:n}}),d.loadHistory(t.id)}$e.value=t.title,et.value=t.markdown??``,tt.value=[...t.images],rt.value=[...t.attachments??[]],G.value=[],st.value=[],jt.value=``,K.value=[],In(rt.value),In((t.history??[]).flatMap(e=>e.attachments??[])),lt.value=(t.assignees??[]).map(e=>e.id),Et.value=t.color??``,ut.value=[...t.groups??[]],mt.value=t.priority??null,ht.value=vt(t.deadline),Ot.value=e,At.value=`edit`}P(()=>W.value?d.histories?.[W.value.card.id]:void 0,e=>{let t=W.value;!e||!t||t.card.history===e||(W.value={colId:t.colId,card:{...t.card,history:e}},In(e.flatMap(e=>e.attachments??[])))});let Ut=l(()=>{let e=W.value;return e?!Cn(e.card.id):!1}),Wt=l(()=>{let e=W.value;if(!e)return!1;if(Ut.value)return!0;let t=e.card,n=(e,t)=>JSON.stringify(e)===JSON.stringify(t);return $e.value!==t.title||et.value!==(t.markdown??``)||Ot.value!==e.colId||!n(tt.value,t.images)||!n(rt.value,t.attachments??[])||!n(lt.value,(t.assignees??[]).map(e=>e.id))||Et.value!==(t.color??``)||!n(ut.value,t.groups??[])||mt.value!==(t.priority??null)||_t(ht.value)!==(t.deadline??null)}),Gt=l(()=>Wt.value||jt.value.trim().length>0||K.value.length>0||Pt.value!==null);function Kt(){if(!Gt.value){Xt();return}h.require({message:g(`editor.confirmDiscardMessage`),header:g(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:g(`editor.discard`),rejectLabel:g(`editor.keepEditing`),accept:()=>Xt()})}function Jt(){let e=W.value;if(!e)return;let t=S.value.flatMap(e=>e.cards).find(t=>t.id===e.card.id)??Sn.value.get(e.card.id);if(!t)return;if(!Wt.value){let n=S.value.find(e=>e.cards.some(e=>e.id===t.id))?.id??e.colId;W.value={colId:n,card:{...t,history:e.card.history}},$e.value=t.title,et.value=t.markdown??``,tt.value=[...t.images],rt.value=[...t.attachments??[]],lt.value=(t.assignees??[]).map(e=>e.id),Et.value=t.color??``,ut.value=[...t.groups??[]],mt.value=t.priority??null,ht.value=vt(t.deadline),Ot.value=n}if(t.history===void 0)return;let n=W.value;if(!n)return;let r=e=>`${e.type}|${e.timestamp}|${e.detail??``}`,i=new Set((t.history??[]).map(r)),a=[...t.history??[],...(n.card.history??[]).filter(e=>!i.has(r(e)))].sort((e,t)=>e.timestamp.localeCompare(t.timestamp));W.value={colId:n.colId,card:{...n.card,history:a}}}function Yt(){let e=st.value;if(st.value=[],d.deleteAttachment)for(let t of e)d.deleteAttachment(t)}function Xt(){W.value=null,or(),Jn(),Ln(),Yt()}function Zt(){if(d.readOnly||!W.value)return;let{colId:e,card:t}=W.value,n=$e.value||g(`card.untitled`),r=p.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!p.value&&n!==t.title&&t.title!==g(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!p.value&&et.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let a=p.value?0:tt.value.length-t.images.length;a>0?r.push({type:`image_added`,timestamp:i(),detail:`${a} image(s) added`}):a<0&&r.push({type:`image_removed`,timestamp:i(),detail:`${Math.abs(a)} image(s) removed`});let o=lt.value.map(e=>({id:e,name:d.members.find(t=>t.userId===e)?.name??e})),s=p.value?[]:o.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));s.length&&r.push({type:`edited`,timestamp:i(),detail:g(`editor.assignedDetail`,{names:s.map(e=>e.name).join(`, `)})});let c=[...new Set(ut.value.map(e=>e.trim()).filter(Boolean))],{color:l,priority:u,groups:f,deadline:h,..._}=t,v={..._,title:n,markdown:et.value,images:tt.value,attachments:rt.value,assignees:o,...Et.value?{color:Et.value}:{},...c.length?{groups:c}:{},...mt.value===null?{}:{priority:mt.value},..._t(ht.value)?{deadline:_t(ht.value)}:{},history:p.value?t.history:r,updatedAt:i()},y=Ot.value||e;!p.value&&y!==e&&r.push({type:`moved`,timestamp:i(),detail:`${Je(e)} → ${Je(y)}`});let b=!Cn(v.id),x=b?{kind:`card-add`,columnId:y,card:v,placement:Rt.value}:{kind:`card-update`,cardId:v.id,patch:{title:v.title,markdown:v.markdown,priority:v.priority??null,color:v.color??null,deadline:v.deadline??null,groups:v.groups??[],assignees:o.map(e=>e.id),attachments:v.attachments,images:v.images}};if(!b&&y!==e&&m(`intent`,{kind:`card-move`,cardId:v.id,toColumnId:y}),wn.value){m(`intent`,x),m(`load-archive`,yn.value,bn.value),st.value=[],W.value={colId:e,card:v};return}C(S.value.map(t=>{if(t.id===e&&y!==e)return{...t,cards:t.cards.filter(e=>e.id!==v.id)};if(t.id!==y)return t;if(t.cards.some(e=>e.id===v.id))return{...t,cards:t.cards.map(e=>e.id===v.id?v:e)};let n=Rt.value===`top`?[v,...t.cards]:[...t.cards,v];return{...t,cards:n.map((e,t)=>({...e,order:t}))}}),x),st.value=[],W.value={colId:y,card:v},Ot.value=y}function Qt(e,t){for(let n of S.value){let r=n.cards.find(e=>e.id===t);if(r)return{cardId:t,boardId:e,title:r.title,boardName:g(`editor.relationsHereBoard`),columnTitle:n.title,here:!0,assignees:r.assignees??[],commentCount:r.commentCount??(r.history??[]).filter(e=>e.type===`comment`).length}}let n=d.linkedCards.find(n=>n.cardId===t&&n.boardId===e);return n?{cardId:t,boardId:e,title:n.title,boardName:n.boardName,columnTitle:n.columnTitle,here:!1,assignees:n.assignees??[],commentCount:n.commentCount??0}:null}function $t(e){return d.cardLinks.find(t=>t.childCardId===e)}function en(e){return d.cardLinks.filter(t=>t.parentCardId===e)}function tn(e){return en(e).length}let q=l(()=>{let e=W.value;if(!e)return null;let t=$t(e.card.id);return t?Qt(t.parentBoardId,t.parentCardId):null}),nn=l(()=>{let e=W.value;return e?en(e.card.id).flatMap(e=>{let t=Qt(e.childBoardId,e.childCardId);return t?[t]:[]}):[]});function rn(e,t){let n=new Set([e]),r=[e];for(let e=0;e<r.length&&e<=d.cardLinks.length;e+=1){let i=t===`down`?en(r[e]).map(e=>e.childCardId):[$t(r[e])?.parentCardId].filter(e=>!!e);for(let e of i)n.has(e)||(n.add(e),r.push(e))}return n}function an(e){return k.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let on=l(()=>{let e=W.value;return e?an(rn(e.card.id,`down`)):[]}),sn=l(()=>{let e=W.value;if(!e)return[];let t=rn(e.card.id,`up`);for(let n of en(e.card.id))t.add(n.childCardId);return an(t)});function cn(e){let t=W.value;!t||d.readOnly||!d.setCardParent||d.setCardParent(t.card.id,e)}function ln(e){let t=W.value;!t||!e||d.readOnly||!d.setCardParent||d.setCardParent(e,t.card.id)}function dn(e){d.readOnly||!d.setCardParent||d.setCardParent(e,null)}let fn=l(()=>!d.readOnly&&d.setCardParent!==void 0&&!!W.value&&S.value.some(e=>e.cards.some(e=>e.id===W.value?.card.id))),pn=l(()=>{let e=W.value;if(!e)return[];let t=[],n=new Set([e.card.id]),r=e.card.id;for(let e=0;e<=d.cardLinks.length;e+=1){let e=$t(r);if(!e||n.has(e.parentCardId))break;let i=Qt(e.parentBoardId,e.parentCardId);if(!i)break;n.add(e.parentCardId),t.push(i),r=e.parentCardId}return t.reverse()}),mn=l(()=>(q.value?1:0)+nn.value.length);function hn(e,t){for(let t of S.value){let n=t.cards.find(t=>t.id===e);if(n){Ht(t.id,n);return}}t&&m(`open-linked-card`,{boardId:t,cardId:e})}let gn=l(()=>{let e=k.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:g(`editor.columnGroupHere`),items:e}];if(!d.readOnly&&d.moveCardToBoard)for(let e of d.otherBoards)e.columns.length&&t.push({label:e.name,items:e.columns.map(t=>({id:`${e.id}:${t.id}`,title:t.title,boardId:e.id}))});return t});function _n(e){let[t,n]=e.includes(`:`)?e.split(`:`):[``,e];if(!t){Ot.value=n??``;return}let r=W.value,i=d.otherBoards.find(e=>e.id===t),a=i?.columns.find(e=>e.id===n);d.readOnly||!r||!i||!a||!d.moveCardToBoard||h.require({message:g(`editor.moveToBoardConfirm`,{board:i.name,column:a.title}),header:g(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;Xt(),d.moveCardToBoard?.(e,t,a.id)}})}let J=r(!1),yn=r(``),bn=r(``),xn=l(()=>[{id:``,title:g(`archive.allColumns`)},...S.value.map(e=>({id:e.id,title:e.title}))]),Sn=l(()=>new Map(d.archivedCards.map(e=>[e.id,e])));function Cn(e){return S.value.some(t=>t.cards.some(t=>t.id===e))||Sn.value.has(e)?!0:!!(W.value?.card.id===e&&W.value.card.archivedAt)}let wn=l(()=>!!(W.value&&(W.value.card.archivedAt||Sn.value.has(W.value.card.id))));function Tn(e){Ht(e.archivedFrom?.columnId??``,e)}let En=l(()=>he.value?d.archivedCards.filter(_e):d.archivedCards),Dn=l(()=>d.archivedCards.length-En.value.length),On=null;function kn(){J.value=!0,m(`load-archive`,yn.value,bn.value)}P(yn,e=>{J.value&&(On&&clearTimeout(On),On=setTimeout(()=>m(`load-archive`,e,bn.value),250))}),P(bn,e=>{J.value&&(On&&clearTimeout(On),m(`load-archive`,yn.value,e))});let An=null;P(T,e=>{if(An&&clearTimeout(An),!e.trim()){m(`search-cards`,``);return}An=setTimeout(()=>m(`search-cards`,e),250)}),re(()=>{An&&clearTimeout(An),On&&clearTimeout(On)});function Y(e,t){d.readOnly||(C(S.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-archive`,cardId:t}),W.value?.card.id===t&&Xt())}function jn(e){d.readOnly||m(`intent`,{kind:`card-unarchive`,cardId:e})}function Mn(e,t){if(d.readOnly)return;let n=S.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);h.require({message:g(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:g(`editor.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{C(S.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-delete`,cardId:t}),Xt()}})}function Nn(){if(d.readOnly||!W.value||!jt.value.trim()&&!K.value.length)return;let{colId:e,card:t}=W.value,n=K.value;if(d.addComment){let e=jt.value.trim(),r=t.id;jt.value=``,st.value=st.value.filter(e=>!n.some(t=>t.id===e.id)),K.value=[],d.addComment(r,e,n.length?{attachments:n}:{}).then(t=>{t||(jt.value.trim()||(jt.value=e),K.value=[...n,...K.value])});return}}let Pn=/^image\/(png|jpeg|webp|gif)$/;function Fn(e){return ct.get(e.id)}async function In(e){if(d.fetchAttachment)for(let t of e){if(!Pn.test(t.contentType)||ct.has(t.id))continue;let e=await d.fetchAttachment(t);e&&ct.set(t.id,e)}}function Ln(){for(let e of ct.values())URL.revokeObjectURL(e);ct.clear()}let Rn=/^video\/(mp4|webm|ogg)$/,zn=/^audio\/(mpeg|mp3|ogg|wav|x-wav|webm)$/,Bn=/^(text\/|application\/(json|xml|xhtml\+xml|javascript|x-yaml|yaml)$)/;function Vn(e){let t=e.contentType||``;if(Pn.test(t))return`image`;if(t===`application/pdf`)return`pdf`;if(Rn.test(t))return`video`;if(zn.test(t))return`audio`;let n=sr(t,e.name);return n?e.size<=20971520?n:null:Bn.test(t)&&e.size<=kc?`text`:null}let X=r(null),Z=r(0),Hn=l(()=>{let e=X.value?.office;return e?.mode===`sheet`?e.sheets[Z.value]??e.sheets[0]??null:null}),Un=r(null),Wn=r(!1);P([()=>X.value?.office,Un],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),Wn.value=!1;try{await e.render(t)}catch{Wn.value=!0}}});async function Gn(e){let t=Vn(e),n=ct.get(e.id),r=n??await d.fetchAttachment?.(e)??null;if(!r){G.value=[...G.value,{name:e.name,reason:g(`editor.downloadFailed`)}];return}if(!t){Kn(r,e.name,!n);return}let i,a;if(t===`text`)try{i=await(await fetch(r)).text()}catch{Kn(r,e.name,!n);return}else if(t===`sheet`||t===`doc`||t===`slides`)try{a=await cr(t,await(await fetch(r)).arrayBuffer(),e.name,e.contentType||``)}catch{Kn(r,e.name,!n);return}Jn(),Z.value=0,X.value={file:e,url:r,kind:t,text:i,office:a,cached:!!n}}function Kn(e,t,n){let r=document.createElement(`a`);r.href=e,r.download=t||`file`,r.rel=`noopener`,document.body.appendChild(r),r.click(),r.remove(),n&&setTimeout(()=>URL.revokeObjectURL(e),6e4)}function qn(){let e=X.value;e&&Kn(e.url,e.file.name,!1)}function Jn(){let e=X.value;X.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Yn(e){rt.value=rt.value.filter((t,n)=>n!==e)}let Xn=w(new Set);function Zn(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let Qn=l(()=>d.members.map(e=>({id:e.userId,label:e.name})));function $n(e){return d.members.find(t=>t.userId===e)?.name??e}function er(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}function tr(e){return!!d.currentUserId&&e.authorUser?.id===d.currentUserId}function nr(e){return e.author===`ai`?null:e.authorUser?.id??null}function rr(e){return e.author===`ai`?g(`comments.authorAi`):tr(e)?g(`comments.authorYou`):e.authorUser?.name??g(`comments.authorYou`)}function ir(e){if(!W.value)return;let{colId:t,card:n}=W.value;W.value={colId:t,card:{...n,history:e}},C(S.value.map(r=>r.id===t?{...r,cards:r.cards.map(t=>t.id===n.id?{...t,history:e}:t)}:r))}function ar(e){Pt.value=e.id??null,Ft.value=e.detail??``}function or(){Pt.value=null,Ft.value=``}function lr(){let e=Pt.value,t=Ft.value.trim();if(d.readOnly||!e||!t||!W.value)return;let{card:n}=W.value,r=(n.history??[]).map(n=>n.id===e?{...n,detail:t,editedAt:new Date().toISOString()}:n);if(d.editComment){let i=(n.history??[]).find(t=>t.id===e);d.editComment(n.id,e,t,i?.attachments),ir(r)}or()}function ur(e){return e.id??`${e.type}|${e.timestamp}`}function dr(e){return e.type===`comment`&&e.author===`ai`}function fr(e){return tr(e)||dr(e)}function pr(e){if(d.readOnly||!fr(e)||!W.value)return;let t=ur(e);h.require({message:g(`comments.confirmDeleteMessage`),header:g(`comments.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{let n=W.value;if(!n)return;let r=(n.card.history??[]).filter(e=>ur(e)!==t);d.removeComment&&e.id&&(d.removeComment(n.card.id,e.id),ir(r))}})}let mr=l(()=>d.columnSubscriptions!==void 0),hr=r(null),gr=[`entered`,`left`,`created`,`deleted`],_r=[`email`,`chat`],vr=[...gr],yr=[..._r],br=r([...vr]),xr=r([...yr]);function Sr(e){return d.columnSubscriptions?.[e]??null}function Cr(e){return Sr(e)!==null}let wr=w(new Set),Tr=new Map,Er=null;function Dr(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?wr.add(e):wr.delete(e)}function Or(e,t){let n=Tr.get(t);if(n&&n!==e&&Er?.unobserve(n),!(e instanceof HTMLElement)){Tr.delete(t),wr.delete(t);return}Tr.set(t,e),typeof ResizeObserver<`u`&&(Er??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of Tr)n===t.target&&Dr(e,n)}),Er.observe(e)),Dr(t,e)}P(()=>S.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void Te(()=>{for(let[e,t]of Tr)Dr(e,t)})),re(()=>Er?.disconnect());function kr(e,t){return{value:wr.has(e)?t:``,showDelay:0,hideDelay:0}}let Ar=r(null),jr=r(null);function Mr(e,t){jr.value=t,Ar.value?.toggle(e)}function Pr(e){let t=jr.value;t&&(Ar.value?.hide(),e(t.id))}function Fr(e){let t=Sr(e);br.value=t?[...t.kinds]:[...vr],xr.value=t?[...t.channels]:[...yr],hr.value=e}let Ir=l(()=>br.value.length>0&&xr.value.length>0);function Lr(){let e=hr.value;!e||!Ir.value||(m(`update-column-subscription`,{columnId:e,subscription:{kinds:[...br.value],channels:[...xr.value]}}),hr.value=null)}function Rr(){let e=hr.value;e&&(m(`update-column-subscription`,{columnId:e,subscription:null}),hr.value=null)}let zr=l(()=>d.columns.find(e=>e.id===hr.value)??null),Br=w(new Set),Vr=w(new Set),Hr=l(()=>`runeya.kanban.collapsedColumns.${d.name}`),Ur=l(()=>`runeya.kanban.expandedColumns.${d.name}`);function Wr(e,t){t.clear();try{let n=window.localStorage.getItem(e);if(!n)return;let r=JSON.parse(n);if(Array.isArray(r))for(let e of r)typeof e==`string`&&t.add(e)}catch{}}function Gr(){Wr(Hr.value,Br),Wr(Ur.value,Vr)}function Kr(){try{window.localStorage.setItem(Hr.value,JSON.stringify([...Br])),window.localStorage.setItem(Ur.value,JSON.stringify([...Vr]))}catch{}}Gr(),P(Hr,Gr);function qr(e){let t=d.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function Jr(e){return Br.has(e)?!0:qr(e)&&!Vr.has(e)}function Yr(e){Jr(e)?(Br.delete(e),qr(e)&&Vr.add(e)):(Vr.delete(e),qr(e)||Br.add(e)),Kr()}let Xr=l(()=>(W.value?.card.history??[]).filter(e=>e.type===`comment`));P([At,Xr],([e])=>{e===`comments`&&(It(),Jc())}),P(()=>W.value?.card.id,()=>{zc.clear(),Bc.clear()});function Ic(e){if(/^(https?:|mailto:)/i.test(e)){window.open(e,`_blank`,`noopener,noreferrer`);return}e.startsWith(`#`)||e.startsWith(`/`)&&window.open(e,`_blank`,`noopener,noreferrer`)}function Lc(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Ic(t),!0):!1}function Rc(e){return e?ie.sanitize(ne.parse(e,{async:!1}),{ALLOWED_TAGS:[`p`,`br`,`strong`,`em`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`h1`,`h2`,`h3`,`h4`,`a`,`span`],ALLOWED_ATTR:[`href`,`target`,`rel`,`class`]}):``}let zc=w(new Set),Bc=w(new Set);function Vc(e,t){return e.id??`i${t}`}function Hc(e,t){return zc.has(Vc(e,t))}function Uc(e,t){let n=Vc(e,t);return Bc.has(n)||zc.has(n)}function Wc(e,t){let n=Vc(e,t);zc.has(n)?zc.delete(n):zc.add(n)}function Gc(e,t,n){Lc(n)||Xc(e)||Uc(e,t)&&(n.stopPropagation(),Wc(e,t))}let Kc=new Map;function qc(e,t,n){let r=Vc(t,n);if(!(e instanceof HTMLElement)){Kc.delete(r);return}Kc.set(r,e),!zc.has(r)&&(e.scrollHeight-e.clientHeight>1?Bc.add(r):Bc.delete(r))}async function Jc(){await Te();for(let[e,t]of Kc)zc.has(e)||(t.scrollHeight-t.clientHeight>1?Bc.add(e):Bc.delete(e))}function Yc(e){return d.resolveConversationId?d.resolveConversationId(e):e.conversationId??null}function Xc(e){return!!Yc(e)}let Zc=l(()=>{let e=W.value?.card;if(!e)return[];let t=e.conversationEvents??e.history??[],n=new Set,r=[];for(let e of t){if(e.type!==`conversation_started`&&e.type!==`scenario_started`)continue;let t=Yc(e);if(!t||n.has(t))continue;n.add(t);let i=e.detail??``,a=i.includes(` — `)?i.slice(0,i.lastIndexOf(` — `)).trim():``,o=tl(e.timestamp);r.push({id:t,label:o,title:a||el.value[e.type]})}return r});function Qc(e){let t=Yc(e);t&&m(`open-conversation`,t)}let $c={created:`pi pi-plus-circle`,edited:`pi pi-pencil`,moved:`pi pi-arrow-right-arrow-left`,image_added:`pi pi-image`,image_removed:`pi pi-trash`,title_changed:`pi pi-tag`,conversation_started:`pi pi-comments`,scenario_started:`pi pi-sitemap`,comment:`pi pi-comment`,archived:`pi pi-inbox`,unarchived:`pi pi-replay`},el=l(()=>({created:g(`history.events.created`),edited:g(`history.events.edited`),moved:g(`history.events.moved`),image_added:g(`history.events.image_added`),image_removed:g(`history.events.image_removed`),title_changed:g(`history.events.title_changed`),archived:g(`history.events.archived`),unarchived:g(`history.events.unarchived`),conversation_started:g(`history.events.conversation_started`),scenario_started:g(`history.events.scenario_started`),comment:g(`history.events.comment`)}));function tl(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}`}function nl(e){return new Promise(t=>{let n=new FileReader;n.onload=()=>t(typeof n.result==`string`?n.result:null),n.onerror=()=>t(null),n.readAsDataURL(e)})}async function rl(e){let t=[];for(let n of e){if(n.size===0){G.value=[...G.value,{name:n.name,reason:g(`editor.uploadEmpty`)}];continue}if(n.size>Ac){G.value=[...G.value,{name:n.name,reason:g(`editor.uploadTooLarge`)}];continue}if(!d.uploadImage){G.value=[...G.value,{name:n.name,reason:g(`editor.uploadUnavailable`)}];continue}let e=`${ot+=1}`;at.value=[...at.value,{key:e,name:n.name,ratio:0}];try{let r=await d.uploadImage(n,t=>{at.value=at.value.map(n=>n.key===e?{...n,ratio:t}:n)});r?(t.push(r),st.value=[...st.value,r]):G.value=[...G.value,{name:n.name,reason:g(`editor.uploadFailed`)}]}finally{at.value=at.value.filter(t=>t.key!==e)}}return t}async function il(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,it.value=!0,G.value=[];try{let e=await rl(n);K.value=[...K.value,...e],In(e)}finally{it.value=!1}}async function al(e,t){if(!(d.readOnly||!e.length)){it.value=!0,G.value=[];try{let n=await rl(e);if(!n.length)return;t===`comment`?K.value=[...K.value,...n]:rt.value=[...rt.value,...n],In(n)}finally{it.value=!1}}}function ol(e){K.value=K.value.filter((t,n)=>n!==e)}async function sl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,it.value=!0,G.value=[],at.value=[];try{if(d.uploadImage){let e=await rl(n);rt.value=[...rt.value,...e],In(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>jc){G.value=[...G.value,{name:e.name,reason:g(`editor.uploadUnavailable`)}];continue}let t=await nl(e);if(!t){G.value=[...G.value,{name:e.name,reason:g(`editor.uploadFailed`)}];continue}tt.value=[...tt.value,t],Mt.value?.insertImage(t)}}finally{it.value=!1}}function cl(e){h.require({message:g(`editor.confirmRemoveImageMessage`),header:g(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{tt.value=tt.value.filter((t,n)=>n!==e)}})}let ll=r(null),$=r(null),ul=null,dl=null,fl=`before`,pl=null,ml=`before`,hl=null,gl=null,_l=null,vl=[`kb-card--drop-before`,`kb-card--drop-after`],yl=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function bl(e,t){hl&&hl!==e&&hl.classList.remove(...vl),hl=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function xl(e){gl&&gl!==e&&gl.classList.remove(`kb-col--dragover`),gl=e,e?.classList.add(`kb-col--dragover`)}function Sl(e,t){_l&&_l!==e&&_l.classList.remove(...yl),_l=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function Cl(){bl(null,`before`),xl(null),Sl(null,`before`)}function wl(e){return jl.value?.querySelector(`.kb-col[data-col-id="${CSS.escape(e)}"]`)??null}let Tl=r(null),El=r(null),Dl=r(!1),Ol=null,kl=null,Al=null,jl=r(null);function Ml(e,t){Ol&&cancelAnimationFrame(Ol);let n=jl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Pc&&n.scrollLeft>0?(n.scrollLeft-=Fc,i=!0):e>t.right-Pc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Fc,i=!0)}El.value&&(El.value.style.display=`none`);let a=document.elementFromPoint(e,t);if(El.value&&(El.value.style.display=``),a){let e=a.closest(`.kb-col__cards`);if(e){let n=e.getBoundingClientRect();t<n.top+Pc&&e.scrollTop>0?(e.scrollTop-=Fc,i=!0):t>n.bottom-Pc&&e.scrollTop<e.scrollHeight-e.clientHeight&&(e.scrollTop+=Fc,i=!0)}}Ol=i&&Dl.value?requestAnimationFrame(r):null};Ol=requestAnimationFrame(r)}function Nl(){Ol&&=(cancelAnimationFrame(Ol),null)}function Pl(){kl&&=(clearTimeout(kl),null),Al=null}function Fl(){if(!Al)return;let{type:e,colId:t,cardId:n,el:r}=Al;Tl.value=e,Dl.value=!0,e===`card`&&n?(ll.value={colId:t,cardId:n},$.value=null):($.value=t,ll.value=null),navigator.vibrate&&navigator.vibrate(30);let i=e===`card`?r.closest(`.kb-card`):r.closest(`.kb-col`);if(i){let e=i.cloneNode(!0);e.style.cssText=`position:fixed;pointer-events:none;z-index:9999;opacity:0.8;width:${i.getBoundingClientRect().width}px;transform:rotate(2deg);`,document.body.appendChild(e),El.value=e}Al=null}function Il(e,t,n,r){if(d.readOnly)return;Pl();let i=e.touches[0],a=i.clientX,o=i.clientY;Al={type:t,colId:n,cardId:r,el:e.target};let s=e=>{let t=e.touches[0],n=t.clientX-a,r=t.clientY-o;Math.sqrt(n*n+r*r)>Nc&&(Pl(),document.removeEventListener(`touchmove`,s))};document.addEventListener(`touchmove`,s,{passive:!0}),kl=setTimeout(()=>{document.removeEventListener(`touchmove`,s),Fl()},Mc)}function Ll(e){if(!Dl.value)return;e.preventDefault();let t=e.touches[0];El.value&&(El.value.style.left=`${t.clientX-40}px`,El.value.style.top=`${t.clientY-20}px`),Ml(t.clientX,t.clientY),El.value&&(El.value.style.display=`none`);let n=document.elementFromPoint(t.clientX,t.clientY);if(El.value&&(El.value.style.display=``),n){if(Tl.value===`card`){let e=n.closest(`.kb-card`),r=n.closest(`.kb-col`);if(e&&r){let n=e.dataset.cardId||``,i=r.dataset.colId||``;if(n&&i){let a=e.getBoundingClientRect(),o=t.clientY-a.top<a.height/2?`before`:`after`;ul!==i&&(ul=i,xl(r)),(dl!==n||fl!==o)&&(dl=n,fl=o,bl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(ul=e,dl=null,xl(r),bl(null,`before`))}}else if(Tl.value===`column`){let e=n.closest(`.kb-col`);if(e){let n=e.dataset.colId||``;if(n&&n!==$.value){let r=e.getBoundingClientRect(),i=t.clientX-r.left<r.width/2?`before`:`after`;(pl!==n||ml!==i)&&(pl=n,ml=i,Sl(e,i))}}}}}function Rl(){Pl(),Nl(),El.value&&=(El.value.remove(),null),Dl.value&&(Tl.value===`card`&&ul?Hl(ul):Tl.value===`column`&&pl&&ql(pl)),Tl.value=null,Dl.value=!1,Bl()}function zl(e,t,n){d.readOnly||(ll.value={colId:t,cardId:n},$.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`card`)))}function Bl(){ll.value=null,ul=null,dl=null,$.value=null,pl=null,Cl()}function Vl(e,t,n){if(!ll.value)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let r=e.currentTarget,i=r.getBoundingClientRect(),a=e.clientY-i.top<i.height/2?`before`:`after`;ul!==t&&(ul=t,xl(r.closest(`.kb-col`))),!(dl===n&&fl===a)&&(dl=n,fl=a,bl(r,a))}function Hl(e){if(d.readOnly)return;if($.value){ql(e);return}if(!ll.value)return;let{colId:t,cardId:n}=ll.value,r=Je(t),i=Je(e),a=null,o=S.value.map(e=>e.id===t?(a=e.cards.find(e=>e.id===n)??null,{...e,cards:e.cards.filter(e=>e.id!==n)}):e),s=0;if(a){let n={...a};!p.value&&t!==e&&Ye(n,`moved`,`"${r}" → "${i}"`),o=o.map(t=>{if(t.id!==e)return t;let r=[...t.cards].sort((e,t)=>e.order-t.order),i=r.length;if(dl){let e=r.findIndex(e=>e.id===dl);e!==-1&&(i=fl===`before`?e:e+1)}return s=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(ll.value=null,ul=null,dl=null,Cl(),d.moveCard&&a){S.value=o,d.moveCard(a.id,e,s);return}C(o,a?{kind:`card-move`,cardId:a.id,toColumnId:e,toIndex:s}:void 0)}function Ul(e,t){!ll.value&&!$.value||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),ll.value&&(ul!==t&&(ul=t,xl(wl(t))),dl!==null&&(dl=null,bl(null,`before`))))}function Wl(e){ul===e&&(ul=null,xl(null))}function Gl(e,t){d.readOnly||($.value=t,ll.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`column`)))}function Kl(e,t){if(!$.value||$.value===t)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let n=e.currentTarget,r=n.getBoundingClientRect(),i=e.clientX-r.left<r.width/2?`before`:`after`;pl===t&&ml===i||(pl=t,ml=i,Sl(n,i))}function ql(e){if(d.readOnly||!$.value||$.value===e){$.value=null,pl=null,Cl();return}let t=[...S.value].sort((e,t)=>e.order-t.order),n=t.findIndex(e=>e.id===$.value),r=t.splice(n,1)[0],i=t.findIndex(t=>t.id===e);t.splice(ml===`before`?i:i+1,0,r),$.value=null,pl=null,Cl(),C(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return n({openCardEditor:Ht,closeCardEditor:Xt,saveCard:Zt,editingCard:W}),(n,r)=>{let o=be(`tooltip`);return L(),t(`div`,{ref_key:`rootEl`,ref:jl,class:`kb`},[c(`header`,Qr,[u(A(f),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:r[0]||=e=>m(`back`)}),E((L(),t(`h1`,{class:`kb-header__title`,ref:e=>Or(e,`board`)},[x(y(e.name),1)])),[[o,kr(`board`,e.name),void 0,{bottom:!0}]]),c(`span`,$r,[r[59]||=c(`i`,{class:`pi pi-search`},null,-1),u(A(Se),{modelValue:T.value,"onUpdate:modelValue":r[1]||=e=>T.value=e,placeholder:A(g)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),T.value?(L(),b(A(f),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:r[2]||=e=>T.value=``})):R(``,!0),e.searchTruncated?(L(),t(`small`,ei,y(A(g)(`searchTruncated`)),1)):R(``,!0)]),E(u(A(f),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:he.value?String(he.value):void 0,"badge-severity":`info`,class:O({"kb-header__filter--on":he.value}),onClick:r[3]||=e=>te.value=!0},null,8,[`badge`,`class`]),[[o,A(g)(`filters.open`),void 0,{bottom:!0}]]),E(u(A(f),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:kn},null,512),[[o,A(g)(`archive.open`),void 0,{bottom:!0}]]),e.readOnly?R(``,!0):E((L(),b(A(f),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:r[4]||=e=>Oe.value=!0},null,512)),[[o,A(g)(`groups.title`),void 0,{bottom:!0}]]),e.readOnly?(L(),t(`span`,ti,[r[60]||=c(`i`,{class:`pi pi-lock`},null,-1),x(` `+y(A(g)(`readOnly.badge`)),1)])):R(``,!0),B(n.$slots,`header-actions`,{},void 0,!0)]),B(n.$slots,`banner`,{},void 0,!0),c(`div`,ni,[Fe.value?(L(),t(`div`,{key:0,class:`kb-bands`,style:s({height:`${Fe.value}px`})},[(L(!0),t(a,null,z(Ge.value,e=>(L(),t(`div`,{key:e.id,class:`kb-band`,style:s({left:`${e.left}px`,width:`${e.width}px`,top:`${e.top}px`,"--kb-band-color":e.color||`var(--p-text-muted-color)`})},[c(`span`,ri,y(e.title),1),c(`span`,ii,y(e.count),1)],4))),128))],4)):R(``,!0),c(`div`,{ref_key:`boardEl`,ref:Le,class:`kb-board`},[(L(!0),t(a,null,z(V.value,i=>(L(),t(`div`,{key:i.id,class:O([`kb-col`,{"kb-col--collapsed":Jr(i.id),"kb-col--dragging":$.value===i.id}]),"data-col-id":i.id,draggable:!e.readOnly,onDragstart:e=>Gl(e,i.id),onDragover:e=>{Kl(e,i.id),Ul(e,i.id)},onDragleave:e=>Wl(i.id),onDrop:U(e=>Hl(i.id),[`prevent`]),onDragend:Bl,onTouchstart:e=>Il(e,`column`,i.id),onTouchmove:Ll,onTouchend:Rl,onContextmenu:r[8]||=U(()=>{},[`prevent`])},[Jr(i.id)?(L(),t(`button`,{key:0,class:O([`kb-col__strip`,{"kb-col__strip--empty":i.cards.length===0}]),title:A(g)(`column.expand`),onClick:e=>Yr(i.id)},[r[61]||=c(`i`,{class:`pi pi-angle-double-right`},null,-1),c(`span`,si,y(i.cards.length),1),Cr(i.id)?(L(),t(`i`,ci)):R(``,!0),E((L(),t(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>Or(e,`strip:${i.id}`)},[x(y(i.title),1)])),[[o,kr(`strip:${i.id}`,i.title),void 0,{right:!0}]])],10,oi)):(L(),t(`div`,li,[E(c(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>Or(e,`col:${i.id}`),value:i.title,readonly:e.readOnly,draggable:`false`,onBlur:e=>Qe(i.id,e.target.value),onKeyup:r[5]||=I(e=>e.target.blur(),[`enter`]),onMousedown:r[6]||=U(()=>{},[`stop`])},null,40,ui),[[o,kr(`col:${i.id}`,i.title),void 0,{bottom:!0}]]),c(`div`,di,[mr.value&&Cr(i.id)?E((L(),b(A(f),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>Fr(i.id)},null,8,[`onClick`])),[[o,A(g)(`column.unsubscribe`),void 0,{bottom:!0}]]):R(``,!0),E(u(A(f),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:O([`kb-col__menu-btn`,{"kb-col__menu-btn--open":jr.value?.id===i.id}]),onClick:e=>Mr(e,i)},null,8,[`class`,`onClick`]),[[o,A(g)(`column.menu`),void 0,{bottom:!0}]]),c(`span`,fi,y(i.cards.length),1)])])),!e.readOnly&&!Jr(i.id)?(L(),t(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>zt(i.id,`top`)},[r[62]||=c(`i`,{class:`pi pi-plus`},null,-1),x(` `+y(A(g)(`column.addCard`)),1)],8,pi)):R(``,!0),Jr(i.id)?R(``,!0):(L(),t(`div`,mi,[(L(!0),t(a,null,z(i.cards,a=>(L(),t(`div`,{key:a.id,class:O([`kb-card`,{"kb-card--colored":a.color}]),style:s(a.color?{borderTopColor:a.color}:void 0),"data-card-id":a.id,draggable:!e.readOnly,onDragstart:U(e=>zl(e,i.id,a.id),[`stop`]),onDragover:e=>Vl(e,i.id,a.id),onDragend:Bl,onTouchstart:U(e=>Il(e,`card`,i.id,a.id),[`stop`]),onTouchmove:Ll,onTouchend:Rl,onContextmenu:r[7]||=U(()=>{},[`prevent`]),onClick:e=>Ht(i.id,a)},[u(un,{card:a,t:A(g),"avatar-url":e.avatarUrl,"child-count":tn(a.id),"has-parent":!!$t(a.id)},{actions:H(()=>[B(n.$slots,`card-actions`,{card:a,column:i},void 0,!0),e.readOnly?R(``,!0):E((L(),t(`button`,{key:0,class:`kb-card__delete`,onClick:U(e=>Y(i.id,a.id),[`stop`])},[...r[63]||=[c(`i`,{class:`pi pi-inbox`},null,-1)]],8,gi)),[[o,A(g)(`archive.cardTooltip`),void 0,{bottom:!0}]]),e.readOnly?R(``,!0):E((L(),t(`button`,{key:1,class:`kb-card__delete`,onClick:U(e=>Mn(i.id,a.id),[`stop`])},[...r[64]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,_i)),[[o,A(g)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:H(()=>[B(n.$slots,`card-badges`,{card:a},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,hi))),128)),i.cards.length===0?(L(),t(`div`,vi,y(A(g)(`column.dropZone`)),1)):R(``,!0)])),!e.readOnly&&!Jr(i.id)?(L(),t(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>zt(i.id)},[r[65]||=c(`i`,{class:`pi pi-plus`},null,-1),x(` `+y(A(g)(`column.addCard`)),1)],8,yi)):R(``,!0)],42,ai))),128)),u(A(i),{visible:hr.value!==null,modal:``,header:A(g)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":r[12]||=e=>{e||(hr.value=null)}},{footer:H(()=>[Cr(hr.value??``)?(L(),b(A(f),{key:0,label:A(g)(`column.unsubscribe`),severity:`danger`,text:``,onClick:Rr},null,8,[`label`])):R(``,!0),u(A(f),{label:A(g)(`editor.cancel`),text:``,onClick:r[11]||=e=>hr.value=null},null,8,[`label`]),u(A(f),{label:Cr(hr.value??``)?A(g)(`editor.save`):A(g)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Ir.value,onClick:Lr},null,8,[`label`,`disabled`])]),default:H(()=>[c(`p`,bi,y(A(g)(`column.subscribeIntro`,{column:zr.value?.title??``})),1),c(`p`,xi,y(A(g)(`column.subscribeEventsLabel`)),1),c(`div`,Si,[(L(),t(a,null,z(gr,e=>c(`label`,{key:e,class:`kb-subscribe__option`},[u(A(Pe),{modelValue:br.value,"onUpdate:modelValue":r[9]||=e=>br.value=e,value:e},null,8,[`modelValue`,`value`]),c(`span`,null,y(A(g)(`column.subscribeKind.${e}`)),1)])),64))]),c(`p`,Ci,[r[66]||=c(`i`,{class:`pi pi-times`},null,-1),x(` `+y(A(g)(`column.subscribeNotReorder`)),1)]),c(`p`,wi,y(A(g)(`column.subscribeChannelsLabel`)),1),c(`div`,Ti,[(L(),t(a,null,z(_r,e=>c(`label`,{key:e,class:`kb-subscribe__option`},[u(A(Pe),{modelValue:xr.value,"onUpdate:modelValue":r[10]||=e=>xr.value=e,value:e},null,8,[`modelValue`,`value`]),c(`span`,null,y(A(g)(`column.subscribeChannel.${e}`)),1)])),64))]),c(`p`,Ei,y(A(g)(`column.subscribeOwnActions`)),1)]),_:1},8,[`visible`,`header`]),u(A(i),{visible:Lt.value!==null,header:A(g)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":r[14]||=e=>{e||(Lt.value=null)}},{default:H(()=>[c(`p`,Di,y(A(g)(`templates.pickIntro`)),1),c(`div`,Oi,[c(`button`,{class:`kb-tpl-option`,onClick:r[13]||=e=>Bt(null)},[r[67]||=c(`i`,{class:`pi pi-file`},null,-1),x(` `+y(A(g)(`templates.blank`)),1)]),(L(!0),t(a,null,z(e.templates,e=>(L(),t(`button`,{key:e.id,class:`kb-tpl-option`,onClick:t=>Bt(e)},[r[68]||=c(`i`,{class:`pi pi-file-edit`},null,-1),x(` `+y(e.name),1)],8,ki))),128))])]),_:1},8,[`visible`,`header`]),e.readOnly?R(``,!0):(L(),t(`div`,Ai,[ee.value?(L(),t(`div`,ji,[u(A(Se),{modelValue:D.value,"onUpdate:modelValue":r[15]||=e=>D.value=e,placeholder:A(g)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[I(Xe,[`enter`]),r[16]||=I(e=>ee.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),c(`div`,Mi,[u(A(f),{label:A(g)(`addColumnButton`),size:`small`,disabled:!D.value.trim(),onClick:Xe},null,8,[`label`,`disabled`]),u(A(f),{icon:`pi pi-times`,text:``,size:`small`,onClick:r[17]||=e=>ee.value=!1})])])):(L(),t(`button`,{key:1,class:`kb-add-col__trigger`,onClick:r[18]||=e=>ee.value=!0},[r[69]||=c(`i`,{class:`pi pi-plus`},null,-1),x(` `+y(A(g)(`addColumn`)),1)]))]))],512)]),u(Zr,{visible:Oe.value,"onUpdate:visible":r[19]||=e=>Oe.value=e,columns:S.value,groups:e.columnGroups,"read-only":e.readOnly,t:A(g),onIntent:r[20]||=e=>m(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),u(A(Me),{visible:te.value,"onUpdate:visible":r[29]||=e=>te.value=e,position:`right`,header:A(g)(`filters.title`),class:`kb-filters`},{footer:H(()=>[u(A(f),{label:A(g)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!he.value,onClick:ge},null,8,[`label`,`disabled`])]),default:H(()=>[c(`div`,Ni,[c(`section`,Pi,[c(`span`,Fi,y(A(g)(`filters.priority`)),1),me.value?(L(),t(a,{key:1},[c(`div`,Ii,[(L(),t(a,null,z([`lte`,`eq`,`gte`],e=>E(c(`button`,{key:e,class:O([`kb-ops__btn`,{"kb-ops__btn--on":j.value===e}]),onClick:t=>{j.value=e,M.value===null&&(M.value=5)}},[x(y(e===`lte`?`≤`:e===`eq`?`=`:`≥`),1)],10,Li),[[o,{value:A(g)(`filters.priorityOp.${e}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),E((L(),t(`button`,{class:O([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":j.value===`none`}]),onClick:r[22]||=e=>{j.value=j.value===`none`?`gte`:`none`,M.value=j.value===`none`?null:5}},[...r[71]||=[c(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[o,{value:A(g)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),j.value===`none`?R(``,!0):(L(),t(`div`,Ri,[u(A(nt),{"model-value":M.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":r[23]||=e=>M.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),c(`span`,zi,y(M.value),1)])),c(`button`,{class:`kb-prio__set`,onClick:r[24]||=e=>{M.value=null,j.value=`gte`}},[r[72]||=c(`i`,{class:`pi pi-times`},null,-1),x(` `+y(A(g)(`filters.clearOne`)),1)]),j.value===`none`?R(``,!0):(L(),t(`p`,Bi,y(A(g)(`filters.priorityHint`)),1))],64)):(L(),t(`button`,{key:0,class:`kb-prio__set`,onClick:r[21]||=e=>M.value=5},[r[70]||=c(`i`,{class:`pi pi-plus`},null,-1),x(` `+y(A(g)(`filters.priorityAdd`)),1)]))]),c(`section`,Vi,[c(`span`,Hi,y(A(g)(`filters.colors`)),1),c(`div`,Ui,[E((L(),t(`button`,{class:O([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":N.value.includes(``)}]),onClick:r[25]||=e=>N.value=N.value.includes(``)?N.value.filter(e=>e!==``):[...N.value,``]},[...r[73]||=[c(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[o,{value:A(g)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(L(),t(a,null,z(Dt,e=>E(c(`button`,{key:e,class:O([`kb-colors__swatch`,{"kb-colors__swatch--on":N.value.includes(e)}]),style:s({background:e}),onClick:t=>N.value=N.value.includes(e)?N.value.filter(t=>t!==e):[...N.value,e]},null,14,Wi),[[o,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))])]),c(`section`,Gi,[c(`span`,Ki,y(A(g)(`filters.groups`)),1),u(A(Ie),{modelValue:ve.value,"onUpdate:modelValue":r[26]||=e=>ve.value=e,options:ye.value,placeholder:A(g)(`filters.groupsPlaceholder`),display:`chip`,filter:ye.value.length>6,class:`kb-filters__control`},{option:H(({option:e})=>[c(`span`,{class:O([`kb-void`,{"kb-void--is":e===Q}])},[e===Q?(L(),t(`i`,qi)):R(``,!0),x(` `+y(e===Q?A(g)(`filters.noGroups`):e),1)],2)]),chip:H(({value:e})=>[c(`span`,{class:O([`kb-void`,{"kb-void--is":e===Q}])},y(e===Q?A(g)(`filters.noGroups`):e),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),c(`section`,Ji,[c(`span`,Yi,y(A(g)(`filters.assignees`)),1),u(A(Ie),{modelValue:xe.value,"onUpdate:modelValue":r[27]||=e=>xe.value=e,options:Ce.value,"option-label":`name`,"option-value":`userId`,placeholder:A(g)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:H(({option:e})=>[c(`span`,{class:O([`kb-void`,{"kb-void--is":e.userId===Q}])},[e.userId===Q?(L(),t(`i`,Xi)):R(``,!0),x(` `+y(e.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),c(`section`,Zi,[c(`span`,Qi,y(A(g)(`filters.family`)),1),u(A(Ie),{modelValue:Ee.value,"onUpdate:modelValue":r[28]||=e=>Ee.value=e,options:De.value,"option-label":`title`,"option-value":`id`,placeholder:A(g)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:H(({option:e})=>[c(`span`,{class:O([`kb-void`,{"kb-void--is":e.id===Q}])},[e.id===Q?(L(),t(`i`,$i)):R(``,!0),c(`span`,null,y(e.title),1),e.column?(L(),t(`span`,ea,y(e.column),1)):R(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),c(`p`,ta,y(A(g)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),u(A(Me),{visible:J.value,"onUpdate:visible":r[34]||=e=>J.value=e,position:`right`,header:A(g)(`archive.title`),class:`kb-archive`},{default:H(()=>[c(`p`,na,y(A(g)(`archive.hint`)),1),c(`span`,ra,[r[74]||=c(`i`,{class:`pi pi-search`},null,-1),u(A(Se),{modelValue:yn.value,"onUpdate:modelValue":r[30]||=e=>yn.value=e,placeholder:A(g)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),yn.value?(L(),b(A(f),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:r[31]||=e=>yn.value=``})):R(``,!0),E(u(A(f),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:he.value?String(he.value):void 0,"badge-severity":`info`,class:O({"kb-header__filter--on":he.value}),onClick:r[32]||=e=>te.value=!0},null,8,[`badge`,`class`]),[[o,A(g)(`filters.open`),void 0,{bottom:!0}]])]),u(A(we),{modelValue:bn.value,"onUpdate:modelValue":r[33]||=e=>bn.value=e,options:xn.value,"option-label":`title`,"option-value":`id`,size:`small`,class:`kb-archive__column`,"aria-label":A(g)(`archive.columnFilter`)},null,8,[`modelValue`,`options`,`aria-label`]),e.loadingArchive?(L(),t(`p`,ia,y(A(g)(`archive.loading`)),1)):e.archivedCards.length?En.value.length?(L(),t(a,{key:3},[Dn.value?(L(),t(`p`,sa,[x(y(A(g)(`archive.filteredOut`,{count:Dn.value}))+` `,1),c(`button`,{class:`kb-archive__reset`,onClick:ge},y(A(g)(`filters.reset`)),1)])):R(``,!0),e.archiveTruncated?(L(),t(`p`,ca,[r[75]||=c(`i`,{class:`pi pi-exclamation-circle`},null,-1),x(` `+y(A(g)(`archive.truncated`)),1)])):R(``,!0),c(`ul`,la,[(L(!0),t(a,null,z(En.value,i=>(L(),t(`li`,{key:i.id,class:O([`kb-card kb-archive__card`,{"kb-card--colored":i.color}]),style:s(i.color?{borderTopColor:i.color}:void 0),onClick:e=>Tn(i)},[u(un,{card:i,t:A(g),"avatar-url":e.avatarUrl,"child-count":tn(i.id),"has-parent":!!$t(i.id)},{actions:H(()=>[e.readOnly?R(``,!0):E((L(),t(`button`,{key:0,class:`kb-card__delete`,onClick:U(e=>jn(i.id),[`stop`])},[...r[76]||=[c(`i`,{class:`pi pi-replay`},null,-1)]],8,da)),[[o,A(g)(`archive.restore`),void 0,{left:!0}]])]),badges:H(()=>[B(n.$slots,`card-badges`,{card:i},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),c(`div`,fa,[i.archivedFrom?(L(),t(`span`,pa,[r[77]||=c(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),x(` `+y(A(g)(`archive.fromColumn`,{column:i.archivedFrom.columnTitle})),1)])):R(``,!0),i.archivedAt?(L(),t(`span`,ma,y(new Date(i.archivedAt).toLocaleDateString()),1)):R(``,!0)])],14,ua))),128))])],64)):(L(),t(`p`,oa,y(A(g)(`archive.allFiltered`,{count:Dn.value})),1)):(L(),t(`p`,aa,y(yn.value||bn.value?A(g)(`archive.noMatch`):A(g)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),u(A(i),{visible:!!W.value,header:$e.value.trim()||A(g)(`card.untitled`),modal:!0,"dismissable-mask":!Gt.value,class:O([`kb-card-dialog`,{"kb-card-dialog--colored":Et.value}]),style:s({width:`min(1400px, 92vw)`,height:`90vh`,...Et.value?{"--kb-card-color":Et.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":r[53]||=e=>{e||Kt()}},{footer:H(()=>[c(`div`,Xs,[Gt.value&&!e.readOnly?(L(),t(`span`,Zs,[r[105]||=c(`i`,{class:`pi pi-exclamation-circle`},null,-1),x(` `+y(A(g)(`editor.unsavedHint`)),1)])):R(``,!0),u(A(f),{label:A(g)(`editor.close`),text:``,onClick:Kt},null,8,[`label`]),e.readOnly?R(``,!0):(L(),b(A(f),{key:1,label:A(g)(`editor.save`),icon:`pi pi-check`,onClick:Zt},null,8,[`label`]))])]),default:H(()=>[W.value?(L(),t(`div`,ha,[c(`div`,ga,[u(A(Be),{value:At.value,"onUpdate:value":r[42]||=e=>At.value=e},{default:H(()=>[u(A(Re),null,{default:H(()=>[u(A(Ve),{value:`edit`},{default:H(()=>[r[78]||=c(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),x(y(A(g)(`editor.tabs.edit`)),1)]),_:1}),fn.value||mn.value?(L(),b(A(Ve),{key:0,value:`relations`},{default:H(()=>[r[79]||=c(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),x(y(A(g)(`editor.tabs.relations`,{count:mn.value})),1)]),_:1})):R(``,!0),u(A(Ve),{value:`comments`},{default:H(()=>[r[80]||=c(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),x(y(A(g)(`editor.tabs.comments`,{count:Xr.value.length||(W.value.card.commentCount??0)})),1)]),_:1}),u(A(Ve),{value:`history`},{default:H(()=>[r[81]||=c(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),x(y(A(g)(`editor.tabs.history`,{count:W.value.card.history?.length??0})),1)]),_:1})]),_:1}),u(A(ze),null,{default:H(()=>[u(A(He),{value:`edit`},{default:H(()=>[c(`div`,_a,[c(`div`,va,[c(`label`,ya,y(A(g)(`editor.titleLabel`)),1),u(A(Se),{id:`kanban-card-title`,modelValue:$e.value,"onUpdate:modelValue":r[35]||=e=>$e.value=e,disabled:e.readOnly,autofocus:``,onKeyup:I(Zt,[`enter`])},null,8,[`modelValue`,`disabled`])]),c(`div`,ba,[c(`label`,xa,y(A(g)(`editor.contentLabel`)),1),u(A(We),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:Mt,modelValue:et.value,"onUpdate:modelValue":r[36]||=e=>et.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!e.readOnly,placeholder:A(g)(`editor.contentPlaceholder`),"handle-files":e=>al(e,`card`),mentions:Qn.value,"attachment-src":ct,onLinkClick:Ic},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),c(`div`,Sa,[c(`label`,Ca,y(A(g)(`editor.filesLabel`)),1),tt.value.length?(L(),t(`div`,wa,[(L(!0),t(a,null,z(tt.value,(n,i)=>(L(),t(`div`,{key:i,class:`kb-dialog__thumb`},[c(`img`,{src:n,alt:`attachment`},null,8,Ta),e.readOnly?R(``,!0):(L(),t(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>cl(i)},[...r[82]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,Ea))]))),128))])):R(``,!0),u(vn,{files:rt.value,preview:Fn,removable:!e.readOnly,"remove-label":A(g)(`editor.removeFile`),onOpen:Gn,onRemove:Yn},null,8,[`files`,`removable`,`remove-label`]),u(Nr,{queue:at.value,errors:G.value,uploading:it.value,"uploading-label":A(g)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),e.readOnly?R(``,!0):(L(),t(`label`,Da,[r[83]||=c(`i`,{class:`pi pi-upload`},null,-1),x(` `+y(A(g)(`editor.attachFile`))+` `,1),c(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:sl},null,32)]))])])]),_:1}),u(A(He),{value:`relations`},{default:H(()=>[c(`div`,Oa,[q.value||fn.value?(L(),t(`section`,ka,[c(`h4`,Aa,[r[84]||=c(`i`,{class:`pi pi-arrow-up`},null,-1),x(` `+y(A(g)(`editor.parentLabel`)),1)]),q.value?(L(),t(`table`,ja,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,y(A(g)(`editor.relationsColCard`)),1),c(`th`,null,y(A(g)(`editor.relationsColBoard`)),1),c(`th`,null,y(A(g)(`editor.relationsColColumn`)),1),c(`th`,Ma,y(A(g)(`editor.relationsColAssignees`)),1),c(`th`,Na,y(A(g)(`editor.relationsColComments`)),1),c(`th`,Pa,y(A(g)(`editor.relationsColActions`)),1)])]),c(`tbody`,null,[c(`tr`,null,[c(`td`,Fa,[E((L(),t(`span`,{class:`kb-rel__card-title`,ref:e=>Or(e,`rel:${q.value?.cardId??``}`)},[x(y(q.value.title),1)])),[[o,kr(`rel:${q.value.cardId}`,q.value.title),void 0,{top:!0}]])]),c(`td`,{class:O([`kb-rel__board`,{"kb-rel__board--away":!q.value.here}])},[E((L(),t(`span`,{class:`kb-rel__card-title`,ref:e=>Or(e,`relb:${q.value?.cardId??``}`)},[x(y(q.value.boardName),1)])),[[o,kr(`relb:${q.value?.cardId??``}`,q.value?.boardName??``),void 0,{top:!0}]])],2),c(`td`,Ia,[E((L(),t(`span`,{class:`kb-rel__card-title`,ref:e=>Or(e,`relc:${q.value?.cardId??``}`)},[x(y(q.value.columnTitle),1)])),[[o,kr(`relc:${q.value?.cardId??``}`,q.value?.columnTitle??``),void 0,{top:!0}]])]),c(`td`,La,[q.value.assignees.length?(L(),t(`div`,Ra,[(L(!0),t(a,null,z(q.value.assignees,n=>(L(),t(`span`,{key:n.id,class:`kb-card__avatar`,style:s(er(n.id)),title:n.name},[e.avatarUrl&&!Xn.has(n.id)?(L(),t(`img`,{key:0,src:e.avatarUrl(n.id),alt:``,onError:e=>Xn.add(n.id)},null,40,Ba)):(L(),t(a,{key:1},[x(y(Zn(n.name)),1)],64))],12,za))),128))])):(L(),t(`span`,Va,`—`))]),c(`td`,Ha,y(q.value.commentCount||`—`),1),c(`td`,Ua,[c(`button`,{class:`kb-rel__action`,title:q.value.here?A(g)(`editor.childOpen`):A(g)(`editor.openOnBoard`,{board:q.value.boardName}),onClick:r[37]||=e=>hn(q.value.cardId,q.value.boardId)},[...r[85]||=[c(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Wa),fn.value?(L(),t(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:A(g)(`editor.detach`),onClick:r[38]||=e=>cn(null)},[...r[86]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,Ga)):R(``,!0)])])])])):(L(),t(`p`,Ka,y(A(g)(`editor.parentEmptyState`)),1)),fn.value?(L(),b(A(we),{key:2,"model-value":null,options:on.value,"option-label":`title`,"option-value":`id`,filter:on.value.length>6,"filter-placeholder":A(g)(`editor.parentSearchPlaceholder`),"empty-message":A(g)(`editor.parentEmpty`),"empty-filter-message":A(g)(`editor.parentEmpty`),placeholder:q.value?A(g)(`editor.parentReplace`):A(g)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":cn},{option:H(({option:e})=>[c(`span`,qa,[c(`span`,null,y(e.title),1),c(`span`,Ja,y(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):R(``,!0)])):R(``,!0),nn.value.length||fn.value?(L(),t(`section`,Ya,[c(`h4`,Xa,[r[87]||=c(`i`,{class:`pi pi-arrow-down`},null,-1),x(` `+y(A(g)(`editor.childrenLabel`,{count:nn.value.length})),1)]),nn.value.length?(L(),t(`table`,Za,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,y(A(g)(`editor.relationsColCard`)),1),c(`th`,null,y(A(g)(`editor.relationsColBoard`)),1),c(`th`,null,y(A(g)(`editor.relationsColColumn`)),1),c(`th`,Qa,y(A(g)(`editor.relationsColAssignees`)),1),c(`th`,$a,y(A(g)(`editor.relationsColComments`)),1),c(`th`,eo,y(A(g)(`editor.relationsColActions`)),1)])]),c(`tbody`,null,[(L(!0),t(a,null,z(nn.value,n=>(L(),t(`tr`,{key:n.cardId},[c(`td`,to,[E((L(),t(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Or(e,`rel:${n.cardId}`)},[x(y(n.title),1)])),[[o,kr(`rel:${n.cardId}`,n.title),void 0,{top:!0}]])]),c(`td`,{class:O([`kb-rel__board`,{"kb-rel__board--away":!n.here}])},[E((L(),t(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Or(e,`relb:${n.cardId}`)},[x(y(n.boardName),1)])),[[o,kr(`relb:${n.cardId}`,n.boardName),void 0,{top:!0}]])],2),c(`td`,no,[E((L(),t(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Or(e,`relc:${n.cardId}`)},[x(y(n.columnTitle),1)])),[[o,kr(`relc:${n.cardId}`,n.columnTitle),void 0,{top:!0}]])]),c(`td`,ro,[n.assignees.length?(L(),t(`div`,io,[(L(!0),t(a,null,z(n.assignees,n=>(L(),t(`span`,{key:n.id,class:`kb-card__avatar`,style:s(er(n.id)),title:n.name},[e.avatarUrl&&!Xn.has(n.id)?(L(),t(`img`,{key:0,src:e.avatarUrl(n.id),alt:``,onError:e=>Xn.add(n.id)},null,40,oo)):(L(),t(a,{key:1},[x(y(Zn(n.name)),1)],64))],12,ao))),128))])):(L(),t(`span`,so,`—`))]),c(`td`,co,y(n.commentCount||`—`),1),c(`td`,lo,[c(`button`,{class:`kb-rel__action`,title:n.here?A(g)(`editor.childOpen`):A(g)(`editor.openOnBoard`,{board:n.boardName}),onClick:e=>hn(n.cardId,n.boardId)},[...r[88]||=[c(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,uo),fn.value?(L(),t(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:A(g)(`editor.detach`),onClick:e=>dn(n.cardId)},[...r[89]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,fo)):R(``,!0)])]))),128))])])):(L(),t(`p`,po,y(A(g)(`editor.childrenEmptyState`)),1)),fn.value?(L(),b(A(we),{key:2,"model-value":null,options:sn.value,"option-label":`title`,"option-value":`id`,filter:sn.value.length>6,"filter-placeholder":A(g)(`editor.parentSearchPlaceholder`),"empty-message":A(g)(`editor.parentEmpty`),"empty-filter-message":A(g)(`editor.parentEmpty`),placeholder:A(g)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":ln},{option:H(({option:e})=>[c(`span`,mo,[c(`span`,null,y(e.title),1),c(`span`,ho,y(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):R(``,!0)])):R(``,!0),!fn.value&&!q.value&&!nn.value.length?(L(),t(`p`,go,y(A(g)(`editor.relationsEmpty`)),1)):R(``,!0)])]),_:1}),u(A(He),{value:`comments`},{default:H(()=>[c(`div`,_o,[Xr.value.length?(L(),t(`div`,yo,[(L(!0),t(a,null,z(Xr.value,(n,i)=>(L(),t(`div`,{key:i,class:O([`kb-comments__item`,{"kb-comments__item--ai":n.author===`ai`,"kb-comments__item--clickable":Xc(n)}]),onClick:e=>Xc(n)&&Qc(n)},[c(`div`,{class:O([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!nr(n)}]),style:s(nr(n)?er(nr(n)):void 0)},[n.author===`ai`?(L(),t(`i`,xo)):nr(n)&&e.avatarUrl&&!Xn.has(nr(n))?(L(),t(`img`,{key:1,src:e.avatarUrl(nr(n)),alt:``,onError:e=>Xn.add(nr(n))},null,40,So)):n.authorUser?.name?(L(),t(a,{key:2},[x(y(Zn(n.authorUser.name)),1)],64)):(L(),t(`i`,Co))],6),c(`div`,wo,[c(`div`,To,[c(`span`,Eo,y(rr(n)),1),c(`span`,Do,y(tl(n.timestamp)),1),n.editedAt?(L(),t(`span`,Oo,y(A(g)(`comments.edited`)),1)):R(``,!0),!e.readOnly&&fr(n)&&Pt.value!==n.id?(L(),t(`span`,ko,[tr(n)?(L(),t(`button`,{key:0,class:`kb-comments__tool`,title:A(g)(`comments.edit`),onClick:U(e=>ar(n),[`stop`])},[...r[91]||=[c(`i`,{class:`pi pi-pencil`},null,-1)]],8,Ao)):R(``,!0),c(`button`,{class:`kb-comments__tool`,title:A(g)(`comments.delete`),onClick:U(e=>pr(n),[`stop`])},[...r[92]||=[c(`i`,{class:`pi pi-trash`},null,-1)]],8,jo)])):R(``,!0)]),Pt.value===n.id?(L(),t(`div`,{key:0,class:`kb-comments__edit`,onClick:r[40]||=U(()=>{},[`stop`])},[u(A(We),{modelValue:Ft.value,"onUpdate:modelValue":r[39]||=e=>Ft.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:Qn.value,onLinkClick:Ic},null,8,[`modelValue`,`mentions`]),c(`div`,Mo,[u(A(f),{label:A(g)(`editor.cancel`),size:`small`,text:``,onClick:or},null,8,[`label`]),u(A(f),{label:A(g)(`editor.save`),size:`small`,disabled:!Ft.value.trim(),onClick:lr},null,8,[`label`,`disabled`])])])):n.detail?(L(),t(a,{key:1},[c(`div`,{ref_for:!0,ref:e=>qc(e,n,i),class:O([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!Hc(n,i),"kb-comments__text--toggleable":Uc(n,i)&&!Xc(n)}]),onClick:e=>Gc(n,i,e),innerHTML:Rc(n.detail)},null,10,No),Uc(n,i)?(L(),t(`button`,{key:0,class:`kb-comments__more`,onClick:U(e=>Wc(n,i),[`stop`])},y(Hc(n,i)?A(g)(`comments.showLess`):A(g)(`comments.showMore`)),9,Po)):R(``,!0)],64)):R(``,!0),Pt.value===n.id?R(``,!0):(L(),b(vn,{key:2,files:n.attachments??[],preview:Fn,compact:``,onOpen:Gn},null,8,[`files`]))])],10,bo))),128)),c(`div`,{ref_key:`commentsEndEl`,ref:Nt},null,512)])):(L(),t(`div`,vo,[r[90]||=c(`i`,{class:`pi pi-comments`},null,-1),c(`span`,null,y(A(g)(`comments.empty`)),1)])),e.readOnly?R(``,!0):(L(),t(`div`,{key:2,class:`kb-comments__input`,onKeydown:[I(U(Nn,[`ctrl`,`prevent`]),[`enter`]),I(U(Nn,[`meta`,`prevent`]),[`enter`])]},[u(A(We),{modelValue:jt.value,"onUpdate:modelValue":r[41]||=e=>jt.value=e,markdown:``,placeholder:A(g)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>al(e,`comment`),mentions:Qn.value,onLinkClick:Ic},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),u(vn,{files:K.value,preview:Fn,openable:!1,removable:``,"remove-label":A(g)(`editor.removeFile`),compact:``,onRemove:ol},null,8,[`files`,`remove-label`]),u(Nr,{queue:at.value,errors:G.value,uploading:it.value,"uploading-label":A(g)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),c(`div`,Io,[c(`label`,{class:`kb-comments__attach`,title:A(g)(`comments.attach`)},[r[93]||=c(`i`,{class:`pi pi-paperclip`},null,-1),c(`input`,{type:`file`,multiple:``,onChange:il},null,32)],8,Lo),c(`span`,Ro,y(A(g)(`comments.sendHint`)),1),u(A(f),{label:A(g)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!jt.value.trim()&&!K.value.length,onClick:Nn},null,8,[`label`,`disabled`])])],40,Fo))])]),_:1}),u(A(He),{value:`history`},{default:H(()=>[c(`div`,zo,[W.value.card.history?.length?(L(),t(`div`,Vo,[(L(!0),t(a,null,z([...W.value.card.history].reverse(),(e,n)=>(L(),t(`div`,{key:n,class:O([`kb-history__item`,{"kb-history__item--clickable":Xc(e)}]),onClick:t=>Xc(e)&&Qc(e)},[c(`div`,Uo,[c(`i`,{class:O($c[e.type])},null,2)]),c(`div`,Wo,[c(`span`,Go,[x(y(el.value[e.type])+` `,1),Xc(e)?(L(),t(`i`,Ko)):R(``,!0)]),e.detail?(L(),t(`span`,qo,y(e.detail),1)):R(``,!0),c(`span`,Jo,[x(y(tl(e.timestamp))+` `,1),e.authorUser?.name?(L(),t(a,{key:0},[x(` · `+y(A(g)(`history.by`,{name:e.authorUser.name})),1)],64)):R(``,!0)])])],10,Ho))),128))])):(L(),t(`div`,Bo,[r[94]||=c(`i`,{class:`pi pi-clock`},null,-1),c(`span`,null,y(A(g)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),c(`aside`,Yo,[e.members.length?(L(),t(`div`,Xo,[c(`span`,Zo,y(A(g)(`editor.assigneesLabel`)),1),u(A(Ie),{modelValue:lt.value,"onUpdate:modelValue":r[43]||=e=>lt.value=e,options:e.members,"option-label":`name`,"option-value":`userId`,placeholder:A(g)(`editor.assigneesPlaceholder`),disabled:e.readOnly,display:`chip`,filter:``,class:`kb-side__control`},{chip:H(({value:n})=>[c(`span`,{class:`kb-card__avatar`,style:s(er(n)),title:$n(n)},[e.avatarUrl&&!Xn.has(n)?(L(),t(`img`,{key:0,src:e.avatarUrl(n),alt:``,onError:e=>Xn.add(n)},null,40,$o)):(L(),t(a,{key:1},[x(y(Zn($n(n))),1)],64))],12,Qo)]),option:H(({option:n})=>[c(`span`,es,[c(`span`,{class:`kb-card__avatar`,style:s(er(n.userId))},[e.avatarUrl&&!Xn.has(n.userId)?(L(),t(`img`,{key:0,src:e.avatarUrl(n.userId),alt:``,onError:e=>Xn.add(n.userId)},null,40,ts)):(L(),t(a,{key:1},[x(y(Zn(n.name)),1)],64))],4),x(` `+y(n.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),c(`p`,ns,y(A(g)(`editor.assigneesHint`)),1)])):R(``,!0),c(`div`,rs,[c(`span`,is,[x(y(A(g)(`editor.priorityLabel`))+` `,1),mt.value===null?R(``,!0):(L(),t(`span`,as,y(mt.value)+`/10`,1))]),mt.value===null?e.readOnly?(L(),t(`p`,cs,y(A(g)(`editor.priorityNone`)),1)):(L(),t(`button`,{key:1,class:`kb-prio__set`,onClick:yt},[r[96]||=c(`i`,{class:`pi pi-plus`},null,-1),x(` `+y(A(g)(`editor.priorityAdd`)),1)])):(L(),t(`div`,os,[u(A(nt),{modelValue:mt.value,"onUpdate:modelValue":r[44]||=e=>mt.value=e,min:1,max:10,step:1,disabled:e.readOnly,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),e.readOnly?R(``,!0):(L(),t(`button`,{key:0,class:`kb-prio__clear`,title:A(g)(`editor.priorityClear`),onClick:r[45]||=e=>mt.value=null},[...r[95]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,ss))]))]),c(`div`,ls,[c(`span`,us,y(A(g)(`editor.deadlineLabel`)),1),c(`div`,ds,[u(A(kt),{modelValue:ht.value,"onUpdate:modelValue":r[46]||=e=>ht.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:e.readOnly,placeholder:A(g)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!e.readOnly&&ht.value?(L(),t(`button`,{key:0,class:`kb-prio__clear`,title:A(g)(`editor.deadlineClear`),onClick:r[47]||=e=>ht.value=null},[...r[97]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,fs)):R(``,!0)]),ht.value?(L(),t(`p`,ps,y(gt.value),1)):R(``,!0)]),c(`div`,ms,[c(`span`,hs,y(A(g)(`editor.groupsLabel`)),1),u(A(Ue),{modelValue:ut.value,"onUpdate:modelValue":r[48]||=e=>ut.value=e,multiple:``,suggestions:dt.value,disabled:e.readOnly,placeholder:ut.value.length?``:A(g)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:pt,onItemSelect:Ct,onKeydown:I(wt,[`enter`]),onFocusout:wt},{option:H(({option:e})=>[c(`span`,gs,[c(`i`,{class:O(ft.value.includes(e)?`pi pi-tag`:`pi pi-plus`)},null,2),c(`span`,null,y(ft.value.includes(e)?e:A(g)(`editor.groupsCreate`,{name:e})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),c(`p`,_s,y(A(g)(`editor.groupsHint`)),1)]),pn.value.length?(L(),t(`div`,vs,[c(`span`,ys,y(A(g)(`editor.ancestryLabel`)),1),c(`ul`,bs,[(L(!0),t(a,null,z(pn.value,(e,n)=>(L(),t(`li`,{key:e.cardId,class:`kb-tree__row`,style:s({paddingLeft:`${n*.75}rem`})},[n?(L(),t(`i`,xs)):R(``,!0),c(`button`,{class:`kb-tree__label`,title:e.here?A(g)(`editor.childOpen`):A(g)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>hn(e.cardId,e.boardId)},y(e.title),9,Ss)],4))),128)),c(`li`,{class:`kb-tree__row kb-tree__row--self`,style:s({paddingLeft:`${pn.value.length*.75}rem`})},[r[98]||=c(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),c(`span`,Cs,y($e.value.trim()||A(g)(`card.untitled`)),1)],4)])])):R(``,!0),c(`div`,ws,[c(`span`,Ts,y(A(g)(`editor.colorLabel`)),1),c(`div`,Es,[E((L(),t(`button`,{class:O([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Et.value}]),disabled:e.readOnly,onClick:r[49]||=e=>Et.value=``},[...r[99]||=[c(`i`,{class:`pi pi-ban`},null,-1)]],10,Ds)),[[o,{value:A(g)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(L(),t(a,null,z(Dt,t=>E(c(`button`,{key:t,class:O([`kb-colors__swatch`,{"kb-colors__swatch--on":Et.value===t}]),style:s({background:t}),disabled:e.readOnly,onClick:e=>Et.value=t},null,14,Os),[[o,{value:t,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),c(`p`,ks,y(A(g)(`editor.colorHint`)),1)]),wn.value?(L(),t(`div`,As,[c(`span`,js,y(A(g)(`editor.columnSettingLabel`)),1),c(`p`,Ms,[r[100]||=c(`i`,{class:`pi pi-inbox`},null,-1),x(` `+y(W.value.card.archivedFrom?A(g)(`archive.editorFrom`,{column:W.value.card.archivedFrom.columnTitle}):A(g)(`archive.editorNote`)),1)])])):(L(),t(`div`,Ns,[c(`span`,Ps,y(A(g)(`editor.columnSettingLabel`)),1),u(A(we),{"model-value":Ot.value,options:gn.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:e.readOnly,filter:gn.value.length>1,"filter-placeholder":A(g)(`editor.columnSearchPlaceholder`),"empty-filter-message":A(g)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":_n},{optiongroup:H(({option:e})=>[c(`span`,{class:O([`kb-colgroup`,{"kb-colgroup--away":e.items[0]?.boardId}])},[c(`i`,{class:O(e.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),c(`span`,Fs,y(e.label),1)],2)]),option:H(({option:e})=>[c(`span`,Is,[e.boardId?(L(),t(`i`,Ls)):R(``,!0),c(`span`,null,y(e.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),e.otherBoards.length&&e.moveCardToBoard&&!e.readOnly?(L(),t(`p`,Rs,y(A(g)(`editor.moveToBoardHint`)),1)):R(``,!0)])),c(`div`,zs,[W.value.card.createdBy?(L(),t(`p`,Bs,[r[101]||=c(`i`,{class:`pi pi-user`},null,-1),x(` `+y(A(g)(`editor.createdBy`,{name:W.value.card.createdBy.name})),1)])):R(``,!0),c(`p`,null,[r[102]||=c(`i`,{class:`pi pi-calendar-plus`},null,-1),x(` `+y(tl(W.value.card.createdAt)),1)]),c(`p`,null,[r[103]||=c(`i`,{class:`pi pi-clock`},null,-1),x(` `+y(tl(W.value.card.updatedAt)),1)])]),Zc.value.length?(L(),t(`div`,Vs,[c(`span`,Hs,y(A(g)(`editor.conversationsLabel`)),1),c(`div`,Us,[(L(!0),t(a,null,z(Zc.value,e=>(L(),t(`a`,{key:e.id,class:`kb-side__conv`,title:e.title,onClick:t=>m(`open-conversation`,e.id)},[r[104]||=c(`i`,{class:`pi pi-comments`},null,-1),c(`span`,Gs,y(e.label),1)],8,Ws))),128))])])):R(``,!0),n.$slots[`card-editor-actions`]?(L(),t(`div`,Ks,[c(`span`,qs,y(A(g)(`editor.actionsLabel`)),1),c(`div`,Js,[B(n.$slots,`card-editor-actions`,{card:W.value.card,colId:W.value.colId,draft:{title:$e.value,markdown:et.value}},void 0,!0)])])):R(``,!0),!e.readOnly&&!Ut.value?(L(),t(`div`,Ys,[wn.value?(L(),b(A(f),{key:0,label:A(g)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:r[50]||=e=>{jn(W.value.card.id),Xt()}},null,8,[`label`])):(L(),b(A(f),{key:1,label:A(g)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:r[51]||=e=>Y(W.value.colId,W.value.card.id)},null,8,[`label`])),u(A(f),{label:A(g)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:r[52]||=e=>Mn(W.value.colId,W.value.card.id)},null,8,[`label`])])):R(``,!0)])])):R(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),u(A(i),{visible:!!X.value,header:X.value?.file.name??``,modal:!0,"dismissable-mask":``,class:`kb-viewer-dialog`,style:{width:`min(1200px, 92vw)`,height:`88vh`},"onUpdate:visible":r[54]||=e=>{e||Jn()}},{footer:H(()=>[u(A(f),{label:A(g)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:qn},null,8,[`label`]),u(A(f),{label:A(g)(`editor.close`),onClick:Jn},null,8,[`label`])]),default:H(()=>[X.value?(L(),t(`div`,Qs,[X.value.kind===`image`?(L(),t(`img`,{key:0,src:X.value.url,alt:X.value.file.name,class:`kb-viewer__image`},null,8,$s)):X.value.kind===`pdf`?(L(),t(`iframe`,{key:1,src:X.value.url,title:X.value.file.name,class:`kb-viewer__frame`},null,8,ec)):X.value.kind===`video`?(L(),t(`video`,{key:2,src:X.value.url,controls:``,class:`kb-viewer__media`},null,8,tc)):X.value.kind===`audio`?(L(),t(`audio`,{key:3,src:X.value.url,controls:``,class:`kb-viewer__audio`},null,8,nc)):X.value.office?.mode===`sheet`?(L(),t(`div`,rc,[X.value.office.sheets.length>1?(L(),t(`div`,ic,[(L(!0),t(a,null,z(X.value.office.sheets,(e,n)=>(L(),t(`button`,{key:e.name+n,class:O([`kb-viewer__tab`,{"kb-viewer__tab--active":n===Z.value}]),onClick:e=>Z.value=n},y(e.name),11,ac))),128))])):R(``,!0),c(`div`,oc,[Hn.value&&Hn.value.rows.length?(L(),t(`table`,sc,[c(`thead`,null,[c(`tr`,null,[(L(!0),t(a,null,z(Hn.value.rows[0],(e,n)=>(L(),t(`th`,{key:n},y(e),1))),128))])]),c(`tbody`,null,[(L(!0),t(a,null,z(Hn.value.rows.slice(1),(e,n)=>(L(),t(`tr`,{key:n},[(L(!0),t(a,null,z(e,(e,n)=>(L(),t(`td`,{key:n},y(e),1))),128))]))),128))])])):(L(),t(`p`,cc,y(A(g)(`editor.viewerEmpty`)),1))])])):X.value.office?.mode===`blocks`?(L(),t(`div`,lc,[c(`div`,uc,[(L(!0),t(a,null,z(X.value.office.blocks,(e,n)=>(L(),t(a,{key:n},[e.type===`heading`&&e.level===1?(L(),t(`h1`,dc,y(e.text),1)):e.type===`heading`&&e.level===2?(L(),t(`h2`,fc,y(e.text),1)):e.type===`heading`?(L(),t(`h3`,pc,y(e.text),1)):e.type===`list`?(L(),t(`li`,mc,y(e.text),1)):e.type===`table`?(L(),t(`table`,hc,[c(`tbody`,null,[(L(!0),t(a,null,z(e.rows,(e,n)=>(L(),t(`tr`,{key:n},[(L(!0),t(a,null,z(e,(e,n)=>(L(),t(`td`,{key:n},y(e),1))),128))]))),128))])])):(L(),t(`p`,gc,y(e.text),1))],64))),128)),X.value.office.blocks.length?R(``,!0):(L(),t(`p`,_c,y(A(g)(`editor.viewerEmpty`)),1))])])):X.value.office?.mode===`slides`?(L(),t(`div`,vc,[c(`div`,yc,[(L(!0),t(a,null,z(X.value.office.slides,(e,n)=>(L(),t(`section`,{key:n,class:`kb-viewer__slide`},[c(`span`,bc,y(n+1),1),e.title?(L(),t(`h3`,xc,y(e.title),1)):R(``,!0),(L(!0),t(a,null,z(e.lines,(e,n)=>(L(),t(`p`,{key:n},y(e),1))),128))]))),128))])])):X.value.office?.mode===`render`?(L(),t(`div`,Sc,[Wn.value?(L(),t(`p`,Cc,y(A(g)(`editor.viewerFailed`)),1)):R(``,!0),E(c(`div`,{ref_key:`renderHost`,ref:Un,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[Ae,!Wn.value]])])):(L(),t(`pre`,wc,y(X.value.text),1)),X.value.office&&X.value.office.mode!==`render`&&X.value.office.truncated?(L(),t(`p`,Tc,[r[106]||=c(`i`,{class:`pi pi-exclamation-triangle`},null,-1),x(` `+y(A(g)(`editor.viewerTruncated`)),1)])):R(``,!0)])):R(``,!0)]),_:1},8,[`visible`,`header`]),u(A(ae),{ref_key:`colMenu`,ref:Ar,onHide:r[58]||=e=>jr.value=null},{default:H(()=>[jr.value?(L(),t(`div`,Ec,[c(`div`,Dc,[B(n.$slots,`column-actions`,{column:jr.value},void 0,!0)]),mr.value?(L(),t(`button`,{key:0,class:`kb-colmenu__item`,onClick:r[55]||=e=>Pr(Fr)},[r[107]||=c(`i`,{class:`pi pi-bell`},null,-1),c(`span`,null,y(Cr(jr.value.id)?A(g)(`column.unsubscribe`):A(g)(`column.subscribe`)),1)])):R(``,!0),c(`button`,{class:`kb-colmenu__item`,onClick:r[56]||=e=>Pr(Yr)},[r[108]||=c(`i`,{class:`pi pi-angle-double-left`},null,-1),c(`span`,null,y(A(g)(`column.collapse`)),1)]),e.readOnly?R(``,!0):(L(),t(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:r[57]||=e=>Pr(Ze)},[r[109]||=c(`i`,{class:`pi pi-trash`},null,-1),c(`span`,null,y(A(g)(`column.deleteTooltip`)),1)]))])):R(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-7ba6f337`]]),Lc={class:`kanban-list-page`},Rc={class:`page-header`},zc={class:`page-header__right`},Bc={class:`list-menu`},Vc={key:0,class:`empty-state`},Hc={class:`board-grid`},Uc={class:`board-counts`},Wc={class:`board-count`},Gc={class:`board-count board-count--cards`},Kc={key:0,class:`board-desc`},qc={key:0,class:`empty-state`},Jc={class:`board-grid`},Yc={key:0,class:`board-desc`},Xc={key:0,class:`dialog-field`},Zc={for:`kanlist-new-template`},Qc={key:0,class:`field-hint`},$c={class:`dialog-field`},el={for:`kanlist-new-name`},tl={class:`dialog-field`},nl={for:`kanlist-new-desc`},rl={class:`dialog-field`},il={for:`kanlist-new-instructions`},al={class:`field-hint`},ol={class:`dialog-field`},sl={for:`kanlist-edit-name`},cl={class:`dialog-field`},ll={for:`kanlist-edit-desc`},$={class:`dialog-field`},ul={for:`kanlist-edit-instructions`},dl={class:`field-hint`},fl={class:`templates-intro`},pl={key:0,class:`empty-state`},ml={key:1,class:`template-list`},hl={class:`template-row__name`},gl={class:`hint`},_l={key:0,class:`template-row__actions`},vl={class:`dialog-field`},yl={for:`kanlist-tpl-name`},bl={class:`dialog-field`},xl={for:`kanlist-tpl-content`},Sl={class:`hint`},Cl={class:`templates-intro`},wl={key:0,class:`empty-state`},Tl={key:1,class:`template-list`},El={class:`template-row__name`},Dl={key:0,class:`template-row__actions`},Ol=T(g({__name:`KanbanList`,props:{boards:{},readOnly:{type:Boolean,default:!1},boardsLimit:{default:null},templates:{default:null},boardTemplates:{default:null},t:{}},emits:[`open`,`create`,`update`,`archive`,`delete`,`template-create`,`template-update`,`template-delete`,`board-template-delete`,`templates-needed`],setup(e,{emit:n}){let o=e,s=n,d=oe(),p=o.t;function m(e){s(`templates-needed`),e()}let h=r(!1),g=r(``),_=r(``),v=r(``),S=r(null),C=r(null),w=r(``);function T(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let ee=l(()=>{let e=T(w.value.trim());return e?o.boards.filter(t=>T(t.name).includes(e)||T(t.description??``).includes(e)):o.boards}),D=l(()=>ee.value.filter(e=>!e.archived)),k=l(()=>ee.value.filter(e=>e.archived)),te=l(()=>w.value.trim().length>0),ne=l(()=>o.boardsLimit!==null&&o.boards.length>=o.boardsLimit),re=l(()=>!o.readOnly&&!ne.value);function ie(e){let t=(o.boardTemplates??[]).find(t=>t.id===e);t&&(g.value.trim()||(g.value=t.name),v.value=t.instructions)}let j=l(()=>(o.boardTemplates??[]).find(e=>e.id===C.value)??null);function M(){!re.value||!g.value.trim()||(s(`create`,{name:g.value.trim(),description:_.value.trim(),instructions:v.value.trim(),...j.value?.columns.length?{columns:j.value.columns}:{},...j.value?.columnGroups?.length?{columnGroups:j.value.columnGroups}:{}}),h.value=!1,g.value=``,_.value=``,v.value=``,C.value=null)}function N(){S.value&&=(s(`update`,{...S.value}),null)}let P=r(!1),F=r(null);function se(){F.value={id:null,name:``,content:``}}function ce(e){F.value={id:e.id,name:e.name,content:e.content}}function ue(){let e=F.value;if(!e||!e.name.trim())return;let t={name:e.name.trim(),content:e.content};e.id?s(`template-update`,{id:e.id,...t}):s(`template-create`,t),F.value=null}function de(e){d.require({message:p(`templates.confirmDeleteMessage`,{name:e.name}),header:p(`templates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>s(`template-delete`,e.id)})}let fe=r(!1);function pe(e){d.require({message:p(`boardTemplates.confirmDeleteMessage`,{name:e.name}),header:p(`boardTemplates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>s(`board-template-delete`,e.id)})}let he=r(null);function ge(e){he.value?.hide(),e()}function _e(e,t){d.require({message:p(`dialogs.confirmDeleteMessage`,{name:t}),header:p(`dialogs.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>s(`delete`,e)})}return(n,r)=>{let o=be(`tooltip`);return L(),t(`div`,Lc,[c(`div`,Rc,[c(`h1`,null,y(A(p)(`title`)),1),c(`span`,zc,[u(A(xe),null,{default:H(()=>[u(A(le),{class:`pi pi-search`}),u(A(Se),{modelValue:w.value,"onUpdate:modelValue":r[0]||=e=>w.value=e,placeholder:A(p)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),e.boardsLimit===null?R(``,!0):(L(),t(`span`,{key:0,class:O([`quota`,{"quota--full":ne.value}])},y(A(p)(`quota`,{used:e.boards.length,limit:e.boardsLimit})),3)),e.readOnly?R(``,!0):(L(),b(A(f),{key:1,label:A(p)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:ne.value,onClick:r[1]||=e=>m(()=>h.value=!0)},null,8,[`label`,`disabled`])),e.templates||e.boardTemplates?(L(),t(a,{key:2},[u(A(f),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:A(p)(`menu`),"aria-label":A(p)(`menu`),onClick:r[2]||=e=>he.value?.toggle(e)},null,8,[`title`,`aria-label`]),u(A(ae),{ref_key:`listMenu`,ref:he},{default:H(()=>[c(`div`,Bc,[e.templates?(L(),t(`button`,{key:0,class:`list-menu__item`,onClick:r[3]||=e=>ge(()=>m(()=>P.value=!0))},[r[27]||=c(`i`,{class:`pi pi-file-edit`},null,-1),c(`span`,null,y(A(p)(`templates.manage`)),1)])):R(``,!0),e.boardTemplates?(L(),t(`button`,{key:1,class:`list-menu__item`,onClick:r[4]||=e=>ge(()=>fe.value=!0)},[r[28]||=c(`i`,{class:`pi pi-bookmark`},null,-1),c(`span`,null,y(A(p)(`boardTemplates.manage`)),1)])):R(``,!0)])]),_:1},512)],64)):R(``,!0)])]),B(n.$slots,`banner`,{},void 0,!0),u(A(Be),{value:`active`},{default:H(()=>[u(A(Re),null,{default:H(()=>[u(A(Ve),{value:`active`},{default:H(()=>[x(y(A(p)(`tabs.active`)),1)]),_:1}),u(A(Ve),{value:`archived`},{default:H(()=>[x(y(A(p)(`tabs.archived`,{count:k.value.length})),1)]),_:1})]),_:1}),u(A(ze),null,{default:H(()=>[u(A(He),{value:`active`},{default:H(()=>[D.value.length===0?(L(),t(`div`,Vc,y(te.value?A(p)(`noResults`,{query:w.value.trim()}):A(p)(`empty`)),1)):R(``,!0),c(`div`,Hc,[(L(!0),t(a,null,z(D.value,n=>(L(),b(A(Fe),{key:n.id,class:`board-card`,onClick:e=>s(`open`,n.id)},{title:H(()=>[x(y(n.name),1)]),subtitle:H(()=>[c(`span`,Uc,[c(`span`,Wc,[r[29]||=c(`i`,{class:`pi pi-list`},null,-1),x(y(A(p)(`columns`,{count:n.columnCount})),1)]),c(`span`,Gc,[r[30]||=c(`i`,{class:`pi pi-clone`},null,-1),x(y(A(p)(`cards`,{count:n.cardCount})),1)])])]),content:H(()=>[n.description?(L(),t(`p`,Kc,y(n.description),1)):R(``,!0)]),footer:H(()=>[e.readOnly?R(``,!0):(L(),t(`div`,{key:0,class:`board-actions`,onClick:r[5]||=U(()=>{},[`stop`])},[u(A(f),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>S.value={id:n.id,name:n.name,description:n.description,instructions:n.instructions??``}},null,8,[`onClick`]),E(u(A(f),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>s(`archive`,{id:n.id,archived:!0})},null,8,[`onClick`]),[[o,A(p)(`archive`)]]),u(A(f),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>_e(n.id,n.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),u(A(He),{value:`archived`},{default:H(()=>[k.value.length===0?(L(),t(`div`,qc,y(te.value?A(p)(`noResults`,{query:w.value.trim()}):A(p)(`archivedEmpty`)),1)):R(``,!0),c(`div`,Jc,[(L(!0),t(a,null,z(k.value,n=>(L(),b(A(Fe),{key:n.id,class:`board-card archived`,onClick:e=>s(`open`,n.id)},{title:H(()=>[x(y(n.name),1)]),content:H(()=>[n.description?(L(),t(`p`,Yc,y(n.description),1)):R(``,!0)]),footer:H(()=>[e.readOnly?R(``,!0):(L(),t(`div`,{key:0,class:`board-actions`,onClick:r[6]||=U(()=>{},[`stop`])},[u(A(f),{label:A(p)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>s(`archive`,{id:n.id,archived:!1})},null,8,[`label`,`onClick`]),u(A(f),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>_e(n.id,n.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),u(A(i),{visible:h.value,"onUpdate:visible":r[13]||=e=>h.value=e,header:A(p)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:H(()=>[u(A(f),{label:A(p)(`cancel`),text:``,onClick:r[12]||=e=>h.value=!1},null,8,[`label`]),u(A(f),{label:A(p)(`create`),icon:`pi pi-check`,disabled:!g.value.trim(),onClick:M},null,8,[`label`,`disabled`])]),default:H(()=>[e.boardTemplates?.length?(L(),t(`div`,Xc,[c(`label`,Zc,y(A(p)(`boardTemplates.pickLabel`)),1),u(A(we),{id:`kanlist-new-template`,modelValue:C.value,"onUpdate:modelValue":r[7]||=e=>C.value=e,options:e.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:A(p)(`boardTemplates.pickPlaceholder`),onChange:r[8]||=e=>ie(C.value)},null,8,[`modelValue`,`options`,`placeholder`]),j.value?(L(),t(`small`,Qc,y(A(p)(`boardTemplates.pickHint`,{columns:j.value.columns.map(e=>e.title).join(`, `)||A(p)(`boardTemplates.noColumns`)})),1)):R(``,!0)])):R(``,!0),c(`div`,$c,[c(`label`,el,y(A(p)(`nameLabel`)),1),u(A(Se),{id:`kanlist-new-name`,modelValue:g.value,"onUpdate:modelValue":r[9]||=e=>g.value=e,autofocus:``,class:`w-full`,onKeyup:I(M,[`enter`])},null,8,[`modelValue`])]),c(`div`,tl,[c(`label`,nl,y(A(p)(`descriptionLabel`)),1),u(A(me),{id:`kanlist-new-desc`,modelValue:_.value,"onUpdate:modelValue":r[10]||=e=>_.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),c(`div`,rl,[c(`label`,il,y(A(p)(`instructionsLabel`)),1),u(A(me),{id:`kanlist-new-instructions`,modelValue:v.value,"onUpdate:modelValue":r[11]||=e=>v.value=e,rows:`6`,class:`w-full`,placeholder:A(p)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),c(`small`,al,y(A(p)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),u(A(i),{visible:!!S.value,header:A(p)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":r[18]||=e=>{e||(S.value=null)}},{footer:H(()=>[u(A(f),{label:A(p)(`cancel`),text:``,onClick:r[17]||=e=>S.value=null},null,8,[`label`]),u(A(f),{label:A(p)(`save`),icon:`pi pi-check`,onClick:N},null,8,[`label`])]),default:H(()=>[S.value?(L(),t(a,{key:0},[c(`div`,ol,[c(`label`,sl,y(A(p)(`nameLabel`)),1),u(A(Se),{id:`kanlist-edit-name`,modelValue:S.value.name,"onUpdate:modelValue":r[14]||=e=>S.value.name=e,class:`w-full`,onKeyup:I(N,[`enter`])},null,8,[`modelValue`])]),c(`div`,cl,[c(`label`,ll,y(A(p)(`descriptionLabel`)),1),u(A(me),{id:`kanlist-edit-desc`,modelValue:S.value.description,"onUpdate:modelValue":r[15]||=e=>S.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),c(`div`,$,[c(`label`,ul,y(A(p)(`instructionsLabel`)),1),u(A(me),{id:`kanlist-edit-instructions`,modelValue:S.value.instructions,"onUpdate:modelValue":r[16]||=e=>S.value.instructions=e,rows:`8`,class:`w-full`,placeholder:A(p)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),c(`small`,dl,y(A(p)(`instructionsHint`)),1)])],64)):R(``,!0)]),_:1},8,[`visible`,`header`]),u(A(i),{visible:fe.value,"onUpdate:visible":r[20]||=e=>fe.value=e,header:A(p)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:H(()=>[u(A(f),{label:A(p)(`close`),text:``,onClick:r[19]||=e=>fe.value=!1},null,8,[`label`])]),default:H(()=>[c(`p`,fl,y(A(p)(`boardTemplates.intro`)),1),!e.boardTemplates||e.boardTemplates.length===0?(L(),t(`div`,pl,y(A(p)(`boardTemplates.empty`)),1)):(L(),t(`ul`,ml,[(L(!0),t(a,null,z(e.boardTemplates,n=>(L(),t(`li`,{key:n.id,class:`template-row`},[c(`span`,hl,[x(y(n.name)+` `,1),c(`small`,gl,y(n.columns.map(e=>e.title).join(` · `)||A(p)(`boardTemplates.noColumns`)),1)]),e.readOnly?R(``,!0):(L(),t(`span`,_l,[u(A(f),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>pe(n)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),u(A(i),{visible:P.value,"onUpdate:visible":[r[25]||=e=>P.value=e,r[26]||=e=>{e||(F.value=null)}],header:A(p)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:H(()=>[F.value?(L(),t(a,{key:0},[u(A(f),{label:A(p)(`cancel`),text:``,onClick:r[23]||=e=>F.value=null},null,8,[`label`]),u(A(f),{label:A(p)(`save`),icon:`pi pi-check`,disabled:!F.value.name.trim(),onClick:ue},null,8,[`label`,`disabled`])],64)):(L(),t(a,{key:1},[e.readOnly?R(``,!0):(L(),b(A(f),{key:0,label:A(p)(`templates.new`),icon:`pi pi-plus`,onClick:se},null,8,[`label`])),u(A(f),{label:A(p)(`close`),text:``,onClick:r[24]||=e=>P.value=!1},null,8,[`label`])],64))]),default:H(()=>[F.value?(L(),t(a,{key:0},[c(`div`,vl,[c(`label`,yl,y(A(p)(`templates.nameLabel`)),1),u(A(Se),{id:`kanlist-tpl-name`,modelValue:F.value.name,"onUpdate:modelValue":r[21]||=e=>F.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),c(`div`,bl,[c(`label`,xl,y(A(p)(`templates.contentLabel`)),1),u(A(We),{id:`kanlist-tpl-content`,modelValue:F.value.content,"onUpdate:modelValue":r[22]||=e=>F.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:A(p)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),c(`small`,Sl,y(A(p)(`templates.contentHint`)),1)])],64)):(L(),t(a,{key:1},[c(`p`,Cl,y(A(p)(`templates.intro`)),1),!e.templates||e.templates.length===0?(L(),t(`div`,wl,y(A(p)(`templates.empty`)),1)):(L(),t(`ul`,Tl,[(L(!0),t(a,null,z(e.templates,n=>(L(),t(`li`,{key:n.id,class:`template-row`},[c(`span`,El,y(n.name),1),e.readOnly?R(``,!0):(L(),t(`span`,Dl,[u(A(f),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>ce(n)},null,8,[`onClick`]),u(A(f),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>de(n)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-6ce88365`]]);export{Ic as n,Ol as t};
|