@runeya/runeya 2.0.111 → 2.0.112
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/index.js +1 -1
- package/package.json +1 -1
- package/{tray-ZWZIIHXO.js → tray-E4KP2DYU.js} +2 -2
- package/{tray-ZWZIIHXO.js.map → tray-E4KP2DYU.js.map} +1 -1
- package/web/assets/AgentScalarChatInterface.vue-D8L1qMnP.js +13 -0
- package/web/assets/AgentTerminalPage-Chx1ZkXf.js +1 -0
- package/web/assets/AiChatPage-DeymBNnY.js +1 -0
- package/web/assets/{AppLayout-6LmWDDMH.css → AppLayout-BEOMwU1S.css} +1 -1
- package/web/assets/AppLayout-KMbnHSdu.js +1 -0
- package/web/assets/AuditPage-DqaUtbcO.js +1 -0
- package/web/assets/CloudAccountPage-B8h1HsJl.js +1 -0
- package/web/assets/CloudAccountPage-Cu1n85_c.js +1 -0
- package/web/assets/CloudMessagingPage-C_zZtU8E.js +2 -0
- package/web/assets/DashboardPage-CjsKPyXD.js +164 -0
- package/web/assets/DirectoryPickerDialog-5MiJKRfc.js +1 -0
- package/web/assets/{EditorIcon-CVfLr8Ap.js → EditorIcon-1DXtvm7m.js} +2 -2
- package/web/assets/{EnvironmentForm-C1PMOPnQ.js → EnvironmentForm-BqGZTdZC.js} +2 -2
- package/web/assets/EnvironmentFormPage-C9aJJ8E8.js +1 -0
- package/web/assets/EnvironmentListPage-B7HsZarb.js +1 -0
- package/web/assets/KanbanBoardPage-dqGMbjuh.js +4 -0
- package/web/assets/KanbanListPage-DXViCKTY.js +1 -0
- package/web/assets/LaunchProjectPage-MiZFB_0o.js +1 -0
- package/web/assets/LaunchServicesPage-C4rfh_1M.js +1 -0
- package/web/assets/LaunchServicesPage-zR9FoF4q.css +1 -0
- package/web/assets/LogViewer-OrRd9GPK.js +3 -0
- package/web/assets/OrgKeyPrompt-D8k2POKf.js +1 -0
- package/web/assets/{ProcessControls-Cz5ZB6Wr.js → ProcessControls-DLPytGR-.js} +1 -1
- package/web/assets/ProcessDetailPage-YhRNgz9n.js +1 -0
- package/web/assets/{ProcessMetrics-DBd9GfXs.js → ProcessMetrics-CfU-_0xI.js} +2 -2
- package/web/assets/RandomJobTestPage-BPao_uWM.js +2 -0
- package/web/assets/ScenarioEditorPage-DUt-fyHh.js +14 -0
- package/web/assets/SendToChatDialog-CZnQkSjV.js +1 -0
- package/web/assets/ServiceControlsBar-FEKaTZpW.js +1 -0
- package/web/assets/ServiceDetailPage-BMBGAlT9.js +2 -0
- package/web/assets/ServiceFormPage-B8-esDJb.js +1 -0
- package/web/assets/SettingsPage-Bu55iA-H.js +2063 -0
- package/web/assets/UnlockPage-DzHUFN5D.js +1 -0
- package/web/assets/VaultMigrationPage-DUwdS4R3.js +1 -0
- package/web/assets/VersionBadge-BamuXGJG.js +1 -0
- package/web/assets/WikiPage-DttQz6SM.js +1 -0
- package/web/assets/WikiView-HxKC_z_B.js +1 -0
- package/web/assets/add-scalar-classes-BBQceaWE.js +387 -0
- package/web/assets/{autocomplete-CLco1htx.js → autocomplete-DDdg8uWF.js} +3 -3
- package/web/assets/{basic-shape-diamond.svg-CIFDtOMl.js → basic-shape-diamond.svg-PBuzhzyL.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-BI6X-Ff-.js → basic-shape-hexagon.svg-vZ1_C97b.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-BfSkERX0.js → basic-shape-primary-circle-ellipse-round.svg-DBK0STQa.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-CggkF7nV.js → basic-shape-primary-square-rectangle.svg-DjCfpmjR.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-DOLl7FRg.js → basic-shape-shield.svg-DmaAGacc.js} +1 -1
- package/web/assets/{browser-YyX2T_bp.js → browser-6whmj0DA.js} +1 -1
- package/web/assets/{browser-D6wWEfgA.js → browser-8fowKj4x.js} +1 -1
- package/web/assets/card-0RUbyEjT.js +32 -0
- package/web/assets/{checkbox-CEPk5KJ6.js → checkbox-CW4_BCzd.js} +3 -3
- package/web/assets/{chip-C5vhJ12q.js → chip-BMIkgaOI.js} +2 -2
- package/web/assets/client-Zv2B0OOp.js +24 -0
- package/web/assets/cloud-chat.store-cvRkhAwy.js +1 -0
- package/web/assets/cloud-client-2mgUtdk1.js +1 -0
- package/web/assets/cloud-session-AV6nVTtY.js +1 -0
- package/web/assets/cloud-session-BxDy2HVL.js +2 -0
- package/web/assets/{column-CZtxhpNk.js → column-DSDLyaDN.js} +33 -33
- package/web/assets/{computer-device-desktop-monitor.svg-C7V0Meiq.js → computer-device-desktop-monitor.svg-Blwr-wR-.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-CR2D97ea.js → computer-device-desktop.svg-CvNohuFO.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-CsWo6R7p.js → computer-device-laptop.svg-g2PmPGkD.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-Ay1Glo0_.js → computer-device-mobile-phone-android-samsung-back.svg-C9pSbl_O.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-DEE0eIxE.js → computer-device-mobile-phone-android-samsung.svg-BNHefVHU.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-R0LVOTgb.js → computer-device-mobile-phone-iphone-x-back.svg-Dg8ATtJA.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-CLbWcFYC.js → computer-device-mobile-phone-iphone-x.svg-Du3FKSEj.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-Fv2fmilO.js → computer-device-mobile-tablet-touch.svg-H6GqpM1S.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-C5Z91Gds.js → computer-device-mobile-tablet.svg-rsu8KKri.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-CDgcWWcM.js → computer-device-network-ethernet-cat6.svg-DzIHXUbc.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-BranCB1m.js → computer-device-network-lan-www.svg-BcRl-DsB.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-CWJhdMp8.js → computer-device-network-wifi-connection.svg-BQfc3Yv3.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-nxOhW4GH.js → computer-device-network-wifi-router.svg-DATh-sJZ.js} +1 -1
- package/web/assets/{cssMode-fzxNmlTr.js → cssMode-DYq4p3pS.js} +1 -1
- package/web/assets/{divider-CRQWe80J.js → divider-BqkvJcrT.js} +2 -2
- package/web/assets/{docx-preview-4WnloH19.js → docx-preview-rILu4Ooo.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-DwRGhvS9.js → ecology-science-erlenmeyer-flask.svg-BfLpsLp3.js} +1 -1
- package/web/assets/{fieldset-DRHqc4Di.js → fieldset-BKU3xCS_.js} +2 -2
- package/web/assets/{freemarker2-CqVE0V1J.js → freemarker2-f8qPtCZo.js} +1 -1
- package/web/assets/{handlebars-Clj_IFK2.js → handlebars-PLC0YnCq.js} +1 -1
- package/web/assets/{html-O6rqd-f5.js → html-R1rJfKYz.js} +1 -1
- package/web/assets/{htmlMode-Cas0v8BI.js → htmlMode-CXUNeFnh.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-DZTnHNxO.js → image-flash-lightning.svg-CMRw7fl0.js} +1 -1
- package/web/assets/{image-picture-flower.svg-CLAFqWgX.js → image-picture-flower.svg-OZf43WPd.js} +1 -1
- package/web/assets/{index-BRka2A3M.js → index-C3STxTyh.js} +301 -301
- package/web/assets/{interface-alert-exclamation-diamond.svg-CHKNe6Ly.js → interface-alert-exclamation-diamond.svg-C9vsWz3u.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-KukKoZI3.js → interface-alert-exclamation-triangle-warning.svg-jLeG-Qaw.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-DEEne165.js → interface-alert-information-circle.svg-1xEbdvYS.js} +1 -1
- package/web/assets/{interface-award-crown.svg-DzuVqTjZ.js → interface-award-crown.svg-bM-an9km.js} +1 -1
- package/web/assets/{interface-bookmark.svg-CkM2bncH.js → interface-bookmark-tag.svg-BQQR5Fec.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-DKCoFeA1.js → interface-bookmark.svg-4kmGsjaB.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-B7QDcbvG.js → interface-calendar-date-one.svg-CLrDHXXm.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-CxHFf7oc.js → interface-content-book-open-pages.svg-h7WfByRE.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-D7kUz43i.js → interface-content-book-page.svg-Bx91re2q.js} +1 -1
- package/web/assets/{interface-content-file.svg-BjAhnfm3.js → interface-content-file.svg-CQjUUrgh.js} +1 -1
- package/web/assets/{interface-content-folder.svg-U2bh12Kt.js → interface-content-folder.svg-B9cFyNvV.js} +1 -1
- package/web/assets/interface-content-folder.svg-BPvWC3z_.js +1 -0
- package/web/assets/{interface-copy-clipboard.svg-CK0bePnf.js → interface-copy-clipboard.svg-B3S8Vfxo.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-CdE5UImz.js → interface-edit-attachment.svg-CQZVxhlC.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-Ct9dnAMI.js → interface-edit-binocular.svg-DfC2Pahm.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-g9dFY7m1.js → interface-edit-magic-wand.svg-Bfhqp5lu.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-DTvNVNNZ.js → interface-edit-tool-paint-roller.svg-0FDuGPfN.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-D-70KgO_.js → interface-edit-tool-pencil.svg-D7KkgfzG.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-BXVk_FD3.js → interface-favorite-award.svg-C3RAkfuB.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-BqXiKZDa.js → interface-favorite-flag.svg-Bj2vRHQv.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-CIDJN7WT.js → interface-favorite-heart.svg-CXq0lOy-.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-1JrliXPT.js → interface-favorite-star.svg-Baf01IBk.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-Bq11oQGk.js → interface-favorite-stars-sparkles.svg-8_eGhT6F.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-BgnJFVrF.js → interface-hierarchy-flowchart.svg-DVGI2yW7.js} +1 -1
- package/web/assets/{interface-home-house.svg-Dsn1Ycmv.js → interface-home-house.svg-DZl5Evdt.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-B0YjlNmH.js → interface-hyperlink.svg-CEBnVwRT.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-DDw_jWSG.js → interface-lighting-brightness.svg-CUQwWui5.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-zSGzFdQB.js → interface-lock-closed.svg-pZ-LeNa4.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-B5nqR3Ms.js → interface-lock-open-unlock.svg-BliMiE5K.js} +1 -1
- package/web/assets/{interface-login-key.svg-Bg0MqRL-.js → interface-login-key.svg-DKsHsETI.js} +1 -1
- package/web/assets/{interface-search.svg-zQBkPG_R.js → interface-search.svg-FcK6AapL.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-lbmhkm0b.js → interface-setting-cog.svg-06g-WCkx.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-DZsgE1mY.js → interface-share-megaphone-bullhorn.svg-Bqh6bbEA.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-DFB9VHQw.js → interface-share-rocket.svg-BQJZCYRF.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-C33KL5KZ.js → interface-share-satellite.svg-Em_VWjzx.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-B8xbJsKX.js → interface-share-space-ship.svg-Bu_QD7lg.js} +1 -1
- package/web/assets/{interface-share.svg-Dlmx8DHE.js → interface-share.svg-CndhTESN.js} +1 -1
- package/web/assets/{interface-signal-square.svg-Dp2kD61W.js → interface-signal-square.svg-DVpXZefh.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-B1EEPVe3.js → interface-time-clock-circle.svg-PW_7DCaT.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-CmQmR21F.js → interface-time-hour-glass.svg-CRo5gAN6.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-BwT1aOcB.js → interface-users-multiple.svg-DPWNkDAF.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-DuWXidjx.js → interface-weather-moon.svg-BOImwH8c.js} +1 -1
- package/web/assets/{javascript-CPapDvOA.js → javascript-BUF7UEGr.js} +1 -1
- package/web/assets/{jsonMode-DTpByWjv.js → jsonMode-t_hVvnT9.js} +2 -2
- package/web/assets/{liquid-81JDK-gs.js → liquid-DPtzG1Ex.js} +1 -1
- package/web/assets/{lspLanguageFeatures-BdkKWnkH.js → lspLanguageFeatures-CnYwfMpR.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-DsIfD4ZB.js → mail-chat-bubble-square.svg-BwQ712nx.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-CXVZDyto.js → mail-send-email-paper-airplane.svg-DVT1Rr05.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-CgAhxMEH.js → mail-send-envelope.svg-DMPF4nfU.js} +1 -1
- package/web/assets/{mdx-jh6cDTAM.js → mdx-Ev7Vt2Et.js} +1 -1
- package/web/assets/{minus-CaGGQMDe.js → minus-8Syk4U9f.js} +2 -2
- package/web/assets/modal-Bb8LwFay.js +1 -0
- package/web/assets/modal-DdsQR8Ed.js +5 -0
- package/web/assets/{money-cashier-receipt.svg-B3oRus0I.js → money-cashier-receipt.svg-BGkNgMnT.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-BAGx42Dc.js → money-currency-dollar-pay.svg-BFWldbXb.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-BrI_HBxB.js → money-graph-arrow-increase.svg-BtmZdQqW.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-DWLVMdFl.js → money-graph-bar-chart-increase.svg-13UVcDRv.js} +1 -1
- package/web/assets/multiselect-BHq9_nBK.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-C4n72Q5s.js → nature-ecology-leaf.svg-BUxD5cvD.js} +1 -1
- package/web/assets/{password-_N82obVe.js → password-Bi0MGGHq.js} +4 -4
- package/web/assets/{phone-telephone.svg-CgwdCkq5.js → phone-telephone.svg-v8iEsFKp.js} +1 -1
- package/web/assets/{plus-BSWeBaiQ.js → plus-DpOiBJot.js} +6 -6
- package/web/assets/process.store-D7wKTQ9s.js +1 -0
- package/web/assets/{programming-bug.svg-iwuWn7P9.js → programming-bug.svg-DWbQAqkb.js} +1 -1
- package/web/assets/{programming-cloud.svg-C9w1zqhs.js → programming-cloud.svg-DEJb3BXH.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-Fj_3My-T.js → programming-computer-database-server.svg-DrRhowmH.js} +1 -1
- package/web/assets/{programming-computer-database.svg-B3dKqJbm.js → programming-computer-database.svg-BENj2ccz.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-BU3-jVxw.js → programming-module-four-layout.svg-DxlxVrHQ.js} +1 -1
- package/web/assets/{programming-module-three.svg-BnfrmjMt.js → programming-module-three.svg-DUcbV5fK.js} +1 -1
- package/web/assets/{programming-module.svg-BELo8c5Q.js → programming-module.svg-CuE3_TQx.js} +1 -1
- package/web/assets/{programming-script-code.svg-OiDJir-4.js → programming-script-code.svg-D2D4dNgL.js} +1 -1
- package/web/assets/project-launch.store-zLYsFPXJ.js +1 -0
- package/web/assets/project.store-DhFTJJYC.js +1 -0
- package/web/assets/{python-BodvY8hX.js → python-Dmf5gldj.js} +1 -1
- package/web/assets/{razor-BQptkVvP.js → razor-DbV6-aad.js} +1 -1
- package/web/assets/router-CDzXhK1o.js +1 -0
- package/web/assets/settings-scope-BuHu9I1x.js +1 -0
- package/web/assets/settings.store-CC3xIkfJ.js +1 -0
- package/web/assets/{shopping-cart.svg-C5RHK9V_.js → shopping-cart.svg-CiQsy6Nw.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-ZWprHSwq.js → shopping-gift-present.svg-CnpMOWNF.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-D1cvBLGN.js → shopping-shipping-box-parcel-package.svg-CCthnGYX.js} +1 -1
- package/web/assets/src-CwD_enr9.js +572 -0
- package/web/assets/src-D2pHP5dY.js +1 -0
- package/web/assets/{src-CXIP4xoh.js → src-HVRU8Mgy.js} +13 -13
- package/web/assets/{tabpanel-D7VMDnm0.js → tabpanel-DjCbPciG.js} +3 -3
- package/web/assets/{tag-new-circle.svg-D7fC9IDO.js → tag-new-circle.svg-D4Q5d0v7.js} +1 -1
- package/web/assets/theme-hW8ih2oq.js +1 -0
- package/web/assets/{toggleswitch-B9rKrBrI.js → toggleswitch-CAzbBCEx.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-C_t82Y6x.js → travel-map-earth-globe.svg-CqNRoHbM.js} +1 -1
- package/web/assets/trpc-CtAGDdPR.js +1 -0
- package/web/assets/{tsMode-DkI7CAzv.js → tsMode-CsSAagiw.js} +5 -5
- package/web/assets/{typescript-BAHKIodv.js → typescript-DKgCTT5e.js} +1 -1
- package/web/assets/useAiChatDrawer-CV6qDJ2t.js +1 -0
- package/web/assets/{useCloudOrg-CtvvqAYj.js → useCloudOrg-Cf4fKph_.js} +1 -1
- package/web/assets/useEnvVarAutocomplete-7Y2oifod.js +1 -0
- package/web/assets/useProjectCatalog-KNHOI1Dj.js +1 -0
- package/web/assets/useProjectCloudOrg-DJPAoob6.js +1 -0
- package/web/assets/useServiceUrlHost-D_O6E1-V.js +1 -0
- package/web/assets/{xml-CId0_y0l.js → xml-CRDnGqGZ.js} +1 -1
- package/web/assets/{yaml-Bc8mj3ID.js → yaml-BjVvTIlo.js} +1 -1
- package/web/index.html +1 -1
- package/web/assets/AgentScalarChatInterface.vue-kLcqfWmQ.js +0 -13
- package/web/assets/AgentTerminalPage-B1dq1kmj.js +0 -1
- package/web/assets/AiChatPage-Bbnw2Qw7.js +0 -1
- package/web/assets/AppLayout-eqJ4FAvL.js +0 -1
- package/web/assets/AuditPage-SUUB7Jms.js +0 -1
- package/web/assets/CloudAccountPage-BAl7VOtI.js +0 -1
- package/web/assets/CloudAccountPage-CUJAVszk.js +0 -1
- package/web/assets/CloudMessagingPage-BqNDMg54.js +0 -2
- package/web/assets/DashboardPage-BQLIJfUE.js +0 -164
- package/web/assets/DirectoryPickerDialog-By3rb2Fh.js +0 -1
- package/web/assets/EnvironmentFormPage-BdSnJP_4.js +0 -1
- package/web/assets/EnvironmentListPage-CO25GNLP.js +0 -1
- package/web/assets/KanbanBoardPage-COrdWZO0.js +0 -4
- package/web/assets/KanbanListPage-C9dx7fly.js +0 -1
- package/web/assets/LaunchProjectPage-DS1mbMOh.js +0 -1
- package/web/assets/LaunchServicesPage-B7NdGdSB.js +0 -1
- package/web/assets/LaunchServicesPage-PMkfsl54.css +0 -1
- package/web/assets/LogViewer-CUa7BeBD.js +0 -3
- package/web/assets/OrgKeyPrompt-CZXOo00s.js +0 -1
- package/web/assets/ProcessDetailPage-Cj7LsCv1.js +0 -1
- package/web/assets/RandomJobTestPage-_PSlDGUw.js +0 -2
- package/web/assets/ScenarioEditorPage-BTe2zRUP.js +0 -14
- package/web/assets/SendToChatDialog-DoRRNmwL.js +0 -1
- package/web/assets/ServiceControlsBar-BdR9jsIL.js +0 -1
- package/web/assets/ServiceDetailPage-qQNwFB1A.js +0 -2
- package/web/assets/ServiceFormPage-DubRCzyE.js +0 -1
- package/web/assets/SettingsPage-Br5RBg5u.js +0 -2063
- package/web/assets/UnlockPage-BT70o21t.js +0 -1
- package/web/assets/VaultMigrationPage-CMGQM5Yz.js +0 -1
- package/web/assets/VersionBadge-CzSHg1yg.js +0 -1
- package/web/assets/WikiPage-BQC-K3_F.js +0 -1
- package/web/assets/WikiView-BiRdU7UF.js +0 -1
- package/web/assets/add-scalar-classes-6WKMp6mM.js +0 -387
- package/web/assets/card-CiCJjR0t.js +0 -32
- package/web/assets/client-5AKYiHpd.js +0 -24
- package/web/assets/cloud-chat.store-O3CWq04y.js +0 -1
- package/web/assets/cloud-client-BYC_oHML.js +0 -1
- package/web/assets/cloud-session-BnBZG9hH.js +0 -2
- package/web/assets/cloud-session-CbJSALDl.js +0 -1
- package/web/assets/interface-content-folder.svg-D1hGwbjh.js +0 -1
- package/web/assets/modal-BsI9WiH3.js +0 -5
- package/web/assets/modal-DsLNzKny.js +0 -1
- package/web/assets/multiselect-BM4M-nkW.js +0 -251
- package/web/assets/process-Cf4Ob2V-.js +0 -1
- package/web/assets/process.store-BT0rTymx.js +0 -1
- package/web/assets/project-launch.store-DjaAuJRY.js +0 -1
- package/web/assets/project.store-dAissaS8.js +0 -1
- package/web/assets/router-B932r4Ut.js +0 -1
- package/web/assets/settings-scope-BTtxXzYM.js +0 -1
- package/web/assets/settings.store-TyxaMEjL.js +0 -1
- package/web/assets/src-BmgD0h17.js +0 -572
- package/web/assets/src-DN2Ld0JH.js +0 -1
- package/web/assets/theme-CWVvkqb0.js +0 -1
- package/web/assets/trpc-rqY3-80i.js +0 -1
- package/web/assets/useAiChatDrawer-OqNvg9T4.js +0 -1
- package/web/assets/useEnvVarAutocomplete-cvDsVwm1.js +0 -1
- package/web/assets/useProjectCatalog-C8IJb-lg.js +0 -1
- package/web/assets/useProjectCloudOrg-BFOU-_dh.js +0 -1
- package/web/assets/useServiceUrlHost-sIQNdes_.js +0 -1
- /package/web/assets/{abap-DblxFMgX.js → abap-B8g_2xYy.js} +0 -0
- /package/web/assets/{apex-C_fmPlQy.js → apex-Bm8w4T5A.js} +0 -0
- /package/web/assets/{azcli-D73HZyav.js → azcli-BqdUW6F8.js} +0 -0
- /package/web/assets/{bat-Br4Biw6V.js → bat-Bngf0lQU.js} +0 -0
- /package/web/assets/{bicep-Cwg6_V-m.js → bicep-DzO554JS.js} +0 -0
- /package/web/assets/{browser-D6yPejPt.js → browser-BJX5ZrVN.js} +0 -0
- /package/web/assets/{cameligo-Dq6Izwzi.js → cameligo-Bcy3ohdb.js} +0 -0
- /package/web/assets/{clojure-U0exYVUx.js → clojure-CZbiqkDV.js} +0 -0
- /package/web/assets/{coffee-mPGPozSE.js → coffee-CDuhyV-7.js} +0 -0
- /package/web/assets/{cpp-lpr_PQMA.js → cpp-BklV8f4x.js} +0 -0
- /package/web/assets/{csharp-saQQwY3s.js → csharp-BelR_XiC.js} +0 -0
- /package/web/assets/{csp-CcDpUBZN.js → csp-DUjeBS2K.js} +0 -0
- /package/web/assets/{css-D6QFYBbL.js → css-CvbYbEko.js} +0 -0
- /package/web/assets/{cypher-B_4KCq-w.js → cypher-Dwrbk-SP.js} +0 -0
- /package/web/assets/{dart-CgLuovz1.js → dart-BW1E5h9O.js} +0 -0
- /package/web/assets/{dockerfile-DObNIc52.js → dockerfile-B41ilpF9.js} +0 -0
- /package/web/assets/{ecl-BpCwjSsH.js → ecl-BZE6Vxna.js} +0 -0
- /package/web/assets/{elixir-CebZWKus.js → elixir-CtYg0bLh.js} +0 -0
- /package/web/assets/{flow9-DhoDs9JD.js → flow9-Sgvy48_I.js} +0 -0
- /package/web/assets/{fsharp-YDWqgr0W.js → fsharp-BzAfXfKg.js} +0 -0
- /package/web/assets/{go-CaPX4mu5.js → go-D7oonABu.js} +0 -0
- /package/web/assets/{graphql-DOSo46Ed.js → graphql-BEN-qkl0.js} +0 -0
- /package/web/assets/{hcl-nSYpx4qj.js → hcl-CE0OhwCq.js} +0 -0
- /package/web/assets/{ini-Ca22qQIM.js → ini-CCLtcvjA.js} +0 -0
- /package/web/assets/{java-KrQduvTo.js → java-Bao8w_gp.js} +0 -0
- /package/web/assets/{julia-Bb2MDsY_.js → julia-Dr0hFYrl.js} +0 -0
- /package/web/assets/{kotlin-DB7e82Vg.js → kotlin-Cbfu8lcM.js} +0 -0
- /package/web/assets/{less-K5fiQqgY.js → less-BU4gEpXr.js} +0 -0
- /package/web/assets/{lexon-Do9EcqkA.js → lexon-GpBGGdTS.js} +0 -0
- /package/web/assets/{lua-DU9Dpzvs.js → lua-DIPKk37y.js} +0 -0
- /package/web/assets/{m3-pF6PmPkL.js → m3-CSOypKGf.js} +0 -0
- /package/web/assets/{markdown-BNRSTD3D.js → markdown-VDqAgkyM.js} +0 -0
- /package/web/assets/{mips-OIXxWbNl.js → mips-BJWI6dX7.js} +0 -0
- /package/web/assets/{msdax-Blzk7oHr.js → msdax-BLpuE5Dc.js} +0 -0
- /package/web/assets/{mysql-CISO3r5e.js → mysql-ZsxiEUoY.js} +0 -0
- /package/web/assets/{objective-c-CfnC_OAj.js → objective-c-DcQa1iPc.js} +0 -0
- /package/web/assets/{pascal-BUF-IB2S.js → pascal-u-hmXdyn.js} +0 -0
- /package/web/assets/{pascaligo-BKce2a7P.js → pascaligo-DqbP-1C6.js} +0 -0
- /package/web/assets/{perl-BSNQJqG3.js → perl-CUeQpRkH.js} +0 -0
- /package/web/assets/{pgsql-B6gnZ9Pz.js → pgsql-CQ7FhAFN.js} +0 -0
- /package/web/assets/{php-D3DRjlE-.js → php-BEf_fu3E.js} +0 -0
- /package/web/assets/{pla-DMkpEwWz.js → pla-CXNNbT0w.js} +0 -0
- /package/web/assets/{postiats-CS9vJAK8.js → postiats-CIXLZwPb.js} +0 -0
- /package/web/assets/{powerquery-5wdkUpGP.js → powerquery-DnGPASFA.js} +0 -0
- /package/web/assets/{powershell-CFy-OLZK.js → powershell-1Y1kqIZS.js} +0 -0
- /package/web/assets/{protobuf-BexdMU0z.js → protobuf-Cfo9haoG.js} +0 -0
- /package/web/assets/{pug-D7XxQLO5.js → pug-BujEZqmy.js} +0 -0
- /package/web/assets/{qsharp-Cbf2FpNP.js → qsharp-BL9AqNGD.js} +0 -0
- /package/web/assets/{r-DF7k9FbU.js → r-D0dhpGOM.js} +0 -0
- /package/web/assets/{redis-CsS7YEaP.js → redis-BMLwD7W9.js} +0 -0
- /package/web/assets/{redshift-ELXdujA0.js → redshift-CkHh73og.js} +0 -0
- /package/web/assets/{restructuredtext-xoFIa5lj.js → restructuredtext-DZ-LF65W.js} +0 -0
- /package/web/assets/{ruby-BqZs-MXO.js → ruby-UzPHTzc9.js} +0 -0
- /package/web/assets/{rust-Bg6ZO_et.js → rust-ja9NGnXZ.js} +0 -0
- /package/web/assets/{sb-DiB12F6v.js → sb-BNdOJbMY.js} +0 -0
- /package/web/assets/{scala-DElpnKpP.js → scala-LlhkyN6l.js} +0 -0
- /package/web/assets/{scheme-1ahRBKOq.js → scheme-BAj99YIn.js} +0 -0
- /package/web/assets/{scss-DEMPy3QV.js → scss-chS-xxB3.js} +0 -0
- /package/web/assets/{shell-DPy86lBu.js → shell-CcH7eYIc.js} +0 -0
- /package/web/assets/{solidity-BJ26fCkf.js → solidity-cVvnqX-K.js} +0 -0
- /package/web/assets/{sophia-BisqpnJK.js → sophia-BBT-EdFw.js} +0 -0
- /package/web/assets/{sparql-C7Lhhim4.js → sparql-DGEqOrB6.js} +0 -0
- /package/web/assets/{sql-BXVElqbr.js → sql-CcTErTxM.js} +0 -0
- /package/web/assets/{st-C3Kk-cML.js → st-Bjw-B4mN.js} +0 -0
- /package/web/assets/{swift-D8IWJydR.js → swift-Bid-7bBd.js} +0 -0
- /package/web/assets/{systemverilog-524SrI2Q.js → systemverilog-CXju7Nd-.js} +0 -0
- /package/web/assets/{tcl-MYNTx-d-.js → tcl-D-Dw7JFz.js} +0 -0
- /package/web/assets/{twig-BAVZN0tW.js → twig-BIPbzEWT.js} +0 -0
- /package/web/assets/{typespec-BhgMHLJQ.js → typespec-UJSutGCV.js} +0 -0
- /package/web/assets/{uuid-Cro0aJm3.js → uuid--pMuF47W.js} +0 -0
- /package/web/assets/{vb-BLauMmY8.js → vb-oyG_LJw0.js} +0 -0
- /package/web/assets/{w3c-keyname-tfhvQ9CV.js → w3c-keyname-DtJs0qQm.js} +0 -0
- /package/web/assets/{wgsl-ybvhdvmz.js → wgsl-DXZ6ljB6.js} +0 -0
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-rILu4Ooo.js","assets/index-C3STxTyh.js","assets/index-DWNL2YPM.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$i as e,Aa as t,Ai as n,Bi as r,Br as i,Ci as a,Ei as o,Er as s,Fr as c,Gn as l,Hn as u,Hr as d,Jn as f,Kr as p,Li as m,Ln as h,Lr as g,Mi as _,Ni as v,Nr as y,Oa as b,Q as ee,Qa as x,Qn as S,Qr as C,Ri as w,Si as te,Sr as ne,Ta as T,Tr as E,Ua as D,Un as re,Va as O,Vn as k,Vr as ie,Wr as A,Xi as ae,Xn as j,Yi as M,Yr as N,Z as oe,Zr as P,_n as se,ar as ce,ba as F,bn as le,br as ue,cr as de,da as fe,dn as pe,er as me,fa as he,fn as ge,hn as _e,ja as I,ji as L,ki as R,la as z,ln as ve,mn as ye,mr as be,ni as xe,ot as Se,pa as Ce,pi as we,ra as Te,ri as Ee,sa as B,si as De,st as Oe,ua as V,ui as ke,vn as Ae,wa as H,wi as U,xn as je,yn as Me,yr as Ne}from"./index-C3STxTyh.js";import{t as Pe}from"./checkbox-CW4_BCzd.js";import{t as Fe}from"./card-0RUbyEjT.js";import{t as Ie}from"./multiselect-BHq9_nBK.js";import{a as Le,i as Re,n as ze,o as Be,r as Ve,t as He}from"./tabpanel-DjCbPciG.js";import{t as Ue}from"./autocomplete-DDdg8uWF.js";import{t as We}from"./src-HVRU8Mgy.js";var Ge=be.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:Me,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+p(),this.initY=e.top+ue(),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`?g(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||y(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 C(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,t,r,i,a,o){return B(),v(`div`,M({class:e.cx(`root`),onClick:t[18]||=function(){return o.onBarClick&&o.onBarClick.apply(o,arguments)}},e.ptmi(`root`),{"data-p-sliding":!1,"data-p":o.dataP}),[n(`span`,M({class:e.cx(`range`),style:[e.sx(`range`),o.rangeStyle()]},e.ptm(`range`),{"data-p":o.dataP}),null,16,it),e.range?_(``,!0):(B(),v(`span`,M({key:0,class:e.cx(`handle`),style:[e.sx(`handle`),o.handleStyle()],onTouchstartPassive:t[0]||=function(e){return o.onDragStart(e)},onTouchmovePassive:t[1]||=function(e){return o.onDrag(e)},onTouchend:t[2]||=function(e){return o.onDragEnd(e)},onMousedown:t[3]||=function(e){return o.onMouseDown(e)},onKeydown:t[4]||=function(e){return o.onKeyDown(e)},onBlur:t[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?(B(),v(`span`,M({key:1,class:e.cx(`handle`),style:[e.sx(`handle`),o.rangeStartHandleStyle()],onTouchstartPassive:t[6]||=function(e){return o.onDragStart(e,0)},onTouchmovePassive:t[7]||=function(e){return o.onDrag(e)},onTouchend:t[8]||=function(e){return o.onDragEnd(e)},onMousedown:t[9]||=function(e){return o.onMouseDown(e,0)},onKeydown:t[10]||=function(e){return o.onKeyDown(e,0)},onBlur:t[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)):_(``,!0),e.range?(B(),v(`span`,M({key:2,class:e.cx(`handle`),style:[e.sx(`handle`),o.rangeEndHandleStyle()],onTouchstartPassive:t[12]||=function(e){return o.onDragStart(e,1)},onTouchmovePassive:t[13]||=function(e){return o.onDrag(e)},onTouchend:t[14]||=function(e){return o.onDragEnd(e)},onMousedown:t[15]||=function(e){return o.onMouseDown(e,1)},onKeydown:t[16]||=function(e){return o.onKeyDown(e,1)},onBlur:t[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)):_(``,!0)],16,rt)}nt.render=st;var ct={name:`CalendarIcon`,extends:S};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,t,r,i,a,o){return B(),v(`svg`,M({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),lt(t[0]||=[n(`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=be.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:Ae,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=De(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&&Ne.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){c(e,this.inline?void 0:{position:`absolute`,top:`0`}),this.autoZIndex&&Ne.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&&Ne.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&&!ie()&&(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?s(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=N(this.overlay)+`px`,this.overlay.style.minWidth=N(this.$el)+`px`):this.overlay.style.width=N(this.$el)+`px`,ne(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(i(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(e){var t=null;return xe(e)&&ke(e)?this.timeOnly?t=this.formatTime(e):(t=this.formatDate(e,this.datePattern),this.showTime&&(t+=` `+this.formatTime(e))):this.updateModelType===`string`&&(t=e),t},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,n){e.preventDefault();var r=e.currentTarget,i=r.parentElement,a=E(i);switch(e.code){case`ArrowDown`:if(r.tabIndex=`-1`,i.parentElement.nextElementSibling){var o=E(i.parentElement),s=Array.from(i.parentElement.parentElement.children).slice(o+1).find(function(e){var t=e.children[a].children[0];return!y(t,`data-p-disabled`)});if(s){var c=s.children[a].children[0];c.tabIndex=`0`,c.focus()}else this.navigationState={backward:!1},this.navForward(e)}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break;case`ArrowUp`:if(r.tabIndex=`-1`,e.altKey)this.overlayVisible=!1,this.focused=!0;else if(i.parentElement.previousElementSibling){var l=E(i.parentElement),u=Array.from(i.parentElement.parentElement.children).slice(0,l).reverse().find(function(e){var t=e.children[a].children[0];return!y(t,`data-p-disabled`)});if(u){var d=u.children[a].children[0];d.tabIndex=`0`,d.focus()}else this.navigationState={backward:!0},this.navBackward(e)}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break;case`ArrowLeft`:if(r.tabIndex=`-1`,i.previousElementSibling){var f=Array.from(i.parentElement.children).slice(0,a).reverse().find(function(e){var t=e.children[0];return!y(t,`data-p-disabled`)});if(f){var p=f.children[0];p.tabIndex=`0`,p.focus()}else this.navigateToMonth(e,!0,n)}else this.navigateToMonth(e,!0,n);e.preventDefault();break;case`ArrowRight`:if(r.tabIndex=`-1`,i.nextElementSibling){var m=Array.from(i.parentElement.children).slice(a+1).find(function(e){var t=e.children[0];return!y(t,`data-p-disabled`)});if(m){var h=m.children[0];h.tabIndex=`0`,h.focus()}else this.navigateToMonth(e,!1,n)}else this.navigateToMonth(e,!1,n);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`:r.tabIndex=`-1`;var g=i.parentElement.children[0].children[0];y(g,`data-p-disabled`)?this.navigateToMonth(e,!0,n):(g.tabIndex=`0`,g.focus()),e.preventDefault();break;case`End`:r.tabIndex=`-1`;var _=i.parentElement,v=_.children[_.children.length-1].children[0];y(v,`data-p-disabled`)?this.navigateToMonth(e,!1,n):(v.tabIndex=`0`,v.focus()),e.preventDefault();break;case`PageUp`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,n),e.preventDefault();break;case`PageDown`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,n),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],a=i(r,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`),o=a[a.length-1];o.tabIndex=`0`,o.focus()}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(e);else{var s=this.overlay.children[n+1],c=P(s,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);c.tabIndex=`0`,c.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=E(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=E(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`?i(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?i(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):i(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=i(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=i(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),a=P(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"][data-p-selected="true"]`);r.forEach(function(e){return e.tabIndex=-1}),e=a||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=A(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=De(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=De(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&&A(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||je.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`,d(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=Ee(),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 C({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 C({fluid:this.$fluid})},panelDataP:function(){return C(vt({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return C(vt({},this.size,this.size))},timePickerDataP:function(){return C({"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:l,Portal:me,CalendarIcon:ct,ChevronLeftIcon:Le,ChevronRightIcon:Oe,ChevronUpIcon:Se,ChevronDownIcon:ye,TimesIcon:j},directives:{ripple:f}},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,r,i,s,c,l){var u=fe(`InputText`),d=fe(`TimesIcon`),f=fe(`Button`),p=fe(`Portal`),h=he(`ripple`);return B(),v(`span`,M({ref:`container`,id:e.$id,class:e.cx(`root`),style:e.sx(`root`),"data-p":l.containerDataP},e.ptmi(`root`)),[e.inline?_(``,!0):(B(),L(u,{key:0,ref:l.inputRef,id:e.inputId,role:`combobox`,class:b([e.inputClass,e.cx(`pcInputText`)]),style:t(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":c.overlayVisible,"aria-controls":c.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?V(e.$slots,`clearicon`,{key:1,class:b(e.cx(`clearIcon`)),clearCallback:l.onClearClick},function(){return[w(d,M({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:l.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):_(``,!0),e.showIcon&&e.iconDisplay===`button`&&!e.inline?V(e.$slots,`dropdownbutton`,{key:2,toggleCallback:l.onButtonClick},function(){return[n(`button`,M({class:e.cx(`dropdown`),disabled:e.disabled,onClick:r[0]||=function(){return l.onButtonClick&&l.onButtonClick.apply(l,arguments)},type:`button`,"aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":c.overlayVisible,"aria-controls":l.panelId},e.ptm(`dropdown`)),[V(e.$slots,`dropdownicon`,{class:b(e.icon)},function(){return[(B(),L(Ce(e.icon?`span`:`CalendarIcon`),M({class:e.icon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,jt)]}):e.showIcon&&e.iconDisplay===`input`&&!e.inline?(B(),v(o,{key:3},[e.$slots.inputicon||e.showIcon?(B(),v(`span`,M({key:0,class:e.cx(`inputIconContainer`),"data-p":l.inputIconDataP},e.ptm(`inputIconContainer`)),[V(e.$slots,`inputicon`,{class:b(e.cx(`inputIcon`)),clickCallback:l.onButtonClick},function(){return[(B(),L(Ce(e.icon?`i`:`CalendarIcon`),M({class:[e.icon,e.cx(`inputIcon`)],onClick:l.onButtonClick},e.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,K)):_(``,!0)],64)):_(``,!0),w(p,{appendTo:e.appendTo,disabled:e.inline},{default:H(function(){return[w(we,M({name:`p-anchored-overlay`,onEnter:r[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||c.overlayVisible?(B(),v(`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:r[55]||=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)},onKeydown:r[56]||=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)},onMouseup:r[57]||=function(){return l.onOverlayMouseUp&&l.onOverlayMouseUp.apply(l,arguments)},"data-p":l.panelDataP},e.ptm(`panel`)),[e.timeOnly?_(``,!0):(B(),v(o,{key:0},[n(`div`,M({class:e.cx(`calendarContainer`)},e.ptm(`calendarContainer`)),[(B(!0),v(o,null,z(l.months,function(t,i){return B(),v(`div`,M({key:t.month+t.year,class:e.cx(`calendar`)},{ref_for:!0},e.ptm(`calendar`)),[n(`div`,M({class:e.cx(`header`)},{ref_for:!0},e.ptm(`header`)),[V(e.$slots,`header`),V(e.$slots,`prevbutton`,{actionCallback:function(e){return l.onPrevButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[T(w(f,M({ref_for:!0,ref:l.previousButtonRef,class:e.cx(`pcPrevButton`),disabled:e.disabled,"aria-label":c.currentView===`year`?e.$primevue.config.locale.prevDecade:c.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[V(e.$slots,`previcon`,{},function(){return[(B(),L(Ce(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`]),[[te,i===0]])]}),n(`div`,M({class:e.cx(`title`)},{ref_for:!0},e.ptm(`title`)),[e.$primevue.config.locale.showMonthAfterYear?(B(),v(o,{key:0},[c.currentView===`year`?_(``,!0):(B(),v(`button`,M({key:0,type:`button`,onClick:r[1]||=function(){return l.switchToYearView&&l.switchToYearView.apply(l,arguments)},onKeydown:r[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`}),I(l.getYear(t)),17,Nt)),c.currentView===`date`?(B(),v(`button`,M({key:1,type:`button`,onClick:r[3]||=function(){return l.switchToMonthView&&l.switchToMonthView.apply(l,arguments)},onKeydown:r[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`}),I(l.getMonthName(t.month)),17,Pt)):_(``,!0)],64)):(B(),v(o,{key:1},[c.currentView===`date`?(B(),v(`button`,M({key:0,type:`button`,onClick:r[5]||=function(){return l.switchToMonthView&&l.switchToMonthView.apply(l,arguments)},onKeydown:r[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`}),I(l.getMonthName(t.month)),17,Ft)):_(``,!0),c.currentView===`year`?_(``,!0):(B(),v(`button`,M({key:1,type:`button`,onClick:r[7]||=function(){return l.switchToYearView&&l.switchToYearView.apply(l,arguments)},onKeydown:r[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`}),I(l.getYear(t)),17,It))],64)),c.currentView===`year`?(B(),v(`span`,M({key:2,class:e.cx(`decade`)},{ref_for:!0},e.ptm(`decade`)),[V(e.$slots,`decade`,{years:l.yearPickerValues},function(){return[m(I(l.yearPickerValues[0].value)+` - `+I(l.yearPickerValues[l.yearPickerValues.length-1].value),1)]})],16)):_(``,!0)],16),V(e.$slots,`nextbutton`,{actionCallback:function(e){return l.onNextButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[T(w(f,M({ref_for:!0,ref:l.nextButtonRef,class:e.cx(`pcNextButton`),disabled:e.disabled,"aria-label":c.currentView===`year`?e.$primevue.config.locale.nextDecade:c.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[V(e.$slots,`nexticon`,{},function(){return[(B(),L(Ce(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`]),[[te,e.numberOfMonths===1?!0:i===e.numberOfMonths-1]])]})],16),c.currentView===`date`?(B(),v(`table`,M({key:0,class:e.cx(`dayView`),role:`grid`},{ref_for:!0},e.ptm(`dayView`)),[n(`thead`,M({ref_for:!0},e.ptm(`tableHeader`)),[n(`tr`,M({ref_for:!0},e.ptm(`tableHeaderRow`)),[e.showWeek?(B(),v(`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`}),[V(e.$slots,`weekheaderlabel`,{},function(){return[n(`span`,M({ref_for:!0},e.ptm(`weekHeaderLabel`,{context:{disabled:e.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),I(l.weekHeaderLabel),17)]})],16,Lt)):_(``,!0),(B(!0),v(o,null,z(l.weekDays,function(t){return B(),v(`th`,M({key:t,scope:`col`,abbr:t},{ref_for:!0},e.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:e.cx(`weekDayCell`)}),[n(`span`,M({class:e.cx(`weekDay`)},{ref_for:!0},e.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),I(t),17)],16,Rt)}),128))],16)],16),n(`tbody`,M({ref_for:!0},e.ptm(`tableBody`)),[(B(!0),v(o,null,z(t.dates,function(r,a){return B(),v(`tr`,M({key:r[0].day+``+r[0].month},{ref_for:!0},e.ptm(`tableBodyRow`)),[e.showWeek?(B(),v(`td`,M({key:0,class:e.cx(`weekNumber`)},{ref_for:!0},e.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[n(`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`}),[V(e.$slots,`weeklabel`,{weekNumber:t.weekNumbers[a]},function(){return[t.weekNumbers[a]<10?(B(),v(`span`,M({key:0,style:{visibility:`hidden`}},{ref_for:!0},e.ptm(`weekLabel`)),`0`,16)):_(``,!0),m(` `+I(t.weekNumbers[a]),1)]})],16,zt)],16)):_(``,!0),(B(!0),v(o,null,z(r,function(t){return B(),v(`td`,M({key:t.day+``+t.month,"aria-label":t.day,class:e.cx(`dayCell`,{date:t})},{ref_for:!0},e.ptm(`dayCell`,{context:{date:t,today:t.today,otherMonth:t.otherMonth,selected:l.isSelected(t),disabled:!t.selectable}}),{"data-p-today":t.today,"data-p-other-month":t.otherMonth,"data-pc-group-section":`tablebodycell`}),[e.showOtherMonths||!t.otherMonth?T((B(),v(`span`,M({key:0,class:e.cx(`day`,{date:t}),onClick:function(e){return l.onDateSelect(e,t)},draggable:`false`,onKeydown:function(e){return l.onDateCellKeydown(e,t,i)},"aria-selected":l.isSelected(t),"aria-disabled":!t.selectable},{ref_for:!0},e.ptm(`day`,{context:{date:t,today:t.today,otherMonth:t.otherMonth,selected:l.isSelected(t),disabled:!t.selectable}}),{"data-p":l.dayDataP(t),"data-pc-group-section":`tablebodycelllabel`}),[V(e.$slots,`date`,{date:t},function(){return[m(I(t.day),1)]})],16,Vt)),[[h]]):_(``,!0),l.isSelected(t)?(B(),v(`div`,M({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),I(t.day),17)):_(``,!0)],16,Bt)}),128))],16)}),128))],16)],16)):_(``,!0)],16)}),128))],16),c.currentView===`month`?(B(),v(`div`,M({key:0,class:e.cx(`monthView`)},e.ptm(`monthView`)),[(B(!0),v(o,null,z(l.monthPickerValues,function(t,n){return T((B(),v(`span`,M({key:t,onClick:function(e){return l.onMonthSelect(e,{month:t,index:n})},onKeydown:function(e){return l.onMonthCellKeydown(e,{month:t,index:n})},class:e.cx(`month`,{month:t,index:n})},{ref_for:!0},e.ptm(`month`,{context:{month:t,monthIndex:n,selected:l.isMonthSelected(n),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":l.isMonthSelected(n)}),[m(I(t.value)+` `,1),l.isMonthSelected(n)?(B(),v(`div`,M({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),I(t.value),17)):_(``,!0)],16,Ht)),[[h]])}),128))],16)):_(``,!0),c.currentView===`year`?(B(),v(`div`,M({key:1,class:e.cx(`yearView`)},e.ptm(`yearView`)),[(B(!0),v(o,null,z(l.yearPickerValues,function(t){return T((B(),v(`span`,M({key:t.value,onClick:function(e){return l.onYearSelect(e,t)},onKeydown:function(e){return l.onYearCellKeydown(e,t)},class:e.cx(`year`,{year:t})},{ref_for:!0},e.ptm(`year`,{context:{year:t,selected:l.isYearSelected(t.value),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":l.isYearSelected(t.value)}),[m(I(t.value)+` `,1),l.isYearSelected(t.value)?(B(),v(`div`,M({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),I(t.value),17)):_(``,!0)],16,Ut)),[[h]])}),128))],16)):_(``,!0)],64)),(e.showTime||e.timeOnly)&&c.currentView===`date`?(B(),v(`div`,M({key:1,class:e.cx(`timePicker`),"data-p":l.timePickerDataP},e.ptm(`timePicker`)),[n(`div`,M({class:e.cx(`hourPicker`)},e.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[V(e.$slots,`hourincrementbutton`,{callbacks:l.hourIncrementCallbacks},function(){return[w(f,M({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextHour,unstyled:e.unstyled,onMousedown:r[9]||=function(e){return l.onTimePickerElementMouseDown(e,0,1)},onMouseup:r[10]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,r[12]||=a(function(e){return l.onTimePickerElementMouseDown(e,0,1)},[`enter`]),r[13]||=a(function(e){return l.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:r[11]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[r[14]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),r[15]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[V(e.$slots,`incrementicon`,{},function(){return[(B(),L(Ce(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`])]}),n(`span`,M(e.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),I(l.formattedCurrentHour),17),V(e.$slots,`hourdecrementbutton`,{callbacks:l.hourDecrementCallbacks},function(){return[w(f,M({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevHour,unstyled:e.unstyled,onMousedown:r[16]||=function(e){return l.onTimePickerElementMouseDown(e,0,-1)},onMouseup:r[17]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,r[19]||=a(function(e){return l.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),r[20]||=a(function(e){return l.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:r[18]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[r[21]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),r[22]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[V(e.$slots,`decrementicon`,{},function(){return[(B(),L(Ce(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),n(`div`,M(e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[n(`span`,M(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),I(e.timeSeparator),17)],16),n(`div`,M({class:e.cx(`minutePicker`)},e.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[V(e.$slots,`minuteincrementbutton`,{callbacks:l.minuteIncrementCallbacks},function(){return[w(f,M({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:r[23]||=function(e){return l.onTimePickerElementMouseDown(e,1,1)},onMouseup:r[24]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,r[26]||=a(function(e){return l.onTimePickerElementMouseDown(e,1,1)},[`enter`]),r[27]||=a(function(e){return l.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:r[25]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[r[28]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),r[29]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[V(e.$slots,`incrementicon`,{},function(){return[(B(),L(Ce(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`])]}),n(`span`,M(e.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),I(l.formattedCurrentMinute),17),V(e.$slots,`minutedecrementbutton`,{callbacks:l.minuteDecrementCallbacks},function(){return[w(f,M({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:r[30]||=function(e){return l.onTimePickerElementMouseDown(e,1,-1)},onMouseup:r[31]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,r[33]||=a(function(e){return l.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),r[34]||=a(function(e){return l.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:r[32]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[r[35]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),r[36]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[V(e.$slots,`decrementicon`,{},function(){return[(B(),L(Ce(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?(B(),v(`div`,M({key:0,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[n(`span`,M(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),I(e.timeSeparator),17)],16)):_(``,!0),e.showSeconds?(B(),v(`div`,M({key:1,class:e.cx(`secondPicker`)},e.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[V(e.$slots,`secondincrementbutton`,{callbacks:l.secondIncrementCallbacks},function(){return[w(f,M({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:r[37]||=function(e){return l.onTimePickerElementMouseDown(e,2,1)},onMouseup:r[38]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,r[40]||=a(function(e){return l.onTimePickerElementMouseDown(e,2,1)},[`enter`]),r[41]||=a(function(e){return l.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:r[39]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[r[42]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),r[43]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[V(e.$slots,`incrementicon`,{},function(){return[(B(),L(Ce(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`])]}),n(`span`,M(e.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),I(l.formattedCurrentSecond),17),V(e.$slots,`seconddecrementbutton`,{callbacks:l.secondDecrementCallbacks},function(){return[w(f,M({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:r[44]||=function(e){return l.onTimePickerElementMouseDown(e,2,-1)},onMouseup:r[45]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,r[47]||=a(function(e){return l.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),r[48]||=a(function(e){return l.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:r[46]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[r[49]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),r[50]||=a(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:H(function(t){return[V(e.$slots,`decrementicon`,{},function(){return[(B(),L(Ce(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)):_(``,!0),e.hourFormat==`12`?(B(),v(`div`,M({key:2,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[n(`span`,M(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),I(e.timeSeparator),17)],16)):_(``,!0),e.hourFormat==`12`?(B(),v(`div`,M({key:3,class:e.cx(`ampmPicker`)},e.ptm(`ampmPicker`)),[V(e.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return l.toggleAMPM(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[w(f,M({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.am,disabled:e.disabled,unstyled:e.unstyled,onClick:r[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[V(e.$slots,`incrementicon`,{class:b(e.cx(`incrementIcon`))},function(){return[(B(),L(Ce(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`])]}),n(`span`,M(e.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),I(c.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),17),V(e.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return l.toggleAMPM(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[w(f,M({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.pm,disabled:e.disabled,onClick:r[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[V(e.$slots,`decrementicon`,{class:b(e.cx(`decrementIcon`))},function(){return[(B(),L(Ce(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)):_(``,!0)],16,Wt)):_(``,!0),e.showButtonBar?(B(),v(`div`,M({key:2,class:e.cx(`buttonbar`)},e.ptm(`buttonbar`)),[V(e.$slots,`buttonbar`,{todayCallback:function(e){return l.onTodayButtonClick(e)},clearCallback:function(e){return l.onClearButtonClick(e)}},function(){return[V(e.$slots,`todaybutton`,{actionCallback:function(e){return l.onTodayButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[w(f,M({label:l.todayLabel,onClick:r[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`])]}),V(e.$slots,`clearbutton`,{actionCallback:function(e){return l.onClearButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[w(f,M({label:l.clearLabel,onClick:r[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)):_(``,!0),V(e.$slots,`footer`)],16,Mt)):_(``,!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=k(r({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(e){let r=e,i=R(()=>{let e=r.card.deadline;if(!e)return null;let t=Jt(e);return t?{label:Yt(e),state:t}:null}),a=O(new Set);function s(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 c(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}return(e,l)=>{let u=he(`tooltip`);return B(),v(o,null,[n(`div`,Xt,[n(`span`,Zt,I(r.card.title),1),n(`div`,Qt,[V(e.$slots,`actions`,{},void 0,!0)])]),r.card.groups?.length?(B(),v(`div`,$t,[(B(!0),v(o,null,z(r.card.groups,e=>(B(),v(`span`,{key:e,class:`kb-card__group`},I(e),1))),128))])):_(``,!0),r.card.assignees?.length?(B(),v(`div`,en,[(B(!0),v(o,null,z(r.card.assignees,e=>(B(),v(`span`,{key:e.id,class:`kb-card__avatar`,style:t(s(e.id)),title:e.name},[r.avatarUrl&&!a.has(e.id)?(B(),v(`img`,{key:0,src:r.avatarUrl(e.id),alt:``,onError:t=>a.add(e.id)},null,40,q)):(B(),v(o,{key:1},[m(I(c(e.name)),1)],64))],12,tn))),128))])):_(``,!0),r.card.markdown||r.card.images.length||r.card.commentCount||r.childCount||r.hasParent||i.value||e.$slots.badges?(B(),v(`div`,nn,[i.value?T((B(),v(`span`,{key:0,class:b([`kb-card__deadline`,`kb-card__deadline--${i.value.state}`])},[l[0]||=n(`i`,{class:`pi pi-calendar`},null,-1),m(` `+I(i.value.label),1)],2)),[[u,r.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):_(``,!0),r.card.priority?T((B(),v(`span`,rn,[m(I(r.card.priority),1)])),[[u,r.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):_(``,!0),r.hasParent?T((B(),v(`i`,an,null,512)),[[u,r.t(`card.hasParent`),void 0,{bottom:!0}]]):_(``,!0),r.childCount?T((B(),v(`span`,on,[l[1]||=n(`i`,{class:`pi pi-sitemap`},null,-1),m(` `+I(r.childCount),1)])),[[u,r.t(`card.hasChildren`),void 0,{bottom:!0}]]):_(``,!0),r.card.markdown?(B(),v(`i`,sn)):_(``,!0),r.card.images.length?(B(),v(`span`,cn,[l[2]||=n(`i`,{class:`pi pi-image`},null,-1),m(` `+I(r.card.images.length),1)])):_(``,!0),r.card.commentCount?(B(),v(`span`,ln,[l[3]||=n(`i`,{class:`pi pi-comment`},null,-1),m(` `+I(r.card.commentCount),1)])):_(``,!0),V(e.$slots,`badges`,{},void 0,!0)])):_(``,!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=k(r({__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:t}){let r=t;function i(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}return(t,a)=>e.files.length?(B(),v(`ul`,{key:0,class:b([`kb-files`,{"kb-files--inline":e.compact}])},[(B(!0),v(o,null,z(e.files,(t,o)=>(B(),v(`li`,{key:t.id,class:`kb-files__item`},[e.preview(t)?(B(),v(`span`,dn,[n(`img`,{src:e.preview(t),alt:t.name},null,8,fn)])):(B(),v(`i`,pn)),e.openable?(B(),v(`button`,{key:2,class:`kb-files__name`,title:t.name,onClick:U(e=>r(`open`,t),[`stop`])},I(t.name),9,mn)):(B(),v(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:t.name},I(t.name),9,hn)),n(`span`,gn,I(i(t.size)),1),e.removable?(B(),v(`button`,{key:4,class:`kb-files__remove`,title:e.removeLabel,onClick:U(e=>r(`remove`,o),[`stop`])},[...a[0]||=[n(`i`,{class:`pi pi-times`},null,-1)]],8,_n)):_(``,!0)]))),128))],2)):_(``,!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}},Y=wn(xn,2),Tn=Y.b,En=Y.r;Tn[28]=258,En[258]=28;var Dn=wn(Sn,0),On=Dn.b;Dn.r;for(var kn=new yn(32768),X=0;X<32768;++X){var An=(X&43690)>>1|(X&21845)<<1;An=(An&52428)>>2|(An&13107)<<2,An=(An&61680)>>4|(An&3855)<<4,kn[X]=((An&65280)>>8|(An&255)<<8)>>1}for(var jn=(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[kn[d]>>c]=l}else for(s=new yn(r),i=0;i<r;++i)e[i]&&(s[i]=kn[o[e[i]-1]++]>>15-e[i]);return s}),Mn=new J(288),X=0;X<144;++X)Mn[X]=8;for(var X=144;X<256;++X)Mn[X]=9;for(var X=256;X<280;++X)Mn[X]=7;for(var X=280;X<288;++X)Mn[X]=8;for(var Nn=new J(32),X=0;X<32;++X)Nn[X]=5;var Pn=jn(Mn,9,1),Fn=jn(Nn,5,1),In=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Ln=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Rn=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},zn=function(e){return(e+7)/8|0},Bn=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))},Vn=[`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||Vn[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=Ln(e,d,1);var v=Ln(e,d+1,3);if(d+=3,v)if(v==1)p=Pn,m=Fn,h=9,g=5;else if(v==2){var y=Ln(e,d,31)+257,b=Ln(e,d+10,15)+4,ee=y+Ln(e,d+5,31)+1;d+=14;for(var x=new J(ee),S=new J(19),C=0;C<b;++C)S[Cn[C]]=Ln(e,d+C*3,7);d+=b*3;for(var w=In(S),te=(1<<w)-1,ne=jn(S,w,1),C=0;C<ee;){var T=ne[Ln(e,d,te)];d+=T&15;var E=T>>4;if(E<16)x[C++]=E;else{var D=0,re=0;for(E==16?(re=3+Ln(e,d,3),d+=2,D=x[C-1]):E==17?(re=3+Ln(e,d,7),d+=3):E==18&&(re=11+Ln(e,d,127),d+=7);re--;)x[C++]=D}}var O=x.subarray(0,y),k=x.subarray(y);h=In(O),g=In(k),p=jn(O,h,1),m=jn(k,g,1)}else Z(1);else{var E=zn(d)+4,ie=e[E-4]|e[E-3]<<8,A=E+ie;if(A>i){c&&Z(0);break}s&&l(f+ie),n.set(e.subarray(E,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 ae=(1<<h)-1,j=(1<<g)-1,M=d;;M=d){var D=p[Rn(e,d)&ae],N=D>>4;if(d+=D&15,d>_){c&&Z(0);break}if(D||Z(2),N<256)n[f++]=N;else if(N==256){M=d,p=null;break}else{var oe=N-254;if(N>264){var C=N-257,P=xn[C];oe=Ln(e,d,(1<<P)-1)+Tn[C],d+=P}var se=m[Rn(e,d)&j],ce=se>>4;se||Z(3),d+=se&15;var k=On[ce];if(ce>3){var P=Sn[ce];k+=Rn(e,d)&(1<<P)-1,d+=P}if(d>_){c&&Z(0);break}s&&l(f+131072);var F=f+oe;if(f<k){var le=a-k,ue=Math.min(k,F);for(le+f<0&&Z(3);f<ue;++f)n[f]=r[le+f]}for(;f<F;++f)n[f]=n[f-k]}}t.l=p,t.p=M,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?Bn(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:Bn(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]=Bn(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 h(async()=>{let{renderAsync:e}=await import(`./docx-preview-rILu4Ooo.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 h(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=k(r({__name:`UploadProgress`,props:{queue:{},errors:{},uploading:{type:Boolean,default:!1},uploadingLabel:{default:``}},setup(e){return(r,i)=>e.queue.length||e.errors.length||e.uploading&&!e.queue.length?(B(),v(`div`,Er,[e.queue.length?(B(),v(`ul`,Dr,[(B(!0),v(o,null,z(e.queue,e=>(B(),v(`li`,{key:e.key},[n(`span`,{class:`kb-upload__name`,title:e.name},I(e.name),9,Or),n(`span`,kr,[n(`span`,{class:`kb-upload__bar-fill`,style:t({width:`${Math.round(e.ratio*100)}%`})},null,4)]),n(`span`,Ar,I(Math.round(e.ratio*100))+`%`,1)]))),128))])):e.uploading?(B(),v(`p`,jr,I(e.uploadingLabel),1)):_(``,!0),e.errors.length?(B(),v(`ul`,Mr,[(B(!0),v(o,null,z(e.errors,(e,t)=>(B(),v(`li`,{key:t},I(e.name)+` — `+I(e.reason),1))),128))])):_(``,!0)])):_(``,!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=k(r({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(e,{emit:r}){let i=e,s=r,c=de(),u=i.t,d=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],f=R(()=>new Map(i.groups.map(e=>[e.id,e])));function p(e){return i.columns.filter(t=>(t.groupId&&f.value.has(t.groupId)?t.groupId:void 0)===e)}function m(e){return i.groups.filter(t=>(t.parentId??void 0)===e)}function h(e){return p(e).length+m(e).reduce((e,t)=>e+h(t.id),0)}let g=R(()=>Fr(i.columns,i.groups)),y=R(()=>{let e=[],t=(n,r)=>{for(let a of n){if(a.kind===`column`){if(r===0)continue;let t=i.columns.find(e=>e.id===a.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:r});continue}let n=f.value.get(a.id);n&&(e.push({kind:`group`,id:n.id,title:n.title,color:n.color,depth:r,columnCount:h(n.id)}),t(a.children,r+1))}};return t(g.value,0),e});function ee(e,t){let n=Lr(i.columns,i.groups,e,t);n&&s(`intent`,{kind:`columns-reorder`,columnIds:n})}function S(e,t){return Lr(i.columns,i.groups,e,t)!==null}let C=R(()=>p(void 0)),te=D(``);function ne(){let e=te.value.trim();e&&(s(`intent`,{kind:`group-add`,title:e,color:d[i.groups.length%d.length]}),te.value=``)}let T=D(null);function E(e){e.kind===`group`&&(T.value={id:e.id,title:e.title})}function O(){let e=T.value;if(!e)return;let t=e.title.trim(),n=f.value.get(e.id);t&&n&&t!==n.title&&s(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),T.value=null}function k(e,t){let n=f.value.get(e)?.color;s(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function ie(e){e.kind===`group`&&c.require({message:u(`groups.deleteConfirm`,{title:e.title}),header:u(`groups.deleteHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,accept:()=>s(`intent`,{kind:`group-delete`,groupId:e.id})})}let A=D(null),ae=D(null);function j(e,t,n){i.readOnly||(A.value={kind:e,id:t},n.dataTransfer?.setData(`text/plain`,t),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`))}function M(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=f.value.get(n)?.parentId}return!0}function N(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(ae.value=null)}function oe(e,t){M(A.value,e)&&(t.preventDefault(),ae.value=e??`root`)}function P(e){let t=i.columns.find(t=>t.id===e)?.groupId;return t&&f.value.has(t)?t:null}function ce(e){let t=A.value,n=M(t,e);ae.value=null,A.value=null,!(!t||!n)&&s(`intent`,{kind:`group-assign`,member:t,groupId:e})}function F(){s(`update:visible`,!1)}return(r,i)=>(B(),L(x(re),{visible:e.visible,header:x(u)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":F},{default:H(()=>[n(`p`,Rr,I(x(u)(`groups.lead`)),1),e.readOnly?_(``,!0):(B(),v(`div`,zr,[w(x(se),{modelValue:te.value,"onUpdate:modelValue":i[0]||=e=>te.value=e,placeholder:x(u)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:a(ne,[`enter`])},null,8,[`modelValue`,`placeholder`]),w(x(l),{label:x(u)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:ne},null,8,[`label`])])),n(`div`,Br,[y.value.length?_(``,!0):(B(),v(`div`,Vr,I(x(u)(`groups.empty`)),1)),(B(!0),v(o,null,z(y.value,r=>(B(),v(`div`,{key:`${r.kind}-${r.id}`,class:b([`kg-row`,{"kg-row--group":r.kind===`group`,"kg-row--target":ae.value===r.id}]),style:t({paddingLeft:`${r.depth*1.25}rem`}),draggable:!e.readOnly,onDragstart:e=>j(r.kind,r.id,e),onDragover:e=>oe(r.kind===`group`?r.id:P(r.id),e),onDragleave:N,onDrop:U(e=>ce(r.kind===`group`?r.id:P(r.id)),[`prevent`]),onDragend:i[2]||=e=>{A.value=null,ae.value=null}},[n(`i`,{class:b([r.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),r.kind===`group`?(B(),v(`span`,{key:0,class:`kg-swatch`,style:t({background:r.color||`var(--p-text-muted-color)`})},null,4)):_(``,!0),T.value&&T.value.id===r.id?(B(),L(x(se),{key:1,modelValue:T.value.title,"onUpdate:modelValue":i[1]||=e=>T.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:a(O,[`enter`]),onBlur:O},null,8,[`modelValue`])):(B(),v(`span`,Ur,I(r.title),1)),r.kind===`group`?(B(),v(`span`,Wr,I(x(u)(`groups.columnCount`,{count:r.columnCount})),1)):_(``,!0),e.readOnly?_(``,!0):(B(),v(`div`,Gr,[w(x(l),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!S(r.id,-1),"aria-label":x(u)(`groups.moveUp`),class:`kg-move`,onClick:e=>ee(r.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),w(x(l),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!S(r.id,1),"aria-label":x(u)(`groups.moveDown`),class:`kg-move`,onClick:e=>ee(r.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),r.kind===`group`?(B(),v(o,{key:0},[(B(),v(o,null,z(d,e=>n(`span`,{key:e,class:b([`kg-dot`,{"kg-dot--on":r.color===e}]),style:t({background:e}),onClick:t=>k(r.id,e)},null,14,Kr)),64)),w(x(l),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>E(r)},null,8,[`onClick`]),w(x(l),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ie(r)},null,8,[`onClick`])],64)):_(``,!0)]))],46,Hr))),128))]),n(`div`,{class:b([`kg-loose`,{"kg-row--target":ae.value===`root`}]),onDragover:i[4]||=e=>oe(null,e),onDragleave:N,onDrop:i[5]||=U(e=>ce(null),[`prevent`])},[n(`div`,qr,I(x(u)(`groups.loose`)),1),C.value.length?_(``,!0):(B(),v(`div`,Jr,I(x(u)(`groups.looseEmpty`)),1)),(B(!0),v(o,null,z(C.value,t=>(B(),v(`div`,{key:t.id,class:`kg-row`,draggable:!e.readOnly,onDragstart:e=>j(`column`,t.id,e),onDragend:i[3]||=e=>{A.value=null,ae.value=null}},[i[6]||=n(`i`,{class:`pi pi-list kg-row__icon`},null,-1),n(`span`,Xr,I(t.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={key:0,class:`kb-dialog__archived`},va={class:`kb-dialog__edit-content`},ya={class:`kb-dialog__field`},ba={for:`kanban-card-title`,class:`kb-dialog__label`},xa={class:`kb-dialog__field`},Sa={for:`kanban-card-content`,class:`kb-dialog__label`},Ca={class:`kb-dialog__field`},wa={for:`kanban-card-images`,class:`kb-dialog__label`},Ta={key:0,class:`kb-dialog__images`},Ea=[`src`],Da=[`onClick`],Oa={key:1,class:`kb-dialog__upload`},ka={class:`kb-rel`},Aa={key:0,class:`kb-rel__section`},ja={class:`kb-rel__title`},Ma={key:0,class:`kb-rel__table`},Na={class:`kb-rel__people`},Pa={class:`kb-rel__num`},Fa={class:`kb-rel__actions-col`},Ia={class:`kb-rel__card`},La={class:`kb-rel__board`},Ra={class:`kb-rel__people`},za={key:0,class:`kb-card__assignees`},Ba=[`title`],Va=[`src`,`onError`],Ha={key:1,class:`kb-rel__none`},Ua={class:`kb-rel__num`},Wa={class:`kb-rel__actions-col`},Ga=[`title`],Ka=[`title`],qa={key:1,class:`kb-rel__empty`},Ja={class:`kb-coloption`},Ya={class:`kb-link__col`},Xa={key:1,class:`kb-rel__section`},Za={class:`kb-rel__title`},Qa={key:0,class:`kb-rel__table`},$a={class:`kb-rel__people`},eo={class:`kb-rel__num`},to={class:`kb-rel__actions-col`},no={class:`kb-rel__card`},ro={class:`kb-rel__board`},io={class:`kb-rel__people`},ao={key:0,class:`kb-card__assignees`},oo=[`title`],so=[`src`,`onError`],co={key:1,class:`kb-rel__none`},lo={class:`kb-rel__num`},uo={class:`kb-rel__actions-col`},fo=[`title`,`onClick`],po=[`title`,`onClick`],mo={key:1,class:`kb-rel__empty`},ho={class:`kb-coloption`},go={class:`kb-link__col`},_o={key:2,class:`kb-rel__empty`},vo={class:`kb-comments`},yo={key:0,class:`kb-comments__empty`},bo={key:1,class:`kb-comments__list`},xo=[`onClick`],So={key:0,class:`pi pi-sparkles`},Co=[`src`,`onError`],wo={key:3,class:`pi pi-user`},To={class:`kb-comments__body`},Eo={class:`kb-comments__meta`},Do={class:`kb-comments__author`},Oo={class:`kb-comments__time`},ko={key:0,class:`kb-comments__edited`},Ao={key:1,class:`kb-comments__tools`},jo=[`title`,`onClick`],Mo=[`title`,`onClick`],No={class:`kb-comments__actions`},Po=[`onClick`,`innerHTML`],Fo=[`onClick`],Io=[`onKeydown`],Lo={class:`kb-comments__actions`},Ro=[`title`],zo={class:`kb-comments__hint`},Bo={class:`kb-history`},Vo={key:0,class:`kb-history__empty`},Ho={key:1,class:`kb-history__timeline`},Uo=[`onClick`],Wo={class:`kb-history__icon`},Go={class:`kb-history__body`},Ko={class:`kb-history__label`},qo={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},Jo={key:0,class:`kb-history__detail`},Yo={class:`kb-history__time`},Xo={class:`kb-side`},Zo={key:0,class:`kb-side__block`},Qo={class:`kb-side__label`},$o=[`title`],es=[`src`,`onError`],ts={class:`kb-assignee`},ns=[`src`,`onError`],rs={class:`kb-side__hint`},is={class:`kb-side__block`},as={class:`kb-side__label`},os={key:0,class:`kb-prio__value`},ss={key:0,class:`kb-prio`},cs=[`title`],ls={key:2,class:`kb-side__hint`},us={class:`kb-side__block`},ds={class:`kb-side__label`},fs={class:`kb-deadline`},ps=[`title`],ms={key:0,class:`kb-side__hint`},hs={class:`kb-side__block`},gs={class:`kb-side__label`},_s={class:`kb-groups__option`},vs={class:`kb-side__hint`},ys={key:1,class:`kb-side__block`},bs={class:`kb-side__label`},xs={class:`kb-tree`},Ss={key:0,class:`pi pi-angle-right kb-tree__branch`},Cs=[`title`,`onClick`],ws={class:`kb-tree__label`},Ts={class:`kb-side__block`},Es={class:`kb-side__label`},Ds={class:`kb-colors`},Os=[`disabled`],ks=[`disabled`,`onClick`],As={class:`kb-side__hint`},js={key:2,class:`kb-side__block`},Ms={class:`kb-side__label`},Ns={class:`kb-side__hint`},Ps={key:3,class:`kb-side__block`},Fs={class:`kb-side__label`},Is={class:`kb-colgroup__label`},Ls={class:`kb-coloption`},Rs={key:0,class:`pi pi-arrow-right kb-coloption__away`},zs={key:0,class:`kb-side__hint`},Bs={class:`kb-side__block kb-side__meta`},Vs={key:0},Hs={key:4,class:`kb-side__block`},Us={class:`kb-side__label`},Ws={class:`kb-side__convs`},Gs=[`title`,`onClick`],Ks={class:`kb-side__conv-label`},qs={key:5,class:`kb-side__block`},Js={class:`kb-side__label`},Ys={class:`kb-side__actions`},Xs={key:6,class:`kb-side__block kb-side__danger`},Zs={class:`kb-dialog__footer`},Qs={key:0,class:`kb-dialog__unsaved`},$s={key:0,class:`kb-viewer`},ec=[`src`,`alt`],tc=[`src`,`title`],nc=[`src`],rc=[`src`],ic={key:4,class:`kb-viewer__office`},ac={key:0,class:`kb-viewer__tabs`},oc=[`onClick`],sc={class:`kb-viewer__scroll`},cc={key:0,class:`kb-viewer__table`},lc={key:1,class:`kb-viewer__empty`},uc={key:5,class:`kb-viewer__office`},dc={class:`kb-viewer__scroll kb-viewer__doc`},fc={key:0},pc={key:1},mc={key:2},hc={key:3,class:`kb-viewer__li`},gc={key:4,class:`kb-viewer__table`},_c={key:5},vc={key:0,class:`kb-viewer__empty`},yc={key:6,class:`kb-viewer__office`},bc={class:`kb-viewer__scroll kb-viewer__slides`},xc={class:`kb-viewer__slide-no`},Sc={key:0},Cc={key:7,class:`kb-viewer__office`},wc={key:0,class:`kb-viewer__empty`},Tc={key:8,class:`kb-viewer__text`},Ec={key:9,class:`kb-viewer__truncated`},Dc={key:0,class:`kb-colmenu`},Oc={class:`kb-colmenu__host`},Q=`\0void`,kc=26,Ac=512*1024,jc=55*1024*1024,Mc=5*1024*1024,Nc=400,Pc=8,Fc=60,Ic=12,Lc=k(r({__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(r,{expose:i,emit:s}){let c=r,d=R(()=>c.loadHistory!==void 0),f=s,p=de(),h=c.t;function g(){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 y(e){return JSON.parse(JSON.stringify(e))}let S=D(y(c.columns));F(()=>c.columns,e=>{S.value=y(e),Jt()});function C(e,t){S.value=e,t&&f(`intent`,t)}let ne=D(``),E=D(!1),k=D(``),ie=R(()=>[...S.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),A=D(!1),j=D(`gte`),M=D(null),N=D([]),P=D([]),ce=D([]),ue=D(!1),fe=D(!1),pe=D(!1),me=D([]),ge=R(()=>{let e=new Set;for(let t of me.value){for(let n of rn(t,`up`))e.add(n);for(let n of rn(t,`down`))e.add(n)}return e}),_e=R(()=>M.value!==null||j.value===`none`),ye=R(()=>(_e.value?1:0)+(N.value.length?1:0)+(P.value.length||ue.value?1:0)+(ce.value.length||fe.value?1:0)+(me.value.length||pe.value?1:0));function be(){M.value=null,j.value=`gte`,N.value=[],P.value=[],ce.value=[],me.value=[],ue.value=!1,fe.value=!1,pe.value=!1}function xe(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(P.value.length||ue.value){let e=P.value.length&&t.some(e=>P.value.includes(e)),n=ue.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(ce.value.length||fe.value){let e=ce.value.length&&n.some(e=>ce.value.includes(e.id)),t=fe.value&&n.length===0;if(!e&&!t)return!1}if(me.value.length||pe.value){let t=me.value.length&&ge.value.has(e.id),n=pe.value&&!$t(e.id)&&en(e.id).length===0;if(!t&&!n)return!1}return!0}let Se=R({get:()=>ue.value?[Q,...P.value]:P.value,set:e=>{ue.value=e.includes(Q),P.value=e.filter(e=>e!==Q)}}),Ce=R(()=>[Q,...ft.value]),we=R({get:()=>fe.value?[Q,...ce.value]:ce.value,set:e=>{fe.value=e.includes(Q),ce.value=e.filter(e=>e!==Q)}}),Ee=R(()=>[{userId:Q,name:h(`filters.noAssignees`)},...c.members]),De=R({get:()=>pe.value?[Q,...me.value]:me.value,set:e=>{pe.value=e.includes(Q),me.value=e.filter(e=>e!==Q)}}),Oe=R(()=>[{id:Q,title:h(`filters.noFamily`),column:``},...ie.value.flatMap(e=>e.cards.map(t=>({id:t.id,title:t.title,column:e.title}))),...c.archivedCards.map(e=>({id:e.id,title:e.title,column:h(`archive.title`)}))]),ke=R(()=>{let e=c.searchMatches,t=ye.value>0;return!e&&!t?ie.value:ie.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||xe(n)))}))}),Ae=D(!1),je=R(()=>new Map((c.columnGroups??[]).map(e=>[e.id,e])));function Me(e){let t=[],n=new Set,r=e;for(;r&&je.value.has(r)&&!n.has(r);)n.add(r),t.unshift(r),r=je.value.get(r).parentId;return t}let Ne=R(()=>{let e=new Map;for(let t of ke.value)Me(t.groupId).forEach((n,r)=>{let i=je.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=R(()=>Ne.value.length?(Math.max(...Ne.value.map(e=>e.depth))+1)*kc:0),Le=D(null),Ge=D([]);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+(ke.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*kc,left:r,width:i-r,count:a}]})}let qe=null;Te(()=>{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)}}),e(()=>qe?.disconnect()),F(()=>[ke.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),c.columnGroups],()=>{ae(()=>{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(c.readOnly||!k.value.trim())return;let e=k.value.trim();C([...S.value,{id:g(),title:e,order:S.value.length,cards:[]}],{kind:`column-add`,title:e}),k.value=``,E.value=!1}function Ze(e){if(c.readOnly)return;let t=S.value.find(t=>t.id===e);p.require({message:h(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:h(`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){c.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=D(null),$e=D(``),et=D(``),tt=D([]),rt=D([]),it=D(!1),G=D([]),at=D([]),ot=0,st=D([]),ct=O(new Map),lt=D([]),ut=D([]),dt=D([]),ft=R(()=>{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 c.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=D(null),ht=D(null),gt=R(()=>{let e=_t(ht.value),t=e?qt(e):null;return t===null?``:t<0?h(`editor.deadlineOverdue`,{count:-t}):t===0?h(`editor.deadlineToday`):h(`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(){c.readOnly||(mt.value=5)}function bt(e){let t=e.trim();!t||ut.value.includes(t)||(ut.value=[...ut.value,t])}let xt=D(!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=D(``),Dt=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],Ot=D(``),At=D(`edit`),jt=D(``),K=D([]),Mt=D(null),Nt=D(null),Pt=D(null),Ft=D(``);async function It(){await ae(),Nt.value?.scrollIntoView({block:`end`})}F(W,e=>f(`card-open`,e));let Lt=D(null),Rt=D(`bottom`);function zt(e,t=`bottom`){if(!c.readOnly){if(Rt.value=t,c.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:g(),title:h(`card.defaultTitle`),markdown:t,images:[],order:Rt.value===`top`?0:n.cards.length,...d.value?{}:{history:[{type:`created`,timestamp:r,detail:h(`card.inColumn`,{name:Je(e)})}]},createdAt:r,updatedAt:r})}function Ht(e,t){if(Ln(),W.value={colId:e,card:{...t,history:[...t.history??[]]}},c.loadHistory&&Cn(t.id)){let n=c.histories?.[t.id];n&&(W.value={colId:e,card:{...t,history:n}}),c.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`}F(()=>W.value?c.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=R(()=>{let e=W.value;return e?!Cn(e.card.id):!1}),Wt=R(()=>{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=R(()=>Wt.value||jt.value.trim().length>0||K.value.length>0||Pt.value!==null);function Kt(){if(!Gt.value){Xt();return}p.require({message:h(`editor.confirmDiscardMessage`),header:h(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:h(`editor.discard`),rejectLabel:h(`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=[],c.deleteAttachment)for(let t of e)c.deleteAttachment(t)}function Xt(){W.value=null,lr(),Yn(),Ln(),Yt()}function Zt(){if(Y.value||!W.value)return;let{colId:e,card:t}=W.value,n=$e.value||h(`card.untitled`),r=d.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!d.value&&n!==t.title&&t.title!==h(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!d.value&&et.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let a=d.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:c.members.find(t=>t.userId===e)?.name??e})),s=d.value?[]:o.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));s.length&&r.push({type:`edited`,timestamp:i(),detail:h(`editor.assignedDetail`,{names:s.map(e=>e.name).join(`, `)})});let l=[...new Set(ut.value.map(e=>e.trim()).filter(Boolean))],{color:u,priority:p,groups:m,deadline:g,..._}=t,v={..._,title:n,markdown:et.value,images:tt.value,attachments:rt.value,assignees:o,...Et.value?{color:Et.value}:{},...l.length?{groups:l}:{},...mt.value===null?{}:{priority:mt.value},..._t(ht.value)?{deadline:_t(ht.value)}:{},history:d.value?t.history:r,updatedAt:i()},y=Ot.value||e;!d.value&&y!==e&&r.push({type:`moved`,timestamp:i(),detail:`${Je(e)} → ${Je(y)}`});let b=!Cn(v.id),ee=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}};!b&&y!==e&&f(`intent`,{kind:`card-move`,cardId:v.id,toColumnId:y}),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}))}}),ee),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:h(`editor.relationsHereBoard`),columnTitle:n.title,here:!0,assignees:r.assignees??[],commentCount:r.commentCount??(r.history??[]).filter(e=>e.type===`comment`).length}}let n=c.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 c.cardLinks.find(t=>t.childCardId===e)}function en(e){return c.cardLinks.filter(t=>t.parentCardId===e)}function tn(e){return en(e).length}let q=R(()=>{let e=W.value;if(!e)return null;let t=$t(e.card.id);return t?Qt(t.parentBoardId,t.parentCardId):null}),nn=R(()=>{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<=c.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 ie.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let on=R(()=>{let e=W.value;return e?an(rn(e.card.id,`down`)):[]}),sn=R(()=>{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||Y.value||!c.setCardParent||c.setCardParent(t.card.id,e)}function ln(e){let t=W.value;!t||!e||Y.value||!c.setCardParent||c.setCardParent(e,t.card.id)}function dn(e){Y.value||!c.setCardParent||c.setCardParent(e,null)}let fn=R(()=>!Y.value&&c.setCardParent!==void 0&&!!W.value&&S.value.some(e=>e.cards.some(e=>e.id===W.value?.card.id))),pn=R(()=>{let e=W.value;if(!e)return[];let t=[],n=new Set([e.card.id]),r=e.card.id;for(let e=0;e<=c.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=R(()=>(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&&f(`open-linked-card`,{boardId:t,cardId:e})}let gn=R(()=>{let e=ie.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:h(`editor.columnGroupHere`),items:e}];if(!Y.value&&c.moveCardToBoard)for(let e of c.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=c.otherBoards.find(e=>e.id===t),a=i?.columns.find(e=>e.id===n);Y.value||!r||!i||!a||!c.moveCardToBoard||p.require({message:h(`editor.moveToBoardConfirm`,{board:i.name,column:a.title}),header:h(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;Xt(),c.moveCardToBoard?.(e,t,a.id)}})}let J=D(!1),yn=D(``),bn=D(``),xn=R(()=>[{id:``,title:h(`archive.allColumns`)},...S.value.map(e=>({id:e.id,title:e.title}))]),Sn=R(()=>new Map(c.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=R(()=>!!(W.value&&(W.value.card.archivedAt||Sn.value.has(W.value.card.id)))),Y=R(()=>c.readOnly||wn.value);function Tn(e){Ht(e.archivedFrom?.columnId??``,e)}let En=R(()=>ye.value?c.archivedCards.filter(xe):c.archivedCards),Dn=R(()=>c.archivedCards.length-En.value.length),On=null;function kn(){J.value=!0,f(`load-archive`,yn.value,bn.value)}F(yn,e=>{J.value&&(On&&clearTimeout(On),On=setTimeout(()=>f(`load-archive`,e,bn.value),250))}),F(bn,e=>{J.value&&(On&&clearTimeout(On),f(`load-archive`,yn.value,e))});let X=null;F(ne,e=>{if(X&&clearTimeout(X),!e.trim()){f(`search-cards`,``);return}X=setTimeout(()=>f(`search-cards`,e),250)}),e(()=>{X&&clearTimeout(X),On&&clearTimeout(On)});function An(e,t){c.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){c.readOnly||f(`intent`,{kind:`card-unarchive`,cardId:e})}function Mn(e,t){if(c.readOnly)return;let n=S.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);p.require({message:h(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:h(`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(Y.value||!W.value||!jt.value.trim()&&!K.value.length)return;let{colId:e,card:t}=W.value,n=K.value;if(c.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=[],c.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(c.fetchAttachment)for(let t of e){if(!Pn.test(t.contentType)||ct.has(t.id))continue;let e=await c.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<=Ac?`text`:null}let Z=D(null),Hn=D(0),Un=R(()=>{let e=Z.value?.office;return e?.mode===`sheet`?e.sheets[Hn.value]??e.sheets[0]??null:null}),Wn=D(null),Gn=D(!1);F([()=>Z.value?.office,Wn],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),Gn.value=!1;try{await e.render(t)}catch{Gn.value=!0}}});async function Kn(e){let t=Vn(e),n=ct.get(e.id),r=n??await c.fetchAttachment?.(e)??null;if(!r){G.value=[...G.value,{name:e.name,reason:h(`editor.downloadFailed`)}];return}if(!t){qn(r,e.name,!n);return}let i,a;if(t===`text`)try{i=await(await fetch(r)).text()}catch{qn(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{qn(r,e.name,!n);return}Yn(),Hn.value=0,Z.value={file:e,url:r,kind:t,text:i,office:a,cached:!!n}}function qn(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 Jn(){let e=Z.value;e&&qn(e.url,e.file.name,!1)}function Yn(){let e=Z.value;Z.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Xn(e){rt.value=rt.value.filter((t,n)=>n!==e)}let Zn=O(new Set);function Qn(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let $n=R(()=>c.members.map(e=>({id:e.userId,label:e.name})));function er(e){return c.members.find(t=>t.userId===e)?.name??e}function tr(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 nr(e){return!!c.currentUserId&&e.authorUser?.id===c.currentUserId}function rr(e){return e.author===`ai`?null:e.authorUser?.id??null}function ir(e){return e.author===`ai`?h(`comments.authorAi`):nr(e)?h(`comments.authorYou`):e.authorUser?.name??h(`comments.authorYou`)}function ar(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 or(e){Pt.value=e.id??null,Ft.value=e.detail??``}function lr(){Pt.value=null,Ft.value=``}function ur(){let e=Pt.value,t=Ft.value.trim();if(Y.value||!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(c.editComment){let i=(n.history??[]).find(t=>t.id===e);c.editComment(n.id,e,t,i?.attachments),ar(r)}lr()}function dr(e){return e.id??`${e.type}|${e.timestamp}`}function fr(e){return e.type===`comment`&&e.author===`ai`}function pr(e){return nr(e)||fr(e)}function mr(e){if(Y.value||!pr(e)||!W.value)return;let t=dr(e);p.require({message:h(`comments.confirmDeleteMessage`),header:h(`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=>dr(e)!==t);c.removeComment&&e.id&&(c.removeComment(n.card.id,e.id),ar(r))}})}let hr=R(()=>c.columnSubscriptions!==void 0),gr=D(null),_r=[`entered`,`left`,`created`,`deleted`],vr=[`email`,`chat`],yr=[..._r],br=[...vr],xr=D([...yr]),Sr=D([...br]);function Cr(e){return c.columnSubscriptions?.[e]??null}function wr(e){return Cr(e)!==null}let Tr=O(new Set),Er=new Map,Dr=null;function Or(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?Tr.add(e):Tr.delete(e)}function kr(e,t){let n=Er.get(t);if(n&&n!==e&&Dr?.unobserve(n),!(e instanceof HTMLElement)){Er.delete(t),Tr.delete(t);return}Er.set(t,e),typeof ResizeObserver<`u`&&(Dr??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of Er)n===t.target&&Or(e,n)}),Dr.observe(e)),Or(t,e)}F(()=>S.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void ae(()=>{for(let[e,t]of Er)Or(e,t)})),e(()=>Dr?.disconnect());function Ar(e,t){return{value:Tr.has(e)?t:``,showDelay:0,hideDelay:0}}let jr=D(null),Mr=D(null);function Pr(e,t){Mr.value=t,jr.value?.toggle(e)}function Fr(e){let t=Mr.value;t&&(jr.value?.hide(),e(t.id))}function Ir(e){let t=Cr(e);xr.value=t?[...t.kinds]:[...yr],Sr.value=t?[...t.channels]:[...br],gr.value=e}let Lr=R(()=>xr.value.length>0&&Sr.value.length>0);function Rr(){let e=gr.value;!e||!Lr.value||(f(`update-column-subscription`,{columnId:e,subscription:{kinds:[...xr.value],channels:[...Sr.value]}}),gr.value=null)}function zr(){let e=gr.value;e&&(f(`update-column-subscription`,{columnId:e,subscription:null}),gr.value=null)}let Br=R(()=>c.columns.find(e=>e.id===gr.value)??null),Vr=O(new Set),Hr=O(new Set),Ur=R(()=>`runeya.kanban.collapsedColumns.${c.name}`),Wr=R(()=>`runeya.kanban.expandedColumns.${c.name}`);function Gr(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 Kr(){Gr(Ur.value,Vr),Gr(Wr.value,Hr)}function qr(){try{window.localStorage.setItem(Ur.value,JSON.stringify([...Vr])),window.localStorage.setItem(Wr.value,JSON.stringify([...Hr]))}catch{}}Kr(),F(Ur,Kr);function Jr(e){let t=c.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function Yr(e){return Vr.has(e)?!0:Jr(e)&&!Hr.has(e)}function Xr(e){Yr(e)?(Vr.delete(e),Jr(e)&&Hr.add(e)):(Hr.delete(e),Jr(e)||Vr.add(e)),qr()}let Lc=R(()=>(W.value?.card.history??[]).filter(e=>e.type===`comment`));F([At,Lc],([e])=>{e===`comments`&&(It(),Xc())}),F(()=>W.value?.card.id,()=>{Vc.clear(),Hc.clear()});function Rc(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 zc(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Rc(t),!0):!1}function Bc(e){return e?oe.sanitize(ee.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 Vc=O(new Set),Hc=O(new Set);function Uc(e,t){return e.id??`i${t}`}function Wc(e,t){return Vc.has(Uc(e,t))}function Gc(e,t){let n=Uc(e,t);return Hc.has(n)||Vc.has(n)}function Kc(e,t){let n=Uc(e,t);Vc.has(n)?Vc.delete(n):Vc.add(n)}function qc(e,t,n){zc(n)||Qc(e)||Gc(e,t)&&(n.stopPropagation(),Kc(e,t))}let Jc=new Map;function Yc(e,t,n){let r=Uc(t,n);if(!(e instanceof HTMLElement)){Jc.delete(r);return}Jc.set(r,e),!Vc.has(r)&&(e.scrollHeight-e.clientHeight>1?Hc.add(r):Hc.delete(r))}async function Xc(){await ae();for(let[e,t]of Jc)Vc.has(e)||(t.scrollHeight-t.clientHeight>1?Hc.add(e):Hc.delete(e))}function Zc(e){return c.resolveConversationId?c.resolveConversationId(e):e.conversationId??null}function Qc(e){return!!Zc(e)}let $c=R(()=>{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=Zc(e);if(!t||n.has(t))continue;n.add(t);let i=e.detail??``,a=i.includes(` — `)?i.slice(0,i.lastIndexOf(` — `)).trim():``,o=rl(e.timestamp);r.push({id:t,label:o,title:a||nl.value[e.type]})}return r});function el(e){let t=Zc(e);t&&f(`open-conversation`,t)}let tl={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`},nl=R(()=>({created:h(`history.events.created`),edited:h(`history.events.edited`),moved:h(`history.events.moved`),image_added:h(`history.events.image_added`),image_removed:h(`history.events.image_removed`),title_changed:h(`history.events.title_changed`),archived:h(`history.events.archived`),unarchived:h(`history.events.unarchived`),conversation_started:h(`history.events.conversation_started`),scenario_started:h(`history.events.scenario_started`),comment:h(`history.events.comment`)}));function rl(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}`}function il(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 al(e){let t=[];for(let n of e){if(n.size===0){G.value=[...G.value,{name:n.name,reason:h(`editor.uploadEmpty`)}];continue}if(n.size>jc){G.value=[...G.value,{name:n.name,reason:h(`editor.uploadTooLarge`)}];continue}if(!c.uploadImage){G.value=[...G.value,{name:n.name,reason:h(`editor.uploadUnavailable`)}];continue}let e=`${ot+=1}`;at.value=[...at.value,{key:e,name:n.name,ratio:0}];try{let r=await c.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:h(`editor.uploadFailed`)}]}finally{at.value=at.value.filter(t=>t.key!==e)}}return t}async function ol(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 al(n);K.value=[...K.value,...e],In(e)}finally{it.value=!1}}async function sl(e,t){if(!(Y.value||!e.length)){it.value=!0,G.value=[];try{let n=await al(e);if(!n.length)return;t===`comment`?K.value=[...K.value,...n]:rt.value=[...rt.value,...n],In(n)}finally{it.value=!1}}}function cl(e){K.value=K.value.filter((t,n)=>n!==e)}async function ll(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(c.uploadImage){let e=await al(n);rt.value=[...rt.value,...e],In(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>Mc){G.value=[...G.value,{name:e.name,reason:h(`editor.uploadUnavailable`)}];continue}let t=await il(e);if(!t){G.value=[...G.value,{name:e.name,reason:h(`editor.uploadFailed`)}];continue}tt.value=[...tt.value,t],Mt.value?.insertImage(t)}}finally{it.value=!1}}function ul(e){p.require({message:h(`editor.confirmRemoveImageMessage`),header:h(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{tt.value=tt.value.filter((t,n)=>n!==e)}})}let dl=D(null),$=D(null),fl=null,pl=null,ml=`before`,hl=null,gl=`before`,_l=null,vl=null,yl=null,bl=[`kb-card--drop-before`,`kb-card--drop-after`],xl=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function Sl(e,t){_l&&_l!==e&&_l.classList.remove(...bl),_l=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function Cl(e){vl&&vl!==e&&vl.classList.remove(`kb-col--dragover`),vl=e,e?.classList.add(`kb-col--dragover`)}function wl(e,t){yl&&yl!==e&&yl.classList.remove(...xl),yl=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function Tl(){Sl(null,`before`),Cl(null),wl(null,`before`)}function El(e){return Nl.value?.querySelector(`.kb-col[data-col-id="${CSS.escape(e)}"]`)??null}let Dl=D(null),Ol=D(null),kl=D(!1),Al=null,jl=null,Ml=null,Nl=D(null);function Pl(e,t){Al&&cancelAnimationFrame(Al);let n=Nl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Fc&&n.scrollLeft>0?(n.scrollLeft-=Ic,i=!0):e>t.right-Fc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Ic,i=!0)}Ol.value&&(Ol.value.style.display=`none`);let a=document.elementFromPoint(e,t);if(Ol.value&&(Ol.value.style.display=``),a){let e=a.closest(`.kb-col__cards`);if(e){let n=e.getBoundingClientRect();t<n.top+Fc&&e.scrollTop>0?(e.scrollTop-=Ic,i=!0):t>n.bottom-Fc&&e.scrollTop<e.scrollHeight-e.clientHeight&&(e.scrollTop+=Ic,i=!0)}}Al=i&&kl.value?requestAnimationFrame(r):null};Al=requestAnimationFrame(r)}function Fl(){Al&&=(cancelAnimationFrame(Al),null)}function Il(){jl&&=(clearTimeout(jl),null),Ml=null}function Ll(){if(!Ml)return;let{type:e,colId:t,cardId:n,el:r}=Ml;Dl.value=e,kl.value=!0,e===`card`&&n?(dl.value={colId:t,cardId:n},$.value=null):($.value=t,dl.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),Ol.value=e}Ml=null}function Rl(e,t,n,r){if(c.readOnly)return;Il();let i=e.touches[0],a=i.clientX,o=i.clientY;Ml={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)>Pc&&(Il(),document.removeEventListener(`touchmove`,s))};document.addEventListener(`touchmove`,s,{passive:!0}),jl=setTimeout(()=>{document.removeEventListener(`touchmove`,s),Ll()},Nc)}function zl(e){if(!kl.value)return;e.preventDefault();let t=e.touches[0];Ol.value&&(Ol.value.style.left=`${t.clientX-40}px`,Ol.value.style.top=`${t.clientY-20}px`),Pl(t.clientX,t.clientY),Ol.value&&(Ol.value.style.display=`none`);let n=document.elementFromPoint(t.clientX,t.clientY);if(Ol.value&&(Ol.value.style.display=``),n){if(Dl.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`;fl!==i&&(fl=i,Cl(r)),(pl!==n||ml!==o)&&(pl=n,ml=o,Sl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(fl=e,pl=null,Cl(r),Sl(null,`before`))}}else if(Dl.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`;(hl!==n||gl!==i)&&(hl=n,gl=i,wl(e,i))}}}}}function Bl(){Il(),Fl(),Ol.value&&=(Ol.value.remove(),null),kl.value&&(Dl.value===`card`&&fl?Wl(fl):Dl.value===`column`&&hl&&Yl(hl)),Dl.value=null,kl.value=!1,Hl()}function Vl(e,t,n){c.readOnly||(dl.value={colId:t,cardId:n},$.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`card`)))}function Hl(){dl.value=null,fl=null,pl=null,$.value=null,hl=null,Tl()}function Ul(e,t,n){if(!dl.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`;fl!==t&&(fl=t,Cl(r.closest(`.kb-col`))),!(pl===n&&ml===a)&&(pl=n,ml=a,Sl(r,a))}function Wl(e){if(c.readOnly)return;if($.value){Yl(e);return}if(!dl.value)return;let{colId:t,cardId:n}=dl.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};!d.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(pl){let e=r.findIndex(e=>e.id===pl);e!==-1&&(i=ml===`before`?e:e+1)}return s=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(dl.value=null,fl=null,pl=null,Tl(),c.moveCard&&a){S.value=o,c.moveCard(a.id,e,s);return}C(o,a?{kind:`card-move`,cardId:a.id,toColumnId:e,toIndex:s}:void 0)}function Gl(e,t){!dl.value&&!$.value||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),dl.value&&(fl!==t&&(fl=t,Cl(El(t))),pl!==null&&(pl=null,Sl(null,`before`))))}function Kl(e){fl===e&&(fl=null,Cl(null))}function ql(e,t){c.readOnly||($.value=t,dl.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`column`)))}function Jl(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`;hl===t&&gl===i||(hl=t,gl=i,wl(n,i))}function Yl(e){if(c.readOnly||!$.value||$.value===e){$.value=null,hl=null,Tl();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(gl===`before`?i:i+1,0,r),$.value=null,hl=null,Tl(),C(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return i({openCardEditor:Ht,closeCardEditor:Xt,saveCard:Zt,editingCard:W}),(e,i)=>{let s=he(`tooltip`);return B(),v(`div`,{ref_key:`rootEl`,ref:Nl,class:`kb`},[n(`header`,Qr,[w(x(l),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:i[0]||=e=>f(`back`)}),T((B(),v(`h1`,{class:`kb-header__title`,ref:e=>kr(e,`board`)},[m(I(r.name),1)])),[[s,Ar(`board`,r.name),void 0,{bottom:!0}]]),n(`span`,$r,[i[59]||=n(`i`,{class:`pi pi-search`},null,-1),w(x(se),{modelValue:ne.value,"onUpdate:modelValue":i[1]||=e=>ne.value=e,placeholder:x(h)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),ne.value?(B(),L(x(l),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:i[2]||=e=>ne.value=``})):_(``,!0),r.searchTruncated?(B(),v(`small`,ei,I(x(h)(`searchTruncated`)),1)):_(``,!0)]),T(w(x(l),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:ye.value?String(ye.value):void 0,"badge-severity":`info`,class:b({"kb-header__filter--on":ye.value}),onClick:i[3]||=e=>A.value=!0},null,8,[`badge`,`class`]),[[s,x(h)(`filters.open`),void 0,{bottom:!0}]]),T(w(x(l),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:kn},null,512),[[s,x(h)(`archive.open`),void 0,{bottom:!0}]]),r.readOnly?_(``,!0):T((B(),L(x(l),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:i[4]||=e=>Ae.value=!0},null,512)),[[s,x(h)(`groups.title`),void 0,{bottom:!0}]]),r.readOnly?(B(),v(`span`,ti,[i[60]||=n(`i`,{class:`pi pi-lock`},null,-1),m(` `+I(x(h)(`readOnly.badge`)),1)])):_(``,!0),V(e.$slots,`header-actions`,{},void 0,!0)]),V(e.$slots,`banner`,{},void 0,!0),n(`div`,ni,[Fe.value?(B(),v(`div`,{key:0,class:`kb-bands`,style:t({height:`${Fe.value}px`})},[(B(!0),v(o,null,z(Ge.value,e=>(B(),v(`div`,{key:e.id,class:`kb-band`,style:t({left:`${e.left}px`,width:`${e.width}px`,top:`${e.top}px`,"--kb-band-color":e.color||`var(--p-text-muted-color)`})},[n(`span`,ri,I(e.title),1),n(`span`,ii,I(e.count),1)],4))),128))],4)):_(``,!0),n(`div`,{ref_key:`boardEl`,ref:Le,class:`kb-board`},[(B(!0),v(o,null,z(ke.value,c=>(B(),v(`div`,{key:c.id,class:b([`kb-col`,{"kb-col--collapsed":Yr(c.id),"kb-col--dragging":$.value===c.id}]),"data-col-id":c.id,draggable:!r.readOnly,onDragstart:e=>ql(e,c.id),onDragover:e=>{Jl(e,c.id),Gl(e,c.id)},onDragleave:e=>Kl(c.id),onDrop:U(e=>Wl(c.id),[`prevent`]),onDragend:Hl,onTouchstart:e=>Rl(e,`column`,c.id),onTouchmove:zl,onTouchend:Bl,onContextmenu:i[8]||=U(()=>{},[`prevent`])},[Yr(c.id)?(B(),v(`button`,{key:0,class:b([`kb-col__strip`,{"kb-col__strip--empty":c.cards.length===0}]),title:x(h)(`column.expand`),onClick:e=>Xr(c.id)},[i[61]||=n(`i`,{class:`pi pi-angle-double-right`},null,-1),n(`span`,si,I(c.cards.length),1),wr(c.id)?(B(),v(`i`,ci)):_(``,!0),T((B(),v(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>kr(e,`strip:${c.id}`)},[m(I(c.title),1)])),[[s,Ar(`strip:${c.id}`,c.title),void 0,{right:!0}]])],10,oi)):(B(),v(`div`,li,[T(n(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>kr(e,`col:${c.id}`),value:c.title,readonly:r.readOnly,draggable:`false`,onBlur:e=>Qe(c.id,e.target.value),onKeyup:i[5]||=a(e=>e.target.blur(),[`enter`]),onMousedown:i[6]||=U(()=>{},[`stop`])},null,40,ui),[[s,Ar(`col:${c.id}`,c.title),void 0,{bottom:!0}]]),n(`div`,di,[hr.value&&wr(c.id)?T((B(),L(x(l),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>Ir(c.id)},null,8,[`onClick`])),[[s,x(h)(`column.unsubscribe`),void 0,{bottom:!0}]]):_(``,!0),T(w(x(l),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:b([`kb-col__menu-btn`,{"kb-col__menu-btn--open":Mr.value?.id===c.id}]),onClick:e=>Pr(e,c)},null,8,[`class`,`onClick`]),[[s,x(h)(`column.menu`),void 0,{bottom:!0}]]),n(`span`,fi,I(c.cards.length),1)])])),!r.readOnly&&!Yr(c.id)?(B(),v(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>zt(c.id,`top`)},[i[62]||=n(`i`,{class:`pi pi-plus`},null,-1),m(` `+I(x(h)(`column.addCard`)),1)],8,pi)):_(``,!0),Yr(c.id)?_(``,!0):(B(),v(`div`,mi,[(B(!0),v(o,null,z(c.cards,a=>(B(),v(`div`,{key:a.id,class:b([`kb-card`,{"kb-card--colored":a.color}]),style:t(a.color?{borderTopColor:a.color}:void 0),"data-card-id":a.id,draggable:!r.readOnly,onDragstart:U(e=>Vl(e,c.id,a.id),[`stop`]),onDragover:e=>Ul(e,c.id,a.id),onDragend:Hl,onTouchstart:U(e=>Rl(e,`card`,c.id,a.id),[`stop`]),onTouchmove:zl,onTouchend:Bl,onContextmenu:i[7]||=U(()=>{},[`prevent`]),onClick:e=>Ht(c.id,a)},[w(un,{card:a,t:x(h),"avatar-url":r.avatarUrl,"child-count":tn(a.id),"has-parent":!!$t(a.id)},{actions:H(()=>[V(e.$slots,`card-actions`,{card:a,column:c},void 0,!0),r.readOnly?_(``,!0):T((B(),v(`button`,{key:0,class:`kb-card__delete`,onClick:U(e=>An(c.id,a.id),[`stop`])},[...i[63]||=[n(`i`,{class:`pi pi-inbox`},null,-1)]],8,gi)),[[s,x(h)(`archive.cardTooltip`),void 0,{bottom:!0}]]),r.readOnly?_(``,!0):T((B(),v(`button`,{key:1,class:`kb-card__delete`,onClick:U(e=>Mn(c.id,a.id),[`stop`])},[...i[64]||=[n(`i`,{class:`pi pi-times`},null,-1)]],8,_i)),[[s,x(h)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:H(()=>[V(e.$slots,`card-badges`,{card:a},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,hi))),128)),c.cards.length===0?(B(),v(`div`,vi,I(x(h)(`column.dropZone`)),1)):_(``,!0)])),!r.readOnly&&!Yr(c.id)?(B(),v(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>zt(c.id)},[i[65]||=n(`i`,{class:`pi pi-plus`},null,-1),m(` `+I(x(h)(`column.addCard`)),1)],8,yi)):_(``,!0)],42,ai))),128)),w(x(re),{visible:gr.value!==null,modal:``,header:x(h)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":i[12]||=e=>{e||(gr.value=null)}},{footer:H(()=>[wr(gr.value??``)?(B(),L(x(l),{key:0,label:x(h)(`column.unsubscribe`),severity:`danger`,text:``,onClick:zr},null,8,[`label`])):_(``,!0),w(x(l),{label:x(h)(`editor.cancel`),text:``,onClick:i[11]||=e=>gr.value=null},null,8,[`label`]),w(x(l),{label:wr(gr.value??``)?x(h)(`editor.save`):x(h)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Lr.value,onClick:Rr},null,8,[`label`,`disabled`])]),default:H(()=>[n(`p`,bi,I(x(h)(`column.subscribeIntro`,{column:Br.value?.title??``})),1),n(`p`,xi,I(x(h)(`column.subscribeEventsLabel`)),1),n(`div`,Si,[(B(),v(o,null,z(_r,e=>n(`label`,{key:e,class:`kb-subscribe__option`},[w(x(Pe),{modelValue:xr.value,"onUpdate:modelValue":i[9]||=e=>xr.value=e,value:e},null,8,[`modelValue`,`value`]),n(`span`,null,I(x(h)(`column.subscribeKind.${e}`)),1)])),64))]),n(`p`,Ci,[i[66]||=n(`i`,{class:`pi pi-times`},null,-1),m(` `+I(x(h)(`column.subscribeNotReorder`)),1)]),n(`p`,wi,I(x(h)(`column.subscribeChannelsLabel`)),1),n(`div`,Ti,[(B(),v(o,null,z(vr,e=>n(`label`,{key:e,class:`kb-subscribe__option`},[w(x(Pe),{modelValue:Sr.value,"onUpdate:modelValue":i[10]||=e=>Sr.value=e,value:e},null,8,[`modelValue`,`value`]),n(`span`,null,I(x(h)(`column.subscribeChannel.${e}`)),1)])),64))]),n(`p`,Ei,I(x(h)(`column.subscribeOwnActions`)),1)]),_:1},8,[`visible`,`header`]),w(x(re),{visible:Lt.value!==null,header:x(h)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":i[14]||=e=>{e||(Lt.value=null)}},{default:H(()=>[n(`p`,Di,I(x(h)(`templates.pickIntro`)),1),n(`div`,Oi,[n(`button`,{class:`kb-tpl-option`,onClick:i[13]||=e=>Bt(null)},[i[67]||=n(`i`,{class:`pi pi-file`},null,-1),m(` `+I(x(h)(`templates.blank`)),1)]),(B(!0),v(o,null,z(r.templates,e=>(B(),v(`button`,{key:e.id,class:`kb-tpl-option`,onClick:t=>Bt(e)},[i[68]||=n(`i`,{class:`pi pi-file-edit`},null,-1),m(` `+I(e.name),1)],8,ki))),128))])]),_:1},8,[`visible`,`header`]),r.readOnly?_(``,!0):(B(),v(`div`,Ai,[E.value?(B(),v(`div`,ji,[w(x(se),{modelValue:k.value,"onUpdate:modelValue":i[15]||=e=>k.value=e,placeholder:x(h)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[a(Xe,[`enter`]),i[16]||=a(e=>E.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),n(`div`,Mi,[w(x(l),{label:x(h)(`addColumnButton`),size:`small`,disabled:!k.value.trim(),onClick:Xe},null,8,[`label`,`disabled`]),w(x(l),{icon:`pi pi-times`,text:``,size:`small`,onClick:i[17]||=e=>E.value=!1})])])):(B(),v(`button`,{key:1,class:`kb-add-col__trigger`,onClick:i[18]||=e=>E.value=!0},[i[69]||=n(`i`,{class:`pi pi-plus`},null,-1),m(` `+I(x(h)(`addColumn`)),1)]))]))],512)]),w(Zr,{visible:Ae.value,"onUpdate:visible":i[19]||=e=>Ae.value=e,columns:S.value,groups:r.columnGroups,"read-only":r.readOnly,t:x(h),onIntent:i[20]||=e=>f(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),w(x(u),{visible:A.value,"onUpdate:visible":i[29]||=e=>A.value=e,position:`right`,header:x(h)(`filters.title`),class:`kb-filters`},{footer:H(()=>[w(x(l),{label:x(h)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!ye.value,onClick:be},null,8,[`label`,`disabled`])]),default:H(()=>[n(`div`,Ni,[n(`section`,Pi,[n(`span`,Fi,I(x(h)(`filters.priority`)),1),_e.value?(B(),v(o,{key:1},[n(`div`,Ii,[(B(),v(o,null,z([`lte`,`eq`,`gte`],e=>T(n(`button`,{key:e,class:b([`kb-ops__btn`,{"kb-ops__btn--on":j.value===e}]),onClick:t=>{j.value=e,M.value===null&&(M.value=5)}},[m(I(e===`lte`?`≤`:e===`eq`?`=`:`≥`),1)],10,Li),[[s,{value:x(h)(`filters.priorityOp.${e}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),T((B(),v(`button`,{class:b([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":j.value===`none`}]),onClick:i[22]||=e=>{j.value=j.value===`none`?`gte`:`none`,M.value=j.value===`none`?null:5}},[...i[71]||=[n(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[s,{value:x(h)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),j.value===`none`?_(``,!0):(B(),v(`div`,Ri,[w(x(nt),{"model-value":M.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":i[23]||=e=>M.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),n(`span`,zi,I(M.value),1)])),n(`button`,{class:`kb-prio__set`,onClick:i[24]||=e=>{M.value=null,j.value=`gte`}},[i[72]||=n(`i`,{class:`pi pi-times`},null,-1),m(` `+I(x(h)(`filters.clearOne`)),1)]),j.value===`none`?_(``,!0):(B(),v(`p`,Bi,I(x(h)(`filters.priorityHint`)),1))],64)):(B(),v(`button`,{key:0,class:`kb-prio__set`,onClick:i[21]||=e=>M.value=5},[i[70]||=n(`i`,{class:`pi pi-plus`},null,-1),m(` `+I(x(h)(`filters.priorityAdd`)),1)]))]),n(`section`,Vi,[n(`span`,Hi,I(x(h)(`filters.colors`)),1),n(`div`,Ui,[T((B(),v(`button`,{class:b([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":N.value.includes(``)}]),onClick:i[25]||=e=>N.value=N.value.includes(``)?N.value.filter(e=>e!==``):[...N.value,``]},[...i[73]||=[n(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[s,{value:x(h)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(B(),v(o,null,z(Dt,e=>T(n(`button`,{key:e,class:b([`kb-colors__swatch`,{"kb-colors__swatch--on":N.value.includes(e)}]),style:t({background:e}),onClick:t=>N.value=N.value.includes(e)?N.value.filter(t=>t!==e):[...N.value,e]},null,14,Wi),[[s,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))])]),n(`section`,Gi,[n(`span`,Ki,I(x(h)(`filters.groups`)),1),w(x(Ie),{modelValue:Se.value,"onUpdate:modelValue":i[26]||=e=>Se.value=e,options:Ce.value,placeholder:x(h)(`filters.groupsPlaceholder`),display:`chip`,filter:Ce.value.length>6,class:`kb-filters__control`},{option:H(({option:e})=>[n(`span`,{class:b([`kb-void`,{"kb-void--is":e===Q}])},[e===Q?(B(),v(`i`,qi)):_(``,!0),m(` `+I(e===Q?x(h)(`filters.noGroups`):e),1)],2)]),chip:H(({value:e})=>[n(`span`,{class:b([`kb-void`,{"kb-void--is":e===Q}])},I(e===Q?x(h)(`filters.noGroups`):e),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),n(`section`,Ji,[n(`span`,Yi,I(x(h)(`filters.assignees`)),1),w(x(Ie),{modelValue:we.value,"onUpdate:modelValue":i[27]||=e=>we.value=e,options:Ee.value,"option-label":`name`,"option-value":`userId`,placeholder:x(h)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:H(({option:e})=>[n(`span`,{class:b([`kb-void`,{"kb-void--is":e.userId===Q}])},[e.userId===Q?(B(),v(`i`,Xi)):_(``,!0),m(` `+I(e.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),n(`section`,Zi,[n(`span`,Qi,I(x(h)(`filters.family`)),1),w(x(Ie),{modelValue:De.value,"onUpdate:modelValue":i[28]||=e=>De.value=e,options:Oe.value,"option-label":`title`,"option-value":`id`,placeholder:x(h)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:H(({option:e})=>[n(`span`,{class:b([`kb-void`,{"kb-void--is":e.id===Q}])},[e.id===Q?(B(),v(`i`,$i)):_(``,!0),n(`span`,null,I(e.title),1),e.column?(B(),v(`span`,ea,I(e.column),1)):_(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),n(`p`,ta,I(x(h)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),w(x(u),{visible:J.value,"onUpdate:visible":i[34]||=e=>J.value=e,position:`right`,header:x(h)(`archive.title`),class:`kb-archive`},{default:H(()=>[n(`p`,na,I(x(h)(`archive.hint`)),1),n(`span`,ra,[i[74]||=n(`i`,{class:`pi pi-search`},null,-1),w(x(se),{modelValue:yn.value,"onUpdate:modelValue":i[30]||=e=>yn.value=e,placeholder:x(h)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),yn.value?(B(),L(x(l),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:i[31]||=e=>yn.value=``})):_(``,!0),T(w(x(l),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:ye.value?String(ye.value):void 0,"badge-severity":`info`,class:b({"kb-header__filter--on":ye.value}),onClick:i[32]||=e=>A.value=!0},null,8,[`badge`,`class`]),[[s,x(h)(`filters.open`),void 0,{bottom:!0}]])]),w(x(ve),{modelValue:bn.value,"onUpdate:modelValue":i[33]||=e=>bn.value=e,options:xn.value,"option-label":`title`,"option-value":`id`,size:`small`,class:`kb-archive__column`,"aria-label":x(h)(`archive.columnFilter`)},null,8,[`modelValue`,`options`,`aria-label`]),r.loadingArchive?(B(),v(`p`,ia,I(x(h)(`archive.loading`)),1)):r.archivedCards.length?En.value.length?(B(),v(o,{key:3},[Dn.value?(B(),v(`p`,sa,[m(I(x(h)(`archive.filteredOut`,{count:Dn.value}))+` `,1),n(`button`,{class:`kb-archive__reset`,onClick:be},I(x(h)(`filters.reset`)),1)])):_(``,!0),r.archiveTruncated?(B(),v(`p`,ca,[i[75]||=n(`i`,{class:`pi pi-exclamation-circle`},null,-1),m(` `+I(x(h)(`archive.truncated`)),1)])):_(``,!0),n(`ul`,la,[(B(!0),v(o,null,z(En.value,a=>(B(),v(`li`,{key:a.id,class:b([`kb-card kb-archive__card`,{"kb-card--colored":a.color}]),style:t(a.color?{borderTopColor:a.color}:void 0),onClick:e=>Tn(a)},[w(un,{card:a,t:x(h),"avatar-url":r.avatarUrl,"child-count":tn(a.id),"has-parent":!!$t(a.id)},{actions:H(()=>[r.readOnly?_(``,!0):T((B(),v(`button`,{key:0,class:`kb-card__delete`,onClick:U(e=>jn(a.id),[`stop`])},[...i[76]||=[n(`i`,{class:`pi pi-replay`},null,-1)]],8,da)),[[s,x(h)(`archive.restore`),void 0,{left:!0}]])]),badges:H(()=>[V(e.$slots,`card-badges`,{card:a},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),n(`div`,fa,[a.archivedFrom?(B(),v(`span`,pa,[i[77]||=n(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),m(` `+I(x(h)(`archive.fromColumn`,{column:a.archivedFrom.columnTitle})),1)])):_(``,!0),a.archivedAt?(B(),v(`span`,ma,I(new Date(a.archivedAt).toLocaleDateString()),1)):_(``,!0)])],14,ua))),128))])],64)):(B(),v(`p`,oa,I(x(h)(`archive.allFiltered`,{count:Dn.value})),1)):(B(),v(`p`,aa,I(yn.value||bn.value?x(h)(`archive.noMatch`):x(h)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),w(x(re),{visible:!!W.value,header:$e.value.trim()||x(h)(`card.untitled`),modal:!0,"dismissable-mask":!Gt.value,class:b([`kb-card-dialog`,{"kb-card-dialog--colored":Et.value}]),style:t({width:`min(1400px, 92vw)`,height:`90vh`,...Et.value?{"--kb-card-color":Et.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":i[53]||=e=>{e||Kt()}},{footer:H(()=>[n(`div`,Zs,[Gt.value&&!Y.value?(B(),v(`span`,Qs,[i[106]||=n(`i`,{class:`pi pi-exclamation-circle`},null,-1),m(` `+I(x(h)(`editor.unsavedHint`)),1)])):_(``,!0),w(x(l),{label:x(h)(`editor.close`),text:``,onClick:Kt},null,8,[`label`]),Y.value?_(``,!0):(B(),L(x(l),{key:1,label:x(h)(`editor.save`),icon:`pi pi-check`,onClick:Zt},null,8,[`label`]))])]),default:H(()=>[W.value?(B(),v(`div`,ha,[n(`div`,ga,[wn.value?(B(),v(`p`,_a,[i[78]||=n(`i`,{class:`pi pi-inbox`},null,-1),m(` `+I(x(h)(`archive.editorReadOnly`)),1)])):_(``,!0),w(x(Be),{value:At.value,"onUpdate:value":i[42]||=e=>At.value=e},{default:H(()=>[w(x(Re),null,{default:H(()=>[w(x(Ve),{value:`edit`},{default:H(()=>[i[79]||=n(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),m(I(x(h)(`editor.tabs.edit`)),1)]),_:1}),fn.value||mn.value?(B(),L(x(Ve),{key:0,value:`relations`},{default:H(()=>[i[80]||=n(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),m(I(x(h)(`editor.tabs.relations`,{count:mn.value})),1)]),_:1})):_(``,!0),w(x(Ve),{value:`comments`},{default:H(()=>[i[81]||=n(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),m(I(x(h)(`editor.tabs.comments`,{count:Lc.value.length||(W.value.card.commentCount??0)})),1)]),_:1}),w(x(Ve),{value:`history`},{default:H(()=>[i[82]||=n(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),m(I(x(h)(`editor.tabs.history`,{count:W.value.card.history?.length??0})),1)]),_:1})]),_:1}),w(x(ze),null,{default:H(()=>[w(x(He),{value:`edit`},{default:H(()=>[n(`div`,va,[n(`div`,ya,[n(`label`,ba,I(x(h)(`editor.titleLabel`)),1),w(x(se),{id:`kanban-card-title`,modelValue:$e.value,"onUpdate:modelValue":i[35]||=e=>$e.value=e,disabled:Y.value,autofocus:``,onKeyup:a(Zt,[`enter`])},null,8,[`modelValue`,`disabled`])]),n(`div`,xa,[n(`label`,Sa,I(x(h)(`editor.contentLabel`)),1),w(x(We),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:Mt,modelValue:et.value,"onUpdate:modelValue":i[36]||=e=>et.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!Y.value,placeholder:x(h)(`editor.contentPlaceholder`),"handle-files":e=>sl(e,`card`),mentions:$n.value,"attachment-src":ct,onLinkClick:Rc},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),n(`div`,Ca,[n(`label`,wa,I(x(h)(`editor.filesLabel`)),1),tt.value.length?(B(),v(`div`,Ta,[(B(!0),v(o,null,z(tt.value,(e,t)=>(B(),v(`div`,{key:t,class:`kb-dialog__thumb`},[n(`img`,{src:e,alt:`attachment`},null,8,Ea),Y.value?_(``,!0):(B(),v(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>ul(t)},[...i[83]||=[n(`i`,{class:`pi pi-times`},null,-1)]],8,Da))]))),128))])):_(``,!0),w(vn,{files:rt.value,preview:Fn,removable:!Y.value,"remove-label":x(h)(`editor.removeFile`),onOpen:Kn,onRemove:Xn},null,8,[`files`,`removable`,`remove-label`]),w(Nr,{queue:at.value,errors:G.value,uploading:it.value,"uploading-label":x(h)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),Y.value?_(``,!0):(B(),v(`label`,Oa,[i[84]||=n(`i`,{class:`pi pi-upload`},null,-1),m(` `+I(x(h)(`editor.attachFile`))+` `,1),n(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:ll},null,32)]))])])]),_:1}),w(x(He),{value:`relations`},{default:H(()=>[n(`div`,ka,[q.value||fn.value?(B(),v(`section`,Aa,[n(`h4`,ja,[i[85]||=n(`i`,{class:`pi pi-arrow-up`},null,-1),m(` `+I(x(h)(`editor.parentLabel`)),1)]),q.value?(B(),v(`table`,Ma,[n(`thead`,null,[n(`tr`,null,[n(`th`,null,I(x(h)(`editor.relationsColCard`)),1),n(`th`,null,I(x(h)(`editor.relationsColBoard`)),1),n(`th`,null,I(x(h)(`editor.relationsColColumn`)),1),n(`th`,Na,I(x(h)(`editor.relationsColAssignees`)),1),n(`th`,Pa,I(x(h)(`editor.relationsColComments`)),1),n(`th`,Fa,I(x(h)(`editor.relationsColActions`)),1)])]),n(`tbody`,null,[n(`tr`,null,[n(`td`,Ia,[T((B(),v(`span`,{class:`kb-rel__card-title`,ref:e=>kr(e,`rel:${q.value?.cardId??``}`)},[m(I(q.value.title),1)])),[[s,Ar(`rel:${q.value.cardId}`,q.value.title),void 0,{top:!0}]])]),n(`td`,{class:b([`kb-rel__board`,{"kb-rel__board--away":!q.value.here}])},[T((B(),v(`span`,{class:`kb-rel__card-title`,ref:e=>kr(e,`relb:${q.value?.cardId??``}`)},[m(I(q.value.boardName),1)])),[[s,Ar(`relb:${q.value?.cardId??``}`,q.value?.boardName??``),void 0,{top:!0}]])],2),n(`td`,La,[T((B(),v(`span`,{class:`kb-rel__card-title`,ref:e=>kr(e,`relc:${q.value?.cardId??``}`)},[m(I(q.value.columnTitle),1)])),[[s,Ar(`relc:${q.value?.cardId??``}`,q.value?.columnTitle??``),void 0,{top:!0}]])]),n(`td`,Ra,[q.value.assignees.length?(B(),v(`div`,za,[(B(!0),v(o,null,z(q.value.assignees,e=>(B(),v(`span`,{key:e.id,class:`kb-card__avatar`,style:t(tr(e.id)),title:e.name},[r.avatarUrl&&!Zn.has(e.id)?(B(),v(`img`,{key:0,src:r.avatarUrl(e.id),alt:``,onError:t=>Zn.add(e.id)},null,40,Va)):(B(),v(o,{key:1},[m(I(Qn(e.name)),1)],64))],12,Ba))),128))])):(B(),v(`span`,Ha,`—`))]),n(`td`,Ua,I(q.value.commentCount||`—`),1),n(`td`,Wa,[n(`button`,{class:`kb-rel__action`,title:q.value.here?x(h)(`editor.childOpen`):x(h)(`editor.openOnBoard`,{board:q.value.boardName}),onClick:i[37]||=e=>hn(q.value.cardId,q.value.boardId)},[...i[86]||=[n(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Ga),fn.value?(B(),v(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:x(h)(`editor.detach`),onClick:i[38]||=e=>cn(null)},[...i[87]||=[n(`i`,{class:`pi pi-times`},null,-1)]],8,Ka)):_(``,!0)])])])])):(B(),v(`p`,qa,I(x(h)(`editor.parentEmptyState`)),1)),fn.value?(B(),L(x(ve),{key:2,"model-value":null,options:on.value,"option-label":`title`,"option-value":`id`,filter:on.value.length>6,"filter-placeholder":x(h)(`editor.parentSearchPlaceholder`),"empty-message":x(h)(`editor.parentEmpty`),"empty-filter-message":x(h)(`editor.parentEmpty`),placeholder:q.value?x(h)(`editor.parentReplace`):x(h)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":cn},{option:H(({option:e})=>[n(`span`,Ja,[n(`span`,null,I(e.title),1),n(`span`,Ya,I(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):_(``,!0)])):_(``,!0),nn.value.length||fn.value?(B(),v(`section`,Xa,[n(`h4`,Za,[i[88]||=n(`i`,{class:`pi pi-arrow-down`},null,-1),m(` `+I(x(h)(`editor.childrenLabel`,{count:nn.value.length})),1)]),nn.value.length?(B(),v(`table`,Qa,[n(`thead`,null,[n(`tr`,null,[n(`th`,null,I(x(h)(`editor.relationsColCard`)),1),n(`th`,null,I(x(h)(`editor.relationsColBoard`)),1),n(`th`,null,I(x(h)(`editor.relationsColColumn`)),1),n(`th`,$a,I(x(h)(`editor.relationsColAssignees`)),1),n(`th`,eo,I(x(h)(`editor.relationsColComments`)),1),n(`th`,to,I(x(h)(`editor.relationsColActions`)),1)])]),n(`tbody`,null,[(B(!0),v(o,null,z(nn.value,e=>(B(),v(`tr`,{key:e.cardId},[n(`td`,no,[T((B(),v(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>kr(t,`rel:${e.cardId}`)},[m(I(e.title),1)])),[[s,Ar(`rel:${e.cardId}`,e.title),void 0,{top:!0}]])]),n(`td`,{class:b([`kb-rel__board`,{"kb-rel__board--away":!e.here}])},[T((B(),v(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>kr(t,`relb:${e.cardId}`)},[m(I(e.boardName),1)])),[[s,Ar(`relb:${e.cardId}`,e.boardName),void 0,{top:!0}]])],2),n(`td`,ro,[T((B(),v(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>kr(t,`relc:${e.cardId}`)},[m(I(e.columnTitle),1)])),[[s,Ar(`relc:${e.cardId}`,e.columnTitle),void 0,{top:!0}]])]),n(`td`,io,[e.assignees.length?(B(),v(`div`,ao,[(B(!0),v(o,null,z(e.assignees,e=>(B(),v(`span`,{key:e.id,class:`kb-card__avatar`,style:t(tr(e.id)),title:e.name},[r.avatarUrl&&!Zn.has(e.id)?(B(),v(`img`,{key:0,src:r.avatarUrl(e.id),alt:``,onError:t=>Zn.add(e.id)},null,40,so)):(B(),v(o,{key:1},[m(I(Qn(e.name)),1)],64))],12,oo))),128))])):(B(),v(`span`,co,`—`))]),n(`td`,lo,I(e.commentCount||`—`),1),n(`td`,uo,[n(`button`,{class:`kb-rel__action`,title:e.here?x(h)(`editor.childOpen`):x(h)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>hn(e.cardId,e.boardId)},[...i[89]||=[n(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,fo),fn.value?(B(),v(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:x(h)(`editor.detach`),onClick:t=>dn(e.cardId)},[...i[90]||=[n(`i`,{class:`pi pi-times`},null,-1)]],8,po)):_(``,!0)])]))),128))])])):(B(),v(`p`,mo,I(x(h)(`editor.childrenEmptyState`)),1)),fn.value?(B(),L(x(ve),{key:2,"model-value":null,options:sn.value,"option-label":`title`,"option-value":`id`,filter:sn.value.length>6,"filter-placeholder":x(h)(`editor.parentSearchPlaceholder`),"empty-message":x(h)(`editor.parentEmpty`),"empty-filter-message":x(h)(`editor.parentEmpty`),placeholder:x(h)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":ln},{option:H(({option:e})=>[n(`span`,ho,[n(`span`,null,I(e.title),1),n(`span`,go,I(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):_(``,!0)])):_(``,!0),!fn.value&&!q.value&&!nn.value.length?(B(),v(`p`,_o,I(x(h)(`editor.relationsEmpty`)),1)):_(``,!0)])]),_:1}),w(x(He),{value:`comments`},{default:H(()=>[n(`div`,vo,[Lc.value.length?(B(),v(`div`,bo,[(B(!0),v(o,null,z(Lc.value,(e,a)=>(B(),v(`div`,{key:a,class:b([`kb-comments__item`,{"kb-comments__item--ai":e.author===`ai`,"kb-comments__item--clickable":Qc(e)}]),onClick:t=>Qc(e)&&el(e)},[n(`div`,{class:b([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!rr(e)}]),style:t(rr(e)?tr(rr(e)):void 0)},[e.author===`ai`?(B(),v(`i`,So)):rr(e)&&r.avatarUrl&&!Zn.has(rr(e))?(B(),v(`img`,{key:1,src:r.avatarUrl(rr(e)),alt:``,onError:t=>Zn.add(rr(e))},null,40,Co)):e.authorUser?.name?(B(),v(o,{key:2},[m(I(Qn(e.authorUser.name)),1)],64)):(B(),v(`i`,wo))],6),n(`div`,To,[n(`div`,Eo,[n(`span`,Do,I(ir(e)),1),n(`span`,Oo,I(rl(e.timestamp)),1),e.editedAt?(B(),v(`span`,ko,I(x(h)(`comments.edited`)),1)):_(``,!0),!Y.value&&pr(e)&&Pt.value!==e.id?(B(),v(`span`,Ao,[nr(e)?(B(),v(`button`,{key:0,class:`kb-comments__tool`,title:x(h)(`comments.edit`),onClick:U(t=>or(e),[`stop`])},[...i[92]||=[n(`i`,{class:`pi pi-pencil`},null,-1)]],8,jo)):_(``,!0),n(`button`,{class:`kb-comments__tool`,title:x(h)(`comments.delete`),onClick:U(t=>mr(e),[`stop`])},[...i[93]||=[n(`i`,{class:`pi pi-trash`},null,-1)]],8,Mo)])):_(``,!0)]),Pt.value===e.id?(B(),v(`div`,{key:0,class:`kb-comments__edit`,onClick:i[40]||=U(()=>{},[`stop`])},[w(x(We),{modelValue:Ft.value,"onUpdate:modelValue":i[39]||=e=>Ft.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:$n.value,onLinkClick:Rc},null,8,[`modelValue`,`mentions`]),n(`div`,No,[w(x(l),{label:x(h)(`editor.cancel`),size:`small`,text:``,onClick:lr},null,8,[`label`]),w(x(l),{label:x(h)(`editor.save`),size:`small`,disabled:!Ft.value.trim(),onClick:ur},null,8,[`label`,`disabled`])])])):e.detail?(B(),v(o,{key:1},[n(`div`,{ref_for:!0,ref:t=>Yc(t,e,a),class:b([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!Wc(e,a),"kb-comments__text--toggleable":Gc(e,a)&&!Qc(e)}]),onClick:t=>qc(e,a,t),innerHTML:Bc(e.detail)},null,10,Po),Gc(e,a)?(B(),v(`button`,{key:0,class:`kb-comments__more`,onClick:U(t=>Kc(e,a),[`stop`])},I(Wc(e,a)?x(h)(`comments.showLess`):x(h)(`comments.showMore`)),9,Fo)):_(``,!0)],64)):_(``,!0),Pt.value===e.id?_(``,!0):(B(),L(vn,{key:2,files:e.attachments??[],preview:Fn,compact:``,onOpen:Kn},null,8,[`files`]))])],10,xo))),128)),n(`div`,{ref_key:`commentsEndEl`,ref:Nt},null,512)])):(B(),v(`div`,yo,[i[91]||=n(`i`,{class:`pi pi-comments`},null,-1),n(`span`,null,I(x(h)(`comments.empty`)),1)])),Y.value?_(``,!0):(B(),v(`div`,{key:2,class:`kb-comments__input`,onKeydown:[a(U(Nn,[`ctrl`,`prevent`]),[`enter`]),a(U(Nn,[`meta`,`prevent`]),[`enter`])]},[w(x(We),{modelValue:jt.value,"onUpdate:modelValue":i[41]||=e=>jt.value=e,markdown:``,placeholder:x(h)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>sl(e,`comment`),mentions:$n.value,onLinkClick:Rc},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),w(vn,{files:K.value,preview:Fn,openable:!1,removable:``,"remove-label":x(h)(`editor.removeFile`),compact:``,onRemove:cl},null,8,[`files`,`remove-label`]),w(Nr,{queue:at.value,errors:G.value,uploading:it.value,"uploading-label":x(h)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),n(`div`,Lo,[n(`label`,{class:`kb-comments__attach`,title:x(h)(`comments.attach`)},[i[94]||=n(`i`,{class:`pi pi-paperclip`},null,-1),n(`input`,{type:`file`,multiple:``,onChange:ol},null,32)],8,Ro),n(`span`,zo,I(x(h)(`comments.sendHint`)),1),w(x(l),{label:x(h)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!jt.value.trim()&&!K.value.length,onClick:Nn},null,8,[`label`,`disabled`])])],40,Io))])]),_:1}),w(x(He),{value:`history`},{default:H(()=>[n(`div`,Bo,[W.value.card.history?.length?(B(),v(`div`,Ho,[(B(!0),v(o,null,z([...W.value.card.history].reverse(),(e,t)=>(B(),v(`div`,{key:t,class:b([`kb-history__item`,{"kb-history__item--clickable":Qc(e)}]),onClick:t=>Qc(e)&&el(e)},[n(`div`,Wo,[n(`i`,{class:b(tl[e.type])},null,2)]),n(`div`,Go,[n(`span`,Ko,[m(I(nl.value[e.type])+` `,1),Qc(e)?(B(),v(`i`,qo)):_(``,!0)]),e.detail?(B(),v(`span`,Jo,I(e.detail),1)):_(``,!0),n(`span`,Yo,[m(I(rl(e.timestamp))+` `,1),e.authorUser?.name?(B(),v(o,{key:0},[m(` · `+I(x(h)(`history.by`,{name:e.authorUser.name})),1)],64)):_(``,!0)])])],10,Uo))),128))])):(B(),v(`div`,Vo,[i[95]||=n(`i`,{class:`pi pi-clock`},null,-1),n(`span`,null,I(x(h)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),n(`aside`,Xo,[r.members.length?(B(),v(`div`,Zo,[n(`span`,Qo,I(x(h)(`editor.assigneesLabel`)),1),w(x(Ie),{modelValue:lt.value,"onUpdate:modelValue":i[43]||=e=>lt.value=e,options:r.members,"option-label":`name`,"option-value":`userId`,placeholder:x(h)(`editor.assigneesPlaceholder`),disabled:Y.value,display:`chip`,filter:``,class:`kb-side__control`},{chip:H(({value:e})=>[n(`span`,{class:`kb-card__avatar`,style:t(tr(e)),title:er(e)},[r.avatarUrl&&!Zn.has(e)?(B(),v(`img`,{key:0,src:r.avatarUrl(e),alt:``,onError:t=>Zn.add(e)},null,40,es)):(B(),v(o,{key:1},[m(I(Qn(er(e))),1)],64))],12,$o)]),option:H(({option:e})=>[n(`span`,ts,[n(`span`,{class:`kb-card__avatar`,style:t(tr(e.userId))},[r.avatarUrl&&!Zn.has(e.userId)?(B(),v(`img`,{key:0,src:r.avatarUrl(e.userId),alt:``,onError:t=>Zn.add(e.userId)},null,40,ns)):(B(),v(o,{key:1},[m(I(Qn(e.name)),1)],64))],4),m(` `+I(e.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),n(`p`,rs,I(x(h)(`editor.assigneesHint`)),1)])):_(``,!0),n(`div`,is,[n(`span`,as,[m(I(x(h)(`editor.priorityLabel`))+` `,1),mt.value===null?_(``,!0):(B(),v(`span`,os,I(mt.value)+`/10`,1))]),mt.value===null?Y.value?(B(),v(`p`,ls,I(x(h)(`editor.priorityNone`)),1)):(B(),v(`button`,{key:1,class:`kb-prio__set`,onClick:yt},[i[97]||=n(`i`,{class:`pi pi-plus`},null,-1),m(` `+I(x(h)(`editor.priorityAdd`)),1)])):(B(),v(`div`,ss,[w(x(nt),{modelValue:mt.value,"onUpdate:modelValue":i[44]||=e=>mt.value=e,min:1,max:10,step:1,disabled:Y.value,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),Y.value?_(``,!0):(B(),v(`button`,{key:0,class:`kb-prio__clear`,title:x(h)(`editor.priorityClear`),onClick:i[45]||=e=>mt.value=null},[...i[96]||=[n(`i`,{class:`pi pi-times`},null,-1)]],8,cs))]))]),n(`div`,us,[n(`span`,ds,I(x(h)(`editor.deadlineLabel`)),1),n(`div`,fs,[w(x(kt),{modelValue:ht.value,"onUpdate:modelValue":i[46]||=e=>ht.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:Y.value,placeholder:x(h)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!Y.value&&ht.value?(B(),v(`button`,{key:0,class:`kb-prio__clear`,title:x(h)(`editor.deadlineClear`),onClick:i[47]||=e=>ht.value=null},[...i[98]||=[n(`i`,{class:`pi pi-times`},null,-1)]],8,ps)):_(``,!0)]),ht.value?(B(),v(`p`,ms,I(gt.value),1)):_(``,!0)]),n(`div`,hs,[n(`span`,gs,I(x(h)(`editor.groupsLabel`)),1),w(x(Ue),{modelValue:ut.value,"onUpdate:modelValue":i[48]||=e=>ut.value=e,multiple:``,suggestions:dt.value,disabled:Y.value,placeholder:ut.value.length?``:x(h)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:pt,onItemSelect:Ct,onKeydown:a(wt,[`enter`]),onFocusout:wt},{option:H(({option:e})=>[n(`span`,_s,[n(`i`,{class:b(ft.value.includes(e)?`pi pi-tag`:`pi pi-plus`)},null,2),n(`span`,null,I(ft.value.includes(e)?e:x(h)(`editor.groupsCreate`,{name:e})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),n(`p`,vs,I(x(h)(`editor.groupsHint`)),1)]),pn.value.length?(B(),v(`div`,ys,[n(`span`,bs,I(x(h)(`editor.ancestryLabel`)),1),n(`ul`,xs,[(B(!0),v(o,null,z(pn.value,(e,r)=>(B(),v(`li`,{key:e.cardId,class:`kb-tree__row`,style:t({paddingLeft:`${r*.75}rem`})},[r?(B(),v(`i`,Ss)):_(``,!0),n(`button`,{class:`kb-tree__label`,title:e.here?x(h)(`editor.childOpen`):x(h)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>hn(e.cardId,e.boardId)},I(e.title),9,Cs)],4))),128)),n(`li`,{class:`kb-tree__row kb-tree__row--self`,style:t({paddingLeft:`${pn.value.length*.75}rem`})},[i[99]||=n(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),n(`span`,ws,I($e.value.trim()||x(h)(`card.untitled`)),1)],4)])])):_(``,!0),n(`div`,Ts,[n(`span`,Es,I(x(h)(`editor.colorLabel`)),1),n(`div`,Ds,[T((B(),v(`button`,{class:b([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Et.value}]),disabled:Y.value,onClick:i[49]||=e=>Et.value=``},[...i[100]||=[n(`i`,{class:`pi pi-ban`},null,-1)]],10,Os)),[[s,{value:x(h)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(B(),v(o,null,z(Dt,e=>T(n(`button`,{key:e,class:b([`kb-colors__swatch`,{"kb-colors__swatch--on":Et.value===e}]),style:t({background:e}),disabled:Y.value,onClick:t=>Et.value=e},null,14,ks),[[s,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),n(`p`,As,I(x(h)(`editor.colorHint`)),1)]),wn.value?(B(),v(`div`,js,[n(`span`,Ms,I(x(h)(`editor.columnSettingLabel`)),1),n(`p`,Ns,[i[101]||=n(`i`,{class:`pi pi-inbox`},null,-1),m(` `+I(W.value.card.archivedFrom?x(h)(`archive.editorFrom`,{column:W.value.card.archivedFrom.columnTitle}):x(h)(`archive.editorNote`)),1)])])):(B(),v(`div`,Ps,[n(`span`,Fs,I(x(h)(`editor.columnSettingLabel`)),1),w(x(ve),{"model-value":Ot.value,options:gn.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:Y.value,filter:gn.value.length>1,"filter-placeholder":x(h)(`editor.columnSearchPlaceholder`),"empty-filter-message":x(h)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":_n},{optiongroup:H(({option:e})=>[n(`span`,{class:b([`kb-colgroup`,{"kb-colgroup--away":e.items[0]?.boardId}])},[n(`i`,{class:b(e.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),n(`span`,Is,I(e.label),1)],2)]),option:H(({option:e})=>[n(`span`,Ls,[e.boardId?(B(),v(`i`,Rs)):_(``,!0),n(`span`,null,I(e.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),r.otherBoards.length&&r.moveCardToBoard&&!Y.value?(B(),v(`p`,zs,I(x(h)(`editor.moveToBoardHint`)),1)):_(``,!0)])),n(`div`,Bs,[W.value.card.createdBy?(B(),v(`p`,Vs,[i[102]||=n(`i`,{class:`pi pi-user`},null,-1),m(` `+I(x(h)(`editor.createdBy`,{name:W.value.card.createdBy.name})),1)])):_(``,!0),n(`p`,null,[i[103]||=n(`i`,{class:`pi pi-calendar-plus`},null,-1),m(` `+I(rl(W.value.card.createdAt)),1)]),n(`p`,null,[i[104]||=n(`i`,{class:`pi pi-clock`},null,-1),m(` `+I(rl(W.value.card.updatedAt)),1)])]),$c.value.length?(B(),v(`div`,Hs,[n(`span`,Us,I(x(h)(`editor.conversationsLabel`)),1),n(`div`,Ws,[(B(!0),v(o,null,z($c.value,e=>(B(),v(`a`,{key:e.id,class:`kb-side__conv`,title:e.title,onClick:t=>f(`open-conversation`,e.id)},[i[105]||=n(`i`,{class:`pi pi-comments`},null,-1),n(`span`,Ks,I(e.label),1)],8,Gs))),128))])])):_(``,!0),e.$slots[`card-editor-actions`]&&!wn.value?(B(),v(`div`,qs,[n(`span`,Js,I(x(h)(`editor.actionsLabel`)),1),n(`div`,Ys,[V(e.$slots,`card-editor-actions`,{card:W.value.card,colId:W.value.colId,draft:{title:$e.value,markdown:et.value}},void 0,!0)])])):_(``,!0),!r.readOnly&&!Ut.value?(B(),v(`div`,Xs,[wn.value?(B(),L(x(l),{key:0,label:x(h)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:i[50]||=e=>{jn(W.value.card.id),Xt()}},null,8,[`label`])):(B(),L(x(l),{key:1,label:x(h)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:i[51]||=e=>An(W.value.colId,W.value.card.id)},null,8,[`label`])),w(x(l),{label:x(h)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:i[52]||=e=>Mn(W.value.colId,W.value.card.id)},null,8,[`label`])])):_(``,!0)])])):_(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),w(x(re),{visible:!!Z.value,header:Z.value?.file.name??``,modal:!0,"dismissable-mask":``,class:`kb-viewer-dialog`,style:{width:`min(1200px, 92vw)`,height:`88vh`},"onUpdate:visible":i[54]||=e=>{e||Yn()}},{footer:H(()=>[w(x(l),{label:x(h)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:Jn},null,8,[`label`]),w(x(l),{label:x(h)(`editor.close`),onClick:Yn},null,8,[`label`])]),default:H(()=>[Z.value?(B(),v(`div`,$s,[Z.value.kind===`image`?(B(),v(`img`,{key:0,src:Z.value.url,alt:Z.value.file.name,class:`kb-viewer__image`},null,8,ec)):Z.value.kind===`pdf`?(B(),v(`iframe`,{key:1,src:Z.value.url,title:Z.value.file.name,class:`kb-viewer__frame`},null,8,tc)):Z.value.kind===`video`?(B(),v(`video`,{key:2,src:Z.value.url,controls:``,class:`kb-viewer__media`},null,8,nc)):Z.value.kind===`audio`?(B(),v(`audio`,{key:3,src:Z.value.url,controls:``,class:`kb-viewer__audio`},null,8,rc)):Z.value.office?.mode===`sheet`?(B(),v(`div`,ic,[Z.value.office.sheets.length>1?(B(),v(`div`,ac,[(B(!0),v(o,null,z(Z.value.office.sheets,(e,t)=>(B(),v(`button`,{key:e.name+t,class:b([`kb-viewer__tab`,{"kb-viewer__tab--active":t===Hn.value}]),onClick:e=>Hn.value=t},I(e.name),11,oc))),128))])):_(``,!0),n(`div`,sc,[Un.value&&Un.value.rows.length?(B(),v(`table`,cc,[n(`thead`,null,[n(`tr`,null,[(B(!0),v(o,null,z(Un.value.rows[0],(e,t)=>(B(),v(`th`,{key:t},I(e),1))),128))])]),n(`tbody`,null,[(B(!0),v(o,null,z(Un.value.rows.slice(1),(e,t)=>(B(),v(`tr`,{key:t},[(B(!0),v(o,null,z(e,(e,t)=>(B(),v(`td`,{key:t},I(e),1))),128))]))),128))])])):(B(),v(`p`,lc,I(x(h)(`editor.viewerEmpty`)),1))])])):Z.value.office?.mode===`blocks`?(B(),v(`div`,uc,[n(`div`,dc,[(B(!0),v(o,null,z(Z.value.office.blocks,(e,t)=>(B(),v(o,{key:t},[e.type===`heading`&&e.level===1?(B(),v(`h1`,fc,I(e.text),1)):e.type===`heading`&&e.level===2?(B(),v(`h2`,pc,I(e.text),1)):e.type===`heading`?(B(),v(`h3`,mc,I(e.text),1)):e.type===`list`?(B(),v(`li`,hc,I(e.text),1)):e.type===`table`?(B(),v(`table`,gc,[n(`tbody`,null,[(B(!0),v(o,null,z(e.rows,(e,t)=>(B(),v(`tr`,{key:t},[(B(!0),v(o,null,z(e,(e,t)=>(B(),v(`td`,{key:t},I(e),1))),128))]))),128))])])):(B(),v(`p`,_c,I(e.text),1))],64))),128)),Z.value.office.blocks.length?_(``,!0):(B(),v(`p`,vc,I(x(h)(`editor.viewerEmpty`)),1))])])):Z.value.office?.mode===`slides`?(B(),v(`div`,yc,[n(`div`,bc,[(B(!0),v(o,null,z(Z.value.office.slides,(e,t)=>(B(),v(`section`,{key:t,class:`kb-viewer__slide`},[n(`span`,xc,I(t+1),1),e.title?(B(),v(`h3`,Sc,I(e.title),1)):_(``,!0),(B(!0),v(o,null,z(e.lines,(e,t)=>(B(),v(`p`,{key:t},I(e),1))),128))]))),128))])])):Z.value.office?.mode===`render`?(B(),v(`div`,Cc,[Gn.value?(B(),v(`p`,wc,I(x(h)(`editor.viewerFailed`)),1)):_(``,!0),T(n(`div`,{ref_key:`renderHost`,ref:Wn,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[te,!Gn.value]])])):(B(),v(`pre`,Tc,I(Z.value.text),1)),Z.value.office&&Z.value.office.mode!==`render`&&Z.value.office.truncated?(B(),v(`p`,Ec,[i[107]||=n(`i`,{class:`pi pi-exclamation-triangle`},null,-1),m(` `+I(x(h)(`editor.viewerTruncated`)),1)])):_(``,!0)])):_(``,!0)]),_:1},8,[`visible`,`header`]),w(x(le),{ref_key:`colMenu`,ref:jr,onHide:i[58]||=e=>Mr.value=null},{default:H(()=>[Mr.value?(B(),v(`div`,Dc,[n(`div`,Oc,[V(e.$slots,`column-actions`,{column:Mr.value},void 0,!0)]),hr.value?(B(),v(`button`,{key:0,class:`kb-colmenu__item`,onClick:i[55]||=e=>Fr(Ir)},[i[108]||=n(`i`,{class:`pi pi-bell`},null,-1),n(`span`,null,I(wr(Mr.value.id)?x(h)(`column.unsubscribe`):x(h)(`column.subscribe`)),1)])):_(``,!0),n(`button`,{class:`kb-colmenu__item`,onClick:i[56]||=e=>Fr(Xr)},[i[109]||=n(`i`,{class:`pi pi-angle-double-left`},null,-1),n(`span`,null,I(x(h)(`column.collapse`)),1)]),r.readOnly?_(``,!0):(B(),v(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:i[57]||=e=>Fr(Ze)},[i[110]||=n(`i`,{class:`pi pi-trash`},null,-1),n(`span`,null,I(x(h)(`column.deleteTooltip`)),1)]))])):_(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-6b007809`]]),Rc={class:`kanban-list-page`},zc={class:`page-header`},Bc={class:`page-header__right`},Vc={class:`list-menu`},Hc={key:0,class:`empty-state`},Uc={class:`board-grid`},Wc={class:`board-counts`},Gc={class:`board-count`},Kc={class:`board-count board-count--cards`},qc={key:0,class:`board-desc`},Jc={key:0,class:`empty-state`},Yc={class:`board-grid`},Xc={key:0,class:`board-desc`},Zc={key:0,class:`dialog-field`},Qc={for:`kanlist-new-template`},$c={key:0,class:`field-hint`},el={class:`dialog-field`},tl={for:`kanlist-new-name`},nl={class:`dialog-field`},rl={for:`kanlist-new-desc`},il={class:`dialog-field`},al={for:`kanlist-new-instructions`},ol={class:`field-hint`},sl={class:`dialog-field`},cl={for:`kanlist-edit-name`},ll={class:`dialog-field`},ul={for:`kanlist-edit-desc`},dl={class:`dialog-field`},$={for:`kanlist-edit-instructions`},fl={class:`field-hint`},pl={class:`templates-intro`},ml={key:0,class:`empty-state`},hl={key:1,class:`template-list`},gl={class:`template-row__name`},_l={class:`hint`},vl={key:0,class:`template-row__actions`},yl={class:`dialog-field`},bl={for:`kanlist-tpl-name`},xl={class:`dialog-field`},Sl={for:`kanlist-tpl-content`},Cl={class:`hint`},wl={class:`templates-intro`},Tl={key:0,class:`empty-state`},El={key:1,class:`template-list`},Dl={class:`template-row__name`},Ol={key:0,class:`template-row__actions`},kl=k(r({__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:t}){let r=e,i=t,s=de(),c=r.t;function u(e){i(`templates-needed`),e()}let d=D(!1),f=D(``),p=D(``),h=D(``),g=D(null),y=D(null),ee=D(``);function S(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let C=R(()=>{let e=S(ee.value.trim());return e?r.boards.filter(t=>S(t.name).includes(e)||S(t.description??``).includes(e)):r.boards}),te=R(()=>C.value.filter(e=>!e.archived)),ne=R(()=>C.value.filter(e=>e.archived)),E=R(()=>ee.value.trim().length>0),O=R(()=>r.boardsLimit!==null&&r.boards.length>=r.boardsLimit),k=R(()=>!r.readOnly&&!O.value);function ie(e){let t=(r.boardTemplates??[]).find(t=>t.id===e);t&&(f.value.trim()||(f.value=t.name),h.value=t.instructions)}let A=R(()=>(r.boardTemplates??[]).find(e=>e.id===y.value)??null);function ae(){!k.value||!f.value.trim()||(i(`create`,{name:f.value.trim(),description:p.value.trim(),instructions:h.value.trim(),...A.value?.columns.length?{columns:A.value.columns}:{},...A.value?.columnGroups?.length?{columnGroups:A.value.columnGroups}:{}}),d.value=!1,f.value=``,p.value=``,h.value=``,y.value=null)}function j(){g.value&&=(i(`update`,{...g.value}),null)}let M=D(!1),N=D(null);function oe(){N.value={id:null,name:``,content:``}}function P(e){N.value={id:e.id,name:e.name,content:e.content}}function ce(){let e=N.value;if(!e||!e.name.trim())return;let t={name:e.name.trim(),content:e.content};e.id?i(`template-update`,{id:e.id,...t}):i(`template-create`,t),N.value=null}function F(e){s.require({message:c(`templates.confirmDeleteMessage`,{name:e.name}),header:c(`templates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>i(`template-delete`,e.id)})}let ue=D(!1);function fe(e){s.require({message:c(`boardTemplates.confirmDeleteMessage`,{name:e.name}),header:c(`boardTemplates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>i(`board-template-delete`,e.id)})}let me=D(null);function ye(e){me.value?.hide(),e()}function be(e,t){s.require({message:c(`dialogs.confirmDeleteMessage`,{name:t}),header:c(`dialogs.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>i(`delete`,e)})}return(t,r)=>{let s=he(`tooltip`);return B(),v(`div`,Rc,[n(`div`,zc,[n(`h1`,null,I(x(c)(`title`)),1),n(`span`,Bc,[w(x(ge),null,{default:H(()=>[w(x(pe),{class:`pi pi-search`}),w(x(se),{modelValue:ee.value,"onUpdate:modelValue":r[0]||=e=>ee.value=e,placeholder:x(c)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),e.boardsLimit===null?_(``,!0):(B(),v(`span`,{key:0,class:b([`quota`,{"quota--full":O.value}])},I(x(c)(`quota`,{used:e.boards.length,limit:e.boardsLimit})),3)),e.readOnly?_(``,!0):(B(),L(x(l),{key:1,label:x(c)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:O.value,onClick:r[1]||=e=>u(()=>d.value=!0)},null,8,[`label`,`disabled`])),e.templates||e.boardTemplates?(B(),v(o,{key:2},[w(x(l),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:x(c)(`menu`),"aria-label":x(c)(`menu`),onClick:r[2]||=e=>me.value?.toggle(e)},null,8,[`title`,`aria-label`]),w(x(le),{ref_key:`listMenu`,ref:me},{default:H(()=>[n(`div`,Vc,[e.templates?(B(),v(`button`,{key:0,class:`list-menu__item`,onClick:r[3]||=e=>ye(()=>u(()=>M.value=!0))},[r[27]||=n(`i`,{class:`pi pi-file-edit`},null,-1),n(`span`,null,I(x(c)(`templates.manage`)),1)])):_(``,!0),e.boardTemplates?(B(),v(`button`,{key:1,class:`list-menu__item`,onClick:r[4]||=e=>ye(()=>ue.value=!0)},[r[28]||=n(`i`,{class:`pi pi-bookmark`},null,-1),n(`span`,null,I(x(c)(`boardTemplates.manage`)),1)])):_(``,!0)])]),_:1},512)],64)):_(``,!0)])]),V(t.$slots,`banner`,{},void 0,!0),w(x(Be),{value:`active`},{default:H(()=>[w(x(Re),null,{default:H(()=>[w(x(Ve),{value:`active`},{default:H(()=>[m(I(x(c)(`tabs.active`)),1)]),_:1}),w(x(Ve),{value:`archived`},{default:H(()=>[m(I(x(c)(`tabs.archived`,{count:ne.value.length})),1)]),_:1})]),_:1}),w(x(ze),null,{default:H(()=>[w(x(He),{value:`active`},{default:H(()=>[te.value.length===0?(B(),v(`div`,Hc,I(E.value?x(c)(`noResults`,{query:ee.value.trim()}):x(c)(`empty`)),1)):_(``,!0),n(`div`,Uc,[(B(!0),v(o,null,z(te.value,t=>(B(),L(x(Fe),{key:t.id,class:`board-card`,onClick:e=>i(`open`,t.id)},{title:H(()=>[m(I(t.name),1)]),subtitle:H(()=>[n(`span`,Wc,[n(`span`,Gc,[r[29]||=n(`i`,{class:`pi pi-list`},null,-1),m(I(x(c)(`columns`,{count:t.columnCount})),1)]),n(`span`,Kc,[r[30]||=n(`i`,{class:`pi pi-clone`},null,-1),m(I(x(c)(`cards`,{count:t.cardCount})),1)])])]),content:H(()=>[t.description?(B(),v(`p`,qc,I(t.description),1)):_(``,!0)]),footer:H(()=>[e.readOnly?_(``,!0):(B(),v(`div`,{key:0,class:`board-actions`,onClick:r[5]||=U(()=>{},[`stop`])},[w(x(l),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>g.value={id:t.id,name:t.name,description:t.description,instructions:t.instructions??``}},null,8,[`onClick`]),T(w(x(l),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>i(`archive`,{id:t.id,archived:!0})},null,8,[`onClick`]),[[s,x(c)(`archive`)]]),w(x(l),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>be(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),w(x(He),{value:`archived`},{default:H(()=>[ne.value.length===0?(B(),v(`div`,Jc,I(E.value?x(c)(`noResults`,{query:ee.value.trim()}):x(c)(`archivedEmpty`)),1)):_(``,!0),n(`div`,Yc,[(B(!0),v(o,null,z(ne.value,t=>(B(),L(x(Fe),{key:t.id,class:`board-card archived`,onClick:e=>i(`open`,t.id)},{title:H(()=>[m(I(t.name),1)]),content:H(()=>[t.description?(B(),v(`p`,Xc,I(t.description),1)):_(``,!0)]),footer:H(()=>[e.readOnly?_(``,!0):(B(),v(`div`,{key:0,class:`board-actions`,onClick:r[6]||=U(()=>{},[`stop`])},[w(x(l),{label:x(c)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>i(`archive`,{id:t.id,archived:!1})},null,8,[`label`,`onClick`]),w(x(l),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>be(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),w(x(re),{visible:d.value,"onUpdate:visible":r[13]||=e=>d.value=e,header:x(c)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:H(()=>[w(x(l),{label:x(c)(`cancel`),text:``,onClick:r[12]||=e=>d.value=!1},null,8,[`label`]),w(x(l),{label:x(c)(`create`),icon:`pi pi-check`,disabled:!f.value.trim(),onClick:ae},null,8,[`label`,`disabled`])]),default:H(()=>[e.boardTemplates?.length?(B(),v(`div`,Zc,[n(`label`,Qc,I(x(c)(`boardTemplates.pickLabel`)),1),w(x(ve),{id:`kanlist-new-template`,modelValue:y.value,"onUpdate:modelValue":r[7]||=e=>y.value=e,options:e.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:x(c)(`boardTemplates.pickPlaceholder`),onChange:r[8]||=e=>ie(y.value)},null,8,[`modelValue`,`options`,`placeholder`]),A.value?(B(),v(`small`,$c,I(x(c)(`boardTemplates.pickHint`,{columns:A.value.columns.map(e=>e.title).join(`, `)||x(c)(`boardTemplates.noColumns`)})),1)):_(``,!0)])):_(``,!0),n(`div`,el,[n(`label`,tl,I(x(c)(`nameLabel`)),1),w(x(se),{id:`kanlist-new-name`,modelValue:f.value,"onUpdate:modelValue":r[9]||=e=>f.value=e,autofocus:``,class:`w-full`,onKeyup:a(ae,[`enter`])},null,8,[`modelValue`])]),n(`div`,nl,[n(`label`,rl,I(x(c)(`descriptionLabel`)),1),w(x(_e),{id:`kanlist-new-desc`,modelValue:p.value,"onUpdate:modelValue":r[10]||=e=>p.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),n(`div`,il,[n(`label`,al,I(x(c)(`instructionsLabel`)),1),w(x(_e),{id:`kanlist-new-instructions`,modelValue:h.value,"onUpdate:modelValue":r[11]||=e=>h.value=e,rows:`6`,class:`w-full`,placeholder:x(c)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),n(`small`,ol,I(x(c)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),w(x(re),{visible:!!g.value,header:x(c)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":r[18]||=e=>{e||(g.value=null)}},{footer:H(()=>[w(x(l),{label:x(c)(`cancel`),text:``,onClick:r[17]||=e=>g.value=null},null,8,[`label`]),w(x(l),{label:x(c)(`save`),icon:`pi pi-check`,onClick:j},null,8,[`label`])]),default:H(()=>[g.value?(B(),v(o,{key:0},[n(`div`,sl,[n(`label`,cl,I(x(c)(`nameLabel`)),1),w(x(se),{id:`kanlist-edit-name`,modelValue:g.value.name,"onUpdate:modelValue":r[14]||=e=>g.value.name=e,class:`w-full`,onKeyup:a(j,[`enter`])},null,8,[`modelValue`])]),n(`div`,ll,[n(`label`,ul,I(x(c)(`descriptionLabel`)),1),w(x(_e),{id:`kanlist-edit-desc`,modelValue:g.value.description,"onUpdate:modelValue":r[15]||=e=>g.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),n(`div`,dl,[n(`label`,$,I(x(c)(`instructionsLabel`)),1),w(x(_e),{id:`kanlist-edit-instructions`,modelValue:g.value.instructions,"onUpdate:modelValue":r[16]||=e=>g.value.instructions=e,rows:`8`,class:`w-full`,placeholder:x(c)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),n(`small`,fl,I(x(c)(`instructionsHint`)),1)])],64)):_(``,!0)]),_:1},8,[`visible`,`header`]),w(x(re),{visible:ue.value,"onUpdate:visible":r[20]||=e=>ue.value=e,header:x(c)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:H(()=>[w(x(l),{label:x(c)(`close`),text:``,onClick:r[19]||=e=>ue.value=!1},null,8,[`label`])]),default:H(()=>[n(`p`,pl,I(x(c)(`boardTemplates.intro`)),1),!e.boardTemplates||e.boardTemplates.length===0?(B(),v(`div`,ml,I(x(c)(`boardTemplates.empty`)),1)):(B(),v(`ul`,hl,[(B(!0),v(o,null,z(e.boardTemplates,t=>(B(),v(`li`,{key:t.id,class:`template-row`},[n(`span`,gl,[m(I(t.name)+` `,1),n(`small`,_l,I(t.columns.map(e=>e.title).join(` · `)||x(c)(`boardTemplates.noColumns`)),1)]),e.readOnly?_(``,!0):(B(),v(`span`,vl,[w(x(l),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>fe(t)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),w(x(re),{visible:M.value,"onUpdate:visible":[r[25]||=e=>M.value=e,r[26]||=e=>{e||(N.value=null)}],header:x(c)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:H(()=>[N.value?(B(),v(o,{key:0},[w(x(l),{label:x(c)(`cancel`),text:``,onClick:r[23]||=e=>N.value=null},null,8,[`label`]),w(x(l),{label:x(c)(`save`),icon:`pi pi-check`,disabled:!N.value.name.trim(),onClick:ce},null,8,[`label`,`disabled`])],64)):(B(),v(o,{key:1},[e.readOnly?_(``,!0):(B(),L(x(l),{key:0,label:x(c)(`templates.new`),icon:`pi pi-plus`,onClick:oe},null,8,[`label`])),w(x(l),{label:x(c)(`close`),text:``,onClick:r[24]||=e=>M.value=!1},null,8,[`label`])],64))]),default:H(()=>[N.value?(B(),v(o,{key:0},[n(`div`,yl,[n(`label`,bl,I(x(c)(`templates.nameLabel`)),1),w(x(se),{id:`kanlist-tpl-name`,modelValue:N.value.name,"onUpdate:modelValue":r[21]||=e=>N.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),n(`div`,xl,[n(`label`,Sl,I(x(c)(`templates.contentLabel`)),1),w(x(We),{id:`kanlist-tpl-content`,modelValue:N.value.content,"onUpdate:modelValue":r[22]||=e=>N.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:x(c)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),n(`small`,Cl,I(x(c)(`templates.contentHint`)),1)])],64)):(B(),v(o,{key:1},[n(`p`,wl,I(x(c)(`templates.intro`)),1),!e.templates||e.templates.length===0?(B(),v(`div`,Tl,I(x(c)(`templates.empty`)),1)):(B(),v(`ul`,El,[(B(!0),v(o,null,z(e.templates,t=>(B(),v(`li`,{key:t.id,class:`template-row`},[n(`span`,Dl,I(t.name),1),e.readOnly?_(``,!0):(B(),v(`span`,Ol,[w(x(l),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>P(t)},null,8,[`onClick`]),w(x(l),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>F(t)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-6ce88365`]]);export{Lc as n,kl as t};
|