@runeya/runeya 2.0.99 → 2.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
- package/{src-7C7JLNBE.js → src-PF23DMAB.js} +11 -6
- package/src-PF23DMAB.js.map +1 -0
- package/web/assets/AgentScalarChatInterface.vue-CpCuXAXu.js +13 -0
- package/web/assets/AgentTerminalPage-D8nMHtlG.js +1 -0
- package/web/assets/AiChatPage-C1FbL-Tb.js +1 -0
- package/web/assets/{AppLayout-DEJw20nu.css → AppLayout-DeWqCLuK.css} +1 -1
- package/web/assets/AppLayout-Dq-1shm9.js +1 -0
- package/web/assets/AuditPage-BjeeYf1P.js +1 -0
- package/web/assets/CloudAccountPage-BWcXUmZ3.js +1 -0
- package/web/assets/CloudAccountPage-CsNnjZQN.js +1 -0
- package/web/assets/CloudMessagingPage-CN-Hkvzf.js +2 -0
- package/web/assets/CloudMessagingPage-Dl7hHYeb.css +1 -0
- package/web/assets/DashboardPage-30yBzA9Y.js +1 -0
- package/web/assets/DirectoryPickerDialog-BsYJrTG4.js +1 -0
- package/web/assets/{EditorIcon-C_aOVJRt.js → EditorIcon-BXS2-yX1.js} +2 -2
- package/web/assets/{EnvironmentForm-BkapwtPM.js → EnvironmentForm--y9zfCDt.js} +2 -2
- package/web/assets/EnvironmentFormPage-BETc1RGi.js +1 -0
- package/web/assets/EnvironmentListPage-CC0Sj1bx.js +1 -0
- package/web/assets/KanbanBoardPage-BOVq3zOt.css +1 -0
- package/web/assets/KanbanBoardPage-BdM0Op1M.js +4 -0
- package/web/assets/KanbanListPage-C5rbZ1eL.css +1 -0
- package/web/assets/KanbanListPage-DM7RJqhx.js +1 -0
- package/web/assets/LaunchProjectPage-DXqYYycZ.js +1 -0
- package/web/assets/LaunchServicesPage-DCgwv5Pt.js +1 -0
- package/web/assets/LogViewer-CFSU-CNC.js +3 -0
- package/web/assets/{LogViewer-CS9CtzUm.css → LogViewer-M8xr8e4H.css} +1 -1
- package/web/assets/OrgKeyPrompt-DQGyKSjb.js +1 -0
- package/web/assets/ProcessControls-98bxX4aW.js +1 -0
- package/web/assets/ProcessDetailPage-Bb_3RScY.js +1 -0
- package/web/assets/{ProcessMetrics-bcJ_kHKZ.js → ProcessMetrics-fCxhXJgd.js} +2 -2
- package/web/assets/ProjectDetailPage-BNmbecE0.js +1 -0
- package/web/assets/ProjectListPage-v0JqfkPz.js +1 -0
- package/web/assets/RandomJobTestPage-D8q-EREO.js +2 -0
- package/web/assets/ScenarioEditorPage-D3EuMMBn.js +14 -0
- package/web/assets/SendToChatDialog-D-x5Pn3F.js +1 -0
- package/web/assets/ServiceControlsBar-7zKkkVxM.js +1 -0
- package/web/assets/ServiceDetailPage-jzYoqD5E.js +2 -0
- package/web/assets/ServiceFormPage-DjvOpPyE.js +1 -0
- package/web/assets/{SettingsPage-GKnTN75s.css → SettingsPage-C-OfBHjn.css} +1 -1
- package/web/assets/SettingsPage-DKCbzYvF.js +2063 -0
- package/web/assets/UnlockPage-Cb43bz4p.js +1 -0
- package/web/assets/VariablesTable-C3syeLAl.js +1 -0
- package/web/assets/VaultMigrationPage-Cp-au3d7.js +1 -0
- package/web/assets/VersionBadge-CXX3tlKI.js +1 -0
- package/web/assets/WikiPage-D1at3ltm.js +1 -0
- package/web/assets/WikiView-ClZwZbal.js +1 -0
- package/web/assets/{add-scalar-classes-D7X53yAR.js → add-scalar-classes-D3kr5_fn.js} +26 -26
- package/web/assets/{autocomplete-DWWjDeP2.js → autocomplete-AALxfd-8.js} +3 -3
- package/web/assets/{basic-shape-diamond.svg-giVc-mOc.js → basic-shape-diamond.svg-C4c3Deqh.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-Cs0yG19E.js → basic-shape-hexagon.svg-DrH21BpW.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-CzxM3e1f.js → basic-shape-primary-circle-ellipse-round.svg-DqIU3Cmf.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-C95cJI4d.js → basic-shape-primary-square-rectangle.svg-B3gDug6x.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-wTCwdnRC.js → basic-shape-shield.svg-DdNJhKim.js} +1 -1
- package/web/assets/{browser-KodijhgE.js → browser-DlwaOVwW.js} +1 -1
- package/web/assets/{browser-CZciy3st.js → browser-IqQiUipW.js} +1 -1
- package/web/assets/card-q6s0jc6V.js +32 -0
- package/web/assets/{checkbox-DEAMlJft.js → checkbox-BP6nucdt.js} +3 -3
- package/web/assets/{chip-uE963n-s.js → chip-zQCMXVbm.js} +2 -2
- package/web/assets/client-BC-o8Mr9.js +24 -0
- package/web/assets/cloud-chat.store-387arRb5.js +1 -0
- package/web/assets/cloud-session-yejC3TfS.js +1 -0
- package/web/assets/column-ClizzdF5.js +907 -0
- package/web/assets/{computer-device-desktop-monitor.svg-BylgGK07.js → computer-device-desktop-monitor.svg-D28gfKH3.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-qoXFyQry.js → computer-device-desktop.svg-BierhytR.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-DWcxSkHU.js → computer-device-laptop.svg-Buh46ofO.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-nyGcK2AV.js → computer-device-mobile-phone-android-samsung-back.svg-DWgP259U.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-B-B9DnnD.js → computer-device-mobile-phone-android-samsung.svg-BlulLqG-.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-D1xWmS-2.js → computer-device-mobile-phone-iphone-x-back.svg-CwAgL_XU.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-BG31euIf.js → computer-device-mobile-phone-iphone-x.svg-CGZk25hI.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-CA9G0U0-.js → computer-device-mobile-tablet-touch.svg-BW41ZuCA.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-CRxAMxXj.js → computer-device-mobile-tablet.svg-BXG04cxV.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-Kr3zCE41.js → computer-device-network-ethernet-cat6.svg-BKUwbZI3.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-CPLhhOUs.js → computer-device-network-lan-www.svg-o3B9PLqQ.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-ClRAdq1j.js → computer-device-network-wifi-connection.svg-CWz616VA.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-_8aeHm8n.js → computer-device-network-wifi-router.svg-C_Uxv8x_.js} +1 -1
- package/web/assets/{cssMode-CbB-baIv.js → cssMode-trDHQWjr.js} +1 -1
- package/web/assets/{divider-B6_1Ju2t.js → divider-ER7evOrG.js} +2 -2
- package/web/assets/{docx-preview-DeKYOymU.js → docx-preview-DaBMrB0t.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-CvdMWoub.js → ecology-science-erlenmeyer-flask.svg-TilKtHh2.js} +1 -1
- package/web/assets/{fieldset-DTWlcVOh.js → fieldset-BK4Kpi7y.js} +2 -2
- package/web/assets/{freemarker2-HU2-ude_.js → freemarker2-CPBy2gHY.js} +1 -1
- package/web/assets/{handlebars-DEfTSnH3.js → handlebars-sFv_MRko.js} +1 -1
- package/web/assets/{html-DJwlf-_0.js → html-CvDf5B_n.js} +1 -1
- package/web/assets/{htmlMode-B_2W_FNG.js → htmlMode-CKhs4g6W.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-DxDmYt-K.js → image-flash-lightning.svg-CkgasY6E.js} +1 -1
- package/web/assets/{image-picture-flower.svg-B2ysY7Ez.js → image-picture-flower.svg-Csk-7jkE.js} +1 -1
- package/web/assets/{index-C0Lt6sdY.css → index-BmdsyJ54.css} +1 -1
- package/web/assets/{index-BqL8zZUd.js → index-CdghDQiK.js} +281 -281
- package/web/assets/{interface-alert-exclamation-diamond.svg-Cy-q0PPD.js → interface-alert-exclamation-diamond.svg-rH1JAriw.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-5GTUkGyl.js → interface-alert-exclamation-triangle-warning.svg-BuZLBc2z.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-CULAFRLG.js → interface-alert-information-circle.svg-D6i0hGVN.js} +1 -1
- package/web/assets/{interface-award-crown.svg-IfA0R219.js → interface-award-crown.svg-7Wu9-VKO.js} +1 -1
- package/web/assets/{interface-bookmark.svg-B6DP-eOU.js → interface-bookmark-tag.svg-CPiMqQ77.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-CK7uh_UM.js → interface-bookmark.svg-CkLVcfT6.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-HeuC-uLL.js → interface-calendar-date-one.svg-CFSXAk1b.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-BbVGNhbo.js → interface-content-book-open-pages.svg-CC4c9Opt.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-TgiMUTDz.js → interface-content-book-page.svg-DxpVNOOq.js} +1 -1
- package/web/assets/{interface-content-file.svg-vBz32nix.js → interface-content-file.svg-CTaWk4im.js} +1 -1
- package/web/assets/interface-content-folder.svg-BYgaYshM.js +1 -0
- package/web/assets/{interface-content-folder.svg-Dh6i4WMj.js → interface-content-folder.svg-uVUoz9w-.js} +1 -1
- package/web/assets/{interface-copy-clipboard.svg-D5iacSkg.js → interface-copy-clipboard.svg-BZIxAN3r.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-BuDlvGLW.js → interface-edit-attachment.svg-DDzPxeNm.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-CkRvNsTG.js → interface-edit-binocular.svg-CZsgbA--.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-U2D8Txx_.js → interface-edit-magic-wand.svg-qmz7k4l6.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-B1tbUZdf.js → interface-edit-tool-paint-roller.svg-DWE25KT2.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-DSu15aW1.js → interface-edit-tool-pencil.svg-DpK1C2tO.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-BVkYy4-X.js → interface-favorite-award.svg-CLHMWnh1.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-DH2kZwOe.js → interface-favorite-flag.svg-CHGIAa-e.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-CSiLFjiO.js → interface-favorite-heart.svg-ymL9Qidy.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-3MpBVvJ5.js → interface-favorite-star.svg-C4JDKdUr.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-Do5o_8CI.js → interface-favorite-stars-sparkles.svg-DRixMNWJ.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-B1-j3kUD.js → interface-hierarchy-flowchart.svg-DozpERYh.js} +1 -1
- package/web/assets/{interface-home-house.svg-D1HguPAL.js → interface-home-house.svg-DpUEVY7I.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-DqPngT30.js → interface-hyperlink.svg-BI9P67ny.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-DClYpH8v.js → interface-lighting-brightness.svg-B6WWS4kG.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-DDnsn-BI.js → interface-lock-closed.svg-BBQ9XM_j.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-uL6o62w3.js → interface-lock-open-unlock.svg-GkTO8GmV.js} +1 -1
- package/web/assets/{interface-login-key.svg-e73NKVRd.js → interface-login-key.svg--v2ZJH3Q.js} +1 -1
- package/web/assets/{interface-search.svg-DpkvQinQ.js → interface-search.svg-CidqkApV.js} +1 -1
- package/web/assets/{interface-setting-cog.svg---AIvweU.js → interface-setting-cog.svg-DVZePAV3.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-D2badk6M.js → interface-share-megaphone-bullhorn.svg-BFn_RMqc.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-6B06C_7X.js → interface-share-rocket.svg-BvWSz0s2.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-P0R4jbH7.js → interface-share-satellite.svg-tqNCB74Z.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-CPc2Kr86.js → interface-share-space-ship.svg-BmB824fS.js} +1 -1
- package/web/assets/{interface-share.svg-DNGRMU5_.js → interface-share.svg-CBZLrrF9.js} +1 -1
- package/web/assets/{interface-signal-square.svg-BnGGCn_I.js → interface-signal-square.svg-C088p9NZ.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-DSq7D7IE.js → interface-time-clock-circle.svg-DubKvXWQ.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-C3xRi1SV.js → interface-time-hour-glass.svg-6GComyAL.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-CPVqJeNN.js → interface-users-multiple.svg-ja6OEhK_.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-BZFQlmJ8.js → interface-weather-moon.svg-BnfLL03K.js} +1 -1
- package/web/assets/{javascript-hGBVLh1i.js → javascript-DMRS72rt.js} +1 -1
- package/web/assets/{jsonMode-DlGxKO4o.js → jsonMode--8QdTWx_.js} +1 -1
- package/web/assets/{liquid-CHZa4fn-.js → liquid-OaGt-c-G.js} +1 -1
- package/web/assets/{lspLanguageFeatures-B3XS0Aab.js → lspLanguageFeatures-B6AaNVcR.js} +1 -1
- package/web/assets/{mail-chat-bubble-square.svg-B-m_8Ftp.js → mail-chat-bubble-square.svg-D0WUmEWq.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-pdfuG_gi.js → mail-send-email-paper-airplane.svg--9oR8FgG.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-BbRGrHIB.js → mail-send-envelope.svg-D7zYusS0.js} +1 -1
- package/web/assets/{mdx-O6Bp6Wm_.js → mdx-ChDcRRYd.js} +1 -1
- package/web/assets/{minus-9fOaQxxR.js → minus-lcNwQ3xr.js} +2 -2
- package/web/assets/modal-4qFfZ_TY.js +1 -0
- package/web/assets/modal-TVJrDDCj.js +5 -0
- package/web/assets/{money-cashier-receipt.svg-B5w6NN65.js → money-cashier-receipt.svg-DzX-iwUT.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-CvB1o8rf.js → money-currency-dollar-pay.svg-BFX_YTDc.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-CBF_1ZI5.js → money-graph-arrow-increase.svg-C16MfYnR.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-Da_V0hyb.js → money-graph-bar-chart-increase.svg-BGG0yv-f.js} +1 -1
- package/web/assets/multiselect-DcAoSG6S.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-BcpJmi4O.js → nature-ecology-leaf.svg-DiIaC6NX.js} +1 -1
- package/web/assets/{password-C0iEyf8i.js → password-BZlCIV8S.js} +4 -4
- package/web/assets/{phone-telephone.svg-DX3q6G6y.js → phone-telephone.svg-udmmRh0q.js} +1 -1
- package/web/assets/{plus-BYi81Tr8.js → plus-CwmVHUki.js} +6 -6
- package/web/assets/process.store-C8qfdRYx.js +1 -0
- package/web/assets/{programming-bug.svg-BehKMs-E.js → programming-bug.svg-xc1RtL3c.js} +1 -1
- package/web/assets/{programming-cloud.svg-B61GYVre.js → programming-cloud.svg-axQALbJB.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-3DGUioUy.js → programming-computer-database-server.svg-BVTqxH42.js} +1 -1
- package/web/assets/{programming-computer-database.svg-wQpWxR3M.js → programming-computer-database.svg-B-CECn7V.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-DzgTiLIk.js → programming-module-four-layout.svg-icO9mDmE.js} +1 -1
- package/web/assets/{programming-module-three.svg-M0DCgTjN.js → programming-module-three.svg-D2zllUcw.js} +1 -1
- package/web/assets/{programming-module.svg-BOC6URSy.js → programming-module.svg-gs4eO8gC.js} +1 -1
- package/web/assets/{programming-script-code.svg-C3xFaN0l.js → programming-script-code.svg-BGMrS9je.js} +1 -1
- package/web/assets/{python-eMHIZQyy.js → python-C1ZGhTnT.js} +1 -1
- package/web/assets/{razor-UJ0I37b5.js → razor-Dxwwpjwp.js} +1 -1
- package/web/assets/router-HZS_HREn.js +1 -0
- package/web/assets/settings-scope-DUmfNusx.js +1 -0
- package/web/assets/{settings.store-B3TGTzZS.js → settings.store-Da4jL17l.js} +1 -1
- package/web/assets/{shopping-cart.svg-6EFaCdBY.js → shopping-cart.svg-DajW_J8z.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-Ts4I3V_5.js → shopping-gift-present.svg-yAHWXZYl.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-C8_ozIk3.js → shopping-shipping-box-parcel-package.svg-BmpCCkbe.js} +1 -1
- package/web/assets/src-C-5koINO.js +1 -0
- package/web/assets/{src-wi7XOQt2.js → src-CabNenEM.js} +13 -13
- package/web/assets/src-LFVDgykP.js +572 -0
- package/web/assets/{tabpanel-CgfewHLu.js → tabpanel-D8XwziwN.js} +3 -3
- package/web/assets/{tag-new-circle.svg-DycuoP-e.js → tag-new-circle.svg-BHHc5iei.js} +1 -1
- package/web/assets/{toggleswitch-BRXSsqba.js → toggleswitch-CJCNFliH.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-B4NyICHP.js → travel-map-earth-globe.svg-CHj70cli.js} +1 -1
- package/web/assets/trpc-BeVJWlZK.js +1 -0
- package/web/assets/{tsMode-DBth4O86.js → tsMode-DHXchBsw.js} +1 -1
- package/web/assets/{typescript-Bh9YpsFc.js → typescript-BVTudzDT.js} +1 -1
- package/web/assets/useAiChatDrawer-CFqm3BZi.js +1 -0
- package/web/assets/useCloudOrg-BN-OgVim.js +1 -0
- package/web/assets/useProjectCatalog-sUfCxDEh.js +1 -0
- package/web/assets/useProjectCloudOrg-D1GcLai_.js +1 -0
- package/web/assets/{xml-D10bhlvQ.js → xml-5T1ybYUZ.js} +1 -1
- package/web/assets/{yaml-Dum5r-cT.js → yaml-w_H4D4RN.js} +1 -1
- package/web/index.html +2 -2
- package/src-7C7JLNBE.js.map +0 -1
- package/web/assets/AgentScalarChatInterface.vue-BCP4oQ-O.js +0 -13
- package/web/assets/AgentTerminalPage-C-Bu_ecg.js +0 -1
- package/web/assets/AiChatPage-CKSREmOR.js +0 -1
- package/web/assets/AppLayout-CVnZmwWH.js +0 -1
- package/web/assets/AuditPage-D2raGocK.js +0 -1
- package/web/assets/CloudAccountPage-0qN5ieof.js +0 -1
- package/web/assets/CloudAccountPage-CV9TTdVk.js +0 -1
- package/web/assets/CloudMessagingPage-CWD7RpQ-.js +0 -2
- package/web/assets/CloudMessagingPage-DWd3bv_1.css +0 -1
- package/web/assets/DashboardPage-EcAF6x0P.js +0 -1
- package/web/assets/DirectoryPickerDialog-BryfhQms.js +0 -1
- package/web/assets/EnvironmentFormPage-C7QAs1ce.js +0 -1
- package/web/assets/EnvironmentListPage-DMTEAlor.js +0 -1
- package/web/assets/KanbanBoardPage-BTvn4Oks.css +0 -1
- package/web/assets/KanbanBoardPage-CcEmdrkF.js +0 -4
- package/web/assets/KanbanListPage-BWJww5Sd.js +0 -1
- package/web/assets/KanbanListPage-Ch8OogmO.css +0 -1
- package/web/assets/LaunchProjectPage-DsPeoRJM.js +0 -1
- package/web/assets/LaunchServicesPage-sNv4eWh6.js +0 -1
- package/web/assets/LogViewer-BygMlrsG.js +0 -3
- package/web/assets/OrgKeyPrompt-Dtb1_S1G.js +0 -1
- package/web/assets/ProcessControls-B6jRjOvZ.js +0 -1
- package/web/assets/ProcessDetailPage-BWwJeqrL.js +0 -1
- package/web/assets/ProjectDetailPage-BypoDGXZ.js +0 -1
- package/web/assets/ProjectListPage-DY-cApny.js +0 -1
- package/web/assets/RandomJobTestPage-CG4yuPP3.js +0 -2
- package/web/assets/ScenarioEditorPage-C69LbLjs.js +0 -14
- package/web/assets/SendToChatDialog-YNumW3mj.js +0 -1
- package/web/assets/ServiceControlsBar-VIhGJ7dT.js +0 -1
- package/web/assets/ServiceDetailPage-BRfqo_ID.js +0 -2
- package/web/assets/ServiceFormPage-Dpv3X6KL.js +0 -1
- package/web/assets/SettingsPage-CjmyWBD9.js +0 -2063
- package/web/assets/UnlockPage-Cbfn2hXK.js +0 -1
- package/web/assets/VariablesTable-CX7XJfqO.js +0 -1
- package/web/assets/VaultMigrationPage-CoRr0xyn.js +0 -1
- package/web/assets/VersionBadge-CXCPlkLe.js +0 -1
- package/web/assets/WikiPage-CkcQJ2fE.js +0 -1
- package/web/assets/WikiView-DPGhKRAV.js +0 -1
- package/web/assets/auth-errors-DnpRNHod.js +0 -1
- package/web/assets/card-C25ChBpF.js +0 -32
- package/web/assets/client-je42aE2e.js +0 -24
- package/web/assets/cloud-chat.store-Zzg8ll0J.js +0 -1
- package/web/assets/cloud-session-BuCz6UQP.js +0 -1
- package/web/assets/column-Cms5SVPR.js +0 -907
- package/web/assets/interface-content-folder.svg-DWRLYbXv.js +0 -1
- package/web/assets/modal-BE3TL0KL.js +0 -1
- package/web/assets/modal-Djtbj5Rv.js +0 -5
- package/web/assets/multiselect-DDoSYwWj.js +0 -251
- package/web/assets/process.store-BpUWGSdq.js +0 -1
- package/web/assets/router-C1Ext_ri.js +0 -1
- package/web/assets/settings-scope-By7npmQf.js +0 -1
- package/web/assets/src-D1-b3cJF.js +0 -1
- package/web/assets/trpc-C4Crlf9C.js +0 -1
- package/web/assets/useAiChatDrawer-D7Vpm-Ax.js +0 -1
- package/web/assets/useCloudOrg-arsGRyWT.js +0 -572
- package/web/assets/useProjectCatalog-DcDvQvqC.js +0 -1
- /package/web/assets/{abap-Q7FyqTce.js → abap-BvxTqXT2.js} +0 -0
- /package/web/assets/{apex-DBNDq2a_.js → apex-CIPCCkBr.js} +0 -0
- /package/web/assets/{azcli-BHW8ozYN.js → azcli-Rs0NIwkA.js} +0 -0
- /package/web/assets/{bat-BL-_3Nfo.js → bat-BxAhM6gR.js} +0 -0
- /package/web/assets/{bicep-DR2vgumW.js → bicep-oV_ehPcG.js} +0 -0
- /package/web/assets/{browser-BOSK4iqQ.js → browser-DNbnH79q.js} +0 -0
- /package/web/assets/{cameligo-BCjoEAZU.js → cameligo-CJLaUyQs.js} +0 -0
- /package/web/assets/{clojure-zw1Irdul.js → clojure-CjvMureh.js} +0 -0
- /package/web/assets/{coffee-BdEjkiiW.js → coffee-motWC5XQ.js} +0 -0
- /package/web/assets/{cpp-DKUlBIAG.js → cpp-DiWIfYNM.js} +0 -0
- /package/web/assets/{csharp-BsNC4zVq.js → csharp-GBlGBeai.js} +0 -0
- /package/web/assets/{csp-X4Chv5_9.js → csp-tSyK5eO1.js} +0 -0
- /package/web/assets/{css-Dh0Dlycs.js → css-BkFK9HG_.js} +0 -0
- /package/web/assets/{cypher-BL_DRjGX.js → cypher-Bcp8PXr2.js} +0 -0
- /package/web/assets/{dart-DaM4j487.js → dart-uz9Rxe0M.js} +0 -0
- /package/web/assets/{dockerfile-Df5WJXAt.js → dockerfile-iJizx3Zp.js} +0 -0
- /package/web/assets/{ecl-BjUo3uTs.js → ecl-BalaS36Z.js} +0 -0
- /package/web/assets/{elixir-DrLHYSxt.js → elixir-D6CLrLGy.js} +0 -0
- /package/web/assets/{flow9-DKiuX7rg.js → flow9-CFt3-vVY.js} +0 -0
- /package/web/assets/{fsharp-CAN78557.js → fsharp-DGa7raxa.js} +0 -0
- /package/web/assets/{go-DGjr9vA5.js → go-wlqInk4z.js} +0 -0
- /package/web/assets/{graphql-CcoU3Cj2.js → graphql-CP1guigM.js} +0 -0
- /package/web/assets/{hcl-udfyCcTm.js → hcl-CK0UkKD0.js} +0 -0
- /package/web/assets/{ini-BVbXatjh.js → ini-Ch56nrUj.js} +0 -0
- /package/web/assets/{java-Drpmh61g.js → java-C9_WIayl.js} +0 -0
- /package/web/assets/{julia-asFGk-ZV.js → julia-Can2_mhR.js} +0 -0
- /package/web/assets/{kotlin-HmkKz1TT.js → kotlin-DUvGf_BX.js} +0 -0
- /package/web/assets/{less-C5i2m2Dn.js → less-DoTbG-rc.js} +0 -0
- /package/web/assets/{lexon-B3Xh2kL6.js → lexon-BFMO2_kL.js} +0 -0
- /package/web/assets/{lua-DnOtgOOu.js → lua-CC-QtBo7.js} +0 -0
- /package/web/assets/{m3-Brj4HNKq.js → m3-C51MyH5Q.js} +0 -0
- /package/web/assets/{markdown-C3-4Ntpz.js → markdown-CDwLHhgZ.js} +0 -0
- /package/web/assets/{mips-vFQKPHzn.js → mips-YuxZtPGU.js} +0 -0
- /package/web/assets/{msdax-D5MYLS2R.js → msdax-CJjWhmte.js} +0 -0
- /package/web/assets/{mysql-CRQHhUON.js → mysql-B1riwLaD.js} +0 -0
- /package/web/assets/{objective-c-8cZEp0HR.js → objective-c-drXT-gmc.js} +0 -0
- /package/web/assets/{pascal-BPn_2jro.js → pascal-KUYgrN-Z.js} +0 -0
- /package/web/assets/{pascaligo-L7QnU_8B.js → pascaligo-DQmQJP-r.js} +0 -0
- /package/web/assets/{perl-B9zSPnp3.js → perl-09XLBmCS.js} +0 -0
- /package/web/assets/{pgsql-DiRJukCJ.js → pgsql-BFj9IFFu.js} +0 -0
- /package/web/assets/{php-Dv4g8Lhr.js → php-UnC5BqwY.js} +0 -0
- /package/web/assets/{pla-CKAoz6vp.js → pla-BFuYrPHG.js} +0 -0
- /package/web/assets/{postiats-B_PYgUTS.js → postiats-n4ft3jnO.js} +0 -0
- /package/web/assets/{powerquery-CAagSyo-.js → powerquery-D-s-oFSc.js} +0 -0
- /package/web/assets/{powershell-Cj9BzLhS.js → powershell-CTboTf93.js} +0 -0
- /package/web/assets/{protobuf-DTRY4FFo.js → protobuf-Dt62GuJP.js} +0 -0
- /package/web/assets/{pug-qADGmCS8.js → pug-CEFWkUzw.js} +0 -0
- /package/web/assets/{qsharp-xkZT0ZOm.js → qsharp-B0DUmgPZ.js} +0 -0
- /package/web/assets/{r-C7wfNC2Z.js → r-BVnF0c4T.js} +0 -0
- /package/web/assets/{redis-BoccK80D.js → redis-DLl3KQXi.js} +0 -0
- /package/web/assets/{redshift-EL8PjTts.js → redshift-cif1I7h1.js} +0 -0
- /package/web/assets/{restructuredtext-CA6rgR7C.js → restructuredtext-PNfql36m.js} +0 -0
- /package/web/assets/{ruby-BymrInur.js → ruby-j3jxDjUN.js} +0 -0
- /package/web/assets/{rust-BTbPL-fg.js → rust-BaIO-mAt.js} +0 -0
- /package/web/assets/{sb-BTkOICcb.js → sb-D8XNVNUQ.js} +0 -0
- /package/web/assets/{scala-CzaUHeQF.js → scala-DiK9Ps90.js} +0 -0
- /package/web/assets/{scheme-DZe2DRuY.js → scheme-DPKqXHmF.js} +0 -0
- /package/web/assets/{scss-D5oFt9cg.js → scss-DpMwfP2H.js} +0 -0
- /package/web/assets/{shell-DCkIF5jZ.js → shell-Dw9mKVg2.js} +0 -0
- /package/web/assets/{solidity-CfOO4gXi.js → solidity-DTxo-7fe.js} +0 -0
- /package/web/assets/{sophia-0-sROOHR.js → sophia-BjA3Q87y.js} +0 -0
- /package/web/assets/{sparql-Dzzr9hol.js → sparql-q1EpMUqb.js} +0 -0
- /package/web/assets/{sql-DbXHiHh_.js → sql-CjcQ4wIr.js} +0 -0
- /package/web/assets/{useCloudOrg-CkiFdVCe.css → src-CkiFdVCe.css} +0 -0
- /package/web/assets/{st-DEaYV8xH.js → st-AuOpxVl7.js} +0 -0
- /package/web/assets/{swift-BQItveav.js → swift-BUWnv6f7.js} +0 -0
- /package/web/assets/{systemverilog-nE6YfGlx.js → systemverilog-FhXn-3OZ.js} +0 -0
- /package/web/assets/{tcl-Do7Q0SM0.js → tcl-B0lqcTtS.js} +0 -0
- /package/web/assets/{twig-B2CLZN2j.js → twig-B0OeGPVa.js} +0 -0
- /package/web/assets/{typespec-r9R1AgVi.js → typespec-Bmh6VX11.js} +0 -0
- /package/web/assets/{vb-DGnD02qr.js → vb-bmgX6veu.js} +0 -0
- /package/web/assets/{w3c-keyname-9KQ-4XZl.js → w3c-keyname-2TLn3EjF.js} +0 -0
- /package/web/assets/{wgsl-C2fD4koY.js → wgsl-FflLnFqI.js} +0 -0
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-DaBMrB0t.js","assets/index-CdghDQiK.js","assets/index-BmdsyJ54.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,$n as t,Bi as n,Br as r,Ci as i,Er as a,Fr as o,G as s,Gn as c,Hr as l,In as u,Ji as d,Jr as f,Lr as p,Ma as m,Mn as h,Mr as g,Nn as _,Nr as v,Oi as y,Or as b,Pa as x,Pn as ee,Qi as S,Qr as C,Sa as w,Si as T,Sn as te,Ua as E,Un as D,Ur as O,Vi as ne,Vn as k,W as re,Wi as ie,Xn as A,_i as j,_r as M,an as ae,ar as N,bi as P,cn as oe,da as F,dn as se,dr as ce,ea as I,en as le,et as ue,fn as de,ga as L,gr as fe,ha as R,hi as z,ia as pe,ii as me,ji as he,jr as ge,ki as B,ln as _e,mi as V,na as ve,nn as ye,on as be,pi as xe,pr as Se,qr as Ce,ra as we,rn as Te,ta as H,ti as Ee,un as De,ur as Oe,wi as U,wr as ke,xa as W,xi as G,ya as K,zn as Ae}from"./index-CdghDQiK.js";import{t as je}from"./checkbox-BP6nucdt.js";import{t as Me}from"./card-q6s0jc6V.js";import{t as Ne}from"./multiselect-DcAoSG6S.js";import{a as Pe,i as Fe,n as Ie,o as Le,r as Re,t as ze}from"./tabpanel-D8XwziwN.js";import{t as Be}from"./autocomplete-AALxfd-8.js";import{t as Ve}from"./src-CabNenEM.js";var He=N.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`}}}),Ue={name:`BaseSlider`,extends:De,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:`horizontal`},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:He,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function We(e){"@babel/helpers - typeof";return We=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},We(e)}function Ge(e,t,n){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e){var t=qe(e,`string`);return We(t)==`symbol`?t:t+``}function qe(e,t){if(We(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(We(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Je(e){return Ze(e)||Xe(e)||q(e)||Ye()}function Ye(){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 q(e,t){if(e){if(typeof e==`string`)return Qe(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)?Qe(e,t):void 0}}function Xe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ze(e){if(Array.isArray(e))return Qe(e)}function Qe(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 $e={name:`Slider`,extends:Ue,inheritAttrs:!1,emits:[`change`,`slideend`],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var e=this.$el.getBoundingClientRect();this.initX=e.left+p(),this.initY=e.top+ce(),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`?b(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?Je(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||ke(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 O(Ge({},this.orientation,this.orientation))}}},et=[`data-p`],tt=[`data-p`],J=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],nt=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],rt=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`];function it(e,t,r,a,o,s){return S(),U(`div`,n({class:e.cx(`root`),onClick:t[18]||=function(){return s.onBarClick&&s.onBarClick.apply(s,arguments)}},e.ptmi(`root`),{"data-p-sliding":!1,"data-p":s.dataP}),[G(`span`,n({class:e.cx(`range`),style:[e.sx(`range`),s.rangeStyle()]},e.ptm(`range`),{"data-p":s.dataP}),null,16,tt),e.range?i(``,!0):(S(),U(`span`,n({key:0,class:e.cx(`handle`),style:[e.sx(`handle`),s.handleStyle()],onTouchstartPassive:t[0]||=function(e){return s.onDragStart(e)},onTouchmovePassive:t[1]||=function(e){return s.onDrag(e)},onTouchend:t[2]||=function(e){return s.onDragEnd(e)},onMousedown:t[3]||=function(e){return s.onMouseDown(e)},onKeydown:t[4]||=function(e){return s.onKeyDown(e)},onBlur:t[5]||=function(e){return s.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":s.dataP}),null,16,J)),e.range?(S(),U(`span`,n({key:1,class:e.cx(`handle`),style:[e.sx(`handle`),s.rangeStartHandleStyle()],onTouchstartPassive:t[6]||=function(e){return s.onDragStart(e,0)},onTouchmovePassive:t[7]||=function(e){return s.onDrag(e)},onTouchend:t[8]||=function(e){return s.onDragEnd(e)},onMousedown:t[9]||=function(e){return s.onMouseDown(e,0)},onKeydown:t[10]||=function(e){return s.onKeyDown(e,0)},onBlur:t[11]||=function(e){return s.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":s.dataP}),null,16,nt)):i(``,!0),e.range?(S(),U(`span`,n({key:2,class:e.cx(`handle`),style:[e.sx(`handle`),s.rangeEndHandleStyle()],onTouchstartPassive:t[12]||=function(e){return s.onDragStart(e,1)},onTouchmovePassive:t[13]||=function(e){return s.onDrag(e)},onTouchend:t[14]||=function(e){return s.onDragEnd(e)},onMousedown:t[15]||=function(e){return s.onMouseDown(e,1)},onKeydown:t[16]||=function(e){return s.onKeyDown(e,1)},onBlur:t[17]||=function(e){return s.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":s.dataP}),null,16,rt)):i(``,!0)],16,et)}$e.render=it;var at={name:`CalendarIcon`,extends:D};function ot(e){return ut(e)||lt(e)||ct(e)||st()}function st(){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 ct(e,t){if(e){if(typeof e==`string`)return dt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(e,t):void 0}}function lt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ut(e){if(Array.isArray(e))return dt(e)}function dt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ft(e,t,r,i,a,o){return S(),U(`svg`,n({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),ot(t[0]||=[G(`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)}at.render=ft;var pt=N.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}}}}),mt={name:`BaseDatePicker`,extends:_e,props:{selectionMode:{type:String,default:`single`},dateFormat:{type:String,default:null},updateModelType:{type:String,default:`date`},inline:{type:Boolean,default:!1},showOtherMonths:{type:Boolean,default:!0},selectOtherMonths:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},iconDisplay:{type:String,default:`button`},icon:{type:String,default:void 0},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0},incrementIcon:{type:String,default:void 0},decrementIcon:{type:String,default:void 0},numberOfMonths:{type:Number,default:1},responsiveOptions:Array,breakpoint:{type:String,default:`769px`},view:{type:String,default:`date`},minDate:{type:Date,value:null},maxDate:{type:Date,value:null},disabledDates:{type:Array,value:null},disabledDays:{type:Array,value:null},maxDateCount:{type:Number,value:null},showOnFocus:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},showButtonBar:{type:Boolean,default:!1},shortYearCutoff:{type:String,default:`+10`},showTime:{type:Boolean,default:!1},timeOnly:{type:Boolean,default:!1},hourFormat:{type:String,default:`24`},stepHour:{type:Number,default:1},stepMinute:{type:Number,default:1},stepSecond:{type:Number,default:1},showSeconds:{type:Boolean,default:!1},hideOnDateTimeSelect:{type:Boolean,default:!1},hideOnRangeSelection:{type:Boolean,default:!1},timeSeparator:{type:String,default:`:`},showWeek:{type:Boolean,default:!1},manualInput:{type:Boolean,default:!0},showClear:{type:Boolean,default:!1},appendTo:{type:[String,Object],default:`body`},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},todayButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,size:`small`}}},clearButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,size:`small`}}},navigatorButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},timepickerButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:pt,provide:function(){return{$pcDatePicker:this,$parentInstance:this}}};function ht(e,t,n){return(t=gt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gt(e){var t=_t(e,`string`);return vt(t)==`symbol`?t:t+``}function _t(e,t){if(vt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vt(e){"@babel/helpers - typeof";return vt=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},vt(e)}function yt(e){return St(e)||xt(e)||wt(e)||bt()}function bt(){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 xt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function St(e){if(Array.isArray(e))return Tt(e)}function Ct(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=wt(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 wt(e,t){if(e){if(typeof e==`string`)return Tt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}function Tt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Et={name:`DatePicker`,extends:mt,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=C(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&&Oe.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=Ct(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){a(e,this.inline?void 0:{position:`absolute`,top:`0`}),this.autoZIndex&&Oe.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&&Oe.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 A(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&&!g()&&(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?M(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=r(this.overlay)+`px`,this.overlay.style.minWidth=r(this.$el)+`px`):this.overlay.style.width=r(this.$el)+`px`,Se(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=Ct(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(ge(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(yt(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 Ce(e)&&Ee(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(yt(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=Ct(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=vt(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=fe(i);switch(e.code){case`ArrowDown`:if(r.tabIndex=`-1`,i.parentElement.nextElementSibling){var o=fe(i.parentElement),s=Array.from(i.parentElement.parentElement.children).slice(o+1).find(function(e){var t=e.children[a].children[0];return!ke(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=fe(i.parentElement),u=Array.from(i.parentElement.parentElement.children).slice(0,l).reverse().find(function(e){var t=e.children[a].children[0];return!ke(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!ke(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!ke(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];ke(g,`data-p-disabled`)?this.navigateToMonth(e,!0,n):(g.tabIndex=`0`,g.focus()),e.preventDefault();break;case`End`:r.tabIndex=`-1`;var _=i.parentElement,v=_.children[_.children.length-1].children[0];ke(v,`data-p-disabled`)?this.navigateToMonth(e,!1,n):(v.tabIndex=`0`,v.focus()),e.preventDefault();break;case`PageUp`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,n),e.preventDefault();break;case`PageDown`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,n),e.preventDefault();break}},navigateToMonth:function(e,t,n){if(t)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this.navBackward(e);else{var r=this.overlay.children[n-1],i=ge(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=l(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=fe(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=fe(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`?ge(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?ge(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):ge(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`?l(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?l(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):l(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=ge(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]`),n=l(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=ge(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),i=l(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=l(this.overlay,`span[data-p-selected="true"]`),!e&&(e=l(this.overlay,`td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])`)||l(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=o(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=C(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=C(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&&o(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`,v(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=f(),r=yt(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 O({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 O({fluid:this.$fluid})},panelDataP:function(){return O(ht({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return O(ht({},this.size,this.size))},timePickerDataP:function(){return O({"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:u,Portal:c,CalendarIcon:at,ChevronLeftIcon:Pe,ChevronRightIcon:ue,ChevronUpIcon:e,ChevronDownIcon:ae,TimesIcon:k},directives:{ripple:Ae}},Dt=[`id`,`data-p`],Ot=[`disabled`,`aria-label`,`aria-expanded`,`aria-controls`],kt=[`data-p`],At=[`id`,`role`,`aria-modal`,`aria-label`,`data-p`],jt=[`disabled`,`aria-label`],Mt=[`disabled`,`aria-label`],Nt=[`disabled`,`aria-label`],Pt=[`disabled`,`aria-label`],Ft=[`data-p-disabled`],It=[`abbr`],Lt=[`data-p-disabled`],Rt=[`aria-label`,`data-p-today`,`data-p-other-month`],zt=[`onClick`,`onKeydown`,`aria-selected`,`aria-disabled`,`data-p`],Bt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Vt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Ht=[`data-p`];function Ut(e,t,r,a,o,s){var c=ve(`InputText`),l=ve(`TimesIcon`),u=ve(`Button`),d=ve(`Portal`),f=we(`ripple`);return S(),U(`span`,n({ref:`container`,id:e.$id,class:e.cx(`root`),style:e.sx(`root`),"data-p":s.containerDataP},e.ptmi(`root`)),[e.inline?i(``,!0):(S(),T(c,{key:0,ref:s.inputRef,id:e.inputId,role:`combobox`,class:K([e.inputClass,e.cx(`pcInputText`)]),style:W(e.inputStyle),defaultValue:s.inputFieldValue,placeholder:e.placeholder,name:e.name,size:e.size,invalid:e.invalid,variant:e.variant,fluid:e.fluid,required:e.required,unstyled:e.unstyled,autocomplete:`off`,"aria-autocomplete":`none`,"aria-haspopup":`dialog`,"aria-expanded":o.overlayVisible,"aria-controls":o.overlayVisible?s.panelId:void 0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:`none`,disabled:e.disabled,readonly:!e.manualInput||e.readonly,tabindex:0,onInput:s.onInput,onClick:s.onInputClick,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,"data-p-has-dropdown":e.showIcon&&e.iconDisplay===`button`&&!e.inline,"data-p-has-e-icon":e.showIcon&&e.iconDisplay===`input`&&!e.inline,pt:e.ptm(`pcInputText`)},null,8,`id.class.style.defaultValue.placeholder.name.size.invalid.variant.fluid.required.unstyled.aria-expanded.aria-controls.aria-labelledby.aria-label.disabled.readonly.onInput.onClick.onFocus.onBlur.onKeydown.data-p-has-dropdown.data-p-has-e-icon.pt`.split(`.`))),e.showClear&&!e.inline?H(e.$slots,`clearicon`,{key:1,class:K(e.cx(`clearIcon`)),clearCallback:s.onClearClick},function(){return[B(l,n({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:s.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):i(``,!0),e.showIcon&&e.iconDisplay===`button`&&!e.inline?H(e.$slots,`dropdownbutton`,{key:2,toggleCallback:s.onButtonClick},function(){return[G(`button`,n({class:e.cx(`dropdown`),disabled:e.disabled,onClick:t[0]||=function(){return s.onButtonClick&&s.onButtonClick.apply(s,arguments)},type:`button`,"aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":o.overlayVisible,"aria-controls":s.panelId},e.ptm(`dropdown`)),[H(e.$slots,`dropdownicon`,{class:K(e.icon)},function(){return[(S(),T(pe(e.icon?`span`:`CalendarIcon`),n({class:e.icon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,Ot)]}):e.showIcon&&e.iconDisplay===`input`&&!e.inline?(S(),U(j,{key:3},[e.$slots.inputicon||e.showIcon?(S(),U(`span`,n({key:0,class:e.cx(`inputIconContainer`),"data-p":s.inputIconDataP},e.ptm(`inputIconContainer`)),[H(e.$slots,`inputicon`,{class:K(e.cx(`inputIcon`)),clickCallback:s.onButtonClick},function(){return[(S(),T(pe(e.icon?`i`:`CalendarIcon`),n({class:[e.icon,e.cx(`inputIcon`)],onClick:s.onButtonClick},e.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,kt)):i(``,!0)],64)):i(``,!0),B(d,{appendTo:e.appendTo,disabled:e.inline},{default:R(function(){return[B(me,n({name:`p-anchored-overlay`,onEnter:t[58]||=function(e){return s.onOverlayEnter(e)},onAfterEnter:s.onOverlayEnterComplete,onAfterLeave:s.onOverlayAfterLeave,onLeave:s.onOverlayLeave},e.ptm(`transition`)),{default:R(function(){return[e.inline||o.overlayVisible?(S(),U(`div`,n({key:0,ref:s.overlayRef,id:s.panelId,class:[e.cx(`panel`),e.panelClass],style:e.panelStyle,role:e.inline?null:`dialog`,"aria-modal":e.inline?null:`true`,"aria-label":e.$primevue.config.locale.chooseDate,onClick:t[55]||=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)},onKeydown:t[56]||=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)},onMouseup:t[57]||=function(){return s.onOverlayMouseUp&&s.onOverlayMouseUp.apply(s,arguments)},"data-p":s.panelDataP},e.ptm(`panel`)),[e.timeOnly?i(``,!0):(S(),U(j,{key:0},[G(`div`,n({class:e.cx(`calendarContainer`)},e.ptm(`calendarContainer`)),[(S(!0),U(j,null,I(s.months,function(r,a){return S(),U(`div`,n({key:r.month+r.year,class:e.cx(`calendar`)},{ref_for:!0},e.ptm(`calendar`)),[G(`div`,n({class:e.cx(`header`)},{ref_for:!0},e.ptm(`header`)),[H(e.$slots,`header`),H(e.$slots,`prevbutton`,{actionCallback:function(e){return s.onPrevButtonClick(e)},keydownCallback:function(e){return s.onContainerButtonKeydown(e)}},function(){return[L(B(u,n({ref_for:!0,ref:s.previousButtonRef,class:e.cx(`pcPrevButton`),disabled:e.disabled,"aria-label":o.currentView===`year`?e.$primevue.config.locale.prevDecade:o.currentView===`month`?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth,unstyled:e.unstyled,onClick:s.onPrevButtonClick,onKeydown:s.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcPrevButton`),"data-pc-group-section":`navigator`}),{icon:R(function(t){return[H(e.$slots,`previcon`,{},function(){return[(S(),T(pe(e.prevIcon?`span`:`ChevronLeftIcon`),n({class:[e.prevIcon,t.class]},{ref_for:!0},e.ptm(`pcPrevButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[xe,a===0]])]}),G(`div`,n({class:e.cx(`title`)},{ref_for:!0},e.ptm(`title`)),[e.$primevue.config.locale.showMonthAfterYear?(S(),U(j,{key:0},[o.currentView===`year`?i(``,!0):(S(),U(`button`,n({key:0,type:`button`,onClick:t[1]||=function(){return s.switchToYearView&&s.switchToYearView.apply(s,arguments)},onKeydown:t[2]||=function(){return s.onContainerButtonKeydown&&s.onContainerButtonKeydown.apply(s,arguments)},class:e.cx(`selectYear`),disabled:s.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),w(s.getYear(r)),17,jt)),o.currentView===`date`?(S(),U(`button`,n({key:1,type:`button`,onClick:t[3]||=function(){return s.switchToMonthView&&s.switchToMonthView.apply(s,arguments)},onKeydown:t[4]||=function(){return s.onContainerButtonKeydown&&s.onContainerButtonKeydown.apply(s,arguments)},class:e.cx(`selectMonth`),disabled:s.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),w(s.getMonthName(r.month)),17,Mt)):i(``,!0)],64)):(S(),U(j,{key:1},[o.currentView===`date`?(S(),U(`button`,n({key:0,type:`button`,onClick:t[5]||=function(){return s.switchToMonthView&&s.switchToMonthView.apply(s,arguments)},onKeydown:t[6]||=function(){return s.onContainerButtonKeydown&&s.onContainerButtonKeydown.apply(s,arguments)},class:e.cx(`selectMonth`),disabled:s.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),w(s.getMonthName(r.month)),17,Nt)):i(``,!0),o.currentView===`year`?i(``,!0):(S(),U(`button`,n({key:1,type:`button`,onClick:t[7]||=function(){return s.switchToYearView&&s.switchToYearView.apply(s,arguments)},onKeydown:t[8]||=function(){return s.onContainerButtonKeydown&&s.onContainerButtonKeydown.apply(s,arguments)},class:e.cx(`selectYear`),disabled:s.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),w(s.getYear(r)),17,Pt))],64)),o.currentView===`year`?(S(),U(`span`,n({key:2,class:e.cx(`decade`)},{ref_for:!0},e.ptm(`decade`)),[H(e.$slots,`decade`,{years:s.yearPickerValues},function(){return[y(w(s.yearPickerValues[0].value)+` - `+w(s.yearPickerValues[s.yearPickerValues.length-1].value),1)]})],16)):i(``,!0)],16),H(e.$slots,`nextbutton`,{actionCallback:function(e){return s.onNextButtonClick(e)},keydownCallback:function(e){return s.onContainerButtonKeydown(e)}},function(){return[L(B(u,n({ref_for:!0,ref:s.nextButtonRef,class:e.cx(`pcNextButton`),disabled:e.disabled,"aria-label":o.currentView===`year`?e.$primevue.config.locale.nextDecade:o.currentView===`month`?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth,unstyled:e.unstyled,onClick:s.onNextButtonClick,onKeydown:s.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcNextButton`),"data-pc-group-section":`navigator`}),{icon:R(function(t){return[H(e.$slots,`nexticon`,{},function(){return[(S(),T(pe(e.nextIcon?`span`:`ChevronRightIcon`),n({class:[e.nextIcon,t.class]},{ref_for:!0},e.ptm(`pcNextButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[xe,e.numberOfMonths===1?!0:a===e.numberOfMonths-1]])]})],16),o.currentView===`date`?(S(),U(`table`,n({key:0,class:e.cx(`dayView`),role:`grid`},{ref_for:!0},e.ptm(`dayView`)),[G(`thead`,n({ref_for:!0},e.ptm(`tableHeader`)),[G(`tr`,n({ref_for:!0},e.ptm(`tableHeaderRow`)),[e.showWeek?(S(),U(`th`,n({key:0,scope:`col`,class:e.cx(`weekHeader`)},{ref_for:!0},e.ptm(`weekHeader`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tableheadercell`}),[H(e.$slots,`weekheaderlabel`,{},function(){return[G(`span`,n({ref_for:!0},e.ptm(`weekHeaderLabel`,{context:{disabled:e.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),w(s.weekHeaderLabel),17)]})],16,Ft)):i(``,!0),(S(!0),U(j,null,I(s.weekDays,function(t){return S(),U(`th`,n({key:t,scope:`col`,abbr:t},{ref_for:!0},e.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:e.cx(`weekDayCell`)}),[G(`span`,n({class:e.cx(`weekDay`)},{ref_for:!0},e.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),w(t),17)],16,It)}),128))],16)],16),G(`tbody`,n({ref_for:!0},e.ptm(`tableBody`)),[(S(!0),U(j,null,I(r.dates,function(t,o){return S(),U(`tr`,n({key:t[0].day+``+t[0].month},{ref_for:!0},e.ptm(`tableBodyRow`)),[e.showWeek?(S(),U(`td`,n({key:0,class:e.cx(`weekNumber`)},{ref_for:!0},e.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[G(`span`,n({class:e.cx(`weekLabelContainer`)},{ref_for:!0},e.ptm(`weekLabelContainer`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tablebodycelllabel`}),[H(e.$slots,`weeklabel`,{weekNumber:r.weekNumbers[o]},function(){return[r.weekNumbers[o]<10?(S(),U(`span`,n({key:0,style:{visibility:`hidden`}},{ref_for:!0},e.ptm(`weekLabel`)),`0`,16)):i(``,!0),y(` `+w(r.weekNumbers[o]),1)]})],16,Lt)],16)):i(``,!0),(S(!0),U(j,null,I(t,function(t){return S(),U(`td`,n({key:t.day+``+t.month,"aria-label":t.day,class:e.cx(`dayCell`,{date:t})},{ref_for:!0},e.ptm(`dayCell`,{context:{date:t,today:t.today,otherMonth:t.otherMonth,selected:s.isSelected(t),disabled:!t.selectable}}),{"data-p-today":t.today,"data-p-other-month":t.otherMonth,"data-pc-group-section":`tablebodycell`}),[e.showOtherMonths||!t.otherMonth?L((S(),U(`span`,n({key:0,class:e.cx(`day`,{date:t}),onClick:function(e){return s.onDateSelect(e,t)},draggable:`false`,onKeydown:function(e){return s.onDateCellKeydown(e,t,a)},"aria-selected":s.isSelected(t),"aria-disabled":!t.selectable},{ref_for:!0},e.ptm(`day`,{context:{date:t,today:t.today,otherMonth:t.otherMonth,selected:s.isSelected(t),disabled:!t.selectable}}),{"data-p":s.dayDataP(t),"data-pc-group-section":`tablebodycelllabel`}),[H(e.$slots,`date`,{date:t},function(){return[y(w(t.day),1)]})],16,zt)),[[f]]):i(``,!0),s.isSelected(t)?(S(),U(`div`,n({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),w(t.day),17)):i(``,!0)],16,Rt)}),128))],16)}),128))],16)],16)):i(``,!0)],16)}),128))],16),o.currentView===`month`?(S(),U(`div`,n({key:0,class:e.cx(`monthView`)},e.ptm(`monthView`)),[(S(!0),U(j,null,I(s.monthPickerValues,function(t,r){return L((S(),U(`span`,n({key:t,onClick:function(e){return s.onMonthSelect(e,{month:t,index:r})},onKeydown:function(e){return s.onMonthCellKeydown(e,{month:t,index:r})},class:e.cx(`month`,{month:t,index:r})},{ref_for:!0},e.ptm(`month`,{context:{month:t,monthIndex:r,selected:s.isMonthSelected(r),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":s.isMonthSelected(r)}),[y(w(t.value)+` `,1),s.isMonthSelected(r)?(S(),U(`div`,n({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),w(t.value),17)):i(``,!0)],16,Bt)),[[f]])}),128))],16)):i(``,!0),o.currentView===`year`?(S(),U(`div`,n({key:1,class:e.cx(`yearView`)},e.ptm(`yearView`)),[(S(!0),U(j,null,I(s.yearPickerValues,function(t){return L((S(),U(`span`,n({key:t.value,onClick:function(e){return s.onYearSelect(e,t)},onKeydown:function(e){return s.onYearCellKeydown(e,t)},class:e.cx(`year`,{year:t})},{ref_for:!0},e.ptm(`year`,{context:{year:t,selected:s.isYearSelected(t.value),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":s.isYearSelected(t.value)}),[y(w(t.value)+` `,1),s.isYearSelected(t.value)?(S(),U(`div`,n({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),w(t.value),17)):i(``,!0)],16,Vt)),[[f]])}),128))],16)):i(``,!0)],64)),(e.showTime||e.timeOnly)&&o.currentView===`date`?(S(),U(`div`,n({key:1,class:e.cx(`timePicker`),"data-p":s.timePickerDataP},e.ptm(`timePicker`)),[G(`div`,n({class:e.cx(`hourPicker`)},e.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[H(e.$slots,`hourincrementbutton`,{callbacks:s.hourIncrementCallbacks},function(){return[B(u,n({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextHour,unstyled:e.unstyled,onMousedown:t[9]||=function(e){return s.onTimePickerElementMouseDown(e,0,1)},onMouseup:t[10]||=function(e){return s.onTimePickerElementMouseUp(e)},onKeydown:[s.onContainerButtonKeydown,t[12]||=V(function(e){return s.onTimePickerElementMouseDown(e,0,1)},[`enter`]),t[13]||=V(function(e){return s.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:t[11]||=function(e){return s.onTimePickerElementMouseLeave()},onKeyup:[t[14]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`enter`]),t[15]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`incrementicon`,{},function(){return[(S(),T(pe(e.incrementIcon?`span`:`ChevronUpIcon`),n({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]}),G(`span`,n(e.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),w(s.formattedCurrentHour),17),H(e.$slots,`hourdecrementbutton`,{callbacks:s.hourDecrementCallbacks},function(){return[B(u,n({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevHour,unstyled:e.unstyled,onMousedown:t[16]||=function(e){return s.onTimePickerElementMouseDown(e,0,-1)},onMouseup:t[17]||=function(e){return s.onTimePickerElementMouseUp(e)},onKeydown:[s.onContainerButtonKeydown,t[19]||=V(function(e){return s.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),t[20]||=V(function(e){return s.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:t[18]||=function(e){return s.onTimePickerElementMouseLeave()},onKeyup:[t[21]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`enter`]),t[22]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`decrementicon`,{},function(){return[(S(),T(pe(e.decrementIcon?`span`:`ChevronDownIcon`),n({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]})],16),G(`div`,n(e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[G(`span`,n(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),w(e.timeSeparator),17)],16),G(`div`,n({class:e.cx(`minutePicker`)},e.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[H(e.$slots,`minuteincrementbutton`,{callbacks:s.minuteIncrementCallbacks},function(){return[B(u,n({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[23]||=function(e){return s.onTimePickerElementMouseDown(e,1,1)},onMouseup:t[24]||=function(e){return s.onTimePickerElementMouseUp(e)},onKeydown:[s.onContainerButtonKeydown,t[26]||=V(function(e){return s.onTimePickerElementMouseDown(e,1,1)},[`enter`]),t[27]||=V(function(e){return s.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:t[25]||=function(e){return s.onTimePickerElementMouseLeave()},onKeyup:[t[28]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`enter`]),t[29]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`incrementicon`,{},function(){return[(S(),T(pe(e.incrementIcon?`span`:`ChevronUpIcon`),n({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),G(`span`,n(e.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),w(s.formattedCurrentMinute),17),H(e.$slots,`minutedecrementbutton`,{callbacks:s.minuteDecrementCallbacks},function(){return[B(u,n({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[30]||=function(e){return s.onTimePickerElementMouseDown(e,1,-1)},onMouseup:t[31]||=function(e){return s.onTimePickerElementMouseUp(e)},onKeydown:[s.onContainerButtonKeydown,t[33]||=V(function(e){return s.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),t[34]||=V(function(e){return s.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:t[32]||=function(e){return s.onTimePickerElementMouseLeave()},onKeyup:[t[35]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`enter`]),t[36]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`decrementicon`,{},function(){return[(S(),T(pe(e.decrementIcon?`span`:`ChevronDownIcon`),n({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16),e.showSeconds?(S(),U(`div`,n({key:0,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[G(`span`,n(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),w(e.timeSeparator),17)],16)):i(``,!0),e.showSeconds?(S(),U(`div`,n({key:1,class:e.cx(`secondPicker`)},e.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[H(e.$slots,`secondincrementbutton`,{callbacks:s.secondIncrementCallbacks},function(){return[B(u,n({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[37]||=function(e){return s.onTimePickerElementMouseDown(e,2,1)},onMouseup:t[38]||=function(e){return s.onTimePickerElementMouseUp(e)},onKeydown:[s.onContainerButtonKeydown,t[40]||=V(function(e){return s.onTimePickerElementMouseDown(e,2,1)},[`enter`]),t[41]||=V(function(e){return s.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:t[39]||=function(e){return s.onTimePickerElementMouseLeave()},onKeyup:[t[42]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`enter`]),t[43]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`incrementicon`,{},function(){return[(S(),T(pe(e.incrementIcon?`span`:`ChevronUpIcon`),n({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),G(`span`,n(e.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),w(s.formattedCurrentSecond),17),H(e.$slots,`seconddecrementbutton`,{callbacks:s.secondDecrementCallbacks},function(){return[B(u,n({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[44]||=function(e){return s.onTimePickerElementMouseDown(e,2,-1)},onMouseup:t[45]||=function(e){return s.onTimePickerElementMouseUp(e)},onKeydown:[s.onContainerButtonKeydown,t[47]||=V(function(e){return s.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),t[48]||=V(function(e){return s.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:t[46]||=function(e){return s.onTimePickerElementMouseLeave()},onKeyup:[t[49]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`enter`]),t[50]||=V(function(e){return s.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`decrementicon`,{},function(){return[(S(),T(pe(e.decrementIcon?`span`:`ChevronDownIcon`),n({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16)):i(``,!0),e.hourFormat==`12`?(S(),U(`div`,n({key:2,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[G(`span`,n(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),w(e.timeSeparator),17)],16)):i(``,!0),e.hourFormat==`12`?(S(),U(`div`,n({key:3,class:e.cx(`ampmPicker`)},e.ptm(`ampmPicker`)),[H(e.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return s.toggleAMPM(e)},keydownCallback:function(e){return s.onContainerButtonKeydown(e)}},function(){return[B(u,n({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.am,disabled:e.disabled,unstyled:e.unstyled,onClick:t[51]||=function(e){return s.toggleAMPM(e)},onKeydown:s.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`incrementicon`,{class:K(e.cx(`incrementIcon`))},function(){return[(S(),T(pe(e.incrementIcon?`span`:`ChevronUpIcon`),n({class:[e.cx(`incrementIcon`),t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),G(`span`,n(e.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),w(o.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),17),H(e.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return s.toggleAMPM(e)},keydownCallback:function(e){return s.onContainerButtonKeydown(e)}},function(){return[B(u,n({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.pm,disabled:e.disabled,onClick:t[52]||=function(e){return s.toggleAMPM(e)},onKeydown:s.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:R(function(t){return[H(e.$slots,`decrementicon`,{class:K(e.cx(`decrementIcon`))},function(){return[(S(),T(pe(e.decrementIcon?`span`:`ChevronDownIcon`),n({class:[e.cx(`decrementIcon`),t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`onKeydown`,`pt`])]})],16)):i(``,!0)],16,Ht)):i(``,!0),e.showButtonBar?(S(),U(`div`,n({key:2,class:e.cx(`buttonbar`)},e.ptm(`buttonbar`)),[H(e.$slots,`buttonbar`,{todayCallback:function(e){return s.onTodayButtonClick(e)},clearCallback:function(e){return s.onClearButtonClick(e)}},function(){return[H(e.$slots,`todaybutton`,{actionCallback:function(e){return s.onTodayButtonClick(e)},keydownCallback:function(e){return s.onContainerButtonKeydown(e)}},function(){return[B(u,n({label:s.todayLabel,onClick:t[53]||=function(e){return s.onTodayButtonClick(e)},class:e.cx(`pcTodayButton`),unstyled:e.unstyled,onKeydown:s.onContainerButtonKeydown},e.todayButtonProps,{pt:e.ptm(`pcTodayButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]}),H(e.$slots,`clearbutton`,{actionCallback:function(e){return s.onClearButtonClick(e)},keydownCallback:function(e){return s.onContainerButtonKeydown(e)}},function(){return[B(u,n({label:s.clearLabel,onClick:t[54]||=function(e){return s.onClearButtonClick(e)},class:e.cx(`pcClearButton`),unstyled:e.unstyled,onKeydown:s.onContainerButtonKeydown},e.clearButtonProps,{pt:e.ptm(`pcClearButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]})]})],16)):i(``,!0),H(e.$slots,`footer`)],16,At)):i(``,!0)]}),_:3},16,[`onAfterEnter`,`onAfterLeave`,`onLeave`])]}),_:3},8,[`appendTo`,`disabled`])],16,Dt)}Et.render=Ut;function Wt(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 Gt(e,t=new Date){let n=Wt(e);if(!n)return null;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n.getTime()-r.getTime())/864e5)}function Kt(e,t=new Date){let n=Gt(e,t);return n===null?null:n<0?`overdue`:n===0?`today`:n<=2?`soon`:`later`}function qt(e,t){let n=Wt(e);return n?n.toLocaleDateString(t,{day:`2-digit`,month:`2-digit`,year:`numeric`}):e}var Jt={class:`kb-card__top`},Yt={class:`kb-card__title`},Xt={class:`kb-card__actions`},Zt={key:0,class:`kb-card__groups`},Qt={key:1,class:`kb-card__assignees`},$t=[`title`],Y=[`src`,`onError`],en={key:2,class:`kb-card__badges`},tn={key:1,class:`kb-card__prio`},nn={key:2,class:`pi pi-arrow-up`},rn={key:3,class:`kb-card__img-badge`},an={key:4,class:`pi pi-align-left`},on={key:5,class:`kb-card__img-badge`},sn={key:6,class:`kb-card__img-badge`},cn=h(he({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(e){let t=e,n=P(()=>{let e=t.card.deadline;if(!e)return null;let n=Kt(e);return n?{label:qt(e),state:n}:null}),r=m(new Set);function a(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 o(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}return(e,s)=>{let c=we(`tooltip`);return S(),U(j,null,[G(`div`,Jt,[G(`span`,Yt,w(t.card.title),1),G(`div`,Xt,[H(e.$slots,`actions`,{},void 0,!0)])]),t.card.groups?.length?(S(),U(`div`,Zt,[(S(!0),U(j,null,I(t.card.groups,e=>(S(),U(`span`,{key:e,class:`kb-card__group`},w(e),1))),128))])):i(``,!0),t.card.assignees?.length?(S(),U(`div`,Qt,[(S(!0),U(j,null,I(t.card.assignees,e=>(S(),U(`span`,{key:e.id,class:`kb-card__avatar`,style:W(a(e.id)),title:e.name},[t.avatarUrl&&!r.has(e.id)?(S(),U(`img`,{key:0,src:t.avatarUrl(e.id),alt:``,onError:t=>r.add(e.id)},null,40,Y)):(S(),U(j,{key:1},[y(w(o(e.name)),1)],64))],12,$t))),128))])):i(``,!0),t.card.markdown||t.card.images.length||t.card.commentCount||t.childCount||t.hasParent||n.value||e.$slots.badges?(S(),U(`div`,en,[n.value?L((S(),U(`span`,{key:0,class:K([`kb-card__deadline`,`kb-card__deadline--${n.value.state}`])},[s[0]||=G(`i`,{class:`pi pi-calendar`},null,-1),y(` `+w(n.value.label),1)],2)),[[c,t.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):i(``,!0),t.card.priority?L((S(),U(`span`,tn,[y(w(t.card.priority),1)])),[[c,t.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):i(``,!0),t.hasParent?L((S(),U(`i`,nn,null,512)),[[c,t.t(`card.hasParent`),void 0,{bottom:!0}]]):i(``,!0),t.childCount?L((S(),U(`span`,rn,[s[1]||=G(`i`,{class:`pi pi-sitemap`},null,-1),y(` `+w(t.childCount),1)])),[[c,t.t(`card.hasChildren`),void 0,{bottom:!0}]]):i(``,!0),t.card.markdown?(S(),U(`i`,an)):i(``,!0),t.card.images.length?(S(),U(`span`,on,[s[2]||=G(`i`,{class:`pi pi-image`},null,-1),y(` `+w(t.card.images.length),1)])):i(``,!0),t.card.commentCount?(S(),U(`span`,sn,[s[3]||=G(`i`,{class:`pi pi-comment`},null,-1),y(` `+w(t.card.commentCount),1)])):i(``,!0),H(e.$slots,`badges`,{},void 0,!0)])):i(``,!0)],64)}}}),[[`__scopeId`,`data-v-f1127747`]]),ln={key:0,class:`kb-files__thumb`},un=[`src`,`alt`],dn={key:1,class:`pi pi-file kb-files__icon`},fn=[`title`,`onClick`],pn=[`title`],mn={class:`kb-files__size`},hn=[`title`,`onClick`],gn=h(he({__name:`AttachmentList`,props:{files:{},preview:{},openable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removeLabel:{default:``},compact:{type:Boolean,default:!1}},emits:[`open`,`remove`],setup(e,{emit:t}){let n=t;function r(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}return(t,a)=>e.files.length?(S(),U(`ul`,{key:0,class:K([`kb-files`,{"kb-files--inline":e.compact}])},[(S(!0),U(j,null,I(e.files,(t,o)=>(S(),U(`li`,{key:t.id,class:`kb-files__item`},[e.preview(t)?(S(),U(`span`,ln,[G(`img`,{src:e.preview(t),alt:t.name},null,8,un)])):(S(),U(`i`,dn)),e.openable?(S(),U(`button`,{key:2,class:`kb-files__name`,title:t.name,onClick:z(e=>n(`open`,t),[`stop`])},w(t.name),9,fn)):(S(),U(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:t.name},w(t.name),9,pn)),G(`span`,mn,w(r(t.size)),1),e.removable?(S(),U(`button`,{key:4,class:`kb-files__remove`,title:e.removeLabel,onClick:z(e=>n(`remove`,o),[`stop`])},[...a[0]||=[G(`i`,{class:`pi pi-times`},null,-1)]],8,hn)):i(``,!0)]))),128))],2)):i(``,!0)}}),[[`__scopeId`,`data-v-f30e50ba`]]),X=Uint8Array,_n=Uint16Array,vn=Int32Array,yn=new X([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]),bn=new X([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]),xn=new X([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Sn=function(e,t){for(var n=new _n(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new vn(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}},Cn=Sn(yn,2),wn=Cn.b,Tn=Cn.r;wn[28]=258,Tn[258]=28;var En=Sn(bn,0),Dn=En.b;En.r;for(var On=new _n(32768),Z=0;Z<32768;++Z){var kn=(Z&43690)>>1|(Z&21845)<<1;kn=(kn&52428)>>2|(kn&13107)<<2,kn=(kn&61680)>>4|(kn&3855)<<4,On[Z]=((kn&65280)>>8|(kn&255)<<8)>>1}for(var An=(function(e,t,n){for(var r=e.length,i=0,a=new _n(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new _n(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new _n(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[On[d]>>c]=l}else for(s=new _n(r),i=0;i<r;++i)e[i]&&(s[i]=On[o[e[i]-1]++]>>15-e[i]);return s}),jn=new X(288),Z=0;Z<144;++Z)jn[Z]=8;for(var Z=144;Z<256;++Z)jn[Z]=9;for(var Z=256;Z<280;++Z)jn[Z]=7;for(var Z=280;Z<288;++Z)jn[Z]=8;for(var Mn=new X(32),Z=0;Z<32;++Z)Mn[Z]=5;var Nn=An(jn,9,1),Pn=An(Mn,5,1),Fn=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},In=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Ln=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Rn=function(e){return(e+7)/8|0},zn=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new X(e.subarray(t,n))},Q=[`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`],Bn=function(e,t,n){var r=Error(t||Q[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Bn),!n)throw r;return r},Vn=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new X(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new X(i*3));var l=function(e){var t=n.length;if(e>t){var r=new X(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=In(e,d,1);var v=In(e,d+1,3);if(d+=3,v)if(v==1)p=Nn,m=Pn,h=9,g=5;else if(v==2){var y=In(e,d,31)+257,b=In(e,d+10,15)+4,x=y+In(e,d+5,31)+1;d+=14;for(var ee=new X(x),S=new X(19),C=0;C<b;++C)S[xn[C]]=In(e,d+C*3,7);d+=b*3;for(var w=Fn(S),T=(1<<w)-1,te=An(S,w,1),C=0;C<x;){var E=te[In(e,d,T)];d+=E&15;var D=E>>4;if(D<16)ee[C++]=D;else{var O=0,ne=0;for(D==16?(ne=3+In(e,d,3),d+=2,O=ee[C-1]):D==17?(ne=3+In(e,d,7),d+=3):D==18&&(ne=11+In(e,d,127),d+=7);ne--;)ee[C++]=O}}var k=ee.subarray(0,y),re=ee.subarray(y);h=Fn(k),g=Fn(re),p=An(k,h,1),m=An(re,g,1)}else Bn(1);else{var D=Rn(d)+4,ie=e[D-4]|e[D-3]<<8,A=D+ie;if(A>i){c&&Bn(0);break}s&&l(f+ie),n.set(e.subarray(D,A),f),t.b=f+=ie,t.p=d=A*8,t.f=u;continue}if(d>_){c&&Bn(0);break}}s&&l(f+131072);for(var j=(1<<h)-1,M=(1<<g)-1,ae=d;;ae=d){var O=p[Ln(e,d)&j],N=O>>4;if(d+=O&15,d>_){c&&Bn(0);break}if(O||Bn(2),N<256)n[f++]=N;else if(N==256){ae=d,p=null;break}else{var P=N-254;if(N>264){var C=N-257,oe=yn[C];P=In(e,d,(1<<oe)-1)+wn[C],d+=oe}var F=m[Ln(e,d)&M],se=F>>4;F||Bn(3),d+=F&15;var re=Dn[se];if(se>3){var oe=bn[se];re+=Ln(e,d)&(1<<oe)-1,d+=oe}if(d>_){c&&Bn(0);break}s&&l(f+131072);var ce=f+P;if(f<re){var I=a-re,le=Math.min(re,ce);for(I+f<0&&Bn(3);f<le;++f)n[f]=r[I+f]}for(;f<ce;++f)n[f]=n[f-re]}}t.l=p,t.p=ae,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?zn(n,0,f):n.subarray(0,f)},Hn=new X(0),Un=function(e,t){return e[t]|e[t+1]<<8},Wn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Gn=function(e,t){return Wn(e,t)+Wn(e,t+4)*4294967296};function Kn(e,t){return Vn(e,{i:2},t&&t.out,t&&t.dictionary)}var qn=typeof TextDecoder<`u`&&new TextDecoder;try{qn.decode(Hn,{stream:!0})}catch{}var Jn=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:zn(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 Yn(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(qn)return qn.decode(e);else{var i=Jn(e),a=i.s,n=i.r;return n.length&&Bn(8),a}}var Xn=function(e,t){return t+30+Un(e,t+26)+Un(e,t+28)},Zn=function(e,t,n){var r=Un(e,t+28),i=Yn(e.subarray(t+46,t+46+r),!(Un(e,t+8)&2048)),a=t+46+r,o=Wn(e,t+20),s=n&&o==4294967295?Qn(e,a):[o,Wn(e,t+24),Wn(e,t+42)],c=s[0],l=s[1],u=s[2];return[Un(e,t+10),c,l,i,a+Un(e,t+30)+Un(e,t+32),u]},Qn=function(e,t){for(;Un(e,t)!=1;t+=4+Un(e,t+2));return[Gn(e,t+12),Gn(e,t+4),Gn(e,t+20)]};function $n(e,t){for(var n={},r=e.length-22;Wn(e,r)!=101010256;--r)(!r||e.length-r>65558)&&Bn(13);var i=Un(e,r+8);if(!i)return{};var a=Wn(e,r+16),o=a==4294967295||i==65535;if(o){var s=Wn(e,r-12);o=Wn(e,s)==101075792,o&&(i=Wn(e,s+32),a=Wn(e,s+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=Zn(e,a,o),d=u[0],f=u[1],p=u[2],m=u[3],h=u[4],g=u[5],_=Xn(e,g);a=h,(!c||c({name:m,size:f,originalSize:p,compression:d}))&&(d?d==8?n[m]=Kn(e.subarray(_,_+f),{out:new X(p)}):Bn(14,`unknown compression type `+d):n[m]=zn(e,_,_+f))}return n}var er=2e3,tr=100,nr=5e3,rr=300,ir={csv:`sheet`,tsv:`sheet`,xlsx:`sheet`,xlsm:`sheet`,ods:`sheet`,docx:`doc`,odt:`doc`,pptx:`slides`,odp:`slides`},ar={"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 or(e,t){return ir[t.toLowerCase().split(`.`).pop()??``]??ar[(e||``).toLowerCase().split(`;`)[0].trim()]??null}async function sr(e,t,n,r){let i=n.toLowerCase().split(`.`).pop()??``;if(i===`csv`||i===`tsv`)return pr(new TextDecoder().decode(t),n);let a=$n(new Uint8Array(t)),o=a[`content.xml`];return o?br(e,Yn(o)):e===`doc`?{mode:`render`,render:e=>cr(t,r,e)}:e===`slides`?vr(a):lr(t,r)}async function cr(e,t,n){let{renderAsync:r}=await te(async()=>{let{renderAsync:e}=await import(`./docx-preview-DaBMrB0t.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}),dr(n)}async function lr(e,t){let n=(await te(async()=>{let{default:e}=await import(`./browser-DNbnH79q.js`);return{default:e}},[])).default,r=await n(new Blob([e],{type:t})),i=!1,a=r.map((e,t)=>(e.data.length>er&&(i=!0),{name:e.sheet||`Sheet${t+1}`,rows:e.data.slice(0,er).map(e=>(e.length>tr&&(i=!0),e.slice(0,tr).map(ur)))}));if(!a.length)throw Error(`no worksheet`);return{mode:`sheet`,sheets:a,truncated:i}}function ur(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 dr(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 fr(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 pr(e,t){let n=t.toLowerCase().endsWith(`.tsv`)?` `:fr(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>=er)break}else a+=s}(a||i.length)&&(i.push(a),r.push(i));let s=r.length>=er;return{mode:`sheet`,sheets:[{name:t||`CSV`,rows:r.map(mr)}],truncated:s}}function mr(e){return e.length>tr?e.slice(0,tr):e}function hr(e){let t=new DOMParser().parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length)throw Error(`invalid XML`);return t}function gr(e,t){return Array.from(e.getElementsByTagName(t))}function _r(e,t){return gr(e,t).map(e=>e.textContent??``).join(``)}function vr(e){let t=Object.keys(e).filter(e=>/^ppt\/slides\/slide\d+\.xml$/.test(e)).sort((e,t)=>yr(e)-yr(t));if(!t.length)throw Error(`no slide`);let n=[];for(let r of t.slice(0,rr)){let t=gr(hr(Yn(e[r])),`a:p`).map(e=>_r(e,`a:t`).trim()).filter(Boolean);n.push({title:t[0]??``,lines:t.slice(1)})}return{mode:`slides`,slides:n,truncated:t.length>rr}}function yr(e){return Number(/(\d+)\.xml$/.exec(e)?.[1]??0)}function br(e,t){let n=hr(t);return e===`sheet`?Sr(n):e===`doc`?Cr(n):wr(n)}function xr(e,t,n){let r=Number(e.getAttribute(t)??`1`);return!Number.isFinite(r)||r<1?1:Math.min(r,n)}function Sr(e){let t=[],n=!1;for(let r of gr(e,`table:table`)){let e=[];for(let t of gr(r,`table:table-row`)){if(e.length>=er){n=!0;break}let r=[];for(let e of gr(t,`table:table-cell`)){if(r.length>=tr){n=!0;break}let t=gr(e,`text:p`).map(e=>e.textContent??``).join(`
|
|
572
|
+
`),i=xr(e,`table:number-columns-repeated`,tr);for(let e=0;e<(t?i:1);e+=1)r.push(t)}for(;r.length&&r[r.length-1]===``;)r.pop();let i=xr(t,`table:number-rows-repeated`,er);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 Cr(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>=nr){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 gr(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:gr(t,`table:table-row`).slice(0,er).map(e=>gr(e,`table:table-cell`).slice(0,tr).map(e=>(e.textContent??``).trim()))}):t.children.length&&i(t)}};return i(t),{mode:`blocks`,blocks:n,truncated:r}}function wr(e){let t=gr(e,`draw:page`);if(!t.length)throw Error(`no slide`);return{mode:`slides`,slides:t.slice(0,rr).map(e=>{let t=gr(e,`text:p`).map(e=>(e.textContent??``).trim()).filter(Boolean);return{title:t[0]??``,lines:t.slice(1)}}),truncated:t.length>rr}}var Tr={key:0,class:`kb-upload`},Er={key:0,class:`kb-upload__list`},Dr=[`title`],Or={class:`kb-upload__bar`},kr={class:`kb-upload__pct`},Ar={key:1,class:`kb-upload__status`},jr={key:2,class:`kb-upload__errors`},Mr=h(he({__name:`UploadProgress`,props:{queue:{},errors:{},uploading:{type:Boolean,default:!1},uploadingLabel:{default:``}},setup(e){return(t,n)=>e.queue.length||e.errors.length||e.uploading&&!e.queue.length?(S(),U(`div`,Tr,[e.queue.length?(S(),U(`ul`,Er,[(S(!0),U(j,null,I(e.queue,e=>(S(),U(`li`,{key:e.key},[G(`span`,{class:`kb-upload__name`,title:e.name},w(e.name),9,Dr),G(`span`,Or,[G(`span`,{class:`kb-upload__bar-fill`,style:W({width:`${Math.round(e.ratio*100)}%`})},null,4)]),G(`span`,kr,w(Math.round(e.ratio*100))+`%`,1)]))),128))])):e.uploading?(S(),U(`p`,Ar,w(e.uploadingLabel),1)):i(``,!0),e.errors.length?(S(),U(`ul`,jr,[(S(!0),U(j,null,I(e.errors,(e,t)=>(S(),U(`li`,{key:t},w(e.name)+` — `+w(e.reason),1))),128))])):i(``,!0)])):i(``,!0)}}),[[`__scopeId`,`data-v-06e54521`]]);function Nr(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 Pr(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 Nr(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)Nr(t,e.id).length&&a(e);return n}function Fr(e){return e.flatMap(e=>e.kind===`column`?[e.id]:Fr(e.children))}function Ir(e,t,n,r){let i=Pr(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)?Fr(i):null}var Lr={class:`kg-lead`},Rr={key:0,class:`kg-create`},zr={class:`kg-tree`},Br={key:0,class:`kg-empty`},Vr=[`draggable`,`onDragstart`,`onDragover`,`onDrop`],Hr={key:2,class:`kg-row__title`},Ur={key:3,class:`kg-row__count`},Wr={key:4,class:`kg-row__actions`},Gr=[`onClick`],Kr={class:`kg-loose__label`},qr={key:0,class:`kg-empty`},Jr=[`draggable`,`onDragstart`],Yr={class:`kg-row__title`},Xr=h(he({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(e,{emit:n}){let r=e,a=n,o=t(),s=r.t,c=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],l=P(()=>new Map(r.groups.map(e=>[e.id,e])));function d(e){return r.columns.filter(t=>(t.groupId&&l.value.has(t.groupId)?t.groupId:void 0)===e)}function f(e){return r.groups.filter(t=>(t.parentId??void 0)===e)}function p(e){return d(e).length+f(e).reduce((e,t)=>e+p(t.id),0)}let m=P(()=>Pr(r.columns,r.groups)),h=P(()=>{let e=[],t=(n,i)=>{for(let a of n){if(a.kind===`column`){if(i===0)continue;let t=r.columns.find(e=>e.id===a.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:i});continue}let n=l.value.get(a.id);n&&(e.push({kind:`group`,id:n.id,title:n.title,color:n.color,depth:i,columnCount:p(n.id)}),t(a.children,i+1))}};return t(m.value,0),e});function g(e,t){let n=Ir(r.columns,r.groups,e,t);n&&a(`intent`,{kind:`columns-reorder`,columnIds:n})}function _(e,t){return Ir(r.columns,r.groups,e,t)!==null}let v=P(()=>d(void 0)),y=x(``);function b(){let e=y.value.trim();e&&(a(`intent`,{kind:`group-add`,title:e,color:c[r.groups.length%c.length]}),y.value=``)}let C=x(null);function te(e){e.kind===`group`&&(C.value={id:e.id,title:e.title})}function D(){let e=C.value;if(!e)return;let t=e.title.trim(),n=l.value.get(e.id);t&&n&&t!==n.title&&a(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),C.value=null}function O(e,t){let n=l.value.get(e)?.color;a(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function ne(e){e.kind===`group`&&o.require({message:s(`groups.deleteConfirm`,{title:e.title}),header:s(`groups.deleteHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,accept:()=>a(`intent`,{kind:`group-delete`,groupId:e.id})})}let k=x(null),re=x(null);function ie(e,t,n){r.readOnly||(k.value={kind:e,id:t},n.dataTransfer?.setData(`text/plain`,t),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`))}function A(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=l.value.get(n)?.parentId}return!0}function M(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(re.value=null)}function ae(e,t){A(k.value,e)&&(t.preventDefault(),re.value=e??`root`)}function N(e){let t=r.columns.find(t=>t.id===e)?.groupId;return t&&l.value.has(t)?t:null}function F(e){let t=k.value,n=A(t,e);re.value=null,k.value=null,!(!t||!n)&&a(`intent`,{kind:`group-assign`,member:t,groupId:e})}function se(){a(`update:visible`,!1)}return(t,n)=>(S(),T(E(ee),{visible:e.visible,header:E(s)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":se},{default:R(()=>[G(`p`,Lr,w(E(s)(`groups.lead`)),1),e.readOnly?i(``,!0):(S(),U(`div`,Rr,[B(E(oe),{modelValue:y.value,"onUpdate:modelValue":n[0]||=e=>y.value=e,placeholder:E(s)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:V(b,[`enter`])},null,8,[`modelValue`,`placeholder`]),B(E(u),{label:E(s)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:b},null,8,[`label`])])),G(`div`,zr,[h.value.length?i(``,!0):(S(),U(`div`,Br,w(E(s)(`groups.empty`)),1)),(S(!0),U(j,null,I(h.value,t=>(S(),U(`div`,{key:`${t.kind}-${t.id}`,class:K([`kg-row`,{"kg-row--group":t.kind===`group`,"kg-row--target":re.value===t.id}]),style:W({paddingLeft:`${t.depth*1.25}rem`}),draggable:!e.readOnly,onDragstart:e=>ie(t.kind,t.id,e),onDragover:e=>ae(t.kind===`group`?t.id:N(t.id),e),onDragleave:M,onDrop:z(e=>F(t.kind===`group`?t.id:N(t.id)),[`prevent`]),onDragend:n[2]||=e=>{k.value=null,re.value=null}},[G(`i`,{class:K([t.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),t.kind===`group`?(S(),U(`span`,{key:0,class:`kg-swatch`,style:W({background:t.color||`var(--p-text-muted-color)`})},null,4)):i(``,!0),C.value&&C.value.id===t.id?(S(),T(E(oe),{key:1,modelValue:C.value.title,"onUpdate:modelValue":n[1]||=e=>C.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:V(D,[`enter`]),onBlur:D},null,8,[`modelValue`])):(S(),U(`span`,Hr,w(t.title),1)),t.kind===`group`?(S(),U(`span`,Ur,w(E(s)(`groups.columnCount`,{count:t.columnCount})),1)):i(``,!0),e.readOnly?i(``,!0):(S(),U(`div`,Wr,[B(E(u),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!_(t.id,-1),"aria-label":E(s)(`groups.moveUp`),class:`kg-move`,onClick:e=>g(t.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),B(E(u),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!_(t.id,1),"aria-label":E(s)(`groups.moveDown`),class:`kg-move`,onClick:e=>g(t.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),t.kind===`group`?(S(),U(j,{key:0},[(S(),U(j,null,I(c,e=>G(`span`,{key:e,class:K([`kg-dot`,{"kg-dot--on":t.color===e}]),style:W({background:e}),onClick:n=>O(t.id,e)},null,14,Gr)),64)),B(E(u),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>te(t)},null,8,[`onClick`]),B(E(u),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ne(t)},null,8,[`onClick`])],64)):i(``,!0)]))],46,Vr))),128))]),G(`div`,{class:K([`kg-loose`,{"kg-row--target":re.value===`root`}]),onDragover:n[4]||=e=>ae(null,e),onDragleave:M,onDrop:n[5]||=z(e=>F(null),[`prevent`])},[G(`div`,Kr,w(E(s)(`groups.loose`)),1),v.value.length?i(``,!0):(S(),U(`div`,qr,w(E(s)(`groups.looseEmpty`)),1)),(S(!0),U(j,null,I(v.value,t=>(S(),U(`div`,{key:t.id,class:`kg-row`,draggable:!e.readOnly,onDragstart:e=>ie(`column`,t.id,e),onDragend:n[3]||=e=>{k.value=null,re.value=null}},[n[6]||=G(`i`,{class:`pi pi-list kg-row__icon`},null,-1),G(`span`,Yr,w(t.title),1)],40,Jr))),128))],34)]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-48711454`]]),Zr={class:`kb-header`},Qr={class:`kb-header__search`},$r={key:1,class:`kb-header__search-more`},ei={key:1,class:`kb-header__readonly`},ti={class:`kb-boardwrap`},ni={class:`kb-band__title`},ri={class:`kb-band__count`},ii=[`data-col-id`,`draggable`,`onDragstart`,`onDragover`,`onDragleave`,`onDrop`,`onTouchstart`],ai=[`title`,`onClick`],oi={class:`kb-col__count`},si={key:0,class:`pi pi-bell kb-col__bell--on`},ci={key:1,class:`kb-col__header`},li=[`value`,`readonly`,`onBlur`],ui={class:`kb-col__header-right`},di={class:`kb-col__count`},fi=[`onClick`],pi={key:3,class:`kb-col__cards`},mi=[`data-card-id`,`draggable`,`onDragstart`,`onDragover`,`onTouchstart`,`onClick`],hi=[`onClick`],gi=[`onClick`],_i={key:0,class:`kb-col__empty`},vi=[`onClick`],yi={class:`kb-subscribe__lead`},bi={class:`kb-subscribe__legend`},xi={class:`kb-subscribe__options`},Si={class:`kb-subscribe__no`},Ci={class:`kb-subscribe__legend`},wi={class:`kb-subscribe__options`},Ti={class:`kb-subscribe__channels`},Ei={class:`kb-tpl-intro`},Di={class:`kb-tpl-list`},Oi=[`onClick`],ki={key:0,class:`kb-add-col`},Ai={key:0,class:`kb-add-col__form`},ji={class:`kb-add-col__actions`},Mi={class:`kb-filters__body`},Ni={class:`kb-filters__section`},Pi={class:`kb-side__label`},Fi={class:`kb-ops`},Ii=[`onClick`],Li={key:0,class:`kb-prio`},Ri={class:`kb-prio__value`},zi={key:1,class:`kb-side__hint`},Bi={class:`kb-filters__section`},Vi={class:`kb-side__label`},Hi={class:`kb-colors`},Ui=[`onClick`],Wi={class:`kb-filters__section`},Gi={class:`kb-side__label`},Ki={key:0,class:`pi pi-ban`},qi={class:`kb-filters__section`},Ji={class:`kb-side__label`},Yi={key:0,class:`pi pi-ban`},Xi={class:`kb-filters__section`},Zi={class:`kb-side__label`},Qi={key:0,class:`pi pi-ban`},$i={key:1,class:`kb-link__col`},ea={class:`kb-side__hint`},ta={class:`kb-archive__hint`},na={class:`kb-archive__search`},ra={key:0,class:`kb-archive__empty`},ia={key:1,class:`kb-archive__empty`},aa={key:2,class:`kb-archive__empty`},oa={key:0,class:`kb-archive__filtered`},sa={key:1,class:`kb-archive__filtered`},ca={class:`kb-archive__list`},la=[`onClick`],ua=[`onClick`],da={class:`kb-archive__meta`},fa={key:0},pa={key:1},ma={key:0,class:`kb-dialog`},ha={class:`kb-dialog__main`},ga={class:`kb-dialog__edit-content`},_a={class:`kb-dialog__field`},va={for:`kanban-card-title`,class:`kb-dialog__label`},ya={class:`kb-dialog__field`},ba={for:`kanban-card-content`,class:`kb-dialog__label`},xa={class:`kb-dialog__field`},Sa={for:`kanban-card-images`,class:`kb-dialog__label`},Ca={key:0,class:`kb-dialog__images`},wa=[`src`],Ta=[`onClick`],Ea={key:1,class:`kb-dialog__upload`},Da={class:`kb-rel`},Oa={key:0,class:`kb-rel__section`},ka={class:`kb-rel__title`},Aa={key:0,class:`kb-rel__table`},ja={class:`kb-rel__people`},Ma={class:`kb-rel__num`},Na={class:`kb-rel__actions-col`},Pa={class:`kb-rel__card`},Fa={class:`kb-rel__board`},Ia={class:`kb-rel__people`},La={key:0,class:`kb-card__assignees`},Ra=[`title`],za=[`src`,`onError`],Ba={key:1,class:`kb-rel__none`},Va={class:`kb-rel__num`},Ha={class:`kb-rel__actions-col`},Ua=[`title`],Wa=[`title`],Ga={key:1,class:`kb-rel__empty`},Ka={class:`kb-coloption`},qa={class:`kb-link__col`},Ja={key:1,class:`kb-rel__section`},Ya={class:`kb-rel__title`},Xa={key:0,class:`kb-rel__table`},Za={class:`kb-rel__people`},Qa={class:`kb-rel__num`},$a={class:`kb-rel__actions-col`},eo={class:`kb-rel__card`},to={class:`kb-rel__board`},no={class:`kb-rel__people`},ro={key:0,class:`kb-card__assignees`},io=[`title`],ao=[`src`,`onError`],oo={key:1,class:`kb-rel__none`},so={class:`kb-rel__num`},co={class:`kb-rel__actions-col`},lo=[`title`,`onClick`],uo=[`title`,`onClick`],fo={key:1,class:`kb-rel__empty`},po={class:`kb-coloption`},mo={class:`kb-link__col`},ho={key:2,class:`kb-rel__empty`},go={class:`kb-comments`},_o={key:0,class:`kb-comments__empty`},vo={key:1,class:`kb-comments__list`},yo=[`onClick`],bo={key:0,class:`pi pi-sparkles`},xo=[`src`,`onError`],So={key:3,class:`pi pi-user`},Co={class:`kb-comments__body`},wo={class:`kb-comments__meta`},To={class:`kb-comments__author`},Eo={class:`kb-comments__time`},Do={key:0,class:`kb-comments__edited`},Oo={key:1,class:`kb-comments__tools`},ko=[`title`,`onClick`],Ao=[`title`,`onClick`],jo={class:`kb-comments__actions`},Mo=[`onClick`,`innerHTML`],No=[`onClick`],Po=[`onKeydown`],Fo={class:`kb-comments__actions`},Io=[`title`],Lo={class:`kb-comments__hint`},Ro={class:`kb-history`},zo={key:0,class:`kb-history__empty`},Bo={key:1,class:`kb-history__timeline`},Vo=[`onClick`],Ho={class:`kb-history__icon`},Uo={class:`kb-history__body`},Wo={class:`kb-history__label`},Go={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},Ko={key:0,class:`kb-history__detail`},qo={class:`kb-history__time`},Jo={class:`kb-side`},Yo={key:0,class:`kb-side__block`},Xo={class:`kb-side__label`},Zo=[`title`],Qo=[`src`,`onError`],$o={class:`kb-assignee`},es=[`src`,`onError`],ts={class:`kb-side__hint`},ns={class:`kb-side__block`},rs={class:`kb-side__label`},is={key:0,class:`kb-prio__value`},as={key:0,class:`kb-prio`},os=[`title`],ss={key:2,class:`kb-side__hint`},cs={class:`kb-side__block`},ls={class:`kb-side__label`},us={class:`kb-deadline`},ds=[`title`],fs={key:0,class:`kb-side__hint`},ps={class:`kb-side__block`},ms={class:`kb-side__label`},hs={class:`kb-groups__option`},gs={class:`kb-side__hint`},_s={key:1,class:`kb-side__block`},vs={class:`kb-side__label`},ys={class:`kb-tree`},bs={key:0,class:`pi pi-angle-right kb-tree__branch`},xs=[`title`,`onClick`],Ss={class:`kb-tree__label`},Cs={class:`kb-side__block`},ws={class:`kb-side__label`},Ts={class:`kb-colors`},Es=[`disabled`],Ds=[`disabled`,`onClick`],Os={class:`kb-side__hint`},ks={key:2,class:`kb-side__block`},As={class:`kb-side__label`},js={class:`kb-side__hint`},Ms={key:3,class:`kb-side__block`},Ns={class:`kb-side__label`},Ps={class:`kb-colgroup__label`},Fs={class:`kb-coloption`},Is={key:0,class:`pi pi-arrow-right kb-coloption__away`},Ls={key:0,class:`kb-side__hint`},Rs={class:`kb-side__block kb-side__meta`},zs={key:0},Bs={key:4,class:`kb-side__block`},Vs={class:`kb-side__label`},Hs={class:`kb-side__convs`},Us=[`title`,`onClick`],Ws={class:`kb-side__conv-label`},Gs={key:5,class:`kb-side__block`},Ks={class:`kb-side__label`},qs={class:`kb-side__actions`},Js={key:6,class:`kb-side__block kb-side__danger`},Ys={class:`kb-dialog__footer`},Xs={key:0,class:`kb-dialog__unsaved`},Zs={key:0,class:`kb-viewer`},Qs=[`src`,`alt`],$s=[`src`,`title`],ec=[`src`],tc=[`src`],nc={key:4,class:`kb-viewer__office`},rc={key:0,class:`kb-viewer__tabs`},ic=[`onClick`],ac={class:`kb-viewer__scroll`},oc={key:0,class:`kb-viewer__table`},sc={key:1,class:`kb-viewer__empty`},cc={key:5,class:`kb-viewer__office`},lc={class:`kb-viewer__scroll kb-viewer__doc`},uc={key:0},dc={key:1},fc={key:2},pc={key:3,class:`kb-viewer__li`},mc={key:4,class:`kb-viewer__table`},hc={key:5},gc={key:0,class:`kb-viewer__empty`},_c={key:6,class:`kb-viewer__office`},vc={class:`kb-viewer__scroll kb-viewer__slides`},yc={class:`kb-viewer__slide-no`},bc={key:0},xc={key:7,class:`kb-viewer__office`},Sc={key:0,class:`kb-viewer__empty`},Cc={key:8,class:`kb-viewer__text`},wc={key:9,class:`kb-viewer__truncated`},Tc={key:0,class:`kb-colmenu`},Ec={class:`kb-colmenu__host`},$=`\0void`,Dc=26,Oc=512*1024,kc=55*1024*1024,Ac=5*1024*1024,jc=400,Mc=8,Nc=60,Pc=12,Fc=h(he({__name:`KanbanBoard`,props:{columns:{},columnGroups:{default:()=>[]},name:{},readOnly:{type:Boolean,default:!1},t:{},resolveConversationId:{type:Function,default:void 0},currentUserId:{default:void 0},members:{default:()=>[]},avatarUrl:{type:Function,default:void 0},uploadImage:{type:Function,default:void 0},fetchAttachment:{type:Function,default:void 0},columnSubscriptions:{default:void 0},deleteAttachment:{type:Function,default:void 0},templates:{default:()=>[]},loadHistory:{type:Function,default:void 0},histories:{default:void 0},addComment:{type:Function,default:void 0},editComment:{type:Function,default:void 0},removeComment:{type:Function,default:void 0},moveCard:{type:Function,default:void 0},otherBoards:{default:()=>[]},moveCardToBoard:{type:Function,default:void 0},cardLinks:{default:()=>[]},linkedCards:{default:()=>[]},setCardParent:{type:Function,default:void 0},archivedCards:{default:()=>[]},loadingArchive:{type:Boolean,default:!1},archiveTruncated:{type:Boolean,default:!1},searchMatches:{default:null},searchTruncated:{type:Boolean,default:!1}},emits:[`intent`,`back`,`open-conversation`,`card-open`,`update-column-subscription`,`open-linked-card`,`load-archive`,`search-cards`],setup(e,{expose:n,emit:r}){let a=e,o=P(()=>a.loadHistory!==void 0),c=r,l=t(),f=a.t;function p(){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 h(e){return JSON.parse(JSON.stringify(e))}let g=x(h(a.columns));F(()=>a.columns,e=>{g.value=h(e),Kt()});function v(e,t){g.value=e,t&&c(`intent`,t)}let b=x(``),C=x(!1),te=x(``),D=P(()=>[...g.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),O=x(!1),k=x(`gte`),A=x(null),M=x([]),ae=x([]),N=x([]),ce=x(!1),ue=x(!1),de=x(!1),fe=x([]),pe=P(()=>{let e=new Set;for(let t of fe.value){for(let n of tn(t,`up`))e.add(n);for(let n of tn(t,`down`))e.add(n)}return e}),me=P(()=>A.value!==null||k.value===`none`),he=P(()=>(me.value?1:0)+(M.value.length?1:0)+(ae.value.length||ce.value?1:0)+(N.value.length||ue.value?1:0)+(fe.value.length||de.value?1:0));function ge(){A.value=null,k.value=`gte`,M.value=[],ae.value=[],N.value=[],fe.value=[],ce.value=!1,ue.value=!1,de.value=!1}function _e(e){if(k.value===`none`){if(e.priority!==void 0)return!1}else if(A.value!==null){let t=e.priority;if(t===void 0||k.value===`eq`&&t!==A.value||k.value===`gte`&&t<A.value||k.value===`lte`&&t>A.value)return!1}if(M.value.length&&!M.value.includes(e.color??``))return!1;let t=e.groups??[];if(ae.value.length||ce.value){let e=ae.value.length&&t.some(e=>ae.value.includes(e)),n=ce.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(N.value.length||ue.value){let e=N.value.length&&n.some(e=>N.value.includes(e.id)),t=ue.value&&n.length===0;if(!e&&!t)return!1}if(fe.value.length||de.value){let t=fe.value.length&&pe.value.has(e.id),n=de.value&&!Zt(e.id)&&Qt(e.id).length===0;if(!t&&!n)return!1}return!0}let ve=P({get:()=>ce.value?[$,...ae.value]:ae.value,set:e=>{ce.value=e.includes($),ae.value=e.filter(e=>e!==$)}}),ye=P(()=>[$,...lt.value]),be=P({get:()=>ue.value?[$,...N.value]:N.value,set:e=>{ue.value=e.includes($),N.value=e.filter(e=>e!==$)}}),Se=P(()=>[{userId:$,name:f(`filters.noAssignees`)},...a.members]),Ce=P({get:()=>de.value?[$,...fe.value]:fe.value,set:e=>{de.value=e.includes($),fe.value=e.filter(e=>e!==$)}}),Te=P(()=>[{id:$,title:f(`filters.noFamily`),column:``},...D.value.flatMap(e=>e.cards.map(t=>({id:t.id,title:t.title,column:e.title}))),...a.archivedCards.map(e=>({id:e.id,title:e.title,column:f(`archive.title`)}))]),Ee=P(()=>{let e=a.searchMatches,t=he.value>0;return!e&&!t?D.value:D.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||_e(n)))}))}),De=x(!1),Oe=P(()=>new Map((a.columnGroups??[]).map(e=>[e.id,e])));function ke(e){let t=[],n=new Set,r=e;for(;r&&Oe.value.has(r)&&!n.has(r);)n.add(r),t.unshift(r),r=Oe.value.get(r).parentId;return t}let Ae=P(()=>{let e=new Map;for(let t of Ee.value)ke(t.groupId).forEach((n,r)=>{let i=Oe.value.get(n),a=e.get(n)??{id:n,title:i.title,color:i.color,depth:r,colIds:[]};a.colIds.push(t.id),e.set(n,a)});return[...e.values()]}),Me=P(()=>Ae.value.length?(Math.max(...Ae.value.map(e=>e.depth))+1)*Dc:0),Pe=x(null),He=x([]);function Ue(){let e=Pe.value;if(!e||!Ae.value.length){He.value=[];return}He.value=Ae.value.flatMap(t=>{let n=t.colIds.map(t=>e.querySelector(`[data-col-id="${CSS.escape(t)}"]`)).filter(e=>e!==null);if(!n.length)return[];let r=Math.min(...n.map(e=>e.offsetLeft)),i=Math.max(...n.map(e=>e.offsetLeft+e.offsetWidth)),a=n.reduce((e,t)=>e+(Ee.value.find(e=>e.id===t.dataset.colId)?.cards.length??0),0);return[{id:t.id,title:t.title,color:t.color,top:t.depth*Dc,left:r,width:i-r,count:a}]})}let We=null;d(()=>{if(Ue(),typeof ResizeObserver<`u`&&Pe.value){We=new ResizeObserver(()=>Ue()),We.observe(Pe.value);for(let e of Pe.value.querySelectorAll(`.kb-col`))We.observe(e)}}),ie(()=>We?.disconnect()),F(()=>[Ee.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),a.columnGroups],()=>{ne(()=>{if(Ue(),!(!We||!Pe.value))for(let e of Pe.value.querySelectorAll(`.kb-col`))We.observe(e)})},{deep:!0});function Ge(e){return g.value.find(t=>t.id===e)?.title??``}function Ke(e,t,n){e.history=[...e.history??[],{type:t,timestamp:new Date().toISOString(),detail:n}]}function qe(){if(a.readOnly||!te.value.trim())return;let e=te.value.trim();v([...g.value,{id:p(),title:e,order:g.value.length,cards:[]}],{kind:`column-add`,title:e}),te.value=``,C.value=!1}function Je(e){if(a.readOnly)return;let t=g.value.find(t=>t.id===e);l.require({message:f(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:f(`column.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>v(g.value.filter(t=>t.id!==e),{kind:`column-delete`,columnId:e})})}function Ye(e,t){a.readOnly||!t.trim()||v(g.value.map(n=>n.id===e?{...n,title:t.trim()}:n),{kind:`column-rename`,columnId:e,title:t.trim()})}let q=x(null),Xe=x(``),Ze=x(``),Qe=x([]),et=x([]),tt=x(!1),J=x([]),nt=x([]),rt=0,it=x([]),at=m(new Map),ot=x([]),st=x([]),ct=x([]),lt=P(()=>{let e=new Set;for(let t of g.value)for(let n of t.cards)for(let t of n.groups??[])e.add(t);for(let t of a.archivedCards)for(let n of t.groups??[])e.add(n);return[...e].sort((e,t)=>e.localeCompare(t))});function ut(e){let t=e.query.trim(),n=new Set(st.value),r=lt.value.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t.toLowerCase()))),i=lt.value.some(e=>e.toLowerCase()===t.toLowerCase());ct.value=t&&!i&&!n.has(t)?[t,...r]:r}let dt=x(null),ft=x(null),pt=P(()=>{let e=mt(ft.value),t=e?Gt(e):null;return t===null?``:t<0?f(`editor.deadlineOverdue`,{count:-t}):t===0?f(`editor.deadlineToday`):f(`editor.deadlineIn`,{count:t})});function mt(e){if(!e)return null;let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function ht(e){if(!e)return null;let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r,12)}function gt(){a.readOnly||(dt.value=5)}function _t(e){let t=e.trim();!t||st.value.includes(t)||(st.value=[...st.value,t])}let vt=x(!1);function yt(e){let t=e.target?.closest(`.p-autocomplete`)?.querySelector(`input`);return t instanceof HTMLInputElement?t:null}function bt(){vt.value=!0}function xt(e){let t=yt(e);if(t){if(e.type===`keydown`){if(t.getAttribute(`aria-activedescendant`))return;St(t);return}vt.value=!1,setTimeout(()=>{if(vt.value){vt.value=!1,t.value=``;return}St(t)},0)}}function St(e){e.value.trim()&&(_t(e.value),e.value=``)}let Ct=x(``),wt=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],Tt=x(``),Dt=x(`edit`),Ot=x(``),kt=x([]),At=x(null),jt=x(null),Mt=x(null),Nt=x(``);async function Pt(){await ne(),jt.value?.scrollIntoView({block:`end`})}F(q,e=>c(`card-open`,e));let Ft=x(null),It=x(`bottom`);function Lt(e,t=`bottom`){if(!a.readOnly){if(It.value=t,a.templates.length===0){zt(e,``);return}Ft.value=e}}function Rt(e){let t=Ft.value;Ft.value=null,t&&zt(t,e?.content??``)}function zt(e,t){let n=g.value.find(t=>t.id===e);if(!n)return;let r=new Date().toISOString();Bt(e,{id:p(),title:f(`card.defaultTitle`),markdown:t,images:[],order:It.value===`top`?0:n.cards.length,...o.value?{}:{history:[{type:`created`,timestamp:r,detail:f(`card.inColumn`,{name:Ge(e)})}]},createdAt:r,updatedAt:r})}function Bt(e,t){if(Fn(),q.value={colId:e,card:{...t,history:[...t.history??[]]}},a.loadHistory&&xn(t.id)){let n=a.histories?.[t.id];n&&(q.value={colId:e,card:{...t,history:n}}),a.loadHistory(t.id)}Xe.value=t.title,Ze.value=t.markdown??``,Qe.value=[...t.images],et.value=[...t.attachments??[]],J.value=[],it.value=[],Ot.value=``,kt.value=[],Pn(et.value),Pn((t.history??[]).flatMap(e=>e.attachments??[])),ot.value=(t.assignees??[]).map(e=>e.id),Ct.value=t.color??``,st.value=[...t.groups??[]],dt.value=t.priority??null,ft.value=ht(t.deadline),Tt.value=e,Dt.value=`edit`}F(()=>q.value?a.histories?.[q.value.card.id]:void 0,e=>{let t=q.value;!e||!t||t.card.history===e||(q.value={colId:t.colId,card:{...t.card,history:e}},Pn(e.flatMap(e=>e.attachments??[])))});let Vt=P(()=>{let e=q.value;return e?!xn(e.card.id):!1}),Ht=P(()=>{let e=q.value;if(!e)return!1;if(Vt.value)return!0;let t=e.card,n=(e,t)=>JSON.stringify(e)===JSON.stringify(t);return Xe.value!==t.title||Ze.value!==(t.markdown??``)||Tt.value!==e.colId||!n(Qe.value,t.images)||!n(et.value,t.attachments??[])||!n(ot.value,(t.assignees??[]).map(e=>e.id))||Ct.value!==(t.color??``)||!n(st.value,t.groups??[])||dt.value!==(t.priority??null)||mt(ft.value)!==(t.deadline??null)}),Ut=P(()=>Ht.value||Ot.value.trim().length>0||kt.value.length>0||Mt.value!==null);function Wt(){if(!Ut.value){Jt();return}l.require({message:f(`editor.confirmDiscardMessage`),header:f(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:f(`editor.discard`),rejectLabel:f(`editor.keepEditing`),accept:()=>Jt()})}function Kt(){let e=q.value;if(!e)return;let t=g.value.flatMap(e=>e.cards).find(t=>t.id===e.card.id)??bn.value.get(e.card.id);if(!t)return;if(!Ht.value){let n=g.value.find(e=>e.cards.some(e=>e.id===t.id))?.id??e.colId;q.value={colId:n,card:{...t,history:e.card.history}},Xe.value=t.title,Ze.value=t.markdown??``,Qe.value=[...t.images],et.value=[...t.attachments??[]],ot.value=(t.assignees??[]).map(e=>e.id),Ct.value=t.color??``,st.value=[...t.groups??[]],dt.value=t.priority??null,ft.value=ht(t.deadline),Tt.value=n}if(t.history===void 0)return;let n=q.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));q.value={colId:n.colId,card:{...n.card,history:a}}}function qt(){let e=it.value;if(it.value=[],a.deleteAttachment)for(let t of e)a.deleteAttachment(t)}function Jt(){q.value=null,ar(),qn(),Fn(),qt()}function Yt(){if(a.readOnly||!q.value)return;let{colId:e,card:t}=q.value,n=Xe.value||f(`card.untitled`),r=o.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!o.value&&n!==t.title&&t.title!==f(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!o.value&&Ze.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let s=o.value?0:Qe.value.length-t.images.length;s>0?r.push({type:`image_added`,timestamp:i(),detail:`${s} image(s) added`}):s<0&&r.push({type:`image_removed`,timestamp:i(),detail:`${Math.abs(s)} image(s) removed`});let l=ot.value.map(e=>({id:e,name:a.members.find(t=>t.userId===e)?.name??e})),u=o.value?[]:l.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));u.length&&r.push({type:`edited`,timestamp:i(),detail:f(`editor.assignedDetail`,{names:u.map(e=>e.name).join(`, `)})});let d=[...new Set(st.value.map(e=>e.trim()).filter(Boolean))],{color:p,priority:m,groups:h,deadline:_,...y}=t,b={...y,title:n,markdown:Ze.value,images:Qe.value,attachments:et.value,assignees:l,...Ct.value?{color:Ct.value}:{},...d.length?{groups:d}:{},...dt.value===null?{}:{priority:dt.value},...mt(ft.value)?{deadline:mt(ft.value)}:{},history:o.value?t.history:r,updatedAt:i()},x=Tt.value||e;!o.value&&x!==e&&r.push({type:`moved`,timestamp:i(),detail:`${Ge(e)} → ${Ge(x)}`});let ee=!xn(b.id),S=ee?{kind:`card-add`,columnId:x,card:b,placement:It.value}:{kind:`card-update`,cardId:b.id,patch:{title:b.title,markdown:b.markdown,priority:b.priority??null,color:b.color??null,deadline:b.deadline??null,groups:b.groups??[],assignees:l.map(e=>e.id),attachments:b.attachments,images:b.images}};if(!ee&&x!==e&&c(`intent`,{kind:`card-move`,cardId:b.id,toColumnId:x}),Sn.value){c(`intent`,S),c(`load-archive`,_n.value,vn.value),it.value=[],q.value={colId:e,card:b};return}v(g.value.map(t=>{if(t.id===e&&x!==e)return{...t,cards:t.cards.filter(e=>e.id!==b.id)};if(t.id!==x)return t;if(t.cards.some(e=>e.id===b.id))return{...t,cards:t.cards.map(e=>e.id===b.id?b:e)};let n=It.value===`top`?[b,...t.cards]:[...t.cards,b];return{...t,cards:n.map((e,t)=>({...e,order:t}))}}),S),it.value=[],q.value={colId:x,card:b},Tt.value=x}function Xt(e,t){for(let n of g.value){let r=n.cards.find(e=>e.id===t);if(r)return{cardId:t,boardId:e,title:r.title,boardName:f(`editor.relationsHereBoard`),columnTitle:n.title,here:!0,assignees:r.assignees??[],commentCount:r.commentCount??(r.history??[]).filter(e=>e.type===`comment`).length}}let n=a.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 Zt(e){return a.cardLinks.find(t=>t.childCardId===e)}function Qt(e){return a.cardLinks.filter(t=>t.parentCardId===e)}function $t(e){return Qt(e).length}let Y=P(()=>{let e=q.value;if(!e)return null;let t=Zt(e.card.id);return t?Xt(t.parentBoardId,t.parentCardId):null}),en=P(()=>{let e=q.value;return e?Qt(e.card.id).flatMap(e=>{let t=Xt(e.childBoardId,e.childCardId);return t?[t]:[]}):[]});function tn(e,t){let n=new Set([e]),r=[e];for(let e=0;e<r.length&&e<=a.cardLinks.length;e+=1){let i=t===`down`?Qt(r[e]).map(e=>e.childCardId):[Zt(r[e])?.parentCardId].filter(e=>!!e);for(let e of i)n.has(e)||(n.add(e),r.push(e))}return n}function nn(e){return D.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let rn=P(()=>{let e=q.value;return e?nn(tn(e.card.id,`down`)):[]}),an=P(()=>{let e=q.value;if(!e)return[];let t=tn(e.card.id,`up`);for(let n of Qt(e.card.id))t.add(n.childCardId);return nn(t)});function on(e){let t=q.value;!t||a.readOnly||!a.setCardParent||a.setCardParent(t.card.id,e)}function sn(e){let t=q.value;!t||!e||a.readOnly||!a.setCardParent||a.setCardParent(e,t.card.id)}function ln(e){a.readOnly||!a.setCardParent||a.setCardParent(e,null)}let un=P(()=>!a.readOnly&&a.setCardParent!==void 0&&!!q.value&&g.value.some(e=>e.cards.some(e=>e.id===q.value?.card.id))),dn=P(()=>{let e=q.value;if(!e)return[];let t=[],n=new Set([e.card.id]),r=e.card.id;for(let e=0;e<=a.cardLinks.length;e+=1){let e=Zt(r);if(!e||n.has(e.parentCardId))break;let i=Xt(e.parentBoardId,e.parentCardId);if(!i)break;n.add(e.parentCardId),t.push(i),r=e.parentCardId}return t.reverse()}),fn=P(()=>(Y.value?1:0)+en.value.length);function pn(e,t){for(let t of g.value){let n=t.cards.find(t=>t.id===e);if(n){Bt(t.id,n);return}}t&&c(`open-linked-card`,{boardId:t,cardId:e})}let mn=P(()=>{let e=D.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:f(`editor.columnGroupHere`),items:e}];if(!a.readOnly&&a.moveCardToBoard)for(let e of a.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 hn(e){let[t,n]=e.includes(`:`)?e.split(`:`):[``,e];if(!t){Tt.value=n??``;return}let r=q.value,i=a.otherBoards.find(e=>e.id===t),o=i?.columns.find(e=>e.id===n);a.readOnly||!r||!i||!o||!a.moveCardToBoard||l.require({message:f(`editor.moveToBoardConfirm`,{board:i.name,column:o.title}),header:f(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;Jt(),a.moveCardToBoard?.(e,t,o.id)}})}let X=x(!1),_n=x(``),vn=x(``),yn=P(()=>[{id:``,title:f(`archive.allColumns`)},...g.value.map(e=>({id:e.id,title:e.title}))]),bn=P(()=>new Map(a.archivedCards.map(e=>[e.id,e])));function xn(e){return g.value.some(t=>t.cards.some(t=>t.id===e))||bn.value.has(e)?!0:!!(q.value?.card.id===e&&q.value.card.archivedAt)}let Sn=P(()=>!!(q.value&&(q.value.card.archivedAt||bn.value.has(q.value.card.id))));function Cn(e){Bt(e.archivedFrom?.columnId??``,e)}let wn=P(()=>he.value?a.archivedCards.filter(_e):a.archivedCards),Tn=P(()=>a.archivedCards.length-wn.value.length),En=null;function Dn(){X.value=!0,c(`load-archive`,_n.value,vn.value)}F(_n,e=>{X.value&&(En&&clearTimeout(En),En=setTimeout(()=>c(`load-archive`,e,vn.value),250))}),F(vn,e=>{X.value&&(En&&clearTimeout(En),c(`load-archive`,_n.value,e))});let On=null;F(b,e=>{if(On&&clearTimeout(On),!e.trim()){c(`search-cards`,``);return}On=setTimeout(()=>c(`search-cards`,e),250)}),ie(()=>{On&&clearTimeout(On),En&&clearTimeout(En)});function Z(e,t){a.readOnly||(v(g.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-archive`,cardId:t}),q.value?.card.id===t&&Jt())}function kn(e){a.readOnly||c(`intent`,{kind:`card-unarchive`,cardId:e})}function An(e,t){if(a.readOnly)return;let n=g.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);l.require({message:f(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:f(`editor.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{v(g.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-delete`,cardId:t}),Jt()}})}function jn(){if(a.readOnly||!q.value||!Ot.value.trim()&&!kt.value.length)return;let{colId:e,card:t}=q.value,n=kt.value;if(a.addComment){let e=Ot.value.trim(),r=t.id;Ot.value=``,it.value=it.value.filter(e=>!n.some(t=>t.id===e.id)),kt.value=[],a.addComment(r,e,n.length?{attachments:n}:{}).then(t=>{t||(Ot.value.trim()||(Ot.value=e),kt.value=[...n,...kt.value])});return}}let Mn=/^image\/(png|jpeg|webp|gif)$/;function Nn(e){return at.get(e.id)}async function Pn(e){if(a.fetchAttachment)for(let t of e){if(!Mn.test(t.contentType)||at.has(t.id))continue;let e=await a.fetchAttachment(t);e&&at.set(t.id,e)}}function Fn(){for(let e of at.values())URL.revokeObjectURL(e);at.clear()}let In=/^video\/(mp4|webm|ogg)$/,Ln=/^audio\/(mpeg|mp3|ogg|wav|x-wav|webm)$/,Rn=/^(text\/|application\/(json|xml|xhtml\+xml|javascript|x-yaml|yaml)$)/;function zn(e){let t=e.contentType||``;if(Mn.test(t))return`image`;if(t===`application/pdf`)return`pdf`;if(In.test(t))return`video`;if(Ln.test(t))return`audio`;let n=or(t,e.name);return n?e.size<=20971520?n:null:Rn.test(t)&&e.size<=Oc?`text`:null}let Q=x(null),Bn=x(0),Vn=P(()=>{let e=Q.value?.office;return e?.mode===`sheet`?e.sheets[Bn.value]??e.sheets[0]??null:null}),Hn=x(null),Un=x(!1);F([()=>Q.value?.office,Hn],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),Un.value=!1;try{await e.render(t)}catch{Un.value=!0}}});async function Wn(e){let t=zn(e),n=at.get(e.id),r=n??await a.fetchAttachment?.(e)??null;if(!r){J.value=[...J.value,{name:e.name,reason:f(`editor.downloadFailed`)}];return}if(!t){Gn(r,e.name,!n);return}let i,o;if(t===`text`)try{i=await(await fetch(r)).text()}catch{Gn(r,e.name,!n);return}else if(t===`sheet`||t===`doc`||t===`slides`)try{o=await sr(t,await(await fetch(r)).arrayBuffer(),e.name,e.contentType||``)}catch{Gn(r,e.name,!n);return}qn(),Bn.value=0,Q.value={file:e,url:r,kind:t,text:i,office:o,cached:!!n}}function Gn(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 Kn(){let e=Q.value;e&&Gn(e.url,e.file.name,!1)}function qn(){let e=Q.value;Q.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Jn(e){et.value=et.value.filter((t,n)=>n!==e)}let Yn=m(new Set);function Xn(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let Zn=P(()=>a.members.map(e=>({id:e.userId,label:e.name})));function Qn(e){return a.members.find(t=>t.userId===e)?.name??e}function $n(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 er(e){return!!a.currentUserId&&e.authorUser?.id===a.currentUserId}function tr(e){return e.author===`ai`?null:e.authorUser?.id??null}function nr(e){return e.author===`ai`?f(`comments.authorAi`):er(e)?f(`comments.authorYou`):e.authorUser?.name??f(`comments.authorYou`)}function rr(e){if(!q.value)return;let{colId:t,card:n}=q.value;q.value={colId:t,card:{...n,history:e}},v(g.value.map(r=>r.id===t?{...r,cards:r.cards.map(t=>t.id===n.id?{...t,history:e}:t)}:r))}function ir(e){Mt.value=e.id??null,Nt.value=e.detail??``}function ar(){Mt.value=null,Nt.value=``}function cr(){let e=Mt.value,t=Nt.value.trim();if(a.readOnly||!e||!t||!q.value)return;let{card:n}=q.value,r=(n.history??[]).map(n=>n.id===e?{...n,detail:t,editedAt:new Date().toISOString()}:n);if(a.editComment){let i=(n.history??[]).find(t=>t.id===e);a.editComment(n.id,e,t,i?.attachments),rr(r)}ar()}function lr(e){return e.id??`${e.type}|${e.timestamp}`}function ur(e){return e.type===`comment`&&e.author===`ai`}function dr(e){return er(e)||ur(e)}function fr(e){if(a.readOnly||!dr(e)||!q.value)return;let t=lr(e);l.require({message:f(`comments.confirmDeleteMessage`),header:f(`comments.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{let n=q.value;if(!n)return;let r=(n.card.history??[]).filter(e=>lr(e)!==t);a.removeComment&&e.id&&(a.removeComment(n.card.id,e.id),rr(r))}})}let pr=P(()=>a.columnSubscriptions!==void 0),mr=x(null),hr=[`entered`,`left`,`created`,`deleted`],gr=[`email`,`chat`],_r=[...hr],vr=[...gr],yr=x([..._r]),br=x([...vr]);function xr(e){return a.columnSubscriptions?.[e]??null}function Sr(e){return xr(e)!==null}let Cr=m(new Set),wr=new Map,Tr=null;function Er(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?Cr.add(e):Cr.delete(e)}function Dr(e,t){let n=wr.get(t);if(n&&n!==e&&Tr?.unobserve(n),!(e instanceof HTMLElement)){wr.delete(t),Cr.delete(t);return}wr.set(t,e),typeof ResizeObserver<`u`&&(Tr??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of wr)n===t.target&&Er(e,n)}),Tr.observe(e)),Er(t,e)}F(()=>g.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void ne(()=>{for(let[e,t]of wr)Er(e,t)})),ie(()=>Tr?.disconnect());function Or(e,t){return{value:Cr.has(e)?t:``,showDelay:0,hideDelay:0}}let kr=x(null),Ar=x(null);function jr(e,t){Ar.value=t,kr.value?.toggle(e)}function Nr(e){let t=Ar.value;t&&(kr.value?.hide(),e(t.id))}function Pr(e){let t=xr(e);yr.value=t?[...t.kinds]:[..._r],br.value=t?[...t.channels]:[...vr],mr.value=e}let Fr=P(()=>yr.value.length>0&&br.value.length>0);function Ir(){let e=mr.value;!e||!Fr.value||(c(`update-column-subscription`,{columnId:e,subscription:{kinds:[...yr.value],channels:[...br.value]}}),mr.value=null)}function Lr(){let e=mr.value;e&&(c(`update-column-subscription`,{columnId:e,subscription:null}),mr.value=null)}let Rr=P(()=>a.columns.find(e=>e.id===mr.value)??null),zr=m(new Set),Br=m(new Set),Vr=P(()=>`runeya.kanban.collapsedColumns.${a.name}`),Hr=P(()=>`runeya.kanban.expandedColumns.${a.name}`);function Ur(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 Wr(){Ur(Vr.value,zr),Ur(Hr.value,Br)}function Gr(){try{window.localStorage.setItem(Vr.value,JSON.stringify([...zr])),window.localStorage.setItem(Hr.value,JSON.stringify([...Br]))}catch{}}Wr(),F(Vr,Wr);function Kr(e){let t=a.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function qr(e){return zr.has(e)?!0:Kr(e)&&!Br.has(e)}function Jr(e){qr(e)?(zr.delete(e),Kr(e)&&Br.add(e)):(Br.delete(e),Kr(e)||zr.add(e)),Gr()}let Yr=P(()=>(q.value?.card.history??[]).filter(e=>e.type===`comment`));F([Dt,Yr],([e])=>{e===`comments`&&(Pt(),qc())}),F(()=>q.value?.card.id,()=>{Rc.clear(),zc.clear()});function Fc(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 Ic(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Fc(t),!0):!1}function Lc(e){return e?re.sanitize(s.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 Rc=m(new Set),zc=m(new Set);function Bc(e,t){return e.id??`i${t}`}function Vc(e,t){return Rc.has(Bc(e,t))}function Hc(e,t){let n=Bc(e,t);return zc.has(n)||Rc.has(n)}function Uc(e,t){let n=Bc(e,t);Rc.has(n)?Rc.delete(n):Rc.add(n)}function Wc(e,t,n){Ic(n)||Yc(e)||Hc(e,t)&&(n.stopPropagation(),Uc(e,t))}let Gc=new Map;function Kc(e,t,n){let r=Bc(t,n);if(!(e instanceof HTMLElement)){Gc.delete(r);return}Gc.set(r,e),!Rc.has(r)&&(e.scrollHeight-e.clientHeight>1?zc.add(r):zc.delete(r))}async function qc(){await ne();for(let[e,t]of Gc)Rc.has(e)||(t.scrollHeight-t.clientHeight>1?zc.add(e):zc.delete(e))}function Jc(e){return a.resolveConversationId?a.resolveConversationId(e):e.conversationId??null}function Yc(e){return!!Jc(e)}let Xc=P(()=>{let e=q.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=Jc(e);if(!t||n.has(t))continue;n.add(t);let i=e.detail??``,a=i.includes(` — `)?i.slice(0,i.lastIndexOf(` — `)).trim():``,o=el(e.timestamp);r.push({id:t,label:o,title:a||$c.value[e.type]})}return r});function Zc(e){let t=Jc(e);t&&c(`open-conversation`,t)}let Qc={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`},$c=P(()=>({created:f(`history.events.created`),edited:f(`history.events.edited`),moved:f(`history.events.moved`),image_added:f(`history.events.image_added`),image_removed:f(`history.events.image_removed`),title_changed:f(`history.events.title_changed`),archived:f(`history.events.archived`),unarchived:f(`history.events.unarchived`),conversation_started:f(`history.events.conversation_started`),scenario_started:f(`history.events.scenario_started`),comment:f(`history.events.comment`)}));function el(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}`}function tl(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 nl(e){let t=[];for(let n of e){if(n.size===0){J.value=[...J.value,{name:n.name,reason:f(`editor.uploadEmpty`)}];continue}if(n.size>kc){J.value=[...J.value,{name:n.name,reason:f(`editor.uploadTooLarge`)}];continue}if(!a.uploadImage){J.value=[...J.value,{name:n.name,reason:f(`editor.uploadUnavailable`)}];continue}let e=`${rt+=1}`;nt.value=[...nt.value,{key:e,name:n.name,ratio:0}];try{let r=await a.uploadImage(n,t=>{nt.value=nt.value.map(n=>n.key===e?{...n,ratio:t}:n)});r?(t.push(r),it.value=[...it.value,r]):J.value=[...J.value,{name:n.name,reason:f(`editor.uploadFailed`)}]}finally{nt.value=nt.value.filter(t=>t.key!==e)}}return t}async function rl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,tt.value=!0,J.value=[];try{let e=await nl(n);kt.value=[...kt.value,...e],Pn(e)}finally{tt.value=!1}}async function il(e,t){if(!(a.readOnly||!e.length)){tt.value=!0,J.value=[];try{let n=await nl(e);if(!n.length)return;t===`comment`?kt.value=[...kt.value,...n]:et.value=[...et.value,...n],Pn(n)}finally{tt.value=!1}}}function al(e){kt.value=kt.value.filter((t,n)=>n!==e)}async function ol(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,tt.value=!0,J.value=[],nt.value=[];try{if(a.uploadImage){let e=await nl(n);et.value=[...et.value,...e],Pn(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>Ac){J.value=[...J.value,{name:e.name,reason:f(`editor.uploadUnavailable`)}];continue}let t=await tl(e);if(!t){J.value=[...J.value,{name:e.name,reason:f(`editor.uploadFailed`)}];continue}Qe.value=[...Qe.value,t],At.value?.insertImage(t)}}finally{tt.value=!1}}function sl(e){l.require({message:f(`editor.confirmRemoveImageMessage`),header:f(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{Qe.value=Qe.value.filter((t,n)=>n!==e)}})}let cl=x(null),ll=x(null),ul=null,dl=null,fl=`before`,pl=null,ml=`before`,hl=null,gl=null,_l=null,vl=[`kb-card--drop-before`,`kb-card--drop-after`],yl=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function bl(e,t){hl&&hl!==e&&hl.classList.remove(...vl),hl=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function xl(e){gl&&gl!==e&&gl.classList.remove(`kb-col--dragover`),gl=e,e?.classList.add(`kb-col--dragover`)}function Sl(e,t){_l&&_l!==e&&_l.classList.remove(...yl),_l=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function Cl(){bl(null,`before`),xl(null),Sl(null,`before`)}function wl(e){return jl.value?.querySelector(`.kb-col[data-col-id="${CSS.escape(e)}"]`)??null}let Tl=x(null),El=x(null),Dl=x(!1),Ol=null,kl=null,Al=null,jl=x(null);function Ml(e,t){Ol&&cancelAnimationFrame(Ol);let n=jl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Nc&&n.scrollLeft>0?(n.scrollLeft-=Pc,i=!0):e>t.right-Nc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Pc,i=!0)}El.value&&(El.value.style.display=`none`);let a=document.elementFromPoint(e,t);if(El.value&&(El.value.style.display=``),a){let e=a.closest(`.kb-col__cards`);if(e){let n=e.getBoundingClientRect();t<n.top+Nc&&e.scrollTop>0?(e.scrollTop-=Pc,i=!0):t>n.bottom-Nc&&e.scrollTop<e.scrollHeight-e.clientHeight&&(e.scrollTop+=Pc,i=!0)}}Ol=i&&Dl.value?requestAnimationFrame(r):null};Ol=requestAnimationFrame(r)}function Nl(){Ol&&=(cancelAnimationFrame(Ol),null)}function Pl(){kl&&=(clearTimeout(kl),null),Al=null}function Fl(){if(!Al)return;let{type:e,colId:t,cardId:n,el:r}=Al;Tl.value=e,Dl.value=!0,e===`card`&&n?(cl.value={colId:t,cardId:n},ll.value=null):(ll.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),El.value=e}Al=null}function Il(e,t,n,r){if(a.readOnly)return;Pl();let i=e.touches[0],o=i.clientX,s=i.clientY;Al={type:t,colId:n,cardId:r,el:e.target};let c=e=>{let t=e.touches[0],n=t.clientX-o,r=t.clientY-s;Math.sqrt(n*n+r*r)>Mc&&(Pl(),document.removeEventListener(`touchmove`,c))};document.addEventListener(`touchmove`,c,{passive:!0}),kl=setTimeout(()=>{document.removeEventListener(`touchmove`,c),Fl()},jc)}function Ll(e){if(!Dl.value)return;e.preventDefault();let t=e.touches[0];El.value&&(El.value.style.left=`${t.clientX-40}px`,El.value.style.top=`${t.clientY-20}px`),Ml(t.clientX,t.clientY),El.value&&(El.value.style.display=`none`);let n=document.elementFromPoint(t.clientX,t.clientY);if(El.value&&(El.value.style.display=``),n){if(Tl.value===`card`){let e=n.closest(`.kb-card`),r=n.closest(`.kb-col`);if(e&&r){let n=e.dataset.cardId||``,i=r.dataset.colId||``;if(n&&i){let a=e.getBoundingClientRect(),o=t.clientY-a.top<a.height/2?`before`:`after`;ul!==i&&(ul=i,xl(r)),(dl!==n||fl!==o)&&(dl=n,fl=o,bl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(ul=e,dl=null,xl(r),bl(null,`before`))}}else if(Tl.value===`column`){let e=n.closest(`.kb-col`);if(e){let n=e.dataset.colId||``;if(n&&n!==ll.value){let r=e.getBoundingClientRect(),i=t.clientX-r.left<r.width/2?`before`:`after`;(pl!==n||ml!==i)&&(pl=n,ml=i,Sl(e,i))}}}}}function Rl(){Pl(),Nl(),El.value&&=(El.value.remove(),null),Dl.value&&(Tl.value===`card`&&ul?Hl(ul):Tl.value===`column`&&pl&&ql(pl)),Tl.value=null,Dl.value=!1,Bl()}function zl(e,t,n){a.readOnly||(cl.value={colId:t,cardId:n},ll.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`card`)))}function Bl(){cl.value=null,ul=null,dl=null,ll.value=null,pl=null,Cl()}function Vl(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`;ul!==t&&(ul=t,xl(r.closest(`.kb-col`))),!(dl===n&&fl===a)&&(dl=n,fl=a,bl(r,a))}function Hl(e){if(a.readOnly)return;if(ll.value){ql(e);return}if(!cl.value)return;let{colId:t,cardId:n}=cl.value,r=Ge(t),i=Ge(e),s=null,c=g.value.map(e=>e.id===t?(s=e.cards.find(e=>e.id===n)??null,{...e,cards:e.cards.filter(e=>e.id!==n)}):e),l=0;if(s){let n={...s};!o.value&&t!==e&&Ke(n,`moved`,`"${r}" → "${i}"`),c=c.map(t=>{if(t.id!==e)return t;let r=[...t.cards].sort((e,t)=>e.order-t.order),i=r.length;if(dl){let e=r.findIndex(e=>e.id===dl);e!==-1&&(i=fl===`before`?e:e+1)}return l=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(cl.value=null,ul=null,dl=null,Cl(),a.moveCard&&s){g.value=c,a.moveCard(s.id,e,l);return}v(c,s?{kind:`card-move`,cardId:s.id,toColumnId:e,toIndex:l}:void 0)}function Ul(e,t){!cl.value&&!ll.value||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),cl.value&&(ul!==t&&(ul=t,xl(wl(t))),dl!==null&&(dl=null,bl(null,`before`))))}function Wl(e){ul===e&&(ul=null,xl(null))}function Gl(e,t){a.readOnly||(ll.value=t,cl.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`column`)))}function Kl(e,t){if(!ll.value||ll.value===t)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let n=e.currentTarget,r=n.getBoundingClientRect(),i=e.clientX-r.left<r.width/2?`before`:`after`;pl===t&&ml===i||(pl=t,ml=i,Sl(n,i))}function ql(e){if(a.readOnly||!ll.value||ll.value===e){ll.value=null,pl=null,Cl();return}let t=[...g.value].sort((e,t)=>e.order-t.order),n=t.findIndex(e=>e.id===ll.value),r=t.splice(n,1)[0],i=t.findIndex(t=>t.id===e);t.splice(ml===`before`?i:i+1,0,r),ll.value=null,pl=null,Cl(),v(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return n({openCardEditor:Bt,closeCardEditor:Jt,saveCard:Yt,editingCard:q}),(t,n)=>{let r=we(`tooltip`);return S(),U(`div`,{ref_key:`rootEl`,ref:jl,class:`kb`},[G(`header`,Zr,[B(E(u),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:n[0]||=e=>c(`back`)}),L((S(),U(`h1`,{class:`kb-header__title`,ref:e=>Dr(e,`board`)},[y(w(e.name),1)])),[[r,Or(`board`,e.name),void 0,{bottom:!0}]]),G(`span`,Qr,[n[59]||=G(`i`,{class:`pi pi-search`},null,-1),B(E(oe),{modelValue:b.value,"onUpdate:modelValue":n[1]||=e=>b.value=e,placeholder:E(f)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),b.value?(S(),T(E(u),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:n[2]||=e=>b.value=``})):i(``,!0),e.searchTruncated?(S(),U(`small`,$r,w(E(f)(`searchTruncated`)),1)):i(``,!0)]),L(B(E(u),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:he.value?String(he.value):void 0,"badge-severity":`info`,class:K({"kb-header__filter--on":he.value}),onClick:n[3]||=e=>O.value=!0},null,8,[`badge`,`class`]),[[r,E(f)(`filters.open`),void 0,{bottom:!0}]]),L(B(E(u),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:Dn},null,512),[[r,E(f)(`archive.open`),void 0,{bottom:!0}]]),e.readOnly?i(``,!0):L((S(),T(E(u),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:n[4]||=e=>De.value=!0},null,512)),[[r,E(f)(`groups.title`),void 0,{bottom:!0}]]),e.readOnly?(S(),U(`span`,ei,[n[60]||=G(`i`,{class:`pi pi-lock`},null,-1),y(` `+w(E(f)(`readOnly.badge`)),1)])):i(``,!0),H(t.$slots,`header-actions`,{},void 0,!0)]),H(t.$slots,`banner`,{},void 0,!0),G(`div`,ti,[Me.value?(S(),U(`div`,{key:0,class:`kb-bands`,style:W({height:`${Me.value}px`})},[(S(!0),U(j,null,I(He.value,e=>(S(),U(`div`,{key:e.id,class:`kb-band`,style:W({left:`${e.left}px`,width:`${e.width}px`,top:`${e.top}px`,"--kb-band-color":e.color||`var(--p-text-muted-color)`})},[G(`span`,ni,w(e.title),1),G(`span`,ri,w(e.count),1)],4))),128))],4)):i(``,!0),G(`div`,{ref_key:`boardEl`,ref:Pe,class:`kb-board`},[(S(!0),U(j,null,I(Ee.value,a=>(S(),U(`div`,{key:a.id,class:K([`kb-col`,{"kb-col--collapsed":qr(a.id),"kb-col--dragging":ll.value===a.id}]),"data-col-id":a.id,draggable:!e.readOnly,onDragstart:e=>Gl(e,a.id),onDragover:e=>{Kl(e,a.id),Ul(e,a.id)},onDragleave:e=>Wl(a.id),onDrop:z(e=>Hl(a.id),[`prevent`]),onDragend:Bl,onTouchstart:e=>Il(e,`column`,a.id),onTouchmove:Ll,onTouchend:Rl,onContextmenu:n[8]||=z(()=>{},[`prevent`])},[qr(a.id)?(S(),U(`button`,{key:0,class:K([`kb-col__strip`,{"kb-col__strip--empty":a.cards.length===0}]),title:E(f)(`column.expand`),onClick:e=>Jr(a.id)},[n[61]||=G(`i`,{class:`pi pi-angle-double-right`},null,-1),G(`span`,oi,w(a.cards.length),1),Sr(a.id)?(S(),U(`i`,si)):i(``,!0),L((S(),U(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>Dr(e,`strip:${a.id}`)},[y(w(a.title),1)])),[[r,Or(`strip:${a.id}`,a.title),void 0,{right:!0}]])],10,ai)):(S(),U(`div`,ci,[L(G(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>Dr(e,`col:${a.id}`),value:a.title,readonly:e.readOnly,draggable:`false`,onBlur:e=>Ye(a.id,e.target.value),onKeyup:n[5]||=V(e=>e.target.blur(),[`enter`]),onMousedown:n[6]||=z(()=>{},[`stop`])},null,40,li),[[r,Or(`col:${a.id}`,a.title),void 0,{bottom:!0}]]),G(`div`,ui,[pr.value&&Sr(a.id)?L((S(),T(E(u),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>Pr(a.id)},null,8,[`onClick`])),[[r,E(f)(`column.unsubscribe`),void 0,{bottom:!0}]]):i(``,!0),L(B(E(u),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:K([`kb-col__menu-btn`,{"kb-col__menu-btn--open":Ar.value?.id===a.id}]),onClick:e=>jr(e,a)},null,8,[`class`,`onClick`]),[[r,E(f)(`column.menu`),void 0,{bottom:!0}]]),G(`span`,di,w(a.cards.length),1)])])),!e.readOnly&&!qr(a.id)?(S(),U(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>Lt(a.id,`top`)},[n[62]||=G(`i`,{class:`pi pi-plus`},null,-1),y(` `+w(E(f)(`column.addCard`)),1)],8,fi)):i(``,!0),qr(a.id)?i(``,!0):(S(),U(`div`,pi,[(S(!0),U(j,null,I(a.cards,o=>(S(),U(`div`,{key:o.id,class:K([`kb-card`,{"kb-card--colored":o.color}]),style:W(o.color?{borderTopColor:o.color}:void 0),"data-card-id":o.id,draggable:!e.readOnly,onDragstart:z(e=>zl(e,a.id,o.id),[`stop`]),onDragover:e=>Vl(e,a.id,o.id),onDragend:Bl,onTouchstart:z(e=>Il(e,`card`,a.id,o.id),[`stop`]),onTouchmove:Ll,onTouchend:Rl,onContextmenu:n[7]||=z(()=>{},[`prevent`]),onClick:e=>Bt(a.id,o)},[B(cn,{card:o,t:E(f),"avatar-url":e.avatarUrl,"child-count":$t(o.id),"has-parent":!!Zt(o.id)},{actions:R(()=>[H(t.$slots,`card-actions`,{card:o,column:a},void 0,!0),e.readOnly?i(``,!0):L((S(),U(`button`,{key:0,class:`kb-card__delete`,onClick:z(e=>Z(a.id,o.id),[`stop`])},[...n[63]||=[G(`i`,{class:`pi pi-inbox`},null,-1)]],8,hi)),[[r,E(f)(`archive.cardTooltip`),void 0,{bottom:!0}]]),e.readOnly?i(``,!0):L((S(),U(`button`,{key:1,class:`kb-card__delete`,onClick:z(e=>An(a.id,o.id),[`stop`])},[...n[64]||=[G(`i`,{class:`pi pi-times`},null,-1)]],8,gi)),[[r,E(f)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:R(()=>[H(t.$slots,`card-badges`,{card:o},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,mi))),128)),a.cards.length===0?(S(),U(`div`,_i,w(E(f)(`column.dropZone`)),1)):i(``,!0)])),!e.readOnly&&!qr(a.id)?(S(),U(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>Lt(a.id)},[n[65]||=G(`i`,{class:`pi pi-plus`},null,-1),y(` `+w(E(f)(`column.addCard`)),1)],8,vi)):i(``,!0)],42,ii))),128)),B(E(ee),{visible:mr.value!==null,modal:``,header:E(f)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":n[12]||=e=>{e||(mr.value=null)}},{footer:R(()=>[Sr(mr.value??``)?(S(),T(E(u),{key:0,label:E(f)(`column.unsubscribe`),severity:`danger`,text:``,onClick:Lr},null,8,[`label`])):i(``,!0),B(E(u),{label:E(f)(`editor.cancel`),text:``,onClick:n[11]||=e=>mr.value=null},null,8,[`label`]),B(E(u),{label:Sr(mr.value??``)?E(f)(`editor.save`):E(f)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Fr.value,onClick:Ir},null,8,[`label`,`disabled`])]),default:R(()=>[G(`p`,yi,w(E(f)(`column.subscribeIntro`,{column:Rr.value?.title??``})),1),G(`p`,bi,w(E(f)(`column.subscribeEventsLabel`)),1),G(`div`,xi,[(S(),U(j,null,I(hr,e=>G(`label`,{key:e,class:`kb-subscribe__option`},[B(E(je),{modelValue:yr.value,"onUpdate:modelValue":n[9]||=e=>yr.value=e,value:e},null,8,[`modelValue`,`value`]),G(`span`,null,w(E(f)(`column.subscribeKind.${e}`)),1)])),64))]),G(`p`,Si,[n[66]||=G(`i`,{class:`pi pi-times`},null,-1),y(` `+w(E(f)(`column.subscribeNotReorder`)),1)]),G(`p`,Ci,w(E(f)(`column.subscribeChannelsLabel`)),1),G(`div`,wi,[(S(),U(j,null,I(gr,e=>G(`label`,{key:e,class:`kb-subscribe__option`},[B(E(je),{modelValue:br.value,"onUpdate:modelValue":n[10]||=e=>br.value=e,value:e},null,8,[`modelValue`,`value`]),G(`span`,null,w(E(f)(`column.subscribeChannel.${e}`)),1)])),64))]),G(`p`,Ti,w(E(f)(`column.subscribeOwnActions`)),1)]),_:1},8,[`visible`,`header`]),B(E(ee),{visible:Ft.value!==null,header:E(f)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":n[14]||=e=>{e||(Ft.value=null)}},{default:R(()=>[G(`p`,Ei,w(E(f)(`templates.pickIntro`)),1),G(`div`,Di,[G(`button`,{class:`kb-tpl-option`,onClick:n[13]||=e=>Rt(null)},[n[67]||=G(`i`,{class:`pi pi-file`},null,-1),y(` `+w(E(f)(`templates.blank`)),1)]),(S(!0),U(j,null,I(e.templates,e=>(S(),U(`button`,{key:e.id,class:`kb-tpl-option`,onClick:t=>Rt(e)},[n[68]||=G(`i`,{class:`pi pi-file-edit`},null,-1),y(` `+w(e.name),1)],8,Oi))),128))])]),_:1},8,[`visible`,`header`]),e.readOnly?i(``,!0):(S(),U(`div`,ki,[C.value?(S(),U(`div`,Ai,[B(E(oe),{modelValue:te.value,"onUpdate:modelValue":n[15]||=e=>te.value=e,placeholder:E(f)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[V(qe,[`enter`]),n[16]||=V(e=>C.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),G(`div`,ji,[B(E(u),{label:E(f)(`addColumnButton`),size:`small`,disabled:!te.value.trim(),onClick:qe},null,8,[`label`,`disabled`]),B(E(u),{icon:`pi pi-times`,text:``,size:`small`,onClick:n[17]||=e=>C.value=!1})])])):(S(),U(`button`,{key:1,class:`kb-add-col__trigger`,onClick:n[18]||=e=>C.value=!0},[n[69]||=G(`i`,{class:`pi pi-plus`},null,-1),y(` `+w(E(f)(`addColumn`)),1)]))]))],512)]),B(Xr,{visible:De.value,"onUpdate:visible":n[19]||=e=>De.value=e,columns:g.value,groups:e.columnGroups,"read-only":e.readOnly,t:E(f),onIntent:n[20]||=e=>c(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),B(E(_),{visible:O.value,"onUpdate:visible":n[29]||=e=>O.value=e,position:`right`,header:E(f)(`filters.title`),class:`kb-filters`},{footer:R(()=>[B(E(u),{label:E(f)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!he.value,onClick:ge},null,8,[`label`,`disabled`])]),default:R(()=>[G(`div`,Mi,[G(`section`,Ni,[G(`span`,Pi,w(E(f)(`filters.priority`)),1),me.value?(S(),U(j,{key:1},[G(`div`,Fi,[(S(),U(j,null,I([`lte`,`eq`,`gte`],e=>L(G(`button`,{key:e,class:K([`kb-ops__btn`,{"kb-ops__btn--on":k.value===e}]),onClick:t=>{k.value=e,A.value===null&&(A.value=5)}},[y(w(e===`lte`?`≤`:e===`eq`?`=`:`≥`),1)],10,Ii),[[r,{value:E(f)(`filters.priorityOp.${e}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),L((S(),U(`button`,{class:K([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":k.value===`none`}]),onClick:n[22]||=e=>{k.value=k.value===`none`?`gte`:`none`,A.value=k.value===`none`?null:5}},[...n[71]||=[G(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[r,{value:E(f)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),k.value===`none`?i(``,!0):(S(),U(`div`,Li,[B(E($e),{"model-value":A.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":n[23]||=e=>A.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),G(`span`,Ri,w(A.value),1)])),G(`button`,{class:`kb-prio__set`,onClick:n[24]||=e=>{A.value=null,k.value=`gte`}},[n[72]||=G(`i`,{class:`pi pi-times`},null,-1),y(` `+w(E(f)(`filters.clearOne`)),1)]),k.value===`none`?i(``,!0):(S(),U(`p`,zi,w(E(f)(`filters.priorityHint`)),1))],64)):(S(),U(`button`,{key:0,class:`kb-prio__set`,onClick:n[21]||=e=>A.value=5},[n[70]||=G(`i`,{class:`pi pi-plus`},null,-1),y(` `+w(E(f)(`filters.priorityAdd`)),1)]))]),G(`section`,Bi,[G(`span`,Vi,w(E(f)(`filters.colors`)),1),G(`div`,Hi,[L((S(),U(`button`,{class:K([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":M.value.includes(``)}]),onClick:n[25]||=e=>M.value=M.value.includes(``)?M.value.filter(e=>e!==``):[...M.value,``]},[...n[73]||=[G(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[r,{value:E(f)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(S(),U(j,null,I(wt,e=>L(G(`button`,{key:e,class:K([`kb-colors__swatch`,{"kb-colors__swatch--on":M.value.includes(e)}]),style:W({background:e}),onClick:t=>M.value=M.value.includes(e)?M.value.filter(t=>t!==e):[...M.value,e]},null,14,Ui),[[r,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))])]),G(`section`,Wi,[G(`span`,Gi,w(E(f)(`filters.groups`)),1),B(E(Ne),{modelValue:ve.value,"onUpdate:modelValue":n[26]||=e=>ve.value=e,options:ye.value,placeholder:E(f)(`filters.groupsPlaceholder`),display:`chip`,filter:ye.value.length>6,class:`kb-filters__control`},{option:R(({option:e})=>[G(`span`,{class:K([`kb-void`,{"kb-void--is":e===$}])},[e===$?(S(),U(`i`,Ki)):i(``,!0),y(` `+w(e===$?E(f)(`filters.noGroups`):e),1)],2)]),chip:R(({value:e})=>[G(`span`,{class:K([`kb-void`,{"kb-void--is":e===$}])},w(e===$?E(f)(`filters.noGroups`):e),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),G(`section`,qi,[G(`span`,Ji,w(E(f)(`filters.assignees`)),1),B(E(Ne),{modelValue:be.value,"onUpdate:modelValue":n[27]||=e=>be.value=e,options:Se.value,"option-label":`name`,"option-value":`userId`,placeholder:E(f)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:R(({option:e})=>[G(`span`,{class:K([`kb-void`,{"kb-void--is":e.userId===$}])},[e.userId===$?(S(),U(`i`,Yi)):i(``,!0),y(` `+w(e.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),G(`section`,Xi,[G(`span`,Zi,w(E(f)(`filters.family`)),1),B(E(Ne),{modelValue:Ce.value,"onUpdate:modelValue":n[28]||=e=>Ce.value=e,options:Te.value,"option-label":`title`,"option-value":`id`,placeholder:E(f)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:R(({option:e})=>[G(`span`,{class:K([`kb-void`,{"kb-void--is":e.id===$}])},[e.id===$?(S(),U(`i`,Qi)):i(``,!0),G(`span`,null,w(e.title),1),e.column?(S(),U(`span`,$i,w(e.column),1)):i(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),G(`p`,ea,w(E(f)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),B(E(_),{visible:X.value,"onUpdate:visible":n[34]||=e=>X.value=e,position:`right`,header:E(f)(`archive.title`),class:`kb-archive`},{default:R(()=>[G(`p`,ta,w(E(f)(`archive.hint`)),1),G(`span`,na,[n[74]||=G(`i`,{class:`pi pi-search`},null,-1),B(E(oe),{modelValue:_n.value,"onUpdate:modelValue":n[30]||=e=>_n.value=e,placeholder:E(f)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),_n.value?(S(),T(E(u),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:n[31]||=e=>_n.value=``})):i(``,!0),L(B(E(u),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:he.value?String(he.value):void 0,"badge-severity":`info`,class:K({"kb-header__filter--on":he.value}),onClick:n[32]||=e=>O.value=!0},null,8,[`badge`,`class`]),[[r,E(f)(`filters.open`),void 0,{bottom:!0}]])]),B(E(le),{modelValue:vn.value,"onUpdate:modelValue":n[33]||=e=>vn.value=e,options:yn.value,"option-label":`title`,"option-value":`id`,size:`small`,class:`kb-archive__column`,"aria-label":E(f)(`archive.columnFilter`)},null,8,[`modelValue`,`options`,`aria-label`]),e.loadingArchive?(S(),U(`p`,ra,w(E(f)(`archive.loading`)),1)):e.archivedCards.length?wn.value.length?(S(),U(j,{key:3},[Tn.value?(S(),U(`p`,oa,[y(w(E(f)(`archive.filteredOut`,{count:Tn.value}))+` `,1),G(`button`,{class:`kb-archive__reset`,onClick:ge},w(E(f)(`filters.reset`)),1)])):i(``,!0),e.archiveTruncated?(S(),U(`p`,sa,[n[75]||=G(`i`,{class:`pi pi-exclamation-circle`},null,-1),y(` `+w(E(f)(`archive.truncated`)),1)])):i(``,!0),G(`ul`,ca,[(S(!0),U(j,null,I(wn.value,a=>(S(),U(`li`,{key:a.id,class:K([`kb-card kb-archive__card`,{"kb-card--colored":a.color}]),style:W(a.color?{borderTopColor:a.color}:void 0),onClick:e=>Cn(a)},[B(cn,{card:a,t:E(f),"avatar-url":e.avatarUrl,"child-count":$t(a.id),"has-parent":!!Zt(a.id)},{actions:R(()=>[e.readOnly?i(``,!0):L((S(),U(`button`,{key:0,class:`kb-card__delete`,onClick:z(e=>kn(a.id),[`stop`])},[...n[76]||=[G(`i`,{class:`pi pi-replay`},null,-1)]],8,ua)),[[r,E(f)(`archive.restore`),void 0,{left:!0}]])]),badges:R(()=>[H(t.$slots,`card-badges`,{card:a},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),G(`div`,da,[a.archivedFrom?(S(),U(`span`,fa,[n[77]||=G(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),y(` `+w(E(f)(`archive.fromColumn`,{column:a.archivedFrom.columnTitle})),1)])):i(``,!0),a.archivedAt?(S(),U(`span`,pa,w(new Date(a.archivedAt).toLocaleDateString()),1)):i(``,!0)])],14,la))),128))])],64)):(S(),U(`p`,aa,w(E(f)(`archive.allFiltered`,{count:Tn.value})),1)):(S(),U(`p`,ia,w(_n.value||vn.value?E(f)(`archive.noMatch`):E(f)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),B(E(ee),{visible:!!q.value,header:Xe.value.trim()||E(f)(`card.untitled`),modal:!0,"dismissable-mask":!Ut.value,class:K([`kb-card-dialog`,{"kb-card-dialog--colored":Ct.value}]),style:W({width:`min(1400px, 92vw)`,height:`90vh`,...Ct.value?{"--kb-card-color":Ct.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":n[53]||=e=>{e||Wt()}},{footer:R(()=>[G(`div`,Ys,[Ut.value&&!e.readOnly?(S(),U(`span`,Xs,[n[105]||=G(`i`,{class:`pi pi-exclamation-circle`},null,-1),y(` `+w(E(f)(`editor.unsavedHint`)),1)])):i(``,!0),B(E(u),{label:E(f)(`editor.close`),text:``,onClick:Wt},null,8,[`label`]),e.readOnly?i(``,!0):(S(),T(E(u),{key:1,label:E(f)(`editor.save`),icon:`pi pi-check`,onClick:Yt},null,8,[`label`]))])]),default:R(()=>[q.value?(S(),U(`div`,ma,[G(`div`,ha,[B(E(Le),{value:Dt.value,"onUpdate:value":n[42]||=e=>Dt.value=e},{default:R(()=>[B(E(Fe),null,{default:R(()=>[B(E(Re),{value:`edit`},{default:R(()=>[n[78]||=G(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),y(w(E(f)(`editor.tabs.edit`)),1)]),_:1}),un.value||fn.value?(S(),T(E(Re),{key:0,value:`relations`},{default:R(()=>[n[79]||=G(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),y(w(E(f)(`editor.tabs.relations`,{count:fn.value})),1)]),_:1})):i(``,!0),B(E(Re),{value:`comments`},{default:R(()=>[n[80]||=G(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),y(w(E(f)(`editor.tabs.comments`,{count:Yr.value.length||(q.value.card.commentCount??0)})),1)]),_:1}),B(E(Re),{value:`history`},{default:R(()=>[n[81]||=G(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),y(w(E(f)(`editor.tabs.history`,{count:q.value.card.history?.length??0})),1)]),_:1})]),_:1}),B(E(Ie),null,{default:R(()=>[B(E(ze),{value:`edit`},{default:R(()=>[G(`div`,ga,[G(`div`,_a,[G(`label`,va,w(E(f)(`editor.titleLabel`)),1),B(E(oe),{id:`kanban-card-title`,modelValue:Xe.value,"onUpdate:modelValue":n[35]||=e=>Xe.value=e,disabled:e.readOnly,autofocus:``,onKeyup:V(Yt,[`enter`])},null,8,[`modelValue`,`disabled`])]),G(`div`,ya,[G(`label`,ba,w(E(f)(`editor.contentLabel`)),1),B(E(Ve),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:At,modelValue:Ze.value,"onUpdate:modelValue":n[36]||=e=>Ze.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!e.readOnly,placeholder:E(f)(`editor.contentPlaceholder`),"handle-files":e=>il(e,`card`),mentions:Zn.value,"attachment-src":at,onLinkClick:Fc},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),G(`div`,xa,[G(`label`,Sa,w(E(f)(`editor.filesLabel`)),1),Qe.value.length?(S(),U(`div`,Ca,[(S(!0),U(j,null,I(Qe.value,(t,r)=>(S(),U(`div`,{key:r,class:`kb-dialog__thumb`},[G(`img`,{src:t,alt:`attachment`},null,8,wa),e.readOnly?i(``,!0):(S(),U(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>sl(r)},[...n[82]||=[G(`i`,{class:`pi pi-times`},null,-1)]],8,Ta))]))),128))])):i(``,!0),B(gn,{files:et.value,preview:Nn,removable:!e.readOnly,"remove-label":E(f)(`editor.removeFile`),onOpen:Wn,onRemove:Jn},null,8,[`files`,`removable`,`remove-label`]),B(Mr,{queue:nt.value,errors:J.value,uploading:tt.value,"uploading-label":E(f)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),e.readOnly?i(``,!0):(S(),U(`label`,Ea,[n[83]||=G(`i`,{class:`pi pi-upload`},null,-1),y(` `+w(E(f)(`editor.attachFile`))+` `,1),G(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:ol},null,32)]))])])]),_:1}),B(E(ze),{value:`relations`},{default:R(()=>[G(`div`,Da,[Y.value||un.value?(S(),U(`section`,Oa,[G(`h4`,ka,[n[84]||=G(`i`,{class:`pi pi-arrow-up`},null,-1),y(` `+w(E(f)(`editor.parentLabel`)),1)]),Y.value?(S(),U(`table`,Aa,[G(`thead`,null,[G(`tr`,null,[G(`th`,null,w(E(f)(`editor.relationsColCard`)),1),G(`th`,null,w(E(f)(`editor.relationsColBoard`)),1),G(`th`,null,w(E(f)(`editor.relationsColColumn`)),1),G(`th`,ja,w(E(f)(`editor.relationsColAssignees`)),1),G(`th`,Ma,w(E(f)(`editor.relationsColComments`)),1),G(`th`,Na,w(E(f)(`editor.relationsColActions`)),1)])]),G(`tbody`,null,[G(`tr`,null,[G(`td`,Pa,[L((S(),U(`span`,{class:`kb-rel__card-title`,ref:e=>Dr(e,`rel:${Y.value?.cardId??``}`)},[y(w(Y.value.title),1)])),[[r,Or(`rel:${Y.value.cardId}`,Y.value.title),void 0,{top:!0}]])]),G(`td`,{class:K([`kb-rel__board`,{"kb-rel__board--away":!Y.value.here}])},[L((S(),U(`span`,{class:`kb-rel__card-title`,ref:e=>Dr(e,`relb:${Y.value?.cardId??``}`)},[y(w(Y.value.boardName),1)])),[[r,Or(`relb:${Y.value?.cardId??``}`,Y.value?.boardName??``),void 0,{top:!0}]])],2),G(`td`,Fa,[L((S(),U(`span`,{class:`kb-rel__card-title`,ref:e=>Dr(e,`relc:${Y.value?.cardId??``}`)},[y(w(Y.value.columnTitle),1)])),[[r,Or(`relc:${Y.value?.cardId??``}`,Y.value?.columnTitle??``),void 0,{top:!0}]])]),G(`td`,Ia,[Y.value.assignees.length?(S(),U(`div`,La,[(S(!0),U(j,null,I(Y.value.assignees,t=>(S(),U(`span`,{key:t.id,class:`kb-card__avatar`,style:W($n(t.id)),title:t.name},[e.avatarUrl&&!Yn.has(t.id)?(S(),U(`img`,{key:0,src:e.avatarUrl(t.id),alt:``,onError:e=>Yn.add(t.id)},null,40,za)):(S(),U(j,{key:1},[y(w(Xn(t.name)),1)],64))],12,Ra))),128))])):(S(),U(`span`,Ba,`—`))]),G(`td`,Va,w(Y.value.commentCount||`—`),1),G(`td`,Ha,[G(`button`,{class:`kb-rel__action`,title:Y.value.here?E(f)(`editor.childOpen`):E(f)(`editor.openOnBoard`,{board:Y.value.boardName}),onClick:n[37]||=e=>pn(Y.value.cardId,Y.value.boardId)},[...n[85]||=[G(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Ua),un.value?(S(),U(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:E(f)(`editor.detach`),onClick:n[38]||=e=>on(null)},[...n[86]||=[G(`i`,{class:`pi pi-times`},null,-1)]],8,Wa)):i(``,!0)])])])])):(S(),U(`p`,Ga,w(E(f)(`editor.parentEmptyState`)),1)),un.value?(S(),T(E(le),{key:2,"model-value":null,options:rn.value,"option-label":`title`,"option-value":`id`,filter:rn.value.length>6,"filter-placeholder":E(f)(`editor.parentSearchPlaceholder`),"empty-message":E(f)(`editor.parentEmpty`),"empty-filter-message":E(f)(`editor.parentEmpty`),placeholder:Y.value?E(f)(`editor.parentReplace`):E(f)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":on},{option:R(({option:e})=>[G(`span`,Ka,[G(`span`,null,w(e.title),1),G(`span`,qa,w(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):i(``,!0)])):i(``,!0),en.value.length||un.value?(S(),U(`section`,Ja,[G(`h4`,Ya,[n[87]||=G(`i`,{class:`pi pi-arrow-down`},null,-1),y(` `+w(E(f)(`editor.childrenLabel`,{count:en.value.length})),1)]),en.value.length?(S(),U(`table`,Xa,[G(`thead`,null,[G(`tr`,null,[G(`th`,null,w(E(f)(`editor.relationsColCard`)),1),G(`th`,null,w(E(f)(`editor.relationsColBoard`)),1),G(`th`,null,w(E(f)(`editor.relationsColColumn`)),1),G(`th`,Za,w(E(f)(`editor.relationsColAssignees`)),1),G(`th`,Qa,w(E(f)(`editor.relationsColComments`)),1),G(`th`,$a,w(E(f)(`editor.relationsColActions`)),1)])]),G(`tbody`,null,[(S(!0),U(j,null,I(en.value,t=>(S(),U(`tr`,{key:t.cardId},[G(`td`,eo,[L((S(),U(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Dr(e,`rel:${t.cardId}`)},[y(w(t.title),1)])),[[r,Or(`rel:${t.cardId}`,t.title),void 0,{top:!0}]])]),G(`td`,{class:K([`kb-rel__board`,{"kb-rel__board--away":!t.here}])},[L((S(),U(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Dr(e,`relb:${t.cardId}`)},[y(w(t.boardName),1)])),[[r,Or(`relb:${t.cardId}`,t.boardName),void 0,{top:!0}]])],2),G(`td`,to,[L((S(),U(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Dr(e,`relc:${t.cardId}`)},[y(w(t.columnTitle),1)])),[[r,Or(`relc:${t.cardId}`,t.columnTitle),void 0,{top:!0}]])]),G(`td`,no,[t.assignees.length?(S(),U(`div`,ro,[(S(!0),U(j,null,I(t.assignees,t=>(S(),U(`span`,{key:t.id,class:`kb-card__avatar`,style:W($n(t.id)),title:t.name},[e.avatarUrl&&!Yn.has(t.id)?(S(),U(`img`,{key:0,src:e.avatarUrl(t.id),alt:``,onError:e=>Yn.add(t.id)},null,40,ao)):(S(),U(j,{key:1},[y(w(Xn(t.name)),1)],64))],12,io))),128))])):(S(),U(`span`,oo,`—`))]),G(`td`,so,w(t.commentCount||`—`),1),G(`td`,co,[G(`button`,{class:`kb-rel__action`,title:t.here?E(f)(`editor.childOpen`):E(f)(`editor.openOnBoard`,{board:t.boardName}),onClick:e=>pn(t.cardId,t.boardId)},[...n[88]||=[G(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,lo),un.value?(S(),U(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:E(f)(`editor.detach`),onClick:e=>ln(t.cardId)},[...n[89]||=[G(`i`,{class:`pi pi-times`},null,-1)]],8,uo)):i(``,!0)])]))),128))])])):(S(),U(`p`,fo,w(E(f)(`editor.childrenEmptyState`)),1)),un.value?(S(),T(E(le),{key:2,"model-value":null,options:an.value,"option-label":`title`,"option-value":`id`,filter:an.value.length>6,"filter-placeholder":E(f)(`editor.parentSearchPlaceholder`),"empty-message":E(f)(`editor.parentEmpty`),"empty-filter-message":E(f)(`editor.parentEmpty`),placeholder:E(f)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":sn},{option:R(({option:e})=>[G(`span`,po,[G(`span`,null,w(e.title),1),G(`span`,mo,w(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):i(``,!0)])):i(``,!0),!un.value&&!Y.value&&!en.value.length?(S(),U(`p`,ho,w(E(f)(`editor.relationsEmpty`)),1)):i(``,!0)])]),_:1}),B(E(ze),{value:`comments`},{default:R(()=>[G(`div`,go,[Yr.value.length?(S(),U(`div`,vo,[(S(!0),U(j,null,I(Yr.value,(t,r)=>(S(),U(`div`,{key:r,class:K([`kb-comments__item`,{"kb-comments__item--ai":t.author===`ai`,"kb-comments__item--clickable":Yc(t)}]),onClick:e=>Yc(t)&&Zc(t)},[G(`div`,{class:K([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!tr(t)}]),style:W(tr(t)?$n(tr(t)):void 0)},[t.author===`ai`?(S(),U(`i`,bo)):tr(t)&&e.avatarUrl&&!Yn.has(tr(t))?(S(),U(`img`,{key:1,src:e.avatarUrl(tr(t)),alt:``,onError:e=>Yn.add(tr(t))},null,40,xo)):t.authorUser?.name?(S(),U(j,{key:2},[y(w(Xn(t.authorUser.name)),1)],64)):(S(),U(`i`,So))],6),G(`div`,Co,[G(`div`,wo,[G(`span`,To,w(nr(t)),1),G(`span`,Eo,w(el(t.timestamp)),1),t.editedAt?(S(),U(`span`,Do,w(E(f)(`comments.edited`)),1)):i(``,!0),!e.readOnly&&dr(t)&&Mt.value!==t.id?(S(),U(`span`,Oo,[er(t)?(S(),U(`button`,{key:0,class:`kb-comments__tool`,title:E(f)(`comments.edit`),onClick:z(e=>ir(t),[`stop`])},[...n[91]||=[G(`i`,{class:`pi pi-pencil`},null,-1)]],8,ko)):i(``,!0),G(`button`,{class:`kb-comments__tool`,title:E(f)(`comments.delete`),onClick:z(e=>fr(t),[`stop`])},[...n[92]||=[G(`i`,{class:`pi pi-trash`},null,-1)]],8,Ao)])):i(``,!0)]),Mt.value===t.id?(S(),U(`div`,{key:0,class:`kb-comments__edit`,onClick:n[40]||=z(()=>{},[`stop`])},[B(E(Ve),{modelValue:Nt.value,"onUpdate:modelValue":n[39]||=e=>Nt.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:Zn.value,onLinkClick:Fc},null,8,[`modelValue`,`mentions`]),G(`div`,jo,[B(E(u),{label:E(f)(`editor.cancel`),size:`small`,text:``,onClick:ar},null,8,[`label`]),B(E(u),{label:E(f)(`editor.save`),size:`small`,disabled:!Nt.value.trim(),onClick:cr},null,8,[`label`,`disabled`])])])):t.detail?(S(),U(j,{key:1},[G(`div`,{ref_for:!0,ref:e=>Kc(e,t,r),class:K([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!Vc(t,r),"kb-comments__text--toggleable":Hc(t,r)&&!Yc(t)}]),onClick:e=>Wc(t,r,e),innerHTML:Lc(t.detail)},null,10,Mo),Hc(t,r)?(S(),U(`button`,{key:0,class:`kb-comments__more`,onClick:z(e=>Uc(t,r),[`stop`])},w(Vc(t,r)?E(f)(`comments.showLess`):E(f)(`comments.showMore`)),9,No)):i(``,!0)],64)):i(``,!0),Mt.value===t.id?i(``,!0):(S(),T(gn,{key:2,files:t.attachments??[],preview:Nn,compact:``,onOpen:Wn},null,8,[`files`]))])],10,yo))),128)),G(`div`,{ref_key:`commentsEndEl`,ref:jt},null,512)])):(S(),U(`div`,_o,[n[90]||=G(`i`,{class:`pi pi-comments`},null,-1),G(`span`,null,w(E(f)(`comments.empty`)),1)])),e.readOnly?i(``,!0):(S(),U(`div`,{key:2,class:`kb-comments__input`,onKeydown:[V(z(jn,[`ctrl`,`prevent`]),[`enter`]),V(z(jn,[`meta`,`prevent`]),[`enter`])]},[B(E(Ve),{modelValue:Ot.value,"onUpdate:modelValue":n[41]||=e=>Ot.value=e,markdown:``,placeholder:E(f)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>il(e,`comment`),mentions:Zn.value,onLinkClick:Fc},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),B(gn,{files:kt.value,preview:Nn,openable:!1,removable:``,"remove-label":E(f)(`editor.removeFile`),compact:``,onRemove:al},null,8,[`files`,`remove-label`]),B(Mr,{queue:nt.value,errors:J.value,uploading:tt.value,"uploading-label":E(f)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),G(`div`,Fo,[G(`label`,{class:`kb-comments__attach`,title:E(f)(`comments.attach`)},[n[93]||=G(`i`,{class:`pi pi-paperclip`},null,-1),G(`input`,{type:`file`,multiple:``,onChange:rl},null,32)],8,Io),G(`span`,Lo,w(E(f)(`comments.sendHint`)),1),B(E(u),{label:E(f)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!Ot.value.trim()&&!kt.value.length,onClick:jn},null,8,[`label`,`disabled`])])],40,Po))])]),_:1}),B(E(ze),{value:`history`},{default:R(()=>[G(`div`,Ro,[q.value.card.history?.length?(S(),U(`div`,Bo,[(S(!0),U(j,null,I([...q.value.card.history].reverse(),(e,t)=>(S(),U(`div`,{key:t,class:K([`kb-history__item`,{"kb-history__item--clickable":Yc(e)}]),onClick:t=>Yc(e)&&Zc(e)},[G(`div`,Ho,[G(`i`,{class:K(Qc[e.type])},null,2)]),G(`div`,Uo,[G(`span`,Wo,[y(w($c.value[e.type])+` `,1),Yc(e)?(S(),U(`i`,Go)):i(``,!0)]),e.detail?(S(),U(`span`,Ko,w(e.detail),1)):i(``,!0),G(`span`,qo,[y(w(el(e.timestamp))+` `,1),e.authorUser?.name?(S(),U(j,{key:0},[y(` · `+w(E(f)(`history.by`,{name:e.authorUser.name})),1)],64)):i(``,!0)])])],10,Vo))),128))])):(S(),U(`div`,zo,[n[94]||=G(`i`,{class:`pi pi-clock`},null,-1),G(`span`,null,w(E(f)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),G(`aside`,Jo,[e.members.length?(S(),U(`div`,Yo,[G(`span`,Xo,w(E(f)(`editor.assigneesLabel`)),1),B(E(Ne),{modelValue:ot.value,"onUpdate:modelValue":n[43]||=e=>ot.value=e,options:e.members,"option-label":`name`,"option-value":`userId`,placeholder:E(f)(`editor.assigneesPlaceholder`),disabled:e.readOnly,display:`chip`,filter:``,class:`kb-side__control`},{chip:R(({value:t})=>[G(`span`,{class:`kb-card__avatar`,style:W($n(t)),title:Qn(t)},[e.avatarUrl&&!Yn.has(t)?(S(),U(`img`,{key:0,src:e.avatarUrl(t),alt:``,onError:e=>Yn.add(t)},null,40,Qo)):(S(),U(j,{key:1},[y(w(Xn(Qn(t))),1)],64))],12,Zo)]),option:R(({option:t})=>[G(`span`,$o,[G(`span`,{class:`kb-card__avatar`,style:W($n(t.userId))},[e.avatarUrl&&!Yn.has(t.userId)?(S(),U(`img`,{key:0,src:e.avatarUrl(t.userId),alt:``,onError:e=>Yn.add(t.userId)},null,40,es)):(S(),U(j,{key:1},[y(w(Xn(t.name)),1)],64))],4),y(` `+w(t.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),G(`p`,ts,w(E(f)(`editor.assigneesHint`)),1)])):i(``,!0),G(`div`,ns,[G(`span`,rs,[y(w(E(f)(`editor.priorityLabel`))+` `,1),dt.value===null?i(``,!0):(S(),U(`span`,is,w(dt.value)+`/10`,1))]),dt.value===null?e.readOnly?(S(),U(`p`,ss,w(E(f)(`editor.priorityNone`)),1)):(S(),U(`button`,{key:1,class:`kb-prio__set`,onClick:gt},[n[96]||=G(`i`,{class:`pi pi-plus`},null,-1),y(` `+w(E(f)(`editor.priorityAdd`)),1)])):(S(),U(`div`,as,[B(E($e),{modelValue:dt.value,"onUpdate:modelValue":n[44]||=e=>dt.value=e,min:1,max:10,step:1,disabled:e.readOnly,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),e.readOnly?i(``,!0):(S(),U(`button`,{key:0,class:`kb-prio__clear`,title:E(f)(`editor.priorityClear`),onClick:n[45]||=e=>dt.value=null},[...n[95]||=[G(`i`,{class:`pi pi-times`},null,-1)]],8,os))]))]),G(`div`,cs,[G(`span`,ls,w(E(f)(`editor.deadlineLabel`)),1),G(`div`,us,[B(E(Et),{modelValue:ft.value,"onUpdate:modelValue":n[46]||=e=>ft.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:e.readOnly,placeholder:E(f)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!e.readOnly&&ft.value?(S(),U(`button`,{key:0,class:`kb-prio__clear`,title:E(f)(`editor.deadlineClear`),onClick:n[47]||=e=>ft.value=null},[...n[97]||=[G(`i`,{class:`pi pi-times`},null,-1)]],8,ds)):i(``,!0)]),ft.value?(S(),U(`p`,fs,w(pt.value),1)):i(``,!0)]),G(`div`,ps,[G(`span`,ms,w(E(f)(`editor.groupsLabel`)),1),B(E(Be),{modelValue:st.value,"onUpdate:modelValue":n[48]||=e=>st.value=e,multiple:``,suggestions:ct.value,disabled:e.readOnly,placeholder:st.value.length?``:E(f)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:ut,onItemSelect:bt,onKeydown:V(xt,[`enter`]),onFocusout:xt},{option:R(({option:e})=>[G(`span`,hs,[G(`i`,{class:K(lt.value.includes(e)?`pi pi-tag`:`pi pi-plus`)},null,2),G(`span`,null,w(lt.value.includes(e)?e:E(f)(`editor.groupsCreate`,{name:e})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),G(`p`,gs,w(E(f)(`editor.groupsHint`)),1)]),dn.value.length?(S(),U(`div`,_s,[G(`span`,vs,w(E(f)(`editor.ancestryLabel`)),1),G(`ul`,ys,[(S(!0),U(j,null,I(dn.value,(e,t)=>(S(),U(`li`,{key:e.cardId,class:`kb-tree__row`,style:W({paddingLeft:`${t*.75}rem`})},[t?(S(),U(`i`,bs)):i(``,!0),G(`button`,{class:`kb-tree__label`,title:e.here?E(f)(`editor.childOpen`):E(f)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>pn(e.cardId,e.boardId)},w(e.title),9,xs)],4))),128)),G(`li`,{class:`kb-tree__row kb-tree__row--self`,style:W({paddingLeft:`${dn.value.length*.75}rem`})},[n[98]||=G(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),G(`span`,Ss,w(Xe.value.trim()||E(f)(`card.untitled`)),1)],4)])])):i(``,!0),G(`div`,Cs,[G(`span`,ws,w(E(f)(`editor.colorLabel`)),1),G(`div`,Ts,[L((S(),U(`button`,{class:K([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Ct.value}]),disabled:e.readOnly,onClick:n[49]||=e=>Ct.value=``},[...n[99]||=[G(`i`,{class:`pi pi-ban`},null,-1)]],10,Es)),[[r,{value:E(f)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(S(),U(j,null,I(wt,t=>L(G(`button`,{key:t,class:K([`kb-colors__swatch`,{"kb-colors__swatch--on":Ct.value===t}]),style:W({background:t}),disabled:e.readOnly,onClick:e=>Ct.value=t},null,14,Ds),[[r,{value:t,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),G(`p`,Os,w(E(f)(`editor.colorHint`)),1)]),Sn.value?(S(),U(`div`,ks,[G(`span`,As,w(E(f)(`editor.columnSettingLabel`)),1),G(`p`,js,[n[100]||=G(`i`,{class:`pi pi-inbox`},null,-1),y(` `+w(q.value.card.archivedFrom?E(f)(`archive.editorFrom`,{column:q.value.card.archivedFrom.columnTitle}):E(f)(`archive.editorNote`)),1)])])):(S(),U(`div`,Ms,[G(`span`,Ns,w(E(f)(`editor.columnSettingLabel`)),1),B(E(le),{"model-value":Tt.value,options:mn.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:e.readOnly,filter:mn.value.length>1,"filter-placeholder":E(f)(`editor.columnSearchPlaceholder`),"empty-filter-message":E(f)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":hn},{optiongroup:R(({option:e})=>[G(`span`,{class:K([`kb-colgroup`,{"kb-colgroup--away":e.items[0]?.boardId}])},[G(`i`,{class:K(e.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),G(`span`,Ps,w(e.label),1)],2)]),option:R(({option:e})=>[G(`span`,Fs,[e.boardId?(S(),U(`i`,Is)):i(``,!0),G(`span`,null,w(e.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),e.otherBoards.length&&e.moveCardToBoard&&!e.readOnly?(S(),U(`p`,Ls,w(E(f)(`editor.moveToBoardHint`)),1)):i(``,!0)])),G(`div`,Rs,[q.value.card.createdBy?(S(),U(`p`,zs,[n[101]||=G(`i`,{class:`pi pi-user`},null,-1),y(` `+w(E(f)(`editor.createdBy`,{name:q.value.card.createdBy.name})),1)])):i(``,!0),G(`p`,null,[n[102]||=G(`i`,{class:`pi pi-calendar-plus`},null,-1),y(` `+w(el(q.value.card.createdAt)),1)]),G(`p`,null,[n[103]||=G(`i`,{class:`pi pi-clock`},null,-1),y(` `+w(el(q.value.card.updatedAt)),1)])]),Xc.value.length?(S(),U(`div`,Bs,[G(`span`,Vs,w(E(f)(`editor.conversationsLabel`)),1),G(`div`,Hs,[(S(!0),U(j,null,I(Xc.value,e=>(S(),U(`a`,{key:e.id,class:`kb-side__conv`,title:e.title,onClick:t=>c(`open-conversation`,e.id)},[n[104]||=G(`i`,{class:`pi pi-comments`},null,-1),G(`span`,Ws,w(e.label),1)],8,Us))),128))])])):i(``,!0),t.$slots[`card-editor-actions`]?(S(),U(`div`,Gs,[G(`span`,Ks,w(E(f)(`editor.actionsLabel`)),1),G(`div`,qs,[H(t.$slots,`card-editor-actions`,{card:q.value.card,colId:q.value.colId,draft:{title:Xe.value,markdown:Ze.value}},void 0,!0)])])):i(``,!0),!e.readOnly&&!Vt.value?(S(),U(`div`,Js,[Sn.value?(S(),T(E(u),{key:0,label:E(f)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:n[50]||=e=>{kn(q.value.card.id),Jt()}},null,8,[`label`])):(S(),T(E(u),{key:1,label:E(f)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:n[51]||=e=>Z(q.value.colId,q.value.card.id)},null,8,[`label`])),B(E(u),{label:E(f)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:n[52]||=e=>An(q.value.colId,q.value.card.id)},null,8,[`label`])])):i(``,!0)])])):i(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),B(E(ee),{visible:!!Q.value,header:Q.value?.file.name??``,modal:!0,"dismissable-mask":``,class:`kb-viewer-dialog`,style:{width:`min(1200px, 92vw)`,height:`88vh`},"onUpdate:visible":n[54]||=e=>{e||qn()}},{footer:R(()=>[B(E(u),{label:E(f)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:Kn},null,8,[`label`]),B(E(u),{label:E(f)(`editor.close`),onClick:qn},null,8,[`label`])]),default:R(()=>[Q.value?(S(),U(`div`,Zs,[Q.value.kind===`image`?(S(),U(`img`,{key:0,src:Q.value.url,alt:Q.value.file.name,class:`kb-viewer__image`},null,8,Qs)):Q.value.kind===`pdf`?(S(),U(`iframe`,{key:1,src:Q.value.url,title:Q.value.file.name,class:`kb-viewer__frame`},null,8,$s)):Q.value.kind===`video`?(S(),U(`video`,{key:2,src:Q.value.url,controls:``,class:`kb-viewer__media`},null,8,ec)):Q.value.kind===`audio`?(S(),U(`audio`,{key:3,src:Q.value.url,controls:``,class:`kb-viewer__audio`},null,8,tc)):Q.value.office?.mode===`sheet`?(S(),U(`div`,nc,[Q.value.office.sheets.length>1?(S(),U(`div`,rc,[(S(!0),U(j,null,I(Q.value.office.sheets,(e,t)=>(S(),U(`button`,{key:e.name+t,class:K([`kb-viewer__tab`,{"kb-viewer__tab--active":t===Bn.value}]),onClick:e=>Bn.value=t},w(e.name),11,ic))),128))])):i(``,!0),G(`div`,ac,[Vn.value&&Vn.value.rows.length?(S(),U(`table`,oc,[G(`thead`,null,[G(`tr`,null,[(S(!0),U(j,null,I(Vn.value.rows[0],(e,t)=>(S(),U(`th`,{key:t},w(e),1))),128))])]),G(`tbody`,null,[(S(!0),U(j,null,I(Vn.value.rows.slice(1),(e,t)=>(S(),U(`tr`,{key:t},[(S(!0),U(j,null,I(e,(e,t)=>(S(),U(`td`,{key:t},w(e),1))),128))]))),128))])])):(S(),U(`p`,sc,w(E(f)(`editor.viewerEmpty`)),1))])])):Q.value.office?.mode===`blocks`?(S(),U(`div`,cc,[G(`div`,lc,[(S(!0),U(j,null,I(Q.value.office.blocks,(e,t)=>(S(),U(j,{key:t},[e.type===`heading`&&e.level===1?(S(),U(`h1`,uc,w(e.text),1)):e.type===`heading`&&e.level===2?(S(),U(`h2`,dc,w(e.text),1)):e.type===`heading`?(S(),U(`h3`,fc,w(e.text),1)):e.type===`list`?(S(),U(`li`,pc,w(e.text),1)):e.type===`table`?(S(),U(`table`,mc,[G(`tbody`,null,[(S(!0),U(j,null,I(e.rows,(e,t)=>(S(),U(`tr`,{key:t},[(S(!0),U(j,null,I(e,(e,t)=>(S(),U(`td`,{key:t},w(e),1))),128))]))),128))])])):(S(),U(`p`,hc,w(e.text),1))],64))),128)),Q.value.office.blocks.length?i(``,!0):(S(),U(`p`,gc,w(E(f)(`editor.viewerEmpty`)),1))])])):Q.value.office?.mode===`slides`?(S(),U(`div`,_c,[G(`div`,vc,[(S(!0),U(j,null,I(Q.value.office.slides,(e,t)=>(S(),U(`section`,{key:t,class:`kb-viewer__slide`},[G(`span`,yc,w(t+1),1),e.title?(S(),U(`h3`,bc,w(e.title),1)):i(``,!0),(S(!0),U(j,null,I(e.lines,(e,t)=>(S(),U(`p`,{key:t},w(e),1))),128))]))),128))])])):Q.value.office?.mode===`render`?(S(),U(`div`,xc,[Un.value?(S(),U(`p`,Sc,w(E(f)(`editor.viewerFailed`)),1)):i(``,!0),L(G(`div`,{ref_key:`renderHost`,ref:Hn,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[xe,!Un.value]])])):(S(),U(`pre`,Cc,w(Q.value.text),1)),Q.value.office&&Q.value.office.mode!==`render`&&Q.value.office.truncated?(S(),U(`p`,wc,[n[106]||=G(`i`,{class:`pi pi-exclamation-triangle`},null,-1),y(` `+w(E(f)(`editor.viewerTruncated`)),1)])):i(``,!0)])):i(``,!0)]),_:1},8,[`visible`,`header`]),B(E(se),{ref_key:`colMenu`,ref:kr,onHide:n[58]||=e=>Ar.value=null},{default:R(()=>[Ar.value?(S(),U(`div`,Tc,[G(`div`,Ec,[H(t.$slots,`column-actions`,{column:Ar.value},void 0,!0)]),pr.value?(S(),U(`button`,{key:0,class:`kb-colmenu__item`,onClick:n[55]||=e=>Nr(Pr)},[n[107]||=G(`i`,{class:`pi pi-bell`},null,-1),G(`span`,null,w(Sr(Ar.value.id)?E(f)(`column.unsubscribe`):E(f)(`column.subscribe`)),1)])):i(``,!0),G(`button`,{class:`kb-colmenu__item`,onClick:n[56]||=e=>Nr(Jr)},[n[108]||=G(`i`,{class:`pi pi-angle-double-left`},null,-1),G(`span`,null,w(E(f)(`column.collapse`)),1)]),e.readOnly?i(``,!0):(S(),U(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:n[57]||=e=>Nr(Je)},[n[109]||=G(`i`,{class:`pi pi-trash`},null,-1),G(`span`,null,w(E(f)(`column.deleteTooltip`)),1)]))])):i(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-7ba6f337`]]),Ic={class:`kanban-list-page`},Lc={class:`page-header`},Rc={class:`page-header__right`},zc={class:`list-menu`},Bc={key:0,class:`empty-state`},Vc={class:`board-grid`},Hc={class:`board-counts`},Uc={class:`board-count`},Wc={class:`board-count board-count--cards`},Gc={key:0,class:`board-desc`},Kc={key:0,class:`empty-state`},qc={class:`board-grid`},Jc={key:0,class:`board-desc`},Yc={key:0,class:`dialog-field`},Xc={for:`kanlist-new-template`},Zc={key:0,class:`field-hint`},Qc={class:`dialog-field`},$c={for:`kanlist-new-name`},el={class:`dialog-field`},tl={for:`kanlist-new-desc`},nl={class:`dialog-field`},rl={for:`kanlist-new-instructions`},il={class:`field-hint`},al={class:`dialog-field`},ol={for:`kanlist-edit-name`},sl={class:`dialog-field`},cl={for:`kanlist-edit-desc`},ll={class:`dialog-field`},ul={for:`kanlist-edit-instructions`},dl={class:`field-hint`},fl={class:`templates-intro`},pl={key:0,class:`empty-state`},ml={key:1,class:`template-list`},hl={class:`template-row__name`},gl={class:`hint`},_l={key:0,class:`template-row__actions`},vl={class:`dialog-field`},yl={for:`kanlist-tpl-name`},bl={class:`dialog-field`},xl={for:`kanlist-tpl-content`},Sl={class:`hint`},Cl={class:`templates-intro`},wl={key:0,class:`empty-state`},Tl={key:1,class:`template-list`},El={class:`template-row__name`},Dl={key:0,class:`template-row__actions`},Ol=h(he({__name:`KanbanList`,props:{boards:{},readOnly:{type:Boolean,default:!1},boardsLimit:{default:null},templates:{default:null},boardTemplates:{default:null},t:{}},emits:[`open`,`create`,`update`,`archive`,`delete`,`template-create`,`template-update`,`template-delete`,`board-template-delete`,`templates-needed`],setup(e,{emit:n}){let r=e,a=n,o=t(),s=r.t;function c(e){a(`templates-needed`),e()}let l=x(!1),d=x(``),f=x(``),p=x(``),m=x(null),h=x(null),g=x(``);function _(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let v=P(()=>{let e=_(g.value.trim());return e?r.boards.filter(t=>_(t.name).includes(e)||_(t.description??``).includes(e)):r.boards}),b=P(()=>v.value.filter(e=>!e.archived)),C=P(()=>v.value.filter(e=>e.archived)),te=P(()=>g.value.trim().length>0),D=P(()=>r.boardsLimit!==null&&r.boards.length>=r.boardsLimit),O=P(()=>!r.readOnly&&!D.value);function ne(e){let t=(r.boardTemplates??[]).find(t=>t.id===e);t&&(d.value.trim()||(d.value=t.name),p.value=t.instructions)}let k=P(()=>(r.boardTemplates??[]).find(e=>e.id===h.value)??null);function re(){!O.value||!d.value.trim()||(a(`create`,{name:d.value.trim(),description:f.value.trim(),instructions:p.value.trim(),...k.value?.columns.length?{columns:k.value.columns}:{},...k.value?.columnGroups?.length?{columnGroups:k.value.columnGroups}:{}}),l.value=!1,d.value=``,f.value=``,p.value=``,h.value=null)}function ie(){m.value&&=(a(`update`,{...m.value}),null)}let A=x(!1),M=x(null);function ae(){M.value={id:null,name:``,content:``}}function N(e){M.value={id:e.id,name:e.name,content:e.content}}function F(){let e=M.value;if(!e||!e.name.trim())return;let t={name:e.name.trim(),content:e.content};e.id?a(`template-update`,{id:e.id,...t}):a(`template-create`,t),M.value=null}function ce(e){o.require({message:s(`templates.confirmDeleteMessage`,{name:e.name}),header:s(`templates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`template-delete`,e.id)})}let ue=x(!1);function de(e){o.require({message:s(`boardTemplates.confirmDeleteMessage`,{name:e.name}),header:s(`boardTemplates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`board-template-delete`,e.id)})}let fe=x(null);function pe(e){fe.value?.hide(),e()}function me(e,t){o.require({message:s(`dialogs.confirmDeleteMessage`,{name:t}),header:s(`dialogs.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`delete`,e)})}return(t,n)=>{let r=we(`tooltip`);return S(),U(`div`,Ic,[G(`div`,Lc,[G(`h1`,null,w(E(s)(`title`)),1),G(`span`,Rc,[B(E(Te),null,{default:R(()=>[B(E(ye),{class:`pi pi-search`}),B(E(oe),{modelValue:g.value,"onUpdate:modelValue":n[0]||=e=>g.value=e,placeholder:E(s)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),e.boardsLimit===null?i(``,!0):(S(),U(`span`,{key:0,class:K([`quota`,{"quota--full":D.value}])},w(E(s)(`quota`,{used:e.boards.length,limit:e.boardsLimit})),3)),e.readOnly?i(``,!0):(S(),T(E(u),{key:1,label:E(s)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:D.value,onClick:n[1]||=e=>c(()=>l.value=!0)},null,8,[`label`,`disabled`])),e.templates||e.boardTemplates?(S(),U(j,{key:2},[B(E(u),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:E(s)(`menu`),"aria-label":E(s)(`menu`),onClick:n[2]||=e=>fe.value?.toggle(e)},null,8,[`title`,`aria-label`]),B(E(se),{ref_key:`listMenu`,ref:fe},{default:R(()=>[G(`div`,zc,[e.templates?(S(),U(`button`,{key:0,class:`list-menu__item`,onClick:n[3]||=e=>pe(()=>c(()=>A.value=!0))},[n[27]||=G(`i`,{class:`pi pi-file-edit`},null,-1),G(`span`,null,w(E(s)(`templates.manage`)),1)])):i(``,!0),e.boardTemplates?(S(),U(`button`,{key:1,class:`list-menu__item`,onClick:n[4]||=e=>pe(()=>ue.value=!0)},[n[28]||=G(`i`,{class:`pi pi-bookmark`},null,-1),G(`span`,null,w(E(s)(`boardTemplates.manage`)),1)])):i(``,!0)])]),_:1},512)],64)):i(``,!0)])]),H(t.$slots,`banner`,{},void 0,!0),B(E(Le),{value:`active`},{default:R(()=>[B(E(Fe),null,{default:R(()=>[B(E(Re),{value:`active`},{default:R(()=>[y(w(E(s)(`tabs.active`)),1)]),_:1}),B(E(Re),{value:`archived`},{default:R(()=>[y(w(E(s)(`tabs.archived`,{count:C.value.length})),1)]),_:1})]),_:1}),B(E(Ie),null,{default:R(()=>[B(E(ze),{value:`active`},{default:R(()=>[b.value.length===0?(S(),U(`div`,Bc,w(te.value?E(s)(`noResults`,{query:g.value.trim()}):E(s)(`empty`)),1)):i(``,!0),G(`div`,Vc,[(S(!0),U(j,null,I(b.value,t=>(S(),T(E(Me),{key:t.id,class:`board-card`,onClick:e=>a(`open`,t.id)},{title:R(()=>[y(w(t.name),1)]),subtitle:R(()=>[G(`span`,Hc,[G(`span`,Uc,[n[29]||=G(`i`,{class:`pi pi-list`},null,-1),y(w(E(s)(`columns`,{count:t.columnCount})),1)]),G(`span`,Wc,[n[30]||=G(`i`,{class:`pi pi-clone`},null,-1),y(w(E(s)(`cards`,{count:t.cardCount})),1)])])]),content:R(()=>[t.description?(S(),U(`p`,Gc,w(t.description),1)):i(``,!0)]),footer:R(()=>[e.readOnly?i(``,!0):(S(),U(`div`,{key:0,class:`board-actions`,onClick:n[5]||=z(()=>{},[`stop`])},[B(E(u),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>m.value={id:t.id,name:t.name,description:t.description,instructions:t.instructions??``}},null,8,[`onClick`]),L(B(E(u),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>a(`archive`,{id:t.id,archived:!0})},null,8,[`onClick`]),[[r,E(s)(`archive`)]]),B(E(u),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>me(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),B(E(ze),{value:`archived`},{default:R(()=>[C.value.length===0?(S(),U(`div`,Kc,w(te.value?E(s)(`noResults`,{query:g.value.trim()}):E(s)(`archivedEmpty`)),1)):i(``,!0),G(`div`,qc,[(S(!0),U(j,null,I(C.value,t=>(S(),T(E(Me),{key:t.id,class:`board-card archived`,onClick:e=>a(`open`,t.id)},{title:R(()=>[y(w(t.name),1)]),content:R(()=>[t.description?(S(),U(`p`,Jc,w(t.description),1)):i(``,!0)]),footer:R(()=>[e.readOnly?i(``,!0):(S(),U(`div`,{key:0,class:`board-actions`,onClick:n[6]||=z(()=>{},[`stop`])},[B(E(u),{label:E(s)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>a(`archive`,{id:t.id,archived:!1})},null,8,[`label`,`onClick`]),B(E(u),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>me(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),B(E(ee),{visible:l.value,"onUpdate:visible":n[13]||=e=>l.value=e,header:E(s)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:R(()=>[B(E(u),{label:E(s)(`cancel`),text:``,onClick:n[12]||=e=>l.value=!1},null,8,[`label`]),B(E(u),{label:E(s)(`create`),icon:`pi pi-check`,disabled:!d.value.trim(),onClick:re},null,8,[`label`,`disabled`])]),default:R(()=>[e.boardTemplates?.length?(S(),U(`div`,Yc,[G(`label`,Xc,w(E(s)(`boardTemplates.pickLabel`)),1),B(E(le),{id:`kanlist-new-template`,modelValue:h.value,"onUpdate:modelValue":n[7]||=e=>h.value=e,options:e.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:E(s)(`boardTemplates.pickPlaceholder`),onChange:n[8]||=e=>ne(h.value)},null,8,[`modelValue`,`options`,`placeholder`]),k.value?(S(),U(`small`,Zc,w(E(s)(`boardTemplates.pickHint`,{columns:k.value.columns.map(e=>e.title).join(`, `)||E(s)(`boardTemplates.noColumns`)})),1)):i(``,!0)])):i(``,!0),G(`div`,Qc,[G(`label`,$c,w(E(s)(`nameLabel`)),1),B(E(oe),{id:`kanlist-new-name`,modelValue:d.value,"onUpdate:modelValue":n[9]||=e=>d.value=e,autofocus:``,class:`w-full`,onKeyup:V(re,[`enter`])},null,8,[`modelValue`])]),G(`div`,el,[G(`label`,tl,w(E(s)(`descriptionLabel`)),1),B(E(be),{id:`kanlist-new-desc`,modelValue:f.value,"onUpdate:modelValue":n[10]||=e=>f.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),G(`div`,nl,[G(`label`,rl,w(E(s)(`instructionsLabel`)),1),B(E(be),{id:`kanlist-new-instructions`,modelValue:p.value,"onUpdate:modelValue":n[11]||=e=>p.value=e,rows:`6`,class:`w-full`,placeholder:E(s)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),G(`small`,il,w(E(s)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),B(E(ee),{visible:!!m.value,header:E(s)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":n[18]||=e=>{e||(m.value=null)}},{footer:R(()=>[B(E(u),{label:E(s)(`cancel`),text:``,onClick:n[17]||=e=>m.value=null},null,8,[`label`]),B(E(u),{label:E(s)(`save`),icon:`pi pi-check`,onClick:ie},null,8,[`label`])]),default:R(()=>[m.value?(S(),U(j,{key:0},[G(`div`,al,[G(`label`,ol,w(E(s)(`nameLabel`)),1),B(E(oe),{id:`kanlist-edit-name`,modelValue:m.value.name,"onUpdate:modelValue":n[14]||=e=>m.value.name=e,class:`w-full`,onKeyup:V(ie,[`enter`])},null,8,[`modelValue`])]),G(`div`,sl,[G(`label`,cl,w(E(s)(`descriptionLabel`)),1),B(E(be),{id:`kanlist-edit-desc`,modelValue:m.value.description,"onUpdate:modelValue":n[15]||=e=>m.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),G(`div`,ll,[G(`label`,ul,w(E(s)(`instructionsLabel`)),1),B(E(be),{id:`kanlist-edit-instructions`,modelValue:m.value.instructions,"onUpdate:modelValue":n[16]||=e=>m.value.instructions=e,rows:`8`,class:`w-full`,placeholder:E(s)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),G(`small`,dl,w(E(s)(`instructionsHint`)),1)])],64)):i(``,!0)]),_:1},8,[`visible`,`header`]),B(E(ee),{visible:ue.value,"onUpdate:visible":n[20]||=e=>ue.value=e,header:E(s)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:R(()=>[B(E(u),{label:E(s)(`close`),text:``,onClick:n[19]||=e=>ue.value=!1},null,8,[`label`])]),default:R(()=>[G(`p`,fl,w(E(s)(`boardTemplates.intro`)),1),!e.boardTemplates||e.boardTemplates.length===0?(S(),U(`div`,pl,w(E(s)(`boardTemplates.empty`)),1)):(S(),U(`ul`,ml,[(S(!0),U(j,null,I(e.boardTemplates,t=>(S(),U(`li`,{key:t.id,class:`template-row`},[G(`span`,hl,[y(w(t.name)+` `,1),G(`small`,gl,w(t.columns.map(e=>e.title).join(` · `)||E(s)(`boardTemplates.noColumns`)),1)]),e.readOnly?i(``,!0):(S(),U(`span`,_l,[B(E(u),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>de(t)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),B(E(ee),{visible:A.value,"onUpdate:visible":[n[25]||=e=>A.value=e,n[26]||=e=>{e||(M.value=null)}],header:E(s)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:R(()=>[M.value?(S(),U(j,{key:0},[B(E(u),{label:E(s)(`cancel`),text:``,onClick:n[23]||=e=>M.value=null},null,8,[`label`]),B(E(u),{label:E(s)(`save`),icon:`pi pi-check`,disabled:!M.value.name.trim(),onClick:F},null,8,[`label`,`disabled`])],64)):(S(),U(j,{key:1},[e.readOnly?i(``,!0):(S(),T(E(u),{key:0,label:E(s)(`templates.new`),icon:`pi pi-plus`,onClick:ae},null,8,[`label`])),B(E(u),{label:E(s)(`close`),text:``,onClick:n[24]||=e=>A.value=!1},null,8,[`label`])],64))]),default:R(()=>[M.value?(S(),U(j,{key:0},[G(`div`,vl,[G(`label`,yl,w(E(s)(`templates.nameLabel`)),1),B(E(oe),{id:`kanlist-tpl-name`,modelValue:M.value.name,"onUpdate:modelValue":n[21]||=e=>M.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),G(`div`,bl,[G(`label`,xl,w(E(s)(`templates.contentLabel`)),1),B(E(Ve),{id:`kanlist-tpl-content`,modelValue:M.value.content,"onUpdate:modelValue":n[22]||=e=>M.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:E(s)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),G(`small`,Sl,w(E(s)(`templates.contentHint`)),1)])],64)):(S(),U(j,{key:1},[G(`p`,Cl,w(E(s)(`templates.intro`)),1),!e.templates||e.templates.length===0?(S(),U(`div`,wl,w(E(s)(`templates.empty`)),1)):(S(),U(`ul`,Tl,[(S(!0),U(j,null,I(e.templates,t=>(S(),U(`li`,{key:t.id,class:`template-row`},[G(`span`,El,w(t.name),1),e.readOnly?i(``,!0):(S(),U(`span`,Dl,[B(E(u),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>N(t)},null,8,[`onClick`]),B(E(u),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ce(t)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-6ce88365`]]);export{Fc as n,Ol as t};
|