@runeya/runeya 2.0.127 → 2.0.128

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.
Files changed (349) hide show
  1. package/agent/index.js +7 -0
  2. package/agent/index.js.map +1 -1
  3. package/{agent-manager-FN6M6CLD.js → agent-manager-VFUO7WQG.js} +3 -3
  4. package/{chat-VCHK77CW.js → chat-GB2UJ5KB.js} +6 -6
  5. package/{chunk-TTPL2M74.js → chunk-DTWP3CFL.js} +8 -1
  6. package/chunk-DTWP3CFL.js.map +1 -0
  7. package/{chunk-QPII36FL.js → chunk-KNAM5H2Z.js} +2 -2
  8. package/{chunk-WQWRTPPJ.js → chunk-KQ462M3Y.js} +2 -2
  9. package/{chunk-UKLNK5YA.js → chunk-X2PJIJU7.js} +6 -6
  10. package/{chunk-LHVTBWM7.js → chunk-ZGEV53KH.js} +7 -7
  11. package/{companion-YB3SDDTU.js → companion-XBCHHK4Z.js} +4 -4
  12. package/{desktop-launcher-J2BCSSGZ.js → desktop-launcher-SLNYXW22.js} +2 -2
  13. package/index.js +4 -4
  14. package/mcp-server/index.js +7 -0
  15. package/mcp-server/index.js.map +1 -1
  16. package/package.json +1 -1
  17. package/{settings-manager-4EDX7NIB.js → settings-manager-YGIIRWVY.js} +3 -3
  18. package/{src-J3RBNMRJ.js → src-WK5KI3IO.js} +7 -7
  19. package/web/assets/AgentScalarChatInterface.vue-B0YVVvvN.js +13 -0
  20. package/web/assets/AgentTerminalPage-25hg27t9.js +1 -0
  21. package/web/assets/AiChatPage-C34J4RQh.js +1 -0
  22. package/web/assets/AppLayout-Cq7es4tN.js +1 -0
  23. package/web/assets/{AppLayout-Do2CLgOr.css → AppLayout-lOwRflWA.css} +1 -1
  24. package/web/assets/AuditPage-Ctf0zyMz.js +1 -0
  25. package/web/assets/CloudAccountPage-CH5UJiew.js +1 -0
  26. package/web/assets/CloudAccountPage-DUCeHm0n.js +1 -0
  27. package/web/assets/CloudMessagingPage-iGdZy0rP.js +2 -0
  28. package/web/assets/DashboardPage-DCMfg5Vz.js +164 -0
  29. package/web/assets/{DashboardPage-DWA-1xgl.css → DashboardPage-DRZGWuU1.css} +1 -1
  30. package/web/assets/DirectoryPickerDialog-BlFmkPJx.js +1 -0
  31. package/web/assets/DirectoryPickerDialog-Ctp1lYoS.css +1 -0
  32. package/web/assets/{EditorIcon-lzF8hPtZ.js → EditorIcon-BvkHge0W.js} +2 -2
  33. package/web/assets/{EnvironmentForm-DVWdFsE1.js → EnvironmentForm-DtgwWpcp.js} +2 -2
  34. package/web/assets/EnvironmentFormPage-Y33vtDkS.js +1 -0
  35. package/web/assets/EnvironmentListPage-Dwv_amSf.js +1 -0
  36. package/web/assets/KanbanBoardPage-BYIWTYy2.js +4 -0
  37. package/web/assets/KanbanListPage-C_zN70Af.css +1 -0
  38. package/web/assets/KanbanListPage-CtnTArkW.js +1 -0
  39. package/web/assets/LaunchProjectPage-BGtCnkQf.js +1 -0
  40. package/web/assets/LaunchProjectPage-CHeYx5v0.css +1 -0
  41. package/web/assets/LaunchServicesPage-QDcpXeHP.js +1 -0
  42. package/web/assets/LogViewer-5fy2mcac.js +3 -0
  43. package/web/assets/OrgKeyPrompt-CRf1ZPik.js +1 -0
  44. package/web/assets/OrgKeyPrompt-CrHXZdKL.css +1 -0
  45. package/web/assets/OrgLogo-D9q7M1ZF.js +1 -0
  46. package/web/assets/{ProcessControls-DkaiMo0H.js → ProcessControls-B5dlAAdP.js} +1 -1
  47. package/web/assets/ProcessDetailPage-TwjrHkz3.js +1 -0
  48. package/web/assets/{ProcessMetrics-D2lP9cEF.js → ProcessMetrics-UeyyEwTI.js} +2 -2
  49. package/web/assets/RandomJobTestPage-DcIJekvc.js +2 -0
  50. package/web/assets/ScenarioEditorPage-midPg1W3.js +14 -0
  51. package/web/assets/SendToChatDialog-DakT4QK8.js +1 -0
  52. package/web/assets/ServiceControlsBar-HsErHmCH.js +1 -0
  53. package/web/assets/ServiceDetailPage-FJBxkdMy.js +2 -0
  54. package/web/assets/ServiceFormPage-DHjdAmr3.js +1 -0
  55. package/web/assets/SettingsPage-CONd8aJV.js +2063 -0
  56. package/web/assets/UnlockPage-CyZyhxYj.js +1 -0
  57. package/web/assets/VaultMigrationPage-B2WI7Dzf.js +1 -0
  58. package/web/assets/VersionBadge-D3kiloE4.js +1 -0
  59. package/web/assets/WikiPage-DE2tV5jr.js +1 -0
  60. package/web/assets/WikiView-DnWD_aWz.js +1 -0
  61. package/web/assets/{add-scalar-classes-C1s53GSo.js → add-scalar-classes-BBBoFX1O.js} +28 -28
  62. package/web/assets/{autocomplete-qVwP27uM.js → autocomplete-CR_eCGsI.js} +3 -3
  63. package/web/assets/{basic-shape-diamond.svg-BwZ1Enqo.js → basic-shape-diamond.svg-DRRq7MrY.js} +1 -1
  64. package/web/assets/{basic-shape-hexagon.svg-Cyko19l-.js → basic-shape-hexagon.svg-CGSaE9pB.js} +1 -1
  65. package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-CWaxr-XS.js → basic-shape-primary-circle-ellipse-round.svg-DIXa0_Cu.js} +1 -1
  66. package/web/assets/{basic-shape-primary-square-rectangle.svg-BueTJIhO.js → basic-shape-primary-square-rectangle.svg-iZ2jJ4vs.js} +1 -1
  67. package/web/assets/{basic-shape-shield.svg-DiYXMUMt.js → basic-shape-shield.svg-udMt4tB9.js} +1 -1
  68. package/web/assets/{browser-72mztbYe.js → browser-BL1DKhyA.js} +1 -1
  69. package/web/assets/{browser-B8wHMk1o.js → browser-Ca9fTyQX.js} +1 -1
  70. package/web/assets/card-BQ1OXNVV.js +32 -0
  71. package/web/assets/{checkbox-BiDvmfqK.js → checkbox-CyVRoo_U.js} +3 -3
  72. package/web/assets/{chip-Cb6eK00K.js → chip-CppGpxiK.js} +2 -2
  73. package/web/assets/client-CUWGHmly.js +24 -0
  74. package/web/assets/cloud-chat.store-BKPvf-qg.js +1 -0
  75. package/web/assets/cloud-client-CBVMvTSV.js +1 -0
  76. package/web/assets/cloud-session-CwER2D6K.js +1 -0
  77. package/web/assets/{cloud-session-CIGp7324.js → cloud-session-DiJ37iee.js} +2 -2
  78. package/web/assets/column-BYul0pb1.js +763 -0
  79. package/web/assets/{computer-device-desktop-monitor.svg-DkL4R6oe.js → computer-device-desktop-monitor.svg--DYwduR2.js} +1 -1
  80. package/web/assets/{computer-device-desktop.svg-DXRQ2Wl4.js → computer-device-desktop.svg-BBgMbw17.js} +1 -1
  81. package/web/assets/{computer-device-laptop.svg-BwdMHvul.js → computer-device-laptop.svg-BKpaOUrY.js} +1 -1
  82. package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-CzfVICvS.js → computer-device-mobile-phone-android-samsung-back.svg-B59atDnV.js} +1 -1
  83. package/web/assets/{computer-device-mobile-phone-android-samsung.svg-5mcZzPvQ.js → computer-device-mobile-phone-android-samsung.svg-PrtfIbO2.js} +1 -1
  84. package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-CovJE-GH.js → computer-device-mobile-phone-iphone-x-back.svg-CxeWs20w.js} +1 -1
  85. package/web/assets/{computer-device-mobile-phone-iphone-x.svg-PgDuCiQq.js → computer-device-mobile-phone-iphone-x.svg-jqLPWrzA.js} +1 -1
  86. package/web/assets/{computer-device-mobile-tablet-touch.svg-1xFu6tBt.js → computer-device-mobile-tablet-touch.svg-R-OkYXde.js} +1 -1
  87. package/web/assets/{computer-device-mobile-tablet.svg-lvKpoZnh.js → computer-device-mobile-tablet.svg-BjISjapY.js} +1 -1
  88. package/web/assets/{computer-device-network-ethernet-cat6.svg-BJ6jNe-4.js → computer-device-network-ethernet-cat6.svg-BXgIO_p5.js} +1 -1
  89. package/web/assets/{computer-device-network-lan-www.svg-D2V9EO5w.js → computer-device-network-lan-www.svg-B6YGwdqj.js} +1 -1
  90. package/web/assets/{computer-device-network-wifi-connection.svg-DhFLYNK0.js → computer-device-network-wifi-connection.svg-CP2V_sTN.js} +1 -1
  91. package/web/assets/{computer-device-network-wifi-router.svg-BGWV2N2B.js → computer-device-network-wifi-router.svg-DRsjg9_P.js} +1 -1
  92. package/web/assets/{cssMode-Q_UQl6r1.js → cssMode-MoKLv7g0.js} +1 -1
  93. package/web/assets/{divider-D2zmU0b9.js → divider-tTW01I5w.js} +2 -2
  94. package/web/assets/{docx-preview-CAEo0pZg.js → docx-preview-unHjZcAR.js} +1 -1
  95. package/web/assets/{ecology-science-erlenmeyer-flask.svg-D4Cb7DOj.js → ecology-science-erlenmeyer-flask.svg-ClOlLMOd.js} +1 -1
  96. package/web/assets/{fieldset-CvPPXvgb.js → fieldset-COorWSfN.js} +2 -2
  97. package/web/assets/{freemarker2-CCRi9jHA.js → freemarker2-BOt0hq03.js} +1 -1
  98. package/web/assets/{handlebars-4FU6Ze_N.js → handlebars-D8wEDhEz.js} +1 -1
  99. package/web/assets/{html-1I40tTPC.js → html-Cd-HuUzd.js} +1 -1
  100. package/web/assets/{htmlMode-DQrNrxvx.js → htmlMode-CEdFeFHz.js} +1 -1
  101. package/web/assets/{image-flash-lightning.svg-Bh48o-tL.js → image-flash-lightning.svg-Cov9ygOk.js} +1 -1
  102. package/web/assets/{image-picture-flower.svg-CE0C3oid.js → image-picture-flower.svg-BbDUnQoM.js} +1 -1
  103. package/web/assets/{index-SrQFBx_K.js → index-DuGh2zls.js} +349 -349
  104. package/web/assets/{interface-alert-exclamation-diamond.svg-Dzt9JrNZ.js → interface-alert-exclamation-diamond.svg-BRhZ0m4M.js} +1 -1
  105. package/web/assets/{interface-alert-exclamation-triangle-warning.svg-CET5JCIK.js → interface-alert-exclamation-triangle-warning.svg-Bu9LvX_T.js} +1 -1
  106. package/web/assets/{interface-alert-information-circle.svg-GX_R0hCS.js → interface-alert-information-circle.svg-CwNRvmjJ.js} +1 -1
  107. package/web/assets/{interface-award-crown.svg-BUS_3snr.js → interface-award-crown.svg-E1NdS8hg.js} +1 -1
  108. package/web/assets/{interface-bookmark.svg-B1HfpZ9v.js → interface-bookmark-tag.svg-Ds__lzjn.js} +1 -1
  109. package/web/assets/{interface-bookmark-tag.svg-GOtO3ous.js → interface-bookmark.svg-CL6rgPqK.js} +1 -1
  110. package/web/assets/{interface-calendar-date-one.svg-W8G2NQFL.js → interface-calendar-date-one.svg-tmYumlI7.js} +1 -1
  111. package/web/assets/{interface-content-book-open-pages.svg-0dUMuEJV.js → interface-content-book-open-pages.svg-DYpnsEkk.js} +1 -1
  112. package/web/assets/{interface-content-book-page.svg-BZ9dLtQQ.js → interface-content-book-page.svg-CBap0-V8.js} +1 -1
  113. package/web/assets/{interface-content-file.svg-C5JU1QaC.js → interface-content-file.svg-BlgJPbn0.js} +1 -1
  114. package/web/assets/{interface-content-folder.svg-DeWnODx9.js → interface-content-folder.svg-BeIbFS1R.js} +1 -1
  115. package/web/assets/interface-content-folder.svg-CA903hwo.js +1 -0
  116. package/web/assets/{interface-copy-clipboard.svg-DneOONZN.js → interface-copy-clipboard.svg-DLEIk_9i.js} +1 -1
  117. package/web/assets/{interface-edit-attachment.svg-BUDutqFa.js → interface-edit-attachment.svg-CexUURep.js} +1 -1
  118. package/web/assets/{interface-edit-binocular.svg-DQ_sVWUa.js → interface-edit-binocular.svg-Bcp0m6XR.js} +1 -1
  119. package/web/assets/{interface-edit-magic-wand.svg-BqDEUbja.js → interface-edit-magic-wand.svg--lUaWOkl.js} +1 -1
  120. package/web/assets/{interface-edit-tool-paint-roller.svg-CcbJr-sE.js → interface-edit-tool-paint-roller.svg-CJI14pct.js} +1 -1
  121. package/web/assets/{interface-edit-tool-pencil.svg-Dlmq9sMb.js → interface-edit-tool-pencil.svg-CokeKrld.js} +1 -1
  122. package/web/assets/{interface-favorite-award.svg-CfRf16yB.js → interface-favorite-award.svg-Dj9jP_IB.js} +1 -1
  123. package/web/assets/{interface-favorite-flag.svg-BeXa9l_o.js → interface-favorite-flag.svg-DbctAxtG.js} +1 -1
  124. package/web/assets/{interface-favorite-heart.svg-DWDXtfc-.js → interface-favorite-heart.svg-Yhn6VUZb.js} +1 -1
  125. package/web/assets/{interface-favorite-star.svg-D0my2O2z.js → interface-favorite-star.svg-C4RblO3r.js} +1 -1
  126. package/web/assets/{interface-favorite-stars-sparkles.svg-DwnkpORM.js → interface-favorite-stars-sparkles.svg-D86ge-kp.js} +1 -1
  127. package/web/assets/{interface-hierarchy-flowchart.svg-BS1qAEvQ.js → interface-hierarchy-flowchart.svg-4vpVa0LC.js} +1 -1
  128. package/web/assets/{interface-home-house.svg-ByCGOgtp.js → interface-home-house.svg-CKqrr_vH.js} +1 -1
  129. package/web/assets/{interface-hyperlink.svg-D0RP2diO.js → interface-hyperlink.svg-BziyYL-h.js} +1 -1
  130. package/web/assets/{interface-lighting-brightness.svg-B7Wir9fI.js → interface-lighting-brightness.svg-DLhkAeot.js} +1 -1
  131. package/web/assets/{interface-lock-closed.svg-D93wzWGY.js → interface-lock-closed.svg-BqMSDpjQ.js} +1 -1
  132. package/web/assets/{interface-lock-open-unlock.svg-CEbreK15.js → interface-lock-open-unlock.svg-B0anVo0z.js} +1 -1
  133. package/web/assets/{interface-login-key.svg-a_CUiiRx.js → interface-login-key.svg-CksFuOna.js} +1 -1
  134. package/web/assets/{interface-search.svg-CP6bN80a.js → interface-search.svg-BKOu9tUw.js} +1 -1
  135. package/web/assets/{interface-setting-cog.svg-C1yqB1H3.js → interface-setting-cog.svg-D_3dXTZ-.js} +1 -1
  136. package/web/assets/{interface-share-megaphone-bullhorn.svg-BpEzN7dc.js → interface-share-megaphone-bullhorn.svg-Dn4gF0hH.js} +1 -1
  137. package/web/assets/{interface-share-rocket.svg-CZTpH2do.js → interface-share-rocket.svg-cm2iZyhA.js} +1 -1
  138. package/web/assets/{interface-share-satellite.svg-CDpvXyTq.js → interface-share-satellite.svg-CGcTcWwZ.js} +1 -1
  139. package/web/assets/{interface-share-space-ship.svg-QXv4WQWa.js → interface-share-space-ship.svg-DZVVyCQA.js} +1 -1
  140. package/web/assets/{interface-share.svg-DO9f8_w3.js → interface-share.svg-CmI-JZ5u.js} +1 -1
  141. package/web/assets/{interface-signal-square.svg-Dpbb94dT.js → interface-signal-square.svg-B5YnBkid.js} +1 -1
  142. package/web/assets/{interface-time-clock-circle.svg-BOM8J4p-.js → interface-time-clock-circle.svg-LEl6S2p_.js} +1 -1
  143. package/web/assets/{interface-time-hour-glass.svg-B4wmuGrS.js → interface-time-hour-glass.svg-SRS0fEgq.js} +1 -1
  144. package/web/assets/{interface-users-multiple.svg-CX6Z1IAw.js → interface-users-multiple.svg-BrzA58gN.js} +1 -1
  145. package/web/assets/{interface-weather-moon.svg-VjaROepI.js → interface-weather-moon.svg-Dcj5tIZe.js} +1 -1
  146. package/web/assets/{javascript-dnJjMqJl.js → javascript-BW4o2_xP.js} +1 -1
  147. package/web/assets/{jsonMode-DIklAZzl.js → jsonMode-BNu5tj2Z.js} +2 -2
  148. package/web/assets/{liquid-DM3-T0fg.js → liquid-DhgTTELV.js} +1 -1
  149. package/web/assets/{lspLanguageFeatures-DtduOI48.js → lspLanguageFeatures-Cb2BAAKm.js} +3 -3
  150. package/web/assets/{mail-chat-bubble-square.svg-BtQmLgyl.js → mail-chat-bubble-square.svg-CqruhAnJ.js} +1 -1
  151. package/web/assets/{mail-send-email-paper-airplane.svg-DBzfHbzK.js → mail-send-email-paper-airplane.svg-tWiaK3cO.js} +1 -1
  152. package/web/assets/{mail-send-envelope.svg-ByoaJJai.js → mail-send-envelope.svg-CqrtM0XJ.js} +1 -1
  153. package/web/assets/{mdx-COmjqkAf.js → mdx-Bp8ONtDZ.js} +1 -1
  154. package/web/assets/{minus-CLTSMcUf.js → minus-DuN34HOQ.js} +2 -2
  155. package/web/assets/modal-B0sbJ1aj.js +1 -0
  156. package/web/assets/modal-BG9tDOui.js +5 -0
  157. package/web/assets/{money-cashier-receipt.svg-D3I5UkrO.js → money-cashier-receipt.svg-CZ_Q0Q4o.js} +1 -1
  158. package/web/assets/{money-currency-dollar-pay.svg-BEt_zoFT.js → money-currency-dollar-pay.svg-DX3XI8z3.js} +1 -1
  159. package/web/assets/{money-graph-arrow-increase.svg-BFgo8Syp.js → money-graph-arrow-increase.svg-yfLkQUyA.js} +1 -1
  160. package/web/assets/{money-graph-bar-chart-increase.svg-BPBRyqtM.js → money-graph-bar-chart-increase.svg-BMZJcFWk.js} +1 -1
  161. package/web/assets/multiselect-Bc92p6F4.js +251 -0
  162. package/web/assets/{nature-ecology-leaf.svg-DCIaflet.js → nature-ecology-leaf.svg-DxbzYJY4.js} +1 -1
  163. package/web/assets/{password-kxqyN9bC.js → password-DFZGcIGP.js} +4 -4
  164. package/web/assets/{phone-telephone.svg-_P3X_Fym.js → phone-telephone.svg-DRXuirGY.js} +1 -1
  165. package/web/assets/{plus-Cs39ICwL.js → plus-DxhL7qLp.js} +6 -6
  166. package/web/assets/process.store-C8_fnIq8.js +1 -0
  167. package/web/assets/{programming-bug.svg-BGbIcZnS.js → programming-bug.svg-DLJ1_rax.js} +1 -1
  168. package/web/assets/{programming-cloud.svg-8TyU38aV.js → programming-cloud.svg-D3IiMlPE.js} +1 -1
  169. package/web/assets/{programming-computer-database-server.svg-DBxTrFCn.js → programming-computer-database-server.svg-Cg6_ED_k.js} +1 -1
  170. package/web/assets/{programming-computer-database.svg-Bi3RBUmB.js → programming-computer-database.svg-B6UWnlR4.js} +1 -1
  171. package/web/assets/{programming-module-four-layout.svg-BicMHalL.js → programming-module-four-layout.svg-B77nd1oh.js} +1 -1
  172. package/web/assets/{programming-module-three.svg-D13tfKhT.js → programming-module-three.svg-_s2kek9L.js} +1 -1
  173. package/web/assets/{programming-module.svg-HJDv8jeZ.js → programming-module.svg-CstGeUDE.js} +1 -1
  174. package/web/assets/{programming-script-code.svg-oXFzvCKr.js → programming-script-code.svg-B-lq_RAX.js} +1 -1
  175. package/web/assets/project-launch.store-QC8bDuyn.js +1 -0
  176. package/web/assets/project.store-l1aYnXxi.js +1 -0
  177. package/web/assets/{python-ejRXAr81.js → python-C9hs9gvr.js} +1 -1
  178. package/web/assets/{radiobutton-BWBirQno.js → radiobutton-CQFYp-dZ.js} +2 -2
  179. package/web/assets/{razor-CbzUoARP.js → razor-BbhaCtvg.js} +1 -1
  180. package/web/assets/router-BDTUFmtt.js +1 -0
  181. package/web/assets/settings-scope-B8h36UCK.js +1 -0
  182. package/web/assets/settings.store-Dvjzyya-.js +1 -0
  183. package/web/assets/{shopping-cart.svg-DL2Mf0BX.js → shopping-cart.svg-C-WSRLiX.js} +1 -1
  184. package/web/assets/{shopping-gift-present.svg-keqzudV3.js → shopping-gift-present.svg-Dh47_KD3.js} +1 -1
  185. package/web/assets/{shopping-shipping-box-parcel-package.svg-BZ0Ri9AV.js → shopping-shipping-box-parcel-package.svg-BTvEyPW5.js} +1 -1
  186. package/web/assets/src-4vjUWqdr.js +572 -0
  187. package/web/assets/src-BeueTtBP.js +1 -0
  188. package/web/assets/src-D0YRjz1F.css +1 -0
  189. package/web/assets/{tabpanel-Bdw_XASI.js → tabpanel-B4bmmOWW.js} +3 -3
  190. package/web/assets/{tag-new-circle.svg-7tUBDDe7.js → tag-new-circle.svg--CymwbQA.js} +1 -1
  191. package/web/assets/theme-DqQhDGPs.js +1 -0
  192. package/web/assets/{toggleswitch-BhJmSx1t.js → toggleswitch-j4QSxoFG.js} +2 -2
  193. package/web/assets/{travel-map-earth-globe.svg-CfJb5_3k.js → travel-map-earth-globe.svg-DNOAckKS.js} +1 -1
  194. package/web/assets/trpc-CN8Zl82m.js +1 -0
  195. package/web/assets/{tsMode-D5Gulgwd.js → tsMode-D--LrAcs.js} +6 -6
  196. package/web/assets/{typescript-B73-3GtI.js → typescript-zukD_IUF.js} +1 -1
  197. package/web/assets/useAiChatDrawer-YShY7nZu.js +1 -0
  198. package/web/assets/{useCloudOrg-BZNmQ2Ek.js → useCloudOrg-Bd83ZcEV.js} +1 -1
  199. package/web/assets/useEnvVarAutocomplete-BcVa9mel.js +1 -0
  200. package/web/assets/useProjectCatalog-CnGHIrnh.js +1 -0
  201. package/web/assets/{useProjectCloudOrg-Bkja4sed.js → useProjectCloudOrg-DL8Wyd1i.js} +1 -1
  202. package/web/assets/useServiceUrlHost-DIEqEQRR.js +1 -0
  203. package/web/assets/{xml-Mkua9fdo.js → xml-BByACKzS.js} +1 -1
  204. package/web/assets/{yaml-BP9pkdmT.js → yaml-CqWwUUQq.js} +1 -1
  205. package/web/index.html +1 -1
  206. package/chunk-TTPL2M74.js.map +0 -1
  207. package/web/assets/AgentScalarChatInterface.vue-86061Tlh.js +0 -13
  208. package/web/assets/AgentTerminalPage-DxGLu5uT.js +0 -1
  209. package/web/assets/AiChatPage-DmQKv6pr.js +0 -1
  210. package/web/assets/AppLayout-DtK_nr-e.js +0 -1
  211. package/web/assets/AuditPage-CX5VJGlF.js +0 -1
  212. package/web/assets/CloudAccountPage-B_sjXlfl.js +0 -1
  213. package/web/assets/CloudAccountPage-ocHdrVEm.js +0 -1
  214. package/web/assets/CloudMessagingPage-BTfGWio6.js +0 -2
  215. package/web/assets/DashboardPage-7sATlyhd.js +0 -164
  216. package/web/assets/DirectoryPickerDialog-BbYn-Yjo.css +0 -1
  217. package/web/assets/DirectoryPickerDialog-DAJGNiRV.js +0 -1
  218. package/web/assets/EnvironmentFormPage-DoKBTKCU.js +0 -1
  219. package/web/assets/EnvironmentListPage-C9wGFZWU.js +0 -1
  220. package/web/assets/KanbanBoardPage-CoiDga7h.js +0 -4
  221. package/web/assets/KanbanListPage-Dl-FpuPX.css +0 -1
  222. package/web/assets/KanbanListPage-xWYUu1P0.js +0 -1
  223. package/web/assets/LaunchProjectPage-BHLH3peH.css +0 -1
  224. package/web/assets/LaunchProjectPage-DVXgnUYk.js +0 -1
  225. package/web/assets/LaunchServicesPage-DM6keva3.js +0 -1
  226. package/web/assets/LogViewer-CMtuP1rB.js +0 -3
  227. package/web/assets/OrgKeyPrompt-BqVugrV1.js +0 -1
  228. package/web/assets/OrgKeyPrompt-C8UJPkdT.css +0 -1
  229. package/web/assets/ProcessDetailPage-DJacy1ZE.js +0 -1
  230. package/web/assets/RandomJobTestPage-BOsChnPH.js +0 -2
  231. package/web/assets/ScenarioEditorPage-8XSWtwA5.js +0 -14
  232. package/web/assets/SendToChatDialog-DqPVoUgN.js +0 -1
  233. package/web/assets/ServiceControlsBar-QwLQLGFP.js +0 -1
  234. package/web/assets/ServiceDetailPage-DUw-ZZyD.js +0 -2
  235. package/web/assets/ServiceFormPage-OYBr0pY4.js +0 -1
  236. package/web/assets/SettingsPage-BFoWbWhq.js +0 -2063
  237. package/web/assets/UnlockPage-DgLCLMkg.js +0 -1
  238. package/web/assets/VaultMigrationPage-C93bZgWb.js +0 -1
  239. package/web/assets/VersionBadge-2JJyjyFh.js +0 -1
  240. package/web/assets/WikiPage-DBinkJlt.js +0 -1
  241. package/web/assets/WikiView-DMyRUz16.js +0 -1
  242. package/web/assets/card-CRMlmWrt.js +0 -32
  243. package/web/assets/client-3Q_o9QCm.js +0 -24
  244. package/web/assets/cloud-chat.store-DIxQd2ew.js +0 -1
  245. package/web/assets/cloud-client-Idzdbhu6.js +0 -1
  246. package/web/assets/cloud-session-Cj_Q0hKS.js +0 -1
  247. package/web/assets/column-4DnT4nYp.js +0 -763
  248. package/web/assets/interface-content-folder.svg-BZAP22kT.js +0 -1
  249. package/web/assets/modal-BaVGcm8s.js +0 -1
  250. package/web/assets/modal-Cl434j6P.js +0 -5
  251. package/web/assets/multiselect-Bd1n3-4t.js +0 -251
  252. package/web/assets/process.store-m5afcW9w.js +0 -1
  253. package/web/assets/project-launch.store-Cgu622KX.js +0 -1
  254. package/web/assets/project.store-CM-kT9-z.js +0 -1
  255. package/web/assets/router-o5ycRaEE.js +0 -1
  256. package/web/assets/settings-scope-CSLK3J2k.js +0 -1
  257. package/web/assets/settings.store-DDQmm1ig.js +0 -1
  258. package/web/assets/src-C1fYy9Ht.js +0 -572
  259. package/web/assets/src-DU1mBjF-.css +0 -1
  260. package/web/assets/src-DnhPQBBB.js +0 -1
  261. package/web/assets/theme-COzp71lh.js +0 -1
  262. package/web/assets/trpc-Bn_6G8HK.js +0 -1
  263. package/web/assets/useAiChatDrawer-QOflawaX.js +0 -1
  264. package/web/assets/useEnvVarAutocomplete-DAxcV0jl.js +0 -1
  265. package/web/assets/useProjectCatalog-8u5wFtf-.js +0 -1
  266. package/web/assets/useServiceUrlHost-biHEzQVv.js +0 -1
  267. /package/{agent-manager-FN6M6CLD.js.map → agent-manager-VFUO7WQG.js.map} +0 -0
  268. /package/{chat-VCHK77CW.js.map → chat-GB2UJ5KB.js.map} +0 -0
  269. /package/{chunk-QPII36FL.js.map → chunk-KNAM5H2Z.js.map} +0 -0
  270. /package/{chunk-WQWRTPPJ.js.map → chunk-KQ462M3Y.js.map} +0 -0
  271. /package/{chunk-UKLNK5YA.js.map → chunk-X2PJIJU7.js.map} +0 -0
  272. /package/{chunk-LHVTBWM7.js.map → chunk-ZGEV53KH.js.map} +0 -0
  273. /package/{companion-YB3SDDTU.js.map → companion-XBCHHK4Z.js.map} +0 -0
  274. /package/{desktop-launcher-J2BCSSGZ.js.map → desktop-launcher-SLNYXW22.js.map} +0 -0
  275. /package/{settings-manager-4EDX7NIB.js.map → settings-manager-YGIIRWVY.js.map} +0 -0
  276. /package/{src-J3RBNMRJ.js.map → src-WK5KI3IO.js.map} +0 -0
  277. /package/web/assets/{useProjectCatalog-BCeAlQjB.css → OrgLogo-BCeAlQjB.css} +0 -0
  278. /package/web/assets/{abap-cDlgWO6H.js → abap-B8g_2xYy.js} +0 -0
  279. /package/web/assets/{apex-DxzSGotK.js → apex-Bm8w4T5A.js} +0 -0
  280. /package/web/assets/{azcli-CUNfZLtQ.js → azcli-BqdUW6F8.js} +0 -0
  281. /package/web/assets/{bat-C-oKGifY.js → bat-Bngf0lQU.js} +0 -0
  282. /package/web/assets/{bicep-C4xTl9QV.js → bicep-DzO554JS.js} +0 -0
  283. /package/web/assets/{browser-CE5P0iHW.js → browser-BJX5ZrVN.js} +0 -0
  284. /package/web/assets/{cameligo-COpO1ZvP.js → cameligo-Bcy3ohdb.js} +0 -0
  285. /package/web/assets/{clojure-D8gp5eAN.js → clojure-CZbiqkDV.js} +0 -0
  286. /package/web/assets/{coffee-De9HMN-q.js → coffee-CDuhyV-7.js} +0 -0
  287. /package/web/assets/{cpp-C4pJyeKy.js → cpp-BklV8f4x.js} +0 -0
  288. /package/web/assets/{csharp-B4wLqqiU.js → csharp-BelR_XiC.js} +0 -0
  289. /package/web/assets/{csp-Do0Gg4qE.js → csp-DUjeBS2K.js} +0 -0
  290. /package/web/assets/{css-BLq1nXK0.js → css-CvbYbEko.js} +0 -0
  291. /package/web/assets/{cypher-CDQzi0TV.js → cypher-Dwrbk-SP.js} +0 -0
  292. /package/web/assets/{dart-bTPYn7bY.js → dart-BW1E5h9O.js} +0 -0
  293. /package/web/assets/{dockerfile-yM7ZnQpo.js → dockerfile-B41ilpF9.js} +0 -0
  294. /package/web/assets/{ecl-BgTpp_c4.js → ecl-BZE6Vxna.js} +0 -0
  295. /package/web/assets/{elixir-DO7wJ1ib.js → elixir-CtYg0bLh.js} +0 -0
  296. /package/web/assets/{flow9-B2Ko_py3.js → flow9-Sgvy48_I.js} +0 -0
  297. /package/web/assets/{fsharp-DNdx3wKW.js → fsharp-BzAfXfKg.js} +0 -0
  298. /package/web/assets/{go-D7LajbkE.js → go-D7oonABu.js} +0 -0
  299. /package/web/assets/{graphql-BCQSwUPo.js → graphql-BEN-qkl0.js} +0 -0
  300. /package/web/assets/{hcl-DR3uNUXT.js → hcl-CE0OhwCq.js} +0 -0
  301. /package/web/assets/{ini-zkzQPitL.js → ini-CCLtcvjA.js} +0 -0
  302. /package/web/assets/{java-YFwuCa4S.js → java-Bao8w_gp.js} +0 -0
  303. /package/web/assets/{julia-WWwv4jLR.js → julia-Dr0hFYrl.js} +0 -0
  304. /package/web/assets/{kotlin-FwlJkapy.js → kotlin-Cbfu8lcM.js} +0 -0
  305. /package/web/assets/{less-CyhHW1nH.js → less-BU4gEpXr.js} +0 -0
  306. /package/web/assets/{lexon-BScN_v1c.js → lexon-GpBGGdTS.js} +0 -0
  307. /package/web/assets/{lua-eWb9GpZJ.js → lua-DIPKk37y.js} +0 -0
  308. /package/web/assets/{m3-C4NDU793.js → m3-CSOypKGf.js} +0 -0
  309. /package/web/assets/{markdown-DWWpXAtL.js → markdown-VDqAgkyM.js} +0 -0
  310. /package/web/assets/{mips-BpJKGw00.js → mips-BJWI6dX7.js} +0 -0
  311. /package/web/assets/{msdax-BiuvyZwP.js → msdax-BLpuE5Dc.js} +0 -0
  312. /package/web/assets/{mysql-DJW9Aa9q.js → mysql-ZsxiEUoY.js} +0 -0
  313. /package/web/assets/{objective-c-YouNnWOW.js → objective-c-DcQa1iPc.js} +0 -0
  314. /package/web/assets/{pascal-jQsRnBre.js → pascal-u-hmXdyn.js} +0 -0
  315. /package/web/assets/{pascaligo-DZI84_dt.js → pascaligo-DqbP-1C6.js} +0 -0
  316. /package/web/assets/{perl-D9TKt-s6.js → perl-CUeQpRkH.js} +0 -0
  317. /package/web/assets/{pgsql-DXgI6ehC.js → pgsql-CQ7FhAFN.js} +0 -0
  318. /package/web/assets/{php-Cgqd4wfW.js → php-BEf_fu3E.js} +0 -0
  319. /package/web/assets/{pla-DRDkvVUU.js → pla-CXNNbT0w.js} +0 -0
  320. /package/web/assets/{postiats-BOLeCCau.js → postiats-CIXLZwPb.js} +0 -0
  321. /package/web/assets/{powerquery-DCDtPNBU.js → powerquery-DnGPASFA.js} +0 -0
  322. /package/web/assets/{powershell-WnZ4e5ia.js → powershell-1Y1kqIZS.js} +0 -0
  323. /package/web/assets/{protobuf-C9Dg-C9o.js → protobuf-Cfo9haoG.js} +0 -0
  324. /package/web/assets/{pug-Dr8RhWun.js → pug-BujEZqmy.js} +0 -0
  325. /package/web/assets/{qsharp-DukGWvWZ.js → qsharp-BL9AqNGD.js} +0 -0
  326. /package/web/assets/{r-BC41pTgC.js → r-D0dhpGOM.js} +0 -0
  327. /package/web/assets/{redis-D-gYIUku.js → redis-BMLwD7W9.js} +0 -0
  328. /package/web/assets/{redshift-r0XbF8XS.js → redshift-CkHh73og.js} +0 -0
  329. /package/web/assets/{restructuredtext-DsJDS7Eu.js → restructuredtext-DZ-LF65W.js} +0 -0
  330. /package/web/assets/{ruby-JPrm3ODz.js → ruby-UzPHTzc9.js} +0 -0
  331. /package/web/assets/{rust-C8IjEXni.js → rust-ja9NGnXZ.js} +0 -0
  332. /package/web/assets/{sb-D8vNiFl9.js → sb-BNdOJbMY.js} +0 -0
  333. /package/web/assets/{scala-DThahuqf.js → scala-LlhkyN6l.js} +0 -0
  334. /package/web/assets/{scheme-CvEQUYYf.js → scheme-BAj99YIn.js} +0 -0
  335. /package/web/assets/{scss-C6obpl8K.js → scss-chS-xxB3.js} +0 -0
  336. /package/web/assets/{shell-BnVmd31t.js → shell-CcH7eYIc.js} +0 -0
  337. /package/web/assets/{solidity-Bo6zEybc.js → solidity-cVvnqX-K.js} +0 -0
  338. /package/web/assets/{sophia-DuB3Px8n.js → sophia-BBT-EdFw.js} +0 -0
  339. /package/web/assets/{sparql-CW9HqMW2.js → sparql-DGEqOrB6.js} +0 -0
  340. /package/web/assets/{sql-CPCPCQON.js → sql-CcTErTxM.js} +0 -0
  341. /package/web/assets/{st-AxC3n-1-.js → st-Bjw-B4mN.js} +0 -0
  342. /package/web/assets/{swift-CgZOS_MZ.js → swift-Bid-7bBd.js} +0 -0
  343. /package/web/assets/{systemverilog-DYR-yx39.js → systemverilog-CXju7Nd-.js} +0 -0
  344. /package/web/assets/{tcl-4hAvWv0d.js → tcl-D-Dw7JFz.js} +0 -0
  345. /package/web/assets/{twig-Cf_07aFW.js → twig-BIPbzEWT.js} +0 -0
  346. /package/web/assets/{typespec-2tXj8s11.js → typespec-UJSutGCV.js} +0 -0
  347. /package/web/assets/{uuid--pMuF47W.js → uuid-Cro0aJm3.js} +0 -0
  348. /package/web/assets/{vb-DLpM4f4s.js → vb-oyG_LJw0.js} +0 -0
  349. /package/web/assets/{wgsl-BcECae_z.js → wgsl-DXZ6ljB6.js} +0 -0
@@ -1,572 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-CAEo0pZg.js","assets/index-SrQFBx_K.js","assets/index-rUoTy8xc.css"])))=>i.map(i=>d[i]);
2
- import{$ as e,Aa as t,Ai as n,Dn as r,Ea as i,Er as a,Fi as o,Ia as s,Ii as c,Ja as l,Jn as u,Jr as d,Ka as f,Ki as p,Kr as m,La as h,Li as g,Mi as _,Mr as v,Oi as y,On as b,Or as x,Pa as S,Q as ee,Qn as C,Qr as te,Ri as w,Sn as ne,Tr as re,Ui as T,Ur as E,Vr as D,Wi as O,Wn as k,Xn as ie,Xr as ae,Yn as oe,_a as se,_n as A,aa as j,ar as ce,ci as M,ct as N,dn as P,fn as le,fr as F,ga as I,gi as ue,gn as de,ha as L,hn as fe,hr as pe,ii as me,ja as R,jr as z,ki as B,kn as he,la as ge,li as _e,ln as ve,mn as ye,na as be,pa as V,pi as xe,qr as Se,ri as Ce,ro as H,rr as we,sr as Te,st as Ee,ta as U,ti as De,tr as Oe,va as ke,xr as Ae,ya as je,yi as Me,zi as W,zr as Ne}from"./index-SrQFBx_K.js";import{t as Pe}from"./checkbox-BiDvmfqK.js";import{t as Fe}from"./radiobutton-BWBirQno.js";import{t as Ie}from"./card-CRMlmWrt.js";import{t as Le}from"./multiselect-Bd1n3-4t.js";import{a as Re,i as ze,n as Be,o as Ve,r as He,t as Ue}from"./tabpanel-Bdw_XASI.js";import{t as We}from"./autocomplete-qVwP27uM.js";var Ge=Ae.extend({name:`slider`,style:`
3
- .p-slider {
4
- display: block;
5
- position: relative;
6
- background: dt('slider.track.background');
7
- border-radius: dt('slider.track.border.radius');
8
- }
9
-
10
- .p-slider-handle {
11
- cursor: grab;
12
- touch-action: none;
13
- user-select: none;
14
- display: flex;
15
- justify-content: center;
16
- align-items: center;
17
- height: dt('slider.handle.height');
18
- width: dt('slider.handle.width');
19
- background: dt('slider.handle.background');
20
- border-radius: dt('slider.handle.border.radius');
21
- transition:
22
- background dt('slider.transition.duration'),
23
- color dt('slider.transition.duration'),
24
- border-color dt('slider.transition.duration'),
25
- box-shadow dt('slider.transition.duration'),
26
- outline-color dt('slider.transition.duration');
27
- outline-color: transparent;
28
- }
29
-
30
- .p-slider-handle::before {
31
- content: '';
32
- width: dt('slider.handle.content.width');
33
- height: dt('slider.handle.content.height');
34
- display: block;
35
- background: dt('slider.handle.content.background');
36
- border-radius: dt('slider.handle.content.border.radius');
37
- box-shadow: dt('slider.handle.content.shadow');
38
- transition: background dt('slider.transition.duration');
39
- }
40
-
41
- .p-slider:not(.p-disabled) .p-slider-handle:hover {
42
- background: dt('slider.handle.hover.background');
43
- }
44
-
45
- .p-slider:not(.p-disabled) .p-slider-handle:hover::before {
46
- background: dt('slider.handle.content.hover.background');
47
- }
48
-
49
- .p-slider-handle:focus-visible {
50
- box-shadow: dt('slider.handle.focus.ring.shadow');
51
- outline: dt('slider.handle.focus.ring.width') dt('slider.handle.focus.ring.style') dt('slider.handle.focus.ring.color');
52
- outline-offset: dt('slider.handle.focus.ring.offset');
53
- }
54
-
55
- .p-slider-range {
56
- display: block;
57
- background: dt('slider.range.background');
58
- border-radius: dt('slider.track.border.radius');
59
- }
60
-
61
- .p-slider.p-slider-horizontal {
62
- height: dt('slider.track.size');
63
- }
64
-
65
- .p-slider-horizontal .p-slider-range {
66
- inset-block-start: 0;
67
- inset-inline-start: 0;
68
- height: 100%;
69
- }
70
-
71
- .p-slider-horizontal .p-slider-handle {
72
- inset-block-start: 50%;
73
- margin-block-start: calc(-1 * calc(dt('slider.handle.height') / 2));
74
- margin-inline-start: calc(-1 * calc(dt('slider.handle.width') / 2));
75
- }
76
-
77
- .p-slider-vertical {
78
- min-height: 100px;
79
- width: dt('slider.track.size');
80
- }
81
-
82
- .p-slider-vertical .p-slider-handle {
83
- inset-inline-start: 50%;
84
- margin-inline-start: calc(-1 * calc(dt('slider.handle.width') / 2));
85
- margin-block-end: calc(-1 * calc(dt('slider.handle.height') / 2));
86
- }
87
-
88
- .p-slider-vertical .p-slider-range {
89
- inset-block-end: 0;
90
- inset-inline-start: 0;
91
- width: 100%;
92
- }
93
- `,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-slider p-component`,{"p-disabled":n.disabled,"p-invalid":t.$invalid,"p-slider-horizontal":n.orientation===`horizontal`,"p-slider-vertical":n.orientation===`vertical`}]},range:`p-slider-range`,handle:`p-slider-handle`},inlineStyles:{handle:{position:`absolute`},range:{position:`absolute`}}}),Ke={name:`BaseSlider`,extends:he,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:`horizontal`},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Ge,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qe(e)}function Je(e,t,n){return(t=Ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e){var t=Xe(e,`string`);return qe(t)==`symbol`?t:t+``}function Xe(e,t){if(qe(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qe(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ze(e){return et(e)||$e(e)||G(e)||Qe()}function Qe(){throw TypeError(`Invalid attempt to spread non-iterable instance.
94
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){if(e){if(typeof e==`string`)return tt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(e,t):void 0}}function $e(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function et(e){if(Array.isArray(e))return tt(e)}function tt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var nt={name:`Slider`,extends:Ke,inheritAttrs:!1,emits:[`change`,`slideend`],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var e=this.$el.getBoundingClientRect();this.initX=e.left+te(),this.initY=e.top+a(),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`?E(this.$el)?(this.initX+this.barWidth-n)*100/this.barWidth:(n-this.initX)*100/this.barWidth:(this.initY+this.barHeight-r)*100/this.barHeight;var i=(this.max-this.min)*(t/100)+this.min;if(this.step){var a=this.range?this.value[this.handleIndex]:this.value,o=i-a;o<0?i=a+Math.ceil(i/this.step-a/this.step)*this.step:o>0&&(i=a+Math.floor(i/this.step-a/this.step)*this.step)}else i=Math.floor(i);this.updateModel(e,i)},updateModel:function(e,t){var n=Math.round(t*100)/100,r;this.range?(r=this.value?Ze(this.value):[],this.handleIndex==0?(n<this.min?n=this.min:n>=this.max&&(n=this.max),r[0]=n):(n>this.max?n=this.max:n<=this.min&&(n=this.min),r[1]=n)):(n<this.min?n=this.min:n>this.max&&(n=this.max),r=n),this.writeValue(r,e),this.$emit(`change`,r)},onDragStart:function(e,t){this.disabled||(this.$el.setAttribute(`data-p-sliding`,!0),this.dragging=!0,this.updateDomData(),this.range&&this.value[0]===this.max?this.handleIndex=0:this.handleIndex=t,e.currentTarget.focus())},onDrag:function(e){this.dragging&&this.setValue(e)},onDragEnd:function(e){this.dragging&&(this.dragging=!1,this.$el.setAttribute(`data-p-sliding`,!1),this.$emit(`slideend`,{originalEvent:e,value:this.value}))},onBarClick:function(e){this.disabled||Ne(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 me(Je({},this.orientation,this.orientation))}}},rt=[`data-p`],it=[`data-p`],K=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],at=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`],ot=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`];function st(e,t,n,r,i,a){return V(),W(`div`,U({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}),[c(`span`,U({class:e.cx(`range`),style:[e.sx(`range`),a.rangeStyle()]},e.ptm(`range`),{"data-p":a.dataP}),null,16,it),e.range?w(``,!0):(V(),W(`span`,U({key:0,class:e.cx(`handle`),style:[e.sx(`handle`),a.handleStyle()],onTouchstartPassive:t[0]||=function(e){return a.onDragStart(e)},onTouchmovePassive:t[1]||=function(e){return a.onDrag(e)},onTouchend:t[2]||=function(e){return a.onDragEnd(e)},onMousedown:t[3]||=function(e){return a.onMouseDown(e)},onKeydown:t[4]||=function(e){return a.onKeyDown(e)},onBlur:t[5]||=function(e){return a.onBlur(e)},tabindex:e.tabindex,role:`slider`,"aria-valuemin":e.min,"aria-valuenow":e.d_value,"aria-valuemax":e.max,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,"aria-orientation":e.orientation},e.ptm(`handle`),{"data-p":a.dataP}),null,16,K)),e.range?(V(),W(`span`,U({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,at)):w(``,!0),e.range?(V(),W(`span`,U({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,ot)):w(``,!0)],16,rt)}nt.render=st;var ct={name:`CalendarIcon`,extends:ce};function lt(e){return pt(e)||ft(e)||dt(e)||ut()}function ut(){throw TypeError(`Invalid attempt to spread non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dt(e,t){if(e){if(typeof e==`string`)return mt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mt(e,t):void 0}}function ft(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function pt(e){if(Array.isArray(e))return mt(e)}function mt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ht(e,t,n,r,i,a){return V(),W(`svg`,U({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),lt(t[0]||=[c(`path`,{d:`M10.7838 1.51351H9.83783V0.567568C9.83783 0.417039 9.77804 0.272676 9.6716 0.166237C9.56516 0.0597971 9.42079 0 9.27027 0C9.11974 0 8.97538 0.0597971 8.86894 0.166237C8.7625 0.272676 8.7027 0.417039 8.7027 0.567568V1.51351H5.29729V0.567568C5.29729 0.417039 5.2375 0.272676 5.13106 0.166237C5.02462 0.0597971 4.88025 0 4.72973 0C4.5792 0 4.43484 0.0597971 4.3284 0.166237C4.22196 0.272676 4.16216 0.417039 4.16216 0.567568V1.51351H3.21621C2.66428 1.51351 2.13494 1.73277 1.74467 2.12305C1.35439 2.51333 1.13513 3.04266 1.13513 3.59459V11.9189C1.13513 12.4709 1.35439 13.0002 1.74467 13.3905C2.13494 13.7807 2.66428 14 3.21621 14H10.7838C11.3357 14 11.865 13.7807 12.2553 13.3905C12.6456 13.0002 12.8649 12.4709 12.8649 11.9189V3.59459C12.8649 3.04266 12.6456 2.51333 12.2553 2.12305C11.865 1.73277 11.3357 1.51351 10.7838 1.51351ZM3.21621 2.64865H4.16216V3.59459C4.16216 3.74512 4.22196 3.88949 4.3284 3.99593C4.43484 4.10237 4.5792 4.16216 4.72973 4.16216C4.88025 4.16216 5.02462 4.10237 5.13106 3.99593C5.2375 3.88949 5.29729 3.74512 5.29729 3.59459V2.64865H8.7027V3.59459C8.7027 3.74512 8.7625 3.88949 8.86894 3.99593C8.97538 4.10237 9.11974 4.16216 9.27027 4.16216C9.42079 4.16216 9.56516 4.10237 9.6716 3.99593C9.77804 3.88949 9.83783 3.74512 9.83783 3.59459V2.64865H10.7838C11.0347 2.64865 11.2753 2.74831 11.4527 2.92571C11.6301 3.10311 11.7297 3.34371 11.7297 3.59459V5.67568H2.27027V3.59459C2.27027 3.34371 2.36993 3.10311 2.54733 2.92571C2.72473 2.74831 2.96533 2.64865 3.21621 2.64865ZM10.7838 12.8649H3.21621C2.96533 12.8649 2.72473 12.7652 2.54733 12.5878C2.36993 12.4104 2.27027 12.1698 2.27027 11.9189V6.81081H11.7297V11.9189C11.7297 12.1698 11.6301 12.4104 11.4527 12.5878C11.2753 12.7652 11.0347 12.8649 10.7838 12.8649Z`,fill:`currentColor`},null,-1)]),16)}ct.render=ht;var gt=Ae.extend({name:`datepicker`,style:`
96
- .p-datepicker {
97
- display: inline-flex;
98
- max-width: 100%;
99
- }
100
-
101
- .p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input {
102
- border-start-end-radius: 0;
103
- border-end-end-radius: 0;
104
- }
105
-
106
- .p-datepicker-input {
107
- flex: 1 1 auto;
108
- width: 1%;
109
- }
110
-
111
- .p-datepicker-dropdown {
112
- cursor: pointer;
113
- display: inline-flex;
114
- user-select: none;
115
- align-items: center;
116
- justify-content: center;
117
- overflow: hidden;
118
- position: relative;
119
- width: dt('datepicker.dropdown.width');
120
- border-start-end-radius: dt('datepicker.dropdown.border.radius');
121
- border-end-end-radius: dt('datepicker.dropdown.border.radius');
122
- background: dt('datepicker.dropdown.background');
123
- border: 1px solid dt('datepicker.dropdown.border.color');
124
- border-inline-start: 0 none;
125
- color: dt('datepicker.dropdown.color');
126
- transition:
127
- background dt('datepicker.transition.duration'),
128
- color dt('datepicker.transition.duration'),
129
- border-color dt('datepicker.transition.duration'),
130
- outline-color dt('datepicker.transition.duration');
131
- outline-color: transparent;
132
- }
133
-
134
- .p-datepicker-dropdown:not(:disabled):hover {
135
- background: dt('datepicker.dropdown.hover.background');
136
- border-color: dt('datepicker.dropdown.hover.border.color');
137
- color: dt('datepicker.dropdown.hover.color');
138
- }
139
-
140
- .p-datepicker-dropdown:not(:disabled):active {
141
- background: dt('datepicker.dropdown.active.background');
142
- border-color: dt('datepicker.dropdown.active.border.color');
143
- color: dt('datepicker.dropdown.active.color');
144
- }
145
-
146
- .p-datepicker-dropdown:focus-visible {
147
- box-shadow: dt('datepicker.dropdown.focus.ring.shadow');
148
- outline: dt('datepicker.dropdown.focus.ring.width') dt('datepicker.dropdown.focus.ring.style') dt('datepicker.dropdown.focus.ring.color');
149
- outline-offset: dt('datepicker.dropdown.focus.ring.offset');
150
- }
151
-
152
- .p-datepicker:has(.p-datepicker-input-icon-container) {
153
- position: relative;
154
- }
155
-
156
- .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input {
157
- padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
158
- }
159
-
160
- .p-datepicker-input-icon-container {
161
- cursor: pointer;
162
- position: absolute;
163
- top: 50%;
164
- inset-inline-end: dt('form.field.padding.x');
165
- margin-block-start: calc(-1 * (dt('icon.size') / 2));
166
- color: dt('datepicker.input.icon.color');
167
- line-height: 1;
168
- z-index: 1;
169
- }
170
-
171
- .p-datepicker:has(.p-datepicker-input:disabled) .p-datepicker-input-icon-container {
172
- cursor: default;
173
- }
174
-
175
- .p-datepicker-fluid {
176
- display: flex;
177
- }
178
-
179
- .p-datepicker .p-datepicker-panel {
180
- min-width: 100%;
181
- }
182
-
183
- .p-datepicker-panel {
184
- width: auto;
185
- padding: dt('datepicker.panel.padding');
186
- background: dt('datepicker.panel.background');
187
- color: dt('datepicker.panel.color');
188
- border: 1px solid dt('datepicker.panel.border.color');
189
- border-radius: dt('datepicker.panel.border.radius');
190
- box-shadow: dt('datepicker.panel.shadow');
191
- }
192
-
193
- .p-datepicker-panel-inline {
194
- display: inline-block;
195
- overflow-x: auto;
196
- box-shadow: none;
197
- }
198
-
199
- .p-datepicker-header {
200
- display: flex;
201
- align-items: center;
202
- justify-content: space-between;
203
- padding: dt('datepicker.header.padding');
204
- background: dt('datepicker.header.background');
205
- color: dt('datepicker.header.color');
206
- border-block-end: 1px solid dt('datepicker.header.border.color');
207
- }
208
-
209
- .p-datepicker-next-button:dir(rtl) {
210
- order: -1;
211
- }
212
-
213
- .p-datepicker-prev-button:dir(rtl) {
214
- order: 1;
215
- }
216
-
217
- .p-datepicker-title {
218
- display: flex;
219
- align-items: center;
220
- justify-content: space-between;
221
- gap: dt('datepicker.title.gap');
222
- font-weight: dt('datepicker.title.font.weight');
223
- }
224
-
225
- .p-datepicker-select-year,
226
- .p-datepicker-select-month {
227
- border: none;
228
- background: transparent;
229
- margin: 0;
230
- cursor: pointer;
231
- font-weight: inherit;
232
- transition:
233
- background dt('datepicker.transition.duration'),
234
- color dt('datepicker.transition.duration'),
235
- border-color dt('datepicker.transition.duration'),
236
- outline-color dt('datepicker.transition.duration'),
237
- box-shadow dt('datepicker.transition.duration');
238
- }
239
-
240
- .p-datepicker-select-month {
241
- padding: dt('datepicker.select.month.padding');
242
- color: dt('datepicker.select.month.color');
243
- border-radius: dt('datepicker.select.month.border.radius');
244
- }
245
-
246
- .p-datepicker-select-year {
247
- padding: dt('datepicker.select.year.padding');
248
- color: dt('datepicker.select.year.color');
249
- border-radius: dt('datepicker.select.year.border.radius');
250
- }
251
-
252
- .p-datepicker-select-month:enabled:hover {
253
- background: dt('datepicker.select.month.hover.background');
254
- color: dt('datepicker.select.month.hover.color');
255
- }
256
-
257
- .p-datepicker-select-year:enabled:hover {
258
- background: dt('datepicker.select.year.hover.background');
259
- color: dt('datepicker.select.year.hover.color');
260
- }
261
-
262
- .p-datepicker-select-month:focus-visible,
263
- .p-datepicker-select-year:focus-visible {
264
- box-shadow: dt('datepicker.date.focus.ring.shadow');
265
- outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
266
- outline-offset: dt('datepicker.date.focus.ring.offset');
267
- }
268
-
269
- .p-datepicker-calendar-container {
270
- display: flex;
271
- }
272
-
273
- .p-datepicker-calendar-container .p-datepicker-calendar {
274
- flex: 1 1 auto;
275
- border-inline-start: 1px solid dt('datepicker.group.border.color');
276
- padding-inline-end: dt('datepicker.group.gap');
277
- padding-inline-start: dt('datepicker.group.gap');
278
- }
279
-
280
- .p-datepicker-calendar-container .p-datepicker-calendar:first-child {
281
- padding-inline-start: 0;
282
- border-inline-start: 0 none;
283
- }
284
-
285
- .p-datepicker-calendar-container .p-datepicker-calendar:last-child {
286
- padding-inline-end: 0;
287
- }
288
-
289
- .p-datepicker-day-view {
290
- width: 100%;
291
- border-collapse: collapse;
292
- font-size: 1rem;
293
- margin: dt('datepicker.day.view.margin');
294
- }
295
-
296
- .p-datepicker-weekday-cell {
297
- padding: dt('datepicker.week.day.padding');
298
- }
299
-
300
- .p-datepicker-weekday {
301
- font-weight: dt('datepicker.week.day.font.weight');
302
- color: dt('datepicker.week.day.color');
303
- }
304
-
305
- .p-datepicker-day-cell {
306
- padding: dt('datepicker.date.padding');
307
- }
308
-
309
- .p-datepicker-day {
310
- display: flex;
311
- justify-content: center;
312
- align-items: center;
313
- cursor: pointer;
314
- margin: 0 auto;
315
- overflow: hidden;
316
- position: relative;
317
- width: dt('datepicker.date.width');
318
- height: dt('datepicker.date.height');
319
- border-radius: dt('datepicker.date.border.radius');
320
- transition:
321
- background dt('datepicker.transition.duration'),
322
- color dt('datepicker.transition.duration'),
323
- border-color dt('datepicker.transition.duration'),
324
- box-shadow dt('datepicker.transition.duration'),
325
- outline-color dt('datepicker.transition.duration');
326
- border: 1px solid transparent;
327
- outline-color: transparent;
328
- color: dt('datepicker.date.color');
329
- }
330
-
331
- .p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover {
332
- background: dt('datepicker.date.hover.background');
333
- color: dt('datepicker.date.hover.color');
334
- }
335
-
336
- .p-datepicker-day:focus-visible {
337
- box-shadow: dt('datepicker.date.focus.ring.shadow');
338
- outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
339
- outline-offset: dt('datepicker.date.focus.ring.offset');
340
- }
341
-
342
- .p-datepicker-day-selected {
343
- background: dt('datepicker.date.selected.background');
344
- color: dt('datepicker.date.selected.color');
345
- }
346
-
347
- .p-datepicker-day-selected-range {
348
- background: dt('datepicker.date.range.selected.background');
349
- color: dt('datepicker.date.range.selected.color');
350
- }
351
-
352
- .p-datepicker-today > .p-datepicker-day {
353
- background: dt('datepicker.today.background');
354
- color: dt('datepicker.today.color');
355
- }
356
-
357
- .p-datepicker-today > .p-datepicker-day-selected {
358
- background: dt('datepicker.date.selected.background');
359
- color: dt('datepicker.date.selected.color');
360
- }
361
-
362
- .p-datepicker-today > .p-datepicker-day-selected-range {
363
- background: dt('datepicker.date.range.selected.background');
364
- color: dt('datepicker.date.range.selected.color');
365
- }
366
-
367
- .p-datepicker-weeknumber {
368
- text-align: center;
369
- }
370
-
371
- .p-datepicker-month-view {
372
- margin: dt('datepicker.month.view.margin');
373
- }
374
-
375
- .p-datepicker-month {
376
- width: 33.3%;
377
- display: inline-flex;
378
- align-items: center;
379
- justify-content: center;
380
- cursor: pointer;
381
- overflow: hidden;
382
- position: relative;
383
- padding: dt('datepicker.month.padding');
384
- transition:
385
- background dt('datepicker.transition.duration'),
386
- color dt('datepicker.transition.duration'),
387
- border-color dt('datepicker.transition.duration'),
388
- box-shadow dt('datepicker.transition.duration'),
389
- outline-color dt('datepicker.transition.duration');
390
- border-radius: dt('datepicker.month.border.radius');
391
- outline-color: transparent;
392
- color: dt('datepicker.date.color');
393
- }
394
-
395
- .p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover {
396
- color: dt('datepicker.date.hover.color');
397
- background: dt('datepicker.date.hover.background');
398
- }
399
-
400
- .p-datepicker-month-selected {
401
- color: dt('datepicker.date.selected.color');
402
- background: dt('datepicker.date.selected.background');
403
- }
404
-
405
- .p-datepicker-month:not(.p-disabled):focus-visible {
406
- box-shadow: dt('datepicker.date.focus.ring.shadow');
407
- outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
408
- outline-offset: dt('datepicker.date.focus.ring.offset');
409
- }
410
-
411
- .p-datepicker-year-view {
412
- margin: dt('datepicker.year.view.margin');
413
- }
414
-
415
- .p-datepicker-year {
416
- width: 50%;
417
- display: inline-flex;
418
- align-items: center;
419
- justify-content: center;
420
- cursor: pointer;
421
- overflow: hidden;
422
- position: relative;
423
- padding: dt('datepicker.year.padding');
424
- transition:
425
- background dt('datepicker.transition.duration'),
426
- color dt('datepicker.transition.duration'),
427
- border-color dt('datepicker.transition.duration'),
428
- box-shadow dt('datepicker.transition.duration'),
429
- outline-color dt('datepicker.transition.duration');
430
- border-radius: dt('datepicker.year.border.radius');
431
- outline-color: transparent;
432
- color: dt('datepicker.date.color');
433
- }
434
-
435
- .p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover {
436
- color: dt('datepicker.date.hover.color');
437
- background: dt('datepicker.date.hover.background');
438
- }
439
-
440
- .p-datepicker-year-selected {
441
- color: dt('datepicker.date.selected.color');
442
- background: dt('datepicker.date.selected.background');
443
- }
444
-
445
- .p-datepicker-year:not(.p-disabled):focus-visible {
446
- box-shadow: dt('datepicker.date.focus.ring.shadow');
447
- outline: dt('datepicker.date.focus.ring.width') dt('datepicker.date.focus.ring.style') dt('datepicker.date.focus.ring.color');
448
- outline-offset: dt('datepicker.date.focus.ring.offset');
449
- }
450
-
451
- .p-datepicker-buttonbar {
452
- display: flex;
453
- justify-content: space-between;
454
- align-items: center;
455
- padding: dt('datepicker.buttonbar.padding');
456
- border-block-start: 1px solid dt('datepicker.buttonbar.border.color');
457
- }
458
-
459
- .p-datepicker-buttonbar .p-button {
460
- width: auto;
461
- }
462
-
463
- .p-datepicker-time-picker {
464
- display: flex;
465
- justify-content: center;
466
- align-items: center;
467
- border-block-start: 1px solid dt('datepicker.time.picker.border.color');
468
- padding: 0;
469
- gap: dt('datepicker.time.picker.gap');
470
- }
471
-
472
- .p-datepicker-calendar-container + .p-datepicker-time-picker {
473
- padding: dt('datepicker.time.picker.padding');
474
- }
475
-
476
- .p-datepicker-time-picker > div {
477
- display: flex;
478
- align-items: center;
479
- flex-direction: column;
480
- gap: dt('datepicker.time.picker.button.gap');
481
- }
482
-
483
- .p-datepicker-time-picker span {
484
- font-size: 1rem;
485
- }
486
-
487
- .p-datepicker-timeonly .p-datepicker-time-picker {
488
- border-block-start: 0 none;
489
- }
490
-
491
- .p-datepicker-time-picker:dir(rtl) {
492
- flex-direction: row-reverse;
493
- }
494
-
495
- .p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown {
496
- width: dt('datepicker.dropdown.sm.width');
497
- }
498
-
499
- .p-datepicker:has(.p-inputtext-sm) .p-datepicker-dropdown .p-icon,
500
- .p-datepicker:has(.p-inputtext-sm) .p-datepicker-input-icon {
501
- font-size: dt('form.field.sm.font.size');
502
- width: dt('form.field.sm.font.size');
503
- height: dt('form.field.sm.font.size');
504
- }
505
-
506
- .p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown {
507
- width: dt('datepicker.dropdown.lg.width');
508
- }
509
-
510
- .p-datepicker:has(.p-inputtext-lg) .p-datepicker-dropdown .p-icon,
511
- .p-datepicker:has(.p-inputtext-lg) .p-datepicker-input-icon {
512
- font-size: dt('form.field.lg.font.size');
513
- width: dt('form.field.lg.font.size');
514
- height: dt('form.field.lg.font.size');
515
- }
516
-
517
- .p-datepicker-clear-icon {
518
- position: absolute;
519
- top: 50%;
520
- margin-top: -0.5rem;
521
- cursor: pointer;
522
- color: dt('form.field.icon.color');
523
- inset-inline-end: dt('form.field.padding.x');
524
- }
525
-
526
- .p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-clear-icon {
527
- inset-inline-end: calc(dt('datepicker.dropdown.width') + dt('form.field.padding.x'));
528
- }
529
-
530
- .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-clear-icon {
531
- inset-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
532
- }
533
-
534
- .p-datepicker:has(.p-datepicker-clear-icon) .p-datepicker-input {
535
- padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));
536
- }
537
-
538
- .p-datepicker:has(.p-datepicker-input-icon-container):has(.p-datepicker-clear-icon) .p-datepicker-input {
539
- padding-inline-end: calc((dt('form.field.padding.x') * 3) + calc(dt('icon.size') * 2));
540
- }
541
-
542
- .p-inputgroup .p-datepicker-dropdown {
543
- border-radius: 0;
544
- }
545
-
546
- .p-inputgroup > .p-datepicker:last-child:has(.p-datepicker-dropdown) > .p-datepicker-input {
547
- border-start-end-radius: 0;
548
- border-end-end-radius: 0;
549
- }
550
-
551
- .p-inputgroup > .p-datepicker:last-child .p-datepicker-dropdown {
552
- border-start-end-radius: dt('datepicker.dropdown.border.radius');
553
- border-end-end-radius: dt('datepicker.dropdown.border.radius');
554
- }
555
- `,classes:{root:function(e){var t=e.instance,n=e.state;return[`p-datepicker p-component p-inputwrapper`,{"p-invalid":t.$invalid,"p-inputwrapper-filled":t.$filled,"p-inputwrapper-focus":n.focused||n.overlayVisible,"p-focus":n.focused||n.overlayVisible,"p-datepicker-fluid":t.$fluid}]},pcInputText:`p-datepicker-input`,clearIcon:`p-datepicker-clear-icon`,dropdown:`p-datepicker-dropdown`,inputIconContainer:`p-datepicker-input-icon-container`,inputIcon:`p-datepicker-input-icon`,panel:function(e){var t=e.props;return[`p-datepicker-panel p-component`,{"p-datepicker-panel-inline":t.inline,"p-disabled":t.disabled,"p-datepicker-timeonly":t.timeOnly}]},calendarContainer:`p-datepicker-calendar-container`,calendar:`p-datepicker-calendar`,header:`p-datepicker-header`,pcPrevButton:`p-datepicker-prev-button`,title:`p-datepicker-title`,selectMonth:`p-datepicker-select-month`,selectYear:`p-datepicker-select-year`,decade:`p-datepicker-decade`,pcNextButton:`p-datepicker-next-button`,dayView:`p-datepicker-day-view`,weekHeader:`p-datepicker-weekheader p-disabled`,weekNumber:`p-datepicker-weeknumber`,weekLabelContainer:`p-datepicker-weeklabel-container p-disabled`,weekDayCell:`p-datepicker-weekday-cell`,weekDay:`p-datepicker-weekday`,dayCell:function(e){var t=e.date;return[`p-datepicker-day-cell`,{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}]},day:function(e){var t=e.instance,n=e.props,r=e.state,i=e.date,a=``;if(t.isRangeSelection()&&t.isSelected(i)&&i.selectable){var o=typeof r.rawValue[0]==`string`?t.parseValue(r.rawValue[0])[0]:r.rawValue[0],s=typeof r.rawValue[1]==`string`?t.parseValue(r.rawValue[1])[0]:r.rawValue[1];a=t.isDateEquals(o,i)||t.isDateEquals(s,i)?`p-datepicker-day-selected`:`p-datepicker-day-selected-range`}return[`p-datepicker-day`,{"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(i)&&i.selectable,"p-disabled":n.disabled||!i.selectable},a]},monthView:`p-datepicker-month-view`,month:function(e){var t=e.instance,n=e.props,r=e.month,i=e.index;return[`p-datepicker-month`,{"p-datepicker-month-selected":t.isMonthSelected(i),"p-disabled":n.disabled||!r.selectable}]},yearView:`p-datepicker-year-view`,year:function(e){var t=e.instance,n=e.props,r=e.year;return[`p-datepicker-year`,{"p-datepicker-year-selected":t.isYearSelected(r.value),"p-disabled":n.disabled||!r.selectable}]},timePicker:`p-datepicker-time-picker`,hourPicker:`p-datepicker-hour-picker`,pcIncrementButton:`p-datepicker-increment-button`,pcDecrementButton:`p-datepicker-decrement-button`,separator:`p-datepicker-separator`,minutePicker:`p-datepicker-minute-picker`,secondPicker:`p-datepicker-second-picker`,ampmPicker:`p-datepicker-ampm-picker`,buttonbar:`p-datepicker-buttonbar`,pcTodayButton:`p-datepicker-today-button`,pcClearButton:`p-datepicker-clear-button`},inlineStyles:{root:function(e){var t=e.props;return{position:t.appendTo===`self`||t.showClear?`relative`:void 0}}}}),_t={name:`BaseDatePicker`,extends:b,props:{selectionMode:{type:String,default:`single`},dateFormat:{type:String,default:null},updateModelType:{type:String,default:`date`},inline:{type:Boolean,default:!1},showOtherMonths:{type:Boolean,default:!0},selectOtherMonths:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},iconDisplay:{type:String,default:`button`},icon:{type:String,default:void 0},prevIcon:{type:String,default:void 0},nextIcon:{type:String,default:void 0},incrementIcon:{type:String,default:void 0},decrementIcon:{type:String,default:void 0},numberOfMonths:{type:Number,default:1},responsiveOptions:Array,breakpoint:{type:String,default:`769px`},view:{type:String,default:`date`},minDate:{type:Date,value:null},maxDate:{type:Date,value:null},disabledDates:{type:Array,value:null},disabledDays:{type:Array,value:null},maxDateCount:{type:Number,value:null},showOnFocus:{type:Boolean,default:!0},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},showButtonBar:{type:Boolean,default:!1},shortYearCutoff:{type:String,default:`+10`},showTime:{type:Boolean,default:!1},timeOnly:{type:Boolean,default:!1},hourFormat:{type:String,default:`24`},stepHour:{type:Number,default:1},stepMinute:{type:Number,default:1},stepSecond:{type:Number,default:1},showSeconds:{type:Boolean,default:!1},hideOnDateTimeSelect:{type:Boolean,default:!1},hideOnRangeSelection:{type:Boolean,default:!1},timeSeparator:{type:String,default:`:`},showWeek:{type:Boolean,default:!1},manualInput:{type:Boolean,default:!0},showClear:{type:Boolean,default:!1},appendTo:{type:[String,Object],default:`body`},readonly:{type:Boolean,default:!1},placeholder:{type:String,default:null},required:{type:Boolean,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},todayButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,size:`small`}}},clearButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,size:`small`}}},navigatorButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},timepickerButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:gt,provide:function(){return{$pcDatePicker:this,$parentInstance:this}}};function vt(e,t,n){return(t=yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yt(e){var t=bt(e,`string`);return xt(t)==`symbol`?t:t+``}function bt(e,t){if(xt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xt(e){"@babel/helpers - typeof";return xt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},xt(e)}function St(e){return Tt(e)||wt(e)||Dt(e)||Ct()}function Ct(){throw TypeError(`Invalid attempt to spread non-iterable instance.
556
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Tt(e){if(Array.isArray(e))return Ot(e)}function Et(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Dt(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
557
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Dt(e,t){if(e){if(typeof e==`string`)return Ot(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ot(e,t):void 0}}function Ot(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kt={name:`DatePicker`,extends:_t,inheritAttrs:!1,emits:[`show`,`hide`,`input`,`month-change`,`year-change`,`date-select`,`today-click`,`clear-click`,`focus`,`blur`,`keydown`],inject:{$pcFluid:{default:null}},navigationState:null,timePickerChange:!1,scrollHandler:null,outsideClickListener:null,resizeListener:null,matchMediaListener:null,matchMediaOrientationListener:null,overlay:null,input:null,previousButton:null,nextButton:null,timePickerTimer:null,preventFocus:!1,typeUpdate:!1,data:function(){return{currentMonth:null,currentYear:null,currentHour:null,currentMinute:null,currentSecond:null,pm:null,focused:!1,overlayVisible:!1,currentView:this.view,query:null,queryMatches:!1,queryOrientation:null,focusedDateIndex:0,rawValue:null}},watch:{modelValue:{immediate:!0,handler:function(e){var t;this.rawValue=typeof e==`string`?this.safeParse(e):e,this.updateCurrentMetaData(),!this.typeUpdate&&!this.inline&&this.input&&(this.input.value=this.formatValue(this.rawValue)),this.typeUpdate=!1,(t=this.$refs.clearIcon)!=null&&(t=t.$el)!=null&&t.style&&(this.$refs.clearIcon.$el.style.display=xe(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&&re.clear(this.overlay),this.overlay=null},methods:{isSelected:function(e){if(this.rawValue){if(this.isSingleSelection())return this.isDateEquals(this.parseValueForComparison(this.rawValue),e);if(this.isMultipleSelection()){var t=!1,n=Et(this.rawValue),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;if(t=this.isDateEquals(this.parseValueForComparison(i),e),t)break}}catch(e){n.e(e)}finally{n.f()}return t}else if(this.isRangeSelection()){var a=this.parseValueForComparison(this.rawValue[0]);if(this.rawValue[1]){var o=this.parseValueForComparison(this.rawValue[1]);return this.isDateEquals(a,e)||this.isDateEquals(o,e)||this.isDateBetween(a,o,e)}else return this.isDateEquals(a,e)}}return!1},isMonthSelected:function(e){var t=this;if(this.isMultipleSelection())return this.rawValue?.some(function(n){var r=t.parseValueForComparison(n);return r.getMonth()===e&&r.getFullYear()===t.currentYear});if(this.isRangeSelection()){var n,r,i=(n=this.rawValue)!=null&&n[0]?this.parseValueForComparison(this.rawValue[0]):null,a=(r=this.rawValue)!=null&&r[1]?this.parseValueForComparison(this.rawValue[1]):null;if(a){var o=new Date(this.currentYear,e,1),s=new Date(i.getFullYear(),i.getMonth(),1),c=new Date(a.getFullYear(),a.getMonth(),1);return o>=s&&o<=c}else return i?.getFullYear()===this.currentYear&&i?.getMonth()===e}else return this.rawValue?.getMonth()===e&&this.rawValue?.getFullYear()===this.currentYear},isYearSelected:function(e){var t=this;if(this.isMultipleSelection())return this.rawValue?.some(function(n){return t.parseValueForComparison(n).getFullYear()===e});if(this.isRangeSelection()){var n,r,i=(n=this.rawValue)!=null&&n[0]?this.parseValueForComparison(this.rawValue[0]):null,a=(r=this.rawValue)!=null&&r[1]?this.parseValueForComparison(this.rawValue[1]):null,o=i?i.getFullYear():null,s=a?a.getFullYear():null;return o===e||s===e||o<e&&s>e}else return this.rawValue?.getFullYear()===e},isDateEquals:function(e,t){return e?e.getDate()===t.day&&e.getMonth()===t.month&&e.getFullYear()===t.year:!1},isDateBetween:function(e,t,n){var r=!1,i=this.parseValueForComparison(e),a=this.parseValueForComparison(t);if(i&&a){var o=new Date(n.year,n.month,n.day);return i.getTime()<=o.getTime()&&a.getTime()>=o.getTime()}return r},getFirstDayOfMonthIndex:function(e,t){var n=new Date;n.setDate(1),n.setMonth(e),n.setFullYear(t);var r=n.getDay()+this.sundayIndex;return r>=7?r-7:r},getDaysCountInMonth:function(e,t){return 32-this.daylightSavingAdjust(new Date(t,e,32)).getDate()},getDaysCountInPrevMonth:function(e,t){var n=this.getPreviousMonthAndYear(e,t);return this.getDaysCountInMonth(n.month,n.year)},getPreviousMonthAndYear:function(e,t){var n,r;return e===0?(n=11,r=t-1):(n=e-1,r=t),{month:n,year:r}},getNextMonthAndYear:function(e,t){var n,r;return e===11?(n=0,r=t+1):(n=e+1,r=t),{month:n,year:r}},daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},isToday:function(e,t,n,r){return e.getDate()===t&&e.getMonth()===n&&e.getFullYear()===r},isSelectable:function(e,t,n,r){var i=!0,a=!0,o=!0,s=!0;return r&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>n||this.minDate.getFullYear()===n&&(this.minDate.getMonth()>t||this.minDate.getMonth()===t&&this.minDate.getDate()>e))&&(i=!1),this.maxDate&&(this.maxDate.getFullYear()<n||this.maxDate.getFullYear()===n&&(this.maxDate.getMonth()<t||this.maxDate.getMonth()===t&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(o=!this.isDateDisabled(e,t,n)),this.disabledDays&&(s=!this.isDayDisabled(e,t,n)),i&&a&&o&&s)},onOverlayEnter:function(e){D(e,this.inline?void 0:{position:`absolute`,top:`0`}),this.autoZIndex&&re.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&&re.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 F(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&&!Se()&&(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?v(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=De(this.overlay)+`px`,this.overlay.style.minWidth=De(this.$el)+`px`):this.overlay.style.width=De(this.$el)+`px`,x(this.overlay,this.$el)))},onButtonClick:function(){this.isEnabled()&&(this.overlayVisible?this.overlayVisible=!1:(this.input.focus(),this.overlayVisible=!0))},isDateDisabled:function(e,t,n){if(this.disabledDates){var r=Et(this.disabledDates),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a.getFullYear()===n&&a.getMonth()===t&&a.getDate()===e)return!0}}catch(e){r.e(e)}finally{r.f()}}return!1},isDayDisabled:function(e,t,n){if(this.disabledDays){var r=new Date(n,t,e).getDay();return this.disabledDays.indexOf(r)!==-1}return!1},onMonthDropdownChange:function(e){this.currentMonth=parseInt(e),this.$emit(`month-change`,{month:this.currentMonth+1,year:this.currentYear})},onYearDropdownChange:function(e){this.currentYear=parseInt(e),this.$emit(`year-change`,{month:this.currentMonth,year:this.currentYear})},onDateSelect:function(e,t){var n=this;if(!(this.disabled||!t.selectable)){if(m(this.overlay,`table td span:not([data-p-disabled="true"])`).forEach(function(e){return e.tabIndex=-1}),e&&e.currentTarget.focus(),this.isMultipleSelection()&&this.isSelected(t)){var r=this.rawValue.filter(function(e){return!n.isDateEquals(n.parseValueForComparison(e),t)});this.updateModel(r)}else this.shouldSelectDate(t)&&(t.otherMonth?(this.currentMonth=t.month,this.currentYear=t.year,this.selectDate(t)):this.selectDate(t));this.isSingleSelection()&&(!this.showTime||this.hideOnDateTimeSelect)&&(this.input&&this.input.focus(),setTimeout(function(){n.overlayVisible=!1},150))}},selectDate:function(e){var t=this,n=new Date(e.year,e.month,e.day);this.showTime&&(this.hourFormat===`12`&&this.currentHour!==12&&this.pm?n.setHours(this.currentHour+12):n.setHours(this.currentHour),n.setMinutes(this.currentMinute),n.setSeconds(this.showSeconds?this.currentSecond:0)),this.minDate&&this.minDate>n&&(n=this.minDate,this.currentHour=n.getHours(),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds()),this.maxDate&&this.maxDate<n&&(n=this.maxDate,this.currentHour=n.getHours(),this.currentMinute=n.getMinutes(),this.currentSecond=n.getSeconds());var r=null;if(this.isSingleSelection())r=n;else if(this.isMultipleSelection())r=this.rawValue?[].concat(St(this.rawValue),[n]):[n];else if(this.isRangeSelection())if(this.rawValue&&this.rawValue.length){var i=this.parseValueForComparison(this.rawValue[0]),a=this.rawValue[1];!a&&n.getTime()>=i.getTime()?(a=n,this.focusedDateIndex=1):(i=n,a=null,this.focusedDateIndex=0),r=[i,a]}else r=[n,null],this.focusedDateIndex=0;r!==null&&this.updateModel(r),this.isRangeSelection()&&this.hideOnRangeSelection&&r[1]!==null&&setTimeout(function(){t.overlayVisible=!1},150),this.$emit(`date-select`,n)},updateModel:function(e){var t=this;if(this.rawValue=e,this.updateModelType===`date`)if(this.isSingleSelection())this.writeValue(e);else{var n=null;Array.isArray(e)&&(n=e.map(function(e){return t.parseValueForComparison(e)})),this.writeValue(n)}else if(this.updateModelType==`string`){if(this.isSingleSelection())this.writeValue(this.formatDateTime(e));else if(this.isMultipleSelection()){var r=null;Array.isArray(e)&&(r=e.map(function(e){return t.formatDateTime(e)})),this.writeValue(r)}else if(this.isRangeSelection()){var i=null;Array.isArray(e)&&(i=e.map(function(e){return e==null?null:typeof e==`string`?e:t.formatDateTime(e)})),this.writeValue(i)}}},shouldSelectDate:function(){return this.isMultipleSelection()?this.maxDateCount==null?!0:this.maxDateCount>(this.rawValue?this.rawValue.length:0):!0},isSingleSelection:function(){return this.selectionMode===`single`},isRangeSelection:function(){return this.selectionMode===`range`},isMultipleSelection:function(){return this.selectionMode===`multiple`},formatValue:function(e){if(typeof e==`string`)return this.dateFormat?isNaN(new Date(e))?e:this.formatDate(new Date(e),this.dateFormat):e;var t=``;if(e)try{if(this.isSingleSelection())t=this.formatDateTime(e);else if(this.isMultipleSelection())for(var n=0;n<e.length;n++){var r=typeof e[n]==`string`?this.formatDateTime(this.parseValueForComparison(e[n])):this.formatDateTime(e[n]);t+=r,n!==e.length-1&&(t+=`, `)}else if(this.isRangeSelection()&&e&&e.length){var i=this.parseValueForComparison(e[0]),a=this.parseValueForComparison(e[1]);t=this.formatDateTime(i),a&&(t+=` - `+this.formatDateTime(a))}}catch{t=e}return t},formatDateTime:function(e){var t=null;return M(e)&&ue(e)?this.timeOnly?t=this.formatTime(e):(t=this.formatDate(e,this.datePattern),this.showTime&&(t+=` `+this.formatTime(e))):this.updateModelType===`string`&&(t=e),t},formatDate:function(e,t){if(!e)return``;var n,r=function(e){var r=n+1<t.length&&t.charAt(n+1)===e;return r&&n++,r},i=function(e,t,n){var i=``+t;if(r(e))for(;i.length<n;)i=`0`+i;return i},a=function(e,t,n,i){return r(e)?i[t]:n[t]},o=``,s=!1;if(e)for(n=0;n<t.length;n++)if(s)t.charAt(n)===`'`&&!r(`'`)?s=!1:o+=t.charAt(n);else switch(t.charAt(n)){case`d`:o+=i(`d`,e.getDate(),2);break;case`D`:o+=a(`D`,e.getDay(),this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case`o`:o+=i(`o`,Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case`m`:o+=i(`m`,e.getMonth()+1,2);break;case`M`:o+=a(`M`,e.getMonth(),this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case`y`:o+=r(`y`)?e.getFullYear():(e.getFullYear()%100<10?`0`:``)+e.getFullYear()%100;break;case`@`:o+=e.getTime();break;case`!`:o+=e.getTime()*1e4+this.ticksTo1970;break;case`'`:r(`'`)?o+=`'`:s=!0;break;default:o+=t.charAt(n)}return o},formatTime:function(e){if(!e)return``;var t=``,n=e.getHours(),r=e.getMinutes(),i=e.getSeconds();return this.hourFormat===`12`&&n>11&&n!==12&&(n-=12),this.hourFormat===`12`?t+=n===0?12:n<10?`0`+n:n:t+=n<10?`0`+n:n,t+=`:`,t+=r<10?`0`+r:r,this.showSeconds&&(t+=`:`,t+=i<10?`0`+i:i),this.hourFormat===`12`&&(t+=e.getHours()>11?` ${this.$primevue.config.locale.pm}`:` ${this.$primevue.config.locale.am}`),t},onTodayButtonClick:function(e){var t=new Date,n={day:t.getDate(),month:t.getMonth(),year:t.getFullYear(),otherMonth:t.getMonth()!==this.currentMonth||t.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(null,n),this.$emit(`today-click`,t),e.preventDefault()},onClearButtonClick:function(e){this.updateModel(null),this.overlayVisible=!1,this.$emit(`clear-click`,e),e.preventDefault()},onTimePickerElementMouseDown:function(e,t,n){this.isEnabled()&&(this.repeat(e,null,t,n),e.preventDefault())},onTimePickerElementMouseUp:function(e){this.isEnabled()&&(this.clearTimePickerTimer(),this.updateModelTime(),e.preventDefault())},onTimePickerElementMouseLeave:function(){this.clearTimePickerTimer()},onTimePickerElementKeyDown:function(e,t,n){switch(e.code){case`Enter`:case`NumpadEnter`:case`Space`:this.isEnabled()&&(this.repeat(e,null,t,n),e.preventDefault());break}},onTimePickerElementKeyUp:function(e){switch(e.code){case`Enter`:case`NumpadEnter`:case`Space`:this.isEnabled()&&(this.clearTimePickerTimer(),this.updateModelTime(),e.preventDefault());break}},repeat:function(e,t,n,r){var i=this,a=t||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(function(){i.repeat(e,100,n,r)},a),n){case 0:r===1?this.incrementHour(e):this.decrementHour(e);break;case 1:r===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:r===1?this.incrementSecond(e):this.decrementSecond(e);break}},convertTo24Hour:function(e,t){return this.hourFormat==`12`?e===12?t?12:0:t?e+12:e:e},validateTime:function(e,t,n,r){var i=this.viewDate,a=this.convertTo24Hour(e,r);this.isRangeSelection()&&(i=this.rawValue?this.rawValue[1]||this.rawValue[0]:i),this.isMultipleSelection()&&(i=this.rawValue?this.rawValue[this.rawValue.length-1]:i);var o=i?i.toDateString():null;return!(this.minDate&&o&&this.minDate.toDateString()===o&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>t||this.minDate.getMinutes()===t&&this.minDate.getSeconds()>n))||this.maxDate&&o&&this.maxDate.toDateString()===o&&(this.maxDate.getHours()<a||this.maxDate.getHours()===a&&(this.maxDate.getMinutes()<t||this.maxDate.getMinutes()===t&&this.maxDate.getSeconds()<n)))},incrementHour:function(e){var t=this.currentHour,n=this.currentHour+Number(this.stepHour),r=this.pm;this.hourFormat==`24`?n=n>=24?n-24:n:this.hourFormat==`12`&&(t<12&&n>11&&(r=!this.pm),n=n>=13?n-12:n),this.validateTime(n,this.currentMinute,this.currentSecond,r)&&(this.currentHour=n,this.pm=r),e.preventDefault()},decrementHour:function(e){var t=this.currentHour-this.stepHour,n=this.pm;this.hourFormat==`24`?t=t<0?24+t:t:this.hourFormat==`12`&&(this.currentHour===12&&(n=!this.pm),t=t<=0?12+t:t),this.validateTime(t,this.currentMinute,this.currentSecond,n)&&(this.currentHour=t,this.pm=n),e.preventDefault()},incrementMinute:function(e){var t=this.currentMinute+Number(this.stepMinute);this.validateTime(this.currentHour,t,this.currentSecond,this.pm)&&(this.currentMinute=t>59?t-60:t),e.preventDefault()},decrementMinute:function(e){var t=this.currentMinute-this.stepMinute;t=t<0?60+t:t,this.validateTime(this.currentHour,t,this.currentSecond,this.pm)&&(this.currentMinute=t),e.preventDefault()},incrementSecond:function(e){var t=this.currentSecond+Number(this.stepSecond);this.validateTime(this.currentHour,this.currentMinute,t,this.pm)&&(this.currentSecond=t>59?t-60:t),e.preventDefault()},decrementSecond:function(e){var t=this.currentSecond-this.stepSecond;t=t<0?60+t:t,this.validateTime(this.currentHour,this.currentMinute,t,this.pm)&&(this.currentSecond=t),e.preventDefault()},updateModelTime:function(){var e=this;this.timePickerChange=!0;var t=this.viewDate;this.isRangeSelection()&&(t=this.rawValue?this.rawValue[this.focusedDateIndex]||this.rawValue[0]:t),this.isMultipleSelection()&&(t=this.rawValue?this.rawValue[this.rawValue.length-1]:t),t=t?new Date(t.getTime()):new Date,this.hourFormat==`12`?this.currentHour===12?t.setHours(this.pm?12:0):t.setHours(this.pm?this.currentHour+12:this.currentHour):t.setHours(this.currentHour),t.setMinutes(this.currentMinute),t.setSeconds(this.currentSecond),this.isRangeSelection()&&(t=this.rawValue&&this.focusedDateIndex===1&&this.rawValue[1]?[this.rawValue[0],t]:this.rawValue&&this.focusedDateIndex===0?[t,this.rawValue[1]]:[t,null]),this.isMultipleSelection()&&(t=this.rawValue?[].concat(St(this.rawValue.slice(0,-1)),[t]):[t]),this.updateModel(t),this.$emit(`date-select`,t),setTimeout(function(){return e.timePickerChange=!1},0)},toggleAMPM:function(e){!this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,!this.pm)&&(this.maxDate||this.minDate)||(this.pm=!this.pm,this.updateModelTime(),e.preventDefault())},clearTimePickerTimer:function(){this.timePickerTimer&&clearInterval(this.timePickerTimer)},onMonthSelect:function(e,t){t.month;var n=t.index;this.view===`month`?this.onDateSelect(e,{year:this.currentYear,month:n,day:1,selectable:!0}):(this.currentMonth=n,this.currentView=`date`,this.$emit(`month-change`,{month:this.currentMonth+1,year:this.currentYear})),setTimeout(this.updateFocus,0)},onYearSelect:function(e,t){this.view===`year`?this.onDateSelect(e,{year:t.value,month:0,day:1,selectable:!0}):(this.currentYear=t.value,this.currentView=`month`,this.$emit(`year-change`,{month:this.currentMonth,year:this.currentYear})),setTimeout(this.updateFocus,0)},updateCurrentMetaData:function(){var e=this.viewDate;if(this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.showTime||this.timeOnly){var t=e;this.isRangeSelection()&&this.rawValue&&this.rawValue[this.focusedDateIndex]&&(t=this.rawValue[this.focusedDateIndex]),this.updateCurrentTimeMeta(t)}},isValidSelection:function(e){var t=this;if(e==null)return!0;var n=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(n=!1):e.every(function(e){return t.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)})&&this.isRangeSelection()&&(n=e.length>1&&e[1]>=e[0]),n},parseValue:function(e){if(!e||e.trim().length===0)return null;var t;if(this.isSingleSelection())t=this.parseDateTime(e);else if(this.isMultipleSelection()){var n=e.split(`,`);t=[];var r=Et(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.push(this.parseDateTime(a.trim()))}}catch(e){r.e(e)}finally{r.f()}}else if(this.isRangeSelection()){var o=e.split(` - `);t=[];for(var s=0;s<o.length;s++)t[s]=this.parseDateTime(o[s].trim())}return t},safeParse:function(e){try{return this.parseValue(e)}catch{var t=new Date(e);return isNaN(t.getTime())?null:this.isSingleSelection()?t:[t]}},parseValueForComparison:function(e){if(typeof e==`string`){var t=this.parseValue(e);return this.isSingleSelection()?t:t[0]}return e},parseDateTime:function(e){var t,n=`${this.$primevue.config.locale.am}|${this.$primevue.config.locale.pm}|am|pm`,r=e.match(RegExp(`(?:(.+?) )?(\\d{2}:\\d{2}(?::\\d{2})?)(?:\\s+(${n}))?`,`i`));if(this.timeOnly)t=new Date,this.populateTime(t,r[2],r[3]);else{var i=this.datePattern;this.showTime?(t=this.parseDate(r[1],i),this.populateTime(t,r[2],r[3])):t=this.parseDate(e,i)}return t},populateTime:function(e,t,n){if(this.hourFormat==`12`&&!n)throw`Invalid Time`;this.pm=n.toLowerCase()===this.$primevue.config.locale.pm.toLowerCase()||n.toLowerCase()===`pm`;var r=this.parseTime(t);e.setHours(r.hour),e.setMinutes(r.minute),e.setSeconds(r.second)},parseTime:function(e){var t=e.split(`:`),n=this.showSeconds?3:2,r=/^[0-9][0-9]$/;if(t.length!==n||!t[0].match(r)||!t[1].match(r)||this.showSeconds&&!t[2].match(r))throw`Invalid time`;var i=parseInt(t[0]),a=parseInt(t[1]),o=this.showSeconds?parseInt(t[2]):null;if(isNaN(i)||isNaN(a)||i>23||a>59||this.hourFormat==`12`&&i>12||this.showSeconds&&(isNaN(o)||o>59))throw`Invalid time`;return this.hourFormat==`12`&&i!==12&&this.pm?i+=12:this.hourFormat==`12`&&i==12&&!this.pm&&(i=0),{hour:i,minute:a,second:o}},parseDate:function(e,t){if(t==null||e==null)throw`Invalid arguments`;if(e=xt(e)===`object`?e.toString():e+``,e===``)return null;var n,r,i,a=0,o=typeof this.shortYearCutoff==`string`?new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10):this.shortYearCutoff,s=-1,c=-1,l=-1,u=-1,d=!1,f,p=function(e){var r=n+1<t.length&&t.charAt(n+1)===e;return r&&n++,r},m=function(t){var n=p(t),r=t===`@`?14:t===`!`?20:t===`y`&&n?4:t===`o`?3:2,i=t===`y`?r:1,o=RegExp(`^\\d{`+i+`,`+r+`}`),s=e.substring(a).match(o);if(!s)throw`Missing number at position `+a;return a+=s[0].length,parseInt(s[0],10)},h=function(t,n,r){for(var i=-1,o=p(t)?r:n,s=[],c=0;c<o.length;c++)s.push([c,o[c]]);s.sort(function(e,t){return-(e[1].length-t[1].length)});for(var l=0;l<s.length;l++){var u=s[l][1];if(e.substr(a,u.length).toLowerCase()===u.toLowerCase()){i=s[l][0],a+=u.length;break}}if(i!==-1)return i+1;throw`Unknown name at position `+a},g=function(){if(e.charAt(a)!==t.charAt(n))throw`Unexpected literal at position `+a;a++};for(this.currentView===`month`&&(l=1),this.currentView===`year`&&(l=1,c=1),n=0;n<t.length;n++)if(d)t.charAt(n)===`'`&&!p(`'`)?d=!1:g();else switch(t.charAt(n)){case`d`:l=m(`d`);break;case`D`:h(`D`,this.$primevue.config.locale.dayNamesShort,this.$primevue.config.locale.dayNames);break;case`o`:u=m(`o`);break;case`m`:c=m(`m`);break;case`M`:c=h(`M`,this.$primevue.config.locale.monthNamesShort,this.$primevue.config.locale.monthNames);break;case`y`:s=m(`y`);break;case`@`:f=new Date(m(`@`)),s=f.getFullYear(),c=f.getMonth()+1,l=f.getDate();break;case`!`:f=new Date((m(`!`)-this.ticksTo1970)/1e4),s=f.getFullYear(),c=f.getMonth()+1,l=f.getDate();break;case`'`:p(`'`)?g():d=!0;break;default:g()}if(a<e.length&&(i=e.substr(a),!/^\s+/.test(i)))throw`Extra/unparsed characters found in date: `+i;if(s===-1?s=new Date().getFullYear():s<100&&(s+=new Date().getFullYear()-new Date().getFullYear()%100+(s<=o?0:-100)),u>-1){c=1,l=u;do{if(r=this.getDaysCountInMonth(c-1,s),l<=r)break;c++,l-=r}while(!0)}if(f=this.daylightSavingAdjust(new Date(s,c-1,l)),f.getFullYear()!==s||f.getMonth()+1!==c||f.getDate()!==l)throw`Invalid date`;return f},getWeekNumber:function(e){var t=new Date(e.getTime());t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t.getTime())/864e5)/7)+1},onDateCellKeydown:function(e,t,n){e.preventDefault();var r=e.currentTarget,i=r.parentElement,a=z(i);switch(e.code){case`ArrowDown`:if(r.tabIndex=`-1`,i.parentElement.nextElementSibling){var o=z(i.parentElement),s=Array.from(i.parentElement.parentElement.children).slice(o+1).find(function(e){var t=e.children[a].children[0];return!Ne(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=z(i.parentElement),u=Array.from(i.parentElement.parentElement.children).slice(0,l).reverse().find(function(e){var t=e.children[a].children[0];return!Ne(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!Ne(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!Ne(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];Ne(g,`data-p-disabled`)?this.navigateToMonth(e,!0,n):(g.tabIndex=`0`,g.focus()),e.preventDefault();break;case`End`:r.tabIndex=`-1`;var _=i.parentElement,v=_.children[_.children.length-1].children[0];Ne(v,`data-p-disabled`)?this.navigateToMonth(e,!1,n):(v.tabIndex=`0`,v.focus()),e.preventDefault();break;case`PageUp`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,n),e.preventDefault();break;case`PageDown`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,n),e.preventDefault();break}},navigateToMonth:function(e,t,n){if(t)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this.navBackward(e);else{var r=this.overlay.children[n-1],i=m(r,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`),a=i[i.length-1];a.tabIndex=`0`,a.focus()}else if(this.numberOfMonths===1||n===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(e);else{var o=this.overlay.children[n+1],s=Ce(o,`table td span:not([data-p-disabled="true"]):not([data-p-ink="true"])`);s.tabIndex=`0`,s.focus()}},onMonthCellKeydown:function(e,t){var n=e.currentTarget;switch(e.code){case`ArrowUp`:case`ArrowDown`:n.tabIndex=`-1`;var r=n.parentElement.children,i=z(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=z(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`?m(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?m(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):m(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`?Ce(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?Ce(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):Ce(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=m(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]`),n=Ce(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=m(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),i=Ce(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=Ce(this.overlay,`span[data-p-selected="true"]`),!e&&(e=Ce(this.overlay,`td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])`)||Ce(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=ae(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=xe(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=xe(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&&ae(this.overlay).forEach(function(e){return e.tabIndex=`-1`}),this.overlayVisible&&=!1;else if(e.code===`Enter`){if(this.manualInput&&e.target.value!==null&&e.target.value?.trim()!==``)try{var t=this.parseValue(e.target.value);this.isValidSelection(t)&&(this.overlayVisible=!1)}catch{}this.$emit(`keydown`,e)}},overlayRef:function(e){this.overlay=e},inputRef:function(e){this.input=e?e.$el:void 0},previousButtonRef:function(e){this.previousButton=e?e.$el:void 0},nextButtonRef:function(e){this.nextButton=e?e.$el:void 0},getMonthName:function(e){return this.$primevue.config.locale.monthNames[e]},getYear:function(e){return this.currentView===`month`?this.currentYear:e.year},onClearClick:function(){this.updateModel(null),this.overlayVisible=!1},onOverlayClick:function(e){e.stopPropagation(),this.inline||A.emit(`overlay-click`,{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case`Escape`:this.inline||(this.input.focus(),this.overlayVisible=!1,e.stopPropagation());break}},onOverlayMouseUp:function(e){this.onOverlayClick(e)},createResponsiveStyle:function(){if(this.numberOfMonths>1&&this.responsiveOptions&&!this.isUnstyled){if(!this.responsiveStyleElement){var e;this.responsiveStyleElement=document.createElement(`style`),this.responsiveStyleElement.type=`text/css`,d(this.responsiveStyleElement,`nonce`,(e=this.$primevue)==null||(e=e.config)==null||(e=e.csp)==null?void 0:e.nonce),document.body.appendChild(this.responsiveStyleElement)}var t=``;if(this.responsiveOptions)for(var n=_e(),r=St(this.responsiveOptions).filter(function(e){return!!(e.breakpoint&&e.numMonths)}).sort(function(e,t){return-1*n(e.breakpoint,t.breakpoint)}),i=0;i<r.length;i++){for(var a=r[i],o=a.breakpoint,s=a.numMonths,c=`
558
- .p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${s}) .p-datepicker-next-button {
559
- display: inline-flex;
560
- }
561
- `,l=s;l<this.numberOfMonths;l++)c+=`
562
- .p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${l+1}) {
563
- display: none;
564
- }
565
- `;t+=`
566
- @media screen and (max-width: ${o}) {
567
- ${c}
568
- }
569
- `}this.responsiveStyleElement.innerHTML=t}},destroyResponsiveStyleElement:function(){this.responsiveStyleElement&&=(this.responsiveStyleElement.remove(),null)},dayDataP:function(e){return me({today:e.today,"other-month":e.otherMonth,selected:this.isSelected(e),disabled:!e.selectable})}},computed:{viewDate:function(){var e=this.rawValue;if(e&&Array.isArray(e))if(this.isRangeSelection())if(e.length===0)e=null;else if(e.length===1)e=e[0];else{var t=this.parseValueForComparison(e[0]),n=new Date(t.getFullYear(),t.getMonth()+this.numberOfMonths,1);if(!e[1]||e[1]<n)e=e[0];else{var r=this.parseValueForComparison(e[1]);e=new Date(r.getFullYear(),r.getMonth()-this.numberOfMonths+1,1)}}else this.isMultipleSelection()&&(e=e[e.length-1]);if(e&&typeof e!=`string`)return e;var i=new Date;return this.maxDate&&this.maxDate<i?this.maxDate:this.minDate&&this.minDate>i?this.minDate:i},inputFieldValue:function(){return this.formatValue(this.rawValue)},months:function(){for(var e=[],t=0;t<this.numberOfMonths;t++){var n=this.currentMonth+t,r=this.currentYear;n>11&&(n=n%11-1,r+=1);for(var i=[],a=this.getFirstDayOfMonthIndex(n,r),o=this.getDaysCountInMonth(n,r),s=this.getDaysCountInPrevMonth(n,r),c=1,l=new Date,u=[],d=Math.ceil((o+a)/7),f=0;f<d;f++){var p=[];if(f==0){for(var m=s-a+1;m<=s;m++){var h=this.getPreviousMonthAndYear(n,r);p.push({day:m,month:h.month,year:h.year,otherMonth:!0,today:this.isToday(l,m,h.month,h.year),selectable:this.isSelectable(m,h.month,h.year,!0)})}for(var g=7-p.length,_=0;_<g;_++)p.push({day:c,month:n,year:r,today:this.isToday(l,c,n,r),selectable:this.isSelectable(c,n,r,!1)}),c++}else for(var v=0;v<7;v++){if(c>o){var y=this.getNextMonthAndYear(n,r);p.push({day:c-o,month:y.month,year:y.year,otherMonth:!0,today:this.isToday(l,c-o,y.month,y.year),selectable:this.isSelectable(c-o,y.month,y.year,!0)})}else p.push({day:c,month:n,year:r,today:this.isToday(l,c,n,r),selectable:this.isSelectable(c,n,r,!1)});c++}this.showWeek&&u.push(this.getWeekNumber(new Date(p[0].year,p[0].month,p[0].day))),i.push(p)}e.push({month:n,year:r,dates:i,weekNumbers:u})}return e},weekDays:function(){for(var e=[],t=this.$primevue.config.locale.firstDayOfWeek,n=0;n<7;n++)e.push(this.$primevue.config.locale.dayNamesMin[t]),t=t==6?0:++t;return e},ticksTo1970:function(){return 719162*24*60*60*1e7},sundayIndex:function(){return this.$primevue.config.locale.firstDayOfWeek>0?7-this.$primevue.config.locale.firstDayOfWeek:0},datePattern:function(){return this.dateFormat||this.$primevue.config.locale.dateFormat},monthPickerValues:function(){for(var e=this,t=[],n=function(t){if(e.minDate){var n=e.minDate.getMonth(),r=e.minDate.getFullYear();if(e.currentYear<r||e.currentYear===r&&t<n)return!1}if(e.maxDate){var i=e.maxDate.getMonth(),a=e.maxDate.getFullYear();if(e.currentYear>a||e.currentYear===a&&t>i)return!1}return!0},r=0;r<=11;r++)t.push({value:this.$primevue.config.locale.monthNamesShort[r],selectable:n(r)});return t},yearPickerValues:function(){for(var e=this,t=[],n=this.currentYear-this.currentYear%10,r=function(t){return!(e.minDate&&e.minDate.getFullYear()>t||e.maxDate&&e.maxDate.getFullYear()<t)},i=0;i<10;i++)t.push({value:n+i,selectable:r(n+i)});return t},formattedCurrentHour:function(){return this.currentHour==0&&this.hourFormat==`12`?this.currentHour+12:this.currentHour<10?`0`+this.currentHour:this.currentHour},formattedCurrentMinute:function(){return this.currentMinute<10?`0`+this.currentMinute:this.currentMinute},formattedCurrentSecond:function(){return this.currentSecond<10?`0`+this.currentSecond:this.currentSecond},todayLabel:function(){return this.$primevue.config.locale.today},clearLabel:function(){return this.$primevue.config.locale.clear},weekHeaderLabel:function(){return this.$primevue.config.locale.weekHeader},monthNames:function(){return this.$primevue.config.locale.monthNames},switchViewButtonDisabled:function(){return this.numberOfMonths>1||this.disabled},isClearIconVisible:function(){return this.showClear&&this.rawValue!=null&&!this.disabled},panelId:function(){return this.$id+`_panel`},containerDataP:function(){return me({fluid:this.$fluid})},panelDataP:function(){return me(vt({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return me(vt({},this.size,this.size))},timePickerDataP:function(){return me({"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:r,Button:C,Portal:Te,CalendarIcon:ct,ChevronLeftIcon:Re,ChevronRightIcon:N,ChevronUpIcon:Ee,ChevronDownIcon:ye,TimesIcon:we},directives:{ripple:Oe}},At=[`id`,`data-p`],jt=[`disabled`,`aria-label`,`aria-expanded`,`aria-controls`],q=[`data-p`],Mt=[`id`,`role`,`aria-modal`,`aria-label`,`data-p`],Nt=[`disabled`,`aria-label`],Pt=[`disabled`,`aria-label`],Ft=[`disabled`,`aria-label`],It=[`disabled`,`aria-label`],Lt=[`data-p-disabled`],Rt=[`abbr`],zt=[`data-p-disabled`],Bt=[`aria-label`,`data-p-today`,`data-p-other-month`],Vt=[`onClick`,`onKeydown`,`aria-selected`,`aria-disabled`,`data-p`],Ht=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Ut=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Wt=[`data-p`];function Gt(e,n,r,i,a,o){var l=se(`InputText`),u=se(`TimesIcon`),d=se(`Button`),f=se(`Portal`),p=ke(`ripple`);return V(),W(`span`,U({ref:`container`,id:e.$id,class:e.cx(`root`),style:e.sx(`root`),"data-p":o.containerDataP},e.ptmi(`root`)),[e.inline?w(``,!0):(V(),g(l,{key:0,ref:o.inputRef,id:e.inputId,role:`combobox`,class:S([e.inputClass,e.cx(`pcInputText`)]),style:s(e.inputStyle),defaultValue:o.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":a.overlayVisible,"aria-controls":a.overlayVisible?o.panelId:void 0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:`none`,disabled:e.disabled,readonly:!e.manualInput||e.readonly,tabindex:0,onInput:o.onInput,onClick:o.onInputClick,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.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?I(e.$slots,`clearicon`,{key:1,class:S(e.cx(`clearIcon`)),clearCallback:o.onClearClick},function(){return[O(u,U({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:o.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):w(``,!0),e.showIcon&&e.iconDisplay===`button`&&!e.inline?I(e.$slots,`dropdownbutton`,{key:2,toggleCallback:o.onButtonClick},function(){return[c(`button`,U({class:e.cx(`dropdown`),disabled:e.disabled,onClick:n[0]||=function(){return o.onButtonClick&&o.onButtonClick.apply(o,arguments)},type:`button`,"aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":a.overlayVisible,"aria-controls":o.panelId},e.ptm(`dropdown`)),[I(e.$slots,`dropdownicon`,{class:S(e.icon)},function(){return[(V(),g(je(e.icon?`span`:`CalendarIcon`),U({class:e.icon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,jt)]}):e.showIcon&&e.iconDisplay===`input`&&!e.inline?(V(),W(_,{key:3},[e.$slots.inputicon||e.showIcon?(V(),W(`span`,U({key:0,class:e.cx(`inputIconContainer`),"data-p":o.inputIconDataP},e.ptm(`inputIconContainer`)),[I(e.$slots,`inputicon`,{class:S(e.cx(`inputIcon`)),clickCallback:o.onButtonClick},function(){return[(V(),g(je(e.icon?`i`:`CalendarIcon`),U({class:[e.icon,e.cx(`inputIcon`)],onClick:o.onButtonClick},e.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,q)):w(``,!0)],64)):w(``,!0),O(f,{appendTo:e.appendTo,disabled:e.inline},{default:t(function(){return[O(Me,U({name:`p-anchored-overlay`,onEnter:n[58]||=function(e){return o.onOverlayEnter(e)},onAfterEnter:o.onOverlayEnterComplete,onAfterLeave:o.onOverlayAfterLeave,onLeave:o.onOverlayLeave},e.ptm(`transition`)),{default:t(function(){return[e.inline||a.overlayVisible?(V(),W(`div`,U({key:0,ref:o.overlayRef,id:o.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:n[55]||=function(){return o.onOverlayClick&&o.onOverlayClick.apply(o,arguments)},onKeydown:n[56]||=function(){return o.onOverlayKeyDown&&o.onOverlayKeyDown.apply(o,arguments)},onMouseup:n[57]||=function(){return o.onOverlayMouseUp&&o.onOverlayMouseUp.apply(o,arguments)},"data-p":o.panelDataP},e.ptm(`panel`)),[e.timeOnly?w(``,!0):(V(),W(_,{key:0},[c(`div`,U({class:e.cx(`calendarContainer`)},e.ptm(`calendarContainer`)),[(V(!0),W(_,null,L(o.months,function(r,i){return V(),W(`div`,U({key:r.month+r.year,class:e.cx(`calendar`)},{ref_for:!0},e.ptm(`calendar`)),[c(`div`,U({class:e.cx(`header`)},{ref_for:!0},e.ptm(`header`)),[I(e.$slots,`header`),I(e.$slots,`prevbutton`,{actionCallback:function(e){return o.onPrevButtonClick(e)},keydownCallback:function(e){return o.onContainerButtonKeydown(e)}},function(){return[R(O(d,U({ref_for:!0,ref:o.previousButtonRef,class:e.cx(`pcPrevButton`),disabled:e.disabled,"aria-label":a.currentView===`year`?e.$primevue.config.locale.prevDecade:a.currentView===`month`?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth,unstyled:e.unstyled,onClick:o.onPrevButtonClick,onKeydown:o.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcPrevButton`),"data-pc-group-section":`navigator`}),{icon:t(function(t){return[I(e.$slots,`previcon`,{},function(){return[(V(),g(je(e.prevIcon?`span`:`ChevronLeftIcon`),U({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`]),[[y,i===0]])]}),c(`div`,U({class:e.cx(`title`)},{ref_for:!0},e.ptm(`title`)),[e.$primevue.config.locale.showMonthAfterYear?(V(),W(_,{key:0},[a.currentView===`year`?w(``,!0):(V(),W(`button`,U({key:0,type:`button`,onClick:n[1]||=function(){return o.switchToYearView&&o.switchToYearView.apply(o,arguments)},onKeydown:n[2]||=function(){return o.onContainerButtonKeydown&&o.onContainerButtonKeydown.apply(o,arguments)},class:e.cx(`selectYear`),disabled:o.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),h(o.getYear(r)),17,Nt)),a.currentView===`date`?(V(),W(`button`,U({key:1,type:`button`,onClick:n[3]||=function(){return o.switchToMonthView&&o.switchToMonthView.apply(o,arguments)},onKeydown:n[4]||=function(){return o.onContainerButtonKeydown&&o.onContainerButtonKeydown.apply(o,arguments)},class:e.cx(`selectMonth`),disabled:o.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),h(o.getMonthName(r.month)),17,Pt)):w(``,!0)],64)):(V(),W(_,{key:1},[a.currentView===`date`?(V(),W(`button`,U({key:0,type:`button`,onClick:n[5]||=function(){return o.switchToMonthView&&o.switchToMonthView.apply(o,arguments)},onKeydown:n[6]||=function(){return o.onContainerButtonKeydown&&o.onContainerButtonKeydown.apply(o,arguments)},class:e.cx(`selectMonth`),disabled:o.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),h(o.getMonthName(r.month)),17,Ft)):w(``,!0),a.currentView===`year`?w(``,!0):(V(),W(`button`,U({key:1,type:`button`,onClick:n[7]||=function(){return o.switchToYearView&&o.switchToYearView.apply(o,arguments)},onKeydown:n[8]||=function(){return o.onContainerButtonKeydown&&o.onContainerButtonKeydown.apply(o,arguments)},class:e.cx(`selectYear`),disabled:o.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),h(o.getYear(r)),17,It))],64)),a.currentView===`year`?(V(),W(`span`,U({key:2,class:e.cx(`decade`)},{ref_for:!0},e.ptm(`decade`)),[I(e.$slots,`decade`,{years:o.yearPickerValues},function(){return[T(h(o.yearPickerValues[0].value)+` - `+h(o.yearPickerValues[o.yearPickerValues.length-1].value),1)]})],16)):w(``,!0)],16),I(e.$slots,`nextbutton`,{actionCallback:function(e){return o.onNextButtonClick(e)},keydownCallback:function(e){return o.onContainerButtonKeydown(e)}},function(){return[R(O(d,U({ref_for:!0,ref:o.nextButtonRef,class:e.cx(`pcNextButton`),disabled:e.disabled,"aria-label":a.currentView===`year`?e.$primevue.config.locale.nextDecade:a.currentView===`month`?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth,unstyled:e.unstyled,onClick:o.onNextButtonClick,onKeydown:o.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcNextButton`),"data-pc-group-section":`navigator`}),{icon:t(function(t){return[I(e.$slots,`nexticon`,{},function(){return[(V(),g(je(e.nextIcon?`span`:`ChevronRightIcon`),U({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`]),[[y,e.numberOfMonths===1?!0:i===e.numberOfMonths-1]])]})],16),a.currentView===`date`?(V(),W(`table`,U({key:0,class:e.cx(`dayView`),role:`grid`},{ref_for:!0},e.ptm(`dayView`)),[c(`thead`,U({ref_for:!0},e.ptm(`tableHeader`)),[c(`tr`,U({ref_for:!0},e.ptm(`tableHeaderRow`)),[e.showWeek?(V(),W(`th`,U({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`}),[I(e.$slots,`weekheaderlabel`,{},function(){return[c(`span`,U({ref_for:!0},e.ptm(`weekHeaderLabel`,{context:{disabled:e.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),h(o.weekHeaderLabel),17)]})],16,Lt)):w(``,!0),(V(!0),W(_,null,L(o.weekDays,function(t){return V(),W(`th`,U({key:t,scope:`col`,abbr:t},{ref_for:!0},e.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:e.cx(`weekDayCell`)}),[c(`span`,U({class:e.cx(`weekDay`)},{ref_for:!0},e.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),h(t),17)],16,Rt)}),128))],16)],16),c(`tbody`,U({ref_for:!0},e.ptm(`tableBody`)),[(V(!0),W(_,null,L(r.dates,function(t,n){return V(),W(`tr`,U({key:t[0].day+``+t[0].month},{ref_for:!0},e.ptm(`tableBodyRow`)),[e.showWeek?(V(),W(`td`,U({key:0,class:e.cx(`weekNumber`)},{ref_for:!0},e.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[c(`span`,U({class:e.cx(`weekLabelContainer`)},{ref_for:!0},e.ptm(`weekLabelContainer`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tablebodycelllabel`}),[I(e.$slots,`weeklabel`,{weekNumber:r.weekNumbers[n]},function(){return[r.weekNumbers[n]<10?(V(),W(`span`,U({key:0,style:{visibility:`hidden`}},{ref_for:!0},e.ptm(`weekLabel`)),`0`,16)):w(``,!0),T(` `+h(r.weekNumbers[n]),1)]})],16,zt)],16)):w(``,!0),(V(!0),W(_,null,L(t,function(t){return V(),W(`td`,U({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:o.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?R((V(),W(`span`,U({key:0,class:e.cx(`day`,{date:t}),onClick:function(e){return o.onDateSelect(e,t)},draggable:`false`,onKeydown:function(e){return o.onDateCellKeydown(e,t,i)},"aria-selected":o.isSelected(t),"aria-disabled":!t.selectable},{ref_for:!0},e.ptm(`day`,{context:{date:t,today:t.today,otherMonth:t.otherMonth,selected:o.isSelected(t),disabled:!t.selectable}}),{"data-p":o.dayDataP(t),"data-pc-group-section":`tablebodycelllabel`}),[I(e.$slots,`date`,{date:t},function(){return[T(h(t.day),1)]})],16,Vt)),[[p]]):w(``,!0),o.isSelected(t)?(V(),W(`div`,U({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),h(t.day),17)):w(``,!0)],16,Bt)}),128))],16)}),128))],16)],16)):w(``,!0)],16)}),128))],16),a.currentView===`month`?(V(),W(`div`,U({key:0,class:e.cx(`monthView`)},e.ptm(`monthView`)),[(V(!0),W(_,null,L(o.monthPickerValues,function(t,n){return R((V(),W(`span`,U({key:t,onClick:function(e){return o.onMonthSelect(e,{month:t,index:n})},onKeydown:function(e){return o.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:o.isMonthSelected(n),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":o.isMonthSelected(n)}),[T(h(t.value)+` `,1),o.isMonthSelected(n)?(V(),W(`div`,U({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),h(t.value),17)):w(``,!0)],16,Ht)),[[p]])}),128))],16)):w(``,!0),a.currentView===`year`?(V(),W(`div`,U({key:1,class:e.cx(`yearView`)},e.ptm(`yearView`)),[(V(!0),W(_,null,L(o.yearPickerValues,function(t){return R((V(),W(`span`,U({key:t.value,onClick:function(e){return o.onYearSelect(e,t)},onKeydown:function(e){return o.onYearCellKeydown(e,t)},class:e.cx(`year`,{year:t})},{ref_for:!0},e.ptm(`year`,{context:{year:t,selected:o.isYearSelected(t.value),disabled:!t.selectable}}),{"data-p-disabled":!t.selectable,"data-p-selected":o.isYearSelected(t.value)}),[T(h(t.value)+` `,1),o.isYearSelected(t.value)?(V(),W(`div`,U({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),h(t.value),17)):w(``,!0)],16,Ut)),[[p]])}),128))],16)):w(``,!0)],64)),(e.showTime||e.timeOnly)&&a.currentView===`date`?(V(),W(`div`,U({key:1,class:e.cx(`timePicker`),"data-p":o.timePickerDataP},e.ptm(`timePicker`)),[c(`div`,U({class:e.cx(`hourPicker`)},e.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[I(e.$slots,`hourincrementbutton`,{callbacks:o.hourIncrementCallbacks},function(){return[O(d,U({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextHour,unstyled:e.unstyled,onMousedown:n[9]||=function(e){return o.onTimePickerElementMouseDown(e,0,1)},onMouseup:n[10]||=function(e){return o.onTimePickerElementMouseUp(e)},onKeydown:[o.onContainerButtonKeydown,n[12]||=B(function(e){return o.onTimePickerElementMouseDown(e,0,1)},[`enter`]),n[13]||=B(function(e){return o.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:n[11]||=function(e){return o.onTimePickerElementMouseLeave()},onKeyup:[n[14]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`enter`]),n[15]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`incrementicon`,{},function(){return[(V(),g(je(e.incrementIcon?`span`:`ChevronUpIcon`),U({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`])]}),c(`span`,U(e.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),h(o.formattedCurrentHour),17),I(e.$slots,`hourdecrementbutton`,{callbacks:o.hourDecrementCallbacks},function(){return[O(d,U({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevHour,unstyled:e.unstyled,onMousedown:n[16]||=function(e){return o.onTimePickerElementMouseDown(e,0,-1)},onMouseup:n[17]||=function(e){return o.onTimePickerElementMouseUp(e)},onKeydown:[o.onContainerButtonKeydown,n[19]||=B(function(e){return o.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),n[20]||=B(function(e){return o.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:n[18]||=function(e){return o.onTimePickerElementMouseLeave()},onKeyup:[n[21]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`enter`]),n[22]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`decrementicon`,{},function(){return[(V(),g(je(e.decrementIcon?`span`:`ChevronDownIcon`),U({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),c(`div`,U(e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[c(`span`,U(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),h(e.timeSeparator),17)],16),c(`div`,U({class:e.cx(`minutePicker`)},e.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[I(e.$slots,`minuteincrementbutton`,{callbacks:o.minuteIncrementCallbacks},function(){return[O(d,U({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[23]||=function(e){return o.onTimePickerElementMouseDown(e,1,1)},onMouseup:n[24]||=function(e){return o.onTimePickerElementMouseUp(e)},onKeydown:[o.onContainerButtonKeydown,n[26]||=B(function(e){return o.onTimePickerElementMouseDown(e,1,1)},[`enter`]),n[27]||=B(function(e){return o.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:n[25]||=function(e){return o.onTimePickerElementMouseLeave()},onKeyup:[n[28]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`enter`]),n[29]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`incrementicon`,{},function(){return[(V(),g(je(e.incrementIcon?`span`:`ChevronUpIcon`),U({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`])]}),c(`span`,U(e.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),h(o.formattedCurrentMinute),17),I(e.$slots,`minutedecrementbutton`,{callbacks:o.minuteDecrementCallbacks},function(){return[O(d,U({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[30]||=function(e){return o.onTimePickerElementMouseDown(e,1,-1)},onMouseup:n[31]||=function(e){return o.onTimePickerElementMouseUp(e)},onKeydown:[o.onContainerButtonKeydown,n[33]||=B(function(e){return o.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),n[34]||=B(function(e){return o.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:n[32]||=function(e){return o.onTimePickerElementMouseLeave()},onKeyup:[n[35]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`enter`]),n[36]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`decrementicon`,{},function(){return[(V(),g(je(e.decrementIcon?`span`:`ChevronDownIcon`),U({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?(V(),W(`div`,U({key:0,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[c(`span`,U(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),h(e.timeSeparator),17)],16)):w(``,!0),e.showSeconds?(V(),W(`div`,U({key:1,class:e.cx(`secondPicker`)},e.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[I(e.$slots,`secondincrementbutton`,{callbacks:o.secondIncrementCallbacks},function(){return[O(d,U({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[37]||=function(e){return o.onTimePickerElementMouseDown(e,2,1)},onMouseup:n[38]||=function(e){return o.onTimePickerElementMouseUp(e)},onKeydown:[o.onContainerButtonKeydown,n[40]||=B(function(e){return o.onTimePickerElementMouseDown(e,2,1)},[`enter`]),n[41]||=B(function(e){return o.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:n[39]||=function(e){return o.onTimePickerElementMouseLeave()},onKeyup:[n[42]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`enter`]),n[43]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`incrementicon`,{},function(){return[(V(),g(je(e.incrementIcon?`span`:`ChevronUpIcon`),U({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`])]}),c(`span`,U(e.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),h(o.formattedCurrentSecond),17),I(e.$slots,`seconddecrementbutton`,{callbacks:o.secondDecrementCallbacks},function(){return[O(d,U({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[44]||=function(e){return o.onTimePickerElementMouseDown(e,2,-1)},onMouseup:n[45]||=function(e){return o.onTimePickerElementMouseUp(e)},onKeydown:[o.onContainerButtonKeydown,n[47]||=B(function(e){return o.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),n[48]||=B(function(e){return o.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:n[46]||=function(e){return o.onTimePickerElementMouseLeave()},onKeyup:[n[49]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`enter`]),n[50]||=B(function(e){return o.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`decrementicon`,{},function(){return[(V(),g(je(e.decrementIcon?`span`:`ChevronDownIcon`),U({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16)):w(``,!0),e.hourFormat==`12`?(V(),W(`div`,U({key:2,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[c(`span`,U(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),h(e.timeSeparator),17)],16)):w(``,!0),e.hourFormat==`12`?(V(),W(`div`,U({key:3,class:e.cx(`ampmPicker`)},e.ptm(`ampmPicker`)),[I(e.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return o.toggleAMPM(e)},keydownCallback:function(e){return o.onContainerButtonKeydown(e)}},function(){return[O(d,U({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.am,disabled:e.disabled,unstyled:e.unstyled,onClick:n[51]||=function(e){return o.toggleAMPM(e)},onKeydown:o.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`incrementicon`,{class:S(e.cx(`incrementIcon`))},function(){return[(V(),g(je(e.incrementIcon?`span`:`ChevronUpIcon`),U({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`])]}),c(`span`,U(e.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),h(a.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),17),I(e.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return o.toggleAMPM(e)},keydownCallback:function(e){return o.onContainerButtonKeydown(e)}},function(){return[O(d,U({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.pm,disabled:e.disabled,onClick:n[52]||=function(e){return o.toggleAMPM(e)},onKeydown:o.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:t(function(t){return[I(e.$slots,`decrementicon`,{class:S(e.cx(`decrementIcon`))},function(){return[(V(),g(je(e.decrementIcon?`span`:`ChevronDownIcon`),U({class:[e.cx(`decrementIcon`),t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`onKeydown`,`pt`])]})],16)):w(``,!0)],16,Wt)):w(``,!0),e.showButtonBar?(V(),W(`div`,U({key:2,class:e.cx(`buttonbar`)},e.ptm(`buttonbar`)),[I(e.$slots,`buttonbar`,{todayCallback:function(e){return o.onTodayButtonClick(e)},clearCallback:function(e){return o.onClearButtonClick(e)}},function(){return[I(e.$slots,`todaybutton`,{actionCallback:function(e){return o.onTodayButtonClick(e)},keydownCallback:function(e){return o.onContainerButtonKeydown(e)}},function(){return[O(d,U({label:o.todayLabel,onClick:n[53]||=function(e){return o.onTodayButtonClick(e)},class:e.cx(`pcTodayButton`),unstyled:e.unstyled,onKeydown:o.onContainerButtonKeydown},e.todayButtonProps,{pt:e.ptm(`pcTodayButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]}),I(e.$slots,`clearbutton`,{actionCallback:function(e){return o.onClearButtonClick(e)},keydownCallback:function(e){return o.onContainerButtonKeydown(e)}},function(){return[O(d,U({label:o.clearLabel,onClick:n[54]||=function(e){return o.onClearButtonClick(e)},class:e.cx(`pcClearButton`),unstyled:e.unstyled,onKeydown:o.onContainerButtonKeydown},e.clearButtonProps,{pt:e.ptm(`pcClearButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]})]})],16)):w(``,!0),I(e.$slots,`footer`)],16,Mt)):w(``,!0)]}),_:3},16,[`onAfterEnter`,`onAfterLeave`,`onLeave`])]}),_:3},8,[`appendTo`,`disabled`])],16,At)}kt.render=Gt;function Kt(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;let[n,r,i]=[Number(t[1]),Number(t[2]),Number(t[3])],a=new Date(n,r-1,i);return a.getFullYear()===n&&a.getMonth()===r-1&&a.getDate()===i?a:null}function qt(e,t=new Date){let n=Kt(e);if(!n)return null;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n.getTime()-r.getTime())/864e5)}function Jt(e,t=new Date){let n=qt(e,t);return n===null?null:n<0?`overdue`:n===0?`today`:n<=2?`soon`:`later`}function Yt(e,t){let n=Kt(e);return n?n.toLocaleDateString(t,{day:`2-digit`,month:`2-digit`,year:`numeric`}):e}var Xt={class:`kb-card__top`},Zt={class:`kb-card__title`},Qt={class:`kb-card__actions`},$t={key:0,class:`kb-card__groups`},en={key:1,class:`kb-card__assignees`},tn=[`title`],J=[`src`,`onError`],nn={key:2,class:`kb-card__badges`},rn={key:1,class:`kb-card__prio`},an={key:2,class:`pi pi-arrow-up`},on={key:3,class:`kb-card__img-badge`},sn={key:4,class:`pi pi-align-left`},cn={key:5,class:`kb-card__img-badge`},ln={key:6,class:`kb-card__img-badge`},un=u(p({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(e){let t=e,n=o(()=>{let e=t.card.deadline;if(!e)return null;let n=Jt(e);return n?{label:Yt(e),state:n}:null}),r=f(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 l=ke(`tooltip`);return V(),W(_,null,[c(`div`,Xt,[c(`span`,Zt,h(t.card.title),1),c(`div`,Qt,[I(e.$slots,`actions`,{},void 0,!0)])]),t.card.groups?.length?(V(),W(`div`,$t,[(V(!0),W(_,null,L(t.card.groups,e=>(V(),W(`span`,{key:e,class:`kb-card__group`},h(e),1))),128))])):w(``,!0),t.card.assignees?.length?(V(),W(`div`,en,[(V(!0),W(_,null,L(t.card.assignees,e=>(V(),W(`span`,{key:e.id,class:`kb-card__avatar`,style:s(i(e.id)),title:e.name},[t.avatarUrl&&!r.has(e.id)?(V(),W(`img`,{key:0,src:t.avatarUrl(e.id),alt:``,onError:t=>r.add(e.id)},null,40,J)):(V(),W(_,{key:1},[T(h(a(e.name)),1)],64))],12,tn))),128))])):w(``,!0),t.card.markdown||t.card.images.length||t.card.commentCount||t.childCount||t.hasParent||n.value||e.$slots.badges?(V(),W(`div`,nn,[n.value?R((V(),W(`span`,{key:0,class:S([`kb-card__deadline`,`kb-card__deadline--${n.value.state}`])},[o[0]||=c(`i`,{class:`pi pi-calendar`},null,-1),T(` `+h(n.value.label),1)],2)),[[l,t.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):w(``,!0),t.card.priority?R((V(),W(`span`,rn,[T(h(t.card.priority),1)])),[[l,t.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):w(``,!0),t.hasParent?R((V(),W(`i`,an,null,512)),[[l,t.t(`card.hasParent`),void 0,{bottom:!0}]]):w(``,!0),t.childCount?R((V(),W(`span`,on,[o[1]||=c(`i`,{class:`pi pi-sitemap`},null,-1),T(` `+h(t.childCount),1)])),[[l,t.t(`card.hasChildren`),void 0,{bottom:!0}]]):w(``,!0),t.card.markdown?(V(),W(`i`,sn)):w(``,!0),t.card.images.length?(V(),W(`span`,cn,[o[2]||=c(`i`,{class:`pi pi-image`},null,-1),T(` `+h(t.card.images.length),1)])):w(``,!0),t.card.commentCount?(V(),W(`span`,ln,[o[3]||=c(`i`,{class:`pi pi-comment`},null,-1),T(` `+h(t.card.commentCount),1)])):w(``,!0),I(e.$slots,`badges`,{},void 0,!0)])):w(``,!0)],64)}}}),[[`__scopeId`,`data-v-f1127747`]]),dn={key:0,class:`kb-files__thumb`},fn=[`src`,`alt`],pn={key:1,class:`pi pi-file kb-files__icon`},mn=[`title`,`onClick`],hn=[`title`],gn={class:`kb-files__size`},_n=[`title`,`onClick`],vn=u(p({__name:`AttachmentList`,props:{files:{},preview:{},openable:{type:Boolean,default:!0},removable:{type:Boolean,default:!1},removeLabel:{default:``},compact:{type:Boolean,default:!1}},emits:[`open`,`remove`],setup(e,{emit:t}){let r=t;function i(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}return(t,a)=>e.files.length?(V(),W(`ul`,{key:0,class:S([`kb-files`,{"kb-files--inline":e.compact}])},[(V(!0),W(_,null,L(e.files,(t,o)=>(V(),W(`li`,{key:t.id,class:`kb-files__item`},[e.preview(t)?(V(),W(`span`,dn,[c(`img`,{src:e.preview(t),alt:t.name},null,8,fn)])):(V(),W(`i`,pn)),e.openable?(V(),W(`button`,{key:2,class:`kb-files__name`,title:t.name,onClick:n(e=>r(`open`,t),[`stop`])},h(t.name),9,mn)):(V(),W(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:t.name},h(t.name),9,hn)),c(`span`,gn,h(i(t.size)),1),e.removable?(V(),W(`button`,{key:4,class:`kb-files__remove`,title:e.removeLabel,onClick:n(e=>r(`remove`,o),[`stop`])},[...a[0]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,_n)):w(``,!0)]))),128))],2)):w(``,!0)}}),[[`__scopeId`,`data-v-f30e50ba`]]),Y=Uint8Array,yn=Uint16Array,bn=Int32Array,xn=new Y([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Sn=new Y([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Cn=new Y([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wn=function(e,t){for(var n=new yn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new bn(n[30]),r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},X=wn(xn,2),Tn=X.b,En=X.r;Tn[28]=258,En[258]=28;var Dn=wn(Sn,0),On=Dn.b;Dn.r;for(var kn=new yn(32768),Z=0;Z<32768;++Z){var An=(Z&43690)>>1|(Z&21845)<<1;An=(An&52428)>>2|(An&13107)<<2,An=(An&61680)>>4|(An&3855)<<4,kn[Z]=((An&65280)>>8|(An&255)<<8)>>1}for(var jn=(function(e,t,n){for(var r=e.length,i=0,a=new yn(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new yn(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new yn(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=o[e[i]-1]++<<u,f=d|(1<<u)-1;d<=f;++d)s[kn[d]>>c]=l}else for(s=new yn(r),i=0;i<r;++i)e[i]&&(s[i]=kn[o[e[i]-1]++]>>15-e[i]);return s}),Mn=new Y(288),Z=0;Z<144;++Z)Mn[Z]=8;for(var Z=144;Z<256;++Z)Mn[Z]=9;for(var Z=256;Z<280;++Z)Mn[Z]=7;for(var Z=280;Z<288;++Z)Mn[Z]=8;for(var Nn=new Y(32),Z=0;Z<32;++Z)Nn[Z]=5;var Pn=jn(Mn,9,1),Fn=jn(Nn,5,1),In=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Ln=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Rn=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},zn=function(e){return(e+7)/8|0},Bn=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Y(e.subarray(t,n))},Vn=[`unexpected EOF`,`invalid block type`,`invalid length/literal`,`invalid distance`,`stream finished`,`no stream handler`,,`no callback`,`invalid UTF-8 data`,`extra field too long`,`date not in range 1980-2099`,`filename too long`,`stream finishing`,`invalid zip data`],Q=function(e,t,n){var r=Error(t||Vn[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Q),!n)throw r;return r},Hn=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new Y(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new Y(i*3));var l=function(e){var t=n.length;if(e>t){var r=new Y(Math.max(t*2,e));r.set(n),n=r}},u=t.f||0,d=t.p||0,f=t.b||0,p=t.l,m=t.d,h=t.m,g=t.n,_=i*8;do{if(!p){u=Ln(e,d,1);var v=Ln(e,d+1,3);if(d+=3,v)if(v==1)p=Pn,m=Fn,h=9,g=5;else if(v==2){var y=Ln(e,d,31)+257,b=Ln(e,d+10,15)+4,x=y+Ln(e,d+5,31)+1;d+=14;for(var S=new Y(x),ee=new Y(19),C=0;C<b;++C)ee[Cn[C]]=Ln(e,d+C*3,7);d+=b*3;for(var te=In(ee),w=(1<<te)-1,ne=jn(ee,te,1),C=0;C<x;){var re=ne[Ln(e,d,w)];d+=re&15;var T=re>>4;if(T<16)S[C++]=T;else{var E=0,D=0;for(T==16?(D=3+Ln(e,d,3),d+=2,E=S[C-1]):T==17?(D=3+Ln(e,d,7),d+=3):T==18&&(D=11+Ln(e,d,127),d+=7);D--;)S[C++]=E}}var O=S.subarray(0,y),k=S.subarray(y);h=In(O),g=In(k),p=jn(O,h,1),m=jn(k,g,1)}else Q(1);else{var T=zn(d)+4,ie=e[T-4]|e[T-3]<<8,ae=T+ie;if(ae>i){c&&Q(0);break}s&&l(f+ie),n.set(e.subarray(T,ae),f),t.b=f+=ie,t.p=d=ae*8,t.f=u;continue}if(d>_){c&&Q(0);break}}s&&l(f+131072);for(var oe=(1<<h)-1,se=(1<<g)-1,A=d;;A=d){var E=p[Rn(e,d)&oe],j=E>>4;if(d+=E&15,d>_){c&&Q(0);break}if(E||Q(2),j<256)n[f++]=j;else if(j==256){A=d,p=null;break}else{var ce=j-254;if(j>264){var C=j-257,M=xn[C];ce=Ln(e,d,(1<<M)-1)+Tn[C],d+=M}var N=m[Rn(e,d)&se],P=N>>4;N||Q(3),d+=N&15;var k=On[P];if(P>3){var M=Sn[P];k+=Rn(e,d)&(1<<M)-1,d+=M}if(d>_){c&&Q(0);break}s&&l(f+131072);var le=f+ce;if(f<k){var F=a-k,I=Math.min(k,le);for(F+f<0&&Q(3);f<I;++f)n[f]=r[F+f]}for(;f<le;++f)n[f]=n[f-k]}}t.l=p,t.p=A,t.b=f,t.f=u,p&&(u=1,t.m=h,t.d=m,t.n=g)}while(!u);return f!=n.length&&o?Bn(n,0,f):n.subarray(0,f)},Un=new Y(0),Wn=function(e,t){return e[t]|e[t+1]<<8},Gn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Kn=function(e,t){return Gn(e,t)+Gn(e,t+4)*4294967296};function qn(e,t){return Hn(e,{i:2},t&&t.out,t&&t.dictionary)}var Jn=typeof TextDecoder<`u`&&new TextDecoder;try{Jn.decode(Un,{stream:!0})}catch{}var Yn=function(e){for(var t=``,n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:Bn(e,n-1)};i?i==3?(r=((r&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|r>>10,56320|r&1023)):i&1?t+=String.fromCharCode((r&31)<<6|e[n++]&63):t+=String.fromCharCode((r&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(r)}};function Xn(e,t){if(t){for(var n=``,r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}else if(Jn)return Jn.decode(e);else{var i=Yn(e),a=i.s,n=i.r;return n.length&&Q(8),a}}var Zn=function(e,t){return t+30+Wn(e,t+26)+Wn(e,t+28)},Qn=function(e,t,n){var r=Wn(e,t+28),i=Xn(e.subarray(t+46,t+46+r),!(Wn(e,t+8)&2048)),a=t+46+r,o=Gn(e,t+20),s=n&&o==4294967295?$n(e,a):[o,Gn(e,t+24),Gn(e,t+42)],c=s[0],l=s[1],u=s[2];return[Wn(e,t+10),c,l,i,a+Wn(e,t+30)+Wn(e,t+32),u]},$n=function(e,t){for(;Wn(e,t)!=1;t+=4+Wn(e,t+2));return[Kn(e,t+12),Kn(e,t+4),Kn(e,t+20)]};function er(e,t){for(var n={},r=e.length-22;Gn(e,r)!=101010256;--r)(!r||e.length-r>65558)&&Q(13);var i=Wn(e,r+8);if(!i)return{};var a=Gn(e,r+16),o=a==4294967295||i==65535;if(o){var s=Gn(e,r-12);o=Gn(e,s)==101075792,o&&(i=Gn(e,s+32),a=Gn(e,s+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=Qn(e,a,o),d=u[0],f=u[1],p=u[2],m=u[3],h=u[4],g=u[5],_=Zn(e,g);a=h,(!c||c({name:m,size:f,originalSize:p,compression:d}))&&(d?d==8?n[m]=qn(e.subarray(_,_+f),{out:new Y(p)}):Q(14,`unknown compression type `+d):n[m]=Bn(e,_,_+f))}return n}var tr=2e3,nr=100,rr=5e3,ir=300,ar={csv:`sheet`,tsv:`sheet`,xlsx:`sheet`,xlsm:`sheet`,ods:`sheet`,docx:`doc`,odt:`doc`,pptx:`slides`,odp:`slides`},or={"text/csv":`sheet`,"text/tab-separated-values":`sheet`,"application/csv":`sheet`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":`sheet`,"application/vnd.ms-excel.sheet.macroenabled.12":`sheet`,"application/vnd.oasis.opendocument.spreadsheet":`sheet`,"application/vnd.openxmlformats-officedocument.wordprocessingml.document":`doc`,"application/vnd.oasis.opendocument.text":`doc`,"application/vnd.openxmlformats-officedocument.presentationml.presentation":`slides`,"application/vnd.oasis.opendocument.presentation":`slides`};function sr(e,t){return ar[t.toLowerCase().split(`.`).pop()??``]??or[(e||``).toLowerCase().split(`;`)[0].trim()]??null}async function cr(e,t,n,r){let i=n.toLowerCase().split(`.`).pop()??``;if(i===`csv`||i===`tsv`)return mr(new TextDecoder().decode(t),n);let a=er(new Uint8Array(t)),o=a[`content.xml`];return o?xr(e,Xn(o)):e===`doc`?{mode:`render`,render:e=>lr(t,r,e)}:e===`slides`?yr(a):ur(t,r)}async function lr(e,t,n){let{renderAsync:r}=await k(async()=>{let{renderAsync:e}=await import(`./docx-preview-CAEo0pZg.js`);return{renderAsync:e}},__vite__mapDeps([0,1,2]));await r(new Blob([e],{type:t}),n,void 0,{inWrapper:!0,breakPages:!0,renderAltChunks:!1,renderComments:!1,useBase64URL:!0}),fr(n)}async function ur(e,t){let n=(await k(async()=>{let{default:e}=await import(`./browser-CE5P0iHW.js`);return{default:e}},[])).default,r=await n(new Blob([e],{type:t})),i=!1,a=r.map((e,t)=>(e.data.length>tr&&(i=!0),{name:e.sheet||`Sheet${t+1}`,rows:e.data.slice(0,tr).map(e=>(e.length>nr&&(i=!0),e.slice(0,nr).map(dr)))}));if(!a.length)throw Error(`no worksheet`);return{mode:`sheet`,sheets:a,truncated:i}}function dr(e){if(e==null)return``;if(e instanceof Date){let t=e.toISOString();return t.endsWith(`T00:00:00.000Z`)?t.slice(0,10):t.slice(0,19).replace(`T`,` `)}if(typeof e==`object`)try{return JSON.stringify(e)??``}catch{return`[objet]`}return typeof e==`string`?e:String(e)}function fr(e){for(let t of Array.from(e.querySelectorAll(`script, iframe, object, embed`)))t.remove();for(let t of Array.from(e.querySelectorAll(`*`)))for(let e of Array.from(t.attributes)){let n=e.name.toLowerCase();(n.startsWith(`on`)||/^(href|src|xlink:href)$/.test(n)&&/^\s*javascript:/i.test(e.value))&&t.removeAttribute(e.name)}}function pr(e){let t=e.slice(0,4096).split(/\r?\n/)[0]??``,n=[`,`,`;`,` `,`|`].map(e=>[e,t.split(e).length]);return n.sort((e,t)=>t[1]-e[1]),n[0][1]>1?n[0][0]:`,`}function mr(e,t){let n=t.toLowerCase().endsWith(`.tsv`)?` `:pr(e),r=[],i=[],a=``,o=!1;for(let t=0;t<e.length;t+=1){let s=e[t];if(o){s===`"`?e[t+1]===`"`?(a+=`"`,t+=1):o=!1:a+=s;continue}if(s===`"`)o=!0;else if(s===n)i.push(a),a=``;else if(s===`
570
- `||s===`\r`){if(s===`\r`&&e[t+1]===`
571
- `&&(t+=1),i.push(a),a=``,r.push(i),i=[],r.length>=tr)break}else a+=s}(a||i.length)&&(i.push(a),r.push(i));let s=r.length>=tr;return{mode:`sheet`,sheets:[{name:t||`CSV`,rows:r.map(hr)}],truncated:s}}function hr(e){return e.length>nr?e.slice(0,nr):e}function gr(e){let t=new DOMParser().parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length)throw Error(`invalid XML`);return t}function _r(e,t){return Array.from(e.getElementsByTagName(t))}function vr(e,t){return _r(e,t).map(e=>e.textContent??``).join(``)}function yr(e){let t=Object.keys(e).filter(e=>/^ppt\/slides\/slide\d+\.xml$/.test(e)).sort((e,t)=>br(e)-br(t));if(!t.length)throw Error(`no slide`);let n=[];for(let r of t.slice(0,ir)){let t=_r(gr(Xn(e[r])),`a:p`).map(e=>vr(e,`a:t`).trim()).filter(Boolean);n.push({title:t[0]??``,lines:t.slice(1)})}return{mode:`slides`,slides:n,truncated:t.length>ir}}function br(e){return Number(/(\d+)\.xml$/.exec(e)?.[1]??0)}function xr(e,t){let n=gr(t);return e===`sheet`?Cr(n):e===`doc`?wr(n):Tr(n)}function Sr(e,t,n){let r=Number(e.getAttribute(t)??`1`);return!Number.isFinite(r)||r<1?1:Math.min(r,n)}function Cr(e){let t=[],n=!1;for(let r of _r(e,`table:table`)){let e=[];for(let t of _r(r,`table:table-row`)){if(e.length>=tr){n=!0;break}let r=[];for(let e of _r(t,`table:table-cell`)){if(r.length>=nr){n=!0;break}let t=_r(e,`text:p`).map(e=>e.textContent??``).join(`
572
- `),i=Sr(e,`table:number-columns-repeated`,nr);for(let e=0;e<(t?i:1);e+=1)r.push(t)}for(;r.length&&r[r.length-1]===``;)r.pop();let i=Sr(t,`table:number-rows-repeated`,tr);for(let t=0;t<(r.length?i:1);t+=1)e.push([...r])}for(;e.length&&e[e.length-1].length===0;)e.pop();t.push({name:r.getAttribute(`table:name`)||`Table${t.length+1}`,rows:e})}if(!t.length)throw Error(`no table`);return{mode:`sheet`,sheets:t,truncated:n}}function wr(e){let t=e.getElementsByTagName(`office:text`)[0];if(!t)throw Error(`no text body`);let n=[],r=!1,i=e=>{for(let t of Array.from(e.children)){if(n.length>=rr){r=!0;return}let e=(t.textContent??``).trim();if(t.tagName===`text:h`)e&&n.push({type:`heading`,level:Math.min(6,Number(t.getAttribute(`text:outline-level`)??`1`)||1),text:e});else if(t.tagName===`text:p`)e&&n.push({type:`paragraph`,text:e});else if(t.tagName===`text:list`)for(let e of _r(t,`text:list-item`)){let t=(e.textContent??``).trim();t&&n.push({type:`list`,text:t})}else t.tagName===`table:table`?n.push({type:`table`,rows:_r(t,`table:table-row`).slice(0,tr).map(e=>_r(e,`table:table-cell`).slice(0,nr).map(e=>(e.textContent??``).trim()))}):t.children.length&&i(t)}};return i(t),{mode:`blocks`,blocks:n,truncated:r}}function Tr(e){let t=_r(e,`draw:page`);if(!t.length)throw Error(`no slide`);return{mode:`slides`,slides:t.slice(0,ir).map(e=>{let t=_r(e,`text:p`).map(e=>(e.textContent??``).trim()).filter(Boolean);return{title:t[0]??``,lines:t.slice(1)}}),truncated:t.length>ir}}var Er={key:0,class:`kb-upload`},Dr={key:0,class:`kb-upload__list`},Or=[`title`],kr={class:`kb-upload__bar`},Ar={class:`kb-upload__pct`},jr={key:1,class:`kb-upload__status`},Mr={key:2,class:`kb-upload__errors`},Nr=u(p({__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?(V(),W(`div`,Er,[e.queue.length?(V(),W(`ul`,Dr,[(V(!0),W(_,null,L(e.queue,e=>(V(),W(`li`,{key:e.key},[c(`span`,{class:`kb-upload__name`,title:e.name},h(e.name),9,Or),c(`span`,kr,[c(`span`,{class:`kb-upload__bar-fill`,style:s({width:`${Math.round(e.ratio*100)}%`})},null,4)]),c(`span`,Ar,h(Math.round(e.ratio*100))+`%`,1)]))),128))])):e.uploading?(V(),W(`p`,jr,h(e.uploadingLabel),1)):w(``,!0),e.errors.length?(V(),W(`ul`,Mr,[(V(!0),W(_,null,L(e.errors,(e,t)=>(V(),W(`li`,{key:t},h(e.name)+` — `+h(e.reason),1))),128))])):w(``,!0)])):w(``,!0)}}),[[`__scopeId`,`data-v-06e54521`]]);function Pr(e,t){let n=new Map(e.map(e=>[e.id,e])),r=[],i=new Set,a=t;for(;a&&n.has(a)&&!i.has(a);)i.add(a),r.unshift(a),a=n.get(a).parentId;return r}function Fr(e,t){let n=[],r=new Map,i=[...e].sort((e,t)=>e.order-t.order||e.id.localeCompare(t.id));for(let e of i){let i=n;for(let n of Pr(t,e.groupId)){let e=r.get(n);e||(e={kind:`group`,id:n,children:[]},r.set(n,e),i.push(e)),i=e.children}i.push({kind:`column`,id:e.id,children:[]})}let a=e=>{let i=r.get(e.id);if(i)return i;let o={kind:`group`,id:e.id,children:[]};r.set(e.id,o);let s=e.parentId?t.find(t=>t.id===e.parentId):void 0;return(s?a(s).children:n).push(o),o};for(let e of t)Pr(t,e.id).length&&a(e);return n}function Ir(e){return e.flatMap(e=>e.kind===`column`?[e.id]:Ir(e.children))}function Lr(e,t,n,r){let i=Fr(e,t),a=e=>{let t=e.findIndex(e=>e.id===n);if(t!==-1){let n=t+r;if(n<0||n>=e.length)return!1;let[i]=e.splice(t,1);return e.splice(n,0,i),!0}return e.some(e=>e.kind===`group`&&a(e.children))};return a(i)?Ir(i):null}var Rr={class:`kg-lead`},zr={key:0,class:`kg-create`},Br={class:`kg-tree`},Vr={key:0,class:`kg-empty`},Hr=[`draggable`,`onDragstart`,`onDragover`,`onDrop`],Ur={key:2,class:`kg-row__title`},Wr={key:3,class:`kg-row__count`},Gr={key:4,class:`kg-row__actions`},Kr=[`onClick`],qr={class:`kg-loose__label`},Jr={key:0,class:`kg-empty`},Yr=[`draggable`,`onDragstart`],Xr={class:`kg-row__title`},Zr=u(p({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(e,{emit:i}){let a=e,u=i,d=pe(),f=a.t,p=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],m=o(()=>new Map(a.groups.map(e=>[e.id,e])));function v(e){return a.columns.filter(t=>(t.groupId&&m.value.has(t.groupId)?t.groupId:void 0)===e)}function y(e){return a.groups.filter(t=>(t.parentId??void 0)===e)}function b(e){return v(e).length+y(e).reduce((e,t)=>e+b(t.id),0)}let x=o(()=>Fr(a.columns,a.groups)),ee=o(()=>{let e=[],t=(n,r)=>{for(let i of n){if(i.kind===`column`){if(r===0)continue;let t=a.columns.find(e=>e.id===i.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:r});continue}let n=m.value.get(i.id);n&&(e.push({kind:`group`,id:n.id,title:n.title,color:n.color,depth:r,columnCount:b(n.id)}),t(i.children,r+1))}};return t(x.value,0),e});function te(e,t){let n=Lr(a.columns,a.groups,e,t);n&&u(`intent`,{kind:`columns-reorder`,columnIds:n})}function ne(e,t){return Lr(a.columns,a.groups,e,t)!==null}let re=o(()=>v(void 0)),T=l(``);function E(){let e=T.value.trim();e&&(u(`intent`,{kind:`group-add`,title:e,color:p[a.groups.length%p.length]}),T.value=``)}let D=l(null);function k(e){e.kind===`group`&&(D.value={id:e.id,title:e.title})}function ae(){let e=D.value;if(!e)return;let t=e.title.trim(),n=m.value.get(e.id);t&&n&&t!==n.title&&u(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),D.value=null}function oe(e,t){let n=m.value.get(e)?.color;u(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function se(e){e.kind===`group`&&d.require({message:f(`groups.deleteConfirm`,{title:e.title}),header:f(`groups.deleteHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,accept:()=>u(`intent`,{kind:`group-delete`,groupId:e.id})})}let A=l(null),j=l(null);function ce(e,t,n){a.readOnly||(A.value={kind:e,id:t},n.dataTransfer?.setData(`text/plain`,t),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`))}function M(e,t){if(!e)return!1;if(e.kind===`column`||t===null)return!0;let n=t,r=new Set;for(;n&&!r.has(n);){if(n===e.id)return!1;r.add(n),n=m.value.get(n)?.parentId}return!0}function N(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(j.value=null)}function P(e,t){M(A.value,e)&&(t.preventDefault(),j.value=e??`root`)}function le(e){let t=a.columns.find(t=>t.id===e)?.groupId;return t&&m.value.has(t)?t:null}function F(e){let t=A.value,n=M(t,e);j.value=null,A.value=null,!(!t||!n)&&u(`intent`,{kind:`group-assign`,member:t,groupId:e})}function I(){u(`update:visible`,!1)}return(i,a)=>(V(),g(H(ie),{visible:e.visible,header:H(f)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":I},{default:t(()=>[c(`p`,Rr,h(H(f)(`groups.lead`)),1),e.readOnly?w(``,!0):(V(),W(`div`,zr,[O(H(r),{modelValue:T.value,"onUpdate:modelValue":a[0]||=e=>T.value=e,placeholder:H(f)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:B(E,[`enter`])},null,8,[`modelValue`,`placeholder`]),O(H(C),{label:H(f)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:E},null,8,[`label`])])),c(`div`,Br,[ee.value.length?w(``,!0):(V(),W(`div`,Vr,h(H(f)(`groups.empty`)),1)),(V(!0),W(_,null,L(ee.value,t=>(V(),W(`div`,{key:`${t.kind}-${t.id}`,class:S([`kg-row`,{"kg-row--group":t.kind===`group`,"kg-row--target":j.value===t.id}]),style:s({paddingLeft:`${t.depth*1.25}rem`}),draggable:!e.readOnly,onDragstart:e=>ce(t.kind,t.id,e),onDragover:e=>P(t.kind===`group`?t.id:le(t.id),e),onDragleave:N,onDrop:n(e=>F(t.kind===`group`?t.id:le(t.id)),[`prevent`]),onDragend:a[2]||=e=>{A.value=null,j.value=null}},[c(`i`,{class:S([t.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),t.kind===`group`?(V(),W(`span`,{key:0,class:`kg-swatch`,style:s({background:t.color||`var(--p-text-muted-color)`})},null,4)):w(``,!0),D.value&&D.value.id===t.id?(V(),g(H(r),{key:1,modelValue:D.value.title,"onUpdate:modelValue":a[1]||=e=>D.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:B(ae,[`enter`]),onBlur:ae},null,8,[`modelValue`])):(V(),W(`span`,Ur,h(t.title),1)),t.kind===`group`?(V(),W(`span`,Wr,h(H(f)(`groups.columnCount`,{count:t.columnCount})),1)):w(``,!0),e.readOnly?w(``,!0):(V(),W(`div`,Gr,[O(H(C),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!ne(t.id,-1),"aria-label":H(f)(`groups.moveUp`),class:`kg-move`,onClick:e=>te(t.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),O(H(C),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!ne(t.id,1),"aria-label":H(f)(`groups.moveDown`),class:`kg-move`,onClick:e=>te(t.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),t.kind===`group`?(V(),W(_,{key:0},[(V(),W(_,null,L(p,e=>c(`span`,{key:e,class:S([`kg-dot`,{"kg-dot--on":t.color===e}]),style:s({background:e}),onClick:n=>oe(t.id,e)},null,14,Kr)),64)),O(H(C),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>k(t)},null,8,[`onClick`]),O(H(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>se(t)},null,8,[`onClick`])],64)):w(``,!0)]))],46,Hr))),128))]),c(`div`,{class:S([`kg-loose`,{"kg-row--target":j.value===`root`}]),onDragover:a[4]||=e=>P(null,e),onDragleave:N,onDrop:a[5]||=n(e=>F(null),[`prevent`])},[c(`div`,qr,h(H(f)(`groups.loose`)),1),re.value.length?w(``,!0):(V(),W(`div`,Jr,h(H(f)(`groups.looseEmpty`)),1)),(V(!0),W(_,null,L(re.value,t=>(V(),W(`div`,{key:t.id,class:`kg-row`,draggable:!e.readOnly,onDragstart:e=>ce(`column`,t.id,e),onDragend:a[3]||=e=>{A.value=null,j.value=null}},[a[6]||=c(`i`,{class:`pi pi-list kg-row__icon`},null,-1),c(`span`,Xr,h(t.title),1)],40,Yr))),128))],34)]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-48711454`]]),Qr={class:`kb-header`},$r={class:`kb-header__search`},ei={key:1,class:`kb-header__search-more`},ti={key:1,class:`kb-header__readonly`},ni={class:`kb-boardwrap`},ri={class:`kb-band__title`},ii={class:`kb-band__count`},ai=[`data-col-id`,`onPointerdown`,`onTouchstart`],oi=[`title`,`onClick`],si={class:`kb-col__count`},ci={key:0,class:`pi pi-bell kb-col__bell--on`},li={key:1,class:`kb-col__header`},ui=[`value`,`readonly`,`onBlur`],di={class:`kb-col__header-right`},fi={class:`kb-col__count`},pi=[`onClick`],mi={key:3,class:`kb-col__cards`},hi=[`data-card-id`,`onPointerdown`,`onTouchstart`,`onClick`],gi=[`onClick`],_i=[`onClick`],vi={key:0,class:`kb-col__empty`},yi=[`onClick`],bi={class:`kb-subscribe__lead`},xi={class:`kb-subscribe__legend`},Si={class:`kb-subscribe__options`},Ci={class:`kb-subscribe__option`},wi={class:`kb-subscribe__legend`},Ti={class:`kb-subscribe__options`},Ei={class:`kb-subscribe__no`},Di={class:`kb-subscribe__legend`},Oi={class:`kb-subscribe__options`},ki={class:`kb-subscribe__channels`},Ai={key:1,class:`kb-subscribe__channels`},ji={class:`kb-tpl-intro`},Mi={class:`kb-tpl-list`},Ni=[`onClick`],Pi={key:0,class:`kb-add-col`},Fi={key:0,class:`kb-add-col__form`},Ii={class:`kb-add-col__actions`},Li={class:`kb-filters__body`},Ri={class:`kb-filters__section`},zi={class:`kb-side__label`},Bi={class:`kb-ops`},Vi=[`onClick`],Hi={key:0,class:`kb-prio`},Ui={class:`kb-prio__value`},Wi={key:1,class:`kb-side__hint`},Gi={class:`kb-filters__section`},Ki={class:`kb-side__label`},qi={class:`kb-colors`},Ji=[`onClick`],Yi={class:`kb-filters__section`},Xi={class:`kb-side__label`},Zi={key:0,class:`pi pi-ban`},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={key:1,class:`kb-link__col`},aa={class:`kb-side__hint`},oa={class:`kb-archive__hint`},sa={class:`kb-archive__search`},ca={key:0,class:`kb-archive__empty`},la={key:1,class:`kb-archive__empty`},ua={key:2,class:`kb-archive__empty`},da={key:0,class:`kb-archive__filtered`},fa={key:1,class:`kb-archive__filtered`},pa={class:`kb-archive__list`},ma=[`onClick`],ha=[`onClick`],ga={class:`kb-archive__meta`},_a={key:0},va={key:1},ya={key:0,class:`kb-dialog`},ba={class:`kb-dialog__main`},xa={key:0,class:`kb-dialog__archived`},Sa={class:`kb-dialog__edit-content`},Ca={class:`kb-dialog__field`},wa={for:`kanban-card-title`,class:`kb-dialog__label`},Ta={class:`kb-dialog__field`},Ea={for:`kanban-card-content`,class:`kb-dialog__label`},Da={class:`kb-dialog__field`},Oa={for:`kanban-card-images`,class:`kb-dialog__label`},ka={key:0,class:`kb-dialog__images`},Aa=[`src`],ja=[`onClick`],Ma={key:1,class:`kb-dialog__upload`},Na={class:`kb-rel`},Pa={key:0,class:`kb-rel__section`},Fa={class:`kb-rel__title`},Ia={key:0,class:`kb-rel__table`},La={class:`kb-rel__people`},Ra={class:`kb-rel__num`},za={class:`kb-rel__actions-col`},Ba={class:`kb-rel__card`},Va={class:`kb-rel__board`},Ha={class:`kb-rel__people`},Ua={key:0,class:`kb-card__assignees`},Wa=[`title`],Ga=[`src`,`onError`],Ka={key:1,class:`kb-rel__none`},qa={class:`kb-rel__num`},Ja={class:`kb-rel__actions-col`},Ya=[`title`],Xa=[`title`],Za={key:1,class:`kb-rel__empty`},Qa={class:`kb-coloption`},$a={class:`kb-link__col`},eo={key:1,class:`kb-rel__section`},to={class:`kb-rel__title`},no={key:0,class:`kb-rel__table`},ro={class:`kb-rel__people`},io={class:`kb-rel__num`},ao={class:`kb-rel__actions-col`},oo={class:`kb-rel__card`},so={class:`kb-rel__board`},co={class:`kb-rel__people`},lo={key:0,class:`kb-card__assignees`},uo=[`title`],fo=[`src`,`onError`],po={key:1,class:`kb-rel__none`},mo={class:`kb-rel__num`},ho={class:`kb-rel__actions-col`},go=[`title`,`onClick`],_o=[`title`,`onClick`],vo={key:1,class:`kb-rel__empty`},yo={class:`kb-coloption`},bo={class:`kb-link__col`},xo={key:2,class:`kb-rel__empty`},So={class:`kb-comments`},Co={key:0,class:`kb-comments__empty`},wo={key:1,class:`kb-comments__list`},To=[`onClick`],Eo={key:0,class:`pi pi-sparkles`},Do=[`src`,`onError`],Oo={key:3,class:`pi pi-user`},ko={class:`kb-comments__body`},Ao={class:`kb-comments__meta`},jo={class:`kb-comments__author`},Mo={class:`kb-comments__time`},No={key:0,class:`kb-comments__edited`},Po={key:1,class:`kb-comments__tools`},Fo=[`title`,`onClick`],Io=[`title`,`onClick`],Lo={class:`kb-comments__actions`},Ro=[`onClick`,`innerHTML`],zo=[`onClick`],Bo=[`onKeydown`],Vo={class:`kb-comments__actions`},Ho=[`title`],Uo={class:`kb-comments__hint`},Wo={class:`kb-history`},Go={key:0,class:`kb-history__empty`},Ko={key:1,class:`kb-history__timeline`},qo=[`onClick`],Jo={class:`kb-history__icon`},Yo={class:`kb-history__body`},Xo={class:`kb-history__label`},Zo={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},Qo={key:0,class:`kb-history__detail`},$o={class:`kb-history__time`},es={class:`kb-side`},ts={key:0,class:`kb-side__block`},ns={class:`kb-side__label`},rs=[`title`],is=[`src`,`onError`],as={class:`kb-assignee`},os=[`src`,`onError`],ss={class:`kb-side__hint`},cs={class:`kb-side__block`},ls={class:`kb-side__label`},us={key:0,class:`kb-prio__value`},ds={key:0,class:`kb-prio`},fs=[`title`],ps={key:2,class:`kb-side__hint`},ms={class:`kb-side__block`},hs={class:`kb-side__label`},gs={class:`kb-deadline`},_s=[`title`],vs={key:0,class:`kb-side__hint`},ys={class:`kb-side__block`},bs={class:`kb-side__label`},xs={class:`kb-groups__option`},Ss={class:`kb-side__hint`},Cs={key:1,class:`kb-side__block`},ws={class:`kb-side__label`},Ts={class:`kb-tree`},Es={key:0,class:`pi pi-angle-right kb-tree__branch`},Ds=[`title`,`onClick`],Os={class:`kb-tree__label`},ks={class:`kb-side__block`},As={class:`kb-side__label`},js={class:`kb-colors`},Ms=[`disabled`],Ns=[`disabled`,`onClick`],Ps={class:`kb-side__hint`},Fs={key:2,class:`kb-side__block`},Is={class:`kb-side__label`},Ls={class:`kb-side__hint`},Rs={key:3,class:`kb-side__block`},zs={class:`kb-side__label`},Bs={class:`kb-colgroup__label`},Vs={class:`kb-coloption`},Hs={key:0,class:`pi pi-arrow-right kb-coloption__away`},Us={key:0,class:`kb-side__hint`},Ws={class:`kb-side__block kb-side__meta`},Gs={key:0},Ks={key:4,class:`kb-side__block`},qs={class:`kb-side__label`},Js={class:`kb-side__convs`},Ys=[`title`,`onClick`],Xs={class:`kb-side__conv-label`},Zs={key:5,class:`kb-side__block`},Qs={class:`kb-side__label`},$s={class:`kb-side__actions`},ec={key:6,class:`kb-side__block kb-side__danger`},tc={class:`kb-dialog__footer`},nc={key:0,class:`kb-dialog__unsaved`},rc={key:0,class:`kb-viewer`},ic=[`src`,`alt`],ac=[`src`,`title`],oc=[`src`],sc=[`src`],cc={key:4,class:`kb-viewer__office`},lc={key:0,class:`kb-viewer__tabs`},uc=[`onClick`],dc={class:`kb-viewer__scroll`},fc={key:0,class:`kb-viewer__table`},pc={key:1,class:`kb-viewer__empty`},mc={key:5,class:`kb-viewer__office`},hc={class:`kb-viewer__scroll kb-viewer__doc`},gc={key:0},_c={key:1},vc={key:2},yc={key:3,class:`kb-viewer__li`},bc={key:4,class:`kb-viewer__table`},xc={key:5},Sc={key:0,class:`kb-viewer__empty`},Cc={key:6,class:`kb-viewer__office`},wc={class:`kb-viewer__scroll kb-viewer__slides`},Tc={class:`kb-viewer__slide-no`},Ec={key:0},Dc={key:7,class:`kb-viewer__office`},Oc={key:0,class:`kb-viewer__empty`},kc={key:8,class:`kb-viewer__text`},Ac={key:9,class:`kb-viewer__truncated`},jc={key:0,class:`kb-colmenu`},Mc={class:`kb-colmenu__host`},$=`\0void`,Nc=26,Pc=512*1024,Fc=55*1024*1024,Ic=5*1024*1024,Lc=400,Rc=8,zc=5,Bc=60,Vc=12,Hc=u(p({__name:`KanbanBoard`,props:{columns:{},columnGroups:{default:()=>[]},name:{},readOnly:{type:Boolean,default:!1},t:{},resolveConversationId:{type:Function,default:void 0},currentUserId:{default:void 0},members:{default:()=>[]},avatarUrl:{type:Function,default:void 0},uploadImage:{type:Function,default:void 0},fetchAttachment:{type:Function,default:void 0},columnSubscriptions:{default:void 0},teams:{default:()=>[]},manageableTeamIds:{default:void 0},columnTeamSubscriptions:{default:()=>({})},deleteAttachment:{type:Function,default:void 0},templates:{default:()=>[]},loadHistory:{type:Function,default:void 0},histories:{default:void 0},addComment:{type:Function,default:void 0},editComment:{type:Function,default:void 0},removeComment:{type:Function,default:void 0},moveCard:{type:Function,default:void 0},otherBoards:{default:()=>[]},moveCardToBoard:{type:Function,default:void 0},cardLinks:{default:()=>[]},linkedCards:{default:()=>[]},setCardParent:{type:Function,default:void 0},archivedCards:{default:()=>[]},loadingArchive:{type:Boolean,default:!1},archiveTruncated:{type:Boolean,default:!1},searchMatches:{default:null},searchTruncated:{type:Boolean,default:!1}},emits:[`intent`,`back`,`open-conversation`,`card-open`,`update-column-subscription`,`open-linked-card`,`load-archive`,`search-cards`],setup(a,{expose:u,emit:d}){let p=a,m=o(()=>p.loadHistory!==void 0),v=d,b=pe(),x=p.t;function te(){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 re(e){return JSON.parse(JSON.stringify(e))}let E=l(re(p.columns));i(()=>p.columns,e=>{E.value=re(e),Jt()});function D(e,t){E.value=e,t&&v(`intent`,t)}let k=l(``),ae=l(!1),se=l(``),A=o(()=>[...E.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),ce=l(!1),M=l(`gte`),N=l(null),P=l([]),le=l([]),F=l([]),ue=l(!1),fe=l(!1),me=l(!1),z=l([]),he=o(()=>{let e=new Set;for(let t of z.value){for(let n of rn(t,`up`))e.add(n);for(let n of rn(t,`down`))e.add(n)}return e}),_e=o(()=>N.value!==null||M.value===`none`),ye=o(()=>(_e.value?1:0)+(P.value.length?1:0)+(le.value.length||ue.value?1:0)+(F.value.length||fe.value?1:0)+(z.value.length||me.value?1:0));function xe(){N.value=null,M.value=`gte`,P.value=[],le.value=[],F.value=[],z.value=[],ue.value=!1,fe.value=!1,me.value=!1}function Se(e){if(M.value===`none`){if(e.priority!==void 0)return!1}else if(N.value!==null){let t=e.priority;if(t===void 0||M.value===`eq`&&t!==N.value||M.value===`gte`&&t<N.value||M.value===`lte`&&t>N.value)return!1}if(P.value.length&&!P.value.includes(e.color??``))return!1;let t=e.groups??[];if(le.value.length||ue.value){let e=le.value.length&&t.some(e=>le.value.includes(e)),n=ue.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(F.value.length||fe.value){let e=F.value.length&&n.some(e=>F.value.includes(e.id)),t=fe.value&&n.length===0;if(!e&&!t)return!1}if(z.value.length||me.value){let t=z.value.length&&he.value.has(e.id),n=me.value&&!$t(e.id)&&en(e.id).length===0;if(!t&&!n)return!1}return!0}let Ce=o({get:()=>ue.value?[$,...le.value]:le.value,set:e=>{ue.value=e.includes($),le.value=e.filter(e=>e!==$)}}),we=o(()=>[$,...ft.value]),Te=o({get:()=>fe.value?[$,...F.value]:F.value,set:e=>{fe.value=e.includes($),F.value=e.filter(e=>e!==$)}}),Ee=o(()=>[{userId:$,name:x(`filters.noAssignees`)},...p.members]),U=o({get:()=>me.value?[$,...z.value]:z.value,set:e=>{me.value=e.includes($),z.value=e.filter(e=>e!==$)}}),De=o(()=>[{id:$,title:x(`filters.noFamily`),column:``},...A.value.flatMap(e=>e.cards.map(t=>({id:t.id,title:t.title,column:e.title}))),...p.archivedCards.map(e=>({id:e.id,title:e.title,column:x(`archive.title`)}))]),Oe=o(()=>{let e=p.searchMatches,t=ye.value>0;return!e&&!t?A.value:A.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||Se(n)))}))}),Ae=l(!1),je=o(()=>new Map((p.columnGroups??[]).map(e=>[e.id,e])));function Me(e){let t=[],n=new Set,r=e;for(;r&&je.value.has(r)&&!n.has(r);)n.add(r),t.unshift(r),r=je.value.get(r).parentId;return t}let Ne=o(()=>{let e=new Map;for(let t of Oe.value)Me(t.groupId).forEach((n,r)=>{let i=je.value.get(n),a=e.get(n)??{id:n,title:i.title,color:i.color,depth:r,colIds:[]};a.colIds.push(t.id),e.set(n,a)});return[...e.values()]}),Ie=o(()=>Ne.value.length?(Math.max(...Ne.value.map(e=>e.depth))+1)*Nc:0),Re=l(null),Ge=l([]);function Ke(){let e=Re.value;if(!e||!Ne.value.length){Ge.value=[];return}Ge.value=Ne.value.flatMap(t=>{let n=t.colIds.map(t=>e.querySelector(`[data-col-id="${CSS.escape(t)}"]`)).filter(e=>e!==null);if(!n.length)return[];let r=Math.min(...n.map(e=>e.offsetLeft)),i=Math.max(...n.map(e=>e.offsetLeft+e.offsetWidth)),a=n.reduce((e,t)=>e+(Oe.value.find(e=>e.id===t.dataset.colId)?.cards.length??0),0);return[{id:t.id,title:t.title,color:t.color,top:t.depth*Nc,left:r,width:i-r,count:a}]})}let qe=null;ge(()=>{if(Ke(),typeof ResizeObserver<`u`&&Re.value){qe=new ResizeObserver(()=>Ke()),qe.observe(Re.value);for(let e of Re.value.querySelectorAll(`.kb-col`))qe.observe(e)}}),j(()=>qe?.disconnect()),i(()=>[Oe.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),p.columnGroups],()=>{be(()=>{if(Ke(),!(!qe||!Re.value))for(let e of Re.value.querySelectorAll(`.kb-col`))qe.observe(e)})},{deep:!0});function Je(e){return E.value.find(t=>t.id===e)?.title??``}function Ye(e,t,n){e.history=[...e.history??[],{type:t,timestamp:new Date().toISOString(),detail:n}]}function Xe(){if(p.readOnly||!se.value.trim())return;let e=se.value.trim();D([...E.value,{id:te(),title:e,order:E.value.length,cards:[]}],{kind:`column-add`,title:e}),se.value=``,ae.value=!1}function Ze(e){if(p.readOnly)return;let t=E.value.find(t=>t.id===e);b.require({message:x(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:x(`column.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>D(E.value.filter(t=>t.id!==e),{kind:`column-delete`,columnId:e})})}function Qe(e,t){p.readOnly||!t.trim()||D(E.value.map(n=>n.id===e?{...n,title:t.trim()}:n),{kind:`column-rename`,columnId:e,title:t.trim()})}let G=l(null),$e=l(``),et=l(``),tt=l([]),rt=l([]),it=l(!1),K=l([]),at=l([]),ot=0,st=l([]),ct=f(new Map),lt=l([]),ut=l([]),dt=l([]),ft=o(()=>{let e=new Set;for(let t of E.value)for(let n of t.cards)for(let t of n.groups??[])e.add(t);for(let t of p.archivedCards)for(let n of t.groups??[])e.add(n);return[...e].sort((e,t)=>e.localeCompare(t))});function pt(e){let t=e.query.trim(),n=new Set(ut.value),r=ft.value.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t.toLowerCase()))),i=ft.value.some(e=>e.toLowerCase()===t.toLowerCase());dt.value=t&&!i&&!n.has(t)?[t,...r]:r}let mt=l(null),ht=l(null),gt=o(()=>{let e=_t(ht.value),t=e?qt(e):null;return t===null?``:t<0?x(`editor.deadlineOverdue`,{count:-t}):t===0?x(`editor.deadlineToday`):x(`editor.deadlineIn`,{count:t})});function _t(e){if(!e)return null;let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function vt(e){if(!e)return null;let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r,12)}function yt(){p.readOnly||(mt.value=5)}function bt(e){let t=e.trim();!t||ut.value.includes(t)||(ut.value=[...ut.value,t])}let xt=l(!1);function St(e){let t=e.target?.closest(`.p-autocomplete`)?.querySelector(`input`);return t instanceof HTMLInputElement?t:null}function Ct(){xt.value=!0}function wt(e){let t=St(e);if(t){if(e.type===`keydown`){if(t.getAttribute(`aria-activedescendant`))return;Tt(t);return}xt.value=!1,setTimeout(()=>{if(xt.value){xt.value=!1,t.value=``;return}Tt(t)},0)}}function Tt(e){e.value.trim()&&(bt(e.value),e.value=``)}let Et=l(``),Dt=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],Ot=l(``),At=l(`edit`),jt=l(``),q=l([]),Mt=l(null),Nt=l(null),Pt=l(null),Ft=l(``);async function It(){await be(),Nt.value?.scrollIntoView({block:`end`})}i(G,e=>v(`card-open`,e));let Lt=l(null),Rt=l(`bottom`);function zt(e,t=`bottom`){if(!p.readOnly){if(Rt.value=t,p.templates.length===0){Vt(e,``);return}Lt.value=e}}function Bt(e){let t=Lt.value;Lt.value=null,t&&Vt(t,e?.content??``)}function Vt(e,t){let n=E.value.find(t=>t.id===e);if(!n)return;let r=new Date().toISOString();Ht(e,{id:te(),title:x(`card.defaultTitle`),markdown:t,images:[],order:Rt.value===`top`?0:n.cards.length,...m.value?{}:{history:[{type:`created`,timestamp:r,detail:x(`card.inColumn`,{name:Je(e)})}]},createdAt:r,updatedAt:r})}function Ht(e,t){if(Ln(),G.value={colId:e,card:{...t,history:[...t.history??[]]}},p.loadHistory&&Cn(t.id)){let n=p.histories?.[t.id];n&&(G.value={colId:e,card:{...t,history:n}}),p.loadHistory(t.id)}$e.value=t.title,et.value=t.markdown??``,tt.value=[...t.images],rt.value=[...t.attachments??[]],K.value=[],st.value=[],jt.value=``,q.value=[],In(rt.value),In((t.history??[]).flatMap(e=>e.attachments??[])),lt.value=(t.assignees??[]).map(e=>e.id),Et.value=t.color??``,ut.value=[...t.groups??[]],mt.value=t.priority??null,ht.value=vt(t.deadline),Ot.value=e,At.value=`edit`}i(()=>G.value?p.histories?.[G.value.card.id]:void 0,e=>{let t=G.value;!e||!t||t.card.history===e||(G.value={colId:t.colId,card:{...t.card,history:e}},In(e.flatMap(e=>e.attachments??[])))});let Ut=o(()=>{let e=G.value;return e?!Cn(e.card.id):!1}),Wt=o(()=>{let e=G.value;if(!e)return!1;if(Ut.value)return!0;let t=e.card,n=(e,t)=>JSON.stringify(e)===JSON.stringify(t);return $e.value!==t.title||et.value!==(t.markdown??``)||Ot.value!==e.colId||!n(tt.value,t.images)||!n(rt.value,t.attachments??[])||!n(lt.value,(t.assignees??[]).map(e=>e.id))||Et.value!==(t.color??``)||!n(ut.value,t.groups??[])||mt.value!==(t.priority??null)||_t(ht.value)!==(t.deadline??null)}),Gt=o(()=>Wt.value||jt.value.trim().length>0||q.value.length>0||Pt.value!==null);function Kt(){if(!Gt.value){Xt();return}b.require({message:x(`editor.confirmDiscardMessage`),header:x(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:x(`editor.discard`),rejectLabel:x(`editor.keepEditing`),accept:()=>Xt()})}function Jt(){let e=G.value;if(!e)return;let t=E.value.flatMap(e=>e.cards).find(t=>t.id===e.card.id)??Sn.value.get(e.card.id);if(!t)return;if(!Wt.value){let n=E.value.find(e=>e.cards.some(e=>e.id===t.id))?.id??e.colId;G.value={colId:n,card:{...t,history:e.card.history}},$e.value=t.title,et.value=t.markdown??``,tt.value=[...t.images],rt.value=[...t.attachments??[]],lt.value=(t.assignees??[]).map(e=>e.id),Et.value=t.color??``,ut.value=[...t.groups??[]],mt.value=t.priority??null,ht.value=vt(t.deadline),Ot.value=n}if(t.history===void 0)return;let n=G.value;if(!n)return;let r=e=>`${e.type}|${e.timestamp}|${e.detail??``}`,i=new Set((t.history??[]).map(r)),a=[...t.history??[],...(n.card.history??[]).filter(e=>!i.has(r(e)))].sort((e,t)=>e.timestamp.localeCompare(t.timestamp));G.value={colId:n.colId,card:{...n.card,history:a}}}function Yt(){let e=st.value;if(st.value=[],p.deleteAttachment)for(let t of e)p.deleteAttachment(t)}function Xt(){G.value=null,lr(),Yn(),Ln(),Yt()}function Zt(){if(X.value||!G.value)return;let{colId:e,card:t}=G.value,n=$e.value||x(`card.untitled`),r=m.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!m.value&&n!==t.title&&t.title!==x(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!m.value&&et.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let a=m.value?0:tt.value.length-t.images.length;a>0?r.push({type:`image_added`,timestamp:i(),detail:`${a} image(s) added`}):a<0&&r.push({type:`image_removed`,timestamp:i(),detail:`${Math.abs(a)} image(s) removed`});let o=lt.value.map(e=>({id:e,name:p.members.find(t=>t.userId===e)?.name??e})),s=m.value?[]:o.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));s.length&&r.push({type:`edited`,timestamp:i(),detail:x(`editor.assignedDetail`,{names:s.map(e=>e.name).join(`, `)})});let c=[...new Set(ut.value.map(e=>e.trim()).filter(Boolean))],{color:l,priority:u,groups:d,deadline:f,...h}=t,g={...h,title:n,markdown:et.value,images:tt.value,attachments:rt.value,assignees:o,...Et.value?{color:Et.value}:{},...c.length?{groups:c}:{},...mt.value===null?{}:{priority:mt.value},..._t(ht.value)?{deadline:_t(ht.value)}:{},history:m.value?t.history:r,updatedAt:i()},_=Ot.value||e;!m.value&&_!==e&&r.push({type:`moved`,timestamp:i(),detail:`${Je(e)} → ${Je(_)}`});let y=!Cn(g.id),b=y?{kind:`card-add`,columnId:_,card:g,placement:Rt.value}:{kind:`card-update`,cardId:g.id,patch:{title:g.title,markdown:g.markdown,priority:g.priority??null,color:g.color??null,deadline:g.deadline??null,groups:g.groups??[],assignees:o.map(e=>e.id),attachments:g.attachments,images:g.images}};!y&&_!==e&&v(`intent`,{kind:`card-move`,cardId:g.id,toColumnId:_}),D(E.value.map(t=>{if(t.id===e&&_!==e)return{...t,cards:t.cards.filter(e=>e.id!==g.id)};if(t.id!==_)return t;if(t.cards.some(e=>e.id===g.id))return{...t,cards:t.cards.map(e=>e.id===g.id?g:e)};let n=Rt.value===`top`?[g,...t.cards]:[...t.cards,g];return{...t,cards:n.map((e,t)=>({...e,order:t}))}}),b),st.value=[],G.value={colId:_,card:g},Ot.value=_}function Qt(e,t){for(let n of E.value){let r=n.cards.find(e=>e.id===t);if(r)return{cardId:t,boardId:e,title:r.title,boardName:x(`editor.relationsHereBoard`),columnTitle:n.title,here:!0,assignees:r.assignees??[],commentCount:r.commentCount??(r.history??[]).filter(e=>e.type===`comment`).length}}let n=p.linkedCards.find(n=>n.cardId===t&&n.boardId===e);return n?{cardId:t,boardId:e,title:n.title,boardName:n.boardName,columnTitle:n.columnTitle,here:!1,assignees:n.assignees??[],commentCount:n.commentCount??0}:null}function $t(e){return p.cardLinks.find(t=>t.childCardId===e)}function en(e){return p.cardLinks.filter(t=>t.parentCardId===e)}function tn(e){return en(e).length}let J=o(()=>{let e=G.value;if(!e)return null;let t=$t(e.card.id);return t?Qt(t.parentBoardId,t.parentCardId):null}),nn=o(()=>{let e=G.value;return e?en(e.card.id).flatMap(e=>{let t=Qt(e.childBoardId,e.childCardId);return t?[t]:[]}):[]});function rn(e,t){let n=new Set([e]),r=[e];for(let e=0;e<r.length&&e<=p.cardLinks.length;e+=1){let i=t===`down`?en(r[e]).map(e=>e.childCardId):[$t(r[e])?.parentCardId].filter(e=>!!e);for(let e of i)n.has(e)||(n.add(e),r.push(e))}return n}function an(e){return A.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let on=o(()=>{let e=G.value;return e?an(rn(e.card.id,`down`)):[]}),sn=o(()=>{let e=G.value;if(!e)return[];let t=rn(e.card.id,`up`);for(let n of en(e.card.id))t.add(n.childCardId);return an(t)});function cn(e){let t=G.value;!t||X.value||!p.setCardParent||p.setCardParent(t.card.id,e)}function ln(e){let t=G.value;!t||!e||X.value||!p.setCardParent||p.setCardParent(e,t.card.id)}function dn(e){X.value||!p.setCardParent||p.setCardParent(e,null)}let fn=o(()=>!X.value&&p.setCardParent!==void 0&&!!G.value&&E.value.some(e=>e.cards.some(e=>e.id===G.value?.card.id))),pn=o(()=>{let e=G.value;if(!e)return[];let t=[],n=new Set([e.card.id]),r=e.card.id;for(let e=0;e<=p.cardLinks.length;e+=1){let e=$t(r);if(!e||n.has(e.parentCardId))break;let i=Qt(e.parentBoardId,e.parentCardId);if(!i)break;n.add(e.parentCardId),t.push(i),r=e.parentCardId}return t.reverse()}),mn=o(()=>(J.value?1:0)+nn.value.length);function hn(e,t){for(let t of E.value){let n=t.cards.find(t=>t.id===e);if(n){Ht(t.id,n);return}}t&&v(`open-linked-card`,{boardId:t,cardId:e})}let gn=o(()=>{let e=A.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:x(`editor.columnGroupHere`),items:e}];if(!X.value&&p.moveCardToBoard)for(let e of p.otherBoards)e.columns.length&&t.push({label:e.name,items:e.columns.map(t=>({id:`${e.id}:${t.id}`,title:t.title,boardId:e.id}))});return t});function _n(e){let[t,n]=e.includes(`:`)?e.split(`:`):[``,e];if(!t){Ot.value=n??``;return}let r=G.value,i=p.otherBoards.find(e=>e.id===t),a=i?.columns.find(e=>e.id===n);X.value||!r||!i||!a||!p.moveCardToBoard||b.require({message:x(`editor.moveToBoardConfirm`,{board:i.name,column:a.title}),header:x(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;Xt(),p.moveCardToBoard?.(e,t,a.id)}})}let Y=l(!1),yn=l(``),bn=l(``),xn=o(()=>[{id:``,title:x(`archive.allColumns`)},...E.value.map(e=>({id:e.id,title:e.title}))]),Sn=o(()=>new Map(p.archivedCards.map(e=>[e.id,e])));function Cn(e){return E.value.some(t=>t.cards.some(t=>t.id===e))||Sn.value.has(e)?!0:!!(G.value?.card.id===e&&G.value.card.archivedAt)}let wn=o(()=>!!(G.value&&(G.value.card.archivedAt||Sn.value.has(G.value.card.id)))),X=o(()=>p.readOnly||wn.value);function Tn(e){Ht(e.archivedFrom?.columnId??``,e)}let En=o(()=>ye.value?p.archivedCards.filter(Se):p.archivedCards),Dn=o(()=>p.archivedCards.length-En.value.length),On=null;function kn(){Y.value=!0,v(`load-archive`,yn.value,bn.value)}i(yn,e=>{Y.value&&(On&&clearTimeout(On),On=setTimeout(()=>v(`load-archive`,e,bn.value),250))}),i(bn,e=>{Y.value&&(On&&clearTimeout(On),v(`load-archive`,yn.value,e))});let Z=null;i(k,e=>{if(Z&&clearTimeout(Z),!e.trim()){v(`search-cards`,``);return}Z=setTimeout(()=>v(`search-cards`,e),250)}),j(()=>{Z&&clearTimeout(Z),On&&clearTimeout(On)});function An(e,t){p.readOnly||(D(E.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-archive`,cardId:t}),G.value?.card.id===t&&Xt())}function jn(e){p.readOnly||v(`intent`,{kind:`card-unarchive`,cardId:e})}function Mn(e,t){if(p.readOnly)return;let n=E.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);b.require({message:x(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:x(`editor.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{D(E.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-delete`,cardId:t}),Xt()}})}function Nn(){if(X.value||!G.value||!jt.value.trim()&&!q.value.length)return;let{colId:e,card:t}=G.value,n=q.value;if(p.addComment){let e=jt.value.trim(),r=t.id;jt.value=``,st.value=st.value.filter(e=>!n.some(t=>t.id===e.id)),q.value=[],p.addComment(r,e,n.length?{attachments:n}:{}).then(t=>{t||(jt.value.trim()||(jt.value=e),q.value=[...n,...q.value])});return}}let Pn=/^image\/(png|jpeg|webp|gif)$/;function Fn(e){return ct.get(e.id)}async function In(e){if(p.fetchAttachment)for(let t of e){if(!Pn.test(t.contentType)||ct.has(t.id))continue;let e=await p.fetchAttachment(t);e&&ct.set(t.id,e)}}function Ln(){for(let e of ct.values())URL.revokeObjectURL(e);ct.clear()}let Rn=/^video\/(mp4|webm|ogg)$/,zn=/^audio\/(mpeg|mp3|ogg|wav|x-wav|webm)$/,Bn=/^(text\/|application\/(json|xml|xhtml\+xml|javascript|x-yaml|yaml)$)/;function Vn(e){let t=e.contentType||``;if(Pn.test(t))return`image`;if(t===`application/pdf`)return`pdf`;if(Rn.test(t))return`video`;if(zn.test(t))return`audio`;let n=sr(t,e.name);return n?e.size<=20971520?n:null:Bn.test(t)&&e.size<=Pc?`text`:null}let Q=l(null),Hn=l(0),Un=o(()=>{let e=Q.value?.office;return e?.mode===`sheet`?e.sheets[Hn.value]??e.sheets[0]??null:null}),Wn=l(null),Gn=l(!1);i([()=>Q.value?.office,Wn],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),Gn.value=!1;try{await e.render(t)}catch{Gn.value=!0}}});async function Kn(e){let t=Vn(e),n=ct.get(e.id),r=n??await p.fetchAttachment?.(e)??null;if(!r){K.value=[...K.value,{name:e.name,reason:x(`editor.downloadFailed`)}];return}if(!t){qn(r,e.name,!n);return}let i,a;if(t===`text`)try{i=await(await fetch(r)).text()}catch{qn(r,e.name,!n);return}else if(t===`sheet`||t===`doc`||t===`slides`)try{a=await cr(t,await(await fetch(r)).arrayBuffer(),e.name,e.contentType||``)}catch{qn(r,e.name,!n);return}Yn(),Hn.value=0,Q.value={file:e,url:r,kind:t,text:i,office:a,cached:!!n}}function qn(e,t,n){let r=document.createElement(`a`);r.href=e,r.download=t||`file`,r.rel=`noopener`,document.body.appendChild(r),r.click(),r.remove(),n&&setTimeout(()=>URL.revokeObjectURL(e),6e4)}function Jn(){let e=Q.value;e&&qn(e.url,e.file.name,!1)}function Yn(){let e=Q.value;Q.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Xn(e){rt.value=rt.value.filter((t,n)=>n!==e)}let Zn=f(new Set);function Qn(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let $n=o(()=>p.members.map(e=>({id:e.userId,label:e.name})));function er(e){return p.members.find(t=>t.userId===e)?.name??e}function tr(e){let t=0;for(let n=0;n<e.length;n+=1)t=(t*31+e.charCodeAt(n))%360;return{background:`linear-gradient(135deg, hsl(${t} 62% 52%), hsl(${(t+40)%360} 62% 46%))`}}function nr(e){return!!p.currentUserId&&e.authorUser?.id===p.currentUserId}function rr(e){return e.author===`ai`?null:e.authorUser?.id??null}function ir(e){return e.author===`ai`?x(`comments.authorAi`):nr(e)?x(`comments.authorYou`):e.authorUser?.name??x(`comments.authorYou`)}function ar(e){if(!G.value)return;let{colId:t,card:n}=G.value;G.value={colId:t,card:{...n,history:e}},D(E.value.map(r=>r.id===t?{...r,cards:r.cards.map(t=>t.id===n.id?{...t,history:e}:t)}:r))}function or(e){Pt.value=e.id??null,Ft.value=e.detail??``}function lr(){Pt.value=null,Ft.value=``}function ur(){let e=Pt.value,t=Ft.value.trim();if(X.value||!e||!t||!G.value)return;let{card:n}=G.value,r=(n.history??[]).map(n=>n.id===e?{...n,detail:t,editedAt:new Date().toISOString()}:n);if(p.editComment){let i=(n.history??[]).find(t=>t.id===e);p.editComment(n.id,e,t,i?.attachments),ar(r)}lr()}function dr(e){return e.id??`${e.type}|${e.timestamp}`}function fr(e){return e.type===`comment`&&e.author===`ai`}function pr(e){return nr(e)||fr(e)}function mr(e){if(X.value||!pr(e)||!G.value)return;let t=dr(e);b.require({message:x(`comments.confirmDeleteMessage`),header:x(`comments.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{let n=G.value;if(!n)return;let r=(n.card.history??[]).filter(e=>dr(e)!==t);p.removeComment&&e.id&&(p.removeComment(n.card.id,e.id),ar(r))}})}let hr=o(()=>p.columnSubscriptions!==void 0),gr=l(null),_r=[`entered`,`left`,`created`,`deleted`],vr=[`email`,`chat`],yr=[..._r],br=[...vr],xr=l([...yr]),Sr=l([...br]),Cr=l(null),wr=o(()=>p.manageableTeamIds?p.teams.filter(e=>p.manageableTeamIds.includes(e.id)):p.teams);function Tr(e,t=null){return t?p.columnTeamSubscriptions?.[e]?.find(e=>e.teamId===t)??null:p.columnSubscriptions?.[e]??null}function Er(e){return Tr(e)!==null}let Dr=o(()=>{let e=gr.value;return e?(p.columnTeamSubscriptions?.[e]??[]).map(e=>p.teams.find(t=>t.id===e.teamId)?.name).filter(e=>!!e):[]}),Or=f(new Set),kr=new Map,Ar=null;function jr(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?Or.add(e):Or.delete(e)}function Mr(e,t){let n=kr.get(t);if(n&&n!==e&&Ar?.unobserve(n),!(e instanceof HTMLElement)){kr.delete(t),Or.delete(t);return}kr.set(t,e),typeof ResizeObserver<`u`&&(Ar??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of kr)n===t.target&&jr(e,n)}),Ar.observe(e)),jr(t,e)}i(()=>E.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void be(()=>{for(let[e,t]of kr)jr(e,t)})),j(()=>Ar?.disconnect());function Pr(e,t){return{value:Or.has(e)?t:``,showDelay:0,hideDelay:0}}let Fr=l(null),Ir=l(null);function Lr(e,t){Ir.value=t,Fr.value?.toggle(e)}function Rr(e){let t=Ir.value;t&&(Fr.value?.hide(),e(t.id))}function zr(e,t){let n=Tr(e,t);xr.value=n?[...n.kinds]:[...yr],Sr.value=n?[...n.channels]:[...br]}function Br(e){Cr.value=null,zr(e,null),gr.value=e}function Vr(e){Cr.value=e,gr.value&&zr(gr.value,e)}let Hr=o(()=>xr.value.length>0&&Sr.value.length>0),Ur=o(()=>Cr.value?{teamId:Cr.value}:{}),Wr=o(()=>gr.value?Tr(gr.value,Cr.value)!==null:!1);function Gr(){let e=gr.value;!e||!Hr.value||(v(`update-column-subscription`,{columnId:e,subscription:{kinds:[...xr.value],channels:[...Sr.value]},...Ur.value}),gr.value=null)}function Kr(){let e=gr.value;e&&(v(`update-column-subscription`,{columnId:e,subscription:null,...Ur.value}),gr.value=null)}let qr=o(()=>p.columns.find(e=>e.id===gr.value)??null),Jr=f(new Set),Yr=f(new Set),Xr=o(()=>`runeya.kanban.collapsedColumns.${p.name}`),Hc=o(()=>`runeya.kanban.expandedColumns.${p.name}`);function Uc(e,t){t.clear();try{let n=window.localStorage.getItem(e);if(!n)return;let r=JSON.parse(n);if(Array.isArray(r))for(let e of r)typeof e==`string`&&t.add(e)}catch{}}function Wc(){Uc(Xr.value,Jr),Uc(Hc.value,Yr)}function Gc(){try{window.localStorage.setItem(Xr.value,JSON.stringify([...Jr])),window.localStorage.setItem(Hc.value,JSON.stringify([...Yr]))}catch{}}Wc(),i(Xr,Wc);function Kc(e){let t=p.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function qc(e){return Jr.has(e)?!0:Kc(e)&&!Yr.has(e)}function Jc(e){qc(e)?(Jr.delete(e),Kc(e)&&Yr.add(e)):(Yr.delete(e),Kc(e)||Jr.add(e)),Gc()}let Yc=o(()=>(G.value?.card.history??[]).filter(e=>e.type===`comment`));i([At,Yc],([e])=>{e===`comments`&&(It(),cl())}),i(()=>G.value?.card.id,()=>{$c.clear(),el.clear()});function Xc(e){if(/^(https?:|mailto:)/i.test(e)){window.open(e,`_blank`,`noopener,noreferrer`);return}e.startsWith(`#`)||e.startsWith(`/`)&&window.open(e,`_blank`,`noopener,noreferrer`)}function Zc(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Xc(t),!0):!1}function Qc(t){return t?ee.sanitize(e.parse(t,{async:!1}),{ALLOWED_TAGS:[`p`,`br`,`strong`,`em`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`h1`,`h2`,`h3`,`h4`,`a`,`span`],ALLOWED_ATTR:[`href`,`target`,`rel`,`class`]}):``}let $c=f(new Set),el=f(new Set);function tl(e,t){return e.id??`i${t}`}function nl(e,t){return $c.has(tl(e,t))}function rl(e,t){let n=tl(e,t);return el.has(n)||$c.has(n)}function il(e,t){let n=tl(e,t);$c.has(n)?$c.delete(n):$c.add(n)}function al(e,t,n){Zc(n)||ul(e)||rl(e,t)&&(n.stopPropagation(),il(e,t))}let ol=new Map;function sl(e,t,n){let r=tl(t,n);if(!(e instanceof HTMLElement)){ol.delete(r);return}ol.set(r,e),!$c.has(r)&&(e.scrollHeight-e.clientHeight>1?el.add(r):el.delete(r))}async function cl(){await be();for(let[e,t]of ol)$c.has(e)||(t.scrollHeight-t.clientHeight>1?el.add(e):el.delete(e))}function ll(e){return p.resolveConversationId?p.resolveConversationId(e):e.conversationId??null}function ul(e){return!!ll(e)}let dl=o(()=>{let e=G.value?.card;if(!e)return[];let t=e.conversationEvents??e.history??[],n=new Set,r=[];for(let e of t){if(e.type!==`conversation_started`&&e.type!==`scenario_started`)continue;let t=ll(e);if(!t||n.has(t))continue;n.add(t);let i=e.detail??``,a=i.includes(` — `)?i.slice(0,i.lastIndexOf(` — `)).trim():``,o=hl(e.timestamp);r.push({id:t,label:o,title:a||ml.value[e.type]})}return r});function fl(e){let t=ll(e);t&&v(`open-conversation`,t)}let pl={created:`pi pi-plus-circle`,edited:`pi pi-pencil`,moved:`pi pi-arrow-right-arrow-left`,image_added:`pi pi-image`,image_removed:`pi pi-trash`,title_changed:`pi pi-tag`,conversation_started:`pi pi-comments`,scenario_started:`pi pi-sitemap`,comment:`pi pi-comment`,archived:`pi pi-inbox`,unarchived:`pi pi-replay`},ml=o(()=>({created:x(`history.events.created`),edited:x(`history.events.edited`),moved:x(`history.events.moved`),image_added:x(`history.events.image_added`),image_removed:x(`history.events.image_removed`),title_changed:x(`history.events.title_changed`),archived:x(`history.events.archived`),unarchived:x(`history.events.unarchived`),conversation_started:x(`history.events.conversation_started`),scenario_started:x(`history.events.scenario_started`),comment:x(`history.events.comment`)}));function hl(e){let t=new Date(e);return`${t.toLocaleDateString()} ${t.toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})}`}function gl(e){return new Promise(t=>{let n=new FileReader;n.onload=()=>t(typeof n.result==`string`?n.result:null),n.onerror=()=>t(null),n.readAsDataURL(e)})}async function _l(e){let t=[];for(let n of e){if(n.size===0){K.value=[...K.value,{name:n.name,reason:x(`editor.uploadEmpty`)}];continue}if(n.size>Fc){K.value=[...K.value,{name:n.name,reason:x(`editor.uploadTooLarge`)}];continue}if(!p.uploadImage){K.value=[...K.value,{name:n.name,reason:x(`editor.uploadUnavailable`)}];continue}let e=`${ot+=1}`;at.value=[...at.value,{key:e,name:n.name,ratio:0}];try{let r=await p.uploadImage(n,t=>{at.value=at.value.map(n=>n.key===e?{...n,ratio:t}:n)});r?(t.push(r),st.value=[...st.value,r]):K.value=[...K.value,{name:n.name,reason:x(`editor.uploadFailed`)}]}finally{at.value=at.value.filter(t=>t.key!==e)}}return t}async function vl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,it.value=!0,K.value=[];try{let e=await _l(n);q.value=[...q.value,...e],In(e)}finally{it.value=!1}}async function yl(e,t){if(!(X.value||!e.length)){it.value=!0,K.value=[];try{let n=await _l(e);if(!n.length)return;t===`comment`?q.value=[...q.value,...n]:rt.value=[...rt.value,...n],In(n)}finally{it.value=!1}}}function bl(e){q.value=q.value.filter((t,n)=>n!==e)}async function xl(e){let t=e.target;if(!t.files)return;let n=Array.from(t.files);t.value=``,it.value=!0,K.value=[],at.value=[];try{if(p.uploadImage){let e=await _l(n);rt.value=[...rt.value,...e],In(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>Ic){K.value=[...K.value,{name:e.name,reason:x(`editor.uploadUnavailable`)}];continue}let t=await gl(e);if(!t){K.value=[...K.value,{name:e.name,reason:x(`editor.uploadFailed`)}];continue}tt.value=[...tt.value,t],Mt.value?.insertImage(t)}}finally{it.value=!1}}function Sl(e){b.require({message:x(`editor.confirmRemoveImageMessage`),header:x(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{tt.value=tt.value.filter((t,n)=>n!==e)}})}let Cl=l(null),wl=l(null),Tl=null,El=null,Dl=`before`,Ol=null,kl=`before`,Al=null,jl=null,Ml=null,Nl=[`kb-card--drop-before`,`kb-card--drop-after`],Pl=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function Fl(e,t){Al&&Al!==e&&Al.classList.remove(...Nl),Al=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function Il(e){jl&&jl!==e&&jl.classList.remove(`kb-col--dragover`),jl=e,e?.classList.add(`kb-col--dragover`)}function Ll(e,t){Ml&&Ml!==e&&Ml.classList.remove(...Pl),Ml=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function Rl(){Fl(null,`before`),Il(null),Ll(null,`before`)}let zl=l(null),Bl=l(null),Vl=l(!1),Hl=null,Ul=null,Wl=null,Gl={x:0,y:0},Kl={x:0,y:0},ql=!1,Jl=l(null);function Yl(e,t){Hl&&cancelAnimationFrame(Hl);let n=Jl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Bc&&n.scrollLeft>0?(n.scrollLeft-=Vc,i=!0):e>t.right-Bc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Vc,i=!0)}let a=Zl(e,t)?.closest(`.kb-col__cards`);if(a){let e=a.getBoundingClientRect();t<e.top+Bc&&a.scrollTop>0?(a.scrollTop-=Vc,i=!0):t>e.bottom-Bc&&a.scrollTop<a.scrollHeight-a.clientHeight&&(a.scrollTop+=Vc,i=!0)}i&&tu(e,t),Hl=i&&Vl.value?requestAnimationFrame(r):null};Hl=requestAnimationFrame(r)}function Xl(){Hl&&=(cancelAnimationFrame(Hl),null)}function Zl(e,t){Bl.value&&(Bl.value.style.display=`none`);let n=document.elementFromPoint(e,t);return Bl.value&&(Bl.value.style.display=``),n}function Ql(){Ul&&=(clearTimeout(Ul),null),Wl=null}function $l(e){if(!Wl)return;let{type:t,colId:n,cardId:r,el:i}=Wl;zl.value=t,Vl.value=!0,t===`card`&&r?(Cl.value={colId:n,cardId:r},wl.value=null):(wl.value=n,Cl.value=null),e&&navigator.vibrate&&navigator.vibrate(30);let a=t===`card`?i.closest(`.kb-card`):i.closest(`.kb-col`);if(a){let e=a.cloneNode(!0);e.style.cssText=`position:fixed;pointer-events:none;z-index:9999;opacity:0.8;width:${a.getBoundingClientRect().width}px;transform:rotate(2deg);`,document.body.appendChild(e),Bl.value=e}Wl=null}function eu(e,t){Bl.value&&(Bl.value.style.left=`${e-40}px`,Bl.value.style.top=`${t-20}px`)}function tu(e,t){let n=Zl(e,t);if(!n||!Jl.value?.contains(n)){Tl=null,El=null,Ol=null,Rl();return}if(zl.value===`card`){let e=n.closest(`.kb-card`),r=n.closest(`.kb-col`);if(e&&r){let n=e.dataset.cardId||``,i=r.dataset.colId||``;if(n&&i){let a=e.getBoundingClientRect(),o=t-a.top<a.height/2?`before`:`after`;Tl!==i&&(Tl=i,Il(r)),(El!==n||Dl!==o)&&(El=n,Dl=o,Fl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(Tl=e,El=null,Il(r),Fl(null,`before`))}}else if(zl.value===`column`){let t=n.closest(`.kb-col`);if(t){let n=t.dataset.colId||``;if(n&&n!==wl.value){let r=t.getBoundingClientRect(),i=e-r.left<r.width/2?`before`:`after`;(Ol!==n||kl!==i)&&(Ol=n,kl=i,Ll(t,i))}}}}function nu(){Ql(),Xl(),Bl.value&&=(Bl.value.remove(),null),Vl.value&&(zl.value===`card`&&Tl?hu(Tl):zl.value===`column`&&Ol&&gu(Ol)),zl.value=null,Vl.value=!1,mu()}function ru(e){return!!e?.closest(`button, a, input, textarea, select, [contenteditable="true"]`)}function iu(e,t,n,r){p.readOnly||e.pointerType===`touch`||e.button!==0||ru(e.target)||(Ql(),ql=!1,Wl={type:t,colId:n,cardId:r,el:e.target},e.currentTarget.setPointerCapture?.(e.pointerId),Gl={x:e.clientX,y:e.clientY},Kl={...Gl},document.addEventListener(`pointermove`,ou),document.addEventListener(`pointerup`,su),document.addEventListener(`pointercancel`,su),window.addEventListener(`wheel`,lu,{passive:!0}),window.addEventListener(`scroll`,lu,{capture:!0,passive:!0}),window.addEventListener(`keydown`,au))}function au(e){e.key===`Escape`&&(Tl=null,El=null,Ol=null,Rl(),su())}function ou(e){if(Kl={x:e.clientX,y:e.clientY},!Vl.value){if(!Wl||Math.hypot(e.clientX-Gl.x,e.clientY-Gl.y)<zc)return;$l(!1)}e.preventDefault(),eu(e.clientX,e.clientY),Yl(e.clientX,e.clientY),tu(e.clientX,e.clientY)}function su(){cu(),Vl.value&&(ql=!0),nu()}function cu(){document.removeEventListener(`pointermove`,ou),document.removeEventListener(`pointerup`,su),document.removeEventListener(`pointercancel`,su),window.removeEventListener(`wheel`,lu),window.removeEventListener(`scroll`,lu,{capture:!0}),window.removeEventListener(`keydown`,au)}function lu(){Vl.value&&tu(Kl.x,Kl.y)}function uu(e){ql&&(ql=!1,e.stopImmediatePropagation(),e.preventDefault())}j(()=>{cu(),Xl(),Bl.value&&=(Bl.value.remove(),null)});function du(e,t,n,r){if(p.readOnly||ru(e.target))return;Ql();let i=e.touches[0],a=i.clientX,o=i.clientY;Wl={type:t,colId:n,cardId:r,el:e.target};let s=e=>{let t=e.touches[0],n=t.clientX-a,r=t.clientY-o;Math.sqrt(n*n+r*r)>Rc&&(Ql(),document.removeEventListener(`touchmove`,s))};document.addEventListener(`touchmove`,s,{passive:!0}),Ul=setTimeout(()=>{document.removeEventListener(`touchmove`,s),$l(!0)},Lc)}function fu(e){if(!Vl.value)return;e.preventDefault();let t=e.touches[0];Kl={x:t.clientX,y:t.clientY},eu(t.clientX,t.clientY),Yl(t.clientX,t.clientY),tu(t.clientX,t.clientY)}function pu(){nu()}function mu(){Cl.value=null,Tl=null,El=null,wl.value=null,Ol=null,Rl()}function hu(e){if(p.readOnly)return;if(wl.value){gu(e);return}if(!Cl.value)return;let{colId:t,cardId:n}=Cl.value,r=Je(t),i=Je(e),a=null,o=E.value.map(e=>e.id===t?(a=e.cards.find(e=>e.id===n)??null,{...e,cards:e.cards.filter(e=>e.id!==n)}):e),s=0;if(a){let n={...a};!m.value&&t!==e&&Ye(n,`moved`,`"${r}" → "${i}"`),o=o.map(t=>{if(t.id!==e)return t;let r=[...t.cards].sort((e,t)=>e.order-t.order),i=r.length;if(El){let e=r.findIndex(e=>e.id===El);e!==-1&&(i=Dl===`before`?e:e+1)}return s=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(Cl.value=null,Tl=null,El=null,Rl(),p.moveCard&&a){E.value=o,p.moveCard(a.id,e,s);return}D(o,a?{kind:`card-move`,cardId:a.id,toColumnId:e,toIndex:s}:void 0)}function gu(e){if(p.readOnly||!wl.value||wl.value===e){wl.value=null,Ol=null,Rl();return}let t=[...E.value].sort((e,t)=>e.order-t.order),n=t.findIndex(e=>e.id===wl.value),r=t.splice(n,1)[0],i=t.findIndex(t=>t.id===e);t.splice(kl===`before`?i:i+1,0,r),wl.value=null,Ol=null,Rl(),D(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return u({openCardEditor:Ht,closeCardEditor:Xt,saveCard:Zt,editingCard:G}),(e,i)=>{let o=ke(`tooltip`);return V(),W(`div`,{ref_key:`rootEl`,ref:Jl,class:`kb`},[c(`header`,Qr,[O(H(C),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:i[0]||=e=>v(`back`)}),R((V(),W(`h1`,{class:`kb-header__title`,ref:e=>Mr(e,`board`)},[T(h(a.name),1)])),[[o,Pr(`board`,a.name),void 0,{bottom:!0}]]),c(`span`,$r,[i[60]||=c(`i`,{class:`pi pi-search`},null,-1),O(H(r),{modelValue:k.value,"onUpdate:modelValue":i[1]||=e=>k.value=e,placeholder:H(x)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),k.value?(V(),g(H(C),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:i[2]||=e=>k.value=``})):w(``,!0),a.searchTruncated?(V(),W(`small`,ei,h(H(x)(`searchTruncated`)),1)):w(``,!0)]),R(O(H(C),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:ye.value?String(ye.value):void 0,"badge-severity":`info`,class:S({"kb-header__filter--on":ye.value}),onClick:i[3]||=e=>ce.value=!0},null,8,[`badge`,`class`]),[[o,H(x)(`filters.open`),void 0,{bottom:!0}]]),R(O(H(C),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:kn},null,512),[[o,H(x)(`archive.open`),void 0,{bottom:!0}]]),a.readOnly?w(``,!0):R((V(),g(H(C),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:i[4]||=e=>Ae.value=!0},null,512)),[[o,H(x)(`groups.title`),void 0,{bottom:!0}]]),a.readOnly?(V(),W(`span`,ti,[i[61]||=c(`i`,{class:`pi pi-lock`},null,-1),T(` `+h(H(x)(`readOnly.badge`)),1)])):w(``,!0),I(e.$slots,`header-actions`,{},void 0,!0)]),I(e.$slots,`banner`,{},void 0,!0),c(`div`,ni,[Ie.value?(V(),W(`div`,{key:0,class:`kb-bands`,style:s({height:`${Ie.value}px`})},[(V(!0),W(_,null,L(Ge.value,e=>(V(),W(`div`,{key:e.id,class:`kb-band`,style:s({left:`${e.left}px`,width:`${e.width}px`,top:`${e.top}px`,"--kb-band-color":e.color||`var(--p-text-muted-color)`})},[c(`span`,ri,h(e.title),1),c(`span`,ii,h(e.count),1)],4))),128))],4)):w(``,!0),c(`div`,{ref_key:`boardEl`,ref:Re,class:`kb-board`},[(V(!0),W(_,null,L(Oe.value,r=>(V(),W(`div`,{key:r.id,class:S([`kb-col`,{"kb-col--collapsed":qc(r.id),"kb-col--dragging":wl.value===r.id}]),"data-col-id":r.id,onPointerdown:e=>iu(e,`column`,r.id),onTouchstart:e=>du(e,`column`,r.id),onTouchmove:fu,onTouchend:pu,onContextmenu:i[8]||=n(()=>{},[`prevent`])},[qc(r.id)?(V(),W(`button`,{key:0,class:S([`kb-col__strip`,{"kb-col__strip--empty":r.cards.length===0}]),title:H(x)(`column.expand`),onClick:e=>Jc(r.id)},[i[62]||=c(`i`,{class:`pi pi-angle-double-right`},null,-1),c(`span`,si,h(r.cards.length),1),Er(r.id)?(V(),W(`i`,ci)):w(``,!0),R((V(),W(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>Mr(e,`strip:${r.id}`)},[T(h(r.title),1)])),[[o,Pr(`strip:${r.id}`,r.title),void 0,{right:!0}]])],10,oi)):(V(),W(`div`,li,[R(c(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>Mr(e,`col:${r.id}`),value:r.title,readonly:a.readOnly,onBlur:e=>Qe(r.id,e.target.value),onKeyup:i[5]||=B(e=>e.target.blur(),[`enter`]),onMousedown:i[6]||=n(()=>{},[`stop`])},null,40,ui),[[o,Pr(`col:${r.id}`,r.title),void 0,{bottom:!0}]]),c(`div`,di,[hr.value&&Er(r.id)?R((V(),g(H(C),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>Br(r.id)},null,8,[`onClick`])),[[o,H(x)(`column.unsubscribe`),void 0,{bottom:!0}]]):w(``,!0),R(O(H(C),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:S([`kb-col__menu-btn`,{"kb-col__menu-btn--open":Ir.value?.id===r.id}]),onClick:e=>Lr(e,r)},null,8,[`class`,`onClick`]),[[o,H(x)(`column.menu`),void 0,{bottom:!0}]]),c(`span`,fi,h(r.cards.length),1)])])),!a.readOnly&&!qc(r.id)?(V(),W(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>zt(r.id,`top`)},[i[63]||=c(`i`,{class:`pi pi-plus`},null,-1),T(` `+h(H(x)(`column.addCard`)),1)],8,pi)):w(``,!0),qc(r.id)?w(``,!0):(V(),W(`div`,mi,[(V(!0),W(_,null,L(r.cards,l=>(V(),W(`div`,{key:l.id,class:S([`kb-card`,{"kb-card--colored":l.color}]),style:s(l.color?{borderTopColor:l.color}:void 0),"data-card-id":l.id,onPointerdown:n(e=>iu(e,`card`,r.id,l.id),[`stop`]),onTouchstart:n(e=>du(e,`card`,r.id,l.id),[`stop`]),onTouchmove:fu,onTouchend:pu,onContextmenu:i[7]||=n(()=>{},[`prevent`]),onClickCapture:uu,onClick:e=>Ht(r.id,l)},[O(un,{card:l,t:H(x),"avatar-url":a.avatarUrl,"child-count":tn(l.id),"has-parent":!!$t(l.id)},{actions:t(()=>[I(e.$slots,`card-actions`,{card:l,column:r},void 0,!0),a.readOnly?w(``,!0):R((V(),W(`button`,{key:0,class:`kb-card__delete`,onClick:n(e=>An(r.id,l.id),[`stop`])},[...i[64]||=[c(`i`,{class:`pi pi-inbox`},null,-1)]],8,gi)),[[o,H(x)(`archive.cardTooltip`),void 0,{bottom:!0}]]),a.readOnly?w(``,!0):R((V(),W(`button`,{key:1,class:`kb-card__delete`,onClick:n(e=>Mn(r.id,l.id),[`stop`])},[...i[65]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,_i)),[[o,H(x)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:t(()=>[I(e.$slots,`card-badges`,{card:l},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,hi))),128)),r.cards.length===0?(V(),W(`div`,vi,h(H(x)(`column.dropZone`)),1)):w(``,!0)])),!a.readOnly&&!qc(r.id)?(V(),W(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>zt(r.id)},[i[66]||=c(`i`,{class:`pi pi-plus`},null,-1),T(` `+h(H(x)(`column.addCard`)),1)],8,yi)):w(``,!0)],42,ai))),128)),O(H(ie),{visible:gr.value!==null,modal:``,header:H(x)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":i[13]||=e=>{e||(gr.value=null)}},{footer:t(()=>[Wr.value?(V(),g(H(C),{key:0,label:Cr.value?H(x)(`column.unsubscribeTeam`):H(x)(`column.unsubscribe`),severity:`danger`,text:``,onClick:Kr},null,8,[`label`])):w(``,!0),O(H(C),{label:H(x)(`editor.cancel`),text:``,onClick:i[12]||=e=>gr.value=null},null,8,[`label`]),O(H(C),{label:Wr.value?H(x)(`editor.save`):H(x)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Hr.value,onClick:Gr},null,8,[`label`,`disabled`])]),default:t(()=>[c(`p`,bi,h(H(x)(`column.subscribeIntro`,{column:qr.value?.title??``})),1),wr.value.length?(V(),W(_,{key:0},[c(`p`,xi,h(H(x)(`column.subscribeTargetLabel`)),1),c(`div`,Si,[c(`label`,Ci,[O(H(Fe),{"model-value":Cr.value,value:null,"onUpdate:modelValue":i[9]||=e=>Vr(null)},null,8,[`model-value`]),c(`span`,null,h(H(x)(`column.subscribeTargetMe`)),1)]),(V(!0),W(_,null,L(wr.value,e=>(V(),W(`label`,{key:e.id,class:`kb-subscribe__option`},[O(H(Fe),{"model-value":Cr.value,value:e.id,"onUpdate:modelValue":t=>Vr(e.id)},null,8,[`model-value`,`value`,`onUpdate:modelValue`]),c(`span`,null,h(e.name),1)]))),128))])],64)):w(``,!0),c(`p`,wi,h(H(x)(`column.subscribeEventsLabel`)),1),c(`div`,Ti,[(V(),W(_,null,L(_r,e=>c(`label`,{key:e,class:`kb-subscribe__option`},[O(H(Pe),{modelValue:xr.value,"onUpdate:modelValue":i[10]||=e=>xr.value=e,value:e},null,8,[`modelValue`,`value`]),c(`span`,null,h(H(x)(`column.subscribeKind.${e}`)),1)])),64))]),c(`p`,Ei,[i[67]||=c(`i`,{class:`pi pi-times`},null,-1),T(` `+h(H(x)(`column.subscribeNotReorder`)),1)]),c(`p`,Di,h(H(x)(`column.subscribeChannelsLabel`)),1),c(`div`,Oi,[(V(),W(_,null,L(vr,e=>c(`label`,{key:e,class:`kb-subscribe__option`},[O(H(Pe),{modelValue:Sr.value,"onUpdate:modelValue":i[11]||=e=>Sr.value=e,value:e},null,8,[`modelValue`,`value`]),c(`span`,null,h(H(x)(`column.subscribeChannel.${e}`)),1)])),64))]),c(`p`,ki,h(H(x)(`column.subscribeOwnActions`)),1),Dr.value.length?(V(),W(`p`,Ai,h(H(x)(`column.subscribeTeamsFollowing`,{teams:Dr.value.join(`, `)})),1)):w(``,!0)]),_:1},8,[`visible`,`header`]),O(H(ie),{visible:Lt.value!==null,header:H(x)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":i[15]||=e=>{e||(Lt.value=null)}},{default:t(()=>[c(`p`,ji,h(H(x)(`templates.pickIntro`)),1),c(`div`,Mi,[c(`button`,{class:`kb-tpl-option`,onClick:i[14]||=e=>Bt(null)},[i[68]||=c(`i`,{class:`pi pi-file`},null,-1),T(` `+h(H(x)(`templates.blank`)),1)]),(V(!0),W(_,null,L(a.templates,e=>(V(),W(`button`,{key:e.id,class:`kb-tpl-option`,onClick:t=>Bt(e)},[i[69]||=c(`i`,{class:`pi pi-file-edit`},null,-1),T(` `+h(e.name),1)],8,Ni))),128))])]),_:1},8,[`visible`,`header`]),a.readOnly?w(``,!0):(V(),W(`div`,Pi,[ae.value?(V(),W(`div`,Fi,[O(H(r),{modelValue:se.value,"onUpdate:modelValue":i[16]||=e=>se.value=e,placeholder:H(x)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[B(Xe,[`enter`]),i[17]||=B(e=>ae.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),c(`div`,Ii,[O(H(C),{label:H(x)(`addColumnButton`),size:`small`,disabled:!se.value.trim(),onClick:Xe},null,8,[`label`,`disabled`]),O(H(C),{icon:`pi pi-times`,text:``,size:`small`,onClick:i[18]||=e=>ae.value=!1})])])):(V(),W(`button`,{key:1,class:`kb-add-col__trigger`,onClick:i[19]||=e=>ae.value=!0},[i[70]||=c(`i`,{class:`pi pi-plus`},null,-1),T(` `+h(H(x)(`addColumn`)),1)]))]))],512)]),O(Zr,{visible:Ae.value,"onUpdate:visible":i[20]||=e=>Ae.value=e,columns:E.value,groups:a.columnGroups,"read-only":a.readOnly,t:H(x),onIntent:i[21]||=e=>v(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),O(H(oe),{visible:ce.value,"onUpdate:visible":i[30]||=e=>ce.value=e,position:`right`,header:H(x)(`filters.title`),class:`kb-filters`},{footer:t(()=>[O(H(C),{label:H(x)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!ye.value,onClick:xe},null,8,[`label`,`disabled`])]),default:t(()=>[c(`div`,Li,[c(`section`,Ri,[c(`span`,zi,h(H(x)(`filters.priority`)),1),_e.value?(V(),W(_,{key:1},[c(`div`,Bi,[(V(),W(_,null,L([`lte`,`eq`,`gte`],e=>R(c(`button`,{key:e,class:S([`kb-ops__btn`,{"kb-ops__btn--on":M.value===e}]),onClick:t=>{M.value=e,N.value===null&&(N.value=5)}},[T(h(e===`lte`?`≤`:e===`eq`?`=`:`≥`),1)],10,Vi),[[o,{value:H(x)(`filters.priorityOp.${e}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),R((V(),W(`button`,{class:S([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":M.value===`none`}]),onClick:i[23]||=e=>{M.value=M.value===`none`?`gte`:`none`,N.value=M.value===`none`?null:5}},[...i[72]||=[c(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[o,{value:H(x)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),M.value===`none`?w(``,!0):(V(),W(`div`,Hi,[O(H(nt),{"model-value":N.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":i[24]||=e=>N.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),c(`span`,Ui,h(N.value),1)])),c(`button`,{class:`kb-prio__set`,onClick:i[25]||=e=>{N.value=null,M.value=`gte`}},[i[73]||=c(`i`,{class:`pi pi-times`},null,-1),T(` `+h(H(x)(`filters.clearOne`)),1)]),M.value===`none`?w(``,!0):(V(),W(`p`,Wi,h(H(x)(`filters.priorityHint`)),1))],64)):(V(),W(`button`,{key:0,class:`kb-prio__set`,onClick:i[22]||=e=>N.value=5},[i[71]||=c(`i`,{class:`pi pi-plus`},null,-1),T(` `+h(H(x)(`filters.priorityAdd`)),1)]))]),c(`section`,Gi,[c(`span`,Ki,h(H(x)(`filters.colors`)),1),c(`div`,qi,[R((V(),W(`button`,{class:S([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":P.value.includes(``)}]),onClick:i[26]||=e=>P.value=P.value.includes(``)?P.value.filter(e=>e!==``):[...P.value,``]},[...i[74]||=[c(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[o,{value:H(x)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(V(),W(_,null,L(Dt,e=>R(c(`button`,{key:e,class:S([`kb-colors__swatch`,{"kb-colors__swatch--on":P.value.includes(e)}]),style:s({background:e}),onClick:t=>P.value=P.value.includes(e)?P.value.filter(t=>t!==e):[...P.value,e]},null,14,Ji),[[o,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))])]),c(`section`,Yi,[c(`span`,Xi,h(H(x)(`filters.groups`)),1),O(H(Le),{modelValue:Ce.value,"onUpdate:modelValue":i[27]||=e=>Ce.value=e,options:we.value,placeholder:H(x)(`filters.groupsPlaceholder`),display:`chip`,filter:we.value.length>6,class:`kb-filters__control`},{option:t(({option:e})=>[c(`span`,{class:S([`kb-void`,{"kb-void--is":e===$}])},[e===$?(V(),W(`i`,Zi)):w(``,!0),T(` `+h(e===$?H(x)(`filters.noGroups`):e),1)],2)]),chip:t(({value:e})=>[c(`span`,{class:S([`kb-void`,{"kb-void--is":e===$}])},h(e===$?H(x)(`filters.noGroups`):e),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),c(`section`,Qi,[c(`span`,$i,h(H(x)(`filters.assignees`)),1),O(H(Le),{modelValue:Te.value,"onUpdate:modelValue":i[28]||=e=>Te.value=e,options:Ee.value,"option-label":`name`,"option-value":`userId`,placeholder:H(x)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:t(({option:e})=>[c(`span`,{class:S([`kb-void`,{"kb-void--is":e.userId===$}])},[e.userId===$?(V(),W(`i`,ea)):w(``,!0),T(` `+h(e.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),c(`section`,ta,[c(`span`,na,h(H(x)(`filters.family`)),1),O(H(Le),{modelValue:U.value,"onUpdate:modelValue":i[29]||=e=>U.value=e,options:De.value,"option-label":`title`,"option-value":`id`,placeholder:H(x)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:t(({option:e})=>[c(`span`,{class:S([`kb-void`,{"kb-void--is":e.id===$}])},[e.id===$?(V(),W(`i`,ra)):w(``,!0),c(`span`,null,h(e.title),1),e.column?(V(),W(`span`,ia,h(e.column),1)):w(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),c(`p`,aa,h(H(x)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),O(H(oe),{visible:Y.value,"onUpdate:visible":i[35]||=e=>Y.value=e,position:`right`,header:H(x)(`archive.title`),class:`kb-archive`},{default:t(()=>[c(`p`,oa,h(H(x)(`archive.hint`)),1),c(`span`,sa,[i[75]||=c(`i`,{class:`pi pi-search`},null,-1),O(H(r),{modelValue:yn.value,"onUpdate:modelValue":i[31]||=e=>yn.value=e,placeholder:H(x)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),yn.value?(V(),g(H(C),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:i[32]||=e=>yn.value=``})):w(``,!0),R(O(H(C),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:ye.value?String(ye.value):void 0,"badge-severity":`info`,class:S({"kb-header__filter--on":ye.value}),onClick:i[33]||=e=>ce.value=!0},null,8,[`badge`,`class`]),[[o,H(x)(`filters.open`),void 0,{bottom:!0}]])]),O(H(ve),{modelValue:bn.value,"onUpdate:modelValue":i[34]||=e=>bn.value=e,options:xn.value,"option-label":`title`,"option-value":`id`,size:`small`,class:`kb-archive__column`,"aria-label":H(x)(`archive.columnFilter`)},null,8,[`modelValue`,`options`,`aria-label`]),a.loadingArchive?(V(),W(`p`,ca,h(H(x)(`archive.loading`)),1)):a.archivedCards.length?En.value.length?(V(),W(_,{key:3},[Dn.value?(V(),W(`p`,da,[T(h(H(x)(`archive.filteredOut`,{count:Dn.value}))+` `,1),c(`button`,{class:`kb-archive__reset`,onClick:xe},h(H(x)(`filters.reset`)),1)])):w(``,!0),a.archiveTruncated?(V(),W(`p`,fa,[i[76]||=c(`i`,{class:`pi pi-exclamation-circle`},null,-1),T(` `+h(H(x)(`archive.truncated`)),1)])):w(``,!0),c(`ul`,pa,[(V(!0),W(_,null,L(En.value,r=>(V(),W(`li`,{key:r.id,class:S([`kb-card kb-archive__card`,{"kb-card--colored":r.color}]),style:s(r.color?{borderTopColor:r.color}:void 0),onClick:e=>Tn(r)},[O(un,{card:r,t:H(x),"avatar-url":a.avatarUrl,"child-count":tn(r.id),"has-parent":!!$t(r.id)},{actions:t(()=>[a.readOnly?w(``,!0):R((V(),W(`button`,{key:0,class:`kb-card__delete`,onClick:n(e=>jn(r.id),[`stop`])},[...i[77]||=[c(`i`,{class:`pi pi-replay`},null,-1)]],8,ha)),[[o,H(x)(`archive.restore`),void 0,{left:!0}]])]),badges:t(()=>[I(e.$slots,`card-badges`,{card:r},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),c(`div`,ga,[r.archivedFrom?(V(),W(`span`,_a,[i[78]||=c(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),T(` `+h(H(x)(`archive.fromColumn`,{column:r.archivedFrom.columnTitle})),1)])):w(``,!0),r.archivedAt?(V(),W(`span`,va,h(new Date(r.archivedAt).toLocaleDateString()),1)):w(``,!0)])],14,ma))),128))])],64)):(V(),W(`p`,ua,h(H(x)(`archive.allFiltered`,{count:Dn.value})),1)):(V(),W(`p`,la,h(yn.value||bn.value?H(x)(`archive.noMatch`):H(x)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),O(H(ie),{visible:!!G.value,header:$e.value.trim()||H(x)(`card.untitled`),modal:!0,"dismissable-mask":!Gt.value,class:S([`kb-card-dialog`,{"kb-card-dialog--colored":Et.value}]),style:s({width:`min(1400px, 92vw)`,height:`90vh`,...Et.value?{"--kb-card-color":Et.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":i[54]||=e=>{e||Kt()}},{footer:t(()=>[c(`div`,tc,[Gt.value&&!X.value?(V(),W(`span`,nc,[i[107]||=c(`i`,{class:`pi pi-exclamation-circle`},null,-1),T(` `+h(H(x)(`editor.unsavedHint`)),1)])):w(``,!0),O(H(C),{label:H(x)(`editor.close`),text:``,onClick:Kt},null,8,[`label`]),X.value?w(``,!0):(V(),g(H(C),{key:1,label:H(x)(`editor.save`),icon:`pi pi-check`,onClick:Zt},null,8,[`label`]))])]),default:t(()=>[G.value?(V(),W(`div`,ya,[c(`div`,ba,[wn.value?(V(),W(`p`,xa,[i[79]||=c(`i`,{class:`pi pi-inbox`},null,-1),T(` `+h(H(x)(`archive.editorReadOnly`)),1)])):w(``,!0),O(H(Ve),{value:At.value,"onUpdate:value":i[43]||=e=>At.value=e},{default:t(()=>[O(H(ze),null,{default:t(()=>[O(H(He),{value:`edit`},{default:t(()=>[i[80]||=c(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),T(h(H(x)(`editor.tabs.edit`)),1)]),_:1}),fn.value||mn.value?(V(),g(H(He),{key:0,value:`relations`},{default:t(()=>[i[81]||=c(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),T(h(H(x)(`editor.tabs.relations`,{count:mn.value})),1)]),_:1})):w(``,!0),O(H(He),{value:`comments`},{default:t(()=>[i[82]||=c(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),T(h(H(x)(`editor.tabs.comments`,{count:Yc.value.length||(G.value.card.commentCount??0)})),1)]),_:1}),O(H(He),{value:`history`},{default:t(()=>[i[83]||=c(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),T(h(H(x)(`editor.tabs.history`,{count:G.value.card.history?.length??0})),1)]),_:1})]),_:1}),O(H(Be),null,{default:t(()=>[O(H(Ue),{value:`edit`},{default:t(()=>[c(`div`,Sa,[c(`div`,Ca,[c(`label`,wa,h(H(x)(`editor.titleLabel`)),1),O(H(r),{id:`kanban-card-title`,modelValue:$e.value,"onUpdate:modelValue":i[36]||=e=>$e.value=e,disabled:X.value,autofocus:``,onKeyup:B(Zt,[`enter`])},null,8,[`modelValue`,`disabled`])]),c(`div`,Ta,[c(`label`,Ea,h(H(x)(`editor.contentLabel`)),1),O(H(ne),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:Mt,modelValue:et.value,"onUpdate:modelValue":i[37]||=e=>et.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!X.value,placeholder:H(x)(`editor.contentPlaceholder`),"handle-files":e=>yl(e,`card`),mentions:$n.value,"attachment-src":ct,onLinkClick:Xc},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),c(`div`,Da,[c(`label`,Oa,h(H(x)(`editor.filesLabel`)),1),tt.value.length?(V(),W(`div`,ka,[(V(!0),W(_,null,L(tt.value,(e,t)=>(V(),W(`div`,{key:t,class:`kb-dialog__thumb`},[c(`img`,{src:e,alt:`attachment`},null,8,Aa),X.value?w(``,!0):(V(),W(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>Sl(t)},[...i[84]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,ja))]))),128))])):w(``,!0),O(vn,{files:rt.value,preview:Fn,removable:!X.value,"remove-label":H(x)(`editor.removeFile`),onOpen:Kn,onRemove:Xn},null,8,[`files`,`removable`,`remove-label`]),O(Nr,{queue:at.value,errors:K.value,uploading:it.value,"uploading-label":H(x)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),X.value?w(``,!0):(V(),W(`label`,Ma,[i[85]||=c(`i`,{class:`pi pi-upload`},null,-1),T(` `+h(H(x)(`editor.attachFile`))+` `,1),c(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:xl},null,32)]))])])]),_:1}),O(H(Ue),{value:`relations`},{default:t(()=>[c(`div`,Na,[J.value||fn.value?(V(),W(`section`,Pa,[c(`h4`,Fa,[i[86]||=c(`i`,{class:`pi pi-arrow-up`},null,-1),T(` `+h(H(x)(`editor.parentLabel`)),1)]),J.value?(V(),W(`table`,Ia,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,h(H(x)(`editor.relationsColCard`)),1),c(`th`,null,h(H(x)(`editor.relationsColBoard`)),1),c(`th`,null,h(H(x)(`editor.relationsColColumn`)),1),c(`th`,La,h(H(x)(`editor.relationsColAssignees`)),1),c(`th`,Ra,h(H(x)(`editor.relationsColComments`)),1),c(`th`,za,h(H(x)(`editor.relationsColActions`)),1)])]),c(`tbody`,null,[c(`tr`,null,[c(`td`,Ba,[R((V(),W(`span`,{class:`kb-rel__card-title`,ref:e=>Mr(e,`rel:${J.value?.cardId??``}`)},[T(h(J.value.title),1)])),[[o,Pr(`rel:${J.value.cardId}`,J.value.title),void 0,{top:!0}]])]),c(`td`,{class:S([`kb-rel__board`,{"kb-rel__board--away":!J.value.here}])},[R((V(),W(`span`,{class:`kb-rel__card-title`,ref:e=>Mr(e,`relb:${J.value?.cardId??``}`)},[T(h(J.value.boardName),1)])),[[o,Pr(`relb:${J.value?.cardId??``}`,J.value?.boardName??``),void 0,{top:!0}]])],2),c(`td`,Va,[R((V(),W(`span`,{class:`kb-rel__card-title`,ref:e=>Mr(e,`relc:${J.value?.cardId??``}`)},[T(h(J.value.columnTitle),1)])),[[o,Pr(`relc:${J.value?.cardId??``}`,J.value?.columnTitle??``),void 0,{top:!0}]])]),c(`td`,Ha,[J.value.assignees.length?(V(),W(`div`,Ua,[(V(!0),W(_,null,L(J.value.assignees,e=>(V(),W(`span`,{key:e.id,class:`kb-card__avatar`,style:s(tr(e.id)),title:e.name},[a.avatarUrl&&!Zn.has(e.id)?(V(),W(`img`,{key:0,src:a.avatarUrl(e.id),alt:``,onError:t=>Zn.add(e.id)},null,40,Ga)):(V(),W(_,{key:1},[T(h(Qn(e.name)),1)],64))],12,Wa))),128))])):(V(),W(`span`,Ka,`—`))]),c(`td`,qa,h(J.value.commentCount||`—`),1),c(`td`,Ja,[c(`button`,{class:`kb-rel__action`,title:J.value.here?H(x)(`editor.childOpen`):H(x)(`editor.openOnBoard`,{board:J.value.boardName}),onClick:i[38]||=e=>hn(J.value.cardId,J.value.boardId)},[...i[87]||=[c(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Ya),fn.value?(V(),W(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:H(x)(`editor.detach`),onClick:i[39]||=e=>cn(null)},[...i[88]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,Xa)):w(``,!0)])])])])):(V(),W(`p`,Za,h(H(x)(`editor.parentEmptyState`)),1)),fn.value?(V(),g(H(ve),{key:2,"model-value":null,options:on.value,"option-label":`title`,"option-value":`id`,filter:on.value.length>6,"filter-placeholder":H(x)(`editor.parentSearchPlaceholder`),"empty-message":H(x)(`editor.parentEmpty`),"empty-filter-message":H(x)(`editor.parentEmpty`),placeholder:J.value?H(x)(`editor.parentReplace`):H(x)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":cn},{option:t(({option:e})=>[c(`span`,Qa,[c(`span`,null,h(e.title),1),c(`span`,$a,h(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):w(``,!0)])):w(``,!0),nn.value.length||fn.value?(V(),W(`section`,eo,[c(`h4`,to,[i[89]||=c(`i`,{class:`pi pi-arrow-down`},null,-1),T(` `+h(H(x)(`editor.childrenLabel`,{count:nn.value.length})),1)]),nn.value.length?(V(),W(`table`,no,[c(`thead`,null,[c(`tr`,null,[c(`th`,null,h(H(x)(`editor.relationsColCard`)),1),c(`th`,null,h(H(x)(`editor.relationsColBoard`)),1),c(`th`,null,h(H(x)(`editor.relationsColColumn`)),1),c(`th`,ro,h(H(x)(`editor.relationsColAssignees`)),1),c(`th`,io,h(H(x)(`editor.relationsColComments`)),1),c(`th`,ao,h(H(x)(`editor.relationsColActions`)),1)])]),c(`tbody`,null,[(V(!0),W(_,null,L(nn.value,e=>(V(),W(`tr`,{key:e.cardId},[c(`td`,oo,[R((V(),W(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>Mr(t,`rel:${e.cardId}`)},[T(h(e.title),1)])),[[o,Pr(`rel:${e.cardId}`,e.title),void 0,{top:!0}]])]),c(`td`,{class:S([`kb-rel__board`,{"kb-rel__board--away":!e.here}])},[R((V(),W(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>Mr(t,`relb:${e.cardId}`)},[T(h(e.boardName),1)])),[[o,Pr(`relb:${e.cardId}`,e.boardName),void 0,{top:!0}]])],2),c(`td`,so,[R((V(),W(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:t=>Mr(t,`relc:${e.cardId}`)},[T(h(e.columnTitle),1)])),[[o,Pr(`relc:${e.cardId}`,e.columnTitle),void 0,{top:!0}]])]),c(`td`,co,[e.assignees.length?(V(),W(`div`,lo,[(V(!0),W(_,null,L(e.assignees,e=>(V(),W(`span`,{key:e.id,class:`kb-card__avatar`,style:s(tr(e.id)),title:e.name},[a.avatarUrl&&!Zn.has(e.id)?(V(),W(`img`,{key:0,src:a.avatarUrl(e.id),alt:``,onError:t=>Zn.add(e.id)},null,40,fo)):(V(),W(_,{key:1},[T(h(Qn(e.name)),1)],64))],12,uo))),128))])):(V(),W(`span`,po,`—`))]),c(`td`,mo,h(e.commentCount||`—`),1),c(`td`,ho,[c(`button`,{class:`kb-rel__action`,title:e.here?H(x)(`editor.childOpen`):H(x)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>hn(e.cardId,e.boardId)},[...i[90]||=[c(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,go),fn.value?(V(),W(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:H(x)(`editor.detach`),onClick:t=>dn(e.cardId)},[...i[91]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,_o)):w(``,!0)])]))),128))])])):(V(),W(`p`,vo,h(H(x)(`editor.childrenEmptyState`)),1)),fn.value?(V(),g(H(ve),{key:2,"model-value":null,options:sn.value,"option-label":`title`,"option-value":`id`,filter:sn.value.length>6,"filter-placeholder":H(x)(`editor.parentSearchPlaceholder`),"empty-message":H(x)(`editor.parentEmpty`),"empty-filter-message":H(x)(`editor.parentEmpty`),placeholder:H(x)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":ln},{option:t(({option:e})=>[c(`span`,yo,[c(`span`,null,h(e.title),1),c(`span`,bo,h(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):w(``,!0)])):w(``,!0),!fn.value&&!J.value&&!nn.value.length?(V(),W(`p`,xo,h(H(x)(`editor.relationsEmpty`)),1)):w(``,!0)])]),_:1}),O(H(Ue),{value:`comments`},{default:t(()=>[c(`div`,So,[Yc.value.length?(V(),W(`div`,wo,[(V(!0),W(_,null,L(Yc.value,(e,t)=>(V(),W(`div`,{key:t,class:S([`kb-comments__item`,{"kb-comments__item--ai":e.author===`ai`,"kb-comments__item--clickable":ul(e)}]),onClick:t=>ul(e)&&fl(e)},[c(`div`,{class:S([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!rr(e)}]),style:s(rr(e)?tr(rr(e)):void 0)},[e.author===`ai`?(V(),W(`i`,Eo)):rr(e)&&a.avatarUrl&&!Zn.has(rr(e))?(V(),W(`img`,{key:1,src:a.avatarUrl(rr(e)),alt:``,onError:t=>Zn.add(rr(e))},null,40,Do)):e.authorUser?.name?(V(),W(_,{key:2},[T(h(Qn(e.authorUser.name)),1)],64)):(V(),W(`i`,Oo))],6),c(`div`,ko,[c(`div`,Ao,[c(`span`,jo,h(ir(e)),1),c(`span`,Mo,h(hl(e.timestamp)),1),e.editedAt?(V(),W(`span`,No,h(H(x)(`comments.edited`)),1)):w(``,!0),!X.value&&pr(e)&&Pt.value!==e.id?(V(),W(`span`,Po,[nr(e)?(V(),W(`button`,{key:0,class:`kb-comments__tool`,title:H(x)(`comments.edit`),onClick:n(t=>or(e),[`stop`])},[...i[93]||=[c(`i`,{class:`pi pi-pencil`},null,-1)]],8,Fo)):w(``,!0),c(`button`,{class:`kb-comments__tool`,title:H(x)(`comments.delete`),onClick:n(t=>mr(e),[`stop`])},[...i[94]||=[c(`i`,{class:`pi pi-trash`},null,-1)]],8,Io)])):w(``,!0)]),Pt.value===e.id?(V(),W(`div`,{key:0,class:`kb-comments__edit`,onClick:i[41]||=n(()=>{},[`stop`])},[O(H(ne),{modelValue:Ft.value,"onUpdate:modelValue":i[40]||=e=>Ft.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:$n.value,onLinkClick:Xc},null,8,[`modelValue`,`mentions`]),c(`div`,Lo,[O(H(C),{label:H(x)(`editor.cancel`),size:`small`,text:``,onClick:lr},null,8,[`label`]),O(H(C),{label:H(x)(`editor.save`),size:`small`,disabled:!Ft.value.trim(),onClick:ur},null,8,[`label`,`disabled`])])])):e.detail?(V(),W(_,{key:1},[c(`div`,{ref_for:!0,ref:n=>sl(n,e,t),class:S([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!nl(e,t),"kb-comments__text--toggleable":rl(e,t)&&!ul(e)}]),onClick:n=>al(e,t,n),innerHTML:Qc(e.detail)},null,10,Ro),rl(e,t)?(V(),W(`button`,{key:0,class:`kb-comments__more`,onClick:n(n=>il(e,t),[`stop`])},h(nl(e,t)?H(x)(`comments.showLess`):H(x)(`comments.showMore`)),9,zo)):w(``,!0)],64)):w(``,!0),Pt.value===e.id?w(``,!0):(V(),g(vn,{key:2,files:e.attachments??[],preview:Fn,compact:``,onOpen:Kn},null,8,[`files`]))])],10,To))),128)),c(`div`,{ref_key:`commentsEndEl`,ref:Nt},null,512)])):(V(),W(`div`,Co,[i[92]||=c(`i`,{class:`pi pi-comments`},null,-1),c(`span`,null,h(H(x)(`comments.empty`)),1)])),X.value?w(``,!0):(V(),W(`div`,{key:2,class:`kb-comments__input`,onKeydown:[B(n(Nn,[`ctrl`,`prevent`]),[`enter`]),B(n(Nn,[`meta`,`prevent`]),[`enter`])]},[O(H(ne),{modelValue:jt.value,"onUpdate:modelValue":i[42]||=e=>jt.value=e,markdown:``,placeholder:H(x)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>yl(e,`comment`),mentions:$n.value,onLinkClick:Xc},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),O(vn,{files:q.value,preview:Fn,openable:!1,removable:``,"remove-label":H(x)(`editor.removeFile`),compact:``,onRemove:bl},null,8,[`files`,`remove-label`]),O(Nr,{queue:at.value,errors:K.value,uploading:it.value,"uploading-label":H(x)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),c(`div`,Vo,[c(`label`,{class:`kb-comments__attach`,title:H(x)(`comments.attach`)},[i[95]||=c(`i`,{class:`pi pi-paperclip`},null,-1),c(`input`,{type:`file`,multiple:``,onChange:vl},null,32)],8,Ho),c(`span`,Uo,h(H(x)(`comments.sendHint`)),1),O(H(C),{label:H(x)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!jt.value.trim()&&!q.value.length,onClick:Nn},null,8,[`label`,`disabled`])])],40,Bo))])]),_:1}),O(H(Ue),{value:`history`},{default:t(()=>[c(`div`,Wo,[G.value.card.history?.length?(V(),W(`div`,Ko,[(V(!0),W(_,null,L([...G.value.card.history].reverse(),(e,t)=>(V(),W(`div`,{key:t,class:S([`kb-history__item`,{"kb-history__item--clickable":ul(e)}]),onClick:t=>ul(e)&&fl(e)},[c(`div`,Jo,[c(`i`,{class:S(pl[e.type])},null,2)]),c(`div`,Yo,[c(`span`,Xo,[T(h(ml.value[e.type])+` `,1),ul(e)?(V(),W(`i`,Zo)):w(``,!0)]),e.detail?(V(),W(`span`,Qo,h(e.detail),1)):w(``,!0),c(`span`,$o,[T(h(hl(e.timestamp))+` `,1),e.authorUser?.name?(V(),W(_,{key:0},[T(` · `+h(H(x)(`history.by`,{name:e.authorUser.name})),1)],64)):w(``,!0)])])],10,qo))),128))])):(V(),W(`div`,Go,[i[96]||=c(`i`,{class:`pi pi-clock`},null,-1),c(`span`,null,h(H(x)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),c(`aside`,es,[a.members.length?(V(),W(`div`,ts,[c(`span`,ns,h(H(x)(`editor.assigneesLabel`)),1),O(H(Le),{modelValue:lt.value,"onUpdate:modelValue":i[44]||=e=>lt.value=e,options:a.members,"option-label":`name`,"option-value":`userId`,placeholder:H(x)(`editor.assigneesPlaceholder`),disabled:X.value,display:`chip`,filter:``,class:`kb-side__control`},{chip:t(({value:e})=>[c(`span`,{class:`kb-card__avatar`,style:s(tr(e)),title:er(e)},[a.avatarUrl&&!Zn.has(e)?(V(),W(`img`,{key:0,src:a.avatarUrl(e),alt:``,onError:t=>Zn.add(e)},null,40,is)):(V(),W(_,{key:1},[T(h(Qn(er(e))),1)],64))],12,rs)]),option:t(({option:e})=>[c(`span`,as,[c(`span`,{class:`kb-card__avatar`,style:s(tr(e.userId))},[a.avatarUrl&&!Zn.has(e.userId)?(V(),W(`img`,{key:0,src:a.avatarUrl(e.userId),alt:``,onError:t=>Zn.add(e.userId)},null,40,os)):(V(),W(_,{key:1},[T(h(Qn(e.name)),1)],64))],4),T(` `+h(e.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),c(`p`,ss,h(H(x)(`editor.assigneesHint`)),1)])):w(``,!0),c(`div`,cs,[c(`span`,ls,[T(h(H(x)(`editor.priorityLabel`))+` `,1),mt.value===null?w(``,!0):(V(),W(`span`,us,h(mt.value)+`/10`,1))]),mt.value===null?X.value?(V(),W(`p`,ps,h(H(x)(`editor.priorityNone`)),1)):(V(),W(`button`,{key:1,class:`kb-prio__set`,onClick:yt},[i[98]||=c(`i`,{class:`pi pi-plus`},null,-1),T(` `+h(H(x)(`editor.priorityAdd`)),1)])):(V(),W(`div`,ds,[O(H(nt),{modelValue:mt.value,"onUpdate:modelValue":i[45]||=e=>mt.value=e,min:1,max:10,step:1,disabled:X.value,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),X.value?w(``,!0):(V(),W(`button`,{key:0,class:`kb-prio__clear`,title:H(x)(`editor.priorityClear`),onClick:i[46]||=e=>mt.value=null},[...i[97]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,fs))]))]),c(`div`,ms,[c(`span`,hs,h(H(x)(`editor.deadlineLabel`)),1),c(`div`,gs,[O(H(kt),{modelValue:ht.value,"onUpdate:modelValue":i[47]||=e=>ht.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:X.value,placeholder:H(x)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!X.value&&ht.value?(V(),W(`button`,{key:0,class:`kb-prio__clear`,title:H(x)(`editor.deadlineClear`),onClick:i[48]||=e=>ht.value=null},[...i[99]||=[c(`i`,{class:`pi pi-times`},null,-1)]],8,_s)):w(``,!0)]),ht.value?(V(),W(`p`,vs,h(gt.value),1)):w(``,!0)]),c(`div`,ys,[c(`span`,bs,h(H(x)(`editor.groupsLabel`)),1),O(H(We),{modelValue:ut.value,"onUpdate:modelValue":i[49]||=e=>ut.value=e,multiple:``,suggestions:dt.value,disabled:X.value,placeholder:ut.value.length?``:H(x)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:pt,onItemSelect:Ct,onKeydown:B(wt,[`enter`]),onFocusout:wt},{option:t(({option:e})=>[c(`span`,xs,[c(`i`,{class:S(ft.value.includes(e)?`pi pi-tag`:`pi pi-plus`)},null,2),c(`span`,null,h(ft.value.includes(e)?e:H(x)(`editor.groupsCreate`,{name:e})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),c(`p`,Ss,h(H(x)(`editor.groupsHint`)),1)]),pn.value.length?(V(),W(`div`,Cs,[c(`span`,ws,h(H(x)(`editor.ancestryLabel`)),1),c(`ul`,Ts,[(V(!0),W(_,null,L(pn.value,(e,t)=>(V(),W(`li`,{key:e.cardId,class:`kb-tree__row`,style:s({paddingLeft:`${t*.75}rem`})},[t?(V(),W(`i`,Es)):w(``,!0),c(`button`,{class:`kb-tree__label`,title:e.here?H(x)(`editor.childOpen`):H(x)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>hn(e.cardId,e.boardId)},h(e.title),9,Ds)],4))),128)),c(`li`,{class:`kb-tree__row kb-tree__row--self`,style:s({paddingLeft:`${pn.value.length*.75}rem`})},[i[100]||=c(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),c(`span`,Os,h($e.value.trim()||H(x)(`card.untitled`)),1)],4)])])):w(``,!0),c(`div`,ks,[c(`span`,As,h(H(x)(`editor.colorLabel`)),1),c(`div`,js,[R((V(),W(`button`,{class:S([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Et.value}]),disabled:X.value,onClick:i[50]||=e=>Et.value=``},[...i[101]||=[c(`i`,{class:`pi pi-ban`},null,-1)]],10,Ms)),[[o,{value:H(x)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(V(),W(_,null,L(Dt,e=>R(c(`button`,{key:e,class:S([`kb-colors__swatch`,{"kb-colors__swatch--on":Et.value===e}]),style:s({background:e}),disabled:X.value,onClick:t=>Et.value=e},null,14,Ns),[[o,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),c(`p`,Ps,h(H(x)(`editor.colorHint`)),1)]),wn.value?(V(),W(`div`,Fs,[c(`span`,Is,h(H(x)(`editor.columnSettingLabel`)),1),c(`p`,Ls,[i[102]||=c(`i`,{class:`pi pi-inbox`},null,-1),T(` `+h(G.value.card.archivedFrom?H(x)(`archive.editorFrom`,{column:G.value.card.archivedFrom.columnTitle}):H(x)(`archive.editorNote`)),1)])])):(V(),W(`div`,Rs,[c(`span`,zs,h(H(x)(`editor.columnSettingLabel`)),1),O(H(ve),{"model-value":Ot.value,options:gn.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:X.value,filter:gn.value.length>1,"filter-placeholder":H(x)(`editor.columnSearchPlaceholder`),"empty-filter-message":H(x)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":_n},{optiongroup:t(({option:e})=>[c(`span`,{class:S([`kb-colgroup`,{"kb-colgroup--away":e.items[0]?.boardId}])},[c(`i`,{class:S(e.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),c(`span`,Bs,h(e.label),1)],2)]),option:t(({option:e})=>[c(`span`,Vs,[e.boardId?(V(),W(`i`,Hs)):w(``,!0),c(`span`,null,h(e.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),a.otherBoards.length&&a.moveCardToBoard&&!X.value?(V(),W(`p`,Us,h(H(x)(`editor.moveToBoardHint`)),1)):w(``,!0)])),c(`div`,Ws,[G.value.card.createdBy?(V(),W(`p`,Gs,[i[103]||=c(`i`,{class:`pi pi-user`},null,-1),T(` `+h(H(x)(`editor.createdBy`,{name:G.value.card.createdBy.name})),1)])):w(``,!0),c(`p`,null,[i[104]||=c(`i`,{class:`pi pi-calendar-plus`},null,-1),T(` `+h(hl(G.value.card.createdAt)),1)]),c(`p`,null,[i[105]||=c(`i`,{class:`pi pi-clock`},null,-1),T(` `+h(hl(G.value.card.updatedAt)),1)])]),dl.value.length?(V(),W(`div`,Ks,[c(`span`,qs,h(H(x)(`editor.conversationsLabel`)),1),c(`div`,Js,[(V(!0),W(_,null,L(dl.value,e=>(V(),W(`a`,{key:e.id,class:`kb-side__conv`,title:e.title,onClick:t=>v(`open-conversation`,e.id)},[i[106]||=c(`i`,{class:`pi pi-comments`},null,-1),c(`span`,Xs,h(e.label),1)],8,Ys))),128))])])):w(``,!0),e.$slots[`card-editor-actions`]&&!wn.value?(V(),W(`div`,Zs,[c(`span`,Qs,h(H(x)(`editor.actionsLabel`)),1),c(`div`,$s,[I(e.$slots,`card-editor-actions`,{card:G.value.card,colId:G.value.colId,draft:{title:$e.value,markdown:et.value}},void 0,!0)])])):w(``,!0),!a.readOnly&&!Ut.value?(V(),W(`div`,ec,[wn.value?(V(),g(H(C),{key:0,label:H(x)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:i[51]||=e=>{jn(G.value.card.id),Xt()}},null,8,[`label`])):(V(),g(H(C),{key:1,label:H(x)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:i[52]||=e=>An(G.value.colId,G.value.card.id)},null,8,[`label`])),O(H(C),{label:H(x)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:i[53]||=e=>Mn(G.value.colId,G.value.card.id)},null,8,[`label`])])):w(``,!0)])])):w(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),O(H(ie),{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":i[55]||=e=>{e||Yn()}},{footer:t(()=>[O(H(C),{label:H(x)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:Jn},null,8,[`label`]),O(H(C),{label:H(x)(`editor.close`),onClick:Yn},null,8,[`label`])]),default:t(()=>[Q.value?(V(),W(`div`,rc,[Q.value.kind===`image`?(V(),W(`img`,{key:0,src:Q.value.url,alt:Q.value.file.name,class:`kb-viewer__image`},null,8,ic)):Q.value.kind===`pdf`?(V(),W(`iframe`,{key:1,src:Q.value.url,title:Q.value.file.name,class:`kb-viewer__frame`},null,8,ac)):Q.value.kind===`video`?(V(),W(`video`,{key:2,src:Q.value.url,controls:``,class:`kb-viewer__media`},null,8,oc)):Q.value.kind===`audio`?(V(),W(`audio`,{key:3,src:Q.value.url,controls:``,class:`kb-viewer__audio`},null,8,sc)):Q.value.office?.mode===`sheet`?(V(),W(`div`,cc,[Q.value.office.sheets.length>1?(V(),W(`div`,lc,[(V(!0),W(_,null,L(Q.value.office.sheets,(e,t)=>(V(),W(`button`,{key:e.name+t,class:S([`kb-viewer__tab`,{"kb-viewer__tab--active":t===Hn.value}]),onClick:e=>Hn.value=t},h(e.name),11,uc))),128))])):w(``,!0),c(`div`,dc,[Un.value&&Un.value.rows.length?(V(),W(`table`,fc,[c(`thead`,null,[c(`tr`,null,[(V(!0),W(_,null,L(Un.value.rows[0],(e,t)=>(V(),W(`th`,{key:t},h(e),1))),128))])]),c(`tbody`,null,[(V(!0),W(_,null,L(Un.value.rows.slice(1),(e,t)=>(V(),W(`tr`,{key:t},[(V(!0),W(_,null,L(e,(e,t)=>(V(),W(`td`,{key:t},h(e),1))),128))]))),128))])])):(V(),W(`p`,pc,h(H(x)(`editor.viewerEmpty`)),1))])])):Q.value.office?.mode===`blocks`?(V(),W(`div`,mc,[c(`div`,hc,[(V(!0),W(_,null,L(Q.value.office.blocks,(e,t)=>(V(),W(_,{key:t},[e.type===`heading`&&e.level===1?(V(),W(`h1`,gc,h(e.text),1)):e.type===`heading`&&e.level===2?(V(),W(`h2`,_c,h(e.text),1)):e.type===`heading`?(V(),W(`h3`,vc,h(e.text),1)):e.type===`list`?(V(),W(`li`,yc,h(e.text),1)):e.type===`table`?(V(),W(`table`,bc,[c(`tbody`,null,[(V(!0),W(_,null,L(e.rows,(e,t)=>(V(),W(`tr`,{key:t},[(V(!0),W(_,null,L(e,(e,t)=>(V(),W(`td`,{key:t},h(e),1))),128))]))),128))])])):(V(),W(`p`,xc,h(e.text),1))],64))),128)),Q.value.office.blocks.length?w(``,!0):(V(),W(`p`,Sc,h(H(x)(`editor.viewerEmpty`)),1))])])):Q.value.office?.mode===`slides`?(V(),W(`div`,Cc,[c(`div`,wc,[(V(!0),W(_,null,L(Q.value.office.slides,(e,t)=>(V(),W(`section`,{key:t,class:`kb-viewer__slide`},[c(`span`,Tc,h(t+1),1),e.title?(V(),W(`h3`,Ec,h(e.title),1)):w(``,!0),(V(!0),W(_,null,L(e.lines,(e,t)=>(V(),W(`p`,{key:t},h(e),1))),128))]))),128))])])):Q.value.office?.mode===`render`?(V(),W(`div`,Dc,[Gn.value?(V(),W(`p`,Oc,h(H(x)(`editor.viewerFailed`)),1)):w(``,!0),R(c(`div`,{ref_key:`renderHost`,ref:Wn,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[y,!Gn.value]])])):(V(),W(`pre`,kc,h(Q.value.text),1)),Q.value.office&&Q.value.office.mode!==`render`&&Q.value.office.truncated?(V(),W(`p`,Ac,[i[108]||=c(`i`,{class:`pi pi-exclamation-triangle`},null,-1),T(` `+h(H(x)(`editor.viewerTruncated`)),1)])):w(``,!0)])):w(``,!0)]),_:1},8,[`visible`,`header`]),O(H(de),{ref_key:`colMenu`,ref:Fr,onHide:i[59]||=e=>Ir.value=null},{default:t(()=>[Ir.value?(V(),W(`div`,jc,[c(`div`,Mc,[I(e.$slots,`column-actions`,{column:Ir.value},void 0,!0)]),hr.value?(V(),W(`button`,{key:0,class:`kb-colmenu__item`,onClick:i[56]||=e=>Rr(Br)},[i[109]||=c(`i`,{class:`pi pi-bell`},null,-1),c(`span`,null,h(Er(Ir.value.id)?H(x)(`column.unsubscribe`):H(x)(`column.subscribe`)),1)])):w(``,!0),c(`button`,{class:`kb-colmenu__item`,onClick:i[57]||=e=>Rr(Jc)},[i[110]||=c(`i`,{class:`pi pi-angle-double-left`},null,-1),c(`span`,null,h(H(x)(`column.collapse`)),1)]),a.readOnly?w(``,!0):(V(),W(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:i[58]||=e=>Rr(Ze)},[i[111]||=c(`i`,{class:`pi pi-trash`},null,-1),c(`span`,null,h(H(x)(`column.deleteTooltip`)),1)]))])):w(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-73cad8b1`]]);function Uc(e){return`p:${e}`}function Wc(e,t){if(t===`all`)return!0;let n=e.projectIds??[];return t===`none`?n.length===0:n.includes(t.slice(2))}function Gc(e,t){let n=t??[];return(e.projectIds??[]).map(e=>n.find(t=>t.id===e)?.name).filter(e=>!!e)}var Kc={class:`kanban-list-page`},qc={class:`page-header`},Jc={class:`page-header__right`},Yc={class:`list-menu`},Xc={key:0,class:`empty-state`},Zc={class:`board-grid`},Qc={class:`board-counts`},$c={class:`board-count`},el={class:`board-count board-count--cards`},tl={key:0,class:`board-desc`},nl={key:1,class:`board-projects`},rl={key:0,class:`empty-state`},il={class:`board-grid`},al={key:0,class:`board-desc`},ol={key:1,class:`board-projects`},sl={key:0,class:`dialog-field`},cl={for:`kanlist-new-template`},ll={key:0,class:`field-hint`},ul={class:`dialog-field`},dl={for:`kanlist-new-name`},fl={class:`dialog-field`},pl={for:`kanlist-new-desc`},ml={key:1,class:`dialog-field`},hl={for:`kanlist-new-projects`},gl={class:`field-hint`},_l={class:`dialog-field`},vl={for:`kanlist-new-instructions`},yl={class:`field-hint`},bl={class:`dialog-field`},xl={for:`kanlist-edit-name`},Sl={class:`dialog-field`},Cl={for:`kanlist-edit-desc`},wl={key:0,class:`dialog-field`},Tl={for:`kanlist-edit-projects`},El={class:`field-hint`},Dl={class:`dialog-field`},Ol={for:`kanlist-edit-instructions`},kl={class:`field-hint`},Al={class:`templates-intro`},jl={key:0,class:`empty-state`},Ml={key:1,class:`template-list`},Nl={class:`template-row__name`},Pl={class:`hint`},Fl={key:0,class:`template-row__actions`},Il={class:`dialog-field`},Ll={for:`kanlist-tpl-name`},Rl={class:`dialog-field`},zl={for:`kanlist-tpl-content`},Bl={class:`hint`},Vl={class:`templates-intro`},Hl={key:0,class:`empty-state`},Ul={key:1,class:`template-list`},Wl={class:`template-row__name`},Gl={key:0,class:`template-row__actions`},Kl=u(p({__name:`KanbanList`,props:{boards:{},readOnly:{type:Boolean,default:!1},boardsLimit:{default:null},templates:{default:null},boardTemplates:{default:null},projects:{default:null},t:{}},emits:[`open`,`create`,`update`,`archive`,`delete`,`template-create`,`template-update`,`template-delete`,`board-template-delete`,`templates-needed`],setup(e,{emit:a}){let s=e,u=a,d=pe(),f=s.t;function p(e){u(`templates-needed`),e()}let m=l(!1),v=l(``),y=l(``),b=l(``),x=l(null),ee=l(null),te=l(``),re=l(`all`),E=o(()=>[{value:`all`,label:f(`projects.filterAll`)},...(s.projects??[]).map(e=>({value:Uc(e.id),label:e.name})),{value:`none`,label:f(`projects.filterNone`)}]);i(E,e=>{e.some(e=>e.value===re.value)||(re.value=`all`)});function D(e){return Gc(e,s.projects)}let k=l([]);function ae(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let oe=o(()=>{let e=s.boards.filter(e=>Wc(e,re.value)),t=ae(te.value.trim());return t?e.filter(e=>ae(e.name).includes(t)||ae(e.description??``).includes(t)):e}),se=o(()=>oe.value.filter(e=>!e.archived)),A=o(()=>oe.value.filter(e=>e.archived)),j=o(()=>te.value.trim().length>0),ce=o(()=>s.boardsLimit!==null&&s.boards.length>=s.boardsLimit),M=o(()=>!s.readOnly&&!ce.value);function N(e){let t=(s.boardTemplates??[]).find(t=>t.id===e);t&&(v.value.trim()||(v.value=t.name),b.value=t.instructions)}let F=o(()=>(s.boardTemplates??[]).find(e=>e.id===ee.value)??null);function ue(){!M.value||!v.value.trim()||(u(`create`,{name:v.value.trim(),description:y.value.trim(),instructions:b.value.trim(),...F.value?.columns.length?{columns:F.value.columns}:{},...F.value?.columnGroups?.length?{columnGroups:F.value.columnGroups}:{},...k.value.length?{projectIds:[...k.value]}:{}}),m.value=!1,v.value=``,y.value=``,b.value=``,ee.value=null,k.value=[])}function me(){if(!x.value)return;let{projectIds:e,...t}=x.value;u(`update`,s.projects?.length?{...t,projectIds:e}:t),x.value=null}let z=l(!1),he=l(null);function ge(){he.value={id:null,name:``,content:``}}function _e(e){he.value={id:e.id,name:e.name,content:e.content}}function ye(){let e=he.value;if(!e||!e.name.trim())return;let t={name:e.name.trim(),content:e.content};e.id?u(`template-update`,{id:e.id,...t}):u(`template-create`,t),he.value=null}function be(e){d.require({message:f(`templates.confirmDeleteMessage`,{name:e.name}),header:f(`templates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>u(`template-delete`,e.id)})}let xe=l(!1);function Se(e){d.require({message:f(`boardTemplates.confirmDeleteMessage`,{name:e.name}),header:f(`boardTemplates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>u(`board-template-delete`,e.id)})}let Ce=l(null);function we(e){Ce.value?.hide(),e()}function Te(e,t){d.require({message:f(`dialogs.confirmDeleteMessage`,{name:t}),header:f(`dialogs.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>u(`delete`,e)})}return(i,a)=>{let o=ke(`tooltip`);return V(),W(`div`,Kc,[c(`div`,qc,[c(`h1`,null,h(H(f)(`title`)),1),c(`span`,Jc,[e.projects?.length?(V(),g(H(ve),{key:0,modelValue:re.value,"onUpdate:modelValue":a[0]||=e=>re.value=e,options:E.value,optionLabel:`label`,optionValue:`value`,class:`project-filter`,"aria-label":H(f)(`projects.filterLabel`)},null,8,[`modelValue`,`options`,`aria-label`])):w(``,!0),O(H(le),null,{default:t(()=>[O(H(P),{class:`pi pi-search`}),O(H(r),{modelValue:te.value,"onUpdate:modelValue":a[1]||=e=>te.value=e,placeholder:H(f)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),e.boardsLimit===null?w(``,!0):(V(),W(`span`,{key:1,class:S([`quota`,{"quota--full":ce.value}])},h(H(f)(`quota`,{used:e.boards.length,limit:e.boardsLimit})),3)),e.readOnly?w(``,!0):(V(),g(H(C),{key:2,label:H(f)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:ce.value,onClick:a[2]||=e=>p(()=>m.value=!0)},null,8,[`label`,`disabled`])),e.templates||e.boardTemplates?(V(),W(_,{key:3},[O(H(C),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:H(f)(`menu`),"aria-label":H(f)(`menu`),onClick:a[3]||=e=>Ce.value?.toggle(e)},null,8,[`title`,`aria-label`]),O(H(de),{ref_key:`listMenu`,ref:Ce},{default:t(()=>[c(`div`,Yc,[e.templates?(V(),W(`button`,{key:0,class:`list-menu__item`,onClick:a[4]||=e=>we(()=>p(()=>z.value=!0))},[a[30]||=c(`i`,{class:`pi pi-file-edit`},null,-1),c(`span`,null,h(H(f)(`templates.manage`)),1)])):w(``,!0),e.boardTemplates?(V(),W(`button`,{key:1,class:`list-menu__item`,onClick:a[5]||=e=>we(()=>xe.value=!0)},[a[31]||=c(`i`,{class:`pi pi-bookmark`},null,-1),c(`span`,null,h(H(f)(`boardTemplates.manage`)),1)])):w(``,!0)])]),_:1},512)],64)):w(``,!0)])]),I(i.$slots,`banner`,{},void 0,!0),O(H(Ve),{value:`active`},{default:t(()=>[O(H(ze),null,{default:t(()=>[O(H(He),{value:`active`},{default:t(()=>[T(h(H(f)(`tabs.active`)),1)]),_:1}),O(H(He),{value:`archived`},{default:t(()=>[T(h(H(f)(`tabs.archived`,{count:A.value.length})),1)]),_:1})]),_:1}),O(H(Be),null,{default:t(()=>[O(H(Ue),{value:`active`},{default:t(()=>[se.value.length===0?(V(),W(`div`,Xc,h(j.value?H(f)(`noResults`,{query:te.value.trim()}):H(f)(`empty`)),1)):w(``,!0),c(`div`,Zc,[(V(!0),W(_,null,L(se.value,r=>(V(),g(H(Ie),{key:r.id,class:`board-card`,onClick:e=>u(`open`,r.id)},{title:t(()=>[T(h(r.name),1)]),subtitle:t(()=>[c(`span`,Qc,[c(`span`,$c,[a[32]||=c(`i`,{class:`pi pi-list`},null,-1),T(h(H(f)(`columns`,{count:r.columnCount})),1)]),c(`span`,el,[a[33]||=c(`i`,{class:`pi pi-clone`},null,-1),T(h(H(f)(`cards`,{count:r.cardCount})),1)])])]),content:t(()=>[r.description?(V(),W(`p`,tl,h(r.description),1)):w(``,!0),D(r).length?(V(),W(`span`,nl,[(V(!0),W(_,null,L(D(r),e=>(V(),W(`span`,{key:e,class:`board-project`},[a[34]||=c(`i`,{class:`pi pi-box`},null,-1),T(h(e),1)]))),128))])):w(``,!0)]),footer:t(()=>[e.readOnly?w(``,!0):(V(),W(`div`,{key:0,class:`board-actions`,onClick:a[6]||=n(()=>{},[`stop`])},[O(H(C),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>x.value={id:r.id,name:r.name,description:r.description,instructions:r.instructions??``,projectIds:[...r.projectIds??[]]}},null,8,[`onClick`]),R(O(H(C),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>u(`archive`,{id:r.id,archived:!0})},null,8,[`onClick`]),[[o,H(f)(`archive`)]]),O(H(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>Te(r.id,r.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),O(H(Ue),{value:`archived`},{default:t(()=>[A.value.length===0?(V(),W(`div`,rl,h(j.value?H(f)(`noResults`,{query:te.value.trim()}):H(f)(`archivedEmpty`)),1)):w(``,!0),c(`div`,il,[(V(!0),W(_,null,L(A.value,r=>(V(),g(H(Ie),{key:r.id,class:`board-card archived`,onClick:e=>u(`open`,r.id)},{title:t(()=>[T(h(r.name),1)]),content:t(()=>[r.description?(V(),W(`p`,al,h(r.description),1)):w(``,!0),D(r).length?(V(),W(`span`,ol,[(V(!0),W(_,null,L(D(r),e=>(V(),W(`span`,{key:e,class:`board-project`},[a[35]||=c(`i`,{class:`pi pi-box`},null,-1),T(h(e),1)]))),128))])):w(``,!0)]),footer:t(()=>[e.readOnly?w(``,!0):(V(),W(`div`,{key:0,class:`board-actions`,onClick:a[7]||=n(()=>{},[`stop`])},[O(H(C),{label:H(f)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>u(`archive`,{id:r.id,archived:!1})},null,8,[`label`,`onClick`]),O(H(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>Te(r.id,r.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),O(H(ie),{visible:m.value,"onUpdate:visible":a[15]||=e=>m.value=e,header:H(f)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:t(()=>[O(H(C),{label:H(f)(`cancel`),text:``,onClick:a[14]||=e=>m.value=!1},null,8,[`label`]),O(H(C),{label:H(f)(`create`),icon:`pi pi-check`,disabled:!v.value.trim(),onClick:ue},null,8,[`label`,`disabled`])]),default:t(()=>[e.boardTemplates?.length?(V(),W(`div`,sl,[c(`label`,cl,h(H(f)(`boardTemplates.pickLabel`)),1),O(H(ve),{id:`kanlist-new-template`,modelValue:ee.value,"onUpdate:modelValue":a[8]||=e=>ee.value=e,options:e.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:H(f)(`boardTemplates.pickPlaceholder`),onChange:a[9]||=e=>N(ee.value)},null,8,[`modelValue`,`options`,`placeholder`]),F.value?(V(),W(`small`,ll,h(H(f)(`boardTemplates.pickHint`,{columns:F.value.columns.map(e=>e.title).join(`, `)||H(f)(`boardTemplates.noColumns`)})),1)):w(``,!0)])):w(``,!0),c(`div`,ul,[c(`label`,dl,h(H(f)(`nameLabel`)),1),O(H(r),{id:`kanlist-new-name`,modelValue:v.value,"onUpdate:modelValue":a[10]||=e=>v.value=e,autofocus:``,class:`w-full`,onKeyup:B(ue,[`enter`])},null,8,[`modelValue`])]),c(`div`,fl,[c(`label`,pl,h(H(f)(`descriptionLabel`)),1),O(H(fe),{id:`kanlist-new-desc`,modelValue:y.value,"onUpdate:modelValue":a[11]||=e=>y.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),e.projects?.length?(V(),W(`div`,ml,[c(`label`,hl,h(H(f)(`projects.label`)),1),O(H(Le),{id:`kanlist-new-projects`,modelValue:k.value,"onUpdate:modelValue":a[12]||=e=>k.value=e,options:e.projects,optionLabel:`name`,optionValue:`id`,display:`chip`,class:`w-full`,placeholder:H(f)(`projects.placeholder`)},null,8,[`modelValue`,`options`,`placeholder`]),c(`small`,gl,h(H(f)(`projects.hint`)),1)])):w(``,!0),c(`div`,_l,[c(`label`,vl,h(H(f)(`instructionsLabel`)),1),O(H(fe),{id:`kanlist-new-instructions`,modelValue:b.value,"onUpdate:modelValue":a[13]||=e=>b.value=e,rows:`6`,class:`w-full`,placeholder:H(f)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),c(`small`,yl,h(H(f)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),O(H(ie),{visible:!!x.value,header:H(f)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":a[21]||=e=>{e||(x.value=null)}},{footer:t(()=>[O(H(C),{label:H(f)(`cancel`),text:``,onClick:a[20]||=e=>x.value=null},null,8,[`label`]),O(H(C),{label:H(f)(`save`),icon:`pi pi-check`,onClick:me},null,8,[`label`])]),default:t(()=>[x.value?(V(),W(_,{key:0},[c(`div`,bl,[c(`label`,xl,h(H(f)(`nameLabel`)),1),O(H(r),{id:`kanlist-edit-name`,modelValue:x.value.name,"onUpdate:modelValue":a[16]||=e=>x.value.name=e,class:`w-full`,onKeyup:B(me,[`enter`])},null,8,[`modelValue`])]),c(`div`,Sl,[c(`label`,Cl,h(H(f)(`descriptionLabel`)),1),O(H(fe),{id:`kanlist-edit-desc`,modelValue:x.value.description,"onUpdate:modelValue":a[17]||=e=>x.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),e.projects?.length?(V(),W(`div`,wl,[c(`label`,Tl,h(H(f)(`projects.label`)),1),O(H(Le),{id:`kanlist-edit-projects`,modelValue:x.value.projectIds,"onUpdate:modelValue":a[18]||=e=>x.value.projectIds=e,options:e.projects,optionLabel:`name`,optionValue:`id`,display:`chip`,class:`w-full`,placeholder:H(f)(`projects.placeholder`)},null,8,[`modelValue`,`options`,`placeholder`]),c(`small`,El,h(H(f)(`projects.hint`)),1)])):w(``,!0),c(`div`,Dl,[c(`label`,Ol,h(H(f)(`instructionsLabel`)),1),O(H(fe),{id:`kanlist-edit-instructions`,modelValue:x.value.instructions,"onUpdate:modelValue":a[19]||=e=>x.value.instructions=e,rows:`8`,class:`w-full`,placeholder:H(f)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),c(`small`,kl,h(H(f)(`instructionsHint`)),1)])],64)):w(``,!0)]),_:1},8,[`visible`,`header`]),O(H(ie),{visible:xe.value,"onUpdate:visible":a[23]||=e=>xe.value=e,header:H(f)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:t(()=>[O(H(C),{label:H(f)(`close`),text:``,onClick:a[22]||=e=>xe.value=!1},null,8,[`label`])]),default:t(()=>[c(`p`,Al,h(H(f)(`boardTemplates.intro`)),1),!e.boardTemplates||e.boardTemplates.length===0?(V(),W(`div`,jl,h(H(f)(`boardTemplates.empty`)),1)):(V(),W(`ul`,Ml,[(V(!0),W(_,null,L(e.boardTemplates,t=>(V(),W(`li`,{key:t.id,class:`template-row`},[c(`span`,Nl,[T(h(t.name)+` `,1),c(`small`,Pl,h(t.columns.map(e=>e.title).join(` · `)||H(f)(`boardTemplates.noColumns`)),1)]),e.readOnly?w(``,!0):(V(),W(`span`,Fl,[O(H(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>Se(t)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),O(H(ie),{visible:z.value,"onUpdate:visible":[a[28]||=e=>z.value=e,a[29]||=e=>{e||(he.value=null)}],header:H(f)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:t(()=>[he.value?(V(),W(_,{key:0},[O(H(C),{label:H(f)(`cancel`),text:``,onClick:a[26]||=e=>he.value=null},null,8,[`label`]),O(H(C),{label:H(f)(`save`),icon:`pi pi-check`,disabled:!he.value.name.trim(),onClick:ye},null,8,[`label`,`disabled`])],64)):(V(),W(_,{key:1},[e.readOnly?w(``,!0):(V(),g(H(C),{key:0,label:H(f)(`templates.new`),icon:`pi pi-plus`,onClick:ge},null,8,[`label`])),O(H(C),{label:H(f)(`close`),text:``,onClick:a[27]||=e=>z.value=!1},null,8,[`label`])],64))]),default:t(()=>[he.value?(V(),W(_,{key:0},[c(`div`,Il,[c(`label`,Ll,h(H(f)(`templates.nameLabel`)),1),O(H(r),{id:`kanlist-tpl-name`,modelValue:he.value.name,"onUpdate:modelValue":a[24]||=e=>he.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),c(`div`,Rl,[c(`label`,zl,h(H(f)(`templates.contentLabel`)),1),O(H(ne),{id:`kanlist-tpl-content`,modelValue:he.value.content,"onUpdate:modelValue":a[25]||=e=>he.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:H(f)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),c(`small`,Bl,h(H(f)(`templates.contentHint`)),1)])],64)):(V(),W(_,{key:1},[c(`p`,Vl,h(H(f)(`templates.intro`)),1),!e.templates||e.templates.length===0?(V(),W(`div`,Hl,h(H(f)(`templates.empty`)),1)):(V(),W(`ul`,Ul,[(V(!0),W(_,null,L(e.templates,t=>(V(),W(`li`,{key:t.id,class:`template-row`},[c(`span`,Wl,h(t.name),1),e.readOnly?w(``,!0):(V(),W(`span`,Gl,[O(H(C),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>_e(t)},null,8,[`onClick`]),O(H(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>be(t)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-71390189`]]);export{Hc as n,Kl as t};