@runeya/runeya 2.0.106 → 2.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-manager-EI7SXPN5.js +9 -0
- package/{chat-N6XONNVG.js → chat-WMT34BXJ.js} +6 -6
- package/{chunk-YQISK6BL.js → chunk-4SJCPFGK.js} +401 -72
- package/chunk-4SJCPFGK.js.map +1 -0
- package/{chunk-5GYBAMHV.js → chunk-D2PF2FYU.js} +2 -2
- package/{chunk-CQCCVPTX.js → chunk-DS66SEYH.js} +29 -7
- package/chunk-DS66SEYH.js.map +1 -0
- package/{chunk-NPORVPEO.js → chunk-RIITTBK3.js} +2 -2
- package/{chunk-LTLOVQJQ.js → chunk-ZFELQG4B.js} +49 -3
- package/chunk-ZFELQG4B.js.map +1 -0
- package/{companion-7AFRBUQI.js → companion-EPINTIC7.js} +4 -4
- package/index.js +3 -3
- package/package.json +1 -1
- package/settings-manager-YSH7ZCLP.js +9 -0
- package/{src-US4EBM64.js → src-LONZKLMU.js} +174 -42
- package/src-LONZKLMU.js.map +1 -0
- package/{vault-resolver-JR7TCITD.js → vault-resolver-57Q2DVOR.js} +8 -2
- package/web/assets/AgentScalarChatInterface.vue-CElmj8LJ.js +13 -0
- package/web/assets/AgentTerminalPage-hk46uwat.js +1 -0
- package/web/assets/AiChatPage-wCWG0TXA.js +1 -0
- package/web/assets/{AppLayout-EhZfYcsl.css → AppLayout-6LmWDDMH.css} +1 -1
- package/web/assets/AppLayout-CHxGU2pw.js +1 -0
- package/web/assets/AuditPage-CSRVCGZi.js +1 -0
- package/web/assets/CloudAccountPage-CfMY69pk.css +1 -0
- package/web/assets/CloudAccountPage-DjQdxy2v.js +1 -0
- package/web/assets/CloudAccountPage-UnmpE1jD.js +1 -0
- package/web/assets/CloudMessagingPage-BRwxGiH2.css +1 -0
- package/web/assets/CloudMessagingPage-jh1AWzKj.js +2 -0
- package/web/assets/DashboardPage-CiihNr9b.js +164 -0
- package/web/assets/DirectoryPickerDialog-Dy1zyHux.js +1 -0
- package/web/assets/{EditorIcon-BWhMJTSH.js → EditorIcon-DvX4OCO1.js} +2 -2
- package/web/assets/EnvironmentForm-D2JDn5Zc.js +108 -0
- package/web/assets/EnvironmentFormPage-BPDo_AMy.js +1 -0
- package/web/assets/EnvironmentListPage-BFT6nMkR.js +1 -0
- package/web/assets/KanbanBoardPage-6vbnqxkk.js +4 -0
- package/web/assets/KanbanBoardPage-CoTX8nB6.css +1 -0
- package/web/assets/KanbanListPage-BBLCnzN8.js +1 -0
- package/web/assets/LaunchProjectPage-BHLH3peH.css +1 -0
- package/web/assets/LaunchProjectPage-Cznkvcvm.js +1 -0
- package/web/assets/LaunchServicesPage-DwkYQefD.js +1 -0
- package/web/assets/LogViewer-x7JfZfN8.js +3 -0
- package/web/assets/OrgKeyPrompt-DPWfDcID.js +1 -0
- package/web/assets/{ProcessControls-B6blcC2b.js → ProcessControls-DPOmEvIy.js} +1 -1
- package/web/assets/ProcessDetailPage-BDsM9dnQ.js +1 -0
- package/web/assets/{ProcessMetrics-luXa72sd.js → ProcessMetrics-C2YI8_M5.js} +2 -2
- package/web/assets/{RandomJobTestPage-uuy7by63.js → RandomJobTestPage-DGA72-VM.js} +1 -1
- package/web/assets/ScenarioEditorPage-B4zEfHEz.js +14 -0
- package/web/assets/SendToChatDialog-8RfesH1F.js +1 -0
- package/web/assets/ServiceControlsBar-DLHgd13V.js +1 -0
- package/web/assets/ServiceDetailPage-na_wgdlZ.js +2 -0
- package/web/assets/ServiceFormPage-Cn_FPvKf.js +1 -0
- package/web/assets/{SettingsPage-CrzdGJlG.css → SettingsPage-B7yKfXK2.css} +1 -1
- package/web/assets/SettingsPage-QBOlzawK.js +2063 -0
- package/web/assets/UnlockPage-A75PjxBe.js +1 -0
- package/web/assets/VariablesTable-D8Oh3-1C.js +1 -0
- package/web/assets/VaultMigrationPage-DA9H-AhS.js +1 -0
- package/web/assets/VersionBadge-DNDzBQcJ.js +1 -0
- package/web/assets/WikiPage-DdY1dy8w.js +1 -0
- package/web/assets/WikiView-Td2Ice0P.js +1 -0
- package/web/assets/add-scalar-classes-D0W5Egzt.js +387 -0
- package/web/assets/{autocomplete-COj-K1Nc.js → autocomplete-DXp2_8rJ.js} +3 -3
- package/web/assets/{basic-shape-diamond.svg-Dw9kJc3l.js → basic-shape-diamond.svg-CUsdhYKG.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-DeTUNvAm.js → basic-shape-hexagon.svg-BPfS9EDA.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-CZe21n5k.js → basic-shape-primary-circle-ellipse-round.svg-C0Y2bkJl.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-DIvBb7uH.js → basic-shape-primary-square-rectangle.svg-1LwihH2B.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-D2Ttq4yx.js → basic-shape-shield.svg-DGe2vG6Z.js} +1 -1
- package/web/assets/{browser-BtPtEa-Z.js → browser-CQu9nsVO.js} +1 -1
- package/web/assets/{browser-8qE0e05E.js → browser-QoavDMKL.js} +1 -1
- package/web/assets/{card-pbrPkbmk.js → card-zbAp8JZP.js} +2 -2
- package/web/assets/{checkbox-g16PaQaN.js → checkbox-BKV4svPN.js} +3 -3
- package/web/assets/{chip-B1jaR69s.js → chip-DA83o4Kg.js} +2 -2
- package/web/assets/client-Cb_xJW-8.js +24 -0
- package/web/assets/cloud-chat.store-BA5nPaX6.js +1 -0
- package/web/assets/cloud-client-C_MUljS_.js +1 -0
- package/web/assets/cloud-session-BRyDsLxd.js +1 -0
- package/web/assets/cloud-session-DqTwnX4d.js +2 -0
- package/web/assets/column-BVUPaQkA.js +907 -0
- package/web/assets/{computer-device-desktop-monitor.svg-BpU1vmqL.js → computer-device-desktop-monitor.svg-CAldNRkh.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-CofWATKj.js → computer-device-desktop.svg-DwVKMGyS.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-Bk0WdntU.js → computer-device-laptop.svg-fyjI7tSV.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-4jDLeTUE.js → computer-device-mobile-phone-android-samsung-back.svg-CNHunNo4.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-BtDfk53W.js → computer-device-mobile-phone-android-samsung.svg-WhhpuflD.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-mrfLt2LS.js → computer-device-mobile-phone-iphone-x-back.svg-RveI1E1x.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-D3hLzA-f.js → computer-device-mobile-phone-iphone-x.svg-Cyjp0aan.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-URFOvX2G.js → computer-device-mobile-tablet-touch.svg-u88Qx92m.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-CIdkHAYo.js → computer-device-mobile-tablet.svg-Dzdz4e4O.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-BEC9unNd.js → computer-device-network-ethernet-cat6.svg-BW1j1BkJ.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-C_WEyWn-.js → computer-device-network-lan-www.svg-CxNGv37e.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-D2xhIyf7.js → computer-device-network-wifi-connection.svg-Ck3nAZv3.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-DwIQxKAQ.js → computer-device-network-wifi-router.svg-gWXKoMXh.js} +1 -1
- package/web/assets/{cssMode-YcxdUWNT.js → cssMode-D8Jyxeqc.js} +1 -1
- package/web/assets/{divider-C95jkWZ7.js → divider-D-Mvqkj1.js} +2 -2
- package/web/assets/{docx-preview-B1K7Js_Q.js → docx-preview-DxSIfBtK.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-DOmkHECy.js → ecology-science-erlenmeyer-flask.svg-psfHQe5z.js} +1 -1
- package/web/assets/{fieldset-DEPqiZWe.js → fieldset-oHSSpvVY.js} +2 -2
- package/web/assets/{freemarker2-Bzhvjbz4.js → freemarker2-DlJBY4WY.js} +1 -1
- package/web/assets/{handlebars-CymxzXg4.js → handlebars-DTEXdr2O.js} +1 -1
- package/web/assets/{html-CouVDmTR.js → html-eYBbc2Bx.js} +1 -1
- package/web/assets/{htmlMode-Be-vsCic.js → htmlMode-B4O_yjGK.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-CTaPLIBa.js → image-flash-lightning.svg-r_oTLRoo.js} +1 -1
- package/web/assets/{image-picture-flower.svg-BkIdyuJf.js → image-picture-flower.svg-8nv9asUS.js} +1 -1
- package/web/assets/{index-DkeyMLje.js → index-B9x3uCZ9.js} +6 -6
- package/web/assets/{interface-alert-exclamation-diamond.svg-LE6wXJfb.js → interface-alert-exclamation-diamond.svg-A5K0l-78.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-DnJUBUVG.js → interface-alert-exclamation-triangle-warning.svg-Dq66i82G.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-BBESAf3A.js → interface-alert-information-circle.svg-B4ROZIk0.js} +1 -1
- package/web/assets/{interface-award-crown.svg-A9FnpbJ_.js → interface-award-crown.svg-DRnv1a4n.js} +1 -1
- package/web/assets/{interface-bookmark.svg-BMCuN1KQ.js → interface-bookmark-tag.svg-Dwwi4iOX.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-CONBx7yi.js → interface-bookmark.svg-CopCSuT2.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-BsHBSc-o.js → interface-calendar-date-one.svg-BxkYYC67.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-BsndNDne.js → interface-content-book-open-pages.svg-BJozsCHP.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-D9O4ldas.js → interface-content-book-page.svg-CbWXY0Yb.js} +1 -1
- package/web/assets/{interface-content-file.svg-3hZDtYrB.js → interface-content-file.svg-Ck3RuXRm.js} +1 -1
- package/web/assets/{interface-content-folder.svg-D2PGz4rg.js → interface-content-folder.svg-LK0HJ4yQ.js} +1 -1
- package/web/assets/interface-content-folder.svg-pxt6DqMZ.js +1 -0
- package/web/assets/{interface-copy-clipboard.svg-DDENzgQo.js → interface-copy-clipboard.svg-vkTPN1aA.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-D2cQZV5Q.js → interface-edit-attachment.svg-CjCh5Lb1.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-DrIFa0gk.js → interface-edit-binocular.svg-Dos2P4t_.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-AnGByEQd.js → interface-edit-magic-wand.svg-fxAohPEI.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-KNrFMeco.js → interface-edit-tool-paint-roller.svg-JLIYavUO.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-DF9u9WDQ.js → interface-edit-tool-pencil.svg-Tkm527sw.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-mkb9vXWE.js → interface-favorite-award.svg-O-HQC6xP.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-BDIYdX-W.js → interface-favorite-flag.svg-DWSuqI-W.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-DtIvO6z9.js → interface-favorite-heart.svg-3md2synz.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-CEv2Io1P.js → interface-favorite-star.svg-MnNO7Wk6.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-D0SoJbJE.js → interface-favorite-stars-sparkles.svg-WKCS18Oo.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-B-kMOZH8.js → interface-hierarchy-flowchart.svg-KnHJ7War.js} +1 -1
- package/web/assets/{interface-home-house.svg-FOYUzOig.js → interface-home-house.svg-2bdYCM0o.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-BaPGYtZM.js → interface-hyperlink.svg-dTQQRFwy.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-ddMiifOe.js → interface-lighting-brightness.svg-CwI2OM6O.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-WGGCrOPW.js → interface-lock-closed.svg-BcnsrWQP.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-BHdzRkd9.js → interface-lock-open-unlock.svg-Du_CfbnO.js} +1 -1
- package/web/assets/{interface-login-key.svg-C-CaH8gN.js → interface-login-key.svg-C3Hh7Lxb.js} +1 -1
- package/web/assets/{interface-search.svg-BWvztnST.js → interface-search.svg-DRez-w7-.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-BiiP7i7e.js → interface-setting-cog.svg-BbO7fWvj.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-BaNwYllj.js → interface-share-megaphone-bullhorn.svg-BbNIqS3V.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-DpVzHxi1.js → interface-share-rocket.svg-NYzb39WL.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-DVMadDln.js → interface-share-satellite.svg-BVbcZIy6.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-B1a7LlLT.js → interface-share-space-ship.svg-BFY5IO9d.js} +1 -1
- package/web/assets/{interface-share.svg-BknNtx4U.js → interface-share.svg-BTd9ID7k.js} +1 -1
- package/web/assets/{interface-signal-square.svg-DTf1mlii.js → interface-signal-square.svg-MjEdhTXk.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-DT6LHPex.js → interface-time-clock-circle.svg-ChSylXjE.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-CNCTqw_R.js → interface-time-hour-glass.svg-BZQl9M_C.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-DuMlS4pH.js → interface-users-multiple.svg-BmvFtDD2.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-BfOraF6E.js → interface-weather-moon.svg-CU_uP2aE.js} +1 -1
- package/web/assets/{javascript-CSbYcb4a.js → javascript-CzJXS_Bo.js} +1 -1
- package/web/assets/{jsonMode-BfABTJ_P.js → jsonMode-ClLnazHL.js} +1 -1
- package/web/assets/{liquid-D8zk2iFJ.js → liquid-k8yO1VdQ.js} +1 -1
- package/web/assets/{lspLanguageFeatures-CDjcX5cq.js → lspLanguageFeatures-BdUk3xiz.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-B57LhJ7L.js → mail-chat-bubble-square.svg-UruTYt7K.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-Zh4WfmfD.js → mail-send-email-paper-airplane.svg-CQ8gOMxm.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-B3JTaotd.js → mail-send-envelope.svg-B8XF7xYz.js} +1 -1
- package/web/assets/{mdx-Rt1S5V6O.js → mdx-Dpg5Mbqd.js} +1 -1
- package/web/assets/{minus-h_LYd9EK.js → minus-CM-56m8R.js} +2 -2
- package/web/assets/modal-DD3RK2dR.js +5 -0
- package/web/assets/modal-DXywOsPE.js +1 -0
- package/web/assets/{money-cashier-receipt.svg-BYcjjmII.js → money-cashier-receipt.svg-BGvvrVYh.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-D_eoPfYw.js → money-currency-dollar-pay.svg-oPVgaUnC.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-BVafbTUR.js → money-graph-arrow-increase.svg-DbW43WXz.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-DFCnoSVq.js → money-graph-bar-chart-increase.svg-BecdDdvJ.js} +1 -1
- package/web/assets/multiselect-Bk3EZIJC.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-DI19KkR3.js → nature-ecology-leaf.svg-CZxwEqo2.js} +1 -1
- package/web/assets/{password-BQyr-83Q.js → password-CJ4ckRGW.js} +4 -4
- package/web/assets/{phone-telephone.svg-si7GWPbw.js → phone-telephone.svg-U4WTbEXR.js} +1 -1
- package/web/assets/{plus-yTeMgVZF.js → plus-DvnsNNSA.js} +6 -6
- package/web/assets/process.store-utLBiVI8.js +1 -0
- package/web/assets/{programming-bug.svg-C8_FsRk_.js → programming-bug.svg-D-ueh13g.js} +1 -1
- package/web/assets/{programming-cloud.svg-Djjnh8pM.js → programming-cloud.svg-DW3eNYjS.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-Cw72ZkUG.js → programming-computer-database-server.svg-bBeXwbmi.js} +1 -1
- package/web/assets/{programming-computer-database.svg-C0Z7_RVR.js → programming-computer-database.svg-DP1oJ-Xb.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-BvERcUAT.js → programming-module-four-layout.svg-BCRfiu3A.js} +1 -1
- package/web/assets/{programming-module-three.svg-BkoUon6u.js → programming-module-three.svg-Cb8y-suF.js} +1 -1
- package/web/assets/{programming-module.svg-CK1yw5W-.js → programming-module.svg-CCF23Kn-.js} +1 -1
- package/web/assets/{programming-script-code.svg-BhU73hpj.js → programming-script-code.svg-D7zugBoU.js} +1 -1
- package/web/assets/project-launch.store-D0bLcuPZ.js +1 -0
- package/web/assets/project.store-BcKEFAKW.js +1 -0
- package/web/assets/{python-CSf8HAN9.js → python-C2Xee937.js} +1 -1
- package/web/assets/{razor-BKjp9q-U.js → razor-DP11amFn.js} +1 -1
- package/web/assets/router-BhS8cxIJ.js +1 -0
- package/web/assets/settings-scope-KsJCT82K.js +1 -0
- package/web/assets/{settings.store-BBoXO9_c.js → settings.store-FxdXT3wT.js} +1 -1
- package/web/assets/{shopping-cart.svg-CgRtQ4k-.js → shopping-cart.svg-DWikcMT4.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-XdAdBUaO.js → shopping-gift-present.svg-4RQmBLlg.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-BaFPv3xL.js → shopping-shipping-box-parcel-package.svg-D1lBxinA.js} +1 -1
- package/web/assets/src-BQn5mgNu.js +1 -0
- package/web/assets/src-Dq9wfPM5.css +1 -0
- package/web/assets/{src-DeCIcklm.js → src-Dwvd5kd0.js} +33 -33
- package/web/assets/src-vE4VZ3D3.js +572 -0
- package/web/assets/tabpanel-ep3FBKze.js +150 -0
- package/web/assets/{tag-new-circle.svg-BwxdYwp4.js → tag-new-circle.svg-C1MFrgC6.js} +1 -1
- package/web/assets/theme-DAUZuThi.js +1 -0
- package/web/assets/{toggleswitch-DKXm3drm.js → toggleswitch-6H_VuZ4L.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-B3QIUens.js → travel-map-earth-globe.svg-tCJZglOg.js} +1 -1
- package/web/assets/trpc-DZ27KTOo.js +1 -0
- package/web/assets/{tsMode-KbYg0Qfw.js → tsMode-9MCfBuVI.js} +5 -5
- package/web/assets/{typescript-UzU12abv.js → typescript-BPNkI37D.js} +1 -1
- package/web/assets/useAiChatDrawer-tSsNrRPY.js +1 -0
- package/web/assets/useCloudOrg-kMh7h7gI.js +1 -0
- package/web/assets/useProjectCatalog-BkL5z9lS.js +1 -0
- package/web/assets/useProjectCloudOrg-qr_xZto1.js +1 -0
- package/web/assets/{xml-CkgxvNFc.js → xml-CsWY9129.js} +1 -1
- package/web/assets/{yaml-Cjr4aAq9.js → yaml-CUnJQoDT.js} +1 -1
- package/web/index.html +1 -1
- package/agent-manager-4XJUIZKL.js +0 -9
- package/chunk-CQCCVPTX.js.map +0 -1
- package/chunk-LTLOVQJQ.js.map +0 -1
- package/chunk-YQISK6BL.js.map +0 -1
- package/settings-manager-Y4GNAXOH.js +0 -9
- package/src-US4EBM64.js.map +0 -1
- package/web/assets/AgentScalarChatInterface.vue-BXv2YF_7.js +0 -13
- package/web/assets/AgentTerminalPage-HbM44kg8.js +0 -1
- package/web/assets/AiChatPage-BTsALiaV.js +0 -1
- package/web/assets/AppLayout-DJ1dZUtQ.js +0 -1
- package/web/assets/AuditPage-CF53LMHt.js +0 -1
- package/web/assets/CloudAccountPage-BttYjaR8.js +0 -1
- package/web/assets/CloudAccountPage-Dou70Ljn.js +0 -1
- package/web/assets/CloudAccountPage-g6lFVpsX.css +0 -1
- package/web/assets/CloudMessagingPage-D15sTToL.js +0 -2
- package/web/assets/CloudMessagingPage-Dl7hHYeb.css +0 -1
- package/web/assets/DashboardPage-inYgcB3J.js +0 -164
- package/web/assets/DirectoryPickerDialog-DDWbon2r.js +0 -1
- package/web/assets/EnvironmentForm-DG_9AXml.js +0 -108
- package/web/assets/EnvironmentFormPage-DYmI2BfZ.js +0 -1
- package/web/assets/EnvironmentListPage-D2l91HzS.js +0 -1
- package/web/assets/KanbanBoardPage-BOVq3zOt.css +0 -1
- package/web/assets/KanbanBoardPage-BPH1ywhH.js +0 -4
- package/web/assets/KanbanListPage-Bj9-EbPv.js +0 -1
- package/web/assets/LaunchProjectPage-CHpVVYBa.css +0 -1
- package/web/assets/LaunchProjectPage-ObKhBvlS.js +0 -1
- package/web/assets/LaunchServicesPage-CAdAAyfG.js +0 -1
- package/web/assets/LogViewer-QRpqcjXC.js +0 -3
- package/web/assets/OrgKeyPrompt-uMjz7Y5A.js +0 -1
- package/web/assets/ProcessDetailPage-Bi5vk4ah.js +0 -1
- package/web/assets/ScenarioEditorPage-oyhLaoVE.js +0 -14
- package/web/assets/SendToChatDialog-BnZEu35Q.js +0 -1
- package/web/assets/ServiceControlsBar-Dp3r57J4.js +0 -1
- package/web/assets/ServiceDetailPage-DBm79vOL.js +0 -2
- package/web/assets/ServiceFormPage-BGWjKCUH.js +0 -1
- package/web/assets/SettingsPage-BIVmZT7t.js +0 -2063
- package/web/assets/UnlockPage-DYRFhdrT.js +0 -1
- package/web/assets/VariablesTable-Cbc_RlnE.js +0 -1
- package/web/assets/VaultMigrationPage-GlJyIJAw.js +0 -1
- package/web/assets/VersionBadge-CSX89ryT.js +0 -1
- package/web/assets/WikiPage-DAPhZkpS.js +0 -1
- package/web/assets/WikiView-DyU4eNEh.js +0 -1
- package/web/assets/add-scalar-classes-CxpzHvBM.js +0 -387
- package/web/assets/client-DZg134cQ.js +0 -24
- package/web/assets/cloud-chat.store-D899jVQ4.js +0 -1
- package/web/assets/cloud-session-DSjPbs8C.js +0 -1
- package/web/assets/column-Pmg7Ma5f.js +0 -907
- package/web/assets/interface-content-folder.svg-GTysMuP_.js +0 -1
- package/web/assets/modal--Ilf4bg_.js +0 -5
- package/web/assets/modal-Wk0CWaUJ.js +0 -1
- package/web/assets/multiselect-DlGWFLJR.js +0 -251
- package/web/assets/process.store-CvrK-4rR.js +0 -1
- package/web/assets/project-launch.store-D5cyKKyw.js +0 -1
- package/web/assets/project.store-OwPRdjA0.js +0 -1
- package/web/assets/router-DuWVvMLT.js +0 -1
- package/web/assets/settings-scope-D7NFCXjg.js +0 -1
- package/web/assets/src-CRQ32_Qg.js +0 -1
- package/web/assets/src-S24lFUYb.js +0 -572
- package/web/assets/src-dpFgucNZ.css +0 -1
- package/web/assets/tabpanel-DbMhKzgJ.js +0 -150
- package/web/assets/theme-pRVEu5SJ.js +0 -1
- package/web/assets/trpc-Cf_8kWCl.js +0 -1
- package/web/assets/useAiChatDrawer-DCVhP5N0.js +0 -1
- package/web/assets/useCloudOrg-CXvwb5Fo.js +0 -1
- package/web/assets/useProjectCatalog-Bth_aDP4.js +0 -1
- package/web/assets/useProjectCloudOrg-MUCjKP3P.js +0 -1
- /package/{agent-manager-4XJUIZKL.js.map → agent-manager-EI7SXPN5.js.map} +0 -0
- /package/{chat-N6XONNVG.js.map → chat-WMT34BXJ.js.map} +0 -0
- /package/{chunk-5GYBAMHV.js.map → chunk-D2PF2FYU.js.map} +0 -0
- /package/{chunk-NPORVPEO.js.map → chunk-RIITTBK3.js.map} +0 -0
- /package/{companion-7AFRBUQI.js.map → companion-EPINTIC7.js.map} +0 -0
- /package/{settings-manager-Y4GNAXOH.js.map → settings-manager-YSH7ZCLP.js.map} +0 -0
- /package/{vault-resolver-JR7TCITD.js.map → vault-resolver-57Q2DVOR.js.map} +0 -0
- /package/web/assets/{abap-DIWaXxy4.js → abap-B8g_2xYy.js} +0 -0
- /package/web/assets/{apex-D4-KnjW_.js → apex-Bm8w4T5A.js} +0 -0
- /package/web/assets/{azcli-IfDsRCLo.js → azcli-BqdUW6F8.js} +0 -0
- /package/web/assets/{bat-DWkIEnW3.js → bat-Bngf0lQU.js} +0 -0
- /package/web/assets/{bicep-CsOqEKmZ.js → bicep-DzO554JS.js} +0 -0
- /package/web/assets/{browser-BRPZK8RN.js → browser-BJX5ZrVN.js} +0 -0
- /package/web/assets/{cameligo-CVJihesZ.js → cameligo-Bcy3ohdb.js} +0 -0
- /package/web/assets/{clojure-CPXjbAsV.js → clojure-CZbiqkDV.js} +0 -0
- /package/web/assets/{coffee-Dk6AGUBs.js → coffee-CDuhyV-7.js} +0 -0
- /package/web/assets/{cpp-D8TcNCkN.js → cpp-BklV8f4x.js} +0 -0
- /package/web/assets/{csharp-B_ijQZWm.js → csharp-BelR_XiC.js} +0 -0
- /package/web/assets/{csp-CT_qVlF1.js → csp-DUjeBS2K.js} +0 -0
- /package/web/assets/{css-BNKulUcx.js → css-CvbYbEko.js} +0 -0
- /package/web/assets/{cypher-BZUAEEC-.js → cypher-Dwrbk-SP.js} +0 -0
- /package/web/assets/{dart-H8Ri9IID.js → dart-BW1E5h9O.js} +0 -0
- /package/web/assets/{dockerfile-BibtL7_E.js → dockerfile-B41ilpF9.js} +0 -0
- /package/web/assets/{ecl-Cq6OzwoI.js → ecl-BZE6Vxna.js} +0 -0
- /package/web/assets/{elixir-DEzZo1Bn.js → elixir-CtYg0bLh.js} +0 -0
- /package/web/assets/{flow9-CJjg7TJH.js → flow9-Sgvy48_I.js} +0 -0
- /package/web/assets/{fsharp-vGx-8LrK.js → fsharp-BzAfXfKg.js} +0 -0
- /package/web/assets/{go-CHEkyua-.js → go-D7oonABu.js} +0 -0
- /package/web/assets/{graphql--iPbFyYe.js → graphql-BEN-qkl0.js} +0 -0
- /package/web/assets/{hcl-C8EkclQS.js → hcl-CE0OhwCq.js} +0 -0
- /package/web/assets/{ini-DkuTJDAH.js → ini-CCLtcvjA.js} +0 -0
- /package/web/assets/{java-DzuDjs1c.js → java-Bao8w_gp.js} +0 -0
- /package/web/assets/{julia-BUS80tf_.js → julia-Dr0hFYrl.js} +0 -0
- /package/web/assets/{kotlin-s0eIc-h2.js → kotlin-Cbfu8lcM.js} +0 -0
- /package/web/assets/{less-o5f3n-o_.js → less-BU4gEpXr.js} +0 -0
- /package/web/assets/{lexon-AgKBNlrf.js → lexon-GpBGGdTS.js} +0 -0
- /package/web/assets/{lua-DUTvSobZ.js → lua-DIPKk37y.js} +0 -0
- /package/web/assets/{m3-DoULJRPc.js → m3-CSOypKGf.js} +0 -0
- /package/web/assets/{markdown-f9-EhcTi.js → markdown-VDqAgkyM.js} +0 -0
- /package/web/assets/{mips-aCd_43tp.js → mips-BJWI6dX7.js} +0 -0
- /package/web/assets/{msdax-cwHq3sFu.js → msdax-BLpuE5Dc.js} +0 -0
- /package/web/assets/{mysql-ITCpZRvB.js → mysql-ZsxiEUoY.js} +0 -0
- /package/web/assets/{objective-c-BjU-4cpP.js → objective-c-DcQa1iPc.js} +0 -0
- /package/web/assets/{pascal-Dmt8LI08.js → pascal-u-hmXdyn.js} +0 -0
- /package/web/assets/{pascaligo-DrXjRBef.js → pascaligo-DqbP-1C6.js} +0 -0
- /package/web/assets/{perl-BbJKyW-Z.js → perl-CUeQpRkH.js} +0 -0
- /package/web/assets/{pgsql-CLT36ygM.js → pgsql-CQ7FhAFN.js} +0 -0
- /package/web/assets/{php-BIcyBKEQ.js → php-BEf_fu3E.js} +0 -0
- /package/web/assets/{pla-sVewnHw1.js → pla-CXNNbT0w.js} +0 -0
- /package/web/assets/{postiats-D9DrURSm.js → postiats-CIXLZwPb.js} +0 -0
- /package/web/assets/{powerquery-BEjdKhpn.js → powerquery-DnGPASFA.js} +0 -0
- /package/web/assets/{powershell-BynZyJK1.js → powershell-1Y1kqIZS.js} +0 -0
- /package/web/assets/{process-DIamAPAU.js → process-Cf4Ob2V-.js} +0 -0
- /package/web/assets/{protobuf-BQ34Qnv5.js → protobuf-Cfo9haoG.js} +0 -0
- /package/web/assets/{pug--jmF9o7P.js → pug-BujEZqmy.js} +0 -0
- /package/web/assets/{qsharp-BDe4Axn9.js → qsharp-BL9AqNGD.js} +0 -0
- /package/web/assets/{r-DpjaSKX3.js → r-D0dhpGOM.js} +0 -0
- /package/web/assets/{redis-C_Q-xUDt.js → redis-BMLwD7W9.js} +0 -0
- /package/web/assets/{redshift-CHNShrpo.js → redshift-CkHh73og.js} +0 -0
- /package/web/assets/{restructuredtext-CVN0W1xR.js → restructuredtext-DZ-LF65W.js} +0 -0
- /package/web/assets/{ruby-CaKcv4f1.js → ruby-UzPHTzc9.js} +0 -0
- /package/web/assets/{rust-CbqMT_Ew.js → rust-ja9NGnXZ.js} +0 -0
- /package/web/assets/{sb-DIdUmAXV.js → sb-BNdOJbMY.js} +0 -0
- /package/web/assets/{scala-DVyALEcz.js → scala-LlhkyN6l.js} +0 -0
- /package/web/assets/{scheme-Cox4VpHa.js → scheme-BAj99YIn.js} +0 -0
- /package/web/assets/{scss-MW_l4ZY_.js → scss-chS-xxB3.js} +0 -0
- /package/web/assets/{shared-sse-BjXwPkLo.js → shared-sse-_VzlL_VX.js} +0 -0
- /package/web/assets/{shell-CP5qAt5e.js → shell-CcH7eYIc.js} +0 -0
- /package/web/assets/{solidity-1ctHOHIb.js → solidity-cVvnqX-K.js} +0 -0
- /package/web/assets/{sophia-DRAqvk2I.js → sophia-BBT-EdFw.js} +0 -0
- /package/web/assets/{sparql-8_9Nt5xp.js → sparql-DGEqOrB6.js} +0 -0
- /package/web/assets/{sql-owsrW4c3.js → sql-CcTErTxM.js} +0 -0
- /package/web/assets/{st-BDgXslxD.js → st-Bjw-B4mN.js} +0 -0
- /package/web/assets/{swift-TE6gFxno.js → swift-Bid-7bBd.js} +0 -0
- /package/web/assets/{systemverilog-DVGMenxt.js → systemverilog-CXju7Nd-.js} +0 -0
- /package/web/assets/{tcl-D6NP8_oR.js → tcl-D-Dw7JFz.js} +0 -0
- /package/web/assets/{twig-CVnYtCc5.js → twig-BIPbzEWT.js} +0 -0
- /package/web/assets/{typespec-BkD2qKRU.js → typespec-UJSutGCV.js} +0 -0
- /package/web/assets/{uuid-u4W9vzU3.js → uuid--pMuF47W.js} +0 -0
- /package/web/assets/{vb--Oo_cy-E.js → vb-oyG_LJw0.js} +0 -0
- /package/web/assets/{w3c-keyname-Dfw8VxXe.js → w3c-keyname-DtJs0qQm.js} +0 -0
- /package/web/assets/{wgsl-CrnkJFcw.js → wgsl-DXZ6ljB6.js} +0 -0
|
@@ -1,572 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-B1K7Js_Q.js","assets/index-DkeyMLje.js","assets/index-DWNL2YPM.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$i as e,$r as t,Br as n,Da as r,Di as i,Ea as a,Ei as o,Gi as s,Gr as c,Hr as l,Ii as u,Ir as d,J as f,Ja as p,Jn as m,Jr as h,Ki as g,Kn as _,La as v,Ln as y,Lr as b,Ni as x,Nn as S,Nr as C,Oi as w,Pi as T,Qr as ee,Rn as te,Rr as ne,Si as E,Sr as D,Ti as O,Vn as k,Wn as A,Xn as j,Y as re,Yi as M,_n as N,aa as P,an as ie,ba as F,bi as I,ca as ae,cn as oe,dn as se,ga as ce,gn as le,gr as ue,hn as de,hr as fe,ir as pe,it as me,jr as he,ki as L,kr as ge,la as R,li as _e,mn as ve,oa as z,oi as ye,pn as be,qr as xe,ra as B,ri as Se,rt as Ce,sa as we,sn as Te,tr as Ee,un as De,ur as Oe,vi as ke,vr as Ae,wa as V,xa as H,xr as je,yi as U,za as W,zn as Me}from"./index-DkeyMLje.js";import{t as Ne}from"./checkbox-g16PaQaN.js";import{t as Pe}from"./card-pbrPkbmk.js";import{t as Fe}from"./multiselect-DlGWFLJR.js";import{a as Ie,i as Le,n as Re,o as ze,r as Be,t as Ve}from"./tabpanel-DbMhKzgJ.js";import{t as He}from"./autocomplete-COj-K1Nc.js";import{t as Ue}from"./src-DeCIcklm.js";var We=Oe.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`}}}),Ge={name:`BaseSlider`,extends:de,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:We,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function Ke(e){"@babel/helpers - typeof";return Ke=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},Ke(e)}function qe(e,t,n){return(t=Je(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(e){var t=Ye(e,`string`);return Ke(t)==`symbol`?t:t+``}function Ye(e,t){if(Ke(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ke(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xe(e){return $e(e)||Qe(e)||G(e)||Ze()}function Ze(){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 G(e,t){if(e){if(typeof e==`string`)return et(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)?et(e,t):void 0}}function Qe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function $e(e){if(Array.isArray(e))return et(e)}function et(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 tt={name:`Slider`,extends:Ge,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+l(),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`?C(this.$el)?(this.initX+this.barWidth-n)*100/this.barWidth:(n-this.initX)*100/this.barWidth:(this.initY+this.barHeight-r)*100/this.barHeight;var i=(this.max-this.min)*(t/100)+this.min;if(this.step){var a=this.range?this.value[this.handleIndex]:this.value,o=i-a;o<0?i=a+Math.ceil(i/this.step-a/this.step)*this.step:o>0&&(i=a+Math.floor(i/this.step-a/this.step)*this.step)}else i=Math.floor(i);this.updateModel(e,i)},updateModel:function(e,t){var n=Math.round(t*100)/100,r;this.range?(r=this.value?Xe(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||ge(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 h(qe({},this.orientation,this.orientation))}}},nt=[`data-p`],rt=[`data-p`],K=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],it=[`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`];function ot(e,t,n,r,i,a){return B(),L(`div`,s({class:e.cx(`root`),onClick:t[18]||=function(){return a.onBarClick&&a.onBarClick.apply(a,arguments)}},e.ptmi(`root`),{"data-p-sliding":!1,"data-p":a.dataP}),[o(`span`,s({class:e.cx(`range`),style:[e.sx(`range`),a.rangeStyle()]},e.ptm(`range`),{"data-p":a.dataP}),null,16,rt),e.range?w(``,!0):(B(),L(`span`,s({key:0,class:e.cx(`handle`),style:[e.sx(`handle`),a.handleStyle()],onTouchstartPassive:t[0]||=function(e){return a.onDragStart(e)},onTouchmovePassive:t[1]||=function(e){return a.onDrag(e)},onTouchend:t[2]||=function(e){return a.onDragEnd(e)},onMousedown:t[3]||=function(e){return a.onMouseDown(e)},onKeydown:t[4]||=function(e){return a.onKeyDown(e)},onBlur:t[5]||=function(e){return a.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":a.dataP}),null,16,K)),e.range?(B(),L(`span`,s({key:1,class:e.cx(`handle`),style:[e.sx(`handle`),a.rangeStartHandleStyle()],onTouchstartPassive:t[6]||=function(e){return a.onDragStart(e,0)},onTouchmovePassive:t[7]||=function(e){return a.onDrag(e)},onTouchend:t[8]||=function(e){return a.onDragEnd(e)},onMousedown:t[9]||=function(e){return a.onMouseDown(e,0)},onKeydown:t[10]||=function(e){return a.onKeyDown(e,0)},onBlur:t[11]||=function(e){return a.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":a.dataP}),null,16,it)):w(``,!0),e.range?(B(),L(`span`,s({key:2,class:e.cx(`handle`),style:[e.sx(`handle`),a.rangeEndHandleStyle()],onTouchstartPassive:t[12]||=function(e){return a.onDragStart(e,1)},onTouchmovePassive:t[13]||=function(e){return a.onDrag(e)},onTouchend:t[14]||=function(e){return a.onDragEnd(e)},onMousedown:t[15]||=function(e){return a.onMouseDown(e,1)},onKeydown:t[16]||=function(e){return a.onKeyDown(e,1)},onBlur:t[17]||=function(e){return a.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":a.dataP}),null,16,at)):w(``,!0)],16,nt)}tt.render=ot;var st={name:`CalendarIcon`,extends:m};function ct(e){return ft(e)||dt(e)||ut(e)||lt()}function lt(){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 ut(e,t){if(e){if(typeof e==`string`)return pt(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)?pt(e,t):void 0}}function dt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ft(e){if(Array.isArray(e))return pt(e)}function pt(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 mt(e,t,n,r,i,a){return B(),L(`svg`,s({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),ct(t[0]||=[o(`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)}st.render=mt;var ht=Oe.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}}}}),gt={name:`BaseDatePicker`,extends:ve,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:ht,provide:function(){return{$pcDatePicker:this,$parentInstance:this}}};function _t(e,t,n){return(t=vt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vt(e){var t=yt(e,`string`);return bt(t)==`symbol`?t:t+``}function yt(e,t){if(bt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bt(e){"@babel/helpers - typeof";return bt=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},bt(e)}function xt(e){return wt(e)||Ct(e)||Et(e)||St()}function St(){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 Ct(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function wt(e){if(Array.isArray(e))return Dt(e)}function Tt(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Et(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 Et(e,t){if(e){if(typeof e==`string`)return Dt(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)?Dt(e,t):void 0}}function Dt(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 Ot={name:`DatePicker`,extends:gt,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=Se(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&&fe.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=Tt(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){he(e,this.inline?void 0:{position:`absolute`,top:`0`}),this.autoZIndex&&fe.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&&fe.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 Ee(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&&!b()&&(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?D(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=c(this.overlay)+`px`,this.overlay.style.minWidth=c(this.$el)+`px`):this.overlay.style.width=c(this.$el)+`px`,Ae(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=Tt(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(d(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(xt(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 ee(e)&&ye(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(xt(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=Tt(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=bt(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=je(i);switch(e.code){case`ArrowDown`:if(r.tabIndex=`-1`,i.parentElement.nextElementSibling){var o=je(i.parentElement),s=Array.from(i.parentElement.parentElement.children).slice(o+1).find(function(e){var t=e.children[a].children[0];return!ge(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=je(i.parentElement),u=Array.from(i.parentElement.parentElement.children).slice(0,l).reverse().find(function(e){var t=e.children[a].children[0];return!ge(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!ge(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!ge(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];ge(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];ge(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],i=d(r,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`),a=i[i.length-1];a.tabIndex=`0`,a.focus()}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(e);else{var o=this.overlay.children[n+1],s=xe(o,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);s.tabIndex=`0`,s.focus()}},onMonthCellKeydown:function(e,t){var n=e.currentTarget;switch(e.code){case`ArrowUp`:case`ArrowDown`:n.tabIndex=`-1`;var r=n.parentElement.children,i=je(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=je(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`?d(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?d(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):d(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`?xe(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?xe(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):xe(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=d(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]`),n=xe(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=d(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),i=xe(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"][data-p-selected="true"]`);r.forEach(function(e){return e.tabIndex=-1}),e=i||r[0]}else e=xe(this.overlay,`span[data-p-selected="true"]`),!e&&(e=xe(this.overlay,`td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])`)||xe(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=n(this.overlay);if(t&&t.length>0)if(!document.activeElement)t[0].focus();else{var r=t.indexOf(document.activeElement);if(e.shiftKey)r===-1||r===0?t[t.length-1].focus():t[r-1].focus();else if(r===-1)if(this.timeOnly)t[0].focus();else{var i=t.findIndex(function(e){return e.tagName===`SPAN`});i===-1&&(i=t.findIndex(function(e){return e.tagName===`BUTTON`})),i===-1?t[0].focus():t[i].focus()}else r===t.length-1?t[0].focus():t[r+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=Se(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=Se(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&&n(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||N.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.inline||(this.input.focus(),this.overlayVisible=!1,e.stopPropagation());break}},onOverlayMouseUp:function(e){this.onOverlayClick(e)},createResponsiveStyle:function(){if(this.numberOfMonths>1&&this.responsiveOptions&&!this.isUnstyled){if(!this.responsiveStyleElement){var e;this.responsiveStyleElement=document.createElement(`style`),this.responsiveStyleElement.type=`text/css`,ne(this.responsiveStyleElement,`nonce`,(e=this.$primevue)==null||(e=e.config)==null||(e=e.csp)==null?void 0:e.nonce),document.body.appendChild(this.responsiveStyleElement)}var n=``;if(this.responsiveOptions)for(var r=t(),i=xt(this.responsiveOptions).filter(function(e){return!!(e.breakpoint&&e.numMonths)}).sort(function(e,t){return-1*r(e.breakpoint,t.breakpoint)}),a=0;a<i.length;a++){for(var o=i[a],s=o.breakpoint,c=o.numMonths,l=`
|
|
558
|
-
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${c}) .p-datepicker-next-button {
|
|
559
|
-
display: inline-flex;
|
|
560
|
-
}
|
|
561
|
-
`,u=c;u<this.numberOfMonths;u++)l+=`
|
|
562
|
-
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${u+1}) {
|
|
563
|
-
display: none;
|
|
564
|
-
}
|
|
565
|
-
`;n+=`
|
|
566
|
-
@media screen and (max-width: ${s}) {
|
|
567
|
-
${l}
|
|
568
|
-
}
|
|
569
|
-
`}this.responsiveStyleElement.innerHTML=n}},destroyResponsiveStyleElement:function(){this.responsiveStyleElement&&=(this.responsiveStyleElement.remove(),null)},dayDataP:function(e){return h({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 h({fluid:this.$fluid})},panelDataP:function(){return h(_t({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return h(_t({},this.size,this.size))},timePickerDataP:function(){return h({"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:be,Button:k,Portal:j,CalendarIcon:st,ChevronLeftIcon:Ie,ChevronRightIcon:me,ChevronUpIcon:Ce,ChevronDownIcon:De,TimesIcon:_},directives:{ripple:A}},kt=[`id`,`data-p`],At=[`disabled`,`aria-label`,`aria-expanded`,`aria-controls`],q=[`data-p`],jt=[`id`,`role`,`aria-modal`,`aria-label`,`data-p`],Mt=[`disabled`,`aria-label`],Nt=[`disabled`,`aria-label`],Pt=[`disabled`,`aria-label`],Ft=[`disabled`,`aria-label`],It=[`data-p-disabled`],Lt=[`abbr`],Rt=[`data-p-disabled`],zt=[`aria-label`,`data-p-today`,`data-p-other-month`],Bt=[`onClick`,`onKeydown`,`aria-selected`,`aria-disabled`,`data-p`],Vt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Ht=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Ut=[`data-p`];function Wt(e,t,n,c,l,u){var d=we(`InputText`),f=we(`TimesIcon`),p=we(`Button`),m=we(`Portal`),h=ae(`ripple`);return B(),L(`span`,s({ref:`container`,id:e.$id,class:e.cx(`root`),style:e.sx(`root`),"data-p":u.containerDataP},e.ptmi(`root`)),[e.inline?w(``,!0):(B(),i(d,{key:0,ref:u.inputRef,id:e.inputId,role:`combobox`,class:V([e.inputClass,e.cx(`pcInputText`)]),style:a(e.inputStyle),defaultValue:u.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":l.overlayVisible,"aria-controls":l.overlayVisible?u.panelId:void 0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:`none`,disabled:e.disabled,readonly:!e.manualInput||e.readonly,tabindex:0,onInput:u.onInput,onClick:u.onInputClick,onFocus:u.onFocus,onBlur:u.onBlur,onKeydown:u.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?z(e.$slots,`clearicon`,{key:1,class:V(e.cx(`clearIcon`)),clearCallback:u.onClearClick},function(){return[T(f,s({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:u.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):w(``,!0),e.showIcon&&e.iconDisplay===`button`&&!e.inline?z(e.$slots,`dropdownbutton`,{key:2,toggleCallback:u.onButtonClick},function(){return[o(`button`,s({class:e.cx(`dropdown`),disabled:e.disabled,onClick:t[0]||=function(){return u.onButtonClick&&u.onButtonClick.apply(u,arguments)},type:`button`,"aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":l.overlayVisible,"aria-controls":u.panelId},e.ptm(`dropdown`)),[z(e.$slots,`dropdownicon`,{class:V(e.icon)},function(){return[(B(),i(R(e.icon?`span`:`CalendarIcon`),s({class:e.icon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,At)]}):e.showIcon&&e.iconDisplay===`input`&&!e.inline?(B(),L(E,{key:3},[e.$slots.inputicon||e.showIcon?(B(),L(`span`,s({key:0,class:e.cx(`inputIconContainer`),"data-p":u.inputIconDataP},e.ptm(`inputIconContainer`)),[z(e.$slots,`inputicon`,{class:V(e.cx(`inputIcon`)),clickCallback:u.onButtonClick},function(){return[(B(),i(R(e.icon?`i`:`CalendarIcon`),s({class:[e.icon,e.cx(`inputIcon`)],onClick:u.onButtonClick},e.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,q)):w(``,!0)],64)):w(``,!0),T(m,{appendTo:e.appendTo,disabled:e.inline},{default:F(function(){return[T(_e,s({name:`p-anchored-overlay`,onEnter:t[58]||=function(e){return u.onOverlayEnter(e)},onAfterEnter:u.onOverlayEnterComplete,onAfterLeave:u.onOverlayAfterLeave,onLeave:u.onOverlayLeave},e.ptm(`transition`)),{default:F(function(){return[e.inline||l.overlayVisible?(B(),L(`div`,s({key:0,ref:u.overlayRef,id:u.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:t[55]||=function(){return u.onOverlayClick&&u.onOverlayClick.apply(u,arguments)},onKeydown:t[56]||=function(){return u.onOverlayKeyDown&&u.onOverlayKeyDown.apply(u,arguments)},onMouseup:t[57]||=function(){return u.onOverlayMouseUp&&u.onOverlayMouseUp.apply(u,arguments)},"data-p":u.panelDataP},e.ptm(`panel`)),[e.timeOnly?w(``,!0):(B(),L(E,{key:0},[o(`div`,s({class:e.cx(`calendarContainer`)},e.ptm(`calendarContainer`)),[(B(!0),L(E,null,P(u.months,function(n,a){return B(),L(`div`,s({key:n.month+n.year,class:e.cx(`calendar`)},{ref_for:!0},e.ptm(`calendar`)),[o(`div`,s({class:e.cx(`header`)},{ref_for:!0},e.ptm(`header`)),[z(e.$slots,`header`),z(e.$slots,`prevbutton`,{actionCallback:function(e){return u.onPrevButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[H(T(p,s({ref_for:!0,ref:u.previousButtonRef,class:e.cx(`pcPrevButton`),disabled:e.disabled,"aria-label":l.currentView===`year`?e.$primevue.config.locale.prevDecade:l.currentView===`month`?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth,unstyled:e.unstyled,onClick:u.onPrevButtonClick,onKeydown:u.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcPrevButton`),"data-pc-group-section":`navigator`}),{icon:F(function(t){return[z(e.$slots,`previcon`,{},function(){return[(B(),i(R(e.prevIcon?`span`:`ChevronLeftIcon`),s({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`]),[[ke,a===0]])]}),o(`div`,s({class:e.cx(`title`)},{ref_for:!0},e.ptm(`title`)),[e.$primevue.config.locale.showMonthAfterYear?(B(),L(E,{key:0},[l.currentView===`year`?w(``,!0):(B(),L(`button`,s({key:0,type:`button`,onClick:t[1]||=function(){return u.switchToYearView&&u.switchToYearView.apply(u,arguments)},onKeydown:t[2]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:e.cx(`selectYear`),disabled:u.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),r(u.getYear(n)),17,Mt)),l.currentView===`date`?(B(),L(`button`,s({key:1,type:`button`,onClick:t[3]||=function(){return u.switchToMonthView&&u.switchToMonthView.apply(u,arguments)},onKeydown:t[4]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:e.cx(`selectMonth`),disabled:u.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),r(u.getMonthName(n.month)),17,Nt)):w(``,!0)],64)):(B(),L(E,{key:1},[l.currentView===`date`?(B(),L(`button`,s({key:0,type:`button`,onClick:t[5]||=function(){return u.switchToMonthView&&u.switchToMonthView.apply(u,arguments)},onKeydown:t[6]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:e.cx(`selectMonth`),disabled:u.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),r(u.getMonthName(n.month)),17,Pt)):w(``,!0),l.currentView===`year`?w(``,!0):(B(),L(`button`,s({key:1,type:`button`,onClick:t[7]||=function(){return u.switchToYearView&&u.switchToYearView.apply(u,arguments)},onKeydown:t[8]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:e.cx(`selectYear`),disabled:u.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),r(u.getYear(n)),17,Ft))],64)),l.currentView===`year`?(B(),L(`span`,s({key:2,class:e.cx(`decade`)},{ref_for:!0},e.ptm(`decade`)),[z(e.$slots,`decade`,{years:u.yearPickerValues},function(){return[x(r(u.yearPickerValues[0].value)+` - `+r(u.yearPickerValues[u.yearPickerValues.length-1].value),1)]})],16)):w(``,!0)],16),z(e.$slots,`nextbutton`,{actionCallback:function(e){return u.onNextButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[H(T(p,s({ref_for:!0,ref:u.nextButtonRef,class:e.cx(`pcNextButton`),disabled:e.disabled,"aria-label":l.currentView===`year`?e.$primevue.config.locale.nextDecade:l.currentView===`month`?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth,unstyled:e.unstyled,onClick:u.onNextButtonClick,onKeydown:u.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcNextButton`),"data-pc-group-section":`navigator`}),{icon:F(function(t){return[z(e.$slots,`nexticon`,{},function(){return[(B(),i(R(e.nextIcon?`span`:`ChevronRightIcon`),s({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`]),[[ke,e.numberOfMonths===1?!0:a===e.numberOfMonths-1]])]})],16),l.currentView===`date`?(B(),L(`table`,s({key:0,class:e.cx(`dayView`),role:`grid`},{ref_for:!0},e.ptm(`dayView`)),[o(`thead`,s({ref_for:!0},e.ptm(`tableHeader`)),[o(`tr`,s({ref_for:!0},e.ptm(`tableHeaderRow`)),[e.showWeek?(B(),L(`th`,s({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`}),[z(e.$slots,`weekheaderlabel`,{},function(){return[o(`span`,s({ref_for:!0},e.ptm(`weekHeaderLabel`,{context:{disabled:e.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),r(u.weekHeaderLabel),17)]})],16,It)):w(``,!0),(B(!0),L(E,null,P(u.weekDays,function(t){return B(),L(`th`,s({key:t,scope:`col`,abbr:t},{ref_for:!0},e.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:e.cx(`weekDayCell`)}),[o(`span`,s({class:e.cx(`weekDay`)},{ref_for:!0},e.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),r(t),17)],16,Lt)}),128))],16)],16),o(`tbody`,s({ref_for:!0},e.ptm(`tableBody`)),[(B(!0),L(E,null,P(n.dates,function(t,i){return B(),L(`tr`,s({key:t[0].day+``+t[0].month},{ref_for:!0},e.ptm(`tableBodyRow`)),[e.showWeek?(B(),L(`td`,s({key:0,class:e.cx(`weekNumber`)},{ref_for:!0},e.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[o(`span`,s({class:e.cx(`weekLabelContainer`)},{ref_for:!0},e.ptm(`weekLabelContainer`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tablebodycelllabel`}),[z(e.$slots,`weeklabel`,{weekNumber:n.weekNumbers[i]},function(){return[n.weekNumbers[i]<10?(B(),L(`span`,s({key:0,style:{visibility:`hidden`}},{ref_for:!0},e.ptm(`weekLabel`)),`0`,16)):w(``,!0),x(` `+r(n.weekNumbers[i]),1)]})],16,Rt)],16)):w(``,!0),(B(!0),L(E,null,P(t,function(t){return B(),L(`td`,s({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:u.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?H((B(),L(`span`,s({key:0,class:e.cx(`day`,{date:t}),onClick:function(e){return u.onDateSelect(e,t)},draggable:`false`,onKeydown:function(e){return u.onDateCellKeydown(e,t,a)},"aria-selected":u.isSelected(t),"aria-disabled":!t.selectable},{ref_for:!0},e.ptm(`day`,{context:{date:t,today:t.today,otherMonth:t.otherMonth,selected:u.isSelected(t),disabled:!t.selectable}}),{"data-p":u.dayDataP(t),"data-pc-group-section":`tablebodycelllabel`}),[z(e.$slots,`date`,{date:t},function(){return[x(r(t.day),1)]})],16,Bt)),[[h]]):w(``,!0),u.isSelected(t)?(B(),L(`div`,s({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),r(t.day),17)):w(``,!0)],16,zt)}),128))],16)}),128))],16)],16)):w(``,!0)],16)}),128))],16),l.currentView===`month`?(B(),L(`div`,s({key:0,class:e.cx(`monthView`)},e.ptm(`monthView`)),[(B(!0),L(E,null,P(u.monthPickerValues,function(t,n){return H((B(),L(`span`,s({key:t,onClick:function(e){return u.onMonthSelect(e,{month:t,index:n})},onKeydown:function(e){return u.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:u.isMonthSelected(n),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":u.isMonthSelected(n)}),[x(r(t.value)+` `,1),u.isMonthSelected(n)?(B(),L(`div`,s({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),r(t.value),17)):w(``,!0)],16,Vt)),[[h]])}),128))],16)):w(``,!0),l.currentView===`year`?(B(),L(`div`,s({key:1,class:e.cx(`yearView`)},e.ptm(`yearView`)),[(B(!0),L(E,null,P(u.yearPickerValues,function(t){return H((B(),L(`span`,s({key:t.value,onClick:function(e){return u.onYearSelect(e,t)},onKeydown:function(e){return u.onYearCellKeydown(e,t)},class:e.cx(`year`,{year:t})},{ref_for:!0},e.ptm(`year`,{context:{year:t,selected:u.isYearSelected(t.value),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":u.isYearSelected(t.value)}),[x(r(t.value)+` `,1),u.isYearSelected(t.value)?(B(),L(`div`,s({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),r(t.value),17)):w(``,!0)],16,Ht)),[[h]])}),128))],16)):w(``,!0)],64)),(e.showTime||e.timeOnly)&&l.currentView===`date`?(B(),L(`div`,s({key:1,class:e.cx(`timePicker`),"data-p":u.timePickerDataP},e.ptm(`timePicker`)),[o(`div`,s({class:e.cx(`hourPicker`)},e.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[z(e.$slots,`hourincrementbutton`,{callbacks:u.hourIncrementCallbacks},function(){return[T(p,s({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextHour,unstyled:e.unstyled,onMousedown:t[9]||=function(e){return u.onTimePickerElementMouseDown(e,0,1)},onMouseup:t[10]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,t[12]||=U(function(e){return u.onTimePickerElementMouseDown(e,0,1)},[`enter`]),t[13]||=U(function(e){return u.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:t[11]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[t[14]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),t[15]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`incrementicon`,{},function(){return[(B(),i(R(e.incrementIcon?`span`:`ChevronUpIcon`),s({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`])]}),o(`span`,s(e.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),r(u.formattedCurrentHour),17),z(e.$slots,`hourdecrementbutton`,{callbacks:u.hourDecrementCallbacks},function(){return[T(p,s({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevHour,unstyled:e.unstyled,onMousedown:t[16]||=function(e){return u.onTimePickerElementMouseDown(e,0,-1)},onMouseup:t[17]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,t[19]||=U(function(e){return u.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),t[20]||=U(function(e){return u.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:t[18]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[t[21]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),t[22]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`decrementicon`,{},function(){return[(B(),i(R(e.decrementIcon?`span`:`ChevronDownIcon`),s({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),o(`div`,s(e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[o(`span`,s(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),r(e.timeSeparator),17)],16),o(`div`,s({class:e.cx(`minutePicker`)},e.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[z(e.$slots,`minuteincrementbutton`,{callbacks:u.minuteIncrementCallbacks},function(){return[T(p,s({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[23]||=function(e){return u.onTimePickerElementMouseDown(e,1,1)},onMouseup:t[24]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,t[26]||=U(function(e){return u.onTimePickerElementMouseDown(e,1,1)},[`enter`]),t[27]||=U(function(e){return u.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:t[25]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[t[28]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),t[29]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`incrementicon`,{},function(){return[(B(),i(R(e.incrementIcon?`span`:`ChevronUpIcon`),s({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`])]}),o(`span`,s(e.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),r(u.formattedCurrentMinute),17),z(e.$slots,`minutedecrementbutton`,{callbacks:u.minuteDecrementCallbacks},function(){return[T(p,s({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[30]||=function(e){return u.onTimePickerElementMouseDown(e,1,-1)},onMouseup:t[31]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,t[33]||=U(function(e){return u.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),t[34]||=U(function(e){return u.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:t[32]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[t[35]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),t[36]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`decrementicon`,{},function(){return[(B(),i(R(e.decrementIcon?`span`:`ChevronDownIcon`),s({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(),L(`div`,s({key:0,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[o(`span`,s(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),r(e.timeSeparator),17)],16)):w(``,!0),e.showSeconds?(B(),L(`div`,s({key:1,class:e.cx(`secondPicker`)},e.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[z(e.$slots,`secondincrementbutton`,{callbacks:u.secondIncrementCallbacks},function(){return[T(p,s({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[37]||=function(e){return u.onTimePickerElementMouseDown(e,2,1)},onMouseup:t[38]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,t[40]||=U(function(e){return u.onTimePickerElementMouseDown(e,2,1)},[`enter`]),t[41]||=U(function(e){return u.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:t[39]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[t[42]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),t[43]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`incrementicon`,{},function(){return[(B(),i(R(e.incrementIcon?`span`:`ChevronUpIcon`),s({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`])]}),o(`span`,s(e.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),r(u.formattedCurrentSecond),17),z(e.$slots,`seconddecrementbutton`,{callbacks:u.secondDecrementCallbacks},function(){return[T(p,s({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[44]||=function(e){return u.onTimePickerElementMouseDown(e,2,-1)},onMouseup:t[45]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,t[47]||=U(function(e){return u.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),t[48]||=U(function(e){return u.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:t[46]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[t[49]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),t[50]||=U(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`decrementicon`,{},function(){return[(B(),i(R(e.decrementIcon?`span`:`ChevronDownIcon`),s({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)):w(``,!0),e.hourFormat==`12`?(B(),L(`div`,s({key:2,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[o(`span`,s(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),r(e.timeSeparator),17)],16)):w(``,!0),e.hourFormat==`12`?(B(),L(`div`,s({key:3,class:e.cx(`ampmPicker`)},e.ptm(`ampmPicker`)),[z(e.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return u.toggleAMPM(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[T(p,s({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.am,disabled:e.disabled,unstyled:e.unstyled,onClick:t[51]||=function(e){return u.toggleAMPM(e)},onKeydown:u.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`incrementicon`,{class:V(e.cx(`incrementIcon`))},function(){return[(B(),i(R(e.incrementIcon?`span`:`ChevronUpIcon`),s({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`])]}),o(`span`,s(e.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),r(l.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),17),z(e.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return u.toggleAMPM(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[T(p,s({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.pm,disabled:e.disabled,onClick:t[52]||=function(e){return u.toggleAMPM(e)},onKeydown:u.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:F(function(t){return[z(e.$slots,`decrementicon`,{class:V(e.cx(`decrementIcon`))},function(){return[(B(),i(R(e.decrementIcon?`span`:`ChevronDownIcon`),s({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)):w(``,!0)],16,Ut)):w(``,!0),e.showButtonBar?(B(),L(`div`,s({key:2,class:e.cx(`buttonbar`)},e.ptm(`buttonbar`)),[z(e.$slots,`buttonbar`,{todayCallback:function(e){return u.onTodayButtonClick(e)},clearCallback:function(e){return u.onClearButtonClick(e)}},function(){return[z(e.$slots,`todaybutton`,{actionCallback:function(e){return u.onTodayButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[T(p,s({label:u.todayLabel,onClick:t[53]||=function(e){return u.onTodayButtonClick(e)},class:e.cx(`pcTodayButton`),unstyled:e.unstyled,onKeydown:u.onContainerButtonKeydown},e.todayButtonProps,{pt:e.ptm(`pcTodayButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]}),z(e.$slots,`clearbutton`,{actionCallback:function(e){return u.onClearButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[T(p,s({label:u.clearLabel,onClick:t[54]||=function(e){return u.onClearButtonClick(e)},class:e.cx(`pcClearButton`),unstyled:e.unstyled,onKeydown:u.onContainerButtonKeydown},e.clearButtonProps,{pt:e.ptm(`pcClearButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]})]})],16)):w(``,!0),z(e.$slots,`footer`)],16,jt)):w(``,!0)]}),_:3},16,[`onAfterEnter`,`onAfterLeave`,`onLeave`])]}),_:3},8,[`appendTo`,`disabled`])],16,kt)}Ot.render=Wt;function Gt(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 Kt(e,t=new Date){let n=Gt(e);if(!n)return null;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n.getTime()-r.getTime())/864e5)}function qt(e,t=new Date){let n=Kt(e,t);return n===null?null:n<0?`overdue`:n===0?`today`:n<=2?`soon`:`later`}function Jt(e,t){let n=Gt(e);return n?n.toLocaleDateString(t,{day:`2-digit`,month:`2-digit`,year:`numeric`}):e}var Yt={class:`kb-card__top`},Xt={class:`kb-card__title`},Zt={class:`kb-card__actions`},Qt={key:0,class:`kb-card__groups`},$t={key:1,class:`kb-card__assignees`},en=[`title`],J=[`src`,`onError`],tn={key:2,class:`kb-card__badges`},nn={key:1,class:`kb-card__prio`},rn={key:2,class:`pi pi-arrow-up`},an={key:3,class:`kb-card__img-badge`},on={key:4,class:`pi pi-align-left`},sn={key:5,class:`kb-card__img-badge`},cn={key:6,class:`kb-card__img-badge`},ln=y(u({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(e){let t=e,n=O(()=>{let e=t.card.deadline;if(!e)return null;let n=qt(e);return n?{label:Jt(e),state:n}:null}),i=v(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=ae(`tooltip`);return B(),L(E,null,[o(`div`,Yt,[o(`span`,Xt,r(t.card.title),1),o(`div`,Zt,[z(e.$slots,`actions`,{},void 0,!0)])]),t.card.groups?.length?(B(),L(`div`,Qt,[(B(!0),L(E,null,P(t.card.groups,e=>(B(),L(`span`,{key:e,class:`kb-card__group`},r(e),1))),128))])):w(``,!0),t.card.assignees?.length?(B(),L(`div`,$t,[(B(!0),L(E,null,P(t.card.assignees,e=>(B(),L(`span`,{key:e.id,class:`kb-card__avatar`,style:a(s(e.id)),title:e.name},[t.avatarUrl&&!i.has(e.id)?(B(),L(`img`,{key:0,src:t.avatarUrl(e.id),alt:``,onError:t=>i.add(e.id)},null,40,J)):(B(),L(E,{key:1},[x(r(c(e.name)),1)],64))],12,en))),128))])):w(``,!0),t.card.markdown||t.card.images.length||t.card.commentCount||t.childCount||t.hasParent||n.value||e.$slots.badges?(B(),L(`div`,tn,[n.value?H((B(),L(`span`,{key:0,class:V([`kb-card__deadline`,`kb-card__deadline--${n.value.state}`])},[l[0]||=o(`i`,{class:`pi pi-calendar`},null,-1),x(` `+r(n.value.label),1)],2)),[[u,t.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):w(``,!0),t.card.priority?H((B(),L(`span`,nn,[x(r(t.card.priority),1)])),[[u,t.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):w(``,!0),t.hasParent?H((B(),L(`i`,rn,null,512)),[[u,t.t(`card.hasParent`),void 0,{bottom:!0}]]):w(``,!0),t.childCount?H((B(),L(`span`,an,[l[1]||=o(`i`,{class:`pi pi-sitemap`},null,-1),x(` `+r(t.childCount),1)])),[[u,t.t(`card.hasChildren`),void 0,{bottom:!0}]]):w(``,!0),t.card.markdown?(B(),L(`i`,on)):w(``,!0),t.card.images.length?(B(),L(`span`,sn,[l[2]||=o(`i`,{class:`pi pi-image`},null,-1),x(` `+r(t.card.images.length),1)])):w(``,!0),t.card.commentCount?(B(),L(`span`,cn,[l[3]||=o(`i`,{class:`pi pi-comment`},null,-1),x(` `+r(t.card.commentCount),1)])):w(``,!0),z(e.$slots,`badges`,{},void 0,!0)])):w(``,!0)],64)}}}),[[`__scopeId`,`data-v-f1127747`]]),un={key:0,class:`kb-files__thumb`},dn=[`src`,`alt`],fn={key:1,class:`pi pi-file kb-files__icon`},pn=[`title`,`onClick`],mn=[`title`],hn={class:`kb-files__size`},gn=[`title`,`onClick`],_n=y(u({__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 n=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(),L(`ul`,{key:0,class:V([`kb-files`,{"kb-files--inline":e.compact}])},[(B(!0),L(E,null,P(e.files,(t,s)=>(B(),L(`li`,{key:t.id,class:`kb-files__item`},[e.preview(t)?(B(),L(`span`,un,[o(`img`,{src:e.preview(t),alt:t.name},null,8,dn)])):(B(),L(`i`,fn)),e.openable?(B(),L(`button`,{key:2,class:`kb-files__name`,title:t.name,onClick:I(e=>n(`open`,t),[`stop`])},r(t.name),9,pn)):(B(),L(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:t.name},r(t.name),9,mn)),o(`span`,hn,r(i(t.size)),1),e.removable?(B(),L(`button`,{key:4,class:`kb-files__remove`,title:e.removeLabel,onClick:I(e=>n(`remove`,s),[`stop`])},[...a[0]||=[o(`i`,{class:`pi pi-times`},null,-1)]],8,gn)):w(``,!0)]))),128))],2)):w(``,!0)}}),[[`__scopeId`,`data-v-f30e50ba`]]),Y=Uint8Array,vn=Uint16Array,yn=Int32Array,bn=new Y([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]),xn=new Y([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]),Sn=new Y([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Cn=function(e,t){for(var n=new vn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new yn(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}},wn=Cn(bn,2),Tn=wn.b,En=wn.r;Tn[28]=258,En[258]=28;var Dn=Cn(xn,0),On=Dn.b;Dn.r;for(var kn=new vn(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 vn(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new vn(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new vn(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 vn(r),i=0;i<r;++i)e[i]&&(s[i]=kn[o[e[i]-1]++]>>15-e[i]);return s}),Mn=new Y(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 Y(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 Y(e.subarray(t,n))},Z=[`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`],Vn=function(e,t,n){var r=Error(t||Z[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Vn),!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 Y(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new Y(i*3));var l=function(e){var t=n.length;if(e>t){var r=new Y(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,x=y+Ln(e,d+5,31)+1;d+=14;for(var S=new Y(x),C=new Y(19),w=0;w<b;++w)C[Sn[w]]=Ln(e,d+w*3,7);d+=b*3;for(var T=In(C),ee=(1<<T)-1,te=jn(C,T,1),w=0;w<x;){var ne=te[Ln(e,d,ee)];d+=ne&15;var E=ne>>4;if(E<16)S[w++]=E;else{var D=0,O=0;for(E==16?(O=3+Ln(e,d,3),d+=2,D=S[w-1]):E==17?(O=3+Ln(e,d,7),d+=3):E==18&&(O=11+Ln(e,d,127),d+=7);O--;)S[w++]=D}}var k=S.subarray(0,y),A=S.subarray(y);h=In(k),g=In(A),p=jn(k,h,1),m=jn(A,g,1)}else Vn(1);else{var E=zn(d)+4,j=e[E-4]|e[E-3]<<8,re=E+j;if(re>i){c&&Vn(0);break}s&&l(f+j),n.set(e.subarray(E,re),f),t.b=f+=j,t.p=d=re*8,t.f=u;continue}if(d>_){c&&Vn(0);break}}s&&l(f+131072);for(var M=(1<<h)-1,N=(1<<g)-1,P=d;;P=d){var D=p[Rn(e,d)&M],ie=D>>4;if(d+=D&15,d>_){c&&Vn(0);break}if(D||Vn(2),ie<256)n[f++]=ie;else if(ie==256){P=d,p=null;break}else{var F=ie-254;if(ie>264){var w=ie-257,I=bn[w];F=Ln(e,d,(1<<I)-1)+Tn[w],d+=I}var ae=m[Rn(e,d)&N],oe=ae>>4;ae||Vn(3),d+=ae&15;var A=On[oe];if(oe>3){var I=xn[oe];A+=Rn(e,d)&(1<<I)-1,d+=I}if(d>_){c&&Vn(0);break}s&&l(f+131072);var se=f+F;if(f<A){var ce=a-A,le=Math.min(A,se);for(ce+f<0&&Vn(3);f<le;++f)n[f]=r[ce+f]}for(;f<se;++f)n[f]=n[f-A]}}t.l=p,t.p=P,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 Y(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&&Vn(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)&&Vn(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 Y(p)}):Vn(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 S(async()=>{let{renderAsync:e}=await import(`./docx-preview-B1K7Js_Q.js`);return{renderAsync:e}},__vite__mapDeps([0,1,2]));await r(new Blob([e],{type:t}),n,void 0,{inWrapper:!0,breakPages:!0,renderAltChunks:!1,renderComments:!1,useBase64URL:!0}),fr(n)}async function ur(e,t){let n=(await S(async()=>{let{default:e}=await import(`./browser-BRPZK8RN.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=y(u({__name:`UploadProgress`,props:{queue:{},errors:{},uploading:{type:Boolean,default:!1},uploadingLabel:{default:``}},setup(e){return(t,n)=>e.queue.length||e.errors.length||e.uploading&&!e.queue.length?(B(),L(`div`,Er,[e.queue.length?(B(),L(`ul`,Dr,[(B(!0),L(E,null,P(e.queue,e=>(B(),L(`li`,{key:e.key},[o(`span`,{class:`kb-upload__name`,title:e.name},r(e.name),9,Or),o(`span`,kr,[o(`span`,{class:`kb-upload__bar-fill`,style:a({width:`${Math.round(e.ratio*100)}%`})},null,4)]),o(`span`,Ar,r(Math.round(e.ratio*100))+`%`,1)]))),128))])):e.uploading?(B(),L(`p`,jr,r(e.uploadingLabel),1)):w(``,!0),e.errors.length?(B(),L(`ul`,Mr,[(B(!0),L(E,null,P(e.errors,(e,t)=>(B(),L(`li`,{key:t},r(e.name)+` — `+r(e.reason),1))),128))])):w(``,!0)])):w(``,!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=y(u({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(e,{emit:t}){let n=e,s=t,c=pe(),l=n.t,u=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],d=O(()=>new Map(n.groups.map(e=>[e.id,e])));function f(e){return n.columns.filter(t=>(t.groupId&&d.value.has(t.groupId)?t.groupId:void 0)===e)}function m(e){return n.groups.filter(t=>(t.parentId??void 0)===e)}function h(e){return f(e).length+m(e).reduce((e,t)=>e+h(t.id),0)}let g=O(()=>Fr(n.columns,n.groups)),_=O(()=>{let e=[],t=(r,i)=>{for(let a of r){if(a.kind===`column`){if(i===0)continue;let t=n.columns.find(e=>e.id===a.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:i});continue}let r=d.value.get(a.id);r&&(e.push({kind:`group`,id:r.id,title:r.title,color:r.color,depth:i,columnCount:h(r.id)}),t(a.children,i+1))}};return t(g.value,0),e});function v(e,t){let r=Lr(n.columns,n.groups,e,t);r&&s(`intent`,{kind:`columns-reorder`,columnIds:r})}function y(e,t){return Lr(n.columns,n.groups,e,t)!==null}let b=O(()=>f(void 0)),x=W(``);function S(){let e=x.value.trim();e&&(s(`intent`,{kind:`group-add`,title:e,color:u[n.groups.length%u.length]}),x.value=``)}let C=W(null);function ee(e){e.kind===`group`&&(C.value={id:e.id,title:e.title})}function te(){let e=C.value;if(!e)return;let t=e.title.trim(),n=d.value.get(e.id);t&&n&&t!==n.title&&s(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),C.value=null}function ne(e,t){let n=d.value.get(e)?.color;s(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function D(e){e.kind===`group`&&c.require({message:l(`groups.deleteConfirm`,{title:e.title}),header:l(`groups.deleteHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,accept:()=>s(`intent`,{kind:`group-delete`,groupId:e.id})})}let A=W(null),j=W(null);function re(e,t,r){n.readOnly||(A.value={kind:e,id:t},r.dataTransfer?.setData(`text/plain`,t),r.dataTransfer&&(r.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=d.value.get(n)?.parentId}return!0}function N(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(j.value=null)}function ie(e,t){M(A.value,e)&&(t.preventDefault(),j.value=e??`root`)}function ae(e){let t=n.columns.find(t=>t.id===e)?.groupId;return t&&d.value.has(t)?t:null}function oe(e){let t=A.value,n=M(t,e);j.value=null,A.value=null,!(!t||!n)&&s(`intent`,{kind:`group-assign`,member:t,groupId:e})}function se(){s(`update:visible`,!1)}return(t,n)=>(B(),i(p(Me),{visible:e.visible,header:p(l)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":se},{default:F(()=>[o(`p`,Rr,r(p(l)(`groups.lead`)),1),e.readOnly?w(``,!0):(B(),L(`div`,zr,[T(p(be),{modelValue:x.value,"onUpdate:modelValue":n[0]||=e=>x.value=e,placeholder:p(l)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:U(S,[`enter`])},null,8,[`modelValue`,`placeholder`]),T(p(k),{label:p(l)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:S},null,8,[`label`])])),o(`div`,Br,[_.value.length?w(``,!0):(B(),L(`div`,Vr,r(p(l)(`groups.empty`)),1)),(B(!0),L(E,null,P(_.value,t=>(B(),L(`div`,{key:`${t.kind}-${t.id}`,class:V([`kg-row`,{"kg-row--group":t.kind===`group`,"kg-row--target":j.value===t.id}]),style:a({paddingLeft:`${t.depth*1.25}rem`}),draggable:!e.readOnly,onDragstart:e=>re(t.kind,t.id,e),onDragover:e=>ie(t.kind===`group`?t.id:ae(t.id),e),onDragleave:N,onDrop:I(e=>oe(t.kind===`group`?t.id:ae(t.id)),[`prevent`]),onDragend:n[2]||=e=>{A.value=null,j.value=null}},[o(`i`,{class:V([t.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),t.kind===`group`?(B(),L(`span`,{key:0,class:`kg-swatch`,style:a({background:t.color||`var(--p-text-muted-color)`})},null,4)):w(``,!0),C.value&&C.value.id===t.id?(B(),i(p(be),{key:1,modelValue:C.value.title,"onUpdate:modelValue":n[1]||=e=>C.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:U(te,[`enter`]),onBlur:te},null,8,[`modelValue`])):(B(),L(`span`,Ur,r(t.title),1)),t.kind===`group`?(B(),L(`span`,Wr,r(p(l)(`groups.columnCount`,{count:t.columnCount})),1)):w(``,!0),e.readOnly?w(``,!0):(B(),L(`div`,Gr,[T(p(k),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!y(t.id,-1),"aria-label":p(l)(`groups.moveUp`),class:`kg-move`,onClick:e=>v(t.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),T(p(k),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!y(t.id,1),"aria-label":p(l)(`groups.moveDown`),class:`kg-move`,onClick:e=>v(t.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),t.kind===`group`?(B(),L(E,{key:0},[(B(),L(E,null,P(u,e=>o(`span`,{key:e,class:V([`kg-dot`,{"kg-dot--on":t.color===e}]),style:a({background:e}),onClick:n=>ne(t.id,e)},null,14,Kr)),64)),T(p(k),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>ee(t)},null,8,[`onClick`]),T(p(k),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>D(t)},null,8,[`onClick`])],64)):w(``,!0)]))],46,Hr))),128))]),o(`div`,{class:V([`kg-loose`,{"kg-row--target":j.value===`root`}]),onDragover:n[4]||=e=>ie(null,e),onDragleave:N,onDrop:n[5]||=I(e=>oe(null),[`prevent`])},[o(`div`,qr,r(p(l)(`groups.loose`)),1),b.value.length?w(``,!0):(B(),L(`div`,Jr,r(p(l)(`groups.looseEmpty`)),1)),(B(!0),L(E,null,P(b.value,t=>(B(),L(`div`,{key:t.id,class:`kg-row`,draggable:!e.readOnly,onDragstart:e=>re(`column`,t.id,e),onDragend:n[3]||=e=>{A.value=null,j.value=null}},[n[6]||=o(`i`,{class:`pi pi-list kg-row__icon`},null,-1),o(`span`,Xr,r(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={class:`kb-dialog__edit-content`},va={class:`kb-dialog__field`},ya={for:`kanban-card-title`,class:`kb-dialog__label`},ba={class:`kb-dialog__field`},xa={for:`kanban-card-content`,class:`kb-dialog__label`},Sa={class:`kb-dialog__field`},Ca={for:`kanban-card-images`,class:`kb-dialog__label`},wa={key:0,class:`kb-dialog__images`},Ta=[`src`],Ea=[`onClick`],Da={key:1,class:`kb-dialog__upload`},Oa={class:`kb-rel`},ka={key:0,class:`kb-rel__section`},Aa={class:`kb-rel__title`},ja={key:0,class:`kb-rel__table`},Ma={class:`kb-rel__people`},Na={class:`kb-rel__num`},Pa={class:`kb-rel__actions-col`},Fa={class:`kb-rel__card`},Ia={class:`kb-rel__board`},La={class:`kb-rel__people`},Ra={key:0,class:`kb-card__assignees`},za=[`title`],Ba=[`src`,`onError`],Va={key:1,class:`kb-rel__none`},Ha={class:`kb-rel__num`},Ua={class:`kb-rel__actions-col`},Wa=[`title`],Ga=[`title`],Ka={key:1,class:`kb-rel__empty`},qa={class:`kb-coloption`},Ja={class:`kb-link__col`},Ya={key:1,class:`kb-rel__section`},Xa={class:`kb-rel__title`},Za={key:0,class:`kb-rel__table`},Qa={class:`kb-rel__people`},$a={class:`kb-rel__num`},eo={class:`kb-rel__actions-col`},to={class:`kb-rel__card`},no={class:`kb-rel__board`},ro={class:`kb-rel__people`},io={key:0,class:`kb-card__assignees`},ao=[`title`],oo=[`src`,`onError`],so={key:1,class:`kb-rel__none`},co={class:`kb-rel__num`},lo={class:`kb-rel__actions-col`},uo=[`title`,`onClick`],fo=[`title`,`onClick`],po={key:1,class:`kb-rel__empty`},mo={class:`kb-coloption`},ho={class:`kb-link__col`},go={key:2,class:`kb-rel__empty`},_o={class:`kb-comments`},vo={key:0,class:`kb-comments__empty`},yo={key:1,class:`kb-comments__list`},bo=[`onClick`],xo={key:0,class:`pi pi-sparkles`},So=[`src`,`onError`],Co={key:3,class:`pi pi-user`},wo={class:`kb-comments__body`},To={class:`kb-comments__meta`},Eo={class:`kb-comments__author`},Do={class:`kb-comments__time`},Oo={key:0,class:`kb-comments__edited`},ko={key:1,class:`kb-comments__tools`},Ao=[`title`,`onClick`],jo=[`title`,`onClick`],Mo={class:`kb-comments__actions`},No=[`onClick`,`innerHTML`],Po=[`onClick`],Fo=[`onKeydown`],Io={class:`kb-comments__actions`},Lo=[`title`],Ro={class:`kb-comments__hint`},zo={class:`kb-history`},Bo={key:0,class:`kb-history__empty`},Vo={key:1,class:`kb-history__timeline`},Ho=[`onClick`],Uo={class:`kb-history__icon`},Wo={class:`kb-history__body`},Go={class:`kb-history__label`},Ko={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},qo={key:0,class:`kb-history__detail`},Jo={class:`kb-history__time`},Yo={class:`kb-side`},Xo={key:0,class:`kb-side__block`},Zo={class:`kb-side__label`},Qo=[`title`],$o=[`src`,`onError`],es={class:`kb-assignee`},ts=[`src`,`onError`],ns={class:`kb-side__hint`},rs={class:`kb-side__block`},is={class:`kb-side__label`},as={key:0,class:`kb-prio__value`},os={key:0,class:`kb-prio`},ss=[`title`],cs={key:2,class:`kb-side__hint`},ls={class:`kb-side__block`},us={class:`kb-side__label`},ds={class:`kb-deadline`},fs=[`title`],ps={key:0,class:`kb-side__hint`},ms={class:`kb-side__block`},hs={class:`kb-side__label`},gs={class:`kb-groups__option`},_s={class:`kb-side__hint`},vs={key:1,class:`kb-side__block`},ys={class:`kb-side__label`},bs={class:`kb-tree`},xs={key:0,class:`pi pi-angle-right kb-tree__branch`},Ss=[`title`,`onClick`],Cs={class:`kb-tree__label`},ws={class:`kb-side__block`},Ts={class:`kb-side__label`},Es={class:`kb-colors`},Ds=[`disabled`],Os=[`disabled`,`onClick`],ks={class:`kb-side__hint`},As={key:2,class:`kb-side__block`},js={class:`kb-side__label`},Ms={class:`kb-side__hint`},Ns={key:3,class:`kb-side__block`},Ps={class:`kb-side__label`},Fs={class:`kb-colgroup__label`},Is={class:`kb-coloption`},Ls={key:0,class:`pi pi-arrow-right kb-coloption__away`},Rs={key:0,class:`kb-side__hint`},zs={class:`kb-side__block kb-side__meta`},Bs={key:0},Vs={key:4,class:`kb-side__block`},Hs={class:`kb-side__label`},Us={class:`kb-side__convs`},Ws=[`title`,`onClick`],Gs={class:`kb-side__conv-label`},Ks={key:5,class:`kb-side__block`},qs={class:`kb-side__label`},Js={class:`kb-side__actions`},Ys={key:6,class:`kb-side__block kb-side__danger`},Xs={class:`kb-dialog__footer`},Zs={key:0,class:`kb-dialog__unsaved`},Qs={key:0,class:`kb-viewer`},$s=[`src`,`alt`],ec=[`src`,`title`],tc=[`src`],nc=[`src`],rc={key:4,class:`kb-viewer__office`},ic={key:0,class:`kb-viewer__tabs`},ac=[`onClick`],oc={class:`kb-viewer__scroll`},sc={key:0,class:`kb-viewer__table`},cc={key:1,class:`kb-viewer__empty`},lc={key:5,class:`kb-viewer__office`},uc={class:`kb-viewer__scroll kb-viewer__doc`},dc={key:0},fc={key:1},pc={key:2},mc={key:3,class:`kb-viewer__li`},hc={key:4,class:`kb-viewer__table`},gc={key:5},_c={key:0,class:`kb-viewer__empty`},vc={key:6,class:`kb-viewer__office`},yc={class:`kb-viewer__scroll kb-viewer__slides`},bc={class:`kb-viewer__slide-no`},xc={key:0},Sc={key:7,class:`kb-viewer__office`},Cc={key:0,class:`kb-viewer__empty`},wc={key:8,class:`kb-viewer__text`},Tc={key:9,class:`kb-viewer__truncated`},Ec={key:0,class:`kb-colmenu`},Dc={class:`kb-colmenu__host`},Q=`\0void`,Oc=26,kc=512*1024,Ac=55*1024*1024,jc=5*1024*1024,Mc=400,Nc=8,Pc=60,Fc=12,Ic=y(u({__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(t,{expose:n,emit:s}){let c=t,l=O(()=>c.loadHistory!==void 0),u=s,d=pe(),m=c.t;function h(){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 _(e){return JSON.parse(JSON.stringify(e))}let y=W(_(c.columns));ce(()=>c.columns,e=>{y.value=_(e),qt()});function b(e,t){y.value=e,t&&u(`intent`,t)}let S=W(``),C=W(!1),ee=W(``),ne=O(()=>[...y.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),D=W(!1),A=W(`gte`),j=W(null),N=W([]),oe=W([]),se=W([]),ue=W(!1),de=W(!1),fe=W(!1),me=W([]),he=O(()=>{let e=new Set;for(let t of me.value){for(let n of nn(t,`up`))e.add(n);for(let n of nn(t,`down`))e.add(n)}return e}),ge=O(()=>j.value!==null||A.value===`none`),R=O(()=>(ge.value?1:0)+(N.value.length?1:0)+(oe.value.length||ue.value?1:0)+(se.value.length||de.value?1:0)+(me.value.length||fe.value?1:0));function _e(){j.value=null,A.value=`gte`,N.value=[],oe.value=[],se.value=[],me.value=[],ue.value=!1,de.value=!1,fe.value=!1}function ve(e){if(A.value===`none`){if(e.priority!==void 0)return!1}else if(j.value!==null){let t=e.priority;if(t===void 0||A.value===`eq`&&t!==j.value||A.value===`gte`&&t<j.value||A.value===`lte`&&t>j.value)return!1}if(N.value.length&&!N.value.includes(e.color??``))return!1;let t=e.groups??[];if(oe.value.length||ue.value){let e=oe.value.length&&t.some(e=>oe.value.includes(e)),n=ue.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(se.value.length||de.value){let e=se.value.length&&n.some(e=>se.value.includes(e.id)),t=de.value&&n.length===0;if(!e&&!t)return!1}if(me.value.length||fe.value){let t=me.value.length&&he.value.has(e.id),n=fe.value&&!Qt(e.id)&&$t(e.id).length===0;if(!t&&!n)return!1}return!0}let ye=O({get:()=>ue.value?[Q,...oe.value]:oe.value,set:e=>{ue.value=e.includes(Q),oe.value=e.filter(e=>e!==Q)}}),xe=O(()=>[Q,...dt.value]),Se=O({get:()=>de.value?[Q,...se.value]:se.value,set:e=>{de.value=e.includes(Q),se.value=e.filter(e=>e!==Q)}}),Ce=O(()=>[{userId:Q,name:m(`filters.noAssignees`)},...c.members]),we=O({get:()=>fe.value?[Q,...me.value]:me.value,set:e=>{fe.value=e.includes(Q),me.value=e.filter(e=>e!==Q)}}),Te=O(()=>[{id:Q,title:m(`filters.noFamily`),column:``},...ne.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:m(`archive.title`)}))]),Ee=O(()=>{let e=c.searchMatches,t=R.value>0;return!e&&!t?ne.value:ne.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||ve(n)))}))}),De=W(!1),Oe=O(()=>new Map((c.columnGroups??[]).map(e=>[e.id,e])));function Ae(e){let t=[],n=new Set,r=e;for(;r&&Oe.value.has(r)&&!n.has(r);)n.add(r),t.unshift(r),r=Oe.value.get(r).parentId;return t}let je=O(()=>{let e=new Map;for(let t of Ee.value)Ae(t.groupId).forEach((n,r)=>{let i=Oe.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()]}),Pe=O(()=>je.value.length?(Math.max(...je.value.map(e=>e.depth))+1)*Oc:0),Ie=W(null),We=W([]);function Ge(){let e=Ie.value;if(!e||!je.value.length){We.value=[];return}We.value=je.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+(Ee.value.find(e=>e.id===t.dataset.colId)?.cards.length??0),0);return[{id:t.id,title:t.title,color:t.color,top:t.depth*Oc,left:r,width:i-r,count:a}]})}let Ke=null;e(()=>{if(Ge(),typeof ResizeObserver<`u`&&Ie.value){Ke=new ResizeObserver(()=>Ge()),Ke.observe(Ie.value);for(let e of Ie.value.querySelectorAll(`.kb-col`))Ke.observe(e)}}),M(()=>Ke?.disconnect()),ce(()=>[Ee.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),c.columnGroups],()=>{g(()=>{if(Ge(),!(!Ke||!Ie.value))for(let e of Ie.value.querySelectorAll(`.kb-col`))Ke.observe(e)})},{deep:!0});function qe(e){return y.value.find(t=>t.id===e)?.title??``}function Je(e,t,n){e.history=[...e.history??[],{type:t,timestamp:new Date().toISOString(),detail:n}]}function Ye(){if(c.readOnly||!ee.value.trim())return;let e=ee.value.trim();b([...y.value,{id:h(),title:e,order:y.value.length,cards:[]}],{kind:`column-add`,title:e}),ee.value=``,C.value=!1}function Xe(e){if(c.readOnly)return;let t=y.value.find(t=>t.id===e);d.require({message:m(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:m(`column.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>b(y.value.filter(t=>t.id!==e),{kind:`column-delete`,columnId:e})})}function Ze(e,t){c.readOnly||!t.trim()||b(y.value.map(n=>n.id===e?{...n,title:t.trim()}:n),{kind:`column-rename`,columnId:e,title:t.trim()})}let G=W(null),Qe=W(``),$e=W(``),et=W([]),nt=W([]),rt=W(!1),K=W([]),it=W([]),at=0,ot=W([]),st=v(new Map),ct=W([]),lt=W([]),ut=W([]),dt=O(()=>{let e=new Set;for(let t of y.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 ft(e){let t=e.query.trim(),n=new Set(lt.value),r=dt.value.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t.toLowerCase()))),i=dt.value.some(e=>e.toLowerCase()===t.toLowerCase());ut.value=t&&!i&&!n.has(t)?[t,...r]:r}let pt=W(null),mt=W(null),ht=O(()=>{let e=gt(mt.value),t=e?Kt(e):null;return t===null?``:t<0?m(`editor.deadlineOverdue`,{count:-t}):t===0?m(`editor.deadlineToday`):m(`editor.deadlineIn`,{count:t})});function gt(e){if(!e)return null;let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function _t(e){if(!e)return null;let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r,12)}function vt(){c.readOnly||(pt.value=5)}function yt(e){let t=e.trim();!t||lt.value.includes(t)||(lt.value=[...lt.value,t])}let bt=W(!1);function xt(e){let t=e.target?.closest(`.p-autocomplete`)?.querySelector(`input`);return t instanceof HTMLInputElement?t:null}function St(){bt.value=!0}function Ct(e){let t=xt(e);if(t){if(e.type===`keydown`){if(t.getAttribute(`aria-activedescendant`))return;wt(t);return}bt.value=!1,setTimeout(()=>{if(bt.value){bt.value=!1,t.value=``;return}wt(t)},0)}}function wt(e){e.value.trim()&&(yt(e.value),e.value=``)}let Tt=W(``),Et=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],Dt=W(``),kt=W(`edit`),At=W(``),q=W([]),jt=W(null),Mt=W(null),Nt=W(null),Pt=W(``);async function Ft(){await g(),Mt.value?.scrollIntoView({block:`end`})}ce(G,e=>u(`card-open`,e));let It=W(null),Lt=W(`bottom`);function Rt(e,t=`bottom`){if(!c.readOnly){if(Lt.value=t,c.templates.length===0){Bt(e,``);return}It.value=e}}function zt(e){let t=It.value;It.value=null,t&&Bt(t,e?.content??``)}function Bt(e,t){let n=y.value.find(t=>t.id===e);if(!n)return;let r=new Date().toISOString();Vt(e,{id:h(),title:m(`card.defaultTitle`),markdown:t,images:[],order:Lt.value===`top`?0:n.cards.length,...l.value?{}:{history:[{type:`created`,timestamp:r,detail:m(`card.inColumn`,{name:qe(e)})}]},createdAt:r,updatedAt:r})}function Vt(e,t){if(In(),G.value={colId:e,card:{...t,history:[...t.history??[]]}},c.loadHistory&&Sn(t.id)){let n=c.histories?.[t.id];n&&(G.value={colId:e,card:{...t,history:n}}),c.loadHistory(t.id)}Qe.value=t.title,$e.value=t.markdown??``,et.value=[...t.images],nt.value=[...t.attachments??[]],K.value=[],ot.value=[],At.value=``,q.value=[],Fn(nt.value),Fn((t.history??[]).flatMap(e=>e.attachments??[])),ct.value=(t.assignees??[]).map(e=>e.id),Tt.value=t.color??``,lt.value=[...t.groups??[]],pt.value=t.priority??null,mt.value=_t(t.deadline),Dt.value=e,kt.value=`edit`}ce(()=>G.value?c.histories?.[G.value.card.id]:void 0,e=>{let t=G.value;!e||!t||t.card.history===e||(G.value={colId:t.colId,card:{...t.card,history:e}},Fn(e.flatMap(e=>e.attachments??[])))});let Ht=O(()=>{let e=G.value;return e?!Sn(e.card.id):!1}),Ut=O(()=>{let e=G.value;if(!e)return!1;if(Ht.value)return!0;let t=e.card,n=(e,t)=>JSON.stringify(e)===JSON.stringify(t);return Qe.value!==t.title||$e.value!==(t.markdown??``)||Dt.value!==e.colId||!n(et.value,t.images)||!n(nt.value,t.attachments??[])||!n(ct.value,(t.assignees??[]).map(e=>e.id))||Tt.value!==(t.color??``)||!n(lt.value,t.groups??[])||pt.value!==(t.priority??null)||gt(mt.value)!==(t.deadline??null)}),Wt=O(()=>Ut.value||At.value.trim().length>0||q.value.length>0||Nt.value!==null);function Gt(){if(!Wt.value){Yt();return}d.require({message:m(`editor.confirmDiscardMessage`),header:m(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:m(`editor.discard`),rejectLabel:m(`editor.keepEditing`),accept:()=>Yt()})}function qt(){let e=G.value;if(!e)return;let t=y.value.flatMap(e=>e.cards).find(t=>t.id===e.card.id)??xn.value.get(e.card.id);if(!t)return;if(!Ut.value){let n=y.value.find(e=>e.cards.some(e=>e.id===t.id))?.id??e.colId;G.value={colId:n,card:{...t,history:e.card.history}},Qe.value=t.title,$e.value=t.markdown??``,et.value=[...t.images],nt.value=[...t.attachments??[]],ct.value=(t.assignees??[]).map(e=>e.id),Tt.value=t.color??``,lt.value=[...t.groups??[]],pt.value=t.priority??null,mt.value=_t(t.deadline),Dt.value=n}if(t.history===void 0)return;let n=G.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));G.value={colId:n.colId,card:{...n.card,history:a}}}function Jt(){let e=ot.value;if(ot.value=[],c.deleteAttachment)for(let t of e)c.deleteAttachment(t)}function Yt(){G.value=null,or(),Jn(),In(),Jt()}function Xt(){if(c.readOnly||!G.value)return;let{colId:e,card:t}=G.value,n=Qe.value||m(`card.untitled`),r=l.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!l.value&&n!==t.title&&t.title!==m(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!l.value&&$e.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let a=l.value?0:et.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=ct.value.map(e=>({id:e,name:c.members.find(t=>t.userId===e)?.name??e})),s=l.value?[]:o.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));s.length&&r.push({type:`edited`,timestamp:i(),detail:m(`editor.assignedDetail`,{names:s.map(e=>e.name).join(`, `)})});let d=[...new Set(lt.value.map(e=>e.trim()).filter(Boolean))],{color:f,priority:p,groups:h,deadline:g,..._}=t,v={..._,title:n,markdown:$e.value,images:et.value,attachments:nt.value,assignees:o,...Tt.value?{color:Tt.value}:{},...d.length?{groups:d}:{},...pt.value===null?{}:{priority:pt.value},...gt(mt.value)?{deadline:gt(mt.value)}:{},history:l.value?t.history:r,updatedAt:i()},x=Dt.value||e;!l.value&&x!==e&&r.push({type:`moved`,timestamp:i(),detail:`${qe(e)} → ${qe(x)}`});let S=!Sn(v.id),C=S?{kind:`card-add`,columnId:x,card:v,placement:Lt.value}:{kind:`card-update`,cardId:v.id,patch:{title:v.title,markdown:v.markdown,priority:v.priority??null,color:v.color??null,deadline:v.deadline??null,groups:v.groups??[],assignees:o.map(e=>e.id),attachments:v.attachments,images:v.images}};if(!S&&x!==e&&u(`intent`,{kind:`card-move`,cardId:v.id,toColumnId:x}),Cn.value){u(`intent`,C),u(`load-archive`,vn.value,yn.value),ot.value=[],G.value={colId:e,card:v};return}b(y.value.map(t=>{if(t.id===e&&x!==e)return{...t,cards:t.cards.filter(e=>e.id!==v.id)};if(t.id!==x)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=Lt.value===`top`?[v,...t.cards]:[...t.cards,v];return{...t,cards:n.map((e,t)=>({...e,order:t}))}}),C),ot.value=[],G.value={colId:x,card:v},Dt.value=x}function Zt(e,t){for(let n of y.value){let r=n.cards.find(e=>e.id===t);if(r)return{cardId:t,boardId:e,title:r.title,boardName:m(`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 Qt(e){return c.cardLinks.find(t=>t.childCardId===e)}function $t(e){return c.cardLinks.filter(t=>t.parentCardId===e)}function en(e){return $t(e).length}let J=O(()=>{let e=G.value;if(!e)return null;let t=Qt(e.card.id);return t?Zt(t.parentBoardId,t.parentCardId):null}),tn=O(()=>{let e=G.value;return e?$t(e.card.id).flatMap(e=>{let t=Zt(e.childBoardId,e.childCardId);return t?[t]:[]}):[]});function nn(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`?$t(r[e]).map(e=>e.childCardId):[Qt(r[e])?.parentCardId].filter(e=>!!e);for(let e of i)n.has(e)||(n.add(e),r.push(e))}return n}function rn(e){return ne.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let an=O(()=>{let e=G.value;return e?rn(nn(e.card.id,`down`)):[]}),on=O(()=>{let e=G.value;if(!e)return[];let t=nn(e.card.id,`up`);for(let n of $t(e.card.id))t.add(n.childCardId);return rn(t)});function sn(e){let t=G.value;!t||c.readOnly||!c.setCardParent||c.setCardParent(t.card.id,e)}function cn(e){let t=G.value;!t||!e||c.readOnly||!c.setCardParent||c.setCardParent(e,t.card.id)}function un(e){c.readOnly||!c.setCardParent||c.setCardParent(e,null)}let dn=O(()=>!c.readOnly&&c.setCardParent!==void 0&&!!G.value&&y.value.some(e=>e.cards.some(e=>e.id===G.value?.card.id))),fn=O(()=>{let e=G.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=Qt(r);if(!e||n.has(e.parentCardId))break;let i=Zt(e.parentBoardId,e.parentCardId);if(!i)break;n.add(e.parentCardId),t.push(i),r=e.parentCardId}return t.reverse()}),pn=O(()=>(J.value?1:0)+tn.value.length);function mn(e,t){for(let t of y.value){let n=t.cards.find(t=>t.id===e);if(n){Vt(t.id,n);return}}t&&u(`open-linked-card`,{boardId:t,cardId:e})}let hn=O(()=>{let e=ne.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:m(`editor.columnGroupHere`),items:e}];if(!c.readOnly&&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 gn(e){let[t,n]=e.includes(`:`)?e.split(`:`):[``,e];if(!t){Dt.value=n??``;return}let r=G.value,i=c.otherBoards.find(e=>e.id===t),a=i?.columns.find(e=>e.id===n);c.readOnly||!r||!i||!a||!c.moveCardToBoard||d.require({message:m(`editor.moveToBoardConfirm`,{board:i.name,column:a.title}),header:m(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;Yt(),c.moveCardToBoard?.(e,t,a.id)}})}let Y=W(!1),vn=W(``),yn=W(``),bn=O(()=>[{id:``,title:m(`archive.allColumns`)},...y.value.map(e=>({id:e.id,title:e.title}))]),xn=O(()=>new Map(c.archivedCards.map(e=>[e.id,e])));function Sn(e){return y.value.some(t=>t.cards.some(t=>t.id===e))||xn.value.has(e)?!0:!!(G.value?.card.id===e&&G.value.card.archivedAt)}let Cn=O(()=>!!(G.value&&(G.value.card.archivedAt||xn.value.has(G.value.card.id))));function wn(e){Vt(e.archivedFrom?.columnId??``,e)}let Tn=O(()=>R.value?c.archivedCards.filter(ve):c.archivedCards),En=O(()=>c.archivedCards.length-Tn.value.length),Dn=null;function On(){Y.value=!0,u(`load-archive`,vn.value,yn.value)}ce(vn,e=>{Y.value&&(Dn&&clearTimeout(Dn),Dn=setTimeout(()=>u(`load-archive`,e,yn.value),250))}),ce(yn,e=>{Y.value&&(Dn&&clearTimeout(Dn),u(`load-archive`,vn.value,e))});let kn=null;ce(S,e=>{if(kn&&clearTimeout(kn),!e.trim()){u(`search-cards`,``);return}kn=setTimeout(()=>u(`search-cards`,e),250)}),M(()=>{kn&&clearTimeout(kn),Dn&&clearTimeout(Dn)});function X(e,t){c.readOnly||(b(y.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-archive`,cardId:t}),G.value?.card.id===t&&Yt())}function An(e){c.readOnly||u(`intent`,{kind:`card-unarchive`,cardId:e})}function jn(e,t){if(c.readOnly)return;let n=y.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);d.require({message:m(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:m(`editor.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{b(y.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-delete`,cardId:t}),Yt()}})}function Mn(){if(c.readOnly||!G.value||!At.value.trim()&&!q.value.length)return;let{colId:e,card:t}=G.value,n=q.value;if(c.addComment){let e=At.value.trim(),r=t.id;At.value=``,ot.value=ot.value.filter(e=>!n.some(t=>t.id===e.id)),q.value=[],c.addComment(r,e,n.length?{attachments:n}:{}).then(t=>{t||(At.value.trim()||(At.value=e),q.value=[...n,...q.value])});return}}let Nn=/^image\/(png|jpeg|webp|gif)$/;function Pn(e){return st.get(e.id)}async function Fn(e){if(c.fetchAttachment)for(let t of e){if(!Nn.test(t.contentType)||st.has(t.id))continue;let e=await c.fetchAttachment(t);e&&st.set(t.id,e)}}function In(){for(let e of st.values())URL.revokeObjectURL(e);st.clear()}let Ln=/^video\/(mp4|webm|ogg)$/,Rn=/^audio\/(mpeg|mp3|ogg|wav|x-wav|webm)$/,zn=/^(text\/|application\/(json|xml|xhtml\+xml|javascript|x-yaml|yaml)$)/;function Bn(e){let t=e.contentType||``;if(Nn.test(t))return`image`;if(t===`application/pdf`)return`pdf`;if(Ln.test(t))return`video`;if(Rn.test(t))return`audio`;let n=sr(t,e.name);return n?e.size<=20971520?n:null:zn.test(t)&&e.size<=kc?`text`:null}let Z=W(null),Vn=W(0),Hn=O(()=>{let e=Z.value?.office;return e?.mode===`sheet`?e.sheets[Vn.value]??e.sheets[0]??null:null}),Un=W(null),Wn=W(!1);ce([()=>Z.value?.office,Un],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),Wn.value=!1;try{await e.render(t)}catch{Wn.value=!0}}});async function Gn(e){let t=Bn(e),n=st.get(e.id),r=n??await c.fetchAttachment?.(e)??null;if(!r){K.value=[...K.value,{name:e.name,reason:m(`editor.downloadFailed`)}];return}if(!t){Kn(r,e.name,!n);return}let i,a;if(t===`text`)try{i=await(await fetch(r)).text()}catch{Kn(r,e.name,!n);return}else if(t===`sheet`||t===`doc`||t===`slides`)try{a=await cr(t,await(await fetch(r)).arrayBuffer(),e.name,e.contentType||``)}catch{Kn(r,e.name,!n);return}Jn(),Vn.value=0,Z.value={file:e,url:r,kind:t,text:i,office:a,cached:!!n}}function Kn(e,t,n){let r=document.createElement(`a`);r.href=e,r.download=t||`file`,r.rel=`noopener`,document.body.appendChild(r),r.click(),r.remove(),n&&setTimeout(()=>URL.revokeObjectURL(e),6e4)}function qn(){let e=Z.value;e&&Kn(e.url,e.file.name,!1)}function Jn(){let e=Z.value;Z.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Yn(e){nt.value=nt.value.filter((t,n)=>n!==e)}let Xn=v(new Set);function Zn(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let Qn=O(()=>c.members.map(e=>({id:e.userId,label:e.name})));function $n(e){return c.members.find(t=>t.userId===e)?.name??e}function er(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}function tr(e){return!!c.currentUserId&&e.authorUser?.id===c.currentUserId}function nr(e){return e.author===`ai`?null:e.authorUser?.id??null}function rr(e){return e.author===`ai`?m(`comments.authorAi`):tr(e)?m(`comments.authorYou`):e.authorUser?.name??m(`comments.authorYou`)}function ir(e){if(!G.value)return;let{colId:t,card:n}=G.value;G.value={colId:t,card:{...n,history:e}},b(y.value.map(r=>r.id===t?{...r,cards:r.cards.map(t=>t.id===n.id?{...t,history:e}:t)}:r))}function ar(e){Nt.value=e.id??null,Pt.value=e.detail??``}function or(){Nt.value=null,Pt.value=``}function lr(){let e=Nt.value,t=Pt.value.trim();if(c.readOnly||!e||!t||!G.value)return;let{card:n}=G.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),ir(r)}or()}function ur(e){return e.id??`${e.type}|${e.timestamp}`}function dr(e){return e.type===`comment`&&e.author===`ai`}function fr(e){return tr(e)||dr(e)}function pr(e){if(c.readOnly||!fr(e)||!G.value)return;let t=ur(e);d.require({message:m(`comments.confirmDeleteMessage`),header:m(`comments.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{let n=G.value;if(!n)return;let r=(n.card.history??[]).filter(e=>ur(e)!==t);c.removeComment&&e.id&&(c.removeComment(n.card.id,e.id),ir(r))}})}let mr=O(()=>c.columnSubscriptions!==void 0),hr=W(null),gr=[`entered`,`left`,`created`,`deleted`],_r=[`email`,`chat`],vr=[...gr],yr=[..._r],br=W([...vr]),xr=W([...yr]);function Sr(e){return c.columnSubscriptions?.[e]??null}function Cr(e){return Sr(e)!==null}let wr=v(new Set),Tr=new Map,Er=null;function Dr(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?wr.add(e):wr.delete(e)}function Or(e,t){let n=Tr.get(t);if(n&&n!==e&&Er?.unobserve(n),!(e instanceof HTMLElement)){Tr.delete(t),wr.delete(t);return}Tr.set(t,e),typeof ResizeObserver<`u`&&(Er??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of Tr)n===t.target&&Dr(e,n)}),Er.observe(e)),Dr(t,e)}ce(()=>y.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void g(()=>{for(let[e,t]of Tr)Dr(e,t)})),M(()=>Er?.disconnect());function kr(e,t){return{value:wr.has(e)?t:``,showDelay:0,hideDelay:0}}let Ar=W(null),jr=W(null);function Mr(e,t){jr.value=t,Ar.value?.toggle(e)}function Pr(e){let t=jr.value;t&&(Ar.value?.hide(),e(t.id))}function Fr(e){let t=Sr(e);br.value=t?[...t.kinds]:[...vr],xr.value=t?[...t.channels]:[...yr],hr.value=e}let Ir=O(()=>br.value.length>0&&xr.value.length>0);function Lr(){let e=hr.value;!e||!Ir.value||(u(`update-column-subscription`,{columnId:e,subscription:{kinds:[...br.value],channels:[...xr.value]}}),hr.value=null)}function Rr(){let e=hr.value;e&&(u(`update-column-subscription`,{columnId:e,subscription:null}),hr.value=null)}let zr=O(()=>c.columns.find(e=>e.id===hr.value)??null),Br=v(new Set),Vr=v(new Set),Hr=O(()=>`runeya.kanban.collapsedColumns.${c.name}`),Ur=O(()=>`runeya.kanban.expandedColumns.${c.name}`);function Wr(e,t){t.clear();try{let n=window.localStorage.getItem(e);if(!n)return;let r=JSON.parse(n);if(Array.isArray(r))for(let e of r)typeof e==`string`&&t.add(e)}catch{}}function Gr(){Wr(Hr.value,Br),Wr(Ur.value,Vr)}function Kr(){try{window.localStorage.setItem(Hr.value,JSON.stringify([...Br])),window.localStorage.setItem(Ur.value,JSON.stringify([...Vr]))}catch{}}Gr(),ce(Hr,Gr);function qr(e){let t=c.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function Jr(e){return Br.has(e)?!0:qr(e)&&!Vr.has(e)}function Yr(e){Jr(e)?(Br.delete(e),qr(e)&&Vr.add(e)):(Vr.delete(e),qr(e)||Br.add(e)),Kr()}let Xr=O(()=>(G.value?.card.history??[]).filter(e=>e.type===`comment`));ce([kt,Xr],([e])=>{e===`comments`&&(Ft(),Jc())}),ce(()=>G.value?.card.id,()=>{zc.clear(),Bc.clear()});function Ic(e){if(/^(https?:|mailto:)/i.test(e)){window.open(e,`_blank`,`noopener,noreferrer`);return}e.startsWith(`#`)||e.startsWith(`/`)&&window.open(e,`_blank`,`noopener,noreferrer`)}function Lc(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Ic(t),!0):!1}function Rc(e){return e?f.sanitize(re.parse(e,{async:!1}),{ALLOWED_TAGS:[`p`,`br`,`strong`,`em`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`h1`,`h2`,`h3`,`h4`,`a`,`span`],ALLOWED_ATTR:[`href`,`target`,`rel`,`class`]}):``}let zc=v(new Set),Bc=v(new Set);function Vc(e,t){return e.id??`i${t}`}function Hc(e,t){return zc.has(Vc(e,t))}function Uc(e,t){let n=Vc(e,t);return Bc.has(n)||zc.has(n)}function Wc(e,t){let n=Vc(e,t);zc.has(n)?zc.delete(n):zc.add(n)}function Gc(e,t,n){Lc(n)||Xc(e)||Uc(e,t)&&(n.stopPropagation(),Wc(e,t))}let Kc=new Map;function qc(e,t,n){let r=Vc(t,n);if(!(e instanceof HTMLElement)){Kc.delete(r);return}Kc.set(r,e),!zc.has(r)&&(e.scrollHeight-e.clientHeight>1?Bc.add(r):Bc.delete(r))}async function Jc(){await g();for(let[e,t]of Kc)zc.has(e)||(t.scrollHeight-t.clientHeight>1?Bc.add(e):Bc.delete(e))}function Yc(e){return c.resolveConversationId?c.resolveConversationId(e):e.conversationId??null}function Xc(e){return!!Yc(e)}let Zc=O(()=>{let e=G.value?.card;if(!e)return[];let t=e.conversationEvents??e.history??[],n=new Set,r=[];for(let e of t){if(e.type!==`conversation_started`&&e.type!==`scenario_started`)continue;let t=Yc(e);if(!t||n.has(t))continue;n.add(t);let i=e.detail??``,a=i.includes(` — `)?i.slice(0,i.lastIndexOf(` — `)).trim():``,o=tl(e.timestamp);r.push({id:t,label:o,title:a||el.value[e.type]})}return r});function Qc(e){let t=Yc(e);t&&u(`open-conversation`,t)}let $c={created:`pi pi-plus-circle`,edited:`pi pi-pencil`,moved:`pi pi-arrow-right-arrow-left`,image_added:`pi pi-image`,image_removed:`pi pi-trash`,title_changed:`pi pi-tag`,conversation_started:`pi pi-comments`,scenario_started:`pi pi-sitemap`,comment:`pi pi-comment`,archived:`pi pi-inbox`,unarchived:`pi pi-replay`},el=O(()=>({created:m(`history.events.created`),edited:m(`history.events.edited`),moved:m(`history.events.moved`),image_added:m(`history.events.image_added`),image_removed:m(`history.events.image_removed`),title_changed:m(`history.events.title_changed`),archived:m(`history.events.archived`),unarchived:m(`history.events.unarchived`),conversation_started:m(`history.events.conversation_started`),scenario_started:m(`history.events.scenario_started`),comment:m(`history.events.comment`)}));function tl(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}`}function nl(e){return new Promise(t=>{let n=new FileReader;n.onload=()=>t(typeof n.result==`string`?n.result:null),n.onerror=()=>t(null),n.readAsDataURL(e)})}async function rl(e){let t=[];for(let n of e){if(n.size===0){K.value=[...K.value,{name:n.name,reason:m(`editor.uploadEmpty`)}];continue}if(n.size>Ac){K.value=[...K.value,{name:n.name,reason:m(`editor.uploadTooLarge`)}];continue}if(!c.uploadImage){K.value=[...K.value,{name:n.name,reason:m(`editor.uploadUnavailable`)}];continue}let e=`${at+=1}`;it.value=[...it.value,{key:e,name:n.name,ratio:0}];try{let r=await c.uploadImage(n,t=>{it.value=it.value.map(n=>n.key===e?{...n,ratio:t}:n)});r?(t.push(r),ot.value=[...ot.value,r]):K.value=[...K.value,{name:n.name,reason:m(`editor.uploadFailed`)}]}finally{it.value=it.value.filter(t=>t.key!==e)}}return t}async function il(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,rt.value=!0,K.value=[];try{let e=await rl(n);q.value=[...q.value,...e],Fn(e)}finally{rt.value=!1}}async function al(e,t){if(!(c.readOnly||!e.length)){rt.value=!0,K.value=[];try{let n=await rl(e);if(!n.length)return;t===`comment`?q.value=[...q.value,...n]:nt.value=[...nt.value,...n],Fn(n)}finally{rt.value=!1}}}function ol(e){q.value=q.value.filter((t,n)=>n!==e)}async function sl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,rt.value=!0,K.value=[],it.value=[];try{if(c.uploadImage){let e=await rl(n);nt.value=[...nt.value,...e],Fn(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>jc){K.value=[...K.value,{name:e.name,reason:m(`editor.uploadUnavailable`)}];continue}let t=await nl(e);if(!t){K.value=[...K.value,{name:e.name,reason:m(`editor.uploadFailed`)}];continue}et.value=[...et.value,t],jt.value?.insertImage(t)}}finally{rt.value=!1}}function cl(e){d.require({message:m(`editor.confirmRemoveImageMessage`),header:m(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{et.value=et.value.filter((t,n)=>n!==e)}})}let ll=W(null),$=W(null),ul=null,dl=null,fl=`before`,pl=null,ml=`before`,hl=null,gl=null,_l=null,vl=[`kb-card--drop-before`,`kb-card--drop-after`],yl=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function bl(e,t){hl&&hl!==e&&hl.classList.remove(...vl),hl=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function xl(e){gl&&gl!==e&&gl.classList.remove(`kb-col--dragover`),gl=e,e?.classList.add(`kb-col--dragover`)}function Sl(e,t){_l&&_l!==e&&_l.classList.remove(...yl),_l=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function Cl(){bl(null,`before`),xl(null),Sl(null,`before`)}function wl(e){return jl.value?.querySelector(`.kb-col[data-col-id="${CSS.escape(e)}"]`)??null}let Tl=W(null),El=W(null),Dl=W(!1),Ol=null,kl=null,Al=null,jl=W(null);function Ml(e,t){Ol&&cancelAnimationFrame(Ol);let n=jl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Pc&&n.scrollLeft>0?(n.scrollLeft-=Fc,i=!0):e>t.right-Pc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Fc,i=!0)}El.value&&(El.value.style.display=`none`);let a=document.elementFromPoint(e,t);if(El.value&&(El.value.style.display=``),a){let e=a.closest(`.kb-col__cards`);if(e){let n=e.getBoundingClientRect();t<n.top+Pc&&e.scrollTop>0?(e.scrollTop-=Fc,i=!0):t>n.bottom-Pc&&e.scrollTop<e.scrollHeight-e.clientHeight&&(e.scrollTop+=Fc,i=!0)}}Ol=i&&Dl.value?requestAnimationFrame(r):null};Ol=requestAnimationFrame(r)}function Nl(){Ol&&=(cancelAnimationFrame(Ol),null)}function Pl(){kl&&=(clearTimeout(kl),null),Al=null}function Fl(){if(!Al)return;let{type:e,colId:t,cardId:n,el:r}=Al;Tl.value=e,Dl.value=!0,e===`card`&&n?(ll.value={colId:t,cardId:n},$.value=null):($.value=t,ll.value=null),navigator.vibrate&&navigator.vibrate(30);let i=e===`card`?r.closest(`.kb-card`):r.closest(`.kb-col`);if(i){let e=i.cloneNode(!0);e.style.cssText=`position:fixed;pointer-events:none;z-index:9999;opacity:0.8;width:${i.getBoundingClientRect().width}px;transform:rotate(2deg);`,document.body.appendChild(e),El.value=e}Al=null}function Il(e,t,n,r){if(c.readOnly)return;Pl();let i=e.touches[0],a=i.clientX,o=i.clientY;Al={type:t,colId:n,cardId:r,el:e.target};let s=e=>{let t=e.touches[0],n=t.clientX-a,r=t.clientY-o;Math.sqrt(n*n+r*r)>Nc&&(Pl(),document.removeEventListener(`touchmove`,s))};document.addEventListener(`touchmove`,s,{passive:!0}),kl=setTimeout(()=>{document.removeEventListener(`touchmove`,s),Fl()},Mc)}function Ll(e){if(!Dl.value)return;e.preventDefault();let t=e.touches[0];El.value&&(El.value.style.left=`${t.clientX-40}px`,El.value.style.top=`${t.clientY-20}px`),Ml(t.clientX,t.clientY),El.value&&(El.value.style.display=`none`);let n=document.elementFromPoint(t.clientX,t.clientY);if(El.value&&(El.value.style.display=``),n){if(Tl.value===`card`){let e=n.closest(`.kb-card`),r=n.closest(`.kb-col`);if(e&&r){let n=e.dataset.cardId||``,i=r.dataset.colId||``;if(n&&i){let a=e.getBoundingClientRect(),o=t.clientY-a.top<a.height/2?`before`:`after`;ul!==i&&(ul=i,xl(r)),(dl!==n||fl!==o)&&(dl=n,fl=o,bl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(ul=e,dl=null,xl(r),bl(null,`before`))}}else if(Tl.value===`column`){let e=n.closest(`.kb-col`);if(e){let n=e.dataset.colId||``;if(n&&n!==$.value){let r=e.getBoundingClientRect(),i=t.clientX-r.left<r.width/2?`before`:`after`;(pl!==n||ml!==i)&&(pl=n,ml=i,Sl(e,i))}}}}}function Rl(){Pl(),Nl(),El.value&&=(El.value.remove(),null),Dl.value&&(Tl.value===`card`&&ul?Hl(ul):Tl.value===`column`&&pl&&ql(pl)),Tl.value=null,Dl.value=!1,Bl()}function zl(e,t,n){c.readOnly||(ll.value={colId:t,cardId:n},$.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`card`)))}function Bl(){ll.value=null,ul=null,dl=null,$.value=null,pl=null,Cl()}function Vl(e,t,n){if(!ll.value)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let r=e.currentTarget,i=r.getBoundingClientRect(),a=e.clientY-i.top<i.height/2?`before`:`after`;ul!==t&&(ul=t,xl(r.closest(`.kb-col`))),!(dl===n&&fl===a)&&(dl=n,fl=a,bl(r,a))}function Hl(e){if(c.readOnly)return;if($.value){ql(e);return}if(!ll.value)return;let{colId:t,cardId:n}=ll.value,r=qe(t),i=qe(e),a=null,o=y.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};!l.value&&t!==e&&Je(n,`moved`,`"${r}" → "${i}"`),o=o.map(t=>{if(t.id!==e)return t;let r=[...t.cards].sort((e,t)=>e.order-t.order),i=r.length;if(dl){let e=r.findIndex(e=>e.id===dl);e!==-1&&(i=fl===`before`?e:e+1)}return s=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(ll.value=null,ul=null,dl=null,Cl(),c.moveCard&&a){y.value=o,c.moveCard(a.id,e,s);return}b(o,a?{kind:`card-move`,cardId:a.id,toColumnId:e,toIndex:s}:void 0)}function Ul(e,t){!ll.value&&!$.value||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),ll.value&&(ul!==t&&(ul=t,xl(wl(t))),dl!==null&&(dl=null,bl(null,`before`))))}function Wl(e){ul===e&&(ul=null,xl(null))}function Gl(e,t){c.readOnly||($.value=t,ll.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`column`)))}function Kl(e,t){if(!$.value||$.value===t)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let n=e.currentTarget,r=n.getBoundingClientRect(),i=e.clientX-r.left<r.width/2?`before`:`after`;pl===t&&ml===i||(pl=t,ml=i,Sl(n,i))}function ql(e){if(c.readOnly||!$.value||$.value===e){$.value=null,pl=null,Cl();return}let t=[...y.value].sort((e,t)=>e.order-t.order),n=t.findIndex(e=>e.id===$.value),r=t.splice(n,1)[0],i=t.findIndex(t=>t.id===e);t.splice(ml===`before`?i:i+1,0,r),$.value=null,pl=null,Cl(),b(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return n({openCardEditor:Vt,closeCardEditor:Yt,saveCard:Xt,editingCard:G}),(e,n)=>{let s=ae(`tooltip`);return B(),L(`div`,{ref_key:`rootEl`,ref:jl,class:`kb`},[o(`header`,Qr,[T(p(k),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:n[0]||=e=>u(`back`)}),H((B(),L(`h1`,{class:`kb-header__title`,ref:e=>Or(e,`board`)},[x(r(t.name),1)])),[[s,kr(`board`,t.name),void 0,{bottom:!0}]]),o(`span`,$r,[n[59]||=o(`i`,{class:`pi pi-search`},null,-1),T(p(be),{modelValue:S.value,"onUpdate:modelValue":n[1]||=e=>S.value=e,placeholder:p(m)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),S.value?(B(),i(p(k),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:n[2]||=e=>S.value=``})):w(``,!0),t.searchTruncated?(B(),L(`small`,ei,r(p(m)(`searchTruncated`)),1)):w(``,!0)]),H(T(p(k),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:R.value?String(R.value):void 0,"badge-severity":`info`,class:V({"kb-header__filter--on":R.value}),onClick:n[3]||=e=>D.value=!0},null,8,[`badge`,`class`]),[[s,p(m)(`filters.open`),void 0,{bottom:!0}]]),H(T(p(k),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:On},null,512),[[s,p(m)(`archive.open`),void 0,{bottom:!0}]]),t.readOnly?w(``,!0):H((B(),i(p(k),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:n[4]||=e=>De.value=!0},null,512)),[[s,p(m)(`groups.title`),void 0,{bottom:!0}]]),t.readOnly?(B(),L(`span`,ti,[n[60]||=o(`i`,{class:`pi pi-lock`},null,-1),x(` `+r(p(m)(`readOnly.badge`)),1)])):w(``,!0),z(e.$slots,`header-actions`,{},void 0,!0)]),z(e.$slots,`banner`,{},void 0,!0),o(`div`,ni,[Pe.value?(B(),L(`div`,{key:0,class:`kb-bands`,style:a({height:`${Pe.value}px`})},[(B(!0),L(E,null,P(We.value,e=>(B(),L(`div`,{key:e.id,class:`kb-band`,style:a({left:`${e.left}px`,width:`${e.width}px`,top:`${e.top}px`,"--kb-band-color":e.color||`var(--p-text-muted-color)`})},[o(`span`,ri,r(e.title),1),o(`span`,ii,r(e.count),1)],4))),128))],4)):w(``,!0),o(`div`,{ref_key:`boardEl`,ref:Ie,class:`kb-board`},[(B(!0),L(E,null,P(Ee.value,c=>(B(),L(`div`,{key:c.id,class:V([`kb-col`,{"kb-col--collapsed":Jr(c.id),"kb-col--dragging":$.value===c.id}]),"data-col-id":c.id,draggable:!t.readOnly,onDragstart:e=>Gl(e,c.id),onDragover:e=>{Kl(e,c.id),Ul(e,c.id)},onDragleave:e=>Wl(c.id),onDrop:I(e=>Hl(c.id),[`prevent`]),onDragend:Bl,onTouchstart:e=>Il(e,`column`,c.id),onTouchmove:Ll,onTouchend:Rl,onContextmenu:n[8]||=I(()=>{},[`prevent`])},[Jr(c.id)?(B(),L(`button`,{key:0,class:V([`kb-col__strip`,{"kb-col__strip--empty":c.cards.length===0}]),title:p(m)(`column.expand`),onClick:e=>Yr(c.id)},[n[61]||=o(`i`,{class:`pi pi-angle-double-right`},null,-1),o(`span`,si,r(c.cards.length),1),Cr(c.id)?(B(),L(`i`,ci)):w(``,!0),H((B(),L(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>Or(e,`strip:${c.id}`)},[x(r(c.title),1)])),[[s,kr(`strip:${c.id}`,c.title),void 0,{right:!0}]])],10,oi)):(B(),L(`div`,li,[H(o(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>Or(e,`col:${c.id}`),value:c.title,readonly:t.readOnly,draggable:`false`,onBlur:e=>Ze(c.id,e.target.value),onKeyup:n[5]||=U(e=>e.target.blur(),[`enter`]),onMousedown:n[6]||=I(()=>{},[`stop`])},null,40,ui),[[s,kr(`col:${c.id}`,c.title),void 0,{bottom:!0}]]),o(`div`,di,[mr.value&&Cr(c.id)?H((B(),i(p(k),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>Fr(c.id)},null,8,[`onClick`])),[[s,p(m)(`column.unsubscribe`),void 0,{bottom:!0}]]):w(``,!0),H(T(p(k),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:V([`kb-col__menu-btn`,{"kb-col__menu-btn--open":jr.value?.id===c.id}]),onClick:e=>Mr(e,c)},null,8,[`class`,`onClick`]),[[s,p(m)(`column.menu`),void 0,{bottom:!0}]]),o(`span`,fi,r(c.cards.length),1)])])),!t.readOnly&&!Jr(c.id)?(B(),L(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>Rt(c.id,`top`)},[n[62]||=o(`i`,{class:`pi pi-plus`},null,-1),x(` `+r(p(m)(`column.addCard`)),1)],8,pi)):w(``,!0),Jr(c.id)?w(``,!0):(B(),L(`div`,mi,[(B(!0),L(E,null,P(c.cards,r=>(B(),L(`div`,{key:r.id,class:V([`kb-card`,{"kb-card--colored":r.color}]),style:a(r.color?{borderTopColor:r.color}:void 0),"data-card-id":r.id,draggable:!t.readOnly,onDragstart:I(e=>zl(e,c.id,r.id),[`stop`]),onDragover:e=>Vl(e,c.id,r.id),onDragend:Bl,onTouchstart:I(e=>Il(e,`card`,c.id,r.id),[`stop`]),onTouchmove:Ll,onTouchend:Rl,onContextmenu:n[7]||=I(()=>{},[`prevent`]),onClick:e=>Vt(c.id,r)},[T(ln,{card:r,t:p(m),"avatar-url":t.avatarUrl,"child-count":en(r.id),"has-parent":!!Qt(r.id)},{actions:F(()=>[z(e.$slots,`card-actions`,{card:r,column:c},void 0,!0),t.readOnly?w(``,!0):H((B(),L(`button`,{key:0,class:`kb-card__delete`,onClick:I(e=>X(c.id,r.id),[`stop`])},[...n[63]||=[o(`i`,{class:`pi pi-inbox`},null,-1)]],8,gi)),[[s,p(m)(`archive.cardTooltip`),void 0,{bottom:!0}]]),t.readOnly?w(``,!0):H((B(),L(`button`,{key:1,class:`kb-card__delete`,onClick:I(e=>jn(c.id,r.id),[`stop`])},[...n[64]||=[o(`i`,{class:`pi pi-times`},null,-1)]],8,_i)),[[s,p(m)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:F(()=>[z(e.$slots,`card-badges`,{card:r},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,hi))),128)),c.cards.length===0?(B(),L(`div`,vi,r(p(m)(`column.dropZone`)),1)):w(``,!0)])),!t.readOnly&&!Jr(c.id)?(B(),L(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>Rt(c.id)},[n[65]||=o(`i`,{class:`pi pi-plus`},null,-1),x(` `+r(p(m)(`column.addCard`)),1)],8,yi)):w(``,!0)],42,ai))),128)),T(p(Me),{visible:hr.value!==null,modal:``,header:p(m)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":n[12]||=e=>{e||(hr.value=null)}},{footer:F(()=>[Cr(hr.value??``)?(B(),i(p(k),{key:0,label:p(m)(`column.unsubscribe`),severity:`danger`,text:``,onClick:Rr},null,8,[`label`])):w(``,!0),T(p(k),{label:p(m)(`editor.cancel`),text:``,onClick:n[11]||=e=>hr.value=null},null,8,[`label`]),T(p(k),{label:Cr(hr.value??``)?p(m)(`editor.save`):p(m)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Ir.value,onClick:Lr},null,8,[`label`,`disabled`])]),default:F(()=>[o(`p`,bi,r(p(m)(`column.subscribeIntro`,{column:zr.value?.title??``})),1),o(`p`,xi,r(p(m)(`column.subscribeEventsLabel`)),1),o(`div`,Si,[(B(),L(E,null,P(gr,e=>o(`label`,{key:e,class:`kb-subscribe__option`},[T(p(Ne),{modelValue:br.value,"onUpdate:modelValue":n[9]||=e=>br.value=e,value:e},null,8,[`modelValue`,`value`]),o(`span`,null,r(p(m)(`column.subscribeKind.${e}`)),1)])),64))]),o(`p`,Ci,[n[66]||=o(`i`,{class:`pi pi-times`},null,-1),x(` `+r(p(m)(`column.subscribeNotReorder`)),1)]),o(`p`,wi,r(p(m)(`column.subscribeChannelsLabel`)),1),o(`div`,Ti,[(B(),L(E,null,P(_r,e=>o(`label`,{key:e,class:`kb-subscribe__option`},[T(p(Ne),{modelValue:xr.value,"onUpdate:modelValue":n[10]||=e=>xr.value=e,value:e},null,8,[`modelValue`,`value`]),o(`span`,null,r(p(m)(`column.subscribeChannel.${e}`)),1)])),64))]),o(`p`,Ei,r(p(m)(`column.subscribeOwnActions`)),1)]),_:1},8,[`visible`,`header`]),T(p(Me),{visible:It.value!==null,header:p(m)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":n[14]||=e=>{e||(It.value=null)}},{default:F(()=>[o(`p`,Di,r(p(m)(`templates.pickIntro`)),1),o(`div`,Oi,[o(`button`,{class:`kb-tpl-option`,onClick:n[13]||=e=>zt(null)},[n[67]||=o(`i`,{class:`pi pi-file`},null,-1),x(` `+r(p(m)(`templates.blank`)),1)]),(B(!0),L(E,null,P(t.templates,e=>(B(),L(`button`,{key:e.id,class:`kb-tpl-option`,onClick:t=>zt(e)},[n[68]||=o(`i`,{class:`pi pi-file-edit`},null,-1),x(` `+r(e.name),1)],8,ki))),128))])]),_:1},8,[`visible`,`header`]),t.readOnly?w(``,!0):(B(),L(`div`,Ai,[C.value?(B(),L(`div`,ji,[T(p(be),{modelValue:ee.value,"onUpdate:modelValue":n[15]||=e=>ee.value=e,placeholder:p(m)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[U(Ye,[`enter`]),n[16]||=U(e=>C.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),o(`div`,Mi,[T(p(k),{label:p(m)(`addColumnButton`),size:`small`,disabled:!ee.value.trim(),onClick:Ye},null,8,[`label`,`disabled`]),T(p(k),{icon:`pi pi-times`,text:``,size:`small`,onClick:n[17]||=e=>C.value=!1})])])):(B(),L(`button`,{key:1,class:`kb-add-col__trigger`,onClick:n[18]||=e=>C.value=!0},[n[69]||=o(`i`,{class:`pi pi-plus`},null,-1),x(` `+r(p(m)(`addColumn`)),1)]))]))],512)]),T(Zr,{visible:De.value,"onUpdate:visible":n[19]||=e=>De.value=e,columns:y.value,groups:t.columnGroups,"read-only":t.readOnly,t:p(m),onIntent:n[20]||=e=>u(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),T(p(te),{visible:D.value,"onUpdate:visible":n[29]||=e=>D.value=e,position:`right`,header:p(m)(`filters.title`),class:`kb-filters`},{footer:F(()=>[T(p(k),{label:p(m)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!R.value,onClick:_e},null,8,[`label`,`disabled`])]),default:F(()=>[o(`div`,Ni,[o(`section`,Pi,[o(`span`,Fi,r(p(m)(`filters.priority`)),1),ge.value?(B(),L(E,{key:1},[o(`div`,Ii,[(B(),L(E,null,P([`lte`,`eq`,`gte`],e=>H(o(`button`,{key:e,class:V([`kb-ops__btn`,{"kb-ops__btn--on":A.value===e}]),onClick:t=>{A.value=e,j.value===null&&(j.value=5)}},[x(r(e===`lte`?`≤`:e===`eq`?`=`:`≥`),1)],10,Li),[[s,{value:p(m)(`filters.priorityOp.${e}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),H((B(),L(`button`,{class:V([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":A.value===`none`}]),onClick:n[22]||=e=>{A.value=A.value===`none`?`gte`:`none`,j.value=A.value===`none`?null:5}},[...n[71]||=[o(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[s,{value:p(m)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),A.value===`none`?w(``,!0):(B(),L(`div`,Ri,[T(p(tt),{"model-value":j.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":n[23]||=e=>j.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),o(`span`,zi,r(j.value),1)])),o(`button`,{class:`kb-prio__set`,onClick:n[24]||=e=>{j.value=null,A.value=`gte`}},[n[72]||=o(`i`,{class:`pi pi-times`},null,-1),x(` `+r(p(m)(`filters.clearOne`)),1)]),A.value===`none`?w(``,!0):(B(),L(`p`,Bi,r(p(m)(`filters.priorityHint`)),1))],64)):(B(),L(`button`,{key:0,class:`kb-prio__set`,onClick:n[21]||=e=>j.value=5},[n[70]||=o(`i`,{class:`pi pi-plus`},null,-1),x(` `+r(p(m)(`filters.priorityAdd`)),1)]))]),o(`section`,Vi,[o(`span`,Hi,r(p(m)(`filters.colors`)),1),o(`div`,Ui,[H((B(),L(`button`,{class:V([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":N.value.includes(``)}]),onClick:n[25]||=e=>N.value=N.value.includes(``)?N.value.filter(e=>e!==``):[...N.value,``]},[...n[73]||=[o(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[s,{value:p(m)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(B(),L(E,null,P(Et,e=>H(o(`button`,{key:e,class:V([`kb-colors__swatch`,{"kb-colors__swatch--on":N.value.includes(e)}]),style:a({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))])]),o(`section`,Gi,[o(`span`,Ki,r(p(m)(`filters.groups`)),1),T(p(Fe),{modelValue:ye.value,"onUpdate:modelValue":n[26]||=e=>ye.value=e,options:xe.value,placeholder:p(m)(`filters.groupsPlaceholder`),display:`chip`,filter:xe.value.length>6,class:`kb-filters__control`},{option:F(({option:e})=>[o(`span`,{class:V([`kb-void`,{"kb-void--is":e===Q}])},[e===Q?(B(),L(`i`,qi)):w(``,!0),x(` `+r(e===Q?p(m)(`filters.noGroups`):e),1)],2)]),chip:F(({value:e})=>[o(`span`,{class:V([`kb-void`,{"kb-void--is":e===Q}])},r(e===Q?p(m)(`filters.noGroups`):e),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),o(`section`,Ji,[o(`span`,Yi,r(p(m)(`filters.assignees`)),1),T(p(Fe),{modelValue:Se.value,"onUpdate:modelValue":n[27]||=e=>Se.value=e,options:Ce.value,"option-label":`name`,"option-value":`userId`,placeholder:p(m)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:F(({option:e})=>[o(`span`,{class:V([`kb-void`,{"kb-void--is":e.userId===Q}])},[e.userId===Q?(B(),L(`i`,Xi)):w(``,!0),x(` `+r(e.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),o(`section`,Zi,[o(`span`,Qi,r(p(m)(`filters.family`)),1),T(p(Fe),{modelValue:we.value,"onUpdate:modelValue":n[28]||=e=>we.value=e,options:Te.value,"option-label":`title`,"option-value":`id`,placeholder:p(m)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:F(({option:e})=>[o(`span`,{class:V([`kb-void`,{"kb-void--is":e.id===Q}])},[e.id===Q?(B(),L(`i`,$i)):w(``,!0),o(`span`,null,r(e.title),1),e.column?(B(),L(`span`,ea,r(e.column),1)):w(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),o(`p`,ta,r(p(m)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),T(p(te),{visible:Y.value,"onUpdate:visible":n[34]||=e=>Y.value=e,position:`right`,header:p(m)(`archive.title`),class:`kb-archive`},{default:F(()=>[o(`p`,na,r(p(m)(`archive.hint`)),1),o(`span`,ra,[n[74]||=o(`i`,{class:`pi pi-search`},null,-1),T(p(be),{modelValue:vn.value,"onUpdate:modelValue":n[30]||=e=>vn.value=e,placeholder:p(m)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),vn.value?(B(),i(p(k),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:n[31]||=e=>vn.value=``})):w(``,!0),H(T(p(k),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:R.value?String(R.value):void 0,"badge-severity":`info`,class:V({"kb-header__filter--on":R.value}),onClick:n[32]||=e=>D.value=!0},null,8,[`badge`,`class`]),[[s,p(m)(`filters.open`),void 0,{bottom:!0}]])]),T(p(ie),{modelValue:yn.value,"onUpdate:modelValue":n[33]||=e=>yn.value=e,options:bn.value,"option-label":`title`,"option-value":`id`,size:`small`,class:`kb-archive__column`,"aria-label":p(m)(`archive.columnFilter`)},null,8,[`modelValue`,`options`,`aria-label`]),t.loadingArchive?(B(),L(`p`,ia,r(p(m)(`archive.loading`)),1)):t.archivedCards.length?Tn.value.length?(B(),L(E,{key:3},[En.value?(B(),L(`p`,sa,[x(r(p(m)(`archive.filteredOut`,{count:En.value}))+` `,1),o(`button`,{class:`kb-archive__reset`,onClick:_e},r(p(m)(`filters.reset`)),1)])):w(``,!0),t.archiveTruncated?(B(),L(`p`,ca,[n[75]||=o(`i`,{class:`pi pi-exclamation-circle`},null,-1),x(` `+r(p(m)(`archive.truncated`)),1)])):w(``,!0),o(`ul`,la,[(B(!0),L(E,null,P(Tn.value,i=>(B(),L(`li`,{key:i.id,class:V([`kb-card kb-archive__card`,{"kb-card--colored":i.color}]),style:a(i.color?{borderTopColor:i.color}:void 0),onClick:e=>wn(i)},[T(ln,{card:i,t:p(m),"avatar-url":t.avatarUrl,"child-count":en(i.id),"has-parent":!!Qt(i.id)},{actions:F(()=>[t.readOnly?w(``,!0):H((B(),L(`button`,{key:0,class:`kb-card__delete`,onClick:I(e=>An(i.id),[`stop`])},[...n[76]||=[o(`i`,{class:`pi pi-replay`},null,-1)]],8,da)),[[s,p(m)(`archive.restore`),void 0,{left:!0}]])]),badges:F(()=>[z(e.$slots,`card-badges`,{card:i},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),o(`div`,fa,[i.archivedFrom?(B(),L(`span`,pa,[n[77]||=o(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),x(` `+r(p(m)(`archive.fromColumn`,{column:i.archivedFrom.columnTitle})),1)])):w(``,!0),i.archivedAt?(B(),L(`span`,ma,r(new Date(i.archivedAt).toLocaleDateString()),1)):w(``,!0)])],14,ua))),128))])],64)):(B(),L(`p`,oa,r(p(m)(`archive.allFiltered`,{count:En.value})),1)):(B(),L(`p`,aa,r(vn.value||yn.value?p(m)(`archive.noMatch`):p(m)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),T(p(Me),{visible:!!G.value,header:Qe.value.trim()||p(m)(`card.untitled`),modal:!0,"dismissable-mask":!Wt.value,class:V([`kb-card-dialog`,{"kb-card-dialog--colored":Tt.value}]),style:a({width:`min(1400px, 92vw)`,height:`90vh`,...Tt.value?{"--kb-card-color":Tt.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":n[53]||=e=>{e||Gt()}},{footer:F(()=>[o(`div`,Xs,[Wt.value&&!t.readOnly?(B(),L(`span`,Zs,[n[105]||=o(`i`,{class:`pi pi-exclamation-circle`},null,-1),x(` `+r(p(m)(`editor.unsavedHint`)),1)])):w(``,!0),T(p(k),{label:p(m)(`editor.close`),text:``,onClick:Gt},null,8,[`label`]),t.readOnly?w(``,!0):(B(),i(p(k),{key:1,label:p(m)(`editor.save`),icon:`pi pi-check`,onClick:Xt},null,8,[`label`]))])]),default:F(()=>[G.value?(B(),L(`div`,ha,[o(`div`,ga,[T(p(ze),{value:kt.value,"onUpdate:value":n[42]||=e=>kt.value=e},{default:F(()=>[T(p(Le),null,{default:F(()=>[T(p(Be),{value:`edit`},{default:F(()=>[n[78]||=o(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),x(r(p(m)(`editor.tabs.edit`)),1)]),_:1}),dn.value||pn.value?(B(),i(p(Be),{key:0,value:`relations`},{default:F(()=>[n[79]||=o(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),x(r(p(m)(`editor.tabs.relations`,{count:pn.value})),1)]),_:1})):w(``,!0),T(p(Be),{value:`comments`},{default:F(()=>[n[80]||=o(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),x(r(p(m)(`editor.tabs.comments`,{count:Xr.value.length||(G.value.card.commentCount??0)})),1)]),_:1}),T(p(Be),{value:`history`},{default:F(()=>[n[81]||=o(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),x(r(p(m)(`editor.tabs.history`,{count:G.value.card.history?.length??0})),1)]),_:1})]),_:1}),T(p(Re),null,{default:F(()=>[T(p(Ve),{value:`edit`},{default:F(()=>[o(`div`,_a,[o(`div`,va,[o(`label`,ya,r(p(m)(`editor.titleLabel`)),1),T(p(be),{id:`kanban-card-title`,modelValue:Qe.value,"onUpdate:modelValue":n[35]||=e=>Qe.value=e,disabled:t.readOnly,autofocus:``,onKeyup:U(Xt,[`enter`])},null,8,[`modelValue`,`disabled`])]),o(`div`,ba,[o(`label`,xa,r(p(m)(`editor.contentLabel`)),1),T(p(Ue),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:jt,modelValue:$e.value,"onUpdate:modelValue":n[36]||=e=>$e.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!t.readOnly,placeholder:p(m)(`editor.contentPlaceholder`),"handle-files":e=>al(e,`card`),mentions:Qn.value,"attachment-src":st,onLinkClick:Ic},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),o(`div`,Sa,[o(`label`,Ca,r(p(m)(`editor.filesLabel`)),1),et.value.length?(B(),L(`div`,wa,[(B(!0),L(E,null,P(et.value,(e,r)=>(B(),L(`div`,{key:r,class:`kb-dialog__thumb`},[o(`img`,{src:e,alt:`attachment`},null,8,Ta),t.readOnly?w(``,!0):(B(),L(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>cl(r)},[...n[82]||=[o(`i`,{class:`pi pi-times`},null,-1)]],8,Ea))]))),128))])):w(``,!0),T(_n,{files:nt.value,preview:Pn,removable:!t.readOnly,"remove-label":p(m)(`editor.removeFile`),onOpen:Gn,onRemove:Yn},null,8,[`files`,`removable`,`remove-label`]),T(Nr,{queue:it.value,errors:K.value,uploading:rt.value,"uploading-label":p(m)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),t.readOnly?w(``,!0):(B(),L(`label`,Da,[n[83]||=o(`i`,{class:`pi pi-upload`},null,-1),x(` `+r(p(m)(`editor.attachFile`))+` `,1),o(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:sl},null,32)]))])])]),_:1}),T(p(Ve),{value:`relations`},{default:F(()=>[o(`div`,Oa,[J.value||dn.value?(B(),L(`section`,ka,[o(`h4`,Aa,[n[84]||=o(`i`,{class:`pi pi-arrow-up`},null,-1),x(` `+r(p(m)(`editor.parentLabel`)),1)]),J.value?(B(),L(`table`,ja,[o(`thead`,null,[o(`tr`,null,[o(`th`,null,r(p(m)(`editor.relationsColCard`)),1),o(`th`,null,r(p(m)(`editor.relationsColBoard`)),1),o(`th`,null,r(p(m)(`editor.relationsColColumn`)),1),o(`th`,Ma,r(p(m)(`editor.relationsColAssignees`)),1),o(`th`,Na,r(p(m)(`editor.relationsColComments`)),1),o(`th`,Pa,r(p(m)(`editor.relationsColActions`)),1)])]),o(`tbody`,null,[o(`tr`,null,[o(`td`,Fa,[H((B(),L(`span`,{class:`kb-rel__card-title`,ref:e=>Or(e,`rel:${J.value?.cardId??``}`)},[x(r(J.value.title),1)])),[[s,kr(`rel:${J.value.cardId}`,J.value.title),void 0,{top:!0}]])]),o(`td`,{class:V([`kb-rel__board`,{"kb-rel__board--away":!J.value.here}])},[H((B(),L(`span`,{class:`kb-rel__card-title`,ref:e=>Or(e,`relb:${J.value?.cardId??``}`)},[x(r(J.value.boardName),1)])),[[s,kr(`relb:${J.value?.cardId??``}`,J.value?.boardName??``),void 0,{top:!0}]])],2),o(`td`,Ia,[H((B(),L(`span`,{class:`kb-rel__card-title`,ref:e=>Or(e,`relc:${J.value?.cardId??``}`)},[x(r(J.value.columnTitle),1)])),[[s,kr(`relc:${J.value?.cardId??``}`,J.value?.columnTitle??``),void 0,{top:!0}]])]),o(`td`,La,[J.value.assignees.length?(B(),L(`div`,Ra,[(B(!0),L(E,null,P(J.value.assignees,e=>(B(),L(`span`,{key:e.id,class:`kb-card__avatar`,style:a(er(e.id)),title:e.name},[t.avatarUrl&&!Xn.has(e.id)?(B(),L(`img`,{key:0,src:t.avatarUrl(e.id),alt:``,onError:t=>Xn.add(e.id)},null,40,Ba)):(B(),L(E,{key:1},[x(r(Zn(e.name)),1)],64))],12,za))),128))])):(B(),L(`span`,Va,`—`))]),o(`td`,Ha,r(J.value.commentCount||`—`),1),o(`td`,Ua,[o(`button`,{class:`kb-rel__action`,title:J.value.here?p(m)(`editor.childOpen`):p(m)(`editor.openOnBoard`,{board:J.value.boardName}),onClick:n[37]||=e=>mn(J.value.cardId,J.value.boardId)},[...n[85]||=[o(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Wa),dn.value?(B(),L(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:p(m)(`editor.detach`),onClick:n[38]||=e=>sn(null)},[...n[86]||=[o(`i`,{class:`pi pi-times`},null,-1)]],8,Ga)):w(``,!0)])])])])):(B(),L(`p`,Ka,r(p(m)(`editor.parentEmptyState`)),1)),dn.value?(B(),i(p(ie),{key:2,"model-value":null,options:an.value,"option-label":`title`,"option-value":`id`,filter:an.value.length>6,"filter-placeholder":p(m)(`editor.parentSearchPlaceholder`),"empty-message":p(m)(`editor.parentEmpty`),"empty-filter-message":p(m)(`editor.parentEmpty`),placeholder:J.value?p(m)(`editor.parentReplace`):p(m)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":sn},{option:F(({option:e})=>[o(`span`,qa,[o(`span`,null,r(e.title),1),o(`span`,Ja,r(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):w(``,!0)])):w(``,!0),tn.value.length||dn.value?(B(),L(`section`,Ya,[o(`h4`,Xa,[n[87]||=o(`i`,{class:`pi pi-arrow-down`},null,-1),x(` `+r(p(m)(`editor.childrenLabel`,{count:tn.value.length})),1)]),tn.value.length?(B(),L(`table`,Za,[o(`thead`,null,[o(`tr`,null,[o(`th`,null,r(p(m)(`editor.relationsColCard`)),1),o(`th`,null,r(p(m)(`editor.relationsColBoard`)),1),o(`th`,null,r(p(m)(`editor.relationsColColumn`)),1),o(`th`,Qa,r(p(m)(`editor.relationsColAssignees`)),1),o(`th`,$a,r(p(m)(`editor.relationsColComments`)),1),o(`th`,eo,r(p(m)(`editor.relationsColActions`)),1)])]),o(`tbody`,null,[(B(!0),L(E,null,P(tn.value,e=>(B(),L(`tr`,{key:e.cardId},[o(`td`,to,[H((B(),L(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>Or(t,`rel:${e.cardId}`)},[x(r(e.title),1)])),[[s,kr(`rel:${e.cardId}`,e.title),void 0,{top:!0}]])]),o(`td`,{class:V([`kb-rel__board`,{"kb-rel__board--away":!e.here}])},[H((B(),L(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>Or(t,`relb:${e.cardId}`)},[x(r(e.boardName),1)])),[[s,kr(`relb:${e.cardId}`,e.boardName),void 0,{top:!0}]])],2),o(`td`,no,[H((B(),L(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>Or(t,`relc:${e.cardId}`)},[x(r(e.columnTitle),1)])),[[s,kr(`relc:${e.cardId}`,e.columnTitle),void 0,{top:!0}]])]),o(`td`,ro,[e.assignees.length?(B(),L(`div`,io,[(B(!0),L(E,null,P(e.assignees,e=>(B(),L(`span`,{key:e.id,class:`kb-card__avatar`,style:a(er(e.id)),title:e.name},[t.avatarUrl&&!Xn.has(e.id)?(B(),L(`img`,{key:0,src:t.avatarUrl(e.id),alt:``,onError:t=>Xn.add(e.id)},null,40,oo)):(B(),L(E,{key:1},[x(r(Zn(e.name)),1)],64))],12,ao))),128))])):(B(),L(`span`,so,`—`))]),o(`td`,co,r(e.commentCount||`—`),1),o(`td`,lo,[o(`button`,{class:`kb-rel__action`,title:e.here?p(m)(`editor.childOpen`):p(m)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>mn(e.cardId,e.boardId)},[...n[88]||=[o(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,uo),dn.value?(B(),L(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:p(m)(`editor.detach`),onClick:t=>un(e.cardId)},[...n[89]||=[o(`i`,{class:`pi pi-times`},null,-1)]],8,fo)):w(``,!0)])]))),128))])])):(B(),L(`p`,po,r(p(m)(`editor.childrenEmptyState`)),1)),dn.value?(B(),i(p(ie),{key:2,"model-value":null,options:on.value,"option-label":`title`,"option-value":`id`,filter:on.value.length>6,"filter-placeholder":p(m)(`editor.parentSearchPlaceholder`),"empty-message":p(m)(`editor.parentEmpty`),"empty-filter-message":p(m)(`editor.parentEmpty`),placeholder:p(m)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":cn},{option:F(({option:e})=>[o(`span`,mo,[o(`span`,null,r(e.title),1),o(`span`,ho,r(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):w(``,!0)])):w(``,!0),!dn.value&&!J.value&&!tn.value.length?(B(),L(`p`,go,r(p(m)(`editor.relationsEmpty`)),1)):w(``,!0)])]),_:1}),T(p(Ve),{value:`comments`},{default:F(()=>[o(`div`,_o,[Xr.value.length?(B(),L(`div`,yo,[(B(!0),L(E,null,P(Xr.value,(e,s)=>(B(),L(`div`,{key:s,class:V([`kb-comments__item`,{"kb-comments__item--ai":e.author===`ai`,"kb-comments__item--clickable":Xc(e)}]),onClick:t=>Xc(e)&&Qc(e)},[o(`div`,{class:V([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!nr(e)}]),style:a(nr(e)?er(nr(e)):void 0)},[e.author===`ai`?(B(),L(`i`,xo)):nr(e)&&t.avatarUrl&&!Xn.has(nr(e))?(B(),L(`img`,{key:1,src:t.avatarUrl(nr(e)),alt:``,onError:t=>Xn.add(nr(e))},null,40,So)):e.authorUser?.name?(B(),L(E,{key:2},[x(r(Zn(e.authorUser.name)),1)],64)):(B(),L(`i`,Co))],6),o(`div`,wo,[o(`div`,To,[o(`span`,Eo,r(rr(e)),1),o(`span`,Do,r(tl(e.timestamp)),1),e.editedAt?(B(),L(`span`,Oo,r(p(m)(`comments.edited`)),1)):w(``,!0),!t.readOnly&&fr(e)&&Nt.value!==e.id?(B(),L(`span`,ko,[tr(e)?(B(),L(`button`,{key:0,class:`kb-comments__tool`,title:p(m)(`comments.edit`),onClick:I(t=>ar(e),[`stop`])},[...n[91]||=[o(`i`,{class:`pi pi-pencil`},null,-1)]],8,Ao)):w(``,!0),o(`button`,{class:`kb-comments__tool`,title:p(m)(`comments.delete`),onClick:I(t=>pr(e),[`stop`])},[...n[92]||=[o(`i`,{class:`pi pi-trash`},null,-1)]],8,jo)])):w(``,!0)]),Nt.value===e.id?(B(),L(`div`,{key:0,class:`kb-comments__edit`,onClick:n[40]||=I(()=>{},[`stop`])},[T(p(Ue),{modelValue:Pt.value,"onUpdate:modelValue":n[39]||=e=>Pt.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:Qn.value,onLinkClick:Ic},null,8,[`modelValue`,`mentions`]),o(`div`,Mo,[T(p(k),{label:p(m)(`editor.cancel`),size:`small`,text:``,onClick:or},null,8,[`label`]),T(p(k),{label:p(m)(`editor.save`),size:`small`,disabled:!Pt.value.trim(),onClick:lr},null,8,[`label`,`disabled`])])])):e.detail?(B(),L(E,{key:1},[o(`div`,{ref_for:!0,ref:t=>qc(t,e,s),class:V([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!Hc(e,s),"kb-comments__text--toggleable":Uc(e,s)&&!Xc(e)}]),onClick:t=>Gc(e,s,t),innerHTML:Rc(e.detail)},null,10,No),Uc(e,s)?(B(),L(`button`,{key:0,class:`kb-comments__more`,onClick:I(t=>Wc(e,s),[`stop`])},r(Hc(e,s)?p(m)(`comments.showLess`):p(m)(`comments.showMore`)),9,Po)):w(``,!0)],64)):w(``,!0),Nt.value===e.id?w(``,!0):(B(),i(_n,{key:2,files:e.attachments??[],preview:Pn,compact:``,onOpen:Gn},null,8,[`files`]))])],10,bo))),128)),o(`div`,{ref_key:`commentsEndEl`,ref:Mt},null,512)])):(B(),L(`div`,vo,[n[90]||=o(`i`,{class:`pi pi-comments`},null,-1),o(`span`,null,r(p(m)(`comments.empty`)),1)])),t.readOnly?w(``,!0):(B(),L(`div`,{key:2,class:`kb-comments__input`,onKeydown:[U(I(Mn,[`ctrl`,`prevent`]),[`enter`]),U(I(Mn,[`meta`,`prevent`]),[`enter`])]},[T(p(Ue),{modelValue:At.value,"onUpdate:modelValue":n[41]||=e=>At.value=e,markdown:``,placeholder:p(m)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>al(e,`comment`),mentions:Qn.value,onLinkClick:Ic},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),T(_n,{files:q.value,preview:Pn,openable:!1,removable:``,"remove-label":p(m)(`editor.removeFile`),compact:``,onRemove:ol},null,8,[`files`,`remove-label`]),T(Nr,{queue:it.value,errors:K.value,uploading:rt.value,"uploading-label":p(m)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),o(`div`,Io,[o(`label`,{class:`kb-comments__attach`,title:p(m)(`comments.attach`)},[n[93]||=o(`i`,{class:`pi pi-paperclip`},null,-1),o(`input`,{type:`file`,multiple:``,onChange:il},null,32)],8,Lo),o(`span`,Ro,r(p(m)(`comments.sendHint`)),1),T(p(k),{label:p(m)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!At.value.trim()&&!q.value.length,onClick:Mn},null,8,[`label`,`disabled`])])],40,Fo))])]),_:1}),T(p(Ve),{value:`history`},{default:F(()=>[o(`div`,zo,[G.value.card.history?.length?(B(),L(`div`,Vo,[(B(!0),L(E,null,P([...G.value.card.history].reverse(),(e,t)=>(B(),L(`div`,{key:t,class:V([`kb-history__item`,{"kb-history__item--clickable":Xc(e)}]),onClick:t=>Xc(e)&&Qc(e)},[o(`div`,Uo,[o(`i`,{class:V($c[e.type])},null,2)]),o(`div`,Wo,[o(`span`,Go,[x(r(el.value[e.type])+` `,1),Xc(e)?(B(),L(`i`,Ko)):w(``,!0)]),e.detail?(B(),L(`span`,qo,r(e.detail),1)):w(``,!0),o(`span`,Jo,[x(r(tl(e.timestamp))+` `,1),e.authorUser?.name?(B(),L(E,{key:0},[x(` · `+r(p(m)(`history.by`,{name:e.authorUser.name})),1)],64)):w(``,!0)])])],10,Ho))),128))])):(B(),L(`div`,Bo,[n[94]||=o(`i`,{class:`pi pi-clock`},null,-1),o(`span`,null,r(p(m)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),o(`aside`,Yo,[t.members.length?(B(),L(`div`,Xo,[o(`span`,Zo,r(p(m)(`editor.assigneesLabel`)),1),T(p(Fe),{modelValue:ct.value,"onUpdate:modelValue":n[43]||=e=>ct.value=e,options:t.members,"option-label":`name`,"option-value":`userId`,placeholder:p(m)(`editor.assigneesPlaceholder`),disabled:t.readOnly,display:`chip`,filter:``,class:`kb-side__control`},{chip:F(({value:e})=>[o(`span`,{class:`kb-card__avatar`,style:a(er(e)),title:$n(e)},[t.avatarUrl&&!Xn.has(e)?(B(),L(`img`,{key:0,src:t.avatarUrl(e),alt:``,onError:t=>Xn.add(e)},null,40,$o)):(B(),L(E,{key:1},[x(r(Zn($n(e))),1)],64))],12,Qo)]),option:F(({option:e})=>[o(`span`,es,[o(`span`,{class:`kb-card__avatar`,style:a(er(e.userId))},[t.avatarUrl&&!Xn.has(e.userId)?(B(),L(`img`,{key:0,src:t.avatarUrl(e.userId),alt:``,onError:t=>Xn.add(e.userId)},null,40,ts)):(B(),L(E,{key:1},[x(r(Zn(e.name)),1)],64))],4),x(` `+r(e.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),o(`p`,ns,r(p(m)(`editor.assigneesHint`)),1)])):w(``,!0),o(`div`,rs,[o(`span`,is,[x(r(p(m)(`editor.priorityLabel`))+` `,1),pt.value===null?w(``,!0):(B(),L(`span`,as,r(pt.value)+`/10`,1))]),pt.value===null?t.readOnly?(B(),L(`p`,cs,r(p(m)(`editor.priorityNone`)),1)):(B(),L(`button`,{key:1,class:`kb-prio__set`,onClick:vt},[n[96]||=o(`i`,{class:`pi pi-plus`},null,-1),x(` `+r(p(m)(`editor.priorityAdd`)),1)])):(B(),L(`div`,os,[T(p(tt),{modelValue:pt.value,"onUpdate:modelValue":n[44]||=e=>pt.value=e,min:1,max:10,step:1,disabled:t.readOnly,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),t.readOnly?w(``,!0):(B(),L(`button`,{key:0,class:`kb-prio__clear`,title:p(m)(`editor.priorityClear`),onClick:n[45]||=e=>pt.value=null},[...n[95]||=[o(`i`,{class:`pi pi-times`},null,-1)]],8,ss))]))]),o(`div`,ls,[o(`span`,us,r(p(m)(`editor.deadlineLabel`)),1),o(`div`,ds,[T(p(Ot),{modelValue:mt.value,"onUpdate:modelValue":n[46]||=e=>mt.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:t.readOnly,placeholder:p(m)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!t.readOnly&&mt.value?(B(),L(`button`,{key:0,class:`kb-prio__clear`,title:p(m)(`editor.deadlineClear`),onClick:n[47]||=e=>mt.value=null},[...n[97]||=[o(`i`,{class:`pi pi-times`},null,-1)]],8,fs)):w(``,!0)]),mt.value?(B(),L(`p`,ps,r(ht.value),1)):w(``,!0)]),o(`div`,ms,[o(`span`,hs,r(p(m)(`editor.groupsLabel`)),1),T(p(He),{modelValue:lt.value,"onUpdate:modelValue":n[48]||=e=>lt.value=e,multiple:``,suggestions:ut.value,disabled:t.readOnly,placeholder:lt.value.length?``:p(m)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:ft,onItemSelect:St,onKeydown:U(Ct,[`enter`]),onFocusout:Ct},{option:F(({option:e})=>[o(`span`,gs,[o(`i`,{class:V(dt.value.includes(e)?`pi pi-tag`:`pi pi-plus`)},null,2),o(`span`,null,r(dt.value.includes(e)?e:p(m)(`editor.groupsCreate`,{name:e})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),o(`p`,_s,r(p(m)(`editor.groupsHint`)),1)]),fn.value.length?(B(),L(`div`,vs,[o(`span`,ys,r(p(m)(`editor.ancestryLabel`)),1),o(`ul`,bs,[(B(!0),L(E,null,P(fn.value,(e,t)=>(B(),L(`li`,{key:e.cardId,class:`kb-tree__row`,style:a({paddingLeft:`${t*.75}rem`})},[t?(B(),L(`i`,xs)):w(``,!0),o(`button`,{class:`kb-tree__label`,title:e.here?p(m)(`editor.childOpen`):p(m)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>mn(e.cardId,e.boardId)},r(e.title),9,Ss)],4))),128)),o(`li`,{class:`kb-tree__row kb-tree__row--self`,style:a({paddingLeft:`${fn.value.length*.75}rem`})},[n[98]||=o(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),o(`span`,Cs,r(Qe.value.trim()||p(m)(`card.untitled`)),1)],4)])])):w(``,!0),o(`div`,ws,[o(`span`,Ts,r(p(m)(`editor.colorLabel`)),1),o(`div`,Es,[H((B(),L(`button`,{class:V([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Tt.value}]),disabled:t.readOnly,onClick:n[49]||=e=>Tt.value=``},[...n[99]||=[o(`i`,{class:`pi pi-ban`},null,-1)]],10,Ds)),[[s,{value:p(m)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(B(),L(E,null,P(Et,e=>H(o(`button`,{key:e,class:V([`kb-colors__swatch`,{"kb-colors__swatch--on":Tt.value===e}]),style:a({background:e}),disabled:t.readOnly,onClick:t=>Tt.value=e},null,14,Os),[[s,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),o(`p`,ks,r(p(m)(`editor.colorHint`)),1)]),Cn.value?(B(),L(`div`,As,[o(`span`,js,r(p(m)(`editor.columnSettingLabel`)),1),o(`p`,Ms,[n[100]||=o(`i`,{class:`pi pi-inbox`},null,-1),x(` `+r(G.value.card.archivedFrom?p(m)(`archive.editorFrom`,{column:G.value.card.archivedFrom.columnTitle}):p(m)(`archive.editorNote`)),1)])])):(B(),L(`div`,Ns,[o(`span`,Ps,r(p(m)(`editor.columnSettingLabel`)),1),T(p(ie),{"model-value":Dt.value,options:hn.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:t.readOnly,filter:hn.value.length>1,"filter-placeholder":p(m)(`editor.columnSearchPlaceholder`),"empty-filter-message":p(m)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":gn},{optiongroup:F(({option:e})=>[o(`span`,{class:V([`kb-colgroup`,{"kb-colgroup--away":e.items[0]?.boardId}])},[o(`i`,{class:V(e.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),o(`span`,Fs,r(e.label),1)],2)]),option:F(({option:e})=>[o(`span`,Is,[e.boardId?(B(),L(`i`,Ls)):w(``,!0),o(`span`,null,r(e.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),t.otherBoards.length&&t.moveCardToBoard&&!t.readOnly?(B(),L(`p`,Rs,r(p(m)(`editor.moveToBoardHint`)),1)):w(``,!0)])),o(`div`,zs,[G.value.card.createdBy?(B(),L(`p`,Bs,[n[101]||=o(`i`,{class:`pi pi-user`},null,-1),x(` `+r(p(m)(`editor.createdBy`,{name:G.value.card.createdBy.name})),1)])):w(``,!0),o(`p`,null,[n[102]||=o(`i`,{class:`pi pi-calendar-plus`},null,-1),x(` `+r(tl(G.value.card.createdAt)),1)]),o(`p`,null,[n[103]||=o(`i`,{class:`pi pi-clock`},null,-1),x(` `+r(tl(G.value.card.updatedAt)),1)])]),Zc.value.length?(B(),L(`div`,Vs,[o(`span`,Hs,r(p(m)(`editor.conversationsLabel`)),1),o(`div`,Us,[(B(!0),L(E,null,P(Zc.value,e=>(B(),L(`a`,{key:e.id,class:`kb-side__conv`,title:e.title,onClick:t=>u(`open-conversation`,e.id)},[n[104]||=o(`i`,{class:`pi pi-comments`},null,-1),o(`span`,Gs,r(e.label),1)],8,Ws))),128))])])):w(``,!0),e.$slots[`card-editor-actions`]?(B(),L(`div`,Ks,[o(`span`,qs,r(p(m)(`editor.actionsLabel`)),1),o(`div`,Js,[z(e.$slots,`card-editor-actions`,{card:G.value.card,colId:G.value.colId,draft:{title:Qe.value,markdown:$e.value}},void 0,!0)])])):w(``,!0),!t.readOnly&&!Ht.value?(B(),L(`div`,Ys,[Cn.value?(B(),i(p(k),{key:0,label:p(m)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:n[50]||=e=>{An(G.value.card.id),Yt()}},null,8,[`label`])):(B(),i(p(k),{key:1,label:p(m)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:n[51]||=e=>X(G.value.colId,G.value.card.id)},null,8,[`label`])),T(p(k),{label:p(m)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:n[52]||=e=>jn(G.value.colId,G.value.card.id)},null,8,[`label`])])):w(``,!0)])])):w(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),T(p(Me),{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":n[54]||=e=>{e||Jn()}},{footer:F(()=>[T(p(k),{label:p(m)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:qn},null,8,[`label`]),T(p(k),{label:p(m)(`editor.close`),onClick:Jn},null,8,[`label`])]),default:F(()=>[Z.value?(B(),L(`div`,Qs,[Z.value.kind===`image`?(B(),L(`img`,{key:0,src:Z.value.url,alt:Z.value.file.name,class:`kb-viewer__image`},null,8,$s)):Z.value.kind===`pdf`?(B(),L(`iframe`,{key:1,src:Z.value.url,title:Z.value.file.name,class:`kb-viewer__frame`},null,8,ec)):Z.value.kind===`video`?(B(),L(`video`,{key:2,src:Z.value.url,controls:``,class:`kb-viewer__media`},null,8,tc)):Z.value.kind===`audio`?(B(),L(`audio`,{key:3,src:Z.value.url,controls:``,class:`kb-viewer__audio`},null,8,nc)):Z.value.office?.mode===`sheet`?(B(),L(`div`,rc,[Z.value.office.sheets.length>1?(B(),L(`div`,ic,[(B(!0),L(E,null,P(Z.value.office.sheets,(e,t)=>(B(),L(`button`,{key:e.name+t,class:V([`kb-viewer__tab`,{"kb-viewer__tab--active":t===Vn.value}]),onClick:e=>Vn.value=t},r(e.name),11,ac))),128))])):w(``,!0),o(`div`,oc,[Hn.value&&Hn.value.rows.length?(B(),L(`table`,sc,[o(`thead`,null,[o(`tr`,null,[(B(!0),L(E,null,P(Hn.value.rows[0],(e,t)=>(B(),L(`th`,{key:t},r(e),1))),128))])]),o(`tbody`,null,[(B(!0),L(E,null,P(Hn.value.rows.slice(1),(e,t)=>(B(),L(`tr`,{key:t},[(B(!0),L(E,null,P(e,(e,t)=>(B(),L(`td`,{key:t},r(e),1))),128))]))),128))])])):(B(),L(`p`,cc,r(p(m)(`editor.viewerEmpty`)),1))])])):Z.value.office?.mode===`blocks`?(B(),L(`div`,lc,[o(`div`,uc,[(B(!0),L(E,null,P(Z.value.office.blocks,(e,t)=>(B(),L(E,{key:t},[e.type===`heading`&&e.level===1?(B(),L(`h1`,dc,r(e.text),1)):e.type===`heading`&&e.level===2?(B(),L(`h2`,fc,r(e.text),1)):e.type===`heading`?(B(),L(`h3`,pc,r(e.text),1)):e.type===`list`?(B(),L(`li`,mc,r(e.text),1)):e.type===`table`?(B(),L(`table`,hc,[o(`tbody`,null,[(B(!0),L(E,null,P(e.rows,(e,t)=>(B(),L(`tr`,{key:t},[(B(!0),L(E,null,P(e,(e,t)=>(B(),L(`td`,{key:t},r(e),1))),128))]))),128))])])):(B(),L(`p`,gc,r(e.text),1))],64))),128)),Z.value.office.blocks.length?w(``,!0):(B(),L(`p`,_c,r(p(m)(`editor.viewerEmpty`)),1))])])):Z.value.office?.mode===`slides`?(B(),L(`div`,vc,[o(`div`,yc,[(B(!0),L(E,null,P(Z.value.office.slides,(e,t)=>(B(),L(`section`,{key:t,class:`kb-viewer__slide`},[o(`span`,bc,r(t+1),1),e.title?(B(),L(`h3`,xc,r(e.title),1)):w(``,!0),(B(!0),L(E,null,P(e.lines,(e,t)=>(B(),L(`p`,{key:t},r(e),1))),128))]))),128))])])):Z.value.office?.mode===`render`?(B(),L(`div`,Sc,[Wn.value?(B(),L(`p`,Cc,r(p(m)(`editor.viewerFailed`)),1)):w(``,!0),H(o(`div`,{ref_key:`renderHost`,ref:Un,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[ke,!Wn.value]])])):(B(),L(`pre`,wc,r(Z.value.text),1)),Z.value.office&&Z.value.office.mode!==`render`&&Z.value.office.truncated?(B(),L(`p`,Tc,[n[106]||=o(`i`,{class:`pi pi-exclamation-triangle`},null,-1),x(` `+r(p(m)(`editor.viewerTruncated`)),1)])):w(``,!0)])):w(``,!0)]),_:1},8,[`visible`,`header`]),T(p(le),{ref_key:`colMenu`,ref:Ar,onHide:n[58]||=e=>jr.value=null},{default:F(()=>[jr.value?(B(),L(`div`,Ec,[o(`div`,Dc,[z(e.$slots,`column-actions`,{column:jr.value},void 0,!0)]),mr.value?(B(),L(`button`,{key:0,class:`kb-colmenu__item`,onClick:n[55]||=e=>Pr(Fr)},[n[107]||=o(`i`,{class:`pi pi-bell`},null,-1),o(`span`,null,r(Cr(jr.value.id)?p(m)(`column.unsubscribe`):p(m)(`column.subscribe`)),1)])):w(``,!0),o(`button`,{class:`kb-colmenu__item`,onClick:n[56]||=e=>Pr(Yr)},[n[108]||=o(`i`,{class:`pi pi-angle-double-left`},null,-1),o(`span`,null,r(p(m)(`column.collapse`)),1)]),t.readOnly?w(``,!0):(B(),L(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:n[57]||=e=>Pr(Xe)},[n[109]||=o(`i`,{class:`pi pi-trash`},null,-1),o(`span`,null,r(p(m)(`column.deleteTooltip`)),1)]))])):w(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-7ba6f337`]]),Lc={class:`kanban-list-page`},Rc={class:`page-header`},zc={class:`page-header__right`},Bc={class:`list-menu`},Vc={key:0,class:`empty-state`},Hc={class:`board-grid`},Uc={class:`board-counts`},Wc={class:`board-count`},Gc={class:`board-count board-count--cards`},Kc={key:0,class:`board-desc`},qc={key:0,class:`empty-state`},Jc={class:`board-grid`},Yc={key:0,class:`board-desc`},Xc={key:0,class:`dialog-field`},Zc={for:`kanlist-new-template`},Qc={key:0,class:`field-hint`},$c={class:`dialog-field`},el={for:`kanlist-new-name`},tl={class:`dialog-field`},nl={for:`kanlist-new-desc`},rl={class:`dialog-field`},il={for:`kanlist-new-instructions`},al={class:`field-hint`},ol={class:`dialog-field`},sl={for:`kanlist-edit-name`},cl={class:`dialog-field`},ll={for:`kanlist-edit-desc`},$={class:`dialog-field`},ul={for:`kanlist-edit-instructions`},dl={class:`field-hint`},fl={class:`templates-intro`},pl={key:0,class:`empty-state`},ml={key:1,class:`template-list`},hl={class:`template-row__name`},gl={class:`hint`},_l={key:0,class:`template-row__actions`},vl={class:`dialog-field`},yl={for:`kanlist-tpl-name`},bl={class:`dialog-field`},xl={for:`kanlist-tpl-content`},Sl={class:`hint`},Cl={class:`templates-intro`},wl={key:0,class:`empty-state`},Tl={key:1,class:`template-list`},El={class:`template-row__name`},Dl={key:0,class:`template-row__actions`},Ol=y(u({__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 n=e,a=t,s=pe(),c=n.t;function l(e){a(`templates-needed`),e()}let u=W(!1),d=W(``),f=W(``),m=W(``),h=W(null),g=W(null),_=W(``);function v(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let y=O(()=>{let e=v(_.value.trim());return e?n.boards.filter(t=>v(t.name).includes(e)||v(t.description??``).includes(e)):n.boards}),b=O(()=>y.value.filter(e=>!e.archived)),S=O(()=>y.value.filter(e=>e.archived)),C=O(()=>_.value.trim().length>0),ee=O(()=>n.boardsLimit!==null&&n.boards.length>=n.boardsLimit),te=O(()=>!n.readOnly&&!ee.value);function ne(e){let t=(n.boardTemplates??[]).find(t=>t.id===e);t&&(d.value.trim()||(d.value=t.name),m.value=t.instructions)}let D=O(()=>(n.boardTemplates??[]).find(e=>e.id===g.value)??null);function A(){!te.value||!d.value.trim()||(a(`create`,{name:d.value.trim(),description:f.value.trim(),instructions:m.value.trim(),...D.value?.columns.length?{columns:D.value.columns}:{},...D.value?.columnGroups?.length?{columnGroups:D.value.columnGroups}:{}}),u.value=!1,d.value=``,f.value=``,m.value=``,g.value=null)}function j(){h.value&&=(a(`update`,{...h.value}),null)}let re=W(!1),M=W(null);function N(){M.value={id:null,name:``,content:``}}function ce(e){M.value={id:e.id,name:e.name,content:e.content}}function ue(){let e=M.value;if(!e||!e.name.trim())return;let t={name:e.name.trim(),content:e.content};e.id?a(`template-update`,{id:e.id,...t}):a(`template-create`,t),M.value=null}function de(e){s.require({message:c(`templates.confirmDeleteMessage`,{name:e.name}),header:c(`templates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`template-delete`,e.id)})}let fe=W(!1);function me(e){s.require({message:c(`boardTemplates.confirmDeleteMessage`,{name:e.name}),header:c(`boardTemplates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`board-template-delete`,e.id)})}let he=W(null);function ge(e){he.value?.hide(),e()}function R(e,t){s.require({message:c(`dialogs.confirmDeleteMessage`,{name:t}),header:c(`dialogs.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`delete`,e)})}return(t,n)=>{let s=ae(`tooltip`);return B(),L(`div`,Lc,[o(`div`,Rc,[o(`h1`,null,r(p(c)(`title`)),1),o(`span`,zc,[T(p(oe),null,{default:F(()=>[T(p(Te),{class:`pi pi-search`}),T(p(be),{modelValue:_.value,"onUpdate:modelValue":n[0]||=e=>_.value=e,placeholder:p(c)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),e.boardsLimit===null?w(``,!0):(B(),L(`span`,{key:0,class:V([`quota`,{"quota--full":ee.value}])},r(p(c)(`quota`,{used:e.boards.length,limit:e.boardsLimit})),3)),e.readOnly?w(``,!0):(B(),i(p(k),{key:1,label:p(c)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:ee.value,onClick:n[1]||=e=>l(()=>u.value=!0)},null,8,[`label`,`disabled`])),e.templates||e.boardTemplates?(B(),L(E,{key:2},[T(p(k),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:p(c)(`menu`),"aria-label":p(c)(`menu`),onClick:n[2]||=e=>he.value?.toggle(e)},null,8,[`title`,`aria-label`]),T(p(le),{ref_key:`listMenu`,ref:he},{default:F(()=>[o(`div`,Bc,[e.templates?(B(),L(`button`,{key:0,class:`list-menu__item`,onClick:n[3]||=e=>ge(()=>l(()=>re.value=!0))},[n[27]||=o(`i`,{class:`pi pi-file-edit`},null,-1),o(`span`,null,r(p(c)(`templates.manage`)),1)])):w(``,!0),e.boardTemplates?(B(),L(`button`,{key:1,class:`list-menu__item`,onClick:n[4]||=e=>ge(()=>fe.value=!0)},[n[28]||=o(`i`,{class:`pi pi-bookmark`},null,-1),o(`span`,null,r(p(c)(`boardTemplates.manage`)),1)])):w(``,!0)])]),_:1},512)],64)):w(``,!0)])]),z(t.$slots,`banner`,{},void 0,!0),T(p(ze),{value:`active`},{default:F(()=>[T(p(Le),null,{default:F(()=>[T(p(Be),{value:`active`},{default:F(()=>[x(r(p(c)(`tabs.active`)),1)]),_:1}),T(p(Be),{value:`archived`},{default:F(()=>[x(r(p(c)(`tabs.archived`,{count:S.value.length})),1)]),_:1})]),_:1}),T(p(Re),null,{default:F(()=>[T(p(Ve),{value:`active`},{default:F(()=>[b.value.length===0?(B(),L(`div`,Vc,r(C.value?p(c)(`noResults`,{query:_.value.trim()}):p(c)(`empty`)),1)):w(``,!0),o(`div`,Hc,[(B(!0),L(E,null,P(b.value,t=>(B(),i(p(Pe),{key:t.id,class:`board-card`,onClick:e=>a(`open`,t.id)},{title:F(()=>[x(r(t.name),1)]),subtitle:F(()=>[o(`span`,Uc,[o(`span`,Wc,[n[29]||=o(`i`,{class:`pi pi-list`},null,-1),x(r(p(c)(`columns`,{count:t.columnCount})),1)]),o(`span`,Gc,[n[30]||=o(`i`,{class:`pi pi-clone`},null,-1),x(r(p(c)(`cards`,{count:t.cardCount})),1)])])]),content:F(()=>[t.description?(B(),L(`p`,Kc,r(t.description),1)):w(``,!0)]),footer:F(()=>[e.readOnly?w(``,!0):(B(),L(`div`,{key:0,class:`board-actions`,onClick:n[5]||=I(()=>{},[`stop`])},[T(p(k),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>h.value={id:t.id,name:t.name,description:t.description,instructions:t.instructions??``}},null,8,[`onClick`]),H(T(p(k),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>a(`archive`,{id:t.id,archived:!0})},null,8,[`onClick`]),[[s,p(c)(`archive`)]]),T(p(k),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>R(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),T(p(Ve),{value:`archived`},{default:F(()=>[S.value.length===0?(B(),L(`div`,qc,r(C.value?p(c)(`noResults`,{query:_.value.trim()}):p(c)(`archivedEmpty`)),1)):w(``,!0),o(`div`,Jc,[(B(!0),L(E,null,P(S.value,t=>(B(),i(p(Pe),{key:t.id,class:`board-card archived`,onClick:e=>a(`open`,t.id)},{title:F(()=>[x(r(t.name),1)]),content:F(()=>[t.description?(B(),L(`p`,Yc,r(t.description),1)):w(``,!0)]),footer:F(()=>[e.readOnly?w(``,!0):(B(),L(`div`,{key:0,class:`board-actions`,onClick:n[6]||=I(()=>{},[`stop`])},[T(p(k),{label:p(c)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>a(`archive`,{id:t.id,archived:!1})},null,8,[`label`,`onClick`]),T(p(k),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>R(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),T(p(Me),{visible:u.value,"onUpdate:visible":n[13]||=e=>u.value=e,header:p(c)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:F(()=>[T(p(k),{label:p(c)(`cancel`),text:``,onClick:n[12]||=e=>u.value=!1},null,8,[`label`]),T(p(k),{label:p(c)(`create`),icon:`pi pi-check`,disabled:!d.value.trim(),onClick:A},null,8,[`label`,`disabled`])]),default:F(()=>[e.boardTemplates?.length?(B(),L(`div`,Xc,[o(`label`,Zc,r(p(c)(`boardTemplates.pickLabel`)),1),T(p(ie),{id:`kanlist-new-template`,modelValue:g.value,"onUpdate:modelValue":n[7]||=e=>g.value=e,options:e.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:p(c)(`boardTemplates.pickPlaceholder`),onChange:n[8]||=e=>ne(g.value)},null,8,[`modelValue`,`options`,`placeholder`]),D.value?(B(),L(`small`,Qc,r(p(c)(`boardTemplates.pickHint`,{columns:D.value.columns.map(e=>e.title).join(`, `)||p(c)(`boardTemplates.noColumns`)})),1)):w(``,!0)])):w(``,!0),o(`div`,$c,[o(`label`,el,r(p(c)(`nameLabel`)),1),T(p(be),{id:`kanlist-new-name`,modelValue:d.value,"onUpdate:modelValue":n[9]||=e=>d.value=e,autofocus:``,class:`w-full`,onKeyup:U(A,[`enter`])},null,8,[`modelValue`])]),o(`div`,tl,[o(`label`,nl,r(p(c)(`descriptionLabel`)),1),T(p(se),{id:`kanlist-new-desc`,modelValue:f.value,"onUpdate:modelValue":n[10]||=e=>f.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),o(`div`,rl,[o(`label`,il,r(p(c)(`instructionsLabel`)),1),T(p(se),{id:`kanlist-new-instructions`,modelValue:m.value,"onUpdate:modelValue":n[11]||=e=>m.value=e,rows:`6`,class:`w-full`,placeholder:p(c)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),o(`small`,al,r(p(c)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),T(p(Me),{visible:!!h.value,header:p(c)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":n[18]||=e=>{e||(h.value=null)}},{footer:F(()=>[T(p(k),{label:p(c)(`cancel`),text:``,onClick:n[17]||=e=>h.value=null},null,8,[`label`]),T(p(k),{label:p(c)(`save`),icon:`pi pi-check`,onClick:j},null,8,[`label`])]),default:F(()=>[h.value?(B(),L(E,{key:0},[o(`div`,ol,[o(`label`,sl,r(p(c)(`nameLabel`)),1),T(p(be),{id:`kanlist-edit-name`,modelValue:h.value.name,"onUpdate:modelValue":n[14]||=e=>h.value.name=e,class:`w-full`,onKeyup:U(j,[`enter`])},null,8,[`modelValue`])]),o(`div`,cl,[o(`label`,ll,r(p(c)(`descriptionLabel`)),1),T(p(se),{id:`kanlist-edit-desc`,modelValue:h.value.description,"onUpdate:modelValue":n[15]||=e=>h.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),o(`div`,$,[o(`label`,ul,r(p(c)(`instructionsLabel`)),1),T(p(se),{id:`kanlist-edit-instructions`,modelValue:h.value.instructions,"onUpdate:modelValue":n[16]||=e=>h.value.instructions=e,rows:`8`,class:`w-full`,placeholder:p(c)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),o(`small`,dl,r(p(c)(`instructionsHint`)),1)])],64)):w(``,!0)]),_:1},8,[`visible`,`header`]),T(p(Me),{visible:fe.value,"onUpdate:visible":n[20]||=e=>fe.value=e,header:p(c)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:F(()=>[T(p(k),{label:p(c)(`close`),text:``,onClick:n[19]||=e=>fe.value=!1},null,8,[`label`])]),default:F(()=>[o(`p`,fl,r(p(c)(`boardTemplates.intro`)),1),!e.boardTemplates||e.boardTemplates.length===0?(B(),L(`div`,pl,r(p(c)(`boardTemplates.empty`)),1)):(B(),L(`ul`,ml,[(B(!0),L(E,null,P(e.boardTemplates,t=>(B(),L(`li`,{key:t.id,class:`template-row`},[o(`span`,hl,[x(r(t.name)+` `,1),o(`small`,gl,r(t.columns.map(e=>e.title).join(` · `)||p(c)(`boardTemplates.noColumns`)),1)]),e.readOnly?w(``,!0):(B(),L(`span`,_l,[T(p(k),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>me(t)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),T(p(Me),{visible:re.value,"onUpdate:visible":[n[25]||=e=>re.value=e,n[26]||=e=>{e||(M.value=null)}],header:p(c)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:F(()=>[M.value?(B(),L(E,{key:0},[T(p(k),{label:p(c)(`cancel`),text:``,onClick:n[23]||=e=>M.value=null},null,8,[`label`]),T(p(k),{label:p(c)(`save`),icon:`pi pi-check`,disabled:!M.value.name.trim(),onClick:ue},null,8,[`label`,`disabled`])],64)):(B(),L(E,{key:1},[e.readOnly?w(``,!0):(B(),i(p(k),{key:0,label:p(c)(`templates.new`),icon:`pi pi-plus`,onClick:N},null,8,[`label`])),T(p(k),{label:p(c)(`close`),text:``,onClick:n[24]||=e=>re.value=!1},null,8,[`label`])],64))]),default:F(()=>[M.value?(B(),L(E,{key:0},[o(`div`,vl,[o(`label`,yl,r(p(c)(`templates.nameLabel`)),1),T(p(be),{id:`kanlist-tpl-name`,modelValue:M.value.name,"onUpdate:modelValue":n[21]||=e=>M.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),o(`div`,bl,[o(`label`,xl,r(p(c)(`templates.contentLabel`)),1),T(p(Ue),{id:`kanlist-tpl-content`,modelValue:M.value.content,"onUpdate:modelValue":n[22]||=e=>M.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:p(c)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),o(`small`,Sl,r(p(c)(`templates.contentHint`)),1)])],64)):(B(),L(E,{key:1},[o(`p`,Cl,r(p(c)(`templates.intro`)),1),!e.templates||e.templates.length===0?(B(),L(`div`,wl,r(p(c)(`templates.empty`)),1)):(B(),L(`ul`,Tl,[(B(!0),L(E,null,P(e.templates,t=>(B(),L(`li`,{key:t.id,class:`template-row`},[o(`span`,El,r(t.name),1),e.readOnly?w(``,!0):(B(),L(`span`,Dl,[T(p(k),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>ce(t)},null,8,[`onClick`]),T(p(k),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>de(t)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-6ce88365`]]);export{Ic as n,Ol as t};
|