@runeya/runeya 2.0.117 → 2.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent/index.js +47 -4
- package/agent/index.js.map +1 -1
- package/agent-manager-ACPQWUZ5.js +9 -0
- package/{chat-QLIFNGA2.js → chat-PXMMZIAY.js} +6 -6
- package/{chunk-K3H5WJRQ.js → chunk-22RJM654.js} +502 -223
- package/chunk-22RJM654.js.map +1 -0
- package/{chunk-OGCEFBSS.js → chunk-2WXQIUVC.js} +7 -2
- package/chunk-2WXQIUVC.js.map +1 -0
- package/{chunk-77UQ2UKW.js → chunk-GIHR3BGT.js} +2 -2
- package/{chunk-6T7R2JZR.js → chunk-H6VIS4OY.js} +54 -5
- package/chunk-H6VIS4OY.js.map +1 -0
- package/{chunk-F7A7XH3N.js → chunk-NYKFDU76.js} +18 -6
- package/{chunk-F7A7XH3N.js.map → chunk-NYKFDU76.js.map} +1 -1
- package/{companion-RLSRXTNO.js → companion-4RQ3AMOL.js} +4 -4
- package/{desktop-launcher-Q6J2LSVP.js → desktop-launcher-ADGRYF4S.js} +2 -2
- package/index.js +4 -4
- package/mcp-server/index.js +16 -0
- package/mcp-server/index.js.map +1 -1
- package/package.json +1 -1
- package/settings-manager-2C7RY6ZC.js +9 -0
- package/{src-Q2AWI57U.js → src-NRKK27F3.js} +94 -11
- package/src-NRKK27F3.js.map +1 -0
- package/web/assets/AgentScalarChatInterface.vue-DeDCprCi.js +13 -0
- package/web/assets/AgentTerminalPage-CVM-_xua.js +1 -0
- package/web/assets/AiChatPage-C0XGalM7.js +1 -0
- package/web/assets/AppLayout-DWE2gGEG.js +1 -0
- package/web/assets/AuditPage-CtEaUBZG.js +1 -0
- package/web/assets/CloudAccountPage-FtuRCNIq.js +1 -0
- package/web/assets/CloudAccountPage-snaQ5_Jz.js +1 -0
- package/web/assets/CloudMessagingPage-BhU4VarW.js +2 -0
- package/web/assets/DashboardPage-DMek59Ua.js +164 -0
- package/web/assets/DirectoryPickerDialog-DzhKixt4.js +1 -0
- package/web/assets/{EditorIcon-DoAjQCrb.js → EditorIcon-Co787SMb.js} +2 -2
- package/web/assets/{EnvironmentForm-CgsN_8EO.js → EnvironmentForm-B9EQlz9_.js} +2 -2
- package/web/assets/EnvironmentFormPage-_iZpn0PZ.js +1 -0
- package/web/assets/EnvironmentListPage-lviQTpL1.js +1 -0
- package/web/assets/KanbanBoardPage-jJKcNxVt.js +4 -0
- package/web/assets/KanbanListPage-CjDSP-NZ.js +1 -0
- package/web/assets/LaunchProjectPage-CCg2nziO.js +1 -0
- package/web/assets/LaunchServicesPage-EhKBO0tS.js +1 -0
- package/web/assets/LogViewer-BOcmkQJk.js +3 -0
- package/web/assets/OrgKeyPrompt-FXuwB-qF.js +1 -0
- package/web/assets/{ProcessControls-BAThUaVo.js → ProcessControls-Bl71hMFi.js} +1 -1
- package/web/assets/ProcessDetailPage-BepAK0mH.js +1 -0
- package/web/assets/{ProcessMetrics-BnfF7Esx.js → ProcessMetrics-eRNYH_T3.js} +2 -2
- package/web/assets/RandomJobTestPage-BzhLqqcX.js +2 -0
- package/web/assets/ScenarioEditorPage-RAo2HXny.js +14 -0
- package/web/assets/SendToChatDialog-YAcjNz8G.js +1 -0
- package/web/assets/ServiceControlsBar-C4CLmYs1.js +1 -0
- package/web/assets/ServiceDetailPage-NrtsPPS2.js +2 -0
- package/web/assets/ServiceFormPage-DpzK--N_.js +1 -0
- package/web/assets/SettingsPage-Cov2c6gi.js +2063 -0
- package/web/assets/UnlockPage-CZ4UXjxV.js +1 -0
- package/web/assets/VaultMigrationPage-D7YkLOgt.js +1 -0
- package/web/assets/VersionBadge-DfU2xGOy.js +1 -0
- package/web/assets/WikiPage-AuxO0ZRo.js +1 -0
- package/web/assets/WikiView-YO32SMjf.js +1 -0
- package/web/assets/add-scalar-classes-BSy1Q2x9.js +387 -0
- package/web/assets/{autocomplete-DVfF8-mq.js → autocomplete-CRDXI2af.js} +3 -3
- package/web/assets/{basic-shape-diamond.svg-D8aU5xwY.js → basic-shape-diamond.svg-DrxPStJk.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-C48LyQUE.js → basic-shape-hexagon.svg-CvQGeMns.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-Cn4csfd0.js → basic-shape-primary-circle-ellipse-round.svg-fUTtI4Zn.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-C9Hhhoy0.js → basic-shape-primary-square-rectangle.svg-AxYjsCMg.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-BtyWy6Hb.js → basic-shape-shield.svg-DejoQ-qp.js} +1 -1
- package/web/assets/{browser-D-xywlrw.js → browser-AcVcyRyj.js} +1 -1
- package/web/assets/{browser-SQJu0kqP.js → browser-CgHmtA33.js} +1 -1
- package/web/assets/card-DYXJ9e_6.js +32 -0
- package/web/assets/{checkbox-bUKoFar-.js → checkbox-BNsS_laY.js} +3 -3
- package/web/assets/{chip-FS8CF7nQ.js → chip-CLhx1BN5.js} +2 -2
- package/web/assets/client-DWF3UIg2.js +24 -0
- package/web/assets/cloud-chat.store-BrkQ6sdy.js +1 -0
- package/web/assets/cloud-client-BVamD4zV.js +1 -0
- package/web/assets/cloud-session-BsAfbgkv.js +1 -0
- package/web/assets/{cloud-session-D9RcOxiL.js → cloud-session-DVRHDddo.js} +2 -2
- package/web/assets/column-CVMI7gfk.js +763 -0
- package/web/assets/{computer-device-desktop-monitor.svg-MSBAl_IT.js → computer-device-desktop-monitor.svg-BNF_S7yY.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-CEWAl-1r.js → computer-device-desktop.svg-Ulf27hxx.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-DQ1d2ADo.js → computer-device-laptop.svg-I-skOtmX.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-Dzz2XEW6.js → computer-device-mobile-phone-android-samsung-back.svg-_uk-aAy4.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-BfiSZRYt.js → computer-device-mobile-phone-android-samsung.svg-oHv8Jcw4.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-BKDNa4ua.js → computer-device-mobile-phone-iphone-x-back.svg-nYNHlByZ.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-CxwOtpMv.js → computer-device-mobile-phone-iphone-x.svg-BNV8yMsz.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-D-d6m_kv.js → computer-device-mobile-tablet-touch.svg-D6eYCphm.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-D8b5on89.js → computer-device-mobile-tablet.svg-BrVxasnX.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-c-FuyKH3.js → computer-device-network-ethernet-cat6.svg-kBDyvmFe.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-DVIwP-3w.js → computer-device-network-lan-www.svg-DxCA3g5k.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-BXtM5IP8.js → computer-device-network-wifi-connection.svg-PIA_jdq6.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-D0MA5S5K.js → computer-device-network-wifi-router.svg-BmIHCgnZ.js} +1 -1
- package/web/assets/{cssMode-C1ocy9fG.js → cssMode-DACHwZVM.js} +1 -1
- package/web/assets/{divider-DaQ67Uqu.js → divider-CTmL86NV.js} +2 -2
- package/web/assets/{docx-preview-D2pXpGJL.js → docx-preview-8mHccyHq.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-BC5h7SBw.js → ecology-science-erlenmeyer-flask.svg-CPPf1sQr.js} +1 -1
- package/web/assets/{fieldset-DASecQzo.js → fieldset-BU42Vd0z.js} +2 -2
- package/web/assets/{freemarker2-Co24PBKb.js → freemarker2-DqgOX6Fn.js} +1 -1
- package/web/assets/{handlebars-BiGhhRTT.js → handlebars-TTBBMGWH.js} +1 -1
- package/web/assets/{html-jVmuH_kg.js → html-DGf_odQm.js} +1 -1
- package/web/assets/{htmlMode-DfGryePh.js → htmlMode-D-LSVgqS.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-pmP3Tybf.js → image-flash-lightning.svg-uW6nZ9pC.js} +1 -1
- package/web/assets/{image-picture-flower.svg-D5oOhzzg.js → image-picture-flower.svg-oWXTRzBB.js} +1 -1
- package/web/assets/index-BS0htmo7.js +5021 -0
- package/web/assets/index-qjiWPMcS.css +1 -0
- package/web/assets/{interface-alert-exclamation-diamond.svg-H0YNQW-M.js → interface-alert-exclamation-diamond.svg-svwX9rGg.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-MmLyfLsu.js → interface-alert-exclamation-triangle-warning.svg-1SqtE207.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-DPtcCWUk.js → interface-alert-information-circle.svg-DAQzRiWG.js} +1 -1
- package/web/assets/{interface-award-crown.svg-D4TDd5uG.js → interface-award-crown.svg-BLlwNnLN.js} +1 -1
- package/web/assets/{interface-bookmark.svg-BOJKIiPZ.js → interface-bookmark-tag.svg-DKcxOCPe.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-DY2HHX7j.js → interface-bookmark.svg-B0PZfyfo.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-Ml9gQeRQ.js → interface-calendar-date-one.svg-GFId7gEg.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-DjrtXzto.js → interface-content-book-open-pages.svg-C9mxvbj7.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-C7WDuE63.js → interface-content-book-page.svg-DTVIL4CZ.js} +1 -1
- package/web/assets/{interface-content-file.svg-Bj1fDi8J.js → interface-content-file.svg-9Hhcuha8.js} +1 -1
- package/web/assets/{interface-content-folder.svg-CtoSNYlE.js → interface-content-folder.svg-BRjBwjv5.js} +1 -1
- package/web/assets/interface-content-folder.svg-fC-vaV4V.js +1 -0
- package/web/assets/{interface-copy-clipboard.svg-CndmGYGb.js → interface-copy-clipboard.svg-DHujfKOA.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-C8GKdk_Y.js → interface-edit-attachment.svg-BNtrRzRD.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-JwEBvvNd.js → interface-edit-binocular.svg-C7m9_XJl.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-dhVstxFv.js → interface-edit-magic-wand.svg-MVh7T2FU.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-BOT-wlXa.js → interface-edit-tool-paint-roller.svg-CG3Q3Sfa.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-Bkzz_y5T.js → interface-edit-tool-pencil.svg-Cjm_wnC_.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-CUsXllHu.js → interface-favorite-award.svg-CFCGPZr8.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-D4tuSHHG.js → interface-favorite-flag.svg-BaANsqND.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-D-HpTcun.js → interface-favorite-heart.svg-B2YfjK1B.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-Cud3tgeY.js → interface-favorite-star.svg-DdIZAOnM.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-CSCGE6jh.js → interface-favorite-stars-sparkles.svg-DErOt3d0.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-qBM4FMpY.js → interface-hierarchy-flowchart.svg-CegEwz_L.js} +1 -1
- package/web/assets/{interface-home-house.svg-YhTW7PqZ.js → interface-home-house.svg-DEnpyywi.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-SzbaajGz.js → interface-hyperlink.svg-APXQWsOQ.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-C2-5tyeD.js → interface-lighting-brightness.svg-Bt8UdEVE.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-gcAhT36X.js → interface-lock-closed.svg-DUhKy22h.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-BC3s82xO.js → interface-lock-open-unlock.svg-D80GZ0WK.js} +1 -1
- package/web/assets/{interface-login-key.svg-C-2XbaU2.js → interface-login-key.svg-BUZuQC4z.js} +1 -1
- package/web/assets/{interface-search.svg-B0QE3jtv.js → interface-search.svg-C1SGbWh4.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-D3xvk8YU.js → interface-setting-cog.svg-BhT06xOL.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-CRa9esm0.js → interface-share-megaphone-bullhorn.svg-DNA0-4pd.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-TdCeEZOl.js → interface-share-rocket.svg-DyZYsdtW.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-DZTk90vq.js → interface-share-satellite.svg-BnHfHXGT.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-C_8R9-Nb.js → interface-share-space-ship.svg-q8JaUlaM.js} +1 -1
- package/web/assets/{interface-share.svg-CUenxjcS.js → interface-share.svg-dfMV_q01.js} +1 -1
- package/web/assets/{interface-signal-square.svg-CM6pbneT.js → interface-signal-square.svg-BZAXvGUW.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-DaKkRSPs.js → interface-time-clock-circle.svg-fmTRjz7L.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-BupwUgts.js → interface-time-hour-glass.svg--hxc1m2W.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-C3UEzidB.js → interface-users-multiple.svg-CnachJBj.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-DuiN-Lpe.js → interface-weather-moon.svg-AoEOz9T0.js} +1 -1
- package/web/assets/{javascript-cyCZQpCs.js → javascript-DYRKHLYc.js} +1 -1
- package/web/assets/{jsonMode-C7bOJkxl.js → jsonMode-CpdzwU9F.js} +2 -2
- package/web/assets/{liquid-wNd-_zNC.js → liquid-D9vCKfST.js} +1 -1
- package/web/assets/{lspLanguageFeatures-BLqGpyw3.js → lspLanguageFeatures-BCeM67u6.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-DYRNn-F8.js → mail-chat-bubble-square.svg-CcgRWmuD.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-C52yHOX7.js → mail-send-email-paper-airplane.svg-C053lctJ.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-0-Xc7oiy.js → mail-send-envelope.svg-Dij10Q_i.js} +1 -1
- package/web/assets/{mdx-Q8jGyneU.js → mdx-DLUKh9ow.js} +1 -1
- package/web/assets/{minus-DytRiHhn.js → minus-DZytaOJc.js} +2 -2
- package/web/assets/modal-DYL3DOz1.js +1 -0
- package/web/assets/modal-idM6wRD1.js +5 -0
- package/web/assets/{money-cashier-receipt.svg-vbdCrl5f.js → money-cashier-receipt.svg-CZ4os1uZ.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-B0WPo5zD.js → money-currency-dollar-pay.svg-Denbm12e.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-u1MYvAWb.js → money-graph-arrow-increase.svg-CGE6Sbr2.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg--vnvg38g.js → money-graph-bar-chart-increase.svg-Smi2NzVH.js} +1 -1
- package/web/assets/multiselect-D8chjo1K.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-Bm86NNsZ.js → nature-ecology-leaf.svg-DUos6Bhh.js} +1 -1
- package/web/assets/{password-D4dFyeDf.js → password-CBJ4yfim.js} +4 -4
- package/web/assets/{phone-telephone.svg-CDu0gfrF.js → phone-telephone.svg-DqjTWhHK.js} +1 -1
- package/web/assets/{plus-DyqgWY-p.js → plus-CdM2ZQyx.js} +6 -6
- package/web/assets/process.store-BxdP--c-.js +1 -0
- package/web/assets/{programming-bug.svg-GOtIFzyq.js → programming-bug.svg-zpx99bTR.js} +1 -1
- package/web/assets/{programming-cloud.svg-Dob7Yyhx.js → programming-cloud.svg-Dw198CLB.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-BL9a2tMm.js → programming-computer-database-server.svg-BaanLqUL.js} +1 -1
- package/web/assets/{programming-computer-database.svg-CvSRjqHa.js → programming-computer-database.svg-y5Qcgysz.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-HWf5upwd.js → programming-module-four-layout.svg-DQ8HcjMz.js} +1 -1
- package/web/assets/{programming-module-three.svg-v9W9DdQq.js → programming-module-three.svg-CbgPevqj.js} +1 -1
- package/web/assets/{programming-module.svg-BHJLgt2p.js → programming-module.svg-deAnzVVR.js} +1 -1
- package/web/assets/{programming-script-code.svg-BDIXsnT6.js → programming-script-code.svg-D2Qn3_1w.js} +1 -1
- package/web/assets/project-launch.store-Cjco1dyN.js +1 -0
- package/web/assets/project.store-pEhSKAS1.js +1 -0
- package/web/assets/{python-C_Cyv2aj.js → python-UJjSlB62.js} +1 -1
- package/web/assets/{radiobutton-F_E8D321.js → radiobutton-D8PPlyvM.js} +2 -2
- package/web/assets/{razor-DustIlxk.js → razor-CA1xRhq3.js} +1 -1
- package/web/assets/router-B7qnUbTf.js +1 -0
- package/web/assets/settings-scope-QgZMDCpD.js +1 -0
- package/web/assets/{settings.store-CaQ6QeSL.js → settings.store-C3_pPTwT.js} +1 -1
- package/web/assets/{shopping-cart.svg-DyoeDwG3.js → shopping-cart.svg-BKmjHX4l.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-BKPtii5v.js → shopping-gift-present.svg-HKKyiGmo.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-BvBFvRrd.js → shopping-shipping-box-parcel-package.svg-kTMFl43_.js} +1 -1
- package/web/assets/src-CkWablLs.js +1 -0
- package/web/assets/src-DfWVY3Sc.js +572 -0
- package/web/assets/{tabpanel-BbQfLmF1.js → tabpanel-BCGYata1.js} +3 -3
- package/web/assets/{tag-new-circle.svg-hTnv3ssK.js → tag-new-circle.svg-D9B5tiv9.js} +1 -1
- package/web/assets/theme-Lxx3iG7K.js +1 -0
- package/web/assets/{toggleswitch-Ct_pe9Y7.js → toggleswitch-TdY2vwYU.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-CpkewKvu.js → travel-map-earth-globe.svg-D4jsI9PN.js} +1 -1
- package/web/assets/trpc-D86IoEhq.js +1 -0
- package/web/assets/{tsMode-WejVCjTD.js → tsMode-D7Nw-uk2.js} +5 -5
- package/web/assets/{typescript-Bhy-yTki.js → typescript-CO_htKpJ.js} +1 -1
- package/web/assets/useAiChatDrawer-B6JN2q-b.js +1 -0
- package/web/assets/{useCloudOrg-DyonGJWX.js → useCloudOrg-wQX-0p6v.js} +1 -1
- package/web/assets/useEnvVarAutocomplete-DfdXSaqd.js +1 -0
- package/web/assets/useEnvVarAutocomplete-DsxEF6Ya.css +1 -0
- package/web/assets/useProjectCatalog-kHRSO0K2.js +1 -0
- package/web/assets/{useProjectCloudOrg-hi8bDROZ.js → useProjectCloudOrg-B13niYUp.js} +1 -1
- package/web/assets/useServiceUrlHost-DtUQvKz3.js +1 -0
- package/web/assets/{xml-DhE3CKSm.js → xml-JzyfGwW6.js} +1 -1
- package/web/assets/{yaml-BnNl--CF.js → yaml-C9s-8a68.js} +1 -1
- package/web/index.html +2 -2
- package/agent-manager-APY7SZ75.js +0 -9
- package/chunk-6T7R2JZR.js.map +0 -1
- package/chunk-K3H5WJRQ.js.map +0 -1
- package/chunk-OGCEFBSS.js.map +0 -1
- package/settings-manager-MQBUCUIO.js +0 -9
- package/src-Q2AWI57U.js.map +0 -1
- package/web/assets/AgentScalarChatInterface.vue-DVTbGHHm.js +0 -13
- package/web/assets/AgentTerminalPage-BK1JBjF7.js +0 -1
- package/web/assets/AiChatPage-CzLTf0Dh.js +0 -1
- package/web/assets/AppLayout-DIpd73gZ.js +0 -1
- package/web/assets/AuditPage-DDemuQXR.js +0 -1
- package/web/assets/CloudAccountPage-BW4UfXnM.js +0 -1
- package/web/assets/CloudAccountPage-f9nRZeNR.js +0 -1
- package/web/assets/CloudMessagingPage-2gjGcJwo.js +0 -2
- package/web/assets/DashboardPage-2qCxx4Sm.js +0 -164
- package/web/assets/DirectoryPickerDialog-DxxSRtWi.js +0 -1
- package/web/assets/EnvironmentFormPage-Cg6oojrW.js +0 -1
- package/web/assets/EnvironmentListPage-DgQaxPct.js +0 -1
- package/web/assets/KanbanBoardPage-C2zkv8-3.js +0 -4
- package/web/assets/KanbanListPage-nH2wjGBV.js +0 -1
- package/web/assets/LaunchProjectPage-CGr9lWsC.js +0 -1
- package/web/assets/LaunchServicesPage-CLGbYznW.js +0 -1
- package/web/assets/LogViewer-CxPBFVR1.js +0 -3
- package/web/assets/OrgKeyPrompt-bIIIdk_5.js +0 -1
- package/web/assets/ProcessDetailPage-Uh2TiAAJ.js +0 -1
- package/web/assets/RandomJobTestPage-D7j9GCJM.js +0 -2
- package/web/assets/ScenarioEditorPage-Ct8pvptW.js +0 -14
- package/web/assets/SendToChatDialog-Byzw5hfV.js +0 -1
- package/web/assets/ServiceControlsBar-Dht6GO3P.js +0 -1
- package/web/assets/ServiceDetailPage-CbeFd4R4.js +0 -2
- package/web/assets/ServiceFormPage-BNbDJB1o.js +0 -1
- package/web/assets/SettingsPage-Dxhmpet-.js +0 -2063
- package/web/assets/UnlockPage-DJfS33Iu.js +0 -1
- package/web/assets/VaultMigrationPage-2bVNCDJk.js +0 -1
- package/web/assets/VersionBadge-1RvUznxK.js +0 -1
- package/web/assets/WikiPage-Ck-HfGMo.js +0 -1
- package/web/assets/WikiView-DnZi2CXf.js +0 -1
- package/web/assets/add-scalar-classes-DZeMJUzs.js +0 -387
- package/web/assets/card-C0WVIEBg.js +0 -32
- package/web/assets/client-DKfN77U3.js +0 -24
- package/web/assets/cloud-chat.store-C0O-wJT9.js +0 -1
- package/web/assets/cloud-client-D4Mr6l0A.js +0 -1
- package/web/assets/cloud-session-kXf1tl4W.js +0 -1
- package/web/assets/column-BGKAKQS9.js +0 -763
- package/web/assets/index-DBUGVNfV.js +0 -4825
- package/web/assets/index-nUGeXteT.css +0 -1
- package/web/assets/interface-content-folder.svg-DGDMeUjj.js +0 -1
- package/web/assets/modal-DIpZHaX_.js +0 -1
- package/web/assets/modal-Dx2t6N7O.js +0 -5
- package/web/assets/multiselect-0FlwwPJ2.js +0 -251
- package/web/assets/process.store-Dy_a775l.js +0 -1
- package/web/assets/project-launch.store-BFSsFFjl.js +0 -1
- package/web/assets/project.store-CbypuRJa.js +0 -1
- package/web/assets/router-BujVDJWr.js +0 -1
- package/web/assets/settings-scope-hbAQWfja.js +0 -1
- package/web/assets/src-40AEWC6e.js +0 -1
- package/web/assets/src-BsM0Obsp.css +0 -1
- package/web/assets/src-CagkHqfs.js +0 -197
- package/web/assets/src-XBWUvtlx.js +0 -572
- package/web/assets/theme-CXVscC2X.js +0 -1
- package/web/assets/trpc-C5MKhb-3.js +0 -1
- package/web/assets/useAiChatDrawer-tRwj5DTE.js +0 -1
- package/web/assets/useEnvVarAutocomplete-DFNddwqp.css +0 -1
- package/web/assets/useEnvVarAutocomplete-wZvdJ--F.js +0 -1
- package/web/assets/useProjectCatalog-tOf78QC4.js +0 -1
- package/web/assets/useServiceUrlHost-B9WSS4Mi.js +0 -1
- package/web/assets/w3c-keyname-tfhvQ9CV.js +0 -1
- /package/{agent-manager-APY7SZ75.js.map → agent-manager-ACPQWUZ5.js.map} +0 -0
- /package/{chat-QLIFNGA2.js.map → chat-PXMMZIAY.js.map} +0 -0
- /package/{chunk-77UQ2UKW.js.map → chunk-GIHR3BGT.js.map} +0 -0
- /package/{companion-RLSRXTNO.js.map → companion-4RQ3AMOL.js.map} +0 -0
- /package/{desktop-launcher-Q6J2LSVP.js.map → desktop-launcher-ADGRYF4S.js.map} +0 -0
- /package/{settings-manager-MQBUCUIO.js.map → settings-manager-2C7RY6ZC.js.map} +0 -0
- /package/web/assets/{abap-DblxFMgX.js → abap-cDlgWO6H.js} +0 -0
- /package/web/assets/{apex-C_fmPlQy.js → apex-DxzSGotK.js} +0 -0
- /package/web/assets/{azcli-D73HZyav.js → azcli-CUNfZLtQ.js} +0 -0
- /package/web/assets/{bat-Br4Biw6V.js → bat-C-oKGifY.js} +0 -0
- /package/web/assets/{bicep-Cwg6_V-m.js → bicep-C4xTl9QV.js} +0 -0
- /package/web/assets/{browser-D6yPejPt.js → browser-CE5P0iHW.js} +0 -0
- /package/web/assets/{cameligo-Dq6Izwzi.js → cameligo-COpO1ZvP.js} +0 -0
- /package/web/assets/{clojure-U0exYVUx.js → clojure-D8gp5eAN.js} +0 -0
- /package/web/assets/{coffee-mPGPozSE.js → coffee-De9HMN-q.js} +0 -0
- /package/web/assets/{cpp-lpr_PQMA.js → cpp-C4pJyeKy.js} +0 -0
- /package/web/assets/{csharp-saQQwY3s.js → csharp-B4wLqqiU.js} +0 -0
- /package/web/assets/{csp-CcDpUBZN.js → csp-Do0Gg4qE.js} +0 -0
- /package/web/assets/{css-D6QFYBbL.js → css-BLq1nXK0.js} +0 -0
- /package/web/assets/{cypher-B_4KCq-w.js → cypher-CDQzi0TV.js} +0 -0
- /package/web/assets/{dart-CgLuovz1.js → dart-bTPYn7bY.js} +0 -0
- /package/web/assets/{dockerfile-DObNIc52.js → dockerfile-yM7ZnQpo.js} +0 -0
- /package/web/assets/{ecl-BpCwjSsH.js → ecl-BgTpp_c4.js} +0 -0
- /package/web/assets/{elixir-CebZWKus.js → elixir-DO7wJ1ib.js} +0 -0
- /package/web/assets/{flow9-DhoDs9JD.js → flow9-B2Ko_py3.js} +0 -0
- /package/web/assets/{fsharp-YDWqgr0W.js → fsharp-DNdx3wKW.js} +0 -0
- /package/web/assets/{go-CaPX4mu5.js → go-D7LajbkE.js} +0 -0
- /package/web/assets/{graphql-DOSo46Ed.js → graphql-BCQSwUPo.js} +0 -0
- /package/web/assets/{hcl-nSYpx4qj.js → hcl-DR3uNUXT.js} +0 -0
- /package/web/assets/{ini-Ca22qQIM.js → ini-zkzQPitL.js} +0 -0
- /package/web/assets/{java-KrQduvTo.js → java-YFwuCa4S.js} +0 -0
- /package/web/assets/{julia-Bb2MDsY_.js → julia-WWwv4jLR.js} +0 -0
- /package/web/assets/{kotlin-DB7e82Vg.js → kotlin-FwlJkapy.js} +0 -0
- /package/web/assets/{less-K5fiQqgY.js → less-CyhHW1nH.js} +0 -0
- /package/web/assets/{lexon-Do9EcqkA.js → lexon-BScN_v1c.js} +0 -0
- /package/web/assets/{lua-DU9Dpzvs.js → lua-eWb9GpZJ.js} +0 -0
- /package/web/assets/{m3-pF6PmPkL.js → m3-C4NDU793.js} +0 -0
- /package/web/assets/{markdown-BNRSTD3D.js → markdown-DWWpXAtL.js} +0 -0
- /package/web/assets/{mips-OIXxWbNl.js → mips-BpJKGw00.js} +0 -0
- /package/web/assets/{msdax-Blzk7oHr.js → msdax-BiuvyZwP.js} +0 -0
- /package/web/assets/{mysql-CISO3r5e.js → mysql-DJW9Aa9q.js} +0 -0
- /package/web/assets/{objective-c-CfnC_OAj.js → objective-c-YouNnWOW.js} +0 -0
- /package/web/assets/{pascal-BUF-IB2S.js → pascal-jQsRnBre.js} +0 -0
- /package/web/assets/{pascaligo-BKce2a7P.js → pascaligo-DZI84_dt.js} +0 -0
- /package/web/assets/{perl-BSNQJqG3.js → perl-D9TKt-s6.js} +0 -0
- /package/web/assets/{pgsql-B6gnZ9Pz.js → pgsql-DXgI6ehC.js} +0 -0
- /package/web/assets/{php-D3DRjlE-.js → php-Cgqd4wfW.js} +0 -0
- /package/web/assets/{pla-DMkpEwWz.js → pla-DRDkvVUU.js} +0 -0
- /package/web/assets/{postiats-CS9vJAK8.js → postiats-BOLeCCau.js} +0 -0
- /package/web/assets/{powerquery-5wdkUpGP.js → powerquery-DCDtPNBU.js} +0 -0
- /package/web/assets/{powershell-CFy-OLZK.js → powershell-WnZ4e5ia.js} +0 -0
- /package/web/assets/{protobuf-BexdMU0z.js → protobuf-C9Dg-C9o.js} +0 -0
- /package/web/assets/{pug-D7XxQLO5.js → pug-Dr8RhWun.js} +0 -0
- /package/web/assets/{qsharp-Cbf2FpNP.js → qsharp-DukGWvWZ.js} +0 -0
- /package/web/assets/{r-DF7k9FbU.js → r-BC41pTgC.js} +0 -0
- /package/web/assets/{redis-CsS7YEaP.js → redis-D-gYIUku.js} +0 -0
- /package/web/assets/{redshift-ELXdujA0.js → redshift-r0XbF8XS.js} +0 -0
- /package/web/assets/{restructuredtext-xoFIa5lj.js → restructuredtext-DsJDS7Eu.js} +0 -0
- /package/web/assets/{ruby-BqZs-MXO.js → ruby-JPrm3ODz.js} +0 -0
- /package/web/assets/{rust-Bg6ZO_et.js → rust-C8IjEXni.js} +0 -0
- /package/web/assets/{sb-DiB12F6v.js → sb-D8vNiFl9.js} +0 -0
- /package/web/assets/{scala-DElpnKpP.js → scala-DThahuqf.js} +0 -0
- /package/web/assets/{scheme-1ahRBKOq.js → scheme-CvEQUYYf.js} +0 -0
- /package/web/assets/{scss-DEMPy3QV.js → scss-C6obpl8K.js} +0 -0
- /package/web/assets/{shell-DPy86lBu.js → shell-BnVmd31t.js} +0 -0
- /package/web/assets/{solidity-BJ26fCkf.js → solidity-Bo6zEybc.js} +0 -0
- /package/web/assets/{sophia-BisqpnJK.js → sophia-DuB3Px8n.js} +0 -0
- /package/web/assets/{sparql-C7Lhhim4.js → sparql-CW9HqMW2.js} +0 -0
- /package/web/assets/{sql-BXVElqbr.js → sql-CPCPCQON.js} +0 -0
- /package/web/assets/{st-C3Kk-cML.js → st-AxC3n-1-.js} +0 -0
- /package/web/assets/{swift-D8IWJydR.js → swift-CgZOS_MZ.js} +0 -0
- /package/web/assets/{systemverilog-524SrI2Q.js → systemverilog-DYR-yx39.js} +0 -0
- /package/web/assets/{tcl-MYNTx-d-.js → tcl-4hAvWv0d.js} +0 -0
- /package/web/assets/{twig-BAVZN0tW.js → twig-Cf_07aFW.js} +0 -0
- /package/web/assets/{typespec-BhgMHLJQ.js → typespec-2tXj8s11.js} +0 -0
- /package/web/assets/{vb-BLauMmY8.js → vb-DLpM4f4s.js} +0 -0
- /package/web/assets/{wgsl-ybvhdvmz.js → wgsl-BcECae_z.js} +0 -0
|
@@ -1,572 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-D2pXpGJL.js","assets/index-DBUGVNfV.js","assets/index-nUGeXteT.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{Aa as e,Ai as t,Br as n,Ca as r,Ci as i,Da as a,Gn as o,Gr as s,Hn as c,Ii as l,Ir as u,Ji as d,Jn as f,Jr as p,Li as m,Ln as h,Mi as g,Mr as _,Oi as v,Pr as y,Qi as ee,Qn as b,Si as x,Ti as S,Tr as C,Un as te,Ur as w,Va as T,Vn as E,Vr as D,X as ne,Xa as O,Xn as k,Xr as A,Yi as re,Z as ie,Zr as ae,_n as oe,ar as j,at as M,bn as se,ca as N,cr as ce,da as le,dn as P,er as ue,fa as F,fi as I,fn as de,hn as fe,ji as L,ka as R,ki as z,la as B,li as pe,ln as me,mn as he,mr as ge,na as _e,ni as ve,oa as V,oi as ye,ot as be,ti as xe,ua as Se,vn as Ce,vr as we,wa as H,wr as Te,xi as Ee,xn as De,xr as Oe,ya as ke,yn as Ae,yr as je,za as Me,zi as Ne,zr as Pe}from"./index-DBUGVNfV.js";import{t as Fe}from"./checkbox-bUKoFar-.js";import{t as Ie}from"./radiobutton-F_E8D321.js";import{t as Le}from"./card-C0WVIEBg.js";import{t as Re}from"./multiselect-0FlwwPJ2.js";import{a as ze,i as Be,n as Ve,o as He,r as Ue,t as We}from"./tabpanel-BbQfLmF1.js";import{t as Ge}from"./autocomplete-DVfF8-mq.js";import{t as Ke}from"./src-CagkHqfs.js";var qe=ge.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`}}}),Je={name:`BaseSlider`,extends:Ae,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:qe,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function Ye(e){"@babel/helpers - typeof";return Ye=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},Ye(e)}function Xe(e,t,n){return(t=Ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){var t=Qe(e,`string`);return Ye(t)==`symbol`?t:t+``}function Qe(e,t){if(Ye(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ye(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $e(e){return nt(e)||tt(e)||U(e)||et()}function et(){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 U(e,t){if(e){if(typeof e==`string`)return rt(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)?rt(e,t):void 0}}function tt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function nt(e){if(Array.isArray(e))return rt(e)}function rt(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 it={name:`Slider`,extends:Je,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+s(),this.initY=e.top+je(),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`?u(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?$e(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||_(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 ae(Xe({},this.orientation,this.orientation))}}},at=[`data-p`],ot=[`data-p`],W=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],st=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],ct=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`];function lt(e,t,n,r,i,a){return V(),g(`div`,d({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}),[z(`span`,d({class:e.cx(`range`),style:[e.sx(`range`),a.rangeStyle()]},e.ptm(`range`),{"data-p":a.dataP}),null,16,ot),e.range?L(``,!0):(V(),g(`span`,d({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,W)),e.range?(V(),g(`span`,d({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,st)):L(``,!0),e.range?(V(),g(`span`,d({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,ct)):L(``,!0)],16,at)}it.render=lt;var ut={name:`CalendarIcon`,extends:b};function dt(e){return ht(e)||mt(e)||pt(e)||ft()}function ft(){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 pt(e,t){if(e){if(typeof e==`string`)return gt(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)?gt(e,t):void 0}}function mt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ht(e){if(Array.isArray(e))return gt(e)}function gt(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 _t(e,t,n,r,i,a){return V(),g(`svg`,d({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),dt(t[0]||=[z(`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)}ut.render=_t;var vt=ge.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}}}}),yt={name:`BaseDatePicker`,extends:Ce,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:vt,provide:function(){return{$pcDatePicker:this,$parentInstance:this}}};function bt(e,t,n){return(t=xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xt(e){var t=St(e,`string`);return Ct(t)==`symbol`?t:t+``}function St(e,t){if(Ct(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ct(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ct(e){"@babel/helpers - typeof";return Ct=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},Ct(e)}function wt(e){return Dt(e)||Et(e)||kt(e)||Tt()}function Tt(){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 Et(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Dt(e){if(Array.isArray(e))return At(e)}function Ot(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=kt(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 kt(e,t){if(e){if(typeof e==`string`)return At(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)?At(e,t):void 0}}function At(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 jt={name:`DatePicker`,extends:yt,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=ye(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&&we.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=Ot(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){y(e,this.inline?void 0:{position:`absolute`,top:`0`}),this.autoZIndex&&we.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&&we.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 j(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&&!n()&&(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?C(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=p(this.overlay)+`px`,this.overlay.style.minWidth=p(this.$el)+`px`):this.overlay.style.width=p(this.$el)+`px`,Oe(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=Ot(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(Pe(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(wt(this.rawValue),[n]):[n];else if(this.isRangeSelection())if(this.rawValue&&this.rawValue.length){var i=this.parseValueForComparison(this.rawValue[0]),a=this.rawValue[1];!a&&n.getTime()>=i.getTime()?(a=n,this.focusedDateIndex=1):(i=n,a=null,this.focusedDateIndex=0),r=[i,a]}else r=[n,null],this.focusedDateIndex=0;r!==null&&this.updateModel(r),this.isRangeSelection()&&this.hideOnRangeSelection&&r[1]!==null&&setTimeout(function(){t.overlayVisible=!1},150),this.$emit(`date-select`,n)},updateModel:function(e){var t=this;if(this.rawValue=e,this.updateModelType===`date`)if(this.isSingleSelection())this.writeValue(e);else{var n=null;Array.isArray(e)&&(n=e.map(function(e){return t.parseValueForComparison(e)})),this.writeValue(n)}else if(this.updateModelType==`string`){if(this.isSingleSelection())this.writeValue(this.formatDateTime(e));else if(this.isMultipleSelection()){var r=null;Array.isArray(e)&&(r=e.map(function(e){return t.formatDateTime(e)})),this.writeValue(r)}else if(this.isRangeSelection()){var i=null;Array.isArray(e)&&(i=e.map(function(e){return e==null?null:typeof e==`string`?e:t.formatDateTime(e)})),this.writeValue(i)}}},shouldSelectDate:function(){return this.isMultipleSelection()?this.maxDateCount==null?!0:this.maxDateCount>(this.rawValue?this.rawValue.length:0):!0},isSingleSelection:function(){return this.selectionMode===`single`},isRangeSelection:function(){return this.selectionMode===`range`},isMultipleSelection:function(){return this.selectionMode===`multiple`},formatValue:function(e){if(typeof e==`string`)return this.dateFormat?isNaN(new Date(e))?e:this.formatDate(new Date(e),this.dateFormat):e;var t=``;if(e)try{if(this.isSingleSelection())t=this.formatDateTime(e);else if(this.isMultipleSelection())for(var n=0;n<e.length;n++){var r=typeof e[n]==`string`?this.formatDateTime(this.parseValueForComparison(e[n])):this.formatDateTime(e[n]);t+=r,n!==e.length-1&&(t+=`, `)}else if(this.isRangeSelection()&&e&&e.length){var i=this.parseValueForComparison(e[0]),a=this.parseValueForComparison(e[1]);t=this.formatDateTime(i),a&&(t+=` - `+this.formatDateTime(a))}}catch{t=e}return t},formatDateTime:function(e){var t=null;return xe(e)&&pe(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(wt(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=Ot(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=Ct(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=Te(i);switch(e.code){case`ArrowDown`:if(r.tabIndex=`-1`,i.parentElement.nextElementSibling){var o=Te(i.parentElement),s=Array.from(i.parentElement.parentElement.children).slice(o+1).find(function(e){var t=e.children[a].children[0];return!_(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=Te(i.parentElement),u=Array.from(i.parentElement.parentElement.children).slice(0,l).reverse().find(function(e){var t=e.children[a].children[0];return!_(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!_(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!_(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];_(g,`data-p-disabled`)?this.navigateToMonth(e,!0,n):(g.tabIndex=`0`,g.focus()),e.preventDefault();break;case`End`:r.tabIndex=`-1`;var v=i.parentElement,y=v.children[v.children.length-1].children[0];_(y,`data-p-disabled`)?this.navigateToMonth(e,!1,n):(y.tabIndex=`0`,y.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=Pe(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=A(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=Te(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=Te(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`?Pe(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?Pe(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):Pe(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`?A(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?A(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):A(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=Pe(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]`),n=A(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=Pe(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),i=A(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=A(this.overlay,`span[data-p-selected="true"]`),!e&&(e=A(this.overlay,`td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])`)||A(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=w(this.overlay);if(t&&t.length>0)if(!document.activeElement)t[0].focus();else{var n=t.indexOf(document.activeElement);if(e.shiftKey)n===-1||n===0?t[t.length-1].focus():t[n-1].focus();else if(n===-1)if(this.timeOnly)t[0].focus();else{var r=t.findIndex(function(e){return e.tagName===`SPAN`});r===-1&&(r=t.findIndex(function(e){return e.tagName===`BUTTON`})),r===-1?t[0].focus():t[r].focus()}else n===t.length-1?t[0].focus():t[n+1].focus()}},onContainerButtonKeydown:function(e){switch(e.code){case`Tab`:this.trapFocus(e);break;case`Escape`:this.overlayVisible=!1,e.preventDefault();break}this.$emit(`keydown`,e)},onInput:function(e){try{var t;this.selectionStart=this.input.selectionStart,this.selectionEnd=this.input.selectionEnd,(t=this.$refs.clearIcon)!=null&&(t=t.$el)!=null&&t.style&&(this.$refs.clearIcon.$el.style.display=ye(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=ye(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&&w(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||De.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.inline||(this.input.focus(),this.overlayVisible=!1,e.stopPropagation());break}},onOverlayMouseUp:function(e){this.onOverlayClick(e)},createResponsiveStyle:function(){if(this.numberOfMonths>1&&this.responsiveOptions&&!this.isUnstyled){if(!this.responsiveStyleElement){var e;this.responsiveStyleElement=document.createElement(`style`),this.responsiveStyleElement.type=`text/css`,D(this.responsiveStyleElement,`nonce`,(e=this.$primevue)==null||(e=e.config)==null||(e=e.csp)==null?void 0:e.nonce),document.body.appendChild(this.responsiveStyleElement)}var t=``;if(this.responsiveOptions)for(var n=ve(),r=wt(this.responsiveOptions).filter(function(e){return!!(e.breakpoint&&e.numMonths)}).sort(function(e,t){return-1*n(e.breakpoint,t.breakpoint)}),i=0;i<r.length;i++){for(var a=r[i],o=a.breakpoint,s=a.numMonths,c=`
|
|
558
|
-
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${s}) .p-datepicker-next-button {
|
|
559
|
-
display: inline-flex;
|
|
560
|
-
}
|
|
561
|
-
`,l=s;l<this.numberOfMonths;l++)c+=`
|
|
562
|
-
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${l+1}) {
|
|
563
|
-
display: none;
|
|
564
|
-
}
|
|
565
|
-
`;t+=`
|
|
566
|
-
@media screen and (max-width: ${o}) {
|
|
567
|
-
${c}
|
|
568
|
-
}
|
|
569
|
-
`}this.responsiveStyleElement.innerHTML=t}},destroyResponsiveStyleElement:function(){this.responsiveStyleElement&&=(this.responsiveStyleElement.remove(),null)},dayDataP:function(e){return ae({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 ae({fluid:this.$fluid})},panelDataP:function(){return ae(bt({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return ae(bt({},this.size,this.size))},timePickerDataP:function(){return ae({"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:oe,Button:o,Portal:ue,CalendarIcon:ut,ChevronLeftIcon:ze,ChevronRightIcon:be,ChevronUpIcon:M,ChevronDownIcon:he,TimesIcon:k},directives:{ripple:f}},Mt=[`id`,`data-p`],Nt=[`disabled`,`aria-label`,`aria-expanded`,`aria-controls`],G=[`data-p`],Pt=[`id`,`role`,`aria-modal`,`aria-label`,`data-p`],Ft=[`disabled`,`aria-label`],It=[`disabled`,`aria-label`],Lt=[`disabled`,`aria-label`],Rt=[`disabled`,`aria-label`],zt=[`data-p-disabled`],Bt=[`abbr`],Vt=[`data-p-disabled`],Ht=[`aria-label`,`data-p-today`,`data-p-other-month`],Ut=[`onClick`,`onKeydown`,`aria-selected`,`aria-disabled`,`data-p`],Wt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Gt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Kt=[`data-p`];function qt(n,i,o,s,c,u){var f=Se(`InputText`),p=Se(`TimesIcon`),h=Se(`Button`),_=Se(`Portal`),v=le(`ripple`);return V(),g(`span`,d({ref:`container`,id:n.$id,class:n.cx(`root`),style:n.sx(`root`),"data-p":u.containerDataP},n.ptmi(`root`)),[n.inline?L(``,!0):(V(),t(f,{key:0,ref:u.inputRef,id:n.inputId,role:`combobox`,class:a([n.inputClass,n.cx(`pcInputText`)]),style:R(n.inputStyle),defaultValue:u.inputFieldValue,placeholder:n.placeholder,name:n.name,size:n.size,invalid:n.invalid,variant:n.variant,fluid:n.fluid,required:n.required,unstyled:n.unstyled,autocomplete:`off`,"aria-autocomplete":`none`,"aria-haspopup":`dialog`,"aria-expanded":c.overlayVisible,"aria-controls":c.overlayVisible?u.panelId:void 0,"aria-labelledby":n.ariaLabelledby,"aria-label":n.ariaLabel,inputmode:`none`,disabled:n.disabled,readonly:!n.manualInput||n.readonly,tabindex:0,onInput:u.onInput,onClick:u.onInputClick,onFocus:u.onFocus,onBlur:u.onBlur,onKeydown:u.onKeyDown,"data-p-has-dropdown":n.showIcon&&n.iconDisplay===`button`&&!n.inline,"data-p-has-e-icon":n.showIcon&&n.iconDisplay===`input`&&!n.inline,pt:n.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(`.`))),n.showClear&&!n.inline?B(n.$slots,`clearicon`,{key:1,class:a(n.cx(`clearIcon`)),clearCallback:u.onClearClick},function(){return[m(p,d({ref:`clearIcon`,class:[n.cx(`clearIcon`)],onClick:u.onClearClick},n.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):L(``,!0),n.showIcon&&n.iconDisplay===`button`&&!n.inline?B(n.$slots,`dropdownbutton`,{key:2,toggleCallback:u.onButtonClick},function(){return[z(`button`,d({class:n.cx(`dropdown`),disabled:n.disabled,onClick:i[0]||=function(){return u.onButtonClick&&u.onButtonClick.apply(u,arguments)},type:`button`,"aria-label":n.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":c.overlayVisible,"aria-controls":u.panelId},n.ptm(`dropdown`)),[B(n.$slots,`dropdownicon`,{class:a(n.icon)},function(){return[(V(),t(F(n.icon?`span`:`CalendarIcon`),d({class:n.icon},n.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,Nt)]}):n.showIcon&&n.iconDisplay===`input`&&!n.inline?(V(),g(S,{key:3},[n.$slots.inputicon||n.showIcon?(V(),g(`span`,d({key:0,class:n.cx(`inputIconContainer`),"data-p":u.inputIconDataP},n.ptm(`inputIconContainer`)),[B(n.$slots,`inputicon`,{class:a(n.cx(`inputIcon`)),clickCallback:u.onButtonClick},function(){return[(V(),t(F(n.icon?`i`:`CalendarIcon`),d({class:[n.icon,n.cx(`inputIcon`)],onClick:u.onButtonClick},n.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,G)):L(``,!0)],64)):L(``,!0),m(_,{appendTo:n.appendTo,disabled:n.inline},{default:r(function(){return[m(I,d({name:`p-anchored-overlay`,onEnter:i[58]||=function(e){return u.onOverlayEnter(e)},onAfterEnter:u.onOverlayEnterComplete,onAfterLeave:u.onOverlayAfterLeave,onLeave:u.onOverlayLeave},n.ptm(`transition`)),{default:r(function(){return[n.inline||c.overlayVisible?(V(),g(`div`,d({key:0,ref:u.overlayRef,id:u.panelId,class:[n.cx(`panel`),n.panelClass],style:n.panelStyle,role:n.inline?null:`dialog`,"aria-modal":n.inline?null:`true`,"aria-label":n.$primevue.config.locale.chooseDate,onClick:i[55]||=function(){return u.onOverlayClick&&u.onOverlayClick.apply(u,arguments)},onKeydown:i[56]||=function(){return u.onOverlayKeyDown&&u.onOverlayKeyDown.apply(u,arguments)},onMouseup:i[57]||=function(){return u.onOverlayMouseUp&&u.onOverlayMouseUp.apply(u,arguments)},"data-p":u.panelDataP},n.ptm(`panel`)),[n.timeOnly?L(``,!0):(V(),g(S,{key:0},[z(`div`,d({class:n.cx(`calendarContainer`)},n.ptm(`calendarContainer`)),[(V(!0),g(S,null,N(u.months,function(a,o){return V(),g(`div`,d({key:a.month+a.year,class:n.cx(`calendar`)},{ref_for:!0},n.ptm(`calendar`)),[z(`div`,d({class:n.cx(`header`)},{ref_for:!0},n.ptm(`header`)),[B(n.$slots,`header`),B(n.$slots,`prevbutton`,{actionCallback:function(e){return u.onPrevButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[H(m(h,d({ref_for:!0,ref:u.previousButtonRef,class:n.cx(`pcPrevButton`),disabled:n.disabled,"aria-label":c.currentView===`year`?n.$primevue.config.locale.prevDecade:c.currentView===`month`?n.$primevue.config.locale.prevYear:n.$primevue.config.locale.prevMonth,unstyled:n.unstyled,onClick:u.onPrevButtonClick,onKeydown:u.onContainerButtonKeydown},{ref_for:!0},n.navigatorButtonProps,{pt:n.ptm(`pcPrevButton`),"data-pc-group-section":`navigator`}),{icon:r(function(e){return[B(n.$slots,`previcon`,{},function(){return[(V(),t(F(n.prevIcon?`span`:`ChevronLeftIcon`),d({class:[n.prevIcon,e.class]},{ref_for:!0},n.ptm(`pcPrevButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[Ee,o===0]])]}),z(`div`,d({class:n.cx(`title`)},{ref_for:!0},n.ptm(`title`)),[n.$primevue.config.locale.showMonthAfterYear?(V(),g(S,{key:0},[c.currentView===`year`?L(``,!0):(V(),g(`button`,d({key:0,type:`button`,onClick:i[1]||=function(){return u.switchToYearView&&u.switchToYearView.apply(u,arguments)},onKeydown:i[2]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:n.cx(`selectYear`),disabled:u.switchViewButtonDisabled,"aria-label":n.$primevue.config.locale.chooseYear},{ref_for:!0},n.ptm(`selectYear`),{"data-pc-group-section":`view`}),e(u.getYear(a)),17,Ft)),c.currentView===`date`?(V(),g(`button`,d({key:1,type:`button`,onClick:i[3]||=function(){return u.switchToMonthView&&u.switchToMonthView.apply(u,arguments)},onKeydown:i[4]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:n.cx(`selectMonth`),disabled:u.switchViewButtonDisabled,"aria-label":n.$primevue.config.locale.chooseMonth},{ref_for:!0},n.ptm(`selectMonth`),{"data-pc-group-section":`view`}),e(u.getMonthName(a.month)),17,It)):L(``,!0)],64)):(V(),g(S,{key:1},[c.currentView===`date`?(V(),g(`button`,d({key:0,type:`button`,onClick:i[5]||=function(){return u.switchToMonthView&&u.switchToMonthView.apply(u,arguments)},onKeydown:i[6]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:n.cx(`selectMonth`),disabled:u.switchViewButtonDisabled,"aria-label":n.$primevue.config.locale.chooseMonth},{ref_for:!0},n.ptm(`selectMonth`),{"data-pc-group-section":`view`}),e(u.getMonthName(a.month)),17,Lt)):L(``,!0),c.currentView===`year`?L(``,!0):(V(),g(`button`,d({key:1,type:`button`,onClick:i[7]||=function(){return u.switchToYearView&&u.switchToYearView.apply(u,arguments)},onKeydown:i[8]||=function(){return u.onContainerButtonKeydown&&u.onContainerButtonKeydown.apply(u,arguments)},class:n.cx(`selectYear`),disabled:u.switchViewButtonDisabled,"aria-label":n.$primevue.config.locale.chooseYear},{ref_for:!0},n.ptm(`selectYear`),{"data-pc-group-section":`view`}),e(u.getYear(a)),17,Rt))],64)),c.currentView===`year`?(V(),g(`span`,d({key:2,class:n.cx(`decade`)},{ref_for:!0},n.ptm(`decade`)),[B(n.$slots,`decade`,{years:u.yearPickerValues},function(){return[l(e(u.yearPickerValues[0].value)+` - `+e(u.yearPickerValues[u.yearPickerValues.length-1].value),1)]})],16)):L(``,!0)],16),B(n.$slots,`nextbutton`,{actionCallback:function(e){return u.onNextButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[H(m(h,d({ref_for:!0,ref:u.nextButtonRef,class:n.cx(`pcNextButton`),disabled:n.disabled,"aria-label":c.currentView===`year`?n.$primevue.config.locale.nextDecade:c.currentView===`month`?n.$primevue.config.locale.nextYear:n.$primevue.config.locale.nextMonth,unstyled:n.unstyled,onClick:u.onNextButtonClick,onKeydown:u.onContainerButtonKeydown},{ref_for:!0},n.navigatorButtonProps,{pt:n.ptm(`pcNextButton`),"data-pc-group-section":`navigator`}),{icon:r(function(e){return[B(n.$slots,`nexticon`,{},function(){return[(V(),t(F(n.nextIcon?`span`:`ChevronRightIcon`),d({class:[n.nextIcon,e.class]},{ref_for:!0},n.ptm(`pcNextButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[Ee,n.numberOfMonths===1?!0:o===n.numberOfMonths-1]])]})],16),c.currentView===`date`?(V(),g(`table`,d({key:0,class:n.cx(`dayView`),role:`grid`},{ref_for:!0},n.ptm(`dayView`)),[z(`thead`,d({ref_for:!0},n.ptm(`tableHeader`)),[z(`tr`,d({ref_for:!0},n.ptm(`tableHeaderRow`)),[n.showWeek?(V(),g(`th`,d({key:0,scope:`col`,class:n.cx(`weekHeader`)},{ref_for:!0},n.ptm(`weekHeader`,{context:{disabled:n.showWeek}}),{"data-p-disabled":n.showWeek,"data-pc-group-section":`tableheadercell`}),[B(n.$slots,`weekheaderlabel`,{},function(){return[z(`span`,d({ref_for:!0},n.ptm(`weekHeaderLabel`,{context:{disabled:n.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),e(u.weekHeaderLabel),17)]})],16,zt)):L(``,!0),(V(!0),g(S,null,N(u.weekDays,function(t){return V(),g(`th`,d({key:t,scope:`col`,abbr:t},{ref_for:!0},n.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:n.cx(`weekDayCell`)}),[z(`span`,d({class:n.cx(`weekDay`)},{ref_for:!0},n.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),e(t),17)],16,Bt)}),128))],16)],16),z(`tbody`,d({ref_for:!0},n.ptm(`tableBody`)),[(V(!0),g(S,null,N(a.dates,function(t,r){return V(),g(`tr`,d({key:t[0].day+``+t[0].month},{ref_for:!0},n.ptm(`tableBodyRow`)),[n.showWeek?(V(),g(`td`,d({key:0,class:n.cx(`weekNumber`)},{ref_for:!0},n.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[z(`span`,d({class:n.cx(`weekLabelContainer`)},{ref_for:!0},n.ptm(`weekLabelContainer`,{context:{disabled:n.showWeek}}),{"data-p-disabled":n.showWeek,"data-pc-group-section":`tablebodycelllabel`}),[B(n.$slots,`weeklabel`,{weekNumber:a.weekNumbers[r]},function(){return[a.weekNumbers[r]<10?(V(),g(`span`,d({key:0,style:{visibility:`hidden`}},{ref_for:!0},n.ptm(`weekLabel`)),`0`,16)):L(``,!0),l(` `+e(a.weekNumbers[r]),1)]})],16,Vt)],16)):L(``,!0),(V(!0),g(S,null,N(t,function(t){return V(),g(`td`,d({key:t.day+``+t.month,"aria-label":t.day,class:n.cx(`dayCell`,{date:t})},{ref_for:!0},n.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`}),[n.showOtherMonths||!t.otherMonth?H((V(),g(`span`,d({key:0,class:n.cx(`day`,{date:t}),onClick:function(e){return u.onDateSelect(e,t)},draggable:`false`,onKeydown:function(e){return u.onDateCellKeydown(e,t,o)},"aria-selected":u.isSelected(t),"aria-disabled":!t.selectable},{ref_for:!0},n.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`}),[B(n.$slots,`date`,{date:t},function(){return[l(e(t.day),1)]})],16,Ut)),[[v]]):L(``,!0),u.isSelected(t)?(V(),g(`div`,d({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},n.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),e(t.day),17)):L(``,!0)],16,Ht)}),128))],16)}),128))],16)],16)):L(``,!0)],16)}),128))],16),c.currentView===`month`?(V(),g(`div`,d({key:0,class:n.cx(`monthView`)},n.ptm(`monthView`)),[(V(!0),g(S,null,N(u.monthPickerValues,function(t,r){return H((V(),g(`span`,d({key:t,onClick:function(e){return u.onMonthSelect(e,{month:t,index:r})},onKeydown:function(e){return u.onMonthCellKeydown(e,{month:t,index:r})},class:n.cx(`month`,{month:t,index:r})},{ref_for:!0},n.ptm(`month`,{context:{month:t,monthIndex:r,selected:u.isMonthSelected(r),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":u.isMonthSelected(r)}),[l(e(t.value)+` `,1),u.isMonthSelected(r)?(V(),g(`div`,d({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},n.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),e(t.value),17)):L(``,!0)],16,Wt)),[[v]])}),128))],16)):L(``,!0),c.currentView===`year`?(V(),g(`div`,d({key:1,class:n.cx(`yearView`)},n.ptm(`yearView`)),[(V(!0),g(S,null,N(u.yearPickerValues,function(t){return H((V(),g(`span`,d({key:t.value,onClick:function(e){return u.onYearSelect(e,t)},onKeydown:function(e){return u.onYearCellKeydown(e,t)},class:n.cx(`year`,{year:t})},{ref_for:!0},n.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)}),[l(e(t.value)+` `,1),u.isYearSelected(t.value)?(V(),g(`div`,d({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},n.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),e(t.value),17)):L(``,!0)],16,Gt)),[[v]])}),128))],16)):L(``,!0)],64)),(n.showTime||n.timeOnly)&&c.currentView===`date`?(V(),g(`div`,d({key:1,class:n.cx(`timePicker`),"data-p":u.timePickerDataP},n.ptm(`timePicker`)),[z(`div`,d({class:n.cx(`hourPicker`)},n.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[B(n.$slots,`hourincrementbutton`,{callbacks:u.hourIncrementCallbacks},function(){return[m(h,d({class:n.cx(`pcIncrementButton`),"aria-label":n.$primevue.config.locale.nextHour,unstyled:n.unstyled,onMousedown:i[9]||=function(e){return u.onTimePickerElementMouseDown(e,0,1)},onMouseup:i[10]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,i[12]||=x(function(e){return u.onTimePickerElementMouseDown(e,0,1)},[`enter`]),i[13]||=x(function(e){return u.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:i[11]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[i[14]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),i[15]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},n.timepickerButtonProps,{pt:n.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`incrementicon`,{},function(){return[(V(),t(F(n.incrementIcon?`span`:`ChevronUpIcon`),d({class:[n.incrementIcon,e.class]},n.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]}),z(`span`,d(n.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),e(u.formattedCurrentHour),17),B(n.$slots,`hourdecrementbutton`,{callbacks:u.hourDecrementCallbacks},function(){return[m(h,d({class:n.cx(`pcDecrementButton`),"aria-label":n.$primevue.config.locale.prevHour,unstyled:n.unstyled,onMousedown:i[16]||=function(e){return u.onTimePickerElementMouseDown(e,0,-1)},onMouseup:i[17]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,i[19]||=x(function(e){return u.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),i[20]||=x(function(e){return u.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:i[18]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[i[21]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),i[22]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},n.timepickerButtonProps,{pt:n.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`decrementicon`,{},function(){return[(V(),t(F(n.decrementIcon?`span`:`ChevronDownIcon`),d({class:[n.decrementIcon,e.class]},n.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]})],16),z(`div`,d(n.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[z(`span`,d(n.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),e(n.timeSeparator),17)],16),z(`div`,d({class:n.cx(`minutePicker`)},n.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[B(n.$slots,`minuteincrementbutton`,{callbacks:u.minuteIncrementCallbacks},function(){return[m(h,d({class:n.cx(`pcIncrementButton`),"aria-label":n.$primevue.config.locale.nextMinute,disabled:n.disabled,unstyled:n.unstyled,onMousedown:i[23]||=function(e){return u.onTimePickerElementMouseDown(e,1,1)},onMouseup:i[24]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,i[26]||=x(function(e){return u.onTimePickerElementMouseDown(e,1,1)},[`enter`]),i[27]||=x(function(e){return u.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:i[25]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[i[28]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),i[29]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},n.timepickerButtonProps,{pt:n.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`incrementicon`,{},function(){return[(V(),t(F(n.incrementIcon?`span`:`ChevronUpIcon`),d({class:[n.incrementIcon,e.class]},n.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),z(`span`,d(n.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),e(u.formattedCurrentMinute),17),B(n.$slots,`minutedecrementbutton`,{callbacks:u.minuteDecrementCallbacks},function(){return[m(h,d({class:n.cx(`pcDecrementButton`),"aria-label":n.$primevue.config.locale.prevMinute,disabled:n.disabled,unstyled:n.unstyled,onMousedown:i[30]||=function(e){return u.onTimePickerElementMouseDown(e,1,-1)},onMouseup:i[31]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,i[33]||=x(function(e){return u.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),i[34]||=x(function(e){return u.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:i[32]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[i[35]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),i[36]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},n.timepickerButtonProps,{pt:n.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`decrementicon`,{},function(){return[(V(),t(F(n.decrementIcon?`span`:`ChevronDownIcon`),d({class:[n.decrementIcon,e.class]},n.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16),n.showSeconds?(V(),g(`div`,d({key:0,class:n.cx(`separatorContainer`)},n.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[z(`span`,d(n.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),e(n.timeSeparator),17)],16)):L(``,!0),n.showSeconds?(V(),g(`div`,d({key:1,class:n.cx(`secondPicker`)},n.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[B(n.$slots,`secondincrementbutton`,{callbacks:u.secondIncrementCallbacks},function(){return[m(h,d({class:n.cx(`pcIncrementButton`),"aria-label":n.$primevue.config.locale.nextSecond,disabled:n.disabled,unstyled:n.unstyled,onMousedown:i[37]||=function(e){return u.onTimePickerElementMouseDown(e,2,1)},onMouseup:i[38]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,i[40]||=x(function(e){return u.onTimePickerElementMouseDown(e,2,1)},[`enter`]),i[41]||=x(function(e){return u.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:i[39]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[i[42]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),i[43]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},n.timepickerButtonProps,{pt:n.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`incrementicon`,{},function(){return[(V(),t(F(n.incrementIcon?`span`:`ChevronUpIcon`),d({class:[n.incrementIcon,e.class]},n.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),z(`span`,d(n.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),e(u.formattedCurrentSecond),17),B(n.$slots,`seconddecrementbutton`,{callbacks:u.secondDecrementCallbacks},function(){return[m(h,d({class:n.cx(`pcDecrementButton`),"aria-label":n.$primevue.config.locale.prevSecond,disabled:n.disabled,unstyled:n.unstyled,onMousedown:i[44]||=function(e){return u.onTimePickerElementMouseDown(e,2,-1)},onMouseup:i[45]||=function(e){return u.onTimePickerElementMouseUp(e)},onKeydown:[u.onContainerButtonKeydown,i[47]||=x(function(e){return u.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),i[48]||=x(function(e){return u.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:i[46]||=function(e){return u.onTimePickerElementMouseLeave()},onKeyup:[i[49]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`enter`]),i[50]||=x(function(e){return u.onTimePickerElementMouseUp(e)},[`space`])]},n.timepickerButtonProps,{pt:n.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`decrementicon`,{},function(){return[(V(),t(F(n.decrementIcon?`span`:`ChevronDownIcon`),d({class:[n.decrementIcon,e.class]},n.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16)):L(``,!0),n.hourFormat==`12`?(V(),g(`div`,d({key:2,class:n.cx(`separatorContainer`)},n.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[z(`span`,d(n.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),e(n.timeSeparator),17)],16)):L(``,!0),n.hourFormat==`12`?(V(),g(`div`,d({key:3,class:n.cx(`ampmPicker`)},n.ptm(`ampmPicker`)),[B(n.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return u.toggleAMPM(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[m(h,d({class:n.cx(`pcIncrementButton`),"aria-label":n.$primevue.config.locale.am,disabled:n.disabled,unstyled:n.unstyled,onClick:i[51]||=function(e){return u.toggleAMPM(e)},onKeydown:u.onContainerButtonKeydown},n.timepickerButtonProps,{pt:n.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`incrementicon`,{class:a(n.cx(`incrementIcon`))},function(){return[(V(),t(F(n.incrementIcon?`span`:`ChevronUpIcon`),d({class:[n.cx(`incrementIcon`),e.class]},n.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),z(`span`,d(n.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),e(c.pm?n.$primevue.config.locale.pm:n.$primevue.config.locale.am),17),B(n.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return u.toggleAMPM(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[m(h,d({class:n.cx(`pcDecrementButton`),"aria-label":n.$primevue.config.locale.pm,disabled:n.disabled,onClick:i[52]||=function(e){return u.toggleAMPM(e)},onKeydown:u.onContainerButtonKeydown},n.timepickerButtonProps,{pt:n.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:r(function(e){return[B(n.$slots,`decrementicon`,{class:a(n.cx(`decrementIcon`))},function(){return[(V(),t(F(n.decrementIcon?`span`:`ChevronDownIcon`),d({class:[n.cx(`decrementIcon`),e.class]},n.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`onKeydown`,`pt`])]})],16)):L(``,!0)],16,Kt)):L(``,!0),n.showButtonBar?(V(),g(`div`,d({key:2,class:n.cx(`buttonbar`)},n.ptm(`buttonbar`)),[B(n.$slots,`buttonbar`,{todayCallback:function(e){return u.onTodayButtonClick(e)},clearCallback:function(e){return u.onClearButtonClick(e)}},function(){return[B(n.$slots,`todaybutton`,{actionCallback:function(e){return u.onTodayButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[m(h,d({label:u.todayLabel,onClick:i[53]||=function(e){return u.onTodayButtonClick(e)},class:n.cx(`pcTodayButton`),unstyled:n.unstyled,onKeydown:u.onContainerButtonKeydown},n.todayButtonProps,{pt:n.ptm(`pcTodayButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]}),B(n.$slots,`clearbutton`,{actionCallback:function(e){return u.onClearButtonClick(e)},keydownCallback:function(e){return u.onContainerButtonKeydown(e)}},function(){return[m(h,d({label:u.clearLabel,onClick:i[54]||=function(e){return u.onClearButtonClick(e)},class:n.cx(`pcClearButton`),unstyled:n.unstyled,onKeydown:u.onContainerButtonKeydown},n.clearButtonProps,{pt:n.ptm(`pcClearButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]})]})],16)):L(``,!0),B(n.$slots,`footer`)],16,Pt)):L(``,!0)]}),_:3},16,[`onAfterEnter`,`onAfterLeave`,`onLeave`])]}),_:3},8,[`appendTo`,`disabled`])],16,Mt)}jt.render=qt;function Jt(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 Yt(e,t=new Date){let n=Jt(e);if(!n)return null;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n.getTime()-r.getTime())/864e5)}function Xt(e,t=new Date){let n=Yt(e,t);return n===null?null:n<0?`overdue`:n===0?`today`:n<=2?`soon`:`later`}function Zt(e,t){let n=Jt(e);return n?n.toLocaleDateString(t,{day:`2-digit`,month:`2-digit`,year:`numeric`}):e}var Qt={class:`kb-card__top`},$t={class:`kb-card__title`},en={class:`kb-card__actions`},tn={key:0,class:`kb-card__groups`},nn={key:1,class:`kb-card__assignees`},rn=[`title`],K=[`src`,`onError`],an={key:2,class:`kb-card__badges`},on={key:1,class:`kb-card__prio`},sn={key:2,class:`pi pi-arrow-up`},cn={key:3,class:`kb-card__img-badge`},ln={key:4,class:`pi pi-align-left`},un={key:5,class:`kb-card__img-badge`},dn={key:6,class:`kb-card__img-badge`},fn=E(Ne({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(t){let n=t,r=v(()=>{let e=n.card.deadline;if(!e)return null;let t=Xt(e);return t?{label:Zt(e),state:t}:null}),i=Me(new Set);function o(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}function s(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}return(t,c)=>{let u=le(`tooltip`);return V(),g(S,null,[z(`div`,Qt,[z(`span`,$t,e(n.card.title),1),z(`div`,en,[B(t.$slots,`actions`,{},void 0,!0)])]),n.card.groups?.length?(V(),g(`div`,tn,[(V(!0),g(S,null,N(n.card.groups,t=>(V(),g(`span`,{key:t,class:`kb-card__group`},e(t),1))),128))])):L(``,!0),n.card.assignees?.length?(V(),g(`div`,nn,[(V(!0),g(S,null,N(n.card.assignees,t=>(V(),g(`span`,{key:t.id,class:`kb-card__avatar`,style:R(o(t.id)),title:t.name},[n.avatarUrl&&!i.has(t.id)?(V(),g(`img`,{key:0,src:n.avatarUrl(t.id),alt:``,onError:e=>i.add(t.id)},null,40,K)):(V(),g(S,{key:1},[l(e(s(t.name)),1)],64))],12,rn))),128))])):L(``,!0),n.card.markdown||n.card.images.length||n.card.commentCount||n.childCount||n.hasParent||r.value||t.$slots.badges?(V(),g(`div`,an,[r.value?H((V(),g(`span`,{key:0,class:a([`kb-card__deadline`,`kb-card__deadline--${r.value.state}`])},[c[0]||=z(`i`,{class:`pi pi-calendar`},null,-1),l(` `+e(r.value.label),1)],2)),[[u,n.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):L(``,!0),n.card.priority?H((V(),g(`span`,on,[l(e(n.card.priority),1)])),[[u,n.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):L(``,!0),n.hasParent?H((V(),g(`i`,sn,null,512)),[[u,n.t(`card.hasParent`),void 0,{bottom:!0}]]):L(``,!0),n.childCount?H((V(),g(`span`,cn,[c[1]||=z(`i`,{class:`pi pi-sitemap`},null,-1),l(` `+e(n.childCount),1)])),[[u,n.t(`card.hasChildren`),void 0,{bottom:!0}]]):L(``,!0),n.card.markdown?(V(),g(`i`,ln)):L(``,!0),n.card.images.length?(V(),g(`span`,un,[c[2]||=z(`i`,{class:`pi pi-image`},null,-1),l(` `+e(n.card.images.length),1)])):L(``,!0),n.card.commentCount?(V(),g(`span`,dn,[c[3]||=z(`i`,{class:`pi pi-comment`},null,-1),l(` `+e(n.card.commentCount),1)])):L(``,!0),B(t.$slots,`badges`,{},void 0,!0)])):L(``,!0)],64)}}}),[[`__scopeId`,`data-v-f1127747`]]),pn={key:0,class:`kb-files__thumb`},mn=[`src`,`alt`],hn={key:1,class:`pi pi-file kb-files__icon`},gn=[`title`,`onClick`],_n=[`title`],vn={class:`kb-files__size`},yn=[`title`,`onClick`],bn=E(Ne({__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(t,{emit:n}){let r=n;function o(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}return(n,s)=>t.files.length?(V(),g(`ul`,{key:0,class:a([`kb-files`,{"kb-files--inline":t.compact}])},[(V(!0),g(S,null,N(t.files,(n,a)=>(V(),g(`li`,{key:n.id,class:`kb-files__item`},[t.preview(n)?(V(),g(`span`,pn,[z(`img`,{src:t.preview(n),alt:n.name},null,8,mn)])):(V(),g(`i`,hn)),t.openable?(V(),g(`button`,{key:2,class:`kb-files__name`,title:n.name,onClick:i(e=>r(`open`,n),[`stop`])},e(n.name),9,gn)):(V(),g(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:n.name},e(n.name),9,_n)),z(`span`,vn,e(o(n.size)),1),t.removable?(V(),g(`button`,{key:4,class:`kb-files__remove`,title:t.removeLabel,onClick:i(e=>r(`remove`,a),[`stop`])},[...s[0]||=[z(`i`,{class:`pi pi-times`},null,-1)]],8,yn)):L(``,!0)]))),128))],2)):L(``,!0)}}),[[`__scopeId`,`data-v-f30e50ba`]]),q=Uint8Array,xn=Uint16Array,Sn=Int32Array,Cn=new q([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]),wn=new q([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]),Tn=new q([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),En=function(e,t){for(var n=new xn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new Sn(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}},J=En(Cn,2),Dn=J.b,On=J.r;Dn[28]=258,On[258]=28;var kn=En(wn,0),An=kn.b;kn.r;for(var jn=new xn(32768),Y=0;Y<32768;++Y){var Mn=(Y&43690)>>1|(Y&21845)<<1;Mn=(Mn&52428)>>2|(Mn&13107)<<2,Mn=(Mn&61680)>>4|(Mn&3855)<<4,jn[Y]=((Mn&65280)>>8|(Mn&255)<<8)>>1}for(var Nn=(function(e,t,n){for(var r=e.length,i=0,a=new xn(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new xn(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new xn(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[jn[d]>>c]=l}else for(s=new xn(r),i=0;i<r;++i)e[i]&&(s[i]=jn[o[e[i]-1]++]>>15-e[i]);return s}),Pn=new q(288),Y=0;Y<144;++Y)Pn[Y]=8;for(var Y=144;Y<256;++Y)Pn[Y]=9;for(var Y=256;Y<280;++Y)Pn[Y]=7;for(var Y=280;Y<288;++Y)Pn[Y]=8;for(var Fn=new q(32),Y=0;Y<32;++Y)Fn[Y]=5;var In=Nn(Pn,9,1),Ln=Nn(Fn,5,1),Rn=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},zn=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Bn=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Vn=function(e){return(e+7)/8|0},Hn=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new q(e.subarray(t,n))},Un=[`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`],X=function(e,t,n){var r=Error(t||Un[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,X),!n)throw r;return r},Wn=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new q(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new q(i*3));var l=function(e){var t=n.length;if(e>t){var r=new q(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=zn(e,d,1);var v=zn(e,d+1,3);if(d+=3,v)if(v==1)p=In,m=Ln,h=9,g=5;else if(v==2){var y=zn(e,d,31)+257,ee=zn(e,d+10,15)+4,b=y+zn(e,d+5,31)+1;d+=14;for(var x=new q(b),S=new q(19),C=0;C<ee;++C)S[Tn[C]]=zn(e,d+C*3,7);d+=ee*3;for(var te=Rn(S),w=(1<<te)-1,T=Nn(S,te,1),C=0;C<b;){var E=T[zn(e,d,w)];d+=E&15;var D=E>>4;if(D<16)x[C++]=D;else{var ne=0,O=0;for(D==16?(O=3+zn(e,d,3),d+=2,ne=x[C-1]):D==17?(O=3+zn(e,d,7),d+=3):D==18&&(O=11+zn(e,d,127),d+=7);O--;)x[C++]=ne}}var k=x.subarray(0,y),A=x.subarray(y);h=Rn(k),g=Rn(A),p=Nn(k,h,1),m=Nn(A,g,1)}else X(1);else{var D=Vn(d)+4,re=e[D-4]|e[D-3]<<8,ie=D+re;if(ie>i){c&&X(0);break}s&&l(f+re),n.set(e.subarray(D,ie),f),t.b=f+=re,t.p=d=ie*8,t.f=u;continue}if(d>_){c&&X(0);break}}s&&l(f+131072);for(var ae=(1<<h)-1,oe=(1<<g)-1,j=d;;j=d){var ne=p[Bn(e,d)&ae],M=ne>>4;if(d+=ne&15,d>_){c&&X(0);break}if(ne||X(2),M<256)n[f++]=M;else if(M==256){j=d,p=null;break}else{var se=M-254;if(M>264){var C=M-257,N=Cn[C];se=zn(e,d,(1<<N)-1)+Dn[C],d+=N}var ce=m[Bn(e,d)&oe],le=ce>>4;ce||X(3),d+=ce&15;var A=An[le];if(le>3){var N=wn[le];A+=Bn(e,d)&(1<<N)-1,d+=N}if(d>_){c&&X(0);break}s&&l(f+131072);var P=f+se;if(f<A){var ue=a-A,F=Math.min(A,P);for(ue+f<0&&X(3);f<F;++f)n[f]=r[ue+f]}for(;f<P;++f)n[f]=n[f-A]}}t.l=p,t.p=j,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?Hn(n,0,f):n.subarray(0,f)},Gn=new q(0),Kn=function(e,t){return e[t]|e[t+1]<<8},qn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Jn=function(e,t){return qn(e,t)+qn(e,t+4)*4294967296};function Yn(e,t){return Wn(e,{i:2},t&&t.out,t&&t.dictionary)}var Xn=typeof TextDecoder<`u`&&new TextDecoder;try{Xn.decode(Gn,{stream:!0})}catch{}var Zn=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:Hn(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 Qn(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(Xn)return Xn.decode(e);else{var i=Zn(e),a=i.s,n=i.r;return n.length&&X(8),a}}var $n=function(e,t){return t+30+Kn(e,t+26)+Kn(e,t+28)},er=function(e,t,n){var r=Kn(e,t+28),i=Qn(e.subarray(t+46,t+46+r),!(Kn(e,t+8)&2048)),a=t+46+r,o=qn(e,t+20),s=n&&o==4294967295?tr(e,a):[o,qn(e,t+24),qn(e,t+42)],c=s[0],l=s[1],u=s[2];return[Kn(e,t+10),c,l,i,a+Kn(e,t+30)+Kn(e,t+32),u]},tr=function(e,t){for(;Kn(e,t)!=1;t+=4+Kn(e,t+2));return[Jn(e,t+12),Jn(e,t+4),Jn(e,t+20)]};function nr(e,t){for(var n={},r=e.length-22;qn(e,r)!=101010256;--r)(!r||e.length-r>65558)&&X(13);var i=Kn(e,r+8);if(!i)return{};var a=qn(e,r+16),o=a==4294967295||i==65535;if(o){var s=qn(e,r-12);o=qn(e,s)==101075792,o&&(i=qn(e,s+32),a=qn(e,s+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=er(e,a,o),d=u[0],f=u[1],p=u[2],m=u[3],h=u[4],g=u[5],_=$n(e,g);a=h,(!c||c({name:m,size:f,originalSize:p,compression:d}))&&(d?d==8?n[m]=Yn(e.subarray(_,_+f),{out:new q(p)}):X(14,`unknown compression type `+d):n[m]=Hn(e,_,_+f))}return n}var rr=2e3,ir=100,ar=5e3,or=300,sr={csv:`sheet`,tsv:`sheet`,xlsx:`sheet`,xlsm:`sheet`,ods:`sheet`,docx:`doc`,odt:`doc`,pptx:`slides`,odp:`slides`},cr={"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 lr(e,t){return sr[t.toLowerCase().split(`.`).pop()??``]??cr[(e||``).toLowerCase().split(`;`)[0].trim()]??null}async function ur(e,t,n,r){let i=n.toLowerCase().split(`.`).pop()??``;if(i===`csv`||i===`tsv`)return gr(new TextDecoder().decode(t),n);let a=nr(new Uint8Array(t)),o=a[`content.xml`];return o?Sr(e,Qn(o)):e===`doc`?{mode:`render`,render:e=>dr(t,r,e)}:e===`slides`?br(a):fr(t,r)}async function dr(e,t,n){let{renderAsync:r}=await h(async()=>{let{renderAsync:e}=await import(`./docx-preview-D2pXpGJL.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}),mr(n)}async function fr(e,t){let n=(await h(async()=>{let{default:e}=await import(`./browser-D6yPejPt.js`);return{default:e}},[])).default,r=await n(new Blob([e],{type:t})),i=!1,a=r.map((e,t)=>(e.data.length>rr&&(i=!0),{name:e.sheet||`Sheet${t+1}`,rows:e.data.slice(0,rr).map(e=>(e.length>ir&&(i=!0),e.slice(0,ir).map(pr)))}));if(!a.length)throw Error(`no worksheet`);return{mode:`sheet`,sheets:a,truncated:i}}function pr(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 mr(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 hr(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 gr(e,t){let n=t.toLowerCase().endsWith(`.tsv`)?` `:hr(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>=rr)break}else a+=s}(a||i.length)&&(i.push(a),r.push(i));let s=r.length>=rr;return{mode:`sheet`,sheets:[{name:t||`CSV`,rows:r.map(_r)}],truncated:s}}function _r(e){return e.length>ir?e.slice(0,ir):e}function Z(e){let t=new DOMParser().parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length)throw Error(`invalid XML`);return t}function vr(e,t){return Array.from(e.getElementsByTagName(t))}function yr(e,t){return vr(e,t).map(e=>e.textContent??``).join(``)}function br(e){let t=Object.keys(e).filter(e=>/^ppt\/slides\/slide\d+\.xml$/.test(e)).sort((e,t)=>xr(e)-xr(t));if(!t.length)throw Error(`no slide`);let n=[];for(let r of t.slice(0,or)){let t=vr(Z(Qn(e[r])),`a:p`).map(e=>yr(e,`a:t`).trim()).filter(Boolean);n.push({title:t[0]??``,lines:t.slice(1)})}return{mode:`slides`,slides:n,truncated:t.length>or}}function xr(e){return Number(/(\d+)\.xml$/.exec(e)?.[1]??0)}function Sr(e,t){let n=Z(t);return e===`sheet`?wr(n):e===`doc`?Tr(n):Er(n)}function Cr(e,t,n){let r=Number(e.getAttribute(t)??`1`);return!Number.isFinite(r)||r<1?1:Math.min(r,n)}function wr(e){let t=[],n=!1;for(let r of vr(e,`table:table`)){let e=[];for(let t of vr(r,`table:table-row`)){if(e.length>=rr){n=!0;break}let r=[];for(let e of vr(t,`table:table-cell`)){if(r.length>=ir){n=!0;break}let t=vr(e,`text:p`).map(e=>e.textContent??``).join(`
|
|
572
|
-
`),i=Cr(e,`table:number-columns-repeated`,ir);for(let e=0;e<(t?i:1);e+=1)r.push(t)}for(;r.length&&r[r.length-1]===``;)r.pop();let i=Cr(t,`table:number-rows-repeated`,rr);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 Tr(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>=ar){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 vr(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:vr(t,`table:table-row`).slice(0,rr).map(e=>vr(e,`table:table-cell`).slice(0,ir).map(e=>(e.textContent??``).trim()))}):t.children.length&&i(t)}};return i(t),{mode:`blocks`,blocks:n,truncated:r}}function Er(e){let t=vr(e,`draw:page`);if(!t.length)throw Error(`no slide`);return{mode:`slides`,slides:t.slice(0,or).map(e=>{let t=vr(e,`text:p`).map(e=>(e.textContent??``).trim()).filter(Boolean);return{title:t[0]??``,lines:t.slice(1)}}),truncated:t.length>or}}var Dr={key:0,class:`kb-upload`},Or={key:0,class:`kb-upload__list`},kr=[`title`],Ar={class:`kb-upload__bar`},jr={class:`kb-upload__pct`},Mr={key:1,class:`kb-upload__status`},Nr={key:2,class:`kb-upload__errors`},Pr=E(Ne({__name:`UploadProgress`,props:{queue:{},errors:{},uploading:{type:Boolean,default:!1},uploadingLabel:{default:``}},setup(t){return(n,r)=>t.queue.length||t.errors.length||t.uploading&&!t.queue.length?(V(),g(`div`,Dr,[t.queue.length?(V(),g(`ul`,Or,[(V(!0),g(S,null,N(t.queue,t=>(V(),g(`li`,{key:t.key},[z(`span`,{class:`kb-upload__name`,title:t.name},e(t.name),9,kr),z(`span`,Ar,[z(`span`,{class:`kb-upload__bar-fill`,style:R({width:`${Math.round(t.ratio*100)}%`})},null,4)]),z(`span`,jr,e(Math.round(t.ratio*100))+`%`,1)]))),128))])):t.uploading?(V(),g(`p`,Mr,e(t.uploadingLabel),1)):L(``,!0),t.errors.length?(V(),g(`ul`,Nr,[(V(!0),g(S,null,N(t.errors,(t,n)=>(V(),g(`li`,{key:n},e(t.name)+` — `+e(t.reason),1))),128))])):L(``,!0)])):L(``,!0)}}),[[`__scopeId`,`data-v-06e54521`]]);function Fr(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 Ir(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 Fr(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)Fr(t,e.id).length&&a(e);return n}function Lr(e){return e.flatMap(e=>e.kind===`column`?[e.id]:Lr(e.children))}function Rr(e,t,n,r){let i=Ir(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)?Lr(i):null}var zr={class:`kg-lead`},Br={key:0,class:`kg-create`},Vr={class:`kg-tree`},Hr={key:0,class:`kg-empty`},Ur=[`draggable`,`onDragstart`,`onDragover`,`onDrop`],Wr={key:2,class:`kg-row__title`},Gr={key:3,class:`kg-row__count`},Kr={key:4,class:`kg-row__actions`},qr=[`onClick`],Jr={class:`kg-loose__label`},Yr={key:0,class:`kg-empty`},Xr=[`draggable`,`onDragstart`],Zr={class:`kg-row__title`},Qr=E(Ne({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(n,{emit:s}){let c=n,l=s,u=ce(),d=c.t,f=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],p=v(()=>new Map(c.groups.map(e=>[e.id,e])));function h(e){return c.columns.filter(t=>(t.groupId&&p.value.has(t.groupId)?t.groupId:void 0)===e)}function _(e){return c.groups.filter(t=>(t.parentId??void 0)===e)}function y(e){return h(e).length+_(e).reduce((e,t)=>e+y(t.id),0)}let ee=v(()=>Ir(c.columns,c.groups)),b=v(()=>{let e=[],t=(n,r)=>{for(let i of n){if(i.kind===`column`){if(r===0)continue;let t=c.columns.find(e=>e.id===i.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:r});continue}let n=p.value.get(i.id);n&&(e.push({kind:`group`,id:n.id,title:n.title,color:n.color,depth:r,columnCount:y(n.id)}),t(i.children,r+1))}};return t(ee.value,0),e});function C(e,t){let n=Rr(c.columns,c.groups,e,t);n&&l(`intent`,{kind:`columns-reorder`,columnIds:n})}function w(e,t){return Rr(c.columns,c.groups,e,t)!==null}let E=v(()=>h(void 0)),D=T(``);function ne(){let e=D.value.trim();e&&(l(`intent`,{kind:`group-add`,title:e,color:f[c.groups.length%f.length]}),D.value=``)}let k=T(null);function A(e){e.kind===`group`&&(k.value={id:e.id,title:e.title})}function re(){let e=k.value;if(!e)return;let t=e.title.trim(),n=p.value.get(e.id);t&&n&&t!==n.title&&l(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),k.value=null}function ie(e,t){let n=p.value.get(e)?.color;l(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function ae(e){e.kind===`group`&&u.require({message:d(`groups.deleteConfirm`,{title:e.title}),header:d(`groups.deleteHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,accept:()=>l(`intent`,{kind:`group-delete`,groupId:e.id})})}let j=T(null),M=T(null);function se(e,t,n){c.readOnly||(j.value={kind:e,id:t},n.dataTransfer?.setData(`text/plain`,t),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`))}function le(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=p.value.get(n)?.parentId}return!0}function P(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(M.value=null)}function ue(e,t){le(j.value,e)&&(t.preventDefault(),M.value=e??`root`)}function F(e){let t=c.columns.find(t=>t.id===e)?.groupId;return t&&p.value.has(t)?t:null}function I(e){let t=j.value,n=le(t,e);M.value=null,j.value=null,!(!t||!n)&&l(`intent`,{kind:`group-assign`,member:t,groupId:e})}function de(){l(`update:visible`,!1)}return(s,c)=>(V(),t(O(te),{visible:n.visible,header:O(d)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":de},{default:r(()=>[z(`p`,zr,e(O(d)(`groups.lead`)),1),n.readOnly?L(``,!0):(V(),g(`div`,Br,[m(O(oe),{modelValue:D.value,"onUpdate:modelValue":c[0]||=e=>D.value=e,placeholder:O(d)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:x(ne,[`enter`])},null,8,[`modelValue`,`placeholder`]),m(O(o),{label:O(d)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:ne},null,8,[`label`])])),z(`div`,Vr,[b.value.length?L(``,!0):(V(),g(`div`,Hr,e(O(d)(`groups.empty`)),1)),(V(!0),g(S,null,N(b.value,r=>(V(),g(`div`,{key:`${r.kind}-${r.id}`,class:a([`kg-row`,{"kg-row--group":r.kind===`group`,"kg-row--target":M.value===r.id}]),style:R({paddingLeft:`${r.depth*1.25}rem`}),draggable:!n.readOnly,onDragstart:e=>se(r.kind,r.id,e),onDragover:e=>ue(r.kind===`group`?r.id:F(r.id),e),onDragleave:P,onDrop:i(e=>I(r.kind===`group`?r.id:F(r.id)),[`prevent`]),onDragend:c[2]||=e=>{j.value=null,M.value=null}},[z(`i`,{class:a([r.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),r.kind===`group`?(V(),g(`span`,{key:0,class:`kg-swatch`,style:R({background:r.color||`var(--p-text-muted-color)`})},null,4)):L(``,!0),k.value&&k.value.id===r.id?(V(),t(O(oe),{key:1,modelValue:k.value.title,"onUpdate:modelValue":c[1]||=e=>k.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:x(re,[`enter`]),onBlur:re},null,8,[`modelValue`])):(V(),g(`span`,Wr,e(r.title),1)),r.kind===`group`?(V(),g(`span`,Gr,e(O(d)(`groups.columnCount`,{count:r.columnCount})),1)):L(``,!0),n.readOnly?L(``,!0):(V(),g(`div`,Kr,[m(O(o),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!w(r.id,-1),"aria-label":O(d)(`groups.moveUp`),class:`kg-move`,onClick:e=>C(r.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),m(O(o),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!w(r.id,1),"aria-label":O(d)(`groups.moveDown`),class:`kg-move`,onClick:e=>C(r.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),r.kind===`group`?(V(),g(S,{key:0},[(V(),g(S,null,N(f,e=>z(`span`,{key:e,class:a([`kg-dot`,{"kg-dot--on":r.color===e}]),style:R({background:e}),onClick:t=>ie(r.id,e)},null,14,qr)),64)),m(O(o),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>A(r)},null,8,[`onClick`]),m(O(o),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ae(r)},null,8,[`onClick`])],64)):L(``,!0)]))],46,Ur))),128))]),z(`div`,{class:a([`kg-loose`,{"kg-row--target":M.value===`root`}]),onDragover:c[4]||=e=>ue(null,e),onDragleave:P,onDrop:c[5]||=i(e=>I(null),[`prevent`])},[z(`div`,Jr,e(O(d)(`groups.loose`)),1),E.value.length?L(``,!0):(V(),g(`div`,Yr,e(O(d)(`groups.looseEmpty`)),1)),(V(!0),g(S,null,N(E.value,t=>(V(),g(`div`,{key:t.id,class:`kg-row`,draggable:!n.readOnly,onDragstart:e=>se(`column`,t.id,e),onDragend:c[3]||=e=>{j.value=null,M.value=null}},[c[6]||=z(`i`,{class:`pi pi-list kg-row__icon`},null,-1),z(`span`,Zr,e(t.title),1)],40,Xr))),128))],34)]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-48711454`]]),$r={class:`kb-header`},ei={class:`kb-header__search`},ti={key:1,class:`kb-header__search-more`},ni={key:1,class:`kb-header__readonly`},ri={class:`kb-boardwrap`},ii={class:`kb-band__title`},ai={class:`kb-band__count`},oi=[`data-col-id`,`draggable`,`onDragstart`,`onDragover`,`onDragleave`,`onDrop`,`onTouchstart`],si=[`title`,`onClick`],ci={class:`kb-col__count`},li={key:0,class:`pi pi-bell kb-col__bell--on`},ui={key:1,class:`kb-col__header`},di=[`value`,`readonly`,`onBlur`],fi={class:`kb-col__header-right`},pi={class:`kb-col__count`},mi=[`onClick`],hi={key:3,class:`kb-col__cards`},gi=[`data-card-id`,`draggable`,`onDragstart`,`onDragover`,`onTouchstart`,`onClick`],_i=[`onClick`],vi=[`onClick`],yi={key:0,class:`kb-col__empty`},bi=[`onClick`],xi={class:`kb-subscribe__lead`},Si={class:`kb-subscribe__legend`},Ci={class:`kb-subscribe__options`},wi={class:`kb-subscribe__option`},Ti={class:`kb-subscribe__legend`},Ei={class:`kb-subscribe__options`},Di={class:`kb-subscribe__no`},Oi={class:`kb-subscribe__legend`},ki={class:`kb-subscribe__options`},Ai={class:`kb-subscribe__channels`},ji={key:1,class:`kb-subscribe__channels`},Mi={class:`kb-tpl-intro`},Ni={class:`kb-tpl-list`},Pi=[`onClick`],Fi={key:0,class:`kb-add-col`},Ii={key:0,class:`kb-add-col__form`},Li={class:`kb-add-col__actions`},Ri={class:`kb-filters__body`},zi={class:`kb-filters__section`},Bi={class:`kb-side__label`},Vi={class:`kb-ops`},Hi=[`onClick`],Ui={key:0,class:`kb-prio`},Wi={class:`kb-prio__value`},Gi={key:1,class:`kb-side__hint`},Ki={class:`kb-filters__section`},qi={class:`kb-side__label`},Ji={class:`kb-colors`},Yi=[`onClick`],Xi={class:`kb-filters__section`},Zi={class:`kb-side__label`},Qi={key:0,class:`pi pi-ban`},$i={class:`kb-filters__section`},ea={class:`kb-side__label`},ta={key:0,class:`pi pi-ban`},na={class:`kb-filters__section`},ra={class:`kb-side__label`},ia={key:0,class:`pi pi-ban`},aa={key:1,class:`kb-link__col`},oa={class:`kb-side__hint`},sa={class:`kb-archive__hint`},ca={class:`kb-archive__search`},la={key:0,class:`kb-archive__empty`},ua={key:1,class:`kb-archive__empty`},da={key:2,class:`kb-archive__empty`},fa={key:0,class:`kb-archive__filtered`},pa={key:1,class:`kb-archive__filtered`},ma={class:`kb-archive__list`},ha=[`onClick`],ga=[`onClick`],_a={class:`kb-archive__meta`},va={key:0},ya={key:1},ba={key:0,class:`kb-dialog`},xa={class:`kb-dialog__main`},Sa={key:0,class:`kb-dialog__archived`},Ca={class:`kb-dialog__edit-content`},wa={class:`kb-dialog__field`},Ta={for:`kanban-card-title`,class:`kb-dialog__label`},Ea={class:`kb-dialog__field`},Da={for:`kanban-card-content`,class:`kb-dialog__label`},Oa={class:`kb-dialog__field`},ka={for:`kanban-card-images`,class:`kb-dialog__label`},Aa={key:0,class:`kb-dialog__images`},ja=[`src`],Ma=[`onClick`],Na={key:1,class:`kb-dialog__upload`},Pa={class:`kb-rel`},Fa={key:0,class:`kb-rel__section`},Ia={class:`kb-rel__title`},La={key:0,class:`kb-rel__table`},Ra={class:`kb-rel__people`},za={class:`kb-rel__num`},Ba={class:`kb-rel__actions-col`},Va={class:`kb-rel__card`},Ha={class:`kb-rel__board`},Ua={class:`kb-rel__people`},Wa={key:0,class:`kb-card__assignees`},Ga=[`title`],Ka=[`src`,`onError`],qa={key:1,class:`kb-rel__none`},Ja={class:`kb-rel__num`},Ya={class:`kb-rel__actions-col`},Xa=[`title`],Za=[`title`],Qa={key:1,class:`kb-rel__empty`},$a={class:`kb-coloption`},eo={class:`kb-link__col`},to={key:1,class:`kb-rel__section`},no={class:`kb-rel__title`},ro={key:0,class:`kb-rel__table`},io={class:`kb-rel__people`},ao={class:`kb-rel__num`},oo={class:`kb-rel__actions-col`},so={class:`kb-rel__card`},co={class:`kb-rel__board`},lo={class:`kb-rel__people`},uo={key:0,class:`kb-card__assignees`},fo=[`title`],po=[`src`,`onError`],mo={key:1,class:`kb-rel__none`},ho={class:`kb-rel__num`},go={class:`kb-rel__actions-col`},_o=[`title`,`onClick`],vo=[`title`,`onClick`],yo={key:1,class:`kb-rel__empty`},bo={class:`kb-coloption`},xo={class:`kb-link__col`},So={key:2,class:`kb-rel__empty`},Co={class:`kb-comments`},wo={key:0,class:`kb-comments__empty`},To={key:1,class:`kb-comments__list`},Eo=[`onClick`],Do={key:0,class:`pi pi-sparkles`},Oo=[`src`,`onError`],ko={key:3,class:`pi pi-user`},Ao={class:`kb-comments__body`},jo={class:`kb-comments__meta`},Mo={class:`kb-comments__author`},No={class:`kb-comments__time`},Po={key:0,class:`kb-comments__edited`},Fo={key:1,class:`kb-comments__tools`},Io=[`title`,`onClick`],Lo=[`title`,`onClick`],Ro={class:`kb-comments__actions`},zo=[`onClick`,`innerHTML`],Bo=[`onClick`],Vo=[`onKeydown`],Ho={class:`kb-comments__actions`},Uo=[`title`],Wo={class:`kb-comments__hint`},Go={class:`kb-history`},Ko={key:0,class:`kb-history__empty`},qo={key:1,class:`kb-history__timeline`},Jo=[`onClick`],Yo={class:`kb-history__icon`},Xo={class:`kb-history__body`},Zo={class:`kb-history__label`},Qo={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},$o={key:0,class:`kb-history__detail`},es={class:`kb-history__time`},ts={class:`kb-side`},ns={key:0,class:`kb-side__block`},rs={class:`kb-side__label`},is=[`title`],as=[`src`,`onError`],os={class:`kb-assignee`},ss=[`src`,`onError`],cs={class:`kb-side__hint`},ls={class:`kb-side__block`},us={class:`kb-side__label`},ds={key:0,class:`kb-prio__value`},fs={key:0,class:`kb-prio`},ps=[`title`],ms={key:2,class:`kb-side__hint`},hs={class:`kb-side__block`},gs={class:`kb-side__label`},_s={class:`kb-deadline`},vs=[`title`],ys={key:0,class:`kb-side__hint`},bs={class:`kb-side__block`},xs={class:`kb-side__label`},Ss={class:`kb-groups__option`},Cs={class:`kb-side__hint`},ws={key:1,class:`kb-side__block`},Ts={class:`kb-side__label`},Es={class:`kb-tree`},Ds={key:0,class:`pi pi-angle-right kb-tree__branch`},Os=[`title`,`onClick`],ks={class:`kb-tree__label`},As={class:`kb-side__block`},js={class:`kb-side__label`},Ms={class:`kb-colors`},Ns=[`disabled`],Ps=[`disabled`,`onClick`],Fs={class:`kb-side__hint`},Is={key:2,class:`kb-side__block`},Ls={class:`kb-side__label`},Rs={class:`kb-side__hint`},zs={key:3,class:`kb-side__block`},Bs={class:`kb-side__label`},Vs={class:`kb-colgroup__label`},Hs={class:`kb-coloption`},Us={key:0,class:`pi pi-arrow-right kb-coloption__away`},Ws={key:0,class:`kb-side__hint`},Gs={class:`kb-side__block kb-side__meta`},Ks={key:0},qs={key:4,class:`kb-side__block`},Js={class:`kb-side__label`},Ys={class:`kb-side__convs`},Xs=[`title`,`onClick`],Zs={class:`kb-side__conv-label`},Qs={key:5,class:`kb-side__block`},$s={class:`kb-side__label`},ec={class:`kb-side__actions`},tc={key:6,class:`kb-side__block kb-side__danger`},nc={class:`kb-dialog__footer`},rc={key:0,class:`kb-dialog__unsaved`},ic={key:0,class:`kb-viewer`},ac=[`src`,`alt`],oc=[`src`,`title`],sc=[`src`],cc=[`src`],lc={key:4,class:`kb-viewer__office`},uc={key:0,class:`kb-viewer__tabs`},dc=[`onClick`],fc={class:`kb-viewer__scroll`},pc={key:0,class:`kb-viewer__table`},mc={key:1,class:`kb-viewer__empty`},hc={key:5,class:`kb-viewer__office`},gc={class:`kb-viewer__scroll kb-viewer__doc`},_c={key:0},vc={key:1},yc={key:2},bc={key:3,class:`kb-viewer__li`},xc={key:4,class:`kb-viewer__table`},Sc={key:5},Cc={key:0,class:`kb-viewer__empty`},wc={key:6,class:`kb-viewer__office`},Tc={class:`kb-viewer__scroll kb-viewer__slides`},Ec={class:`kb-viewer__slide-no`},Dc={key:0},Oc={key:7,class:`kb-viewer__office`},kc={key:0,class:`kb-viewer__empty`},Ac={key:8,class:`kb-viewer__text`},jc={key:9,class:`kb-viewer__truncated`},Mc={key:0,class:`kb-colmenu`},Nc={class:`kb-colmenu__host`},Q=`\0void`,Pc=26,Fc=512*1024,Ic=55*1024*1024,Lc=5*1024*1024,Rc=400,zc=8,Bc=60,Vc=12,Hc=E(Ne({__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},teams:{default:()=>[]},manageableTeamIds:{default:void 0},columnTeamSubscriptions:{default:()=>({})},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(n,{expose:s,emit:u}){let d=n,f=v(()=>d.loadHistory!==void 0),p=u,h=ce(),_=d.t;function y(){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 b(e){return JSON.parse(JSON.stringify(e))}let C=T(b(d.columns));ke(()=>d.columns,e=>{C.value=b(e),Xt()});function w(e,t){C.value=e,t&&p(`intent`,t)}let E=T(``),D=T(!1),k=T(``),A=v(()=>[...C.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),ae=T(!1),j=T(`gte`),M=T(null),P=T([]),ue=T([]),F=T([]),I=T(!1),de=T(!1),fe=T(!1),pe=T([]),he=v(()=>{let e=new Set;for(let t of pe.value){for(let n of on(t,`up`))e.add(n);for(let n of on(t,`down`))e.add(n)}return e}),ge=v(()=>M.value!==null||j.value===`none`),ve=v(()=>(ge.value?1:0)+(P.value.length?1:0)+(ue.value.length||I.value?1:0)+(F.value.length||de.value?1:0)+(pe.value.length||fe.value?1:0));function ye(){M.value=null,j.value=`gte`,P.value=[],ue.value=[],F.value=[],pe.value=[],I.value=!1,de.value=!1,fe.value=!1}function be(e){if(j.value===`none`){if(e.priority!==void 0)return!1}else if(M.value!==null){let t=e.priority;if(t===void 0||j.value===`eq`&&t!==M.value||j.value===`gte`&&t<M.value||j.value===`lte`&&t>M.value)return!1}if(P.value.length&&!P.value.includes(e.color??``))return!1;let t=e.groups??[];if(ue.value.length||I.value){let e=ue.value.length&&t.some(e=>ue.value.includes(e)),n=I.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(F.value.length||de.value){let e=F.value.length&&n.some(e=>F.value.includes(e.id)),t=de.value&&n.length===0;if(!e&&!t)return!1}if(pe.value.length||fe.value){let t=pe.value.length&&he.value.has(e.id),n=fe.value&&!tn(e.id)&&nn(e.id).length===0;if(!t&&!n)return!1}return!0}let xe=v({get:()=>I.value?[Q,...ue.value]:ue.value,set:e=>{I.value=e.includes(Q),ue.value=e.filter(e=>e!==Q)}}),Se=v(()=>[Q,...mt.value]),Ce=v({get:()=>de.value?[Q,...F.value]:F.value,set:e=>{de.value=e.includes(Q),F.value=e.filter(e=>e!==Q)}}),we=v(()=>[{userId:Q,name:_(`filters.noAssignees`)},...d.members]),Te=v({get:()=>fe.value?[Q,...pe.value]:pe.value,set:e=>{fe.value=e.includes(Q),pe.value=e.filter(e=>e!==Q)}}),De=v(()=>[{id:Q,title:_(`filters.noFamily`),column:``},...A.value.flatMap(e=>e.cards.map(t=>({id:t.id,title:t.title,column:e.title}))),...d.archivedCards.map(e=>({id:e.id,title:e.title,column:_(`archive.title`)}))]),Oe=v(()=>{let e=d.searchMatches,t=ve.value>0;return!e&&!t?A.value:A.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||be(n)))}))}),Ae=T(!1),je=v(()=>new Map((d.columnGroups??[]).map(e=>[e.id,e])));function Ne(e){let t=[],n=new Set,r=e;for(;r&&je.value.has(r)&&!n.has(r);)n.add(r),t.unshift(r),r=je.value.get(r).parentId;return t}let Pe=v(()=>{let e=new Map;for(let t of Oe.value)Ne(t.groupId).forEach((n,r)=>{let i=je.value.get(n),a=e.get(n)??{id:n,title:i.title,color:i.color,depth:r,colIds:[]};a.colIds.push(t.id),e.set(n,a)});return[...e.values()]}),Le=v(()=>Pe.value.length?(Math.max(...Pe.value.map(e=>e.depth))+1)*Pc:0),ze=T(null),qe=T([]);function Je(){let e=ze.value;if(!e||!Pe.value.length){qe.value=[];return}qe.value=Pe.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+(Oe.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*Pc,left:r,width:i-r,count:a}]})}let Ye=null;_e(()=>{if(Je(),typeof ResizeObserver<`u`&&ze.value){Ye=new ResizeObserver(()=>Je()),Ye.observe(ze.value);for(let e of ze.value.querySelectorAll(`.kb-col`))Ye.observe(e)}}),ee(()=>Ye?.disconnect()),ke(()=>[Oe.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),d.columnGroups],()=>{re(()=>{if(Je(),!(!Ye||!ze.value))for(let e of ze.value.querySelectorAll(`.kb-col`))Ye.observe(e)})},{deep:!0});function Xe(e){return C.value.find(t=>t.id===e)?.title??``}function Ze(e,t,n){e.history=[...e.history??[],{type:t,timestamp:new Date().toISOString(),detail:n}]}function Qe(){if(d.readOnly||!k.value.trim())return;let e=k.value.trim();w([...C.value,{id:y(),title:e,order:C.value.length,cards:[]}],{kind:`column-add`,title:e}),k.value=``,D.value=!1}function $e(e){if(d.readOnly)return;let t=C.value.find(t=>t.id===e);h.require({message:_(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:_(`column.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>w(C.value.filter(t=>t.id!==e),{kind:`column-delete`,columnId:e})})}function et(e,t){d.readOnly||!t.trim()||w(C.value.map(n=>n.id===e?{...n,title:t.trim()}:n),{kind:`column-rename`,columnId:e,title:t.trim()})}let U=T(null),tt=T(``),nt=T(``),rt=T([]),at=T([]),ot=T(!1),W=T([]),st=T([]),ct=0,lt=T([]),ut=Me(new Map),dt=T([]),ft=T([]),pt=T([]),mt=v(()=>{let e=new Set;for(let t of C.value)for(let n of t.cards)for(let t of n.groups??[])e.add(t);for(let t of d.archivedCards)for(let n of t.groups??[])e.add(n);return[...e].sort((e,t)=>e.localeCompare(t))});function ht(e){let t=e.query.trim(),n=new Set(ft.value),r=mt.value.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t.toLowerCase()))),i=mt.value.some(e=>e.toLowerCase()===t.toLowerCase());pt.value=t&&!i&&!n.has(t)?[t,...r]:r}let gt=T(null),_t=T(null),vt=v(()=>{let e=yt(_t.value),t=e?Yt(e):null;return t===null?``:t<0?_(`editor.deadlineOverdue`,{count:-t}):t===0?_(`editor.deadlineToday`):_(`editor.deadlineIn`,{count:t})});function yt(e){if(!e)return null;let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function bt(e){if(!e)return null;let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r,12)}function xt(){d.readOnly||(gt.value=5)}function St(e){let t=e.trim();!t||ft.value.includes(t)||(ft.value=[...ft.value,t])}let Ct=T(!1);function wt(e){let t=e.target?.closest(`.p-autocomplete`)?.querySelector(`input`);return t instanceof HTMLInputElement?t:null}function Tt(){Ct.value=!0}function Et(e){let t=wt(e);if(t){if(e.type===`keydown`){if(t.getAttribute(`aria-activedescendant`))return;Dt(t);return}Ct.value=!1,setTimeout(()=>{if(Ct.value){Ct.value=!1,t.value=``;return}Dt(t)},0)}}function Dt(e){e.value.trim()&&(St(e.value),e.value=``)}let Ot=T(``),kt=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],At=T(``),Mt=T(`edit`),Nt=T(``),G=T([]),Pt=T(null),Ft=T(null),It=T(null),Lt=T(``);async function Rt(){await re(),Ft.value?.scrollIntoView({block:`end`})}ke(U,e=>p(`card-open`,e));let zt=T(null),Bt=T(`bottom`);function Vt(e,t=`bottom`){if(!d.readOnly){if(Bt.value=t,d.templates.length===0){Ut(e,``);return}zt.value=e}}function Ht(e){let t=zt.value;zt.value=null,t&&Ut(t,e?.content??``)}function Ut(e,t){let n=C.value.find(t=>t.id===e);if(!n)return;let r=new Date().toISOString();Wt(e,{id:y(),title:_(`card.defaultTitle`),markdown:t,images:[],order:Bt.value===`top`?0:n.cards.length,...f.value?{}:{history:[{type:`created`,timestamp:r,detail:_(`card.inColumn`,{name:Xe(e)})}]},createdAt:r,updatedAt:r})}function Wt(e,t){if(zn(),U.value={colId:e,card:{...t,history:[...t.history??[]]}},d.loadHistory&&Tn(t.id)){let n=d.histories?.[t.id];n&&(U.value={colId:e,card:{...t,history:n}}),d.loadHistory(t.id)}tt.value=t.title,nt.value=t.markdown??``,rt.value=[...t.images],at.value=[...t.attachments??[]],W.value=[],lt.value=[],Nt.value=``,G.value=[],Rn(at.value),Rn((t.history??[]).flatMap(e=>e.attachments??[])),dt.value=(t.assignees??[]).map(e=>e.id),Ot.value=t.color??``,ft.value=[...t.groups??[]],gt.value=t.priority??null,_t.value=bt(t.deadline),At.value=e,Mt.value=`edit`}ke(()=>U.value?d.histories?.[U.value.card.id]:void 0,e=>{let t=U.value;!e||!t||t.card.history===e||(U.value={colId:t.colId,card:{...t.card,history:e}},Rn(e.flatMap(e=>e.attachments??[])))});let Gt=v(()=>{let e=U.value;return e?!Tn(e.card.id):!1}),Kt=v(()=>{let e=U.value;if(!e)return!1;if(Gt.value)return!0;let t=e.card,n=(e,t)=>JSON.stringify(e)===JSON.stringify(t);return tt.value!==t.title||nt.value!==(t.markdown??``)||At.value!==e.colId||!n(rt.value,t.images)||!n(at.value,t.attachments??[])||!n(dt.value,(t.assignees??[]).map(e=>e.id))||Ot.value!==(t.color??``)||!n(ft.value,t.groups??[])||gt.value!==(t.priority??null)||yt(_t.value)!==(t.deadline??null)}),qt=v(()=>Kt.value||Nt.value.trim().length>0||G.value.length>0||It.value!==null);function Jt(){if(!qt.value){Qt();return}h.require({message:_(`editor.confirmDiscardMessage`),header:_(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:_(`editor.discard`),rejectLabel:_(`editor.keepEditing`),accept:()=>Qt()})}function Xt(){let e=U.value;if(!e)return;let t=C.value.flatMap(e=>e.cards).find(t=>t.id===e.card.id)??wn.value.get(e.card.id);if(!t)return;if(!Kt.value){let n=C.value.find(e=>e.cards.some(e=>e.id===t.id))?.id??e.colId;U.value={colId:n,card:{...t,history:e.card.history}},tt.value=t.title,nt.value=t.markdown??``,rt.value=[...t.images],at.value=[...t.attachments??[]],dt.value=(t.assignees??[]).map(e=>e.id),Ot.value=t.color??``,ft.value=[...t.groups??[]],gt.value=t.priority??null,_t.value=bt(t.deadline),At.value=n}if(t.history===void 0)return;let n=U.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));U.value={colId:n.colId,card:{...n.card,history:a}}}function Zt(){let e=lt.value;if(lt.value=[],d.deleteAttachment)for(let t of e)d.deleteAttachment(t)}function Qt(){U.value=null,dr(),Zn(),zn(),Zt()}function $t(){if(J.value||!U.value)return;let{colId:e,card:t}=U.value,n=tt.value||_(`card.untitled`),r=f.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!f.value&&n!==t.title&&t.title!==_(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!f.value&&nt.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let a=f.value?0:rt.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=dt.value.map(e=>({id:e,name:d.members.find(t=>t.userId===e)?.name??e})),s=f.value?[]:o.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));s.length&&r.push({type:`edited`,timestamp:i(),detail:_(`editor.assignedDetail`,{names:s.map(e=>e.name).join(`, `)})});let c=[...new Set(ft.value.map(e=>e.trim()).filter(Boolean))],{color:l,priority:u,groups:m,deadline:h,...g}=t,v={...g,title:n,markdown:nt.value,images:rt.value,attachments:at.value,assignees:o,...Ot.value?{color:Ot.value}:{},...c.length?{groups:c}:{},...gt.value===null?{}:{priority:gt.value},...yt(_t.value)?{deadline:yt(_t.value)}:{},history:f.value?t.history:r,updatedAt:i()},y=At.value||e;!f.value&&y!==e&&r.push({type:`moved`,timestamp:i(),detail:`${Xe(e)} → ${Xe(y)}`});let ee=!Tn(v.id),b=ee?{kind:`card-add`,columnId:y,card:v,placement:Bt.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}};!ee&&y!==e&&p(`intent`,{kind:`card-move`,cardId:v.id,toColumnId:y}),w(C.value.map(t=>{if(t.id===e&&y!==e)return{...t,cards:t.cards.filter(e=>e.id!==v.id)};if(t.id!==y)return t;if(t.cards.some(e=>e.id===v.id))return{...t,cards:t.cards.map(e=>e.id===v.id?v:e)};let n=Bt.value===`top`?[v,...t.cards]:[...t.cards,v];return{...t,cards:n.map((e,t)=>({...e,order:t}))}}),b),lt.value=[],U.value={colId:y,card:v},At.value=y}function en(e,t){for(let n of C.value){let r=n.cards.find(e=>e.id===t);if(r)return{cardId:t,boardId:e,title:r.title,boardName:_(`editor.relationsHereBoard`),columnTitle:n.title,here:!0,assignees:r.assignees??[],commentCount:r.commentCount??(r.history??[]).filter(e=>e.type===`comment`).length}}let n=d.linkedCards.find(n=>n.cardId===t&&n.boardId===e);return n?{cardId:t,boardId:e,title:n.title,boardName:n.boardName,columnTitle:n.columnTitle,here:!1,assignees:n.assignees??[],commentCount:n.commentCount??0}:null}function tn(e){return d.cardLinks.find(t=>t.childCardId===e)}function nn(e){return d.cardLinks.filter(t=>t.parentCardId===e)}function rn(e){return nn(e).length}let K=v(()=>{let e=U.value;if(!e)return null;let t=tn(e.card.id);return t?en(t.parentBoardId,t.parentCardId):null}),an=v(()=>{let e=U.value;return e?nn(e.card.id).flatMap(e=>{let t=en(e.childBoardId,e.childCardId);return t?[t]:[]}):[]});function on(e,t){let n=new Set([e]),r=[e];for(let e=0;e<r.length&&e<=d.cardLinks.length;e+=1){let i=t===`down`?nn(r[e]).map(e=>e.childCardId):[tn(r[e])?.parentCardId].filter(e=>!!e);for(let e of i)n.has(e)||(n.add(e),r.push(e))}return n}function sn(e){return A.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let cn=v(()=>{let e=U.value;return e?sn(on(e.card.id,`down`)):[]}),ln=v(()=>{let e=U.value;if(!e)return[];let t=on(e.card.id,`up`);for(let n of nn(e.card.id))t.add(n.childCardId);return sn(t)});function un(e){let t=U.value;!t||J.value||!d.setCardParent||d.setCardParent(t.card.id,e)}function dn(e){let t=U.value;!t||!e||J.value||!d.setCardParent||d.setCardParent(e,t.card.id)}function pn(e){J.value||!d.setCardParent||d.setCardParent(e,null)}let mn=v(()=>!J.value&&d.setCardParent!==void 0&&!!U.value&&C.value.some(e=>e.cards.some(e=>e.id===U.value?.card.id))),hn=v(()=>{let e=U.value;if(!e)return[];let t=[],n=new Set([e.card.id]),r=e.card.id;for(let e=0;e<=d.cardLinks.length;e+=1){let e=tn(r);if(!e||n.has(e.parentCardId))break;let i=en(e.parentBoardId,e.parentCardId);if(!i)break;n.add(e.parentCardId),t.push(i),r=e.parentCardId}return t.reverse()}),gn=v(()=>(K.value?1:0)+an.value.length);function _n(e,t){for(let t of C.value){let n=t.cards.find(t=>t.id===e);if(n){Wt(t.id,n);return}}t&&p(`open-linked-card`,{boardId:t,cardId:e})}let vn=v(()=>{let e=A.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:_(`editor.columnGroupHere`),items:e}];if(!J.value&&d.moveCardToBoard)for(let e of d.otherBoards)e.columns.length&&t.push({label:e.name,items:e.columns.map(t=>({id:`${e.id}:${t.id}`,title:t.title,boardId:e.id}))});return t});function yn(e){let[t,n]=e.includes(`:`)?e.split(`:`):[``,e];if(!t){At.value=n??``;return}let r=U.value,i=d.otherBoards.find(e=>e.id===t),a=i?.columns.find(e=>e.id===n);J.value||!r||!i||!a||!d.moveCardToBoard||h.require({message:_(`editor.moveToBoardConfirm`,{board:i.name,column:a.title}),header:_(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;Qt(),d.moveCardToBoard?.(e,t,a.id)}})}let q=T(!1),xn=T(``),Sn=T(``),Cn=v(()=>[{id:``,title:_(`archive.allColumns`)},...C.value.map(e=>({id:e.id,title:e.title}))]),wn=v(()=>new Map(d.archivedCards.map(e=>[e.id,e])));function Tn(e){return C.value.some(t=>t.cards.some(t=>t.id===e))||wn.value.has(e)?!0:!!(U.value?.card.id===e&&U.value.card.archivedAt)}let En=v(()=>!!(U.value&&(U.value.card.archivedAt||wn.value.has(U.value.card.id)))),J=v(()=>d.readOnly||En.value);function Dn(e){Wt(e.archivedFrom?.columnId??``,e)}let On=v(()=>ve.value?d.archivedCards.filter(be):d.archivedCards),kn=v(()=>d.archivedCards.length-On.value.length),An=null;function jn(){q.value=!0,p(`load-archive`,xn.value,Sn.value)}ke(xn,e=>{q.value&&(An&&clearTimeout(An),An=setTimeout(()=>p(`load-archive`,e,Sn.value),250))}),ke(Sn,e=>{q.value&&(An&&clearTimeout(An),p(`load-archive`,xn.value,e))});let Y=null;ke(E,e=>{if(Y&&clearTimeout(Y),!e.trim()){p(`search-cards`,``);return}Y=setTimeout(()=>p(`search-cards`,e),250)}),ee(()=>{Y&&clearTimeout(Y),An&&clearTimeout(An)});function Mn(e,t){d.readOnly||(w(C.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-archive`,cardId:t}),U.value?.card.id===t&&Qt())}function Nn(e){d.readOnly||p(`intent`,{kind:`card-unarchive`,cardId:e})}function Pn(e,t){if(d.readOnly)return;let n=C.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);h.require({message:_(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:_(`editor.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{w(C.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-delete`,cardId:t}),Qt()}})}function Fn(){if(J.value||!U.value||!Nt.value.trim()&&!G.value.length)return;let{colId:e,card:t}=U.value,n=G.value;if(d.addComment){let e=Nt.value.trim(),r=t.id;Nt.value=``,lt.value=lt.value.filter(e=>!n.some(t=>t.id===e.id)),G.value=[],d.addComment(r,e,n.length?{attachments:n}:{}).then(t=>{t||(Nt.value.trim()||(Nt.value=e),G.value=[...n,...G.value])});return}}let In=/^image\/(png|jpeg|webp|gif)$/;function Ln(e){return ut.get(e.id)}async function Rn(e){if(d.fetchAttachment)for(let t of e){if(!In.test(t.contentType)||ut.has(t.id))continue;let e=await d.fetchAttachment(t);e&&ut.set(t.id,e)}}function zn(){for(let e of ut.values())URL.revokeObjectURL(e);ut.clear()}let Bn=/^video\/(mp4|webm|ogg)$/,Vn=/^audio\/(mpeg|mp3|ogg|wav|x-wav|webm)$/,Hn=/^(text\/|application\/(json|xml|xhtml\+xml|javascript|x-yaml|yaml)$)/;function Un(e){let t=e.contentType||``;if(In.test(t))return`image`;if(t===`application/pdf`)return`pdf`;if(Bn.test(t))return`video`;if(Vn.test(t))return`audio`;let n=lr(t,e.name);return n?e.size<=20971520?n:null:Hn.test(t)&&e.size<=Fc?`text`:null}let X=T(null),Wn=T(0),Gn=v(()=>{let e=X.value?.office;return e?.mode===`sheet`?e.sheets[Wn.value]??e.sheets[0]??null:null}),Kn=T(null),qn=T(!1);ke([()=>X.value?.office,Kn],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),qn.value=!1;try{await e.render(t)}catch{qn.value=!0}}});async function Jn(e){let t=Un(e),n=ut.get(e.id),r=n??await d.fetchAttachment?.(e)??null;if(!r){W.value=[...W.value,{name:e.name,reason:_(`editor.downloadFailed`)}];return}if(!t){Yn(r,e.name,!n);return}let i,a;if(t===`text`)try{i=await(await fetch(r)).text()}catch{Yn(r,e.name,!n);return}else if(t===`sheet`||t===`doc`||t===`slides`)try{a=await ur(t,await(await fetch(r)).arrayBuffer(),e.name,e.contentType||``)}catch{Yn(r,e.name,!n);return}Zn(),Wn.value=0,X.value={file:e,url:r,kind:t,text:i,office:a,cached:!!n}}function Yn(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 Xn(){let e=X.value;e&&Yn(e.url,e.file.name,!1)}function Zn(){let e=X.value;X.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Qn(e){at.value=at.value.filter((t,n)=>n!==e)}let $n=Me(new Set);function er(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let tr=v(()=>d.members.map(e=>({id:e.userId,label:e.name})));function nr(e){return d.members.find(t=>t.userId===e)?.name??e}function rr(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 ir(e){return!!d.currentUserId&&e.authorUser?.id===d.currentUserId}function ar(e){return e.author===`ai`?null:e.authorUser?.id??null}function or(e){return e.author===`ai`?_(`comments.authorAi`):ir(e)?_(`comments.authorYou`):e.authorUser?.name??_(`comments.authorYou`)}function sr(e){if(!U.value)return;let{colId:t,card:n}=U.value;U.value={colId:t,card:{...n,history:e}},w(C.value.map(r=>r.id===t?{...r,cards:r.cards.map(t=>t.id===n.id?{...t,history:e}:t)}:r))}function cr(e){It.value=e.id??null,Lt.value=e.detail??``}function dr(){It.value=null,Lt.value=``}function fr(){let e=It.value,t=Lt.value.trim();if(J.value||!e||!t||!U.value)return;let{card:n}=U.value,r=(n.history??[]).map(n=>n.id===e?{...n,detail:t,editedAt:new Date().toISOString()}:n);if(d.editComment){let i=(n.history??[]).find(t=>t.id===e);d.editComment(n.id,e,t,i?.attachments),sr(r)}dr()}function pr(e){return e.id??`${e.type}|${e.timestamp}`}function mr(e){return e.type===`comment`&&e.author===`ai`}function hr(e){return ir(e)||mr(e)}function gr(e){if(J.value||!hr(e)||!U.value)return;let t=pr(e);h.require({message:_(`comments.confirmDeleteMessage`),header:_(`comments.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{let n=U.value;if(!n)return;let r=(n.card.history??[]).filter(e=>pr(e)!==t);d.removeComment&&e.id&&(d.removeComment(n.card.id,e.id),sr(r))}})}let _r=v(()=>d.columnSubscriptions!==void 0),Z=T(null),vr=[`entered`,`left`,`created`,`deleted`],yr=[`email`,`chat`],br=[...vr],xr=[...yr],Sr=T([...br]),Cr=T([...xr]),wr=T(null),Tr=v(()=>d.manageableTeamIds?d.teams.filter(e=>d.manageableTeamIds.includes(e.id)):d.teams);function Er(e,t=null){return t?d.columnTeamSubscriptions?.[e]?.find(e=>e.teamId===t)??null:d.columnSubscriptions?.[e]??null}function Dr(e){return Er(e)!==null}let Or=v(()=>{let e=Z.value;return e?(d.columnTeamSubscriptions?.[e]??[]).map(e=>d.teams.find(t=>t.id===e.teamId)?.name).filter(e=>!!e):[]}),kr=Me(new Set),Ar=new Map,jr=null;function Mr(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?kr.add(e):kr.delete(e)}function Nr(e,t){let n=Ar.get(t);if(n&&n!==e&&jr?.unobserve(n),!(e instanceof HTMLElement)){Ar.delete(t),kr.delete(t);return}Ar.set(t,e),typeof ResizeObserver<`u`&&(jr??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of Ar)n===t.target&&Mr(e,n)}),jr.observe(e)),Mr(t,e)}ke(()=>C.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void re(()=>{for(let[e,t]of Ar)Mr(e,t)})),ee(()=>jr?.disconnect());function Fr(e,t){return{value:kr.has(e)?t:``,showDelay:0,hideDelay:0}}let Ir=T(null),Lr=T(null);function Rr(e,t){Lr.value=t,Ir.value?.toggle(e)}function zr(e){let t=Lr.value;t&&(Ir.value?.hide(),e(t.id))}function Br(e,t){let n=Er(e,t);Sr.value=n?[...n.kinds]:[...br],Cr.value=n?[...n.channels]:[...xr]}function Vr(e){wr.value=null,Br(e,null),Z.value=e}function Hr(e){wr.value=e,Z.value&&Br(Z.value,e)}let Ur=v(()=>Sr.value.length>0&&Cr.value.length>0),Wr=v(()=>wr.value?{teamId:wr.value}:{}),Gr=v(()=>Z.value?Er(Z.value,wr.value)!==null:!1);function Kr(){let e=Z.value;!e||!Ur.value||(p(`update-column-subscription`,{columnId:e,subscription:{kinds:[...Sr.value],channels:[...Cr.value]},...Wr.value}),Z.value=null)}function qr(){let e=Z.value;e&&(p(`update-column-subscription`,{columnId:e,subscription:null,...Wr.value}),Z.value=null)}let Jr=v(()=>d.columns.find(e=>e.id===Z.value)??null),Yr=Me(new Set),Xr=Me(new Set),Zr=v(()=>`runeya.kanban.collapsedColumns.${d.name}`),Hc=v(()=>`runeya.kanban.expandedColumns.${d.name}`);function Uc(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 Wc(){Uc(Zr.value,Yr),Uc(Hc.value,Xr)}function Gc(){try{window.localStorage.setItem(Zr.value,JSON.stringify([...Yr])),window.localStorage.setItem(Hc.value,JSON.stringify([...Xr]))}catch{}}Wc(),ke(Zr,Wc);function Kc(e){let t=d.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function qc(e){return Yr.has(e)?!0:Kc(e)&&!Xr.has(e)}function Jc(e){qc(e)?(Yr.delete(e),Kc(e)&&Xr.add(e)):(Xr.delete(e),Kc(e)||Yr.add(e)),Gc()}let Yc=v(()=>(U.value?.card.history??[]).filter(e=>e.type===`comment`));ke([Mt,Yc],([e])=>{e===`comments`&&(Rt(),cl())}),ke(()=>U.value?.card.id,()=>{$c.clear(),el.clear()});function Xc(e){if(/^(https?:|mailto:)/i.test(e)){window.open(e,`_blank`,`noopener,noreferrer`);return}e.startsWith(`#`)||e.startsWith(`/`)&&window.open(e,`_blank`,`noopener,noreferrer`)}function Zc(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Xc(t),!0):!1}function Qc(e){return e?ne.sanitize(ie.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 $c=Me(new Set),el=Me(new Set);function tl(e,t){return e.id??`i${t}`}function nl(e,t){return $c.has(tl(e,t))}function rl(e,t){let n=tl(e,t);return el.has(n)||$c.has(n)}function il(e,t){let n=tl(e,t);$c.has(n)?$c.delete(n):$c.add(n)}function al(e,t,n){Zc(n)||ul(e)||rl(e,t)&&(n.stopPropagation(),il(e,t))}let ol=new Map;function sl(e,t,n){let r=tl(t,n);if(!(e instanceof HTMLElement)){ol.delete(r);return}ol.set(r,e),!$c.has(r)&&(e.scrollHeight-e.clientHeight>1?el.add(r):el.delete(r))}async function cl(){await re();for(let[e,t]of ol)$c.has(e)||(t.scrollHeight-t.clientHeight>1?el.add(e):el.delete(e))}function ll(e){return d.resolveConversationId?d.resolveConversationId(e):e.conversationId??null}function ul(e){return!!ll(e)}let dl=v(()=>{let e=U.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=ll(e);if(!t||n.has(t))continue;n.add(t);let i=e.detail??``,a=i.includes(` — `)?i.slice(0,i.lastIndexOf(` — `)).trim():``,o=hl(e.timestamp);r.push({id:t,label:o,title:a||ml.value[e.type]})}return r});function fl(e){let t=ll(e);t&&p(`open-conversation`,t)}let pl={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`},ml=v(()=>({created:_(`history.events.created`),edited:_(`history.events.edited`),moved:_(`history.events.moved`),image_added:_(`history.events.image_added`),image_removed:_(`history.events.image_removed`),title_changed:_(`history.events.title_changed`),archived:_(`history.events.archived`),unarchived:_(`history.events.unarchived`),conversation_started:_(`history.events.conversation_started`),scenario_started:_(`history.events.scenario_started`),comment:_(`history.events.comment`)}));function hl(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}`}function gl(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 _l(e){let t=[];for(let n of e){if(n.size===0){W.value=[...W.value,{name:n.name,reason:_(`editor.uploadEmpty`)}];continue}if(n.size>Ic){W.value=[...W.value,{name:n.name,reason:_(`editor.uploadTooLarge`)}];continue}if(!d.uploadImage){W.value=[...W.value,{name:n.name,reason:_(`editor.uploadUnavailable`)}];continue}let e=`${ct+=1}`;st.value=[...st.value,{key:e,name:n.name,ratio:0}];try{let r=await d.uploadImage(n,t=>{st.value=st.value.map(n=>n.key===e?{...n,ratio:t}:n)});r?(t.push(r),lt.value=[...lt.value,r]):W.value=[...W.value,{name:n.name,reason:_(`editor.uploadFailed`)}]}finally{st.value=st.value.filter(t=>t.key!==e)}}return t}async function vl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,ot.value=!0,W.value=[];try{let e=await _l(n);G.value=[...G.value,...e],Rn(e)}finally{ot.value=!1}}async function yl(e,t){if(!(J.value||!e.length)){ot.value=!0,W.value=[];try{let n=await _l(e);if(!n.length)return;t===`comment`?G.value=[...G.value,...n]:at.value=[...at.value,...n],Rn(n)}finally{ot.value=!1}}}function bl(e){G.value=G.value.filter((t,n)=>n!==e)}async function xl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,ot.value=!0,W.value=[],st.value=[];try{if(d.uploadImage){let e=await _l(n);at.value=[...at.value,...e],Rn(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>Lc){W.value=[...W.value,{name:e.name,reason:_(`editor.uploadUnavailable`)}];continue}let t=await gl(e);if(!t){W.value=[...W.value,{name:e.name,reason:_(`editor.uploadFailed`)}];continue}rt.value=[...rt.value,t],Pt.value?.insertImage(t)}}finally{ot.value=!1}}function Sl(e){h.require({message:_(`editor.confirmRemoveImageMessage`),header:_(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{rt.value=rt.value.filter((t,n)=>n!==e)}})}let Cl=T(null),$=T(null),wl=null,Tl=null,El=`before`,Dl=null,Ol=`before`,kl=null,Al=null,jl=null,Ml=[`kb-card--drop-before`,`kb-card--drop-after`],Nl=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function Pl(e,t){kl&&kl!==e&&kl.classList.remove(...Ml),kl=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function Fl(e){Al&&Al!==e&&Al.classList.remove(`kb-col--dragover`),Al=e,e?.classList.add(`kb-col--dragover`)}function Il(e,t){jl&&jl!==e&&jl.classList.remove(...Nl),jl=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function Ll(){Pl(null,`before`),Fl(null),Il(null,`before`)}function Rl(e){return Gl.value?.querySelector(`.kb-col[data-col-id="${CSS.escape(e)}"]`)??null}let zl=T(null),Bl=T(null),Vl=T(!1),Hl=null,Ul=null,Wl=null,Gl=T(null);function Kl(e,t){Hl&&cancelAnimationFrame(Hl);let n=Gl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Bc&&n.scrollLeft>0?(n.scrollLeft-=Vc,i=!0):e>t.right-Bc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Vc,i=!0)}Bl.value&&(Bl.value.style.display=`none`);let a=document.elementFromPoint(e,t);if(Bl.value&&(Bl.value.style.display=``),a){let e=a.closest(`.kb-col__cards`);if(e){let n=e.getBoundingClientRect();t<n.top+Bc&&e.scrollTop>0?(e.scrollTop-=Vc,i=!0):t>n.bottom-Bc&&e.scrollTop<e.scrollHeight-e.clientHeight&&(e.scrollTop+=Vc,i=!0)}}Hl=i&&Vl.value?requestAnimationFrame(r):null};Hl=requestAnimationFrame(r)}function ql(){Hl&&=(cancelAnimationFrame(Hl),null)}function Jl(){Ul&&=(clearTimeout(Ul),null),Wl=null}function Yl(){if(!Wl)return;let{type:e,colId:t,cardId:n,el:r}=Wl;zl.value=e,Vl.value=!0,e===`card`&&n?(Cl.value={colId:t,cardId:n},$.value=null):($.value=t,Cl.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),Bl.value=e}Wl=null}function Xl(e,t,n,r){if(d.readOnly)return;Jl();let i=e.touches[0],a=i.clientX,o=i.clientY;Wl={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)>zc&&(Jl(),document.removeEventListener(`touchmove`,s))};document.addEventListener(`touchmove`,s,{passive:!0}),Ul=setTimeout(()=>{document.removeEventListener(`touchmove`,s),Yl()},Rc)}function Zl(e){if(!Vl.value)return;e.preventDefault();let t=e.touches[0];Bl.value&&(Bl.value.style.left=`${t.clientX-40}px`,Bl.value.style.top=`${t.clientY-20}px`),Kl(t.clientX,t.clientY),Bl.value&&(Bl.value.style.display=`none`);let n=document.elementFromPoint(t.clientX,t.clientY);if(Bl.value&&(Bl.value.style.display=``),n){if(zl.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`;wl!==i&&(wl=i,Fl(r)),(Tl!==n||El!==o)&&(Tl=n,El=o,Pl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(wl=e,Tl=null,Fl(r),Pl(null,`before`))}}else if(zl.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`;(Dl!==n||Ol!==i)&&(Dl=n,Ol=i,Il(e,i))}}}}}function Ql(){Jl(),ql(),Bl.value&&=(Bl.value.remove(),null),Vl.value&&(zl.value===`card`&&wl?nu(wl):zl.value===`column`&&Dl&&su(Dl)),zl.value=null,Vl.value=!1,eu()}function $l(e,t,n){d.readOnly||(Cl.value={colId:t,cardId:n},$.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`card`)))}function eu(){Cl.value=null,wl=null,Tl=null,$.value=null,Dl=null,Ll()}function tu(e,t,n){if(!Cl.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`;wl!==t&&(wl=t,Fl(r.closest(`.kb-col`))),!(Tl===n&&El===a)&&(Tl=n,El=a,Pl(r,a))}function nu(e){if(d.readOnly)return;if($.value){su(e);return}if(!Cl.value)return;let{colId:t,cardId:n}=Cl.value,r=Xe(t),i=Xe(e),a=null,o=C.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};!f.value&&t!==e&&Ze(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(Tl){let e=r.findIndex(e=>e.id===Tl);e!==-1&&(i=El===`before`?e:e+1)}return s=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(Cl.value=null,wl=null,Tl=null,Ll(),d.moveCard&&a){C.value=o,d.moveCard(a.id,e,s);return}w(o,a?{kind:`card-move`,cardId:a.id,toColumnId:e,toIndex:s}:void 0)}function ru(e,t){!Cl.value&&!$.value||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),Cl.value&&(wl!==t&&(wl=t,Fl(Rl(t))),Tl!==null&&(Tl=null,Pl(null,`before`))))}function iu(e){wl===e&&(wl=null,Fl(null))}function au(e,t){d.readOnly||($.value=t,Cl.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`column`)))}function ou(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`;Dl===t&&Ol===i||(Dl=t,Ol=i,Il(n,i))}function su(e){if(d.readOnly||!$.value||$.value===e){$.value=null,Dl=null,Ll();return}let t=[...C.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(Ol===`before`?i:i+1,0,r),$.value=null,Dl=null,Ll(),w(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return s({openCardEditor:Wt,closeCardEditor:Qt,saveCard:$t,editingCard:U}),(s,u)=>{let d=le(`tooltip`);return V(),g(`div`,{ref_key:`rootEl`,ref:Gl,class:`kb`},[z(`header`,$r,[m(O(o),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:u[0]||=e=>p(`back`)}),H((V(),g(`h1`,{class:`kb-header__title`,ref:e=>Nr(e,`board`)},[l(e(n.name),1)])),[[d,Fr(`board`,n.name),void 0,{bottom:!0}]]),z(`span`,ei,[u[60]||=z(`i`,{class:`pi pi-search`},null,-1),m(O(oe),{modelValue:E.value,"onUpdate:modelValue":u[1]||=e=>E.value=e,placeholder:O(_)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),E.value?(V(),t(O(o),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:u[2]||=e=>E.value=``})):L(``,!0),n.searchTruncated?(V(),g(`small`,ti,e(O(_)(`searchTruncated`)),1)):L(``,!0)]),H(m(O(o),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:ve.value?String(ve.value):void 0,"badge-severity":`info`,class:a({"kb-header__filter--on":ve.value}),onClick:u[3]||=e=>ae.value=!0},null,8,[`badge`,`class`]),[[d,O(_)(`filters.open`),void 0,{bottom:!0}]]),H(m(O(o),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:jn},null,512),[[d,O(_)(`archive.open`),void 0,{bottom:!0}]]),n.readOnly?L(``,!0):H((V(),t(O(o),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:u[4]||=e=>Ae.value=!0},null,512)),[[d,O(_)(`groups.title`),void 0,{bottom:!0}]]),n.readOnly?(V(),g(`span`,ni,[u[61]||=z(`i`,{class:`pi pi-lock`},null,-1),l(` `+e(O(_)(`readOnly.badge`)),1)])):L(``,!0),B(s.$slots,`header-actions`,{},void 0,!0)]),B(s.$slots,`banner`,{},void 0,!0),z(`div`,ri,[Le.value?(V(),g(`div`,{key:0,class:`kb-bands`,style:R({height:`${Le.value}px`})},[(V(!0),g(S,null,N(qe.value,t=>(V(),g(`div`,{key:t.id,class:`kb-band`,style:R({left:`${t.left}px`,width:`${t.width}px`,top:`${t.top}px`,"--kb-band-color":t.color||`var(--p-text-muted-color)`})},[z(`span`,ii,e(t.title),1),z(`span`,ai,e(t.count),1)],4))),128))],4)):L(``,!0),z(`div`,{ref_key:`boardEl`,ref:ze,class:`kb-board`},[(V(!0),g(S,null,N(Oe.value,c=>(V(),g(`div`,{key:c.id,class:a([`kb-col`,{"kb-col--collapsed":qc(c.id),"kb-col--dragging":$.value===c.id}]),"data-col-id":c.id,draggable:!n.readOnly,onDragstart:e=>au(e,c.id),onDragover:e=>{ou(e,c.id),ru(e,c.id)},onDragleave:e=>iu(c.id),onDrop:i(e=>nu(c.id),[`prevent`]),onDragend:eu,onTouchstart:e=>Xl(e,`column`,c.id),onTouchmove:Zl,onTouchend:Ql,onContextmenu:u[8]||=i(()=>{},[`prevent`])},[qc(c.id)?(V(),g(`button`,{key:0,class:a([`kb-col__strip`,{"kb-col__strip--empty":c.cards.length===0}]),title:O(_)(`column.expand`),onClick:e=>Jc(c.id)},[u[62]||=z(`i`,{class:`pi pi-angle-double-right`},null,-1),z(`span`,ci,e(c.cards.length),1),Dr(c.id)?(V(),g(`i`,li)):L(``,!0),H((V(),g(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>Nr(e,`strip:${c.id}`)},[l(e(c.title),1)])),[[d,Fr(`strip:${c.id}`,c.title),void 0,{right:!0}]])],10,si)):(V(),g(`div`,ui,[H(z(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>Nr(e,`col:${c.id}`),value:c.title,readonly:n.readOnly,draggable:`false`,onBlur:e=>et(c.id,e.target.value),onKeyup:u[5]||=x(e=>e.target.blur(),[`enter`]),onMousedown:u[6]||=i(()=>{},[`stop`])},null,40,di),[[d,Fr(`col:${c.id}`,c.title),void 0,{bottom:!0}]]),z(`div`,fi,[_r.value&&Dr(c.id)?H((V(),t(O(o),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>Vr(c.id)},null,8,[`onClick`])),[[d,O(_)(`column.unsubscribe`),void 0,{bottom:!0}]]):L(``,!0),H(m(O(o),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:a([`kb-col__menu-btn`,{"kb-col__menu-btn--open":Lr.value?.id===c.id}]),onClick:e=>Rr(e,c)},null,8,[`class`,`onClick`]),[[d,O(_)(`column.menu`),void 0,{bottom:!0}]]),z(`span`,pi,e(c.cards.length),1)])])),!n.readOnly&&!qc(c.id)?(V(),g(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>Vt(c.id,`top`)},[u[63]||=z(`i`,{class:`pi pi-plus`},null,-1),l(` `+e(O(_)(`column.addCard`)),1)],8,mi)):L(``,!0),qc(c.id)?L(``,!0):(V(),g(`div`,hi,[(V(!0),g(S,null,N(c.cards,e=>(V(),g(`div`,{key:e.id,class:a([`kb-card`,{"kb-card--colored":e.color}]),style:R(e.color?{borderTopColor:e.color}:void 0),"data-card-id":e.id,draggable:!n.readOnly,onDragstart:i(t=>$l(t,c.id,e.id),[`stop`]),onDragover:t=>tu(t,c.id,e.id),onDragend:eu,onTouchstart:i(t=>Xl(t,`card`,c.id,e.id),[`stop`]),onTouchmove:Zl,onTouchend:Ql,onContextmenu:u[7]||=i(()=>{},[`prevent`]),onClick:t=>Wt(c.id,e)},[m(fn,{card:e,t:O(_),"avatar-url":n.avatarUrl,"child-count":rn(e.id),"has-parent":!!tn(e.id)},{actions:r(()=>[B(s.$slots,`card-actions`,{card:e,column:c},void 0,!0),n.readOnly?L(``,!0):H((V(),g(`button`,{key:0,class:`kb-card__delete`,onClick:i(t=>Mn(c.id,e.id),[`stop`])},[...u[64]||=[z(`i`,{class:`pi pi-inbox`},null,-1)]],8,_i)),[[d,O(_)(`archive.cardTooltip`),void 0,{bottom:!0}]]),n.readOnly?L(``,!0):H((V(),g(`button`,{key:1,class:`kb-card__delete`,onClick:i(t=>Pn(c.id,e.id),[`stop`])},[...u[65]||=[z(`i`,{class:`pi pi-times`},null,-1)]],8,vi)),[[d,O(_)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:r(()=>[B(s.$slots,`card-badges`,{card:e},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,gi))),128)),c.cards.length===0?(V(),g(`div`,yi,e(O(_)(`column.dropZone`)),1)):L(``,!0)])),!n.readOnly&&!qc(c.id)?(V(),g(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>Vt(c.id)},[u[66]||=z(`i`,{class:`pi pi-plus`},null,-1),l(` `+e(O(_)(`column.addCard`)),1)],8,bi)):L(``,!0)],42,oi))),128)),m(O(te),{visible:Z.value!==null,modal:``,header:O(_)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":u[13]||=e=>{e||(Z.value=null)}},{footer:r(()=>[Gr.value?(V(),t(O(o),{key:0,label:wr.value?O(_)(`column.unsubscribeTeam`):O(_)(`column.unsubscribe`),severity:`danger`,text:``,onClick:qr},null,8,[`label`])):L(``,!0),m(O(o),{label:O(_)(`editor.cancel`),text:``,onClick:u[12]||=e=>Z.value=null},null,8,[`label`]),m(O(o),{label:Gr.value?O(_)(`editor.save`):O(_)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Ur.value,onClick:Kr},null,8,[`label`,`disabled`])]),default:r(()=>[z(`p`,xi,e(O(_)(`column.subscribeIntro`,{column:Jr.value?.title??``})),1),Tr.value.length?(V(),g(S,{key:0},[z(`p`,Si,e(O(_)(`column.subscribeTargetLabel`)),1),z(`div`,Ci,[z(`label`,wi,[m(O(Ie),{"model-value":wr.value,value:null,"onUpdate:modelValue":u[9]||=e=>Hr(null)},null,8,[`model-value`]),z(`span`,null,e(O(_)(`column.subscribeTargetMe`)),1)]),(V(!0),g(S,null,N(Tr.value,t=>(V(),g(`label`,{key:t.id,class:`kb-subscribe__option`},[m(O(Ie),{"model-value":wr.value,value:t.id,"onUpdate:modelValue":e=>Hr(t.id)},null,8,[`model-value`,`value`,`onUpdate:modelValue`]),z(`span`,null,e(t.name),1)]))),128))])],64)):L(``,!0),z(`p`,Ti,e(O(_)(`column.subscribeEventsLabel`)),1),z(`div`,Ei,[(V(),g(S,null,N(vr,t=>z(`label`,{key:t,class:`kb-subscribe__option`},[m(O(Fe),{modelValue:Sr.value,"onUpdate:modelValue":u[10]||=e=>Sr.value=e,value:t},null,8,[`modelValue`,`value`]),z(`span`,null,e(O(_)(`column.subscribeKind.${t}`)),1)])),64))]),z(`p`,Di,[u[67]||=z(`i`,{class:`pi pi-times`},null,-1),l(` `+e(O(_)(`column.subscribeNotReorder`)),1)]),z(`p`,Oi,e(O(_)(`column.subscribeChannelsLabel`)),1),z(`div`,ki,[(V(),g(S,null,N(yr,t=>z(`label`,{key:t,class:`kb-subscribe__option`},[m(O(Fe),{modelValue:Cr.value,"onUpdate:modelValue":u[11]||=e=>Cr.value=e,value:t},null,8,[`modelValue`,`value`]),z(`span`,null,e(O(_)(`column.subscribeChannel.${t}`)),1)])),64))]),z(`p`,Ai,e(O(_)(`column.subscribeOwnActions`)),1),Or.value.length?(V(),g(`p`,ji,e(O(_)(`column.subscribeTeamsFollowing`,{teams:Or.value.join(`, `)})),1)):L(``,!0)]),_:1},8,[`visible`,`header`]),m(O(te),{visible:zt.value!==null,header:O(_)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":u[15]||=e=>{e||(zt.value=null)}},{default:r(()=>[z(`p`,Mi,e(O(_)(`templates.pickIntro`)),1),z(`div`,Ni,[z(`button`,{class:`kb-tpl-option`,onClick:u[14]||=e=>Ht(null)},[u[68]||=z(`i`,{class:`pi pi-file`},null,-1),l(` `+e(O(_)(`templates.blank`)),1)]),(V(!0),g(S,null,N(n.templates,t=>(V(),g(`button`,{key:t.id,class:`kb-tpl-option`,onClick:e=>Ht(t)},[u[69]||=z(`i`,{class:`pi pi-file-edit`},null,-1),l(` `+e(t.name),1)],8,Pi))),128))])]),_:1},8,[`visible`,`header`]),n.readOnly?L(``,!0):(V(),g(`div`,Fi,[D.value?(V(),g(`div`,Ii,[m(O(oe),{modelValue:k.value,"onUpdate:modelValue":u[16]||=e=>k.value=e,placeholder:O(_)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[x(Qe,[`enter`]),u[17]||=x(e=>D.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),z(`div`,Li,[m(O(o),{label:O(_)(`addColumnButton`),size:`small`,disabled:!k.value.trim(),onClick:Qe},null,8,[`label`,`disabled`]),m(O(o),{icon:`pi pi-times`,text:``,size:`small`,onClick:u[18]||=e=>D.value=!1})])])):(V(),g(`button`,{key:1,class:`kb-add-col__trigger`,onClick:u[19]||=e=>D.value=!0},[u[70]||=z(`i`,{class:`pi pi-plus`},null,-1),l(` `+e(O(_)(`addColumn`)),1)]))]))],512)]),m(Qr,{visible:Ae.value,"onUpdate:visible":u[20]||=e=>Ae.value=e,columns:C.value,groups:n.columnGroups,"read-only":n.readOnly,t:O(_),onIntent:u[21]||=e=>p(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),m(O(c),{visible:ae.value,"onUpdate:visible":u[30]||=e=>ae.value=e,position:`right`,header:O(_)(`filters.title`),class:`kb-filters`},{footer:r(()=>[m(O(o),{label:O(_)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!ve.value,onClick:ye},null,8,[`label`,`disabled`])]),default:r(()=>[z(`div`,Ri,[z(`section`,zi,[z(`span`,Bi,e(O(_)(`filters.priority`)),1),ge.value?(V(),g(S,{key:1},[z(`div`,Vi,[(V(),g(S,null,N([`lte`,`eq`,`gte`],t=>H(z(`button`,{key:t,class:a([`kb-ops__btn`,{"kb-ops__btn--on":j.value===t}]),onClick:e=>{j.value=t,M.value===null&&(M.value=5)}},[l(e(t===`lte`?`≤`:t===`eq`?`=`:`≥`),1)],10,Hi),[[d,{value:O(_)(`filters.priorityOp.${t}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),H((V(),g(`button`,{class:a([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":j.value===`none`}]),onClick:u[23]||=e=>{j.value=j.value===`none`?`gte`:`none`,M.value=j.value===`none`?null:5}},[...u[72]||=[z(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[d,{value:O(_)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),j.value===`none`?L(``,!0):(V(),g(`div`,Ui,[m(O(it),{"model-value":M.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":u[24]||=e=>M.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),z(`span`,Wi,e(M.value),1)])),z(`button`,{class:`kb-prio__set`,onClick:u[25]||=e=>{M.value=null,j.value=`gte`}},[u[73]||=z(`i`,{class:`pi pi-times`},null,-1),l(` `+e(O(_)(`filters.clearOne`)),1)]),j.value===`none`?L(``,!0):(V(),g(`p`,Gi,e(O(_)(`filters.priorityHint`)),1))],64)):(V(),g(`button`,{key:0,class:`kb-prio__set`,onClick:u[22]||=e=>M.value=5},[u[71]||=z(`i`,{class:`pi pi-plus`},null,-1),l(` `+e(O(_)(`filters.priorityAdd`)),1)]))]),z(`section`,Ki,[z(`span`,qi,e(O(_)(`filters.colors`)),1),z(`div`,Ji,[H((V(),g(`button`,{class:a([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":P.value.includes(``)}]),onClick:u[26]||=e=>P.value=P.value.includes(``)?P.value.filter(e=>e!==``):[...P.value,``]},[...u[74]||=[z(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[d,{value:O(_)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(V(),g(S,null,N(kt,e=>H(z(`button`,{key:e,class:a([`kb-colors__swatch`,{"kb-colors__swatch--on":P.value.includes(e)}]),style:R({background:e}),onClick:t=>P.value=P.value.includes(e)?P.value.filter(t=>t!==e):[...P.value,e]},null,14,Yi),[[d,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))])]),z(`section`,Xi,[z(`span`,Zi,e(O(_)(`filters.groups`)),1),m(O(Re),{modelValue:xe.value,"onUpdate:modelValue":u[27]||=e=>xe.value=e,options:Se.value,placeholder:O(_)(`filters.groupsPlaceholder`),display:`chip`,filter:Se.value.length>6,class:`kb-filters__control`},{option:r(({option:t})=>[z(`span`,{class:a([`kb-void`,{"kb-void--is":t===Q}])},[t===Q?(V(),g(`i`,Qi)):L(``,!0),l(` `+e(t===Q?O(_)(`filters.noGroups`):t),1)],2)]),chip:r(({value:t})=>[z(`span`,{class:a([`kb-void`,{"kb-void--is":t===Q}])},e(t===Q?O(_)(`filters.noGroups`):t),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),z(`section`,$i,[z(`span`,ea,e(O(_)(`filters.assignees`)),1),m(O(Re),{modelValue:Ce.value,"onUpdate:modelValue":u[28]||=e=>Ce.value=e,options:we.value,"option-label":`name`,"option-value":`userId`,placeholder:O(_)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:r(({option:t})=>[z(`span`,{class:a([`kb-void`,{"kb-void--is":t.userId===Q}])},[t.userId===Q?(V(),g(`i`,ta)):L(``,!0),l(` `+e(t.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),z(`section`,na,[z(`span`,ra,e(O(_)(`filters.family`)),1),m(O(Re),{modelValue:Te.value,"onUpdate:modelValue":u[29]||=e=>Te.value=e,options:De.value,"option-label":`title`,"option-value":`id`,placeholder:O(_)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:r(({option:t})=>[z(`span`,{class:a([`kb-void`,{"kb-void--is":t.id===Q}])},[t.id===Q?(V(),g(`i`,ia)):L(``,!0),z(`span`,null,e(t.title),1),t.column?(V(),g(`span`,aa,e(t.column),1)):L(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),z(`p`,oa,e(O(_)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),m(O(c),{visible:q.value,"onUpdate:visible":u[35]||=e=>q.value=e,position:`right`,header:O(_)(`archive.title`),class:`kb-archive`},{default:r(()=>[z(`p`,sa,e(O(_)(`archive.hint`)),1),z(`span`,ca,[u[75]||=z(`i`,{class:`pi pi-search`},null,-1),m(O(oe),{modelValue:xn.value,"onUpdate:modelValue":u[31]||=e=>xn.value=e,placeholder:O(_)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),xn.value?(V(),t(O(o),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:u[32]||=e=>xn.value=``})):L(``,!0),H(m(O(o),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:ve.value?String(ve.value):void 0,"badge-severity":`info`,class:a({"kb-header__filter--on":ve.value}),onClick:u[33]||=e=>ae.value=!0},null,8,[`badge`,`class`]),[[d,O(_)(`filters.open`),void 0,{bottom:!0}]])]),m(O(me),{modelValue:Sn.value,"onUpdate:modelValue":u[34]||=e=>Sn.value=e,options:Cn.value,"option-label":`title`,"option-value":`id`,size:`small`,class:`kb-archive__column`,"aria-label":O(_)(`archive.columnFilter`)},null,8,[`modelValue`,`options`,`aria-label`]),n.loadingArchive?(V(),g(`p`,la,e(O(_)(`archive.loading`)),1)):n.archivedCards.length?On.value.length?(V(),g(S,{key:3},[kn.value?(V(),g(`p`,fa,[l(e(O(_)(`archive.filteredOut`,{count:kn.value}))+` `,1),z(`button`,{class:`kb-archive__reset`,onClick:ye},e(O(_)(`filters.reset`)),1)])):L(``,!0),n.archiveTruncated?(V(),g(`p`,pa,[u[76]||=z(`i`,{class:`pi pi-exclamation-circle`},null,-1),l(` `+e(O(_)(`archive.truncated`)),1)])):L(``,!0),z(`ul`,ma,[(V(!0),g(S,null,N(On.value,t=>(V(),g(`li`,{key:t.id,class:a([`kb-card kb-archive__card`,{"kb-card--colored":t.color}]),style:R(t.color?{borderTopColor:t.color}:void 0),onClick:e=>Dn(t)},[m(fn,{card:t,t:O(_),"avatar-url":n.avatarUrl,"child-count":rn(t.id),"has-parent":!!tn(t.id)},{actions:r(()=>[n.readOnly?L(``,!0):H((V(),g(`button`,{key:0,class:`kb-card__delete`,onClick:i(e=>Nn(t.id),[`stop`])},[...u[77]||=[z(`i`,{class:`pi pi-replay`},null,-1)]],8,ga)),[[d,O(_)(`archive.restore`),void 0,{left:!0}]])]),badges:r(()=>[B(s.$slots,`card-badges`,{card:t},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),z(`div`,_a,[t.archivedFrom?(V(),g(`span`,va,[u[78]||=z(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),l(` `+e(O(_)(`archive.fromColumn`,{column:t.archivedFrom.columnTitle})),1)])):L(``,!0),t.archivedAt?(V(),g(`span`,ya,e(new Date(t.archivedAt).toLocaleDateString()),1)):L(``,!0)])],14,ha))),128))])],64)):(V(),g(`p`,da,e(O(_)(`archive.allFiltered`,{count:kn.value})),1)):(V(),g(`p`,ua,e(xn.value||Sn.value?O(_)(`archive.noMatch`):O(_)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),m(O(te),{visible:!!U.value,header:tt.value.trim()||O(_)(`card.untitled`),modal:!0,"dismissable-mask":!qt.value,class:a([`kb-card-dialog`,{"kb-card-dialog--colored":Ot.value}]),style:R({width:`min(1400px, 92vw)`,height:`90vh`,...Ot.value?{"--kb-card-color":Ot.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":u[54]||=e=>{e||Jt()}},{footer:r(()=>[z(`div`,nc,[qt.value&&!J.value?(V(),g(`span`,rc,[u[107]||=z(`i`,{class:`pi pi-exclamation-circle`},null,-1),l(` `+e(O(_)(`editor.unsavedHint`)),1)])):L(``,!0),m(O(o),{label:O(_)(`editor.close`),text:``,onClick:Jt},null,8,[`label`]),J.value?L(``,!0):(V(),t(O(o),{key:1,label:O(_)(`editor.save`),icon:`pi pi-check`,onClick:$t},null,8,[`label`]))])]),default:r(()=>[U.value?(V(),g(`div`,ba,[z(`div`,xa,[En.value?(V(),g(`p`,Sa,[u[79]||=z(`i`,{class:`pi pi-inbox`},null,-1),l(` `+e(O(_)(`archive.editorReadOnly`)),1)])):L(``,!0),m(O(He),{value:Mt.value,"onUpdate:value":u[43]||=e=>Mt.value=e},{default:r(()=>[m(O(Be),null,{default:r(()=>[m(O(Ue),{value:`edit`},{default:r(()=>[u[80]||=z(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),l(e(O(_)(`editor.tabs.edit`)),1)]),_:1}),mn.value||gn.value?(V(),t(O(Ue),{key:0,value:`relations`},{default:r(()=>[u[81]||=z(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),l(e(O(_)(`editor.tabs.relations`,{count:gn.value})),1)]),_:1})):L(``,!0),m(O(Ue),{value:`comments`},{default:r(()=>[u[82]||=z(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),l(e(O(_)(`editor.tabs.comments`,{count:Yc.value.length||(U.value.card.commentCount??0)})),1)]),_:1}),m(O(Ue),{value:`history`},{default:r(()=>[u[83]||=z(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),l(e(O(_)(`editor.tabs.history`,{count:U.value.card.history?.length??0})),1)]),_:1})]),_:1}),m(O(Ve),null,{default:r(()=>[m(O(We),{value:`edit`},{default:r(()=>[z(`div`,Ca,[z(`div`,wa,[z(`label`,Ta,e(O(_)(`editor.titleLabel`)),1),m(O(oe),{id:`kanban-card-title`,modelValue:tt.value,"onUpdate:modelValue":u[36]||=e=>tt.value=e,disabled:J.value,autofocus:``,onKeyup:x($t,[`enter`])},null,8,[`modelValue`,`disabled`])]),z(`div`,Ea,[z(`label`,Da,e(O(_)(`editor.contentLabel`)),1),m(O(Ke),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:Pt,modelValue:nt.value,"onUpdate:modelValue":u[37]||=e=>nt.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!J.value,placeholder:O(_)(`editor.contentPlaceholder`),"handle-files":e=>yl(e,`card`),mentions:tr.value,"attachment-src":ut,onLinkClick:Xc},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),z(`div`,Oa,[z(`label`,ka,e(O(_)(`editor.filesLabel`)),1),rt.value.length?(V(),g(`div`,Aa,[(V(!0),g(S,null,N(rt.value,(e,t)=>(V(),g(`div`,{key:t,class:`kb-dialog__thumb`},[z(`img`,{src:e,alt:`attachment`},null,8,ja),J.value?L(``,!0):(V(),g(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>Sl(t)},[...u[84]||=[z(`i`,{class:`pi pi-times`},null,-1)]],8,Ma))]))),128))])):L(``,!0),m(bn,{files:at.value,preview:Ln,removable:!J.value,"remove-label":O(_)(`editor.removeFile`),onOpen:Jn,onRemove:Qn},null,8,[`files`,`removable`,`remove-label`]),m(Pr,{queue:st.value,errors:W.value,uploading:ot.value,"uploading-label":O(_)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),J.value?L(``,!0):(V(),g(`label`,Na,[u[85]||=z(`i`,{class:`pi pi-upload`},null,-1),l(` `+e(O(_)(`editor.attachFile`))+` `,1),z(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:xl},null,32)]))])])]),_:1}),m(O(We),{value:`relations`},{default:r(()=>[z(`div`,Pa,[K.value||mn.value?(V(),g(`section`,Fa,[z(`h4`,Ia,[u[86]||=z(`i`,{class:`pi pi-arrow-up`},null,-1),l(` `+e(O(_)(`editor.parentLabel`)),1)]),K.value?(V(),g(`table`,La,[z(`thead`,null,[z(`tr`,null,[z(`th`,null,e(O(_)(`editor.relationsColCard`)),1),z(`th`,null,e(O(_)(`editor.relationsColBoard`)),1),z(`th`,null,e(O(_)(`editor.relationsColColumn`)),1),z(`th`,Ra,e(O(_)(`editor.relationsColAssignees`)),1),z(`th`,za,e(O(_)(`editor.relationsColComments`)),1),z(`th`,Ba,e(O(_)(`editor.relationsColActions`)),1)])]),z(`tbody`,null,[z(`tr`,null,[z(`td`,Va,[H((V(),g(`span`,{class:`kb-rel__card-title`,ref:e=>Nr(e,`rel:${K.value?.cardId??``}`)},[l(e(K.value.title),1)])),[[d,Fr(`rel:${K.value.cardId}`,K.value.title),void 0,{top:!0}]])]),z(`td`,{class:a([`kb-rel__board`,{"kb-rel__board--away":!K.value.here}])},[H((V(),g(`span`,{class:`kb-rel__card-title`,ref:e=>Nr(e,`relb:${K.value?.cardId??``}`)},[l(e(K.value.boardName),1)])),[[d,Fr(`relb:${K.value?.cardId??``}`,K.value?.boardName??``),void 0,{top:!0}]])],2),z(`td`,Ha,[H((V(),g(`span`,{class:`kb-rel__card-title`,ref:e=>Nr(e,`relc:${K.value?.cardId??``}`)},[l(e(K.value.columnTitle),1)])),[[d,Fr(`relc:${K.value?.cardId??``}`,K.value?.columnTitle??``),void 0,{top:!0}]])]),z(`td`,Ua,[K.value.assignees.length?(V(),g(`div`,Wa,[(V(!0),g(S,null,N(K.value.assignees,t=>(V(),g(`span`,{key:t.id,class:`kb-card__avatar`,style:R(rr(t.id)),title:t.name},[n.avatarUrl&&!$n.has(t.id)?(V(),g(`img`,{key:0,src:n.avatarUrl(t.id),alt:``,onError:e=>$n.add(t.id)},null,40,Ka)):(V(),g(S,{key:1},[l(e(er(t.name)),1)],64))],12,Ga))),128))])):(V(),g(`span`,qa,`—`))]),z(`td`,Ja,e(K.value.commentCount||`—`),1),z(`td`,Ya,[z(`button`,{class:`kb-rel__action`,title:K.value.here?O(_)(`editor.childOpen`):O(_)(`editor.openOnBoard`,{board:K.value.boardName}),onClick:u[38]||=e=>_n(K.value.cardId,K.value.boardId)},[...u[87]||=[z(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Xa),mn.value?(V(),g(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:O(_)(`editor.detach`),onClick:u[39]||=e=>un(null)},[...u[88]||=[z(`i`,{class:`pi pi-times`},null,-1)]],8,Za)):L(``,!0)])])])])):(V(),g(`p`,Qa,e(O(_)(`editor.parentEmptyState`)),1)),mn.value?(V(),t(O(me),{key:2,"model-value":null,options:cn.value,"option-label":`title`,"option-value":`id`,filter:cn.value.length>6,"filter-placeholder":O(_)(`editor.parentSearchPlaceholder`),"empty-message":O(_)(`editor.parentEmpty`),"empty-filter-message":O(_)(`editor.parentEmpty`),placeholder:K.value?O(_)(`editor.parentReplace`):O(_)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":un},{option:r(({option:t})=>[z(`span`,$a,[z(`span`,null,e(t.title),1),z(`span`,eo,e(t.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):L(``,!0)])):L(``,!0),an.value.length||mn.value?(V(),g(`section`,to,[z(`h4`,no,[u[89]||=z(`i`,{class:`pi pi-arrow-down`},null,-1),l(` `+e(O(_)(`editor.childrenLabel`,{count:an.value.length})),1)]),an.value.length?(V(),g(`table`,ro,[z(`thead`,null,[z(`tr`,null,[z(`th`,null,e(O(_)(`editor.relationsColCard`)),1),z(`th`,null,e(O(_)(`editor.relationsColBoard`)),1),z(`th`,null,e(O(_)(`editor.relationsColColumn`)),1),z(`th`,io,e(O(_)(`editor.relationsColAssignees`)),1),z(`th`,ao,e(O(_)(`editor.relationsColComments`)),1),z(`th`,oo,e(O(_)(`editor.relationsColActions`)),1)])]),z(`tbody`,null,[(V(!0),g(S,null,N(an.value,t=>(V(),g(`tr`,{key:t.cardId},[z(`td`,so,[H((V(),g(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Nr(e,`rel:${t.cardId}`)},[l(e(t.title),1)])),[[d,Fr(`rel:${t.cardId}`,t.title),void 0,{top:!0}]])]),z(`td`,{class:a([`kb-rel__board`,{"kb-rel__board--away":!t.here}])},[H((V(),g(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Nr(e,`relb:${t.cardId}`)},[l(e(t.boardName),1)])),[[d,Fr(`relb:${t.cardId}`,t.boardName),void 0,{top:!0}]])],2),z(`td`,co,[H((V(),g(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Nr(e,`relc:${t.cardId}`)},[l(e(t.columnTitle),1)])),[[d,Fr(`relc:${t.cardId}`,t.columnTitle),void 0,{top:!0}]])]),z(`td`,lo,[t.assignees.length?(V(),g(`div`,uo,[(V(!0),g(S,null,N(t.assignees,t=>(V(),g(`span`,{key:t.id,class:`kb-card__avatar`,style:R(rr(t.id)),title:t.name},[n.avatarUrl&&!$n.has(t.id)?(V(),g(`img`,{key:0,src:n.avatarUrl(t.id),alt:``,onError:e=>$n.add(t.id)},null,40,po)):(V(),g(S,{key:1},[l(e(er(t.name)),1)],64))],12,fo))),128))])):(V(),g(`span`,mo,`—`))]),z(`td`,ho,e(t.commentCount||`—`),1),z(`td`,go,[z(`button`,{class:`kb-rel__action`,title:t.here?O(_)(`editor.childOpen`):O(_)(`editor.openOnBoard`,{board:t.boardName}),onClick:e=>_n(t.cardId,t.boardId)},[...u[90]||=[z(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,_o),mn.value?(V(),g(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:O(_)(`editor.detach`),onClick:e=>pn(t.cardId)},[...u[91]||=[z(`i`,{class:`pi pi-times`},null,-1)]],8,vo)):L(``,!0)])]))),128))])])):(V(),g(`p`,yo,e(O(_)(`editor.childrenEmptyState`)),1)),mn.value?(V(),t(O(me),{key:2,"model-value":null,options:ln.value,"option-label":`title`,"option-value":`id`,filter:ln.value.length>6,"filter-placeholder":O(_)(`editor.parentSearchPlaceholder`),"empty-message":O(_)(`editor.parentEmpty`),"empty-filter-message":O(_)(`editor.parentEmpty`),placeholder:O(_)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":dn},{option:r(({option:t})=>[z(`span`,bo,[z(`span`,null,e(t.title),1),z(`span`,xo,e(t.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):L(``,!0)])):L(``,!0),!mn.value&&!K.value&&!an.value.length?(V(),g(`p`,So,e(O(_)(`editor.relationsEmpty`)),1)):L(``,!0)])]),_:1}),m(O(We),{value:`comments`},{default:r(()=>[z(`div`,Co,[Yc.value.length?(V(),g(`div`,To,[(V(!0),g(S,null,N(Yc.value,(r,s)=>(V(),g(`div`,{key:s,class:a([`kb-comments__item`,{"kb-comments__item--ai":r.author===`ai`,"kb-comments__item--clickable":ul(r)}]),onClick:e=>ul(r)&&fl(r)},[z(`div`,{class:a([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!ar(r)}]),style:R(ar(r)?rr(ar(r)):void 0)},[r.author===`ai`?(V(),g(`i`,Do)):ar(r)&&n.avatarUrl&&!$n.has(ar(r))?(V(),g(`img`,{key:1,src:n.avatarUrl(ar(r)),alt:``,onError:e=>$n.add(ar(r))},null,40,Oo)):r.authorUser?.name?(V(),g(S,{key:2},[l(e(er(r.authorUser.name)),1)],64)):(V(),g(`i`,ko))],6),z(`div`,Ao,[z(`div`,jo,[z(`span`,Mo,e(or(r)),1),z(`span`,No,e(hl(r.timestamp)),1),r.editedAt?(V(),g(`span`,Po,e(O(_)(`comments.edited`)),1)):L(``,!0),!J.value&&hr(r)&&It.value!==r.id?(V(),g(`span`,Fo,[ir(r)?(V(),g(`button`,{key:0,class:`kb-comments__tool`,title:O(_)(`comments.edit`),onClick:i(e=>cr(r),[`stop`])},[...u[93]||=[z(`i`,{class:`pi pi-pencil`},null,-1)]],8,Io)):L(``,!0),z(`button`,{class:`kb-comments__tool`,title:O(_)(`comments.delete`),onClick:i(e=>gr(r),[`stop`])},[...u[94]||=[z(`i`,{class:`pi pi-trash`},null,-1)]],8,Lo)])):L(``,!0)]),It.value===r.id?(V(),g(`div`,{key:0,class:`kb-comments__edit`,onClick:u[41]||=i(()=>{},[`stop`])},[m(O(Ke),{modelValue:Lt.value,"onUpdate:modelValue":u[40]||=e=>Lt.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:tr.value,onLinkClick:Xc},null,8,[`modelValue`,`mentions`]),z(`div`,Ro,[m(O(o),{label:O(_)(`editor.cancel`),size:`small`,text:``,onClick:dr},null,8,[`label`]),m(O(o),{label:O(_)(`editor.save`),size:`small`,disabled:!Lt.value.trim(),onClick:fr},null,8,[`label`,`disabled`])])])):r.detail?(V(),g(S,{key:1},[z(`div`,{ref_for:!0,ref:e=>sl(e,r,s),class:a([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!nl(r,s),"kb-comments__text--toggleable":rl(r,s)&&!ul(r)}]),onClick:e=>al(r,s,e),innerHTML:Qc(r.detail)},null,10,zo),rl(r,s)?(V(),g(`button`,{key:0,class:`kb-comments__more`,onClick:i(e=>il(r,s),[`stop`])},e(nl(r,s)?O(_)(`comments.showLess`):O(_)(`comments.showMore`)),9,Bo)):L(``,!0)],64)):L(``,!0),It.value===r.id?L(``,!0):(V(),t(bn,{key:2,files:r.attachments??[],preview:Ln,compact:``,onOpen:Jn},null,8,[`files`]))])],10,Eo))),128)),z(`div`,{ref_key:`commentsEndEl`,ref:Ft},null,512)])):(V(),g(`div`,wo,[u[92]||=z(`i`,{class:`pi pi-comments`},null,-1),z(`span`,null,e(O(_)(`comments.empty`)),1)])),J.value?L(``,!0):(V(),g(`div`,{key:2,class:`kb-comments__input`,onKeydown:[x(i(Fn,[`ctrl`,`prevent`]),[`enter`]),x(i(Fn,[`meta`,`prevent`]),[`enter`])]},[m(O(Ke),{modelValue:Nt.value,"onUpdate:modelValue":u[42]||=e=>Nt.value=e,markdown:``,placeholder:O(_)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>yl(e,`comment`),mentions:tr.value,onLinkClick:Xc},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),m(bn,{files:G.value,preview:Ln,openable:!1,removable:``,"remove-label":O(_)(`editor.removeFile`),compact:``,onRemove:bl},null,8,[`files`,`remove-label`]),m(Pr,{queue:st.value,errors:W.value,uploading:ot.value,"uploading-label":O(_)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),z(`div`,Ho,[z(`label`,{class:`kb-comments__attach`,title:O(_)(`comments.attach`)},[u[95]||=z(`i`,{class:`pi pi-paperclip`},null,-1),z(`input`,{type:`file`,multiple:``,onChange:vl},null,32)],8,Uo),z(`span`,Wo,e(O(_)(`comments.sendHint`)),1),m(O(o),{label:O(_)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!Nt.value.trim()&&!G.value.length,onClick:Fn},null,8,[`label`,`disabled`])])],40,Vo))])]),_:1}),m(O(We),{value:`history`},{default:r(()=>[z(`div`,Go,[U.value.card.history?.length?(V(),g(`div`,qo,[(V(!0),g(S,null,N([...U.value.card.history].reverse(),(t,n)=>(V(),g(`div`,{key:n,class:a([`kb-history__item`,{"kb-history__item--clickable":ul(t)}]),onClick:e=>ul(t)&&fl(t)},[z(`div`,Yo,[z(`i`,{class:a(pl[t.type])},null,2)]),z(`div`,Xo,[z(`span`,Zo,[l(e(ml.value[t.type])+` `,1),ul(t)?(V(),g(`i`,Qo)):L(``,!0)]),t.detail?(V(),g(`span`,$o,e(t.detail),1)):L(``,!0),z(`span`,es,[l(e(hl(t.timestamp))+` `,1),t.authorUser?.name?(V(),g(S,{key:0},[l(` · `+e(O(_)(`history.by`,{name:t.authorUser.name})),1)],64)):L(``,!0)])])],10,Jo))),128))])):(V(),g(`div`,Ko,[u[96]||=z(`i`,{class:`pi pi-clock`},null,-1),z(`span`,null,e(O(_)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),z(`aside`,ts,[n.members.length?(V(),g(`div`,ns,[z(`span`,rs,e(O(_)(`editor.assigneesLabel`)),1),m(O(Re),{modelValue:dt.value,"onUpdate:modelValue":u[44]||=e=>dt.value=e,options:n.members,"option-label":`name`,"option-value":`userId`,placeholder:O(_)(`editor.assigneesPlaceholder`),disabled:J.value,display:`chip`,filter:``,class:`kb-side__control`},{chip:r(({value:t})=>[z(`span`,{class:`kb-card__avatar`,style:R(rr(t)),title:nr(t)},[n.avatarUrl&&!$n.has(t)?(V(),g(`img`,{key:0,src:n.avatarUrl(t),alt:``,onError:e=>$n.add(t)},null,40,as)):(V(),g(S,{key:1},[l(e(er(nr(t))),1)],64))],12,is)]),option:r(({option:t})=>[z(`span`,os,[z(`span`,{class:`kb-card__avatar`,style:R(rr(t.userId))},[n.avatarUrl&&!$n.has(t.userId)?(V(),g(`img`,{key:0,src:n.avatarUrl(t.userId),alt:``,onError:e=>$n.add(t.userId)},null,40,ss)):(V(),g(S,{key:1},[l(e(er(t.name)),1)],64))],4),l(` `+e(t.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),z(`p`,cs,e(O(_)(`editor.assigneesHint`)),1)])):L(``,!0),z(`div`,ls,[z(`span`,us,[l(e(O(_)(`editor.priorityLabel`))+` `,1),gt.value===null?L(``,!0):(V(),g(`span`,ds,e(gt.value)+`/10`,1))]),gt.value===null?J.value?(V(),g(`p`,ms,e(O(_)(`editor.priorityNone`)),1)):(V(),g(`button`,{key:1,class:`kb-prio__set`,onClick:xt},[u[98]||=z(`i`,{class:`pi pi-plus`},null,-1),l(` `+e(O(_)(`editor.priorityAdd`)),1)])):(V(),g(`div`,fs,[m(O(it),{modelValue:gt.value,"onUpdate:modelValue":u[45]||=e=>gt.value=e,min:1,max:10,step:1,disabled:J.value,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),J.value?L(``,!0):(V(),g(`button`,{key:0,class:`kb-prio__clear`,title:O(_)(`editor.priorityClear`),onClick:u[46]||=e=>gt.value=null},[...u[97]||=[z(`i`,{class:`pi pi-times`},null,-1)]],8,ps))]))]),z(`div`,hs,[z(`span`,gs,e(O(_)(`editor.deadlineLabel`)),1),z(`div`,_s,[m(O(jt),{modelValue:_t.value,"onUpdate:modelValue":u[47]||=e=>_t.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:J.value,placeholder:O(_)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!J.value&&_t.value?(V(),g(`button`,{key:0,class:`kb-prio__clear`,title:O(_)(`editor.deadlineClear`),onClick:u[48]||=e=>_t.value=null},[...u[99]||=[z(`i`,{class:`pi pi-times`},null,-1)]],8,vs)):L(``,!0)]),_t.value?(V(),g(`p`,ys,e(vt.value),1)):L(``,!0)]),z(`div`,bs,[z(`span`,xs,e(O(_)(`editor.groupsLabel`)),1),m(O(Ge),{modelValue:ft.value,"onUpdate:modelValue":u[49]||=e=>ft.value=e,multiple:``,suggestions:pt.value,disabled:J.value,placeholder:ft.value.length?``:O(_)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:ht,onItemSelect:Tt,onKeydown:x(Et,[`enter`]),onFocusout:Et},{option:r(({option:t})=>[z(`span`,Ss,[z(`i`,{class:a(mt.value.includes(t)?`pi pi-tag`:`pi pi-plus`)},null,2),z(`span`,null,e(mt.value.includes(t)?t:O(_)(`editor.groupsCreate`,{name:t})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),z(`p`,Cs,e(O(_)(`editor.groupsHint`)),1)]),hn.value.length?(V(),g(`div`,ws,[z(`span`,Ts,e(O(_)(`editor.ancestryLabel`)),1),z(`ul`,Es,[(V(!0),g(S,null,N(hn.value,(t,n)=>(V(),g(`li`,{key:t.cardId,class:`kb-tree__row`,style:R({paddingLeft:`${n*.75}rem`})},[n?(V(),g(`i`,Ds)):L(``,!0),z(`button`,{class:`kb-tree__label`,title:t.here?O(_)(`editor.childOpen`):O(_)(`editor.openOnBoard`,{board:t.boardName}),onClick:e=>_n(t.cardId,t.boardId)},e(t.title),9,Os)],4))),128)),z(`li`,{class:`kb-tree__row kb-tree__row--self`,style:R({paddingLeft:`${hn.value.length*.75}rem`})},[u[100]||=z(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),z(`span`,ks,e(tt.value.trim()||O(_)(`card.untitled`)),1)],4)])])):L(``,!0),z(`div`,As,[z(`span`,js,e(O(_)(`editor.colorLabel`)),1),z(`div`,Ms,[H((V(),g(`button`,{class:a([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Ot.value}]),disabled:J.value,onClick:u[50]||=e=>Ot.value=``},[...u[101]||=[z(`i`,{class:`pi pi-ban`},null,-1)]],10,Ns)),[[d,{value:O(_)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(V(),g(S,null,N(kt,e=>H(z(`button`,{key:e,class:a([`kb-colors__swatch`,{"kb-colors__swatch--on":Ot.value===e}]),style:R({background:e}),disabled:J.value,onClick:t=>Ot.value=e},null,14,Ps),[[d,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),z(`p`,Fs,e(O(_)(`editor.colorHint`)),1)]),En.value?(V(),g(`div`,Is,[z(`span`,Ls,e(O(_)(`editor.columnSettingLabel`)),1),z(`p`,Rs,[u[102]||=z(`i`,{class:`pi pi-inbox`},null,-1),l(` `+e(U.value.card.archivedFrom?O(_)(`archive.editorFrom`,{column:U.value.card.archivedFrom.columnTitle}):O(_)(`archive.editorNote`)),1)])])):(V(),g(`div`,zs,[z(`span`,Bs,e(O(_)(`editor.columnSettingLabel`)),1),m(O(me),{"model-value":At.value,options:vn.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:J.value,filter:vn.value.length>1,"filter-placeholder":O(_)(`editor.columnSearchPlaceholder`),"empty-filter-message":O(_)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":yn},{optiongroup:r(({option:t})=>[z(`span`,{class:a([`kb-colgroup`,{"kb-colgroup--away":t.items[0]?.boardId}])},[z(`i`,{class:a(t.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),z(`span`,Vs,e(t.label),1)],2)]),option:r(({option:t})=>[z(`span`,Hs,[t.boardId?(V(),g(`i`,Us)):L(``,!0),z(`span`,null,e(t.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),n.otherBoards.length&&n.moveCardToBoard&&!J.value?(V(),g(`p`,Ws,e(O(_)(`editor.moveToBoardHint`)),1)):L(``,!0)])),z(`div`,Gs,[U.value.card.createdBy?(V(),g(`p`,Ks,[u[103]||=z(`i`,{class:`pi pi-user`},null,-1),l(` `+e(O(_)(`editor.createdBy`,{name:U.value.card.createdBy.name})),1)])):L(``,!0),z(`p`,null,[u[104]||=z(`i`,{class:`pi pi-calendar-plus`},null,-1),l(` `+e(hl(U.value.card.createdAt)),1)]),z(`p`,null,[u[105]||=z(`i`,{class:`pi pi-clock`},null,-1),l(` `+e(hl(U.value.card.updatedAt)),1)])]),dl.value.length?(V(),g(`div`,qs,[z(`span`,Js,e(O(_)(`editor.conversationsLabel`)),1),z(`div`,Ys,[(V(!0),g(S,null,N(dl.value,t=>(V(),g(`a`,{key:t.id,class:`kb-side__conv`,title:t.title,onClick:e=>p(`open-conversation`,t.id)},[u[106]||=z(`i`,{class:`pi pi-comments`},null,-1),z(`span`,Zs,e(t.label),1)],8,Xs))),128))])])):L(``,!0),s.$slots[`card-editor-actions`]&&!En.value?(V(),g(`div`,Qs,[z(`span`,$s,e(O(_)(`editor.actionsLabel`)),1),z(`div`,ec,[B(s.$slots,`card-editor-actions`,{card:U.value.card,colId:U.value.colId,draft:{title:tt.value,markdown:nt.value}},void 0,!0)])])):L(``,!0),!n.readOnly&&!Gt.value?(V(),g(`div`,tc,[En.value?(V(),t(O(o),{key:0,label:O(_)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:u[51]||=e=>{Nn(U.value.card.id),Qt()}},null,8,[`label`])):(V(),t(O(o),{key:1,label:O(_)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:u[52]||=e=>Mn(U.value.colId,U.value.card.id)},null,8,[`label`])),m(O(o),{label:O(_)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:u[53]||=e=>Pn(U.value.colId,U.value.card.id)},null,8,[`label`])])):L(``,!0)])])):L(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),m(O(te),{visible:!!X.value,header:X.value?.file.name??``,modal:!0,"dismissable-mask":``,class:`kb-viewer-dialog`,style:{width:`min(1200px, 92vw)`,height:`88vh`},"onUpdate:visible":u[55]||=e=>{e||Zn()}},{footer:r(()=>[m(O(o),{label:O(_)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:Xn},null,8,[`label`]),m(O(o),{label:O(_)(`editor.close`),onClick:Zn},null,8,[`label`])]),default:r(()=>[X.value?(V(),g(`div`,ic,[X.value.kind===`image`?(V(),g(`img`,{key:0,src:X.value.url,alt:X.value.file.name,class:`kb-viewer__image`},null,8,ac)):X.value.kind===`pdf`?(V(),g(`iframe`,{key:1,src:X.value.url,title:X.value.file.name,class:`kb-viewer__frame`},null,8,oc)):X.value.kind===`video`?(V(),g(`video`,{key:2,src:X.value.url,controls:``,class:`kb-viewer__media`},null,8,sc)):X.value.kind===`audio`?(V(),g(`audio`,{key:3,src:X.value.url,controls:``,class:`kb-viewer__audio`},null,8,cc)):X.value.office?.mode===`sheet`?(V(),g(`div`,lc,[X.value.office.sheets.length>1?(V(),g(`div`,uc,[(V(!0),g(S,null,N(X.value.office.sheets,(t,n)=>(V(),g(`button`,{key:t.name+n,class:a([`kb-viewer__tab`,{"kb-viewer__tab--active":n===Wn.value}]),onClick:e=>Wn.value=n},e(t.name),11,dc))),128))])):L(``,!0),z(`div`,fc,[Gn.value&&Gn.value.rows.length?(V(),g(`table`,pc,[z(`thead`,null,[z(`tr`,null,[(V(!0),g(S,null,N(Gn.value.rows[0],(t,n)=>(V(),g(`th`,{key:n},e(t),1))),128))])]),z(`tbody`,null,[(V(!0),g(S,null,N(Gn.value.rows.slice(1),(t,n)=>(V(),g(`tr`,{key:n},[(V(!0),g(S,null,N(t,(t,n)=>(V(),g(`td`,{key:n},e(t),1))),128))]))),128))])])):(V(),g(`p`,mc,e(O(_)(`editor.viewerEmpty`)),1))])])):X.value.office?.mode===`blocks`?(V(),g(`div`,hc,[z(`div`,gc,[(V(!0),g(S,null,N(X.value.office.blocks,(t,n)=>(V(),g(S,{key:n},[t.type===`heading`&&t.level===1?(V(),g(`h1`,_c,e(t.text),1)):t.type===`heading`&&t.level===2?(V(),g(`h2`,vc,e(t.text),1)):t.type===`heading`?(V(),g(`h3`,yc,e(t.text),1)):t.type===`list`?(V(),g(`li`,bc,e(t.text),1)):t.type===`table`?(V(),g(`table`,xc,[z(`tbody`,null,[(V(!0),g(S,null,N(t.rows,(t,n)=>(V(),g(`tr`,{key:n},[(V(!0),g(S,null,N(t,(t,n)=>(V(),g(`td`,{key:n},e(t),1))),128))]))),128))])])):(V(),g(`p`,Sc,e(t.text),1))],64))),128)),X.value.office.blocks.length?L(``,!0):(V(),g(`p`,Cc,e(O(_)(`editor.viewerEmpty`)),1))])])):X.value.office?.mode===`slides`?(V(),g(`div`,wc,[z(`div`,Tc,[(V(!0),g(S,null,N(X.value.office.slides,(t,n)=>(V(),g(`section`,{key:n,class:`kb-viewer__slide`},[z(`span`,Ec,e(n+1),1),t.title?(V(),g(`h3`,Dc,e(t.title),1)):L(``,!0),(V(!0),g(S,null,N(t.lines,(t,n)=>(V(),g(`p`,{key:n},e(t),1))),128))]))),128))])])):X.value.office?.mode===`render`?(V(),g(`div`,Oc,[qn.value?(V(),g(`p`,kc,e(O(_)(`editor.viewerFailed`)),1)):L(``,!0),H(z(`div`,{ref_key:`renderHost`,ref:Kn,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[Ee,!qn.value]])])):(V(),g(`pre`,Ac,e(X.value.text),1)),X.value.office&&X.value.office.mode!==`render`&&X.value.office.truncated?(V(),g(`p`,jc,[u[108]||=z(`i`,{class:`pi pi-exclamation-triangle`},null,-1),l(` `+e(O(_)(`editor.viewerTruncated`)),1)])):L(``,!0)])):L(``,!0)]),_:1},8,[`visible`,`header`]),m(O(se),{ref_key:`colMenu`,ref:Ir,onHide:u[59]||=e=>Lr.value=null},{default:r(()=>[Lr.value?(V(),g(`div`,Mc,[z(`div`,Nc,[B(s.$slots,`column-actions`,{column:Lr.value},void 0,!0)]),_r.value?(V(),g(`button`,{key:0,class:`kb-colmenu__item`,onClick:u[56]||=e=>zr(Vr)},[u[109]||=z(`i`,{class:`pi pi-bell`},null,-1),z(`span`,null,e(Dr(Lr.value.id)?O(_)(`column.unsubscribe`):O(_)(`column.subscribe`)),1)])):L(``,!0),z(`button`,{class:`kb-colmenu__item`,onClick:u[57]||=e=>zr(Jc)},[u[110]||=z(`i`,{class:`pi pi-angle-double-left`},null,-1),z(`span`,null,e(O(_)(`column.collapse`)),1)]),n.readOnly?L(``,!0):(V(),g(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:u[58]||=e=>zr($e)},[u[111]||=z(`i`,{class:`pi pi-trash`},null,-1),z(`span`,null,e(O(_)(`column.deleteTooltip`)),1)]))])):L(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-5aa00b74`]]),Uc={class:`kanban-list-page`},Wc={class:`page-header`},Gc={class:`page-header__right`},Kc={class:`list-menu`},qc={key:0,class:`empty-state`},Jc={class:`board-grid`},Yc={class:`board-counts`},Xc={class:`board-count`},Zc={class:`board-count board-count--cards`},Qc={key:0,class:`board-desc`},$c={key:0,class:`empty-state`},el={class:`board-grid`},tl={key:0,class:`board-desc`},nl={key:0,class:`dialog-field`},rl={for:`kanlist-new-template`},il={key:0,class:`field-hint`},al={class:`dialog-field`},ol={for:`kanlist-new-name`},sl={class:`dialog-field`},cl={for:`kanlist-new-desc`},ll={class:`dialog-field`},ul={for:`kanlist-new-instructions`},dl={class:`field-hint`},fl={class:`dialog-field`},pl={for:`kanlist-edit-name`},ml={class:`dialog-field`},hl={for:`kanlist-edit-desc`},gl={class:`dialog-field`},_l={for:`kanlist-edit-instructions`},vl={class:`field-hint`},yl={class:`templates-intro`},bl={key:0,class:`empty-state`},xl={key:1,class:`template-list`},Sl={class:`template-row__name`},Cl={class:`hint`},$={key:0,class:`template-row__actions`},wl={class:`dialog-field`},Tl={for:`kanlist-tpl-name`},El={class:`dialog-field`},Dl={for:`kanlist-tpl-content`},Ol={class:`hint`},kl={class:`templates-intro`},Al={key:0,class:`empty-state`},jl={key:1,class:`template-list`},Ml={class:`template-row__name`},Nl={key:0,class:`template-row__actions`},Pl=E(Ne({__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(n,{emit:s}){let c=n,u=s,d=ce(),f=c.t;function p(e){u(`templates-needed`),e()}let h=T(!1),_=T(``),y=T(``),ee=T(``),b=T(null),C=T(null),w=T(``);function E(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let D=v(()=>{let e=E(w.value.trim());return e?c.boards.filter(t=>E(t.name).includes(e)||E(t.description??``).includes(e)):c.boards}),ne=v(()=>D.value.filter(e=>!e.archived)),k=v(()=>D.value.filter(e=>e.archived)),A=v(()=>w.value.trim().length>0),re=v(()=>c.boardsLimit!==null&&c.boards.length>=c.boardsLimit),ie=v(()=>!c.readOnly&&!re.value);function ae(e){let t=(c.boardTemplates??[]).find(t=>t.id===e);t&&(_.value.trim()||(_.value=t.name),ee.value=t.instructions)}let j=v(()=>(c.boardTemplates??[]).find(e=>e.id===C.value)??null);function M(){!ie.value||!_.value.trim()||(u(`create`,{name:_.value.trim(),description:y.value.trim(),instructions:ee.value.trim(),...j.value?.columns.length?{columns:j.value.columns}:{},...j.value?.columnGroups?.length?{columnGroups:j.value.columnGroups}:{}}),h.value=!1,_.value=``,y.value=``,ee.value=``,C.value=null)}function ue(){b.value&&=(u(`update`,{...b.value}),null)}let F=T(!1),I=T(null);function R(){I.value={id:null,name:``,content:``}}function pe(e){I.value={id:e.id,name:e.name,content:e.content}}function he(){let e=I.value;if(!e||!e.name.trim())return;let t={name:e.name.trim(),content:e.content};e.id?u(`template-update`,{id:e.id,...t}):u(`template-create`,t),I.value=null}function ge(e){d.require({message:f(`templates.confirmDeleteMessage`,{name:e.name}),header:f(`templates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>u(`template-delete`,e.id)})}let _e=T(!1);function ve(e){d.require({message:f(`boardTemplates.confirmDeleteMessage`,{name:e.name}),header:f(`boardTemplates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>u(`board-template-delete`,e.id)})}let ye=T(null);function be(e){ye.value?.hide(),e()}function xe(e,t){d.require({message:f(`dialogs.confirmDeleteMessage`,{name:t}),header:f(`dialogs.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>u(`delete`,e)})}return(s,c)=>{let d=le(`tooltip`);return V(),g(`div`,Uc,[z(`div`,Wc,[z(`h1`,null,e(O(f)(`title`)),1),z(`span`,Gc,[m(O(de),null,{default:r(()=>[m(O(P),{class:`pi pi-search`}),m(O(oe),{modelValue:w.value,"onUpdate:modelValue":c[0]||=e=>w.value=e,placeholder:O(f)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),n.boardsLimit===null?L(``,!0):(V(),g(`span`,{key:0,class:a([`quota`,{"quota--full":re.value}])},e(O(f)(`quota`,{used:n.boards.length,limit:n.boardsLimit})),3)),n.readOnly?L(``,!0):(V(),t(O(o),{key:1,label:O(f)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:re.value,onClick:c[1]||=e=>p(()=>h.value=!0)},null,8,[`label`,`disabled`])),n.templates||n.boardTemplates?(V(),g(S,{key:2},[m(O(o),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:O(f)(`menu`),"aria-label":O(f)(`menu`),onClick:c[2]||=e=>ye.value?.toggle(e)},null,8,[`title`,`aria-label`]),m(O(se),{ref_key:`listMenu`,ref:ye},{default:r(()=>[z(`div`,Kc,[n.templates?(V(),g(`button`,{key:0,class:`list-menu__item`,onClick:c[3]||=e=>be(()=>p(()=>F.value=!0))},[c[27]||=z(`i`,{class:`pi pi-file-edit`},null,-1),z(`span`,null,e(O(f)(`templates.manage`)),1)])):L(``,!0),n.boardTemplates?(V(),g(`button`,{key:1,class:`list-menu__item`,onClick:c[4]||=e=>be(()=>_e.value=!0)},[c[28]||=z(`i`,{class:`pi pi-bookmark`},null,-1),z(`span`,null,e(O(f)(`boardTemplates.manage`)),1)])):L(``,!0)])]),_:1},512)],64)):L(``,!0)])]),B(s.$slots,`banner`,{},void 0,!0),m(O(He),{value:`active`},{default:r(()=>[m(O(Be),null,{default:r(()=>[m(O(Ue),{value:`active`},{default:r(()=>[l(e(O(f)(`tabs.active`)),1)]),_:1}),m(O(Ue),{value:`archived`},{default:r(()=>[l(e(O(f)(`tabs.archived`,{count:k.value.length})),1)]),_:1})]),_:1}),m(O(Ve),null,{default:r(()=>[m(O(We),{value:`active`},{default:r(()=>[ne.value.length===0?(V(),g(`div`,qc,e(A.value?O(f)(`noResults`,{query:w.value.trim()}):O(f)(`empty`)),1)):L(``,!0),z(`div`,Jc,[(V(!0),g(S,null,N(ne.value,a=>(V(),t(O(Le),{key:a.id,class:`board-card`,onClick:e=>u(`open`,a.id)},{title:r(()=>[l(e(a.name),1)]),subtitle:r(()=>[z(`span`,Yc,[z(`span`,Xc,[c[29]||=z(`i`,{class:`pi pi-list`},null,-1),l(e(O(f)(`columns`,{count:a.columnCount})),1)]),z(`span`,Zc,[c[30]||=z(`i`,{class:`pi pi-clone`},null,-1),l(e(O(f)(`cards`,{count:a.cardCount})),1)])])]),content:r(()=>[a.description?(V(),g(`p`,Qc,e(a.description),1)):L(``,!0)]),footer:r(()=>[n.readOnly?L(``,!0):(V(),g(`div`,{key:0,class:`board-actions`,onClick:c[5]||=i(()=>{},[`stop`])},[m(O(o),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>b.value={id:a.id,name:a.name,description:a.description,instructions:a.instructions??``}},null,8,[`onClick`]),H(m(O(o),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>u(`archive`,{id:a.id,archived:!0})},null,8,[`onClick`]),[[d,O(f)(`archive`)]]),m(O(o),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>xe(a.id,a.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),m(O(We),{value:`archived`},{default:r(()=>[k.value.length===0?(V(),g(`div`,$c,e(A.value?O(f)(`noResults`,{query:w.value.trim()}):O(f)(`archivedEmpty`)),1)):L(``,!0),z(`div`,el,[(V(!0),g(S,null,N(k.value,a=>(V(),t(O(Le),{key:a.id,class:`board-card archived`,onClick:e=>u(`open`,a.id)},{title:r(()=>[l(e(a.name),1)]),content:r(()=>[a.description?(V(),g(`p`,tl,e(a.description),1)):L(``,!0)]),footer:r(()=>[n.readOnly?L(``,!0):(V(),g(`div`,{key:0,class:`board-actions`,onClick:c[6]||=i(()=>{},[`stop`])},[m(O(o),{label:O(f)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>u(`archive`,{id:a.id,archived:!1})},null,8,[`label`,`onClick`]),m(O(o),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>xe(a.id,a.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),m(O(te),{visible:h.value,"onUpdate:visible":c[13]||=e=>h.value=e,header:O(f)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:r(()=>[m(O(o),{label:O(f)(`cancel`),text:``,onClick:c[12]||=e=>h.value=!1},null,8,[`label`]),m(O(o),{label:O(f)(`create`),icon:`pi pi-check`,disabled:!_.value.trim(),onClick:M},null,8,[`label`,`disabled`])]),default:r(()=>[n.boardTemplates?.length?(V(),g(`div`,nl,[z(`label`,rl,e(O(f)(`boardTemplates.pickLabel`)),1),m(O(me),{id:`kanlist-new-template`,modelValue:C.value,"onUpdate:modelValue":c[7]||=e=>C.value=e,options:n.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:O(f)(`boardTemplates.pickPlaceholder`),onChange:c[8]||=e=>ae(C.value)},null,8,[`modelValue`,`options`,`placeholder`]),j.value?(V(),g(`small`,il,e(O(f)(`boardTemplates.pickHint`,{columns:j.value.columns.map(e=>e.title).join(`, `)||O(f)(`boardTemplates.noColumns`)})),1)):L(``,!0)])):L(``,!0),z(`div`,al,[z(`label`,ol,e(O(f)(`nameLabel`)),1),m(O(oe),{id:`kanlist-new-name`,modelValue:_.value,"onUpdate:modelValue":c[9]||=e=>_.value=e,autofocus:``,class:`w-full`,onKeyup:x(M,[`enter`])},null,8,[`modelValue`])]),z(`div`,sl,[z(`label`,cl,e(O(f)(`descriptionLabel`)),1),m(O(fe),{id:`kanlist-new-desc`,modelValue:y.value,"onUpdate:modelValue":c[10]||=e=>y.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),z(`div`,ll,[z(`label`,ul,e(O(f)(`instructionsLabel`)),1),m(O(fe),{id:`kanlist-new-instructions`,modelValue:ee.value,"onUpdate:modelValue":c[11]||=e=>ee.value=e,rows:`6`,class:`w-full`,placeholder:O(f)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),z(`small`,dl,e(O(f)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),m(O(te),{visible:!!b.value,header:O(f)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":c[18]||=e=>{e||(b.value=null)}},{footer:r(()=>[m(O(o),{label:O(f)(`cancel`),text:``,onClick:c[17]||=e=>b.value=null},null,8,[`label`]),m(O(o),{label:O(f)(`save`),icon:`pi pi-check`,onClick:ue},null,8,[`label`])]),default:r(()=>[b.value?(V(),g(S,{key:0},[z(`div`,fl,[z(`label`,pl,e(O(f)(`nameLabel`)),1),m(O(oe),{id:`kanlist-edit-name`,modelValue:b.value.name,"onUpdate:modelValue":c[14]||=e=>b.value.name=e,class:`w-full`,onKeyup:x(ue,[`enter`])},null,8,[`modelValue`])]),z(`div`,ml,[z(`label`,hl,e(O(f)(`descriptionLabel`)),1),m(O(fe),{id:`kanlist-edit-desc`,modelValue:b.value.description,"onUpdate:modelValue":c[15]||=e=>b.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),z(`div`,gl,[z(`label`,_l,e(O(f)(`instructionsLabel`)),1),m(O(fe),{id:`kanlist-edit-instructions`,modelValue:b.value.instructions,"onUpdate:modelValue":c[16]||=e=>b.value.instructions=e,rows:`8`,class:`w-full`,placeholder:O(f)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),z(`small`,vl,e(O(f)(`instructionsHint`)),1)])],64)):L(``,!0)]),_:1},8,[`visible`,`header`]),m(O(te),{visible:_e.value,"onUpdate:visible":c[20]||=e=>_e.value=e,header:O(f)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:r(()=>[m(O(o),{label:O(f)(`close`),text:``,onClick:c[19]||=e=>_e.value=!1},null,8,[`label`])]),default:r(()=>[z(`p`,yl,e(O(f)(`boardTemplates.intro`)),1),!n.boardTemplates||n.boardTemplates.length===0?(V(),g(`div`,bl,e(O(f)(`boardTemplates.empty`)),1)):(V(),g(`ul`,xl,[(V(!0),g(S,null,N(n.boardTemplates,t=>(V(),g(`li`,{key:t.id,class:`template-row`},[z(`span`,Sl,[l(e(t.name)+` `,1),z(`small`,Cl,e(t.columns.map(e=>e.title).join(` · `)||O(f)(`boardTemplates.noColumns`)),1)]),n.readOnly?L(``,!0):(V(),g(`span`,$,[m(O(o),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ve(t)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),m(O(te),{visible:F.value,"onUpdate:visible":[c[25]||=e=>F.value=e,c[26]||=e=>{e||(I.value=null)}],header:O(f)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:r(()=>[I.value?(V(),g(S,{key:0},[m(O(o),{label:O(f)(`cancel`),text:``,onClick:c[23]||=e=>I.value=null},null,8,[`label`]),m(O(o),{label:O(f)(`save`),icon:`pi pi-check`,disabled:!I.value.name.trim(),onClick:he},null,8,[`label`,`disabled`])],64)):(V(),g(S,{key:1},[n.readOnly?L(``,!0):(V(),t(O(o),{key:0,label:O(f)(`templates.new`),icon:`pi pi-plus`,onClick:R},null,8,[`label`])),m(O(o),{label:O(f)(`close`),text:``,onClick:c[24]||=e=>F.value=!1},null,8,[`label`])],64))]),default:r(()=>[I.value?(V(),g(S,{key:0},[z(`div`,wl,[z(`label`,Tl,e(O(f)(`templates.nameLabel`)),1),m(O(oe),{id:`kanlist-tpl-name`,modelValue:I.value.name,"onUpdate:modelValue":c[21]||=e=>I.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),z(`div`,El,[z(`label`,Dl,e(O(f)(`templates.contentLabel`)),1),m(O(Ke),{id:`kanlist-tpl-content`,modelValue:I.value.content,"onUpdate:modelValue":c[22]||=e=>I.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:O(f)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),z(`small`,Ol,e(O(f)(`templates.contentHint`)),1)])],64)):(V(),g(S,{key:1},[z(`p`,kl,e(O(f)(`templates.intro`)),1),!n.templates||n.templates.length===0?(V(),g(`div`,Al,e(O(f)(`templates.empty`)),1)):(V(),g(`ul`,jl,[(V(!0),g(S,null,N(n.templates,t=>(V(),g(`li`,{key:t.id,class:`template-row`},[z(`span`,Ml,e(t.name),1),n.readOnly?L(``,!0):(V(),g(`span`,Nl,[m(O(o),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>pe(t)},null,8,[`onClick`]),m(O(o),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ge(t)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-6ce88365`]]);export{Hc as n,Pl as t};
|