@heartlandone/vega 2.65.0 → 2.67.0

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 (373) hide show
  1. package/dist/cjs/{app-globals-681a0ed4.js → app-globals-ab28f910.js} +6 -6
  2. package/dist/cjs/{child-nodes-event-prevent-slimmer-feb072c4.js → child-nodes-event-prevent-slimmer-eb803b14.js} +1 -1
  3. package/dist/cjs/{code-block-961d54e8.js → code-block-ab97a0a0.js} +12 -15
  4. package/dist/cjs/{component-value-history-controller-slimmer.abstract-c5b8b47b.js → component-value-history-controller-slimmer.abstract-5630341e.js} +4 -4
  5. package/dist/cjs/{design-token-98652b67.js → design-token-847739f1.js} +1 -1
  6. package/dist/cjs/{dom-node-subject-observer-factory-56609e5a.js → dom-node-subject-observer-factory-f040608b.js} +5 -1
  7. package/dist/cjs/{dto-renderer-manager-4b9d2560.js → dto-renderer-manager-d0f0f2c0.js} +18 -33
  8. package/dist/cjs/{element-appender-slimmer-1f46981b.js → element-appender-slimmer-aead9bbb.js} +3 -3
  9. package/dist/cjs/{event-emit-slimmer-3cefb326.js → event-emit-slimmer-d21a0935.js} +2 -2
  10. package/dist/cjs/{form-field-controller-slimmer-1e1123ea.js → form-field-controller-slimmer-2a091912.js} +2 -2
  11. package/dist/cjs/{image-annotation-action-03b36f68.js → image-annotation-action-d84de785.js} +3 -3
  12. package/dist/cjs/{index-f2fe26a0.js → index-4b896e76.js} +1 -1
  13. package/dist/cjs/index-58ea899e.js +4 -0
  14. package/dist/cjs/index.cjs.js +11 -11
  15. package/dist/cjs/{inject-keyboard-manager-51033b3f.js → inject-keyboard-manager-13c66257.js} +1 -1
  16. package/dist/cjs/{internal-vega-event-manager-9b503f1a.js → internal-vega-event-manager-4d1ce667.js} +3 -2
  17. package/dist/cjs/{keyboard-manager-144907d7.js → keyboard-manager-af0d08a6.js} +7 -1
  18. package/dist/cjs/{keyboard-manager-slimmer-04c48756.js → keyboard-manager-slimmer-62f072cd.js} +1 -1
  19. package/dist/cjs/{language-extension-059d62f6.js → language-extension-d257e65d.js} +2 -2
  20. package/dist/cjs/loader.cjs.js +9 -9
  21. package/dist/cjs/{public-rules-58e0218b.js → public-rules-d2b9b8f0.js} +4 -4
  22. package/dist/cjs/{range-42732973.js → range-d610028e.js} +1 -1
  23. package/dist/cjs/{responsive-format-facade-29070d00.js → responsive-format-facade-71e7b74c.js} +3 -3
  24. package/dist/cjs/{rich-text-editor-required-rule-ce4dd5fb.js → rich-text-editor-required-rule-a8fe5f50.js} +1 -1
  25. package/dist/cjs/{string-input-formatter-slimmer-0d69ea76.js → string-input-formatter-slimmer-8236b5e1.js} +2 -2
  26. package/dist/cjs/{style-formatter-f6723cb3.js → style-formatter-6facb42b.js} +1 -1
  27. package/dist/cjs/{sub-state-notify-slimmer-066f2aa9.js → sub-state-notify-slimmer-78682046.js} +1 -1
  28. package/dist/cjs/{sub-state-observer-slimmer-569e3297.js → sub-state-observer-slimmer-73aecfff.js} +1 -1
  29. package/dist/cjs/{token-extension-260adb8a.js → token-extension-aa8d5cce.js} +7 -6
  30. package/dist/cjs/vega-accordion.cjs.entry.js +8 -8
  31. package/dist/cjs/vega-app-header-button.cjs.entry.js +9 -9
  32. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  33. package/dist/cjs/vega-box.cjs.entry.js +8 -8
  34. package/dist/cjs/vega-breadcrumb.cjs.entry.js +29 -14
  35. package/dist/cjs/vega-button-circle.cjs.entry.js +9 -9
  36. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  37. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  38. package/dist/cjs/vega-button.cjs.entry.js +8 -8
  39. package/dist/cjs/vega-calendar_4.cjs.entry.js +6 -6
  40. package/dist/cjs/vega-card.cjs.entry.js +7 -7
  41. package/dist/cjs/vega-carousel.cjs.entry.js +7 -7
  42. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  43. package/dist/cjs/vega-chip.cjs.entry.js +9 -9
  44. package/dist/cjs/vega-code-block.cjs.entry.js +9 -9
  45. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  46. package/dist/cjs/vega-combo-box.cjs.entry.js +8 -8
  47. package/dist/cjs/vega-date-picker_2.cjs.entry.js +15 -15
  48. package/dist/cjs/vega-dialog_2.cjs.entry.js +132 -38
  49. package/dist/cjs/vega-divider.cjs.entry.js +7 -7
  50. package/dist/cjs/vega-dropdown_5.cjs.entry.js +13 -13
  51. package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
  52. package/dist/cjs/vega-field-label.cjs.entry.js +3 -3
  53. package/dist/cjs/vega-file-uploader.cjs.entry.js +5 -5
  54. package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -7
  55. package/dist/cjs/vega-flex.cjs.entry.js +8 -8
  56. package/dist/cjs/vega-font.cjs.entry.js +7 -7
  57. package/dist/cjs/vega-form.cjs.entry.js +70 -12
  58. package/dist/cjs/vega-grid.cjs.entry.js +7 -7
  59. package/dist/cjs/vega-icon.cjs.entry.js +7 -7
  60. package/dist/cjs/vega-image-uploader.cjs.entry.js +10 -10
  61. package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
  62. package/dist/cjs/vega-input-numeric.cjs.entry.js +9 -9
  63. package/dist/cjs/vega-input-passcode.cjs.entry.js +724 -0
  64. package/dist/cjs/vega-input-phone-number.cjs.entry.js +9 -9
  65. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  66. package/dist/cjs/vega-input-select.cjs.entry.js +10 -10
  67. package/dist/cjs/vega-input.cjs.entry.js +23 -8
  68. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  69. package/dist/cjs/vega-left-nav_5.cjs.entry.js +10 -10
  70. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
  71. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  72. package/dist/cjs/vega-pagination-page-selector-mobile.cjs.entry.js +3 -3
  73. package/dist/cjs/vega-pagination-page-size-selector-mobile.cjs.entry.js +1 -1
  74. package/dist/cjs/vega-pagination.cjs.entry.js +8 -8
  75. package/dist/cjs/vega-popover_2.cjs.entry.js +11 -11
  76. package/dist/cjs/vega-progress-tracker.cjs.entry.js +3 -3
  77. package/dist/cjs/vega-radio_2.cjs.entry.js +8 -8
  78. package/dist/cjs/vega-rich-text-content.cjs.entry.js +6 -6
  79. package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +16 -16
  80. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  81. package/dist/cjs/vega-selection-chip_2.cjs.entry.js +11 -11
  82. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
  83. package/dist/cjs/vega-sidenav_3.cjs.entry.js +9 -9
  84. package/dist/cjs/vega-signature-capture.cjs.entry.js +10 -10
  85. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  86. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  87. package/dist/cjs/vega-table_8.cjs.entry.js +10 -10
  88. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  89. package/dist/cjs/vega-time-picker_2.cjs.entry.js +13 -13
  90. package/dist/cjs/vega-toggle-switch.cjs.entry.js +5 -5
  91. package/dist/cjs/vega-tooltip_2.cjs.entry.js +9 -9
  92. package/dist/cjs/vega.cjs.js +9 -9
  93. package/dist/collection/collection-manifest.json +6 -0
  94. package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-item-renderer.js +1 -1
  95. package/dist/collection/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.js +12 -8
  96. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.css +6 -6
  97. package/dist/collection/components/vega-breadcrumb/vega-breadcrumb.js +32 -0
  98. package/dist/collection/components/vega-form/slimmers/controllers/vega-form-submit-controller.js +62 -5
  99. package/dist/collection/components/vega-input/vega-input.js +72 -5
  100. package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.js +101 -0
  101. package/dist/collection/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.js +115 -0
  102. package/dist/collection/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.js +166 -0
  103. package/dist/collection/components/vega-input-passcode/vega-input-passcode.css +90 -0
  104. package/dist/collection/components/vega-input-passcode/vega-input-passcode.js +513 -0
  105. package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.js +95 -16
  106. package/dist/collection/components/vega-modal/slimmers/controllers/vega-modal-z-index-controller.js +4 -1
  107. package/dist/collection/components/vega-modal/slimmers/models/vega-modal-open-state.js +9 -0
  108. package/dist/collection/components/vega-modal/slimmers/renderers/vega-modal-renderer.js +4 -1
  109. package/dist/collection/components/vega-modal/vega-modal.js +19 -16
  110. package/dist/collection/components/vega-rich-text-editor/dto/annotations/link-group-annotation.js +1 -1
  111. package/dist/collection/components/vega-rich-text-editor/dto/blocks/code-block.js +2 -2
  112. package/dist/collection/components/vega-rich-text-editor/dto/blocks/html-block.js +3 -2
  113. package/dist/collection/components/vega-rich-text-editor/dto/blocks/image-block.js +3 -7
  114. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-block.js +3 -7
  115. package/dist/collection/components/vega-rich-text-editor/dto/blocks/list-item-block.js +4 -12
  116. package/dist/collection/components/vega-rich-text-editor/dto/blocks/text-block.js +3 -7
  117. package/dist/collection/components/vega-rich-text-editor/dto/content-state.js +1 -1
  118. package/dist/collection/components/vega-rich-text-editor/dto/nodes/code-block-node.js +3 -2
  119. package/dist/collection/components/vega-rich-text-editor/dto/nodes/image-node.js +2 -2
  120. package/dist/collection/components/vega-rich-text-editor/dto/nodes/text-node.js +2 -2
  121. package/dist/collection/components/vega-rich-text-editor/extensions/tokens/token-node.js +3 -2
  122. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/code-block.test.js +2 -2
  123. package/dist/collection/components/vega-rich-text-editor/test/dto/blocks/html-block.test.js +4 -0
  124. package/dist/collection/components/vega-rich-text-editor/test/dto/nodes/text-node.test.js +1 -1
  125. package/dist/collection/constants/ui.js +2 -0
  126. package/dist/collection/helpers/event-manager/event-id/component-event-id-map.js +3 -2
  127. package/dist/collection/helpers/event-manager/event-id/vega-event-id.js +3 -1
  128. package/dist/collection/helpers/event-manager/test/component-event-id-map.test.js +2 -1
  129. package/dist/collection/helpers/event-manager/test/vega-event-manager.test.js +2 -1
  130. package/dist/collection/helpers/immutable/immutable-array.js +133 -0
  131. package/dist/collection/helpers/immutable/test/immutable-array.test.js +78 -0
  132. package/dist/collection/helpers/keyboard/keyboard-manager.js +7 -1
  133. package/dist/collection/helpers/keyboard/test/keyboard-manager.test.js +4 -0
  134. package/dist/collection/value-model-adapters/angular-ng-model-accessor-adapter.js +1 -0
  135. package/dist/collection/value-model-adapters/vue-component-v-model-adaptor.js +1 -0
  136. package/dist/esm/{app-globals-1bacb762.js → app-globals-37a60cc1.js} +6 -6
  137. package/dist/esm/{child-nodes-event-prevent-slimmer-f32efdee.js → child-nodes-event-prevent-slimmer-735cb880.js} +1 -1
  138. package/dist/esm/{code-block-cb657afd.js → code-block-11b2bc1c.js} +12 -15
  139. package/dist/esm/{component-value-history-controller-slimmer.abstract-65a83eaf.js → component-value-history-controller-slimmer.abstract-16c5cb96.js} +4 -4
  140. package/dist/esm/{design-token-3889675a.js → design-token-297dc528.js} +1 -1
  141. package/dist/esm/{dom-node-subject-observer-factory-ed4b89f4.js → dom-node-subject-observer-factory-dca87b70.js} +4 -2
  142. package/dist/esm/{dto-renderer-manager-8cac8f0f.js → dto-renderer-manager-a1a3b6d2.js} +18 -33
  143. package/dist/esm/{element-appender-slimmer-31b21e1b.js → element-appender-slimmer-f7233708.js} +3 -3
  144. package/dist/esm/{event-emit-slimmer-000ca6a7.js → event-emit-slimmer-28fd360c.js} +2 -2
  145. package/dist/esm/{form-field-controller-slimmer-24dbc255.js → form-field-controller-slimmer-b23d9ff3.js} +2 -2
  146. package/dist/esm/{image-annotation-action-59ea166c.js → image-annotation-action-fc46c920.js} +3 -3
  147. package/dist/esm/index-090d31ca.js +4 -0
  148. package/dist/esm/{index-50b32f3d.js → index-c943d263.js} +1 -1
  149. package/dist/esm/index.js +11 -11
  150. package/dist/esm/{inject-keyboard-manager-f7d92809.js → inject-keyboard-manager-ffd351b9.js} +1 -1
  151. package/dist/esm/{internal-vega-event-manager-13e3ed3d.js → internal-vega-event-manager-a5a5938d.js} +3 -2
  152. package/dist/esm/{keyboard-manager-f4bbc452.js → keyboard-manager-5d8f3582.js} +7 -1
  153. package/dist/esm/{keyboard-manager-slimmer-a02cbc5f.js → keyboard-manager-slimmer-f39214e4.js} +1 -1
  154. package/dist/esm/{language-extension-038014ac.js → language-extension-314a2b18.js} +2 -2
  155. package/dist/esm/loader.js +9 -9
  156. package/dist/esm/{public-rules-a42e6f59.js → public-rules-c6a6946d.js} +4 -4
  157. package/dist/esm/{range-c08d8de1.js → range-b78254de.js} +1 -1
  158. package/dist/esm/{responsive-format-facade-d8ccc742.js → responsive-format-facade-a41e1be7.js} +3 -3
  159. package/dist/esm/{rich-text-editor-required-rule-3a8f319c.js → rich-text-editor-required-rule-d50c24da.js} +1 -1
  160. package/dist/esm/{string-input-formatter-slimmer-c64c7855.js → string-input-formatter-slimmer-3acd240c.js} +2 -2
  161. package/dist/esm/{style-formatter-ab6a9248.js → style-formatter-f7effaac.js} +1 -1
  162. package/dist/esm/{sub-state-notify-slimmer-8b3b15ee.js → sub-state-notify-slimmer-56380f02.js} +1 -1
  163. package/dist/esm/{sub-state-observer-slimmer-2b98e2c9.js → sub-state-observer-slimmer-3504e2f2.js} +1 -1
  164. package/dist/esm/{token-extension-f5bf06a5.js → token-extension-b690953f.js} +7 -6
  165. package/dist/esm/vega-accordion.entry.js +8 -8
  166. package/dist/esm/vega-app-header-button.entry.js +9 -9
  167. package/dist/esm/vega-banner.entry.js +3 -3
  168. package/dist/esm/vega-box.entry.js +8 -8
  169. package/dist/esm/vega-breadcrumb.entry.js +29 -14
  170. package/dist/esm/vega-button-circle.entry.js +9 -9
  171. package/dist/esm/vega-button-group_2.entry.js +6 -6
  172. package/dist/esm/vega-button-link.entry.js +4 -4
  173. package/dist/esm/vega-button.entry.js +8 -8
  174. package/dist/esm/vega-calendar_4.entry.js +6 -6
  175. package/dist/esm/vega-card.entry.js +7 -7
  176. package/dist/esm/vega-carousel.entry.js +7 -7
  177. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  178. package/dist/esm/vega-chip.entry.js +9 -9
  179. package/dist/esm/vega-code-block.entry.js +9 -9
  180. package/dist/esm/vega-color-picker.entry.js +5 -5
  181. package/dist/esm/vega-combo-box.entry.js +8 -8
  182. package/dist/esm/vega-date-picker_2.entry.js +15 -15
  183. package/dist/esm/vega-dialog_2.entry.js +132 -38
  184. package/dist/esm/vega-divider.entry.js +7 -7
  185. package/dist/esm/vega-dropdown_5.entry.js +13 -13
  186. package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
  187. package/dist/esm/vega-field-label.entry.js +3 -3
  188. package/dist/esm/vega-file-uploader.entry.js +5 -5
  189. package/dist/esm/vega-flag-icon.entry.js +7 -7
  190. package/dist/esm/vega-flex.entry.js +8 -8
  191. package/dist/esm/vega-font.entry.js +7 -7
  192. package/dist/esm/vega-form.entry.js +70 -12
  193. package/dist/esm/vega-grid.entry.js +7 -7
  194. package/dist/esm/vega-icon.entry.js +7 -7
  195. package/dist/esm/vega-image-uploader.entry.js +10 -10
  196. package/dist/esm/vega-input-credit-card.entry.js +6 -6
  197. package/dist/esm/vega-input-numeric.entry.js +9 -9
  198. package/dist/esm/vega-input-passcode.entry.js +720 -0
  199. package/dist/esm/vega-input-phone-number.entry.js +9 -9
  200. package/dist/esm/vega-input-range.entry.js +6 -6
  201. package/dist/esm/vega-input-select.entry.js +10 -10
  202. package/dist/esm/vega-input.entry.js +23 -8
  203. package/dist/esm/vega-item-toggle.entry.js +3 -3
  204. package/dist/esm/vega-left-nav_5.entry.js +10 -10
  205. package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
  206. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  207. package/dist/esm/vega-pagination-page-selector-mobile.entry.js +3 -3
  208. package/dist/esm/vega-pagination-page-size-selector-mobile.entry.js +1 -1
  209. package/dist/esm/vega-pagination.entry.js +8 -8
  210. package/dist/esm/vega-popover_2.entry.js +11 -11
  211. package/dist/esm/vega-progress-tracker.entry.js +3 -3
  212. package/dist/esm/vega-radio_2.entry.js +8 -8
  213. package/dist/esm/vega-rich-text-content.entry.js +6 -6
  214. package/dist/esm/vega-rich-text-editor_4.entry.js +16 -16
  215. package/dist/esm/vega-segment-control.entry.js +3 -3
  216. package/dist/esm/vega-selection-chip_2.entry.js +11 -11
  217. package/dist/esm/vega-selection-tile_2.entry.js +7 -7
  218. package/dist/esm/vega-sidenav_3.entry.js +9 -9
  219. package/dist/esm/vega-signature-capture.entry.js +10 -10
  220. package/dist/esm/vega-stepper.entry.js +6 -6
  221. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  222. package/dist/esm/vega-table_8.entry.js +10 -10
  223. package/dist/esm/vega-textarea.entry.js +6 -6
  224. package/dist/esm/vega-time-picker_2.entry.js +13 -13
  225. package/dist/esm/vega-toggle-switch.entry.js +5 -5
  226. package/dist/esm/vega-tooltip_2.entry.js +9 -9
  227. package/dist/esm/vega.js +9 -9
  228. package/dist/sri/vega-sri-manifest.json +298 -294
  229. package/dist/types/components/vega-breadcrumb/slimmers/renderers/vega-breadcrumb-renderer.d.ts +2 -1
  230. package/dist/types/components/vega-breadcrumb/types.d.ts +1 -1
  231. package/dist/types/components/vega-breadcrumb/vega-breadcrumb.d.ts +11 -0
  232. package/dist/types/components/vega-form/slimmers/controllers/vega-form-submit-controller.d.ts +17 -0
  233. package/dist/types/components/vega-input/types.d.ts +65 -0
  234. package/dist/types/components/vega-input/vega-input.d.ts +17 -2
  235. package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-keyboard-controller.d.ts +25 -0
  236. package/dist/types/components/vega-input-passcode/slimmers/controllers/vega-input-passcode-value-controller.d.ts +47 -0
  237. package/dist/types/components/vega-input-passcode/slimmers/renderers/vega-input-passcode-renderer.d.ts +29 -0
  238. package/dist/types/components/vega-input-passcode/vega-input-passcode.d.ts +135 -0
  239. package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-open-state-controller.d.ts +31 -2
  240. package/dist/types/components/vega-modal/slimmers/controllers/vega-modal-z-index-controller.d.ts +1 -0
  241. package/dist/types/components/vega-modal/slimmers/models/vega-modal-open-state.d.ts +9 -0
  242. package/dist/types/components/vega-modal/slimmers/renderers/vega-modal-renderer.d.ts +1 -0
  243. package/dist/types/components/vega-modal/types.d.ts +9 -0
  244. package/dist/types/components/vega-modal/vega-modal.d.ts +8 -2
  245. package/dist/types/components/vega-rich-text-editor/dto/blocks/block.abstract.d.ts +2 -1
  246. package/dist/types/components/vega-rich-text-editor/dto/blocks/code-block.d.ts +1 -1
  247. package/dist/types/components/vega-rich-text-editor/dto/blocks/html-block.d.ts +1 -1
  248. package/dist/types/components/vega-rich-text-editor/dto/blocks/image-block.d.ts +1 -1
  249. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-block.d.ts +1 -1
  250. package/dist/types/components/vega-rich-text-editor/dto/blocks/list-item-block.d.ts +1 -1
  251. package/dist/types/components/vega-rich-text-editor/dto/blocks/text-block.d.ts +1 -1
  252. package/dist/types/components/vega-rich-text-editor/dto/nodes/code-block-node.d.ts +1 -1
  253. package/dist/types/components/vega-rich-text-editor/dto/nodes/image-node.d.ts +1 -1
  254. package/dist/types/components/vega-rich-text-editor/dto/nodes/node.abstract.d.ts +2 -1
  255. package/dist/types/components/vega-rich-text-editor/dto/nodes/text-node.d.ts +1 -1
  256. package/dist/types/components/vega-rich-text-editor/extensions/tokens/token-node.d.ts +2 -1
  257. package/dist/types/components.d.ts +174 -4
  258. package/dist/types/constants/ui.d.ts +1 -1
  259. package/dist/types/helpers/event-manager/event-id/vega-event-id.d.ts +2 -0
  260. package/dist/types/helpers/immutable/immutable-array.d.ts +86 -0
  261. package/dist/types/helpers/immutable/immutable-map.d.ts +1 -1
  262. package/dist/types/helpers/immutable/immutable.d.ts +1 -0
  263. package/dist/types/helpers/immutable/test/immutable-array.test.d.ts +1 -0
  264. package/dist/types/types/components.type.d.ts +7 -1
  265. package/dist/vega/index.esm.js +1 -1
  266. package/dist/vega/{p-6a4db686.entry.js → p-00071542.entry.js} +1 -1
  267. package/dist/vega/p-0113a83c.entry.js +1 -0
  268. package/dist/vega/{p-5e1c913d.entry.js → p-015cdbe7.entry.js} +1 -1
  269. package/dist/vega/p-019f7f95.js +1 -0
  270. package/dist/vega/{p-c12000ee.entry.js → p-03a1e82e.entry.js} +1 -1
  271. package/dist/vega/p-0d1eca78.entry.js +1 -0
  272. package/dist/vega/{p-74e684fc.entry.js → p-0ed53cce.entry.js} +1 -1
  273. package/dist/vega/{p-bc9484a6.js → p-129c0ce1.js} +1 -1
  274. package/dist/vega/p-16370cfb.js +1 -0
  275. package/dist/vega/p-19522949.js +1 -0
  276. package/dist/vega/{p-1f061725.entry.js → p-1a3cb65e.entry.js} +1 -1
  277. package/dist/vega/{p-85ad1c21.entry.js → p-2553031f.entry.js} +1 -1
  278. package/dist/vega/{p-c1fa6088.entry.js → p-276b1163.entry.js} +1 -1
  279. package/dist/vega/{p-9e6db93d.entry.js → p-2d430dc4.entry.js} +1 -1
  280. package/dist/vega/{p-299e14b4.entry.js → p-3288a65b.entry.js} +1 -1
  281. package/dist/vega/p-34800282.entry.js +1 -0
  282. package/dist/vega/{p-ebfc4323.entry.js → p-358e9800.entry.js} +1 -1
  283. package/dist/vega/{p-b4c25109.js → p-3925c16b.js} +1 -1
  284. package/dist/vega/{p-3b953a24.entry.js → p-39b9c57b.entry.js} +1 -1
  285. package/dist/vega/{p-63596567.entry.js → p-3a7f177a.entry.js} +1 -1
  286. package/dist/vega/p-41c3fcb4.js +1 -0
  287. package/dist/vega/p-447c7590.js +1 -0
  288. package/dist/vega/p-46830028.entry.js +1 -0
  289. package/dist/vega/p-47cae62d.entry.js +1 -0
  290. package/dist/vega/{p-228de113.js → p-47fa359b.js} +1 -1
  291. package/dist/vega/{p-c8a3fb7f.entry.js → p-4e33fff6.entry.js} +1 -1
  292. package/dist/vega/{p-63a5bbf4.entry.js → p-524693d8.entry.js} +1 -1
  293. package/dist/vega/{p-378e5881.js → p-54b62ecf.js} +1 -1
  294. package/dist/vega/{p-5cdcd08f.entry.js → p-59298f5e.entry.js} +1 -1
  295. package/dist/vega/{p-6f96dd01.entry.js → p-5a0524ab.entry.js} +1 -1
  296. package/dist/vega/{p-185dfdd4.entry.js → p-5e32866d.entry.js} +1 -1
  297. package/dist/vega/p-5f377954.js +1 -1
  298. package/dist/vega/{p-6d371296.entry.js → p-5f58d1da.entry.js} +1 -1
  299. package/dist/vega/{p-8a5c123f.entry.js → p-616cd622.entry.js} +1 -1
  300. package/dist/vega/{p-b68a13df.entry.js → p-65693321.entry.js} +1 -1
  301. package/dist/vega/p-67f159c3.js +1 -0
  302. package/dist/vega/{p-2f4f3744.entry.js → p-6f6ccf67.entry.js} +1 -1
  303. package/dist/vega/{p-ae598946.entry.js → p-6f7d42a0.entry.js} +1 -1
  304. package/dist/vega/{p-2033f86e.js → p-725f0a2c.js} +1 -1
  305. package/dist/vega/{p-833d81d0.entry.js → p-74d61782.entry.js} +1 -1
  306. package/dist/vega/{p-053eb64a.js → p-7b145620.js} +1 -1
  307. package/dist/vega/{p-5d36cc3f.entry.js → p-7c1d08db.entry.js} +1 -1
  308. package/dist/vega/{p-33c6fb3f.entry.js → p-7efb5ebe.entry.js} +1 -1
  309. package/dist/vega/{p-fee972e6.entry.js → p-7f69081b.entry.js} +1 -1
  310. package/dist/vega/{p-12d4488b.entry.js → p-7f9ec104.entry.js} +1 -1
  311. package/dist/vega/p-81105691.entry.js +1 -0
  312. package/dist/vega/p-822c6092.js +1 -0
  313. package/dist/vega/{p-7c594a9f.js → p-8350506e.js} +1 -1
  314. package/dist/vega/{p-99b1492c.js → p-85f9a980.js} +1 -1
  315. package/dist/vega/{p-d418ecc1.entry.js → p-892cbe7c.entry.js} +1 -1
  316. package/dist/vega/{p-78d607ca.entry.js → p-8d096fea.entry.js} +1 -1
  317. package/dist/vega/{p-fbc85265.entry.js → p-8d574fbd.entry.js} +1 -1
  318. package/dist/vega/{p-1eb5b772.entry.js → p-8d655fd2.entry.js} +1 -1
  319. package/dist/vega/p-8edf3513.js +1 -0
  320. package/dist/vega/{p-5f854901.entry.js → p-92a22562.entry.js} +1 -1
  321. package/dist/vega/{p-43257678.js → p-9fb6fbcc.js} +1 -1
  322. package/dist/vega/{p-cef9f638.js → p-a0467b83.js} +1 -1
  323. package/dist/vega/{p-3494a5f1.entry.js → p-a1b7a179.entry.js} +1 -1
  324. package/dist/vega/p-a73dc4b3.entry.js +1 -0
  325. package/dist/vega/{p-c241f615.js → p-a7631c6b.js} +1 -1
  326. package/dist/vega/{p-0685cba6.entry.js → p-ab1001f5.entry.js} +1 -1
  327. package/dist/vega/{p-1f43f551.entry.js → p-ab8f99e9.entry.js} +1 -1
  328. package/dist/vega/{p-9439077d.entry.js → p-ad5393f0.entry.js} +1 -1
  329. package/dist/vega/{p-840c09c7.js → p-af5bfe34.js} +1 -1
  330. package/dist/vega/{p-ab3c4b43.entry.js → p-b2aaab66.entry.js} +1 -1
  331. package/dist/vega/{p-a69c9e42.entry.js → p-b431f9d5.entry.js} +1 -1
  332. package/dist/vega/{p-cf211582.entry.js → p-b82d3915.entry.js} +1 -1
  333. package/dist/vega/p-bee1cc34.entry.js +1 -0
  334. package/dist/vega/{p-901ff5d3.js → p-bf7f755b.js} +1 -1
  335. package/dist/vega/p-bf9476cd.entry.js +1 -0
  336. package/dist/vega/{p-45ead9fe.js → p-c6ce2869.js} +1 -1
  337. package/dist/vega/{p-59d70a67.entry.js → p-cc519f53.entry.js} +1 -1
  338. package/dist/vega/{p-c96d28dc.entry.js → p-d006e732.entry.js} +1 -1
  339. package/dist/vega/p-d0e6454e.entry.js +1 -0
  340. package/dist/vega/{p-f83739d0.entry.js → p-d1dacaeb.entry.js} +1 -1
  341. package/dist/vega/{p-13c6a04c.entry.js → p-d4452dbc.entry.js} +1 -1
  342. package/dist/vega/{p-dabba918.entry.js → p-d5761532.entry.js} +1 -1
  343. package/dist/vega/{p-199dc74b.js → p-d88e88a7.js} +1 -1
  344. package/dist/vega/{p-303efbfe.entry.js → p-de624f7d.entry.js} +1 -1
  345. package/dist/vega/{p-dc92fec6.js → p-e6cccee4.js} +1 -1
  346. package/dist/vega/{p-9d492a46.entry.js → p-ea05a2fc.entry.js} +1 -1
  347. package/dist/vega/p-ed8bc4f0.entry.js +1 -0
  348. package/dist/vega/{p-64c3d021.js → p-f360c9ba.js} +1 -1
  349. package/dist/vega/{p-c682d53c.entry.js → p-fc8c5869.entry.js} +1 -1
  350. package/dist/vega/{p-fddca002.js → p-fde50319.js} +1 -1
  351. package/dist/vega/{p-ba24f7b9.entry.js → p-fe2e859f.entry.js} +1 -1
  352. package/dist/vega/{p-a61e2108.entry.js → p-fef846d5.entry.js} +1 -1
  353. package/dist/vega/{p-d3137a6e.entry.js → p-ff3bb4e2.entry.js} +1 -1
  354. package/dist/vega/vega.esm.js +1 -1
  355. package/package.json +1 -1
  356. package/dist/vega/p-050bb2ad.entry.js +0 -1
  357. package/dist/vega/p-1bd5d806.entry.js +0 -1
  358. package/dist/vega/p-24cb0a7e.js +0 -1
  359. package/dist/vega/p-2d91799a.entry.js +0 -1
  360. package/dist/vega/p-33837794.entry.js +0 -1
  361. package/dist/vega/p-39b4c838.js +0 -1
  362. package/dist/vega/p-3c21b875.js +0 -1
  363. package/dist/vega/p-5e2ef0b8.entry.js +0 -1
  364. package/dist/vega/p-5fec05a2.js +0 -1
  365. package/dist/vega/p-651fe4fc.js +0 -1
  366. package/dist/vega/p-676bee73.entry.js +0 -1
  367. package/dist/vega/p-852fa2d2.entry.js +0 -1
  368. package/dist/vega/p-a082d41b.entry.js +0 -1
  369. package/dist/vega/p-a4912b85.js +0 -1
  370. package/dist/vega/p-b510e4d7.js +0 -1
  371. package/dist/vega/p-d5d6dae6.js +0 -1
  372. package/dist/vega/p-e853105a.entry.js +0 -1
  373. package/dist/vega/p-fbd38139.entry.js +0 -1
@@ -1 +1 @@
1
- import{h as e,F as t,f as i,r as n,c as r,H as o,g as a}from"./p-6b2342e0.js";import{s}from"./p-519a7d55.js";import{c as l,V as d,L as c,M as h,I as v}from"./p-6e1ab235.js";import{V as p,I as f}from"./p-d849e0f5.js";import{D as w,a as u,f as m,V as g,d as b,Q as x,g as y,h as k,i as C,j as R}from"./p-3c21b875.js";import{a as j}from"./p-8c9ea6f4.js";import{c as D}from"./p-86194314.js";import{p as E}from"./p-08835909.js";import{c as z}from"./p-053eb64a.js";import{V as I}from"./p-39482a1a.js";import{s as M}from"./p-824a06ba.js";import{q as O}from"./p-b1faebe0.js";import{C as P}from"./p-2033f86e.js";import{y as S,z as T,A as $,B as V}from"./p-308aa2e3.js";import{O as L}from"./p-331a62d5.js";import{C as A}from"./p-2d0d575f.js";import{f as B}from"./p-d27ae9ff.js";import{g as N}from"./p-a4670e23.js";import{P as F}from"./p-7d9cd9c8.js";import{d as W}from"./p-1bc5b3bc.js";import{c as H}from"./p-cef9f638.js";import{T as _}from"./p-d5ff8b7f.js";import{s as U}from"./p-6bd5c49b.js";import{v as Y}from"./p-54ae02db.js";import{S as Z}from"./p-fddca002.js";import{b as K}from"./p-0c667d6a.js";import{f as q}from"./p-d9671d27.js";import"./p-6a334573.js";import"./p-24cb0a7e.js";import"./p-b75ee3ba.js";import"./p-a528714c.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-262ec334.js";var X=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class G extends d{getEventPreviewRef(){return this.eventPreviewRef}render(){return e(t,null,this.switchPanelRenderer.render(),this.viewRenderer.render(),e("vega-calendar-event-preview",{ref:e=>{this.eventPreviewRef=e}}))}}X([l()],G.prototype,"host",void 0),X([l()],G.prototype,"switchPanelRenderer",void 0),X([l()],G.prototype,"viewRenderer",void 0);var Q=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class J extends d{constructor(){super(...arguments),this.handleViewChange=e=>{this.currentPeriodController.updateCalendarPeriod(e.detail,this.postOperationDate)},this.todayButtonClick=()=>{this.currentPeriodController.setCurrentPeriod(this.currentPeriod.now())},this.nextButtonClick=()=>{this.currentPeriodController.setCurrentPeriod(this.currentPeriod.next())},this.prevButtonClick=()=>{this.currentPeriodController.setCurrentPeriod(this.currentPeriod.previous())},this.moreActionMenuClick=e=>{this.moreActionClickEmitter.emit(e.detail)}}getSwitchPanelRef(){return this.switchPanelRef}render(){return e("vega-flex",{direction:"row",gap:"size-16",justifyContent:"space-between",alignItems:"center",class:"calendar-switch-panel",ref:e=>this.switchPanelRef=e},this.renderDateSwitch(),e("div",{class:"calendar-view-switch-container"},this.showSwitchView?this.renderViewSwitch():null,this.renderMoreActionMenu()))}renderDateSwitch(){return e("div",{class:"calendar-date-switch-container"},e("vega-button",{variant:"secondary",size:"small",ref:e=>{w.addUniqueObserverToNode(e,u,this.todayButtonClick)},label:this.translationSlimmer.t("Today")}),e("vega-button-circle",{variant:"secondary",size:"small",icon:j.getIconKey("chevron-left"),label:"previous",showTooltip:!1,ref:e=>{w.addUniqueObserverToNode(e,u,this.prevButtonClick)}}),e("vega-button-circle",{variant:"secondary",size:"small",icon:j.getIconKey("chevron-right"),label:"next",showTooltip:!1,ref:e=>{w.addUniqueObserverToNode(e,u,this.nextButtonClick)}}),this.renderCurrentPeriod())}renderCurrentPeriod(){return e("vega-font",{class:"calendar-current-date",variant:"font-field-label",color:"text-primary"},this.getViewDateSummary())}renderViewSwitch(){return e("vega-segment-control",{segments:J.views.map((e=>Object.assign(Object.assign({},e),{text:this.translationSlimmer.t(e.text)}))),size:"small",variant:"text-only",selected:this.viewMode,ref:e=>{w.addUniqueObserverToNode(e,m,this.handleViewChange)}})}renderMoreActionMenu(){var t,i;if(null===(i=null===(t=this.moreActionDropdownProps)||void 0===t?void 0:t.source)||void 0===i?void 0:i.length)return e("vega-dropdown",Object.assign({alignment:"end",trigger:"click"},this.moreActionDropdownProps,{ref:e=>{w.addUniqueObserverToNode(e,g,this.moreActionMenuClick)}}),e("vega-button-circle",{size:"small",icon:j.getIconKey("ellipsis-vertical"),variant:"icon-only"}))}getViewDateSummary(){const e=this.currentPeriod.current;let t="";switch(this.viewMode){case"day":{const i=this.translationSlimmer.t(e.getMonthName());t=`${e.date} ${i}, ${e.year}`;break}case"week":{const e=this.calendarView.dateItems[0],i=e[0],n=e[e.length-1],[r,o]=[i,n].map((e=>this.translationSlimmer.t(e.getMonthName())));t=`${i.date} ${r}${i.year===n.year?"":", "+i.year} - ${n.date} ${o}, ${n.year}`;break}case"month":t=`${this.translationSlimmer.t(e.getMonthName())}, ${e.year}`}return t}}j.register({"chevron-right":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>'},"chevron-left":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>'},"ellipsis-vertical":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M48 464a48 48 0 1 1 0-96 48 48 0 1 1 0 96zm0-160a48 48 0 1 1 0-96 48 48 0 1 1 0 96zM0 96a48 48 0 1 1 96 0A48 48 0 1 1 0 96z"/></svg>'}}),J.views=[{text:"Day",key:"day"},{text:"Week",key:"week"},{text:"Month",key:"month"}],Q([l()],J.prototype,"viewMode",void 0),Q([l()],J.prototype,"calendarView",void 0),Q([l()],J.prototype,"currentPeriod",void 0),Q([l()],J.prototype,"moreActionDropdownProps",void 0),Q([l()],J.prototype,"moreActionClickEmitter",void 0),Q([l()],J.prototype,"currentPeriodController",void 0),Q([l()],J.prototype,"calendarViewController",void 0),Q([l()],J.prototype,"translationSlimmer",void 0),Q([l()],J.prototype,"postOperationDate",void 0),Q([l()],J.prototype,"showSwitchView",void 0);var ee=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class te extends d{getCalendarViewElementRef(){return this.calendarViewElementRef}render(){return e("div",{class:`calendar-view calendar-view-${this.viewMode} ${!1===this.showWeekends?"calendar-hide-weekends":""}`,ref:e=>this.calendarViewElementRef=e},"month"===this.viewMode?this.monthViewRenderer.render():this.viewWithTimeRenderer.render())}}ee([l()],te.prototype,"viewMode",void 0),ee([l()],te.prototype,"showWeekends",void 0),ee([l()],te.prototype,"monthViewRenderer",void 0),ee([l()],te.prototype,"viewWithTimeRenderer",void 0);var ie=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class ne extends d{emit(e,t){this.shouldHandleClickEvent(e)?this.dateClickEmitter.emit(t):this.shouldHandleDblClickEvent(e)&&this.dateDblClickEmitter.emit(t)}shouldHandleClickEvent(e){return!0===this.enableDateClick&&"click"===e.type}shouldHandleDblClickEvent(e){return!0!==this.enableDateClick&&"dblclick"===e.type}generateDateBlockRenderProps(e,t,i){const n={};return e||(this.enableDateClick?(n.tabIndex=0,n.role="button",n.onClick=e=>{this.handleDateBlockClick(e,t,i)},n.onKeyDown=D()):n.onDblClick=e=>{this.handleDateBlockClick(e,t,i)}),n}}ie([l()],ne.prototype,"enableDateClick",void 0),ie([l()],ne.prototype,"dateClickEmitter",void 0),ie([l()],ne.prototype,"dateDblClickEmitter",void 0);var re=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class oe extends ne{render(){return e("div",{class:"calendar-view-month-container"},e("div",{class:"calendar-view-row calendar-view-title border-divider-bottom"},this.calendarView.weekdays.map((t=>e("div",{key:t},this.translationSlimmer.t(t))))),this.renderMonthViewContent())}handleDateBlockClick(e,t){const{target:i,clientX:n,clientY:r}=e;if(this.isMonthBlockBlankArea(i)){const{year:i,month:o,date:a}=t;this.emit(e,{year:i,month:o,date:a,hour:0,mouseEventInfo:{clientX:n,clientY:r}})}}renderMonthViewContent(){const t=this.currentPeriod.current;return this.calendarView.dateItems.map(((i,n)=>{const r=this.monthEventRenderer.getCurrentRowEvents(i),o=this.monthEventRenderer.filterRowDisplayEvents(r);return e("div",{key:n,class:"calendar-view-row border-divider-bottom"},i.map(((i,n)=>{var a;const s=null===(a=this.isDateDisabled)||void 0===a?void 0:a.call(this,i.toDate()),l=this.generateDateBlockRenderProps(s,i);return e("div",Object.assign({class:{"row-cell border-divider-right":!0,"current-month-day":i.compare(t).inMonth,active:i.isToday(this.timezone),disabled:s},key:`${i.month}-${i.date}`},l),this.renderDateBlock(i),this.monthEventRenderer.render(i,r[n],o[n],n))})))}))}renderDateBlock(t){return e("div",{class:"date"},1===t.date&&e("div",{class:"month-block"},t.getMonthName(!0)),e("div",{role:"button",tabIndex:0,class:"grid-col",onDblClick:e=>{this.handleDateLabelClick(e,t)},onClick:e=>{this.handleDateLabelClick(e,t)},onKeyDown:D()},t.date))}goToCurrentDayView(e){this.currentPeriodController.updateCalendarPeriod("day",e)}handleDateLabelClick(e,t){e.stopPropagation(),this.showSwitchView&&(this.shouldHandleClickEvent(e)||this.shouldHandleDblClickEvent(e))&&this.goToCurrentDayView(t)}isMonthBlockBlankArea(e){return!e.classList.contains("more-button")&&"VEGA-CALENDAR-EVENT"!==e.tagName}}re([l()],oe.prototype,"viewMode",void 0),re([l()],oe.prototype,"calendarView",void 0),re([l()],oe.prototype,"currentPeriod",void 0),re([l()],oe.prototype,"currentPeriodController",void 0),re([l()],oe.prototype,"monthEventRenderer",void 0),re([l()],oe.prototype,"translationSlimmer",void 0),re([l()],oe.prototype,"isDateDisabled",void 0),re([l()],oe.prototype,"showSwitchView",void 0),re([l()],oe.prototype,"timezone",void 0);var ae=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class se extends ne{render(){return e("div",{class:"calendar-view-container"},this.renderViewTitle(),this.renderViewContent())}handleDateBlockClick(e,t,i){const{year:n,month:r,date:o}=t,{clientX:a,clientY:s}=e;this.emit(e,{year:n,month:r,date:o,hour:i,mouseEventInfo:{clientX:a,clientY:s}})}renderViewTitle(){const t=this.calendarView.dateItems[0],i=this.calendarView.weekdays;return e("div",{class:"calendar-view-title-container"},e("div",{class:"calendar-view-row"},e("div",{class:"time-line-empty"}),e("div",{class:"calendar-view-title"},t.map(((t,n)=>e("div",{key:t.date,class:{active:t.isToday(this.timezone)}},e("div",null,this.translationSlimmer.t(i[n])),e("div",{class:"week-day"},t.date)))))),e("div",{class:"calendar-view-row calendar-view-event-all-container border-divider-bottom"},e("div",{class:"time-line-all"},this.translationSlimmer.t("All Day")),this.dayViewFullDayEventRenderer.render()))}renderViewContent(){const t=this.calendarView.dateItems[0];return e("div",{class:"calendar-view-row calendar-view-day-container"},this.timeLineRenderer.render(),e("div",{class:"calendar-view-content-container"},e("div",{class:"calendar-view-content"},t.map((t=>{var i;const n=null===(i=this.isDateDisabled)||void 0===i?void 0:i.call(this,t.toDate());return e("div",{class:{"grid-col border-divider-left":!0,disabled:n},key:t.date},e("div",{class:"hour-empty border-divider-top"}),this.renderHourBlock(t,n))}))),this.dayViewTimedEventRenderer.render(),this.timeMarkerRenderer.render(t)))}renderHourBlock(t,i){return Array(24).fill("").map(((n,r)=>{var o;let a=!1;if(!i){const e=new Date(t.toDate().setHours(r));a=null===(o=this.isDateDisabled)||void 0===o?void 0:o.call(this,e)}const s=this.generateDateBlockRenderProps(i||a,t,r);return e("div",Object.assign({key:r,class:{"grid-cell border-divider-top":!0,disabled:i||a}},s))}))}}ae([l()],se.prototype,"viewMode",void 0),ae([l()],se.prototype,"timeLineRenderer",void 0),ae([l()],se.prototype,"timeMarkerRenderer",void 0),ae([l()],se.prototype,"dayViewTimedEventRenderer",void 0),ae([l()],se.prototype,"dayViewFullDayEventRenderer",void 0),ae([l()],se.prototype,"calendarView",void 0),ae([l()],se.prototype,"translationSlimmer",void 0),ae([l()],se.prototype,"isDateDisabled",void 0),ae([l()],se.prototype,"enableDateClick",void 0),ae([l()],se.prototype,"timezone",void 0);class le extends d{render(){const t=this.getTimeLineTitles();return e("div",{class:"time-line"},e("div",{class:"hour-empty"}),t.map(((t,i)=>e("div",{key:t},e("div",{class:"time-text","data-time":0===i?24:i},t)))))}getTimeLineTitles(){const e=[];if("12-hour"===this.timeFormat){e.push("12 AM");for(let t=1;t<12;t++)e.push(`${t} AM`);e.push("12 PM");for(let t=1;t<12;t++)e.push(`${t} PM`)}else for(let t=0;t<24;t++)e.push(`${E(t)}`);return e}}!function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);o>3&&a&&Object.defineProperty(t,i,a)}([l()],le.prototype,"timeFormat",void 0);const de=(e=0)=>{const t=[0,1,2,3,4,5,6];return t.concat(t).slice(e,e+7)};var ce;!function(e){e.sun="Sunday",e.mon="Monday",e.tue="Tuesday",e.wed="Wednesday",e.thu="Thursday",e.fri="Friday",e.sat="Saturday"}(ce||(ce={}));const he=(e,t)=>{const[i,n]=t.split(":");if("24-hour"===e)return`${i.padStart(2,"0")}:${n.padStart(2,"0")}`;{const e=Number(i),t=e>=12?"pm":"am",r=n.padStart(2,"0");return e>12?`${e-12}:${r} ${I.t("pm")}`:0===e?`12:${r} ${I.t("am")}`:`${e}:${r} ${I.t(t)}`}};function ve(e,t){if(e&&e!==pe())try{const i=new Intl.DateTimeFormat([],{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),n=i.find((e=>"year"===e.type)),r=i.find((e=>"month"===e.type)),o=i.find((e=>"day"===e.type));if(n&&r&&o){const e=parseInt(n.value,10);return{year:e,month:parseInt(r.value,10),date:parseInt(o.value,10)}}}catch(t){c.warn("Invalid timezone:",e)}return{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate()}}const pe=()=>Intl.DateTimeFormat().resolvedOptions().timeZone;class fe{constructor(){this.WEEKDAYS_SHORT=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.weekdays=de()}getWeekdayNames(){return this.WEEKDAYS_SHORT}generateDates(e){const t=e.startDate.toDate(),i=[];for(let n=0;n<e.count;n++)i.push(new Date(t)),t.setDate(t.getDate()+1);return i}generateWeekHead(){return this.weekdays.map((e=>this.getWeekdayNames()[e]))}}class we{constructor(e,t){this._weekdays=e,this._dateItems=t}get weekdays(){return this._weekdays}get dateItems(){return this._dateItems}}class ue extends fe{generate(e){return new we([this.generateWeekHead()[e.current.toDate().getDay()]],[[e.current]])}}class me{constructor(e,t,i){this._date=i,this._month=t,this._year=e}static from(e,t=pe()){const{year:i,month:n,date:r}=ve(t,e);return new me(i,n,r)}get year(){return this._year}set year(e){this._year=e}get month(){return this._month}set month(e){this._month=e}get date(){return this._date}set date(e){this._date=e}isToday(e=pe()){const{year:t,month:i,date:n}=ve(e,new Date);return t===this.year&&i===this.month&&n===this.date}toDate(){return new Date(this.year,this.month-1,this.date)}compare(e){const{year:t,month:i}=e,n={isPreviousMonth:!1,inMonth:!1,isNextMonth:!1};return this.year===t?this.month<i?n.isPreviousMonth=!0:this.month>i?n.isNextMonth=!0:n.inMonth=!0:this.year>t?n.isNextMonth=!0:n.isPreviousMonth=!0,n}equal(e){const{year:t,month:i,date:n}=e;return this._year===t&&this._month===i&&this._date===n}getMonthName(e=!1){return I.t(this.toDate().toLocaleDateString("en-US",{month:e?"short":"long"}))}}class ge extends fe{generate(e){const t=this.generateDates(e),i=e.showWeekends;let n=this.generateWeekHead(),r=[t.map((e=>me.from(e)))];return!1===i&&(n=n.slice(1,6),r=r.map((e=>e.slice(1,6)))),new we(n,r)}}class be extends fe{generate(e){const t=e.showWeekends;let i=[],n=[];this.generateDates(e).forEach(((e,t)=>{t%7||(i[t/7]=n=[]);const r=me.from(e);n.push(r)}));let r=this.generateWeekHead();return!1===t&&(r=r.slice(1,6),i=i.map((e=>e.slice(1,6)))),new we(r,i)}}class xe{constructor(e,t,i){this._count=e,this._timezone=i||pe(),this._current=t||me.from(new Date,this._timezone),this.calculatePeriod(this._current)}get current(){return this._current}get startDate(){return this._startDate}get endDate(){return this._endDate}get count(){return this._count}get type(){return this._type}get showWeekends(){return this._showWeekends}get timezone(){return this._timezone}goTo(e){return this.createBy(e)}now(){return this.createBy(me.from(new Date,this._timezone))}calculatePeriod(e){const t=e.toDate();this.count>1&&t.setDate(t.getDate()-de().indexOf(t.getDay())),this._startDate=me.from(t),t.setDate(t.getDate()+this.count-1),this._endDate=me.from(t)}}var ye;function ke(e,t=15){const[i,n]=e.split(":");return Math.round((60*Number(i)+Number(n))/t)}function Ce(e){return"vega-calendar-event-slot-"+e}function Re(e,t=ye.NEXT){const i=e.toDate().getDay();if(0===i||6===i){let n=0===i?1:2;return t===ye.PREVIOUS&&(n=0===i?-2:-1),me.from(new Date(e.year,e.month-1,e.date+n))}return e}function je(e="bg-accent6-primary"){return O(e)?`.event-bg-color{${M.formatToken(e)}}`:`.event-bg-color{background-color:${e}}`}!function(e){e.PREVIOUS="-1",e.NEXT="1"}(ye||(ye={}));class De extends xe{constructor(e,t,i){super(De.DISPLAY_DATE_COUNT,e,i),this._type="day",this._showWeekends=!0,this._showWeekends=!1!==t}next(){const e=this.current.toDate();e.setDate(e.getDate()+1);let t=me.from(e);return!1===this._showWeekends&&(t=Re(t)),this.createBy(t)}previous(){const e=this.current.toDate();e.setDate(e.getDate()-1);let t=me.from(e);return!1===this._showWeekends&&(t=Re(t,ye.PREVIOUS)),this.createBy(t)}now(){let e=me.from(new Date,this.timezone);return!1===this._showWeekends&&(e=Re(e)),this.createBy(e)}createBy(e){return new De(e,this._showWeekends,this.timezone)}}De.DISPLAY_DATE_COUNT=1;class Ee extends xe{constructor(e,t,i){super(Ee.DISPLAY_DATE_COUNT,e,i),this._type="week",this._showWeekends=!0,this._showWeekends=!1!==t}next(){const e=this.current.toDate();return e.setDate(e.getDate()+7),this.createBy(me.from(e))}previous(){const e=this.current.toDate();return e.setDate(e.getDate()-7),this.createBy(me.from(e))}createBy(e){return new Ee(e,this._showWeekends,this.timezone)}}Ee.DISPLAY_DATE_COUNT=7;class ze extends xe{constructor(e,t,i){super(ze.DISPLAY_DATE_COUNT,e,i),this._type="month",this._showWeekends=!0,this._showWeekends=!1!==t}static getMonthFirstDay(e,t){const i=e||me.from(new Date,t);return new me(i.year,i.month,1)}calculatePeriod(e){const t=ze.getMonthFirstDay(e).toDate();t.setDate(t.getDate()-de().indexOf(t.getDay())),this._startDate=me.from(t),t.setDate(t.getDate()+this.count-1),this._endDate=me.from(t)}next(){const e=this.current.toDate();return e.setMonth(e.getMonth()+1),this.createBy(me.from(e))}previous(){const e=this.current.toDate();return e.setMonth(e.getMonth()-1),this.createBy(me.from(e))}createBy(e){return new ze(e,this._showWeekends,this.timezone)}}ze.DISPLAY_DATE_COUNT=42;var Ie=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Me extends d{constructor(){super(...arguments),this.monthViewGenerator=new be,this.weekViewGenerator=new ge,this.dayViewGenerator=new ue}initialCalendarView(){this.setCalendarView(this.getCalendarViewByPeriod(this.currentPeriod))}generateCalendarView(e){this.setCalendarView(this.getCalendarViewByPeriod(e))}getCalendarViewByPeriod(e){switch(e.type){case"week":return this.weekViewGenerator.generate(e);case"day":return this.dayViewGenerator.generate(e);default:return this.monthViewGenerator.generate(e)}}setCalendarView(e){this.calendarView=e}}Ie([l({writable:!0})],Me.prototype,"calendarView",void 0),Ie([l()],Me.prototype,"currentPeriod",void 0),Ie([l()],Me.prototype,"showWeekends",void 0),Ie([l()],Me.prototype,"currentPeriodController",void 0),Ie([h("componentWillLoad")],Me.prototype,"initialCalendarView",null),Ie([h("watchCurrentPeriodChange")],Me.prototype,"generateCalendarView",null);var Oe=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Pe extends d{setCurrentPeriod(e){this.currentPeriod=e}updateCalendarPeriod(e,t){switch(e){case"month":this.setCurrentPeriod(new ze(t,this.showWeekends,this.timezone));break;case"week":this.setCurrentPeriod(new Ee(t,this.showWeekends,this.timezone));break;case"day":t=!1===this.showWeekends?Re(t):t,this.setCurrentPeriod(new De(t,this.showWeekends,this.timezone))}}initialCurrentPeriod(){this.updateCalendarPeriod(this.viewMode,me.from(new Date,this.timezone))}emitChangeEvent(e,t){e&&t&&e.startDate.equal(t.startDate)&&e.endDate.equal(t.endDate)||(e&&e.type!==this.viewMode&&(this.viewMode=e.type),this.changeEventEmitter.emit({viewMode:e.type,currentPeriod:this.getCurrentPeriodSummary()}))}updateCurrentPeriodByViewMode(e){this.currentPeriod&&e!==this.currentPeriod.type&&this.updateCalendarPeriod(e,this.currentPeriod.current)}updateCurrentPeriodAfterHideWeekEndsChange(){this.updateCalendarPeriod(this.viewMode,this.currentPeriod.current)}getCurrentPeriodSummary(){const{current:e,startDate:t,endDate:i}=this.currentPeriod;return{year:e.year,month:e.month,startDate:{date:t.date,month:t.month,year:t.year},endDate:{date:i.date,month:i.month,year:i.year}}}}Oe([l({writable:!0})],Pe.prototype,"currentPeriod",void 0),Oe([l()],Pe.prototype,"changeEventEmitter",void 0),Oe([l({writable:!0})],Pe.prototype,"viewMode",void 0),Oe([l()],Pe.prototype,"showWeekends",void 0),Oe([l()],Pe.prototype,"timezone",void 0),Oe([h("componentWillLoad")],Pe.prototype,"initialCurrentPeriod",null),Oe([h("watchCurrentPeriodChange")],Pe.prototype,"emitChangeEvent",null),Oe([h("watchViewModeChange")],Pe.prototype,"updateCurrentPeriodByViewMode",null),Oe([h("watchShowWeekendsChange")],Pe.prototype,"updateCurrentPeriodAfterHideWeekEndsChange",null);var Se=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Te extends d{constructor(){super(...arguments),this.maxMonthDisplayEventsCount=2,this.popoverHideObserver=null}getCurrentRowEvents(e){const t=[];return e.forEach((e=>{const i=this.calendarEventController.getCurrentDateEvents(e);t.push(i)})),this.fullDayEventLayoutRenderer.sortLongEvents(t)}filterRowDisplayEvents(e){const t=[];return e.forEach((e=>{const i=e.length>this.maxMonthDisplayEventsCount?e.slice(0,this.maxMonthDisplayEventsCount-1):e;t.push(i)})),this.hideTheCutOffEvents(e,t)}getMonthEventContainerRef(){return this.eventContainerRef}render(t,i,n,r){const o=i.slice(n.length).filter((e=>e)).length;return e("div",{class:"events-container",ref:e=>this.eventContainerRef=e},e("div",{class:"event-list"},this.fullDayEventLayoutRenderer.render(n,r,t)),this.renderMoreButton(i,o,t))}addMaxDisplayCountChange(){w.addUniqueObserverToNode(this.host,S,(e=>{this.maxMonthDisplayEventsCount!==e.detail&&(this.maxMonthDisplayEventsCount=e.detail,"month"===this.viewMode&&i(this.host))}))}renderMoreButton(t,i,n){if(i){const r=t.filter((e=>e&&(e.isAllDayEvent||e.isGroupEvent()))),o=t.filter((e=>e&&!e.isAllDayEvent&&!e.isGroupEvent()));return e("div",{class:"month-event-more"},e("vega-popover",{trigger:"click",placement:"right",padding:"0",ref:e=>{this.setPopoverHideObserver(e)},isScreenPosition:!0},e("div",{tabIndex:0,slot:"popover-content",role:"button",class:"more-button",onKeyDown:D()},`${i} More`),e("vega-flex",{slot:"popover"},e("vega-box",{padding:"size-12",width:256},e("vega-flex",{direction:"col",gap:"0",class:"group-events"},e("vega-font",{textAlign:"center",variant:"font-field-label",color:"text-primary",style:{padding:"4px 0",marginBottom:"8px"}},`${n.date} ${n.getMonthName()} ${n.year}`),e("vega-box",{maxHeight:"calc(60vh - 6px)",style:{overflowY:"auto"},padding:"size-4"},e("vega-flex",{direction:"col",gap:"size-4",style:{paddingBottom:o.length?"4px":"0px"}},r.map((e=>this.eventItemRenderer.render(e,{"month-event":!0,"calendar-event-large-size":!0,"calendar-event-in-popover":!0},n,!0)))),o.map((e=>this.eventItemRenderer.render(e,{"month-event":!0,"calendar-event-large-size":!0,"calendar-event-in-popover":!0},n,!0)))))),e("div",{class:"preview-container",ref:e=>{e?this.eventPreviewPopoverController.setEventPreviewContainerMap(t,n,e):this.eventPreviewPopoverController.deleteEventPreviewContainer(t,n)}}))))}}hideTheCutOffEvents(e,t){const i=[],n=[],r=t.map((e=>e[e.length-1])).filter((e=>e&&e.isGroupEvent()));return r.length&&r.forEach((i=>{e.filter((e=>e.includes(i))).length>t.filter((e=>e.includes(i))).length&&n.push(i)})),n.length?(t.forEach((e=>{e.length&&e[e.length-1]&&n.includes(e[e.length-1])?i.push(e.slice(0,e.length-1)):i.push(e)})),i):t}setPopoverHideObserver(e){e?(this.popoverHideObserver=new L((()=>!0),(async()=>await e.hide())),A.register(b.getSubject(this.host,T),this.popoverHideObserver)):this.popoverHideObserver&&A.unregister(b.getSubject(this.host,T),this.popoverHideObserver),e&&w.addUniqueObserverToNode(e,x,(()=>{A.notify(b.getSubject(this.renderer.getEventPreviewRef(),$),{})}))}}Se([l()],Te.prototype,"viewMode",void 0),Se([l()],Te.prototype,"host",void 0),Se([l()],Te.prototype,"calendarEventController",void 0),Se([l()],Te.prototype,"eventItemRenderer",void 0),Se([l()],Te.prototype,"fullDayEventLayoutRenderer",void 0),Se([l()],Te.prototype,"eventPreviewPopoverRenderer",void 0),Se([l()],Te.prototype,"renderer",void 0),Se([l()],Te.prototype,"eventPreviewPopoverController",void 0),Se([h("componentWillLoad")],Te.prototype,"addMaxDisplayCountChange",null);class $e{constructor(e,t,i,n){this.repeatStartDate=e,this.interval=t,this.count=i,this.until=n}getRepeatSeries(e,t=1){return this.generateRepeatDateCacheUntilEndDate(e.endDate),this.cache.filter((i=>this.isSeriesInPeriod(i,t,e)))}isSeriesInPeriod(e,t,i){const n=e.toDate(),r=new Date(e.year,e.month-1,e.date+t-1),{startDate:o,endDate:a}=i,s=o.toDate(),l=a.toDate();return n>=s&&n<=l||r>=s&&r<=l||n<=s&&r>=l}generateRepeatEndsString(){return this.until?` ${I.t("until {0}",`${this.until.getMonthName()} ${this.until.date}, ${this.until.year}`)}`:this.count?` ${I.t("after {0} occurrences",this.count)}`:""}}$e.daySeconds=864e5;class Ve extends $e{constructor(e,t,i,n){super(e,t,i,n),this.initCache()}generateRepeatString(){return(this.interval>1?I.t("Repeat every {0} days",this.interval):I.t("Repeat daily"))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t.toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i.toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e.toDate()<=i.toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.cache.length>=this.count)break}}}initCache(){this.cache=[this.repeatStartDate]}getNextRepeatStartDate(e){const t=new Date(e.year,e.month-1,e.date+this.interval),i=me.from(t);return this.until&&t>this.until.toDate()||"number"==typeof this.count&&this.cache.length>=this.count?null:(this.cache.push(i),i)}}class Le extends $e{constructor(e,t,i,n){super(e,t,i,n),this.byMonthDay=this.repeatStartDate.date,this.initCache()}generateRepeatString(){return(this.interval>1?I.t("Repeat every {0} months on day {1}",this.interval,this.byMonthDay):I.t("Repeat monthly on day {0}",this.byMonthDay))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t.toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i.toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e.toDate()<=i.toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.cache.length>=this.count)break}}}initCache(){this.cache=[this.repeatStartDate]}getNextRepeatStartDate(e){const t=this.getNextStartDate(e.year,e.month-1+this.interval),i=me.from(t);return this.until&&t>this.until.toDate()||"number"==typeof this.count&&this.cache.length>=this.count?null:(this.cache.push(i),i)}getNextStartDate(e,t){const i=new Date(e,t,this.byMonthDay);return i.getDate()===this.byMonthDay?i:this.getNextStartDate(e,t+1)}}class Ae extends $e{constructor(e,t,i,n,r){super(e,t,i,n),this.byWeekDay=this.sortWeekDay(r),this.initCache()}getRepeatSeries(e,t=1){return this.generateRepeatDateCacheUntilEndDate(e.endDate),this.getValidCache().filter((i=>this.isSeriesInPeriod(i,t,e)))}generateRepeatString(){const e=this.byWeekDay.map((e=>I.t(ce[e])));return(this.interval>1?I.t("Repeat every {0} weeks on {1}",this.interval,e.join(", ")):I.t("Repeat weekly on {0}",e.join(", ")))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t[0].toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i[0].toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e[0]&&e[0].toDate()<=i[0].toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.getValidCache().length>=this.count)break}}}getNextRepeatStartDate(e){const t=this.getNextStartDates(e);if(0===t.length||"number"==typeof this.count&&this.getValidCache().length>=this.count)return null;{const e=t.map((e=>me.from(e)));return this.cache.push(e),e}}getNextStartDates(e){return e.map((e=>new Date(e.year,e.month-1,e.date+7*this.interval))).filter((e=>!this.until||e<=this.until.toDate()))}initCache(){const e=[],t=this.getCurrentDayIndex(this.repeatStartDate);this.byWeekDay.forEach((i=>{const n=Ae.weekDay.indexOf(i)-t,{year:r,month:o,date:a}=this.repeatStartDate,s=me.from(new Date(r,o-1,a+n));(!this.until||s.toDate()<=this.until.toDate())&&e.push(s)})),this.cache=[e]}sortWeekDay(e){return e&&e.length?e.map((e=>e.toLocaleLowerCase())).sort(((e,t)=>Ae.weekDay.indexOf(e)-Ae.weekDay.indexOf(t))):[Ae.weekDay[this.getCurrentDayIndex(this.repeatStartDate)]]}getCurrentDayIndex(e){return e.toDate().getDay()}getValidCache(){const e=B(this.cache.slice(1));return this.cache[0].filter((e=>e.toDate()>=this.repeatStartDate.toDate())).concat(e).slice(0,"number"==typeof this.count?this.count:void 0)}}Ae.weekDay=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((e=>e.toLowerCase()));class Be extends $e{constructor(e,t,i,n){super(e,t,i,n),this.matchDay=this.repeatStartDate.date,this.matchMonth=this.repeatStartDate.month,this.initCache()}generateRepeatString(){const e=I.t(this.repeatStartDate.getMonthName());return(this.interval>1?I.t("Repeat every {0} years on {1} {2}",this.interval,e,this.matchDay):I.t("Repeat yearly on {0} {1}",e,this.matchDay))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t.toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i.toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e.toDate()<=i.toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.cache.length>=this.count)break}}}getNextRepeatStartDate(e){const t=this.getNextStartDate(e.year+this.interval),i=me.from(t);return this.until&&t>this.until.toDate()||"number"==typeof this.count&&this.cache.length>=this.count?null:(this.cache.push(i),i)}getNextStartDate(e){const t=new Date(e,this.matchMonth-1,this.matchDay);return t.getDate()===this.matchDay&&t.getMonth()+1===this.matchMonth?t:this.getNextStartDate(e+1)}initCache(){this.cache=[this.repeatStartDate]}}const Ne=new class{getPattern(e,t,i=pe()){const n=me.from(e),{frequency:r,interval:o=1,byWeekDay:a,until:s,count:l}=t,d=this.initDate(s,i);return this.initRepeatPattern(r,n,o<1?1:o,l,d,a)}initDate(e,t){if(e)return me.from(new Date(e),t)}initRepeatPattern(e,t,i,n,r,o){switch(e){case"daily":return new Ve(t,i,n,r);case"weekly":return new Ae(t,i,n,r,o);case"monthly":return new Le(t,i,n,r);default:return new Be(t,i,n,r)}}},Fe=/^\d{1,2}\/\d{1,2}\/\d{4}/,We=/^\d{1,2}:\d{1,2}/;class He{constructor(e,t,i){this._eventSpansDays=1,this.repeatPattern=null,this._event=e,this._eventKey=t||N(),this._timezone=i||pe(),this.checkEventRequireField(e),this.initDate(e),this.initEventSpansDays(),this.initRepeatPattern()}get event(){return this._event}get eventKey(){return this._eventKey}get title(){return this._event.title}get disabled(){return!!this._event.disabled}get variant(){return this._event.variant}get color(){return this._event.color}get isAllDayEvent(){return!!this._event.isAllDay}get isRepeatEvent(){return null!==this.repeatPattern}get startDate(){return this._startDate}get endDate(){return this._endDate}get startTime(){return this._startTime}get endTime(){return this._endTime}get eventSpansDays(){return this._eventSpansDays}copyTo(e,t){const i=this._eventSpansDays>1?new Date(t.year,t.month-1,t.date+(this._eventSpansDays-1)):t.toDate();return new He(Object.assign(Object.assign({},this._event),{startDate:t.toDate(),endDate:i,startTime:this.startTime,endTime:this.endTime}),e)}isGroupEvent(){return this._eventSpansDays>1}isCurrentDayEvent(e){const{startDate:t,endDate:i}=this,n=me.from(t),r=me.from(new Date(i.getFullYear(),i.getMonth(),i.getDate()+1)),o=e.toDate();return n.toDate()<=o&&r.toDate()>o}generateRepeatString(){var e;return(null===(e=this.repeatPattern)||void 0===e?void 0:e.generateRepeatString())||""}generateDateTimeString(e,t){const i=I.t(Object.values(ce)[e.toDate().getDay()]),n=he(t,this.startTime),r=he(t,this.endTime);return`${i}, ${e.date} ${e.getMonthName(!0)} ${e.year} ${n} - ${r}`}getEventDuration(){const[e,t]=this.startTime.split(":"),[i,n]=this.endTime.split(":"),r=me.from(new Date,this._timezone),o=new Date(r.year,r.month,r.date,Number(e),Number(t));return(new Date(r.year,r.month,r.date,0===Number(i)&&0!==Number(e)?24:Number(i),Number(n)).valueOf()-o.valueOf())/6e4}getRepeatSeries(e){return this.repeatPattern?this.repeatPattern.getRepeatSeries(e,this._eventSpansDays):[]}updateTimezone(e){this._timezone=e,this.initDate(this._event),this.initEventSpansDays(),this.initRepeatPattern()}convertTimeTo24Hour(e){if((e=e.toLocaleLowerCase()).indexOf("am")>0||e.indexOf("pm")>0){if(e.indexOf("am")>0){e=e.replace("am","").trim();const[t,i]=e.split(":");return`${"12"===t?"00":t}:${i}`}{e=e.replace("pm","").trim();const[t,i]=e.split(":");return`${"12"===t?"12":Number(t)+12}:${i}`}}return e}checkEventRequireField(e){const{title:t,startDate:i,endDate:n,startTime:r,endTime:o}=e;if(i&&"string"==typeof i&&!Fe.test(i)||n&&"string"==typeof n&&!Fe.test(n))throw new Error("Invalid calendar event item, the date format should be MM/DD/YYYY!");if(r&&"string"==typeof r&&!We.test(r)||o&&"string"==typeof o&&!We.test(o))throw new Error("Invalid calendar event item, the time format should be HH:mm!");if(!t||!i||!n&&!o)throw new Error("Invalid calendar event item, the required field should not empty!")}initDate(e){const{startDate:t,startTime:i,endDate:n,endTime:r}=e,o=this.processStartDate(t,i||"");this._startTime=this.formatTimeForDisplay(this._startDate,i||""),this.processEndDate(n||"",r||"",o),this._endTime=this.formatTimeForDisplay(this._endDate,r||"")}processStartDate(e,t){let i,n;if(e&&"object"==typeof e)i={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n=e;else if(e&&"string"==typeof e){const[t,r,o]=e.split("/");i={year:Number(o),month:Number(t)-1,date:Number(r)},n=new Date(i.year,i.month,i.date)}if(t&&i&&n){const{timeHours:e,timeMinutes:r}=this.getCurrentHourAndMinutes(t);n=new Date(i.year,i.month,i.date,e,r,0)}return n&&(this._startDate=this.convertDateToTimezone(n)),i}processEndDate(e,t,i){let n;if(e&&"object"==typeof e)n=e;else if(e&&"string"==typeof e){const[t,i,r]=e.split("/");n=new Date(Number(r),Number(t)-1,Number(i),23,59,59)}else i&&(n=new Date(i.year,i.month,i.date,23,59,59));if(t&&n){const{timeHours:e,timeMinutes:i}=this.getCurrentHourAndMinutes(t,23,59);n=new Date(n.getFullYear(),n.getMonth(),n.getDate(),e,i,59)}n&&(this._endDate=this.convertDateToTimezone(n))}formatTimeForDisplay(e,t){if(Boolean(t)&&this._timezone===pe()){const i=this.convertTimeTo24Hour(t),[n,r]=i.split(":");return`${e.getHours().toString().padStart(n.length,"0")}:${e.getMinutes().toString().padStart(r.length,"0")}`}return`${e.getHours()}:${e.getMinutes()}`}getCurrentHourAndMinutes(e,t=0,i=0){let n=t,r=i;if(e){const t=this.convertTimeTo24Hour(e).split(":");n=Number(t[0]),r=Number(t[1])}return{timeHours:n,timeMinutes:r}}convertDateToTimezone(e){if(this._timezone&&this._timezone!==pe())try{const t=new Intl.DateTimeFormat([],{timeZone:this._timezone,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(e),i=t.find((e=>"year"===e.type)),n=t.find((e=>"month"===e.type)),r=t.find((e=>"day"===e.type)),o=t.find((e=>"hour"===e.type)),a=t.find((e=>"minute"===e.type)),s=t.find((e=>"second"===e.type));if(i&&n&&r&&o&&a&&s){const e=parseInt(i.value,10),t=parseInt(n.value,10),l=parseInt(r.value,10),d=parseInt(o.value,10),c=parseInt(a.value,10),h=parseInt(s.value,10);return new Date(e,t-1,l,d,c,h)}}catch(e){c.warn("Invalid timezone:",this._timezone)}return e}initRepeatPattern(){this._event.repeatOptions&&this._event.repeatOptions.frequency&&(this.repeatPattern=Ne.getPattern(this._startDate,this._event.repeatOptions,this._timezone))}initEventSpansDays(){const e=me.from(this.startDate),t=me.from(this.endDate);this._eventSpansDays=(t.toDate().valueOf()-e.toDate().valueOf())/864e5+1}}var _e=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ue extends d{constructor(){super(...arguments),this.repeatEventMap=new Map}getCurrentDateEvents(e){return this.createRepeatEvents().filter((t=>t.isCurrentDayEvent(e)))}updateAfterEventChange(e){this.initCalendarEvents(e),this.repeatEventMap.clear()}updateWhenComponentWillLoad(){this.initCalendarEvents(this.events)}updateAfterTimezoneChange(){this.calendarEvents.length>0&&this.calendarEvents.forEach((e=>e.updateTimezone(this.timezone))),A.notify(b.getSubject(this.host,T),{}),this.repeatEventMap.clear()}initCalendarEvents(e){const t=[];e&&e.forEach((e=>{try{const i=new He(e,void 0,this.timezone);t.push(i)}catch(t){c.warn("Invalid calendar event item:",e)}})),this.calendarEvents=t}createRepeatEvents(){const e=[],t=[];return this.calendarEvents.forEach((i=>{i.isRepeatEvent?i.getRepeatSeries(this.currentPeriod).forEach((e=>{t.push(this.generateCalendarEventByRepeatSeries(i,e))})):e.push(i)})),t.concat(e)}generateCalendarEventByRepeatSeries(e,t){const i=`${e.eventKey}-${t.year}${t.month}${t.date}`;if(this.repeatEventMap.has(i))return this.repeatEventMap.get(i);{const n=e.copyTo(i,t);return this.repeatEventMap.set(i,n),n}}}_e([l()],Ue.prototype,"host",void 0),_e([l({writable:!0})],Ue.prototype,"calendarEvents",void 0),_e([l()],Ue.prototype,"currentPeriod",void 0),_e([l()],Ue.prototype,"events",void 0),_e([l()],Ue.prototype,"timezone",void 0),_e([h("watchEventsChange")],Ue.prototype,"updateAfterEventChange",null),_e([h("componentWillLoad")],Ue.prototype,"updateWhenComponentWillLoad",null),_e([h("watchTimezoneChange")],Ue.prototype,"updateAfterTimezoneChange",null);var Ye=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ze extends d{render(t,i,n,r=!1){return e("vega-calendar-event",{"data-calendar-ref":this.host,key:`${t.eventKey}-${t.startTime}-${t.endTime}`,calendarEvent:t,class:i,onKeyDown:D(),onClick:()=>{this.handleEventClick(t),this.enabledEventPreview&&this.setupPreviewContainer(t,n,r)}},!t.isRepeatEvent&&e("slot",{name:Ce(t.event.key)}))}handleEventClick(e){this.eventClickEmitter.emit({rawEvent:e.event})}setupPreviewContainer(e,t,i){const n=this.eventPreviewPopoverController.getEventPreviewContainer(e,t,i);if(n){const r=this.renderer.getEventPreviewRef();i?(r.classList.remove("single-event-preview"),r.classList.add("group-event-preview")):(r.classList.remove("group-event-preview"),r.classList.add("single-event-preview")),A.notify(b.getSubject(r,V),{event:e,targetCalendarViewDate:t,timeFormat:this.timeFormat});const o=this.host.querySelector("[slot=event-preview-additional-fields]");o&&r.append(o);const a=Ce(e.event.key),s=this.host.querySelector(`[slot=${a}]`),l=r.querySelector(`[slot=${a}]`);s&&!l&&r.append(s.cloneNode(!0)),n.append(r)}}}Ze.backgroundColorModeEventHeight=18,Ye([l()],Ze.prototype,"host",void 0),Ye([l()],Ze.prototype,"calendarView",void 0),Ye([l()],Ze.prototype,"eventClickEmitter",void 0),Ye([l()],Ze.prototype,"timeFormat",void 0),Ye([l()],Ze.prototype,"enabledEventPreview",void 0),Ye([l()],Ze.prototype,"renderer",void 0),Ye([l()],Ze.prototype,"eventPreviewPopoverController",void 0);var Ke=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class qe extends F{constructor(){super({target:()=>this.host,callback:()=>this.updateMaxDisplayCountWithDebounce()}),this.updateMaxDisplayCountWithDebounce=W(this.updateMaxDisplayCount,500,this)}updateMaxDisplayCount(){try{const e=this.monthEventRenderer.getMonthEventContainerRef();if("month"===this.viewMode&&e&&e.parentElement){const t=e.parentElement.getBoundingClientRect().height,i=Math.floor((t-qe.monthDateTitleHeight)/Ze.backgroundColorModeEventHeight);A.notify(b.getSubject(this.host,S),{host:this.host,detail:i})}}catch(e){}}updateMaxDisplayCountAfterSwitchToMonthView(e){"month"===e&&this.updateMaxDisplayCountWithDebounce()}}qe.monthDateTitleHeight=26,Ke([l()],qe.prototype,"host",void 0),Ke([l()],qe.prototype,"monthEventRenderer",void 0),Ke([l()],qe.prototype,"viewMode",void 0),Ke([h("componentDidLoad")],qe.prototype,"updateMaxDisplayCount",null),Ke([h("watchViewModeChange")],qe.prototype,"updateMaxDisplayCountAfterSwitchToMonthView",null);var Xe=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ge extends d{render(){const t=this.calendarView.dateItems[0],i=t.map((e=>this.calendarEventController.getCurrentDateEvents(e).filter((e=>e.isAllDayEvent||e.isGroupEvent())))),n=this.fullDayEventLayoutRenderer.sortLongEvents(i),r=this.filterDisplayEvents(n);return e("div",{class:"calendar-view-event-all"},t.map(((t,i)=>e("div",{class:"event-all-col border-divider-left",key:t.date},this.renderCurrentFullDayEvents(r[i],i,n[i],t)))))}renderCurrentFullDayEvents(i,n,r,o){const a=i.length*Ze.backgroundColorModeEventHeight-2,s=r.slice(i.length).filter(Boolean).length;return e(t,null,e("div",{class:"placeholder-block",style:{height:a+"px"}},e("span",null,i.length," events")),this.fullDayEventLayoutRenderer.render(i,n,o),s>0&&this.dayViewFullDayEventMoreButtonRenderer.render(s))}filterDisplayEvents(e){if(this.showAllEventsInDayOrWeekView)return e;{const t=[],i=Ge.maxDisplayEventLength;return e.forEach((e=>{const n=e.length>i?e.slice(0,i):e;t.push(n)})),t}}}Ge.maxDisplayEventLength=2,Xe([l()],Ge.prototype,"calendarView",void 0),Xe([l()],Ge.prototype,"calendarEventController",void 0),Xe([l()],Ge.prototype,"eventItemRenderer",void 0),Xe([l()],Ge.prototype,"fullDayEventLayoutRenderer",void 0),Xe([l()],Ge.prototype,"showAllEventsInDayOrWeekView",void 0),Xe([l()],Ge.prototype,"dayViewFullDayEventMoreButtonRenderer",void 0);var Qe=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Je extends d{render(t,i){const n=[];return t.eventLayoutCells.forEach(((r,o)=>{let a=r.getEventBySlotIndex(0),s=0;for(let l=0;l<Je.totalNumberOfCells;l++){const d=r.getEventBySlotIndex(l);d!==a&&(a&&n.push(e("div",{key:o,class:"time-event-block",style:this.getTimeEventStyle(s,l,o,t.getEventColumnsSpannedCount(a))},this.eventPreviewPopoverRenderer.render(a,i,{"day-event":!0,"bg-shadow":o>0}))),a=d,s=l)}})),n}getTimeEventStyle(e,t,i,n){const r=i*(1/n);return{position:"absolute",left:100*r+"%",top:100/Je.totalNumberOfCells*e+"%",width:`calc(100% - ${100*r}%)`,height:100/Je.totalNumberOfCells*(t-e)+"%",zIndex:i>0?`${i}`:void 0}}}Je.totalNumberOfCells=96,Qe([l()],Je.prototype,"eventItemRenderer",void 0),Qe([l()],Je.prototype,"eventPreviewPopoverRenderer",void 0);class et{addCurrentEventToLayout(e,t){let i=e.find((e=>!e.hasOverlapEvent(t)));i?i.updateSlots(t):(i=this.createNewLayoutCell(),i.updateSlots(t),e.push(i))}}class tt{get eventLayoutCells(){return this.cells}}class it extends tt{constructor(e){super(),this.cells=e}getEventColumnsSpannedCount(e){const t=this.cells.findIndex((t=>t.getEventStartIndex(e)>=0));let i=t+1;return t<this.cells.length-1&&this.cells.slice(t+1).forEach((t=>{t.hasOverlapEvent(e)&&i++})),i}}class nt{getEventBySlotIndex(e){return this.slots[e]}getEventStartIndex(e){return this.slots.findIndex((t=>t===e))}getEventEndIndex(e){const t=this.getEventStartIndex(e);let i=t;if(t>=0)for(let n=t+1;n<this.slots.length;n++){if(this.slots[n]!==e){i=n-1;break}n===this.slots.length-1&&(i=n)}return i}}class rt extends nt{constructor(){super(...arguments),this.slots=rt.defaultSlots}hasOverlapEvent(e){const[t,i]=this.getIndexRangeFromEvent(e);let n=!1;for(let e=t;e<i;e++)if(this.slots[e]){n=!0;break}return n}updateSlots(e){const[t,i]=this.getIndexRangeFromEvent(e);i>t&&(this.slots=this.slots.slice(0,t).concat(Array(i-t).fill(e),this.slots.slice(i)))}getIndexRangeFromEvent(e){const{startTime:t,endTime:i}=e;return[ke(t),ke(i)]}}rt.defaultSlots=Array(96).fill(null);class ot extends et{generate(e){const t=[new rt];return e.forEach((e=>{this.addCurrentEventToLayout(t,e)})),new it(t)}createNewLayoutCell(){return new rt}}class at{sort(e,t,i){const n=[],r=[],o=[];for(let t=0;t<e.length;t++){const i=e[t];i&&(i.isGroupEvent()?r.push(i):i.isAllDayEvent?n.push(i):o.push(i))}let a=n.concat(this.sortCalendarEventByTime(o)),s=i.getEventsByIndex(t);const l=s.filter((e=>e));if(a=r.filter((e=>l.findIndex((t=>t===e))<0)).concat(a),s.length>l.length){const e=a.slice(0,s.length-l.length);a=a.slice(s.length-l.length),s=this.insertEventsToEmptyPosition(s,e)}return a=s.concat(a),a}sortCalendarEventByTime(e){return e.sort(((e,t)=>{const i=ke(e.startTime),n=ke(t.startTime);return i===n?ke(t.endTime)-ke(e.endTime):i-n}))}insertEventsToEmptyPosition(e,t){return e.map((e=>{if(t.length&&!e){const e=t[0];return t=t.slice(1),e}return e}))}}var st=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class lt extends d{constructor(){super(...arguments),this.calendarEventSorter=new at,this.dayViewTimedEventLayoutGenerator=new ot}render(){return e("div",{class:"day-event-container"},this.calendarView.dateItems[0].map((t=>e("div",{key:`${t.month}-${t.date}`,class:"day-event-col"},this.renderTimedEvents(t)))))}renderTimedEvents(e){const t=this.calendarEventController.getCurrentDateEvents(e).filter((e=>!e.isAllDayEvent&&!e.isGroupEvent())),i=this.calendarEventSorter.sortCalendarEventByTime(t),n=this.dayViewTimedEventLayoutGenerator.generate(i);return this.dayViewEventLayoutRenderer.render(n,e)}}st([l()],lt.prototype,"calendarView",void 0),st([l()],lt.prototype,"calendarEventController",void 0),st([l()],lt.prototype,"dayViewEventLayoutRenderer",void 0);class dt extends tt{constructor(e){super(),this.cells=e}getEventRowsIndex(e){return this.cells.findIndex((t=>t.getEventStartIndex(e)>=0))}getEventsByIndex(e){const t=[];let i=0;return this.cells.forEach(((n,r)=>{const o=n.getEventBySlotIndex(e);t.push(o),o&&(i=r)})),t.slice(0,i+1)}}class ct extends nt{constructor(){super(...arguments),this.slots=ct.defaultSlots}updateSlots(e){const{start:t,end:i}=e;this.slots=this.slots.slice(0,t).concat(Array(i-t+1).fill(e.event),this.slots.slice(i+1))}hasOverlapEvent(e){const{start:t,end:i}=e;let n=!1;for(let e=t;e<i+1;e++)if(this.slots[e]){n=!0;break}return n}}ct.defaultSlots=Array(7).fill(null);class ht extends et{generate(e){const t=this.collectAllShouldOrderLongEvents(e),i=[this.createNewLayoutCell()];return t.forEach((e=>{this.addCurrentEventToLayout(i,e)})),new dt(i)}createNewLayoutCell(){return new ct}collectAllShouldOrderLongEvents(e){const t={};e.forEach(((e,i)=>{e.filter((e=>e&&e.isGroupEvent())).forEach((e=>{t[e.eventKey]=t[e.eventKey]?Object.assign(Object.assign({},t[e.eventKey]),{end:i,start:i-t[e.eventKey].end!=1?i:t[e.eventKey].start}):{start:i,end:i,event:e}}))}));const i=Object.values(t);return this.sortLongEventViews(i)}sortLongEventViews(e){return e.sort(((e,t)=>{const{startDate:i,endDate:n}=e.event,{startDate:r,endDate:o}=t.event;i.setHours(0,0,0),r.setHours(0,0,0),n.setHours(23,59,59),o.setHours(23,59,59);const a=o.valueOf()-r.valueOf()-(n.valueOf()-i.valueOf());return i.valueOf()!==r.valueOf()?i.valueOf()-r.valueOf():a}))}}var vt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class pt extends d{constructor(){super(...arguments),this.longEventLayoutGenerator=new ht,this.calendarEventSorter=new at}sortLongEvents(e){return this.fullDayEventLayout=this.longEventLayoutGenerator.generate(e),e.map(((e,t)=>this.calendarEventSorter.sort(e,t,this.fullDayEventLayout)))}render(t,i,n){return t.map(((t,r)=>{if(t)return e("div",{key:t.eventKey,class:"month"===this.viewMode?"month-event-block":"day-event-block",style:this.getEventStyle(t,i,r,"month"===this.viewMode?pt.monthViewEventOffsetTop:0)},this.eventPreviewPopoverRenderer.render(t,n,{"month-event":"month"===this.viewMode,"day-event":"month"!==this.viewMode}))}))}getEventStyle(e,t,i,n){const r=this.calendarView.weekdays.length,o=t;let a=t+1;const s=i;let l=!0;const d=this.fullDayEventLayout.getEventRowsIndex(e);if(d>=0){const i=this.fullDayEventLayout.eventLayoutCells[d].getEventStartIndex(e),n=this.fullDayEventLayout.eventLayoutCells[d].getEventEndIndex(e);i===t?a=n+1:l=!1}return{position:"absolute",left:100/r*o+"%",top:`${s*Ze.backgroundColorModeEventHeight+n}px`,width:100/r*(a-o)+"%",opacity:l?"1":"0"}}}pt.monthViewEventOffsetTop=26,vt([l()],pt.prototype,"eventItemRenderer",void 0),vt([l()],pt.prototype,"viewMode",void 0),vt([l()],pt.prototype,"calendarView",void 0),vt([l()],pt.prototype,"eventPreviewPopoverRenderer",void 0);var ft=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class wt extends d{constructor(){super(...arguments),this.updateShowAllFlag=e=>{e.stopPropagation(),this.showAllEventsInDayOrWeekView=!0}}render(t){if(!this.showAllEventsInDayOrWeekView)return e("div",{tabIndex:0,role:"button",class:"more-button",onKeyDown:D(),onClick:this.updateShowAllFlag},`${t} More`)}resetShowAllFlag(){this.showAllEventsInDayOrWeekView=!1}}ft([l({writable:!0})],wt.prototype,"showAllEventsInDayOrWeekView",void 0),ft([h("watchViewModeChange")],wt.prototype,"resetShowAllFlag",null);var ut=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class mt extends d{render(t){const i=t.findIndex((e=>e.isToday(this.timezone)))>=0;return e("div",{class:{"time-marker-container":!0,hidden:!i}},e("div",{class:"time-marker",style:{top:this.getTimeMarkerPosition()},ref:e=>this.timeMarkerRef=e},t.map((t=>e("div",{key:t.date,class:{active:t.isToday(this.timezone)}})))))}updateTimeLine(e){this.scrollToTargetTimeBlock(e),this.syncTimeMarkerPosition(e)}clearTimer(){clearInterval(this.timeMarkerPositionTimer)}updateTimeLineIfComponentAddBack(){this.syncTimeMarkerPosition(this.viewMode)}displayCurrentTimeBlockByDefault(){this.scrollToTargetTimeBlock(this.viewMode)}getTimeMarkerPosition(){const e=new Date;if(this.timezone&&this.timezone!==pe())try{const t=new Intl.DateTimeFormat([],{timeZone:this.timezone,hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(e),i=t.find((e=>"hour"===e.type)),n=t.find((e=>"minute"===e.type));if(void 0!==i&&void 0!==n){return(60*parseInt(i.value,10)+parseInt(n.value,10))/1440*100+"%"}}catch(e){c.warn("Invalid timezone:",this.timezone)}return(60*e.getHours()+e.getMinutes())/1440*100+"%"}syncTimeMarkerPosition(e){clearInterval(this.timeMarkerPositionTimer),"month"!==e&&(this.timeMarkerPositionTimer=setInterval((()=>{this.timeMarkerRef&&(this.timeMarkerRef.style.top=this.getTimeMarkerPosition())}),6e4))}scrollToTargetTimeBlock(e){"month"!==e&&setTimeout((()=>{const e=this.viewRenderer.getCalendarViewElementRef(),t=Math.max(0,this.getViewCenterPosition());e&&t&&e.scrollTo({top:t})}),16)}getViewCenterPosition(){const e=this.viewRenderer.getCalendarViewElementRef();if(e){const t=e.querySelector(".calendar-view-title-container"),i=t?t.offsetHeight:0,n=Math.max(("number"==typeof e.offsetHeight?e.offsetHeight:0)-i,0)/2,r="number"==typeof e.scrollHeight?e.scrollHeight:0,o=16,a=Number(this.getTimeMarkerPosition().replace("%",""))/100*Math.max(r-o-i,0);if(!isNaN(n)&&a&&a>n)return a-n+o}return 0}}ut([l()],mt.prototype,"viewMode",void 0),ut([l()],mt.prototype,"viewRenderer",void 0),ut([l()],mt.prototype,"timezone",void 0),ut([h("watchViewModeChange")],mt.prototype,"updateTimeLine",null),ut([h("disconnectedCallback")],mt.prototype,"clearTimer",null),ut([h("connectedCallback")],mt.prototype,"updateTimeLineIfComponentAddBack",null),ut([h("componentDidLoad")],mt.prototype,"displayCurrentTimeBlockByDefault",null);var gt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class bt extends d{setPostOperationDate(e){this.postOperationDate=e}setDate(e,t){if(e.current!==this.postOperationDate)if(this.shouldSetCurrentDateToFirstDayOfMonth(e,t)){const t=e.current.toDate();t&&(t.setDate(1),this.setPostOperationDate(me.from(t)))}else this.setPostOperationDate(me.from(e.current.toDate()))}updateAfterTimezoneChange(){this.postOperationDate=me.from(new Date,this.timezone)}shouldSetCurrentDateToFirstDayOfMonth(e,t){return"month"===e.type&&"month"===(null==t?void 0:t.type)&&!e.current.equal(me.from(new Date,this.timezone))}}gt([l({writable:!0})],bt.prototype,"postOperationDate",void 0),gt([l()],bt.prototype,"timezone",void 0),gt([h("watchCurrentPeriodChange")],bt.prototype,"setDate",null),gt([h("watchTimezoneChange")],bt.prototype,"updateAfterTimezoneChange",null);var xt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class yt extends d{constructor(){super(...arguments),this.popoverHideObserver=null}render(e,t,i){return this.enabledEventPreview?this.renderPreviewPopover(e,i,t):this.eventItemRenderer.render(e,i,t)}renderPreviewPopover(t,i,n){return e("vega-popover",{placement:"day"===this.viewMode?"top":"right",alignment:"center",class:{"event-preview-popover":!0,block:!0},padding:"0",size:yt.SINGLE_EVENT_PREVIEW_WIDTH,ref:e=>{this.setPopoverHideObserver(e)}},e("div",{slot:"popover-content",class:"event-preview-popover-content"},this.eventItemRenderer.render(t,i,n)),e("div",{slot:"popover"},e("div",{class:"preview-container",ref:e=>{e?this.eventPreviewPopoverController.setEventPreviewContainerMap(t,n,e):this.eventPreviewPopoverController.deleteEventPreviewContainer(t,n)}})))}setPopoverHideObserver(e){e?(this.popoverHideObserver=new L((()=>!0),(async()=>await e.hide())),A.register(b.getSubject(this.host,T),this.popoverHideObserver)):this.popoverHideObserver&&A.unregister(b.getSubject(this.host,T),this.popoverHideObserver)}}yt.SINGLE_EVENT_PREVIEW_WIDTH=400,xt([l()],yt.prototype,"host",void 0),xt([l()],yt.prototype,"renderer",void 0),xt([l()],yt.prototype,"viewMode",void 0),xt([l()],yt.prototype,"timeFormat",void 0),xt([l()],yt.prototype,"eventItemRenderer",void 0),xt([l()],yt.prototype,"enabledEventPreview",void 0),xt([l()],yt.prototype,"eventPreviewPopoverController",void 0);class kt extends d{constructor(){super(...arguments),this.singleEventPreviewContainerMap=new Map,this.groupEventsPreviewContainerMap=new Map}setEventPreviewContainerMap(e,t,i){(Array.isArray(e)?this.groupEventsPreviewContainerMap:this.singleEventPreviewContainerMap).set(this.generateMapKey(e,t),i)}deleteEventPreviewContainer(e,t){(Array.isArray(e)?this.groupEventsPreviewContainerMap:this.singleEventPreviewContainerMap).delete(this.generateMapKey(e,t))}getEventPreviewContainer(e,t,i){const n=i?this.groupEventsPreviewContainerMap:this.singleEventPreviewContainerMap,r=this.generateMapKey(e,t);if(n.has(r))return n.get(r);{const i=this.getDateString(t),r=Array.from(n.keys()).find((t=>t.includes(e.eventKey)&&t.endsWith(i)));if(r)return n.get(r)}}clearAllPreviewContainers(){this.singleEventPreviewContainerMap.clear(),this.groupEventsPreviewContainerMap.clear()}generateMapKey(e,t){const i=this.getDateString(t);return Array.isArray(e)?e.filter((e=>e)).map((e=>e.eventKey)).join("-")+i:e.eventKey+i}getDateString(e){return`-${e.year}-${e.month}-${e.date}`}}!function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);o>3&&a&&Object.defineProperty(t,i,a)}([h("watchTimezoneChange")],kt.prototype,"clearAllPreviewContainers",null);var Ct=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Rt=class{constructor(e){n(this,e),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.vegaEventClick=r(this,"vegaEventClick",7),this.eventClick=r(this,"eventClick",7),this.vegaDateDblClick=r(this,"vegaDateDblClick",7),this.dateDblClick=r(this,"dateDblClick",7),this.vegaDateClick=r(this,"vegaDateClick",7),this.dateClick=r(this,"dateClick",7),this.vegaMoreActionClick=r(this,"vegaMoreActionClick",7),this.moreActionClick=r(this,"moreActionClick",7),this.globalSlimmer={},this.translationSlimmer=new _,this.vegaComponentUsageRuntimeMetricsSlimmer=new p,this.renderer=new G,this.switchPanelRenderer=new J,this.viewRenderer=new te,this.monthViewRenderer=new oe,this.viewWithTimeRenderer=new se,this.timeLineRenderer=new le,this.timeMarkerRenderer=new mt,this.monthEventRenderer=new Te,this.currentPeriodController=new Pe,this.calendarViewController=new Me,this.postOperationDateController=new bt,this.dayViewFullDayEventRenderer=new Ge,this.eventPreviewPopoverController=new kt,this.dayViewFullDayEventMoreButtonRenderer=new wt,this.dayViewTimedEventRenderer=new lt,this.eventItemRenderer=new Ze,this.dayViewEventLayoutRenderer=new Je,this.fullDayEventLayoutRenderer=new pt,this.eventPreviewPopoverRenderer=new yt,this.calendarEventController=new Ue,this.eventResponsiveController=new qe,this.changeEventEmitter=z(Rt,m),this.eventClickEmitter=z(Rt,y),this.dateDblClickEmitter=z(Rt,k),this.moreActionClickEmitter=z(Rt,C),this.dateClickEmitter=z(Rt,R),this.changeEventPrevent=new P([m],(()=>this.switchPanelRenderer.getSwitchPanelRef())),this.timeFormatNotifySlimmer=H(Rt,"timeFormat","watchTimeFormat"),this.showEventColorBarNotifySlimmer=H(Rt,"showEventColorBar","watchShowEventColorBar"),this.postOperationDate=this.getInitialPostOperationDate(),this.showAllEventsInDayOrWeekView=!1,this.calendarEvents=[],this.viewMode="month",this.timeFormat="24-hour",this.isDateDisabled=()=>!1,this.showEventColorBar=!0,this.showSwitchView=!0,this.enableDateClick=!1,this.showWeekends=!0,this.enabledEventPreview=!0,this.timezone=pe()}watchCurrentPeriodChange(e,t){}watchViewModeChange(e){}watchEventsChange(e){}watchTimeFormat(e){}watchShowEventColorBar(e){}watchShowWeekendsChange(){}watchTimezoneChange(){}render(){return s(e(o,null,this.renderer.render()),this.host)}getInitialPostOperationDate(){return me.from(new Date,this.timezone)}get host(){return a(this)}static get watchers(){return{currentPeriod:["watchCurrentPeriodChange"],viewMode:["watchViewModeChange"],events:["watchEventsChange"],timeFormat:["watchTimeFormat"],showEventColorBar:["watchShowEventColorBar"],showWeekends:["watchShowWeekendsChange"],timezone:["watchTimezoneChange"]}}};Ct([f()],Rt.prototype,"globalSlimmer",void 0),Ct([v()],Rt.prototype,"translationSlimmer",void 0),Ct([v()],Rt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ct([v()],Rt.prototype,"renderer",void 0),Ct([v()],Rt.prototype,"switchPanelRenderer",void 0),Ct([v()],Rt.prototype,"viewRenderer",void 0),Ct([v()],Rt.prototype,"monthViewRenderer",void 0),Ct([v()],Rt.prototype,"viewWithTimeRenderer",void 0),Ct([v()],Rt.prototype,"timeLineRenderer",void 0),Ct([v()],Rt.prototype,"timeMarkerRenderer",void 0),Ct([v()],Rt.prototype,"monthEventRenderer",void 0),Ct([v()],Rt.prototype,"currentPeriodController",void 0),Ct([v()],Rt.prototype,"calendarViewController",void 0),Ct([v()],Rt.prototype,"postOperationDateController",void 0),Ct([v()],Rt.prototype,"dayViewFullDayEventRenderer",void 0),Ct([v()],Rt.prototype,"eventPreviewPopoverController",void 0),Ct([v()],Rt.prototype,"dayViewFullDayEventMoreButtonRenderer",void 0),Ct([v()],Rt.prototype,"dayViewTimedEventRenderer",void 0),Ct([v()],Rt.prototype,"eventItemRenderer",void 0),Ct([v()],Rt.prototype,"dayViewEventLayoutRenderer",void 0),Ct([v()],Rt.prototype,"fullDayEventLayoutRenderer",void 0),Ct([v()],Rt.prototype,"eventPreviewPopoverRenderer",void 0),Ct([v()],Rt.prototype,"calendarEventController",void 0),Ct([v()],Rt.prototype,"eventResponsiveController",void 0),Ct([v()],Rt.prototype,"changeEventEmitter",void 0),Ct([v()],Rt.prototype,"eventClickEmitter",void 0),Ct([v()],Rt.prototype,"dateDblClickEmitter",void 0),Ct([v()],Rt.prototype,"moreActionClickEmitter",void 0),Ct([v()],Rt.prototype,"dateClickEmitter",void 0),Ct([v()],Rt.prototype,"changeEventPrevent",void 0),Ct([v()],Rt.prototype,"timeFormatNotifySlimmer",void 0),Ct([v()],Rt.prototype,"showEventColorBarNotifySlimmer",void 0),Rt.style='.border-divider-top{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-left-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-top.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.border-divider-left{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-left.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.border-divider-right{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-bottom-width:0px}.border-divider-bottom{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-right-width:0px}:host{display:flex;flex-direction:column;border-radius:12px;border:1px solid rgba(var(--v-border-divider, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));overflow:hidden;width:100%;height:100%;box-sizing:border-box;max-height:1966px}.calendar-switch-panel{padding:24px;border-bottom-width:1px;border-top-width:0px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));flex-shrink:0;width:100%;box-sizing:border-box}.calendar-switch-panel .calendar-date-switch-container{display:flex;gap:8px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-view-switch-container{display:flex;gap:16px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-current-date{padding-left:8px}.calendar-view{width:100%;position:relative;flex-grow:1;overflow-y:auto;overflow-x:hidden;--calendar-weekday-columns:7}.calendar-view.calendar-hide-weekends{--calendar-weekday-columns:5}.calendar-view-month .calendar-view-month-container{width:100%;display:grid;min-height:100%;grid-template-rows:43px repeat(6, minmax(64px, 1fr))}.calendar-view-month .calendar-view-title{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));top:0;left:0;z-index:62}.calendar-view-month .calendar-view-title div{padding-top:12px;padding-bottom:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-title div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-title div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-title div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-month .calendar-view-row{position:relative;display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-month .calendar-view-row.calendar-view-title{position:sticky}.calendar-view-month .calendar-view-row:last-child{border-bottom-width:0px}.calendar-view-month .calendar-view-row .row-cell{overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.calendar-view-month .calendar-view-row .row-cell:last-child{border-right-width:0px}.calendar-view-month .calendar-view-row .row-cell .date{padding-top:4px;padding-bottom:4px;padding-right:12px;padding-left:8px}.calendar-view-month .calendar-view-row .row-cell .date>div{display:inline-block;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-month .calendar-view-row .row-cell .date .month-block{margin-right:2px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col{text-align:center;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;cursor:pointer;width:18px;height:18px;line-height:18px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:hover{background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:active{background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-month .calendar-view-row .row-cell.current-month-day .date>div{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled .date>div{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-top-left-radius:9999px;border-bottom-left-radius:9999px;color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-container{width:100%}.calendar-view-container .calendar-view-title-container{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:sticky;top:0;left:0;z-index:62}.calendar-view-container .calendar-view-row{box-sizing:border-box;width:100%;display:flex;flex-direction:row}.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{width:72px;text-align:right;padding-right:8px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-shrink:0}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-container .calendar-view-title{width:100%}.calendar-view-container .calendar-view-title>div{padding:12px;padding-bottom:8px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center;display:flex;flex-direction:column;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-container .calendar-view-title .week-day{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title .week-day{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title .week-day{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title .week-day{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}.calendar-view-container .calendar-view-title .active div{color:rgba(var(--v-text-link, 19, 98, 226, 1))}.calendar-view-container .calendar-view-event-all-container{align-items:center}.calendar-view-container .calendar-view-event-all{display:grid;grid-template-rows:1fr;flex-grow:1;min-height:18px}.calendar-view-container .calendar-view-day-container .time-line{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr))}.calendar-view-container .calendar-view-day-container .time-line .time-text{margin-top:-9px}.calendar-view-container .calendar-view-day-container .calendar-view-content{width:100%}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr));grid-template-columns:minmax(64px, 1fr)}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col>.border-divider-top:first-child{border-top-width:0px}.calendar-view-container .calendar-view-content-container{width:100%;position:relative}.calendar-view-week .calendar-view-container{min-height:100%}.calendar-view-week .calendar-view-container .calendar-view-title{display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-event-all{grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-day-container .calendar-view-content{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .time-marker-container .time-marker{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .day-event-container{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-day .calendar-view-container{min-height:100%}.time-marker-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.time-marker-container.hidden{display:none}.time-marker-container .time-marker{position:absolute;height:2px;display:grid;min-width:100%;left:0;top:0;z-index:61}.time-marker-container .time-marker div{width:100%;height:2px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));opacity:0.3}.time-marker-container .time-marker div.active{opacity:1;position:relative}.time-marker-container .time-marker div.active::before{content:"";display:block;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;position:absolute;width:8px;height:8px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));top:-3px;left:-4px}.day-event-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.day-event-container .day-event-col{height:100%;overflow:hidden}.day-event-container vega-calendar-event{pointer-events:auto;height:100%}.calendar-view-month .month-event-row{position:absolute;width:100%;overflow:hidden;height:calc(100% - 26px);left:0;bottom:0}.calendar-view-month .events-container{width:100%;box-sizing:border-box;overflow:hidden;padding:2px;display:flex;flex-direction:column;gap:2px;justify-content:space-between;flex-grow:1}.calendar-view-month .events-container .event-list{display:flex;flex-direction:column;gap:2px;flex-grow:1}.calendar-view-month .events-container .event-list .month-event-block{box-sizing:border-box;padding-left:2px;padding-right:3px}.calendar-view-month .events-container .month-event-more .more-button{display:inline-block;height:16px;font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .events-container .month-event-more .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .events-container .month-event-more .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .events-container .month-event-more .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-month .events-container .month-event-more .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all{position:relative}.calendar-view-container .calendar-view-event-all .placeholder-block{padding-top:2px;padding-bottom:2px;box-sizing:content-box}.calendar-view-container .calendar-view-event-all .placeholder-block span{display:none}.calendar-view-container .calendar-view-event-all .day-event-block{padding-top:2px;padding-right:2px;box-sizing:border-box;padding-left:3px}.calendar-view-container .calendar-view-event-all .more-button{display:inline-block;height:16px;font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px;margin-left:2px;padding:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-event-all .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-event-all .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-event-all .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-container .calendar-view-event-all .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all .event-all-col{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.calendar-view-container .day-event-col{position:relative}.calendar-view-container .day-event-col .time-event-block{box-sizing:border-box;padding-right:8px;padding-bottom:2px;padding-top:3px}.calendar-view-container .day-event-col .time-event-block vega-calendar-event.bg-shadow::part(event-container):not(:focus){outline:2px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}.calendar-view-container .day-event-col .time-event-block:focus-within{z-index:60 !important}.calendar-event-slot-container{display:none}.event-preview-popover{height:100%}.event-preview-popover.block{display:block}.event-preview-popover .event-preview-popover-content{height:100%}';var jt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Dt extends d{getEventTitleContainerRef(){return this.eventTitleContainerRef}getSlotContainerRef(){return this.slotContainerRef}render(){return e(t,null,this.injectBackgroundColorStyle(),this.calendarEventRender())}calendarEventRender(){return this.calendarEvent.isAllDayEvent||this.calendarEvent.isGroupEvent()?this.renderBackgroundModeEvent():this.renderNormalEvent()}renderBackgroundModeEvent(){const t=this.calendarEvent.disabled;return e("div",{role:"button",tabIndex:0,class:{"slot-container":this.slotMode,"background-color-mode":!0,"event-bg-color":!t,"bg-disabled":t},ref:e=>this.slotContainerRef=e},this.slotMode?this.getSlotElement():this.calendarEvent.title)}renderNormalEvent(){const{variant:t,disabled:i}=this.calendarEvent,n=t||"primary",r=!this.host.classList.contains("day-event"),o={"slot-container":this.slotMode,"event-container":!0,disabled:i,[n]:!0};if(r)return e("div",{role:"button",tabIndex:0,class:o,ref:e=>this.slotContainerRef=e},!this.slotMode&&this.renderEventStatus(),this.slotMode?this.getSlotElement():this.defaultNormalMonthEventContentRender());{const t=this.calendarEvent.getEventDuration();return e("div",{part:"event-container",class:Object.assign(Object.assign({},o),{vertical:t>30,"duration-half-an-hour":30===t,"event-bg-color":!i,"bg-disabled":i}),role:"button",tabIndex:0,ref:e=>this.slotContainerRef=e},!this.slotMode&&this.renderEventStatus(),e("div",{class:"cover-block"}),this.slotMode?this.getSlotElement():this.defaultNormalTimedEventContentRender(t))}}renderEventStatus(){if(this.showColorBar){const t=this.calendarEvent.disabled;return e("div",{class:{"event-status":!0,"event-bg-color":!t,"bg-disabled":t}},e("span",{class:{stripe:"secondary"===this.calendarEvent.variant}}))}}defaultNormalMonthEventContentRender(){const{startTime:t,title:i}=this.calendarEvent;return e("div",{class:"event-title"},`${he(this.timeFormat,t)} ${i}`)}defaultNormalTimedEventContentRender(t){const{startTime:i,endTime:n,title:r}=this.calendarEvent;return e("div",{class:"event-content"},e("div",{class:{"event-title":!0,"title-word-wrap":t>30},ref:e=>this.eventTitleContainerRef=e},r),e("div",{class:"event-time"},e("vega-icon",{size:"size-12",icon:j.getIconKey("clock-three")}),e("span",null,`${he(this.timeFormat,i)} - ${he(this.timeFormat,n)}`)))}getSlotElement(){if(!this.calendarEvent.isRepeatEvent)return e("slot",null)}injectBackgroundColorStyle(){return e("style",{nonce:Y.nonce},je(this.calendarEvent.color))}}j.register({"clock-three":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 13.3 10.7 24 24 24H360c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>'}}),jt([l()],Dt.prototype,"host",void 0),jt([l()],Dt.prototype,"timeFormat",void 0),jt([l()],Dt.prototype,"calendarEvent",void 0),jt([l()],Dt.prototype,"slotMode",void 0),jt([l()],Dt.prototype,"showColorBar",void 0);var Et=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class zt extends Z{constructor(){super({parent:()=>this.host["data-calendar-ref"],subStates:[{subStateName:"timeFormat",parentStateName:"timeFormat"},{subStateName:"showColorBar",parentStateName:"showEventColorBar"}]})}}Et([l({writable:!0})],zt.prototype,"timeFormat",void 0),Et([l({writable:!0})],zt.prototype,"showColorBar",void 0);class It extends d{setVerticalTitleMaxHeight(){const e=this.renderer.getEventTitleContainerRef();if(e&&e.classList.contains("title-word-wrap")){const t=window.getComputedStyle(e),i=K(t.height),n=K(t.lineHeight),r=Math.max(Math.floor(i/n),1);e.style.maxHeight=r*n+"px"}}}!function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);o>3&&a&&Object.defineProperty(t,i,a)}([l()],It.prototype,"renderer",void 0);var Mt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ot extends d{findTheCalendarEventSlot(){if(this.calendarEvent){const{event:e}=this.calendarEvent,t=this.getParentCalendarElement();if(t){const i=t.querySelector(`vega-calendar-event-slot[event-key='${e.key}']`);i&&(this.slotMode=!0,this.matchSlotElement=i)}}}appendTheRepeatEventSlotToContainer(){const e=this.renderer.getSlotContainerRef();if(this.slotMode&&e&&this.matchSlotElement&&(this.calendarEvent.isRepeatEvent||this.isPopoverContent())){const t=this.matchSlotElement.cloneNode(!0);t.removeAttribute("slot"),e.querySelector("vega-calendar-event-slot")||e.appendChild(t)}}getParentCalendarElement(){return this.host["data-calendar-ref"]}isPopoverContent(){return this.host.classList.contains("calendar-event-in-popover")}}Mt([l()],Ot.prototype,"host",void 0),Mt([l()],Ot.prototype,"calendarEvent",void 0),Mt([l({writable:!0})],Ot.prototype,"slotMode",void 0),Mt([l()],Ot.prototype,"renderer",void 0),Mt([h("componentWillLoad")],Ot.prototype,"findTheCalendarEventSlot",null),Mt([h("componentDidLoad")],Ot.prototype,"appendTheRepeatEventSlotToContainer",null);var Pt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const St=class{constructor(e){n(this,e),this.globalSlimmer={},this.pageResizeObserverSlimmer=new F({target:()=>this.host,callback:()=>this.titleMaxHeightController.setVerticalTitleMaxHeight()}),this.vegaComponentUsageRuntimeMetricsSlimmer=new p,this.renderer=new Dt,this.slotController=new Ot,this.subStateController=new zt,this.titleMaxHeightController=new It,this.timeFormat="24-hour",this.slotMode=!1,this.showColorBar=!0}render(){return U(e("slot",null)),s(e(o,null,this.calendarEvent?this.renderer.render():null),this.host)}get host(){return a(this)}};Pt([f()],St.prototype,"globalSlimmer",void 0),Pt([v()],St.prototype,"pageResizeObserverSlimmer",void 0),Pt([v()],St.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Pt([v()],St.prototype,"renderer",void 0),Pt([v()],St.prototype,"slotController",void 0),Pt([v()],St.prototype,"subStateController",void 0),Pt([v()],St.prototype,"titleMaxHeightController",void 0),St.style='.bg-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host{display:block;box-sizing:border-box;width:100%}:host .background-color-mode{border-radius:2px;color:rgba(var(--v-text-black, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;cursor:pointer;overflow:hidden;white-space:nowrap}@media screen and (min-width: 768px) and (max-width: 1023px){:host .background-color-mode{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .background-color-mode{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .background-color-mode{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host .background-color-mode:not(.slot-container){padding-left:8px;padding-right:8px}:host .background-color-mode:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host .event-container{display:block;width:100%;border-radius:4px;cursor:pointer;box-sizing:border-box;overflow:hidden}:host .background-color-mode.slot-container{height:16px;line-height:16px}:host ::slotted(vega-calendar-event-slot){position:relative;pointer-events:none}:host(.month-event) .event-container{display:flex;flex-direction:row;gap:4px;align-items:center;min-height:16px}:host(.month-event) .event-container:not(.slot-container){padding-left:2px;padding-right:2px}:host(.month-event) .event-container .event-status{width:8px;height:8px;box-sizing:border-box;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;margin-left:2px;flex-shrink:0}:host(.month-event) .event-container .event-status span{display:none;width:100%;height:100%;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.month-event) .event-container.secondary .event-status span{display:block;background-size:4px 4px;opacity:0.8}:host(.month-event) .event-container.tertiary .event-status{padding:1px}:host(.month-event) .event-container.tertiary .event-status span{display:block;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}:host(.month-event) .event-container.disabled .event-status{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.month-event) .event-container:hover{background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1))}:host(.month-event) .event-container:active{background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}:host(.month-event) .event-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host(.day-event) .event-container{position:relative}:host(.day-event) .event-container:not(.slot-container){padding-left:8px;padding-right:8px}:host(.day-event) .event-container .event-status{position:absolute;width:4px;height:100%;left:0;top:0;z-index:1}:host(.day-event) .event-container .event-status span{display:none}:host(.day-event) .event-container .cover-block{position:absolute;height:100%;width:100%;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:4px;left:0;top:0;opacity:0.7}:host(.day-event) .event-container .event-content,:host(.day-event) .event-container .event-time{display:flex;flex-direction:row;align-items:center}:host(.day-event) .event-container .event-content{gap:8px;position:relative;height:100%;box-sizing:border-box}:host(.day-event) .event-container .event-time{gap:4px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.day-event) .event-container .event-time{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.day-event) .event-container .event-time{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.day-event) .event-container .event-time{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.day-event) .event-container .event-time vega-icon{flex-shrink:0}:host(.day-event) .event-container .event-time span{white-space:nowrap}:host(.day-event) .event-container .event-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.day-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.day-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.day-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.day-event) .event-container .event-title.title-word-wrap{overflow:hidden}:host(.day-event) .event-container .event-title:not(.title-word-wrap){white-space:nowrap}:host(.day-event) .event-container.duration-half-an-hour{padding-top:8px;padding-bottom:8px}:host(.day-event) .event-container.vertical{height:100%}:host(.day-event) .event-container.vertical .event-content{flex-direction:column;align-items:flex-start;gap:4px;padding-top:8px;padding-bottom:8px}:host(.day-event) .event-container.secondary .event-status span,:host(.day-event) .event-container.tertiary .event-status span{display:block;position:absolute;border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.day-event) .event-container.secondary .cover-block,:host(.day-event) .event-container.tertiary .cover-block{width:calc(100% - 2px);height:calc(100% - 2px);top:1px;left:1px}:host(.day-event) .event-container.secondary .event-status span{width:100%;height:100%;top:0px;left:0px;background-size:4px 4px;opacity:0.8}:host(.day-event) .event-container.secondary .cover-block{opacity:0.9}:host(.day-event) .event-container.tertiary .event-status span{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));width:2px;height:calc(100% - 2px);top:1px;left:1px}:host(.day-event) .event-container.tertiary .cover-block{opacity:1}:host(.day-event) .event-container.disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.day-event) .event-container.disabled .event-status{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.day-event) .event-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host(.day-event) .slot-container{min-height:16px}:host(.month-event.calendar-event-large-size) .background-color-mode{border-radius:4px}:host(.month-event.calendar-event-large-size) .background-color-mode:not(.slot-container){padding-top:4px;padding-bottom:4px}:host(.month-event.calendar-event-large-size) .event-container:not(.slot-container){padding-top:4px;padding-bottom:4px}:host(.month-event.calendar-event-large-size) .slot-container{height:24px;display:flex;align-items:center;line-height:24px}.stripe{background-image:linear-gradient(-45deg, transparent 25%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 25% 50%, transparent 50% 75%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 75% 100%)}';var Tt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class $t extends d{registerEventPreviewUpdateObserver(){w.addUniqueObserverToNode(this.host,V,(e=>{this.previewPayload=e,this.currentEvent=e.event})),w.addUniqueObserverToNode(this.host,$,(()=>{this.currentEvent=null}))}unregisterEventPreviewUpdateObserver(){w.removeUniqueObserverFromNode(this.host,V),w.removeUniqueObserverFromNode(this.host,$)}}Tt([l()],$t.prototype,"host",void 0),Tt([l({writable:!0})],$t.prototype,"currentEvent",void 0),Tt([l({writable:!0})],$t.prototype,"previewPayload",void 0),Tt([h("connectedCallback")],$t.prototype,"registerEventPreviewUpdateObserver",null),Tt([h("disconnectedCallback")],$t.prototype,"unregisterEventPreviewUpdateObserver",null);var Vt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Lt extends d{componentWillLoad(){this.calendarRef=q(this.host,"vega-calendar")}render(){return this.currentEvent&&e("vega-box",{class:"event-preview"},this.injectBackgroundColorStyle(),this.renderActions(),e("vega-box",{class:"preview-content"},e("vega-flex",{gap:"size-16",direction:"col"},this.renderBasicFields(),this.renderDivider(),e("slot",{name:"event-preview-additional-fields"}))))}renderActions(){return e("vega-flex",{justifyContent:"end",class:"preview-actions"},e("vega-button-circle",{icon:j.getIconKey("close"),color:"text-primary",variant:"icon-only",onVegaClick:this.onHidePopover.bind(this)}))}renderBasicFields(){const i=this.currentEvent;return e(t,null,e("vega-flex",{alignItems:"start",gap:"size-16"},this.renderEventTitle()),e("vega-flex",{alignItems:"start",gap:"size-12"},e("vega-icon",{icon:j.getIconKey("clock"),color:"text-secondary"}),e("vega-flex",{direction:"col",gap:"size-4"},e("vega-font",{variant:"font-footnote1-long",color:"text-primary"},i.generateDateTimeString(this.previewPayload.targetCalendarViewDate,this.previewPayload.timeFormat)),i.isRepeatEvent&&e("vega-font",{variant:"font-footnote1-long",color:"text-primary"},i.generateRepeatString()))))}onHidePopover(){this.calendarRef&&A.notify(b.getSubject(this.calendarRef,T),{})}renderEventTitle(){const i=this.currentEvent,n=Ce(i.event.key);return this.host.querySelector(`[slot=${n}]`)?e("slot",{name:n}):e(t,null,e("vega-box",{corners:"rounded-full",class:{"event-bg-color":!0,"event-bg-disabled":i.disabled},flexShrink:0},e("span",{class:{[`event-color-dot-${i.variant}`]:!0}})),e("vega-font",{variant:"font-h5",color:"text-primary"},i.title))}renderDivider(){return this.host.querySelector("[slot=event-preview-additional-fields]")&&e("vega-box",null,e("vega-divider",null))}injectBackgroundColorStyle(){return e("style",{nonce:Y.nonce},je(this.currentEvent.color))}}j.register({close:{icon:'<svg width="17" height="16" viewBox="0 0 17 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_80261_51160)"><path d="M13.9604 1.29376C14.3511 0.903137 14.9854 0.903137 15.3761 1.29376C15.7667 1.68439 15.7667 2.31876 15.3761 2.70939L10.0823 8.00001L15.3729 13.2938C15.7636 13.6844 15.7636 14.3188 15.3729 14.7094C14.9823 15.1 14.3479 15.1 13.9573 14.7094L8.66668 9.41564L3.37293 14.7063C2.98231 15.0969 2.34793 15.0969 1.95731 14.7063C1.56668 14.3156 1.56668 13.6813 1.95731 13.2906L7.25106 8.00001L1.96043 2.70626C1.56981 2.31564 1.56981 1.68439 1.96043 1.29376C2.35106 0.903137 2.98543 0.903137 3.37606 1.29376L8.66668 6.58439L13.9604 1.29376Z" fill="currentColor" fill-opacity="0.95"/></g><defs><clipPath id="clip0_80261_51160"><rect width="14" height="16" fill="currentColor" transform="translate(1.66669)"/></clipPath></defs></svg>'},clock:{icon:'<svg width="17" height="16" viewBox="0 0 17 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_80261_52574)"><path d="M7.91669 3.75C7.91669 3.33437 8.25106 3 8.66669 3C9.08231 3 9.41669 3.33437 9.41669 3.75V7.6L12.0823 9.375C12.4261 9.60625 12.5198 10.0719 12.2636 10.4156C12.0604 10.7594 11.5948 10.8531 11.2511 10.5969L8.25106 8.59688C8.04169 8.48438 7.91669 8.25 7.91669 7.97188V3.75ZM8.66669 0C13.0854 0 16.6667 3.58125 16.6667 8C16.6667 12.4187 13.0854 16 8.66669 16C4.24794 16 0.666687 12.4187 0.666687 8C0.666687 3.58125 4.24794 0 8.66669 0ZM2.16669 8C2.16669 11.5906 5.07606 14.5 8.66669 14.5C12.2573 14.5 15.1667 11.5906 15.1667 8C15.1667 4.40938 12.2573 1.5 8.66669 1.5C5.07606 1.5 2.16669 4.40938 2.16669 8Z" fill="currentColor" fill-opacity="0.64"/></g><defs><clipPath id="clip0_80261_52574"><rect width="16" height="16" fill="currentColor" transform="translate(0.666687)"/></defs></svg>'}}),Vt([l()],Lt.prototype,"host",void 0),Vt([l()],Lt.prototype,"previewPayload",void 0),Vt([l()],Lt.prototype,"currentEvent",void 0),Vt([h("componentWillLoad")],Lt.prototype,"componentWillLoad",null);var At=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Bt=class{constructor(e){n(this,e),this.detailRenderer=new Lt,this.stateController=new $t,this.translationSlimmer=new _,this.globalSlimmer={},this.vegaComponentUsageRuntimeMetricsSlimmer=new p}render(){return s(e(o,null,this.previewPayload&&this.detailRenderer.render()),this.host)}get host(){return a(this)}};At([v()],Bt.prototype,"detailRenderer",void 0),At([v()],Bt.prototype,"stateController",void 0),At([v()],Bt.prototype,"translationSlimmer",void 0),At([f()],Bt.prototype,"globalSlimmer",void 0),At([v()],Bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Bt.style=":host(.single-event-preview) .event-preview{width:398px;box-sizing:border-box}:host(.single-event-preview) .preview-actions{padding-top:4px;padding-left:4px;padding-right:4px}:host(.single-event-preview) .preview-content{margin-bottom:24px;margin-left:12px;margin-right:12px;padding-left:12px;padding-right:12px}:host(.group-event-preview) .event-preview{width:320px;box-sizing:border-box;height:100%}:host(.group-event-preview) .event-preview{border:1px solid rgba(var(--v-border-divider, 171, 198, 216, 1));border-right-width:0px;border-top-width:0px;border-bottom-width:0px;border-left-width:1px;border-left-style:solid}:host(.group-event-preview) .preview-actions{padding-top:4px;padding-left:4px;padding-right:4px}:host(.group-event-preview) .preview-content{margin-bottom:16px;margin-left:12px;margin-right:12px;padding-left:4px;padding-right:4px}:host .preview-content{max-height:60vh;overflow-y:auto}:host .event-bg-color{width:12px;height:12px;margin-top:8px;position:relative}:host .event-bg-color.event-bg-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host .event-bg-color span{display:block;position:absolute;top:0px;left:0px;opacity:0.8}:host .event-bg-color span.event-color-dot-secondary{width:100%;height:100%;background-size:4px 4px;background-image:linear-gradient(-45deg, transparent 25%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 25% 50%, transparent 50% 75%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 75% 100%)}:host .event-bg-color span.event-color-dot-tertiary{width:calc(100% - 2px);height:calc(100% - 2px);top:1px;left:1px;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));opacity:1}";var Nt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Ft=class{constructor(e){n(this,e),this.globalSlimmer={},this.vegaComponentUsageRuntimeMetricsSlimmer=new p}render(){return s(e(o,{slot:Ce(this.eventKey)},e("slot",null)),this.host)}get host(){return a(this)}};Nt([f()],Ft.prototype,"globalSlimmer",void 0),Nt([v()],Ft.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ft.style=":host{width:100%;height:100%;position:relative}";export{Rt as vega_calendar,St as vega_calendar_event,Bt as vega_calendar_event_preview,Ft as vega_calendar_event_slot}
1
+ import{h as e,F as t,f as i,r as n,c as r,H as o,g as a}from"./p-6b2342e0.js";import{s}from"./p-519a7d55.js";import{c as l,V as d,L as c,M as h,I as v}from"./p-6e1ab235.js";import{V as p,I as f}from"./p-d849e0f5.js";import{D as w,a as u,f as m,V as g,d as b,S as x,g as y,h as k,i as C,j as R}from"./p-447c7590.js";import{a as j}from"./p-8c9ea6f4.js";import{c as D}from"./p-86194314.js";import{p as E}from"./p-08835909.js";import{c as z}from"./p-7b145620.js";import{V as I}from"./p-39482a1a.js";import{s as M}from"./p-824a06ba.js";import{q as O}from"./p-b1faebe0.js";import{C as P}from"./p-725f0a2c.js";import{y as S,z as T,A as $,B as V}from"./p-308aa2e3.js";import{O as L}from"./p-331a62d5.js";import{C as A}from"./p-2d0d575f.js";import{f as B}from"./p-d27ae9ff.js";import{g as N}from"./p-a4670e23.js";import{P as F}from"./p-7d9cd9c8.js";import{d as W}from"./p-1bc5b3bc.js";import{c as H}from"./p-a0467b83.js";import{T as _}from"./p-d5ff8b7f.js";import{s as U}from"./p-6bd5c49b.js";import{v as Y}from"./p-54ae02db.js";import{S as Z}from"./p-fde50319.js";import{b as K}from"./p-0c667d6a.js";import{f as q}from"./p-d9671d27.js";import"./p-6a334573.js";import"./p-41c3fcb4.js";import"./p-b75ee3ba.js";import"./p-a528714c.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-5f377954.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-112455b1.js";import"./p-262ec334.js";var X=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class G extends d{getEventPreviewRef(){return this.eventPreviewRef}render(){return e(t,null,this.switchPanelRenderer.render(),this.viewRenderer.render(),e("vega-calendar-event-preview",{ref:e=>{this.eventPreviewRef=e}}))}}X([l()],G.prototype,"host",void 0),X([l()],G.prototype,"switchPanelRenderer",void 0),X([l()],G.prototype,"viewRenderer",void 0);var J=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Q extends d{constructor(){super(...arguments),this.handleViewChange=e=>{this.currentPeriodController.updateCalendarPeriod(e.detail,this.postOperationDate)},this.todayButtonClick=()=>{this.currentPeriodController.setCurrentPeriod(this.currentPeriod.now())},this.nextButtonClick=()=>{this.currentPeriodController.setCurrentPeriod(this.currentPeriod.next())},this.prevButtonClick=()=>{this.currentPeriodController.setCurrentPeriod(this.currentPeriod.previous())},this.moreActionMenuClick=e=>{this.moreActionClickEmitter.emit(e.detail)}}getSwitchPanelRef(){return this.switchPanelRef}render(){return e("vega-flex",{direction:"row",gap:"size-16",justifyContent:"space-between",alignItems:"center",class:"calendar-switch-panel",ref:e=>this.switchPanelRef=e},this.renderDateSwitch(),e("div",{class:"calendar-view-switch-container"},this.showSwitchView?this.renderViewSwitch():null,this.renderMoreActionMenu()))}renderDateSwitch(){return e("div",{class:"calendar-date-switch-container"},e("vega-button",{variant:"secondary",size:"small",ref:e=>{w.addUniqueObserverToNode(e,u,this.todayButtonClick)},label:this.translationSlimmer.t("Today")}),e("vega-button-circle",{variant:"secondary",size:"small",icon:j.getIconKey("chevron-left"),label:"previous",showTooltip:!1,ref:e=>{w.addUniqueObserverToNode(e,u,this.prevButtonClick)}}),e("vega-button-circle",{variant:"secondary",size:"small",icon:j.getIconKey("chevron-right"),label:"next",showTooltip:!1,ref:e=>{w.addUniqueObserverToNode(e,u,this.nextButtonClick)}}),this.renderCurrentPeriod())}renderCurrentPeriod(){return e("vega-font",{class:"calendar-current-date",variant:"font-field-label",color:"text-primary"},this.getViewDateSummary())}renderViewSwitch(){return e("vega-segment-control",{segments:Q.views.map((e=>Object.assign(Object.assign({},e),{text:this.translationSlimmer.t(e.text)}))),size:"small",variant:"text-only",selected:this.viewMode,ref:e=>{w.addUniqueObserverToNode(e,m,this.handleViewChange)}})}renderMoreActionMenu(){var t,i;if(null===(i=null===(t=this.moreActionDropdownProps)||void 0===t?void 0:t.source)||void 0===i?void 0:i.length)return e("vega-dropdown",Object.assign({alignment:"end",trigger:"click"},this.moreActionDropdownProps,{ref:e=>{w.addUniqueObserverToNode(e,g,this.moreActionMenuClick)}}),e("vega-button-circle",{size:"small",icon:j.getIconKey("ellipsis-vertical"),variant:"icon-only"}))}getViewDateSummary(){const e=this.currentPeriod.current;let t="";switch(this.viewMode){case"day":{const i=this.translationSlimmer.t(e.getMonthName());t=`${e.date} ${i}, ${e.year}`;break}case"week":{const e=this.calendarView.dateItems[0],i=e[0],n=e[e.length-1],[r,o]=[i,n].map((e=>this.translationSlimmer.t(e.getMonthName())));t=`${i.date} ${r}${i.year===n.year?"":", "+i.year} - ${n.date} ${o}, ${n.year}`;break}case"month":t=`${this.translationSlimmer.t(e.getMonthName())}, ${e.year}`}return t}}j.register({"chevron-right":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"/></svg>'},"chevron-left":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"/></svg>'},"ellipsis-vertical":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M48 464a48 48 0 1 1 0-96 48 48 0 1 1 0 96zm0-160a48 48 0 1 1 0-96 48 48 0 1 1 0 96zM0 96a48 48 0 1 1 96 0A48 48 0 1 1 0 96z"/></svg>'}}),Q.views=[{text:"Day",key:"day"},{text:"Week",key:"week"},{text:"Month",key:"month"}],J([l()],Q.prototype,"viewMode",void 0),J([l()],Q.prototype,"calendarView",void 0),J([l()],Q.prototype,"currentPeriod",void 0),J([l()],Q.prototype,"moreActionDropdownProps",void 0),J([l()],Q.prototype,"moreActionClickEmitter",void 0),J([l()],Q.prototype,"currentPeriodController",void 0),J([l()],Q.prototype,"calendarViewController",void 0),J([l()],Q.prototype,"translationSlimmer",void 0),J([l()],Q.prototype,"postOperationDate",void 0),J([l()],Q.prototype,"showSwitchView",void 0);var ee=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class te extends d{getCalendarViewElementRef(){return this.calendarViewElementRef}render(){return e("div",{class:`calendar-view calendar-view-${this.viewMode} ${!1===this.showWeekends?"calendar-hide-weekends":""}`,ref:e=>this.calendarViewElementRef=e},"month"===this.viewMode?this.monthViewRenderer.render():this.viewWithTimeRenderer.render())}}ee([l()],te.prototype,"viewMode",void 0),ee([l()],te.prototype,"showWeekends",void 0),ee([l()],te.prototype,"monthViewRenderer",void 0),ee([l()],te.prototype,"viewWithTimeRenderer",void 0);var ie=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class ne extends d{emit(e,t){this.shouldHandleClickEvent(e)?this.dateClickEmitter.emit(t):this.shouldHandleDblClickEvent(e)&&this.dateDblClickEmitter.emit(t)}shouldHandleClickEvent(e){return!0===this.enableDateClick&&"click"===e.type}shouldHandleDblClickEvent(e){return!0!==this.enableDateClick&&"dblclick"===e.type}generateDateBlockRenderProps(e,t,i){const n={};return e||(this.enableDateClick?(n.tabIndex=0,n.role="button",n.onClick=e=>{this.handleDateBlockClick(e,t,i)},n.onKeyDown=D()):n.onDblClick=e=>{this.handleDateBlockClick(e,t,i)}),n}}ie([l()],ne.prototype,"enableDateClick",void 0),ie([l()],ne.prototype,"dateClickEmitter",void 0),ie([l()],ne.prototype,"dateDblClickEmitter",void 0);var re=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class oe extends ne{render(){return e("div",{class:"calendar-view-month-container"},e("div",{class:"calendar-view-row calendar-view-title border-divider-bottom"},this.calendarView.weekdays.map((t=>e("div",{key:t},this.translationSlimmer.t(t))))),this.renderMonthViewContent())}handleDateBlockClick(e,t){const{target:i,clientX:n,clientY:r}=e;if(this.isMonthBlockBlankArea(i)){const{year:i,month:o,date:a}=t;this.emit(e,{year:i,month:o,date:a,hour:0,mouseEventInfo:{clientX:n,clientY:r}})}}renderMonthViewContent(){const t=this.currentPeriod.current;return this.calendarView.dateItems.map(((i,n)=>{const r=this.monthEventRenderer.getCurrentRowEvents(i),o=this.monthEventRenderer.filterRowDisplayEvents(r);return e("div",{key:n,class:"calendar-view-row border-divider-bottom"},i.map(((i,n)=>{var a;const s=null===(a=this.isDateDisabled)||void 0===a?void 0:a.call(this,i.toDate()),l=this.generateDateBlockRenderProps(s,i);return e("div",Object.assign({class:{"row-cell border-divider-right":!0,"current-month-day":i.compare(t).inMonth,active:i.isToday(this.timezone),disabled:s},key:`${i.month}-${i.date}`},l),this.renderDateBlock(i),this.monthEventRenderer.render(i,r[n],o[n],n))})))}))}renderDateBlock(t){return e("div",{class:"date"},1===t.date&&e("div",{class:"month-block"},t.getMonthName(!0)),e("div",{role:"button",tabIndex:0,class:"grid-col",onDblClick:e=>{this.handleDateLabelClick(e,t)},onClick:e=>{this.handleDateLabelClick(e,t)},onKeyDown:D()},t.date))}goToCurrentDayView(e){this.currentPeriodController.updateCalendarPeriod("day",e)}handleDateLabelClick(e,t){e.stopPropagation(),this.showSwitchView&&(this.shouldHandleClickEvent(e)||this.shouldHandleDblClickEvent(e))&&this.goToCurrentDayView(t)}isMonthBlockBlankArea(e){return!e.classList.contains("more-button")&&"VEGA-CALENDAR-EVENT"!==e.tagName}}re([l()],oe.prototype,"viewMode",void 0),re([l()],oe.prototype,"calendarView",void 0),re([l()],oe.prototype,"currentPeriod",void 0),re([l()],oe.prototype,"currentPeriodController",void 0),re([l()],oe.prototype,"monthEventRenderer",void 0),re([l()],oe.prototype,"translationSlimmer",void 0),re([l()],oe.prototype,"isDateDisabled",void 0),re([l()],oe.prototype,"showSwitchView",void 0),re([l()],oe.prototype,"timezone",void 0);var ae=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class se extends ne{render(){return e("div",{class:"calendar-view-container"},this.renderViewTitle(),this.renderViewContent())}handleDateBlockClick(e,t,i){const{year:n,month:r,date:o}=t,{clientX:a,clientY:s}=e;this.emit(e,{year:n,month:r,date:o,hour:i,mouseEventInfo:{clientX:a,clientY:s}})}renderViewTitle(){const t=this.calendarView.dateItems[0],i=this.calendarView.weekdays;return e("div",{class:"calendar-view-title-container"},e("div",{class:"calendar-view-row"},e("div",{class:"time-line-empty"}),e("div",{class:"calendar-view-title"},t.map(((t,n)=>e("div",{key:t.date,class:{active:t.isToday(this.timezone)}},e("div",null,this.translationSlimmer.t(i[n])),e("div",{class:"week-day"},t.date)))))),e("div",{class:"calendar-view-row calendar-view-event-all-container border-divider-bottom"},e("div",{class:"time-line-all"},this.translationSlimmer.t("All Day")),this.dayViewFullDayEventRenderer.render()))}renderViewContent(){const t=this.calendarView.dateItems[0];return e("div",{class:"calendar-view-row calendar-view-day-container"},this.timeLineRenderer.render(),e("div",{class:"calendar-view-content-container"},e("div",{class:"calendar-view-content"},t.map((t=>{var i;const n=null===(i=this.isDateDisabled)||void 0===i?void 0:i.call(this,t.toDate());return e("div",{class:{"grid-col border-divider-left":!0,disabled:n},key:t.date},e("div",{class:"hour-empty border-divider-top"}),this.renderHourBlock(t,n))}))),this.dayViewTimedEventRenderer.render(),this.timeMarkerRenderer.render(t)))}renderHourBlock(t,i){return Array(24).fill("").map(((n,r)=>{var o;let a=!1;if(!i){const e=new Date(t.toDate().setHours(r));a=null===(o=this.isDateDisabled)||void 0===o?void 0:o.call(this,e)}const s=this.generateDateBlockRenderProps(i||a,t,r);return e("div",Object.assign({key:r,class:{"grid-cell border-divider-top":!0,disabled:i||a}},s))}))}}ae([l()],se.prototype,"viewMode",void 0),ae([l()],se.prototype,"timeLineRenderer",void 0),ae([l()],se.prototype,"timeMarkerRenderer",void 0),ae([l()],se.prototype,"dayViewTimedEventRenderer",void 0),ae([l()],se.prototype,"dayViewFullDayEventRenderer",void 0),ae([l()],se.prototype,"calendarView",void 0),ae([l()],se.prototype,"translationSlimmer",void 0),ae([l()],se.prototype,"isDateDisabled",void 0),ae([l()],se.prototype,"enableDateClick",void 0),ae([l()],se.prototype,"timezone",void 0);class le extends d{render(){const t=this.getTimeLineTitles();return e("div",{class:"time-line"},e("div",{class:"hour-empty"}),t.map(((t,i)=>e("div",{key:t},e("div",{class:"time-text","data-time":0===i?24:i},t)))))}getTimeLineTitles(){const e=[];if("12-hour"===this.timeFormat){e.push("12 AM");for(let t=1;t<12;t++)e.push(`${t} AM`);e.push("12 PM");for(let t=1;t<12;t++)e.push(`${t} PM`)}else for(let t=0;t<24;t++)e.push(`${E(t)}`);return e}}!function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);o>3&&a&&Object.defineProperty(t,i,a)}([l()],le.prototype,"timeFormat",void 0);const de=(e=0)=>{const t=[0,1,2,3,4,5,6];return t.concat(t).slice(e,e+7)};var ce;!function(e){e.sun="Sunday",e.mon="Monday",e.tue="Tuesday",e.wed="Wednesday",e.thu="Thursday",e.fri="Friday",e.sat="Saturday"}(ce||(ce={}));const he=(e,t)=>{const[i,n]=t.split(":");if("24-hour"===e)return`${i.padStart(2,"0")}:${n.padStart(2,"0")}`;{const e=Number(i),t=e>=12?"pm":"am",r=n.padStart(2,"0");return e>12?`${e-12}:${r} ${I.t("pm")}`:0===e?`12:${r} ${I.t("am")}`:`${e}:${r} ${I.t(t)}`}};function ve(e,t){if(e&&e!==pe())try{const i=new Intl.DateTimeFormat([],{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),n=i.find((e=>"year"===e.type)),r=i.find((e=>"month"===e.type)),o=i.find((e=>"day"===e.type));if(n&&r&&o){const e=parseInt(n.value,10);return{year:e,month:parseInt(r.value,10),date:parseInt(o.value,10)}}}catch(t){c.warn("Invalid timezone:",e)}return{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate()}}const pe=()=>Intl.DateTimeFormat().resolvedOptions().timeZone;class fe{constructor(){this.WEEKDAYS_SHORT=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],this.weekdays=de()}getWeekdayNames(){return this.WEEKDAYS_SHORT}generateDates(e){const t=e.startDate.toDate(),i=[];for(let n=0;n<e.count;n++)i.push(new Date(t)),t.setDate(t.getDate()+1);return i}generateWeekHead(){return this.weekdays.map((e=>this.getWeekdayNames()[e]))}}class we{constructor(e,t){this._weekdays=e,this._dateItems=t}get weekdays(){return this._weekdays}get dateItems(){return this._dateItems}}class ue extends fe{generate(e){return new we([this.generateWeekHead()[e.current.toDate().getDay()]],[[e.current]])}}class me{constructor(e,t,i){this._date=i,this._month=t,this._year=e}static from(e,t=pe()){const{year:i,month:n,date:r}=ve(t,e);return new me(i,n,r)}get year(){return this._year}set year(e){this._year=e}get month(){return this._month}set month(e){this._month=e}get date(){return this._date}set date(e){this._date=e}isToday(e=pe()){const{year:t,month:i,date:n}=ve(e,new Date);return t===this.year&&i===this.month&&n===this.date}toDate(){return new Date(this.year,this.month-1,this.date)}compare(e){const{year:t,month:i}=e,n={isPreviousMonth:!1,inMonth:!1,isNextMonth:!1};return this.year===t?this.month<i?n.isPreviousMonth=!0:this.month>i?n.isNextMonth=!0:n.inMonth=!0:this.year>t?n.isNextMonth=!0:n.isPreviousMonth=!0,n}equal(e){const{year:t,month:i,date:n}=e;return this._year===t&&this._month===i&&this._date===n}getMonthName(e=!1){return I.t(this.toDate().toLocaleDateString("en-US",{month:e?"short":"long"}))}}class ge extends fe{generate(e){const t=this.generateDates(e),i=e.showWeekends;let n=this.generateWeekHead(),r=[t.map((e=>me.from(e)))];return!1===i&&(n=n.slice(1,6),r=r.map((e=>e.slice(1,6)))),new we(n,r)}}class be extends fe{generate(e){const t=e.showWeekends;let i=[],n=[];this.generateDates(e).forEach(((e,t)=>{t%7||(i[t/7]=n=[]);const r=me.from(e);n.push(r)}));let r=this.generateWeekHead();return!1===t&&(r=r.slice(1,6),i=i.map((e=>e.slice(1,6)))),new we(r,i)}}class xe{constructor(e,t,i){this._count=e,this._timezone=i||pe(),this._current=t||me.from(new Date,this._timezone),this.calculatePeriod(this._current)}get current(){return this._current}get startDate(){return this._startDate}get endDate(){return this._endDate}get count(){return this._count}get type(){return this._type}get showWeekends(){return this._showWeekends}get timezone(){return this._timezone}goTo(e){return this.createBy(e)}now(){return this.createBy(me.from(new Date,this._timezone))}calculatePeriod(e){const t=e.toDate();this.count>1&&t.setDate(t.getDate()-de().indexOf(t.getDay())),this._startDate=me.from(t),t.setDate(t.getDate()+this.count-1),this._endDate=me.from(t)}}var ye;function ke(e,t=15){const[i,n]=e.split(":");return Math.round((60*Number(i)+Number(n))/t)}function Ce(e){return"vega-calendar-event-slot-"+e}function Re(e,t=ye.NEXT){const i=e.toDate().getDay();if(0===i||6===i){let n=0===i?1:2;return t===ye.PREVIOUS&&(n=0===i?-2:-1),me.from(new Date(e.year,e.month-1,e.date+n))}return e}function je(e="bg-accent6-primary"){return O(e)?`.event-bg-color{${M.formatToken(e)}}`:`.event-bg-color{background-color:${e}}`}!function(e){e.PREVIOUS="-1",e.NEXT="1"}(ye||(ye={}));class De extends xe{constructor(e,t,i){super(De.DISPLAY_DATE_COUNT,e,i),this._type="day",this._showWeekends=!0,this._showWeekends=!1!==t}next(){const e=this.current.toDate();e.setDate(e.getDate()+1);let t=me.from(e);return!1===this._showWeekends&&(t=Re(t)),this.createBy(t)}previous(){const e=this.current.toDate();e.setDate(e.getDate()-1);let t=me.from(e);return!1===this._showWeekends&&(t=Re(t,ye.PREVIOUS)),this.createBy(t)}now(){let e=me.from(new Date,this.timezone);return!1===this._showWeekends&&(e=Re(e)),this.createBy(e)}createBy(e){return new De(e,this._showWeekends,this.timezone)}}De.DISPLAY_DATE_COUNT=1;class Ee extends xe{constructor(e,t,i){super(Ee.DISPLAY_DATE_COUNT,e,i),this._type="week",this._showWeekends=!0,this._showWeekends=!1!==t}next(){const e=this.current.toDate();return e.setDate(e.getDate()+7),this.createBy(me.from(e))}previous(){const e=this.current.toDate();return e.setDate(e.getDate()-7),this.createBy(me.from(e))}createBy(e){return new Ee(e,this._showWeekends,this.timezone)}}Ee.DISPLAY_DATE_COUNT=7;class ze extends xe{constructor(e,t,i){super(ze.DISPLAY_DATE_COUNT,e,i),this._type="month",this._showWeekends=!0,this._showWeekends=!1!==t}static getMonthFirstDay(e,t){const i=e||me.from(new Date,t);return new me(i.year,i.month,1)}calculatePeriod(e){const t=ze.getMonthFirstDay(e).toDate();t.setDate(t.getDate()-de().indexOf(t.getDay())),this._startDate=me.from(t),t.setDate(t.getDate()+this.count-1),this._endDate=me.from(t)}next(){const e=this.current.toDate();return e.setMonth(e.getMonth()+1),this.createBy(me.from(e))}previous(){const e=this.current.toDate();return e.setMonth(e.getMonth()-1),this.createBy(me.from(e))}createBy(e){return new ze(e,this._showWeekends,this.timezone)}}ze.DISPLAY_DATE_COUNT=42;var Ie=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Me extends d{constructor(){super(...arguments),this.monthViewGenerator=new be,this.weekViewGenerator=new ge,this.dayViewGenerator=new ue}initialCalendarView(){this.setCalendarView(this.getCalendarViewByPeriod(this.currentPeriod))}generateCalendarView(e){this.setCalendarView(this.getCalendarViewByPeriod(e))}getCalendarViewByPeriod(e){switch(e.type){case"week":return this.weekViewGenerator.generate(e);case"day":return this.dayViewGenerator.generate(e);default:return this.monthViewGenerator.generate(e)}}setCalendarView(e){this.calendarView=e}}Ie([l({writable:!0})],Me.prototype,"calendarView",void 0),Ie([l()],Me.prototype,"currentPeriod",void 0),Ie([l()],Me.prototype,"showWeekends",void 0),Ie([l()],Me.prototype,"currentPeriodController",void 0),Ie([h("componentWillLoad")],Me.prototype,"initialCalendarView",null),Ie([h("watchCurrentPeriodChange")],Me.prototype,"generateCalendarView",null);var Oe=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Pe extends d{setCurrentPeriod(e){this.currentPeriod=e}updateCalendarPeriod(e,t){switch(e){case"month":this.setCurrentPeriod(new ze(t,this.showWeekends,this.timezone));break;case"week":this.setCurrentPeriod(new Ee(t,this.showWeekends,this.timezone));break;case"day":t=!1===this.showWeekends?Re(t):t,this.setCurrentPeriod(new De(t,this.showWeekends,this.timezone))}}initialCurrentPeriod(){this.updateCalendarPeriod(this.viewMode,me.from(new Date,this.timezone))}emitChangeEvent(e,t){e&&t&&e.startDate.equal(t.startDate)&&e.endDate.equal(t.endDate)||(e&&e.type!==this.viewMode&&(this.viewMode=e.type),this.changeEventEmitter.emit({viewMode:e.type,currentPeriod:this.getCurrentPeriodSummary()}))}updateCurrentPeriodByViewMode(e){this.currentPeriod&&e!==this.currentPeriod.type&&this.updateCalendarPeriod(e,this.currentPeriod.current)}updateCurrentPeriodAfterHideWeekEndsChange(){this.updateCalendarPeriod(this.viewMode,this.currentPeriod.current)}getCurrentPeriodSummary(){const{current:e,startDate:t,endDate:i}=this.currentPeriod;return{year:e.year,month:e.month,startDate:{date:t.date,month:t.month,year:t.year},endDate:{date:i.date,month:i.month,year:i.year}}}}Oe([l({writable:!0})],Pe.prototype,"currentPeriod",void 0),Oe([l()],Pe.prototype,"changeEventEmitter",void 0),Oe([l({writable:!0})],Pe.prototype,"viewMode",void 0),Oe([l()],Pe.prototype,"showWeekends",void 0),Oe([l()],Pe.prototype,"timezone",void 0),Oe([h("componentWillLoad")],Pe.prototype,"initialCurrentPeriod",null),Oe([h("watchCurrentPeriodChange")],Pe.prototype,"emitChangeEvent",null),Oe([h("watchViewModeChange")],Pe.prototype,"updateCurrentPeriodByViewMode",null),Oe([h("watchShowWeekendsChange")],Pe.prototype,"updateCurrentPeriodAfterHideWeekEndsChange",null);var Se=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Te extends d{constructor(){super(...arguments),this.maxMonthDisplayEventsCount=2,this.popoverHideObserver=null}getCurrentRowEvents(e){const t=[];return e.forEach((e=>{const i=this.calendarEventController.getCurrentDateEvents(e);t.push(i)})),this.fullDayEventLayoutRenderer.sortLongEvents(t)}filterRowDisplayEvents(e){const t=[];return e.forEach((e=>{const i=e.length>this.maxMonthDisplayEventsCount?e.slice(0,this.maxMonthDisplayEventsCount-1):e;t.push(i)})),this.hideTheCutOffEvents(e,t)}getMonthEventContainerRef(){return this.eventContainerRef}render(t,i,n,r){const o=i.slice(n.length).filter((e=>e)).length;return e("div",{class:"events-container",ref:e=>this.eventContainerRef=e},e("div",{class:"event-list"},this.fullDayEventLayoutRenderer.render(n,r,t)),this.renderMoreButton(i,o,t))}addMaxDisplayCountChange(){w.addUniqueObserverToNode(this.host,S,(e=>{this.maxMonthDisplayEventsCount!==e.detail&&(this.maxMonthDisplayEventsCount=e.detail,"month"===this.viewMode&&i(this.host))}))}renderMoreButton(t,i,n){if(i){const r=t.filter((e=>e&&(e.isAllDayEvent||e.isGroupEvent()))),o=t.filter((e=>e&&!e.isAllDayEvent&&!e.isGroupEvent()));return e("div",{class:"month-event-more"},e("vega-popover",{trigger:"click",placement:"right",padding:"0",ref:e=>{this.setPopoverHideObserver(e)},isScreenPosition:!0},e("div",{tabIndex:0,slot:"popover-content",role:"button",class:"more-button",onKeyDown:D()},`${i} More`),e("vega-flex",{slot:"popover"},e("vega-box",{padding:"size-12",width:256},e("vega-flex",{direction:"col",gap:"0",class:"group-events"},e("vega-font",{textAlign:"center",variant:"font-field-label",color:"text-primary",style:{padding:"4px 0",marginBottom:"8px"}},`${n.date} ${n.getMonthName()} ${n.year}`),e("vega-box",{maxHeight:"calc(60vh - 6px)",style:{overflowY:"auto"},padding:"size-4"},e("vega-flex",{direction:"col",gap:"size-4",style:{paddingBottom:o.length?"4px":"0px"}},r.map((e=>this.eventItemRenderer.render(e,{"month-event":!0,"calendar-event-large-size":!0,"calendar-event-in-popover":!0},n,!0)))),o.map((e=>this.eventItemRenderer.render(e,{"month-event":!0,"calendar-event-large-size":!0,"calendar-event-in-popover":!0},n,!0)))))),e("div",{class:"preview-container",ref:e=>{e?this.eventPreviewPopoverController.setEventPreviewContainerMap(t,n,e):this.eventPreviewPopoverController.deleteEventPreviewContainer(t,n)}}))))}}hideTheCutOffEvents(e,t){const i=[],n=[],r=t.map((e=>e[e.length-1])).filter((e=>e&&e.isGroupEvent()));return r.length&&r.forEach((i=>{e.filter((e=>e.includes(i))).length>t.filter((e=>e.includes(i))).length&&n.push(i)})),n.length?(t.forEach((e=>{e.length&&e[e.length-1]&&n.includes(e[e.length-1])?i.push(e.slice(0,e.length-1)):i.push(e)})),i):t}setPopoverHideObserver(e){e?(this.popoverHideObserver=new L((()=>!0),(async()=>await e.hide())),A.register(b.getSubject(this.host,T),this.popoverHideObserver)):this.popoverHideObserver&&A.unregister(b.getSubject(this.host,T),this.popoverHideObserver),e&&w.addUniqueObserverToNode(e,x,(()=>{A.notify(b.getSubject(this.renderer.getEventPreviewRef(),$),{})}))}}Se([l()],Te.prototype,"viewMode",void 0),Se([l()],Te.prototype,"host",void 0),Se([l()],Te.prototype,"calendarEventController",void 0),Se([l()],Te.prototype,"eventItemRenderer",void 0),Se([l()],Te.prototype,"fullDayEventLayoutRenderer",void 0),Se([l()],Te.prototype,"eventPreviewPopoverRenderer",void 0),Se([l()],Te.prototype,"renderer",void 0),Se([l()],Te.prototype,"eventPreviewPopoverController",void 0),Se([h("componentWillLoad")],Te.prototype,"addMaxDisplayCountChange",null);class $e{constructor(e,t,i,n){this.repeatStartDate=e,this.interval=t,this.count=i,this.until=n}getRepeatSeries(e,t=1){return this.generateRepeatDateCacheUntilEndDate(e.endDate),this.cache.filter((i=>this.isSeriesInPeriod(i,t,e)))}isSeriesInPeriod(e,t,i){const n=e.toDate(),r=new Date(e.year,e.month-1,e.date+t-1),{startDate:o,endDate:a}=i,s=o.toDate(),l=a.toDate();return n>=s&&n<=l||r>=s&&r<=l||n<=s&&r>=l}generateRepeatEndsString(){return this.until?` ${I.t("until {0}",`${this.until.getMonthName()} ${this.until.date}, ${this.until.year}`)}`:this.count?` ${I.t("after {0} occurrences",this.count)}`:""}}$e.daySeconds=864e5;class Ve extends $e{constructor(e,t,i,n){super(e,t,i,n),this.initCache()}generateRepeatString(){return(this.interval>1?I.t("Repeat every {0} days",this.interval):I.t("Repeat daily"))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t.toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i.toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e.toDate()<=i.toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.cache.length>=this.count)break}}}initCache(){this.cache=[this.repeatStartDate]}getNextRepeatStartDate(e){const t=new Date(e.year,e.month-1,e.date+this.interval),i=me.from(t);return this.until&&t>this.until.toDate()||"number"==typeof this.count&&this.cache.length>=this.count?null:(this.cache.push(i),i)}}class Le extends $e{constructor(e,t,i,n){super(e,t,i,n),this.byMonthDay=this.repeatStartDate.date,this.initCache()}generateRepeatString(){return(this.interval>1?I.t("Repeat every {0} months on day {1}",this.interval,this.byMonthDay):I.t("Repeat monthly on day {0}",this.byMonthDay))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t.toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i.toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e.toDate()<=i.toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.cache.length>=this.count)break}}}initCache(){this.cache=[this.repeatStartDate]}getNextRepeatStartDate(e){const t=this.getNextStartDate(e.year,e.month-1+this.interval),i=me.from(t);return this.until&&t>this.until.toDate()||"number"==typeof this.count&&this.cache.length>=this.count?null:(this.cache.push(i),i)}getNextStartDate(e,t){const i=new Date(e,t,this.byMonthDay);return i.getDate()===this.byMonthDay?i:this.getNextStartDate(e,t+1)}}class Ae extends $e{constructor(e,t,i,n,r){super(e,t,i,n),this.byWeekDay=this.sortWeekDay(r),this.initCache()}getRepeatSeries(e,t=1){return this.generateRepeatDateCacheUntilEndDate(e.endDate),this.getValidCache().filter((i=>this.isSeriesInPeriod(i,t,e)))}generateRepeatString(){const e=this.byWeekDay.map((e=>I.t(ce[e])));return(this.interval>1?I.t("Repeat every {0} weeks on {1}",this.interval,e.join(", ")):I.t("Repeat weekly on {0}",e.join(", ")))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t[0].toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i[0].toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e[0]&&e[0].toDate()<=i[0].toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.getValidCache().length>=this.count)break}}}getNextRepeatStartDate(e){const t=this.getNextStartDates(e);if(0===t.length||"number"==typeof this.count&&this.getValidCache().length>=this.count)return null;{const e=t.map((e=>me.from(e)));return this.cache.push(e),e}}getNextStartDates(e){return e.map((e=>new Date(e.year,e.month-1,e.date+7*this.interval))).filter((e=>!this.until||e<=this.until.toDate()))}initCache(){const e=[],t=this.getCurrentDayIndex(this.repeatStartDate);this.byWeekDay.forEach((i=>{const n=Ae.weekDay.indexOf(i)-t,{year:r,month:o,date:a}=this.repeatStartDate,s=me.from(new Date(r,o-1,a+n));(!this.until||s.toDate()<=this.until.toDate())&&e.push(s)})),this.cache=[e]}sortWeekDay(e){return e&&e.length?e.map((e=>e.toLocaleLowerCase())).sort(((e,t)=>Ae.weekDay.indexOf(e)-Ae.weekDay.indexOf(t))):[Ae.weekDay[this.getCurrentDayIndex(this.repeatStartDate)]]}getCurrentDayIndex(e){return e.toDate().getDay()}getValidCache(){const e=B(this.cache.slice(1));return this.cache[0].filter((e=>e.toDate()>=this.repeatStartDate.toDate())).concat(e).slice(0,"number"==typeof this.count?this.count:void 0)}}Ae.weekDay=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((e=>e.toLowerCase()));class Be extends $e{constructor(e,t,i,n){super(e,t,i,n),this.matchDay=this.repeatStartDate.date,this.matchMonth=this.repeatStartDate.month,this.initCache()}generateRepeatString(){const e=I.t(this.repeatStartDate.getMonthName());return(this.interval>1?I.t("Repeat every {0} years on {1} {2}",this.interval,e,this.matchDay):I.t("Repeat yearly on {0} {1}",e,this.matchDay))+this.generateRepeatEndsString()}generateRepeatDateCacheUntilEndDate(e){const t=this.cache[this.cache.length-1];if(t.toDate()<e.toDate()&&(!this.count||"number"==typeof this.count&&this.cache.length<this.count)){let i=this.getNextRepeatStartDate(t);for(;i&&i.toDate()<e.toDate();){const e=this.getNextRepeatStartDate(i);if(e&&e.toDate()<=i.toDate()){this.cache.pop();break}if(i=e,"number"==typeof this.count&&this.cache.length>=this.count)break}}}getNextRepeatStartDate(e){const t=this.getNextStartDate(e.year+this.interval),i=me.from(t);return this.until&&t>this.until.toDate()||"number"==typeof this.count&&this.cache.length>=this.count?null:(this.cache.push(i),i)}getNextStartDate(e){const t=new Date(e,this.matchMonth-1,this.matchDay);return t.getDate()===this.matchDay&&t.getMonth()+1===this.matchMonth?t:this.getNextStartDate(e+1)}initCache(){this.cache=[this.repeatStartDate]}}const Ne=new class{getPattern(e,t,i=pe()){const n=me.from(e),{frequency:r,interval:o=1,byWeekDay:a,until:s,count:l}=t,d=this.initDate(s,i);return this.initRepeatPattern(r,n,o<1?1:o,l,d,a)}initDate(e,t){if(e)return me.from(new Date(e),t)}initRepeatPattern(e,t,i,n,r,o){switch(e){case"daily":return new Ve(t,i,n,r);case"weekly":return new Ae(t,i,n,r,o);case"monthly":return new Le(t,i,n,r);default:return new Be(t,i,n,r)}}},Fe=/^\d{1,2}\/\d{1,2}\/\d{4}/,We=/^\d{1,2}:\d{1,2}/;class He{constructor(e,t,i){this._eventSpansDays=1,this.repeatPattern=null,this._event=e,this._eventKey=t||N(),this._timezone=i||pe(),this.checkEventRequireField(e),this.initDate(e),this.initEventSpansDays(),this.initRepeatPattern()}get event(){return this._event}get eventKey(){return this._eventKey}get title(){return this._event.title}get disabled(){return!!this._event.disabled}get variant(){return this._event.variant}get color(){return this._event.color}get isAllDayEvent(){return!!this._event.isAllDay}get isRepeatEvent(){return null!==this.repeatPattern}get startDate(){return this._startDate}get endDate(){return this._endDate}get startTime(){return this._startTime}get endTime(){return this._endTime}get eventSpansDays(){return this._eventSpansDays}copyTo(e,t){const i=this._eventSpansDays>1?new Date(t.year,t.month-1,t.date+(this._eventSpansDays-1)):t.toDate();return new He(Object.assign(Object.assign({},this._event),{startDate:t.toDate(),endDate:i,startTime:this.startTime,endTime:this.endTime}),e)}isGroupEvent(){return this._eventSpansDays>1}isCurrentDayEvent(e){const{startDate:t,endDate:i}=this,n=me.from(t),r=me.from(new Date(i.getFullYear(),i.getMonth(),i.getDate()+1)),o=e.toDate();return n.toDate()<=o&&r.toDate()>o}generateRepeatString(){var e;return(null===(e=this.repeatPattern)||void 0===e?void 0:e.generateRepeatString())||""}generateDateTimeString(e,t){const i=I.t(Object.values(ce)[e.toDate().getDay()]),n=he(t,this.startTime),r=he(t,this.endTime);return`${i}, ${e.date} ${e.getMonthName(!0)} ${e.year} ${n} - ${r}`}getEventDuration(){const[e,t]=this.startTime.split(":"),[i,n]=this.endTime.split(":"),r=me.from(new Date,this._timezone),o=new Date(r.year,r.month,r.date,Number(e),Number(t));return(new Date(r.year,r.month,r.date,0===Number(i)&&0!==Number(e)?24:Number(i),Number(n)).valueOf()-o.valueOf())/6e4}getRepeatSeries(e){return this.repeatPattern?this.repeatPattern.getRepeatSeries(e,this._eventSpansDays):[]}updateTimezone(e){this._timezone=e,this.initDate(this._event),this.initEventSpansDays(),this.initRepeatPattern()}convertTimeTo24Hour(e){if((e=e.toLocaleLowerCase()).indexOf("am")>0||e.indexOf("pm")>0){if(e.indexOf("am")>0){e=e.replace("am","").trim();const[t,i]=e.split(":");return`${"12"===t?"00":t}:${i}`}{e=e.replace("pm","").trim();const[t,i]=e.split(":");return`${"12"===t?"12":Number(t)+12}:${i}`}}return e}checkEventRequireField(e){const{title:t,startDate:i,endDate:n,startTime:r,endTime:o}=e;if(i&&"string"==typeof i&&!Fe.test(i)||n&&"string"==typeof n&&!Fe.test(n))throw new Error("Invalid calendar event item, the date format should be MM/DD/YYYY!");if(r&&"string"==typeof r&&!We.test(r)||o&&"string"==typeof o&&!We.test(o))throw new Error("Invalid calendar event item, the time format should be HH:mm!");if(!t||!i||!n&&!o)throw new Error("Invalid calendar event item, the required field should not empty!")}initDate(e){const{startDate:t,startTime:i,endDate:n,endTime:r}=e,o=this.processStartDate(t,i||"");this._startTime=this.formatTimeForDisplay(this._startDate,i||""),this.processEndDate(n||"",r||"",o),this._endTime=this.formatTimeForDisplay(this._endDate,r||"")}processStartDate(e,t){let i,n;if(e&&"object"==typeof e)i={year:e.getFullYear(),month:e.getMonth(),date:e.getDate()},n=e;else if(e&&"string"==typeof e){const[t,r,o]=e.split("/");i={year:Number(o),month:Number(t)-1,date:Number(r)},n=new Date(i.year,i.month,i.date)}if(t&&i&&n){const{timeHours:e,timeMinutes:r}=this.getCurrentHourAndMinutes(t);n=new Date(i.year,i.month,i.date,e,r,0)}return n&&(this._startDate=this.convertDateToTimezone(n)),i}processEndDate(e,t,i){let n;if(e&&"object"==typeof e)n=e;else if(e&&"string"==typeof e){const[t,i,r]=e.split("/");n=new Date(Number(r),Number(t)-1,Number(i),23,59,59)}else i&&(n=new Date(i.year,i.month,i.date,23,59,59));if(t&&n){const{timeHours:e,timeMinutes:i}=this.getCurrentHourAndMinutes(t,23,59);n=new Date(n.getFullYear(),n.getMonth(),n.getDate(),e,i,59)}n&&(this._endDate=this.convertDateToTimezone(n))}formatTimeForDisplay(e,t){if(Boolean(t)&&this._timezone===pe()){const i=this.convertTimeTo24Hour(t),[n,r]=i.split(":");return`${e.getHours().toString().padStart(n.length,"0")}:${e.getMinutes().toString().padStart(r.length,"0")}`}return`${e.getHours()}:${e.getMinutes()}`}getCurrentHourAndMinutes(e,t=0,i=0){let n=t,r=i;if(e){const t=this.convertTimeTo24Hour(e).split(":");n=Number(t[0]),r=Number(t[1])}return{timeHours:n,timeMinutes:r}}convertDateToTimezone(e){if(this._timezone&&this._timezone!==pe())try{const t=new Intl.DateTimeFormat([],{timeZone:this._timezone,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(e),i=t.find((e=>"year"===e.type)),n=t.find((e=>"month"===e.type)),r=t.find((e=>"day"===e.type)),o=t.find((e=>"hour"===e.type)),a=t.find((e=>"minute"===e.type)),s=t.find((e=>"second"===e.type));if(i&&n&&r&&o&&a&&s){const e=parseInt(i.value,10),t=parseInt(n.value,10),l=parseInt(r.value,10),d=parseInt(o.value,10),c=parseInt(a.value,10),h=parseInt(s.value,10);return new Date(e,t-1,l,d,c,h)}}catch(e){c.warn("Invalid timezone:",this._timezone)}return e}initRepeatPattern(){this._event.repeatOptions&&this._event.repeatOptions.frequency&&(this.repeatPattern=Ne.getPattern(this._startDate,this._event.repeatOptions,this._timezone))}initEventSpansDays(){const e=me.from(this.startDate),t=me.from(this.endDate);this._eventSpansDays=(t.toDate().valueOf()-e.toDate().valueOf())/864e5+1}}var _e=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ue extends d{constructor(){super(...arguments),this.repeatEventMap=new Map}getCurrentDateEvents(e){return this.createRepeatEvents().filter((t=>t.isCurrentDayEvent(e)))}updateAfterEventChange(e){this.initCalendarEvents(e),this.repeatEventMap.clear()}updateWhenComponentWillLoad(){this.initCalendarEvents(this.events)}updateAfterTimezoneChange(){this.calendarEvents.length>0&&this.calendarEvents.forEach((e=>e.updateTimezone(this.timezone))),A.notify(b.getSubject(this.host,T),{}),this.repeatEventMap.clear()}initCalendarEvents(e){const t=[];e&&e.forEach((e=>{try{const i=new He(e,void 0,this.timezone);t.push(i)}catch(t){c.warn("Invalid calendar event item:",e)}})),this.calendarEvents=t}createRepeatEvents(){const e=[],t=[];return this.calendarEvents.forEach((i=>{i.isRepeatEvent?i.getRepeatSeries(this.currentPeriod).forEach((e=>{t.push(this.generateCalendarEventByRepeatSeries(i,e))})):e.push(i)})),t.concat(e)}generateCalendarEventByRepeatSeries(e,t){const i=`${e.eventKey}-${t.year}${t.month}${t.date}`;if(this.repeatEventMap.has(i))return this.repeatEventMap.get(i);{const n=e.copyTo(i,t);return this.repeatEventMap.set(i,n),n}}}_e([l()],Ue.prototype,"host",void 0),_e([l({writable:!0})],Ue.prototype,"calendarEvents",void 0),_e([l()],Ue.prototype,"currentPeriod",void 0),_e([l()],Ue.prototype,"events",void 0),_e([l()],Ue.prototype,"timezone",void 0),_e([h("watchEventsChange")],Ue.prototype,"updateAfterEventChange",null),_e([h("componentWillLoad")],Ue.prototype,"updateWhenComponentWillLoad",null),_e([h("watchTimezoneChange")],Ue.prototype,"updateAfterTimezoneChange",null);var Ye=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ze extends d{render(t,i,n,r=!1){return e("vega-calendar-event",{"data-calendar-ref":this.host,key:`${t.eventKey}-${t.startTime}-${t.endTime}`,calendarEvent:t,class:i,onKeyDown:D(),onClick:()=>{this.handleEventClick(t),this.enabledEventPreview&&this.setupPreviewContainer(t,n,r)}},!t.isRepeatEvent&&e("slot",{name:Ce(t.event.key)}))}handleEventClick(e){this.eventClickEmitter.emit({rawEvent:e.event})}setupPreviewContainer(e,t,i){const n=this.eventPreviewPopoverController.getEventPreviewContainer(e,t,i);if(n){const r=this.renderer.getEventPreviewRef();i?(r.classList.remove("single-event-preview"),r.classList.add("group-event-preview")):(r.classList.remove("group-event-preview"),r.classList.add("single-event-preview")),A.notify(b.getSubject(r,V),{event:e,targetCalendarViewDate:t,timeFormat:this.timeFormat});const o=this.host.querySelector("[slot=event-preview-additional-fields]");o&&r.append(o);const a=Ce(e.event.key),s=this.host.querySelector(`[slot=${a}]`),l=r.querySelector(`[slot=${a}]`);s&&!l&&r.append(s.cloneNode(!0)),n.append(r)}}}Ze.backgroundColorModeEventHeight=18,Ye([l()],Ze.prototype,"host",void 0),Ye([l()],Ze.prototype,"calendarView",void 0),Ye([l()],Ze.prototype,"eventClickEmitter",void 0),Ye([l()],Ze.prototype,"timeFormat",void 0),Ye([l()],Ze.prototype,"enabledEventPreview",void 0),Ye([l()],Ze.prototype,"renderer",void 0),Ye([l()],Ze.prototype,"eventPreviewPopoverController",void 0);var Ke=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class qe extends F{constructor(){super({target:()=>this.host,callback:()=>this.updateMaxDisplayCountWithDebounce()}),this.updateMaxDisplayCountWithDebounce=W(this.updateMaxDisplayCount,500,this)}updateMaxDisplayCount(){try{const e=this.monthEventRenderer.getMonthEventContainerRef();if("month"===this.viewMode&&e&&e.parentElement){const t=e.parentElement.getBoundingClientRect().height,i=Math.floor((t-qe.monthDateTitleHeight)/Ze.backgroundColorModeEventHeight);A.notify(b.getSubject(this.host,S),{host:this.host,detail:i})}}catch(e){}}updateMaxDisplayCountAfterSwitchToMonthView(e){"month"===e&&this.updateMaxDisplayCountWithDebounce()}}qe.monthDateTitleHeight=26,Ke([l()],qe.prototype,"host",void 0),Ke([l()],qe.prototype,"monthEventRenderer",void 0),Ke([l()],qe.prototype,"viewMode",void 0),Ke([h("componentDidLoad")],qe.prototype,"updateMaxDisplayCount",null),Ke([h("watchViewModeChange")],qe.prototype,"updateMaxDisplayCountAfterSwitchToMonthView",null);var Xe=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ge extends d{render(){const t=this.calendarView.dateItems[0],i=t.map((e=>this.calendarEventController.getCurrentDateEvents(e).filter((e=>e.isAllDayEvent||e.isGroupEvent())))),n=this.fullDayEventLayoutRenderer.sortLongEvents(i),r=this.filterDisplayEvents(n);return e("div",{class:"calendar-view-event-all"},t.map(((t,i)=>e("div",{class:"event-all-col border-divider-left",key:t.date},this.renderCurrentFullDayEvents(r[i],i,n[i],t)))))}renderCurrentFullDayEvents(i,n,r,o){const a=i.length*Ze.backgroundColorModeEventHeight-2,s=r.slice(i.length).filter(Boolean).length;return e(t,null,e("div",{class:"placeholder-block",style:{height:a+"px"}},e("span",null,i.length," events")),this.fullDayEventLayoutRenderer.render(i,n,o),s>0&&this.dayViewFullDayEventMoreButtonRenderer.render(s))}filterDisplayEvents(e){if(this.showAllEventsInDayOrWeekView)return e;{const t=[],i=Ge.maxDisplayEventLength;return e.forEach((e=>{const n=e.length>i?e.slice(0,i):e;t.push(n)})),t}}}Ge.maxDisplayEventLength=2,Xe([l()],Ge.prototype,"calendarView",void 0),Xe([l()],Ge.prototype,"calendarEventController",void 0),Xe([l()],Ge.prototype,"eventItemRenderer",void 0),Xe([l()],Ge.prototype,"fullDayEventLayoutRenderer",void 0),Xe([l()],Ge.prototype,"showAllEventsInDayOrWeekView",void 0),Xe([l()],Ge.prototype,"dayViewFullDayEventMoreButtonRenderer",void 0);var Je=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Qe extends d{render(t,i){const n=[];return t.eventLayoutCells.forEach(((r,o)=>{let a=r.getEventBySlotIndex(0),s=0;for(let l=0;l<Qe.totalNumberOfCells;l++){const d=r.getEventBySlotIndex(l);d!==a&&(a&&n.push(e("div",{key:o,class:"time-event-block",style:this.getTimeEventStyle(s,l,o,t.getEventColumnsSpannedCount(a))},this.eventPreviewPopoverRenderer.render(a,i,{"day-event":!0,"bg-shadow":o>0}))),a=d,s=l)}})),n}getTimeEventStyle(e,t,i,n){const r=i*(1/n);return{position:"absolute",left:100*r+"%",top:100/Qe.totalNumberOfCells*e+"%",width:`calc(100% - ${100*r}%)`,height:100/Qe.totalNumberOfCells*(t-e)+"%",zIndex:i>0?`${i}`:void 0}}}Qe.totalNumberOfCells=96,Je([l()],Qe.prototype,"eventItemRenderer",void 0),Je([l()],Qe.prototype,"eventPreviewPopoverRenderer",void 0);class et{addCurrentEventToLayout(e,t){let i=e.find((e=>!e.hasOverlapEvent(t)));i?i.updateSlots(t):(i=this.createNewLayoutCell(),i.updateSlots(t),e.push(i))}}class tt{get eventLayoutCells(){return this.cells}}class it extends tt{constructor(e){super(),this.cells=e}getEventColumnsSpannedCount(e){const t=this.cells.findIndex((t=>t.getEventStartIndex(e)>=0));let i=t+1;return t<this.cells.length-1&&this.cells.slice(t+1).forEach((t=>{t.hasOverlapEvent(e)&&i++})),i}}class nt{getEventBySlotIndex(e){return this.slots[e]}getEventStartIndex(e){return this.slots.findIndex((t=>t===e))}getEventEndIndex(e){const t=this.getEventStartIndex(e);let i=t;if(t>=0)for(let n=t+1;n<this.slots.length;n++){if(this.slots[n]!==e){i=n-1;break}n===this.slots.length-1&&(i=n)}return i}}class rt extends nt{constructor(){super(...arguments),this.slots=rt.defaultSlots}hasOverlapEvent(e){const[t,i]=this.getIndexRangeFromEvent(e);let n=!1;for(let e=t;e<i;e++)if(this.slots[e]){n=!0;break}return n}updateSlots(e){const[t,i]=this.getIndexRangeFromEvent(e);i>t&&(this.slots=this.slots.slice(0,t).concat(Array(i-t).fill(e),this.slots.slice(i)))}getIndexRangeFromEvent(e){const{startTime:t,endTime:i}=e;return[ke(t),ke(i)]}}rt.defaultSlots=Array(96).fill(null);class ot extends et{generate(e){const t=[new rt];return e.forEach((e=>{this.addCurrentEventToLayout(t,e)})),new it(t)}createNewLayoutCell(){return new rt}}class at{sort(e,t,i){const n=[],r=[],o=[];for(let t=0;t<e.length;t++){const i=e[t];i&&(i.isGroupEvent()?r.push(i):i.isAllDayEvent?n.push(i):o.push(i))}let a=n.concat(this.sortCalendarEventByTime(o)),s=i.getEventsByIndex(t);const l=s.filter((e=>e));if(a=r.filter((e=>l.findIndex((t=>t===e))<0)).concat(a),s.length>l.length){const e=a.slice(0,s.length-l.length);a=a.slice(s.length-l.length),s=this.insertEventsToEmptyPosition(s,e)}return a=s.concat(a),a}sortCalendarEventByTime(e){return e.sort(((e,t)=>{const i=ke(e.startTime),n=ke(t.startTime);return i===n?ke(t.endTime)-ke(e.endTime):i-n}))}insertEventsToEmptyPosition(e,t){return e.map((e=>{if(t.length&&!e){const e=t[0];return t=t.slice(1),e}return e}))}}var st=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class lt extends d{constructor(){super(...arguments),this.calendarEventSorter=new at,this.dayViewTimedEventLayoutGenerator=new ot}render(){return e("div",{class:"day-event-container"},this.calendarView.dateItems[0].map((t=>e("div",{key:`${t.month}-${t.date}`,class:"day-event-col"},this.renderTimedEvents(t)))))}renderTimedEvents(e){const t=this.calendarEventController.getCurrentDateEvents(e).filter((e=>!e.isAllDayEvent&&!e.isGroupEvent())),i=this.calendarEventSorter.sortCalendarEventByTime(t),n=this.dayViewTimedEventLayoutGenerator.generate(i);return this.dayViewEventLayoutRenderer.render(n,e)}}st([l()],lt.prototype,"calendarView",void 0),st([l()],lt.prototype,"calendarEventController",void 0),st([l()],lt.prototype,"dayViewEventLayoutRenderer",void 0);class dt extends tt{constructor(e){super(),this.cells=e}getEventRowsIndex(e){return this.cells.findIndex((t=>t.getEventStartIndex(e)>=0))}getEventsByIndex(e){const t=[];let i=0;return this.cells.forEach(((n,r)=>{const o=n.getEventBySlotIndex(e);t.push(o),o&&(i=r)})),t.slice(0,i+1)}}class ct extends nt{constructor(){super(...arguments),this.slots=ct.defaultSlots}updateSlots(e){const{start:t,end:i}=e;this.slots=this.slots.slice(0,t).concat(Array(i-t+1).fill(e.event),this.slots.slice(i+1))}hasOverlapEvent(e){const{start:t,end:i}=e;let n=!1;for(let e=t;e<i+1;e++)if(this.slots[e]){n=!0;break}return n}}ct.defaultSlots=Array(7).fill(null);class ht extends et{generate(e){const t=this.collectAllShouldOrderLongEvents(e),i=[this.createNewLayoutCell()];return t.forEach((e=>{this.addCurrentEventToLayout(i,e)})),new dt(i)}createNewLayoutCell(){return new ct}collectAllShouldOrderLongEvents(e){const t={};e.forEach(((e,i)=>{e.filter((e=>e&&e.isGroupEvent())).forEach((e=>{t[e.eventKey]=t[e.eventKey]?Object.assign(Object.assign({},t[e.eventKey]),{end:i,start:i-t[e.eventKey].end!=1?i:t[e.eventKey].start}):{start:i,end:i,event:e}}))}));const i=Object.values(t);return this.sortLongEventViews(i)}sortLongEventViews(e){return e.sort(((e,t)=>{const{startDate:i,endDate:n}=e.event,{startDate:r,endDate:o}=t.event;i.setHours(0,0,0),r.setHours(0,0,0),n.setHours(23,59,59),o.setHours(23,59,59);const a=o.valueOf()-r.valueOf()-(n.valueOf()-i.valueOf());return i.valueOf()!==r.valueOf()?i.valueOf()-r.valueOf():a}))}}var vt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class pt extends d{constructor(){super(...arguments),this.longEventLayoutGenerator=new ht,this.calendarEventSorter=new at}sortLongEvents(e){return this.fullDayEventLayout=this.longEventLayoutGenerator.generate(e),e.map(((e,t)=>this.calendarEventSorter.sort(e,t,this.fullDayEventLayout)))}render(t,i,n){return t.map(((t,r)=>{if(t)return e("div",{key:t.eventKey,class:"month"===this.viewMode?"month-event-block":"day-event-block",style:this.getEventStyle(t,i,r,"month"===this.viewMode?pt.monthViewEventOffsetTop:0)},this.eventPreviewPopoverRenderer.render(t,n,{"month-event":"month"===this.viewMode,"day-event":"month"!==this.viewMode}))}))}getEventStyle(e,t,i,n){const r=this.calendarView.weekdays.length,o=t;let a=t+1;const s=i;let l=!0;const d=this.fullDayEventLayout.getEventRowsIndex(e);if(d>=0){const i=this.fullDayEventLayout.eventLayoutCells[d].getEventStartIndex(e),n=this.fullDayEventLayout.eventLayoutCells[d].getEventEndIndex(e);i===t?a=n+1:l=!1}return{position:"absolute",left:100/r*o+"%",top:`${s*Ze.backgroundColorModeEventHeight+n}px`,width:100/r*(a-o)+"%",opacity:l?"1":"0"}}}pt.monthViewEventOffsetTop=26,vt([l()],pt.prototype,"eventItemRenderer",void 0),vt([l()],pt.prototype,"viewMode",void 0),vt([l()],pt.prototype,"calendarView",void 0),vt([l()],pt.prototype,"eventPreviewPopoverRenderer",void 0);var ft=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class wt extends d{constructor(){super(...arguments),this.updateShowAllFlag=e=>{e.stopPropagation(),this.showAllEventsInDayOrWeekView=!0}}render(t){if(!this.showAllEventsInDayOrWeekView)return e("div",{tabIndex:0,role:"button",class:"more-button",onKeyDown:D(),onClick:this.updateShowAllFlag},`${t} More`)}resetShowAllFlag(){this.showAllEventsInDayOrWeekView=!1}}ft([l({writable:!0})],wt.prototype,"showAllEventsInDayOrWeekView",void 0),ft([h("watchViewModeChange")],wt.prototype,"resetShowAllFlag",null);var ut=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class mt extends d{render(t){const i=t.findIndex((e=>e.isToday(this.timezone)))>=0;return e("div",{class:{"time-marker-container":!0,hidden:!i}},e("div",{class:"time-marker",style:{top:this.getTimeMarkerPosition()},ref:e=>this.timeMarkerRef=e},t.map((t=>e("div",{key:t.date,class:{active:t.isToday(this.timezone)}})))))}updateTimeLine(e){this.scrollToTargetTimeBlock(e),this.syncTimeMarkerPosition(e)}clearTimer(){clearInterval(this.timeMarkerPositionTimer)}updateTimeLineIfComponentAddBack(){this.syncTimeMarkerPosition(this.viewMode)}displayCurrentTimeBlockByDefault(){this.scrollToTargetTimeBlock(this.viewMode)}getTimeMarkerPosition(){const e=new Date;if(this.timezone&&this.timezone!==pe())try{const t=new Intl.DateTimeFormat([],{timeZone:this.timezone,hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(e),i=t.find((e=>"hour"===e.type)),n=t.find((e=>"minute"===e.type));if(void 0!==i&&void 0!==n){return(60*parseInt(i.value,10)+parseInt(n.value,10))/1440*100+"%"}}catch(e){c.warn("Invalid timezone:",this.timezone)}return(60*e.getHours()+e.getMinutes())/1440*100+"%"}syncTimeMarkerPosition(e){clearInterval(this.timeMarkerPositionTimer),"month"!==e&&(this.timeMarkerPositionTimer=setInterval((()=>{this.timeMarkerRef&&(this.timeMarkerRef.style.top=this.getTimeMarkerPosition())}),6e4))}scrollToTargetTimeBlock(e){"month"!==e&&setTimeout((()=>{const e=this.viewRenderer.getCalendarViewElementRef(),t=Math.max(0,this.getViewCenterPosition());e&&t&&e.scrollTo({top:t})}),16)}getViewCenterPosition(){const e=this.viewRenderer.getCalendarViewElementRef();if(e){const t=e.querySelector(".calendar-view-title-container"),i=t?t.offsetHeight:0,n=Math.max(("number"==typeof e.offsetHeight?e.offsetHeight:0)-i,0)/2,r="number"==typeof e.scrollHeight?e.scrollHeight:0,o=16,a=Number(this.getTimeMarkerPosition().replace("%",""))/100*Math.max(r-o-i,0);if(!isNaN(n)&&a&&a>n)return a-n+o}return 0}}ut([l()],mt.prototype,"viewMode",void 0),ut([l()],mt.prototype,"viewRenderer",void 0),ut([l()],mt.prototype,"timezone",void 0),ut([h("watchViewModeChange")],mt.prototype,"updateTimeLine",null),ut([h("disconnectedCallback")],mt.prototype,"clearTimer",null),ut([h("connectedCallback")],mt.prototype,"updateTimeLineIfComponentAddBack",null),ut([h("componentDidLoad")],mt.prototype,"displayCurrentTimeBlockByDefault",null);var gt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class bt extends d{setPostOperationDate(e){this.postOperationDate=e}setDate(e,t){if(e.current!==this.postOperationDate)if(this.shouldSetCurrentDateToFirstDayOfMonth(e,t)){const t=e.current.toDate();t&&(t.setDate(1),this.setPostOperationDate(me.from(t)))}else this.setPostOperationDate(me.from(e.current.toDate()))}updateAfterTimezoneChange(){this.postOperationDate=me.from(new Date,this.timezone)}shouldSetCurrentDateToFirstDayOfMonth(e,t){return"month"===e.type&&"month"===(null==t?void 0:t.type)&&!e.current.equal(me.from(new Date,this.timezone))}}gt([l({writable:!0})],bt.prototype,"postOperationDate",void 0),gt([l()],bt.prototype,"timezone",void 0),gt([h("watchCurrentPeriodChange")],bt.prototype,"setDate",null),gt([h("watchTimezoneChange")],bt.prototype,"updateAfterTimezoneChange",null);var xt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class yt extends d{constructor(){super(...arguments),this.popoverHideObserver=null}render(e,t,i){return this.enabledEventPreview?this.renderPreviewPopover(e,i,t):this.eventItemRenderer.render(e,i,t)}renderPreviewPopover(t,i,n){return e("vega-popover",{placement:"day"===this.viewMode?"top":"right",alignment:"center",class:{"event-preview-popover":!0,block:!0},padding:"0",size:yt.SINGLE_EVENT_PREVIEW_WIDTH,ref:e=>{this.setPopoverHideObserver(e)}},e("div",{slot:"popover-content",class:"event-preview-popover-content"},this.eventItemRenderer.render(t,i,n)),e("div",{slot:"popover"},e("div",{class:"preview-container",ref:e=>{e?this.eventPreviewPopoverController.setEventPreviewContainerMap(t,n,e):this.eventPreviewPopoverController.deleteEventPreviewContainer(t,n)}})))}setPopoverHideObserver(e){e?(this.popoverHideObserver=new L((()=>!0),(async()=>await e.hide())),A.register(b.getSubject(this.host,T),this.popoverHideObserver)):this.popoverHideObserver&&A.unregister(b.getSubject(this.host,T),this.popoverHideObserver)}}yt.SINGLE_EVENT_PREVIEW_WIDTH=400,xt([l()],yt.prototype,"host",void 0),xt([l()],yt.prototype,"renderer",void 0),xt([l()],yt.prototype,"viewMode",void 0),xt([l()],yt.prototype,"timeFormat",void 0),xt([l()],yt.prototype,"eventItemRenderer",void 0),xt([l()],yt.prototype,"enabledEventPreview",void 0),xt([l()],yt.prototype,"eventPreviewPopoverController",void 0);class kt extends d{constructor(){super(...arguments),this.singleEventPreviewContainerMap=new Map,this.groupEventsPreviewContainerMap=new Map}setEventPreviewContainerMap(e,t,i){(Array.isArray(e)?this.groupEventsPreviewContainerMap:this.singleEventPreviewContainerMap).set(this.generateMapKey(e,t),i)}deleteEventPreviewContainer(e,t){(Array.isArray(e)?this.groupEventsPreviewContainerMap:this.singleEventPreviewContainerMap).delete(this.generateMapKey(e,t))}getEventPreviewContainer(e,t,i){const n=i?this.groupEventsPreviewContainerMap:this.singleEventPreviewContainerMap,r=this.generateMapKey(e,t);if(n.has(r))return n.get(r);{const i=this.getDateString(t),r=Array.from(n.keys()).find((t=>t.includes(e.eventKey)&&t.endsWith(i)));if(r)return n.get(r)}}clearAllPreviewContainers(){this.singleEventPreviewContainerMap.clear(),this.groupEventsPreviewContainerMap.clear()}generateMapKey(e,t){const i=this.getDateString(t);return Array.isArray(e)?e.filter((e=>e)).map((e=>e.eventKey)).join("-")+i:e.eventKey+i}getDateString(e){return`-${e.year}-${e.month}-${e.date}`}}!function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);o>3&&a&&Object.defineProperty(t,i,a)}([h("watchTimezoneChange")],kt.prototype,"clearAllPreviewContainers",null);var Ct=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Rt=class{constructor(e){n(this,e),this.vegaChange=r(this,"vegaChange",7),this.change=r(this,"change",7),this.vegaEventClick=r(this,"vegaEventClick",7),this.eventClick=r(this,"eventClick",7),this.vegaDateDblClick=r(this,"vegaDateDblClick",7),this.dateDblClick=r(this,"dateDblClick",7),this.vegaDateClick=r(this,"vegaDateClick",7),this.dateClick=r(this,"dateClick",7),this.vegaMoreActionClick=r(this,"vegaMoreActionClick",7),this.moreActionClick=r(this,"moreActionClick",7),this.globalSlimmer={},this.translationSlimmer=new _,this.vegaComponentUsageRuntimeMetricsSlimmer=new p,this.renderer=new G,this.switchPanelRenderer=new Q,this.viewRenderer=new te,this.monthViewRenderer=new oe,this.viewWithTimeRenderer=new se,this.timeLineRenderer=new le,this.timeMarkerRenderer=new mt,this.monthEventRenderer=new Te,this.currentPeriodController=new Pe,this.calendarViewController=new Me,this.postOperationDateController=new bt,this.dayViewFullDayEventRenderer=new Ge,this.eventPreviewPopoverController=new kt,this.dayViewFullDayEventMoreButtonRenderer=new wt,this.dayViewTimedEventRenderer=new lt,this.eventItemRenderer=new Ze,this.dayViewEventLayoutRenderer=new Qe,this.fullDayEventLayoutRenderer=new pt,this.eventPreviewPopoverRenderer=new yt,this.calendarEventController=new Ue,this.eventResponsiveController=new qe,this.changeEventEmitter=z(Rt,m),this.eventClickEmitter=z(Rt,y),this.dateDblClickEmitter=z(Rt,k),this.moreActionClickEmitter=z(Rt,C),this.dateClickEmitter=z(Rt,R),this.changeEventPrevent=new P([m],(()=>this.switchPanelRenderer.getSwitchPanelRef())),this.timeFormatNotifySlimmer=H(Rt,"timeFormat","watchTimeFormat"),this.showEventColorBarNotifySlimmer=H(Rt,"showEventColorBar","watchShowEventColorBar"),this.postOperationDate=this.getInitialPostOperationDate(),this.showAllEventsInDayOrWeekView=!1,this.calendarEvents=[],this.viewMode="month",this.timeFormat="24-hour",this.isDateDisabled=()=>!1,this.showEventColorBar=!0,this.showSwitchView=!0,this.enableDateClick=!1,this.showWeekends=!0,this.enabledEventPreview=!0,this.timezone=pe()}watchCurrentPeriodChange(e,t){}watchViewModeChange(e){}watchEventsChange(e){}watchTimeFormat(e){}watchShowEventColorBar(e){}watchShowWeekendsChange(){}watchTimezoneChange(){}render(){return s(e(o,null,this.renderer.render()),this.host)}getInitialPostOperationDate(){return me.from(new Date,this.timezone)}get host(){return a(this)}static get watchers(){return{currentPeriod:["watchCurrentPeriodChange"],viewMode:["watchViewModeChange"],events:["watchEventsChange"],timeFormat:["watchTimeFormat"],showEventColorBar:["watchShowEventColorBar"],showWeekends:["watchShowWeekendsChange"],timezone:["watchTimezoneChange"]}}};Ct([f()],Rt.prototype,"globalSlimmer",void 0),Ct([v()],Rt.prototype,"translationSlimmer",void 0),Ct([v()],Rt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ct([v()],Rt.prototype,"renderer",void 0),Ct([v()],Rt.prototype,"switchPanelRenderer",void 0),Ct([v()],Rt.prototype,"viewRenderer",void 0),Ct([v()],Rt.prototype,"monthViewRenderer",void 0),Ct([v()],Rt.prototype,"viewWithTimeRenderer",void 0),Ct([v()],Rt.prototype,"timeLineRenderer",void 0),Ct([v()],Rt.prototype,"timeMarkerRenderer",void 0),Ct([v()],Rt.prototype,"monthEventRenderer",void 0),Ct([v()],Rt.prototype,"currentPeriodController",void 0),Ct([v()],Rt.prototype,"calendarViewController",void 0),Ct([v()],Rt.prototype,"postOperationDateController",void 0),Ct([v()],Rt.prototype,"dayViewFullDayEventRenderer",void 0),Ct([v()],Rt.prototype,"eventPreviewPopoverController",void 0),Ct([v()],Rt.prototype,"dayViewFullDayEventMoreButtonRenderer",void 0),Ct([v()],Rt.prototype,"dayViewTimedEventRenderer",void 0),Ct([v()],Rt.prototype,"eventItemRenderer",void 0),Ct([v()],Rt.prototype,"dayViewEventLayoutRenderer",void 0),Ct([v()],Rt.prototype,"fullDayEventLayoutRenderer",void 0),Ct([v()],Rt.prototype,"eventPreviewPopoverRenderer",void 0),Ct([v()],Rt.prototype,"calendarEventController",void 0),Ct([v()],Rt.prototype,"eventResponsiveController",void 0),Ct([v()],Rt.prototype,"changeEventEmitter",void 0),Ct([v()],Rt.prototype,"eventClickEmitter",void 0),Ct([v()],Rt.prototype,"dateDblClickEmitter",void 0),Ct([v()],Rt.prototype,"moreActionClickEmitter",void 0),Ct([v()],Rt.prototype,"dateClickEmitter",void 0),Ct([v()],Rt.prototype,"changeEventPrevent",void 0),Ct([v()],Rt.prototype,"timeFormatNotifySlimmer",void 0),Ct([v()],Rt.prototype,"showEventColorBarNotifySlimmer",void 0),Rt.style='.border-divider-top{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-left-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-top.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.border-divider-left{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-left.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.border-divider-right{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-bottom-width:0px}.border-divider-bottom{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-right-width:0px}:host{display:flex;flex-direction:column;border-radius:12px;border:1px solid rgba(var(--v-border-divider, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));overflow:hidden;width:100%;height:100%;box-sizing:border-box;max-height:1966px}.calendar-switch-panel{padding:24px;border-bottom-width:1px;border-top-width:0px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));flex-shrink:0;width:100%;box-sizing:border-box}.calendar-switch-panel .calendar-date-switch-container{display:flex;gap:8px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-view-switch-container{display:flex;gap:16px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-current-date{padding-left:8px}.calendar-view{width:100%;position:relative;flex-grow:1;overflow-y:auto;overflow-x:hidden;--calendar-weekday-columns:7}.calendar-view.calendar-hide-weekends{--calendar-weekday-columns:5}.calendar-view-month .calendar-view-month-container{width:100%;display:grid;min-height:100%;grid-template-rows:43px repeat(6, minmax(64px, 1fr))}.calendar-view-month .calendar-view-title{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));top:0;left:0;z-index:62}.calendar-view-month .calendar-view-title div{padding-top:12px;padding-bottom:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-title div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-title div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-title div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-month .calendar-view-row{position:relative;display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-month .calendar-view-row.calendar-view-title{position:sticky}.calendar-view-month .calendar-view-row:last-child{border-bottom-width:0px}.calendar-view-month .calendar-view-row .row-cell{overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.calendar-view-month .calendar-view-row .row-cell:last-child{border-right-width:0px}.calendar-view-month .calendar-view-row .row-cell .date{padding-top:4px;padding-bottom:4px;padding-right:12px;padding-left:8px}.calendar-view-month .calendar-view-row .row-cell .date>div{display:inline-block;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-month .calendar-view-row .row-cell .date .month-block{margin-right:2px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col{text-align:center;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;cursor:pointer;width:18px;height:18px;line-height:18px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:hover{background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:active{background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-month .calendar-view-row .row-cell.current-month-day .date>div{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled .date>div{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-top-left-radius:9999px;border-bottom-left-radius:9999px;color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-container{width:100%}.calendar-view-container .calendar-view-title-container{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:sticky;top:0;left:0;z-index:62}.calendar-view-container .calendar-view-row{box-sizing:border-box;width:100%;display:flex;flex-direction:row}.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{width:72px;text-align:right;padding-right:8px;box-sizing:border-box;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-shrink:0}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-container .calendar-view-title{width:100%}.calendar-view-container .calendar-view-title>div{padding:12px;padding-bottom:8px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center;display:flex;flex-direction:column;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title>div{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-container .calendar-view-title .week-day{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title .week-day{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title .week-day{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title .week-day{font-family:"Inter", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}.calendar-view-container .calendar-view-title .active div{color:rgba(var(--v-text-link, 19, 98, 226, 1))}.calendar-view-container .calendar-view-event-all-container{align-items:center}.calendar-view-container .calendar-view-event-all{display:grid;grid-template-rows:1fr;flex-grow:1;min-height:18px}.calendar-view-container .calendar-view-day-container .time-line{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr))}.calendar-view-container .calendar-view-day-container .time-line .time-text{margin-top:-9px}.calendar-view-container .calendar-view-day-container .calendar-view-content{width:100%}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr));grid-template-columns:minmax(64px, 1fr)}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col>.border-divider-top:first-child{border-top-width:0px}.calendar-view-container .calendar-view-content-container{width:100%;position:relative}.calendar-view-week .calendar-view-container{min-height:100%}.calendar-view-week .calendar-view-container .calendar-view-title{display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-event-all{grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-day-container .calendar-view-content{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .time-marker-container .time-marker{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .day-event-container{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-day .calendar-view-container{min-height:100%}.time-marker-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.time-marker-container.hidden{display:none}.time-marker-container .time-marker{position:absolute;height:2px;display:grid;min-width:100%;left:0;top:0;z-index:61}.time-marker-container .time-marker div{width:100%;height:2px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));opacity:0.3}.time-marker-container .time-marker div.active{opacity:1;position:relative}.time-marker-container .time-marker div.active::before{content:"";display:block;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;position:absolute;width:8px;height:8px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));top:-3px;left:-4px}.day-event-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.day-event-container .day-event-col{height:100%;overflow:hidden}.day-event-container vega-calendar-event{pointer-events:auto;height:100%}.calendar-view-month .month-event-row{position:absolute;width:100%;overflow:hidden;height:calc(100% - 26px);left:0;bottom:0}.calendar-view-month .events-container{width:100%;box-sizing:border-box;overflow:hidden;padding:2px;display:flex;flex-direction:column;gap:2px;justify-content:space-between;flex-grow:1}.calendar-view-month .events-container .event-list{display:flex;flex-direction:column;gap:2px;flex-grow:1}.calendar-view-month .events-container .event-list .month-event-block{box-sizing:border-box;padding-left:2px;padding-right:3px}.calendar-view-month .events-container .month-event-more .more-button{display:inline-block;height:16px;font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .events-container .month-event-more .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .events-container .month-event-more .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .events-container .month-event-more .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-month .events-container .month-event-more .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all{position:relative}.calendar-view-container .calendar-view-event-all .placeholder-block{padding-top:2px;padding-bottom:2px;box-sizing:content-box}.calendar-view-container .calendar-view-event-all .placeholder-block span{display:none}.calendar-view-container .calendar-view-event-all .day-event-block{padding-top:2px;padding-right:2px;box-sizing:border-box;padding-left:3px}.calendar-view-container .calendar-view-event-all .more-button{display:inline-block;height:16px;font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px;margin-left:2px;padding:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-event-all .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-event-all .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-event-all .more-button{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-container .calendar-view-event-all .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all .event-all-col{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.calendar-view-container .day-event-col{position:relative}.calendar-view-container .day-event-col .time-event-block{box-sizing:border-box;padding-right:8px;padding-bottom:2px;padding-top:3px}.calendar-view-container .day-event-col .time-event-block vega-calendar-event.bg-shadow::part(event-container):not(:focus){outline:2px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}.calendar-view-container .day-event-col .time-event-block:focus-within{z-index:60 !important}.calendar-event-slot-container{display:none}.event-preview-popover{height:100%}.event-preview-popover.block{display:block}.event-preview-popover .event-preview-popover-content{height:100%}';var jt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Dt extends d{getEventTitleContainerRef(){return this.eventTitleContainerRef}getSlotContainerRef(){return this.slotContainerRef}render(){return e(t,null,this.injectBackgroundColorStyle(),this.calendarEventRender())}calendarEventRender(){return this.calendarEvent.isAllDayEvent||this.calendarEvent.isGroupEvent()?this.renderBackgroundModeEvent():this.renderNormalEvent()}renderBackgroundModeEvent(){const t=this.calendarEvent.disabled;return e("div",{role:"button",tabIndex:0,class:{"slot-container":this.slotMode,"background-color-mode":!0,"event-bg-color":!t,"bg-disabled":t},ref:e=>this.slotContainerRef=e},this.slotMode?this.getSlotElement():this.calendarEvent.title)}renderNormalEvent(){const{variant:t,disabled:i}=this.calendarEvent,n=t||"primary",r=!this.host.classList.contains("day-event"),o={"slot-container":this.slotMode,"event-container":!0,disabled:i,[n]:!0};if(r)return e("div",{role:"button",tabIndex:0,class:o,ref:e=>this.slotContainerRef=e},!this.slotMode&&this.renderEventStatus(),this.slotMode?this.getSlotElement():this.defaultNormalMonthEventContentRender());{const t=this.calendarEvent.getEventDuration();return e("div",{part:"event-container",class:Object.assign(Object.assign({},o),{vertical:t>30,"duration-half-an-hour":30===t,"event-bg-color":!i,"bg-disabled":i}),role:"button",tabIndex:0,ref:e=>this.slotContainerRef=e},!this.slotMode&&this.renderEventStatus(),e("div",{class:"cover-block"}),this.slotMode?this.getSlotElement():this.defaultNormalTimedEventContentRender(t))}}renderEventStatus(){if(this.showColorBar){const t=this.calendarEvent.disabled;return e("div",{class:{"event-status":!0,"event-bg-color":!t,"bg-disabled":t}},e("span",{class:{stripe:"secondary"===this.calendarEvent.variant}}))}}defaultNormalMonthEventContentRender(){const{startTime:t,title:i}=this.calendarEvent;return e("div",{class:"event-title"},`${he(this.timeFormat,t)} ${i}`)}defaultNormalTimedEventContentRender(t){const{startTime:i,endTime:n,title:r}=this.calendarEvent;return e("div",{class:"event-content"},e("div",{class:{"event-title":!0,"title-word-wrap":t>30},ref:e=>this.eventTitleContainerRef=e},r),e("div",{class:"event-time"},e("vega-icon",{size:"size-12",icon:j.getIconKey("clock-three")}),e("span",null,`${he(this.timeFormat,i)} - ${he(this.timeFormat,n)}`)))}getSlotElement(){if(!this.calendarEvent.isRepeatEvent)return e("slot",null)}injectBackgroundColorStyle(){return e("style",{nonce:Y.nonce},je(this.calendarEvent.color))}}j.register({"clock-three":{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 13.3 10.7 24 24 24H360c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"/></svg>'}}),jt([l()],Dt.prototype,"host",void 0),jt([l()],Dt.prototype,"timeFormat",void 0),jt([l()],Dt.prototype,"calendarEvent",void 0),jt([l()],Dt.prototype,"slotMode",void 0),jt([l()],Dt.prototype,"showColorBar",void 0);var Et=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class zt extends Z{constructor(){super({parent:()=>this.host["data-calendar-ref"],subStates:[{subStateName:"timeFormat",parentStateName:"timeFormat"},{subStateName:"showColorBar",parentStateName:"showEventColorBar"}]})}}Et([l({writable:!0})],zt.prototype,"timeFormat",void 0),Et([l({writable:!0})],zt.prototype,"showColorBar",void 0);class It extends d{setVerticalTitleMaxHeight(){const e=this.renderer.getEventTitleContainerRef();if(e&&e.classList.contains("title-word-wrap")){const t=window.getComputedStyle(e),i=K(t.height),n=K(t.lineHeight),r=Math.max(Math.floor(i/n),1);e.style.maxHeight=r*n+"px"}}}!function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);o>3&&a&&Object.defineProperty(t,i,a)}([l()],It.prototype,"renderer",void 0);var Mt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Ot extends d{findTheCalendarEventSlot(){if(this.calendarEvent){const{event:e}=this.calendarEvent,t=this.getParentCalendarElement();if(t){const i=t.querySelector(`vega-calendar-event-slot[event-key='${e.key}']`);i&&(this.slotMode=!0,this.matchSlotElement=i)}}}appendTheRepeatEventSlotToContainer(){const e=this.renderer.getSlotContainerRef();if(this.slotMode&&e&&this.matchSlotElement&&(this.calendarEvent.isRepeatEvent||this.isPopoverContent())){const t=this.matchSlotElement.cloneNode(!0);t.removeAttribute("slot"),e.querySelector("vega-calendar-event-slot")||e.appendChild(t)}}getParentCalendarElement(){return this.host["data-calendar-ref"]}isPopoverContent(){return this.host.classList.contains("calendar-event-in-popover")}}Mt([l()],Ot.prototype,"host",void 0),Mt([l()],Ot.prototype,"calendarEvent",void 0),Mt([l({writable:!0})],Ot.prototype,"slotMode",void 0),Mt([l()],Ot.prototype,"renderer",void 0),Mt([h("componentWillLoad")],Ot.prototype,"findTheCalendarEventSlot",null),Mt([h("componentDidLoad")],Ot.prototype,"appendTheRepeatEventSlotToContainer",null);var Pt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const St=class{constructor(e){n(this,e),this.globalSlimmer={},this.pageResizeObserverSlimmer=new F({target:()=>this.host,callback:()=>this.titleMaxHeightController.setVerticalTitleMaxHeight()}),this.vegaComponentUsageRuntimeMetricsSlimmer=new p,this.renderer=new Dt,this.slotController=new Ot,this.subStateController=new zt,this.titleMaxHeightController=new It,this.timeFormat="24-hour",this.slotMode=!1,this.showColorBar=!0}render(){return U(e("slot",null)),s(e(o,null,this.calendarEvent?this.renderer.render():null),this.host)}get host(){return a(this)}};Pt([f()],St.prototype,"globalSlimmer",void 0),Pt([v()],St.prototype,"pageResizeObserverSlimmer",void 0),Pt([v()],St.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Pt([v()],St.prototype,"renderer",void 0),Pt([v()],St.prototype,"slotController",void 0),Pt([v()],St.prototype,"subStateController",void 0),Pt([v()],St.prototype,"titleMaxHeightController",void 0),St.style='.bg-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host{display:block;box-sizing:border-box;width:100%}:host .background-color-mode{border-radius:2px;color:rgba(var(--v-text-black, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;cursor:pointer;overflow:hidden;white-space:nowrap}@media screen and (min-width: 768px) and (max-width: 1023px){:host .background-color-mode{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host .background-color-mode{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host .background-color-mode{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host .background-color-mode:not(.slot-container){padding-left:8px;padding-right:8px}:host .background-color-mode:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host .event-container{display:block;width:100%;border-radius:4px;cursor:pointer;box-sizing:border-box;overflow:hidden}:host .background-color-mode.slot-container{height:16px;line-height:16px}:host ::slotted(vega-calendar-event-slot){position:relative;pointer-events:none}:host(.month-event) .event-container{display:flex;flex-direction:row;gap:4px;align-items:center;min-height:16px}:host(.month-event) .event-container:not(.slot-container){padding-left:2px;padding-right:2px}:host(.month-event) .event-container .event-status{width:8px;height:8px;box-sizing:border-box;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;margin-left:2px;flex-shrink:0}:host(.month-event) .event-container .event-status span{display:none;width:100%;height:100%;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.month-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.month-event) .event-container.secondary .event-status span{display:block;background-size:4px 4px;opacity:0.8}:host(.month-event) .event-container.tertiary .event-status{padding:1px}:host(.month-event) .event-container.tertiary .event-status span{display:block;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1))}:host(.month-event) .event-container.disabled .event-status{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.month-event) .event-container:hover{background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1))}:host(.month-event) .event-container:active{background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}:host(.month-event) .event-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host(.day-event) .event-container{position:relative}:host(.day-event) .event-container:not(.slot-container){padding-left:8px;padding-right:8px}:host(.day-event) .event-container .event-status{position:absolute;width:4px;height:100%;left:0;top:0;z-index:1}:host(.day-event) .event-container .event-status span{display:none}:host(.day-event) .event-container .cover-block{position:absolute;height:100%;width:100%;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));border-radius:4px;left:0;top:0;opacity:0.7}:host(.day-event) .event-container .event-content,:host(.day-event) .event-container .event-time{display:flex;flex-direction:row;align-items:center}:host(.day-event) .event-container .event-content{gap:8px;position:relative;height:100%;box-sizing:border-box}:host(.day-event) .event-container .event-time{gap:4px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.day-event) .event-container .event-time{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.day-event) .event-container .event-time{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.day-event) .event-container .event-time{font-family:"Inter", sans-serif;font-size:12px;font-weight:400;line-height:16px}}:host(.day-event) .event-container .event-time vega-icon{flex-shrink:0}:host(.day-event) .event-container .event-time span{white-space:nowrap}:host(.day-event) .event-container .event-title{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){:host(.day-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){:host(.day-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){:host(.day-event) .event-container .event-title{font-family:"Inter", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}:host(.day-event) .event-container .event-title.title-word-wrap{overflow:hidden}:host(.day-event) .event-container .event-title:not(.title-word-wrap){white-space:nowrap}:host(.day-event) .event-container.duration-half-an-hour{padding-top:8px;padding-bottom:8px}:host(.day-event) .event-container.vertical{height:100%}:host(.day-event) .event-container.vertical .event-content{flex-direction:column;align-items:flex-start;gap:4px;padding-top:8px;padding-bottom:8px}:host(.day-event) .event-container.secondary .event-status span,:host(.day-event) .event-container.tertiary .event-status span{display:block;position:absolute;border-top-left-radius:4px;border-bottom-left-radius:4px}:host(.day-event) .event-container.secondary .cover-block,:host(.day-event) .event-container.tertiary .cover-block{width:calc(100% - 2px);height:calc(100% - 2px);top:1px;left:1px}:host(.day-event) .event-container.secondary .event-status span{width:100%;height:100%;top:0px;left:0px;background-size:4px 4px;opacity:0.8}:host(.day-event) .event-container.secondary .cover-block{opacity:0.9}:host(.day-event) .event-container.tertiary .event-status span{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));width:2px;height:calc(100% - 2px);top:1px;left:1px}:host(.day-event) .event-container.tertiary .cover-block{opacity:1}:host(.day-event) .event-container.disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.day-event) .event-container.disabled .event-status{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host(.day-event) .event-container:focus{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}:host(.day-event) .slot-container{min-height:16px}:host(.month-event.calendar-event-large-size) .background-color-mode{border-radius:4px}:host(.month-event.calendar-event-large-size) .background-color-mode:not(.slot-container){padding-top:4px;padding-bottom:4px}:host(.month-event.calendar-event-large-size) .event-container:not(.slot-container){padding-top:4px;padding-bottom:4px}:host(.month-event.calendar-event-large-size) .slot-container{height:24px;display:flex;align-items:center;line-height:24px}.stripe{background-image:linear-gradient(-45deg, transparent 25%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 25% 50%, transparent 50% 75%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 75% 100%)}';var Tt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class $t extends d{registerEventPreviewUpdateObserver(){w.addUniqueObserverToNode(this.host,V,(e=>{this.previewPayload=e,this.currentEvent=e.event})),w.addUniqueObserverToNode(this.host,$,(()=>{this.currentEvent=null}))}unregisterEventPreviewUpdateObserver(){w.removeUniqueObserverFromNode(this.host,V),w.removeUniqueObserverFromNode(this.host,$)}}Tt([l()],$t.prototype,"host",void 0),Tt([l({writable:!0})],$t.prototype,"currentEvent",void 0),Tt([l({writable:!0})],$t.prototype,"previewPayload",void 0),Tt([h("connectedCallback")],$t.prototype,"registerEventPreviewUpdateObserver",null),Tt([h("disconnectedCallback")],$t.prototype,"unregisterEventPreviewUpdateObserver",null);var Vt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};class Lt extends d{componentWillLoad(){this.calendarRef=q(this.host,"vega-calendar")}render(){return this.currentEvent&&e("vega-box",{class:"event-preview"},this.injectBackgroundColorStyle(),this.renderActions(),e("vega-box",{class:"preview-content"},e("vega-flex",{gap:"size-16",direction:"col"},this.renderBasicFields(),this.renderDivider(),e("slot",{name:"event-preview-additional-fields"}))))}renderActions(){return e("vega-flex",{justifyContent:"end",class:"preview-actions"},e("vega-button-circle",{icon:j.getIconKey("close"),color:"text-primary",variant:"icon-only",onVegaClick:this.onHidePopover.bind(this)}))}renderBasicFields(){const i=this.currentEvent;return e(t,null,e("vega-flex",{alignItems:"start",gap:"size-16"},this.renderEventTitle()),e("vega-flex",{alignItems:"start",gap:"size-12"},e("vega-icon",{icon:j.getIconKey("clock"),color:"text-secondary"}),e("vega-flex",{direction:"col",gap:"size-4"},e("vega-font",{variant:"font-footnote1-long",color:"text-primary"},i.generateDateTimeString(this.previewPayload.targetCalendarViewDate,this.previewPayload.timeFormat)),i.isRepeatEvent&&e("vega-font",{variant:"font-footnote1-long",color:"text-primary"},i.generateRepeatString()))))}onHidePopover(){this.calendarRef&&A.notify(b.getSubject(this.calendarRef,T),{})}renderEventTitle(){const i=this.currentEvent,n=Ce(i.event.key);return this.host.querySelector(`[slot=${n}]`)?e("slot",{name:n}):e(t,null,e("vega-box",{corners:"rounded-full",class:{"event-bg-color":!0,"event-bg-disabled":i.disabled},flexShrink:0},e("span",{class:{[`event-color-dot-${i.variant}`]:!0}})),e("vega-font",{variant:"font-h5",color:"text-primary"},i.title))}renderDivider(){return this.host.querySelector("[slot=event-preview-additional-fields]")&&e("vega-box",null,e("vega-divider",null))}injectBackgroundColorStyle(){return e("style",{nonce:Y.nonce},je(this.currentEvent.color))}}j.register({close:{icon:'<svg width="17" height="16" viewBox="0 0 17 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_80261_51160)"><path d="M13.9604 1.29376C14.3511 0.903137 14.9854 0.903137 15.3761 1.29376C15.7667 1.68439 15.7667 2.31876 15.3761 2.70939L10.0823 8.00001L15.3729 13.2938C15.7636 13.6844 15.7636 14.3188 15.3729 14.7094C14.9823 15.1 14.3479 15.1 13.9573 14.7094L8.66668 9.41564L3.37293 14.7063C2.98231 15.0969 2.34793 15.0969 1.95731 14.7063C1.56668 14.3156 1.56668 13.6813 1.95731 13.2906L7.25106 8.00001L1.96043 2.70626C1.56981 2.31564 1.56981 1.68439 1.96043 1.29376C2.35106 0.903137 2.98543 0.903137 3.37606 1.29376L8.66668 6.58439L13.9604 1.29376Z" fill="currentColor" fill-opacity="0.95"/></g><defs><clipPath id="clip0_80261_51160"><rect width="14" height="16" fill="currentColor" transform="translate(1.66669)"/></clipPath></defs></svg>'},clock:{icon:'<svg width="17" height="16" viewBox="0 0 17 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_80261_52574)"><path d="M7.91669 3.75C7.91669 3.33437 8.25106 3 8.66669 3C9.08231 3 9.41669 3.33437 9.41669 3.75V7.6L12.0823 9.375C12.4261 9.60625 12.5198 10.0719 12.2636 10.4156C12.0604 10.7594 11.5948 10.8531 11.2511 10.5969L8.25106 8.59688C8.04169 8.48438 7.91669 8.25 7.91669 7.97188V3.75ZM8.66669 0C13.0854 0 16.6667 3.58125 16.6667 8C16.6667 12.4187 13.0854 16 8.66669 16C4.24794 16 0.666687 12.4187 0.666687 8C0.666687 3.58125 4.24794 0 8.66669 0ZM2.16669 8C2.16669 11.5906 5.07606 14.5 8.66669 14.5C12.2573 14.5 15.1667 11.5906 15.1667 8C15.1667 4.40938 12.2573 1.5 8.66669 1.5C5.07606 1.5 2.16669 4.40938 2.16669 8Z" fill="currentColor" fill-opacity="0.64"/></g><defs><clipPath id="clip0_80261_52574"><rect width="16" height="16" fill="currentColor" transform="translate(0.666687)"/></defs></svg>'}}),Vt([l()],Lt.prototype,"host",void 0),Vt([l()],Lt.prototype,"previewPayload",void 0),Vt([l()],Lt.prototype,"currentEvent",void 0),Vt([h("componentWillLoad")],Lt.prototype,"componentWillLoad",null);var At=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Bt=class{constructor(e){n(this,e),this.detailRenderer=new Lt,this.stateController=new $t,this.translationSlimmer=new _,this.globalSlimmer={},this.vegaComponentUsageRuntimeMetricsSlimmer=new p}render(){return s(e(o,null,this.previewPayload&&this.detailRenderer.render()),this.host)}get host(){return a(this)}};At([v()],Bt.prototype,"detailRenderer",void 0),At([v()],Bt.prototype,"stateController",void 0),At([v()],Bt.prototype,"translationSlimmer",void 0),At([f()],Bt.prototype,"globalSlimmer",void 0),At([v()],Bt.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Bt.style=":host(.single-event-preview) .event-preview{width:398px;box-sizing:border-box}:host(.single-event-preview) .preview-actions{padding-top:4px;padding-left:4px;padding-right:4px}:host(.single-event-preview) .preview-content{margin-bottom:24px;margin-left:12px;margin-right:12px;padding-left:12px;padding-right:12px}:host(.group-event-preview) .event-preview{width:320px;box-sizing:border-box;height:100%}:host(.group-event-preview) .event-preview{border:1px solid rgba(var(--v-border-divider, 171, 198, 216, 1));border-right-width:0px;border-top-width:0px;border-bottom-width:0px;border-left-width:1px;border-left-style:solid}:host(.group-event-preview) .preview-actions{padding-top:4px;padding-left:4px;padding-right:4px}:host(.group-event-preview) .preview-content{margin-bottom:16px;margin-left:12px;margin-right:12px;padding-left:4px;padding-right:4px}:host .preview-content{max-height:60vh;overflow-y:auto}:host .event-bg-color{width:12px;height:12px;margin-top:8px;position:relative}:host .event-bg-color.event-bg-disabled{background-color:rgba(var(--v-bg-disabled, 176, 180, 181, 1))}:host .event-bg-color span{display:block;position:absolute;top:0px;left:0px;opacity:0.8}:host .event-bg-color span.event-color-dot-secondary{width:100%;height:100%;background-size:4px 4px;background-image:linear-gradient(-45deg, transparent 25%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 25% 50%, transparent 50% 75%, rgba(var(--v-bg-primary, 252, 252, 252, 1)) 75% 100%)}:host .event-bg-color span.event-color-dot-tertiary{width:calc(100% - 2px);height:calc(100% - 2px);top:1px;left:1px;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));opacity:1}";var Nt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const Ft=class{constructor(e){n(this,e),this.globalSlimmer={},this.vegaComponentUsageRuntimeMetricsSlimmer=new p}render(){return s(e(o,{slot:Ce(this.eventKey)},e("slot",null)),this.host)}get host(){return a(this)}};Nt([f()],Ft.prototype,"globalSlimmer",void 0),Nt([v()],Ft.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),Ft.style=":host{width:100%;height:100%;position:relative}";export{Rt as vega_calendar,St as vega_calendar_event,Bt as vega_calendar_event_preview,Ft as vega_calendar_event_slot}
@@ -0,0 +1 @@
1
+ import{b as e,a as t,V as a,c as s,e as n,f as r,g as c,h as o,i,j as g,k as v,l as u,m as l,n as h,o as p,p as d,q as b,r as m,s as w,t as x,u as f,v as k,w as E,x as y,y as S,z as T,A as j,B as A,C as M,E as I,F as O,G as B,H as C,I as N,J as R,K as $,L as D,M as F,N as G,O as H,P as L,Q as q,R as z,S as J,T as K,U as P,W as Q,X as U,Y as V,Z as W,_ as X,$ as Y}from"./p-447c7590.js";import{L as Z}from"./p-6e1ab235.js";const _=new Map([["vega-accordion",[e]],["vega-app-header-button",[t,a]],["vega-banner",[s,n]],["vega-breadcrumb",[t]],["vega-button",[t]],["vega-button-circle",[t]],["vega-button-group",[t]],["vega-button-link",[t]],["vega-calendar",[r,c,o,i,g]],["vega-carousel",[v]],["vega-checkbox",[r]],["vega-checkbox-group",[r]],["vega-chip",[s,t]],["vega-code-block",[r,u]],["vega-color-picker",[r]],["vega-combo-box",[r,l,h]],["vega-date-picker",[p,r]],["vega-dropdown",[d,b,a,m,l,w,x]],["vega-dropdown-item",[t]],["vega-field-label",[t,f]],["vega-file-uploader",[r,k,u,E,y]],["vega-form",[S,T,j]],["vega-image-uploader",[r,u,A]],["vega-input",[r,M,I,f,O]],["vega-input-credit-card",[r,I,M]],["vega-input-numeric",[r]],["vega-input-passcode",[r,B]],["vega-input-phone-number",[r,C]],["vega-input-range",[r]],["vega-input-select",[r,h,x,N,R]],["vega-item-toggle",[$]],["vega-modal",[D,s]],["vega-left-nav",[F]],["vega-left-nav-group",[G]],["vega-left-nav-link",[H]],["vega-left-nav-section",[L]],["vega-pagination",[r,q]],["vega-popover",[z,J]],["vega-progress-tracker",[K]],["vega-radio",[r,M,I]],["vega-radio-group",[r]],["vega-rich-text-editor",[r,P]],["vega-rich-text-editor-toolbar-button",[t]],["vega-rich-text-image-editor",[r]],["vega-rich-text-link-editor",[r]],["vega-segment-control",[r]],["vega-selection-chip",[r]],["vega-selection-chip-group",[r]],["vega-selection-tile",[r]],["vega-selection-tile-group",[r]],["vega-sidenav",[F]],["vega-sidenav-link",[t]],["vega-signature-capture",[r]],["vega-stepper",[r]],["vega-tab-group",[t]],["vega-table",[r,Q,U,V,W,X,Y]],["vega-table-head-cell",[t]],["vega-table-row",[t,e]],["vega-textarea",[r,I]],["vega-time-picker",[r]],["vega-toggle-switch",[r]]]);class ee{getHostName(){return this.vegaComponentName}getEventName(){return this.eventName}handle(e,t){const a=this.createEventTarget(e);a.style.display="none",e.appendChild(a);const s=this.createEvent(this.eventName);return t&&Object.defineProperty(s,"detail",{configurable:!0,value:t}),a.dispatchEvent(s),a.remove(),s}copyAttributesToTarget(e,t){e&&t&&Array.from(e.attributes).filter((e=>!e.name.startsWith("on"))).forEach((a=>{try{t.setAttribute(a.name,a.value)}catch(t){Z.error(`Delegated strategy copy ${e.tagName} attribute '${a.name}' error.`)}}))}createEvent(e){let t=new Event(e,{bubbles:!0,cancelable:!0});return"click"===e&&(t=new MouseEvent(e,{bubbles:!0,cancelable:!0})),t}}class te extends ee{constructor(){super(...arguments),this.eventName="click",this.vegaComponentName="vega-button"}createEventTarget(e){const t=document.createElement("button");return this.copyAttributesToTarget(e,t),t.type=e.type,t}}class ae extends ee{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-checkbox"}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type="checkbox",t.checked=e.checked,t}}class se extends ee{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-input-select"}createEventTarget(e){const t=document.createElement("select");return this.copyAttributesToTarget(e,t),e.value&&(t.value=e.value.toString()),t}}class ne extends ee{constructor(e){super(),this.vegaComponentName="vega-input",this.eventName=e}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type=e.type,t.value=e.value,t}}class re extends ee{constructor(){super(...arguments),this.eventName="change",this.vegaComponentName="vega-radio"}createEventTarget(e){const t=document.createElement("input");return this.copyAttributesToTarget(e,t),t.type="radio",t.checked=e.checked,t}}class ce extends ee{constructor(){super(...arguments),this.vegaComponentName="vega-textarea",this.eventName="change"}createEventTarget(e){const t=document.createElement("textarea");return this.copyAttributesToTarget(e,t),t.value=e.value,t}}const oe=new class{constructor(){this.strategyRegistry=new Map,this.updateStrategyRegistry([new te,new ne("change"),new ne("focus"),new ne("blur"),new se,new ce,new ae,new re])}isSupportDelegated(e,t){let a=!1;const s=e.tagName.toLowerCase();return this.strategyRegistry.get(s)&&this.strategyRegistry.get(s).get(t.getNativeName())&&(a=!0),a}updateRegistryFromEventSemantics(e){let t=[];const{global:a,components:s}=e;if(a&&Array.isArray(a.jqueryDelegatedEvent)&&(t=t.concat(a.jqueryDelegatedEvent)),s)for(const e in s)Array.isArray(s[e].jqueryDelegatedEvent)&&(t=t.concat(s[e].jqueryDelegatedEvent));t.length&&this.updateStrategyRegistry(t)}getStrategy(e,t){const a=e.tagName.toLowerCase();if(this.strategyRegistry&&this.strategyRegistry.get(a))return this.strategyRegistry.get(a).get(t.getNativeName())}updateStrategyRegistry(e){e.forEach((e=>{const t=e.getHostName(),a=e.getEventName();if(this.strategyRegistry.get(t))this.strategyRegistry.get(t).set(a,e);else{const s=new Map;s.set(a,e),this.strategyRegistry.set(t,s)}}))}},ie=new class{constructor(){this.config={},this.defaultEventSemantics={namespace:"vega"}}setSemantics(e){this.config=e,oe.updateRegistryFromEventSemantics(e)}getSemantics(e){return Object.assign({},this.defaultEventSemantics,this.getSemanticsInGlobal(),this.getSemanticsInComponents(e))}getEnabledEventIdsByComponent(e){return _.get(e)}getSemanticsInGlobal(){return this.config.global}getSemanticsInComponents(e){const t=e.tagName.toLocaleLowerCase();return this.config.components&&Object.prototype.hasOwnProperty.call(this.config.components,t)?this.config.components[t]:null}};export{ee as B,ie as i,oe as j}
@@ -0,0 +1 @@
1
+ import{C as e}from"./p-2d0d575f.js";import{O as a}from"./p-331a62d5.js";import{b as t}from"./p-d9671d27.js";class n{constructor(e,a){this.vegaName=e,this.nativeName=a}getName(){return this.getVegaName()}getCurrentName(e){return"native"!==e.namespace?this.getVegaName():this.getNativeName()}getVegaName(){return this.vegaName}getNativeName(){return this.nativeName}isBrowserRawEvent(){return te.includes(this)}}const s=new n("vegaChange","change"),o=new n("vegaClick","click"),r=new n("vegaFocus","focus"),i=new n("vegaBlur","blur"),g=new n("vegaClose","close"),c=new n("vegaOpen","modalOpen"),w=new n("vegaValidate","validate"),v=new n("vegaFormSubmit","formSubmit"),l=new n("vegaFormReset","formReset"),h=new n("vegaRowClick","rowClick"),d=new n("vegaRowExpand","rowExpand"),p=new n("vegaSelectChange","selectChange"),C=new n("vegaRowSelect","rowSelect"),u=new n("vegaRowSelectAll","rowSelectAll"),m=new n("vegaSelectAllChange","selectAllChange"),S=new n("vegaPageSizeChange","pageSizeChange"),k=new n("vegaDropdownClick","dropdownClick"),b=new n("vegaCreate","create"),f=new n("vegaSearch","search"),R=new n("vegaSearchTrigger","searchTrigger"),A=new n("vegaHide","hide"),N=new n("vegaShow","show"),U=new n("vegaPopoverShow","popoverShow"),j=new n("vegaPopoverHide","popoverHide"),B=new n("vegaCancel","cancel"),E=new n("vegaRemove","remove"),F=new n("vegaPageUpdate","pageUpdate"),P=new n("vegaCurrentStepUpdate","currentStepUpdate"),x=new n("vegaToggleStatus","toggleStatus"),y=new n("vegaStateUpdate","stateUpdate"),D=new n("vegaGroupClick","groupClick"),H=new n("vegaMenuClick","menuClick"),M=new n("vegaExpand","expand"),O=new n("vegaShow","dropdownShow"),$=new n("vegaHide","dropdownHide"),I=new n("vegaSearch","dropdownSearch"),T=new n("vegaActionClick","actionClick"),q=new n("vegaEventClick","eventClick"),z=new n("vegaDateDblClick","dateDblClick"),V=new n("vegaDateClick","dateClick"),Y=new n("vegaCountryChange","countryChange"),G=new n("vegaActionButtonClick","actionButtonClick"),L=new n("vegaMoreActionClick","moreActionClick"),J=new n("vegaSelectedFileChange","selectedFileChange"),K=new n("vegaImageInserted","imageInserted"),Q=new n("vegaRetry","retry"),W=new n("vegaPreview","preview"),X=new n("vegaLabelButtonClick","labelButtonClick"),Z=new n("vegaReset","reset"),_=new n("vegaMonthYearChange","monthYearChange"),ee=new n("vegaComplete","complete"),ae=new n("vegaPaste","paste"),te=[s,o,r,i,ae];class ne{constructor(e,a){this.title=e,this.host=a}getDescription(){return`, this is a dom nodes subject of ${this.title}.(class name:${this.host.className}, id:${this.host.id})`}}const se=new class{constructor(){this.cache=new Map}getSubject(e,a){return this.isExist(e,a)?this.cache.get(e).get(a):this.setSubject(e,a)}isExist(e,a){return!!e&&this.cache.has(e)&&void 0!==this.cache.get(e)&&this.cache.get(e).has(a)}getSubjectFromParentNodeByEventId(e,a){let n;for(const s of this.cache)if(t(e,s[0])&&s[1].has(a)){n=s[1].get(a);break}return n}setSubject(e,a){const t=`${e.tagName}:${a.getName()}`,n=new ne(t,e);return this.cache.get(e)||this.cache.set(e,new Map),this.cache.get(e).set(a,n),n}},oe=()=>!0;class re{static addUniqueObserverToNode(t,n,s,o){if(t){const r=new a("function"==typeof o?o.bind(null):oe,s);re.removeUniqueObserverFromNode(t,n),e.register(se.getSubject(t,n),r)}}static removeUniqueObserverFromNode(a,t){se.isExist(a,t)&&e.clearObserversBySubject(se.getSubject(a,t))}}export{u as $,w as A,B,r as C,re as D,i as E,ae as F,ee as G,Y as H,N as I,A as J,x as K,c as L,y as M,D as N,H as O,T as P,S as Q,U as R,j as S,P as T,K as U,k as V,p as W,m as X,h as Y,d as Z,C as _,o as a,M as b,g as c,se as d,G as e,s as f,q as g,z as h,L as i,V as j,F as k,E as l,b as m,f as n,_ as o,O as p,$ as q,Z as r,I as s,R as t,X as u,J as v,Q as w,W as x,v as y,l as z}