@runeya/runeya 2.0.81 → 2.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent/index.js +21 -0
- package/agent/index.js.map +1 -1
- package/agent-manager-OUH7BBRA.js +7 -0
- package/{chunk-T3TDCZUY.js → chunk-INSDEHLR.js} +22 -1
- package/chunk-INSDEHLR.js.map +1 -0
- package/index.js +1 -1
- package/package.json +1 -1
- package/{src-J5NMLOGO.js → src-GQUMI5IS.js} +4 -4
- package/web/assets/{AgentScalarChatInterface.vue-Bz-gGSzj.js → AgentScalarChatInterface.vue-ChPjt__s.js} +1 -1
- package/web/assets/{AgentTerminalPage-DpOoHLD9.js → AgentTerminalPage-BIo8gMgN.js} +1 -1
- package/web/assets/AiChatPage-C07zw4u7.js +1 -0
- package/web/assets/{AppLayout-CKnvr6Na.js → AppLayout-Cp1ETvQK.js} +1 -1
- package/web/assets/{AuditPage-xqORd_dw.js → AuditPage-CBFGDYju.js} +1 -1
- package/web/assets/{CloudAccountPage-CwrXMcNj.js → CloudAccountPage-B-1oSh99.js} +1 -1
- package/web/assets/CloudAccountPage-hcK50MS-.js +1 -0
- package/web/assets/{CloudMessagingPage-FrT5R5RY.js → CloudMessagingPage-oJ9nsrfK.js} +1 -1
- package/web/assets/{DashboardPage-RHtmXJZD.js → DashboardPage-BRhTP-_9.js} +1 -1
- package/web/assets/{DirectoryPickerDialog-DA6ifzvA.js → DirectoryPickerDialog-C4rnO5Ks.js} +1 -1
- package/web/assets/{EditorIcon-cQrNnRN8.js → EditorIcon-DpBn1mgW.js} +1 -1
- package/web/assets/{EnvironmentForm-C0AVEgqa.js → EnvironmentForm-BKByebGQ.js} +1 -1
- package/web/assets/{EnvironmentFormPage-BlodN6rP.js → EnvironmentFormPage-CpIU6pV2.js} +1 -1
- package/web/assets/{EnvironmentListPage-CPLWzR4W.js → EnvironmentListPage-DZ-A2Jay.js} +1 -1
- package/web/assets/KanbanBoardPage-BsLBVQtF.js +4 -0
- package/web/assets/KanbanBoardPage-CayS_TrK.css +1 -0
- package/web/assets/{KanbanListPage-2lcq9-3a.js → KanbanListPage-DJVYpIpI.js} +1 -1
- package/web/assets/{LaunchProjectPage-DUccvh2i.js → LaunchProjectPage-hcHXeqgE.js} +1 -1
- package/web/assets/{LaunchServicesPage-DuJgqoZ0.js → LaunchServicesPage-B-aD6W3n.js} +1 -1
- package/web/assets/{LogViewer-CiJ0E3WL.js → LogViewer-B-2-Pkh3.js} +1 -1
- package/web/assets/{OrgKeyPrompt-C4gvAb3X.js → OrgKeyPrompt-UYKFPiGu.js} +1 -1
- package/web/assets/{ProcessControls-DS7VuBVy.js → ProcessControls-DrffGiDV.js} +1 -1
- package/web/assets/{ProcessDetailPage-BPRBLIq0.js → ProcessDetailPage-KtJbQrQI.js} +1 -1
- package/web/assets/{ProcessMetrics-D8PSRsiX.js → ProcessMetrics-D3SIqeM7.js} +1 -1
- package/web/assets/{ProjectDetailPage-BYmva7As.js → ProjectDetailPage-DzuBFJcL.js} +1 -1
- package/web/assets/{ProjectListPage-4tdf4bKi.js → ProjectListPage-BnTcWoyJ.js} +1 -1
- package/web/assets/{RandomJobTestPage-Bfr0-fO9.js → RandomJobTestPage-s7QCD8uw.js} +1 -1
- package/web/assets/{ScenarioEditorPage-CDW0MZRz.js → ScenarioEditorPage-B36xe6RG.js} +1 -1
- package/web/assets/{SendToChatDialog-Dpq4ZGZG.js → SendToChatDialog-Q9gZShP2.js} +1 -1
- package/web/assets/{ServiceControlsBar-B-WsId3p.js → ServiceControlsBar-WMw0rKjL.js} +1 -1
- package/web/assets/{ServiceDetailPage-Cs6mD223.js → ServiceDetailPage-Cyipu0KM.js} +1 -1
- package/web/assets/{ServiceFormPage-BYvCx3Tk.js → ServiceFormPage-zWNm6nht.js} +1 -1
- package/web/assets/{SettingsPage-Bo5lcKgO.js → SettingsPage-C3H6ryl4.js} +4 -4
- package/web/assets/{UnlockPage-DBNaVHS0.js → UnlockPage-UmQT4c9h.js} +1 -1
- package/web/assets/{VariablesTable-C61F7UMe.js → VariablesTable-BjYydQMz.js} +1 -1
- package/web/assets/{VaultMigrationPage-FtYqd5as.js → VaultMigrationPage-CKstkOxK.js} +1 -1
- package/web/assets/{VersionBadge-BwvxTYJQ.js → VersionBadge-ClEBaEEi.js} +1 -1
- package/web/assets/WikiPage-CPdLyKbb.js +1 -0
- package/web/assets/{WikiView-CV7x-fuB.js → WikiView-zYYkVbcT.js} +1 -1
- package/web/assets/{add-scalar-classes-aZsrdePf.js → add-scalar-classes-APhkEaYm.js} +3 -3
- package/web/assets/auth-errors-D1vsMDwQ.js +1 -0
- package/web/assets/{autocomplete-Du_6AJLm.js → autocomplete-j6EJ4qc7.js} +1 -1
- package/web/assets/{basic-shape-diamond.svg-Brt9Q7yR.js → basic-shape-diamond.svg-D3BvuFks.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-DuOEn8SS.js → basic-shape-hexagon.svg-thQGdq4Z.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-Dm3FA4hX.js → basic-shape-primary-circle-ellipse-round.svg-yfSppQFd.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-D9TXh-Te.js → basic-shape-primary-square-rectangle.svg-BVHXItqy.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-BGqgqpTn.js → basic-shape-shield.svg-CtA7dm2Q.js} +1 -1
- package/web/assets/{browser-DraiYurs.js → browser-DTAy9bWQ.js} +1 -1
- package/web/assets/{browser-Bu5-cZ6q.js → browser-TQqBzJvt.js} +1 -1
- package/web/assets/{card-7VlK10yH.js → card-t-SFF-U6.js} +1 -1
- package/web/assets/{checkbox--Ljbmv0V.js → checkbox-BXKU50DB.js} +1 -1
- package/web/assets/{chip-BDH4SY0m.js → chip-kXojqqzC.js} +1 -1
- package/web/assets/{client-D1f9Hfce.js → client-DDvUV6CO.js} +1 -1
- package/web/assets/{cloud-chat.store-0apEpWas.js → cloud-chat.store-s8NwIHGR.js} +1 -1
- package/web/assets/{cloud-session-CcMhJnDz.js → cloud-session-DdyThqRZ.js} +1 -1
- package/web/assets/{column-Rr7TjAKb.js → column-D6-1uxxd.js} +1 -1
- package/web/assets/{computer-device-desktop-monitor.svg-DWXr8plh.js → computer-device-desktop-monitor.svg-CdIYLZSL.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-CJMtri7N.js → computer-device-desktop.svg-9tHzZREn.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-CyDLkBKe.js → computer-device-laptop.svg-Bc7fThfz.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-BQrm8gSP.js → computer-device-mobile-phone-android-samsung-back.svg-C2ekJCSg.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-DEsS3NPh.js → computer-device-mobile-phone-android-samsung.svg-BsCVBzKz.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-C9j9D3yF.js → computer-device-mobile-phone-iphone-x-back.svg-DiTvY672.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-CrVMMlvl.js → computer-device-mobile-phone-iphone-x.svg-LmnEqWF9.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-Ckq735ge.js → computer-device-mobile-tablet-touch.svg-DQRWhCoC.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-D_JUVoFQ.js → computer-device-mobile-tablet.svg-BNWKwjMa.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-B1wetlS1.js → computer-device-network-ethernet-cat6.svg-DKrHd6O4.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-DFX62dkl.js → computer-device-network-lan-www.svg-B_VsQFlK.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-BUIvQ1rA.js → computer-device-network-wifi-connection.svg-DdwfPpWk.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-Xu42IdAj.js → computer-device-network-wifi-router.svg-B2oxWwwp.js} +1 -1
- package/web/assets/{cssMode-BQj85HgP.js → cssMode-KLWm2hgW.js} +1 -1
- package/web/assets/{divider-B2ja8fU2.js → divider-BOoWCKMG.js} +1 -1
- package/web/assets/{docx-preview-DbefyPiK.js → docx-preview-0gNiXgA0.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-BJkJysbn.js → ecology-science-erlenmeyer-flask.svg-CoDghZZN.js} +1 -1
- package/web/assets/{fieldset-C9feNGfc.js → fieldset-CJWibxTq.js} +1 -1
- package/web/assets/{freemarker2-zw7Omggf.js → freemarker2-CDrCtqr8.js} +1 -1
- package/web/assets/{handlebars-CQ5ul8St.js → handlebars-i5AmJP_D.js} +1 -1
- package/web/assets/{html-BedBXc2a.js → html-DRgf552E.js} +1 -1
- package/web/assets/{htmlMode-1JQWc-Z5.js → htmlMode-stFVzP9c.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-ClA6Dwwv.js → image-flash-lightning.svg-B5dJXiKd.js} +1 -1
- package/web/assets/{image-picture-flower.svg-S37KfTY_.js → image-picture-flower.svg-Dt2DfltJ.js} +1 -1
- package/web/assets/{index-C48_n3M3.js → index-B6g1sTYu.js} +73 -73
- package/web/assets/{interface-alert-exclamation-diamond.svg-BbDgCyc9.js → interface-alert-exclamation-diamond.svg-D2emME0E.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-mljfy3sM.js → interface-alert-exclamation-triangle-warning.svg-9LcnkY4q.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-DI7-_tjM.js → interface-alert-information-circle.svg-Dnd09CCX.js} +1 -1
- package/web/assets/{interface-award-crown.svg-CWbSPSKp.js → interface-award-crown.svg-DmbPzEwI.js} +1 -1
- package/web/assets/{interface-bookmark.svg-BAml1ezn.js → interface-bookmark-tag.svg-d9BagkQV.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-CWAgHho0.js → interface-bookmark.svg-DKxSXdQL.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-CeMcRy9H.js → interface-calendar-date-one.svg-KMR--Zwd.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-B_yY0hVl.js → interface-content-book-open-pages.svg-ChWcZ-OV.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-DKi2g25t.js → interface-content-book-page.svg-BPQqOunb.js} +1 -1
- package/web/assets/{interface-content-file.svg-DLMvWo0f.js → interface-content-file.svg-B13V0H03.js} +1 -1
- package/web/assets/interface-content-folder.svg-DgvZBspw.js +1 -0
- package/web/assets/{interface-content-folder.svg-C6m15vCu.js → interface-content-folder.svg-dTiXnHUO.js} +1 -1
- package/web/assets/{interface-copy-clipboard.svg-D0q3Wb_1.js → interface-copy-clipboard.svg-DP4KQGI_.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-wgj_lapc.js → interface-edit-attachment.svg-BtvmdXi_.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-B2E3k3H7.js → interface-edit-binocular.svg-C5Rcmzoc.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-CCospBiO.js → interface-edit-magic-wand.svg-4T6h9w1R.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-DYEUn0zk.js → interface-edit-tool-paint-roller.svg-C7AWhsHu.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-C0c5__vF.js → interface-edit-tool-pencil.svg-C_3HLtmJ.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-CxXvU9Xs.js → interface-favorite-award.svg-CWql2CqM.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-B-oAMdhz.js → interface-favorite-flag.svg-xAQ0yDI6.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-XVzJL85i.js → interface-favorite-heart.svg-CUu086oU.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-DnR-X8HM.js → interface-favorite-star.svg-C_jR63R4.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-C_TEZDz7.js → interface-favorite-stars-sparkles.svg-CaP1tsXf.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-DMWwE1Bp.js → interface-hierarchy-flowchart.svg-BIqcg42p.js} +1 -1
- package/web/assets/{interface-home-house.svg-DM5hoUCG.js → interface-home-house.svg-CDWB7MI-.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-GEcG0JIG.js → interface-hyperlink.svg-C5glUDyZ.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-DPwSNSFZ.js → interface-lighting-brightness.svg-BPV4AGp8.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-WBj_VFeN.js → interface-lock-closed.svg-YoBrA_-2.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-C-1WNB22.js → interface-lock-open-unlock.svg-DhD93hyv.js} +1 -1
- package/web/assets/{interface-login-key.svg-BhbsaEn2.js → interface-login-key.svg-B4xs4LyH.js} +1 -1
- package/web/assets/{interface-search.svg-DDT1DpPx.js → interface-search.svg-DqbHBIPr.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-CbKV7wep.js → interface-setting-cog.svg-BTXQVKDF.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-CZtKbQ27.js → interface-share-megaphone-bullhorn.svg-Bspd_wee.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-bUnlXpoy.js → interface-share-rocket.svg-DF1AW94o.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-BiJI4-iT.js → interface-share-satellite.svg-DAto5sdo.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-CJDBbMqe.js → interface-share-space-ship.svg-xfvdMFjc.js} +1 -1
- package/web/assets/{interface-share.svg-ZA4PY-_R.js → interface-share.svg-BUGpjms9.js} +1 -1
- package/web/assets/{interface-signal-square.svg-Big3AZYT.js → interface-signal-square.svg-DO4EGFlS.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-C87SeuqW.js → interface-time-clock-circle.svg-Ch--CL3C.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-DavfQuzi.js → interface-time-hour-glass.svg-DLztKnqd.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-BcRaqgkp.js → interface-users-multiple.svg-CQqLctKQ.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-BotJXC93.js → interface-weather-moon.svg-BOtyyM9r.js} +1 -1
- package/web/assets/{javascript-VVAxrpsz.js → javascript-BACDdT-K.js} +1 -1
- package/web/assets/{jsonMode-7syrbhpo.js → jsonMode-BJAA2Qkz.js} +1 -1
- package/web/assets/{liquid-DBScZEsF.js → liquid-D6Gdzk7q.js} +1 -1
- package/web/assets/{lspLanguageFeatures-Cbnp2QzV.js → lspLanguageFeatures-dDeDuatu.js} +1 -1
- package/web/assets/{mail-chat-bubble-square.svg-DxNJSedf.js → mail-chat-bubble-square.svg-DkWc7DvO.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-BtRmdjyt.js → mail-send-email-paper-airplane.svg-DWQPCRx4.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-DbjSH8zB.js → mail-send-envelope.svg-B3RUxGRI.js} +1 -1
- package/web/assets/{mdx-llp8Tmd9.js → mdx-BLyk64_8.js} +1 -1
- package/web/assets/{minus-DvAr5cY4.js → minus-CeDHxTVf.js} +1 -1
- package/web/assets/{modal-Cw0tNExb.js → modal-D1IeAQhH.js} +1 -1
- package/web/assets/modal-e5Q5tjsz.js +1 -0
- package/web/assets/{money-cashier-receipt.svg-C_9fDYzf.js → money-cashier-receipt.svg-B62RXwnU.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-DneBDwuI.js → money-currency-dollar-pay.svg-Dxj7GrNy.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-eTIbwVPM.js → money-graph-arrow-increase.svg-5i6cbG4F.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-CnBwwNnG.js → money-graph-bar-chart-increase.svg-Bc_m4g2o.js} +1 -1
- package/web/assets/{multiselect-VgxNC_Rb.js → multiselect-Bj63wGj5.js} +1 -1
- package/web/assets/{nature-ecology-leaf.svg-CI8mz7NM.js → nature-ecology-leaf.svg-BiYWKI3C.js} +1 -1
- package/web/assets/{password-Cn6rXdkV.js → password-B2R5WJCC.js} +1 -1
- package/web/assets/{phone-telephone.svg-DvaANgXl.js → phone-telephone.svg-CCSYOsPV.js} +1 -1
- package/web/assets/{plus-Wu9f5gKV.js → plus-1uj1zgTZ.js} +1 -1
- package/web/assets/process.store-DY-Scyic.js +1 -0
- package/web/assets/{programming-bug.svg-Dogpoy6D.js → programming-bug.svg-C951BIoi.js} +1 -1
- package/web/assets/{programming-cloud.svg-DKAbKMW-.js → programming-cloud.svg-CJ2MQ1gn.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-DuLiWmRo.js → programming-computer-database-server.svg-CmAiZg5T.js} +1 -1
- package/web/assets/{programming-computer-database.svg--nEvgzQ4.js → programming-computer-database.svg-DNXpl0Vx.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-BrEq29yK.js → programming-module-four-layout.svg-VuuQ4KZE.js} +1 -1
- package/web/assets/{programming-module-three.svg-CVSkEpNT.js → programming-module-three.svg-ghM2VNLY.js} +1 -1
- package/web/assets/{programming-module.svg-Dg4JzPYG.js → programming-module.svg-CMyCtg3l.js} +1 -1
- package/web/assets/{programming-script-code.svg-tuCix00q.js → programming-script-code.svg-CBLvBKhS.js} +1 -1
- package/web/assets/{python-CpIQ9rf6.js → python-BKikFtx2.js} +1 -1
- package/web/assets/{razor-CUhDflGB.js → razor-B3Szd0pq.js} +1 -1
- package/web/assets/router-3gaMzp9Y.js +1 -0
- package/web/assets/settings-scope-CErBIhhF.js +1 -0
- package/web/assets/{settings.store-CVRCO413.js → settings.store-BZUNwciJ.js} +1 -1
- package/web/assets/{shopping-cart.svg-D5klhDUK.js → shopping-cart.svg-BvLu-34t.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-CGHQA0EJ.js → shopping-gift-present.svg-OO7BDpK7.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-DXRLKdmP.js → shopping-shipping-box-parcel-package.svg-C6Nn2Fz4.js} +1 -1
- package/web/assets/{src-VCgW4Ydq.js → src-s2NF0-fo.js} +1 -1
- package/web/assets/{src-BrJmY9BU.js → src-w4lOtiso.js} +1 -1
- package/web/assets/{tabpanel-BnCzUt9a.js → tabpanel-YaPrIHPz.js} +1 -1
- package/web/assets/{tag-new-circle.svg-P8LhbnIJ.js → tag-new-circle.svg-BBJNtBqn.js} +1 -1
- package/web/assets/{toggleswitch-CK7tkAVO.js → toggleswitch-U3ONW-Dr.js} +1 -1
- package/web/assets/{travel-map-earth-globe.svg-D_Qk9hla.js → travel-map-earth-globe.svg-DwCNz4mM.js} +1 -1
- package/web/assets/trpc-B72LOva_.js +1 -0
- package/web/assets/{tsMode-CPT-i4aQ.js → tsMode-aP6am7pR.js} +1 -1
- package/web/assets/{typescript-C_07agwQ.js → typescript-CE668fHu.js} +1 -1
- package/web/assets/useAiChatDrawer-BAqQbMyY.js +1 -0
- package/web/assets/useCloudOrg-BMAE6iCE.js +572 -0
- package/web/assets/useCloudOrg-CTQicJ9f.css +1 -0
- package/web/assets/{useProjectCatalog-Cr0_0nEL.js → useProjectCatalog-CVDL0eAQ.js} +1 -1
- package/web/assets/{xml-BqeKoJSa.js → xml-D-o348sn.js} +1 -1
- package/web/assets/{yaml-B1eGNBA2.js → yaml-BUQX3iED.js} +1 -1
- package/web/index.html +1 -1
- package/agent-manager-KM7SFKVR.js +0 -7
- package/chunk-T3TDCZUY.js.map +0 -1
- package/web/assets/AiChatPage-T_pvEf3G.js +0 -1
- package/web/assets/CloudAccountPage-DymjMdVH.js +0 -1
- package/web/assets/KanbanBoardPage-DKdXK4Qx.css +0 -1
- package/web/assets/KanbanBoardPage-YzoKznNb.js +0 -4
- package/web/assets/WikiPage-Cj1STCf0.js +0 -1
- package/web/assets/auth-errors-BGxESIDC.js +0 -1
- package/web/assets/interface-content-folder.svg-BOb5gEBg.js +0 -1
- package/web/assets/modal-BojPdHjq.js +0 -1
- package/web/assets/process.store-CuOhVG7D.js +0 -1
- package/web/assets/router-DbZfFM5i.js +0 -1
- package/web/assets/settings-scope-RwtQq_7s.js +0 -1
- package/web/assets/trpc-BMTjbcXS.js +0 -1
- package/web/assets/useAiChatDrawer-u_M0yvJI.js +0 -1
- package/web/assets/useCloudOrg-Drl2_37-.css +0 -1
- package/web/assets/useCloudOrg-e5NkFba3.js +0 -572
- /package/{agent-manager-KM7SFKVR.js.map → agent-manager-OUH7BBRA.js.map} +0 -0
- /package/{src-J5NMLOGO.js.map → src-GQUMI5IS.js.map} +0 -0
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-0gNiXgA0.js","assets/index-B6g1sTYu.js","assets/index-Cz0azMVO.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$t as e,Ar as t,Br as n,Da as r,Dn as i,En as a,Er as o,Fr as s,Gi as c,Gr as l,H as u,Hn as d,Ia as f,In as p,Ir as m,It as h,Ji as g,Jr as _,Kn as ee,Li as v,Mn as y,Ni as b,Nr as x,Or as S,Pi as C,Pn as te,Qn as ne,Rn as w,Si as T,Ta as E,Tn as D,Tr as O,U as re,Un as k,Vi as ie,Vn as ae,Vr as oe,Vt as se,X as ce,Xi as le,Xt as ue,Y as de,Yi as fe,Zi as A,Zr as pe,Zt as me,_i as j,_r as he,ca as M,ci as N,cn as ge,en as _e,fa as P,gi as F,gn as ve,h as ye,ha as I,hi as L,ia as be,in as xe,ir as Se,kn as R,la as z,lr as Ce,ma as B,mi as V,oi as we,on as Te,or as Ee,pi as H,qi as U,rn as De,rr as Oe,si as W,sn as ke,tn as Ae,ui as G,ur as je,w as Me,wi as Ne,wr as Pe,xi as K,xr as Fe,yr as Ie}from"./index-B6g1sTYu.js";import{t as Le}from"./cloud-session-DdyThqRZ.js";import{t as Re}from"./auth-errors-D1vsMDwQ.js";import{t as ze}from"./checkbox-BXKU50DB.js";import{t as Be}from"./card-t-SFF-U6.js";import{t as Ve}from"./multiselect-Bj63wGj5.js";import{a as He,i as Ue,n as We,o as Ge,r as Ke,t as qe}from"./tabpanel-YaPrIHPz.js";import{t as Je}from"./autocomplete-j6EJ4qc7.js";import{t as Ye}from"./src-w4lOtiso.js";var q=ne.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`}}}),Xe={name:`BaseSlider`,extends:ge,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:q,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function Ze(e){"@babel/helpers - typeof";return Ze=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},Ze(e)}function Qe(e,t,n){return(t=$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){var t=et(e,`string`);return Ze(t)==`symbol`?t:t+``}function et(e,t){if(Ze(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ze(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function J(e){return it(e)||rt(e)||nt(e)||tt()}function tt(){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 nt(e,t){if(e){if(typeof e==`string`)return at(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}function rt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function it(e){if(Array.isArray(e))return at(e)}function at(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ot={name:`Slider`,extends:Xe,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+t(),this.initY=e.top+Se(),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`?Fe(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?J(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||he(e.target,`data-pc-section`)!==`handle`&&(this.updateDomData(),this.setValue(e))},onMouseDown:function(e,t){this.bindDragListeners(),this.onDragStart(e,t)},onKeyDown:function(e,t){switch(this.handleIndex=t,e.code){case`ArrowDown`:case`ArrowLeft`:this.decrementValue(e,t),e.preventDefault();break;case`ArrowUp`:case`ArrowRight`:this.incrementValue(e,t),e.preventDefault();break;case`PageDown`:this.decrementValue(e,t,!0),e.preventDefault();break;case`PageUp`:this.incrementValue(e,t,!0),e.preventDefault();break;case`Home`:this.updateModel(e,this.min),e.preventDefault();break;case`End`:this.updateModel(e,this.max),e.preventDefault();break}},onBlur:function(e,t){var n,r;(n=(r=this.formField).onBlur)==null||n.call(r,e)},decrementValue:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.range?this.step?this.value[t]-this.step:this.value[t]-1:this.step?this.value-this.step:!this.step&&n?this.value-10:this.value-1;this.updateModel(e,r),e.preventDefault()},incrementValue:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.range?this.step?this.value[t]+this.step:this.value[t]+1:this.step?this.value+this.step:!this.step&&n?this.value+10:this.value+1;this.updateModel(e,r),e.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener(`mousemove`,this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener(`mouseup`,this.dragEndListener))},unbindDragListeners:function(){this.dragListener&&=(document.removeEventListener(`mousemove`,this.dragListener),null),this.dragEndListener&&=(document.removeEventListener(`mouseup`,this.dragEndListener),null)},rangeStyle:function(){if(this.range){var e=this.rangeEndPosition>this.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,t=this.rangeEndPosition>this.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{"inset-inline-start":t+`%`,width:e+`%`}:{bottom:t+`%`,height:e+`%`}}else if(this.horizontal)return{width:this.handlePosition+`%`};else return{height:this.handlePosition+`%`}},handleStyle:function(){return this.horizontal?{"inset-inline-start":this.handlePosition+`%`}:{bottom:this.handlePosition+`%`}},rangeStartHandleStyle:function(){return this.horizontal?{"inset-inline-start":this.rangeStartPosition+`%`}:{bottom:this.rangeStartPosition+`%`}},rangeEndHandleStyle:function(){return this.horizontal?{"inset-inline-start":this.rangeEndPosition+`%`}:{bottom:this.rangeEndPosition+`%`}}},computed:{value:function(){return this.range?[this.d_value?.[0]??this.min,this.d_value?.[1]??this.max]:this.d_value??this.min},horizontal:function(){return this.orientation===`horizontal`},vertical:function(){return this.orientation===`vertical`},handlePosition:function(){return this.value<this.min?0:this.value>this.max?100:(this.value-this.min)*100/(this.max-this.min)},rangeStartPosition:function(){return this.value&&this.value[0]!==void 0?this.value[0]<this.min?0:(this.value[0]-this.min)*100/(this.max-this.min):0},rangeEndPosition:function(){return this.value&&this.value.length===2&&this.value[1]!==void 0?this.value[1]>this.max?100:(this.value[1]-this.min)*100/(this.max-this.min):100},dataP:function(){return m(Qe({},this.orientation,this.orientation))}}},st=[`data-p`],ct=[`data-p`],lt=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],ut=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],dt=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`];function ft(e,t,n,r,i,a){return c(),j(`div`,b({class:e.cx(`root`),onClick:t[18]||=function(){return a.onBarClick&&a.onBarClick.apply(a,arguments)}},e.ptmi(`root`),{"data-p-sliding":!1,"data-p":a.dataP}),[V(`span`,b({class:e.cx(`range`),style:[e.sx(`range`),a.rangeStyle()]},e.ptm(`range`),{"data-p":a.dataP}),null,16,ct),e.range?F(``,!0):(c(),j(`span`,b({key:0,class:e.cx(`handle`),style:[e.sx(`handle`),a.handleStyle()],onTouchstartPassive:t[0]||=function(e){return a.onDragStart(e)},onTouchmovePassive:t[1]||=function(e){return a.onDrag(e)},onTouchend:t[2]||=function(e){return a.onDragEnd(e)},onMousedown:t[3]||=function(e){return a.onMouseDown(e)},onKeydown:t[4]||=function(e){return a.onKeyDown(e)},onBlur:t[5]||=function(e){return a.onBlur(e)},tabindex:e.tabindex,role:`slider`,"aria-valuemin":e.min,"aria-valuenow":e.d_value,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm(`handle`),{"data-p":a.dataP}),null,16,lt)),e.range?(c(),j(`span`,b({key:1,class:e.cx(`handle`),style:[e.sx(`handle`),a.rangeStartHandleStyle()],onTouchstartPassive:t[6]||=function(e){return a.onDragStart(e,0)},onTouchmovePassive:t[7]||=function(e){return a.onDrag(e)},onTouchend:t[8]||=function(e){return a.onDragEnd(e)},onMousedown:t[9]||=function(e){return a.onMouseDown(e,0)},onKeydown:t[10]||=function(e){return a.onKeyDown(e,0)},onBlur:t[11]||=function(e){return a.onBlur(e,0)},tabindex:e.tabindex,role:`slider`,"aria-valuemin":e.min,"aria-valuenow":e.d_value?e.d_value[0]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm(`startHandler`),{"data-p":a.dataP}),null,16,ut)):F(``,!0),e.range?(c(),j(`span`,b({key:2,class:e.cx(`handle`),style:[e.sx(`handle`),a.rangeEndHandleStyle()],onTouchstartPassive:t[12]||=function(e){return a.onDragStart(e,1)},onTouchmovePassive:t[13]||=function(e){return a.onDrag(e)},onTouchend:t[14]||=function(e){return a.onDragEnd(e)},onMousedown:t[15]||=function(e){return a.onMouseDown(e,1)},onKeydown:t[16]||=function(e){return a.onKeyDown(e,1)},onBlur:t[17]||=function(e){return a.onBlur(e,1)},tabindex:e.tabindex,role:`slider`,"aria-valuemin":e.min,"aria-valuenow":e.d_value?e.d_value[1]:null,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm(`endHandler`),{"data-p":a.dataP}),null,16,dt)):F(``,!0)],16,st)}ot.render=ft;var pt={name:`CalendarIcon`,extends:p};function mt(e){return vt(e)||_t(e)||gt(e)||ht()}function ht(){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 gt(e,t){if(e){if(typeof e==`string`)return yt(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)?yt(e,t):void 0}}function _t(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function vt(e){if(Array.isArray(e))return yt(e)}function yt(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 bt(e,t,n,r,i,a){return c(),j(`svg`,b({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),mt(t[0]||=[V(`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)}pt.render=bt;var xt=ne.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}}}}),St={name:`BaseDatePicker`,extends:ke,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:xt,provide:function(){return{$pcDatePicker:this,$parentInstance:this}}};function Ct(e,t,n){return(t=wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(e){var t=Tt(e,`string`);return Et(t)==`symbol`?t:t+``}function Tt(e,t){if(Et(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Et(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Et(e){"@babel/helpers - typeof";return Et=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},Et(e)}function Dt(e){return At(e)||kt(e)||Mt(e)||Ot()}function Ot(){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 kt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function At(e){if(Array.isArray(e))return Nt(e)}function jt(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Mt(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 Mt(e,t){if(e){if(typeof e==`string`)return Nt(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)?Nt(e,t):void 0}}function Nt(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 Pt={name:`DatePicker`,extends:St,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=l(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=jt(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){Ie(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 k(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&&!O()&&(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?je(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=x(this.overlay)+`px`,this.overlay.style.minWidth=x(this.$el)+`px`):this.overlay.style.width=x(this.$el)+`px`,Ee(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=jt(this.disabledDates),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a.getFullYear()===n&&a.getMonth()===t&&a.getDate()===e)return!0}}catch(e){r.e(e)}finally{r.f()}}return!1},isDayDisabled:function(e,t,n){if(this.disabledDays){var r=new Date(n,t,e).getDay();return this.disabledDays.indexOf(r)!==-1}return!1},onMonthDropdownChange:function(e){this.currentMonth=parseInt(e),this.$emit(`month-change`,{month:this.currentMonth+1,year:this.currentYear})},onYearDropdownChange:function(e){this.currentYear=parseInt(e),this.$emit(`year-change`,{month:this.currentMonth,year:this.currentYear})},onDateSelect:function(e,t){var n=this;if(!(this.disabled||!t.selectable)){if(Pe(this.overlay,`table td span:not([data-p-disabled="true"])`).forEach(function(e){return e.tabIndex=-1}),e&&e.currentTarget.focus(),this.isMultipleSelection()&&this.isSelected(t)){var r=this.rawValue.filter(function(e){return!n.isDateEquals(n.parseValueForComparison(e),t)});this.updateModel(r)}else this.shouldSelectDate(t)&&(t.otherMonth?(this.currentMonth=t.month,this.currentYear=t.year,this.selectDate(t)):this.selectDate(t));this.isSingleSelection()&&(!this.showTime||this.hideOnDateTimeSelect)&&(this.input&&this.input.focus(),setTimeout(function(){n.overlayVisible=!1},150))}},selectDate:function(e){var t=this,n=new Date(e.year,e.month,e.day);this.showTime&&(this.hourFormat===`12`&&this.currentHour!==12&&this.pm?n.setHours(this.currentHour+12):n.setHours(this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.showSeconds?this.currentSecond:0)),this.minDate&&this.minDate>n&&(n=this.minDate,this.currentHour=n.getHours(),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.currentHour=n.getHours(),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds());var r=null;if(this.isSingleSelection())r=n;else if(this.isMultipleSelection())r=this.rawValue?[].concat(Dt(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 n(e)&&_(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(Dt(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=jt(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=Et(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=Ce(i);switch(e.code){case`ArrowDown`:if(r.tabIndex=`-1`,i.parentElement.nextElementSibling){var o=Ce(i.parentElement),s=Array.from(i.parentElement.parentElement.children).slice(o+1).find(function(e){var t=e.children[a].children[0];return!he(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=Ce(i.parentElement),u=Array.from(i.parentElement.parentElement.children).slice(0,l).reverse().find(function(e){var t=e.children[a].children[0];return!he(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!he(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!he(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];he(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,ee=_.children[_.children.length-1].children[0];he(ee,`data-p-disabled`)?this.navigateToMonth(e,!1,n):(ee.tabIndex=`0`,ee.focus()),e.preventDefault();break;case`PageUp`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,n),e.preventDefault();break;case`PageDown`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,n),e.preventDefault();break}},navigateToMonth:function(e,t,n){if(t)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this.navBackward(e);else{var r=this.overlay.children[n-1],i=Pe(r,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`),a=i[i.length-1];a.tabIndex=`0`,a.focus()}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(e);else{var o=this.overlay.children[n+1],c=s(o,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);c.tabIndex=`0`,c.focus()}},onMonthCellKeydown:function(e,t){var n=e.currentTarget;switch(e.code){case`ArrowUp`:case`ArrowDown`:n.tabIndex=`-1`;var r=n.parentElement.children,i=Ce(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=Ce(n),a=r[e.code===`ArrowDown`?i+2:i-2];a&&(a.tabIndex=`0`,a.focus()),e.preventDefault();break;case`ArrowLeft`:n.tabIndex=`-1`;var o=n.previousElementSibling;o?(o.tabIndex=`0`,o.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break;case`ArrowRight`:n.tabIndex=`-1`;var s=n.nextElementSibling;s?(s.tabIndex=`0`,s.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break;case`PageUp`:if(e.shiftKey)return;this.navigationState={backward:!0},this.navBackward(e);break;case`PageDown`:if(e.shiftKey)return;this.navigationState={backward:!1},this.navForward(e);break;case`Enter`:case`NumpadEnter`:case`Space`:this.onYearSelect(e,t),e.preventDefault();break;case`Escape`:this.overlayVisible=!1,e.preventDefault();break;case`Tab`:this.trapFocus(e);break}},updateFocus:function(){var e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?this.previousButton&&this.previousButton.focus():this.nextButton&&this.nextButton.focus();else{if(this.navigationState.backward){var t=this.currentView===`month`?Pe(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?Pe(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):Pe(this.overlay,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);t&&t.length>0&&(e=t[t.length-1])}else e=this.currentView===`month`?s(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?s(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):s(this.overlay,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);e&&(e.tabIndex=`0`,e.focus())}this.navigationState=null}else this.initFocusableCell()},initFocusableCell:function(){var e;if(this.currentView===`month`){var t=Pe(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]`),n=s(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"][data-p-selected="true"]`);t.forEach(function(e){return e.tabIndex=-1}),e=n||t[0]}else if(this.currentView===`year`){var r=Pe(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),i=s(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=s(this.overlay,`span[data-p-selected="true"]`),!e&&(e=s(this.overlay,`td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])`)||s(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=S(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=l(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=l(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&&S(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(t){t.stopPropagation(),this.inline||e.emit(`overlay-click`,{originalEvent:t,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`,o(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=oe(),r=Dt(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],s=a.breakpoint,c=a.numMonths,l=`
|
|
558
|
+
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${c}) .p-datepicker-next-button {
|
|
559
|
+
display: inline-flex;
|
|
560
|
+
}
|
|
561
|
+
`,u=c;u<this.numberOfMonths;u++)l+=`
|
|
562
|
+
.p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${u+1}) {
|
|
563
|
+
display: none;
|
|
564
|
+
}
|
|
565
|
+
`;t+=`
|
|
566
|
+
@media screen and (max-width: ${s}) {
|
|
567
|
+
${l}
|
|
568
|
+
}
|
|
569
|
+
`}this.responsiveStyleElement.innerHTML=t}},destroyResponsiveStyleElement:function(){this.responsiveStyleElement&&=(this.responsiveStyleElement.remove(),null)},dayDataP:function(e){return m({today:e.today,"other-month":e.otherMonth,selected:this.isSelected(e),disabled:!e.selectable})}},computed:{viewDate:function(){var e=this.rawValue;if(e&&Array.isArray(e))if(this.isRangeSelection())if(e.length===0)e=null;else if(e.length===1)e=e[0];else{var t=this.parseValueForComparison(e[0]),n=new Date(t.getFullYear(),t.getMonth()+this.numberOfMonths,1);if(!e[1]||e[1]<n)e=e[0];else{var r=this.parseValueForComparison(e[1]);e=new Date(r.getFullYear(),r.getMonth()-this.numberOfMonths+1,1)}}else this.isMultipleSelection()&&(e=e[e.length-1]);if(e&&typeof e!=`string`)return e;var i=new Date;return this.maxDate&&this.maxDate<i?this.maxDate:this.minDate&&this.minDate>i?this.minDate:i},inputFieldValue:function(){return this.formatValue(this.rawValue)},months:function(){for(var e=[],t=0;t<this.numberOfMonths;t++){var n=this.currentMonth+t,r=this.currentYear;n>11&&(n=n%11-1,r+=1);for(var i=[],a=this.getFirstDayOfMonthIndex(n,r),o=this.getDaysCountInMonth(n,r),s=this.getDaysCountInPrevMonth(n,r),c=1,l=new Date,u=[],d=Math.ceil((o+a)/7),f=0;f<d;f++){var p=[];if(f==0){for(var m=s-a+1;m<=s;m++){var h=this.getPreviousMonthAndYear(n,r);p.push({day:m,month:h.month,year:h.year,otherMonth:!0,today:this.isToday(l,m,h.month,h.year),selectable:this.isSelectable(m,h.month,h.year,!0)})}for(var g=7-p.length,_=0;_<g;_++)p.push({day:c,month:n,year:r,today:this.isToday(l,c,n,r),selectable:this.isSelectable(c,n,r,!1)}),c++}else for(var ee=0;ee<7;ee++){if(c>o){var v=this.getNextMonthAndYear(n,r);p.push({day:c-o,month:v.month,year:v.year,otherMonth:!0,today:this.isToday(l,c-o,v.month,v.year),selectable:this.isSelectable(c-o,v.month,v.year,!0)})}else p.push({day:c,month:n,year:r,today:this.isToday(l,c,n,r),selectable:this.isSelectable(c,n,r,!1)});c++}this.showWeek&&u.push(this.getWeekNumber(new Date(p[0].year,p[0].month,p[0].day))),i.push(p)}e.push({month:n,year:r,dates:i,weekNumbers:u})}return e},weekDays:function(){for(var e=[],t=this.$primevue.config.locale.firstDayOfWeek,n=0;n<7;n++)e.push(this.$primevue.config.locale.dayNamesMin[t]),t=t==6?0:++t;return e},ticksTo1970:function(){return 719162*24*60*60*1e7},sundayIndex:function(){return this.$primevue.config.locale.firstDayOfWeek>0?7-this.$primevue.config.locale.firstDayOfWeek:0},datePattern:function(){return this.dateFormat||this.$primevue.config.locale.dateFormat},monthPickerValues:function(){for(var e=this,t=[],n=function(t){if(e.minDate){var n=e.minDate.getMonth(),r=e.minDate.getFullYear();if(e.currentYear<r||e.currentYear===r&&t<n)return!1}if(e.maxDate){var i=e.maxDate.getMonth(),a=e.maxDate.getFullYear();if(e.currentYear>a||e.currentYear===a&&t>i)return!1}return!0},r=0;r<=11;r++)t.push({value:this.$primevue.config.locale.monthNamesShort[r],selectable:n(r)});return t},yearPickerValues:function(){for(var e=this,t=[],n=this.currentYear-this.currentYear%10,r=function(t){return!(e.minDate&&e.minDate.getFullYear()>t||e.maxDate&&e.maxDate.getFullYear()<t)},i=0;i<10;i++)t.push({value:n+i,selectable:r(n+i)});return t},formattedCurrentHour:function(){return this.currentHour==0&&this.hourFormat==`12`?this.currentHour+12:this.currentHour<10?`0`+this.currentHour:this.currentHour},formattedCurrentMinute:function(){return this.currentMinute<10?`0`+this.currentMinute:this.currentMinute},formattedCurrentSecond:function(){return this.currentSecond<10?`0`+this.currentSecond:this.currentSecond},todayLabel:function(){return this.$primevue.config.locale.today},clearLabel:function(){return this.$primevue.config.locale.clear},weekHeaderLabel:function(){return this.$primevue.config.locale.weekHeader},monthNames:function(){return this.$primevue.config.locale.monthNames},switchViewButtonDisabled:function(){return this.numberOfMonths>1||this.disabled},isClearIconVisible:function(){return this.showClear&&this.rawValue!=null&&!this.disabled},panelId:function(){return this.$id+`_panel`},containerDataP:function(){return m({fluid:this.$fluid})},panelDataP:function(){return m(Ct({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return m(Ct({},this.size,this.size))},timePickerDataP:function(){return m({"time-only":this.timeOnly})},hourIncrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,0,1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,0,1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},hourDecrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,0,-1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,0,-1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},minuteIncrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,1,1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,1,1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},minuteDecrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,1,-1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,1,-1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},secondIncrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,2,1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,2,1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}},secondDecrementCallbacks:function(){var e=this;return{mousedown:function(t){return e.onTimePickerElementMouseDown(t,2,-1)},mouseup:function(t){return e.onTimePickerElementMouseUp(t)},mouseleave:function(){return e.onTimePickerElementMouseLeave()},keydown:function(t){return e.onTimePickerElementKeyDown(t,2,-1)},keyup:function(t){return e.onTimePickerElementKeyUp(t)}}}},components:{InputText:Te,Button:R,Portal:w,CalendarIcon:pt,ChevronLeftIcon:He,ChevronRightIcon:ce,ChevronUpIcon:de,ChevronDownIcon:De,TimesIcon:te},directives:{ripple:y}},Ft=[`id`,`data-p`],It=[`disabled`,`aria-label`,`aria-expanded`,`aria-controls`],Lt=[`data-p`],Rt=[`id`,`role`,`aria-modal`,`aria-label`,`data-p`],zt=[`disabled`,`aria-label`],Bt=[`disabled`,`aria-label`],Vt=[`disabled`,`aria-label`],Ht=[`disabled`,`aria-label`],Ut=[`data-p-disabled`],Wt=[`abbr`],Gt=[`data-p-disabled`],Kt=[`aria-label`,`data-p-today`,`data-p-other-month`],qt=[`onClick`,`onKeydown`,`aria-selected`,`aria-disabled`,`data-p`],Jt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Yt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Xt=[`data-p`];function Zt(e,t,n,r,i,a){var o=fe(`InputText`),s=fe(`TimesIcon`),l=fe(`Button`),u=fe(`Portal`),d=le(`ripple`);return c(),j(`span`,b({ref:`container`,id:e.$id,class:e.cx(`root`),style:e.sx(`root`),"data-p":a.containerDataP},e.ptmi(`root`)),[e.inline?F(``,!0):(c(),L(o,{key:0,ref:a.inputRef,id:e.inputId,role:`combobox`,class:P([e.inputClass,e.cx(`pcInputText`)]),style:B(e.inputStyle),defaultValue:a.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":i.overlayVisible,"aria-controls":i.overlayVisible?a.panelId:void 0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:`none`,disabled:e.disabled,readonly:!e.manualInput||e.readonly,tabindex:0,onInput:a.onInput,onClick:a.onInputClick,onFocus:a.onFocus,onBlur:a.onBlur,onKeydown:a.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?g(e.$slots,`clearicon`,{key:1,class:P(e.cx(`clearIcon`)),clearCallback:a.onClearClick},function(){return[T(s,b({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:a.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):F(``,!0),e.showIcon&&e.iconDisplay===`button`&&!e.inline?g(e.$slots,`dropdownbutton`,{key:2,toggleCallback:a.onButtonClick},function(){return[V(`button`,b({class:e.cx(`dropdown`),disabled:e.disabled,onClick:t[0]||=function(){return a.onButtonClick&&a.onButtonClick.apply(a,arguments)},type:`button`,"aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":i.overlayVisible,"aria-controls":a.panelId},e.ptm(`dropdown`)),[g(e.$slots,`dropdownicon`,{class:P(e.icon)},function(){return[(c(),L(A(e.icon?`span`:`CalendarIcon`),b({class:e.icon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,It)]}):e.showIcon&&e.iconDisplay===`input`&&!e.inline?(c(),j(G,{key:3},[e.$slots.inputicon||e.showIcon?(c(),j(`span`,b({key:0,class:e.cx(`inputIconContainer`),"data-p":a.inputIconDataP},e.ptm(`inputIconContainer`)),[g(e.$slots,`inputicon`,{class:P(e.cx(`inputIcon`)),clickCallback:a.onButtonClick},function(){return[(c(),L(A(e.icon?`i`:`CalendarIcon`),b({class:[e.icon,e.cx(`inputIcon`)],onClick:a.onButtonClick},e.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,Lt)):F(``,!0)],64)):F(``,!0),T(u,{appendTo:e.appendTo,disabled:e.inline},{default:M(function(){return[T(pe,b({name:`p-anchored-overlay`,onEnter:t[58]||=function(e){return a.onOverlayEnter(e)},onAfterEnter:a.onOverlayEnterComplete,onAfterLeave:a.onOverlayAfterLeave,onLeave:a.onOverlayLeave},e.ptm(`transition`)),{default:M(function(){return[e.inline||i.overlayVisible?(c(),j(`div`,b({key:0,ref:a.overlayRef,id:a.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 a.onOverlayClick&&a.onOverlayClick.apply(a,arguments)},onKeydown:t[56]||=function(){return a.onOverlayKeyDown&&a.onOverlayKeyDown.apply(a,arguments)},onMouseup:t[57]||=function(){return a.onOverlayMouseUp&&a.onOverlayMouseUp.apply(a,arguments)},"data-p":a.panelDataP},e.ptm(`panel`)),[e.timeOnly?F(``,!0):(c(),j(G,{key:0},[V(`div`,b({class:e.cx(`calendarContainer`)},e.ptm(`calendarContainer`)),[(c(!0),j(G,null,U(a.months,function(n,r){return c(),j(`div`,b({key:n.month+n.year,class:e.cx(`calendar`)},{ref_for:!0},e.ptm(`calendar`)),[V(`div`,b({class:e.cx(`header`)},{ref_for:!0},e.ptm(`header`)),[g(e.$slots,`header`),g(e.$slots,`prevbutton`,{actionCallback:function(e){return a.onPrevButtonClick(e)},keydownCallback:function(e){return a.onContainerButtonKeydown(e)}},function(){return[z(T(l,b({ref_for:!0,ref:a.previousButtonRef,class:e.cx(`pcPrevButton`),disabled:e.disabled,"aria-label":i.currentView===`year`?e.$primevue.config.locale.prevDecade:i.currentView===`month`?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth,unstyled:e.unstyled,onClick:a.onPrevButtonClick,onKeydown:a.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcPrevButton`),"data-pc-group-section":`navigator`}),{icon:M(function(t){return[g(e.$slots,`previcon`,{},function(){return[(c(),L(A(e.prevIcon?`span`:`ChevronLeftIcon`),b({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`]),[[we,r===0]])]}),V(`div`,b({class:e.cx(`title`)},{ref_for:!0},e.ptm(`title`)),[e.$primevue.config.locale.showMonthAfterYear?(c(),j(G,{key:0},[i.currentView===`year`?F(``,!0):(c(),j(`button`,b({key:0,type:`button`,onClick:t[1]||=function(){return a.switchToYearView&&a.switchToYearView.apply(a,arguments)},onKeydown:t[2]||=function(){return a.onContainerButtonKeydown&&a.onContainerButtonKeydown.apply(a,arguments)},class:e.cx(`selectYear`),disabled:a.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),I(a.getYear(n)),17,zt)),i.currentView===`date`?(c(),j(`button`,b({key:1,type:`button`,onClick:t[3]||=function(){return a.switchToMonthView&&a.switchToMonthView.apply(a,arguments)},onKeydown:t[4]||=function(){return a.onContainerButtonKeydown&&a.onContainerButtonKeydown.apply(a,arguments)},class:e.cx(`selectMonth`),disabled:a.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),I(a.getMonthName(n.month)),17,Bt)):F(``,!0)],64)):(c(),j(G,{key:1},[i.currentView===`date`?(c(),j(`button`,b({key:0,type:`button`,onClick:t[5]||=function(){return a.switchToMonthView&&a.switchToMonthView.apply(a,arguments)},onKeydown:t[6]||=function(){return a.onContainerButtonKeydown&&a.onContainerButtonKeydown.apply(a,arguments)},class:e.cx(`selectMonth`),disabled:a.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),I(a.getMonthName(n.month)),17,Vt)):F(``,!0),i.currentView===`year`?F(``,!0):(c(),j(`button`,b({key:1,type:`button`,onClick:t[7]||=function(){return a.switchToYearView&&a.switchToYearView.apply(a,arguments)},onKeydown:t[8]||=function(){return a.onContainerButtonKeydown&&a.onContainerButtonKeydown.apply(a,arguments)},class:e.cx(`selectYear`),disabled:a.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),I(a.getYear(n)),17,Ht))],64)),i.currentView===`year`?(c(),j(`span`,b({key:2,class:e.cx(`decade`)},{ref_for:!0},e.ptm(`decade`)),[g(e.$slots,`decade`,{years:a.yearPickerValues},function(){return[K(I(a.yearPickerValues[0].value)+` - `+I(a.yearPickerValues[a.yearPickerValues.length-1].value),1)]})],16)):F(``,!0)],16),g(e.$slots,`nextbutton`,{actionCallback:function(e){return a.onNextButtonClick(e)},keydownCallback:function(e){return a.onContainerButtonKeydown(e)}},function(){return[z(T(l,b({ref_for:!0,ref:a.nextButtonRef,class:e.cx(`pcNextButton`),disabled:e.disabled,"aria-label":i.currentView===`year`?e.$primevue.config.locale.nextDecade:i.currentView===`month`?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth,unstyled:e.unstyled,onClick:a.onNextButtonClick,onKeydown:a.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcNextButton`),"data-pc-group-section":`navigator`}),{icon:M(function(t){return[g(e.$slots,`nexticon`,{},function(){return[(c(),L(A(e.nextIcon?`span`:`ChevronRightIcon`),b({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`]),[[we,e.numberOfMonths===1?!0:r===e.numberOfMonths-1]])]})],16),i.currentView===`date`?(c(),j(`table`,b({key:0,class:e.cx(`dayView`),role:`grid`},{ref_for:!0},e.ptm(`dayView`)),[V(`thead`,b({ref_for:!0},e.ptm(`tableHeader`)),[V(`tr`,b({ref_for:!0},e.ptm(`tableHeaderRow`)),[e.showWeek?(c(),j(`th`,b({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`}),[g(e.$slots,`weekheaderlabel`,{},function(){return[V(`span`,b({ref_for:!0},e.ptm(`weekHeaderLabel`,{context:{disabled:e.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),I(a.weekHeaderLabel),17)]})],16,Ut)):F(``,!0),(c(!0),j(G,null,U(a.weekDays,function(t){return c(),j(`th`,b({key:t,scope:`col`,abbr:t},{ref_for:!0},e.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:e.cx(`weekDayCell`)}),[V(`span`,b({class:e.cx(`weekDay`)},{ref_for:!0},e.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),I(t),17)],16,Wt)}),128))],16)],16),V(`tbody`,b({ref_for:!0},e.ptm(`tableBody`)),[(c(!0),j(G,null,U(n.dates,function(t,i){return c(),j(`tr`,b({key:t[0].day+``+t[0].month},{ref_for:!0},e.ptm(`tableBodyRow`)),[e.showWeek?(c(),j(`td`,b({key:0,class:e.cx(`weekNumber`)},{ref_for:!0},e.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[V(`span`,b({class:e.cx(`weekLabelContainer`)},{ref_for:!0},e.ptm(`weekLabelContainer`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tablebodycelllabel`}),[g(e.$slots,`weeklabel`,{weekNumber:n.weekNumbers[i]},function(){return[n.weekNumbers[i]<10?(c(),j(`span`,b({key:0,style:{visibility:`hidden`}},{ref_for:!0},e.ptm(`weekLabel`)),`0`,16)):F(``,!0),K(` `+I(n.weekNumbers[i]),1)]})],16,Gt)],16)):F(``,!0),(c(!0),j(G,null,U(t,function(t){return c(),j(`td`,b({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:a.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?z((c(),j(`span`,b({key:0,class:e.cx(`day`,{date:t}),onClick:function(e){return a.onDateSelect(e,t)},draggable:`false`,onKeydown:function(e){return a.onDateCellKeydown(e,t,r)},"aria-selected":a.isSelected(t),"aria-disabled":!t.selectable},{ref_for:!0},e.ptm(`day`,{context:{date:t,today:t.today,otherMonth:t.otherMonth,selected:a.isSelected(t),disabled:!t.selectable}}),{"data-p":a.dayDataP(t),"data-pc-group-section":`tablebodycelllabel`}),[g(e.$slots,`date`,{date:t},function(){return[K(I(t.day),1)]})],16,qt)),[[d]]):F(``,!0),a.isSelected(t)?(c(),j(`div`,b({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),I(t.day),17)):F(``,!0)],16,Kt)}),128))],16)}),128))],16)],16)):F(``,!0)],16)}),128))],16),i.currentView===`month`?(c(),j(`div`,b({key:0,class:e.cx(`monthView`)},e.ptm(`monthView`)),[(c(!0),j(G,null,U(a.monthPickerValues,function(t,n){return z((c(),j(`span`,b({key:t,onClick:function(e){return a.onMonthSelect(e,{month:t,index:n})},onKeydown:function(e){return a.onMonthCellKeydown(e,{month:t,index:n})},class:e.cx(`month`,{month:t,index:n})},{ref_for:!0},e.ptm(`month`,{context:{month:t,monthIndex:n,selected:a.isMonthSelected(n),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":a.isMonthSelected(n)}),[K(I(t.value)+` `,1),a.isMonthSelected(n)?(c(),j(`div`,b({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),I(t.value),17)):F(``,!0)],16,Jt)),[[d]])}),128))],16)):F(``,!0),i.currentView===`year`?(c(),j(`div`,b({key:1,class:e.cx(`yearView`)},e.ptm(`yearView`)),[(c(!0),j(G,null,U(a.yearPickerValues,function(t){return z((c(),j(`span`,b({key:t.value,onClick:function(e){return a.onYearSelect(e,t)},onKeydown:function(e){return a.onYearCellKeydown(e,t)},class:e.cx(`year`,{year:t})},{ref_for:!0},e.ptm(`year`,{context:{year:t,selected:a.isYearSelected(t.value),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":a.isYearSelected(t.value)}),[K(I(t.value)+` `,1),a.isYearSelected(t.value)?(c(),j(`div`,b({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),I(t.value),17)):F(``,!0)],16,Yt)),[[d]])}),128))],16)):F(``,!0)],64)),(e.showTime||e.timeOnly)&&i.currentView===`date`?(c(),j(`div`,b({key:1,class:e.cx(`timePicker`),"data-p":a.timePickerDataP},e.ptm(`timePicker`)),[V(`div`,b({class:e.cx(`hourPicker`)},e.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[g(e.$slots,`hourincrementbutton`,{callbacks:a.hourIncrementCallbacks},function(){return[T(l,b({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextHour,unstyled:e.unstyled,onMousedown:t[9]||=function(e){return a.onTimePickerElementMouseDown(e,0,1)},onMouseup:t[10]||=function(e){return a.onTimePickerElementMouseUp(e)},onKeydown:[a.onContainerButtonKeydown,t[12]||=W(function(e){return a.onTimePickerElementMouseDown(e,0,1)},[`enter`]),t[13]||=W(function(e){return a.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:t[11]||=function(e){return a.onTimePickerElementMouseLeave()},onKeyup:[t[14]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`enter`]),t[15]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`incrementicon`,{},function(){return[(c(),L(A(e.incrementIcon?`span`:`ChevronUpIcon`),b({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`])]}),V(`span`,b(e.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),I(a.formattedCurrentHour),17),g(e.$slots,`hourdecrementbutton`,{callbacks:a.hourDecrementCallbacks},function(){return[T(l,b({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevHour,unstyled:e.unstyled,onMousedown:t[16]||=function(e){return a.onTimePickerElementMouseDown(e,0,-1)},onMouseup:t[17]||=function(e){return a.onTimePickerElementMouseUp(e)},onKeydown:[a.onContainerButtonKeydown,t[19]||=W(function(e){return a.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),t[20]||=W(function(e){return a.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:t[18]||=function(e){return a.onTimePickerElementMouseLeave()},onKeyup:[t[21]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`enter`]),t[22]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`decrementicon`,{},function(){return[(c(),L(A(e.decrementIcon?`span`:`ChevronDownIcon`),b({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),V(`div`,b(e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[V(`span`,b(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),I(e.timeSeparator),17)],16),V(`div`,b({class:e.cx(`minutePicker`)},e.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[g(e.$slots,`minuteincrementbutton`,{callbacks:a.minuteIncrementCallbacks},function(){return[T(l,b({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[23]||=function(e){return a.onTimePickerElementMouseDown(e,1,1)},onMouseup:t[24]||=function(e){return a.onTimePickerElementMouseUp(e)},onKeydown:[a.onContainerButtonKeydown,t[26]||=W(function(e){return a.onTimePickerElementMouseDown(e,1,1)},[`enter`]),t[27]||=W(function(e){return a.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:t[25]||=function(e){return a.onTimePickerElementMouseLeave()},onKeyup:[t[28]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`enter`]),t[29]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`incrementicon`,{},function(){return[(c(),L(A(e.incrementIcon?`span`:`ChevronUpIcon`),b({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`])]}),V(`span`,b(e.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),I(a.formattedCurrentMinute),17),g(e.$slots,`minutedecrementbutton`,{callbacks:a.minuteDecrementCallbacks},function(){return[T(l,b({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[30]||=function(e){return a.onTimePickerElementMouseDown(e,1,-1)},onMouseup:t[31]||=function(e){return a.onTimePickerElementMouseUp(e)},onKeydown:[a.onContainerButtonKeydown,t[33]||=W(function(e){return a.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),t[34]||=W(function(e){return a.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:t[32]||=function(e){return a.onTimePickerElementMouseLeave()},onKeyup:[t[35]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`enter`]),t[36]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`decrementicon`,{},function(){return[(c(),L(A(e.decrementIcon?`span`:`ChevronDownIcon`),b({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?(c(),j(`div`,b({key:0,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[V(`span`,b(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),I(e.timeSeparator),17)],16)):F(``,!0),e.showSeconds?(c(),j(`div`,b({key:1,class:e.cx(`secondPicker`)},e.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[g(e.$slots,`secondincrementbutton`,{callbacks:a.secondIncrementCallbacks},function(){return[T(l,b({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[37]||=function(e){return a.onTimePickerElementMouseDown(e,2,1)},onMouseup:t[38]||=function(e){return a.onTimePickerElementMouseUp(e)},onKeydown:[a.onContainerButtonKeydown,t[40]||=W(function(e){return a.onTimePickerElementMouseDown(e,2,1)},[`enter`]),t[41]||=W(function(e){return a.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:t[39]||=function(e){return a.onTimePickerElementMouseLeave()},onKeyup:[t[42]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`enter`]),t[43]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`incrementicon`,{},function(){return[(c(),L(A(e.incrementIcon?`span`:`ChevronUpIcon`),b({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`])]}),V(`span`,b(e.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),I(a.formattedCurrentSecond),17),g(e.$slots,`seconddecrementbutton`,{callbacks:a.secondDecrementCallbacks},function(){return[T(l,b({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:t[44]||=function(e){return a.onTimePickerElementMouseDown(e,2,-1)},onMouseup:t[45]||=function(e){return a.onTimePickerElementMouseUp(e)},onKeydown:[a.onContainerButtonKeydown,t[47]||=W(function(e){return a.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),t[48]||=W(function(e){return a.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:t[46]||=function(e){return a.onTimePickerElementMouseLeave()},onKeyup:[t[49]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`enter`]),t[50]||=W(function(e){return a.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`decrementicon`,{},function(){return[(c(),L(A(e.decrementIcon?`span`:`ChevronDownIcon`),b({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)):F(``,!0),e.hourFormat==`12`?(c(),j(`div`,b({key:2,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[V(`span`,b(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),I(e.timeSeparator),17)],16)):F(``,!0),e.hourFormat==`12`?(c(),j(`div`,b({key:3,class:e.cx(`ampmPicker`)},e.ptm(`ampmPicker`)),[g(e.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return a.toggleAMPM(e)},keydownCallback:function(e){return a.onContainerButtonKeydown(e)}},function(){return[T(l,b({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.am,disabled:e.disabled,unstyled:e.unstyled,onClick:t[51]||=function(e){return a.toggleAMPM(e)},onKeydown:a.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`incrementicon`,{class:P(e.cx(`incrementIcon`))},function(){return[(c(),L(A(e.incrementIcon?`span`:`ChevronUpIcon`),b({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`])]}),V(`span`,b(e.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),I(i.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),17),g(e.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return a.toggleAMPM(e)},keydownCallback:function(e){return a.onContainerButtonKeydown(e)}},function(){return[T(l,b({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.pm,disabled:e.disabled,onClick:t[52]||=function(e){return a.toggleAMPM(e)},onKeydown:a.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:M(function(t){return[g(e.$slots,`decrementicon`,{class:P(e.cx(`decrementIcon`))},function(){return[(c(),L(A(e.decrementIcon?`span`:`ChevronDownIcon`),b({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)):F(``,!0)],16,Xt)):F(``,!0),e.showButtonBar?(c(),j(`div`,b({key:2,class:e.cx(`buttonbar`)},e.ptm(`buttonbar`)),[g(e.$slots,`buttonbar`,{todayCallback:function(e){return a.onTodayButtonClick(e)},clearCallback:function(e){return a.onClearButtonClick(e)}},function(){return[g(e.$slots,`todaybutton`,{actionCallback:function(e){return a.onTodayButtonClick(e)},keydownCallback:function(e){return a.onContainerButtonKeydown(e)}},function(){return[T(l,b({label:a.todayLabel,onClick:t[53]||=function(e){return a.onTodayButtonClick(e)},class:e.cx(`pcTodayButton`),unstyled:e.unstyled,onKeydown:a.onContainerButtonKeydown},e.todayButtonProps,{pt:e.ptm(`pcTodayButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]}),g(e.$slots,`clearbutton`,{actionCallback:function(e){return a.onClearButtonClick(e)},keydownCallback:function(e){return a.onContainerButtonKeydown(e)}},function(){return[T(l,b({label:a.clearLabel,onClick:t[54]||=function(e){return a.onClearButtonClick(e)},class:e.cx(`pcClearButton`),unstyled:e.unstyled,onKeydown:a.onContainerButtonKeydown},e.clearButtonProps,{pt:e.ptm(`pcClearButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]})]})],16)):F(``,!0),g(e.$slots,`footer`)],16,Rt)):F(``,!0)]}),_:3},16,[`onAfterEnter`,`onAfterLeave`,`onLeave`])]}),_:3},8,[`appendTo`,`disabled`])],16,Ft)}Pt.render=Zt;function Qt(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 $t(e,t=new Date){let n=Qt(e);if(!n)return null;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n.getTime()-r.getTime())/864e5)}function Y(e,t=new Date){let n=$t(e,t);return n===null?null:n<0?`overdue`:n===0?`today`:n<=2?`soon`:`later`}function en(e,t){let n=Qt(e);return n?n.toLocaleDateString(t,{day:`2-digit`,month:`2-digit`,year:`numeric`}):e}var tn={class:`kb-card__top`},nn={class:`kb-card__title`},rn={class:`kb-card__actions`},an={key:0,class:`kb-card__groups`},on={key:1,class:`kb-card__assignees`},sn=[`title`],cn=[`src`,`onError`],ln={key:2,class:`kb-card__badges`},un={key:1,class:`kb-card__prio`},dn={key:2,class:`pi pi-arrow-up`},fn={key:3,class:`kb-card__img-badge`},pn={key:4,class:`pi pi-align-left`},mn={key:5,class:`kb-card__img-badge`},hn={key:6,class:`kb-card__img-badge`},gn=D(Ne({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(e){let t=e,n=H(()=>{let e=t.card.deadline;if(!e)return null;let n=Y(e);return n?{label:en(e),state:n}:null}),r=E(new Set);function i(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 a(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}return(e,o)=>{let s=le(`tooltip`);return c(),j(G,null,[V(`div`,tn,[V(`span`,nn,I(t.card.title),1),V(`div`,rn,[g(e.$slots,`actions`,{},void 0,!0)])]),t.card.groups?.length?(c(),j(`div`,an,[(c(!0),j(G,null,U(t.card.groups,e=>(c(),j(`span`,{key:e,class:`kb-card__group`},I(e),1))),128))])):F(``,!0),t.card.assignees?.length?(c(),j(`div`,on,[(c(!0),j(G,null,U(t.card.assignees,e=>(c(),j(`span`,{key:e.id,class:`kb-card__avatar`,style:B(i(e.id)),title:e.name},[t.avatarUrl&&!r.has(e.id)?(c(),j(`img`,{key:0,src:t.avatarUrl(e.id),alt:``,onError:t=>r.add(e.id)},null,40,cn)):(c(),j(G,{key:1},[K(I(a(e.name)),1)],64))],12,sn))),128))])):F(``,!0),t.card.markdown||t.card.images.length||t.card.commentCount||t.childCount||t.hasParent||n.value||e.$slots.badges?(c(),j(`div`,ln,[n.value?z((c(),j(`span`,{key:0,class:P([`kb-card__deadline`,`kb-card__deadline--${n.value.state}`])},[o[0]||=V(`i`,{class:`pi pi-calendar`},null,-1),K(` `+I(n.value.label),1)],2)),[[s,t.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):F(``,!0),t.card.priority?z((c(),j(`span`,un,[K(I(t.card.priority),1)])),[[s,t.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):F(``,!0),t.hasParent?z((c(),j(`i`,dn,null,512)),[[s,t.t(`card.hasParent`),void 0,{bottom:!0}]]):F(``,!0),t.childCount?z((c(),j(`span`,fn,[o[1]||=V(`i`,{class:`pi pi-sitemap`},null,-1),K(` `+I(t.childCount),1)])),[[s,t.t(`card.hasChildren`),void 0,{bottom:!0}]]):F(``,!0),t.card.markdown?(c(),j(`i`,pn)):F(``,!0),t.card.images.length?(c(),j(`span`,mn,[o[2]||=V(`i`,{class:`pi pi-image`},null,-1),K(` `+I(t.card.images.length),1)])):F(``,!0),t.card.commentCount?(c(),j(`span`,hn,[o[3]||=V(`i`,{class:`pi pi-comment`},null,-1),K(` `+I(t.card.commentCount),1)])):F(``,!0),g(e.$slots,`badges`,{},void 0,!0)])):F(``,!0)],64)}}}),[[`__scopeId`,`data-v-f1127747`]]),_n={key:0,class:`kb-files__thumb`},vn=[`src`,`alt`],yn={key:1,class:`pi pi-file kb-files__icon`},bn=[`title`,`onClick`],xn=[`title`],Sn={class:`kb-files__size`},Cn=[`title`,`onClick`],wn=D(Ne({__name:`AttachmentList`,props:{files:{},preview:{},openable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removeLabel:{default:``},compact:{type:Boolean,default:!1}},emits:[`open`,`remove`],setup(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,i)=>e.files.length?(c(),j(`ul`,{key:0,class:P([`kb-files`,{"kb-files--inline":e.compact}])},[(c(!0),j(G,null,U(e.files,(t,a)=>(c(),j(`li`,{key:t.id,class:`kb-files__item`},[e.preview(t)?(c(),j(`span`,_n,[V(`img`,{src:e.preview(t),alt:t.name},null,8,vn)])):(c(),j(`i`,yn)),e.openable?(c(),j(`button`,{key:2,class:`kb-files__name`,title:t.name,onClick:N(e=>n(`open`,t),[`stop`])},I(t.name),9,bn)):(c(),j(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:t.name},I(t.name),9,xn)),V(`span`,Sn,I(r(t.size)),1),e.removable?(c(),j(`button`,{key:4,class:`kb-files__remove`,title:e.removeLabel,onClick:N(e=>n(`remove`,a),[`stop`])},[...i[0]||=[V(`i`,{class:`pi pi-times`},null,-1)]],8,Cn)):F(``,!0)]))),128))],2)):F(``,!0)}}),[[`__scopeId`,`data-v-f30e50ba`]]),X=Uint8Array,Tn=Uint16Array,En=Int32Array,Dn=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]),On=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]),kn=new X([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),An=function(e,t){for(var n=new Tn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new En(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}},jn=An(Dn,2),Mn=jn.b,Nn=jn.r;Mn[28]=258,Nn[258]=28;var Pn=An(On,0),Fn=Pn.b;Pn.r;for(var In=new Tn(32768),Z=0;Z<32768;++Z){var Ln=(Z&43690)>>1|(Z&21845)<<1;Ln=(Ln&52428)>>2|(Ln&13107)<<2,Ln=(Ln&61680)>>4|(Ln&3855)<<4,In[Z]=((Ln&65280)>>8|(Ln&255)<<8)>>1}for(var Q=(function(e,t,n){for(var r=e.length,i=0,a=new Tn(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new Tn(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new Tn(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[In[d]>>c]=l}else for(s=new Tn(r),i=0;i<r;++i)e[i]&&(s[i]=In[o[e[i]-1]++]>>15-e[i]);return s}),Rn=new X(288),Z=0;Z<144;++Z)Rn[Z]=8;for(var Z=144;Z<256;++Z)Rn[Z]=9;for(var Z=256;Z<280;++Z)Rn[Z]=7;for(var Z=280;Z<288;++Z)Rn[Z]=8;for(var zn=new X(32),Z=0;Z<32;++Z)zn[Z]=5;var Bn=Q(Rn,9,1),Vn=Q(zn,5,1),Hn=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Un=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Wn=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Gn=function(e){return(e+7)/8|0},Kn=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))},qn=[`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`],Jn=function(e,t,n){var r=Error(t||qn[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Jn),!n)throw r;return r},Yn=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=Un(e,d,1);var ee=Un(e,d+1,3);if(d+=3,ee)if(ee==1)p=Bn,m=Vn,h=9,g=5;else if(ee==2){var v=Un(e,d,31)+257,y=Un(e,d+10,15)+4,b=v+Un(e,d+5,31)+1;d+=14;for(var x=new X(b),S=new X(19),C=0;C<y;++C)S[kn[C]]=Un(e,d+C*3,7);d+=y*3;for(var te=Hn(S),ne=(1<<te)-1,w=Q(S,te,1),C=0;C<b;){var T=w[Un(e,d,ne)];d+=T&15;var E=T>>4;if(E<16)x[C++]=E;else{var D=0,O=0;for(E==16?(O=3+Un(e,d,3),d+=2,D=x[C-1]):E==17?(O=3+Un(e,d,7),d+=3):E==18&&(O=11+Un(e,d,127),d+=7);O--;)x[C++]=D}}var re=x.subarray(0,v),k=x.subarray(v);h=Hn(re),g=Hn(k),p=Q(re,h,1),m=Q(k,g,1)}else Jn(1);else{var E=Gn(d)+4,ie=e[E-4]|e[E-3]<<8,ae=E+ie;if(ae>i){c&&Jn(0);break}s&&l(f+ie),n.set(e.subarray(E,ae),f),t.b=f+=ie,t.p=d=ae*8,t.f=u;continue}if(d>_){c&&Jn(0);break}}s&&l(f+131072);for(var oe=(1<<h)-1,se=(1<<g)-1,ce=d;;ce=d){var D=p[Wn(e,d)&oe],le=D>>4;if(d+=D&15,d>_){c&&Jn(0);break}if(D||Jn(2),le<256)n[f++]=le;else if(le==256){ce=d,p=null;break}else{var ue=le-254;if(le>264){var C=le-257,de=Dn[C];ue=Un(e,d,(1<<de)-1)+Mn[C],d+=de}var fe=m[Wn(e,d)&se],A=fe>>4;fe||Jn(3),d+=fe&15;var k=Fn[A];if(A>3){var de=On[A];k+=Wn(e,d)&(1<<de)-1,d+=de}if(d>_){c&&Jn(0);break}s&&l(f+131072);var pe=f+ue;if(f<k){var me=a-k,j=Math.min(k,pe);for(me+f<0&&Jn(3);f<j;++f)n[f]=r[me+f]}for(;f<pe;++f)n[f]=n[f-k]}}t.l=p,t.p=ce,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?Kn(n,0,f):n.subarray(0,f)},Xn=new X(0),Zn=function(e,t){return e[t]|e[t+1]<<8},Qn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},$n=function(e,t){return Qn(e,t)+Qn(e,t+4)*4294967296};function er(e,t){return Yn(e,{i:2},t&&t.out,t&&t.dictionary)}var tr=typeof TextDecoder<`u`&&new TextDecoder;try{tr.decode(Xn,{stream:!0})}catch{}var nr=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:Kn(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 rr(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(tr)return tr.decode(e);else{var i=nr(e),a=i.s,n=i.r;return n.length&&Jn(8),a}}var ir=function(e,t){return t+30+Zn(e,t+26)+Zn(e,t+28)},ar=function(e,t,n){var r=Zn(e,t+28),i=rr(e.subarray(t+46,t+46+r),!(Zn(e,t+8)&2048)),a=t+46+r,o=Qn(e,t+20),s=n&&o==4294967295?or(e,a):[o,Qn(e,t+24),Qn(e,t+42)],c=s[0],l=s[1],u=s[2];return[Zn(e,t+10),c,l,i,a+Zn(e,t+30)+Zn(e,t+32),u]},or=function(e,t){for(;Zn(e,t)!=1;t+=4+Zn(e,t+2));return[$n(e,t+12),$n(e,t+4),$n(e,t+20)]};function sr(e,t){for(var n={},r=e.length-22;Qn(e,r)!=101010256;--r)(!r||e.length-r>65558)&&Jn(13);var i=Zn(e,r+8);if(!i)return{};var a=Qn(e,r+16),o=a==4294967295||i==65535;if(o){var s=Qn(e,r-12);o=Qn(e,s)==101075792,o&&(i=Qn(e,s+32),a=Qn(e,s+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=ar(e,a,o),d=u[0],f=u[1],p=u[2],m=u[3],h=u[4],g=u[5],_=ir(e,g);a=h,(!c||c({name:m,size:f,originalSize:p,compression:d}))&&(d?d==8?n[m]=er(e.subarray(_,_+f),{out:new X(p)}):Jn(14,`unknown compression type `+d):n[m]=Kn(e,_,_+f))}return n}var cr=2e3,lr=100,ur=5e3,dr=300,fr={csv:`sheet`,tsv:`sheet`,xlsx:`sheet`,xlsm:`sheet`,ods:`sheet`,docx:`doc`,odt:`doc`,pptx:`slides`,odp:`slides`},pr={"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 mr(e,t){return fr[t.toLowerCase().split(`.`).pop()??``]??pr[(e||``).toLowerCase().split(`;`)[0].trim()]??null}async function hr(e,t,n,r){let i=n.toLowerCase().split(`.`).pop()??``;if(i===`csv`||i===`tsv`)return xr(new TextDecoder().decode(t),n);let a=sr(new Uint8Array(t)),o=a[`content.xml`];return o?Or(e,rr(o)):e===`doc`?{mode:`render`,render:e=>gr(t,r,e)}:e===`slides`?Er(a):_r(t,r)}async function gr(e,t,n){let{renderAsync:r}=await ve(async()=>{let{renderAsync:e}=await import(`./docx-preview-0gNiXgA0.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}),yr(n)}async function _r(e,t){let n=(await ve(async()=>{let{default:e}=await import(`./browser-BOSK4iqQ.js`);return{default:e}},[])).default,r=await n(new Blob([e],{type:t})),i=!1,a=r.map((e,t)=>(e.data.length>cr&&(i=!0),{name:e.sheet||`Sheet${t+1}`,rows:e.data.slice(0,cr).map(e=>(e.length>lr&&(i=!0),e.slice(0,lr).map(vr)))}));if(!a.length)throw Error(`no worksheet`);return{mode:`sheet`,sheets:a,truncated:i}}function vr(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`,` `)}return String(e)}function yr(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 br(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 xr(e,t){let n=t.toLowerCase().endsWith(`.tsv`)?` `:br(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>=cr)break}else a+=s}(a||i.length)&&(i.push(a),r.push(i));let s=r.length>=cr;return{mode:`sheet`,sheets:[{name:t||`CSV`,rows:r.map(Sr)}],truncated:s}}function Sr(e){return e.length>lr?e.slice(0,lr):e}function Cr(e){let t=new DOMParser().parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length)throw Error(`invalid XML`);return t}function wr(e,t){return Array.from(e.getElementsByTagName(t))}function Tr(e,t){return wr(e,t).map(e=>e.textContent??``).join(``)}function Er(e){let t=Object.keys(e).filter(e=>/^ppt\/slides\/slide\d+\.xml$/.test(e)).sort((e,t)=>Dr(e)-Dr(t));if(!t.length)throw Error(`no slide`);let n=[];for(let r of t.slice(0,dr)){let t=wr(Cr(rr(e[r])),`a:p`).map(e=>Tr(e,`a:t`).trim()).filter(Boolean);n.push({title:t[0]??``,lines:t.slice(1)})}return{mode:`slides`,slides:n,truncated:t.length>dr}}function Dr(e){return Number(/(\d+)\.xml$/.exec(e)?.[1]??0)}function Or(e,t){let n=Cr(t);return e===`sheet`?Ar(n):e===`doc`?jr(n):Mr(n)}function kr(e,t,n){let r=Number(e.getAttribute(t)??`1`);return!Number.isFinite(r)||r<1?1:Math.min(r,n)}function Ar(e){let t=[],n=!1;for(let r of wr(e,`table:table`)){let e=[];for(let t of wr(r,`table:table-row`)){if(e.length>=cr){n=!0;break}let r=[];for(let e of wr(t,`table:table-cell`)){if(r.length>=lr){n=!0;break}let t=wr(e,`text:p`).map(e=>e.textContent??``).join(`
|
|
572
|
+
`),i=kr(e,`table:number-columns-repeated`,lr);for(let e=0;e<(t?i:1);e+=1)r.push(t)}for(;r.length&&r[r.length-1]===``;)r.pop();let i=kr(t,`table:number-rows-repeated`,cr);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 jr(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>=ur){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 wr(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:wr(t,`table:table-row`).slice(0,cr).map(e=>wr(e,`table:table-cell`).slice(0,lr).map(e=>(e.textContent??``).trim()))}):t.children.length&&i(t)}};return i(t),{mode:`blocks`,blocks:n,truncated:r}}function Mr(e){let t=wr(e,`draw:page`);if(!t.length)throw Error(`no slide`);return{mode:`slides`,slides:t.slice(0,dr).map(e=>{let t=wr(e,`text:p`).map(e=>(e.textContent??``).trim()).filter(Boolean);return{title:t[0]??``,lines:t.slice(1)}}),truncated:t.length>dr}}var Nr={key:0,class:`kb-upload`},Pr={key:0,class:`kb-upload__list`},Fr=[`title`],Ir={class:`kb-upload__bar`},Lr={class:`kb-upload__pct`},Rr={key:1,class:`kb-upload__status`},zr={key:2,class:`kb-upload__errors`},Br=D(Ne({__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?(c(),j(`div`,Nr,[e.queue.length?(c(),j(`ul`,Pr,[(c(!0),j(G,null,U(e.queue,e=>(c(),j(`li`,{key:e.key},[V(`span`,{class:`kb-upload__name`,title:e.name},I(e.name),9,Fr),V(`span`,Ir,[V(`span`,{class:`kb-upload__bar-fill`,style:B({width:`${Math.round(e.ratio*100)}%`})},null,4)]),V(`span`,Lr,I(Math.round(e.ratio*100))+`%`,1)]))),128))])):e.uploading?(c(),j(`p`,Rr,I(e.uploadingLabel),1)):F(``,!0),e.errors.length?(c(),j(`ul`,zr,[(c(!0),j(G,null,U(e.errors,(e,t)=>(c(),j(`li`,{key:t},I(e.name)+` — `+I(e.reason),1))),128))])):F(``,!0)])):F(``,!0)}}),[[`__scopeId`,`data-v-06e54521`]]);function Vr(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 Hr(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 Vr(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)Vr(t,e.id).length&&a(e);return n}function Ur(e){return e.flatMap(e=>e.kind===`column`?[e.id]:Ur(e.children))}function Wr(e,t,n,r){let i=Hr(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)?Ur(i):null}var Gr={class:`kg-lead`},Kr={key:0,class:`kg-create`},qr={class:`kg-tree`},Jr={key:0,class:`kg-empty`},Yr=[`draggable`,`onDragstart`,`onDragover`,`onDrop`],Xr={key:2,class:`kg-row__title`},Zr={key:3,class:`kg-row__count`},Qr={key:4,class:`kg-row__actions`},$r=[`onClick`],ei={class:`kg-loose__label`},ti={key:0,class:`kg-empty`},ni=[`draggable`,`onDragstart`],ri={class:`kg-row__title`},ii=D(Ne({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(e,{emit:t}){let n=e,a=t,o=ee(),s=n.t,l=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],u=H(()=>new Map(n.groups.map(e=>[e.id,e])));function d(e){return n.columns.filter(t=>(t.groupId&&u.value.has(t.groupId)?t.groupId:void 0)===e)}function p(e){return n.groups.filter(t=>(t.parentId??void 0)===e)}function m(e){return d(e).length+p(e).reduce((e,t)=>e+m(t.id),0)}let h=H(()=>Hr(n.columns,n.groups)),g=H(()=>{let e=[],t=(r,i)=>{for(let a of r){if(a.kind===`column`){if(i===0)continue;let t=n.columns.find(e=>e.id===a.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:i});continue}let r=u.value.get(a.id);r&&(e.push({kind:`group`,id:r.id,title:r.title,color:r.color,depth:i,columnCount:m(r.id)}),t(a.children,i+1))}};return t(h.value,0),e});function _(e,t){let r=Wr(n.columns,n.groups,e,t);r&&a(`intent`,{kind:`columns-reorder`,columnIds:r})}function v(e,t){return Wr(n.columns,n.groups,e,t)!==null}let y=H(()=>d(void 0)),b=r(``);function x(){let e=b.value.trim();e&&(a(`intent`,{kind:`group-add`,title:e,color:l[n.groups.length%l.length]}),b.value=``)}let S=r(null);function C(e){e.kind===`group`&&(S.value={id:e.id,title:e.title})}function te(){let e=S.value;if(!e)return;let t=e.title.trim(),n=u.value.get(e.id);t&&n&&t!==n.title&&a(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),S.value=null}function ne(e,t){let n=u.value.get(e)?.color;a(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function w(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 E=r(null),D=r(null);function O(e,t,r){n.readOnly||(E.value={kind:e,id:t},r.dataTransfer?.setData(`text/plain`,t),r.dataTransfer&&(r.dataTransfer.effectAllowed=`move`))}function re(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=u.value.get(n)?.parentId}return!0}function k(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(D.value=null)}function ie(e,t){re(E.value,e)&&(t.preventDefault(),D.value=e??`root`)}function ae(e){let t=n.columns.find(t=>t.id===e)?.groupId;return t&&u.value.has(t)?t:null}function oe(e){let t=E.value,n=re(t,e);D.value=null,E.value=null,!(!t||!n)&&a(`intent`,{kind:`group-assign`,member:t,groupId:e})}function se(){a(`update:visible`,!1)}return(t,n)=>(c(),L(f(i),{visible:e.visible,header:f(s)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":se},{default:M(()=>[V(`p`,Gr,I(f(s)(`groups.lead`)),1),e.readOnly?F(``,!0):(c(),j(`div`,Kr,[T(f(Te),{modelValue:b.value,"onUpdate:modelValue":n[0]||=e=>b.value=e,placeholder:f(s)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:W(x,[`enter`])},null,8,[`modelValue`,`placeholder`]),T(f(R),{label:f(s)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:x},null,8,[`label`])])),V(`div`,qr,[g.value.length?F(``,!0):(c(),j(`div`,Jr,I(f(s)(`groups.empty`)),1)),(c(!0),j(G,null,U(g.value,t=>(c(),j(`div`,{key:`${t.kind}-${t.id}`,class:P([`kg-row`,{"kg-row--group":t.kind===`group`,"kg-row--target":D.value===t.id}]),style:B({paddingLeft:`${t.depth*1.25}rem`}),draggable:!e.readOnly,onDragstart:e=>O(t.kind,t.id,e),onDragover:e=>ie(t.kind===`group`?t.id:ae(t.id),e),onDragleave:k,onDrop:N(e=>oe(t.kind===`group`?t.id:ae(t.id)),[`prevent`]),onDragend:n[2]||=e=>{E.value=null,D.value=null}},[V(`i`,{class:P([t.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),t.kind===`group`?(c(),j(`span`,{key:0,class:`kg-swatch`,style:B({background:t.color||`var(--p-text-muted-color)`})},null,4)):F(``,!0),S.value&&S.value.id===t.id?(c(),L(f(Te),{key:1,modelValue:S.value.title,"onUpdate:modelValue":n[1]||=e=>S.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:W(te,[`enter`]),onBlur:te},null,8,[`modelValue`])):(c(),j(`span`,Xr,I(t.title),1)),t.kind===`group`?(c(),j(`span`,Zr,I(f(s)(`groups.columnCount`,{count:t.columnCount})),1)):F(``,!0),e.readOnly?F(``,!0):(c(),j(`div`,Qr,[T(f(R),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!v(t.id,-1),"aria-label":f(s)(`groups.moveUp`),class:`kg-move`,onClick:e=>_(t.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),T(f(R),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!v(t.id,1),"aria-label":f(s)(`groups.moveDown`),class:`kg-move`,onClick:e=>_(t.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),t.kind===`group`?(c(),j(G,{key:0},[(c(),j(G,null,U(l,e=>V(`span`,{key:e,class:P([`kg-dot`,{"kg-dot--on":t.color===e}]),style:B({background:e}),onClick:n=>ne(t.id,e)},null,14,$r)),64)),T(f(R),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>C(t)},null,8,[`onClick`]),T(f(R),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>w(t)},null,8,[`onClick`])],64)):F(``,!0)]))],46,Yr))),128))]),V(`div`,{class:P([`kg-loose`,{"kg-row--target":D.value===`root`}]),onDragover:n[4]||=e=>ie(null,e),onDragleave:k,onDrop:n[5]||=N(e=>oe(null),[`prevent`])},[V(`div`,ei,I(f(s)(`groups.loose`)),1),y.value.length?F(``,!0):(c(),j(`div`,ti,I(f(s)(`groups.looseEmpty`)),1)),(c(!0),j(G,null,U(y.value,t=>(c(),j(`div`,{key:t.id,class:`kg-row`,draggable:!e.readOnly,onDragstart:e=>O(`column`,t.id,e),onDragend:n[3]||=e=>{E.value=null,D.value=null}},[n[6]||=V(`i`,{class:`pi pi-list kg-row__icon`},null,-1),V(`span`,ri,I(t.title),1)],40,ni))),128))],34)]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-48711454`]]),ai={class:`kb-header`},oi={class:`kb-header__search`},si={key:1,class:`kb-header__search-more`},ci={key:1,class:`kb-header__readonly`},li={class:`kb-boardwrap`},ui={class:`kb-band__title`},di={class:`kb-band__count`},fi=[`data-col-id`,`draggable`,`onDragstart`,`onDragover`,`onDragleave`,`onDrop`,`onTouchstart`],pi=[`title`,`onClick`],mi={class:`kb-col__count`},hi={key:0,class:`pi pi-bell kb-col__bell--on`},gi={key:1,class:`kb-col__header`},_i=[`value`,`readonly`,`onBlur`],vi={class:`kb-col__header-right`},yi={class:`kb-col__count`},bi=[`onClick`],xi={key:3,class:`kb-col__cards`},Si=[`data-card-id`,`draggable`,`onDragstart`,`onDragover`,`onTouchstart`,`onClick`],Ci=[`onClick`],wi=[`onClick`],Ti={key:0,class:`kb-col__empty`},Ei=[`onClick`],Di={class:`kb-subscribe__lead`},Oi={class:`kb-subscribe__legend`},ki={class:`kb-subscribe__options`},Ai={class:`kb-subscribe__no`},ji={class:`kb-subscribe__legend`},Mi={class:`kb-subscribe__options`},Ni={class:`kb-subscribe__channels`},Pi={class:`kb-tpl-intro`},Fi={class:`kb-tpl-list`},Ii=[`onClick`],Li={key:0,class:`kb-add-col`},Ri={key:0,class:`kb-add-col__form`},zi={class:`kb-add-col__actions`},Bi={class:`kb-filters__body`},Vi={class:`kb-filters__section`},Hi={class:`kb-side__label`},Ui={class:`kb-ops`},Wi=[`onClick`],Gi={key:0,class:`kb-prio`},Ki={class:`kb-prio__value`},qi={key:1,class:`kb-side__hint`},Ji={class:`kb-filters__section`},Yi={class:`kb-side__label`},Xi={class:`kb-colors`},Zi=[`onClick`],Qi={class:`kb-filters__section`},$i={class:`kb-side__label`},ea={key:0,class:`pi pi-ban`},ta={class:`kb-filters__section`},na={class:`kb-side__label`},ra={key:0,class:`pi pi-ban`},ia={class:`kb-filters__section`},aa={class:`kb-side__label`},oa={key:0,class:`pi pi-ban`},sa={key:1,class:`kb-link__col`},ca={class:`kb-side__hint`},la={class:`kb-archive__hint`},ua={class:`kb-archive__search`},da={key:0,class:`kb-archive__empty`},fa={key:1,class:`kb-archive__empty`},pa={key:2,class:`kb-archive__empty`},ma={key:0,class:`kb-archive__filtered`},ha={key:1,class:`kb-archive__filtered`},ga={class:`kb-archive__list`},_a=[`onClick`],va=[`onClick`],ya={class:`kb-archive__meta`},ba={key:0},xa={key:1},Sa={key:0,class:`kb-dialog`},Ca={class:`kb-dialog__main`},wa={class:`kb-dialog__edit-content`},Ta={class:`kb-dialog__field`},Ea={for:`kanban-card-title`,class:`kb-dialog__label`},Da={class:`kb-dialog__field`},Oa={for:`kanban-card-content`,class:`kb-dialog__label`},ka={class:`kb-dialog__field`},Aa={for:`kanban-card-images`,class:`kb-dialog__label`},ja={key:0,class:`kb-dialog__images`},Ma=[`src`],Na=[`onClick`],Pa={key:1,class:`kb-dialog__upload`},Fa={class:`kb-rel`},Ia={key:0,class:`kb-rel__section`},La={class:`kb-rel__title`},Ra={key:0,class:`kb-rel__table`},za={class:`kb-rel__people`},Ba={class:`kb-rel__num`},Va={class:`kb-rel__actions-col`},Ha={class:`kb-rel__card`},Ua={class:`kb-rel__board`},Wa={class:`kb-rel__people`},Ga={key:0,class:`kb-card__assignees`},Ka=[`title`],qa=[`src`,`onError`],Ja={key:1,class:`kb-rel__none`},Ya={class:`kb-rel__num`},Xa={class:`kb-rel__actions-col`},Za=[`title`],Qa=[`title`],$a={key:1,class:`kb-rel__empty`},eo={class:`kb-coloption`},to={class:`kb-link__col`},no={key:1,class:`kb-rel__section`},ro={class:`kb-rel__title`},io={key:0,class:`kb-rel__table`},ao={class:`kb-rel__people`},oo={class:`kb-rel__num`},so={class:`kb-rel__actions-col`},co={class:`kb-rel__card`},lo={class:`kb-rel__board`},uo={class:`kb-rel__people`},fo={key:0,class:`kb-card__assignees`},po=[`title`],mo=[`src`,`onError`],ho={key:1,class:`kb-rel__none`},go={class:`kb-rel__num`},_o={class:`kb-rel__actions-col`},vo=[`title`,`onClick`],yo=[`title`,`onClick`],bo={key:1,class:`kb-rel__empty`},xo={class:`kb-coloption`},So={class:`kb-link__col`},Co={key:2,class:`kb-rel__empty`},wo={class:`kb-comments`},To={key:0,class:`kb-comments__empty`},Eo={key:1,class:`kb-comments__list`},Do=[`onClick`],Oo={key:0,class:`pi pi-sparkles`},ko=[`src`,`onError`],Ao={key:3,class:`pi pi-user`},jo={class:`kb-comments__body`},Mo={class:`kb-comments__meta`},No={class:`kb-comments__author`},Po={class:`kb-comments__time`},Fo={key:0,class:`kb-comments__edited`},Io={key:1,class:`kb-comments__tools`},Lo=[`title`,`onClick`],Ro=[`title`,`onClick`],zo={class:`kb-comments__actions`},Bo=[`onClick`,`innerHTML`],Vo=[`onClick`],Ho=[`onKeydown`],Uo={class:`kb-comments__actions`},Wo=[`title`],Go={class:`kb-comments__hint`},Ko={class:`kb-history`},qo={key:0,class:`kb-history__empty`},Jo={key:1,class:`kb-history__timeline`},Yo=[`onClick`],Xo={class:`kb-history__icon`},Zo={class:`kb-history__body`},Qo={class:`kb-history__label`},$o={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},es={key:0,class:`kb-history__detail`},ts={class:`kb-history__time`},ns={class:`kb-side`},rs={key:0,class:`kb-side__block`},is={class:`kb-side__label`},as=[`title`],os=[`src`,`onError`],ss={class:`kb-assignee`},cs=[`src`,`onError`],ls={class:`kb-side__hint`},us={class:`kb-side__block`},ds={class:`kb-side__label`},fs={key:0,class:`kb-prio__value`},ps={key:0,class:`kb-prio`},ms=[`title`],hs={key:2,class:`kb-side__hint`},gs={class:`kb-side__block`},_s={class:`kb-side__label`},vs={class:`kb-deadline`},ys=[`title`],bs={key:0,class:`kb-side__hint`},xs={class:`kb-side__block`},Ss={class:`kb-side__label`},Cs={class:`kb-groups__option`},ws={class:`kb-side__hint`},Ts={key:1,class:`kb-side__block`},Es={class:`kb-side__label`},Ds={class:`kb-tree`},Os={key:0,class:`pi pi-angle-right kb-tree__branch`},ks=[`title`,`onClick`],As={class:`kb-tree__label`},js={class:`kb-side__block`},Ms={class:`kb-side__label`},Ns={class:`kb-colors`},Ps=[`disabled`],Fs=[`disabled`,`onClick`],Is={class:`kb-side__hint`},Ls={key:2,class:`kb-side__block`},Rs={class:`kb-side__label`},zs={class:`kb-side__hint`},Bs={key:3,class:`kb-side__block`},Vs={class:`kb-side__label`},Hs={class:`kb-colgroup__label`},Us={class:`kb-coloption`},Ws={key:0,class:`pi pi-arrow-right kb-coloption__away`},Gs={key:0,class:`kb-side__hint`},Ks={class:`kb-side__block kb-side__meta`},qs={key:0},Js={key:4,class:`kb-side__block`},Ys={class:`kb-side__label`},Xs={class:`kb-side__convs`},Zs=[`title`,`onClick`],Qs={class:`kb-side__conv-label`},$s={key:5,class:`kb-side__block`},ec={class:`kb-side__label`},tc={class:`kb-side__actions`},nc={key:6,class:`kb-side__block kb-side__danger`},rc={class:`kb-dialog__footer`},ic={key:0,class:`kb-dialog__unsaved`},ac={key:0,class:`kb-viewer`},oc=[`src`,`alt`],sc=[`src`,`title`],cc=[`src`],lc=[`src`],uc={key:4,class:`kb-viewer__office`},dc={key:0,class:`kb-viewer__tabs`},fc=[`onClick`],pc={class:`kb-viewer__scroll`},mc={key:0,class:`kb-viewer__table`},hc={key:1,class:`kb-viewer__empty`},gc={key:5,class:`kb-viewer__office`},_c={class:`kb-viewer__scroll kb-viewer__doc`},vc={key:0},yc={key:1},bc={key:2},xc={key:3,class:`kb-viewer__li`},Sc={key:4,class:`kb-viewer__table`},Cc={key:5},wc={key:0,class:`kb-viewer__empty`},Tc={key:6,class:`kb-viewer__office`},Ec={class:`kb-viewer__scroll kb-viewer__slides`},Dc={class:`kb-viewer__slide-no`},Oc={key:0},kc={key:7,class:`kb-viewer__office`},Ac={key:0,class:`kb-viewer__empty`},jc={key:8,class:`kb-viewer__text`},Mc={key:9,class:`kb-viewer__truncated`},Nc={key:0,class:`kb-colmenu`},Pc={class:`kb-colmenu__host`},$=`\0void`,Fc=26,Ic=512*1024,Lc=55*1024*1024,Rc=5*1024*1024,zc=400,Bc=8,Vc=60,Hc=12,Uc=D(Ne({__name:`KanbanBoard`,props:{columns:{},columnGroups:{default:()=>[]},name:{},readOnly:{type:Boolean,default:!1},t:{},resolveConversationId:{type:Function,default:void 0},currentUserId:{default:void 0},members:{default:()=>[]},avatarUrl:{type:Function,default:void 0},uploadImage:{type:Function,default:void 0},fetchAttachment:{type:Function,default:void 0},columnSubscriptions:{default:void 0},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:t,emit:n}){let o=e,s=H(()=>o.loadHistory!==void 0),l=n,d=ee(),p=o.t;function m(){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 _=r(h(o.columns));be(()=>o.columns,e=>{_.value=h(e),Gt()});function y(e,t){_.value=e,t&&l(`intent`,t)}let b=r(``),x=r(!1),S=r(``),te=H(()=>[..._.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),ne=r(!1),w=r(`gte`),D=r(null),O=r([]),k=r([]),ae=r([]),oe=r(!1),se=r(!1),ce=r(!1),de=r([]),fe=H(()=>{let e=new Set;for(let t of de.value){for(let n of tn(t,`up`))e.add(n);for(let n of tn(t,`down`))e.add(n)}return e}),A=H(()=>D.value!==null||w.value===`none`),pe=H(()=>(A.value?1:0)+(O.value.length?1:0)+(k.value.length||oe.value?1:0)+(ae.value.length||se.value?1:0)+(de.value.length||ce.value?1:0));function he(){D.value=null,w.value=`gte`,O.value=[],k.value=[],ae.value=[],de.value=[],oe.value=!1,se.value=!1,ce.value=!1}function ge(e){if(w.value===`none`){if(e.priority!==void 0)return!1}else if(D.value!==null){let t=e.priority;if(t===void 0||w.value===`eq`&&t!==D.value||w.value===`gte`&&t<D.value||w.value===`lte`&&t>D.value)return!1}if(O.value.length&&!O.value.includes(e.color??``))return!1;let t=e.groups??[];if(k.value.length||oe.value){let e=k.value.length&&t.some(e=>k.value.includes(e)),n=oe.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(ae.value.length||se.value){let e=ae.value.length&&n.some(e=>ae.value.includes(e.id)),t=se.value&&n.length===0;if(!e&&!t)return!1}if(de.value.length||ce.value){let t=de.value.length&&fe.value.has(e.id),n=ce.value&&!Xt(e.id)&&Zt(e.id).length===0;if(!t&&!n)return!1}return!0}let _e=H({get:()=>oe.value?[$,...k.value]:k.value,set:e=>{oe.value=e.includes($),k.value=e.filter(e=>e!==$)}}),ve=H(()=>[$,...lt.value]),ye=H({get:()=>se.value?[$,...ae.value]:ae.value,set:e=>{se.value=e.includes($),ae.value=e.filter(e=>e!==$)}}),xe=H(()=>[{userId:$,name:p(`filters.noAssignees`)},...o.members]),Se=H({get:()=>ce.value?[$,...de.value]:de.value,set:e=>{ce.value=e.includes($),de.value=e.filter(e=>e!==$)}}),Ce=H(()=>[{id:$,title:p(`filters.noFamily`),column:``},...te.value.flatMap(e=>e.cards.map(t=>({id:t.id,title:t.title,column:e.title}))),...o.archivedCards.map(e=>({id:e.id,title:e.title,column:p(`archive.title`)}))]),Ee=H(()=>{let e=o.searchMatches,t=pe.value>0;return!e&&!t?te.value:te.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||ge(n)))}))}),De=r(!1),Oe=H(()=>new Map((o.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=H(()=>{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()]}),je=H(()=>Ae.value.length?(Math.max(...Ae.value.map(e=>e.depth))+1)*Fc:0),Me=r(null),Ne=r([]);function Pe(){let e=Me.value;if(!e||!Ae.value.length){Ne.value=[];return}Ne.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*Fc,left:r,width:i-r,count:a}]})}let Fe=null;ie(()=>{if(Pe(),typeof ResizeObserver<`u`&&Me.value){Fe=new ResizeObserver(()=>Pe()),Fe.observe(Me.value);for(let e of Me.value.querySelectorAll(`.kb-col`))Fe.observe(e)}}),v(()=>Fe?.disconnect()),be(()=>[Ee.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),o.columnGroups],()=>{C(()=>{if(Pe(),!(!Fe||!Me.value))for(let e of Me.value.querySelectorAll(`.kb-col`))Fe.observe(e)})},{deep:!0});function Ie(e){return _.value.find(t=>t.id===e)?.title??``}function Le(e,t,n){e.history=[...e.history??[],{type:t,timestamp:new Date().toISOString(),detail:n}]}function Re(){if(o.readOnly||!S.value.trim())return;let e=S.value.trim();y([..._.value,{id:m(),title:e,order:_.value.length,cards:[]}],{kind:`column-add`,title:e}),S.value=``,x.value=!1}function Be(e){if(o.readOnly)return;let t=_.value.find(t=>t.id===e);d.require({message:p(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:p(`column.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>y(_.value.filter(t=>t.id!==e),{kind:`column-delete`,columnId:e})})}function He(e,t){o.readOnly||!t.trim()||y(_.value.map(n=>n.id===e?{...n,title:t.trim()}:n),{kind:`column-rename`,columnId:e,title:t.trim()})}let q=r(null),Xe=r(``),Ze=r(``),Qe=r([]),$e=r([]),et=r(!1),J=r([]),tt=r([]),nt=0,rt=r([]),it=E(new Map),at=r([]),st=r([]),ct=r([]),lt=H(()=>{let e=new Set;for(let t of _.value)for(let n of t.cards)for(let t of n.groups??[])e.add(t);for(let t of o.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=r(null),ft=r(null),pt=H(()=>{let e=mt(ft.value),t=e?$t(e):null;return t===null?``:t<0?p(`editor.deadlineOverdue`,{count:-t}):t===0?p(`editor.deadlineToday`):p(`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(){o.readOnly||(dt.value=5)}function _t(e){let t=e.trim();!t||st.value.includes(t)||(st.value=[...st.value,t])}let vt=r(!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=r(``),wt=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],Tt=r(``),Et=r(`edit`),Dt=r(``),Ot=r([]),kt=r(null),At=r(null),jt=r(null),Mt=r(``);async function Nt(){await C(),At.value?.scrollIntoView({block:`end`})}be(q,e=>l(`card-open`,e));let Ft=r(null),It=r(`bottom`);function Lt(e,t=`bottom`){if(!o.readOnly){if(It.value=t,o.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=_.value.find(t=>t.id===e);if(!n)return;let r=new Date().toISOString();Bt(e,{id:m(),title:p(`card.defaultTitle`),markdown:t,images:[],order:It.value===`top`?0:n.cards.length,...s.value?{}:{history:[{type:`created`,timestamp:r,detail:p(`card.inColumn`,{name:Ie(e)})}]},createdAt:r,updatedAt:r})}function Bt(e,t){if(Pn(),q.value={colId:e,card:{...t,history:[...t.history??[]]}},o.loadHistory&&yn(t.id)){let n=o.histories?.[t.id];n&&(q.value={colId:e,card:{...t,history:n}}),o.loadHistory(t.id)}Xe.value=t.title,Ze.value=t.markdown??``,Qe.value=[...t.images],$e.value=[...t.attachments??[]],J.value=[],rt.value=[],Dt.value=``,Ot.value=[],Nn($e.value),Nn((t.history??[]).flatMap(e=>e.attachments??[])),at.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,Et.value=`edit`}be(()=>q.value?o.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}},Nn(e.flatMap(e=>e.attachments??[])))});let Vt=H(()=>{let e=q.value;return e?!yn(e.card.id):!1}),Ht=H(()=>{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($e.value,t.attachments??[])||!n(at.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=H(()=>Ht.value||Dt.value.trim().length>0||Ot.value.length>0||jt.value!==null);function Wt(){if(!Ut.value){qt();return}d.require({message:p(`editor.confirmDiscardMessage`),header:p(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:p(`editor.discard`),rejectLabel:p(`editor.keepEditing`),accept:()=>qt()})}function Gt(){let e=q.value;if(!e)return;let t=_.value.flatMap(e=>e.cards).find(t=>t.id===e.card.id)??vn.value.get(e.card.id);if(!t)return;if(!Ht.value){let n=_.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],$e.value=[...t.attachments??[]],at.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 Kt(){let e=rt.value;if(rt.value=[],o.deleteAttachment)for(let t of e)o.deleteAttachment(t)}function qt(){q.value=null,rr(),Gn(),Pn(),Kt()}function Jt(){if(o.readOnly||!q.value)return;let{colId:e,card:t}=q.value,n=Xe.value||p(`card.untitled`),r=s.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!s.value&&n!==t.title&&t.title!==p(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!s.value&&Ze.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let a=s.value?0:Qe.value.length-t.images.length;a>0?r.push({type:`image_added`,timestamp:i(),detail:`${a} image(s) added`}):a<0&&r.push({type:`image_removed`,timestamp:i(),detail:`${Math.abs(a)} image(s) removed`});let c=at.value.map(e=>({id:e,name:o.members.find(t=>t.userId===e)?.name??e})),u=s.value?[]:c.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));u.length&&r.push({type:`edited`,timestamp:i(),detail:p(`editor.assignedDetail`,{names:u.map(e=>e.name).join(`, `)})});let d=[...new Set(st.value.map(e=>e.trim()).filter(Boolean))],{color:f,priority:m,groups:h,deadline:g,...ee}=t,v={...ee,title:n,markdown:Ze.value,images:Qe.value,attachments:$e.value,assignees:c,...Ct.value?{color:Ct.value}:{},...d.length?{groups:d}:{},...dt.value===null?{}:{priority:dt.value},...mt(ft.value)?{deadline:mt(ft.value)}:{},history:s.value?t.history:r,updatedAt:i()},b=Tt.value||e;!s.value&&b!==e&&r.push({type:`moved`,timestamp:i(),detail:`${Ie(e)} → ${Ie(b)}`});let x=!yn(v.id),S=x?{kind:`card-add`,columnId:b,card:v,placement:It.value}:{kind:`card-update`,cardId:v.id,patch:{title:v.title,markdown:v.markdown,priority:v.priority??null,color:v.color??null,deadline:v.deadline??null,groups:v.groups??[],assignees:c.map(e=>e.id),attachments:v.attachments,images:v.images}};if(!x&&b!==e&&l(`intent`,{kind:`card-move`,cardId:v.id,toColumnId:b}),bn.value){l(`intent`,S),l(`load-archive`,_n.value),rt.value=[],q.value={colId:e,card:v};return}y(_.value.map(t=>{if(t.id===e&&b!==e)return{...t,cards:t.cards.filter(e=>e.id!==v.id)};if(t.id!==b)return t;if(t.cards.some(e=>e.id===v.id))return{...t,cards:t.cards.map(e=>e.id===v.id?v:e)};let n=It.value===`top`?[v,...t.cards]:[...t.cards,v];return{...t,cards:n.map((e,t)=>({...e,order:t}))}}),S),rt.value=[],q.value={colId:b,card:v},Tt.value=b}function Yt(e,t){for(let n of _.value){let r=n.cards.find(e=>e.id===t);if(r)return{cardId:t,boardId:e,title:r.title,boardName:p(`editor.relationsHereBoard`),columnTitle:n.title,here:!0,assignees:r.assignees??[],commentCount:r.commentCount??(r.history??[]).filter(e=>e.type===`comment`).length}}let n=o.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 Xt(e){return o.cardLinks.find(t=>t.childCardId===e)}function Zt(e){return o.cardLinks.filter(t=>t.parentCardId===e)}function Qt(e){return Zt(e).length}let Y=H(()=>{let e=q.value;if(!e)return null;let t=Xt(e.card.id);return t?Yt(t.parentBoardId,t.parentCardId):null}),en=H(()=>{let e=q.value;return e?Zt(e.card.id).flatMap(e=>{let t=Yt(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<=o.cardLinks.length;e+=1){let i=t===`down`?Zt(r[e]).map(e=>e.childCardId):[Xt(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 te.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let rn=H(()=>{let e=q.value;return e?nn(tn(e.card.id,`down`)):[]}),an=H(()=>{let e=q.value;if(!e)return[];let t=tn(e.card.id,`up`);for(let n of Zt(e.card.id))t.add(n.childCardId);return nn(t)});function on(e){let t=q.value;!t||o.readOnly||!o.setCardParent||o.setCardParent(t.card.id,e)}function sn(e){let t=q.value;!t||!e||o.readOnly||!o.setCardParent||o.setCardParent(e,t.card.id)}function cn(e){o.readOnly||!o.setCardParent||o.setCardParent(e,null)}let ln=H(()=>!o.readOnly&&o.setCardParent!==void 0&&!!q.value&&_.value.some(e=>e.cards.some(e=>e.id===q.value?.card.id))),un=H(()=>{let e=q.value;if(!e)return[];let t=[],n=new Set([e.card.id]),r=e.card.id;for(let e=0;e<=o.cardLinks.length;e+=1){let e=Xt(r);if(!e||n.has(e.parentCardId))break;let i=Yt(e.parentBoardId,e.parentCardId);if(!i)break;n.add(e.parentCardId),t.push(i),r=e.parentCardId}return t.reverse()}),dn=H(()=>(Y.value?1:0)+en.value.length);function fn(e,t){for(let t of _.value){let n=t.cards.find(t=>t.id===e);if(n){Bt(t.id,n);return}}t&&l(`open-linked-card`,{boardId:t,cardId:e})}let pn=H(()=>{let e=te.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:p(`editor.columnGroupHere`),items:e}];if(!o.readOnly&&o.moveCardToBoard)for(let e of o.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 mn(e){let[t,n]=e.includes(`:`)?e.split(`:`):[``,e];if(!t){Tt.value=n??``;return}let r=q.value,i=o.otherBoards.find(e=>e.id===t),a=i?.columns.find(e=>e.id===n);o.readOnly||!r||!i||!a||!o.moveCardToBoard||d.require({message:p(`editor.moveToBoardConfirm`,{board:i.name,column:a.title}),header:p(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;qt(),o.moveCardToBoard?.(e,t,a.id)}})}let hn=r(!1),_n=r(``),vn=H(()=>new Map(o.archivedCards.map(e=>[e.id,e])));function yn(e){return _.value.some(t=>t.cards.some(t=>t.id===e))||vn.value.has(e)?!0:!!(q.value?.card.id===e&&q.value.card.archivedAt)}let bn=H(()=>!!(q.value&&(q.value.card.archivedAt||vn.value.has(q.value.card.id))));function xn(e){Bt(e.archivedFrom?.columnId??``,e)}let Sn=H(()=>pe.value?o.archivedCards.filter(ge):o.archivedCards),Cn=H(()=>o.archivedCards.length-Sn.value.length),X=null;function Tn(){hn.value=!0,l(`load-archive`,_n.value)}be(_n,e=>{hn.value&&(X&&clearTimeout(X),X=setTimeout(()=>l(`load-archive`,e),250))});let En=null;be(b,e=>{if(En&&clearTimeout(En),!e.trim()){l(`search-cards`,``);return}En=setTimeout(()=>l(`search-cards`,e),250)}),v(()=>{En&&clearTimeout(En),X&&clearTimeout(X)});function Dn(e,t){o.readOnly||(y(_.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&&qt())}function On(e){o.readOnly||l(`intent`,{kind:`card-unarchive`,cardId:e})}function kn(e,t){if(o.readOnly)return;let n=_.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);d.require({message:p(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:p(`editor.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{y(_.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-delete`,cardId:t}),qt()}})}function An(){if(o.readOnly||!q.value||!Dt.value.trim()&&!Ot.value.length)return;let{colId:e,card:t}=q.value,n=Ot.value;if(o.addComment){let e=Dt.value.trim(),r=t.id;Dt.value=``,rt.value=rt.value.filter(e=>!n.some(t=>t.id===e.id)),Ot.value=[],o.addComment(r,e,n.length?{attachments:n}:{}).then(t=>{t||(Dt.value.trim()||(Dt.value=e),Ot.value=[...n,...Ot.value])});return}}let jn=/^image\/(png|jpeg|webp|gif)$/;function Mn(e){return it.get(e.id)}async function Nn(e){if(o.fetchAttachment)for(let t of e){if(!jn.test(t.contentType)||it.has(t.id))continue;let e=await o.fetchAttachment(t);e&&it.set(t.id,e)}}function Pn(){for(let e of it.values())URL.revokeObjectURL(e);it.clear()}let Fn=/^video\/(mp4|webm|ogg)$/,In=/^audio\/(mpeg|mp3|ogg|wav|x-wav|webm)$/,Z=/^(text\/|application\/(json|xml|xhtml\+xml|javascript|x-yaml|yaml)$)/;function Ln(e){let t=e.contentType||``;if(jn.test(t))return`image`;if(t===`application/pdf`)return`pdf`;if(Fn.test(t))return`video`;if(In.test(t))return`audio`;let n=mr(t,e.name);return n?e.size<=20971520?n:null:Z.test(t)&&e.size<=Ic?`text`:null}let Q=r(null),Rn=r(0),zn=H(()=>{let e=Q.value?.office;return e?.mode===`sheet`?e.sheets[Rn.value]??e.sheets[0]??null:null}),Bn=r(null),Vn=r(!1);be([()=>Q.value?.office,Bn],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),Vn.value=!1;try{await e.render(t)}catch{Vn.value=!0}}});async function Hn(e){let t=Ln(e),n=it.get(e.id),r=n??await o.fetchAttachment?.(e)??null;if(!r){J.value=[...J.value,{name:e.name,reason:p(`editor.downloadFailed`)}];return}if(!t){Un(r,e.name,!n);return}let i,a;if(t===`text`)try{i=await(await fetch(r)).text()}catch{Un(r,e.name,!n);return}else if(t===`sheet`||t===`doc`||t===`slides`)try{a=await hr(t,await(await fetch(r)).arrayBuffer(),e.name,e.contentType||``)}catch{Un(r,e.name,!n);return}Gn(),Rn.value=0,Q.value={file:e,url:r,kind:t,text:i,office:a,cached:!!n}}function Un(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 Wn(){let e=Q.value;e&&Un(e.url,e.file.name,!1)}function Gn(){let e=Q.value;Q.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Kn(e){$e.value=$e.value.filter((t,n)=>n!==e)}let qn=E(new Set);function Jn(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let Yn=H(()=>o.members.map(e=>({id:e.userId,label:e.name})));function Xn(e){return o.members.find(t=>t.userId===e)?.name??e}function Zn(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 Qn(e){return!!o.currentUserId&&e.authorUser?.id===o.currentUserId}function $n(e){return e.author===`ai`?null:e.authorUser?.id??null}function er(e){return e.author===`ai`?p(`comments.authorAi`):Qn(e)?p(`comments.authorYou`):e.authorUser?.name??p(`comments.authorYou`)}function tr(e){if(!q.value)return;let{colId:t,card:n}=q.value;q.value={colId:t,card:{...n,history:e}},y(_.value.map(r=>r.id===t?{...r,cards:r.cards.map(t=>t.id===n.id?{...t,history:e}:t)}:r))}function nr(e){jt.value=e.id??null,Mt.value=e.detail??``}function rr(){jt.value=null,Mt.value=``}function ir(){let e=jt.value,t=Mt.value.trim();if(o.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(o.editComment){let i=(n.history??[]).find(t=>t.id===e);o.editComment(n.id,e,t,i?.attachments),tr(r)}rr()}function ar(e){return e.id??`${e.type}|${e.timestamp}`}function or(e){return e.type===`comment`&&e.author===`ai`}function sr(e){return Qn(e)||or(e)}function cr(e){if(o.readOnly||!sr(e)||!q.value)return;let t=ar(e);d.require({message:p(`comments.confirmDeleteMessage`),header:p(`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=>ar(e)!==t);o.removeComment&&e.id&&(o.removeComment(n.card.id,e.id),tr(r))}})}let lr=H(()=>o.columnSubscriptions!==void 0),ur=r(null),dr=[`entered`,`left`,`created`,`deleted`],fr=[`email`,`chat`],pr=[...dr],gr=[...fr],_r=r([...pr]),vr=r([...gr]);function yr(e){return o.columnSubscriptions?.[e]??null}function br(e){return yr(e)!==null}let xr=E(new Set),Sr=new Map,Cr=null;function wr(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?xr.add(e):xr.delete(e)}function Tr(e,t){let n=Sr.get(t);if(n&&n!==e&&Cr?.unobserve(n),!(e instanceof HTMLElement)){Sr.delete(t),xr.delete(t);return}Sr.set(t,e),typeof ResizeObserver<`u`&&(Cr??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of Sr)n===t.target&&wr(e,n)}),Cr.observe(e)),wr(t,e)}be(()=>_.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void C(()=>{for(let[e,t]of Sr)wr(e,t)})),v(()=>Cr?.disconnect());function Er(e,t){return{value:xr.has(e)?t:``,showDelay:0,hideDelay:0}}let Dr=r(null),Or=r(null);function kr(e,t){Or.value=t,Dr.value?.toggle(e)}function Ar(e){let t=Or.value;t&&(Dr.value?.hide(),e(t.id))}function jr(e){let t=yr(e);_r.value=t?[...t.kinds]:[...pr],vr.value=t?[...t.channels]:[...gr],ur.value=e}let Mr=H(()=>_r.value.length>0&&vr.value.length>0);function Nr(){let e=ur.value;!e||!Mr.value||(l(`update-column-subscription`,{columnId:e,subscription:{kinds:[..._r.value],channels:[...vr.value]}}),ur.value=null)}function Pr(){let e=ur.value;e&&(l(`update-column-subscription`,{columnId:e,subscription:null}),ur.value=null)}let Fr=H(()=>o.columns.find(e=>e.id===ur.value)??null),Ir=E(new Set),Lr=E(new Set),Rr=H(()=>`runeya.kanban.collapsedColumns.${o.name}`),zr=H(()=>`runeya.kanban.expandedColumns.${o.name}`);function Vr(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 Hr(){Vr(Rr.value,Ir),Vr(zr.value,Lr)}function Ur(){try{window.localStorage.setItem(Rr.value,JSON.stringify([...Ir])),window.localStorage.setItem(zr.value,JSON.stringify([...Lr]))}catch{}}Hr(),be(Rr,Hr);function Wr(e){let t=o.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function Gr(e){return Ir.has(e)?!0:Wr(e)&&!Lr.has(e)}function Kr(e){Gr(e)?(Ir.delete(e),Wr(e)&&Lr.add(e)):(Lr.delete(e),Wr(e)||Ir.add(e)),Ur()}let qr=H(()=>(q.value?.card.history??[]).filter(e=>e.type===`comment`));be([Et,qr],([e])=>{e===`comments`&&(Nt(),Gc())}),be(()=>q.value?.card.id,()=>{Zr.clear(),Qr.clear()});function Jr(e){if(/^(https?:|mailto:)/i.test(e)){window.open(e,`_blank`,`noopener,noreferrer`);return}e.startsWith(`#`)||/^\//.test(e)&&window.open(e,`_blank`,`noopener,noreferrer`)}function Yr(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Jr(t),!0):!1}function Xr(e){return e?u.sanitize(re.parse(e,{async:!1}),{ALLOWED_TAGS:[`p`,`br`,`strong`,`em`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`h1`,`h2`,`h3`,`h4`,`a`,`span`],ALLOWED_ATTR:[`href`,`target`,`rel`,`class`]}):``}let Zr=E(new Set),Qr=E(new Set);function $r(e,t){return e.id??`i${t}`}function ei(e,t){return Zr.has($r(e,t))}function ti(e,t){let n=$r(e,t);return Qr.has(n)||Zr.has(n)}function ni(e,t){let n=$r(e,t);Zr.has(n)?Zr.delete(n):Zr.add(n)}function ri(e,t,n){Yr(n)||qc(e)||ti(e,t)&&(n.stopPropagation(),ni(e,t))}let Uc=new Map;function Wc(e,t,n){let r=$r(t,n);if(!(e instanceof HTMLElement)){Uc.delete(r);return}Uc.set(r,e),!Zr.has(r)&&(e.scrollHeight-e.clientHeight>1?Qr.add(r):Qr.delete(r))}async function Gc(){await C();for(let[e,t]of Uc)Zr.has(e)||(t.scrollHeight-t.clientHeight>1?Qr.add(e):Qr.delete(e))}function Kc(e){return o.resolveConversationId?o.resolveConversationId(e):e.conversationId??null}function qc(e){return!!Kc(e)}let Jc=H(()=>{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=Kc(e);if(!t||n.has(t))continue;n.add(t);let i=e.detail??``,a=i.includes(` — `)?i.slice(0,i.lastIndexOf(` — `)).trim():``,o=Qc(e.timestamp);r.push({id:t,label:o,title:a||Zc.value[e.type]})}return r});function Yc(e){let t=Kc(e);t&&l(`open-conversation`,t)}let Xc={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`},Zc=H(()=>({created:p(`history.events.created`),edited:p(`history.events.edited`),moved:p(`history.events.moved`),image_added:p(`history.events.image_added`),image_removed:p(`history.events.image_removed`),title_changed:p(`history.events.title_changed`),archived:p(`history.events.archived`),unarchived:p(`history.events.unarchived`),conversation_started:p(`history.events.conversation_started`),scenario_started:p(`history.events.scenario_started`),comment:p(`history.events.comment`)}));function Qc(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}`}function $c(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 el(e){let t=[];for(let n of e){if(n.size===0){J.value=[...J.value,{name:n.name,reason:p(`editor.uploadEmpty`)}];continue}if(n.size>Lc){J.value=[...J.value,{name:n.name,reason:p(`editor.uploadTooLarge`)}];continue}if(!o.uploadImage){J.value=[...J.value,{name:n.name,reason:p(`editor.uploadUnavailable`)}];continue}let e=`${nt+=1}`;tt.value=[...tt.value,{key:e,name:n.name,ratio:0}];try{let r=await o.uploadImage(n,t=>{tt.value=tt.value.map(n=>n.key===e?{...n,ratio:t}:n)});r?(t.push(r),rt.value=[...rt.value,r]):J.value=[...J.value,{name:n.name,reason:p(`editor.uploadFailed`)}]}finally{tt.value=tt.value.filter(t=>t.key!==e)}}return t}async function tl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,et.value=!0,J.value=[];try{let e=await el(n);Ot.value=[...Ot.value,...e],Nn(e)}finally{et.value=!1}}async function nl(e,t){if(!(o.readOnly||!e.length)){et.value=!0,J.value=[];try{let n=await el(e);if(!n.length)return;t===`comment`?Ot.value=[...Ot.value,...n]:$e.value=[...$e.value,...n],Nn(n)}finally{et.value=!1}}}function rl(e){Ot.value=Ot.value.filter((t,n)=>n!==e)}async function il(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,et.value=!0,J.value=[],tt.value=[];try{if(o.uploadImage){let e=await el(n);$e.value=[...$e.value,...e],Nn(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>Rc){J.value=[...J.value,{name:e.name,reason:p(`editor.uploadUnavailable`)}];continue}let t=await $c(e);if(!t){J.value=[...J.value,{name:e.name,reason:p(`editor.uploadFailed`)}];continue}Qe.value=[...Qe.value,t],kt.value?.insertImage(t)}}finally{et.value=!1}}function al(e){d.require({message:p(`editor.confirmRemoveImageMessage`),header:p(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{Qe.value=Qe.value.filter((t,n)=>n!==e)}})}let ol=r(null),sl=r(null),cl=null,ll=null,ul=`before`,dl=null,fl=`before`,pl=null,ml=null,hl=null,gl=[`kb-card--drop-before`,`kb-card--drop-after`],_l=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function vl(e,t){pl&&pl!==e&&pl.classList.remove(...gl),pl=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function yl(e){ml&&ml!==e&&ml.classList.remove(`kb-col--dragover`),ml=e,e?.classList.add(`kb-col--dragover`)}function bl(e,t){hl&&hl!==e&&hl.classList.remove(..._l),hl=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function xl(){vl(null,`before`),yl(null),bl(null,`before`)}function Sl(e){return kl.value?.querySelector(`.kb-col[data-col-id="${CSS.escape(e)}"]`)??null}let Cl=r(null),wl=r(null),Tl=r(!1),El=null,Dl=null,Ol=null,kl=r(null);function Al(e,t){El&&cancelAnimationFrame(El);let n=kl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Vc&&n.scrollLeft>0?(n.scrollLeft-=Hc,i=!0):e>t.right-Vc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Hc,i=!0)}wl.value&&(wl.value.style.display=`none`);let a=document.elementFromPoint(e,t);if(wl.value&&(wl.value.style.display=``),a){let e=a.closest(`.kb-col__cards`);if(e){let n=e.getBoundingClientRect();t<n.top+Vc&&e.scrollTop>0?(e.scrollTop-=Hc,i=!0):t>n.bottom-Vc&&e.scrollTop<e.scrollHeight-e.clientHeight&&(e.scrollTop+=Hc,i=!0)}}El=i&&Tl.value?requestAnimationFrame(r):null};El=requestAnimationFrame(r)}function jl(){El&&=(cancelAnimationFrame(El),null)}function Ml(){Dl&&=(clearTimeout(Dl),null),Ol=null}function Nl(){if(!Ol)return;let{type:e,colId:t,cardId:n,el:r}=Ol;Cl.value=e,Tl.value=!0,e===`card`&&n?(ol.value={colId:t,cardId:n},sl.value=null):(sl.value=t,ol.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),wl.value=e}Ol=null}function Pl(e,t,n,r){if(o.readOnly)return;Ml();let i=e.touches[0],a=i.clientX,s=i.clientY;Ol={type:t,colId:n,cardId:r,el:e.target};let c=e=>{let t=e.touches[0],n=t.clientX-a,r=t.clientY-s;Math.sqrt(n*n+r*r)>Bc&&(Ml(),document.removeEventListener(`touchmove`,c))};document.addEventListener(`touchmove`,c,{passive:!0}),Dl=setTimeout(()=>{document.removeEventListener(`touchmove`,c),Nl()},zc)}function Fl(e){if(!Tl.value)return;e.preventDefault();let t=e.touches[0];wl.value&&(wl.value.style.left=`${t.clientX-40}px`,wl.value.style.top=`${t.clientY-20}px`),Al(t.clientX,t.clientY),wl.value&&(wl.value.style.display=`none`);let n=document.elementFromPoint(t.clientX,t.clientY);if(wl.value&&(wl.value.style.display=``),n){if(Cl.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`;cl!==i&&(cl=i,yl(r)),(ll!==n||ul!==o)&&(ll=n,ul=o,vl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(cl=e,ll=null,yl(r),vl(null,`before`))}}else if(Cl.value===`column`){let e=n.closest(`.kb-col`);if(e){let n=e.dataset.colId||``;if(n&&n!==sl.value){let r=e.getBoundingClientRect(),i=t.clientX-r.left<r.width/2?`before`:`after`;(dl!==n||fl!==i)&&(dl=n,fl=i,bl(e,i))}}}}}function Il(){Ml(),jl(),wl.value&&=(wl.value.remove(),null),Tl.value&&(Cl.value===`card`&&cl?Bl(cl):Cl.value===`column`&&dl&&Gl(dl)),Cl.value=null,Tl.value=!1,Rl()}function Ll(e,t,n){o.readOnly||(ol.value={colId:t,cardId:n},sl.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`card`)))}function Rl(){ol.value=null,cl=null,ll=null,sl.value=null,dl=null,xl()}function zl(e,t,n){if(!ol.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`;cl!==t&&(cl=t,yl(r.closest(`.kb-col`))),!(ll===n&&ul===a)&&(ll=n,ul=a,vl(r,a))}function Bl(e){if(o.readOnly)return;if(sl.value){Gl(e);return}if(!ol.value)return;let{colId:t,cardId:n}=ol.value,r=Ie(t),i=Ie(e),a=null,c=_.value.map(e=>e.id===t?(a=e.cards.find(e=>e.id===n)??null,{...e,cards:e.cards.filter(e=>e.id!==n)}):e),l=0;if(a){let n={...a};!s.value&&t!==e&&Le(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(ll){let e=r.findIndex(e=>e.id===ll);e!==-1&&(i=ul===`before`?e:e+1)}return l=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(ol.value=null,cl=null,ll=null,xl(),o.moveCard&&a){_.value=c,o.moveCard(a.id,e,l);return}y(c,a?{kind:`card-move`,cardId:a.id,toColumnId:e,toIndex:l}:void 0)}function Vl(e,t){!ol.value&&!sl.value||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),ol.value&&(cl!==t&&(cl=t,yl(Sl(t))),ll!==null&&(ll=null,vl(null,`before`))))}function Hl(e){cl===e&&(cl=null,yl(null))}function Ul(e,t){o.readOnly||(sl.value=t,ol.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`column`)))}function Wl(e,t){if(!sl.value||sl.value===t)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let n=e.currentTarget,r=n.getBoundingClientRect(),i=e.clientX-r.left<r.width/2?`before`:`after`;dl===t&&fl===i||(dl=t,fl=i,bl(n,i))}function Gl(e){if(o.readOnly||!sl.value||sl.value===e){sl.value=null,dl=null,xl();return}let t=[..._.value].sort((e,t)=>e.order-t.order),n=t.findIndex(e=>e.id===sl.value),r=t.splice(n,1)[0],i=t.findIndex(t=>t.id===e);t.splice(fl===`before`?i:i+1,0,r),sl.value=null,dl=null,xl(),y(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return t({openCardEditor:Bt,closeCardEditor:qt,saveCard:Jt,editingCard:q}),(t,n)=>{let r=le(`tooltip`);return c(),j(`div`,{ref_key:`rootEl`,ref:kl,class:`kb`},[V(`header`,ai,[T(f(R),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:n[0]||=e=>l(`back`)}),z((c(),j(`h1`,{class:`kb-header__title`,ref:e=>Tr(e,`board`)},[K(I(e.name),1)])),[[r,Er(`board`,e.name),void 0,{bottom:!0}]]),V(`span`,oi,[n[58]||=V(`i`,{class:`pi pi-search`},null,-1),T(f(Te),{modelValue:b.value,"onUpdate:modelValue":n[1]||=e=>b.value=e,placeholder:f(p)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),b.value?(c(),L(f(R),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:n[2]||=e=>b.value=``})):F(``,!0),e.searchTruncated?(c(),j(`small`,si,I(f(p)(`searchTruncated`)),1)):F(``,!0)]),z(T(f(R),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:pe.value?String(pe.value):void 0,"badge-severity":`info`,class:P({"kb-header__filter--on":pe.value}),onClick:n[3]||=e=>ne.value=!0},null,8,[`badge`,`class`]),[[r,f(p)(`filters.open`),void 0,{bottom:!0}]]),z(T(f(R),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:Tn},null,512),[[r,f(p)(`archive.open`),void 0,{bottom:!0}]]),e.readOnly?F(``,!0):z((c(),L(f(R),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:n[4]||=e=>De.value=!0},null,512)),[[r,f(p)(`groups.title`),void 0,{bottom:!0}]]),e.readOnly?(c(),j(`span`,ci,[n[59]||=V(`i`,{class:`pi pi-lock`},null,-1),K(` `+I(f(p)(`readOnly.badge`)),1)])):F(``,!0),g(t.$slots,`header-actions`,{},void 0,!0)]),g(t.$slots,`banner`,{},void 0,!0),V(`div`,li,[je.value?(c(),j(`div`,{key:0,class:`kb-bands`,style:B({height:`${je.value}px`})},[(c(!0),j(G,null,U(Ne.value,e=>(c(),j(`div`,{key:e.id,class:`kb-band`,style:B({left:`${e.left}px`,width:`${e.width}px`,top:`${e.top}px`,"--kb-band-color":e.color||`var(--p-text-muted-color)`})},[V(`span`,ui,I(e.title),1),V(`span`,di,I(e.count),1)],4))),128))],4)):F(``,!0),V(`div`,{ref_key:`boardEl`,ref:Me,class:`kb-board`},[(c(!0),j(G,null,U(Ee.value,i=>(c(),j(`div`,{key:i.id,class:P([`kb-col`,{"kb-col--collapsed":Gr(i.id),"kb-col--dragging":sl.value===i.id}]),"data-col-id":i.id,draggable:!e.readOnly,onDragstart:e=>Ul(e,i.id),onDragover:e=>{Wl(e,i.id),Vl(e,i.id)},onDragleave:e=>Hl(i.id),onDrop:N(e=>Bl(i.id),[`prevent`]),onDragend:Rl,onTouchstart:e=>Pl(e,`column`,i.id),onTouchmove:Fl,onTouchend:Il,onContextmenu:n[8]||=N(()=>{},[`prevent`])},[Gr(i.id)?(c(),j(`button`,{key:0,class:P([`kb-col__strip`,{"kb-col__strip--empty":i.cards.length===0}]),title:f(p)(`column.expand`),onClick:e=>Kr(i.id)},[n[60]||=V(`i`,{class:`pi pi-angle-double-right`},null,-1),V(`span`,mi,I(i.cards.length),1),br(i.id)?(c(),j(`i`,hi)):F(``,!0),z((c(),j(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>Tr(e,`strip:${i.id}`)},[K(I(i.title),1)])),[[r,Er(`strip:${i.id}`,i.title),void 0,{right:!0}]])],10,pi)):(c(),j(`div`,gi,[z(V(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>Tr(e,`col:${i.id}`),value:i.title,readonly:e.readOnly,draggable:`false`,onBlur:e=>He(i.id,e.target.value),onKeyup:n[5]||=W(e=>e.target.blur(),[`enter`]),onMousedown:n[6]||=N(()=>{},[`stop`])},null,40,_i),[[r,Er(`col:${i.id}`,i.title),void 0,{bottom:!0}]]),V(`div`,vi,[lr.value&&br(i.id)?z((c(),L(f(R),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>jr(i.id)},null,8,[`onClick`])),[[r,f(p)(`column.unsubscribe`),void 0,{bottom:!0}]]):F(``,!0),z(T(f(R),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:P([`kb-col__menu-btn`,{"kb-col__menu-btn--open":Or.value?.id===i.id}]),onClick:e=>kr(e,i)},null,8,[`class`,`onClick`]),[[r,f(p)(`column.menu`),void 0,{bottom:!0}]]),V(`span`,yi,I(i.cards.length),1)])])),!e.readOnly&&!Gr(i.id)?(c(),j(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>Lt(i.id,`top`)},[n[61]||=V(`i`,{class:`pi pi-plus`},null,-1),K(` `+I(f(p)(`column.addCard`)),1)],8,bi)):F(``,!0),Gr(i.id)?F(``,!0):(c(),j(`div`,xi,[(c(!0),j(G,null,U(i.cards,a=>(c(),j(`div`,{key:a.id,class:P([`kb-card`,{"kb-card--colored":a.color}]),style:B(a.color?{borderTopColor:a.color}:void 0),"data-card-id":a.id,draggable:!e.readOnly,onDragstart:N(e=>Ll(e,i.id,a.id),[`stop`]),onDragover:e=>zl(e,i.id,a.id),onDragend:Rl,onTouchstart:N(e=>Pl(e,`card`,i.id,a.id),[`stop`]),onTouchmove:Fl,onTouchend:Il,onContextmenu:n[7]||=N(()=>{},[`prevent`]),onClick:e=>Bt(i.id,a)},[T(gn,{card:a,t:f(p),"avatar-url":e.avatarUrl,"child-count":Qt(a.id),"has-parent":!!Xt(a.id)},{actions:M(()=>[g(t.$slots,`card-actions`,{card:a,column:i},void 0,!0),e.readOnly?F(``,!0):z((c(),j(`button`,{key:0,class:`kb-card__delete`,onClick:N(e=>Dn(i.id,a.id),[`stop`])},[...n[62]||=[V(`i`,{class:`pi pi-inbox`},null,-1)]],8,Ci)),[[r,f(p)(`archive.cardTooltip`),void 0,{bottom:!0}]]),e.readOnly?F(``,!0):z((c(),j(`button`,{key:1,class:`kb-card__delete`,onClick:N(e=>kn(i.id,a.id),[`stop`])},[...n[63]||=[V(`i`,{class:`pi pi-times`},null,-1)]],8,wi)),[[r,f(p)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:M(()=>[g(t.$slots,`card-badges`,{card:a},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,Si))),128)),i.cards.length===0?(c(),j(`div`,Ti,I(f(p)(`column.dropZone`)),1)):F(``,!0)])),!e.readOnly&&!Gr(i.id)?(c(),j(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>Lt(i.id)},[n[64]||=V(`i`,{class:`pi pi-plus`},null,-1),K(` `+I(f(p)(`column.addCard`)),1)],8,Ei)):F(``,!0)],42,fi))),128)),T(f(i),{visible:ur.value!==null,modal:``,header:f(p)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":n[12]||=e=>{e||(ur.value=null)}},{footer:M(()=>[br(ur.value??``)?(c(),L(f(R),{key:0,label:f(p)(`column.unsubscribe`),severity:`danger`,text:``,onClick:Pr},null,8,[`label`])):F(``,!0),T(f(R),{label:f(p)(`editor.cancel`),text:``,onClick:n[11]||=e=>ur.value=null},null,8,[`label`]),T(f(R),{label:br(ur.value??``)?f(p)(`editor.save`):f(p)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Mr.value,onClick:Nr},null,8,[`label`,`disabled`])]),default:M(()=>[V(`p`,Di,I(f(p)(`column.subscribeIntro`,{column:Fr.value?.title??``})),1),V(`p`,Oi,I(f(p)(`column.subscribeEventsLabel`)),1),V(`div`,ki,[(c(),j(G,null,U(dr,e=>V(`label`,{key:e,class:`kb-subscribe__option`},[T(f(ze),{modelValue:_r.value,"onUpdate:modelValue":n[9]||=e=>_r.value=e,value:e},null,8,[`modelValue`,`value`]),V(`span`,null,I(f(p)(`column.subscribeKind.${e}`)),1)])),64))]),V(`p`,Ai,[n[65]||=V(`i`,{class:`pi pi-times`},null,-1),K(` `+I(f(p)(`column.subscribeNotReorder`)),1)]),V(`p`,ji,I(f(p)(`column.subscribeChannelsLabel`)),1),V(`div`,Mi,[(c(),j(G,null,U(fr,e=>V(`label`,{key:e,class:`kb-subscribe__option`},[T(f(ze),{modelValue:vr.value,"onUpdate:modelValue":n[10]||=e=>vr.value=e,value:e},null,8,[`modelValue`,`value`]),V(`span`,null,I(f(p)(`column.subscribeChannel.${e}`)),1)])),64))]),V(`p`,Ni,I(f(p)(`column.subscribeOwnActions`)),1)]),_:1},8,[`visible`,`header`]),T(f(i),{visible:Ft.value!==null,header:f(p)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":n[14]||=e=>{e||(Ft.value=null)}},{default:M(()=>[V(`p`,Pi,I(f(p)(`templates.pickIntro`)),1),V(`div`,Fi,[V(`button`,{class:`kb-tpl-option`,onClick:n[13]||=e=>Rt(null)},[n[66]||=V(`i`,{class:`pi pi-file`},null,-1),K(` `+I(f(p)(`templates.blank`)),1)]),(c(!0),j(G,null,U(e.templates,e=>(c(),j(`button`,{key:e.id,class:`kb-tpl-option`,onClick:t=>Rt(e)},[n[67]||=V(`i`,{class:`pi pi-file-edit`},null,-1),K(` `+I(e.name),1)],8,Ii))),128))])]),_:1},8,[`visible`,`header`]),e.readOnly?F(``,!0):(c(),j(`div`,Li,[x.value?(c(),j(`div`,Ri,[T(f(Te),{modelValue:S.value,"onUpdate:modelValue":n[15]||=e=>S.value=e,placeholder:f(p)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[W(Re,[`enter`]),n[16]||=W(e=>x.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),V(`div`,zi,[T(f(R),{label:f(p)(`addColumnButton`),size:`small`,disabled:!S.value.trim(),onClick:Re},null,8,[`label`,`disabled`]),T(f(R),{icon:`pi pi-times`,text:``,size:`small`,onClick:n[17]||=e=>x.value=!1})])])):(c(),j(`button`,{key:1,class:`kb-add-col__trigger`,onClick:n[18]||=e=>x.value=!0},[n[68]||=V(`i`,{class:`pi pi-plus`},null,-1),K(` `+I(f(p)(`addColumn`)),1)]))]))],512)]),T(ii,{visible:De.value,"onUpdate:visible":n[19]||=e=>De.value=e,columns:_.value,groups:e.columnGroups,"read-only":e.readOnly,t:f(p),onIntent:n[20]||=e=>l(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),T(f(a),{visible:ne.value,"onUpdate:visible":n[29]||=e=>ne.value=e,position:`right`,header:f(p)(`filters.title`),class:`kb-filters`},{footer:M(()=>[T(f(R),{label:f(p)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!pe.value,onClick:he},null,8,[`label`,`disabled`])]),default:M(()=>[V(`div`,Bi,[V(`section`,Vi,[V(`span`,Hi,I(f(p)(`filters.priority`)),1),A.value?(c(),j(G,{key:1},[V(`div`,Ui,[(c(),j(G,null,U([`lte`,`eq`,`gte`],e=>z(V(`button`,{key:e,class:P([`kb-ops__btn`,{"kb-ops__btn--on":w.value===e}]),onClick:t=>{w.value=e,D.value===null&&(D.value=5)}},[K(I(e===`lte`?`≤`:e===`eq`?`=`:`≥`),1)],10,Wi),[[r,{value:f(p)(`filters.priorityOp.${e}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),z((c(),j(`button`,{class:P([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":w.value===`none`}]),onClick:n[22]||=e=>{w.value=w.value===`none`?`gte`:`none`,D.value=w.value===`none`?null:5}},[...n[70]||=[V(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[r,{value:f(p)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),w.value===`none`?F(``,!0):(c(),j(`div`,Gi,[T(f(ot),{"model-value":D.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":n[23]||=e=>D.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),V(`span`,Ki,I(D.value),1)])),V(`button`,{class:`kb-prio__set`,onClick:n[24]||=e=>{D.value=null,w.value=`gte`}},[n[71]||=V(`i`,{class:`pi pi-times`},null,-1),K(` `+I(f(p)(`filters.clearOne`)),1)]),w.value===`none`?F(``,!0):(c(),j(`p`,qi,I(f(p)(`filters.priorityHint`)),1))],64)):(c(),j(`button`,{key:0,class:`kb-prio__set`,onClick:n[21]||=e=>D.value=5},[n[69]||=V(`i`,{class:`pi pi-plus`},null,-1),K(` `+I(f(p)(`filters.priorityAdd`)),1)]))]),V(`section`,Ji,[V(`span`,Yi,I(f(p)(`filters.colors`)),1),V(`div`,Xi,[z((c(),j(`button`,{class:P([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":O.value.includes(``)}]),onClick:n[25]||=e=>O.value=O.value.includes(``)?O.value.filter(e=>e!==``):[...O.value,``]},[...n[72]||=[V(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[r,{value:f(p)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(c(),j(G,null,U(wt,e=>z(V(`button`,{key:e,class:P([`kb-colors__swatch`,{"kb-colors__swatch--on":O.value.includes(e)}]),style:B({background:e}),onClick:t=>O.value=O.value.includes(e)?O.value.filter(t=>t!==e):[...O.value,e]},null,14,Zi),[[r,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))])]),V(`section`,Qi,[V(`span`,$i,I(f(p)(`filters.groups`)),1),T(f(Ve),{modelValue:_e.value,"onUpdate:modelValue":n[26]||=e=>_e.value=e,options:ve.value,placeholder:f(p)(`filters.groupsPlaceholder`),display:`chip`,filter:ve.value.length>6,class:`kb-filters__control`},{option:M(({option:e})=>[V(`span`,{class:P([`kb-void`,{"kb-void--is":e===$}])},[e===$?(c(),j(`i`,ea)):F(``,!0),K(` `+I(e===$?f(p)(`filters.noGroups`):e),1)],2)]),chip:M(({value:e})=>[V(`span`,{class:P([`kb-void`,{"kb-void--is":e===$}])},I(e===$?f(p)(`filters.noGroups`):e),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),V(`section`,ta,[V(`span`,na,I(f(p)(`filters.assignees`)),1),T(f(Ve),{modelValue:ye.value,"onUpdate:modelValue":n[27]||=e=>ye.value=e,options:xe.value,"option-label":`name`,"option-value":`userId`,placeholder:f(p)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:M(({option:e})=>[V(`span`,{class:P([`kb-void`,{"kb-void--is":e.userId===$}])},[e.userId===$?(c(),j(`i`,ra)):F(``,!0),K(` `+I(e.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),V(`section`,ia,[V(`span`,aa,I(f(p)(`filters.family`)),1),T(f(Ve),{modelValue:Se.value,"onUpdate:modelValue":n[28]||=e=>Se.value=e,options:Ce.value,"option-label":`title`,"option-value":`id`,placeholder:f(p)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:M(({option:e})=>[V(`span`,{class:P([`kb-void`,{"kb-void--is":e.id===$}])},[e.id===$?(c(),j(`i`,oa)):F(``,!0),V(`span`,null,I(e.title),1),e.column?(c(),j(`span`,sa,I(e.column),1)):F(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),V(`p`,ca,I(f(p)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),T(f(a),{visible:hn.value,"onUpdate:visible":n[33]||=e=>hn.value=e,position:`right`,header:f(p)(`archive.title`),class:`kb-archive`},{default:M(()=>[V(`p`,la,I(f(p)(`archive.hint`)),1),V(`span`,ua,[n[73]||=V(`i`,{class:`pi pi-search`},null,-1),T(f(Te),{modelValue:_n.value,"onUpdate:modelValue":n[30]||=e=>_n.value=e,placeholder:f(p)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),_n.value?(c(),L(f(R),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:n[31]||=e=>_n.value=``})):F(``,!0),z(T(f(R),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:pe.value?String(pe.value):void 0,"badge-severity":`info`,class:P({"kb-header__filter--on":pe.value}),onClick:n[32]||=e=>ne.value=!0},null,8,[`badge`,`class`]),[[r,f(p)(`filters.open`),void 0,{bottom:!0}]])]),e.loadingArchive?(c(),j(`p`,da,I(f(p)(`archive.loading`)),1)):e.archivedCards.length?Sn.value.length?(c(),j(G,{key:3},[Cn.value?(c(),j(`p`,ma,[K(I(f(p)(`archive.filteredOut`,{count:Cn.value}))+` `,1),V(`button`,{class:`kb-archive__reset`,onClick:he},I(f(p)(`filters.reset`)),1)])):F(``,!0),e.archiveTruncated?(c(),j(`p`,ha,[n[74]||=V(`i`,{class:`pi pi-exclamation-circle`},null,-1),K(` `+I(f(p)(`archive.truncated`)),1)])):F(``,!0),V(`ul`,ga,[(c(!0),j(G,null,U(Sn.value,i=>(c(),j(`li`,{key:i.id,class:P([`kb-card kb-archive__card`,{"kb-card--colored":i.color}]),style:B(i.color?{borderTopColor:i.color}:void 0),onClick:e=>xn(i)},[T(gn,{card:i,t:f(p),"avatar-url":e.avatarUrl,"child-count":Qt(i.id),"has-parent":!!Xt(i.id)},{actions:M(()=>[e.readOnly?F(``,!0):z((c(),j(`button`,{key:0,class:`kb-card__delete`,onClick:N(e=>On(i.id),[`stop`])},[...n[75]||=[V(`i`,{class:`pi pi-replay`},null,-1)]],8,va)),[[r,f(p)(`archive.restore`),void 0,{left:!0}]])]),badges:M(()=>[g(t.$slots,`card-badges`,{card:i},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),V(`div`,ya,[i.archivedFrom?(c(),j(`span`,ba,[n[76]||=V(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),K(` `+I(f(p)(`archive.fromColumn`,{column:i.archivedFrom.columnTitle})),1)])):F(``,!0),i.archivedAt?(c(),j(`span`,xa,I(new Date(i.archivedAt).toLocaleDateString()),1)):F(``,!0)])],14,_a))),128))])],64)):(c(),j(`p`,pa,I(f(p)(`archive.allFiltered`,{count:Cn.value})),1)):(c(),j(`p`,fa,I(_n.value?f(p)(`archive.noMatch`):f(p)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),T(f(i),{visible:!!q.value,header:Xe.value.trim()||f(p)(`card.untitled`),modal:!0,"dismissable-mask":!Ut.value,class:P([`kb-card-dialog`,{"kb-card-dialog--colored":Ct.value}]),style:B({width:`min(1400px, 92vw)`,height:`90vh`,...Ct.value?{"--kb-card-color":Ct.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":n[52]||=e=>{e||Wt()}},{footer:M(()=>[V(`div`,rc,[Ut.value&&!e.readOnly?(c(),j(`span`,ic,[n[104]||=V(`i`,{class:`pi pi-exclamation-circle`},null,-1),K(` `+I(f(p)(`editor.unsavedHint`)),1)])):F(``,!0),T(f(R),{label:f(p)(`editor.close`),text:``,onClick:Wt},null,8,[`label`]),e.readOnly?F(``,!0):(c(),L(f(R),{key:1,label:f(p)(`editor.save`),icon:`pi pi-check`,onClick:Jt},null,8,[`label`]))])]),default:M(()=>[q.value?(c(),j(`div`,Sa,[V(`div`,Ca,[T(f(Ge),{value:Et.value,"onUpdate:value":n[41]||=e=>Et.value=e},{default:M(()=>[T(f(Ue),null,{default:M(()=>[T(f(Ke),{value:`edit`},{default:M(()=>[n[77]||=V(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),K(I(f(p)(`editor.tabs.edit`)),1)]),_:1}),ln.value||dn.value?(c(),L(f(Ke),{key:0,value:`relations`},{default:M(()=>[n[78]||=V(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),K(I(f(p)(`editor.tabs.relations`,{count:dn.value})),1)]),_:1})):F(``,!0),T(f(Ke),{value:`comments`},{default:M(()=>[n[79]||=V(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),K(I(f(p)(`editor.tabs.comments`,{count:qr.value.length||(q.value.card.commentCount??0)})),1)]),_:1}),T(f(Ke),{value:`history`},{default:M(()=>[n[80]||=V(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),K(I(f(p)(`editor.tabs.history`,{count:q.value.card.history?.length??0})),1)]),_:1})]),_:1}),T(f(We),null,{default:M(()=>[T(f(qe),{value:`edit`},{default:M(()=>[V(`div`,wa,[V(`div`,Ta,[V(`label`,Ea,I(f(p)(`editor.titleLabel`)),1),T(f(Te),{id:`kanban-card-title`,modelValue:Xe.value,"onUpdate:modelValue":n[34]||=e=>Xe.value=e,disabled:e.readOnly,autofocus:``,onKeyup:W(Jt,[`enter`])},null,8,[`modelValue`,`disabled`])]),V(`div`,Da,[V(`label`,Oa,I(f(p)(`editor.contentLabel`)),1),T(f(Ye),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:kt,modelValue:Ze.value,"onUpdate:modelValue":n[35]||=e=>Ze.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!e.readOnly,placeholder:f(p)(`editor.contentPlaceholder`),"handle-files":e=>nl(e,`card`),mentions:Yn.value,"attachment-src":it,onLinkClick:Jr},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),V(`div`,ka,[V(`label`,Aa,I(f(p)(`editor.filesLabel`)),1),Qe.value.length?(c(),j(`div`,ja,[(c(!0),j(G,null,U(Qe.value,(t,r)=>(c(),j(`div`,{key:r,class:`kb-dialog__thumb`},[V(`img`,{src:t,alt:`attachment`},null,8,Ma),e.readOnly?F(``,!0):(c(),j(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>al(r)},[...n[81]||=[V(`i`,{class:`pi pi-times`},null,-1)]],8,Na))]))),128))])):F(``,!0),T(wn,{files:$e.value,preview:Mn,removable:!e.readOnly,"remove-label":f(p)(`editor.removeFile`),onOpen:Hn,onRemove:Kn},null,8,[`files`,`removable`,`remove-label`]),T(Br,{queue:tt.value,errors:J.value,uploading:et.value,"uploading-label":f(p)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),e.readOnly?F(``,!0):(c(),j(`label`,Pa,[n[82]||=V(`i`,{class:`pi pi-upload`},null,-1),K(` `+I(f(p)(`editor.attachFile`))+` `,1),V(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:il},null,32)]))])])]),_:1}),T(f(qe),{value:`relations`},{default:M(()=>[V(`div`,Fa,[Y.value||ln.value?(c(),j(`section`,Ia,[V(`h4`,La,[n[83]||=V(`i`,{class:`pi pi-arrow-up`},null,-1),K(` `+I(f(p)(`editor.parentLabel`)),1)]),Y.value?(c(),j(`table`,Ra,[V(`thead`,null,[V(`tr`,null,[V(`th`,null,I(f(p)(`editor.relationsColCard`)),1),V(`th`,null,I(f(p)(`editor.relationsColBoard`)),1),V(`th`,null,I(f(p)(`editor.relationsColColumn`)),1),V(`th`,za,I(f(p)(`editor.relationsColAssignees`)),1),V(`th`,Ba,I(f(p)(`editor.relationsColComments`)),1),V(`th`,Va,I(f(p)(`editor.relationsColActions`)),1)])]),V(`tbody`,null,[V(`tr`,null,[V(`td`,Ha,[z((c(),j(`span`,{class:`kb-rel__card-title`,ref:e=>Tr(e,`rel:${Y.value?.cardId??``}`)},[K(I(Y.value.title),1)])),[[r,Er(`rel:${Y.value.cardId}`,Y.value.title),void 0,{top:!0}]])]),V(`td`,{class:P([`kb-rel__board`,{"kb-rel__board--away":!Y.value.here}])},[z((c(),j(`span`,{class:`kb-rel__card-title`,ref:e=>Tr(e,`relb:${Y.value?.cardId??``}`)},[K(I(Y.value.boardName),1)])),[[r,Er(`relb:${Y.value?.cardId??``}`,Y.value?.boardName??``),void 0,{top:!0}]])],2),V(`td`,Ua,[z((c(),j(`span`,{class:`kb-rel__card-title`,ref:e=>Tr(e,`relc:${Y.value?.cardId??``}`)},[K(I(Y.value.columnTitle),1)])),[[r,Er(`relc:${Y.value?.cardId??``}`,Y.value?.columnTitle??``),void 0,{top:!0}]])]),V(`td`,Wa,[Y.value.assignees.length?(c(),j(`div`,Ga,[(c(!0),j(G,null,U(Y.value.assignees,t=>(c(),j(`span`,{key:t.id,class:`kb-card__avatar`,style:B(Zn(t.id)),title:t.name},[e.avatarUrl&&!qn.has(t.id)?(c(),j(`img`,{key:0,src:e.avatarUrl(t.id),alt:``,onError:e=>qn.add(t.id)},null,40,qa)):(c(),j(G,{key:1},[K(I(Jn(t.name)),1)],64))],12,Ka))),128))])):(c(),j(`span`,Ja,`—`))]),V(`td`,Ya,I(Y.value.commentCount||`—`),1),V(`td`,Xa,[V(`button`,{class:`kb-rel__action`,title:Y.value.here?f(p)(`editor.childOpen`):f(p)(`editor.openOnBoard`,{board:Y.value.boardName}),onClick:n[36]||=e=>fn(Y.value.cardId,Y.value.boardId)},[...n[84]||=[V(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Za),ln.value?(c(),j(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:f(p)(`editor.detach`),onClick:n[37]||=e=>on(null)},[...n[85]||=[V(`i`,{class:`pi pi-times`},null,-1)]],8,Qa)):F(``,!0)])])])])):(c(),j(`p`,$a,I(f(p)(`editor.parentEmptyState`)),1)),ln.value?(c(),L(f(me),{key:2,"model-value":null,options:rn.value,"option-label":`title`,"option-value":`id`,filter:rn.value.length>6,"filter-placeholder":f(p)(`editor.parentSearchPlaceholder`),"empty-message":f(p)(`editor.parentEmpty`),"empty-filter-message":f(p)(`editor.parentEmpty`),placeholder:Y.value?f(p)(`editor.parentReplace`):f(p)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":on},{option:M(({option:e})=>[V(`span`,eo,[V(`span`,null,I(e.title),1),V(`span`,to,I(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):F(``,!0)])):F(``,!0),en.value.length||ln.value?(c(),j(`section`,no,[V(`h4`,ro,[n[86]||=V(`i`,{class:`pi pi-arrow-down`},null,-1),K(` `+I(f(p)(`editor.childrenLabel`,{count:en.value.length})),1)]),en.value.length?(c(),j(`table`,io,[V(`thead`,null,[V(`tr`,null,[V(`th`,null,I(f(p)(`editor.relationsColCard`)),1),V(`th`,null,I(f(p)(`editor.relationsColBoard`)),1),V(`th`,null,I(f(p)(`editor.relationsColColumn`)),1),V(`th`,ao,I(f(p)(`editor.relationsColAssignees`)),1),V(`th`,oo,I(f(p)(`editor.relationsColComments`)),1),V(`th`,so,I(f(p)(`editor.relationsColActions`)),1)])]),V(`tbody`,null,[(c(!0),j(G,null,U(en.value,t=>(c(),j(`tr`,{key:t.cardId},[V(`td`,co,[z((c(),j(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Tr(e,`rel:${t.cardId}`)},[K(I(t.title),1)])),[[r,Er(`rel:${t.cardId}`,t.title),void 0,{top:!0}]])]),V(`td`,{class:P([`kb-rel__board`,{"kb-rel__board--away":!t.here}])},[z((c(),j(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Tr(e,`relb:${t.cardId}`)},[K(I(t.boardName),1)])),[[r,Er(`relb:${t.cardId}`,t.boardName),void 0,{top:!0}]])],2),V(`td`,lo,[z((c(),j(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Tr(e,`relc:${t.cardId}`)},[K(I(t.columnTitle),1)])),[[r,Er(`relc:${t.cardId}`,t.columnTitle),void 0,{top:!0}]])]),V(`td`,uo,[t.assignees.length?(c(),j(`div`,fo,[(c(!0),j(G,null,U(t.assignees,t=>(c(),j(`span`,{key:t.id,class:`kb-card__avatar`,style:B(Zn(t.id)),title:t.name},[e.avatarUrl&&!qn.has(t.id)?(c(),j(`img`,{key:0,src:e.avatarUrl(t.id),alt:``,onError:e=>qn.add(t.id)},null,40,mo)):(c(),j(G,{key:1},[K(I(Jn(t.name)),1)],64))],12,po))),128))])):(c(),j(`span`,ho,`—`))]),V(`td`,go,I(t.commentCount||`—`),1),V(`td`,_o,[V(`button`,{class:`kb-rel__action`,title:t.here?f(p)(`editor.childOpen`):f(p)(`editor.openOnBoard`,{board:t.boardName}),onClick:e=>fn(t.cardId,t.boardId)},[...n[87]||=[V(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,vo),ln.value?(c(),j(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:f(p)(`editor.detach`),onClick:e=>cn(t.cardId)},[...n[88]||=[V(`i`,{class:`pi pi-times`},null,-1)]],8,yo)):F(``,!0)])]))),128))])])):(c(),j(`p`,bo,I(f(p)(`editor.childrenEmptyState`)),1)),ln.value?(c(),L(f(me),{key:2,"model-value":null,options:an.value,"option-label":`title`,"option-value":`id`,filter:an.value.length>6,"filter-placeholder":f(p)(`editor.parentSearchPlaceholder`),"empty-message":f(p)(`editor.parentEmpty`),"empty-filter-message":f(p)(`editor.parentEmpty`),placeholder:f(p)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":sn},{option:M(({option:e})=>[V(`span`,xo,[V(`span`,null,I(e.title),1),V(`span`,So,I(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):F(``,!0)])):F(``,!0),!ln.value&&!Y.value&&!en.value.length?(c(),j(`p`,Co,I(f(p)(`editor.relationsEmpty`)),1)):F(``,!0)])]),_:1}),T(f(qe),{value:`comments`},{default:M(()=>[V(`div`,wo,[qr.value.length?(c(),j(`div`,Eo,[(c(!0),j(G,null,U(qr.value,(t,r)=>(c(),j(`div`,{key:r,class:P([`kb-comments__item`,{"kb-comments__item--ai":t.author===`ai`,"kb-comments__item--clickable":qc(t)}]),onClick:e=>qc(t)&&Yc(t)},[V(`div`,{class:P([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!$n(t)}]),style:B($n(t)?Zn($n(t)):void 0)},[t.author===`ai`?(c(),j(`i`,Oo)):$n(t)&&e.avatarUrl&&!qn.has($n(t))?(c(),j(`img`,{key:1,src:e.avatarUrl($n(t)),alt:``,onError:e=>qn.add($n(t))},null,40,ko)):t.authorUser?.name?(c(),j(G,{key:2},[K(I(Jn(t.authorUser.name)),1)],64)):(c(),j(`i`,Ao))],6),V(`div`,jo,[V(`div`,Mo,[V(`span`,No,I(er(t)),1),V(`span`,Po,I(Qc(t.timestamp)),1),t.editedAt?(c(),j(`span`,Fo,I(f(p)(`comments.edited`)),1)):F(``,!0),!e.readOnly&&sr(t)&&jt.value!==t.id?(c(),j(`span`,Io,[Qn(t)?(c(),j(`button`,{key:0,class:`kb-comments__tool`,title:f(p)(`comments.edit`),onClick:N(e=>nr(t),[`stop`])},[...n[90]||=[V(`i`,{class:`pi pi-pencil`},null,-1)]],8,Lo)):F(``,!0),V(`button`,{class:`kb-comments__tool`,title:f(p)(`comments.delete`),onClick:N(e=>cr(t),[`stop`])},[...n[91]||=[V(`i`,{class:`pi pi-trash`},null,-1)]],8,Ro)])):F(``,!0)]),jt.value===t.id?(c(),j(`div`,{key:0,class:`kb-comments__edit`,onClick:n[39]||=N(()=>{},[`stop`])},[T(f(Ye),{modelValue:Mt.value,"onUpdate:modelValue":n[38]||=e=>Mt.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:Yn.value,onLinkClick:Jr},null,8,[`modelValue`,`mentions`]),V(`div`,zo,[T(f(R),{label:f(p)(`editor.cancel`),size:`small`,text:``,onClick:rr},null,8,[`label`]),T(f(R),{label:f(p)(`editor.save`),size:`small`,disabled:!Mt.value.trim(),onClick:ir},null,8,[`label`,`disabled`])])])):t.detail?(c(),j(G,{key:1},[V(`div`,{ref_for:!0,ref:e=>Wc(e,t,r),class:P([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!ei(t,r),"kb-comments__text--toggleable":ti(t,r)&&!qc(t)}]),onClick:e=>ri(t,r,e),innerHTML:Xr(t.detail)},null,10,Bo),ti(t,r)?(c(),j(`button`,{key:0,class:`kb-comments__more`,onClick:N(e=>ni(t,r),[`stop`])},I(ei(t,r)?f(p)(`comments.showLess`):f(p)(`comments.showMore`)),9,Vo)):F(``,!0)],64)):F(``,!0),jt.value===t.id?F(``,!0):(c(),L(wn,{key:2,files:t.attachments??[],preview:Mn,compact:``,onOpen:Hn},null,8,[`files`]))])],10,Do))),128)),V(`div`,{ref_key:`commentsEndEl`,ref:At},null,512)])):(c(),j(`div`,To,[n[89]||=V(`i`,{class:`pi pi-comments`},null,-1),V(`span`,null,I(f(p)(`comments.empty`)),1)])),e.readOnly?F(``,!0):(c(),j(`div`,{key:2,class:`kb-comments__input`,onKeydown:[W(N(An,[`ctrl`,`prevent`]),[`enter`]),W(N(An,[`meta`,`prevent`]),[`enter`])]},[T(f(Ye),{modelValue:Dt.value,"onUpdate:modelValue":n[40]||=e=>Dt.value=e,markdown:``,placeholder:f(p)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>nl(e,`comment`),mentions:Yn.value,onLinkClick:Jr},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),T(wn,{files:Ot.value,preview:Mn,openable:!1,removable:``,"remove-label":f(p)(`editor.removeFile`),compact:``,onRemove:rl},null,8,[`files`,`remove-label`]),T(Br,{queue:tt.value,errors:J.value,uploading:et.value,"uploading-label":f(p)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),V(`div`,Uo,[V(`label`,{class:`kb-comments__attach`,title:f(p)(`comments.attach`)},[n[92]||=V(`i`,{class:`pi pi-paperclip`},null,-1),V(`input`,{type:`file`,multiple:``,onChange:tl},null,32)],8,Wo),V(`span`,Go,I(f(p)(`comments.sendHint`)),1),T(f(R),{label:f(p)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!Dt.value.trim()&&!Ot.value.length,onClick:An},null,8,[`label`,`disabled`])])],40,Ho))])]),_:1}),T(f(qe),{value:`history`},{default:M(()=>[V(`div`,Ko,[q.value.card.history?.length?(c(),j(`div`,Jo,[(c(!0),j(G,null,U([...q.value.card.history].reverse(),(e,t)=>(c(),j(`div`,{key:t,class:P([`kb-history__item`,{"kb-history__item--clickable":qc(e)}]),onClick:t=>qc(e)&&Yc(e)},[V(`div`,Xo,[V(`i`,{class:P(Xc[e.type])},null,2)]),V(`div`,Zo,[V(`span`,Qo,[K(I(Zc.value[e.type])+` `,1),qc(e)?(c(),j(`i`,$o)):F(``,!0)]),e.detail?(c(),j(`span`,es,I(e.detail),1)):F(``,!0),V(`span`,ts,[K(I(Qc(e.timestamp))+` `,1),e.authorUser?.name?(c(),j(G,{key:0},[K(` · `+I(f(p)(`history.by`,{name:e.authorUser.name})),1)],64)):F(``,!0)])])],10,Yo))),128))])):(c(),j(`div`,qo,[n[93]||=V(`i`,{class:`pi pi-clock`},null,-1),V(`span`,null,I(f(p)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),V(`aside`,ns,[e.members.length?(c(),j(`div`,rs,[V(`span`,is,I(f(p)(`editor.assigneesLabel`)),1),T(f(Ve),{modelValue:at.value,"onUpdate:modelValue":n[42]||=e=>at.value=e,options:e.members,"option-label":`name`,"option-value":`userId`,placeholder:f(p)(`editor.assigneesPlaceholder`),disabled:e.readOnly,display:`chip`,filter:``,class:`kb-side__control`},{chip:M(({value:t})=>[V(`span`,{class:`kb-card__avatar`,style:B(Zn(t)),title:Xn(t)},[e.avatarUrl&&!qn.has(t)?(c(),j(`img`,{key:0,src:e.avatarUrl(t),alt:``,onError:e=>qn.add(t)},null,40,os)):(c(),j(G,{key:1},[K(I(Jn(Xn(t))),1)],64))],12,as)]),option:M(({option:t})=>[V(`span`,ss,[V(`span`,{class:`kb-card__avatar`,style:B(Zn(t.userId))},[e.avatarUrl&&!qn.has(t.userId)?(c(),j(`img`,{key:0,src:e.avatarUrl(t.userId),alt:``,onError:e=>qn.add(t.userId)},null,40,cs)):(c(),j(G,{key:1},[K(I(Jn(t.name)),1)],64))],4),K(` `+I(t.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),V(`p`,ls,I(f(p)(`editor.assigneesHint`)),1)])):F(``,!0),V(`div`,us,[V(`span`,ds,[K(I(f(p)(`editor.priorityLabel`))+` `,1),dt.value===null?F(``,!0):(c(),j(`span`,fs,I(dt.value)+`/10`,1))]),dt.value===null?e.readOnly?(c(),j(`p`,hs,I(f(p)(`editor.priorityNone`)),1)):(c(),j(`button`,{key:1,class:`kb-prio__set`,onClick:gt},[n[95]||=V(`i`,{class:`pi pi-plus`},null,-1),K(` `+I(f(p)(`editor.priorityAdd`)),1)])):(c(),j(`div`,ps,[T(f(ot),{modelValue:dt.value,"onUpdate:modelValue":n[43]||=e=>dt.value=e,min:1,max:10,step:1,disabled:e.readOnly,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),e.readOnly?F(``,!0):(c(),j(`button`,{key:0,class:`kb-prio__clear`,title:f(p)(`editor.priorityClear`),onClick:n[44]||=e=>dt.value=null},[...n[94]||=[V(`i`,{class:`pi pi-times`},null,-1)]],8,ms))]))]),V(`div`,gs,[V(`span`,_s,I(f(p)(`editor.deadlineLabel`)),1),V(`div`,vs,[T(f(Pt),{modelValue:ft.value,"onUpdate:modelValue":n[45]||=e=>ft.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:e.readOnly,placeholder:f(p)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!e.readOnly&&ft.value?(c(),j(`button`,{key:0,class:`kb-prio__clear`,title:f(p)(`editor.deadlineClear`),onClick:n[46]||=e=>ft.value=null},[...n[96]||=[V(`i`,{class:`pi pi-times`},null,-1)]],8,ys)):F(``,!0)]),ft.value?(c(),j(`p`,bs,I(pt.value),1)):F(``,!0)]),V(`div`,xs,[V(`span`,Ss,I(f(p)(`editor.groupsLabel`)),1),T(f(Je),{modelValue:st.value,"onUpdate:modelValue":n[47]||=e=>st.value=e,multiple:``,suggestions:ct.value,disabled:e.readOnly,placeholder:st.value.length?``:f(p)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:ut,onItemSelect:bt,onKeydown:W(xt,[`enter`]),onFocusout:xt},{option:M(({option:e})=>[V(`span`,Cs,[V(`i`,{class:P(lt.value.includes(e)?`pi pi-tag`:`pi pi-plus`)},null,2),V(`span`,null,I(lt.value.includes(e)?e:f(p)(`editor.groupsCreate`,{name:e})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),V(`p`,ws,I(f(p)(`editor.groupsHint`)),1)]),un.value.length?(c(),j(`div`,Ts,[V(`span`,Es,I(f(p)(`editor.ancestryLabel`)),1),V(`ul`,Ds,[(c(!0),j(G,null,U(un.value,(e,t)=>(c(),j(`li`,{key:e.cardId,class:`kb-tree__row`,style:B({paddingLeft:`${t*.75}rem`})},[t?(c(),j(`i`,Os)):F(``,!0),V(`button`,{class:`kb-tree__label`,title:e.here?f(p)(`editor.childOpen`):f(p)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>fn(e.cardId,e.boardId)},I(e.title),9,ks)],4))),128)),V(`li`,{class:`kb-tree__row kb-tree__row--self`,style:B({paddingLeft:`${un.value.length*.75}rem`})},[n[97]||=V(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),V(`span`,As,I(Xe.value.trim()||f(p)(`card.untitled`)),1)],4)])])):F(``,!0),V(`div`,js,[V(`span`,Ms,I(f(p)(`editor.colorLabel`)),1),V(`div`,Ns,[z((c(),j(`button`,{class:P([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Ct.value}]),disabled:e.readOnly,onClick:n[48]||=e=>Ct.value=``},[...n[98]||=[V(`i`,{class:`pi pi-ban`},null,-1)]],10,Ps)),[[r,{value:f(p)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(c(),j(G,null,U(wt,t=>z(V(`button`,{key:t,class:P([`kb-colors__swatch`,{"kb-colors__swatch--on":Ct.value===t}]),style:B({background:t}),disabled:e.readOnly,onClick:e=>Ct.value=t},null,14,Fs),[[r,{value:t,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),V(`p`,Is,I(f(p)(`editor.colorHint`)),1)]),bn.value?(c(),j(`div`,Ls,[V(`span`,Rs,I(f(p)(`editor.columnSettingLabel`)),1),V(`p`,zs,[n[99]||=V(`i`,{class:`pi pi-inbox`},null,-1),K(` `+I(q.value.card.archivedFrom?f(p)(`archive.editorFrom`,{column:q.value.card.archivedFrom.columnTitle}):f(p)(`archive.editorNote`)),1)])])):(c(),j(`div`,Bs,[V(`span`,Vs,I(f(p)(`editor.columnSettingLabel`)),1),T(f(me),{"model-value":Tt.value,options:pn.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:e.readOnly,filter:pn.value.length>1,"filter-placeholder":f(p)(`editor.columnSearchPlaceholder`),"empty-filter-message":f(p)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":mn},{optiongroup:M(({option:e})=>[V(`span`,{class:P([`kb-colgroup`,{"kb-colgroup--away":e.items[0]?.boardId}])},[V(`i`,{class:P(e.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),V(`span`,Hs,I(e.label),1)],2)]),option:M(({option:e})=>[V(`span`,Us,[e.boardId?(c(),j(`i`,Ws)):F(``,!0),V(`span`,null,I(e.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),e.otherBoards.length&&e.moveCardToBoard&&!e.readOnly?(c(),j(`p`,Gs,I(f(p)(`editor.moveToBoardHint`)),1)):F(``,!0)])),V(`div`,Ks,[q.value.card.createdBy?(c(),j(`p`,qs,[n[100]||=V(`i`,{class:`pi pi-user`},null,-1),K(` `+I(f(p)(`editor.createdBy`,{name:q.value.card.createdBy.name})),1)])):F(``,!0),V(`p`,null,[n[101]||=V(`i`,{class:`pi pi-calendar-plus`},null,-1),K(` `+I(Qc(q.value.card.createdAt)),1)]),V(`p`,null,[n[102]||=V(`i`,{class:`pi pi-clock`},null,-1),K(` `+I(Qc(q.value.card.updatedAt)),1)])]),Jc.value.length?(c(),j(`div`,Js,[V(`span`,Ys,I(f(p)(`editor.conversationsLabel`)),1),V(`div`,Xs,[(c(!0),j(G,null,U(Jc.value,e=>(c(),j(`a`,{key:e.id,class:`kb-side__conv`,title:e.title,onClick:t=>l(`open-conversation`,e.id)},[n[103]||=V(`i`,{class:`pi pi-comments`},null,-1),V(`span`,Qs,I(e.label),1)],8,Zs))),128))])])):F(``,!0),t.$slots[`card-editor-actions`]?(c(),j(`div`,$s,[V(`span`,ec,I(f(p)(`editor.actionsLabel`)),1),V(`div`,tc,[g(t.$slots,`card-editor-actions`,{card:q.value.card,colId:q.value.colId,draft:{title:Xe.value,markdown:Ze.value}},void 0,!0)])])):F(``,!0),!e.readOnly&&!Vt.value?(c(),j(`div`,nc,[bn.value?(c(),L(f(R),{key:0,label:f(p)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:n[49]||=e=>{On(q.value.card.id),qt()}},null,8,[`label`])):(c(),L(f(R),{key:1,label:f(p)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:n[50]||=e=>Dn(q.value.colId,q.value.card.id)},null,8,[`label`])),T(f(R),{label:f(p)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:n[51]||=e=>kn(q.value.colId,q.value.card.id)},null,8,[`label`])])):F(``,!0)])])):F(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),T(f(i),{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[53]||=e=>{e||Gn()}},{footer:M(()=>[T(f(R),{label:f(p)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:Wn},null,8,[`label`]),T(f(R),{label:f(p)(`editor.close`),onClick:Gn},null,8,[`label`])]),default:M(()=>[Q.value?(c(),j(`div`,ac,[Q.value.kind===`image`?(c(),j(`img`,{key:0,src:Q.value.url,alt:Q.value.file.name,class:`kb-viewer__image`},null,8,oc)):Q.value.kind===`pdf`?(c(),j(`iframe`,{key:1,src:Q.value.url,title:Q.value.file.name,class:`kb-viewer__frame`},null,8,sc)):Q.value.kind===`video`?(c(),j(`video`,{key:2,src:Q.value.url,controls:``,class:`kb-viewer__media`},null,8,cc)):Q.value.kind===`audio`?(c(),j(`audio`,{key:3,src:Q.value.url,controls:``,class:`kb-viewer__audio`},null,8,lc)):Q.value.office?.mode===`sheet`?(c(),j(`div`,uc,[Q.value.office.sheets.length>1?(c(),j(`div`,dc,[(c(!0),j(G,null,U(Q.value.office.sheets,(e,t)=>(c(),j(`button`,{key:e.name+t,class:P([`kb-viewer__tab`,{"kb-viewer__tab--active":t===Rn.value}]),onClick:e=>Rn.value=t},I(e.name),11,fc))),128))])):F(``,!0),V(`div`,pc,[zn.value&&zn.value.rows.length?(c(),j(`table`,mc,[V(`thead`,null,[V(`tr`,null,[(c(!0),j(G,null,U(zn.value.rows[0],(e,t)=>(c(),j(`th`,{key:t},I(e),1))),128))])]),V(`tbody`,null,[(c(!0),j(G,null,U(zn.value.rows.slice(1),(e,t)=>(c(),j(`tr`,{key:t},[(c(!0),j(G,null,U(e,(e,t)=>(c(),j(`td`,{key:t},I(e),1))),128))]))),128))])])):(c(),j(`p`,hc,I(f(p)(`editor.viewerEmpty`)),1))])])):Q.value.office?.mode===`blocks`?(c(),j(`div`,gc,[V(`div`,_c,[(c(!0),j(G,null,U(Q.value.office.blocks,(e,t)=>(c(),j(G,{key:t},[e.type===`heading`&&e.level===1?(c(),j(`h1`,vc,I(e.text),1)):e.type===`heading`&&e.level===2?(c(),j(`h2`,yc,I(e.text),1)):e.type===`heading`?(c(),j(`h3`,bc,I(e.text),1)):e.type===`list`?(c(),j(`li`,xc,I(e.text),1)):e.type===`table`?(c(),j(`table`,Sc,[V(`tbody`,null,[(c(!0),j(G,null,U(e.rows,(e,t)=>(c(),j(`tr`,{key:t},[(c(!0),j(G,null,U(e,(e,t)=>(c(),j(`td`,{key:t},I(e),1))),128))]))),128))])])):(c(),j(`p`,Cc,I(e.text),1))],64))),128)),Q.value.office.blocks.length?F(``,!0):(c(),j(`p`,wc,I(f(p)(`editor.viewerEmpty`)),1))])])):Q.value.office?.mode===`slides`?(c(),j(`div`,Tc,[V(`div`,Ec,[(c(!0),j(G,null,U(Q.value.office.slides,(e,t)=>(c(),j(`section`,{key:t,class:`kb-viewer__slide`},[V(`span`,Dc,I(t+1),1),e.title?(c(),j(`h3`,Oc,I(e.title),1)):F(``,!0),(c(!0),j(G,null,U(e.lines,(e,t)=>(c(),j(`p`,{key:t},I(e),1))),128))]))),128))])])):Q.value.office?.mode===`render`?(c(),j(`div`,kc,[Vn.value?(c(),j(`p`,Ac,I(f(p)(`editor.viewerFailed`)),1)):F(``,!0),z(V(`div`,{ref_key:`renderHost`,ref:Bn,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[we,!Vn.value]])])):(c(),j(`pre`,jc,I(Q.value.text),1)),Q.value.office&&Q.value.office.mode!==`render`&&Q.value.office.truncated?(c(),j(`p`,Mc,[n[105]||=V(`i`,{class:`pi pi-exclamation-triangle`},null,-1),K(` `+I(f(p)(`editor.viewerTruncated`)),1)])):F(``,!0)])):F(``,!0)]),_:1},8,[`visible`,`header`]),T(f(ue),{ref_key:`colMenu`,ref:Dr,onHide:n[57]||=e=>Or.value=null},{default:M(()=>[Or.value?(c(),j(`div`,Nc,[V(`div`,Pc,[g(t.$slots,`column-actions`,{column:Or.value},void 0,!0)]),lr.value?(c(),j(`button`,{key:0,class:`kb-colmenu__item`,onClick:n[54]||=e=>Ar(jr)},[n[106]||=V(`i`,{class:`pi pi-bell`},null,-1),V(`span`,null,I(br(Or.value.id)?f(p)(`column.unsubscribe`):f(p)(`column.subscribe`)),1)])):F(``,!0),V(`button`,{class:`kb-colmenu__item`,onClick:n[55]||=e=>Ar(Kr)},[n[107]||=V(`i`,{class:`pi pi-angle-double-left`},null,-1),V(`span`,null,I(f(p)(`column.collapse`)),1)]),e.readOnly?F(``,!0):(c(),j(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:n[56]||=e=>Ar(Be)},[n[108]||=V(`i`,{class:`pi pi-trash`},null,-1),V(`span`,null,I(f(p)(`column.deleteTooltip`)),1)]))])):F(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-8a54f32e`]]),Wc={class:`kanban-list-page`},Gc={class:`page-header`},Kc={class:`page-header__right`},qc={class:`list-menu`},Jc={key:0,class:`empty-state`},Yc={class:`board-grid`},Xc={class:`board-counts`},Zc={class:`board-count`},Qc={class:`board-count board-count--cards`},$c={key:0,class:`board-desc`},el={key:0,class:`empty-state`},tl={class:`board-grid`},nl={key:0,class:`board-desc`},rl={key:0,class:`dialog-field`},il={for:`kanlist-new-template`},al={key:0,class:`field-hint`},ol={class:`dialog-field`},sl={for:`kanlist-new-name`},cl={class:`dialog-field`},ll={for:`kanlist-new-desc`},ul={class:`dialog-field`},dl={for:`kanlist-new-instructions`},fl={class:`field-hint`},pl={class:`dialog-field`},ml={for:`kanlist-edit-name`},hl={class:`dialog-field`},gl={for:`kanlist-edit-desc`},_l={class:`dialog-field`},vl={for:`kanlist-edit-instructions`},yl={class:`field-hint`},bl={class:`templates-intro`},xl={key:0,class:`empty-state`},Sl={key:1,class:`template-list`},Cl={class:`template-row__name`},wl={class:`hint`},Tl={key:0,class:`template-row__actions`},El={class:`dialog-field`},Dl={for:`kanlist-tpl-name`},Ol={class:`dialog-field`},kl={for:`kanlist-tpl-content`},Al={class:`hint`},jl={class:`templates-intro`},Ml={key:0,class:`empty-state`},Nl={key:1,class:`template-list`},Pl={class:`template-row__name`},Fl={key:0,class:`template-row__actions`},Il=D(Ne({__name:`KanbanList`,props:{boards:{},readOnly:{type:Boolean,default:!1},boardsLimit:{default:null},templates:{default:null},boardTemplates:{default:null},t:{}},emits:[`open`,`create`,`update`,`archive`,`delete`,`template-create`,`template-update`,`template-delete`,`board-template-delete`,`templates-needed`],setup(e,{emit:t}){let n=e,a=t,o=ee(),s=n.t;function l(e){a(`templates-needed`),e()}let u=r(!1),d=r(``),p=r(``),m=r(``),h=r(null),_=r(null),v=r(``);function y(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let b=H(()=>{let e=y(v.value.trim());return e?n.boards.filter(t=>y(t.name).includes(e)||y(t.description??``).includes(e)):n.boards}),x=H(()=>b.value.filter(e=>!e.archived)),S=H(()=>b.value.filter(e=>e.archived)),C=H(()=>v.value.trim().length>0),te=H(()=>n.boardsLimit!==null&&n.boards.length>=n.boardsLimit),ne=H(()=>!n.readOnly&&!te.value);function w(e){let t=(n.boardTemplates??[]).find(t=>t.id===e);t&&(d.value.trim()||(d.value=t.name),m.value=t.instructions)}let E=H(()=>(n.boardTemplates??[]).find(e=>e.id===_.value)??null);function D(){!ne.value||!d.value.trim()||(a(`create`,{name:d.value.trim(),description:p.value.trim(),instructions:m.value.trim(),...E.value?.columns.length?{columns:E.value.columns}:{}}),u.value=!1,d.value=``,p.value=``,m.value=``,_.value=null)}function O(){h.value&&=(a(`update`,{...h.value}),null)}let re=r(!1),k=r(null);function ie(){k.value={id:null,name:``,content:``}}function ae(e){k.value={id:e.id,name:e.name,content:e.content}}function oe(){let e=k.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),k.value=null}function se(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 ce=r(!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=r(null);function A(e){fe.value?.hide(),e()}function pe(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=le(`tooltip`);return c(),j(`div`,Wc,[V(`div`,Gc,[V(`h1`,null,I(f(s)(`title`)),1),V(`span`,Kc,[T(f(Ae),null,{default:M(()=>[T(f(_e),{class:`pi pi-search`}),T(f(Te),{modelValue:v.value,"onUpdate:modelValue":n[0]||=e=>v.value=e,placeholder:f(s)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),e.boardsLimit===null?F(``,!0):(c(),j(`span`,{key:0,class:P([`quota`,{"quota--full":te.value}])},I(f(s)(`quota`,{used:e.boards.length,limit:e.boardsLimit})),3)),e.readOnly?F(``,!0):(c(),L(f(R),{key:1,label:f(s)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:te.value,onClick:n[1]||=e=>l(()=>u.value=!0)},null,8,[`label`,`disabled`])),e.templates||e.boardTemplates?(c(),j(G,{key:2},[T(f(R),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:f(s)(`menu`),"aria-label":f(s)(`menu`),onClick:n[2]||=e=>fe.value?.toggle(e)},null,8,[`title`,`aria-label`]),T(f(ue),{ref_key:`listMenu`,ref:fe},{default:M(()=>[V(`div`,qc,[e.templates?(c(),j(`button`,{key:0,class:`list-menu__item`,onClick:n[3]||=e=>A(()=>l(()=>re.value=!0))},[n[27]||=V(`i`,{class:`pi pi-file-edit`},null,-1),V(`span`,null,I(f(s)(`templates.manage`)),1)])):F(``,!0),e.boardTemplates?(c(),j(`button`,{key:1,class:`list-menu__item`,onClick:n[4]||=e=>A(()=>ce.value=!0)},[n[28]||=V(`i`,{class:`pi pi-bookmark`},null,-1),V(`span`,null,I(f(s)(`boardTemplates.manage`)),1)])):F(``,!0)])]),_:1},512)],64)):F(``,!0)])]),g(t.$slots,`banner`,{},void 0,!0),T(f(Ge),{value:`active`},{default:M(()=>[T(f(Ue),null,{default:M(()=>[T(f(Ke),{value:`active`},{default:M(()=>[K(I(f(s)(`tabs.active`)),1)]),_:1}),T(f(Ke),{value:`archived`},{default:M(()=>[K(I(f(s)(`tabs.archived`,{count:S.value.length})),1)]),_:1})]),_:1}),T(f(We),null,{default:M(()=>[T(f(qe),{value:`active`},{default:M(()=>[x.value.length===0?(c(),j(`div`,Jc,I(C.value?f(s)(`noResults`,{query:v.value.trim()}):f(s)(`empty`)),1)):F(``,!0),V(`div`,Yc,[(c(!0),j(G,null,U(x.value,t=>(c(),L(f(Be),{key:t.id,class:`board-card`,onClick:e=>a(`open`,t.id)},{title:M(()=>[K(I(t.name),1)]),subtitle:M(()=>[V(`span`,Xc,[V(`span`,Zc,[n[29]||=V(`i`,{class:`pi pi-list`},null,-1),K(I(f(s)(`columns`,{count:t.columnCount})),1)]),V(`span`,Qc,[n[30]||=V(`i`,{class:`pi pi-clone`},null,-1),K(I(f(s)(`cards`,{count:t.cardCount})),1)])])]),content:M(()=>[t.description?(c(),j(`p`,$c,I(t.description),1)):F(``,!0)]),footer:M(()=>[e.readOnly?F(``,!0):(c(),j(`div`,{key:0,class:`board-actions`,onClick:n[5]||=N(()=>{},[`stop`])},[T(f(R),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>h.value={id:t.id,name:t.name,description:t.description,instructions:t.instructions??``}},null,8,[`onClick`]),z(T(f(R),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>a(`archive`,{id:t.id,archived:!0})},null,8,[`onClick`]),[[r,f(s)(`archive`)]]),T(f(R),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>pe(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),T(f(qe),{value:`archived`},{default:M(()=>[S.value.length===0?(c(),j(`div`,el,I(C.value?f(s)(`noResults`,{query:v.value.trim()}):f(s)(`archivedEmpty`)),1)):F(``,!0),V(`div`,tl,[(c(!0),j(G,null,U(S.value,t=>(c(),L(f(Be),{key:t.id,class:`board-card archived`,onClick:e=>a(`open`,t.id)},{title:M(()=>[K(I(t.name),1)]),content:M(()=>[t.description?(c(),j(`p`,nl,I(t.description),1)):F(``,!0)]),footer:M(()=>[e.readOnly?F(``,!0):(c(),j(`div`,{key:0,class:`board-actions`,onClick:n[6]||=N(()=>{},[`stop`])},[T(f(R),{label:f(s)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>a(`archive`,{id:t.id,archived:!1})},null,8,[`label`,`onClick`]),T(f(R),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>pe(t.id,t.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),T(f(i),{visible:u.value,"onUpdate:visible":n[13]||=e=>u.value=e,header:f(s)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:M(()=>[T(f(R),{label:f(s)(`cancel`),text:``,onClick:n[12]||=e=>u.value=!1},null,8,[`label`]),T(f(R),{label:f(s)(`create`),icon:`pi pi-check`,disabled:!d.value.trim(),onClick:D},null,8,[`label`,`disabled`])]),default:M(()=>[e.boardTemplates?.length?(c(),j(`div`,rl,[V(`label`,il,I(f(s)(`boardTemplates.pickLabel`)),1),T(f(me),{id:`kanlist-new-template`,modelValue:_.value,"onUpdate:modelValue":n[7]||=e=>_.value=e,options:e.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:f(s)(`boardTemplates.pickPlaceholder`),onChange:n[8]||=e=>w(_.value)},null,8,[`modelValue`,`options`,`placeholder`]),E.value?(c(),j(`small`,al,I(f(s)(`boardTemplates.pickHint`,{columns:E.value.columns.map(e=>e.title).join(`, `)||f(s)(`boardTemplates.noColumns`)})),1)):F(``,!0)])):F(``,!0),V(`div`,ol,[V(`label`,sl,I(f(s)(`nameLabel`)),1),T(f(Te),{id:`kanlist-new-name`,modelValue:d.value,"onUpdate:modelValue":n[9]||=e=>d.value=e,autofocus:``,class:`w-full`,onKeyup:W(D,[`enter`])},null,8,[`modelValue`])]),V(`div`,cl,[V(`label`,ll,I(f(s)(`descriptionLabel`)),1),T(f(xe),{id:`kanlist-new-desc`,modelValue:p.value,"onUpdate:modelValue":n[10]||=e=>p.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),V(`div`,ul,[V(`label`,dl,I(f(s)(`instructionsLabel`)),1),T(f(xe),{id:`kanlist-new-instructions`,modelValue:m.value,"onUpdate:modelValue":n[11]||=e=>m.value=e,rows:`6`,class:`w-full`,placeholder:f(s)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),V(`small`,fl,I(f(s)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),T(f(i),{visible:!!h.value,header:f(s)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":n[18]||=e=>{e||(h.value=null)}},{footer:M(()=>[T(f(R),{label:f(s)(`cancel`),text:``,onClick:n[17]||=e=>h.value=null},null,8,[`label`]),T(f(R),{label:f(s)(`save`),icon:`pi pi-check`,onClick:O},null,8,[`label`])]),default:M(()=>[h.value?(c(),j(G,{key:0},[V(`div`,pl,[V(`label`,ml,I(f(s)(`nameLabel`)),1),T(f(Te),{id:`kanlist-edit-name`,modelValue:h.value.name,"onUpdate:modelValue":n[14]||=e=>h.value.name=e,class:`w-full`,onKeyup:W(O,[`enter`])},null,8,[`modelValue`])]),V(`div`,hl,[V(`label`,gl,I(f(s)(`descriptionLabel`)),1),T(f(xe),{id:`kanlist-edit-desc`,modelValue:h.value.description,"onUpdate:modelValue":n[15]||=e=>h.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),V(`div`,_l,[V(`label`,vl,I(f(s)(`instructionsLabel`)),1),T(f(xe),{id:`kanlist-edit-instructions`,modelValue:h.value.instructions,"onUpdate:modelValue":n[16]||=e=>h.value.instructions=e,rows:`8`,class:`w-full`,placeholder:f(s)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),V(`small`,yl,I(f(s)(`instructionsHint`)),1)])],64)):F(``,!0)]),_:1},8,[`visible`,`header`]),T(f(i),{visible:ce.value,"onUpdate:visible":n[20]||=e=>ce.value=e,header:f(s)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:M(()=>[T(f(R),{label:f(s)(`close`),text:``,onClick:n[19]||=e=>ce.value=!1},null,8,[`label`])]),default:M(()=>[V(`p`,bl,I(f(s)(`boardTemplates.intro`)),1),!e.boardTemplates||e.boardTemplates.length===0?(c(),j(`div`,xl,I(f(s)(`boardTemplates.empty`)),1)):(c(),j(`ul`,Sl,[(c(!0),j(G,null,U(e.boardTemplates,t=>(c(),j(`li`,{key:t.id,class:`template-row`},[V(`span`,Cl,[K(I(t.name)+` `,1),V(`small`,wl,I(t.columns.map(e=>e.title).join(` · `)||f(s)(`boardTemplates.noColumns`)),1)]),e.readOnly?F(``,!0):(c(),j(`span`,Tl,[T(f(R),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>de(t)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),T(f(i),{visible:re.value,"onUpdate:visible":[n[25]||=e=>re.value=e,n[26]||=e=>{e||(k.value=null)}],header:f(s)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:M(()=>[k.value?(c(),j(G,{key:0},[T(f(R),{label:f(s)(`cancel`),text:``,onClick:n[23]||=e=>k.value=null},null,8,[`label`]),T(f(R),{label:f(s)(`save`),icon:`pi pi-check`,disabled:!k.value.name.trim(),onClick:oe},null,8,[`label`,`disabled`])],64)):(c(),j(G,{key:1},[e.readOnly?F(``,!0):(c(),L(f(R),{key:0,label:f(s)(`templates.new`),icon:`pi pi-plus`,onClick:ie},null,8,[`label`])),T(f(R),{label:f(s)(`close`),text:``,onClick:n[24]||=e=>re.value=!1},null,8,[`label`])],64))]),default:M(()=>[k.value?(c(),j(G,{key:0},[V(`div`,El,[V(`label`,Dl,I(f(s)(`templates.nameLabel`)),1),T(f(Te),{id:`kanlist-tpl-name`,modelValue:k.value.name,"onUpdate:modelValue":n[21]||=e=>k.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),V(`div`,Ol,[V(`label`,kl,I(f(s)(`templates.contentLabel`)),1),T(f(Ye),{id:`kanlist-tpl-content`,modelValue:k.value.content,"onUpdate:modelValue":n[22]||=e=>k.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:f(s)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),V(`small`,Al,I(f(s)(`templates.contentHint`)),1)])],64)):(c(),j(G,{key:1},[V(`p`,jl,I(f(s)(`templates.intro`)),1),!e.templates||e.templates.length===0?(c(),j(`div`,Ml,I(f(s)(`templates.empty`)),1)):(c(),j(`ul`,Nl,[(c(!0),j(G,null,U(e.templates,t=>(c(),j(`li`,{key:t.id,class:`template-row`},[V(`span`,Pl,I(t.name),1),e.readOnly?F(``,!0):(c(),j(`span`,Fl,[T(f(R),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>ae(t)},null,8,[`onClick`]),T(f(R),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>se(t)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-a01f664b`]]);function Ll(){let e=ae(),t=d(),{user:n}=Le(),i=Me(ye,Re()),a=r(typeof e.query.org==`string`?e.query.org:``),o=r(``),s=r([]),c=h();se();let l=H(()=>c.currentProjectOrgId);return be(()=>n.value?.id,e=>{e&&i.refresh()},{immediate:!0}),be(i.organizations,e=>{if(a.value||!e.length)return;let t=l.value;a.value=t&&e.some(e=>e.id===t)?t:e[0].id},{immediate:!0}),be(a,async n=>{if(t.replace({query:{...e.query,...n?{org:n}:{org:void 0}}}),s.value=[],o.value=``,!n)return;let r=await ye.organization.getFullOrganization({query:{organizationId:n}});if(r.error||!r.data)return;let i=r.data;o.value=i.slug??``,s.value=(i.members??[]).map(e=>({userId:e.userId,name:e.user?.name||e.user?.email||`?`,email:e.user?.email??``}))},{immediate:!0}),{orgId:a,orgSlug:o,members:s,organizations:i.organizations,cloudUser:n}}export{Il as n,Uc as r,Ll as t};
|