@runeya/runeya 2.0.116 → 2.0.118

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 +32 -1
  2. package/agent/index.js.map +1 -1
  3. package/agent-manager-HOL7ZG4V.js +9 -0
  4. package/{chat-AOL2TMLR.js → chat-XUIXGKSR.js} +6 -6
  5. package/{chunk-77UQ2UKW.js → chunk-I2AZCZMR.js} +2 -2
  6. package/{chunk-OGCEFBSS.js → chunk-P47X3LT3.js} +7 -2
  7. package/chunk-P47X3LT3.js.map +1 -0
  8. package/{chunk-6T7R2JZR.js → chunk-RN4X65D3.js} +35 -2
  9. package/chunk-RN4X65D3.js.map +1 -0
  10. package/{chunk-44XAJ3MK.js → chunk-WE6EOX4C.js} +340 -213
  11. package/chunk-WE6EOX4C.js.map +1 -0
  12. package/{chunk-VPANMGAI.js → chunk-XIRMRWVU.js} +65 -6
  13. package/chunk-XIRMRWVU.js.map +1 -0
  14. package/{companion-YYXSCN3H.js → companion-POUL5OGO.js} +4 -4
  15. package/{desktop-launcher-Q6J2LSVP.js → desktop-launcher-QVYFCE56.js} +2 -2
  16. package/index.js +4 -4
  17. package/package.json +1 -1
  18. package/settings-manager-KKSPWSM6.js +9 -0
  19. package/{src-S5TDMHPI.js → src-VCZQLW2Q.js} +98 -12
  20. package/src-VCZQLW2Q.js.map +1 -0
  21. package/web/assets/AgentScalarChatInterface.vue-BrMvIukr.js +13 -0
  22. package/web/assets/AgentTerminalPage-CXWlEDYr.js +1 -0
  23. package/web/assets/AiChatPage-CemkKI5f.js +1 -0
  24. package/web/assets/AppLayout-Kc2JJjh1.js +1 -0
  25. package/web/assets/AuditPage-Da3_Dw6e.js +1 -0
  26. package/web/assets/CloudAccountPage-C6zqdsH7.js +1 -0
  27. package/web/assets/CloudAccountPage-DPs87dbs.js +1 -0
  28. package/web/assets/CloudMessagingPage-DTuqXSPI.js +2 -0
  29. package/web/assets/DashboardPage-BGRnC6VN.js +164 -0
  30. package/web/assets/DirectoryPickerDialog-DEoqmzoh.js +1 -0
  31. package/web/assets/{EditorIcon-DJxKo-Bu.js → EditorIcon-CtWlXuLo.js} +2 -2
  32. package/web/assets/{EnvironmentForm-1NSDqR4s.js → EnvironmentForm-7rQeTN-8.js} +2 -2
  33. package/web/assets/EnvironmentFormPage-YcYUsjhT.js +1 -0
  34. package/web/assets/EnvironmentListPage-CLD1-AAY.js +1 -0
  35. package/web/assets/KanbanBoardPage-B7VdWhZB.js +4 -0
  36. package/web/assets/KanbanBoardPage-fEP3w_nz.css +1 -0
  37. package/web/assets/KanbanListPage-BEHtcwKs.js +1 -0
  38. package/web/assets/LaunchProjectPage-exfyMjFt.js +1 -0
  39. package/web/assets/LaunchServicesPage-YVkLRJqQ.js +1 -0
  40. package/web/assets/LogViewer-D1RcM2A4.js +3 -0
  41. package/web/assets/OrgKeyPrompt-C7LMf-Zk.js +1 -0
  42. package/web/assets/{ProcessControls-B_21fX0o.js → ProcessControls-58Ablgi0.js} +1 -1
  43. package/web/assets/ProcessDetailPage-BUjh1O5a.js +1 -0
  44. package/web/assets/{ProcessMetrics-jxJHtg7z.js → ProcessMetrics-BEzFNP7J.js} +2 -2
  45. package/web/assets/RandomJobTestPage-DuPQQhVb.js +2 -0
  46. package/web/assets/ScenarioEditorPage-6-CuJOmJ.js +14 -0
  47. package/web/assets/SendToChatDialog-CxuunSwf.js +1 -0
  48. package/web/assets/ServiceControlsBar-Cu9vxEOQ.js +1 -0
  49. package/web/assets/ServiceDetailPage-B4plJ5bz.js +2 -0
  50. package/web/assets/ServiceFormPage-7O2k1FOl.js +1 -0
  51. package/web/assets/SettingsPage-Hwj6MTiF.js +2063 -0
  52. package/web/assets/UnlockPage-Dcv0Z9re.js +1 -0
  53. package/web/assets/VaultMigrationPage-B25lyJg7.js +1 -0
  54. package/web/assets/VersionBadge-HrSfhQYh.js +1 -0
  55. package/web/assets/WikiPage-EBD94ewJ.js +1 -0
  56. package/web/assets/WikiView-nfJY79hF.js +1 -0
  57. package/web/assets/add-scalar-classes-H19oYTsX.js +387 -0
  58. package/web/assets/{autocomplete-CeUb1Plo.js → autocomplete-DJxf2wqE.js} +3 -3
  59. package/web/assets/{basic-shape-diamond.svg-D95sAEHe.js → basic-shape-diamond.svg-COr16MGG.js} +1 -1
  60. package/web/assets/{basic-shape-hexagon.svg-Bhu8sbuK.js → basic-shape-hexagon.svg-BzYcuOkI.js} +1 -1
  61. package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-BPXa2nfu.js → basic-shape-primary-circle-ellipse-round.svg-Bw1gV38D.js} +1 -1
  62. package/web/assets/{basic-shape-primary-square-rectangle.svg-DYx2Drq6.js → basic-shape-primary-square-rectangle.svg-Cn_NwW2C.js} +1 -1
  63. package/web/assets/{basic-shape-shield.svg-iaNrBbaU.js → basic-shape-shield.svg-DMZviUvu.js} +1 -1
  64. package/web/assets/{browser-DhkJWAns.js → browser-72MoXpHU.js} +1 -1
  65. package/web/assets/{browser-Bd9Xf4OZ.js → browser-APehRX_-.js} +1 -1
  66. package/web/assets/card-DWOaM9R5.js +32 -0
  67. package/web/assets/{checkbox-DZeCLgbK.js → checkbox-3MTmcxWS.js} +3 -3
  68. package/web/assets/{chip-CzDSaVrV.js → chip-DX0PHdQT.js} +2 -2
  69. package/web/assets/client-CmMSqZpF.js +24 -0
  70. package/web/assets/cloud-chat.store-BcZHJL7V.js +1 -0
  71. package/web/assets/cloud-client-DSbRz1wz.js +1 -0
  72. package/web/assets/cloud-session-CMcFsrn6.js +2 -0
  73. package/web/assets/cloud-session-NnwumoiU.js +1 -0
  74. package/web/assets/column-CDX5Db_i.js +763 -0
  75. package/web/assets/{computer-device-desktop-monitor.svg-CK-yuA7j.js → computer-device-desktop-monitor.svg-BLXia0GM.js} +1 -1
  76. package/web/assets/{computer-device-desktop.svg-DnR_dL9H.js → computer-device-desktop.svg-gunjcHFA.js} +1 -1
  77. package/web/assets/{computer-device-laptop.svg-B4NDUXf6.js → computer-device-laptop.svg-Bw0yugEp.js} +1 -1
  78. package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-CDy5Mj_3.js → computer-device-mobile-phone-android-samsung-back.svg-C0WpuMdy.js} +1 -1
  79. package/web/assets/{computer-device-mobile-phone-android-samsung.svg-DZwCAngQ.js → computer-device-mobile-phone-android-samsung.svg-CNHYgja0.js} +1 -1
  80. package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-qnHXKnfy.js → computer-device-mobile-phone-iphone-x-back.svg-DggESCcp.js} +1 -1
  81. package/web/assets/{computer-device-mobile-phone-iphone-x.svg-CufxVRii.js → computer-device-mobile-phone-iphone-x.svg-CDSSQDCC.js} +1 -1
  82. package/web/assets/{computer-device-mobile-tablet-touch.svg-DvNOww1M.js → computer-device-mobile-tablet-touch.svg-DY9TWMUB.js} +1 -1
  83. package/web/assets/{computer-device-mobile-tablet.svg-C30Nrbgf.js → computer-device-mobile-tablet.svg-D_hfbqaw.js} +1 -1
  84. package/web/assets/{computer-device-network-ethernet-cat6.svg-BkhnUZzo.js → computer-device-network-ethernet-cat6.svg-CCoszOYr.js} +1 -1
  85. package/web/assets/{computer-device-network-lan-www.svg-DXEfVvcC.js → computer-device-network-lan-www.svg-CClZA2cg.js} +1 -1
  86. package/web/assets/{computer-device-network-wifi-connection.svg-CRSKVh1x.js → computer-device-network-wifi-connection.svg-DHLQJkPy.js} +1 -1
  87. package/web/assets/{computer-device-network-wifi-router.svg-DwfOCroy.js → computer-device-network-wifi-router.svg-xActAcrc.js} +1 -1
  88. package/web/assets/{cssMode-Dc5jzss9.js → cssMode-UiVbv5-d.js} +1 -1
  89. package/web/assets/{divider-Diym1gIH.js → divider-CHpP62xs.js} +2 -2
  90. package/web/assets/{docx-preview-B62lLslx.js → docx-preview-CZnedVKH.js} +1 -1
  91. package/web/assets/{ecology-science-erlenmeyer-flask.svg-CVBcLrkT.js → ecology-science-erlenmeyer-flask.svg-BNQkfPKh.js} +1 -1
  92. package/web/assets/{fieldset-xjeWC_Zd.js → fieldset-BEeYMjpD.js} +2 -2
  93. package/web/assets/{freemarker2-CCSFwo1D.js → freemarker2-DEBZcua_.js} +1 -1
  94. package/web/assets/{handlebars-Bo71unsx.js → handlebars-BNH-tM3s.js} +1 -1
  95. package/web/assets/{html-Bm9228kc.js → html-BFhZuj1f.js} +1 -1
  96. package/web/assets/{htmlMode-BmR9QSyO.js → htmlMode-DsWwMsD5.js} +1 -1
  97. package/web/assets/{image-flash-lightning.svg-BdEJcGIK.js → image-flash-lightning.svg-CaDxrzvs.js} +1 -1
  98. package/web/assets/{image-picture-flower.svg-B-mtrwDE.js → image-picture-flower.svg-Cm83ljlo.js} +1 -1
  99. package/web/assets/index-Bk2hTx0g.css +1 -0
  100. package/web/assets/{index-8J1A633V.js → index-D1xU-p3z.js} +570 -374
  101. package/web/assets/{interface-alert-exclamation-diamond.svg-9cBuGRNJ.js → interface-alert-exclamation-diamond.svg-CXdlYd1V.js} +1 -1
  102. package/web/assets/{interface-alert-exclamation-triangle-warning.svg-CEzfFTAS.js → interface-alert-exclamation-triangle-warning.svg-CeyAEw_C.js} +1 -1
  103. package/web/assets/{interface-alert-information-circle.svg-BjpTNsHF.js → interface-alert-information-circle.svg-DUbwIFHR.js} +1 -1
  104. package/web/assets/{interface-award-crown.svg-DGFO5nfn.js → interface-award-crown.svg-BI3VqkS7.js} +1 -1
  105. package/web/assets/{interface-bookmark.svg-u38u4053.js → interface-bookmark-tag.svg-BNP52up1.js} +1 -1
  106. package/web/assets/{interface-bookmark-tag.svg-D5jyBgha.js → interface-bookmark.svg-C_zoDBZC.js} +1 -1
  107. package/web/assets/{interface-calendar-date-one.svg-CEE3ju0p.js → interface-calendar-date-one.svg-DC0tGASA.js} +1 -1
  108. package/web/assets/{interface-content-book-open-pages.svg-S1nvOdAe.js → interface-content-book-open-pages.svg-l-5VHr-g.js} +1 -1
  109. package/web/assets/{interface-content-book-page.svg-CtDjLJwZ.js → interface-content-book-page.svg-CagVpKh4.js} +1 -1
  110. package/web/assets/{interface-content-file.svg-AD0WHI0R.js → interface-content-file.svg-B0aGvqPx.js} +1 -1
  111. package/web/assets/interface-content-folder.svg-BQN0Hvq-.js +1 -0
  112. package/web/assets/{interface-content-folder.svg-CM-PNCCw.js → interface-content-folder.svg-CVxNoyJ7.js} +1 -1
  113. package/web/assets/{interface-copy-clipboard.svg-rflxiB0d.js → interface-copy-clipboard.svg-D78-91bx.js} +1 -1
  114. package/web/assets/{interface-edit-attachment.svg-DrANyzys.js → interface-edit-attachment.svg-D6pWV5bC.js} +1 -1
  115. package/web/assets/{interface-edit-binocular.svg-BETaEZ89.js → interface-edit-binocular.svg-C6wbX04C.js} +1 -1
  116. package/web/assets/{interface-edit-magic-wand.svg-Bj6FVo53.js → interface-edit-magic-wand.svg-CoZhFtfQ.js} +1 -1
  117. package/web/assets/{interface-edit-tool-paint-roller.svg-Bp6eRqNw.js → interface-edit-tool-paint-roller.svg-DTQGU9t3.js} +1 -1
  118. package/web/assets/{interface-edit-tool-pencil.svg-DcLn0a3t.js → interface-edit-tool-pencil.svg-ByQHy9tx.js} +1 -1
  119. package/web/assets/{interface-favorite-award.svg-DUwbk0Rk.js → interface-favorite-award.svg-0CNheH17.js} +1 -1
  120. package/web/assets/{interface-favorite-flag.svg-BRp2Dr2h.js → interface-favorite-flag.svg-CCmC-2ES.js} +1 -1
  121. package/web/assets/{interface-favorite-heart.svg-Bt_5Dxks.js → interface-favorite-heart.svg-BVpuv5ru.js} +1 -1
  122. package/web/assets/{interface-favorite-star.svg-iaJ9oR-m.js → interface-favorite-star.svg-D7-x2gpZ.js} +1 -1
  123. package/web/assets/{interface-favorite-stars-sparkles.svg-C3lZkFSY.js → interface-favorite-stars-sparkles.svg-BReo0WNX.js} +1 -1
  124. package/web/assets/{interface-hierarchy-flowchart.svg-NRnPKxEv.js → interface-hierarchy-flowchart.svg-D6044jiD.js} +1 -1
  125. package/web/assets/{interface-home-house.svg-C2pnwXuY.js → interface-home-house.svg-BDbbqQ7y.js} +1 -1
  126. package/web/assets/{interface-hyperlink.svg-DMdhqTQ5.js → interface-hyperlink.svg-jMR6mBTh.js} +1 -1
  127. package/web/assets/{interface-lighting-brightness.svg-Dvs_nG0d.js → interface-lighting-brightness.svg-DxAyAplK.js} +1 -1
  128. package/web/assets/{interface-lock-closed.svg-CBeF2Ru4.js → interface-lock-closed.svg-KHv3R3lv.js} +1 -1
  129. package/web/assets/{interface-lock-open-unlock.svg-sChGga1F.js → interface-lock-open-unlock.svg-DTVS6Ld3.js} +1 -1
  130. package/web/assets/{interface-login-key.svg-cZB0Vhyp.js → interface-login-key.svg-CmrsGePn.js} +1 -1
  131. package/web/assets/{interface-search.svg-CjcIgtti.js → interface-search.svg-D68gdm71.js} +1 -1
  132. package/web/assets/{interface-setting-cog.svg-H5RLVC2p.js → interface-setting-cog.svg-BpmjacTl.js} +1 -1
  133. package/web/assets/{interface-share-megaphone-bullhorn.svg-BEk0DA1W.js → interface-share-megaphone-bullhorn.svg-B1Qopu7g.js} +1 -1
  134. package/web/assets/{interface-share-rocket.svg-p6tQEwJ6.js → interface-share-rocket.svg-xe-sFt3v.js} +1 -1
  135. package/web/assets/{interface-share-satellite.svg-BScMkxzb.js → interface-share-satellite.svg-DKB0wpfg.js} +1 -1
  136. package/web/assets/{interface-share-space-ship.svg-RtJDwluc.js → interface-share-space-ship.svg-BXUyLcC9.js} +1 -1
  137. package/web/assets/{interface-share.svg-_Rnlgc89.js → interface-share.svg--X4Sy8OU.js} +1 -1
  138. package/web/assets/{interface-signal-square.svg-sGo7FmcD.js → interface-signal-square.svg-SVcBtlCh.js} +1 -1
  139. package/web/assets/{interface-time-clock-circle.svg-CoQLcW4m.js → interface-time-clock-circle.svg-MMicUy7s.js} +1 -1
  140. package/web/assets/{interface-time-hour-glass.svg-C4rHS8Sx.js → interface-time-hour-glass.svg-CqNSWB1s.js} +1 -1
  141. package/web/assets/{interface-users-multiple.svg-B4ewwKgQ.js → interface-users-multiple.svg-Cb-ACWeS.js} +1 -1
  142. package/web/assets/{interface-weather-moon.svg-TOU86ccq.js → interface-weather-moon.svg-BTBYfL8w.js} +1 -1
  143. package/web/assets/{javascript-3xh4h-z5.js → javascript-DW5dr95z.js} +1 -1
  144. package/web/assets/{jsonMode-C6AJYdBQ.js → jsonMode-D3gEKJlR.js} +1 -1
  145. package/web/assets/{liquid-B1uuh-2_.js → liquid-DsB3REL_.js} +1 -1
  146. package/web/assets/{lspLanguageFeatures-BSf4GNlz.js → lspLanguageFeatures-Bo6XRGjF.js} +3 -3
  147. package/web/assets/{mail-chat-bubble-square.svg-Fe7IU49T.js → mail-chat-bubble-square.svg-DQPaE_l8.js} +1 -1
  148. package/web/assets/{mail-send-email-paper-airplane.svg-Cu3dNuIm.js → mail-send-email-paper-airplane.svg-SeNV9WPa.js} +1 -1
  149. package/web/assets/{mail-send-envelope.svg-C3l1liPg.js → mail-send-envelope.svg-DZr1S3ec.js} +1 -1
  150. package/web/assets/{mdx-DjWUPAFj.js → mdx-bfiZxOWu.js} +1 -1
  151. package/web/assets/{minus-Cy49kn7z.js → minus-DDv3xj8k.js} +2 -2
  152. package/web/assets/modal-Cg41N0d3.js +5 -0
  153. package/web/assets/modal-hmS0I-a3.js +1 -0
  154. package/web/assets/{money-cashier-receipt.svg-OkY-eUsN.js → money-cashier-receipt.svg-CMGSkzy4.js} +1 -1
  155. package/web/assets/{money-currency-dollar-pay.svg-DVA6DUQs.js → money-currency-dollar-pay.svg-BqBhV1Bu.js} +1 -1
  156. package/web/assets/{money-graph-arrow-increase.svg-5zYZLe6Q.js → money-graph-arrow-increase.svg-Jb3id3iX.js} +1 -1
  157. package/web/assets/{money-graph-bar-chart-increase.svg-CqGQIzPc.js → money-graph-bar-chart-increase.svg-C1_S5Hbg.js} +1 -1
  158. package/web/assets/multiselect-D6SVauJ0.js +251 -0
  159. package/web/assets/{nature-ecology-leaf.svg-B-jPo4Mf.js → nature-ecology-leaf.svg-Cv_Ub0f3.js} +1 -1
  160. package/web/assets/{password-FAGLfFXd.js → password-BnTuhvvF.js} +4 -4
  161. package/web/assets/{phone-telephone.svg-BBDd4gOe.js → phone-telephone.svg-C8m8L7Af.js} +1 -1
  162. package/web/assets/{plus-DvHGmumH.js → plus-CwKOeZC2.js} +6 -6
  163. package/web/assets/process.store-CgBhdhXY.js +1 -0
  164. package/web/assets/{programming-bug.svg-Di_RRUT8.js → programming-bug.svg-BMbf-v1F.js} +1 -1
  165. package/web/assets/{programming-cloud.svg-UXDdd80c.js → programming-cloud.svg-DoETzNlz.js} +1 -1
  166. package/web/assets/{programming-computer-database-server.svg-DqyeVkz2.js → programming-computer-database-server.svg-DFsTW5pZ.js} +1 -1
  167. package/web/assets/{programming-computer-database.svg-BB9uaRkU.js → programming-computer-database.svg-Dap1d6pH.js} +1 -1
  168. package/web/assets/{programming-module-four-layout.svg-DXHXfvRQ.js → programming-module-four-layout.svg-Dlte_L9w.js} +1 -1
  169. package/web/assets/{programming-module-three.svg-BqdjaGQY.js → programming-module-three.svg-CF2uP4yd.js} +1 -1
  170. package/web/assets/{programming-module.svg-Dca7humV.js → programming-module.svg-DSm70VcV.js} +1 -1
  171. package/web/assets/{programming-script-code.svg-S7W_TNxH.js → programming-script-code.svg-C7LrjNTC.js} +1 -1
  172. package/web/assets/project-launch.store-HM4tWJyO.js +1 -0
  173. package/web/assets/project.store-BUbzqDJl.js +1 -0
  174. package/web/assets/{python-BMgf76Zf.js → python-DGNKYf98.js} +1 -1
  175. package/web/assets/{radiobutton-BQ5ty9EJ.js → radiobutton-Drb-6bSf.js} +2 -2
  176. package/web/assets/{razor-DRB94rOF.js → razor-CLJyE3n7.js} +1 -1
  177. package/web/assets/router-DoDaan68.js +1 -0
  178. package/web/assets/settings-scope-CA1gM0Eg.js +1 -0
  179. package/web/assets/settings.store-BJ7H5w4n.js +1 -0
  180. package/web/assets/{shopping-cart.svg-BSU4UsCc.js → shopping-cart.svg-DqX4V0Z9.js} +1 -1
  181. package/web/assets/{shopping-gift-present.svg-CC16xqoa.js → shopping-gift-present.svg-BO9ncUGX.js} +1 -1
  182. package/web/assets/{shopping-shipping-box-parcel-package.svg-jK-_sKtf.js → shopping-shipping-box-parcel-package.svg-CEjca0LH.js} +1 -1
  183. package/web/assets/src-BKjJciGN.js +572 -0
  184. package/web/assets/src-F0BzIGAP.js +1 -0
  185. package/web/assets/{tabpanel-BytkhVWV.js → tabpanel-BX_29Z1p.js} +3 -3
  186. package/web/assets/{tag-new-circle.svg-DOyNg7L6.js → tag-new-circle.svg-DEFm057e.js} +1 -1
  187. package/web/assets/theme-CXbG8xGR.js +1 -0
  188. package/web/assets/{toggleswitch-Qo70K7EJ.js → toggleswitch-BCY7RhMa.js} +2 -2
  189. package/web/assets/{travel-map-earth-globe.svg-D6szY-qJ.js → travel-map-earth-globe.svg-bobKX3Td.js} +1 -1
  190. package/web/assets/trpc-D953ojvb.js +1 -0
  191. package/web/assets/{tsMode-Lbkz8xJi.js → tsMode-HrRwEBdZ.js} +5 -5
  192. package/web/assets/{typescript-C9Y4Q3Pi.js → typescript-CM93Igq2.js} +1 -1
  193. package/web/assets/useAiChatDrawer-uMew_avv.js +1 -0
  194. package/web/assets/{useCloudOrg-C0YVyKuT.js → useCloudOrg-Dd4m5ej-.js} +1 -1
  195. package/web/assets/{useEnvVarAutocomplete-DFNddwqp.css → useEnvVarAutocomplete-ChKhQI_8.css} +1 -1
  196. package/web/assets/useEnvVarAutocomplete-CwYnoQY2.js +1 -0
  197. package/web/assets/useProjectCatalog-Ct2H50rw.js +1 -0
  198. package/web/assets/useProjectCloudOrg-By2M8LTk.js +1 -0
  199. package/web/assets/useServiceUrlHost-ZVKBplG8.js +1 -0
  200. package/web/assets/{xml-BAzLHFet.js → xml-CJGov3Ex.js} +1 -1
  201. package/web/assets/{yaml-Dd3JbA6E.js → yaml-xY3BFPUE.js} +1 -1
  202. package/web/index.html +2 -2
  203. package/agent-manager-APY7SZ75.js +0 -9
  204. package/chunk-44XAJ3MK.js.map +0 -1
  205. package/chunk-6T7R2JZR.js.map +0 -1
  206. package/chunk-OGCEFBSS.js.map +0 -1
  207. package/chunk-VPANMGAI.js.map +0 -1
  208. package/settings-manager-MQBUCUIO.js +0 -9
  209. package/src-S5TDMHPI.js.map +0 -1
  210. package/web/assets/AgentScalarChatInterface.vue-BF7maBl3.js +0 -13
  211. package/web/assets/AgentTerminalPage-CvmJM-z2.js +0 -1
  212. package/web/assets/AiChatPage-CZvzic7w.js +0 -1
  213. package/web/assets/AppLayout-B6rcGZ-d.js +0 -1
  214. package/web/assets/AuditPage-Zow6i_p1.js +0 -1
  215. package/web/assets/CloudAccountPage-C7NM_P_L.js +0 -1
  216. package/web/assets/CloudAccountPage-EIJZWYuK.js +0 -1
  217. package/web/assets/CloudMessagingPage-TLIkdLja.js +0 -2
  218. package/web/assets/DashboardPage-DVe-s0J_.js +0 -164
  219. package/web/assets/DirectoryPickerDialog-B7FOXRqJ.js +0 -1
  220. package/web/assets/EnvironmentFormPage-B8u9s5R1.js +0 -1
  221. package/web/assets/EnvironmentListPage-CmzFuAkD.js +0 -1
  222. package/web/assets/KanbanBoardPage-B4luJ-Om.css +0 -1
  223. package/web/assets/KanbanBoardPage-BwlRY-B5.js +0 -4
  224. package/web/assets/KanbanListPage-BHvmkCBo.js +0 -1
  225. package/web/assets/LaunchProjectPage-CLtvEtB7.js +0 -1
  226. package/web/assets/LaunchServicesPage-CNwMUBEf.js +0 -1
  227. package/web/assets/LogViewer-CttayRws.js +0 -3
  228. package/web/assets/OrgKeyPrompt-BCUxooW7.js +0 -1
  229. package/web/assets/ProcessDetailPage-C9SV4g8j.js +0 -1
  230. package/web/assets/RandomJobTestPage-0PVLJcpY.js +0 -2
  231. package/web/assets/ScenarioEditorPage-CDRQjUbW.js +0 -14
  232. package/web/assets/SendToChatDialog-WvHUhHoF.js +0 -1
  233. package/web/assets/ServiceControlsBar-BUTVG9E_.js +0 -1
  234. package/web/assets/ServiceDetailPage-BzPogs-k.js +0 -2
  235. package/web/assets/ServiceFormPage-BAnq0Ajd.js +0 -1
  236. package/web/assets/SettingsPage-B60IQ4-n.js +0 -2063
  237. package/web/assets/UnlockPage-BrBOIaYO.js +0 -1
  238. package/web/assets/VaultMigrationPage-DwPlrgAk.js +0 -1
  239. package/web/assets/VersionBadge-VifKvUR5.js +0 -1
  240. package/web/assets/WikiPage-hb8nDENE.js +0 -1
  241. package/web/assets/WikiView-BGFK-ViQ.js +0 -1
  242. package/web/assets/add-scalar-classes-B7RXfMBe.js +0 -387
  243. package/web/assets/card-WTAGOi1D.js +0 -32
  244. package/web/assets/client-DcD_v2XG.js +0 -24
  245. package/web/assets/cloud-chat.store-C0vZ0R5r.js +0 -1
  246. package/web/assets/cloud-client-P2Cyjp5i.js +0 -1
  247. package/web/assets/cloud-session-5od8XXV-.js +0 -2
  248. package/web/assets/cloud-session-DEFzA7ER.js +0 -1
  249. package/web/assets/column-D-tpUFcH.js +0 -763
  250. package/web/assets/index-CuOHmXqW.css +0 -1
  251. package/web/assets/interface-content-folder.svg-vAfHUVxs.js +0 -1
  252. package/web/assets/modal-4lYrZSCG.js +0 -1
  253. package/web/assets/modal-C0BaKlvZ.js +0 -5
  254. package/web/assets/multiselect-C2K875ec.js +0 -251
  255. package/web/assets/process.store-Dkhppeiw.js +0 -1
  256. package/web/assets/project-launch.store-HsHnuv7p.js +0 -1
  257. package/web/assets/project.store-nYOH1fu8.js +0 -1
  258. package/web/assets/router-CEGkI1tc.js +0 -1
  259. package/web/assets/settings-scope-Dj1u8OM-.js +0 -1
  260. package/web/assets/settings.store-CzBxGLJM.js +0 -1
  261. package/web/assets/src-21gpk7yl.js +0 -572
  262. package/web/assets/src-Brqld0NK.js +0 -197
  263. package/web/assets/src-BsM0Obsp.css +0 -1
  264. package/web/assets/src-DYhMIuuF.js +0 -1
  265. package/web/assets/theme-GoDEfTsY.js +0 -1
  266. package/web/assets/trpc-D_S7-UJx.js +0 -1
  267. package/web/assets/useAiChatDrawer-GXkAcvQ3.js +0 -1
  268. package/web/assets/useEnvVarAutocomplete-Dkjm0cg5.js +0 -1
  269. package/web/assets/useProjectCatalog-BwvqZBo1.js +0 -1
  270. package/web/assets/useProjectCloudOrg-DpsnzqQF.js +0 -1
  271. package/web/assets/useServiceUrlHost-BFSLGMHh.js +0 -1
  272. package/web/assets/w3c-keyname-tfhvQ9CV.js +0 -1
  273. /package/{agent-manager-APY7SZ75.js.map → agent-manager-HOL7ZG4V.js.map} +0 -0
  274. /package/{chat-AOL2TMLR.js.map → chat-XUIXGKSR.js.map} +0 -0
  275. /package/{chunk-77UQ2UKW.js.map → chunk-I2AZCZMR.js.map} +0 -0
  276. /package/{companion-YYXSCN3H.js.map → companion-POUL5OGO.js.map} +0 -0
  277. /package/{desktop-launcher-Q6J2LSVP.js.map → desktop-launcher-QVYFCE56.js.map} +0 -0
  278. /package/{settings-manager-MQBUCUIO.js.map → settings-manager-KKSPWSM6.js.map} +0 -0
  279. /package/web/assets/{abap-DblxFMgX.js → abap-cDlgWO6H.js} +0 -0
  280. /package/web/assets/{apex-C_fmPlQy.js → apex-DxzSGotK.js} +0 -0
  281. /package/web/assets/{azcli-D73HZyav.js → azcli-CUNfZLtQ.js} +0 -0
  282. /package/web/assets/{bat-Br4Biw6V.js → bat-C-oKGifY.js} +0 -0
  283. /package/web/assets/{bicep-Cwg6_V-m.js → bicep-C4xTl9QV.js} +0 -0
  284. /package/web/assets/{browser-D6yPejPt.js → browser-CE5P0iHW.js} +0 -0
  285. /package/web/assets/{cameligo-Dq6Izwzi.js → cameligo-COpO1ZvP.js} +0 -0
  286. /package/web/assets/{clojure-U0exYVUx.js → clojure-D8gp5eAN.js} +0 -0
  287. /package/web/assets/{coffee-mPGPozSE.js → coffee-De9HMN-q.js} +0 -0
  288. /package/web/assets/{cpp-lpr_PQMA.js → cpp-C4pJyeKy.js} +0 -0
  289. /package/web/assets/{csharp-saQQwY3s.js → csharp-B4wLqqiU.js} +0 -0
  290. /package/web/assets/{csp-CcDpUBZN.js → csp-Do0Gg4qE.js} +0 -0
  291. /package/web/assets/{css-D6QFYBbL.js → css-BLq1nXK0.js} +0 -0
  292. /package/web/assets/{cypher-B_4KCq-w.js → cypher-CDQzi0TV.js} +0 -0
  293. /package/web/assets/{dart-CgLuovz1.js → dart-bTPYn7bY.js} +0 -0
  294. /package/web/assets/{dockerfile-DObNIc52.js → dockerfile-yM7ZnQpo.js} +0 -0
  295. /package/web/assets/{ecl-BpCwjSsH.js → ecl-BgTpp_c4.js} +0 -0
  296. /package/web/assets/{elixir-CebZWKus.js → elixir-DO7wJ1ib.js} +0 -0
  297. /package/web/assets/{flow9-DhoDs9JD.js → flow9-B2Ko_py3.js} +0 -0
  298. /package/web/assets/{fsharp-YDWqgr0W.js → fsharp-DNdx3wKW.js} +0 -0
  299. /package/web/assets/{go-CaPX4mu5.js → go-D7LajbkE.js} +0 -0
  300. /package/web/assets/{graphql-DOSo46Ed.js → graphql-BCQSwUPo.js} +0 -0
  301. /package/web/assets/{hcl-nSYpx4qj.js → hcl-DR3uNUXT.js} +0 -0
  302. /package/web/assets/{ini-Ca22qQIM.js → ini-zkzQPitL.js} +0 -0
  303. /package/web/assets/{java-KrQduvTo.js → java-YFwuCa4S.js} +0 -0
  304. /package/web/assets/{julia-Bb2MDsY_.js → julia-WWwv4jLR.js} +0 -0
  305. /package/web/assets/{kotlin-DB7e82Vg.js → kotlin-FwlJkapy.js} +0 -0
  306. /package/web/assets/{less-K5fiQqgY.js → less-CyhHW1nH.js} +0 -0
  307. /package/web/assets/{lexon-Do9EcqkA.js → lexon-BScN_v1c.js} +0 -0
  308. /package/web/assets/{lua-DU9Dpzvs.js → lua-eWb9GpZJ.js} +0 -0
  309. /package/web/assets/{m3-pF6PmPkL.js → m3-C4NDU793.js} +0 -0
  310. /package/web/assets/{markdown-BNRSTD3D.js → markdown-DWWpXAtL.js} +0 -0
  311. /package/web/assets/{mips-OIXxWbNl.js → mips-BpJKGw00.js} +0 -0
  312. /package/web/assets/{msdax-Blzk7oHr.js → msdax-BiuvyZwP.js} +0 -0
  313. /package/web/assets/{mysql-CISO3r5e.js → mysql-DJW9Aa9q.js} +0 -0
  314. /package/web/assets/{objective-c-CfnC_OAj.js → objective-c-YouNnWOW.js} +0 -0
  315. /package/web/assets/{pascal-BUF-IB2S.js → pascal-jQsRnBre.js} +0 -0
  316. /package/web/assets/{pascaligo-BKce2a7P.js → pascaligo-DZI84_dt.js} +0 -0
  317. /package/web/assets/{perl-BSNQJqG3.js → perl-D9TKt-s6.js} +0 -0
  318. /package/web/assets/{pgsql-B6gnZ9Pz.js → pgsql-DXgI6ehC.js} +0 -0
  319. /package/web/assets/{php-D3DRjlE-.js → php-Cgqd4wfW.js} +0 -0
  320. /package/web/assets/{pla-DMkpEwWz.js → pla-DRDkvVUU.js} +0 -0
  321. /package/web/assets/{postiats-CS9vJAK8.js → postiats-BOLeCCau.js} +0 -0
  322. /package/web/assets/{powerquery-5wdkUpGP.js → powerquery-DCDtPNBU.js} +0 -0
  323. /package/web/assets/{powershell-CFy-OLZK.js → powershell-WnZ4e5ia.js} +0 -0
  324. /package/web/assets/{protobuf-BexdMU0z.js → protobuf-C9Dg-C9o.js} +0 -0
  325. /package/web/assets/{pug-D7XxQLO5.js → pug-Dr8RhWun.js} +0 -0
  326. /package/web/assets/{qsharp-Cbf2FpNP.js → qsharp-DukGWvWZ.js} +0 -0
  327. /package/web/assets/{r-DF7k9FbU.js → r-BC41pTgC.js} +0 -0
  328. /package/web/assets/{redis-CsS7YEaP.js → redis-D-gYIUku.js} +0 -0
  329. /package/web/assets/{redshift-ELXdujA0.js → redshift-r0XbF8XS.js} +0 -0
  330. /package/web/assets/{restructuredtext-xoFIa5lj.js → restructuredtext-DsJDS7Eu.js} +0 -0
  331. /package/web/assets/{ruby-BqZs-MXO.js → ruby-JPrm3ODz.js} +0 -0
  332. /package/web/assets/{rust-Bg6ZO_et.js → rust-C8IjEXni.js} +0 -0
  333. /package/web/assets/{sb-DiB12F6v.js → sb-D8vNiFl9.js} +0 -0
  334. /package/web/assets/{scala-DElpnKpP.js → scala-DThahuqf.js} +0 -0
  335. /package/web/assets/{scheme-1ahRBKOq.js → scheme-CvEQUYYf.js} +0 -0
  336. /package/web/assets/{scss-DEMPy3QV.js → scss-C6obpl8K.js} +0 -0
  337. /package/web/assets/{shell-DPy86lBu.js → shell-BnVmd31t.js} +0 -0
  338. /package/web/assets/{solidity-BJ26fCkf.js → solidity-Bo6zEybc.js} +0 -0
  339. /package/web/assets/{sophia-BisqpnJK.js → sophia-DuB3Px8n.js} +0 -0
  340. /package/web/assets/{sparql-C7Lhhim4.js → sparql-CW9HqMW2.js} +0 -0
  341. /package/web/assets/{sql-BXVElqbr.js → sql-CPCPCQON.js} +0 -0
  342. /package/web/assets/{st-C3Kk-cML.js → st-AxC3n-1-.js} +0 -0
  343. /package/web/assets/{swift-D8IWJydR.js → swift-CgZOS_MZ.js} +0 -0
  344. /package/web/assets/{systemverilog-524SrI2Q.js → systemverilog-DYR-yx39.js} +0 -0
  345. /package/web/assets/{tcl-MYNTx-d-.js → tcl-4hAvWv0d.js} +0 -0
  346. /package/web/assets/{twig-BAVZN0tW.js → twig-Cf_07aFW.js} +0 -0
  347. /package/web/assets/{typespec-BhgMHLJQ.js → typespec-2tXj8s11.js} +0 -0
  348. /package/web/assets/{vb-BLauMmY8.js → vb-DLpM4f4s.js} +0 -0
  349. /package/web/assets/{wgsl-ybvhdvmz.js → wgsl-BcECae_z.js} +0 -0
@@ -1,572 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/docx-preview-B62lLslx.js","assets/index-8J1A633V.js","assets/index-CuOHmXqW.css"])))=>i.map(i=>d[i]);
2
- import{$n as e,Ai as t,Bn as n,Br as r,Ca as i,Cr as a,Di as o,Ea as s,Fi as c,Fr as l,Hn as u,Hr as d,Ii as f,In as p,Ji as m,Nr as h,Oa as g,Oi as _,Ri as v,Rr as y,Sa as b,Si as x,Va as S,Vn as ee,Wn as C,Wr as w,X as te,Xa as T,Xr as E,Yn as D,Yr as O,Z as ne,Zi as re,Zn as k,_n as ie,_r as A,aa as j,ai as M,at as N,bi as ae,bn as P,br as oe,ca as F,ci as se,cn as ce,da as I,di as le,dn as ue,ei as de,gn as fe,ir as pe,ji as L,jr as me,ka as R,ki as z,la as he,mn as ge,ot as _e,pn as ve,pr as ye,qi as B,qn as be,qr as xe,sa as V,sr as Se,ta as Ce,ti as we,ua as Te,un as Ee,va as De,vn as Oe,vr as ke,wi as H,wr as Ae,xi as U,yn as je,za as Me,zr as Ne}from"./index-8J1A633V.js";import{t as Pe}from"./checkbox-DZeCLgbK.js";import{t as Fe}from"./radiobutton-BQ5ty9EJ.js";import{t as Ie}from"./card-WTAGOi1D.js";import{t as Le}from"./multiselect-C2K875ec.js";import{a as Re,i as ze,n as Be,o as Ve,r as He,t as Ue}from"./tabpanel-BytkhVWV.js";import{t as We}from"./autocomplete-CeUb1Plo.js";import{t as Ge}from"./src-Brqld0NK.js";var Ke=ye.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`}}}),qe={name:`BaseSlider`,extends:Oe,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:Ke,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function Je(e){"@babel/helpers - typeof";return Je=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},Je(e)}function Ye(e,t,n){return(t=Xe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e){var t=Ze(e,`string`);return Je(t)==`symbol`?t:t+``}function Ze(e,t){if(Je(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Je(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Qe(e){return tt(e)||et(e)||W(e)||$e()}function $e(){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 W(e,t){if(e){if(typeof e==`string`)return nt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(e,t):void 0}}function et(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function tt(e){if(Array.isArray(e))return nt(e)}function nt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rt={name:`Slider`,extends:qe,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+w(),this.initY=e.top+ke(),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`?l(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?Qe(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||me(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 E(Ye({},this.orientation,this.orientation))}}},it=[`data-p`],at=[`data-p`],G=[`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`],st=[`tabindex`,`aria-valuemin`,`aria-valuenow`,`aria-valuemax`,`aria-labelledby`,`aria-label`,`aria-orientation`,`data-p`];function ct(e,n,r,i,a,o){return j(),L(`div`,B({class:e.cx(`root`),onClick:n[18]||=function(){return o.onBarClick&&o.onBarClick.apply(o,arguments)}},e.ptmi(`root`),{"data-p-sliding":!1,"data-p":o.dataP}),[_(`span`,B({class:e.cx(`range`),style:[e.sx(`range`),o.rangeStyle()]},e.ptm(`range`),{"data-p":o.dataP}),null,16,at),e.range?t(``,!0):(j(),L(`span`,B({key:0,class:e.cx(`handle`),style:[e.sx(`handle`),o.handleStyle()],onTouchstartPassive:n[0]||=function(e){return o.onDragStart(e)},onTouchmovePassive:n[1]||=function(e){return o.onDrag(e)},onTouchend:n[2]||=function(e){return o.onDragEnd(e)},onMousedown:n[3]||=function(e){return o.onMouseDown(e)},onKeydown:n[4]||=function(e){return o.onKeyDown(e)},onBlur:n[5]||=function(e){return o.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":o.dataP}),null,16,G)),e.range?(j(),L(`span`,B({key:1,class:e.cx(`handle`),style:[e.sx(`handle`),o.rangeStartHandleStyle()],onTouchstartPassive:n[6]||=function(e){return o.onDragStart(e,0)},onTouchmovePassive:n[7]||=function(e){return o.onDrag(e)},onTouchend:n[8]||=function(e){return o.onDragEnd(e)},onMousedown:n[9]||=function(e){return o.onMouseDown(e,0)},onKeydown:n[10]||=function(e){return o.onKeyDown(e,0)},onBlur:n[11]||=function(e){return o.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":o.dataP}),null,16,ot)):t(``,!0),e.range?(j(),L(`span`,B({key:2,class:e.cx(`handle`),style:[e.sx(`handle`),o.rangeEndHandleStyle()],onTouchstartPassive:n[12]||=function(e){return o.onDragStart(e,1)},onTouchmovePassive:n[13]||=function(e){return o.onDrag(e)},onTouchend:n[14]||=function(e){return o.onDragEnd(e)},onMousedown:n[15]||=function(e){return o.onMouseDown(e,1)},onKeydown:n[16]||=function(e){return o.onKeyDown(e,1)},onBlur:n[17]||=function(e){return o.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":o.dataP}),null,16,st)):t(``,!0)],16,it)}rt.render=ct;var lt={name:`CalendarIcon`,extends:k};function ut(e){return mt(e)||pt(e)||ft(e)||dt()}function dt(){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 ft(e,t){if(e){if(typeof e==`string`)return ht(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)?ht(e,t):void 0}}function pt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function mt(e){if(Array.isArray(e))return ht(e)}function ht(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 gt(e,t,n,r,i,a){return j(),L(`svg`,B({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e.pti()),ut(t[0]||=[_(`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)}lt.render=gt;var _t=ye.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}}}}),vt={name:`BaseDatePicker`,extends:ie,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:_t,provide:function(){return{$pcDatePicker:this,$parentInstance:this}}};function yt(e,t,n){return(t=bt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bt(e){var t=xt(e,`string`);return St(t)==`symbol`?t:t+``}function xt(e,t){if(St(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(St(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function St(e){"@babel/helpers - typeof";return St=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},St(e)}function Ct(e){return Et(e)||Tt(e)||Ot(e)||wt()}function wt(){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 Tt(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Et(e){if(Array.isArray(e))return kt(e)}function Dt(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Ot(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 Ot(e,t){if(e){if(typeof e==`string`)return kt(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)?kt(e,t):void 0}}function kt(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 At={name:`DatePicker`,extends:vt,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=M(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&&A.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=Dt(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){h(e,this.inline?void 0:{position:`absolute`,top:`0`}),this.autoZIndex&&A.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&&A.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 pe(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&&!Ne()&&(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?Ae(this.overlay,this.$el):(this.view===`date`?(this.overlay.style.width=xe(this.overlay)+`px`,this.overlay.style.minWidth=xe(this.$el)+`px`):this.overlay.style.width=xe(this.$el)+`px`,oe(this.overlay,this.$el)))},onButtonClick:function(){this.isEnabled()&&(this.overlayVisible?this.overlayVisible=!1:(this.input.focus(),this.overlayVisible=!0))},isDateDisabled:function(e,t,n){if(this.disabledDates){var r=Dt(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(y(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(Ct(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 de(e)&&se(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(Ct(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=Dt(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=St(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,o=a(i);switch(e.code){case`ArrowDown`:if(r.tabIndex=`-1`,i.parentElement.nextElementSibling){var s=a(i.parentElement),c=Array.from(i.parentElement.parentElement.children).slice(s+1).find(function(e){var t=e.children[o].children[0];return!me(t,`data-p-disabled`)});if(c){var l=c.children[o].children[0];l.tabIndex=`0`,l.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 u=a(i.parentElement),d=Array.from(i.parentElement.parentElement.children).slice(0,u).reverse().find(function(e){var t=e.children[o].children[0];return!me(t,`data-p-disabled`)});if(d){var f=d.children[o].children[0];f.tabIndex=`0`,f.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 p=Array.from(i.parentElement.children).slice(0,o).reverse().find(function(e){var t=e.children[0];return!me(t,`data-p-disabled`)});if(p){var m=p.children[0];m.tabIndex=`0`,m.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 h=Array.from(i.parentElement.children).slice(o+1).find(function(e){var t=e.children[0];return!me(t,`data-p-disabled`)});if(h){var g=h.children[0];g.tabIndex=`0`,g.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 _=i.parentElement.children[0].children[0];me(_,`data-p-disabled`)?this.navigateToMonth(e,!0,n):(_.tabIndex=`0`,_.focus()),e.preventDefault();break;case`End`:r.tabIndex=`-1`;var v=i.parentElement,y=v.children[v.children.length-1].children[0];me(y,`data-p-disabled`)?this.navigateToMonth(e,!1,n):(y.tabIndex=`0`,y.focus()),e.preventDefault();break;case`PageUp`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!0},this.navBackward(e)):this.navigateToMonth(e,!0,n),e.preventDefault();break;case`PageDown`:r.tabIndex=`-1`,e.shiftKey?(this.navigationState={backward:!1},this.navForward(e)):this.navigateToMonth(e,!1,n),e.preventDefault();break}},navigateToMonth:function(e,t,n){if(t)if(this.numberOfMonths===1||n===0)this.navigationState={backward:!0},this.navBackward(e);else{var r=this.overlay.children[n-1],i=y(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=O(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=a(n),o=r[e.code===`ArrowDown`?i+3:i-3];o&&(o.tabIndex=`0`,o.focus()),e.preventDefault();break;case`ArrowLeft`:n.tabIndex=`-1`;var s=n.previousElementSibling;s?(s.tabIndex=`0`,s.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break;case`ArrowRight`:n.tabIndex=`-1`;var c=n.nextElementSibling;c?(c.tabIndex=`0`,c.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=a(n),o=r[e.code===`ArrowDown`?i+2:i-2];o&&(o.tabIndex=`0`,o.focus()),e.preventDefault();break;case`ArrowLeft`:n.tabIndex=`-1`;var s=n.previousElementSibling;s?(s.tabIndex=`0`,s.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break;case`ArrowRight`:n.tabIndex=`-1`;var c=n.nextElementSibling;c?(c.tabIndex=`0`,c.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`?y(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?y(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):y(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`?O(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]:not([data-p-disabled="true"])`):this.currentView===`year`?O(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]:not([data-p-disabled="true"])`):O(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=y(this.overlay,`[data-pc-section="monthview"] [data-pc-section="month"]`),n=O(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=y(this.overlay,`[data-pc-section="yearview"] [data-pc-section="year"]`),i=O(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=O(this.overlay,`span[data-p-selected="true"]`),!e&&(e=O(this.overlay,`td[data-p-today="true"] span:not([data-p-disabled="true"]):not([data-p-ink="true"])`)||O(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=d(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=M(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=M(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&&d(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||P.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`,r(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=we(),i=Ct(this.responsiveOptions).filter(function(e){return!!(e.breakpoint&&e.numMonths)}).sort(function(e,t){return-1*n(e.breakpoint,t.breakpoint)}),a=0;a<i.length;a++){for(var o=i[a],s=o.breakpoint,c=o.numMonths,l=`
558
- .p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${c}) .p-datepicker-next-button {
559
- display: inline-flex;
560
- }
561
- `,u=c;u<this.numberOfMonths;u++)l+=`
562
- .p-datepicker-panel[${this.$attrSelector}] .p-datepicker-calendar:nth-child(${u+1}) {
563
- display: none;
564
- }
565
- `;t+=`
566
- @media screen and (max-width: ${s}) {
567
- ${l}
568
- }
569
- `}this.responsiveStyleElement.innerHTML=t}},destroyResponsiveStyleElement:function(){this.responsiveStyleElement&&=(this.responsiveStyleElement.remove(),null)},dayDataP:function(e){return E({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 E({fluid:this.$fluid})},panelDataP:function(){return E(yt({inline:this.inline},`portal-`+this.appendTo,`portal-`+this.appendTo))},inputIconDataP:function(){return E(yt({},this.size,this.size))},timePickerDataP:function(){return E({"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:fe,Button:C,Portal:e,CalendarIcon:lt,ChevronLeftIcon:Re,ChevronRightIcon:_e,ChevronUpIcon:N,ChevronDownIcon:ve,TimesIcon:D},directives:{ripple:be}},jt=[`id`,`data-p`],Mt=[`disabled`,`aria-label`,`aria-expanded`,`aria-controls`],K=[`data-p`],Nt=[`id`,`role`,`aria-modal`,`aria-label`,`data-p`],Pt=[`disabled`,`aria-label`],Ft=[`disabled`,`aria-label`],It=[`disabled`,`aria-label`],Lt=[`disabled`,`aria-label`],Rt=[`data-p-disabled`],zt=[`abbr`],Bt=[`data-p-disabled`],Vt=[`aria-label`,`data-p-today`,`data-p-other-month`],Ht=[`onClick`,`onKeydown`,`aria-selected`,`aria-disabled`,`data-p`],Ut=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Wt=[`onClick`,`onKeydown`,`data-p-disabled`,`data-p-selected`],Gt=[`data-p`];function Kt(e,n,r,a,o,l){var u=he(`InputText`),d=he(`TimesIcon`),p=he(`Button`),m=he(`Portal`),h=Te(`ripple`);return j(),L(`span`,B({ref:`container`,id:e.$id,class:e.cx(`root`),style:e.sx(`root`),"data-p":l.containerDataP},e.ptmi(`root`)),[e.inline?t(``,!0):(j(),z(u,{key:0,ref:l.inputRef,id:e.inputId,role:`combobox`,class:s([e.inputClass,e.cx(`pcInputText`)]),style:g(e.inputStyle),defaultValue:l.inputFieldValue,placeholder:e.placeholder,name:e.name,size:e.size,invalid:e.invalid,variant:e.variant,fluid:e.fluid,required:e.required,unstyled:e.unstyled,autocomplete:`off`,"aria-autocomplete":`none`,"aria-haspopup":`dialog`,"aria-expanded":o.overlayVisible,"aria-controls":o.overlayVisible?l.panelId:void 0,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,inputmode:`none`,disabled:e.disabled,readonly:!e.manualInput||e.readonly,tabindex:0,onInput:l.onInput,onClick:l.onInputClick,onFocus:l.onFocus,onBlur:l.onBlur,onKeydown:l.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?F(e.$slots,`clearicon`,{key:1,class:s(e.cx(`clearIcon`)),clearCallback:l.onClearClick},function(){return[f(d,B({ref:`clearIcon`,class:[e.cx(`clearIcon`)],onClick:l.onClearClick},e.ptm(`clearIcon`)),null,16,[`class`,`onClick`])]}):t(``,!0),e.showIcon&&e.iconDisplay===`button`&&!e.inline?F(e.$slots,`dropdownbutton`,{key:2,toggleCallback:l.onButtonClick},function(){return[_(`button`,B({class:e.cx(`dropdown`),disabled:e.disabled,onClick:n[0]||=function(){return l.onButtonClick&&l.onButtonClick.apply(l,arguments)},type:`button`,"aria-label":e.$primevue.config.locale.chooseDate,"aria-haspopup":`dialog`,"aria-expanded":o.overlayVisible,"aria-controls":l.panelId},e.ptm(`dropdown`)),[F(e.$slots,`dropdownicon`,{class:s(e.icon)},function(){return[(j(),z(I(e.icon?`span`:`CalendarIcon`),B({class:e.icon},e.ptm(`dropdownIcon`)),null,16,[`class`]))]})],16,Mt)]}):e.showIcon&&e.iconDisplay===`input`&&!e.inline?(j(),L(H,{key:3},[e.$slots.inputicon||e.showIcon?(j(),L(`span`,B({key:0,class:e.cx(`inputIconContainer`),"data-p":l.inputIconDataP},e.ptm(`inputIconContainer`)),[F(e.$slots,`inputicon`,{class:s(e.cx(`inputIcon`)),clickCallback:l.onButtonClick},function(){return[(j(),z(I(e.icon?`i`:`CalendarIcon`),B({class:[e.icon,e.cx(`inputIcon`)],onClick:l.onButtonClick},e.ptm(`inputicon`)),null,16,[`class`,`onClick`]))]})],16,K)):t(``,!0)],64)):t(``,!0),f(m,{appendTo:e.appendTo,disabled:e.inline},{default:b(function(){return[f(le,B({name:`p-anchored-overlay`,onEnter:n[58]||=function(e){return l.onOverlayEnter(e)},onAfterEnter:l.onOverlayEnterComplete,onAfterLeave:l.onOverlayAfterLeave,onLeave:l.onOverlayLeave},e.ptm(`transition`)),{default:b(function(){return[e.inline||o.overlayVisible?(j(),L(`div`,B({key:0,ref:l.overlayRef,id:l.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 l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)},onKeydown:n[56]||=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)},onMouseup:n[57]||=function(){return l.onOverlayMouseUp&&l.onOverlayMouseUp.apply(l,arguments)},"data-p":l.panelDataP},e.ptm(`panel`)),[e.timeOnly?t(``,!0):(j(),L(H,{key:0},[_(`div`,B({class:e.cx(`calendarContainer`)},e.ptm(`calendarContainer`)),[(j(!0),L(H,null,V(l.months,function(r,a){return j(),L(`div`,B({key:r.month+r.year,class:e.cx(`calendar`)},{ref_for:!0},e.ptm(`calendar`)),[_(`div`,B({class:e.cx(`header`)},{ref_for:!0},e.ptm(`header`)),[F(e.$slots,`header`),F(e.$slots,`prevbutton`,{actionCallback:function(e){return l.onPrevButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[i(f(p,B({ref_for:!0,ref:l.previousButtonRef,class:e.cx(`pcPrevButton`),disabled:e.disabled,"aria-label":o.currentView===`year`?e.$primevue.config.locale.prevDecade:o.currentView===`month`?e.$primevue.config.locale.prevYear:e.$primevue.config.locale.prevMonth,unstyled:e.unstyled,onClick:l.onPrevButtonClick,onKeydown:l.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcPrevButton`),"data-pc-group-section":`navigator`}),{icon:b(function(t){return[F(e.$slots,`previcon`,{},function(){return[(j(),z(I(e.prevIcon?`span`:`ChevronLeftIcon`),B({class:[e.prevIcon,t.class]},{ref_for:!0},e.ptm(`pcPrevButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[ae,a===0]])]}),_(`div`,B({class:e.cx(`title`)},{ref_for:!0},e.ptm(`title`)),[e.$primevue.config.locale.showMonthAfterYear?(j(),L(H,{key:0},[o.currentView===`year`?t(``,!0):(j(),L(`button`,B({key:0,type:`button`,onClick:n[1]||=function(){return l.switchToYearView&&l.switchToYearView.apply(l,arguments)},onKeydown:n[2]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectYear`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),R(l.getYear(r)),17,Pt)),o.currentView===`date`?(j(),L(`button`,B({key:1,type:`button`,onClick:n[3]||=function(){return l.switchToMonthView&&l.switchToMonthView.apply(l,arguments)},onKeydown:n[4]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectMonth`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),R(l.getMonthName(r.month)),17,Ft)):t(``,!0)],64)):(j(),L(H,{key:1},[o.currentView===`date`?(j(),L(`button`,B({key:0,type:`button`,onClick:n[5]||=function(){return l.switchToMonthView&&l.switchToMonthView.apply(l,arguments)},onKeydown:n[6]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectMonth`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseMonth},{ref_for:!0},e.ptm(`selectMonth`),{"data-pc-group-section":`view`}),R(l.getMonthName(r.month)),17,It)):t(``,!0),o.currentView===`year`?t(``,!0):(j(),L(`button`,B({key:1,type:`button`,onClick:n[7]||=function(){return l.switchToYearView&&l.switchToYearView.apply(l,arguments)},onKeydown:n[8]||=function(){return l.onContainerButtonKeydown&&l.onContainerButtonKeydown.apply(l,arguments)},class:e.cx(`selectYear`),disabled:l.switchViewButtonDisabled,"aria-label":e.$primevue.config.locale.chooseYear},{ref_for:!0},e.ptm(`selectYear`),{"data-pc-group-section":`view`}),R(l.getYear(r)),17,Lt))],64)),o.currentView===`year`?(j(),L(`span`,B({key:2,class:e.cx(`decade`)},{ref_for:!0},e.ptm(`decade`)),[F(e.$slots,`decade`,{years:l.yearPickerValues},function(){return[c(R(l.yearPickerValues[0].value)+` - `+R(l.yearPickerValues[l.yearPickerValues.length-1].value),1)]})],16)):t(``,!0)],16),F(e.$slots,`nextbutton`,{actionCallback:function(e){return l.onNextButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[i(f(p,B({ref_for:!0,ref:l.nextButtonRef,class:e.cx(`pcNextButton`),disabled:e.disabled,"aria-label":o.currentView===`year`?e.$primevue.config.locale.nextDecade:o.currentView===`month`?e.$primevue.config.locale.nextYear:e.$primevue.config.locale.nextMonth,unstyled:e.unstyled,onClick:l.onNextButtonClick,onKeydown:l.onContainerButtonKeydown},{ref_for:!0},e.navigatorButtonProps,{pt:e.ptm(`pcNextButton`),"data-pc-group-section":`navigator`}),{icon:b(function(t){return[F(e.$slots,`nexticon`,{},function(){return[(j(),z(I(e.nextIcon?`span`:`ChevronRightIcon`),B({class:[e.nextIcon,t.class]},{ref_for:!0},e.ptm(`pcNextButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`class`,`disabled`,`aria-label`,`unstyled`,`onClick`,`onKeydown`,`pt`]),[[ae,e.numberOfMonths===1?!0:a===e.numberOfMonths-1]])]})],16),o.currentView===`date`?(j(),L(`table`,B({key:0,class:e.cx(`dayView`),role:`grid`},{ref_for:!0},e.ptm(`dayView`)),[_(`thead`,B({ref_for:!0},e.ptm(`tableHeader`)),[_(`tr`,B({ref_for:!0},e.ptm(`tableHeaderRow`)),[e.showWeek?(j(),L(`th`,B({key:0,scope:`col`,class:e.cx(`weekHeader`)},{ref_for:!0},e.ptm(`weekHeader`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tableheadercell`}),[F(e.$slots,`weekheaderlabel`,{},function(){return[_(`span`,B({ref_for:!0},e.ptm(`weekHeaderLabel`,{context:{disabled:e.showWeek}}),{"data-pc-group-section":`tableheadercelllabel`}),R(l.weekHeaderLabel),17)]})],16,Rt)):t(``,!0),(j(!0),L(H,null,V(l.weekDays,function(t){return j(),L(`th`,B({key:t,scope:`col`,abbr:t},{ref_for:!0},e.ptm(`tableHeaderCell`),{"data-pc-group-section":`tableheadercell`,class:e.cx(`weekDayCell`)}),[_(`span`,B({class:e.cx(`weekDay`)},{ref_for:!0},e.ptm(`weekDay`),{"data-pc-group-section":`tableheadercelllabel`}),R(t),17)],16,zt)}),128))],16)],16),_(`tbody`,B({ref_for:!0},e.ptm(`tableBody`)),[(j(!0),L(H,null,V(r.dates,function(n,o){return j(),L(`tr`,B({key:n[0].day+``+n[0].month},{ref_for:!0},e.ptm(`tableBodyRow`)),[e.showWeek?(j(),L(`td`,B({key:0,class:e.cx(`weekNumber`)},{ref_for:!0},e.ptm(`weekNumber`),{"data-pc-group-section":`tablebodycell`}),[_(`span`,B({class:e.cx(`weekLabelContainer`)},{ref_for:!0},e.ptm(`weekLabelContainer`,{context:{disabled:e.showWeek}}),{"data-p-disabled":e.showWeek,"data-pc-group-section":`tablebodycelllabel`}),[F(e.$slots,`weeklabel`,{weekNumber:r.weekNumbers[o]},function(){return[r.weekNumbers[o]<10?(j(),L(`span`,B({key:0,style:{visibility:`hidden`}},{ref_for:!0},e.ptm(`weekLabel`)),`0`,16)):t(``,!0),c(` `+R(r.weekNumbers[o]),1)]})],16,Bt)],16)):t(``,!0),(j(!0),L(H,null,V(n,function(n){return j(),L(`td`,B({key:n.day+``+n.month,"aria-label":n.day,class:e.cx(`dayCell`,{date:n})},{ref_for:!0},e.ptm(`dayCell`,{context:{date:n,today:n.today,otherMonth:n.otherMonth,selected:l.isSelected(n),disabled:!n.selectable}}),{"data-p-today":n.today,"data-p-other-month":n.otherMonth,"data-pc-group-section":`tablebodycell`}),[e.showOtherMonths||!n.otherMonth?i((j(),L(`span`,B({key:0,class:e.cx(`day`,{date:n}),onClick:function(e){return l.onDateSelect(e,n)},draggable:`false`,onKeydown:function(e){return l.onDateCellKeydown(e,n,a)},"aria-selected":l.isSelected(n),"aria-disabled":!n.selectable},{ref_for:!0},e.ptm(`day`,{context:{date:n,today:n.today,otherMonth:n.otherMonth,selected:l.isSelected(n),disabled:!n.selectable}}),{"data-p":l.dayDataP(n),"data-pc-group-section":`tablebodycelllabel`}),[F(e.$slots,`date`,{date:n},function(){return[c(R(n.day),1)]})],16,Ht)),[[h]]):t(``,!0),l.isSelected(n)?(j(),L(`div`,B({key:1,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenSelectedDay`),{"data-p-hidden-accessible":!0}),R(n.day),17)):t(``,!0)],16,Vt)}),128))],16)}),128))],16)],16)):t(``,!0)],16)}),128))],16),o.currentView===`month`?(j(),L(`div`,B({key:0,class:e.cx(`monthView`)},e.ptm(`monthView`)),[(j(!0),L(H,null,V(l.monthPickerValues,function(n,r){return i((j(),L(`span`,B({key:n,onClick:function(e){return l.onMonthSelect(e,{month:n,index:r})},onKeydown:function(e){return l.onMonthCellKeydown(e,{month:n,index:r})},class:e.cx(`month`,{month:n,index:r})},{ref_for:!0},e.ptm(`month`,{context:{month:n,monthIndex:r,selected:l.isMonthSelected(r),disabled:!n.selectable}}),{"data-p-disabled":!n.selectable,"data-p-selected":l.isMonthSelected(r)}),[c(R(n.value)+` `,1),l.isMonthSelected(r)?(j(),L(`div`,B({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenMonth`),{"data-p-hidden-accessible":!0}),R(n.value),17)):t(``,!0)],16,Ut)),[[h]])}),128))],16)):t(``,!0),o.currentView===`year`?(j(),L(`div`,B({key:1,class:e.cx(`yearView`)},e.ptm(`yearView`)),[(j(!0),L(H,null,V(l.yearPickerValues,function(n){return i((j(),L(`span`,B({key:n.value,onClick:function(e){return l.onYearSelect(e,n)},onKeydown:function(e){return l.onYearCellKeydown(e,n)},class:e.cx(`year`,{year:n})},{ref_for:!0},e.ptm(`year`,{context:{year:n,selected:l.isYearSelected(n.value),disabled:!n.selectable}}),{"data-p-disabled":!n.selectable,"data-p-selected":l.isYearSelected(n.value)}),[c(R(n.value)+` `,1),l.isYearSelected(n.value)?(j(),L(`div`,B({key:0,class:`p-hidden-accessible`,"aria-live":`polite`},{ref_for:!0},e.ptm(`hiddenYear`),{"data-p-hidden-accessible":!0}),R(n.value),17)):t(``,!0)],16,Wt)),[[h]])}),128))],16)):t(``,!0)],64)),(e.showTime||e.timeOnly)&&o.currentView===`date`?(j(),L(`div`,B({key:1,class:e.cx(`timePicker`),"data-p":l.timePickerDataP},e.ptm(`timePicker`)),[_(`div`,B({class:e.cx(`hourPicker`)},e.ptm(`hourPicker`),{"data-pc-group-section":`timepickerContainer`}),[F(e.$slots,`hourincrementbutton`,{callbacks:l.hourIncrementCallbacks},function(){return[f(p,B({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextHour,unstyled:e.unstyled,onMousedown:n[9]||=function(e){return l.onTimePickerElementMouseDown(e,0,1)},onMouseup:n[10]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[12]||=U(function(e){return l.onTimePickerElementMouseDown(e,0,1)},[`enter`]),n[13]||=U(function(e){return l.onTimePickerElementMouseDown(e,0,1)},[`space`])],onMouseleave:n[11]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[14]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[15]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`incrementicon`,{},function(){return[(j(),z(I(e.incrementIcon?`span`:`ChevronUpIcon`),B({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]}),_(`span`,B(e.ptm(`hour`),{"data-pc-group-section":`timepickerlabel`}),R(l.formattedCurrentHour),17),F(e.$slots,`hourdecrementbutton`,{callbacks:l.hourDecrementCallbacks},function(){return[f(p,B({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevHour,unstyled:e.unstyled,onMousedown:n[16]||=function(e){return l.onTimePickerElementMouseDown(e,0,-1)},onMouseup:n[17]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[19]||=U(function(e){return l.onTimePickerElementMouseDown(e,0,-1)},[`enter`]),n[20]||=U(function(e){return l.onTimePickerElementMouseDown(e,0,-1)},[`space`])],onMouseleave:n[18]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[21]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[22]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`decrementicon`,{},function(){return[(j(),z(I(e.decrementIcon?`span`:`ChevronDownIcon`),B({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`unstyled`,`onKeydown`,`pt`])]})],16),_(`div`,B(e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[_(`span`,B(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),R(e.timeSeparator),17)],16),_(`div`,B({class:e.cx(`minutePicker`)},e.ptm(`minutePicker`),{"data-pc-group-section":`timepickerContainer`}),[F(e.$slots,`minuteincrementbutton`,{callbacks:l.minuteIncrementCallbacks},function(){return[f(p,B({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[23]||=function(e){return l.onTimePickerElementMouseDown(e,1,1)},onMouseup:n[24]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[26]||=U(function(e){return l.onTimePickerElementMouseDown(e,1,1)},[`enter`]),n[27]||=U(function(e){return l.onTimePickerElementMouseDown(e,1,1)},[`space`])],onMouseleave:n[25]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[28]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[29]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`incrementicon`,{},function(){return[(j(),z(I(e.incrementIcon?`span`:`ChevronUpIcon`),B({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),_(`span`,B(e.ptm(`minute`),{"data-pc-group-section":`timepickerlabel`}),R(l.formattedCurrentMinute),17),F(e.$slots,`minutedecrementbutton`,{callbacks:l.minuteDecrementCallbacks},function(){return[f(p,B({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevMinute,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[30]||=function(e){return l.onTimePickerElementMouseDown(e,1,-1)},onMouseup:n[31]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[33]||=U(function(e){return l.onTimePickerElementMouseDown(e,1,-1)},[`enter`]),n[34]||=U(function(e){return l.onTimePickerElementMouseDown(e,1,-1)},[`space`])],onMouseleave:n[32]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[35]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[36]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`decrementicon`,{},function(){return[(j(),z(I(e.decrementIcon?`span`:`ChevronDownIcon`),B({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16),e.showSeconds?(j(),L(`div`,B({key:0,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[_(`span`,B(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),R(e.timeSeparator),17)],16)):t(``,!0),e.showSeconds?(j(),L(`div`,B({key:1,class:e.cx(`secondPicker`)},e.ptm(`secondPicker`),{"data-pc-group-section":`timepickerContainer`}),[F(e.$slots,`secondincrementbutton`,{callbacks:l.secondIncrementCallbacks},function(){return[f(p,B({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.nextSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[37]||=function(e){return l.onTimePickerElementMouseDown(e,2,1)},onMouseup:n[38]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[40]||=U(function(e){return l.onTimePickerElementMouseDown(e,2,1)},[`enter`]),n[41]||=U(function(e){return l.onTimePickerElementMouseDown(e,2,1)},[`space`])],onMouseleave:n[39]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[42]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[43]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`incrementicon`,{},function(){return[(j(),z(I(e.incrementIcon?`span`:`ChevronUpIcon`),B({class:[e.incrementIcon,t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),_(`span`,B(e.ptm(`second`),{"data-pc-group-section":`timepickerlabel`}),R(l.formattedCurrentSecond),17),F(e.$slots,`seconddecrementbutton`,{callbacks:l.secondDecrementCallbacks},function(){return[f(p,B({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.prevSecond,disabled:e.disabled,unstyled:e.unstyled,onMousedown:n[44]||=function(e){return l.onTimePickerElementMouseDown(e,2,-1)},onMouseup:n[45]||=function(e){return l.onTimePickerElementMouseUp(e)},onKeydown:[l.onContainerButtonKeydown,n[47]||=U(function(e){return l.onTimePickerElementMouseDown(e,2,-1)},[`enter`]),n[48]||=U(function(e){return l.onTimePickerElementMouseDown(e,2,-1)},[`space`])],onMouseleave:n[46]||=function(e){return l.onTimePickerElementMouseLeave()},onKeyup:[n[49]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`enter`]),n[50]||=U(function(e){return l.onTimePickerElementMouseUp(e)},[`space`])]},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`decrementicon`,{},function(){return[(j(),z(I(e.decrementIcon?`span`:`ChevronDownIcon`),B({class:[e.decrementIcon,t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]})],16)):t(``,!0),e.hourFormat==`12`?(j(),L(`div`,B({key:2,class:e.cx(`separatorContainer`)},e.ptm(`separatorContainer`),{"data-pc-group-section":`timepickerContainer`}),[_(`span`,B(e.ptm(`separator`),{"data-pc-group-section":`timepickerlabel`}),R(e.timeSeparator),17)],16)):t(``,!0),e.hourFormat==`12`?(j(),L(`div`,B({key:3,class:e.cx(`ampmPicker`)},e.ptm(`ampmPicker`)),[F(e.$slots,`ampmincrementbutton`,{toggleCallback:function(e){return l.toggleAMPM(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[f(p,B({class:e.cx(`pcIncrementButton`),"aria-label":e.$primevue.config.locale.am,disabled:e.disabled,unstyled:e.unstyled,onClick:n[51]||=function(e){return l.toggleAMPM(e)},onKeydown:l.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcIncrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`incrementicon`,{class:s(e.cx(`incrementIcon`))},function(){return[(j(),z(I(e.incrementIcon?`span`:`ChevronUpIcon`),B({class:[e.cx(`incrementIcon`),t.class]},e.ptm(`pcIncrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`unstyled`,`onKeydown`,`pt`])]}),_(`span`,B(e.ptm(`ampm`),{"data-pc-group-section":`timepickerlabel`}),R(o.pm?e.$primevue.config.locale.pm:e.$primevue.config.locale.am),17),F(e.$slots,`ampmdecrementbutton`,{toggleCallback:function(e){return l.toggleAMPM(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[f(p,B({class:e.cx(`pcDecrementButton`),"aria-label":e.$primevue.config.locale.pm,disabled:e.disabled,onClick:n[52]||=function(e){return l.toggleAMPM(e)},onKeydown:l.onContainerButtonKeydown},e.timepickerButtonProps,{pt:e.ptm(`pcDecrementButton`),"data-pc-group-section":`timepickerbutton`}),{icon:b(function(t){return[F(e.$slots,`decrementicon`,{class:s(e.cx(`decrementIcon`))},function(){return[(j(),z(I(e.decrementIcon?`span`:`ChevronDownIcon`),B({class:[e.cx(`decrementIcon`),t.class]},e.ptm(`pcDecrementButton`).icon,{"data-pc-group-section":`timepickerlabel`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`aria-label`,`disabled`,`onKeydown`,`pt`])]})],16)):t(``,!0)],16,Gt)):t(``,!0),e.showButtonBar?(j(),L(`div`,B({key:2,class:e.cx(`buttonbar`)},e.ptm(`buttonbar`)),[F(e.$slots,`buttonbar`,{todayCallback:function(e){return l.onTodayButtonClick(e)},clearCallback:function(e){return l.onClearButtonClick(e)}},function(){return[F(e.$slots,`todaybutton`,{actionCallback:function(e){return l.onTodayButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[f(p,B({label:l.todayLabel,onClick:n[53]||=function(e){return l.onTodayButtonClick(e)},class:e.cx(`pcTodayButton`),unstyled:e.unstyled,onKeydown:l.onContainerButtonKeydown},e.todayButtonProps,{pt:e.ptm(`pcTodayButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]}),F(e.$slots,`clearbutton`,{actionCallback:function(e){return l.onClearButtonClick(e)},keydownCallback:function(e){return l.onContainerButtonKeydown(e)}},function(){return[f(p,B({label:l.clearLabel,onClick:n[54]||=function(e){return l.onClearButtonClick(e)},class:e.cx(`pcClearButton`),unstyled:e.unstyled,onKeydown:l.onContainerButtonKeydown},e.clearButtonProps,{pt:e.ptm(`pcClearButton`),"data-pc-group-section":`button`}),null,16,[`label`,`class`,`unstyled`,`onKeydown`,`pt`])]})]})],16)):t(``,!0),F(e.$slots,`footer`)],16,Nt)):t(``,!0)]}),_:3},16,[`onAfterEnter`,`onAfterLeave`,`onLeave`])]}),_:3},8,[`appendTo`,`disabled`])],16,jt)}At.render=Kt;function qt(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;let[n,r,i]=[Number(t[1]),Number(t[2]),Number(t[3])],a=new Date(n,r-1,i);return a.getFullYear()===n&&a.getMonth()===r-1&&a.getDate()===i?a:null}function Jt(e,t=new Date){let n=qt(e);if(!n)return null;let r=new Date(t.getFullYear(),t.getMonth(),t.getDate());return Math.round((n.getTime()-r.getTime())/864e5)}function Yt(e,t=new Date){let n=Jt(e,t);return n===null?null:n<0?`overdue`:n===0?`today`:n<=2?`soon`:`later`}function Xt(e,t){let n=qt(e);return n?n.toLocaleDateString(t,{day:`2-digit`,month:`2-digit`,year:`numeric`}):e}var Zt={class:`kb-card__top`},Qt={class:`kb-card__title`},$t={class:`kb-card__actions`},en={key:0,class:`kb-card__groups`},tn={key:1,class:`kb-card__assignees`},nn=[`title`],q=[`src`,`onError`],rn={key:2,class:`kb-card__badges`},an={key:1,class:`kb-card__prio`},on={key:2,class:`pi pi-arrow-up`},sn={key:3,class:`kb-card__img-badge`},cn={key:4,class:`pi pi-align-left`},ln={key:5,class:`kb-card__img-badge`},un={key:6,class:`kb-card__img-badge`},dn=n(v({__name:`KanbanCardTile`,props:{card:{},t:{type:Function},avatarUrl:{type:Function},childCount:{},hasParent:{type:Boolean}},setup(e){let n=e,r=o(()=>{let e=n.card.deadline;if(!e)return null;let t=Yt(e);return t?{label:Xt(e),state:t}:null}),a=Me(new Set);function l(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 u(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}return(e,o)=>{let d=Te(`tooltip`);return j(),L(H,null,[_(`div`,Zt,[_(`span`,Qt,R(n.card.title),1),_(`div`,$t,[F(e.$slots,`actions`,{},void 0,!0)])]),n.card.groups?.length?(j(),L(`div`,en,[(j(!0),L(H,null,V(n.card.groups,e=>(j(),L(`span`,{key:e,class:`kb-card__group`},R(e),1))),128))])):t(``,!0),n.card.assignees?.length?(j(),L(`div`,tn,[(j(!0),L(H,null,V(n.card.assignees,e=>(j(),L(`span`,{key:e.id,class:`kb-card__avatar`,style:g(l(e.id)),title:e.name},[n.avatarUrl&&!a.has(e.id)?(j(),L(`img`,{key:0,src:n.avatarUrl(e.id),alt:``,onError:t=>a.add(e.id)},null,40,q)):(j(),L(H,{key:1},[c(R(u(e.name)),1)],64))],12,nn))),128))])):t(``,!0),n.card.markdown||n.card.images.length||n.card.commentCount||n.childCount||n.hasParent||r.value||e.$slots.badges?(j(),L(`div`,rn,[r.value?i((j(),L(`span`,{key:0,class:s([`kb-card__deadline`,`kb-card__deadline--${r.value.state}`])},[o[0]||=_(`i`,{class:`pi pi-calendar`},null,-1),c(` `+R(r.value.label),1)],2)),[[d,n.t(`card.deadlineTooltip`),void 0,{bottom:!0}]]):t(``,!0),n.card.priority?i((j(),L(`span`,an,[c(R(n.card.priority),1)])),[[d,n.t(`editor.priorityLabel`),void 0,{bottom:!0}]]):t(``,!0),n.hasParent?i((j(),L(`i`,on,null,512)),[[d,n.t(`card.hasParent`),void 0,{bottom:!0}]]):t(``,!0),n.childCount?i((j(),L(`span`,sn,[o[1]||=_(`i`,{class:`pi pi-sitemap`},null,-1),c(` `+R(n.childCount),1)])),[[d,n.t(`card.hasChildren`),void 0,{bottom:!0}]]):t(``,!0),n.card.markdown?(j(),L(`i`,cn)):t(``,!0),n.card.images.length?(j(),L(`span`,ln,[o[2]||=_(`i`,{class:`pi pi-image`},null,-1),c(` `+R(n.card.images.length),1)])):t(``,!0),n.card.commentCount?(j(),L(`span`,un,[o[3]||=_(`i`,{class:`pi pi-comment`},null,-1),c(` `+R(n.card.commentCount),1)])):t(``,!0),F(e.$slots,`badges`,{},void 0,!0)])):t(``,!0)],64)}}}),[[`__scopeId`,`data-v-f1127747`]]),fn={key:0,class:`kb-files__thumb`},pn=[`src`,`alt`],mn={key:1,class:`pi pi-file kb-files__icon`},hn=[`title`,`onClick`],gn=[`title`],_n={class:`kb-files__size`},vn=[`title`,`onClick`],yn=n(v({__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:n}){let r=n;function i(e){return e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}return(n,a)=>e.files.length?(j(),L(`ul`,{key:0,class:s([`kb-files`,{"kb-files--inline":e.compact}])},[(j(!0),L(H,null,V(e.files,(n,o)=>(j(),L(`li`,{key:n.id,class:`kb-files__item`},[e.preview(n)?(j(),L(`span`,fn,[_(`img`,{src:e.preview(n),alt:n.name},null,8,pn)])):(j(),L(`i`,mn)),e.openable?(j(),L(`button`,{key:2,class:`kb-files__name`,title:n.name,onClick:x(e=>r(`open`,n),[`stop`])},R(n.name),9,hn)):(j(),L(`span`,{key:3,class:`kb-files__name kb-files__name--static`,title:n.name},R(n.name),9,gn)),_(`span`,_n,R(i(n.size)),1),e.removable?(j(),L(`button`,{key:4,class:`kb-files__remove`,title:e.removeLabel,onClick:x(e=>r(`remove`,o),[`stop`])},[...a[0]||=[_(`i`,{class:`pi pi-times`},null,-1)]],8,vn)):t(``,!0)]))),128))],2)):t(``,!0)}}),[[`__scopeId`,`data-v-f30e50ba`]]),J=Uint8Array,bn=Uint16Array,xn=Int32Array,Sn=new J([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]),Cn=new J([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]),wn=new J([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tn=function(e,t){for(var n=new bn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new xn(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}},Y=Tn(Sn,2),En=Y.b,Dn=Y.r;En[28]=258,Dn[258]=28;var On=Tn(Cn,0),kn=On.b;On.r;for(var An=new bn(32768),X=0;X<32768;++X){var jn=(X&43690)>>1|(X&21845)<<1;jn=(jn&52428)>>2|(jn&13107)<<2,jn=(jn&61680)>>4|(jn&3855)<<4,An[X]=((jn&65280)>>8|(jn&255)<<8)>>1}for(var Mn=(function(e,t,n){for(var r=e.length,i=0,a=new bn(t);i<r;++i)e[i]&&++a[e[i]-1];var o=new bn(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(n){s=new bn(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[An[d]>>c]=l}else for(s=new bn(r),i=0;i<r;++i)e[i]&&(s[i]=An[o[e[i]-1]++]>>15-e[i]);return s}),Nn=new J(288),X=0;X<144;++X)Nn[X]=8;for(var X=144;X<256;++X)Nn[X]=9;for(var X=256;X<280;++X)Nn[X]=7;for(var X=280;X<288;++X)Nn[X]=8;for(var Pn=new J(32),X=0;X<32;++X)Pn[X]=5;var Fn=Mn(Nn,9,1),In=Mn(Pn,5,1),Ln=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Rn=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},zn=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},Bn=function(e){return(e+7)/8|0},Vn=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new J(e.subarray(t,n))},Hn=[`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`],Z=function(e,t,n){var r=Error(t||Hn[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Z),!n)throw r;return r},Un=function(e,t,n,r){var i=e.length,a=r?r.length:0;if(!i||t.f&&!t.l)return n||new J(0);var o=!n,s=o||t.i!=2,c=t.i;o&&(n=new J(i*3));var l=function(e){var t=n.length;if(e>t){var r=new J(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=Rn(e,d,1);var v=Rn(e,d+1,3);if(d+=3,v)if(v==1)p=Fn,m=In,h=9,g=5;else if(v==2){var y=Rn(e,d,31)+257,b=Rn(e,d+10,15)+4,x=y+Rn(e,d+5,31)+1;d+=14;for(var S=new J(x),ee=new J(19),C=0;C<b;++C)ee[wn[C]]=Rn(e,d+C*3,7);d+=b*3;for(var w=Ln(ee),te=(1<<w)-1,T=Mn(ee,w,1),C=0;C<x;){var E=T[Rn(e,d,te)];d+=E&15;var D=E>>4;if(D<16)S[C++]=D;else{var O=0,ne=0;for(D==16?(ne=3+Rn(e,d,3),d+=2,O=S[C-1]):D==17?(ne=3+Rn(e,d,7),d+=3):D==18&&(ne=11+Rn(e,d,127),d+=7);ne--;)S[C++]=O}}var re=S.subarray(0,y),k=S.subarray(y);h=Ln(re),g=Ln(k),p=Mn(re,h,1),m=Mn(k,g,1)}else Z(1);else{var D=Bn(d)+4,ie=e[D-4]|e[D-3]<<8,A=D+ie;if(A>i){c&&Z(0);break}s&&l(f+ie),n.set(e.subarray(D,A),f),t.b=f+=ie,t.p=d=A*8,t.f=u;continue}if(d>_){c&&Z(0);break}}s&&l(f+131072);for(var j=(1<<h)-1,M=(1<<g)-1,N=d;;N=d){var O=p[zn(e,d)&j],ae=O>>4;if(d+=O&15,d>_){c&&Z(0);break}if(O||Z(2),ae<256)n[f++]=ae;else if(ae==256){N=d,p=null;break}else{var P=ae-254;if(ae>264){var C=ae-257,oe=Sn[C];P=Rn(e,d,(1<<oe)-1)+En[C],d+=oe}var F=m[zn(e,d)&M],se=F>>4;F||Z(3),d+=F&15;var k=kn[se];if(se>3){var oe=Cn[se];k+=zn(e,d)&(1<<oe)-1,d+=oe}if(d>_){c&&Z(0);break}s&&l(f+131072);var ce=f+P;if(f<k){var I=a-k,le=Math.min(k,ce);for(I+f<0&&Z(3);f<le;++f)n[f]=r[I+f]}for(;f<ce;++f)n[f]=n[f-k]}}t.l=p,t.p=N,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?Vn(n,0,f):n.subarray(0,f)},Wn=new J(0),Gn=function(e,t){return e[t]|e[t+1]<<8},Kn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},qn=function(e,t){return Kn(e,t)+Kn(e,t+4)*4294967296};function Jn(e,t){return Un(e,{i:2},t&&t.out,t&&t.dictionary)}var Yn=typeof TextDecoder<`u`&&new TextDecoder;try{Yn.decode(Wn,{stream:!0})}catch{}var Xn=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:Vn(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 Zn(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(Yn)return Yn.decode(e);else{var i=Xn(e),a=i.s,n=i.r;return n.length&&Z(8),a}}var Qn=function(e,t){return t+30+Gn(e,t+26)+Gn(e,t+28)},$n=function(e,t,n){var r=Gn(e,t+28),i=Zn(e.subarray(t+46,t+46+r),!(Gn(e,t+8)&2048)),a=t+46+r,o=Kn(e,t+20),s=n&&o==4294967295?er(e,a):[o,Kn(e,t+24),Kn(e,t+42)],c=s[0],l=s[1],u=s[2];return[Gn(e,t+10),c,l,i,a+Gn(e,t+30)+Gn(e,t+32),u]},er=function(e,t){for(;Gn(e,t)!=1;t+=4+Gn(e,t+2));return[qn(e,t+12),qn(e,t+4),qn(e,t+20)]};function tr(e,t){for(var n={},r=e.length-22;Kn(e,r)!=101010256;--r)(!r||e.length-r>65558)&&Z(13);var i=Gn(e,r+8);if(!i)return{};var a=Kn(e,r+16),o=a==4294967295||i==65535;if(o){var s=Kn(e,r-12);o=Kn(e,s)==101075792,o&&(i=Kn(e,s+32),a=Kn(e,s+48))}for(var c=t&&t.filter,l=0;l<i;++l){var u=$n(e,a,o),d=u[0],f=u[1],p=u[2],m=u[3],h=u[4],g=u[5],_=Qn(e,g);a=h,(!c||c({name:m,size:f,originalSize:p,compression:d}))&&(d?d==8?n[m]=Jn(e.subarray(_,_+f),{out:new J(p)}):Z(14,`unknown compression type `+d):n[m]=Vn(e,_,_+f))}return n}var nr=2e3,rr=100,ir=5e3,ar=300,or={csv:`sheet`,tsv:`sheet`,xlsx:`sheet`,xlsm:`sheet`,ods:`sheet`,docx:`doc`,odt:`doc`,pptx:`slides`,odp:`slides`},sr={"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 cr(e,t){return or[t.toLowerCase().split(`.`).pop()??``]??sr[(e||``).toLowerCase().split(`;`)[0].trim()]??null}async function lr(e,t,n,r){let i=n.toLowerCase().split(`.`).pop()??``;if(i===`csv`||i===`tsv`)return hr(new TextDecoder().decode(t),n);let a=tr(new Uint8Array(t)),o=a[`content.xml`];return o?Sr(e,Zn(o)):e===`doc`?{mode:`render`,render:e=>ur(t,r,e)}:e===`slides`?br(a):dr(t,r)}async function ur(e,t,n){let{renderAsync:r}=await p(async()=>{let{renderAsync:e}=await import(`./docx-preview-B62lLslx.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}),pr(n)}async function dr(e,t){let n=(await p(async()=>{let{default:e}=await import(`./browser-D6yPejPt.js`);return{default:e}},[])).default,r=await n(new Blob([e],{type:t})),i=!1,a=r.map((e,t)=>(e.data.length>nr&&(i=!0),{name:e.sheet||`Sheet${t+1}`,rows:e.data.slice(0,nr).map(e=>(e.length>rr&&(i=!0),e.slice(0,rr).map(fr)))}));if(!a.length)throw Error(`no worksheet`);return{mode:`sheet`,sheets:a,truncated:i}}function fr(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 pr(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 mr(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 hr(e,t){let n=t.toLowerCase().endsWith(`.tsv`)?` `:mr(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>=nr)break}else a+=s}(a||i.length)&&(i.push(a),r.push(i));let s=r.length>=nr;return{mode:`sheet`,sheets:[{name:t||`CSV`,rows:r.map(gr)}],truncated:s}}function gr(e){return e.length>rr?e.slice(0,rr):e}function _r(e){let t=new DOMParser().parseFromString(e,`application/xml`);if(t.getElementsByTagName(`parsererror`).length)throw Error(`invalid XML`);return t}function vr(e,t){return Array.from(e.getElementsByTagName(t))}function yr(e,t){return vr(e,t).map(e=>e.textContent??``).join(``)}function br(e){let t=Object.keys(e).filter(e=>/^ppt\/slides\/slide\d+\.xml$/.test(e)).sort((e,t)=>xr(e)-xr(t));if(!t.length)throw Error(`no slide`);let n=[];for(let r of t.slice(0,ar)){let t=vr(_r(Zn(e[r])),`a:p`).map(e=>yr(e,`a:t`).trim()).filter(Boolean);n.push({title:t[0]??``,lines:t.slice(1)})}return{mode:`slides`,slides:n,truncated:t.length>ar}}function xr(e){return Number(/(\d+)\.xml$/.exec(e)?.[1]??0)}function Sr(e,t){let n=_r(t);return e===`sheet`?wr(n):e===`doc`?Tr(n):Er(n)}function Cr(e,t,n){let r=Number(e.getAttribute(t)??`1`);return!Number.isFinite(r)||r<1?1:Math.min(r,n)}function wr(e){let t=[],n=!1;for(let r of vr(e,`table:table`)){let e=[];for(let t of vr(r,`table:table-row`)){if(e.length>=nr){n=!0;break}let r=[];for(let e of vr(t,`table:table-cell`)){if(r.length>=rr){n=!0;break}let t=vr(e,`text:p`).map(e=>e.textContent??``).join(`
572
- `),i=Cr(e,`table:number-columns-repeated`,rr);for(let e=0;e<(t?i:1);e+=1)r.push(t)}for(;r.length&&r[r.length-1]===``;)r.pop();let i=Cr(t,`table:number-rows-repeated`,nr);for(let t=0;t<(r.length?i:1);t+=1)e.push([...r])}for(;e.length&&e[e.length-1].length===0;)e.pop();t.push({name:r.getAttribute(`table:name`)||`Table${t.length+1}`,rows:e})}if(!t.length)throw Error(`no table`);return{mode:`sheet`,sheets:t,truncated:n}}function Tr(e){let t=e.getElementsByTagName(`office:text`)[0];if(!t)throw Error(`no text body`);let n=[],r=!1,i=e=>{for(let t of Array.from(e.children)){if(n.length>=ir){r=!0;return}let e=(t.textContent??``).trim();if(t.tagName===`text:h`)e&&n.push({type:`heading`,level:Math.min(6,Number(t.getAttribute(`text:outline-level`)??`1`)||1),text:e});else if(t.tagName===`text:p`)e&&n.push({type:`paragraph`,text:e});else if(t.tagName===`text:list`)for(let e of vr(t,`text:list-item`)){let t=(e.textContent??``).trim();t&&n.push({type:`list`,text:t})}else t.tagName===`table:table`?n.push({type:`table`,rows:vr(t,`table:table-row`).slice(0,nr).map(e=>vr(e,`table:table-cell`).slice(0,rr).map(e=>(e.textContent??``).trim()))}):t.children.length&&i(t)}};return i(t),{mode:`blocks`,blocks:n,truncated:r}}function Er(e){let t=vr(e,`draw:page`);if(!t.length)throw Error(`no slide`);return{mode:`slides`,slides:t.slice(0,ar).map(e=>{let t=vr(e,`text:p`).map(e=>(e.textContent??``).trim()).filter(Boolean);return{title:t[0]??``,lines:t.slice(1)}}),truncated:t.length>ar}}var Dr={key:0,class:`kb-upload`},Or={key:0,class:`kb-upload__list`},kr=[`title`],Ar={class:`kb-upload__bar`},jr={class:`kb-upload__pct`},Mr={key:1,class:`kb-upload__status`},Nr={key:2,class:`kb-upload__errors`},Pr=n(v({__name:`UploadProgress`,props:{queue:{},errors:{},uploading:{type:Boolean,default:!1},uploadingLabel:{default:``}},setup(e){return(n,r)=>e.queue.length||e.errors.length||e.uploading&&!e.queue.length?(j(),L(`div`,Dr,[e.queue.length?(j(),L(`ul`,Or,[(j(!0),L(H,null,V(e.queue,e=>(j(),L(`li`,{key:e.key},[_(`span`,{class:`kb-upload__name`,title:e.name},R(e.name),9,kr),_(`span`,Ar,[_(`span`,{class:`kb-upload__bar-fill`,style:g({width:`${Math.round(e.ratio*100)}%`})},null,4)]),_(`span`,jr,R(Math.round(e.ratio*100))+`%`,1)]))),128))])):e.uploading?(j(),L(`p`,Mr,R(e.uploadingLabel),1)):t(``,!0),e.errors.length?(j(),L(`ul`,Nr,[(j(!0),L(H,null,V(e.errors,(e,t)=>(j(),L(`li`,{key:t},R(e.name)+` — `+R(e.reason),1))),128))])):t(``,!0)])):t(``,!0)}}),[[`__scopeId`,`data-v-06e54521`]]);function Fr(e,t){let n=new Map(e.map(e=>[e.id,e])),r=[],i=new Set,a=t;for(;a&&n.has(a)&&!i.has(a);)i.add(a),r.unshift(a),a=n.get(a).parentId;return r}function Ir(e,t){let n=[],r=new Map,i=[...e].sort((e,t)=>e.order-t.order||e.id.localeCompare(t.id));for(let e of i){let i=n;for(let n of Fr(t,e.groupId)){let e=r.get(n);e||(e={kind:`group`,id:n,children:[]},r.set(n,e),i.push(e)),i=e.children}i.push({kind:`column`,id:e.id,children:[]})}let a=e=>{let i=r.get(e.id);if(i)return i;let o={kind:`group`,id:e.id,children:[]};r.set(e.id,o);let s=e.parentId?t.find(t=>t.id===e.parentId):void 0;return(s?a(s).children:n).push(o),o};for(let e of t)Fr(t,e.id).length&&a(e);return n}function Lr(e){return e.flatMap(e=>e.kind===`column`?[e.id]:Lr(e.children))}function Rr(e,t,n,r){let i=Ir(e,t),a=e=>{let t=e.findIndex(e=>e.id===n);if(t!==-1){let n=t+r;if(n<0||n>=e.length)return!1;let[i]=e.splice(t,1);return e.splice(n,0,i),!0}return e.some(e=>e.kind===`group`&&a(e.children))};return a(i)?Lr(i):null}var zr={class:`kg-lead`},Br={key:0,class:`kg-create`},Vr={class:`kg-tree`},Hr={key:0,class:`kg-empty`},Ur=[`draggable`,`onDragstart`,`onDragover`,`onDrop`],Wr={key:2,class:`kg-row__title`},Gr={key:3,class:`kg-row__count`},Kr={key:4,class:`kg-row__actions`},qr=[`onClick`],Jr={class:`kg-loose__label`},Yr={key:0,class:`kg-empty`},Xr=[`draggable`,`onDragstart`],Zr={class:`kg-row__title`},Qr=n(v({__name:`KanbanColumnGroups`,props:{visible:{type:Boolean},columns:{},groups:{},readOnly:{type:Boolean},t:{type:Function}},emits:[`update:visible`,`intent`],setup(e,{emit:n}){let r=e,i=n,a=Se(),c=r.t,l=[`#f97316`,`#22c55e`,`#3b82f6`,`#a855f7`,`#ec4899`,`#64748b`],d=o(()=>new Map(r.groups.map(e=>[e.id,e])));function p(e){return r.columns.filter(t=>(t.groupId&&d.value.has(t.groupId)?t.groupId:void 0)===e)}function m(e){return r.groups.filter(t=>(t.parentId??void 0)===e)}function h(e){return p(e).length+m(e).reduce((e,t)=>e+h(t.id),0)}let v=o(()=>Ir(r.columns,r.groups)),y=o(()=>{let e=[],t=(n,i)=>{for(let a of n){if(a.kind===`column`){if(i===0)continue;let t=r.columns.find(e=>e.id===a.id);t&&e.push({kind:`column`,id:t.id,title:t.title,depth:i});continue}let n=d.value.get(a.id);n&&(e.push({kind:`group`,id:n.id,title:n.title,color:n.color,depth:i,columnCount:h(n.id)}),t(a.children,i+1))}};return t(v.value,0),e});function ee(e,t){let n=Rr(r.columns,r.groups,e,t);n&&i(`intent`,{kind:`columns-reorder`,columnIds:n})}function w(e,t){return Rr(r.columns,r.groups,e,t)!==null}let te=o(()=>p(void 0)),E=S(``);function D(){let e=E.value.trim();e&&(i(`intent`,{kind:`group-add`,title:e,color:l[r.groups.length%l.length]}),E.value=``)}let O=S(null);function ne(e){e.kind===`group`&&(O.value={id:e.id,title:e.title})}function re(){let e=O.value;if(!e)return;let t=e.title.trim(),n=d.value.get(e.id);t&&n&&t!==n.title&&i(`intent`,{kind:`group-update`,groupId:e.id,patch:{title:t}}),O.value=null}function k(e,t){let n=d.value.get(e)?.color;i(`intent`,{kind:`group-update`,groupId:e,patch:{color:n===t?null:t}})}function ie(e){e.kind===`group`&&a.require({message:c(`groups.deleteConfirm`,{title:e.title}),header:c(`groups.deleteHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,accept:()=>i(`intent`,{kind:`group-delete`,groupId:e.id})})}let A=S(null),M=S(null);function N(e,t,n){r.readOnly||(A.value={kind:e,id:t},n.dataTransfer?.setData(`text/plain`,t),n.dataTransfer&&(n.dataTransfer.effectAllowed=`move`))}function ae(e,t){if(!e)return!1;if(e.kind===`column`||t===null)return!0;let n=t,r=new Set;for(;n&&!r.has(n);){if(n===e.id)return!1;r.add(n),n=d.value.get(n)?.parentId}return!0}function P(e){let t=e.relatedTarget;t&&e.currentTarget.contains(t)||(M.value=null)}function oe(e,t){ae(A.value,e)&&(t.preventDefault(),M.value=e??`root`)}function F(e){let t=r.columns.find(t=>t.id===e)?.groupId;return t&&d.value.has(t)?t:null}function se(e){let t=A.value,n=ae(t,e);M.value=null,A.value=null,!(!t||!n)&&i(`intent`,{kind:`group-assign`,member:t,groupId:e})}function ce(){i(`update:visible`,!1)}return(n,r)=>(j(),z(T(u),{visible:e.visible,header:T(c)(`groups.title`),modal:!0,style:{width:`540px`},"onUpdate:visible":ce},{default:b(()=>[_(`p`,zr,R(T(c)(`groups.lead`)),1),e.readOnly?t(``,!0):(j(),L(`div`,Br,[f(T(fe),{modelValue:E.value,"onUpdate:modelValue":r[0]||=e=>E.value=e,placeholder:T(c)(`groups.newPlaceholder`),class:`kg-create__input`,onKeyup:U(D,[`enter`])},null,8,[`modelValue`,`placeholder`]),f(T(C),{label:T(c)(`groups.create`),icon:`pi pi-plus`,size:`small`,onClick:D},null,8,[`label`])])),_(`div`,Vr,[y.value.length?t(``,!0):(j(),L(`div`,Hr,R(T(c)(`groups.empty`)),1)),(j(!0),L(H,null,V(y.value,n=>(j(),L(`div`,{key:`${n.kind}-${n.id}`,class:s([`kg-row`,{"kg-row--group":n.kind===`group`,"kg-row--target":M.value===n.id}]),style:g({paddingLeft:`${n.depth*1.25}rem`}),draggable:!e.readOnly,onDragstart:e=>N(n.kind,n.id,e),onDragover:e=>oe(n.kind===`group`?n.id:F(n.id),e),onDragleave:P,onDrop:x(e=>se(n.kind===`group`?n.id:F(n.id)),[`prevent`]),onDragend:r[2]||=e=>{A.value=null,M.value=null}},[_(`i`,{class:s([n.kind===`group`?`pi pi-folder`:`pi pi-list`,`kg-row__icon`])},null,2),n.kind===`group`?(j(),L(`span`,{key:0,class:`kg-swatch`,style:g({background:n.color||`var(--p-text-muted-color)`})},null,4)):t(``,!0),O.value&&O.value.id===n.id?(j(),z(T(fe),{key:1,modelValue:O.value.title,"onUpdate:modelValue":r[1]||=e=>O.value.title=e,class:`kg-row__rename`,autofocus:``,onKeyup:U(re,[`enter`]),onBlur:re},null,8,[`modelValue`])):(j(),L(`span`,Wr,R(n.title),1)),n.kind===`group`?(j(),L(`span`,Gr,R(T(c)(`groups.columnCount`,{count:n.columnCount})),1)):t(``,!0),e.readOnly?t(``,!0):(j(),L(`div`,Kr,[f(T(C),{icon:`pi pi-chevron-up`,text:``,size:`small`,disabled:!w(n.id,-1),"aria-label":T(c)(`groups.moveUp`),class:`kg-move`,onClick:e=>ee(n.id,-1)},null,8,[`disabled`,`aria-label`,`onClick`]),f(T(C),{icon:`pi pi-chevron-down`,text:``,size:`small`,disabled:!w(n.id,1),"aria-label":T(c)(`groups.moveDown`),class:`kg-move`,onClick:e=>ee(n.id,1)},null,8,[`disabled`,`aria-label`,`onClick`]),n.kind===`group`?(j(),L(H,{key:0},[(j(),L(H,null,V(l,e=>_(`span`,{key:e,class:s([`kg-dot`,{"kg-dot--on":n.color===e}]),style:g({background:e}),onClick:t=>k(n.id,e)},null,14,qr)),64)),f(T(C),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>ne(n)},null,8,[`onClick`]),f(T(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>ie(n)},null,8,[`onClick`])],64)):t(``,!0)]))],46,Ur))),128))]),_(`div`,{class:s([`kg-loose`,{"kg-row--target":M.value===`root`}]),onDragover:r[4]||=e=>oe(null,e),onDragleave:P,onDrop:r[5]||=x(e=>se(null),[`prevent`])},[_(`div`,Jr,R(T(c)(`groups.loose`)),1),te.value.length?t(``,!0):(j(),L(`div`,Yr,R(T(c)(`groups.looseEmpty`)),1)),(j(!0),L(H,null,V(te.value,t=>(j(),L(`div`,{key:t.id,class:`kg-row`,draggable:!e.readOnly,onDragstart:e=>N(`column`,t.id,e),onDragend:r[3]||=e=>{A.value=null,M.value=null}},[r[6]||=_(`i`,{class:`pi pi-list kg-row__icon`},null,-1),_(`span`,Zr,R(t.title),1)],40,Xr))),128))],34)]),_:1},8,[`visible`,`header`]))}}),[[`__scopeId`,`data-v-48711454`]]),$r={class:`kb-header`},ei={class:`kb-header__search`},ti={key:1,class:`kb-header__search-more`},ni={key:1,class:`kb-header__readonly`},ri={class:`kb-boardwrap`},ii={class:`kb-band__title`},ai={class:`kb-band__count`},oi=[`data-col-id`,`draggable`,`onDragstart`,`onDragover`,`onDragleave`,`onDrop`,`onTouchstart`],si=[`title`,`onClick`],ci={class:`kb-col__count`},li={key:0,class:`pi pi-bell kb-col__bell--on`},ui={key:1,class:`kb-col__header`},di=[`value`,`readonly`,`onBlur`],fi={class:`kb-col__header-right`},pi={class:`kb-col__count`},mi=[`onClick`],hi={key:3,class:`kb-col__cards`},gi=[`data-card-id`,`draggable`,`onDragstart`,`onDragover`,`onTouchstart`,`onClick`],_i=[`onClick`],vi=[`onClick`],yi={key:0,class:`kb-col__empty`},bi=[`onClick`],xi={class:`kb-subscribe__lead`},Si={class:`kb-subscribe__legend`},Ci={class:`kb-subscribe__options`},wi={class:`kb-subscribe__option`},Ti={class:`kb-subscribe__legend`},Ei={class:`kb-subscribe__options`},Di={class:`kb-subscribe__no`},Oi={class:`kb-subscribe__legend`},ki={class:`kb-subscribe__options`},Ai={class:`kb-subscribe__channels`},ji={key:1,class:`kb-subscribe__channels`},Mi={class:`kb-tpl-intro`},Ni={class:`kb-tpl-list`},Pi=[`onClick`],Fi={key:0,class:`kb-add-col`},Ii={key:0,class:`kb-add-col__form`},Li={class:`kb-add-col__actions`},Ri={class:`kb-filters__body`},zi={class:`kb-filters__section`},Bi={class:`kb-side__label`},Vi={class:`kb-ops`},Hi=[`onClick`],Ui={key:0,class:`kb-prio`},Wi={class:`kb-prio__value`},Gi={key:1,class:`kb-side__hint`},Ki={class:`kb-filters__section`},qi={class:`kb-side__label`},Ji={class:`kb-colors`},Yi=[`onClick`],Xi={class:`kb-filters__section`},Zi={class:`kb-side__label`},Qi={key:0,class:`pi pi-ban`},$i={class:`kb-filters__section`},ea={class:`kb-side__label`},ta={key:0,class:`pi pi-ban`},na={class:`kb-filters__section`},ra={class:`kb-side__label`},ia={key:0,class:`pi pi-ban`},aa={key:1,class:`kb-link__col`},oa={class:`kb-side__hint`},sa={class:`kb-archive__hint`},ca={class:`kb-archive__search`},la={key:0,class:`kb-archive__empty`},ua={key:1,class:`kb-archive__empty`},da={key:2,class:`kb-archive__empty`},fa={key:0,class:`kb-archive__filtered`},pa={key:1,class:`kb-archive__filtered`},ma={class:`kb-archive__list`},ha=[`onClick`],ga=[`onClick`],_a={class:`kb-archive__meta`},va={key:0},ya={key:1},ba={key:0,class:`kb-dialog`},xa={class:`kb-dialog__main`},Sa={key:0,class:`kb-dialog__archived`},Ca={class:`kb-dialog__edit-content`},wa={class:`kb-dialog__field`},Ta={for:`kanban-card-title`,class:`kb-dialog__label`},Ea={class:`kb-dialog__field`},Da={for:`kanban-card-content`,class:`kb-dialog__label`},Oa={class:`kb-dialog__field`},ka={for:`kanban-card-images`,class:`kb-dialog__label`},Aa={key:0,class:`kb-dialog__images`},ja=[`src`],Ma=[`onClick`],Na={key:1,class:`kb-dialog__upload`},Pa={class:`kb-rel`},Fa={key:0,class:`kb-rel__section`},Ia={class:`kb-rel__title`},La={key:0,class:`kb-rel__table`},Ra={class:`kb-rel__people`},za={class:`kb-rel__num`},Ba={class:`kb-rel__actions-col`},Va={class:`kb-rel__card`},Ha={class:`kb-rel__board`},Ua={class:`kb-rel__people`},Wa={key:0,class:`kb-card__assignees`},Ga=[`title`],Ka=[`src`,`onError`],qa={key:1,class:`kb-rel__none`},Ja={class:`kb-rel__num`},Ya={class:`kb-rel__actions-col`},Xa=[`title`],Za=[`title`],Qa={key:1,class:`kb-rel__empty`},$a={class:`kb-coloption`},eo={class:`kb-link__col`},to={key:1,class:`kb-rel__section`},no={class:`kb-rel__title`},ro={key:0,class:`kb-rel__table`},io={class:`kb-rel__people`},ao={class:`kb-rel__num`},oo={class:`kb-rel__actions-col`},so={class:`kb-rel__card`},co={class:`kb-rel__board`},lo={class:`kb-rel__people`},uo={key:0,class:`kb-card__assignees`},fo=[`title`],po=[`src`,`onError`],mo={key:1,class:`kb-rel__none`},ho={class:`kb-rel__num`},go={class:`kb-rel__actions-col`},_o=[`title`,`onClick`],vo=[`title`,`onClick`],yo={key:1,class:`kb-rel__empty`},bo={class:`kb-coloption`},xo={class:`kb-link__col`},So={key:2,class:`kb-rel__empty`},Co={class:`kb-comments`},wo={key:0,class:`kb-comments__empty`},To={key:1,class:`kb-comments__list`},Eo=[`onClick`],Do={key:0,class:`pi pi-sparkles`},Oo=[`src`,`onError`],ko={key:3,class:`pi pi-user`},Ao={class:`kb-comments__body`},jo={class:`kb-comments__meta`},Mo={class:`kb-comments__author`},No={class:`kb-comments__time`},Po={key:0,class:`kb-comments__edited`},Fo={key:1,class:`kb-comments__tools`},Io=[`title`,`onClick`],Lo=[`title`,`onClick`],Ro={class:`kb-comments__actions`},zo=[`onClick`,`innerHTML`],Bo=[`onClick`],Vo=[`onKeydown`],Ho={class:`kb-comments__actions`},Uo=[`title`],Wo={class:`kb-comments__hint`},Go={class:`kb-history`},Ko={key:0,class:`kb-history__empty`},qo={key:1,class:`kb-history__timeline`},Jo=[`onClick`],Yo={class:`kb-history__icon`},Xo={class:`kb-history__body`},Zo={class:`kb-history__label`},Qo={key:0,class:`pi pi-external-link`,style:{"font-size":`0.625rem`,"margin-left":`0.25rem`}},$o={key:0,class:`kb-history__detail`},es={class:`kb-history__time`},ts={class:`kb-side`},ns={key:0,class:`kb-side__block`},rs={class:`kb-side__label`},is=[`title`],as=[`src`,`onError`],os={class:`kb-assignee`},ss=[`src`,`onError`],cs={class:`kb-side__hint`},ls={class:`kb-side__block`},us={class:`kb-side__label`},ds={key:0,class:`kb-prio__value`},fs={key:0,class:`kb-prio`},ps=[`title`],ms={key:2,class:`kb-side__hint`},hs={class:`kb-side__block`},gs={class:`kb-side__label`},_s={class:`kb-deadline`},vs=[`title`],ys={key:0,class:`kb-side__hint`},bs={class:`kb-side__block`},xs={class:`kb-side__label`},Ss={class:`kb-groups__option`},Cs={class:`kb-side__hint`},ws={key:1,class:`kb-side__block`},Ts={class:`kb-side__label`},Es={class:`kb-tree`},Ds={key:0,class:`pi pi-angle-right kb-tree__branch`},Os=[`title`,`onClick`],ks={class:`kb-tree__label`},As={class:`kb-side__block`},js={class:`kb-side__label`},Ms={class:`kb-colors`},Ns=[`disabled`],Ps=[`disabled`,`onClick`],Fs={class:`kb-side__hint`},Is={key:2,class:`kb-side__block`},Ls={class:`kb-side__label`},Rs={class:`kb-side__hint`},zs={key:3,class:`kb-side__block`},Bs={class:`kb-side__label`},Vs={class:`kb-colgroup__label`},Hs={class:`kb-coloption`},Us={key:0,class:`pi pi-arrow-right kb-coloption__away`},Ws={key:0,class:`kb-side__hint`},Gs={class:`kb-side__block kb-side__meta`},Ks={key:0},qs={key:4,class:`kb-side__block`},Js={class:`kb-side__label`},Ys={class:`kb-side__convs`},Xs=[`title`,`onClick`],Zs={class:`kb-side__conv-label`},Qs={key:5,class:`kb-side__block`},$s={class:`kb-side__label`},ec={class:`kb-side__actions`},tc={key:6,class:`kb-side__block kb-side__danger`},nc={class:`kb-dialog__footer`},rc={key:0,class:`kb-dialog__unsaved`},ic={key:0,class:`kb-viewer`},ac=[`src`,`alt`],oc=[`src`,`title`],sc=[`src`],cc=[`src`],lc={key:4,class:`kb-viewer__office`},uc={key:0,class:`kb-viewer__tabs`},dc=[`onClick`],fc={class:`kb-viewer__scroll`},pc={key:0,class:`kb-viewer__table`},mc={key:1,class:`kb-viewer__empty`},hc={key:5,class:`kb-viewer__office`},gc={class:`kb-viewer__scroll kb-viewer__doc`},_c={key:0},vc={key:1},yc={key:2},bc={key:3,class:`kb-viewer__li`},xc={key:4,class:`kb-viewer__table`},Sc={key:5},Cc={key:0,class:`kb-viewer__empty`},wc={key:6,class:`kb-viewer__office`},Tc={class:`kb-viewer__scroll kb-viewer__slides`},Ec={class:`kb-viewer__slide-no`},Dc={key:0},Oc={key:7,class:`kb-viewer__office`},kc={key:0,class:`kb-viewer__empty`},Ac={key:8,class:`kb-viewer__text`},jc={key:9,class:`kb-viewer__truncated`},Mc={key:0,class:`kb-colmenu`},Nc={class:`kb-colmenu__host`},Q=`\0void`,Pc=26,Fc=512*1024,Ic=55*1024*1024,Lc=5*1024*1024,Rc=400,zc=8,Bc=60,Vc=12,Hc=n(v({__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(e,{expose:n,emit:r}){let a=e,l=o(()=>a.loadHistory!==void 0),d=r,p=Se(),h=a.t;function v(){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 y(e){return JSON.parse(JSON.stringify(e))}let w=S(y(a.columns));De(()=>a.columns,e=>{w.value=y(e),Yt()});function E(e,t){w.value=e,t&&d(`intent`,t)}let D=S(``),O=S(!1),k=S(``),ie=o(()=>[...w.value].sort((e,t)=>e.order-t.order).map(e=>({...e,cards:[...e.cards].sort((e,t)=>e.order-t.order)}))),A=S(!1),M=S(`gte`),N=S(null),P=S([]),oe=S([]),se=S([]),I=S(!1),le=S(!1),ue=S(!1),de=S([]),pe=o(()=>{let e=new Set;for(let t of de.value){for(let n of an(t,`up`))e.add(n);for(let n of an(t,`down`))e.add(n)}return e}),me=o(()=>N.value!==null||M.value===`none`),he=o(()=>(me.value?1:0)+(P.value.length?1:0)+(oe.value.length||I.value?1:0)+(se.value.length||le.value?1:0)+(de.value.length||ue.value?1:0));function ge(){N.value=null,M.value=`gte`,P.value=[],oe.value=[],se.value=[],de.value=[],I.value=!1,le.value=!1,ue.value=!1}function _e(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(oe.value.length||I.value){let e=oe.value.length&&t.some(e=>oe.value.includes(e)),n=I.value&&t.length===0;if(!e&&!n)return!1}let n=e.assignees??[];if(se.value.length||le.value){let e=se.value.length&&n.some(e=>se.value.includes(e.id)),t=le.value&&n.length===0;if(!e&&!t)return!1}if(de.value.length||ue.value){let t=de.value.length&&pe.value.has(e.id),n=ue.value&&!en(e.id)&&tn(e.id).length===0;if(!t&&!n)return!1}return!0}let ve=o({get:()=>I.value?[Q,...oe.value]:oe.value,set:e=>{I.value=e.includes(Q),oe.value=e.filter(e=>e!==Q)}}),ye=o(()=>[Q,...pt.value]),B=o({get:()=>le.value?[Q,...se.value]:se.value,set:e=>{le.value=e.includes(Q),se.value=e.filter(e=>e!==Q)}}),be=o(()=>[{userId:Q,name:h(`filters.noAssignees`)},...a.members]),xe=o({get:()=>ue.value?[Q,...de.value]:de.value,set:e=>{ue.value=e.includes(Q),de.value=e.filter(e=>e!==Q)}}),we=o(()=>[{id:Q,title:h(`filters.noFamily`),column:``},...ie.value.flatMap(e=>e.cards.map(t=>({id:t.id,title:t.title,column:e.title}))),...a.archivedCards.map(e=>({id:e.id,title:e.title,column:h(`archive.title`)}))]),Ee=o(()=>{let e=a.searchMatches,t=he.value>0;return!e&&!t?ie.value:ie.value.map(n=>({...n,cards:n.cards.filter(n=>(!e||e.has(n.id))&&(!t||_e(n)))}))}),Oe=S(!1),ke=o(()=>new Map((a.columnGroups??[]).map(e=>[e.id,e])));function Ae(e){let t=[],n=new Set,r=e;for(;r&&ke.value.has(r)&&!n.has(r);)n.add(r),t.unshift(r),r=ke.value.get(r).parentId;return t}let Ne=o(()=>{let e=new Map;for(let t of Ee.value)Ae(t.groupId).forEach((n,r)=>{let i=ke.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)*Pc:0),Re=S(null),Ke=S([]);function qe(){let e=Re.value;if(!e||!Ne.value.length){Ke.value=[];return}Ke.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+(Ee.value.find(e=>e.id===t.dataset.colId)?.cards.length??0),0);return[{id:t.id,title:t.title,color:t.color,top:t.depth*Pc,left:r,width:i-r,count:a}]})}let Je=null;Ce(()=>{if(qe(),typeof ResizeObserver<`u`&&Re.value){Je=new ResizeObserver(()=>qe()),Je.observe(Re.value);for(let e of Re.value.querySelectorAll(`.kb-col`))Je.observe(e)}}),re(()=>Je?.disconnect()),De(()=>[Ee.value.map(e=>`${e.id}:${e.groupId??``}:${e.cards.length}`).join(`|`),a.columnGroups],()=>{m(()=>{if(qe(),!(!Je||!Re.value))for(let e of Re.value.querySelectorAll(`.kb-col`))Je.observe(e)})},{deep:!0});function Ye(e){return w.value.find(t=>t.id===e)?.title??``}function Xe(e,t,n){e.history=[...e.history??[],{type:t,timestamp:new Date().toISOString(),detail:n}]}function Ze(){if(a.readOnly||!k.value.trim())return;let e=k.value.trim();E([...w.value,{id:v(),title:e,order:w.value.length,cards:[]}],{kind:`column-add`,title:e}),k.value=``,O.value=!1}function Qe(e){if(a.readOnly)return;let t=w.value.find(t=>t.id===e);p.require({message:h(`column.confirmDeleteMessage`,{title:t?.title??``,count:t?.cards.length??0}),header:h(`column.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>E(w.value.filter(t=>t.id!==e),{kind:`column-delete`,columnId:e})})}function $e(e,t){a.readOnly||!t.trim()||E(w.value.map(n=>n.id===e?{...n,title:t.trim()}:n),{kind:`column-rename`,columnId:e,title:t.trim()})}let W=S(null),et=S(``),tt=S(``),nt=S([]),it=S([]),at=S(!1),G=S([]),ot=S([]),st=0,ct=S([]),lt=Me(new Map),ut=S([]),dt=S([]),ft=S([]),pt=o(()=>{let e=new Set;for(let t of w.value)for(let n of t.cards)for(let t of n.groups??[])e.add(t);for(let t of a.archivedCards)for(let n of t.groups??[])e.add(n);return[...e].sort((e,t)=>e.localeCompare(t))});function mt(e){let t=e.query.trim(),n=new Set(dt.value),r=pt.value.filter(e=>!n.has(e)&&(!t||e.toLowerCase().includes(t.toLowerCase()))),i=pt.value.some(e=>e.toLowerCase()===t.toLowerCase());ft.value=t&&!i&&!n.has(t)?[t,...r]:r}let ht=S(null),gt=S(null),_t=o(()=>{let e=vt(gt.value),t=e?Jt(e):null;return t===null?``:t<0?h(`editor.deadlineOverdue`,{count:-t}):t===0?h(`editor.deadlineToday`):h(`editor.deadlineIn`,{count:t})});function vt(e){if(!e)return null;let t=e=>String(e).padStart(2,`0`);return`${e.getFullYear()}-${t(e.getMonth()+1)}-${t(e.getDate())}`}function yt(e){if(!e)return null;let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r,12)}function bt(){a.readOnly||(ht.value=5)}function xt(e){let t=e.trim();!t||dt.value.includes(t)||(dt.value=[...dt.value,t])}let St=S(!1);function Ct(e){let t=e.target?.closest(`.p-autocomplete`)?.querySelector(`input`);return t instanceof HTMLInputElement?t:null}function wt(){St.value=!0}function Tt(e){let t=Ct(e);if(t){if(e.type===`keydown`){if(t.getAttribute(`aria-activedescendant`))return;Et(t);return}St.value=!1,setTimeout(()=>{if(St.value){St.value=!1,t.value=``;return}Et(t)},0)}}function Et(e){e.value.trim()&&(xt(e.value),e.value=``)}let Dt=S(``),Ot=[`#ef4444`,`#f97316`,`#eab308`,`#22c55e`,`#06b6d4`,`#3b82f6`,`#8b5cf6`,`#ec4899`],kt=S(``),jt=S(`edit`),Mt=S(``),K=S([]),Nt=S(null),Pt=S(null),Ft=S(null),It=S(``);async function Lt(){await m(),Pt.value?.scrollIntoView({block:`end`})}De(W,e=>d(`card-open`,e));let Rt=S(null),zt=S(`bottom`);function Bt(e,t=`bottom`){if(!a.readOnly){if(zt.value=t,a.templates.length===0){Ht(e,``);return}Rt.value=e}}function Vt(e){let t=Rt.value;Rt.value=null,t&&Ht(t,e?.content??``)}function Ht(e,t){let n=w.value.find(t=>t.id===e);if(!n)return;let r=new Date().toISOString();Ut(e,{id:v(),title:h(`card.defaultTitle`),markdown:t,images:[],order:zt.value===`top`?0:n.cards.length,...l.value?{}:{history:[{type:`created`,timestamp:r,detail:h(`card.inColumn`,{name:Ye(e)})}]},createdAt:r,updatedAt:r})}function Ut(e,t){if(Rn(),W.value={colId:e,card:{...t,history:[...t.history??[]]}},a.loadHistory&&wn(t.id)){let n=a.histories?.[t.id];n&&(W.value={colId:e,card:{...t,history:n}}),a.loadHistory(t.id)}et.value=t.title,tt.value=t.markdown??``,nt.value=[...t.images],it.value=[...t.attachments??[]],G.value=[],ct.value=[],Mt.value=``,K.value=[],Ln(it.value),Ln((t.history??[]).flatMap(e=>e.attachments??[])),ut.value=(t.assignees??[]).map(e=>e.id),Dt.value=t.color??``,dt.value=[...t.groups??[]],ht.value=t.priority??null,gt.value=yt(t.deadline),kt.value=e,jt.value=`edit`}De(()=>W.value?a.histories?.[W.value.card.id]:void 0,e=>{let t=W.value;!e||!t||t.card.history===e||(W.value={colId:t.colId,card:{...t.card,history:e}},Ln(e.flatMap(e=>e.attachments??[])))});let Wt=o(()=>{let e=W.value;return e?!wn(e.card.id):!1}),Gt=o(()=>{let e=W.value;if(!e)return!1;if(Wt.value)return!0;let t=e.card,n=(e,t)=>JSON.stringify(e)===JSON.stringify(t);return et.value!==t.title||tt.value!==(t.markdown??``)||kt.value!==e.colId||!n(nt.value,t.images)||!n(it.value,t.attachments??[])||!n(ut.value,(t.assignees??[]).map(e=>e.id))||Dt.value!==(t.color??``)||!n(dt.value,t.groups??[])||ht.value!==(t.priority??null)||vt(gt.value)!==(t.deadline??null)}),Kt=o(()=>Gt.value||Mt.value.trim().length>0||K.value.length>0||Ft.value!==null);function qt(){if(!Kt.value){Zt();return}p.require({message:h(`editor.confirmDiscardMessage`),header:h(`editor.confirmDiscardHeader`),icon:`pi pi-exclamation-triangle`,acceptClass:`p-button-danger`,acceptLabel:h(`editor.discard`),rejectLabel:h(`editor.keepEditing`),accept:()=>Zt()})}function Yt(){let e=W.value;if(!e)return;let t=w.value.flatMap(e=>e.cards).find(t=>t.id===e.card.id)??Cn.value.get(e.card.id);if(!t)return;if(!Gt.value){let n=w.value.find(e=>e.cards.some(e=>e.id===t.id))?.id??e.colId;W.value={colId:n,card:{...t,history:e.card.history}},et.value=t.title,tt.value=t.markdown??``,nt.value=[...t.images],it.value=[...t.attachments??[]],ut.value=(t.assignees??[]).map(e=>e.id),Dt.value=t.color??``,dt.value=[...t.groups??[]],ht.value=t.priority??null,gt.value=yt(t.deadline),kt.value=n}if(t.history===void 0)return;let n=W.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));W.value={colId:n.colId,card:{...n.card,history:a}}}function Xt(){let e=ct.value;if(ct.value=[],a.deleteAttachment)for(let t of e)a.deleteAttachment(t)}function Zt(){W.value=null,ur(),Xn(),Rn(),Xt()}function Qt(){if(Y.value||!W.value)return;let{colId:e,card:t}=W.value,n=et.value||h(`card.untitled`),r=l.value?[]:[...t.history??[]],i=()=>new Date().toISOString();!l.value&&n!==t.title&&t.title!==h(`card.defaultTitle`)&&r.push({type:`title_changed`,timestamp:i(),detail:`"${t.title}" → "${n}"`}),!l.value&&tt.value!==t.markdown&&r.push({type:`edited`,timestamp:i()});let o=l.value?0:nt.value.length-t.images.length;o>0?r.push({type:`image_added`,timestamp:i(),detail:`${o} image(s) added`}):o<0&&r.push({type:`image_removed`,timestamp:i(),detail:`${Math.abs(o)} image(s) removed`});let s=ut.value.map(e=>({id:e,name:a.members.find(t=>t.userId===e)?.name??e})),c=l.value?[]:s.filter(e=>!(t.assignees??[]).some(t=>t.id===e.id));c.length&&r.push({type:`edited`,timestamp:i(),detail:h(`editor.assignedDetail`,{names:c.map(e=>e.name).join(`, `)})});let u=[...new Set(dt.value.map(e=>e.trim()).filter(Boolean))],{color:f,priority:p,groups:m,deadline:g,..._}=t,v={..._,title:n,markdown:tt.value,images:nt.value,attachments:it.value,assignees:s,...Dt.value?{color:Dt.value}:{},...u.length?{groups:u}:{},...ht.value===null?{}:{priority:ht.value},...vt(gt.value)?{deadline:vt(gt.value)}:{},history:l.value?t.history:r,updatedAt:i()},y=kt.value||e;!l.value&&y!==e&&r.push({type:`moved`,timestamp:i(),detail:`${Ye(e)} → ${Ye(y)}`});let b=!wn(v.id),x=b?{kind:`card-add`,columnId:y,card:v,placement:zt.value}:{kind:`card-update`,cardId:v.id,patch:{title:v.title,markdown:v.markdown,priority:v.priority??null,color:v.color??null,deadline:v.deadline??null,groups:v.groups??[],assignees:s.map(e=>e.id),attachments:v.attachments,images:v.images}};!b&&y!==e&&d(`intent`,{kind:`card-move`,cardId:v.id,toColumnId:y}),E(w.value.map(t=>{if(t.id===e&&y!==e)return{...t,cards:t.cards.filter(e=>e.id!==v.id)};if(t.id!==y)return t;if(t.cards.some(e=>e.id===v.id))return{...t,cards:t.cards.map(e=>e.id===v.id?v:e)};let n=zt.value===`top`?[v,...t.cards]:[...t.cards,v];return{...t,cards:n.map((e,t)=>({...e,order:t}))}}),x),ct.value=[],W.value={colId:y,card:v},kt.value=y}function $t(e,t){for(let n of w.value){let r=n.cards.find(e=>e.id===t);if(r)return{cardId:t,boardId:e,title:r.title,boardName:h(`editor.relationsHereBoard`),columnTitle:n.title,here:!0,assignees:r.assignees??[],commentCount:r.commentCount??(r.history??[]).filter(e=>e.type===`comment`).length}}let n=a.linkedCards.find(n=>n.cardId===t&&n.boardId===e);return n?{cardId:t,boardId:e,title:n.title,boardName:n.boardName,columnTitle:n.columnTitle,here:!1,assignees:n.assignees??[],commentCount:n.commentCount??0}:null}function en(e){return a.cardLinks.find(t=>t.childCardId===e)}function tn(e){return a.cardLinks.filter(t=>t.parentCardId===e)}function nn(e){return tn(e).length}let q=o(()=>{let e=W.value;if(!e)return null;let t=en(e.card.id);return t?$t(t.parentBoardId,t.parentCardId):null}),rn=o(()=>{let e=W.value;return e?tn(e.card.id).flatMap(e=>{let t=$t(e.childBoardId,e.childCardId);return t?[t]:[]}):[]});function an(e,t){let n=new Set([e]),r=[e];for(let e=0;e<r.length&&e<=a.cardLinks.length;e+=1){let i=t===`down`?tn(r[e]).map(e=>e.childCardId):[en(r[e])?.parentCardId].filter(e=>!!e);for(let e of i)n.has(e)||(n.add(e),r.push(e))}return n}function on(e){return ie.value.flatMap(t=>t.cards.filter(t=>!e.has(t.id)).map(e=>({id:e.id,title:e.title,column:t.title})))}let sn=o(()=>{let e=W.value;return e?on(an(e.card.id,`down`)):[]}),cn=o(()=>{let e=W.value;if(!e)return[];let t=an(e.card.id,`up`);for(let n of tn(e.card.id))t.add(n.childCardId);return on(t)});function ln(e){let t=W.value;!t||Y.value||!a.setCardParent||a.setCardParent(t.card.id,e)}function un(e){let t=W.value;!t||!e||Y.value||!a.setCardParent||a.setCardParent(e,t.card.id)}function fn(e){Y.value||!a.setCardParent||a.setCardParent(e,null)}let pn=o(()=>!Y.value&&a.setCardParent!==void 0&&!!W.value&&w.value.some(e=>e.cards.some(e=>e.id===W.value?.card.id))),mn=o(()=>{let e=W.value;if(!e)return[];let t=[],n=new Set([e.card.id]),r=e.card.id;for(let e=0;e<=a.cardLinks.length;e+=1){let e=en(r);if(!e||n.has(e.parentCardId))break;let i=$t(e.parentBoardId,e.parentCardId);if(!i)break;n.add(e.parentCardId),t.push(i),r=e.parentCardId}return t.reverse()}),hn=o(()=>(q.value?1:0)+rn.value.length);function gn(e,t){for(let t of w.value){let n=t.cards.find(t=>t.id===e);if(n){Ut(t.id,n);return}}t&&d(`open-linked-card`,{boardId:t,cardId:e})}let _n=o(()=>{let e=ie.value.map(e=>({id:e.id,title:e.title,boardId:``})),t=[{label:h(`editor.columnGroupHere`),items:e}];if(!Y.value&&a.moveCardToBoard)for(let e of a.otherBoards)e.columns.length&&t.push({label:e.name,items:e.columns.map(t=>({id:`${e.id}:${t.id}`,title:t.title,boardId:e.id}))});return t});function vn(e){let[t,n]=e.includes(`:`)?e.split(`:`):[``,e];if(!t){kt.value=n??``;return}let r=W.value,i=a.otherBoards.find(e=>e.id===t),o=i?.columns.find(e=>e.id===n);Y.value||!r||!i||!o||!a.moveCardToBoard||p.require({message:h(`editor.moveToBoardConfirm`,{board:i.name,column:o.title}),header:h(`editor.moveToBoardHeader`),icon:`pi pi-arrow-right-arrow-left`,accept:()=>{let e=r.card.id;Zt(),a.moveCardToBoard?.(e,t,o.id)}})}let J=S(!1),bn=S(``),xn=S(``),Sn=o(()=>[{id:``,title:h(`archive.allColumns`)},...w.value.map(e=>({id:e.id,title:e.title}))]),Cn=o(()=>new Map(a.archivedCards.map(e=>[e.id,e])));function wn(e){return w.value.some(t=>t.cards.some(t=>t.id===e))||Cn.value.has(e)?!0:!!(W.value?.card.id===e&&W.value.card.archivedAt)}let Tn=o(()=>!!(W.value&&(W.value.card.archivedAt||Cn.value.has(W.value.card.id)))),Y=o(()=>a.readOnly||Tn.value);function En(e){Ut(e.archivedFrom?.columnId??``,e)}let Dn=o(()=>he.value?a.archivedCards.filter(_e):a.archivedCards),On=o(()=>a.archivedCards.length-Dn.value.length),kn=null;function An(){J.value=!0,d(`load-archive`,bn.value,xn.value)}De(bn,e=>{J.value&&(kn&&clearTimeout(kn),kn=setTimeout(()=>d(`load-archive`,e,xn.value),250))}),De(xn,e=>{J.value&&(kn&&clearTimeout(kn),d(`load-archive`,bn.value,e))});let X=null;De(D,e=>{if(X&&clearTimeout(X),!e.trim()){d(`search-cards`,``);return}X=setTimeout(()=>d(`search-cards`,e),250)}),re(()=>{X&&clearTimeout(X),kn&&clearTimeout(kn)});function jn(e,t){a.readOnly||(E(w.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-archive`,cardId:t}),W.value?.card.id===t&&Zt())}function Mn(e){a.readOnly||d(`intent`,{kind:`card-unarchive`,cardId:e})}function Nn(e,t){if(a.readOnly)return;let n=w.value.find(t=>t.id===e)?.cards.find(e=>e.id===t);p.require({message:h(`editor.confirmDeleteMessage`,{title:n?.title??``}),header:h(`editor.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{E(w.value.map(n=>n.id===e?{...n,cards:n.cards.filter(e=>e.id!==t)}:n),{kind:`card-delete`,cardId:t}),Zt()}})}function Pn(){if(Y.value||!W.value||!Mt.value.trim()&&!K.value.length)return;let{colId:e,card:t}=W.value,n=K.value;if(a.addComment){let e=Mt.value.trim(),r=t.id;Mt.value=``,ct.value=ct.value.filter(e=>!n.some(t=>t.id===e.id)),K.value=[],a.addComment(r,e,n.length?{attachments:n}:{}).then(t=>{t||(Mt.value.trim()||(Mt.value=e),K.value=[...n,...K.value])});return}}let Fn=/^image\/(png|jpeg|webp|gif)$/;function In(e){return lt.get(e.id)}async function Ln(e){if(a.fetchAttachment)for(let t of e){if(!Fn.test(t.contentType)||lt.has(t.id))continue;let e=await a.fetchAttachment(t);e&&lt.set(t.id,e)}}function Rn(){for(let e of lt.values())URL.revokeObjectURL(e);lt.clear()}let zn=/^video\/(mp4|webm|ogg)$/,Bn=/^audio\/(mpeg|mp3|ogg|wav|x-wav|webm)$/,Vn=/^(text\/|application\/(json|xml|xhtml\+xml|javascript|x-yaml|yaml)$)/;function Hn(e){let t=e.contentType||``;if(Fn.test(t))return`image`;if(t===`application/pdf`)return`pdf`;if(zn.test(t))return`video`;if(Bn.test(t))return`audio`;let n=cr(t,e.name);return n?e.size<=20971520?n:null:Vn.test(t)&&e.size<=Fc?`text`:null}let Z=S(null),Un=S(0),Wn=o(()=>{let e=Z.value?.office;return e?.mode===`sheet`?e.sheets[Un.value]??e.sheets[0]??null:null}),Gn=S(null),Kn=S(!1);De([()=>Z.value?.office,Gn],async([e,t])=>{if(!(!t||e?.mode!==`render`)){t.replaceChildren(),Kn.value=!1;try{await e.render(t)}catch{Kn.value=!0}}});async function qn(e){let t=Hn(e),n=lt.get(e.id),r=n??await a.fetchAttachment?.(e)??null;if(!r){G.value=[...G.value,{name:e.name,reason:h(`editor.downloadFailed`)}];return}if(!t){Jn(r,e.name,!n);return}let i,o;if(t===`text`)try{i=await(await fetch(r)).text()}catch{Jn(r,e.name,!n);return}else if(t===`sheet`||t===`doc`||t===`slides`)try{o=await lr(t,await(await fetch(r)).arrayBuffer(),e.name,e.contentType||``)}catch{Jn(r,e.name,!n);return}Xn(),Un.value=0,Z.value={file:e,url:r,kind:t,text:i,office:o,cached:!!n}}function Jn(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 Yn(){let e=Z.value;e&&Jn(e.url,e.file.name,!1)}function Xn(){let e=Z.value;Z.value=null,e&&!e.cached&&URL.revokeObjectURL(e.url)}function Zn(e){it.value=it.value.filter((t,n)=>n!==e)}let Qn=Me(new Set);function $n(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()??``).join(``)}let er=o(()=>a.members.map(e=>({id:e.userId,label:e.name})));function tr(e){return a.members.find(t=>t.userId===e)?.name??e}function nr(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 rr(e){return!!a.currentUserId&&e.authorUser?.id===a.currentUserId}function ir(e){return e.author===`ai`?null:e.authorUser?.id??null}function ar(e){return e.author===`ai`?h(`comments.authorAi`):rr(e)?h(`comments.authorYou`):e.authorUser?.name??h(`comments.authorYou`)}function or(e){if(!W.value)return;let{colId:t,card:n}=W.value;W.value={colId:t,card:{...n,history:e}},E(w.value.map(r=>r.id===t?{...r,cards:r.cards.map(t=>t.id===n.id?{...t,history:e}:t)}:r))}function sr(e){Ft.value=e.id??null,It.value=e.detail??``}function ur(){Ft.value=null,It.value=``}function dr(){let e=Ft.value,t=It.value.trim();if(Y.value||!e||!t||!W.value)return;let{card:n}=W.value,r=(n.history??[]).map(n=>n.id===e?{...n,detail:t,editedAt:new Date().toISOString()}:n);if(a.editComment){let i=(n.history??[]).find(t=>t.id===e);a.editComment(n.id,e,t,i?.attachments),or(r)}ur()}function fr(e){return e.id??`${e.type}|${e.timestamp}`}function pr(e){return e.type===`comment`&&e.author===`ai`}function mr(e){return rr(e)||pr(e)}function hr(e){if(Y.value||!mr(e)||!W.value)return;let t=fr(e);p.require({message:h(`comments.confirmDeleteMessage`),header:h(`comments.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{let n=W.value;if(!n)return;let r=(n.card.history??[]).filter(e=>fr(e)!==t);a.removeComment&&e.id&&(a.removeComment(n.card.id,e.id),or(r))}})}let gr=o(()=>a.columnSubscriptions!==void 0),_r=S(null),vr=[`entered`,`left`,`created`,`deleted`],yr=[`email`,`chat`],br=[...vr],xr=[...yr],Sr=S([...br]),Cr=S([...xr]),wr=S(null),Tr=o(()=>a.manageableTeamIds?a.teams.filter(e=>a.manageableTeamIds.includes(e.id)):a.teams);function Er(e,t=null){return t?a.columnTeamSubscriptions?.[e]?.find(e=>e.teamId===t)??null:a.columnSubscriptions?.[e]??null}function Dr(e){return Er(e)!==null}let Or=o(()=>{let e=_r.value;return e?(a.columnTeamSubscriptions?.[e]??[]).map(e=>a.teams.find(t=>t.id===e.teamId)?.name).filter(e=>!!e):[]}),kr=Me(new Set),Ar=new Map,jr=null;function Mr(e,t){t.scrollWidth>t.clientWidth+1||t.scrollHeight>t.clientHeight+1?kr.add(e):kr.delete(e)}function Nr(e,t){let n=Ar.get(t);if(n&&n!==e&&jr?.unobserve(n),!(e instanceof HTMLElement)){Ar.delete(t),kr.delete(t);return}Ar.set(t,e),typeof ResizeObserver<`u`&&(jr??=new ResizeObserver(e=>{for(let t of e)for(let[e,n]of Ar)n===t.target&&Mr(e,n)}),jr.observe(e)),Mr(t,e)}De(()=>w.value.flatMap(e=>[e.title,...e.cards.map(e=>e.title)]).join(`\0`),()=>void m(()=>{for(let[e,t]of Ar)Mr(e,t)})),re(()=>jr?.disconnect());function Fr(e,t){return{value:kr.has(e)?t:``,showDelay:0,hideDelay:0}}let Ir=S(null),Lr=S(null);function Rr(e,t){Lr.value=t,Ir.value?.toggle(e)}function zr(e){let t=Lr.value;t&&(Ir.value?.hide(),e(t.id))}function Br(e,t){let n=Er(e,t);Sr.value=n?[...n.kinds]:[...br],Cr.value=n?[...n.channels]:[...xr]}function Vr(e){wr.value=null,Br(e,null),_r.value=e}function Hr(e){wr.value=e,_r.value&&Br(_r.value,e)}let Ur=o(()=>Sr.value.length>0&&Cr.value.length>0),Wr=o(()=>wr.value?{teamId:wr.value}:{}),Gr=o(()=>_r.value?Er(_r.value,wr.value)!==null:!1);function Kr(){let e=_r.value;!e||!Ur.value||(d(`update-column-subscription`,{columnId:e,subscription:{kinds:[...Sr.value],channels:[...Cr.value]},...Wr.value}),_r.value=null)}function qr(){let e=_r.value;e&&(d(`update-column-subscription`,{columnId:e,subscription:null,...Wr.value}),_r.value=null)}let Jr=o(()=>a.columns.find(e=>e.id===_r.value)??null),Yr=Me(new Set),Xr=Me(new Set),Zr=o(()=>`runeya.kanban.collapsedColumns.${a.name}`),Hc=o(()=>`runeya.kanban.expandedColumns.${a.name}`);function Uc(e,t){t.clear();try{let n=window.localStorage.getItem(e);if(!n)return;let r=JSON.parse(n);if(Array.isArray(r))for(let e of r)typeof e==`string`&&t.add(e)}catch{}}function Wc(){Uc(Zr.value,Yr),Uc(Hc.value,Xr)}function Gc(){try{window.localStorage.setItem(Zr.value,JSON.stringify([...Yr])),window.localStorage.setItem(Hc.value,JSON.stringify([...Xr]))}catch{}}Wc(),De(Zr,Wc);function Kc(e){let t=a.columns.find(t=>t.id===e);return!!t&&t.cards.length===0}function qc(e){return Yr.has(e)?!0:Kc(e)&&!Xr.has(e)}function Jc(e){qc(e)?(Yr.delete(e),Kc(e)&&Xr.add(e)):(Xr.delete(e),Kc(e)||Yr.add(e)),Gc()}let Yc=o(()=>(W.value?.card.history??[]).filter(e=>e.type===`comment`));De([jt,Yc],([e])=>{e===`comments`&&(Lt(),cl())}),De(()=>W.value?.card.id,()=>{$c.clear(),el.clear()});function Xc(e){if(/^(https?:|mailto:)/i.test(e)){window.open(e,`_blank`,`noopener,noreferrer`);return}e.startsWith(`#`)||e.startsWith(`/`)&&window.open(e,`_blank`,`noopener,noreferrer`)}function Zc(e){let t=(e.target?.closest(`a`))?.getAttribute(`href`);return t?(e.preventDefault(),e.stopPropagation(),Xc(t),!0):!1}function Qc(e){return e?te.sanitize(ne.parse(e,{async:!1}),{ALLOWED_TAGS:[`p`,`br`,`strong`,`em`,`del`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`h1`,`h2`,`h3`,`h4`,`a`,`span`],ALLOWED_ATTR:[`href`,`target`,`rel`,`class`]}):``}let $c=Me(new Set),el=Me(new Set);function tl(e,t){return e.id??`i${t}`}function nl(e,t){return $c.has(tl(e,t))}function rl(e,t){let n=tl(e,t);return el.has(n)||$c.has(n)}function il(e,t){let n=tl(e,t);$c.has(n)?$c.delete(n):$c.add(n)}function al(e,t,n){Zc(n)||ul(e)||rl(e,t)&&(n.stopPropagation(),il(e,t))}let ol=new Map;function sl(e,t,n){let r=tl(t,n);if(!(e instanceof HTMLElement)){ol.delete(r);return}ol.set(r,e),!$c.has(r)&&(e.scrollHeight-e.clientHeight>1?el.add(r):el.delete(r))}async function cl(){await m();for(let[e,t]of ol)$c.has(e)||(t.scrollHeight-t.clientHeight>1?el.add(e):el.delete(e))}function ll(e){return a.resolveConversationId?a.resolveConversationId(e):e.conversationId??null}function ul(e){return!!ll(e)}let dl=o(()=>{let e=W.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&&d(`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:h(`history.events.created`),edited:h(`history.events.edited`),moved:h(`history.events.moved`),image_added:h(`history.events.image_added`),image_removed:h(`history.events.image_removed`),title_changed:h(`history.events.title_changed`),archived:h(`history.events.archived`),unarchived:h(`history.events.unarchived`),conversation_started:h(`history.events.conversation_started`),scenario_started:h(`history.events.scenario_started`),comment:h(`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){G.value=[...G.value,{name:n.name,reason:h(`editor.uploadEmpty`)}];continue}if(n.size>Ic){G.value=[...G.value,{name:n.name,reason:h(`editor.uploadTooLarge`)}];continue}if(!a.uploadImage){G.value=[...G.value,{name:n.name,reason:h(`editor.uploadUnavailable`)}];continue}let e=`${st+=1}`;ot.value=[...ot.value,{key:e,name:n.name,ratio:0}];try{let r=await a.uploadImage(n,t=>{ot.value=ot.value.map(n=>n.key===e?{...n,ratio:t}:n)});r?(t.push(r),ct.value=[...ct.value,r]):G.value=[...G.value,{name:n.name,reason:h(`editor.uploadFailed`)}]}finally{ot.value=ot.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=``,at.value=!0,G.value=[];try{let e=await _l(n);K.value=[...K.value,...e],Ln(e)}finally{at.value=!1}}async function yl(e,t){if(!(Y.value||!e.length)){at.value=!0,G.value=[];try{let n=await _l(e);if(!n.length)return;t===`comment`?K.value=[...K.value,...n]:it.value=[...it.value,...n],Ln(n)}finally{at.value=!1}}}function bl(e){K.value=K.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=``,at.value=!0,G.value=[],ot.value=[];try{if(a.uploadImage){let e=await _l(n);it.value=[...it.value,...e],Ln(e);return}for(let e of n){if(!e.type.startsWith(`image/`)||e.size>Lc){G.value=[...G.value,{name:e.name,reason:h(`editor.uploadUnavailable`)}];continue}let t=await gl(e);if(!t){G.value=[...G.value,{name:e.name,reason:h(`editor.uploadFailed`)}];continue}nt.value=[...nt.value,t],Nt.value?.insertImage(t)}}finally{at.value=!1}}function Sl(e){p.require({message:h(`editor.confirmRemoveImageMessage`),header:h(`editor.confirmRemoveImageHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>{nt.value=nt.value.filter((t,n)=>n!==e)}})}let Cl=S(null),$=S(null),wl=null,Tl=null,El=`before`,Dl=null,Ol=`before`,kl=null,Al=null,jl=null,Ml=[`kb-card--drop-before`,`kb-card--drop-after`],Nl=[`kb-col--col-drop-before`,`kb-col--col-drop-after`];function Pl(e,t){kl&&kl!==e&&kl.classList.remove(...Ml),kl=e,e&&(e.classList.toggle(`kb-card--drop-before`,t===`before`),e.classList.toggle(`kb-card--drop-after`,t===`after`))}function Fl(e){Al&&Al!==e&&Al.classList.remove(`kb-col--dragover`),Al=e,e?.classList.add(`kb-col--dragover`)}function Il(e,t){jl&&jl!==e&&jl.classList.remove(...Nl),jl=e,e&&(e.classList.toggle(`kb-col--col-drop-before`,t===`before`),e.classList.toggle(`kb-col--col-drop-after`,t===`after`))}function Ll(){Pl(null,`before`),Fl(null),Il(null,`before`)}function Rl(e){return Gl.value?.querySelector(`.kb-col[data-col-id="${CSS.escape(e)}"]`)??null}let zl=S(null),Bl=S(null),Vl=S(!1),Hl=null,Ul=null,Wl=null,Gl=S(null);function Kl(e,t){Hl&&cancelAnimationFrame(Hl);let n=Gl.value?.querySelector(`.kb-board`),r=()=>{let i=!1;if(n){let t=n.getBoundingClientRect();e<t.left+Bc&&n.scrollLeft>0?(n.scrollLeft-=Vc,i=!0):e>t.right-Bc&&n.scrollLeft<n.scrollWidth-n.clientWidth&&(n.scrollLeft+=Vc,i=!0)}Bl.value&&(Bl.value.style.display=`none`);let a=document.elementFromPoint(e,t);if(Bl.value&&(Bl.value.style.display=``),a){let e=a.closest(`.kb-col__cards`);if(e){let n=e.getBoundingClientRect();t<n.top+Bc&&e.scrollTop>0?(e.scrollTop-=Vc,i=!0):t>n.bottom-Bc&&e.scrollTop<e.scrollHeight-e.clientHeight&&(e.scrollTop+=Vc,i=!0)}}Hl=i&&Vl.value?requestAnimationFrame(r):null};Hl=requestAnimationFrame(r)}function ql(){Hl&&=(cancelAnimationFrame(Hl),null)}function Jl(){Ul&&=(clearTimeout(Ul),null),Wl=null}function Yl(){if(!Wl)return;let{type:e,colId:t,cardId:n,el:r}=Wl;zl.value=e,Vl.value=!0,e===`card`&&n?(Cl.value={colId:t,cardId:n},$.value=null):($.value=t,Cl.value=null),navigator.vibrate&&navigator.vibrate(30);let i=e===`card`?r.closest(`.kb-card`):r.closest(`.kb-col`);if(i){let e=i.cloneNode(!0);e.style.cssText=`position:fixed;pointer-events:none;z-index:9999;opacity:0.8;width:${i.getBoundingClientRect().width}px;transform:rotate(2deg);`,document.body.appendChild(e),Bl.value=e}Wl=null}function Xl(e,t,n,r){if(a.readOnly)return;Jl();let i=e.touches[0],o=i.clientX,s=i.clientY;Wl={type:t,colId:n,cardId:r,el:e.target};let c=e=>{let t=e.touches[0],n=t.clientX-o,r=t.clientY-s;Math.sqrt(n*n+r*r)>zc&&(Jl(),document.removeEventListener(`touchmove`,c))};document.addEventListener(`touchmove`,c,{passive:!0}),Ul=setTimeout(()=>{document.removeEventListener(`touchmove`,c),Yl()},Rc)}function Zl(e){if(!Vl.value)return;e.preventDefault();let t=e.touches[0];Bl.value&&(Bl.value.style.left=`${t.clientX-40}px`,Bl.value.style.top=`${t.clientY-20}px`),Kl(t.clientX,t.clientY),Bl.value&&(Bl.value.style.display=`none`);let n=document.elementFromPoint(t.clientX,t.clientY);if(Bl.value&&(Bl.value.style.display=``),n){if(zl.value===`card`){let e=n.closest(`.kb-card`),r=n.closest(`.kb-col`);if(e&&r){let n=e.dataset.cardId||``,i=r.dataset.colId||``;if(n&&i){let a=e.getBoundingClientRect(),o=t.clientY-a.top<a.height/2?`before`:`after`;wl!==i&&(wl=i,Fl(r)),(Tl!==n||El!==o)&&(Tl=n,El=o,Pl(e,o))}}else if(r){let e=r.dataset.colId||``;e&&(wl=e,Tl=null,Fl(r),Pl(null,`before`))}}else if(zl.value===`column`){let e=n.closest(`.kb-col`);if(e){let n=e.dataset.colId||``;if(n&&n!==$.value){let r=e.getBoundingClientRect(),i=t.clientX-r.left<r.width/2?`before`:`after`;(Dl!==n||Ol!==i)&&(Dl=n,Ol=i,Il(e,i))}}}}}function Ql(){Jl(),ql(),Bl.value&&=(Bl.value.remove(),null),Vl.value&&(zl.value===`card`&&wl?nu(wl):zl.value===`column`&&Dl&&su(Dl)),zl.value=null,Vl.value=!1,eu()}function $l(e,t,n){a.readOnly||(Cl.value={colId:t,cardId:n},$.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`card`)))}function eu(){Cl.value=null,wl=null,Tl=null,$.value=null,Dl=null,Ll()}function tu(e,t,n){if(!Cl.value)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let r=e.currentTarget,i=r.getBoundingClientRect(),a=e.clientY-i.top<i.height/2?`before`:`after`;wl!==t&&(wl=t,Fl(r.closest(`.kb-col`))),!(Tl===n&&El===a)&&(Tl=n,El=a,Pl(r,a))}function nu(e){if(a.readOnly)return;if($.value){su(e);return}if(!Cl.value)return;let{colId:t,cardId:n}=Cl.value,r=Ye(t),i=Ye(e),o=null,s=w.value.map(e=>e.id===t?(o=e.cards.find(e=>e.id===n)??null,{...e,cards:e.cards.filter(e=>e.id!==n)}):e),c=0;if(o){let n={...o};!l.value&&t!==e&&Xe(n,`moved`,`"${r}" → "${i}"`),s=s.map(t=>{if(t.id!==e)return t;let r=[...t.cards].sort((e,t)=>e.order-t.order),i=r.length;if(Tl){let e=r.findIndex(e=>e.id===Tl);e!==-1&&(i=El===`before`?e:e+1)}return c=i,r.splice(i,0,n),{...t,cards:r.map((e,t)=>({...e,order:t}))}})}if(Cl.value=null,wl=null,Tl=null,Ll(),a.moveCard&&o){w.value=s,a.moveCard(o.id,e,c);return}E(s,o?{kind:`card-move`,cardId:o.id,toColumnId:e,toIndex:c}:void 0)}function ru(e,t){!Cl.value&&!$.value||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),Cl.value&&(wl!==t&&(wl=t,Fl(Rl(t))),Tl!==null&&(Tl=null,Pl(null,`before`))))}function iu(e){wl===e&&(wl=null,Fl(null))}function au(e,t){a.readOnly||($.value=t,Cl.value=null,e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`type`,`column`)))}function ou(e,t){if(!$.value||$.value===t)return;e.preventDefault(),e.stopPropagation(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let n=e.currentTarget,r=n.getBoundingClientRect(),i=e.clientX-r.left<r.width/2?`before`:`after`;Dl===t&&Ol===i||(Dl=t,Ol=i,Il(n,i))}function su(e){if(a.readOnly||!$.value||$.value===e){$.value=null,Dl=null,Ll();return}let t=[...w.value].sort((e,t)=>e.order-t.order),n=t.findIndex(e=>e.id===$.value),r=t.splice(n,1)[0],i=t.findIndex(t=>t.id===e);t.splice(Ol===`before`?i:i+1,0,r),$.value=null,Dl=null,Ll(),E(t.map((e,t)=>({...e,order:t})),{kind:`columns-reorder`,columnIds:t.map(e=>e.id)})}return n({openCardEditor:Ut,closeCardEditor:Zt,saveCard:Qt,editingCard:W}),(n,r)=>{let a=Te(`tooltip`);return j(),L(`div`,{ref_key:`rootEl`,ref:Gl,class:`kb`},[_(`header`,$r,[f(T(C),{icon:`pi pi-arrow-left`,text:``,rounded:``,size:`small`,onClick:r[0]||=e=>d(`back`)}),i((j(),L(`h1`,{class:`kb-header__title`,ref:e=>Nr(e,`board`)},[c(R(e.name),1)])),[[a,Fr(`board`,e.name),void 0,{bottom:!0}]]),_(`span`,ei,[r[60]||=_(`i`,{class:`pi pi-search`},null,-1),f(T(fe),{modelValue:D.value,"onUpdate:modelValue":r[1]||=e=>D.value=e,placeholder:T(h)(`searchPlaceholder`),size:`small`,class:`kb-header__search-input`},null,8,[`modelValue`,`placeholder`]),D.value?(j(),z(T(C),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:r[2]||=e=>D.value=``})):t(``,!0),e.searchTruncated?(j(),L(`small`,ti,R(T(h)(`searchTruncated`)),1)):t(``,!0)]),i(f(T(C),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:he.value?String(he.value):void 0,"badge-severity":`info`,class:s({"kb-header__filter--on":he.value}),onClick:r[3]||=e=>A.value=!0},null,8,[`badge`,`class`]),[[a,T(h)(`filters.open`),void 0,{bottom:!0}]]),i(f(T(C),{icon:`pi pi-inbox`,text:``,rounded:``,size:`small`,onClick:An},null,512),[[a,T(h)(`archive.open`),void 0,{bottom:!0}]]),e.readOnly?t(``,!0):i((j(),z(T(C),{key:0,icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,onClick:r[4]||=e=>Oe.value=!0},null,512)),[[a,T(h)(`groups.title`),void 0,{bottom:!0}]]),e.readOnly?(j(),L(`span`,ni,[r[61]||=_(`i`,{class:`pi pi-lock`},null,-1),c(` `+R(T(h)(`readOnly.badge`)),1)])):t(``,!0),F(n.$slots,`header-actions`,{},void 0,!0)]),F(n.$slots,`banner`,{},void 0,!0),_(`div`,ri,[Ie.value?(j(),L(`div`,{key:0,class:`kb-bands`,style:g({height:`${Ie.value}px`})},[(j(!0),L(H,null,V(Ke.value,e=>(j(),L(`div`,{key:e.id,class:`kb-band`,style:g({left:`${e.left}px`,width:`${e.width}px`,top:`${e.top}px`,"--kb-band-color":e.color||`var(--p-text-muted-color)`})},[_(`span`,ii,R(e.title),1),_(`span`,ai,R(e.count),1)],4))),128))],4)):t(``,!0),_(`div`,{ref_key:`boardEl`,ref:Re,class:`kb-board`},[(j(!0),L(H,null,V(Ee.value,o=>(j(),L(`div`,{key:o.id,class:s([`kb-col`,{"kb-col--collapsed":qc(o.id),"kb-col--dragging":$.value===o.id}]),"data-col-id":o.id,draggable:!e.readOnly,onDragstart:e=>au(e,o.id),onDragover:e=>{ou(e,o.id),ru(e,o.id)},onDragleave:e=>iu(o.id),onDrop:x(e=>nu(o.id),[`prevent`]),onDragend:eu,onTouchstart:e=>Xl(e,`column`,o.id),onTouchmove:Zl,onTouchend:Ql,onContextmenu:r[8]||=x(()=>{},[`prevent`])},[qc(o.id)?(j(),L(`button`,{key:0,class:s([`kb-col__strip`,{"kb-col__strip--empty":o.cards.length===0}]),title:T(h)(`column.expand`),onClick:e=>Jc(o.id)},[r[62]||=_(`i`,{class:`pi pi-angle-double-right`},null,-1),_(`span`,ci,R(o.cards.length),1),Dr(o.id)?(j(),L(`i`,li)):t(``,!0),i((j(),L(`span`,{class:`kb-col__strip-title`,ref_for:!0,ref:e=>Nr(e,`strip:${o.id}`)},[c(R(o.title),1)])),[[a,Fr(`strip:${o.id}`,o.title),void 0,{right:!0}]])],10,si)):(j(),L(`div`,ui,[i(_(`input`,{class:`kb-col__title`,ref_for:!0,ref:e=>Nr(e,`col:${o.id}`),value:o.title,readonly:e.readOnly,draggable:`false`,onBlur:e=>$e(o.id,e.target.value),onKeyup:r[5]||=U(e=>e.target.blur(),[`enter`]),onMousedown:r[6]||=x(()=>{},[`stop`])},null,40,di),[[a,Fr(`col:${o.id}`,o.title),void 0,{bottom:!0}]]),_(`div`,fi,[gr.value&&Dr(o.id)?i((j(),z(T(C),{key:0,icon:`pi pi-bell`,text:``,rounded:``,size:`small`,class:`kb-col__bell--on`,onClick:e=>Vr(o.id)},null,8,[`onClick`])),[[a,T(h)(`column.unsubscribe`),void 0,{bottom:!0}]]):t(``,!0),i(f(T(C),{icon:`pi pi-ellipsis-v`,text:``,rounded:``,size:`small`,class:s([`kb-col__menu-btn`,{"kb-col__menu-btn--open":Lr.value?.id===o.id}]),onClick:e=>Rr(e,o)},null,8,[`class`,`onClick`]),[[a,T(h)(`column.menu`),void 0,{bottom:!0}]]),_(`span`,pi,R(o.cards.length),1)])])),!e.readOnly&&!qc(o.id)?(j(),L(`button`,{key:2,class:`kb-col__add-card kb-col__add-card--top`,onClick:e=>Bt(o.id,`top`)},[r[63]||=_(`i`,{class:`pi pi-plus`},null,-1),c(` `+R(T(h)(`column.addCard`)),1)],8,mi)):t(``,!0),qc(o.id)?t(``,!0):(j(),L(`div`,hi,[(j(!0),L(H,null,V(o.cards,c=>(j(),L(`div`,{key:c.id,class:s([`kb-card`,{"kb-card--colored":c.color}]),style:g(c.color?{borderTopColor:c.color}:void 0),"data-card-id":c.id,draggable:!e.readOnly,onDragstart:x(e=>$l(e,o.id,c.id),[`stop`]),onDragover:e=>tu(e,o.id,c.id),onDragend:eu,onTouchstart:x(e=>Xl(e,`card`,o.id,c.id),[`stop`]),onTouchmove:Zl,onTouchend:Ql,onContextmenu:r[7]||=x(()=>{},[`prevent`]),onClick:e=>Ut(o.id,c)},[f(dn,{card:c,t:T(h),"avatar-url":e.avatarUrl,"child-count":nn(c.id),"has-parent":!!en(c.id)},{actions:b(()=>[F(n.$slots,`card-actions`,{card:c,column:o},void 0,!0),e.readOnly?t(``,!0):i((j(),L(`button`,{key:0,class:`kb-card__delete`,onClick:x(e=>jn(o.id,c.id),[`stop`])},[...r[64]||=[_(`i`,{class:`pi pi-inbox`},null,-1)]],8,_i)),[[a,T(h)(`archive.cardTooltip`),void 0,{bottom:!0}]]),e.readOnly?t(``,!0):i((j(),L(`button`,{key:1,class:`kb-card__delete`,onClick:x(e=>Nn(o.id,c.id),[`stop`])},[...r[65]||=[_(`i`,{class:`pi pi-times`},null,-1)]],8,vi)),[[a,T(h)(`card.deleteTooltip`),void 0,{bottom:!0}]])]),badges:b(()=>[F(n.$slots,`card-badges`,{card:c},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`])],46,gi))),128)),o.cards.length===0?(j(),L(`div`,yi,R(T(h)(`column.dropZone`)),1)):t(``,!0)])),!e.readOnly&&!qc(o.id)?(j(),L(`button`,{key:4,class:`kb-col__add-card`,onClick:e=>Bt(o.id)},[r[66]||=_(`i`,{class:`pi pi-plus`},null,-1),c(` `+R(T(h)(`column.addCard`)),1)],8,bi)):t(``,!0)],42,oi))),128)),f(T(u),{visible:_r.value!==null,modal:``,header:T(h)(`column.subscribeTitle`),style:{width:`30rem`},"onUpdate:visible":r[13]||=e=>{e||(_r.value=null)}},{footer:b(()=>[Gr.value?(j(),z(T(C),{key:0,label:wr.value?T(h)(`column.unsubscribeTeam`):T(h)(`column.unsubscribe`),severity:`danger`,text:``,onClick:qr},null,8,[`label`])):t(``,!0),f(T(C),{label:T(h)(`editor.cancel`),text:``,onClick:r[12]||=e=>_r.value=null},null,8,[`label`]),f(T(C),{label:Gr.value?T(h)(`editor.save`):T(h)(`column.subscribeConfirm`),icon:`pi pi-bell`,disabled:!Ur.value,onClick:Kr},null,8,[`label`,`disabled`])]),default:b(()=>[_(`p`,xi,R(T(h)(`column.subscribeIntro`,{column:Jr.value?.title??``})),1),Tr.value.length?(j(),L(H,{key:0},[_(`p`,Si,R(T(h)(`column.subscribeTargetLabel`)),1),_(`div`,Ci,[_(`label`,wi,[f(T(Fe),{"model-value":wr.value,value:null,"onUpdate:modelValue":r[9]||=e=>Hr(null)},null,8,[`model-value`]),_(`span`,null,R(T(h)(`column.subscribeTargetMe`)),1)]),(j(!0),L(H,null,V(Tr.value,e=>(j(),L(`label`,{key:e.id,class:`kb-subscribe__option`},[f(T(Fe),{"model-value":wr.value,value:e.id,"onUpdate:modelValue":t=>Hr(e.id)},null,8,[`model-value`,`value`,`onUpdate:modelValue`]),_(`span`,null,R(e.name),1)]))),128))])],64)):t(``,!0),_(`p`,Ti,R(T(h)(`column.subscribeEventsLabel`)),1),_(`div`,Ei,[(j(),L(H,null,V(vr,e=>_(`label`,{key:e,class:`kb-subscribe__option`},[f(T(Pe),{modelValue:Sr.value,"onUpdate:modelValue":r[10]||=e=>Sr.value=e,value:e},null,8,[`modelValue`,`value`]),_(`span`,null,R(T(h)(`column.subscribeKind.${e}`)),1)])),64))]),_(`p`,Di,[r[67]||=_(`i`,{class:`pi pi-times`},null,-1),c(` `+R(T(h)(`column.subscribeNotReorder`)),1)]),_(`p`,Oi,R(T(h)(`column.subscribeChannelsLabel`)),1),_(`div`,ki,[(j(),L(H,null,V(yr,e=>_(`label`,{key:e,class:`kb-subscribe__option`},[f(T(Pe),{modelValue:Cr.value,"onUpdate:modelValue":r[11]||=e=>Cr.value=e,value:e},null,8,[`modelValue`,`value`]),_(`span`,null,R(T(h)(`column.subscribeChannel.${e}`)),1)])),64))]),_(`p`,Ai,R(T(h)(`column.subscribeOwnActions`)),1),Or.value.length?(j(),L(`p`,ji,R(T(h)(`column.subscribeTeamsFollowing`,{teams:Or.value.join(`, `)})),1)):t(``,!0)]),_:1},8,[`visible`,`header`]),f(T(u),{visible:Rt.value!==null,header:T(h)(`templates.pickHeader`),modal:!0,style:{width:`420px`},"onUpdate:visible":r[15]||=e=>{e||(Rt.value=null)}},{default:b(()=>[_(`p`,Mi,R(T(h)(`templates.pickIntro`)),1),_(`div`,Ni,[_(`button`,{class:`kb-tpl-option`,onClick:r[14]||=e=>Vt(null)},[r[68]||=_(`i`,{class:`pi pi-file`},null,-1),c(` `+R(T(h)(`templates.blank`)),1)]),(j(!0),L(H,null,V(e.templates,e=>(j(),L(`button`,{key:e.id,class:`kb-tpl-option`,onClick:t=>Vt(e)},[r[69]||=_(`i`,{class:`pi pi-file-edit`},null,-1),c(` `+R(e.name),1)],8,Pi))),128))])]),_:1},8,[`visible`,`header`]),e.readOnly?t(``,!0):(j(),L(`div`,Fi,[O.value?(j(),L(`div`,Ii,[f(T(fe),{modelValue:k.value,"onUpdate:modelValue":r[16]||=e=>k.value=e,placeholder:T(h)(`column.titlePlaceholder`),autofocus:``,class:`w-full`,onKeyup:[U(Ze,[`enter`]),r[17]||=U(e=>O.value=!1,[`escape`])]},null,8,[`modelValue`,`placeholder`]),_(`div`,Li,[f(T(C),{label:T(h)(`addColumnButton`),size:`small`,disabled:!k.value.trim(),onClick:Ze},null,8,[`label`,`disabled`]),f(T(C),{icon:`pi pi-times`,text:``,size:`small`,onClick:r[18]||=e=>O.value=!1})])])):(j(),L(`button`,{key:1,class:`kb-add-col__trigger`,onClick:r[19]||=e=>O.value=!0},[r[70]||=_(`i`,{class:`pi pi-plus`},null,-1),c(` `+R(T(h)(`addColumn`)),1)]))]))],512)]),f(Qr,{visible:Oe.value,"onUpdate:visible":r[20]||=e=>Oe.value=e,columns:w.value,groups:e.columnGroups,"read-only":e.readOnly,t:T(h),onIntent:r[21]||=e=>d(`intent`,e)},null,8,[`visible`,`columns`,`groups`,`read-only`,`t`]),f(T(ee),{visible:A.value,"onUpdate:visible":r[30]||=e=>A.value=e,position:`right`,header:T(h)(`filters.title`),class:`kb-filters`},{footer:b(()=>[f(T(C),{label:T(h)(`filters.reset`),icon:`pi pi-filter-slash`,text:``,disabled:!he.value,onClick:ge},null,8,[`label`,`disabled`])]),default:b(()=>[_(`div`,Ri,[_(`section`,zi,[_(`span`,Bi,R(T(h)(`filters.priority`)),1),me.value?(j(),L(H,{key:1},[_(`div`,Vi,[(j(),L(H,null,V([`lte`,`eq`,`gte`],e=>i(_(`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)}},[c(R(e===`lte`?`≤`:e===`eq`?`=`:`≥`),1)],10,Hi),[[a,{value:T(h)(`filters.priorityOp.${e}`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64)),i((j(),L(`button`,{class:s([`kb-ops__btn kb-ops__btn--none`,{"kb-ops__btn--on":M.value===`none`}]),onClick:r[23]||=e=>{M.value=M.value===`none`?`gte`:`none`,N.value=M.value===`none`?null:5}},[...r[72]||=[_(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[a,{value:T(h)(`filters.priorityOp.none`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]])]),M.value===`none`?t(``,!0):(j(),L(`div`,Ui,[f(T(rt),{"model-value":N.value??5,min:1,max:10,step:1,class:`kb-prio__slider`,"onUpdate:modelValue":r[24]||=e=>N.value=Array.isArray(e)?e[0]??null:e},null,8,[`model-value`]),_(`span`,Wi,R(N.value),1)])),_(`button`,{class:`kb-prio__set`,onClick:r[25]||=e=>{N.value=null,M.value=`gte`}},[r[73]||=_(`i`,{class:`pi pi-times`},null,-1),c(` `+R(T(h)(`filters.clearOne`)),1)]),M.value===`none`?t(``,!0):(j(),L(`p`,Gi,R(T(h)(`filters.priorityHint`)),1))],64)):(j(),L(`button`,{key:0,class:`kb-prio__set`,onClick:r[22]||=e=>N.value=5},[r[71]||=_(`i`,{class:`pi pi-plus`},null,-1),c(` `+R(T(h)(`filters.priorityAdd`)),1)]))]),_(`section`,Ki,[_(`span`,qi,R(T(h)(`filters.colors`)),1),_(`div`,Ji,[i((j(),L(`button`,{class:s([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":P.value.includes(``)}]),onClick:r[26]||=e=>P.value=P.value.includes(``)?P.value.filter(e=>e!==``):[...P.value,``]},[...r[74]||=[_(`i`,{class:`pi pi-ban`},null,-1)]],2)),[[a,{value:T(h)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(j(),L(H,null,V(Ot,e=>i(_(`button`,{key:e,class:s([`kb-colors__swatch`,{"kb-colors__swatch--on":P.value.includes(e)}]),style:g({background:e}),onClick:t=>P.value=P.value.includes(e)?P.value.filter(t=>t!==e):[...P.value,e]},null,14,Yi),[[a,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))])]),_(`section`,Xi,[_(`span`,Zi,R(T(h)(`filters.groups`)),1),f(T(Le),{modelValue:ve.value,"onUpdate:modelValue":r[27]||=e=>ve.value=e,options:ye.value,placeholder:T(h)(`filters.groupsPlaceholder`),display:`chip`,filter:ye.value.length>6,class:`kb-filters__control`},{option:b(({option:e})=>[_(`span`,{class:s([`kb-void`,{"kb-void--is":e===Q}])},[e===Q?(j(),L(`i`,Qi)):t(``,!0),c(` `+R(e===Q?T(h)(`filters.noGroups`):e),1)],2)]),chip:b(({value:e})=>[_(`span`,{class:s([`kb-void`,{"kb-void--is":e===Q}])},R(e===Q?T(h)(`filters.noGroups`):e),3)]),_:1},8,[`modelValue`,`options`,`placeholder`,`filter`])]),_(`section`,$i,[_(`span`,ea,R(T(h)(`filters.assignees`)),1),f(T(Le),{modelValue:B.value,"onUpdate:modelValue":r[28]||=e=>B.value=e,options:be.value,"option-label":`name`,"option-value":`userId`,placeholder:T(h)(`filters.assigneesPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:b(({option:e})=>[_(`span`,{class:s([`kb-void`,{"kb-void--is":e.userId===Q}])},[e.userId===Q?(j(),L(`i`,ta)):t(``,!0),c(` `+R(e.name),1)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`])]),_(`section`,na,[_(`span`,ra,R(T(h)(`filters.family`)),1),f(T(Le),{modelValue:xe.value,"onUpdate:modelValue":r[29]||=e=>xe.value=e,options:we.value,"option-label":`title`,"option-value":`id`,placeholder:T(h)(`filters.familyPlaceholder`),display:`chip`,filter:``,class:`kb-filters__control`},{option:b(({option:e})=>[_(`span`,{class:s([`kb-void`,{"kb-void--is":e.id===Q}])},[e.id===Q?(j(),L(`i`,ia)):t(``,!0),_(`span`,null,R(e.title),1),e.column?(j(),L(`span`,aa,R(e.column),1)):t(``,!0)],2)]),_:1},8,[`modelValue`,`options`,`placeholder`]),_(`p`,oa,R(T(h)(`filters.familyHint`)),1)])])]),_:1},8,[`visible`,`header`]),f(T(ee),{visible:J.value,"onUpdate:visible":r[35]||=e=>J.value=e,position:`right`,header:T(h)(`archive.title`),class:`kb-archive`},{default:b(()=>[_(`p`,sa,R(T(h)(`archive.hint`)),1),_(`span`,ca,[r[75]||=_(`i`,{class:`pi pi-search`},null,-1),f(T(fe),{modelValue:bn.value,"onUpdate:modelValue":r[31]||=e=>bn.value=e,placeholder:T(h)(`archive.searchPlaceholder`),size:`small`,class:`kb-archive__search-input`},null,8,[`modelValue`,`placeholder`]),bn.value?(j(),z(T(C),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,onClick:r[32]||=e=>bn.value=``})):t(``,!0),i(f(T(C),{icon:`pi pi-filter`,text:``,rounded:``,size:`small`,badge:he.value?String(he.value):void 0,"badge-severity":`info`,class:s({"kb-header__filter--on":he.value}),onClick:r[33]||=e=>A.value=!0},null,8,[`badge`,`class`]),[[a,T(h)(`filters.open`),void 0,{bottom:!0}]])]),f(T(ce),{modelValue:xn.value,"onUpdate:modelValue":r[34]||=e=>xn.value=e,options:Sn.value,"option-label":`title`,"option-value":`id`,size:`small`,class:`kb-archive__column`,"aria-label":T(h)(`archive.columnFilter`)},null,8,[`modelValue`,`options`,`aria-label`]),e.loadingArchive?(j(),L(`p`,la,R(T(h)(`archive.loading`)),1)):e.archivedCards.length?Dn.value.length?(j(),L(H,{key:3},[On.value?(j(),L(`p`,fa,[c(R(T(h)(`archive.filteredOut`,{count:On.value}))+` `,1),_(`button`,{class:`kb-archive__reset`,onClick:ge},R(T(h)(`filters.reset`)),1)])):t(``,!0),e.archiveTruncated?(j(),L(`p`,pa,[r[76]||=_(`i`,{class:`pi pi-exclamation-circle`},null,-1),c(` `+R(T(h)(`archive.truncated`)),1)])):t(``,!0),_(`ul`,ma,[(j(!0),L(H,null,V(Dn.value,o=>(j(),L(`li`,{key:o.id,class:s([`kb-card kb-archive__card`,{"kb-card--colored":o.color}]),style:g(o.color?{borderTopColor:o.color}:void 0),onClick:e=>En(o)},[f(dn,{card:o,t:T(h),"avatar-url":e.avatarUrl,"child-count":nn(o.id),"has-parent":!!en(o.id)},{actions:b(()=>[e.readOnly?t(``,!0):i((j(),L(`button`,{key:0,class:`kb-card__delete`,onClick:x(e=>Mn(o.id),[`stop`])},[...r[77]||=[_(`i`,{class:`pi pi-replay`},null,-1)]],8,ga)),[[a,T(h)(`archive.restore`),void 0,{left:!0}]])]),badges:b(()=>[F(n.$slots,`card-badges`,{card:o},void 0,!0)]),_:2},1032,[`card`,`t`,`avatar-url`,`child-count`,`has-parent`]),_(`div`,_a,[o.archivedFrom?(j(),L(`span`,va,[r[78]||=_(`i`,{class:`pi pi-arrow-right-arrow-left`},null,-1),c(` `+R(T(h)(`archive.fromColumn`,{column:o.archivedFrom.columnTitle})),1)])):t(``,!0),o.archivedAt?(j(),L(`span`,ya,R(new Date(o.archivedAt).toLocaleDateString()),1)):t(``,!0)])],14,ha))),128))])],64)):(j(),L(`p`,da,R(T(h)(`archive.allFiltered`,{count:On.value})),1)):(j(),L(`p`,ua,R(bn.value||xn.value?T(h)(`archive.noMatch`):T(h)(`archive.empty`)),1))]),_:3},8,[`visible`,`header`]),f(T(u),{visible:!!W.value,header:et.value.trim()||T(h)(`card.untitled`),modal:!0,"dismissable-mask":!Kt.value,class:s([`kb-card-dialog`,{"kb-card-dialog--colored":Dt.value}]),style:g({width:`min(1400px, 92vw)`,height:`90vh`,...Dt.value?{"--kb-card-color":Dt.value}:{}}),breakpoints:{"1040px":`95vw`},"onUpdate:visible":r[54]||=e=>{e||qt()}},{footer:b(()=>[_(`div`,nc,[Kt.value&&!Y.value?(j(),L(`span`,rc,[r[107]||=_(`i`,{class:`pi pi-exclamation-circle`},null,-1),c(` `+R(T(h)(`editor.unsavedHint`)),1)])):t(``,!0),f(T(C),{label:T(h)(`editor.close`),text:``,onClick:qt},null,8,[`label`]),Y.value?t(``,!0):(j(),z(T(C),{key:1,label:T(h)(`editor.save`),icon:`pi pi-check`,onClick:Qt},null,8,[`label`]))])]),default:b(()=>[W.value?(j(),L(`div`,ba,[_(`div`,xa,[Tn.value?(j(),L(`p`,Sa,[r[79]||=_(`i`,{class:`pi pi-inbox`},null,-1),c(` `+R(T(h)(`archive.editorReadOnly`)),1)])):t(``,!0),f(T(Ve),{value:jt.value,"onUpdate:value":r[43]||=e=>jt.value=e},{default:b(()=>[f(T(ze),null,{default:b(()=>[f(T(He),{value:`edit`},{default:b(()=>[r[80]||=_(`i`,{class:`pi pi-pencil`,style:{"margin-right":`0.375rem`}},null,-1),c(R(T(h)(`editor.tabs.edit`)),1)]),_:1}),pn.value||hn.value?(j(),z(T(He),{key:0,value:`relations`},{default:b(()=>[r[81]||=_(`i`,{class:`pi pi-sitemap`,style:{"margin-right":`0.375rem`}},null,-1),c(R(T(h)(`editor.tabs.relations`,{count:hn.value})),1)]),_:1})):t(``,!0),f(T(He),{value:`comments`},{default:b(()=>[r[82]||=_(`i`,{class:`pi pi-comments`,style:{"margin-right":`0.375rem`}},null,-1),c(R(T(h)(`editor.tabs.comments`,{count:Yc.value.length||(W.value.card.commentCount??0)})),1)]),_:1}),f(T(He),{value:`history`},{default:b(()=>[r[83]||=_(`i`,{class:`pi pi-history`,style:{"margin-right":`0.375rem`}},null,-1),c(R(T(h)(`editor.tabs.history`,{count:W.value.card.history?.length??0})),1)]),_:1})]),_:1}),f(T(Be),null,{default:b(()=>[f(T(Ue),{value:`edit`},{default:b(()=>[_(`div`,Ca,[_(`div`,wa,[_(`label`,Ta,R(T(h)(`editor.titleLabel`)),1),f(T(fe),{id:`kanban-card-title`,modelValue:et.value,"onUpdate:modelValue":r[36]||=e=>et.value=e,disabled:Y.value,autofocus:``,onKeyup:U(Qt,[`enter`])},null,8,[`modelValue`,`disabled`])]),_(`div`,Ea,[_(`label`,Da,R(T(h)(`editor.contentLabel`)),1),f(T(Ge),{id:`kanban-card-content`,ref_key:`tiptapRef`,ref:Nt,modelValue:tt.value,"onUpdate:modelValue":r[37]||=e=>tt.value=e,markdown:``,"min-height":`20rem`,"max-height":`none`,editable:!Y.value,placeholder:T(h)(`editor.contentPlaceholder`),"handle-files":e=>yl(e,`card`),mentions:er.value,"attachment-src":lt,onLinkClick:Xc},null,8,[`modelValue`,`editable`,`placeholder`,`handle-files`,`mentions`,`attachment-src`])]),_(`div`,Oa,[_(`label`,ka,R(T(h)(`editor.filesLabel`)),1),nt.value.length?(j(),L(`div`,Aa,[(j(!0),L(H,null,V(nt.value,(e,n)=>(j(),L(`div`,{key:n,class:`kb-dialog__thumb`},[_(`img`,{src:e,alt:`attachment`},null,8,ja),Y.value?t(``,!0):(j(),L(`button`,{key:0,class:`kb-dialog__thumb-remove`,onClick:e=>Sl(n)},[...r[84]||=[_(`i`,{class:`pi pi-times`},null,-1)]],8,Ma))]))),128))])):t(``,!0),f(yn,{files:it.value,preview:In,removable:!Y.value,"remove-label":T(h)(`editor.removeFile`),onOpen:qn,onRemove:Zn},null,8,[`files`,`removable`,`remove-label`]),f(Pr,{queue:ot.value,errors:G.value,uploading:at.value,"uploading-label":T(h)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),Y.value?t(``,!0):(j(),L(`label`,Na,[r[85]||=_(`i`,{class:`pi pi-upload`},null,-1),c(` `+R(T(h)(`editor.attachFile`))+` `,1),_(`input`,{id:`kanban-card-images`,type:`file`,multiple:``,onChange:xl},null,32)]))])])]),_:1}),f(T(Ue),{value:`relations`},{default:b(()=>[_(`div`,Pa,[q.value||pn.value?(j(),L(`section`,Fa,[_(`h4`,Ia,[r[86]||=_(`i`,{class:`pi pi-arrow-up`},null,-1),c(` `+R(T(h)(`editor.parentLabel`)),1)]),q.value?(j(),L(`table`,La,[_(`thead`,null,[_(`tr`,null,[_(`th`,null,R(T(h)(`editor.relationsColCard`)),1),_(`th`,null,R(T(h)(`editor.relationsColBoard`)),1),_(`th`,null,R(T(h)(`editor.relationsColColumn`)),1),_(`th`,Ra,R(T(h)(`editor.relationsColAssignees`)),1),_(`th`,za,R(T(h)(`editor.relationsColComments`)),1),_(`th`,Ba,R(T(h)(`editor.relationsColActions`)),1)])]),_(`tbody`,null,[_(`tr`,null,[_(`td`,Va,[i((j(),L(`span`,{class:`kb-rel__card-title`,ref:e=>Nr(e,`rel:${q.value?.cardId??``}`)},[c(R(q.value.title),1)])),[[a,Fr(`rel:${q.value.cardId}`,q.value.title),void 0,{top:!0}]])]),_(`td`,{class:s([`kb-rel__board`,{"kb-rel__board--away":!q.value.here}])},[i((j(),L(`span`,{class:`kb-rel__card-title`,ref:e=>Nr(e,`relb:${q.value?.cardId??``}`)},[c(R(q.value.boardName),1)])),[[a,Fr(`relb:${q.value?.cardId??``}`,q.value?.boardName??``),void 0,{top:!0}]])],2),_(`td`,Ha,[i((j(),L(`span`,{class:`kb-rel__card-title`,ref:e=>Nr(e,`relc:${q.value?.cardId??``}`)},[c(R(q.value.columnTitle),1)])),[[a,Fr(`relc:${q.value?.cardId??``}`,q.value?.columnTitle??``),void 0,{top:!0}]])]),_(`td`,Ua,[q.value.assignees.length?(j(),L(`div`,Wa,[(j(!0),L(H,null,V(q.value.assignees,t=>(j(),L(`span`,{key:t.id,class:`kb-card__avatar`,style:g(nr(t.id)),title:t.name},[e.avatarUrl&&!Qn.has(t.id)?(j(),L(`img`,{key:0,src:e.avatarUrl(t.id),alt:``,onError:e=>Qn.add(t.id)},null,40,Ka)):(j(),L(H,{key:1},[c(R($n(t.name)),1)],64))],12,Ga))),128))])):(j(),L(`span`,qa,`—`))]),_(`td`,Ja,R(q.value.commentCount||`—`),1),_(`td`,Ya,[_(`button`,{class:`kb-rel__action`,title:q.value.here?T(h)(`editor.childOpen`):T(h)(`editor.openOnBoard`,{board:q.value.boardName}),onClick:r[38]||=e=>gn(q.value.cardId,q.value.boardId)},[...r[87]||=[_(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,Xa),pn.value?(j(),L(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:T(h)(`editor.detach`),onClick:r[39]||=e=>ln(null)},[...r[88]||=[_(`i`,{class:`pi pi-times`},null,-1)]],8,Za)):t(``,!0)])])])])):(j(),L(`p`,Qa,R(T(h)(`editor.parentEmptyState`)),1)),pn.value?(j(),z(T(ce),{key:2,"model-value":null,options:sn.value,"option-label":`title`,"option-value":`id`,filter:sn.value.length>6,"filter-placeholder":T(h)(`editor.parentSearchPlaceholder`),"empty-message":T(h)(`editor.parentEmpty`),"empty-filter-message":T(h)(`editor.parentEmpty`),placeholder:q.value?T(h)(`editor.parentReplace`):T(h)(`editor.parentAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":ln},{option:b(({option:e})=>[_(`span`,$a,[_(`span`,null,R(e.title),1),_(`span`,eo,R(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):t(``,!0)])):t(``,!0),rn.value.length||pn.value?(j(),L(`section`,to,[_(`h4`,no,[r[89]||=_(`i`,{class:`pi pi-arrow-down`},null,-1),c(` `+R(T(h)(`editor.childrenLabel`,{count:rn.value.length})),1)]),rn.value.length?(j(),L(`table`,ro,[_(`thead`,null,[_(`tr`,null,[_(`th`,null,R(T(h)(`editor.relationsColCard`)),1),_(`th`,null,R(T(h)(`editor.relationsColBoard`)),1),_(`th`,null,R(T(h)(`editor.relationsColColumn`)),1),_(`th`,io,R(T(h)(`editor.relationsColAssignees`)),1),_(`th`,ao,R(T(h)(`editor.relationsColComments`)),1),_(`th`,oo,R(T(h)(`editor.relationsColActions`)),1)])]),_(`tbody`,null,[(j(!0),L(H,null,V(rn.value,n=>(j(),L(`tr`,{key:n.cardId},[_(`td`,so,[i((j(),L(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Nr(e,`rel:${n.cardId}`)},[c(R(n.title),1)])),[[a,Fr(`rel:${n.cardId}`,n.title),void 0,{top:!0}]])]),_(`td`,{class:s([`kb-rel__board`,{"kb-rel__board--away":!n.here}])},[i((j(),L(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Nr(e,`relb:${n.cardId}`)},[c(R(n.boardName),1)])),[[a,Fr(`relb:${n.cardId}`,n.boardName),void 0,{top:!0}]])],2),_(`td`,co,[i((j(),L(`span`,{class:`kb-rel__card-title`,ref_for:!0,ref:e=>Nr(e,`relc:${n.cardId}`)},[c(R(n.columnTitle),1)])),[[a,Fr(`relc:${n.cardId}`,n.columnTitle),void 0,{top:!0}]])]),_(`td`,lo,[n.assignees.length?(j(),L(`div`,uo,[(j(!0),L(H,null,V(n.assignees,t=>(j(),L(`span`,{key:t.id,class:`kb-card__avatar`,style:g(nr(t.id)),title:t.name},[e.avatarUrl&&!Qn.has(t.id)?(j(),L(`img`,{key:0,src:e.avatarUrl(t.id),alt:``,onError:e=>Qn.add(t.id)},null,40,po)):(j(),L(H,{key:1},[c(R($n(t.name)),1)],64))],12,fo))),128))])):(j(),L(`span`,mo,`—`))]),_(`td`,ho,R(n.commentCount||`—`),1),_(`td`,go,[_(`button`,{class:`kb-rel__action`,title:n.here?T(h)(`editor.childOpen`):T(h)(`editor.openOnBoard`,{board:n.boardName}),onClick:e=>gn(n.cardId,n.boardId)},[...r[90]||=[_(`i`,{class:`pi pi-arrow-up-right`},null,-1)]],8,_o),pn.value?(j(),L(`button`,{key:0,class:`kb-rel__action kb-rel__action--detach`,title:T(h)(`editor.detach`),onClick:e=>fn(n.cardId)},[...r[91]||=[_(`i`,{class:`pi pi-times`},null,-1)]],8,vo)):t(``,!0)])]))),128))])])):(j(),L(`p`,yo,R(T(h)(`editor.childrenEmptyState`)),1)),pn.value?(j(),z(T(ce),{key:2,"model-value":null,options:cn.value,"option-label":`title`,"option-value":`id`,filter:cn.value.length>6,"filter-placeholder":T(h)(`editor.parentSearchPlaceholder`),"empty-message":T(h)(`editor.parentEmpty`),"empty-filter-message":T(h)(`editor.parentEmpty`),placeholder:T(h)(`editor.childAdd`),class:`kb-rel__picker`,"onUpdate:modelValue":un},{option:b(({option:e})=>[_(`span`,bo,[_(`span`,null,R(e.title),1),_(`span`,xo,R(e.column),1)])]),_:1},8,[`options`,`filter`,`filter-placeholder`,`empty-message`,`empty-filter-message`,`placeholder`])):t(``,!0)])):t(``,!0),!pn.value&&!q.value&&!rn.value.length?(j(),L(`p`,So,R(T(h)(`editor.relationsEmpty`)),1)):t(``,!0)])]),_:1}),f(T(Ue),{value:`comments`},{default:b(()=>[_(`div`,Co,[Yc.value.length?(j(),L(`div`,To,[(j(!0),L(H,null,V(Yc.value,(n,i)=>(j(),L(`div`,{key:i,class:s([`kb-comments__item`,{"kb-comments__item--ai":n.author===`ai`,"kb-comments__item--clickable":ul(n)}]),onClick:e=>ul(n)&&fl(n)},[_(`div`,{class:s([`kb-comments__avatar`,{"kb-comments__avatar--photo":!!ir(n)}]),style:g(ir(n)?nr(ir(n)):void 0)},[n.author===`ai`?(j(),L(`i`,Do)):ir(n)&&e.avatarUrl&&!Qn.has(ir(n))?(j(),L(`img`,{key:1,src:e.avatarUrl(ir(n)),alt:``,onError:e=>Qn.add(ir(n))},null,40,Oo)):n.authorUser?.name?(j(),L(H,{key:2},[c(R($n(n.authorUser.name)),1)],64)):(j(),L(`i`,ko))],6),_(`div`,Ao,[_(`div`,jo,[_(`span`,Mo,R(ar(n)),1),_(`span`,No,R(hl(n.timestamp)),1),n.editedAt?(j(),L(`span`,Po,R(T(h)(`comments.edited`)),1)):t(``,!0),!Y.value&&mr(n)&&Ft.value!==n.id?(j(),L(`span`,Fo,[rr(n)?(j(),L(`button`,{key:0,class:`kb-comments__tool`,title:T(h)(`comments.edit`),onClick:x(e=>sr(n),[`stop`])},[...r[93]||=[_(`i`,{class:`pi pi-pencil`},null,-1)]],8,Io)):t(``,!0),_(`button`,{class:`kb-comments__tool`,title:T(h)(`comments.delete`),onClick:x(e=>hr(n),[`stop`])},[...r[94]||=[_(`i`,{class:`pi pi-trash`},null,-1)]],8,Lo)])):t(``,!0)]),Ft.value===n.id?(j(),L(`div`,{key:0,class:`kb-comments__edit`,onClick:r[41]||=x(()=>{},[`stop`])},[f(T(Ge),{modelValue:It.value,"onUpdate:modelValue":r[40]||=e=>It.value=e,markdown:``,"min-height":`1.4rem`,"max-height":`7.1rem`,mentions:er.value,onLinkClick:Xc},null,8,[`modelValue`,`mentions`]),_(`div`,Ro,[f(T(C),{label:T(h)(`editor.cancel`),size:`small`,text:``,onClick:ur},null,8,[`label`]),f(T(C),{label:T(h)(`editor.save`),size:`small`,disabled:!It.value.trim(),onClick:dr},null,8,[`label`,`disabled`])])])):n.detail?(j(),L(H,{key:1},[_(`div`,{ref_for:!0,ref:e=>sl(e,n,i),class:s([`kb-comments__text kb-comments__text--markdown`,{"kb-comments__text--clamped":!nl(n,i),"kb-comments__text--toggleable":rl(n,i)&&!ul(n)}]),onClick:e=>al(n,i,e),innerHTML:Qc(n.detail)},null,10,zo),rl(n,i)?(j(),L(`button`,{key:0,class:`kb-comments__more`,onClick:x(e=>il(n,i),[`stop`])},R(nl(n,i)?T(h)(`comments.showLess`):T(h)(`comments.showMore`)),9,Bo)):t(``,!0)],64)):t(``,!0),Ft.value===n.id?t(``,!0):(j(),z(yn,{key:2,files:n.attachments??[],preview:In,compact:``,onOpen:qn},null,8,[`files`]))])],10,Eo))),128)),_(`div`,{ref_key:`commentsEndEl`,ref:Pt},null,512)])):(j(),L(`div`,wo,[r[92]||=_(`i`,{class:`pi pi-comments`},null,-1),_(`span`,null,R(T(h)(`comments.empty`)),1)])),Y.value?t(``,!0):(j(),L(`div`,{key:2,class:`kb-comments__input`,onKeydown:[U(x(Pn,[`ctrl`,`prevent`]),[`enter`]),U(x(Pn,[`meta`,`prevent`]),[`enter`])]},[f(T(Ge),{modelValue:Mt.value,"onUpdate:modelValue":r[42]||=e=>Mt.value=e,markdown:``,placeholder:T(h)(`comments.placeholder`),"min-height":`1.4rem`,"max-height":`7.1rem`,"handle-files":e=>yl(e,`comment`),mentions:er.value,onLinkClick:Xc},null,8,[`modelValue`,`placeholder`,`handle-files`,`mentions`]),f(yn,{files:K.value,preview:In,openable:!1,removable:``,"remove-label":T(h)(`editor.removeFile`),compact:``,onRemove:bl},null,8,[`files`,`remove-label`]),f(Pr,{queue:ot.value,errors:G.value,uploading:at.value,"uploading-label":T(h)(`editor.uploading`)},null,8,[`queue`,`errors`,`uploading`,`uploading-label`]),_(`div`,Ho,[_(`label`,{class:`kb-comments__attach`,title:T(h)(`comments.attach`)},[r[95]||=_(`i`,{class:`pi pi-paperclip`},null,-1),_(`input`,{type:`file`,multiple:``,onChange:vl},null,32)],8,Uo),_(`span`,Wo,R(T(h)(`comments.sendHint`)),1),f(T(C),{label:T(h)(`comments.send`),icon:`pi pi-send`,size:`small`,disabled:!Mt.value.trim()&&!K.value.length,onClick:Pn},null,8,[`label`,`disabled`])])],40,Vo))])]),_:1}),f(T(Ue),{value:`history`},{default:b(()=>[_(`div`,Go,[W.value.card.history?.length?(j(),L(`div`,qo,[(j(!0),L(H,null,V([...W.value.card.history].reverse(),(e,n)=>(j(),L(`div`,{key:n,class:s([`kb-history__item`,{"kb-history__item--clickable":ul(e)}]),onClick:t=>ul(e)&&fl(e)},[_(`div`,Yo,[_(`i`,{class:s(pl[e.type])},null,2)]),_(`div`,Xo,[_(`span`,Zo,[c(R(ml.value[e.type])+` `,1),ul(e)?(j(),L(`i`,Qo)):t(``,!0)]),e.detail?(j(),L(`span`,$o,R(e.detail),1)):t(``,!0),_(`span`,es,[c(R(hl(e.timestamp))+` `,1),e.authorUser?.name?(j(),L(H,{key:0},[c(` · `+R(T(h)(`history.by`,{name:e.authorUser.name})),1)],64)):t(``,!0)])])],10,Jo))),128))])):(j(),L(`div`,Ko,[r[96]||=_(`i`,{class:`pi pi-clock`},null,-1),_(`span`,null,R(T(h)(`history.empty`)),1)]))])]),_:1})]),_:1})]),_:1},8,[`value`])]),_(`aside`,ts,[e.members.length?(j(),L(`div`,ns,[_(`span`,rs,R(T(h)(`editor.assigneesLabel`)),1),f(T(Le),{modelValue:ut.value,"onUpdate:modelValue":r[44]||=e=>ut.value=e,options:e.members,"option-label":`name`,"option-value":`userId`,placeholder:T(h)(`editor.assigneesPlaceholder`),disabled:Y.value,display:`chip`,filter:``,class:`kb-side__control`},{chip:b(({value:t})=>[_(`span`,{class:`kb-card__avatar`,style:g(nr(t)),title:tr(t)},[e.avatarUrl&&!Qn.has(t)?(j(),L(`img`,{key:0,src:e.avatarUrl(t),alt:``,onError:e=>Qn.add(t)},null,40,as)):(j(),L(H,{key:1},[c(R($n(tr(t))),1)],64))],12,is)]),option:b(({option:t})=>[_(`span`,os,[_(`span`,{class:`kb-card__avatar`,style:g(nr(t.userId))},[e.avatarUrl&&!Qn.has(t.userId)?(j(),L(`img`,{key:0,src:e.avatarUrl(t.userId),alt:``,onError:e=>Qn.add(t.userId)},null,40,ss)):(j(),L(H,{key:1},[c(R($n(t.name)),1)],64))],4),c(` `+R(t.name),1)])]),_:1},8,[`modelValue`,`options`,`placeholder`,`disabled`]),_(`p`,cs,R(T(h)(`editor.assigneesHint`)),1)])):t(``,!0),_(`div`,ls,[_(`span`,us,[c(R(T(h)(`editor.priorityLabel`))+` `,1),ht.value===null?t(``,!0):(j(),L(`span`,ds,R(ht.value)+`/10`,1))]),ht.value===null?Y.value?(j(),L(`p`,ms,R(T(h)(`editor.priorityNone`)),1)):(j(),L(`button`,{key:1,class:`kb-prio__set`,onClick:bt},[r[98]||=_(`i`,{class:`pi pi-plus`},null,-1),c(` `+R(T(h)(`editor.priorityAdd`)),1)])):(j(),L(`div`,fs,[f(T(rt),{modelValue:ht.value,"onUpdate:modelValue":r[45]||=e=>ht.value=e,min:1,max:10,step:1,disabled:Y.value,class:`kb-prio__slider`},null,8,[`modelValue`,`disabled`]),Y.value?t(``,!0):(j(),L(`button`,{key:0,class:`kb-prio__clear`,title:T(h)(`editor.priorityClear`),onClick:r[46]||=e=>ht.value=null},[...r[97]||=[_(`i`,{class:`pi pi-times`},null,-1)]],8,ps))]))]),_(`div`,hs,[_(`span`,gs,R(T(h)(`editor.deadlineLabel`)),1),_(`div`,_s,[f(T(At),{modelValue:gt.value,"onUpdate:modelValue":r[47]||=e=>gt.value=e,"date-format":`dd/mm/yy`,"show-icon":``,"icon-display":`input`,"show-button-bar":``,disabled:Y.value,placeholder:T(h)(`editor.deadlineNone`),class:`kb-side__control`},null,8,[`modelValue`,`disabled`,`placeholder`]),!Y.value&&gt.value?(j(),L(`button`,{key:0,class:`kb-prio__clear`,title:T(h)(`editor.deadlineClear`),onClick:r[48]||=e=>gt.value=null},[...r[99]||=[_(`i`,{class:`pi pi-times`},null,-1)]],8,vs)):t(``,!0)]),gt.value?(j(),L(`p`,ys,R(_t.value),1)):t(``,!0)]),_(`div`,bs,[_(`span`,xs,R(T(h)(`editor.groupsLabel`)),1),f(T(We),{modelValue:dt.value,"onUpdate:modelValue":r[49]||=e=>dt.value=e,multiple:``,suggestions:ft.value,disabled:Y.value,placeholder:dt.value.length?``:T(h)(`editor.groupsPlaceholder`),"complete-on-focus":!0,delay:120,class:`kb-side__control kb-groups`,onComplete:mt,onItemSelect:wt,onKeydown:U(Tt,[`enter`]),onFocusout:Tt},{option:b(({option:e})=>[_(`span`,Ss,[_(`i`,{class:s(pt.value.includes(e)?`pi pi-tag`:`pi pi-plus`)},null,2),_(`span`,null,R(pt.value.includes(e)?e:T(h)(`editor.groupsCreate`,{name:e})),1)])]),_:1},8,[`modelValue`,`suggestions`,`disabled`,`placeholder`]),_(`p`,Cs,R(T(h)(`editor.groupsHint`)),1)]),mn.value.length?(j(),L(`div`,ws,[_(`span`,Ts,R(T(h)(`editor.ancestryLabel`)),1),_(`ul`,Es,[(j(!0),L(H,null,V(mn.value,(e,n)=>(j(),L(`li`,{key:e.cardId,class:`kb-tree__row`,style:g({paddingLeft:`${n*.75}rem`})},[n?(j(),L(`i`,Ds)):t(``,!0),_(`button`,{class:`kb-tree__label`,title:e.here?T(h)(`editor.childOpen`):T(h)(`editor.openOnBoard`,{board:e.boardName}),onClick:t=>gn(e.cardId,e.boardId)},R(e.title),9,Os)],4))),128)),_(`li`,{class:`kb-tree__row kb-tree__row--self`,style:g({paddingLeft:`${mn.value.length*.75}rem`})},[r[100]||=_(`i`,{class:`pi pi-angle-right kb-tree__branch`},null,-1),_(`span`,ks,R(et.value.trim()||T(h)(`card.untitled`)),1)],4)])])):t(``,!0),_(`div`,As,[_(`span`,js,R(T(h)(`editor.colorLabel`)),1),_(`div`,Ms,[i((j(),L(`button`,{class:s([`kb-colors__swatch kb-colors__swatch--none`,{"kb-colors__swatch--on":!Dt.value}]),disabled:Y.value,onClick:r[50]||=e=>Dt.value=``},[...r[101]||=[_(`i`,{class:`pi pi-ban`},null,-1)]],10,Ns)),[[a,{value:T(h)(`editor.colorNone`),showDelay:0,hideDelay:0},void 0,{bottom:!0}]]),(j(),L(H,null,V(Ot,e=>i(_(`button`,{key:e,class:s([`kb-colors__swatch`,{"kb-colors__swatch--on":Dt.value===e}]),style:g({background:e}),disabled:Y.value,onClick:t=>Dt.value=e},null,14,Ps),[[a,{value:e,showDelay:0,hideDelay:0},void 0,{bottom:!0}]])),64))]),_(`p`,Fs,R(T(h)(`editor.colorHint`)),1)]),Tn.value?(j(),L(`div`,Is,[_(`span`,Ls,R(T(h)(`editor.columnSettingLabel`)),1),_(`p`,Rs,[r[102]||=_(`i`,{class:`pi pi-inbox`},null,-1),c(` `+R(W.value.card.archivedFrom?T(h)(`archive.editorFrom`,{column:W.value.card.archivedFrom.columnTitle}):T(h)(`archive.editorNote`)),1)])])):(j(),L(`div`,zs,[_(`span`,Bs,R(T(h)(`editor.columnSettingLabel`)),1),f(T(ce),{"model-value":kt.value,options:_n.value,"option-label":`title`,"option-value":`id`,"option-group-label":`label`,"option-group-children":`items`,disabled:Y.value,filter:_n.value.length>1,"filter-placeholder":T(h)(`editor.columnSearchPlaceholder`),"empty-filter-message":T(h)(`editor.columnSearchEmpty`),"auto-filter-focus":!0,class:`kb-side__control`,"onUpdate:modelValue":vn},{optiongroup:b(({option:e})=>[_(`span`,{class:s([`kb-colgroup`,{"kb-colgroup--away":e.items[0]?.boardId}])},[_(`i`,{class:s(e.items[0]?.boardId?`pi pi-th-large`:`pi pi-map-marker`)},null,2),_(`span`,Vs,R(e.label),1)],2)]),option:b(({option:e})=>[_(`span`,Hs,[e.boardId?(j(),L(`i`,Us)):t(``,!0),_(`span`,null,R(e.title),1)])]),_:1},8,[`model-value`,`options`,`disabled`,`filter`,`filter-placeholder`,`empty-filter-message`]),e.otherBoards.length&&e.moveCardToBoard&&!Y.value?(j(),L(`p`,Ws,R(T(h)(`editor.moveToBoardHint`)),1)):t(``,!0)])),_(`div`,Gs,[W.value.card.createdBy?(j(),L(`p`,Ks,[r[103]||=_(`i`,{class:`pi pi-user`},null,-1),c(` `+R(T(h)(`editor.createdBy`,{name:W.value.card.createdBy.name})),1)])):t(``,!0),_(`p`,null,[r[104]||=_(`i`,{class:`pi pi-calendar-plus`},null,-1),c(` `+R(hl(W.value.card.createdAt)),1)]),_(`p`,null,[r[105]||=_(`i`,{class:`pi pi-clock`},null,-1),c(` `+R(hl(W.value.card.updatedAt)),1)])]),dl.value.length?(j(),L(`div`,qs,[_(`span`,Js,R(T(h)(`editor.conversationsLabel`)),1),_(`div`,Ys,[(j(!0),L(H,null,V(dl.value,e=>(j(),L(`a`,{key:e.id,class:`kb-side__conv`,title:e.title,onClick:t=>d(`open-conversation`,e.id)},[r[106]||=_(`i`,{class:`pi pi-comments`},null,-1),_(`span`,Zs,R(e.label),1)],8,Xs))),128))])])):t(``,!0),n.$slots[`card-editor-actions`]&&!Tn.value?(j(),L(`div`,Qs,[_(`span`,$s,R(T(h)(`editor.actionsLabel`)),1),_(`div`,ec,[F(n.$slots,`card-editor-actions`,{card:W.value.card,colId:W.value.colId,draft:{title:et.value,markdown:tt.value}},void 0,!0)])])):t(``,!0),!e.readOnly&&!Wt.value?(j(),L(`div`,tc,[Tn.value?(j(),z(T(C),{key:0,label:T(h)(`archive.restore`),icon:`pi pi-replay`,severity:`secondary`,text:``,size:`small`,onClick:r[51]||=e=>{Mn(W.value.card.id),Zt()}},null,8,[`label`])):(j(),z(T(C),{key:1,label:T(h)(`archive.cardAction`),icon:`pi pi-inbox`,severity:`secondary`,text:``,size:`small`,onClick:r[52]||=e=>jn(W.value.colId,W.value.card.id)},null,8,[`label`])),f(T(C),{label:T(h)(`editor.deleteCard`),icon:`pi pi-trash`,severity:`danger`,text:``,size:`small`,onClick:r[53]||=e=>Nn(W.value.colId,W.value.card.id)},null,8,[`label`])])):t(``,!0)])])):t(``,!0)]),_:3},8,[`visible`,`header`,`dismissable-mask`,`class`,`style`]),f(T(u),{visible:!!Z.value,header:Z.value?.file.name??``,modal:!0,"dismissable-mask":``,class:`kb-viewer-dialog`,style:{width:`min(1200px, 92vw)`,height:`88vh`},"onUpdate:visible":r[55]||=e=>{e||Xn()}},{footer:b(()=>[f(T(C),{label:T(h)(`editor.viewerDownload`),icon:`pi pi-download`,text:``,onClick:Yn},null,8,[`label`]),f(T(C),{label:T(h)(`editor.close`),onClick:Xn},null,8,[`label`])]),default:b(()=>[Z.value?(j(),L(`div`,ic,[Z.value.kind===`image`?(j(),L(`img`,{key:0,src:Z.value.url,alt:Z.value.file.name,class:`kb-viewer__image`},null,8,ac)):Z.value.kind===`pdf`?(j(),L(`iframe`,{key:1,src:Z.value.url,title:Z.value.file.name,class:`kb-viewer__frame`},null,8,oc)):Z.value.kind===`video`?(j(),L(`video`,{key:2,src:Z.value.url,controls:``,class:`kb-viewer__media`},null,8,sc)):Z.value.kind===`audio`?(j(),L(`audio`,{key:3,src:Z.value.url,controls:``,class:`kb-viewer__audio`},null,8,cc)):Z.value.office?.mode===`sheet`?(j(),L(`div`,lc,[Z.value.office.sheets.length>1?(j(),L(`div`,uc,[(j(!0),L(H,null,V(Z.value.office.sheets,(e,t)=>(j(),L(`button`,{key:e.name+t,class:s([`kb-viewer__tab`,{"kb-viewer__tab--active":t===Un.value}]),onClick:e=>Un.value=t},R(e.name),11,dc))),128))])):t(``,!0),_(`div`,fc,[Wn.value&&Wn.value.rows.length?(j(),L(`table`,pc,[_(`thead`,null,[_(`tr`,null,[(j(!0),L(H,null,V(Wn.value.rows[0],(e,t)=>(j(),L(`th`,{key:t},R(e),1))),128))])]),_(`tbody`,null,[(j(!0),L(H,null,V(Wn.value.rows.slice(1),(e,t)=>(j(),L(`tr`,{key:t},[(j(!0),L(H,null,V(e,(e,t)=>(j(),L(`td`,{key:t},R(e),1))),128))]))),128))])])):(j(),L(`p`,mc,R(T(h)(`editor.viewerEmpty`)),1))])])):Z.value.office?.mode===`blocks`?(j(),L(`div`,hc,[_(`div`,gc,[(j(!0),L(H,null,V(Z.value.office.blocks,(e,t)=>(j(),L(H,{key:t},[e.type===`heading`&&e.level===1?(j(),L(`h1`,_c,R(e.text),1)):e.type===`heading`&&e.level===2?(j(),L(`h2`,vc,R(e.text),1)):e.type===`heading`?(j(),L(`h3`,yc,R(e.text),1)):e.type===`list`?(j(),L(`li`,bc,R(e.text),1)):e.type===`table`?(j(),L(`table`,xc,[_(`tbody`,null,[(j(!0),L(H,null,V(e.rows,(e,t)=>(j(),L(`tr`,{key:t},[(j(!0),L(H,null,V(e,(e,t)=>(j(),L(`td`,{key:t},R(e),1))),128))]))),128))])])):(j(),L(`p`,Sc,R(e.text),1))],64))),128)),Z.value.office.blocks.length?t(``,!0):(j(),L(`p`,Cc,R(T(h)(`editor.viewerEmpty`)),1))])])):Z.value.office?.mode===`slides`?(j(),L(`div`,wc,[_(`div`,Tc,[(j(!0),L(H,null,V(Z.value.office.slides,(e,n)=>(j(),L(`section`,{key:n,class:`kb-viewer__slide`},[_(`span`,Ec,R(n+1),1),e.title?(j(),L(`h3`,Dc,R(e.title),1)):t(``,!0),(j(!0),L(H,null,V(e.lines,(e,t)=>(j(),L(`p`,{key:t},R(e),1))),128))]))),128))])])):Z.value.office?.mode===`render`?(j(),L(`div`,Oc,[Kn.value?(j(),L(`p`,kc,R(T(h)(`editor.viewerFailed`)),1)):t(``,!0),i(_(`div`,{ref_key:`renderHost`,ref:Gn,class:`kb-viewer__scroll kb-viewer__render`},null,512),[[ae,!Kn.value]])])):(j(),L(`pre`,Ac,R(Z.value.text),1)),Z.value.office&&Z.value.office.mode!==`render`&&Z.value.office.truncated?(j(),L(`p`,jc,[r[108]||=_(`i`,{class:`pi pi-exclamation-triangle`},null,-1),c(` `+R(T(h)(`editor.viewerTruncated`)),1)])):t(``,!0)])):t(``,!0)]),_:1},8,[`visible`,`header`]),f(T(je),{ref_key:`colMenu`,ref:Ir,onHide:r[59]||=e=>Lr.value=null},{default:b(()=>[Lr.value?(j(),L(`div`,Mc,[_(`div`,Nc,[F(n.$slots,`column-actions`,{column:Lr.value},void 0,!0)]),gr.value?(j(),L(`button`,{key:0,class:`kb-colmenu__item`,onClick:r[56]||=e=>zr(Vr)},[r[109]||=_(`i`,{class:`pi pi-bell`},null,-1),_(`span`,null,R(Dr(Lr.value.id)?T(h)(`column.unsubscribe`):T(h)(`column.subscribe`)),1)])):t(``,!0),_(`button`,{class:`kb-colmenu__item`,onClick:r[57]||=e=>zr(Jc)},[r[110]||=_(`i`,{class:`pi pi-angle-double-left`},null,-1),_(`span`,null,R(T(h)(`column.collapse`)),1)]),e.readOnly?t(``,!0):(j(),L(`button`,{key:1,class:`kb-colmenu__item kb-colmenu__item--danger`,onClick:r[58]||=e=>zr(Qe)},[r[111]||=_(`i`,{class:`pi pi-trash`},null,-1),_(`span`,null,R(T(h)(`column.deleteTooltip`)),1)]))])):t(``,!0)]),_:3},512)],512)}}}),[[`__scopeId`,`data-v-5aa00b74`]]),Uc={class:`kanban-list-page`},Wc={class:`page-header`},Gc={class:`page-header__right`},Kc={class:`list-menu`},qc={key:0,class:`empty-state`},Jc={class:`board-grid`},Yc={class:`board-counts`},Xc={class:`board-count`},Zc={class:`board-count board-count--cards`},Qc={key:0,class:`board-desc`},$c={key:0,class:`empty-state`},el={class:`board-grid`},tl={key:0,class:`board-desc`},nl={key:0,class:`dialog-field`},rl={for:`kanlist-new-template`},il={key:0,class:`field-hint`},al={class:`dialog-field`},ol={for:`kanlist-new-name`},sl={class:`dialog-field`},cl={for:`kanlist-new-desc`},ll={class:`dialog-field`},ul={for:`kanlist-new-instructions`},dl={class:`field-hint`},fl={class:`dialog-field`},pl={for:`kanlist-edit-name`},ml={class:`dialog-field`},hl={for:`kanlist-edit-desc`},gl={class:`dialog-field`},_l={for:`kanlist-edit-instructions`},vl={class:`field-hint`},yl={class:`templates-intro`},bl={key:0,class:`empty-state`},xl={key:1,class:`template-list`},Sl={class:`template-row__name`},Cl={class:`hint`},$={key:0,class:`template-row__actions`},wl={class:`dialog-field`},Tl={for:`kanlist-tpl-name`},El={class:`dialog-field`},Dl={for:`kanlist-tpl-content`},Ol={class:`hint`},kl={class:`templates-intro`},Al={key:0,class:`empty-state`},jl={key:1,class:`template-list`},Ml={class:`template-row__name`},Nl={key:0,class:`template-row__actions`},Pl=n(v({__name:`KanbanList`,props:{boards:{},readOnly:{type:Boolean,default:!1},boardsLimit:{default:null},templates:{default:null},boardTemplates:{default:null},t:{}},emits:[`open`,`create`,`update`,`archive`,`delete`,`template-create`,`template-update`,`template-delete`,`board-template-delete`,`templates-needed`],setup(e,{emit:n}){let r=e,a=n,l=Se(),d=r.t;function p(e){a(`templates-needed`),e()}let m=S(!1),h=S(``),g=S(``),v=S(``),y=S(null),ee=S(null),w=S(``);function te(e){return e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()}let E=o(()=>{let e=te(w.value.trim());return e?r.boards.filter(t=>te(t.name).includes(e)||te(t.description??``).includes(e)):r.boards}),D=o(()=>E.value.filter(e=>!e.archived)),O=o(()=>E.value.filter(e=>e.archived)),ne=o(()=>w.value.trim().length>0),re=o(()=>r.boardsLimit!==null&&r.boards.length>=r.boardsLimit),k=o(()=>!r.readOnly&&!re.value);function ie(e){let t=(r.boardTemplates??[]).find(t=>t.id===e);t&&(h.value.trim()||(h.value=t.name),v.value=t.instructions)}let A=o(()=>(r.boardTemplates??[]).find(e=>e.id===ee.value)??null);function M(){!k.value||!h.value.trim()||(a(`create`,{name:h.value.trim(),description:g.value.trim(),instructions:v.value.trim(),...A.value?.columns.length?{columns:A.value.columns}:{},...A.value?.columnGroups?.length?{columnGroups:A.value.columnGroups}:{}}),m.value=!1,h.value=``,g.value=``,v.value=``,ee.value=null)}function N(){y.value&&=(a(`update`,{...y.value}),null)}let ae=S(!1),P=S(null);function oe(){P.value={id:null,name:``,content:``}}function se(e){P.value={id:e.id,name:e.name,content:e.content}}function I(){let e=P.value;if(!e||!e.name.trim())return;let t={name:e.name.trim(),content:e.content};e.id?a(`template-update`,{id:e.id,...t}):a(`template-create`,t),P.value=null}function le(e){l.require({message:d(`templates.confirmDeleteMessage`,{name:e.name}),header:d(`templates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`template-delete`,e.id)})}let de=S(!1);function pe(e){l.require({message:d(`boardTemplates.confirmDeleteMessage`,{name:e.name}),header:d(`boardTemplates.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`board-template-delete`,e.id)})}let me=S(null);function he(e){me.value?.hide(),e()}function _e(e,t){l.require({message:d(`dialogs.confirmDeleteMessage`,{name:t}),header:d(`dialogs.confirmDeleteHeader`),icon:`pi pi-trash`,acceptClass:`p-button-danger`,accept:()=>a(`delete`,e)})}return(n,r)=>{let o=Te(`tooltip`);return j(),L(`div`,Uc,[_(`div`,Wc,[_(`h1`,null,R(T(d)(`title`)),1),_(`span`,Gc,[f(T(ue),null,{default:b(()=>[f(T(Ee),{class:`pi pi-search`}),f(T(fe),{modelValue:w.value,"onUpdate:modelValue":r[0]||=e=>w.value=e,placeholder:T(d)(`searchPlaceholder`),class:`search-input`},null,8,[`modelValue`,`placeholder`])]),_:1}),e.boardsLimit===null?t(``,!0):(j(),L(`span`,{key:0,class:s([`quota`,{"quota--full":re.value}])},R(T(d)(`quota`,{used:e.boards.length,limit:e.boardsLimit})),3)),e.readOnly?t(``,!0):(j(),z(T(C),{key:1,label:T(d)(`dialogs.newBoard`),icon:`pi pi-plus`,disabled:re.value,onClick:r[1]||=e=>p(()=>m.value=!0)},null,8,[`label`,`disabled`])),e.templates||e.boardTemplates?(j(),L(H,{key:2},[f(T(C),{icon:`pi pi-ellipsis-v`,severity:`secondary`,outlined:``,title:T(d)(`menu`),"aria-label":T(d)(`menu`),onClick:r[2]||=e=>me.value?.toggle(e)},null,8,[`title`,`aria-label`]),f(T(je),{ref_key:`listMenu`,ref:me},{default:b(()=>[_(`div`,Kc,[e.templates?(j(),L(`button`,{key:0,class:`list-menu__item`,onClick:r[3]||=e=>he(()=>p(()=>ae.value=!0))},[r[27]||=_(`i`,{class:`pi pi-file-edit`},null,-1),_(`span`,null,R(T(d)(`templates.manage`)),1)])):t(``,!0),e.boardTemplates?(j(),L(`button`,{key:1,class:`list-menu__item`,onClick:r[4]||=e=>he(()=>de.value=!0)},[r[28]||=_(`i`,{class:`pi pi-bookmark`},null,-1),_(`span`,null,R(T(d)(`boardTemplates.manage`)),1)])):t(``,!0)])]),_:1},512)],64)):t(``,!0)])]),F(n.$slots,`banner`,{},void 0,!0),f(T(Ve),{value:`active`},{default:b(()=>[f(T(ze),null,{default:b(()=>[f(T(He),{value:`active`},{default:b(()=>[c(R(T(d)(`tabs.active`)),1)]),_:1}),f(T(He),{value:`archived`},{default:b(()=>[c(R(T(d)(`tabs.archived`,{count:O.value.length})),1)]),_:1})]),_:1}),f(T(Be),null,{default:b(()=>[f(T(Ue),{value:`active`},{default:b(()=>[D.value.length===0?(j(),L(`div`,qc,R(ne.value?T(d)(`noResults`,{query:w.value.trim()}):T(d)(`empty`)),1)):t(``,!0),_(`div`,Jc,[(j(!0),L(H,null,V(D.value,n=>(j(),z(T(Ie),{key:n.id,class:`board-card`,onClick:e=>a(`open`,n.id)},{title:b(()=>[c(R(n.name),1)]),subtitle:b(()=>[_(`span`,Yc,[_(`span`,Xc,[r[29]||=_(`i`,{class:`pi pi-list`},null,-1),c(R(T(d)(`columns`,{count:n.columnCount})),1)]),_(`span`,Zc,[r[30]||=_(`i`,{class:`pi pi-clone`},null,-1),c(R(T(d)(`cards`,{count:n.cardCount})),1)])])]),content:b(()=>[n.description?(j(),L(`p`,Qc,R(n.description),1)):t(``,!0)]),footer:b(()=>[e.readOnly?t(``,!0):(j(),L(`div`,{key:0,class:`board-actions`,onClick:r[5]||=x(()=>{},[`stop`])},[f(T(C),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>y.value={id:n.id,name:n.name,description:n.description,instructions:n.instructions??``}},null,8,[`onClick`]),i(f(T(C),{icon:`pi pi-inbox`,text:``,size:`small`,severity:`secondary`,onClick:e=>a(`archive`,{id:n.id,archived:!0})},null,8,[`onClick`]),[[o,T(d)(`archive`)]]),f(T(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>_e(n.id,n.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1}),f(T(Ue),{value:`archived`},{default:b(()=>[O.value.length===0?(j(),L(`div`,$c,R(ne.value?T(d)(`noResults`,{query:w.value.trim()}):T(d)(`archivedEmpty`)),1)):t(``,!0),_(`div`,el,[(j(!0),L(H,null,V(O.value,n=>(j(),z(T(Ie),{key:n.id,class:`board-card archived`,onClick:e=>a(`open`,n.id)},{title:b(()=>[c(R(n.name),1)]),content:b(()=>[n.description?(j(),L(`p`,tl,R(n.description),1)):t(``,!0)]),footer:b(()=>[e.readOnly?t(``,!0):(j(),L(`div`,{key:0,class:`board-actions`,onClick:r[6]||=x(()=>{},[`stop`])},[f(T(C),{label:T(d)(`restore`),icon:`pi pi-replay`,text:``,size:`small`,onClick:e=>a(`archive`,{id:n.id,archived:!1})},null,8,[`label`,`onClick`]),f(T(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>_e(n.id,n.name)},null,8,[`onClick`])]))]),_:2},1032,[`onClick`]))),128))])]),_:1})]),_:1})]),_:1}),f(T(u),{visible:m.value,"onUpdate:visible":r[13]||=e=>m.value=e,header:T(d)(`dialogs.newBoard`),modal:!0,style:{width:`450px`}},{footer:b(()=>[f(T(C),{label:T(d)(`cancel`),text:``,onClick:r[12]||=e=>m.value=!1},null,8,[`label`]),f(T(C),{label:T(d)(`create`),icon:`pi pi-check`,disabled:!h.value.trim(),onClick:M},null,8,[`label`,`disabled`])]),default:b(()=>[e.boardTemplates?.length?(j(),L(`div`,nl,[_(`label`,rl,R(T(d)(`boardTemplates.pickLabel`)),1),f(T(ce),{id:`kanlist-new-template`,modelValue:ee.value,"onUpdate:modelValue":r[7]||=e=>ee.value=e,options:e.boardTemplates,optionLabel:`name`,optionValue:`id`,"show-clear":``,class:`w-full`,placeholder:T(d)(`boardTemplates.pickPlaceholder`),onChange:r[8]||=e=>ie(ee.value)},null,8,[`modelValue`,`options`,`placeholder`]),A.value?(j(),L(`small`,il,R(T(d)(`boardTemplates.pickHint`,{columns:A.value.columns.map(e=>e.title).join(`, `)||T(d)(`boardTemplates.noColumns`)})),1)):t(``,!0)])):t(``,!0),_(`div`,al,[_(`label`,ol,R(T(d)(`nameLabel`)),1),f(T(fe),{id:`kanlist-new-name`,modelValue:h.value,"onUpdate:modelValue":r[9]||=e=>h.value=e,autofocus:``,class:`w-full`,onKeyup:U(M,[`enter`])},null,8,[`modelValue`])]),_(`div`,sl,[_(`label`,cl,R(T(d)(`descriptionLabel`)),1),f(T(ge),{id:`kanlist-new-desc`,modelValue:g.value,"onUpdate:modelValue":r[10]||=e=>g.value=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),_(`div`,ll,[_(`label`,ul,R(T(d)(`instructionsLabel`)),1),f(T(ge),{id:`kanlist-new-instructions`,modelValue:v.value,"onUpdate:modelValue":r[11]||=e=>v.value=e,rows:`6`,class:`w-full`,placeholder:T(d)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),_(`small`,dl,R(T(d)(`instructionsHint`)),1)])]),_:1},8,[`visible`,`header`]),f(T(u),{visible:!!y.value,header:T(d)(`dialogs.editBoard`),modal:!0,style:{width:`450px`},"onUpdate:visible":r[18]||=e=>{e||(y.value=null)}},{footer:b(()=>[f(T(C),{label:T(d)(`cancel`),text:``,onClick:r[17]||=e=>y.value=null},null,8,[`label`]),f(T(C),{label:T(d)(`save`),icon:`pi pi-check`,onClick:N},null,8,[`label`])]),default:b(()=>[y.value?(j(),L(H,{key:0},[_(`div`,fl,[_(`label`,pl,R(T(d)(`nameLabel`)),1),f(T(fe),{id:`kanlist-edit-name`,modelValue:y.value.name,"onUpdate:modelValue":r[14]||=e=>y.value.name=e,class:`w-full`,onKeyup:U(N,[`enter`])},null,8,[`modelValue`])]),_(`div`,ml,[_(`label`,hl,R(T(d)(`descriptionLabel`)),1),f(T(ge),{id:`kanlist-edit-desc`,modelValue:y.value.description,"onUpdate:modelValue":r[15]||=e=>y.value.description=e,rows:`3`,class:`w-full`},null,8,[`modelValue`])]),_(`div`,gl,[_(`label`,_l,R(T(d)(`instructionsLabel`)),1),f(T(ge),{id:`kanlist-edit-instructions`,modelValue:y.value.instructions,"onUpdate:modelValue":r[16]||=e=>y.value.instructions=e,rows:`8`,class:`w-full`,placeholder:T(d)(`instructionsPlaceholder`)},null,8,[`modelValue`,`placeholder`]),_(`small`,vl,R(T(d)(`instructionsHint`)),1)])],64)):t(``,!0)]),_:1},8,[`visible`,`header`]),f(T(u),{visible:de.value,"onUpdate:visible":r[20]||=e=>de.value=e,header:T(d)(`boardTemplates.manage`),modal:!0,style:{width:`min(640px, 92vw)`}},{footer:b(()=>[f(T(C),{label:T(d)(`close`),text:``,onClick:r[19]||=e=>de.value=!1},null,8,[`label`])]),default:b(()=>[_(`p`,yl,R(T(d)(`boardTemplates.intro`)),1),!e.boardTemplates||e.boardTemplates.length===0?(j(),L(`div`,bl,R(T(d)(`boardTemplates.empty`)),1)):(j(),L(`ul`,xl,[(j(!0),L(H,null,V(e.boardTemplates,n=>(j(),L(`li`,{key:n.id,class:`template-row`},[_(`span`,Sl,[c(R(n.name)+` `,1),_(`small`,Cl,R(n.columns.map(e=>e.title).join(` · `)||T(d)(`boardTemplates.noColumns`)),1)]),e.readOnly?t(``,!0):(j(),L(`span`,$,[f(T(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>pe(n)},null,8,[`onClick`])]))]))),128))]))]),_:1},8,[`visible`,`header`]),f(T(u),{visible:ae.value,"onUpdate:visible":[r[25]||=e=>ae.value=e,r[26]||=e=>{e||(P.value=null)}],header:T(d)(`templates.manage`),modal:!0,class:`template-dialog`,style:{width:`min(1100px, 92vw)`,height:`90vh`}},{footer:b(()=>[P.value?(j(),L(H,{key:0},[f(T(C),{label:T(d)(`cancel`),text:``,onClick:r[23]||=e=>P.value=null},null,8,[`label`]),f(T(C),{label:T(d)(`save`),icon:`pi pi-check`,disabled:!P.value.name.trim(),onClick:I},null,8,[`label`,`disabled`])],64)):(j(),L(H,{key:1},[e.readOnly?t(``,!0):(j(),z(T(C),{key:0,label:T(d)(`templates.new`),icon:`pi pi-plus`,onClick:oe},null,8,[`label`])),f(T(C),{label:T(d)(`close`),text:``,onClick:r[24]||=e=>ae.value=!1},null,8,[`label`])],64))]),default:b(()=>[P.value?(j(),L(H,{key:0},[_(`div`,wl,[_(`label`,Tl,R(T(d)(`templates.nameLabel`)),1),f(T(fe),{id:`kanlist-tpl-name`,modelValue:P.value.name,"onUpdate:modelValue":r[21]||=e=>P.value.name=e,autofocus:``,class:`w-full`},null,8,[`modelValue`])]),_(`div`,El,[_(`label`,Dl,R(T(d)(`templates.contentLabel`)),1),f(T(Ge),{id:`kanlist-tpl-content`,modelValue:P.value.content,"onUpdate:modelValue":r[22]||=e=>P.value.content=e,markdown:``,"min-height":`18rem`,"max-height":`60vh`,placeholder:T(d)(`templates.contentPlaceholder`)},null,8,[`modelValue`,`placeholder`]),_(`small`,Ol,R(T(d)(`templates.contentHint`)),1)])],64)):(j(),L(H,{key:1},[_(`p`,kl,R(T(d)(`templates.intro`)),1),!e.templates||e.templates.length===0?(j(),L(`div`,Al,R(T(d)(`templates.empty`)),1)):(j(),L(`ul`,jl,[(j(!0),L(H,null,V(e.templates,n=>(j(),L(`li`,{key:n.id,class:`template-row`},[_(`span`,Ml,R(n.name),1),e.readOnly?t(``,!0):(j(),L(`span`,Nl,[f(T(C),{icon:`pi pi-pencil`,text:``,size:`small`,onClick:e=>se(n)},null,8,[`onClick`]),f(T(C),{icon:`pi pi-trash`,text:``,size:`small`,severity:`danger`,onClick:e=>le(n)},null,8,[`onClick`])]))]))),128))]))],64))]),_:1},8,[`visible`,`header`])])}}}),[[`__scopeId`,`data-v-6ce88365`]]);export{Hc as n,Pl as t};